hanap-labs 4.1.0 → 4.1.2

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,8 +1,8 @@
1
- import { i as e, n as t, r as n, s as r, t as i } from "./usePopup-DVekAEps.js";
2
- import { Fragment as a, Teleport as o, Transition as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, customRef as g, defineComponent as _, getCurrentInstance as v, getCurrentScope as y, h as b, isRef as x, mergeModels as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, onMounted as O, onScopeDispose as k, onUnmounted as ee, openBlock as A, readonly as te, ref as j, render as ne, renderList as M, renderSlot as N, resolveDynamicComponent as re, shallowRef as P, toDisplayString as F, toRef as I, toValue as L, unref as R, useId as ie, useModel as ae, useSlots as oe, vModelCheckbox as se, vModelDynamic as ce, vModelText as le, watch as z, watchEffect as ue, withCtx as B, withDirectives as V, withModifiers as de } from "vue";
1
+ import { i as e, n as t, r as n, s as r, t as i } from "./usePopup-BdVwAd1y.js";
2
+ import { Fragment as a, Teleport as o, Transition as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, customRef as g, defineComponent as _, getCurrentInstance as v, getCurrentScope as y, h as b, isRef as x, mergeModels as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, onMounted as O, onScopeDispose as k, onUnmounted as ee, openBlock as A, readonly as te, ref as j, render as ne, renderList as M, renderSlot as N, resolveDynamicComponent as re, shallowRef as P, toDisplayString as F, toRef as I, toValue as L, unref as R, useId as ie, useModel as ae, useSlots as oe, vModelCheckbox as se, vModelDynamic as ce, vModelText as le, watch as z, watchEffect as ue, withCtx as B, withDirectives as de, withModifiers as fe } from "vue";
3
3
  //#endregion
4
4
  //#region src/components/hl-icon/HLIcon.registry.ts
5
- var fe = /* @__PURE__ */ Object.assign({
5
+ var pe = /* @__PURE__ */ Object.assign({
6
6
  "../../assets/icons/account-check.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"9\" cy=\"8\" r=\"4\" />\n <path d=\"M3 20c1.5-3.5 4.5-5 6-5s4.5 1.5 6 5\" />\n <path d=\"m15.5 12.5 1.5 1.5 3-3\" />\n</svg>",
7
7
  "../../assets/icons/alert-triangle.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M12 3 2 21h20L12 3z\" />\n <path d=\"M12 9v5\" />\n <path d=\"M12 17.5h.01\" />\n</svg>",
8
8
  "../../assets/icons/alert.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M12 3.6c1.7 0 2.86 1.34 2.66 2.96l-1 8.02c-.11.9-.87 1.57-1.78 1.57s-1.67-.67-1.78-1.57l-1-8.02c-.2-1.62.96-2.96 2.66-2.96Z\" />\n <circle cx=\"12\" cy=\"20.15\" r=\"1.7\" />\n</svg>\n",
@@ -60,7 +60,6 @@ var fe = /* @__PURE__ */ Object.assign({
60
60
  "../../assets/icons/pen.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z\" />\n</svg>",
61
61
  "../../assets/icons/phone.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\" />\n</svg>",
62
62
  "../../assets/icons/plus.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M12 5v14\" />\n <path d=\"M5 12h14\" />\n</svg>",
63
- "../../assets/icons/restaurant.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2\" />\n <path d=\"M7 2v20\" />\n <path d=\"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7\" />\n</svg>",
64
63
  "../../assets/icons/retail.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"10\" cy=\"19\" r=\"1.5\" />\n <circle cx=\"17\" cy=\"19\" r=\"1.5\" />\n <path d=\"M3 4h2l2.2 10.5a2 2 0 0 0 2 1.5h8.8a2 2 0 0 0 2-1.5L21 7H7\" />\n <path d=\"M8 11h11\" />\n</svg>",
65
64
  "../../assets/icons/rotate-ccw.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\" />\n <path d=\"M3 3v5h5\" />\n</svg>",
66
65
  "../../assets/icons/save.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M5 4h11l3 3v13H5z\" />\n <path d=\"M8 4v5h7V4\" />\n <rect x=\"8\" y=\"14\" width=\"8\" height=\"5\" rx=\"1\" />\n</svg>",
@@ -92,20 +91,20 @@ var fe = /* @__PURE__ */ Object.assign({
92
91
  "../../assets/icons/wrench.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z\" />\n</svg>",
93
92
  "../../assets/icons/x-circle.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\" />\n</svg>",
94
93
  "../../assets/icons/x-mark.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M6 6l12 12\" />\n <path d=\"M18 6 6 18\" />\n</svg>"
95
- }), pe = /\/([^/]+)\.svg$/, H = {};
96
- for (let [e, t] of Object.entries(fe)) {
97
- let n = e.match(pe);
94
+ }), me = /\/([^/]+)\.svg$/, V = {};
95
+ for (let [e, t] of Object.entries(pe)) {
96
+ let n = e.match(me);
98
97
  if (!n) continue;
99
98
  let r = n[1];
100
- H[r] = t;
99
+ V[r] = t;
101
100
  }
102
- var me = Object.freeze(Object.keys(H).sort((e, t) => e.localeCompare(t)));
103
- function he(e) {
104
- return H[e];
101
+ var he = Object.freeze(Object.keys(V).sort((e, t) => e.localeCompare(t)));
102
+ function ge(e) {
103
+ return V[e];
105
104
  }
106
105
  //#endregion
107
106
  //#region src/components/hl-icon/HLIcon.vue?vue&type=script&setup=true&lang.ts
108
- var ge = [
107
+ var H = [
109
108
  "role",
110
109
  "aria-label",
111
110
  "aria-hidden"
@@ -160,7 +159,7 @@ var ge = [
160
159
  return !(!t.startsWith("<svg") || !t.endsWith("</svg>") || /<script[\s>]/i.test(t) || /\son[a-z]+\s*=/i.test(t) || /javascript:/i.test(t));
161
160
  }
162
161
  let o = c(() => typeof e.source == "string" && e.source.trim() || void 0), s = c(() => {
163
- let t = o.value ?? he(e.name);
162
+ let t = o.value ?? ge(e.name);
164
163
  if (t) return a(t) ? t : void 0;
165
164
  }), l = c(() => e.ariaLabel || e.title || e.name), u = c(() => e.decorative), f = {
166
165
  secondary: "hl-text-secondary",
@@ -189,7 +188,7 @@ var ge = [
189
188
  key: 1,
190
189
  class: "hl-inline-flex hl-size-full hl-items-center hl-justify-center hl-rounded hl-border hl-border-solid hl-border-danger hl-text-[10px] hl-text-danger",
191
190
  title: `Icon '${e.name}' is not found`
192
- }, " ? ", 8, ve))], 14, ge));
191
+ }, " ? ", 8, ve))], 14, H));
193
192
  }
194
193
  }), be = (e, t) => {
195
194
  let n = e.__vccOpts || e;
@@ -319,7 +318,7 @@ var De = {
319
318
  key: 1,
320
319
  class: "hl-mx-1 hl-text-muted",
321
320
  "aria-hidden": "true"
322
- }, Ae = ["href"], W = /* @__PURE__ */ _({
321
+ }, Ae = ["href"], je = /* @__PURE__ */ _({
323
322
  __name: "HLBreadcrumb",
324
323
  props: {
325
324
  path: { default: "/" },
@@ -376,10 +375,10 @@ var De = {
376
375
  class: T(["hl-font-semibold", t.isActive ? s.value : "hl-theme-text"])
377
376
  }, F(t.label), 3))]))), 128))])]));
378
377
  }
379
- }), je = ["src"], Me = {
378
+ }), Me = ["src"], Ne = {
380
379
  key: 1,
381
380
  class: "hl-box-border hl-whitespace-nowrap hl-truncate"
382
- }, Ne = /* @__PURE__ */ _({
381
+ }, W = /* @__PURE__ */ _({
383
382
  name: "HLAvatar",
384
383
  __name: "HLAvatar",
385
384
  props: {
@@ -473,7 +472,7 @@ var De = {
473
472
  src: i.value,
474
473
  alt: "Avatar image",
475
474
  class: "hl-box-border hl-size-full hl-rounded-full hl-object-cover"
476
- }, null, 8, je)) : (A(), d("span", Me, F(a.value), 1))], 6)], 2));
475
+ }, null, 8, Me)) : (A(), d("span", Ne, F(a.value), 1))], 6)], 2));
477
476
  }
