sprintify-ui 0.6.41 → 0.6.42

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,9 +1,9 @@
1
1
  var Mb = Object.defineProperty;
2
2
  var Ib = (n, t, e) => t in n ? Mb(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var ar = (n, t, e) => (Ib(n, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { defineComponent as Se, computed as L, inject as wt, resolveComponent as Xt, openBlock as B, createBlock as De, withCtx as ge, createElementVNode as j, normalizeClass as de, unref as T, withModifiers as Wn, renderSlot as Pe, createElementBlock as K, createCommentVNode as ke, toDisplayString as Me, getCurrentScope as Kp, onScopeDispose as Qp, toRef as Nb, readonly as lo, customRef as Pb, ref as oe, watchEffect as un, h as xt, shallowRef as id, watch as ut, shallowReadonly as eo, Fragment as Je, Teleport as Cr, normalizeStyle as ot, createVNode as xe, Transition as Rn, provide as gt, createTextVNode as zn, onBeforeUnmount as Fn, resolveDynamicComponent as hr, withDirectives as jn, mergeProps as Zt, renderList as dt, onMounted as pt, nextTick as Ut, TransitionGroup as Zp, isRef as ai, normalizeProps as zt, guardReactiveProps as jt, vShow as Ir, Comment as Bb, useSlots as Xp, createSlots as Jp, cloneVNode as Lb, onUnmounted as An, reactive as od, withKeys as Vl, vModelText as sc, createStaticVNode as em, getCurrentInstance as zb, vModelSelect as jb } from "vue";
4
+ import { defineComponent as Se, computed as L, inject as wt, resolveComponent as Xt, openBlock as B, createBlock as De, withCtx as ge, createElementVNode as j, normalizeClass as de, unref as T, withModifiers as Wn, renderSlot as Pe, createElementBlock as K, createCommentVNode as ke, toDisplayString as Me, getCurrentScope as Kp, onScopeDispose as Qp, toRef as Nb, readonly as lo, customRef as Pb, ref as oe, watchEffect as un, h as xt, shallowRef as id, watch as ut, shallowReadonly as eo, Fragment as Je, Teleport as Cr, normalizeStyle as ot, createVNode as xe, Transition as Rn, provide as gt, createTextVNode as zn, onBeforeUnmount as Fn, resolveDynamicComponent as hr, withDirectives as jn, mergeProps as Gt, renderList as dt, onMounted as pt, nextTick as Ut, TransitionGroup as Zp, isRef as ai, normalizeProps as zt, guardReactiveProps as jt, vShow as Ir, Comment as Bb, useSlots as Xp, createSlots as Jp, cloneVNode as Lb, onUnmounted as An, reactive as od, withKeys as Vl, vModelText as sc, createStaticVNode as em, getCurrentInstance as zb, vModelSelect as jb } from "vue";
5
5
  import Fb from "axios";
6
- import { uniqueId as tm, get as li, isArray as tn, cloneDeep as Kt, isObject as ba, isString as ws, throttle as ad, debounce as nr, truncate as $b, trim as nm, padStart as Tl, isNumber as yo, merge as Wl, range as Qr, set as bu, isEqual as rm, isPlainObject as Hb, reject as qb, round as Lf, capitalize as Ub } from "lodash";
6
+ import { uniqueId as tm, get as li, isArray as tn, cloneDeep as Qt, isObject as ba, isString as ws, throttle as ad, debounce as nr, truncate as $b, trim as nm, padStart as Tl, isNumber as yo, merge as Wl, range as Qr, set as bu, isEqual as rm, isPlainObject as Hb, reject as qb, round as Lf, capitalize as Ub } from "lodash";
7
7
  import zf from "qs";
8
8
  import { defineStore as xs } from "pinia";
9
9
  import { unrefElement as so, useEventListener as jf, tryOnScopeDispose as Vb, useInfiniteScroll as Wb, useResizeObserver as Ao, useMutationObserver as im, useScroll as om, useElementSize as ld, useWindowSize as Gb, useElementBounding as Yb } from "@vueuse/core";
@@ -5404,7 +5404,7 @@ const bc = /* @__PURE__ */ new WeakMap(), _w = (n) => {
5404
5404
  onClick: A
5405
5405
  }, Me(n.prefix), 3)) : ke("", !0)
5406
5406
  ], 2),