478
477
  }), Pe = ["type", "disabled"], Fe = {
479
478
  key: 1,
@@ -516,8 +515,8 @@ var De = {
516
515
  emits: ["click"],
517
516
  setup(e, { emit: t }) {
518
517
  let n = {
519
- secondary: "hl-border-0 hl-bg-secondary hl-text-primary hover:hl-bg-tertiary",
520
- tertiary: "hl-border-0 hl-bg-tertiary hl-text-primary hover:hl-opacity-90",
518
+ secondary: "hl-border-0 hl-bg-secondary hl-text-light hover:hl-bg-tertiary",
519
+ tertiary: "hl-border-0 hl-bg-tertiary hl-text-light hover:hl-opacity-90",
521
520
  primary: "hl-border-0 hl-bg-primary hl-text-light hover:hl-opacity-90",
522
521
  success: "hl-border-0 hl-bg-success hl-text-light hover:hl-opacity-90",
523
522
  danger: "hl-border-0 hl-bg-danger hl-text-light hover:hl-opacity-90",
@@ -566,7 +565,7 @@ var De = {
566
565
  e.iconOnly && "!hl-gap-0 !hl-min-w-0"
567
566
  ],
568
567
  disabled: e.disabled || e.loading,
569
- onClick: n[0] ||= de((e) => s("click"), ["stop"])
568
+ onClick: n[0] ||= fe((e) => s("click"), ["stop"])
570
569
  }), [t.$slots.icon && !e.loading ? (A(), d("span", {
571
570
  key: 0,
572
571
  class: T(["hl-inline-flex hl-items-center hl-justify-center", e.iconPosition === "right" ? "hl-order-2" : "hl-order-1"])
@@ -596,10 +595,10 @@ var De = {
596
595
  e.class
597
596
  ]) }, [N(t.$slots, "default")], 2));
598
597
  }
599
- }), Le = { class: "hanap-labs-theme hanap-labs-font hl-mb-1" }, q = ["for"], Re = ["id"], ze = {
598
+ }), Le = { class: "hanap-labs-theme hanap-labs-font hl-mb-1" }, Re = ["for"], ze = ["id"], Be = {
600
599
  key: 0,
601
- class: "hl-input-error-theme hl-ml-0.5"
602
- }, Be = /* @__PURE__ */ _({
600
+ class: "hl-text-danger hl-ml-0.5"
601
+ }, Ve = /* @__PURE__ */ _({
603
602
  __name: "HLLabel",
604
603
  props: {
605
604
  label: { default: "" },
@@ -629,20 +628,20 @@ var De = {
629
628
  return (r, i) => (A(), d("div", Le, [f("label", {
630
629
  for: e.forId || void 0,
631
630
  class: T(["hl-theme-text hl-block hl-font-medium", [t.value, e.labelClass]])
632
- }, [f("span", { id: e.labelId || void 0 }, F(e.label), 9, Re), e.required ? (A(), d("span", ze, "*")) : u("", !0)], 10, q), e.description ? (A(), d("div", {
631
+ }, [f("span", { id: e.labelId || void 0 }, F(e.label), 9, ze), e.required ? (A(), d("span", Be, "*")) : u("", !0)], 10, Re), e.description ? (A(), d("div", {
633
632
  key: 0,
634
633
  class: T(["hl-theme-text-muted", [n.value, e.descriptionClass]])
635
634
  }, F(e.description), 3)) : u("", !0)]));
636
635
  }
637
- }), Ve = { class: "hanap-labs-theme hanap-labs-font hl-w-full hl-select-none" }, He = [
636
+ }), He = { class: "hanap-labs-theme hanap-labs-font hl-w-full hl-select-none" }, Ue = [
638
637
  "aria-checked",
639
638
  "aria-label",
640
639
  "aria-labelledby",
641
640
  "disabled"
642
- ], Ue = {
641
+ ], We = {
643
642
  key: 1,
644
643
  class: "hl-sr-only"
645
- }, We = ["id", "disabled"], Ge = "hl-bg-light hl-theme-border-strong", Ke = "hl-bg-light hl-theme-border-strong hl-theme-text", qe = /* @__PURE__ */ _({
644
+ }, q = ["id", "disabled"], Ge = "hl-bg-light", Ke = "hl-bg-primary", qe = /* @__PURE__ */ _({
646
645
  __name: "HLCheckbox",
647
646
  props: /* @__PURE__ */ S({
648
647
  id: { default: "" },
@@ -661,11 +660,7 @@ var De = {
661
660
  },
662
661
  size: { default: "md" },
663
662
  labelSize: { default: "md" },
664
- color: {},
665
- noBorder: {
666
- type: Boolean,
667
- default: !1
668
- }
663
+ color: {}
669
664
  }, {
670
665
  modelValue: {
671
666
  type: Boolean,
@@ -693,52 +688,63 @@ var De = {
693
688
  md: 14,
694
689
  lg: 16
695
690
  }, m = {
696
- primary: "hl-bg-primary hl-border-primary hl-text-white",
697
- secondary: "hl-bg-secondary hl-border-secondary hl-text-white",
698
- tertiary: "hl-bg-tertiary hl-border-tertiary hl-theme-text",
699
- success: "hl-bg-success hl-border-success hl-text-white",
700
- danger: "hl-bg-danger hl-border-danger hl-text-white",
701
- warning: "hl-bg-warning hl-border-warning hl-text-dark",
702
- info: "hl-bg-info hl-border-info hl-text-white",
703
- light: "hl-bg-light hl-border-light hl-theme-text",
704
- dark: "hl-bg-dark hl-border-dark hl-text-white",
705
- muted: "hl-bg-muted hl-border-muted hl-text-white"
691
+ primary: "hl-bg-primary",
692
+ secondary: "hl-bg-secondary",
693
+ tertiary: "hl-bg-tertiary",
694
+ success: "hl-bg-success",
695
+ danger: "hl-bg-danger",
696
+ warning: "hl-bg-warning",
697
+ info: "hl-bg-info",
698
+ light: "hl-bg-light",
699
+ dark: "hl-bg-dark",
700
+ muted: "hl-bg-muted"
706
701
  }, g = {
707
- primary: "hl-bg-light hl-border-primary",
708
- secondary: "hl-bg-light hl-border-secondary",
709
- tertiary: "hl-bg-light hl-border-tertiary",
710
- success: "hl-bg-light hl-border-success",
711
- danger: "hl-bg-light hl-border-danger",
712
- warning: "hl-bg-light hl-border-warning",
713
- info: "hl-bg-light hl-border-info",
714
- light: "hl-bg-light hl-border-muted",
715
- dark: "hl-bg-light hl-border-dark",
716
- muted: "hl-bg-light hl-border-muted"
717
- }, _ = (e) => typeof e == "string" && Object.prototype.hasOwnProperty.call(m, e), v = c(() => s[e.size]), y = c(() => p[e.size]), b = c(() => e.indeterminate && !t.value), x = c(() => b.value ? "mixed" : t.value), S = c(() => b.value ? "hl-bg-primary/20 hl-border-primary hl-text-primary" : _(e.color) ? t.value ? m[e.color] : g[e.color] : t.value ? Ke : Ge);
718
- return (n, s) => (A(), d("div", Ve, [f("button", {
702
+ primary: "hl-bg-primary-20",
703
+ secondary: "hl-bg-secondary-20",
704
+ tertiary: "hl-bg-tertiary-20",
705
+ success: "hl-bg-success-20",
706
+ danger: "hl-bg-danger-20",
707
+ warning: "hl-bg-warning-20",
708
+ info: "hl-bg-info-20",
709
+ light: "hl-bg-light",
710
+ dark: "hl-bg-dark-20",
711
+ muted: "hl-bg-muted-20"
712
+ }, _ = {
713
+ primary: "light",
714
+ secondary: "light",
715
+ tertiary: "light",
716
+ success: "light",
717
+ danger: "light",
718
+ warning: "dark",
719
+ info: "light",
720
+ light: "dark",
721
+ dark: "light",
722
+ muted: "light"
723
+ }, v = (e) => typeof e == "string" && Object.prototype.hasOwnProperty.call(m, e), y = c(() => s[e.size]), b = c(() => p[e.size]), x = c(() => e.indeterminate && !t.value), S = c(() => x.value ? "mixed" : t.value), C = c(() => x.value ? "hl-bg-primary/20 hl-border-primary" : v(e.color) ? t.value ? m[e.color] : g[e.color] : t.value ? Ke : Ge), w = c(() => {
724
+ if (x.value) return "primary";
725
+ if (t.value) return v(e.color) ? _[e.color] : "light";
726
+ if (v(e.color)) return e.color;
727
+ });
728
+ return (n, s) => (A(), d("div", He, [f("button", {
719
729
  type: "button",
720
730
  role: "checkbox",
721
- "aria-checked": x.value,
731
+ "aria-checked": S.value,
722
732
  "aria-label": e.ariaLabel || void 0,
723
733
  "aria-labelledby": a.value ? i.value : void 0,
724
734
  disabled: e.disabled,
725
735
  style: { "box-shadow": "none" },
726
736
  class: T(["hl-inline-flex hl-w-full hl-appearance-none hl-border-0 !hl-shadow-none hl-items-start hl-gap-3 hl-rounded-md hl-bg-transparent hl-text-left hanap-labs-font hl-transition-all hl-duration-300 hl-no-focus-ring", e.disabled ? "hl-cursor-not-allowed hl-opacity-50" : "hl-cursor-pointer"]),
727
737
  onClick: o
728
- }, [f("span", { class: T(["hl-theme-border hl-theme-bg hl-mt-0.5 hl-inline-flex hl-shrink-0 hl-items-center hl-justify-center hl-overflow-hidden hl-rounded hl-border hl-border-solid hl-leading-none hl-transition-colors hl-duration-300", [
729
- v.value,
730
- S.value,
731
- e.noBorder && "hl-border-0"
732
- ]]) }, [h(U, {
738
+ }, [f("span", { class: T(["hl-mt-0.5 hl-inline-flex hl-shrink-0 hl-items-center hl-justify-center hl-overflow-hidden hl-rounded hl-leading-none hl-transition-colors hl-duration-300", [y.value, C.value]]) }, [h(U, {
733
739
  name: "check",
734
- size: y.value,
735
- color: e.color,
736
- class: T(["hl-transition-opacity hl-duration-300", [u[e.size], t.value || b.value ? "hl-opacity-100" : "hl-opacity-0"]])
740
+ size: b.value,
741
+ color: w.value,
742
+ class: T(["hl-transition-opacity hl-duration-300", [u[e.size], t.value || x.value ? "hl-opacity-100" : "hl-opacity-0"]])
737
743
  }, null, 8, [
738
744
  "size",
739
745
  "color",
740
746
  "class"
741
- ])], 2), e.label || e.description ? (A(), l(Be, {
747
+ ])], 2), e.label || e.description ? (A(), l(Ve, {
742
748
  key: 0,
743
749
  class: "hl-min-w-0",
744
750
  label: e.label,
@@ -756,13 +762,13 @@ var De = {
756
762
  "size",
757
763
  "label-class",
758
764
  "description-class"
759
- ])) : (A(), d("span", Ue, "toggle checkbox"))], 10, He), V(f("input", {
765
+ ])) : (A(), d("span", We, "toggle checkbox"))], 10, Ue), de(f("input", {
760
766
  id: r.value,
761
767
  "onUpdate:modelValue": s[0] ||= (e) => t.value = e,
762
768
  type: "checkbox",
763
769
  class: "hl-sr-only",
764
770
  disabled: e.disabled
765
- }, null, 8, We), [[se, t.value]])]));
771
+ }, null, 8, q), [[se, t.value]])]));
766
772
  }
767
773
  }), Je = { class: "hanap-labs-theme hanap-labs-font hl-w-full" }, Ye = { class: "hl-relative" }, Xe = {
768
774
  key: 0,
@@ -880,7 +886,7 @@ var De = {
880
886
  muted: "hl-border-muted focus:hl-border-muted"
881
887
  }, O = c(() => w[e.size]), k = c(() => e.rounded ? "hl-rounded-full" : E[e.size]), ee = c(() => e.color ? D[e.color] : "hl-input-theme hl-input-default");
882
888
  return (t, i) => (A(), d("div", Je, [
883
- e.label || e.description ? (A(), l(Be, {
889
+ e.label || e.description ? (A(), l(Ve, {
884
890
  key: 0,
885
891
  label: e.label,
886
892
  description: e.description,
@@ -898,7 +904,7 @@ var De = {
898
904
  ])) : u("", !0),
899
905
  f("div", Ye, [
900
906
  e.iconLeft ? (A(), d("div", Xe, [N(t.$slots, "icon", {}, void 0, !0)])) : u("", !0),
901
- V(f("input", {
907
+ de(f("input", {
902
908
  ref_key: "inputRef",
903
909
  ref: s,
904
910
  id: o.value,
@@ -954,7 +960,7 @@ var De = {
954
960
  "aria-label": p.value ? "Hide password" : "Show password",
955
961
  onClick: v
956
962
  }, [h(U, {
957
- name: p.value ? "eye-off" : "eye",
963
+ name: p.value ? "hide" : "view",
958
964
  size: 18,
959
965
  decorative: !0,
960
966
  color: e.color
@@ -966,7 +972,7 @@ var De = {
966
972
  }, F(e), 1))), 128))])) : u("", !0)
967
973
  ]));
968
974
  }
969
- }), [["__scopeId", "data-v-63424e23"]]);
975
+ }), [["__scopeId", "data-v-09f67951"]]);
970
976
  //#endregion
971
977
  //#region node_modules/@vueuse/shared/dist/index.js
972
978
  function rt(e, t) {
@@ -1484,7 +1490,8 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1484
1490
  isLoading: {
1485
1491
  type: Boolean,
1486
1492
  default: !1
1487
- }
1493
+ },
1494
+ loading: { type: Boolean }
1488
1495
  }, {
1489
1496
  modelValue: {
1490
1497
  type: Boolean,
@@ -1501,15 +1508,15 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1501
1508
  function a() {
1502
1509
  typeof document > "u" || n <= 0 || (--n, n === 0 && (document.body.style.overflow = r ?? "", r = null));
1503
1510
  }
1504
- let p = ae(e, "modelValue"), m = (e) => e === void 0 || typeof e == "object" && !Array.isArray(e), g = c(() => m(e.componentProps) ? e.componentProps ?? {} : {}), _ = c(() => g.value.title?.trim() || "Confirm action"), v = c(() => g.value.message?.trim() || "Are you sure?"), y = c(() => g.value.confirmText?.trim() || "Confirm"), b = c(() => g.value.cancelText?.trim() || "Cancel"), x = c(() => g.value.icon?.trim() || "shield-check"), S = c(() => {
1505
- let e = g.value.iconSource;
1511
+ let p = ae(e, "modelValue"), m = c(() => e.loading ?? e.isLoading), g = (e) => e === void 0 || typeof e == "object" && !Array.isArray(e), _ = c(() => g(e.componentProps) ? e.componentProps ?? {} : {}), v = c(() => _.value.title?.trim() || "Confirm action"), y = c(() => _.value.message?.trim() || "Are you sure?"), b = c(() => _.value.confirmText?.trim() || "Confirm"), x = c(() => _.value.cancelText?.trim() || "Cancel"), S = c(() => _.value.icon?.trim() || "shield-check"), w = c(() => {
1512
+ let e = _.value.iconSource;
1506
1513
  if (typeof e == "string") return e.trim() || void 0;
1507
- }), w = c(() => g.value.hideIcon !== !0), E = t, D = () => {
1508
- !e.closeOnBackdrop || e.isLoading || (p.value = !1, E("close"));
1509
- }, O = () => {
1510
- e.isLoading || (p.value = !1, E("close"));
1514
+ }), E = c(() => _.value.hideIcon !== !0), D = t, O = () => {
1515
+ !e.closeOnBackdrop || m || (p.value = !1, D("close"));
1511
1516
  }, k = () => {
1512
- e.isLoading || E("confirm");
1517
+ m || (p.value = !1, D("close"));
1518
+ }, te = () => {
1519
+ m || D("confirm");
1513
1520
  };
1514
1521
  return z(p, (e) => {
1515
1522
  if (e) {
@@ -1529,7 +1536,7 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1529
1536
  }, {
1530
1537
  default: B(() => [p.value ? (A(), d("div", Vt, [f("div", {
1531
1538
  class: T(["hl-absolute hl-inset-0", e.backdropClass]),
1532
- onClick: D
1539
+ onClick: O
1533
1540
  }, null, 2), h(s, {
1534
1541
  "enter-active-class": "hl-transition hl-duration-300 hl-ease-out",
1535
1542
  "enter-from-class": "hl-scale-95 hl-opacity-0",
@@ -1541,28 +1548,28 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1541
1548
  default: B(() => [p.value ? (A(), d("div", {
1542
1549
  key: 0,
1543
1550
  class: T(["hl-relative hl-z-10 hl-flex hl-w-full hl-items-start hl-justify-center hl-px-4 hl-pointer-events-none", e.containerClass])
1544
- }, [f("div", Ht, [e.type === "confirm" ? (A(), d("div", Ut, [f("div", Wt, [w.value ? (A(), d("div", Gt, [w.value ? (A(), l(U, {
1551
+ }, [f("div", Ht, [e.type === "confirm" ? (A(), d("div", Ut, [f("div", Wt, [E.value ? (A(), d("div", Gt, [E.value ? (A(), l(U, {
1545
1552
  key: 0,
1546
- name: x.value,
1547
- source: S.value,
1553
+ name: S.value,
1554
+ source: w.value,
1548
1555
  class: "hl-size-4",
1549
1556
  decorative: !0
1550
- }, null, 8, ["name", "source"])) : u("", !0)])) : u("", !0), f("div", Kt, [f("h3", qt, F(_.value), 1), f("p", Jt, F(v.value), 1)])]), f("div", Yt, [h(K, {
1551
- label: b.value,
1557
+ }, null, 8, ["name", "source"])) : u("", !0)])) : u("", !0), f("div", Kt, [f("h3", qt, F(v.value), 1), f("p", Jt, F(y.value), 1)])]), f("div", Yt, [h(K, {
1558
+ label: x.value,
1552
1559
  variant: "outline",
1553
1560
  size: "sm",
1554
1561
  "full-width": !0,
1555
- disabled: e.isLoading,
1562
+ disabled: m.value,
1556
1563
  class: "!hl-w-full sm:!hl-w-auto sm:!hl-min-w-[7rem]",
1557
- onClick: O
1564
+ onClick: k
1558
1565
  }, null, 8, ["label", "disabled"]), h(K, {
1559
- label: y.value,
1566
+ label: b.value,
1560
1567
  color: "primary",
1561
1568
  size: "sm",
1562
1569
  "full-width": !0,
1563
- loading: e.isLoading,
1570
+ loading: m.value,
1564
1571
  class: "!hl-w-full sm:!hl-w-auto sm:!hl-min-w-[7.5rem]",
1565
- onClick: k
1572
+ onClick: te
1566
1573
  }, null, 8, ["label", "loading"])])])) : e.component ? (A(), l(re(e.component), C({
1567
1574
  key: 1,
1568
1575
  class: "hl-inline-block",
@@ -1572,9 +1579,9 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1572
1579
  "max-width": "100%"
1573
1580
  }
1574
1581
  }, e.componentProps, {
1575
- onCancel: O,
1576
- onClose: O,
1577
- onConfirm: k
1582
+ onCancel: k,
1583
+ onClose: k,
1584
+ onConfirm: te
1578
1585
  }), null, 16)) : N(t.$slots, "default", { key: 2 })])], 2)) : u("", !0)]),
1579
1586
  _: 3
1580
1587
  })])) : u("", !0)]),
@@ -1584,21 +1591,23 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1584
1591
  }), Zt = /* @__PURE__ */ _({
1585
1592
  __name: "HLPopup",
1586
1593
  setup(e) {
1587
- let { isVisible: t, type: n, component: r, props: a, isLoading: o, close: s, confirm: c } = i();
1594
+ let { isVisible: t, type: n, component: r, props: a, loading: o, isLoading: s, close: c, confirm: u } = i();
1588
1595
  return (e, i) => (A(), l(Xt, {
1589
1596
  "model-value": R(t),
1590
1597
  type: R(n),
1591
1598
  component: R(r) || void 0,
1592
1599
  "component-props": R(a),
1593
- "is-loading": R(o),
1594
- onClose: R(s),
1595
- onConfirm: R(c)
1600
+ "is-loading": R(s),
1601
+ loading: R(o),
1602
+ onClose: R(c),
1603
+ onConfirm: R(u)
1596
1604
  }, null, 8, [
1597
1605
  "model-value",
1598
1606
  "type",
1599
1607
  "component",
1600
1608
  "component-props",
1601
1609
  "is-loading",
1610
+ "loading",
1602
1611
  "onClose",
1603
1612
  "onConfirm"
1604
1613
  ]));
@@ -1740,36 +1749,69 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1740
1749
  dark: "hl-theme-text",
1741
1750
  muted: "hl-text-muted"
1742
1751
  }, ue = {
1743
- primary: "hl-bg-primary hl-border-primary hl-text-white",
1744
- secondary: "hl-bg-secondary hl-border-secondary hl-text-white",
1745
- tertiary: "hl-bg-tertiary hl-border-tertiary hl-theme-text",
1746
- success: "hl-bg-success hl-border-success hl-text-white",
1747
- danger: "hl-bg-danger hl-border-danger hl-text-white",
1748
- warning: "hl-bg-warning hl-border-warning hl-text-dark",
1749
- info: "hl-bg-info hl-border-info hl-text-white",
1750
- light: "hl-bg-light hl-border-light hl-theme-text",
1751
- dark: "hl-bg-dark hl-border-dark hl-text-white",
1752
- muted: "hl-bg-muted hl-border-muted hl-text-white"
1752
+ primary: "hl-bg-primary hl-border-primary",
1753
+ secondary: "hl-bg-secondary hl-border-secondary",
1754
+ tertiary: "hl-bg-tertiary hl-border-tertiary",
1755
+ success: "hl-bg-success hl-border-success",
1756
+ danger: "hl-bg-danger hl-border-danger",
1757
+ warning: "hl-bg-warning hl-border-warning",
1758
+ info: "hl-bg-info hl-border-info",
1759
+ light: "hl-bg-light hl-border-light",
1760
+ dark: "hl-bg-dark hl-border-dark",
1761
+ muted: "hl-bg-muted hl-border-muted"
1753
1762
  }, B = {
1754
- primary: "--hanap-labs-primary",
1755
- secondary: "--hanap-labs-muted",
1756
- tertiary: "--hanap-labs-tertiary",
1757
- success: "--hanap-labs-success",
1758
- danger: "--hanap-labs-danger",
1759
- warning: "--hanap-labs-warning",
1760
- info: "--hanap-labs-info",
1761
- light: "--hanap-labs-muted",
1762
- dark: "--hanap-labs-dark",
1763
- muted: "--hanap-labs-muted"
1763
+ primary: "hl-bg-primary-20 hl-border-primary",
1764
+ secondary: "hl-bg-secondary-20 hl-border-secondary",
1765
+ tertiary: "hl-bg-tertiary-20 hl-border-tertiary",
1766
+ success: "hl-bg-success-20 hl-border-success",
1767
+ danger: "hl-bg-danger-20 hl-border-danger",
1768
+ warning: "hl-bg-warning-20 hl-border-warning",
1769
+ info: "hl-bg-info-20 hl-border-info",
1770
+ light: "hl-bg-light hl-border-muted",
1771
+ dark: "hl-bg-dark-20 hl-border-dark",
1772
+ muted: "hl-bg-muted-20 hl-border-muted"
1773
+ }, de = {
1774
+ primary: "hover:hl-bg-primary-20",
1775
+ secondary: "hover:hl-bg-secondary-20",
1776
+ tertiary: "hover:hl-bg-tertiary-20",
1777
+ success: "hover:hl-bg-success-20",
1778
+ danger: "hover:hl-bg-danger-20",
1779
+ warning: "hover:hl-bg-warning-20",
1780
+ info: "hover:hl-bg-info-20",
1781
+ light: "hover:hl-bg-light-20",
1782
+ dark: "hover:hl-bg-dark-20",
1783
+ muted: "hover:hl-bg-muted-20"
1784
+ }, pe = {
1785
+ primary: "hl-bg-primary-20",
1786
+ secondary: "hl-bg-secondary-20",
1787
+ tertiary: "hl-bg-tertiary-20",
1788
+ success: "hl-bg-success-20",
1789
+ danger: "hl-bg-danger-20",
1790
+ warning: "hl-bg-warning-20",
1791
+ info: "hl-bg-info-20",
1792
+ light: "hl-bg-light-20",
1793
+ dark: "hl-bg-dark-20",
1794
+ muted: "hl-bg-muted-20"
1795
+ }, me = {
1796
+ primary: "light",
1797
+ secondary: "light",
1798
+ tertiary: "light",
1799
+ success: "light",
1800
+ danger: "light",
1801
+ warning: "dark",
1802
+ info: "light",
1803
+ light: "dark",
1804
+ dark: "light",
1805
+ muted: "light"
1764
1806
  };
1765
1807
  function V(e) {
1766
1808
  return typeof e == "string" && Object.prototype.hasOwnProperty.call(ce, e);
1767
1809
  }
1768
- function fe(e) {
1810
+ function he(e) {
1769
1811
  return e instanceof HTMLElement ? e : e && "$el" in e && e.$el instanceof HTMLElement ? e.$el : null;
1770
1812
  }
1771
- function pe(e) {
1772
- let t = fe(e);
1813
+ function ge(e) {
1814
+ let t = he(e);
1773
1815
  if (!t) {
1774
1816
  m.value = null;
1775
1817
  return;
@@ -1783,163 +1825,153 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1783
1825
  function H(e) {
1784
1826
  return Object.prototype.toString.call(e) === "[object Object]";
1785
1827
  }
1786
- function me(e, t) {
1828
+ function _e(e, t) {
1787
1829
  if (e === t) return !0;
1788
- if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length ? e.every((e, n) => me(e, t[n])) : !1;
1830
+ if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length ? e.every((e, n) => _e(e, t[n])) : !1;
1789
1831
  if (H(e) && H(t)) {
1790
1832
  let n = Object.keys(e), r = Object.keys(t);
1791
- return n.length === r.length ? n.every((n) => me(e[n], t[n])) : !1;
1833
+ return n.length === r.length ? n.every((n) => _e(e[n], t[n])) : !1;
1792
1834
  }
1793
1835
  return !1;
1794
1836
  }
1795
- function he(e, t) {
1837
+ function ve(e, t) {
1796
1838
  return Object.keys(t).every((n) => {
1797
1839
  if (!(n in e)) return !1;
1798
1840
  let r = e[n], i = t[n];
1799
- return H(r) && H(i) ? he(r, i) : me(r, i);
1841
+ return H(r) && H(i) ? ve(r, i) : _e(r, i);
1800
1842
  });
1801
1843
  }
1802
- function ge(e, t) {
1803
- return me(e, t) ? !0 : H(e) && H(t) ? he(t, e) : !1;
1844
+ function ye(e, t) {
1845
+ return _e(e, t) ? !0 : H(e) && H(t) ? ve(t, e) : !1;
1804
1846
  }
1805
- function _e(e) {
1806
- return Array.isArray(e) ? `[${e.map((e) => _e(e)).join(",")}]` : H(e) ? `{${Object.keys(e).sort().map((t) => `${t}:${_e(e[t])}`).join(",")}}` : String(e);
1847
+ function be(e) {
1848
+ return Array.isArray(e) ? `[${e.map((e) => be(e)).join(",")}]` : H(e) ? `{${Object.keys(e).sort().map((t) => `${t}:${be(e[t])}`).join(",")}}` : String(e);
1807
1849
  }
1808
- function ve(e, t) {
1809
- return `${e.label}-${_e(e.value)}-${t}`;
1850
+ function xe(e, t) {
1851
+ return `${e.label}-${be(e.value)}-${t}`;
1810
1852
  }
1811
- function ye(e) {
1853
+ function Se(e) {
1812
1854
  return `${L.value}-option-${e}`;
1813
1855
  }
1814
- let be = c(() => {
1856
+ let Ce = c(() => {
1815
1857
  let t = /* @__PURE__ */ new Map();
1816
- for (let n of [...e.options, ..._.value]) t.set(_e(n.value), n);
1858
+ for (let n of [...e.options, ..._.value]) t.set(be(n.value), n);
1817
1859
  return Array.from(t.values());
1818
- }), xe = c(() => e.multiple ? Array.isArray(i.value) ? i.value : [] : i.value === null ? [] : [i.value]), Se = c(() => be.value.filter((e) => xe.value.some((t) => ge(e.value, t)))), Ce = c(() => Number.isFinite(e.maxVisiblePills) ? Math.max(0, Math.floor(e.maxVisiblePills)) : 1), we = c(() => e.multiple ? Se.value.slice(0, Ce.value) : []), Te = c(() => e.multiple ? Math.max(0, Se.value.length - we.value.length) : 0), Ee = c(() => xe.value.length > 0), De = c(() => !!e.error || e.errors.length > 0), Oe = c(() => e.multiple ? Se.value.length === 0 ? e.placeholder : Se.value.length === 1 ? Se.value[0].label : `${Se.value.length} selected` : Se.value[0]?.label ?? e.placeholder), ke = c(() => se[e.size]), Ae = c(() => {
1860
+ }), we = c(() => e.multiple ? Array.isArray(i.value) ? i.value : [] : i.value === null ? [] : [i.value]), Te = c(() => Ce.value.filter((e) => we.value.some((t) => ye(e.value, t)))), Ee = c(() => Number.isFinite(e.maxVisiblePills) ? Math.max(0, Math.floor(e.maxVisiblePills)) : 1), De = c(() => e.multiple ? Te.value.slice(0, Ee.value) : []), Oe = c(() => e.multiple ? Math.max(0, Te.value.length - De.value.length) : 0), ke = c(() => we.value.length > 0), Ae = c(() => !!e.error || e.errors.length > 0), je = c(() => e.multiple ? Te.value.length === 0 ? e.placeholder : Te.value.length === 1 ? Te.value[0].label : `${Te.value.length} selected` : Te.value[0]?.label ?? e.placeholder), Me = c(() => se[e.size]), Ne = c(() => {
1819
1861
  let e = g.value.trim().toLowerCase();
1820
- return e ? be.value.filter((t) => t.label.toLowerCase().includes(e)) : be.value;
1862
+ return e ? Ce.value.filter((t) => t.label.toLowerCase().includes(e)) : Ce.value;
1821
1863
  }), W = c(() => {
1822
- if (!e.multiple) return Ae.value;
1864
+ if (!e.multiple) return Ne.value;
1823
1865
  let t = [], n = [];
1824
- for (let e of Ae.value) q(e) ? t.push(e) : n.push(e);
1866
+ for (let e of Ne.value) q(e) ? t.push(e) : n.push(e);
1825
1867
  return [...t, ...n];
1826
- }), je = c(() => {
1868
+ }), Pe = c(() => {
1827
1869
  if (!e.multiple) return -1;
1828
1870
  let t = W.value.filter((e) => q(e)).length;
1829
1871
  return t > 0 && t < W.value.length ? t : -1;
1830
- }), Me = c(() => ({
1872
+ }), Fe = c(() => ({
1831
1873
  ...te.value,
1832
1874
  width: v.value > 0 ? `${v.value}px` : void 0,
1833
1875
  maxHeight: `${e.maxMenuHeight}px`,
1834
1876
  zIndex: 60
1835
- })), Ne = c(() => {
1877
+ })), G = c(() => {
1836
1878
  let t = g.value.trim();
1837
- return !e.allowCreateWhenNoMatch || !t || Ae.value.length > 0 ? !1 : !be.value.some((e) => e.label.toLowerCase() === t.toLowerCase());
1838
- }), Pe = c(() => {
1839
- if (!(y.value < 0) && !(y.value >= W.value.length)) return ye(y.value);
1840
- }), Fe = c(() => V(e.color) ? ce[e.color] : "hl-theme-border"), G = c(() => V(e.color) ? le[e.color] : "hl-theme-text"), K = c(() => V(e.color) ? ue[e.color] : "hl-border-dark hl-bg-dark hl-text-white"), Ie = c(() => V(e.color) ? ue[e.color] : "hl-theme-border hl-bg-light hl-theme-text"), Le = c(() => {
1841
- if (!V(e.color)) return {
1842
- "--hl-select-option-hover-bg": "var(--hanap-labs-surface-subtle)",
1843
- "--hl-select-option-highlight-bg": "var(--hanap-labs-surface-muted)"
1844
- };
1845
- let t = B[e.color];
1846
- return {
1847
- "--hl-select-option-hover-bg": `color-mix(in srgb, var(${t}) 10%, var(--hanap-labs-surface))`,
1848
- "--hl-select-option-highlight-bg": `color-mix(in srgb, var(${t}) 16%, var(--hanap-labs-surface))`
1849
- };
1850
- });
1879
+ return !e.allowCreateWhenNoMatch || !t || Ne.value.length > 0 ? !1 : !Ce.value.some((e) => e.label.toLowerCase() === t.toLowerCase());
1880
+ }), K = c(() => {
1881
+ if (!(y.value < 0) && !(y.value >= W.value.length)) return Se(y.value);
1882
+ }), Ie = c(() => V(e.color) ? ce[e.color] : "hl-theme-border"), Le = c(() => V(e.color) ? le[e.color] : "hl-theme-text"), Re = c(() => V(e.color) ? ue[e.color] : "hl-border-dark hl-bg-dark hl-text-white"), ze = c(() => V(e.color) ? ue[e.color] : "hl-theme-border hl-bg-light hl-theme-text"), Be = c(() => V(e.color) ? B[e.color] : "hl-bg-light hl-theme-border-strong"), He = c(() => V(e.color) ? de[e.color] : "hover:hl-theme-bg-subtle"), Ue = c(() => V(e.color) ? pe[e.color] : "hl-theme-bg-muted"), We = c(() => V(e.color) ? me[e.color] : "light");
1851
1883
  function q(e) {
1852
- return xe.value.some((t) => ge(e.value, t));
1884
+ return we.value.some((t) => ye(e.value, t));
1853
1885
  }
1854
- function Re(e) {
1886
+ function Ge(e) {
1855
1887
  i.value = e, s("change", e);
1856
1888
  }
1857
- function ze() {
1889
+ function Ke() {
1858
1890
  let e = [];
1859
1891
  return W.value.forEach((t, n) => {
1860
1892
  t.disabled || e.push(n);
1861
1893
  }), e;
1862
1894
  }
1863
- function Ve() {
1895
+ function qe() {
1864
1896
  if (!x.value || y.value < 0) return;
1865
1897
  let e = `[data-option-index="${y.value}"]`, t = x.value.querySelector(e);
1866
1898
  t instanceof HTMLElement && t.scrollIntoView({ block: "nearest" });
1867
1899
  }
1868
- function He(e) {
1900
+ function Je(e) {
1869
1901
  y.value = e, w(() => {
1870
- Ve();
1902
+ qe();
1871
1903
  });
1872
1904
  }
1873
- function Ue() {
1874
- let e = ze();
1905
+ function Ye() {
1906
+ let e = Ke();
1875
1907
  if (e.length === 0) {
1876
- He(-1);
1908
+ Je(-1);
1877
1909
  return;
1878
1910
  }
1879
1911
  let t = W.value.findIndex((e) => !e.disabled && q(e));
1880
- He(t >= 0 ? t : e[0]);
1912
+ Je(t >= 0 ? t : e[0]);
1881
1913
  }
1882
- function We(e) {
1883
- let t = ze();
1914
+ function Xe(e) {
1915
+ let t = Ke();
1884
1916
  if (t.length === 0) {
1885
- He(-1);
1917
+ Je(-1);
1886
1918
  return;
1887
1919
  }
1888
1920
  if (y.value < 0) {
1889
- He(e === 1 ? t[0] : t[t.length - 1]);
1921
+ Je(e === 1 ? t[0] : t[t.length - 1]);
1890
1922
  return;
1891
1923
  }
1892
1924
  let n = t.indexOf(y.value);
1893
1925
  if (n < 0) {
1894
- He(e === 1 ? t[0] : t[t.length - 1]);
1926
+ Je(e === 1 ? t[0] : t[t.length - 1]);
1895
1927
  return;
1896
1928
  }
1897
- He(t[(n + e + t.length) % t.length]);
1929
+ Je(t[(n + e + t.length) % t.length]);
1898
1930
  }
1899
- function Ge() {
1931
+ function Ze() {
1900
1932
  if (y.value < 0) return;
1901
1933
  let e = W.value[y.value];
1902
- !e || e.disabled || Ke(e);
1934
+ !e || e.disabled || Qe(e);
1903
1935
  }
1904
- function Ke(t) {
1936
+ function Qe(t) {
1905
1937
  if (!(t.disabled || e.disabled)) {
1906
1938
  if (e.multiple) {
1907
1939
  let e = Array.isArray(i.value) ? [...i.value] : [];
1908
- Re(e.some((e) => ge(t.value, e)) ? e.filter((e) => !ge(t.value, e)) : [...e, t.value]);
1940
+ Ge(e.some((e) => ye(t.value, e)) ? e.filter((e) => !ye(t.value, e)) : [...e, t.value]);
1909
1941
  return;
1910
1942
  }
1911
- Re(t.value), C();
1943
+ Ge(t.value), C();
1912
1944
  }
1913
1945
  }
1914
- function qe() {
1915
- Re(e.multiple ? [] : null), g.value = "", C();
1946
+ function $e() {
1947
+ Ge(e.multiple ? [] : null), g.value = "", C();
1916
1948
  }
1917
- function Je(e) {
1949
+ function et(e) {
1918
1950
  return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
1919
1951
  }
1920
- function Ye() {
1952
+ function tt() {
1921
1953
  let t = g.value.trim();
1922
- if (!t || !Ne.value) return;
1954
+ if (!t || !G.value) return;
1923
1955
  let n = {
1924
1956
  label: t,
1925
- value: Je(t) || t.toLowerCase()
1957
+ value: et(t) || t.toLowerCase()
1926
1958
  }, r = {
1927
1959
  label: t,
1928
1960
  value: n
1929
1961
  };
1930
1962
  if (_.value = [..._.value, r], s("create", n), e.multiple) {
1931
- Re([...Array.isArray(i.value) ? [...i.value] : [], n]), g.value = "";
1963
+ Ge([...Array.isArray(i.value) ? [...i.value] : [], n]), g.value = "";
1932
1964
  return;
1933
1965
  }
1934
- Re(n), g.value = "", C();
1966
+ Ge(n), g.value = "", C();
1935
1967
  }
1936
- function Xe() {
1968
+ function rt() {
1937
1969
  v.value = b.value?.offsetWidth ?? 0;
1938
1970
  }
1939
- function Ze() {
1971
+ function it() {
1940
1972
  e.disabled || ee();
1941
1973
  }
1942
- function Qe(t) {
1974
+ function at(t) {
1943
1975
  if (!e.disabled) {
1944
1976
  if (t.key === "Escape") {
1945
1977
  C();
@@ -1950,7 +1982,7 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1950
1982
  k();
1951
1983
  return;
1952
1984
  }
1953
- We(1);
1985
+ Xe(1);
1954
1986
  return;
1955
1987
  }
1956
1988
  if (t.key === "ArrowUp") {
@@ -1958,71 +1990,71 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
1958
1990
  k();
1959
1991
  return;
1960
1992
  }
1961
- We(-1);
1993
+ Xe(-1);
1962
1994
  return;
1963
1995
  }
1964
1996
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), ee());
1965
1997
  }
1966
1998
  }
1967
- function $e(e) {
1999
+ function ot(e) {
1968
2000
  if (e.key === "ArrowDown") {
1969
- e.preventDefault(), We(1);
2001
+ e.preventDefault(), Xe(1);
1970
2002
  return;
1971
2003
  }
1972
2004
  if (e.key === "ArrowUp") {
1973
- e.preventDefault(), We(-1);
2005
+ e.preventDefault(), Xe(-1);
1974
2006
  return;
1975
2007
  }
1976
2008
  if (e.key === "Enter") {
1977
2009
  if (e.preventDefault(), y.value >= 0) {
1978
- Ge();
2010
+ Ze();
1979
2011
  return;
1980
2012
  }
1981
- Ne.value && Ye();
2013
+ G.value && tt();
1982
2014
  return;
1983
2015
  }
1984
2016
  e.key === "Escape" && (e.preventDefault(), C());
1985
2017
  }
1986
- function et(e) {
2018
+ function st(e) {
1987
2019
  if (!S.value) return;
1988
2020
  let t = e.target;
1989
- t instanceof Node && (x.value?.contains(t) ?? !1) && $e(e);
2021
+ t instanceof Node && (x.value?.contains(t) ?? !1) && ot(e);
1990
2022
  }
1991
- function tt(e) {
1992
- W.value[e]?.disabled || He(e);
2023
+ function ct(e) {
2024
+ W.value[e]?.disabled || Je(e);
1993
2025
  }
1994
- function rt(e) {
2026
+ function lt(e) {
1995
2027
  let t = e.target, n = p.value?.contains(t) ?? !1, r = x.value?.contains(t) ?? !1;
1996
2028
  !n && !r && C();
1997
2029
  }
1998
- return t({ clearSelection: qe }), z(() => e.disabled, (e) => {
2030
+ return t({ clearSelection: $e }), z(() => e.disabled, (e) => {
1999
2031
  e && C();
2000
2032
  }), z(S, async (e) => {
2001
2033
  if (e) {
2002
- s("open"), await w(), Xe(), await ne(), Ue(), m.value?.focus({ preventScroll: !0 });
2034
+ s("open"), await w(), rt(), await ne(), Ye(), m.value?.focus({ preventScroll: !0 });
2003
2035
  return;
2004
2036
  }
2005
2037
  s("close"), g.value = "", y.value = -1;
2006
2038
  }), z(W, () => {
2007
2039
  if (S.value) {
2008
2040
  if (y.value < 0 || y.value >= W.value.length || W.value[y.value]?.disabled) {
2009
- Ue();
2041
+ Ye();
2010
2042
  return;
2011
2043
  }
2012
2044
  w(() => {
2013
- Ve();
2045
+ qe();
2014
2046
  });
2015
2047
  }
2016
2048
  }), O(() => {
2017
- Xe(), window.addEventListener("hl-resize", Xe), document.addEventListener("pointerdown", rt), document.addEventListener("keydown", et, !0);
2049
+ rt(), window.addEventListener("hl-resize", rt), document.addEventListener("pointerdown", lt), document.addEventListener("keydown", st, !0);
2018
2050
  }), D(() => {
2019
- window.removeEventListener("hl-resize", Xe), document.removeEventListener("pointerdown", rt), document.removeEventListener("keydown", et, !0);
2051
+ window.removeEventListener("hl-resize", rt), document.removeEventListener("pointerdown", lt), document.removeEventListener("keydown", st, !0);
2020
2052
  }), (t, n) => (A(), d("div", {
2021
2053
  ref_key: "rootRef",
2022
2054
  ref: p,
2023
2055
  class: "hanap-labs-theme hanap-labs-font hl-w-full"
2024
2056
  }, [
2025
- e.label || e.description ? (A(), l(Be, {
2057
+ e.label || e.description ? (A(), l(Ve, {
2026
2058
  key: 0,
2027
2059
  label: e.label,
2028
2060
  description: e.description,
@@ -2042,14 +2074,14 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
2042
2074
  ref: R(N).ref,
2043
2075
  type: "button",
2044
2076
  class: T(["hl-control-bg hl-flex hl-w-full hl-items-center hl-gap-2 hl-border hl-border-solid hl-text-left hl-leading-tight hl-transition-colors hl-duration-300 hl-no-focus-ring disabled:hl-cursor-not-allowed disabled:hl-opacity-60 hl-rounded-lg hl-cursor-pointer", [
2045
- ke.value,
2077
+ Me.value,
2046
2078
  e.inputClass,
2047
- De.value ? "hl-input-error-border-theme focus:hl-input-error-border-theme" : Fe.value,
2079
+ Ae.value ? "hl-input-error-border-theme focus:hl-input-error-border-theme" : Ie.value,
2048
2080
  {
2049
- "hl-theme-text": Ee.value,
2050
- "hl-text-muted": !Ee.value,
2051
- "hl-pr-10": Ee.value,
2052
- "hl-pr-8": !Ee.value,
2081
+ "hl-theme-text": ke.value,
2082
+ "hl-text-muted": !ke.value,
2083
+ "hl-pr-10": ke.value,
2084
+ "hl-pr-8": !ke.value,
2053
2085
  "hl-border-0 focus:hl-border-0": e.noBorder
2054
2086
  }
2055
2087
  ]]),
@@ -2058,18 +2090,18 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
2058
2090
  "aria-controls": L.value,
2059
2091
  "aria-labelledby": e.label ? oe.value : void 0,
2060
2092
  "aria-haspopup": "listbox",
2061
- onClick: Ze,
2062
- onKeydown: Qe
2063
- }, [e.multiple && Se.value.length > 0 ? (A(), d("span", cn, [(A(!0), d(a, null, M(we.value, (e, t) => (A(), d("span", {
2064
- key: ve(e, t),
2065
- class: T(["hl-inline-flex hl-max-w-[110px] hl-truncate hl-rounded hl-border hl-border-solid hl-px-1.5 hl-py-0.5 hl-text-xs", Ie.value])
2066
- }, F(e.label), 3))), 128)), Te.value > 0 ? (A(), d("span", ln, " +" + F(Te.value) + " more ", 1)) : u("", !0)])) : (A(), d("span", un, F(Oe.value), 1))], 42, sn),
2067
- Ee.value && !e.disabled ? (A(), d("button", {
2093
+ onClick: it,
2094
+ onKeydown: at
2095
+ }, [e.multiple && Te.value.length > 0 ? (A(), d("span", cn, [(A(!0), d(a, null, M(De.value, (e, t) => (A(), d("span", {
2096
+ key: xe(e, t),
2097
+ class: T(["hl-inline-flex hl-max-w-[110px] hl-truncate hl-rounded hl-border hl-border-solid hl-px-1.5 hl-py-0.5 hl-text-xs", ze.value])
2098
+ }, F(e.label), 3))), 128)), Oe.value > 0 ? (A(), d("span", ln, " +" + F(Oe.value) + " more ", 1)) : u("", !0)])) : (A(), d("span", un, F(je.value), 1))], 42, sn),
2099
+ ke.value && !e.disabled ? (A(), d("button", {
2068
2100
  key: 0,
2069
2101
  type: "button",
2070
2102
  class: "hl-theme-hover-text hl-absolute hl-inset-y-0 hl-right-6 hl-my-auto hl-px-1 hl-text-muted hl-appearance-none hl-border-0 hl-bg-transparent hl-no-focus-ring hl-cursor-pointer",
2071
2103
  "aria-label": "Clear selection",
2072
- onClick: de(qe, ["stop"])
2104
+ onClick: fe($e, ["stop"])
2073
2105
  }, [h(U, {
2074
2106
  name: "x-mark",
2075
2107
  size: 14,
@@ -2084,13 +2116,13 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
2084
2116
  key: 0,
2085
2117
  ref: R(re).ref,
2086
2118
  class: "hanap-labs-theme hanap-labs-font hl-theme-bg hl-theme-border hl-overflow-hidden hl-rounded-md hl-border hl-border-solid hl-shadow-none",
2087
- style: E(Me.value),
2119
+ style: E(Fe.value),
2088
2120
  id: L.value,
2089
2121
  role: "listbox",
2090
2122
  "aria-labelledby": I.value,
2091
- "aria-activedescendant": Pe.value
2123
+ "aria-activedescendant": K.value
2092
2124
  }, [f("div", fn, [h(nt, {
2093
- ref: pe,
2125
+ ref: ge,
2094
2126
  modelValue: g.value,
2095
2127
  "onUpdate:modelValue": n[0] ||= (e) => g.value = e,
2096
2128
  type: "search",
@@ -2099,9 +2131,9 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
2099
2131
  }, null, 8, ["modelValue", "disabled"])]), f("div", {
2100
2132
  class: "hl-overflow-y-auto hl-py-1",
2101
2133
  style: E({ maxHeight: `${e.maxMenuHeight}px` })
2102
- }, [W.value.length > 0 ? (A(!0), d(a, { key: 0 }, M(W.value, (t, n) => (A(), d(a, { key: ve(t, n) }, [je.value >= 0 && n === je.value ? (A(), d("div", pn)) : u("", !0), f("button", {
2134
+ }, [W.value.length > 0 ? (A(!0), d(a, { key: 0 }, M(W.value, (t, n) => (A(), d(a, { key: xe(t, n) }, [Pe.value >= 0 && n === Pe.value ? (A(), d("div", pn)) : u("", !0), f("button", {
2103
2135
  type: "button",
2104
- id: ye(n),
2136
+ id: Se(n),
2105
2137
  "data-option-index": n,
2106
2138
  class: T(["hl-theme-bg hl-flex hl-w-full hl-items-center hl-justify-between hl-gap-2 hl-px-3 hl-py-2 hl-text-left hl-text-sm hl-transition-colors hl-appearance-none hl-border-0 hl-no-focus-ring", [
2107
2139
  e.optionClass,
@@ -2109,43 +2141,44 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
2109
2141
  "hl-cursor-not-allowed hl-text-muted": t.disabled,
2110
2142
  "hl-cursor-pointer": !t.disabled,
2111
2143
  "hl-theme-text": !t.disabled && !q(t),
2112
- "hl-font-medium": q(t),
2113
- "hover:hl-bg-[var(--hl-select-option-hover-bg)]": !t.disabled
2144
+ "hl-font-medium": q(t)
2114
2145
  },
2115
- !t.disabled && q(t) ? G.value : ""
2146
+ !t.disabled && q(t) ? Le.value : "",
2147
+ t.disabled ? "" : He.value,
2148
+ !t.disabled && y.value === n ? Ue.value : ""
2116
2149
  ]]),
2117
- style: E([Le.value, !t.disabled && y.value === n ? { backgroundColor: "var(--hl-select-option-highlight-bg)" } : void 0]),
2118
2150
  "aria-selected": q(t),
2119
2151
  disabled: t.disabled,
2120
- onMouseenter: (e) => tt(n),
2121
- onClick: (e) => Ke(t)
2152
+ onMouseenter: (e) => ct(n),
2153
+ onClick: (e) => Qe(t)
2122
2154
  }, [f("span", hn, [e.multiple ? (A(), d("span", {
2123
2155
  key: 0,
2124
- class: T(["hl-inline-flex hl-size-4 hl-items-center hl-justify-center hl-rounded hl-border hl-border-solid hl-text-[10px]", q(t) ? K.value : "hl-theme-border-strong hl-theme-bg-subtle"])
2125
- }, [q(t) ? (A(), l(U, {
2126
- key: 0,
2156
+ class: T(["hl-theme-border hl-inline-flex hl-shrink-0 hl-items-center hl-justify-center hl-overflow-hidden hl-rounded hl-border hl-border-solid hl-leading-none hl-transition-colors hl-duration-300 hl-size-4", q(t) ? Re.value : Be.value])
2157
+ }, [h(U, {
2127
2158
  name: "check",
2128
- size: 10,
2159
+ size: 12,
2160
+ color: q(t) ? We.value : void 0,
2161
+ class: T(["hl-transition-opacity hl-duration-300", [q(t) ? "hl-opacity-100" : "hl-opacity-0"]]),
2129
2162
  decorative: !0
2130
- })) : u("", !0)], 2)) : u("", !0), f("span", gn, [f("span", _n, F(t.label), 1), t.description ? (A(), d("span", vn, F(t.description), 1)) : u("", !0)])]), q(t) && !e.multiple ? (A(), d("span", {
2163
+ }, null, 8, ["color", "class"])], 2)) : u("", !0), f("span", gn, [f("span", _n, F(t.label), 1), t.description ? (A(), d("span", vn, F(t.description), 1)) : u("", !0)])]), q(t) && !e.multiple ? (A(), d("span", {
2131
2164
  key: 0,
2132
- class: T(["hl-shrink-0 hl-text-xs", G.value])
2165
+ class: T(["hl-shrink-0 hl-text-xs", Le.value])
2133
2166
  }, [h(U, {
2134
2167
  name: "check",
2135
2168
  size: 14,
2136
2169
  decorative: !0
2137
- })], 2)) : u("", !0)], 46, mn)], 64))), 128)) : (A(), d("p", yn, F(g.value.trim() ? "No matches found" : "No options available"), 1)), Ne.value ? (A(), d("button", {
2170
+ })], 2)) : u("", !0)], 42, mn)], 64))), 128)) : (A(), d("p", yn, F(g.value.trim() ? "No matches found" : "No options available"), 1)), G.value ? (A(), d("button", {
2138
2171
  key: 2,
2139
2172
  type: "button",
2140
2173
  class: "hl-theme-text hl-theme-hover-bg-muted hl-mx-2 hl-mb-2 hl-flex hl-w-[calc(100%-1rem)] hl-items-center hl-justify-between hl-rounded-md hl-border-0 hl-bg-transparent hl-px-3 hl-py-2 hl-text-left hl-text-sm hl-appearance-none hl-no-focus-ring",
2141
- onClick: Ye
2174
+ onClick: tt
2142
2175
  }, [f("span", null, "Add \"" + F(g.value.trim()) + "\"", 1), h(U, {
2143
2176
  name: "plus",
2144
2177
  size: 14,
2145
2178
  decorative: !0
2146
2179
  })])) : u("", !0)], 4)], 12, dn)) : u("", !0)]))
2147
2180
  ]),
2148
- De.value ? (A(), d("div", bn, [e.error ? (A(), d("div", xn, F(e.error), 1)) : u("", !0), (A(!0), d(a, null, M(e.errors, (e) => (A(), d("div", {
2181
+ Ae.value ? (A(), d("div", bn, [e.error ? (A(), d("div", xn, F(e.error), 1)) : u("", !0), (A(!0), d(a, null, M(e.errors, (e) => (A(), d("div", {
2149
2182
  key: e,
2150
2183
  class: "hl-text-xs hl-input-error-theme"
2151
2184
  }, F(e), 1))), 128))])) : u("", !0)
@@ -2155,7 +2188,7 @@ var Ct = { class: "hanap-labs-theme hanap-labs-font hl-relative hl-inline-block"
2155
2188
  __name: "HLSkeleton",
2156
2189
  props: { class: { default: "" } },
2157
2190
  setup(e) {
2158
- return (t, n) => (A(), d("div", { class: T(["hl-skeleton hl-animate-pulse hl-rounded-lg hl-bg-tertiary", e.class]) }, null, 2));
2191
+ return (t, n) => (A(), d("div", { class: T(["hl-animate-pulse hl-rounded-lg hl-bg-gray-200", e.class]) }, null, 2));
2159
2192
  }
2160
2193
  }), wn = { class: "hanap-labs-theme hanap-labs-font hl-space-y-4" }, Tn = {
2161
2194
  key: 0,
@@ -3769,7 +3802,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
3769
3802
  }, fi = ["onClick"], pi = {
3770
3803
  key: 1,
3771
3804
  class: "hl-inline-flex hl-min-w-4 hl-justify-center"
3772
- }, mi = { class: "hl-divide-y hl-divide-[var(--hanap-labs-border-default)]" }, hi = {
3805
+ }, mi = { class: "hl-divide-y hl-divide-gray-200" }, hi = {
3773
3806
  key: 0,
3774
3807
  class: "hl-w-10 hl-whitespace-nowrap hl-px-3 hl-py-3 hl-text-center"
3775
3808
  }, gi = {
@@ -3978,28 +4011,28 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
3978
4011
  }
3979
4012
  C.previousPage();
3980
4013
  }
3981
- function V() {
4014
+ function de() {
3982
4015
  if (E.value) {
3983
4016
  i("page:change", Math.min(O.value, D.value + 1));
3984
4017
  return;
3985
4018
  }
3986
4019
  C.nextPage();
3987
4020
  }
3988
- function de(e) {
4021
+ function fe(e) {
3989
4022
  if (E.value) {
3990
4023
  i("page:change", e);
3991
4024
  return;
3992
4025
  }
3993
4026
  C.setPageIndex(e - 1);
3994
4027
  }
3995
- function fe() {
4028
+ function pe() {
3996
4029
  if (ee.value) {
3997
4030
  C.resetRowSelection();
3998
4031
  return;
3999
4032
  }
4000
4033
  C.toggleAllPageRowsSelected(!0);
4001
4034
  }
4002
- function pe(e) {
4035
+ function me(e) {
4003
4036
  e.toggleSelected();
4004
4037
  }
4005
4038
  return t({
@@ -4054,7 +4087,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4054
4087
  "aria-label": "Toggle all rows",
4055
4088
  size: "md",
4056
4089
  class: "hl-mx-auto hl-max-w-max",
4057
- "onUpdate:modelValue": fe
4090
+ "onUpdate:modelValue": pe
4058
4091
  }, null, 8, ["model-value", "indeterminate"])])) : u("", !0), (A(!0), d(a, null, M(R(C).getFlatHeaders().filter((e) => e.id !== "select"), (e) => (A(), d("th", {
4059
4092
  key: e.id,
4060
4093
  class: T(["hl-whitespace-nowrap hl-px-4 hl-py-3", [I(P(e.column.columnDef.meta).alignment), { "hl-cursor-pointer hl-select-none hover:hl-text-primary": e.column.getCanSort() }]]),
@@ -4081,7 +4114,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4081
4114
  "aria-label": "Toggle row",
4082
4115
  size: "md",
4083
4116
  class: "hl-mx-auto hl-max-w-max",
4084
- "onUpdate:modelValue": (e) => pe(n)
4117
+ "onUpdate:modelValue": (e) => me(n)
4085
4118
  }, null, 8, ["model-value", "onUpdate:modelValue"])])) : u("", !0), (A(!0), d(a, null, M(n.getVisibleCells().filter((e) => e.column.id !== "select"), (e) => (A(), d("td", {
4086
4119
  key: e.id,
4087
4120
  class: T(["hl-theme-text hl-whitespace-nowrap hl-px-4 hl-py-3", I(P(e.column.columnDef.meta).alignment)])
@@ -4128,7 +4161,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4128
4161
  color: e === D.value ? "primary" : void 0,
4129
4162
  rounded: !1,
4130
4163
  class: T(["!hl-size-9 !hl-min-w-0 !hl-p-0", e === D.value ? "" : "hl-theme-hover-bg-muted"]),
4131
- onClick: (t) => de(e)
4164
+ onClick: (t) => fe(e)
4132
4165
  }, null, 8, [
4133
4166
  "label",
4134
4167
  "variant",
@@ -4146,7 +4179,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4146
4179
  class: "!hl-size-9 !hl-min-w-0 !hl-p-0 hl-theme-hover-bg-muted",
4147
4180
  disabled: E.value ? D.value >= O.value : !R(C).getCanNextPage(),
4148
4181
  "aria-label": "Next page",
4149
- onClick: V
4182
+ onClick: de
4150
4183
  }, {
4151
4184
  icon: B(() => [h(U, {
4152
4185
  name: "chevron-right",
@@ -4199,6 +4232,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4199
4232
  minlength: {},
4200
4233
  labelClass: { default: "" },
4201
4234
  inputClass: { default: "" },
4235
+ color: {},
4202
4236
  noBorder: {
4203
4237
  type: Boolean,
4204
4238
  default: !1
@@ -4221,9 +4255,20 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4221
4255
  let t = ie();
4222
4256
  return { inputId: c(() => e || t) };
4223
4257
  }
4224
- let { inputId: s } = o(e.id), p = c(() => !!e.error || e.errors.length > 0);
4258
+ let { inputId: s } = o(e.id), p = c(() => !!e.error || e.errors.length > 0), m = {
4259
+ secondary: "hl-border-secondary focus:hl-border-secondary",
4260
+ tertiary: "hl-border-tertiary focus:hl-border-tertiary",
4261
+ primary: "hl-border-primary focus:hl-border-primary",
4262
+ success: "hl-border-success focus:hl-border-success",
4263
+ danger: "hl-border-danger focus:hl-border-danger",
4264
+ warning: "hl-border-warning focus:hl-border-warning",
4265
+ info: "hl-border-info focus:hl-border-info",
4266
+ light: "hl-border-muted focus:hl-border-secondary",
4267
+ dark: "hl-border-dark focus:hl-border-dark",
4268
+ muted: "hl-border-muted focus:hl-border-muted"
4269
+ }, h = c(() => e.color ? m[e.color] : "hl-input-theme hl-input-default");
4225
4270
  return (t, o) => (A(), d("div", wi, [
4226
- e.label || e.description ? (A(), l(Be, {
4271
+ e.label || e.description ? (A(), l(Ve, {
4227
4272
  key: 0,
4228
4273
  label: e.label,
4229
4274
  description: e.description,
@@ -4237,7 +4282,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4237
4282
  "required",
4238
4283
  "label-class"
4239
4284
  ])) : u("", !0),
4240
- f("div", Ti, [V(f("textarea", {
4285
+ f("div", Ti, [de(f("textarea", {
4241
4286
  id: R(s),
4242
4287
  ref: R(r).textarea,
4243
4288
  "onUpdate:modelValue": o[0] ||= (e) => n.value = e,
@@ -4248,11 +4293,15 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4248
4293
  rows: e.rows,
4249
4294
  maxlength: e.maxlength,
4250
4295
  minlength: e.minlength,
4251
- class: T(["hl-theme-border hl-theme-text hl-theme-placeholder hl-block hl-w-full hl-appearance-none hl-box-border hl-border hl-border-solid hl-bg-transparent hl-leading-tight hl-transition-colors hl-duration-300 hl-no-focus-ring disabled:hl-cursor-not-allowed disabled:hl-opacity-60 hl-py-2.5 hl-px-3 hl-text-sm hl-rounded-lg hl-resize-none", [e.inputClass, {
4252
- "hl-cursor-not-allowed": e.disabled,
4253
- "hl-input-error-border-theme focus:hl-input-error-border-theme": p.value,
4254
- "hl-border-0 focus:hl-border-0": e.noBorder
4255
- }]]),
4296
+ class: T(["hl-theme-text hl-theme-placeholder hl-block hl-w-full hl-appearance-none hl-box-border hl-border hl-border-solid hl-leading-tight hl-transition-colors hl-duration-300 hl-no-focus-ring disabled:hl-cursor-not-allowed disabled:hl-opacity-60 hl-py-2.5 hl-px-3 hl-text-sm hl-rounded-lg hl-resize-none", [
4297
+ h.value,
4298
+ e.inputClass,
4299
+ {
4300
+ "hl-cursor-not-allowed": e.disabled,
4301
+ "hl-input-error-border-theme focus:hl-input-error-border-theme": p.value,
4302
+ "hl-border-0 focus:hl-border-0": e.noBorder
4303
+ }
4304
+ ]]),
4256
4305
  onFocus: o[1] ||= (e) => i("focus"),
4257
4306
  onBlur: o[2] ||= (e) => i("blur"),
4258
4307
  onInput: o[3] ||= (e) => i("input")
@@ -4263,7 +4312,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4263
4312
  }, F(e), 1))), 128))])) : u("", !0)
4264
4313
  ]));
4265
4314
  }
4266
- }), [["__scopeId", "data-v-836dccfd"]]), Ai = /* @__PURE__ */ e(((e, t) => {
4315
+ }), [["__scopeId", "data-v-9e2d6169"]]), Ai = /* @__PURE__ */ e(((e, t) => {
4267
4316
  (function(n, r) {
4268
4317
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
4269
4318
  })(e, (function() {
@@ -4780,7 +4829,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4780
4829
  "hl-px-3 hl-py-1.5": !!e.label,
4781
4830
  "hl-p-1.5": !!e.icon && !e.label
4782
4831
  }]),
4783
- onClick: r[0] ||= de((e) => n("click"), ["stop"])
4832
+ onClick: r[0] ||= fe((e) => n("click"), ["stop"])
4784
4833
  }, [N(t.$slots, "default", {}, () => [e.icon ? (A(), l(U, {
4785
4834
  key: 0,
4786
4835
  name: e.icon,
@@ -4831,7 +4880,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4831
4880
  type: "button",
4832
4881
  disabled: e.disabled,
4833
4882
  class: T(["hl-appearance-none hl-border-0 hl-no-focus-ring hl-color-transition hl-rounded-md hl-flex hl-items-center hl-justify-center hl-size-8 hl-text-sm hl-cursor-pointer", r()]),
4834
- onClick: i[0] ||= de((e) => n("click"), ["stop"]),
4883
+ onClick: i[0] ||= fe((e) => n("click"), ["stop"]),
4835
4884
  onMouseenter: i[1] ||= (e) => n("mouseenter"),
4836
4885
  onMouseleave: i[2] ||= (e) => n("mouseleave")
4837
4886
  }, [N(t.$slots, "default", {}, () => [m(F(e.label), 1)])], 42, Hi));
@@ -4960,7 +5009,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4960
5009
  S.value === "dates" ? w.value = w.value.subtract(1, "month").startOf("month") : S.value === "months" ? w.value = w.value.subtract(1, "year").startOf("month") : S.value === "years" && (w.value = w.value.subtract(10, "year").startOf("month"));
4961
5010
  }, ue = () => {
4962
5011
  S.value === "dates" ? w.value = w.value.add(1, "month").startOf("month") : S.value === "months" ? w.value = w.value.add(1, "year").startOf("month") : S.value === "years" && (w.value = w.value.add(10, "year").startOf("month"));
4963
- }, V = (t) => {
5012
+ }, de = (t) => {
4964
5013
  if (e.range) {
4965
5014
  let e = r.value;
4966
5015
  return (e?.start?.isSame(t, "day") ?? !1) || (e?.end?.isSame(t, "day") ?? !1);
@@ -4968,7 +5017,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4968
5017
  let e = r.value;
4969
5018
  return e ? t.isSame(e, "day") : !1;
4970
5019
  }
4971
- }, fe = (t) => {
5020
+ }, pe = (t) => {
4972
5021
  if (!e.range) return !1;
4973
5022
  let n = r.value;
4974
5023
  if (!n?.start) return !1;
@@ -4976,15 +5025,15 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4976
5025
  if (!i) return !1;
4977
5026
  let a = n.start.isBefore(i) ? n.start : i, o = n.start.isBefore(i) ? i : n.start;
4978
5027
  return t.isAfter(a, "day") && t.isBefore(o, "day");
4979
- }, pe = (t) => {
5028
+ }, me = (t) => {
4980
5029
  if (!e.range) return !1;
4981
5030
  let n = r.value;
4982
5031
  return n?.start ? t.isSame(n.start, "day") : !1;
4983
- }, H = (t) => {
5032
+ }, V = (t) => {
4984
5033
  if (!e.range) return !1;
4985
5034
  let n = r.value;
4986
5035
  return n?.end ? t.isSame(n.end, "day") : !1;
4987
- }, me = (t) => {
5036
+ }, he = (t) => {
4988
5037
  if (e.range) {
4989
5038
  let e = r.value;
4990
5039
  return e?.start?.month() === t || e?.end?.month() === t;
@@ -4992,7 +5041,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
4992
5041
  let e = r.value;
4993
5042
  return !e || !e.isValid() ? !1 : e.month() === t;
4994
5043
  }
4995
- }, he = (t) => {
5044
+ }, ge = (t) => {
4996
5045
  if (e.range) {
4997
5046
  let e = r.value;
4998
5047
  return e?.start?.year() === t || e?.end?.year() === t;
@@ -5000,14 +5049,14 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5000
5049
  let e = r.value;
5001
5050
  return e ? e.year() === t : !1;
5002
5051
  }
5003
- }, ge = (t) => !!(e.minDate && t.isSameOrBefore((0, $.default)(e.minDate).subtract(1, "day"), "day") || e.maxDate && t.isSameOrAfter((0, $.default)(e.maxDate).add(1, "day"), "day")), _e = (t) => {
5052
+ }, H = (t) => !!(e.minDate && t.isSameOrBefore((0, $.default)(e.minDate).subtract(1, "day"), "day") || e.maxDate && t.isSameOrAfter((0, $.default)(e.maxDate).add(1, "day"), "day")), _e = (t) => {
5004
5053
  let n = w.value.year(), r = (0, $.default)().year(n).month(t).startOf("month"), i = (0, $.default)().year(n).month(t).endOf("month");
5005
5054
  return !!(e.minDate && i.isSameOrBefore((0, $.default)(e.minDate).subtract(1, "day"), "day") || e.maxDate && r.isSameOrAfter((0, $.default)(e.maxDate).add(1, "day"), "day"));
5006
5055
  }, ve = (t) => {
5007
5056
  let n = (0, $.default)().year(t).startOf("year"), r = (0, $.default)().year(t).endOf("year");
5008
5057
  return !!(e.minDate && r.isSameOrBefore((0, $.default)(e.minDate).subtract(1, "day"), "day") || e.maxDate && n.isSameOrAfter((0, $.default)(e.maxDate).add(1, "day"), "day"));
5009
5058
  }, ye = (t) => {
5010
- if (!ge(t)) if (e.range) {
5059
+ if (!H(t)) if (e.range) {
5011
5060
  let e = r.value;
5012
5061
  if (E.value === "start" || !e?.start) r.value = {
5013
5062
  start: t,
@@ -5046,7 +5095,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5046
5095
  r.value = e, i("change", e);
5047
5096
  }
5048
5097
  }), (t, n) => (A(), d("div", Wi, [
5049
- e.label || e.description ? (A(), l(Be, {
5098
+ e.label || e.description ? (A(), l(Ve, {
5050
5099
  key: 0,
5051
5100
  label: e.label,
5052
5101
  description: e.description,
@@ -5081,7 +5130,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5081
5130
  type: "button",
5082
5131
  class: "hl-theme-hover-text hl-absolute hl-inset-y-0 hl-right-6 hl-my-auto hl-px-1 hl-text-muted hl-appearance-none hl-border-0 hl-bg-transparent hl-no-focus-ring hl-cursor-pointer",
5083
5132
  "aria-label": "Clear date",
5084
- onClick: de(Se, ["stop"])
5133
+ onClick: fe(Se, ["stop"])
5085
5134
  }, [h(U, {
5086
5135
  name: "x-mark",
5087
5136
  size: 14,
@@ -5138,11 +5187,11 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5138
5187
  f("div", ia, [(A(!0), d(a, null, M(oe.value, (e, t) => (A(), d(a, { key: t }, [e ? (A(), l(Ui, {
5139
5188
  key: 1,
5140
5189
  label: e.dayjs.date(),
5141
- selected: V(e.dayjs),
5142
- disabled: ge(e.dayjs),
5143
- "in-range": fe(e.dayjs),
5144
- "range-start": pe(e.dayjs),
5145
- "range-end": H(e.dayjs),
5190
+ selected: de(e.dayjs),
5191
+ disabled: H(e.dayjs),
5192
+ "in-range": pe(e.dayjs),
5193
+ "range-start": me(e.dayjs),
5194
+ "range-end": V(e.dayjs),
5146
5195
  onClick: (t) => ye(e.dayjs),
5147
5196
  onMouseenter: (t) => D.value = e.dayjs,
5148
5197
  onMouseleave: n[3] ||= (e) => D.value = null
@@ -5165,11 +5214,11 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5165
5214
  f("div", ua, [(A(!0), d(a, null, M(se.value, (e, t) => (A(), d(a, { key: t }, [e ? (A(), l(Ui, {
5166
5215
  key: 1,
5167
5216
  label: e.dayjs.date(),
5168
- selected: V(e.dayjs),
5169
- disabled: ge(e.dayjs),
5170
- "in-range": fe(e.dayjs),
5171
- "range-start": pe(e.dayjs),
5172
- "range-end": H(e.dayjs),
5217
+ selected: de(e.dayjs),
5218
+ disabled: H(e.dayjs),
5219
+ "in-range": pe(e.dayjs),
5220
+ "range-start": me(e.dayjs),
5221
+ "range-end": V(e.dayjs),
5173
5222
  onClick: (t) => ye(e.dayjs),
5174
5223
  onMouseenter: (t) => D.value = e.dayjs,
5175
5224
  onMouseleave: n[4] ||= (e) => D.value = null
@@ -5187,7 +5236,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5187
5236
  S.value === "months" ? (A(), d("div", fa, [(A(), d(a, null, M(ee, (e, t) => h(Ui, {
5188
5237
  key: e,
5189
5238
  label: e,
5190
- selected: me(t),
5239
+ selected: he(t),
5191
5240
  disabled: _e(t),
5192
5241
  onClick: (e) => be(t)
5193
5242
  }, null, 8, [
@@ -5199,7 +5248,7 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5199
5248
  S.value === "years" ? (A(), d("div", pa, [(A(!0), d(a, null, M(ce.value, (e) => (A(), l(Ui, {
5200
5249
  key: e,
5201
5250
  label: e,
5202
- selected: he(e),
5251
+ selected: ge(e),
5203
5252
  muted: e < I.value || e > L.value,
5204
5253
  disabled: ve(e),
5205
5254
  onClick: (t) => xe(e)
@@ -5217,4 +5266,4 @@ var ni = { class: "hanap-labs-theme hanap-labs-font hl-flex hl-flex-col hl-gap-4
5217
5266
  }
5218
5267
  });
5219
5268
  //#endregion
5220
- export { U as C, W as S, he as T, qe as _, Cn as a, K as b, rn as c, Bt as d, zt as f, nt as g, wt as h, jn as i, Zt as l, kt as m, ki as n, Sn as o, Nt as p, Ci as r, an as s, ma as t, Xt as u, Be as v, me as w, Ne as x, Ie as y };
5269
+ export { U as C, je as S, ge as T, qe as _, Cn as a, K as b, rn as c, Bt as d, zt as f, nt as g, wt as h, jn as i, Zt as l, kt as m, ki as n, Sn as o, Nt as p, Ci as r, an as s, ma as t, Xt as u, Ve as v, he as w, W as x, Ie as y };