5407
- T(c) ? jn((B(), K("input", Zt({
5407
+ T(c) ? jn((B(), K("input", Gt({
5408
5408
  key: 0,
5409
5409
  ref_key: "input",
5410
5410
  ref: i
@@ -5418,7 +5418,7 @@ const bc = /* @__PURE__ */ new WeakMap(), _w = (n) => {
5418
5418
  onKeydown: w
5419
5419
  }), null, 16, Aw)), [
5420
5420
  [T(kw), void 0, T(c)]
5421
- ]) : (B(), K("input", Zt({
5421
+ ]) : (B(), K("input", Gt({
5422
5422
  key: 1,
5423
5423
  ref_key: "input",
5424
5424
  ref: i
@@ -5853,13 +5853,13 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
5853
5853
  emits: ["update:model-value"],
5854
5854
  setup(n, { emit: t }) {
5855
5855
  const e = n, { size: r } = Vi(L(() => e.size)), i = L(() => {
5856
- const y = Kt(e.modelValue ?? {});
5856
+ const y = Qt(e.modelValue ?? {});
5857
5857
  return y.address_1 = y.address_1 ?? "", y.address_2 = y.address_2 ?? "", y.city = y.city ?? "", y.postal_code = y.postal_code ?? "", y.country = y.country ?? "", y.region = y.region ?? "", y;
5858
5858
  }), o = L(() => e.restrictCountry ? i.value.country ? i.value.country : nx : i.value.country ?? null), a = L(() => e.countries && tn(e.countries) && e.countries.length ? e.countries : $t.countries), l = L(() => e.regions && tn(e.regions) && e.regions.length ? e.regions : $t.regions), s = L(() => l.value.filter(
5859
5859
  (y) => y.country_id == i.value.country
5860
5860
  )), d = L(() => e.prefix ? e.prefix + "." : "");
5861
5861
  function c(y, b) {
5862
- const u = Kt(i.value);
5862
+ const u = Qt(i.value);
5863
5863
  u[y] = b, t("update:model-value", u);
5864
5864
  }
5865
5865
  const h = oe(null), f = L(
@@ -5898,7 +5898,7 @@ const Jw = ["value", "name", "disabled", "required"], ex = ["value"], Su = "", _
5898
5898
  return;
5899
5899
  const y = p.getPlace();
5900
5900
  let b = "", u = "", w = "";
5901
- const x = Kt(e.modelValue ?? {});
5901
+ const x = Qt(e.modelValue ?? {});
5902
5902
  if (y.address_components) {
5903
5903
  for (const _ of y.address_components)
5904
5904
  switch (_.types[0]) {
@@ -7711,10 +7711,10 @@ const qx = {
7711
7711
  Pe(x.$slots, "option", zt(jt(k)))
7712
7712
  ]),
7713
7713
  footer: ge((k) => [
7714
- Pe(x.$slots, "footer", Zt(k, { keywords: T(l) }))
7714
+ Pe(x.$slots, "footer", Gt(k, { keywords: T(l) }))
7715
7715
  ]),
7716
7716
  empty: ge((k) => [
7717
- Pe(x.$slots, "empty", Zt(k, { firstSearch: T(a) }), () => [
7717
+ Pe(x.$slots, "empty", Gt(k, { firstSearch: T(a) }), () => [
7718
7718
  T(a) ? (B(), K("div", qx, Me(T(ze)("sui.nothing_found")), 1)) : ke("", !0)
7719
7719
  ])
7720
7720
  ]),
@@ -9262,7 +9262,7 @@ const DE = {
9262
9262
  var p;
9263
9263
  if (e.multiple) {
9264
9264
  let g = [];
9265
- tn(l.value) && (g = Kt(l.value)), g.find((v) => v.value == f.value) ? g = g.filter((v) => v.value != f.value) : g.push(f), i(g.map((v) => v.option));
9265
+ tn(l.value) && (g = Qt(l.value)), g.find((v) => v.value == f.value) ? g = g.filter((v) => v.value != f.value) : g.push(f), i(g.map((v) => v.option));
9266
9266
  } else {
9267
9267
  if (!r.value && !tn(l.value) && f.value == ((p = l.value) == null ? void 0 : p.value)) {
9268
9268
  i(null);
@@ -12367,7 +12367,7 @@ class ro {
12367
12367
  return this.internalEventSource.meta.format;
12368
12368
  }
12369
12369
  }
12370
- class Gt {
12370
+ class Yt {
12371
12371
  // instance will be null if expressing a recurring event that has no current instances,
12372
12372
  // OR if trying to validate an incoming external event that has no dates assigned
12373
12373
  constructor(t, e, r) {
@@ -12473,7 +12473,7 @@ class Gt {
12473
12473
  classNames: []
12474
12474
  }
12475
12475
  }, t, i);
12476
- let s = new Gt(i, r, e);
12476
+ let s = new Yt(i, r, e);
12477
12477
  this._def = a.defs[r.defId], this._instance = a.instances[e.instanceId], i.dispatch({
12478
12478
  type: "MERGE_EVENTS",
12479
12479
  eventStore: a
@@ -12604,7 +12604,7 @@ function Pi(n, t, e) {
12604
12604
  let { defs: r, instances: i } = n, o = [], a = e ? e.instanceId : "";
12605
12605
  for (let l in i) {
12606
12606
  let s = i[l], d = r[s.defId];
12607
- s.instanceId !== a && o.push(new Gt(t, d, s));
12607
+ s.instanceId !== a && o.push(new Yt(t, d, s));
12608
12608
  }
12609
12609
  return o;
12610
12610
  }
@@ -12732,7 +12732,7 @@ function Xd(n, t) {
12732
12732
  return l == null && (l = e.interactive, l == null && (l = !!o.hasHandlers("eventClick"))), l ? Ig((s) => {
12733
12733
  o.trigger("eventClick", {
12734
12734
  el: s.target,
12735
- event: new Gt(t, e, r),
12735
+ event: new Yt(t, e, r),
12736
12736
  jsEvent: s,
12737
12737
  view: t.viewApi
12738
12738
  });
@@ -13077,7 +13077,7 @@ class kk {
13077
13077
  // Public Events API
13078
13078
  // -----------------------------------------------------------------------------------------------------------------
13079
13079
  addEvent(t, e) {
13080
- if (t instanceof Gt) {
13080
+ if (t instanceof Yt) {
13081
13081
  let a = t._def, l = t._instance;
13082
13082
  return this.getCurrentData().eventStore.defs[a.defId] || (this.dispatch({
13083
13083
  type: "ADD_EVENTS",
@@ -13098,7 +13098,7 @@ class kk {
13098
13098
  }
13099
13099
  let o = Vg(t, i, r, !1);
13100
13100
  if (o) {
13101
- let a = new Gt(r, o.def, o.def.recurringDef ? null : o.instance);
13101
+ let a = new Yt(r, o.def, o.def.recurringDef ? null : o.instance);
13102
13102
  return this.dispatch({
13103
13103
  type: "ADD_EVENTS",
13104
13104
  eventStore: Oc(o)
@@ -13127,11 +13127,11 @@ class kk {
13127
13127
  let a = r[o];
13128
13128
  if (a.publicId === t) {
13129
13129
  if (a.recurringDef)
13130
- return new Gt(e, a, null);
13130
+ return new Yt(e, a, null);
13131
13131
  for (let l in i) {
13132
13132
  let s = i[l];
13133
13133
  if (s.defId === a.defId)
13134
- return new Gt(e, a, s);
13134
+ return new Yt(e, a, s);
13135
13135
  }
13136
13136
  }
13137
13137
  }
@@ -14033,16 +14033,16 @@ function Jk(n, t, e, r) {
14033
14033
  for (let _ in f) {
14034
14034
  let k = f[_];
14035
14035
  if (qd(v, k.range) && (p[k.defId].overlap === !1 && o.isEvent || y.overlap === !1 || w && !w(
14036
- new Gt(t, h[k.defId], k),
14036
+ new Yt(t, h[k.defId], k),
14037
14037
  // still event
14038
- new Gt(t, b, m)
14038
+ new Yt(t, b, m)
14039
14039
  )))
14040
14040
  return !1;
14041
14041
  }
14042
14042
  let x = i.eventStore;
14043
14043
  for (let _ of y.allows) {
14044
14044
  let k = Object.assign(Object.assign({}, e), { range: m.range, allDay: b.allDay }), E = x.defs[b.defId], D = x.instances[g], A;
14045
- if (E ? A = new Gt(t, E, D) : A = new Gt(t, b), !_(Kd(k, t), A))
14045
+ if (E ? A = new Yt(t, E, D) : A = new Yt(t, b), !_(Kd(k, t), A))
14046
14046
  return !1;
14047
14047
  }
14048
14048
  }
@@ -14055,7 +14055,7 @@ function eA(n, t, e, r) {
14055
14055
  let { selectOverlap: c } = t.options, h = typeof c == "function" ? c : null;
14056
14056
  for (let f in a) {
14057
14057
  let p = a[f];
14058
- if (qd(s, p.range) && (d.overlap === !1 || h && !h(new Gt(t, o[p.defId], p), null)))
14058
+ if (qd(s, p.range) && (d.overlap === !1 || h && !h(new Yt(t, o[p.defId], p), null)))
14059
14059
  return !1;
14060
14060
  }
14061
14061
  for (let f of d.allows) {
@@ -14348,7 +14348,7 @@ class js extends Tt {
14348
14348
  }
14349
14349
  render() {
14350
14350
  const { props: t, context: e } = this, { options: r } = e, { seg: i } = t, { eventRange: o } = i, { ui: a } = o, l = {
14351
- event: new Gt(e, o.def, o.instance),
14351
+ event: new Yt(e, o.def, o.instance),
14352
14352
  view: e.viewApi,
14353
14353
  timeText: t.timeText,
14354
14354
  textColor: a.textColor,
@@ -14573,7 +14573,7 @@ class _v extends Tt {
14573
14573
  function a(l) {
14574
14574
  let { def: s, instance: d, range: c } = l.eventRange;
14575
14575
  return {
14576
- event: new Gt(r, s, d),
14576
+ event: new Yt(r, s, d),
14577
14577
  start: r.dateEnv.toDate(c.start),
14578
14578
  end: r.dateEnv.toDate(c.end),
14579
14579
  isStart: l.isStart,
@@ -15808,7 +15808,7 @@ class NC extends Do {
15808
15808
  let l = kn(e.target, ".fc-event-forced-url"), s = l ? l.querySelector("a[href]").href : "";
15809
15809
  o.emitter.trigger("eventClick", {
15810
15810
  el: r,
15811
- event: new Gt(i.context, a.eventRange.def, a.eventRange.instance),
15811
+ event: new Yt(i.context, a.eventRange.def, a.eventRange.instance),
15812
15812
  jsEvent: e,
15813
15813
  view: o.viewApi
15814
15814
  }), s && !e.defaultPrevented && (window.location.href = s);
@@ -15845,7 +15845,7 @@ class PC extends Do {
15845
15845
  let { component: i } = this, { context: o } = i, a = Eo(r);
15846
15846
  (!e || i.isValidSegDownEl(e.target)) && o.emitter.trigger(t, {
15847
15847
  el: r,
15848
- event: new Gt(o, a.eventRange.def, a.eventRange.instance),
15848
+ event: new Yt(o, a.eventRange.def, a.eventRange.instance),
15849
15849
  jsEvent: e,
15850
15850
  view: o.viewApi
15851
15851
  });
@@ -17464,7 +17464,7 @@ class ja extends Do {
17464
17464
  let l = this.component.context, s = this.eventRange, d = s.instance.instanceId;
17465
17465
  a.isTouch ? d !== this.component.props.eventSelection && l.dispatch({ type: "SELECT_EVENT", eventInstanceId: d }) : l.dispatch({ type: "UNSELECT_EVENT" }), this.isDragging && (l.calendarApi.unselect(a), l.emitter.trigger("eventDragStart", {
17466
17466
  el: this.subjectEl,
17467
- event: new Gt(l, s.def, s.instance),
17467
+ event: new Yt(l, s.def, s.instance),
17468
17468
  jsEvent: a.origEvent,
17469
17469
  view: l.viewApi
17470
17470
  }));
@@ -17487,7 +17487,7 @@ class ja extends Do {
17487
17487
  this.isDragging || this.cleanup();
17488
17488
  }, this.handleDragEnd = (a) => {
17489
17489
  if (this.isDragging) {
17490
- let l = this.component.context, s = l.viewApi, { receivingContext: d, validMutation: c } = this, h = this.eventRange.def, f = this.eventRange.instance, p = new Gt(l, h, f), g = this.relevantEvents, m = this.mutatedRelevantEvents, { finalHit: v } = this.hitDragging;
17490
+ let l = this.component.context, s = l.viewApi, { receivingContext: d, validMutation: c } = this, h = this.eventRange.def, f = this.eventRange.instance, p = new Yt(l, h, f), g = this.relevantEvents, m = this.mutatedRelevantEvents, { finalHit: v } = this.hitDragging;
17491
17491
  if (this.clearDrag(), l.emitter.trigger("eventDragStop", {
17492
17492
  el: this.subjectEl,
17493
17493
  event: p,
@@ -17495,7 +17495,7 @@ class ja extends Do {
17495
17495
  view: s
17496
17496
  }), c) {
17497
17497
  if (d === l) {
17498
- let y = new Gt(l, m.defs[h.defId], f ? m.instances[f.instanceId] : null);
17498
+ let y = new Yt(l, m.defs[h.defId], f ? m.instances[f.instanceId] : null);
17499
17499
  l.dispatch({
17500
17500
  type: "MERGE_EVENTS",
17501
17501
  eventStore: m
@@ -17530,7 +17530,7 @@ class ja extends Do {
17530
17530
  type: "REMOVE_EVENTS",
17531
17531
  eventStore: g
17532
17532
  }), l.emitter.trigger("eventRemove", y);
17533
- let b = m.defs[h.defId], u = m.instances[f.instanceId], w = new Gt(d, b, u);
17533
+ let b = m.defs[h.defId], u = m.instances[f.instanceId], w = new Yt(d, b, u);
17534
17534
  d.dispatch({
17535
17535
  type: "MERGE_EVENTS",
17536
17536
  eventStore: m
@@ -17612,7 +17612,7 @@ class OT extends Do {
17612
17612
  let s = this.querySegEl(o);
17613
17613
  this.draggingSegEl = s, this.draggingSeg = Eo(s), a.calendarApi.unselect(), a.emitter.trigger("eventResizeStart", {
17614
17614
  el: s,
17615
- event: new Gt(a, l.def, l.instance),
17615
+ event: new Yt(a, l.def, l.instance),
17616
17616
  jsEvent: o.origEvent,
17617
17617
  view: a.viewApi
17618
17618
  });
@@ -17627,14 +17627,14 @@ class OT extends Do {
17627
17627
  state: m
17628
17628
  }) : s.dispatch({ type: "UNSET_EVENT_RESIZE" }), g ? Pd() : Bd(), a || (f && $s(c, o) && (f = null), this.validMutation = f, this.mutatedRelevantEvents = p);
17629
17629
  }, this.handleDragEnd = (o) => {
17630
- let { context: a } = this.component, l = this.eventRange.def, s = this.eventRange.instance, d = new Gt(a, l, s), c = this.relevantEvents, h = this.mutatedRelevantEvents;
17630
+ let { context: a } = this.component, l = this.eventRange.def, s = this.eventRange.instance, d = new Yt(a, l, s), c = this.relevantEvents, h = this.mutatedRelevantEvents;
17631
17631
  if (a.emitter.trigger("eventResizeStop", {
17632
17632
  el: this.draggingSegEl,
17633
17633
  event: d,
17634
17634
  jsEvent: o.origEvent,
17635
17635
  view: a.viewApi
17636
17636
  }), this.validMutation) {
17637
- let f = new Gt(a, h.defs[l.defId], s ? h.instances[s.instanceId] : null);
17637
+ let f = new Yt(a, h.defs[l.defId], s ? h.instances[s.instanceId] : null);
17638
17638
  a.dispatch({
17639
17639
  type: "MERGE_EVENTS",
17640
17640
  eventStore: h
@@ -20337,7 +20337,7 @@ const oD = {
20337
20337
  }, 400);
20338
20338
  });
20339
20339
  const m = L(() => {
20340
- let S = Kt(e.config ?? {});
20340
+ let S = Qt(e.config ?? {});
20341
20341
  if (e.preset) {
20342
20342
  const C = oD[e.preset] ?? null;
20343
20343
  C && (S = new C(S, e.presetOptions).handle());
@@ -20453,7 +20453,7 @@ const oD = {
20453
20453
  width: ((P = (R = T(m)) == null ? void 0 : R.boundary) == null ? void 0 : P.width) + "px"
20454
20454
  })
20455
20455
  }, [
20456
- Pe(S.$slots, "header", Zt({
20456
+ Pe(S.$slots, "header", Gt({
20457
20457
  saving: c.value,
20458
20458
  initializing: d.value
20459
20459
  }, A)),
@@ -20524,7 +20524,7 @@ const oD = {
20524
20524
  "model-value": d.value
20525
20525
  }, null, 8, ["model-value"])
20526
20526
  ], 512),
20527
- Pe(S.$slots, "footer", Zt({
20527
+ Pe(S.$slots, "footer", Gt({
20528
20528
  saving: c.value,
20529
20529
  initializing: d.value
20530
20530
  }, A))
@@ -20764,7 +20764,7 @@ const fD = {
20764
20764
  }, {
20765
20765
  default: ge(() => [
20766
20766
  T(i) ? (B(), K("div", pD, [
20767
- T(h).source ? (B(), De(iy, Zt({
20767
+ T(h).source ? (B(), De(iy, Gt({
20768
20768
  key: 0,
20769
20769
  ref_key: "baseCropperRef",
20770
20770
  ref: a,
@@ -21795,7 +21795,7 @@ function qe(n) {
21795
21795
  return n == null || n.value == null ? null : (t = n.value.$el) != null ? t : n.value;
21796
21796
  }
21797
21797
  let dy = Symbol("Context");
21798
- var Qt = ((n) => (n[n.Open = 1] = "Open", n[n.Closed = 2] = "Closed", n[n.Closing = 4] = "Closing", n[n.Opening = 8] = "Opening", n))(Qt || {});
21798
+ var Zt = ((n) => (n[n.Open = 1] = "Open", n[n.Closed = 2] = "Closed", n[n.Closing = 4] = "Closing", n[n.Opening = 8] = "Opening", n))(Zt || {});
21799
21799
  function kD() {
21800
21800
  return Mo() !== null;
21801
21801
  }
@@ -22515,7 +22515,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
22515
22515
  pt(() => {
22516
22516
  a.value = !0;
22517
22517
  });
22518
- let l = oe(0), s = Mo(), d = L(() => n.open === vl && s !== null ? (s.value & Qt.Open) === Qt.Open : n.open), c = oe(null), h = L(() => ir(c));
22518
+ let l = oe(0), s = Mo(), d = L(() => n.open === vl && s !== null ? (s.value & Zt.Open) === Zt.Open : n.open), c = oe(null), h = L(() => ir(c));
22519
22519
  if (i({ el: c, $el: c }), !(n.open !== vl || s !== null))
22520
22520
  throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
22521
22521
  if (typeof d.value != "boolean")
@@ -22523,7 +22523,7 @@ let vl = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oO = Se({ name: "Dialog", inher
22523
22523
  let f = L(() => a.value && d.value ? 0 : 1), p = L(() => f.value === 0), g = L(() => l.value > 1), m = wt(Vc, null) !== null, [v, y] = wy(), { resolveContainers: b, mainTreeNodeRef: u, MainTreeNode: w } = ky({ portals: v, defaultContainers: [L(() => {
22524
22524
  var Z;
22525
22525
  return (Z = R.panelRef.value) != null ? Z : c.value;
22526
- })] }), x = L(() => g.value ? "parent" : "leaf"), _ = L(() => s !== null ? (s.value & Qt.Closing) === Qt.Closing : !1), k = L(() => m || _.value ? !1 : p.value), E = L(() => {
22526
+ })] }), x = L(() => g.value ? "parent" : "leaf"), _ = L(() => s !== null ? (s.value & Zt.Closing) === Zt.Closing : !1), k = L(() => m || _.value ? !1 : p.value), E = L(() => {
22527
22527
  var Z, pe, ne;
22528
22528
  return (ne = Array.from((pe = (Z = h.value) == null ? void 0 : Z.querySelectorAll("body > *")) != null ? pe : []).find((z) => z.id === "headlessui-portal-root" ? !1 : z.contains(qe(u)) && z instanceof HTMLElement)) != null ? ne : null;
22529
22529
  });
@@ -22700,7 +22700,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22700
22700
  return gf([i, o], (f, p) => {
22701
22701
  var g;
22702
22702
  h.closeMenu(), Us(p, qs.Loose) || (f.preventDefault(), (g = qe(i)) == null || g.focus());
22703
- }, L(() => r.value === 0)), gt(Ay, h), pf(L(() => bn(r.value, { 0: Qt.Open, 1: Qt.Closed }))), () => {
22703
+ }, L(() => r.value === 0)), gt(Ay, h), pf(L(() => bn(r.value, { 0: Zt.Open, 1: Zt.Closed }))), () => {
22704
22704
  let f = { open: r.value === 0, close: h.closeMenu };
22705
22705
  return Vt({ ourProps: {}, theirProps: n, slot: f, slots: t, attrs: e, name: "Menu" });
22706
22706
  };
@@ -22798,7 +22798,7 @@ let fO = Se({ name: "Menu", props: { as: { type: [Object, String], default: "tem
22798
22798
  break;
22799
22799
  }
22800
22800
  }
22801
- let s = Mo(), d = L(() => s !== null ? (s.value & Qt.Open) === Qt.Open : i.menuState.value === 0);
22801
+ let s = Mo(), d = L(() => s !== null ? (s.value & Zt.Open) === Zt.Open : i.menuState.value === 0);
22802
22802
  return () => {
22803
22803
  var c, h;
22804
22804
  let f = { open: i.menuState.value === 0 }, { id: p, ...g } = n, m = { "aria-activedescendant": i.activeItemIndex.value === null || (c = i.items.value[i.activeItemIndex.value]) == null ? void 0 : c.id, "aria-labelledby": (h = qe(i.buttonRef)) == null ? void 0 : h.id, id: p, onKeydown: a, onKeyup: l, role: "menu", tabIndex: 0, ref: i.itemsRef };
@@ -22881,7 +22881,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
22881
22881
  let _ = (() => x ? x instanceof HTMLElement ? x : x.value instanceof HTMLElement ? qe(x) : qe(p.button) : qe(p.button))();
22882
22882
  _ == null || _.focus();
22883
22883
  } };
22884
- gt(Cy, p), pf(L(() => bn(a.value, { 0: Qt.Open, 1: Qt.Closed })));
22884
+ gt(Cy, p), pf(L(() => bn(a.value, { 0: Zt.Open, 1: Zt.Closed })));
22885
22885
  let g = { buttonId: p.buttonId, panelId: p.panelId, close() {
22886
22886
  p.closePopover();
22887
22887
  } }, m = Dy(), v = m == null ? void 0 : m.registerPopover, [y, b] = wy(), u = ky({ mainTreeNodeRef: m == null ? void 0 : m.mainTreeNodeRef, portals: y, defaultContainers: [l, c] });
@@ -22963,7 +22963,7 @@ let Ry = Se({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, S
22963
22963
  };
22964
22964
  } });
22965
22965
  Se({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(n, { attrs: t, slots: e }) {
22966
- let r = Ws("PopoverOverlay"), i = `headlessui-popover-overlay-${hn()}`, o = Mo(), a = L(() => o !== null ? (o.value & Qt.Open) === Qt.Open : r.popoverState.value === 0);
22966
+ let r = Ws("PopoverOverlay"), i = `headlessui-popover-overlay-${hn()}`, o = Mo(), a = L(() => o !== null ? (o.value & Zt.Open) === Zt.Open : r.popoverState.value === 0);
22967
22967
  function l() {
22968
22968
  r.closePopover();
22969
22969
  }
@@ -22985,7 +22985,7 @@ let yO = Se({ name: "PopoverPanel", props: { as: { type: [Object, String], defau
22985
22985
  let b = (v = a.value) == null ? void 0 : v.activeElement;
22986
22986
  (y = qe(o.panel)) != null && y.contains(b) || tr(qe(o.panel), dn.First);
22987
22987
  });
22988
- let d = Mo(), c = L(() => d !== null ? (d.value & Qt.Open) === Qt.Open : o.popoverState.value === 0);
22988
+ let d = Mo(), c = L(() => d !== null ? (d.value & Zt.Open) === Zt.Open : o.popoverState.value === 0);
22989
22989
  function h(v) {
22990
22990
  var y, b;
22991
22991
  switch (v.key) {
@@ -23222,16 +23222,16 @@ function Py(n) {
23222
23222
  let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(n, { emit: t, attrs: e, slots: r, expose: i }) {
23223
23223
  let o = oe(0);
23224
23224
  function a() {
23225
- o.value |= Qt.Opening, t("beforeEnter");
23225
+ o.value |= Zt.Opening, t("beforeEnter");
23226
23226
  }
23227
23227
  function l() {
23228
- o.value &= ~Qt.Opening, t("afterEnter");
23228
+ o.value &= ~Zt.Opening, t("afterEnter");
23229
23229
  }
23230
23230
  function s() {
23231
- o.value |= Qt.Closing, t("beforeLeave");
23231
+ o.value |= Zt.Closing, t("beforeLeave");
23232
23232
  }
23233
23233
  function d() {
23234
- o.value &= ~Qt.Closing, t("afterLeave");
23234
+ o.value &= ~Zt.Closing, t("afterLeave");
23235
23235
  }
23236
23236
  if (!CO() && kD())
23237
23237
  return () => xt(Ly, { ...n, onBeforeEnter: a, onAfterEnter: l, onBeforeLeave: s, onAfterLeave: d }, r);
@@ -23274,12 +23274,12 @@ let By = kr.RenderStrategy, zl = Se({ props: { as: { type: [Object, String], def
23274
23274
  ut([f], (R, P, $) => {
23275
23275
  C($), y.value = !1;
23276
23276
  }, { immediate: !0 });
23277
- }), gt(xf, w), pf(L(() => bn(v.value, { visible: Qt.Open, hidden: Qt.Closed }) | o.value)), () => {
23277
+ }), gt(xf, w), pf(L(() => bn(v.value, { visible: Zt.Open, hidden: Zt.Closed }) | o.value)), () => {
23278
23278
  let { appear: R, show: P, enter: $, enterFrom: Y, enterTo: Z, entered: pe, leave: ne, leaveFrom: z, leaveTo: N, ...q } = n, F = { ref: c }, se = { ...q, ...p.value && f.value && Fa.isServer ? { class: de([e.class, q.class, ...x, ..._]) } : {} };
23279
23279
  return Vt({ theirProps: se, ourProps: F, slot: {}, slots: r, attrs: e, features: By, visible: v.value === "visible", name: "TransitionChild" });
23280
23280
  };
23281
23281
  } }), OO = zl, Ly = Se({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(n, { emit: t, attrs: e, slots: r }) {
23282
- let i = Mo(), o = L(() => n.show === null && i !== null ? (i.value & Qt.Open) === Qt.Open : n.show);
23282
+ let i = Mo(), o = L(() => n.show === null && i !== null ? (i.value & Zt.Open) === Zt.Open : n.show);
23283
23283
  un(() => {
23284
23284
  if (![!0, !1].includes(o.value))
23285
23285
  throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
@@ -24075,7 +24075,7 @@ const RO = { class: "grow" }, MO = {
24075
24075
  });
24076
24076
  const p = oe(!1), g = oe(!0), m = oe(!1), v = oe("");
24077
24077
  let y = "", b = "";
24078
- const u = oe(Kt(r.defaultQuery)), w = Xp(), x = L(() => r.layout === "compact" ? !0 : f.value < 1024), _ = L(() => w.filters !== void 0), k = oe(!1), E = oe(null);
24078
+ const u = oe(Qt(r.defaultQuery)), w = Xp(), x = L(() => r.layout === "compact" ? !0 : f.value < 1024), _ = L(() => w.filters !== void 0), k = oe(!1), E = oe(null);
24079
24079
  function D() {
24080
24080
  var Te;
24081
24081
  k.value = (((Te = E == null ? void 0 : E.value) == null ? void 0 : Te.childElementCount) ?? 0) > 0;
@@ -24095,7 +24095,7 @@ const RO = { class: "grow" }, MO = {
24095
24095
  }
24096
24096
  );
24097
24097
  function S(Te, Ce) {
24098
- let I = Kt(u.value);
24098
+ let I = Qt(u.value);
24099
24099
  I = bu(I, Te, Ce), I = bu(I, "page", 1), R(I);
24100
24100
  }
24101
24101
  function C(Te) {
@@ -24127,17 +24127,17 @@ const RO = { class: "grow" }, MO = {
24127
24127
  }
24128
24128
  const $ = L(() => r.url);
24129
24129
  function Y(Te) {
24130
- const Ce = Kt(u.value);
24130
+ const Ce = Qt(u.value);
24131
24131
  Ce.page = Te, R(Ce), ye();
24132
24132
  }
24133
24133
  function Z(Te, Ce) {
24134
24134
  let I = Te;
24135
24135
  I && Ce == "desc" && (I = "-" + I);
24136
- const X = Kt(u.value);
24136
+ const X = Qt(u.value);
24137
24137
  X.page = 1, X.sort = I, R(X);
24138
24138
  }
24139
24139
  const pe = nr((Te) => {
24140
- const Ce = Kt(u.value);
24140
+ const Ce = Qt(u.value);
24141
24141
  Ce.page = 1, Ce.search = v.value, R(Ce);
24142
24142
  }, 350);
24143
24143
  ut(
@@ -24177,9 +24177,9 @@ const RO = { class: "grow" }, MO = {
24177
24177
  if (h)
24178
24178
  return;
24179
24179
  const I = $.value.split(/[?#]/), X = I[0], ee = I[1] ?? null, le = $t.parseQueryString(ee), U = Wl(
24180
- Kt(u.value),
24181
- Kt(r.urlQuery),
24182
- Kt(le)
24180
+ Qt(u.value),
24181
+ Qt(r.urlQuery),
24182
+ Qt(le)
24183
24183
  ), ae = $t.formatQueryString(U), ve = X + "?" + ae;
24184
24184
  y == ve && !Te || (Ce && (g.value = !0), y = ve, i.get(ve).then((Ie) => {
24185
24185
  se.value = Ie.data, g.value = !1, m.value = !1, p.value = !0, e("fetch", se.value);
@@ -24208,7 +24208,7 @@ const RO = { class: "grow" }, MO = {
24208
24208
  G.value.current_page * G.value.per_page,
24209
24209
  G.value.total
24210
24210
  ));
24211
- let tt = Kt(u.value);
24211
+ let tt = Qt(u.value);
24212
24212
  const Ee = ne();
24213
24213
  tt = Wl(tt, Ee), R(tt), pt(() => {
24214
24214
  Oe();
@@ -24782,7 +24782,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
24782
24782
  }, null, 8, ER)
24783
24783
  ])
24784
24784
  ], 4)) : ke("", !0),
24785
- (B(!0), K(Je, null, dt(T(w), (Ce, I) => (B(), K("th", Zt({
24785
+ (B(!0), K(Je, null, dt(T(w), (Ce, I) => (B(), K("th", Gt({
24786
24786
  key: Ce.newKey + ":" + I + "header"
24787
24787
  }, Ce.thAttrs && Ce.thAttrs(Ce), {
24788
24788
  style: [
@@ -24880,7 +24880,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
24880
24880
  }, null, 8, NR)
24881
24881
  ])
24882
24882
  ], 14, MR)) : ke("", !0),
24883
- (B(!0), K(Je, null, dt(T(w), (X, ee) => (B(), De(T(dR), Zt({
24883
+ (B(!0), K(Je, null, dt(T(w), (X, ee) => (B(), De(T(dR), Gt({
24884
24884
  key: X.newKey + I + ":" + ee
24885
24885
  }, X.tdAttrs && X.tdAttrs(Ce, X), {
24886
24886
  component: X,
@@ -25105,7 +25105,7 @@ const $y = /* @__PURE__ */ pi(fR, [["render", gR]]), vR = { class: "flex flex-co
25105
25105
  });
25106
25106
  function i(o, a) {
25107
25107
  const l = o.target.checked;
25108
- let s = Kt(e.visibleColumns);
25108
+ let s = Qt(e.visibleColumns);
25109
25109
  l ? s.includes(a) || s.push(a) : s = s.filter((d) => d != a), t("update:visibleColumns", s);
25110
25110
  }
25111
25111
  return (o, a) => (B(), K("ul", null, [
@@ -25442,7 +25442,7 @@ const Uy = /* @__PURE__ */ pi(YR, [["render", XR]]), JR = ["disabled"], eM = /*
25442
25442
  icon: "heroicons:cog-6-tooth-solid",
25443
25443
  to: (N) => r.editUrl ? r.editUrl(N) : "",
25444
25444
  disabled: (N) => !g(N)
25445
- }), z.push(...Kt(r.rowActions) ?? []), r.deleteUrl && r.deleteButton && z.push({
25445
+ }), z.push(...Qt(r.rowActions) ?? []), r.deleteUrl && r.deleteButton && z.push({
25446
25446
  label: ze("sui.delete"),
25447
25447
  icon: "heroicons:trash-20-solid",
25448
25448
  action: v,
@@ -29375,7 +29375,7 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29375
29375
  if (r.disabled)
29376
29376
  return;
29377
29377
  R();
29378
- let se = Kt(w.value);
29378
+ let se = Qt(w.value);
29379
29379
  se = se.filter((ie) => ie.value != F.value), S(se);
29380
29380
  }, pe = L(() => {
29381
29381
  const F = "relative z-[1] input-rounded border bg-white flex flex-wrap", se = o.value ? "border-red-600" : "border-slate-300", ie = {
@@ -29629,10 +29629,10 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29629
29629
  Pe(u.$slots, "option", zt(jt(x)))
29630
29630
  ]),
29631
29631
  footer: ge((x) => [
29632
- Pe(u.$slots, "footer", Zt(x, { keywords: T(s) }))
29632
+ Pe(u.$slots, "footer", Gt(x, { keywords: T(s) }))
29633
29633
  ]),
29634
29634
  empty: ge((x) => [
29635
- Pe(u.$slots, "empty", Zt(x, { firstSearch: T(l) }), () => [
29635
+ Pe(u.$slots, "empty", Gt(x, { firstSearch: T(l) }), () => [
29636
29636
  T(l) ? (B(), K("div", HM, Me(T(ze)("sui.nothing_found")), 1)) : ke("", !0)
29637
29637
  ])
29638
29638
  ]),
@@ -29731,11 +29731,11 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29731
29731
  placement: n.placement
29732
29732
  }, {
29733
29733
  button: ge((p) => [
29734
- Pe(c.$slots, "button", Zt(p, { newValue: T(o) }))
29734
+ Pe(c.$slots, "button", Gt(p, { newValue: T(o) }))
29735
29735
  ]),
29736
29736
  dropdown: ge(({ close: p }) => [
29737
29737
  j("div", qM, [
29738
- (B(), De(hr(T(r)), Zt({
29738
+ (B(), De(hr(T(r)), Gt({
29739
29739
  ref_key: "autocomplete",
29740
29740
  ref: i,
29741
29741
  "model-value": T(o),
@@ -29971,13 +29971,13 @@ const BM = /* @__PURE__ */ Co(PM), LM = { class: "text-xs text-slate-600" }, Yy
29971
29971
  label: d(p)
29972
29972
  }, {
29973
29973
  default: ge(() => [
29974
- n.component == "BaseInput" ? (B(), De(ur, Zt({
29974
+ n.component == "BaseInput" ? (B(), De(ur, Gt({
29975
29975
  key: 0,
29976
29976
  "model-value": T(l)[g] + "",
29977
29977
  class: "w-full bg-white"
29978
29978
  }, n.componentProps, {
29979
29979
  "onUpdate:modelValue": (m) => s(m, g + "")
29980
- }), null, 16, ["model-value", "onUpdate:modelValue"])) : n.component == "BaseTextarea" ? (B(), De(Qc, Zt({
29980
+ }), null, 16, ["model-value", "onUpdate:modelValue"])) : n.component == "BaseTextarea" ? (B(), De(Qc, Gt({
29981
29981
  key: 1,
29982
29982
  "model-value": T(l)[g] + "",
29983
29983
  required: T(i),
@@ -30342,13 +30342,13 @@ const JM = ["disabled"], eI = ["accept", "multiple"], _f = /* @__PURE__ */ Se({
30342
30342
  });
30343
30343
  }
30344
30344
  return (c, h) => (B(), K("div", nI, [
30345
- (B(), De(hr(T(o)), Zt(T(a), { onSelect: s }), {
30345
+ (B(), De(hr(T(o)), Gt(T(a), { onSelect: s }), {
30346
30346
  default: ge((f) => [
30347
- Pe(c.$slots, "default", Zt({
30347
+ Pe(c.$slots, "default", Gt({
30348
30348
  uploading: T(l),
30349
30349
  loading: c.loading
30350
30350
  }, f)),
30351
- Pe(c.$slots, "loading", Zt({
30351
+ Pe(c.$slots, "loading", Gt({
30352
30352
  uploading: T(l),
30353
30353
  loading: c.loading
30354
30354
  }, f), () => [
@@ -31243,7 +31243,7 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31243
31243
  var d;
31244
31244
  r.value = ((d = e.value) == null ? void 0 : d.clientWidth) ?? 800;
31245
31245
  });
31246
- const i = L(() => t.layout === "compact" ? !0 : r.value < 500), o = L(() => i.value ? 1 : Math.max(1, t.maxActions)), a = L(() => t.actions ? Kt(t.actions).sort(l(!1)).slice(0, o.value).sort(l(!0)) : []);
31246
+ const i = L(() => t.layout === "compact" ? !0 : r.value < 500), o = L(() => i.value ? 1 : Math.max(1, t.maxActions)), a = L(() => t.actions ? Qt(t.actions).sort(l(!1)).slice(0, o.value).sort(l(!0)) : []);
31247
31247
  function l(d = !1) {
31248
31248
  const c = ["secondary", "primary"];
31249
31249
  return (h, f) => d ? c.indexOf(h.color ?? "") - c.indexOf(f.color ?? "") : c.indexOf(f.color ?? "") - c.indexOf(h.color ?? "");
@@ -31265,16 +31265,15 @@ const hI = ["onClick"], pI = { class: "px-2 flex items-center" }, mI = { class:
31265
31265
  j("div", zI, [
31266
31266
  j("h1", jI, Me(d.title), 1),
31267
31267
  d.badge ? (B(), K("div", FI, [
31268
- xe(Rd, {
31269
- color: d.badge.color,
31270
- icon: d.badge.icon,
31271
- class: "relative xs:-bottom-[2px]"
31272
- }, {
31273
- default: ge(() => [
31274
- zn(Me(d.badge.label), 1)
31275
- ]),
31268
+ xe(Rd, Gt(d.badge, { class: "relative xs:-bottom-[2px]" }), {
31269
+ default: ge(() => {
31270
+ var h;
31271
+ return [
31272
+ zn(Me((h = d.badge) == null ? void 0 : h.label), 1)
31273
+ ];
31274
+ }),
31276
31275
  _: 1
31277
- }, 8, ["color", "icon"])
31276
+ }, 16)
31278
31277
  ])) : ke("", !0)
31279
31278
  ]),
31280
31279
  d.subtitle ? (B(), K("h2", {
@@ -32098,7 +32097,7 @@ var xN = ["evt"], Nn = function(t, e) {
32098
32097
  rootEl: Wt,
32099
32098
  nextEl: Ci,
32100
32099
  lastDownEl: $l,
32101
- cloneEl: Yt,
32100
+ cloneEl: Kt,
32102
32101
  cloneHidden: Jr,
32103
32102
  dragStarted: ta,
32104
32103
  putSortable: vn,
@@ -32128,7 +32127,7 @@ var xN = ["evt"], Nn = function(t, e) {
32128
32127
  function On(n) {
32129
32128
  wN(Ar({
32130
32129
  putSortable: vn,
32131
- cloneEl: Yt,
32130
+ cloneEl: Kt,
32132
32131
  targetEl: He,
32133
32132
  rootEl: Wt,
32134
32133
  oldIndex: ao,
@@ -32137,7 +32136,7 @@ function On(n) {
32137
32136
  newDraggableIndex: Xr
32138
32137
  }, n));
32139
32138
  }
32140
- var He, Jt, bt, Wt, Ci, $l, Yt, Jr, ao, Un, ga, Xr, xl, vn, io = !1, ps = !1, ms = [], Si, sr, Xu, Ju, zp, jp, ta, no, va, ya = !1, El = !1, Hl, Sn, ec = [], Jc = !1, gs = [], Ys = typeof document < "u", Sl = Jy, Fp = Ua || Wr ? "cssFloat" : "float", EN = Ys && !eb && !Jy && "draggable" in document.createElement("div"), ab = function() {
32139
+ var He, Jt, bt, Wt, Ci, $l, Kt, Jr, ao, Un, ga, Xr, xl, vn, io = !1, ps = !1, ms = [], Si, sr, Xu, Ju, zp, jp, ta, no, va, ya = !1, El = !1, Hl, Sn, ec = [], Jc = !1, gs = [], Ys = typeof document < "u", Sl = Jy, Fp = Ua || Wr ? "cssFloat" : "float", EN = Ys && !eb && !Jy && "draggable" in document.createElement("div"), ab = function() {
32141
32140
  if (Ys) {
32142
32141
  if (Wr)
32143
32142
  return !1;
@@ -32447,8 +32446,8 @@ ht.prototype = /** @lends Sortable.prototype */
32447
32446
  this._onDrop();
32448
32447
  return;
32449
32448
  }
32450
- Nn("setupClone", this), ht.eventCanceled || (Yt = ob(He), Yt.removeAttribute("id"), Yt.draggable = !1, Yt.style["will-change"] = "", this._hideClone(), qn(Yt, this.options.chosenClass, !1), ht.clone = Yt), r.cloneId = ql(function() {
32451
- Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide || Wt.insertBefore(Yt, He), r._hideClone(), On({
32449
+ Nn("setupClone", this), ht.eventCanceled || (Kt = ob(He), Kt.removeAttribute("id"), Kt.draggable = !1, Kt.style["will-change"] = "", this._hideClone(), qn(Kt, this.options.chosenClass, !1), ht.clone = Kt), r.cloneId = ql(function() {
32450
+ Nn("clone", r), !ht.eventCanceled && (r.options.removeCloneOnHide || Wt.insertBefore(Kt, He), r._hideClone(), On({
32452
32451
  sortable: r,
32453
32452
  name: "clone"
32454
32453
  }));
@@ -32559,7 +32558,7 @@ ht.prototype = /** @lends Sortable.prototype */
32559
32558
  this._nulling();
32560
32559
  return;
32561
32560
  }
32562
- io = !1, El = !1, ya = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ed(this.cloneId), ed(this._dragStartId), this.nativeDraggable && (Ct(document, "drop", this), Ct(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pa && ft(document.body, "user-select", ""), ft(He, "transform", ""), t && (ta && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (Wt === Jt || vn && vn.lastPutMode !== "clone") && Yt && Yt.parentNode && Yt.parentNode.removeChild(Yt), He && (this.nativeDraggable && Ct(He, "dragend", this), tc(He), He.style["will-change"] = "", ta && !io && qn(He, vn ? vn.options.ghostClass : this.options.ghostClass, !1), qn(He, this.options.chosenClass, !1), On({
32561
+ io = !1, El = !1, ya = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ed(this.cloneId), ed(this._dragStartId), this.nativeDraggable && (Ct(document, "drop", this), Ct(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pa && ft(document.body, "user-select", ""), ft(He, "transform", ""), t && (ta && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (Wt === Jt || vn && vn.lastPutMode !== "clone") && Kt && Kt.parentNode && Kt.parentNode.removeChild(Kt), He && (this.nativeDraggable && Ct(He, "dragend", this), tc(He), He.style["will-change"] = "", ta && !io && qn(He, vn ? vn.options.ghostClass : this.options.ghostClass, !1), qn(He, this.options.chosenClass, !1), On({
32563
32562
  sortable: this,
32564
32563
  name: "unchoose",
32565
32564
  toEl: Jt,
@@ -32606,7 +32605,7 @@ ht.prototype = /** @lends Sortable.prototype */
32606
32605
  }), this.save()))), this._nulling();
32607
32606
  },
32608
32607
  _nulling: function() {
32609
- Nn("nulling", this), Wt = He = Jt = bt = Ci = Yt = $l = Jr = Si = sr = ta = Un = Xr = ao = ga = no = va = vn = xl = ht.dragged = ht.ghost = ht.clone = ht.active = null, gs.forEach(function(t) {
32608
+ Nn("nulling", this), Wt = He = Jt = bt = Ci = Kt = $l = Jr = Si = sr = ta = Un = Xr = ao = ga = no = va = vn = xl = ht.dragged = ht.ghost = ht.clone = ht.active = null, gs.forEach(function(t) {
32610
32609
  t.checked = !0;
32611
32610
  }), gs.length = Xu = Ju = 0;
32612
32611
  },
@@ -32690,7 +32689,7 @@ ht.prototype = /** @lends Sortable.prototype */
32690
32689
  if (!Jr) {
32691
32690
  if (Nn("hideClone", this), ht.eventCanceled)
32692
32691
  return;
32693
- ft(Yt, "display", "none"), this.options.removeCloneOnHide && Yt.parentNode && Yt.parentNode.removeChild(Yt), Jr = !0;
32692
+ ft(Kt, "display", "none"), this.options.removeCloneOnHide && Kt.parentNode && Kt.parentNode.removeChild(Kt), Jr = !0;
32694
32693
  }
32695
32694
  },
32696
32695
  _showClone: function(t) {
@@ -32701,7 +32700,7 @@ ht.prototype = /** @lends Sortable.prototype */
32701
32700
  if (Jr) {
32702
32701
  if (Nn("showClone", this), ht.eventCanceled)
32703
32702
  return;
32704
- He.parentNode == Wt && !this.options.group.revertClone ? Wt.insertBefore(Yt, He) : Ci ? Wt.insertBefore(Yt, Ci) : Wt.appendChild(Yt), this.options.group.revertClone && this.animate(He, Yt), ft(Yt, "display", ""), Jr = !1;
32703
+ He.parentNode == Wt && !this.options.group.revertClone ? Wt.insertBefore(Kt, He) : Ci ? Wt.insertBefore(Kt, Ci) : Wt.appendChild(Kt), this.options.group.revertClone && this.animate(He, Kt), ft(Kt, "display", ""), Jr = !1;
32705
32704
  }
32706
32705
  }
32707
32706
  };
@@ -32950,7 +32949,7 @@ const Rf = /* @__PURE__ */ Se({
32950
32949
  disabled: e.disabled,
32951
32950
  onEnd: (l) => {
32952
32951
  if (l.oldIndex !== void 0 && l.newIndex !== void 0) {
32953
- const s = Kt(e.modelValue), d = a(
32952
+ const s = Qt(e.modelValue), d = a(
32954
32953
  s,
32955
32954
  l.oldIndex,
32956
32955
  l.newIndex
@@ -33035,7 +33034,7 @@ const Rf = /* @__PURE__ */ Se({
33035
33034
  }, 100));
33036
33035
  }
33037
33036
  function p() {
33038
- const g = h.value, m = Kt(e.media);
33037
+ const g = h.value, m = Qt(e.media);
33039
33038
  m.name = (g == null ? void 0 : g.value) ?? "";
33040
33039
  const v = m.file_name.split(".").pop();
33041
33040
  m.file_name = m.name + "." + v, l.value = "show", t("update", m);
@@ -33150,7 +33149,7 @@ const Rf = /* @__PURE__ */ Se({
33150
33149
  setup(n, { emit: t }) {
33151
33150
  const e = n;
33152
33151
  function r(o, a) {
33153
- const l = Kt(e.modelValue);
33152
+ const l = Qt(e.modelValue);
33154
33153
  l[o] = a, t("update:modelValue", l);
33155
33154
  }
33156
33155
  function i(o) {
@@ -33555,7 +33554,7 @@ const Rf = /* @__PURE__ */ Se({
33555
33554
  if (x.length == 0)
33556
33555
  return;
33557
33556
  f.value = !0;
33558
- let _ = Kt(s.value);
33557
+ let _ = Qt(s.value);
33559
33558
  for (const k of x) {
33560
33559
  if (d.value && _.length >= d.value && d.value > 1) {
33561
33560
  i.push({
@@ -33583,7 +33582,7 @@ const Rf = /* @__PURE__ */ Se({
33583
33582
  });
33584
33583
  }
33585
33584
  function v(x, _ = 1) {
33586
- const k = Kt(s.value);
33585
+ const k = Qt(s.value);
33587
33586
  k.splice(x, _), y(k);
33588
33587
  }
33589
33588
  function y(x) {
@@ -33616,7 +33615,7 @@ const Rf = /* @__PURE__ */ Se({
33616
33615
  onEnd: w
33617
33616
  }, {
33618
33617
  default: ge((k) => [
33619
- Pe(x.$slots, "default", Zt(k, {
33618
+ Pe(x.$slots, "default", Gt(k, {
33620
33619
  maxSize: n.maxSize,
33621
33620
  max: T(d)
33622
33621
  }), () => [
@@ -33654,19 +33653,19 @@ const Rf = /* @__PURE__ */ Se({
33654
33653
  remove: m,
33655
33654
  "onUpdate:modelValue": y
33656
33655
  }, () => [
33657
- n.layout == "images" ? (B(), De(rP, Zt({ key: 0 }, n.listProps, {
33656
+ n.layout == "images" ? (B(), De(rP, Gt({ key: 0 }, n.listProps, {
33658
33657
  "model-value": T(s),
33659
33658
  disabled: T(g),
33660
33659
  draggable: n.draggable,
33661
33660
  "onUpdate:modelValue": y,
33662
33661
  onRemove: _[0] || (_[0] = (k) => m(k))
33663
- }), null, 16, ["model-value", "disabled", "draggable"])) : n.layout == "list" ? (B(), De(ZN, Zt({ key: 1 }, n.listProps, {
33662
+ }), null, 16, ["model-value", "disabled", "draggable"])) : n.layout == "list" ? (B(), De(ZN, Gt({ key: 1 }, n.listProps, {
33664
33663
  "model-value": T(s),
33665
33664
  disabled: T(g),
33666
33665
  draggable: n.draggable,
33667
33666
  "onUpdate:modelValue": y,
33668
33667
  onRemove: _[1] || (_[1] = (k) => m(k))
33669
- }), null, 16, ["model-value", "disabled", "draggable"])) : n.layout == "gallery" ? (B(), De(fP, Zt({ key: 2 }, n.listProps, {
33668
+ }), null, 16, ["model-value", "disabled", "draggable"])) : n.layout == "gallery" ? (B(), De(fP, Gt({ key: 2 }, n.listProps, {
33670
33669
  "model-value": T(s),
33671
33670
  disabled: T(g),
33672
33671
  draggable: n.draggable,
@@ -44758,7 +44757,7 @@ const NB = /* @__PURE__ */ pi(CB, [["render", IB]]), PB = /* @__PURE__ */ j("spa
44758
44757
  ]),
44759
44758
  _: 2
44760
44759
  }, 1032, ["color", "to", "action", "closable", "onClose"]))), 128)),
44761
- xe(fb, Zt(o.navbar, {
44760
+ xe(fb, Gt(o.navbar, {
44762
44761
  dark: o.dark,
44763
44762
  size: o.size
44764
44763
  }), {
@@ -1,4 +1,8 @@
1
1
  import { Breadcrumb, ActionItem } from '@/types';
2
+ import BaseBadge from './BaseBadge.vue';
3
+ type BaseBadgeProps = InstanceType<typeof BaseBadge>["$props"] & {
4
+ label: string;
5
+ };
2
6
  declare const _default: import("vue").DefineComponent<{
3
7
  title: {
4
8
  type: import("vue").PropType<string>;
@@ -28,11 +32,7 @@ declare const _default: import("vue").DefineComponent<{
28
32
  default: undefined;
29
33
  };
30
34
  badge: {
31
- type: import("vue").PropType<{
32
- icon: string;
33
- label: string;
34
- color: string;
35
- }>;
35
+ type: import("vue").PropType<BaseBadgeProps>;
36
36
  default: undefined;
37
37
  };
38
38
  maxActions: {
@@ -68,11 +68,7 @@ declare const _default: import("vue").DefineComponent<{
68
68
  default: undefined;
69
69
  };
70
70
  badge: {
71
- type: import("vue").PropType<{
72
- icon: string;
73
- label: string;
74
- color: string;
75
- }>;
71
+ type: import("vue").PropType<BaseBadgeProps>;
76
72
  default: undefined;
77
73
  };
78
74
  maxActions: {
@@ -88,11 +84,7 @@ declare const _default: import("vue").DefineComponent<{
88
84
  label: string;
89
85
  }[];
90
86
  subtitle: string;
91
- badge: {
92
- icon: string;
93
- label: string;
94
- color: string;
95
- };
87
+ badge: BaseBadgeProps;
96
88
  maxActions: number;
97
89
  }, {}>;
98
90
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.41",
3
+ "version": "0.6.42",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -18,11 +18,10 @@
18
18
  class="order-1 mb-1 xs:order-2 xs:mb-0"
19
19
  >
20
20
  <BaseBadge
21
- :color="badge.color"
22
- :icon="badge.icon"
21
+ v-bind="badge"
23
22
  class="relative xs:-bottom-[2px]"
24
23
  >
25
- {{ badge.label }}
24
+ {{ badge?.label }}
26
25
  </BaseBadge>
27
26
  </div>
28
27
  </div>
@@ -106,13 +105,17 @@ import BaseBadge from './BaseBadge.vue';
106
105
  import BaseMenu from './BaseMenu.vue';
107
106
  import { cloneDeep } from 'lodash';
108
107
 
108
+ type BaseBadgeProps = InstanceType<typeof BaseBadge>["$props"] & {
109
+ label: string;
110
+ };
111
+
109
112
  const props = withDefaults(
110
113
  defineProps<{
111
114
  title: string;
112
115
  subtitle?: string;
113
116
  attributes?: { icon: string; label: string }[];
114
117
  actions?: ActionItem[];
115
- badge?: { icon: string; label: string; color: string };
118
+ badge?: BaseBadgeProps;
116
119
  layout?: 'default' | 'compact';
117
120
  breadcrumbs?: Breadcrumb[];
118
121
  maxActions?: number;