nicklabs-ui 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1447,7 +1447,7 @@ var It = { class: "hero-section-container" }, Lt = { class: "hero-section" }, Rt
1447
1447
  description: t.emptyDescription
1448
1448
  }, null, 8, ["title", "description"])], !0) : o("", !0)], 2));
1449
1449
  }
1450
- }), [["__scopeId", "data-v-d3859b48"]]), Fn = { class: "content-container" }, In = { key: 0 }, Ln = /* @__PURE__ */ j(/* @__PURE__ */ p({
1450
+ }), [["__scopeId", "data-v-d3859b48"]]), Fn = { class: "content-container" }, In = { key: 0 }, Ln = { class: "actions" }, Rn = /* @__PURE__ */ j(/* @__PURE__ */ p({
1451
1451
  __name: "NList",
1452
1452
  props: {
1453
1453
  title: { default: "" },
@@ -1513,6 +1513,9 @@ var It = { class: "hero-section-container" }, Lt = { class: "hero-section" }, Rt
1513
1513
  function g() {
1514
1514
  e.batchDeletable && (m.value ? e.items.forEach((e) => r.value.delete(e.id)) : e.items.forEach((e) => r.value.add(e.id)), r.value = new Set(r.value));
1515
1515
  }
1516
+ function _() {
1517
+ r.value.clear();
1518
+ }
1516
1519
  return (t, r) => (y(), s("div", Fn, [f(Kt, {
1517
1520
  icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"></path>\n <circle cx=\"12\" cy=\"7\" r=\"4\"></circle>\n </svg>",
1518
1521
  title: e.title,
@@ -1567,7 +1570,7 @@ var It = { class: "hero-section-container" }, Lt = { class: "hero-section" }, Rt
1567
1570
  variant: "solid",
1568
1571
  intent: "error",
1569
1572
  disabled: u.value.length == 0,
1570
- onClick: r[2] ||= (e) => n("batchDelete", u.value)
1573
+ onClick: r[2] ||= (e) => n("batchDelete", u.value, _)
1571
1574
  }, {
1572
1575
  default: D(() => [r[10] ||= c("svg", {
1573
1576
  xmlns: "http://www.w3.org/2000/svg",
@@ -1651,7 +1654,7 @@ var It = { class: "hero-section-container" }, Lt = { class: "hero-section" }, Rt
1651
1654
  fn: D(({ item: r, index: i }) => [C(t.$slots, "actions", {
1652
1655
  item: r,
1653
1656
  index: i
1654
- }, () => [e.updatable ? (y(), a(M, {
1657
+ }, () => [c("div", Ln, [e.updatable ? (y(), a(M, {
1655
1658
  key: 0,
1656
1659
  variant: "outline",
1657
1660
  onClick: O(() => n("update", r), ["stop"])
@@ -1666,7 +1669,7 @@ var It = { class: "hero-section-container" }, Lt = { class: "hero-section" }, Rt
1666
1669
  }, {
1667
1670
  default: D(() => [d(w(e.deleteLabel), 1)]),
1668
1671
  _: 1
1669
- }, 8, ["onClick"])) : o("", !0)], !0)]),
1672
+ }, 8, ["onClick"])) : o("", !0)])], !0)]),
1670
1673
  key: "2"
1671
1674
  } : void 0,
1672
1675
  t.$slots["actions-header"] ? {
@@ -1695,11 +1698,11 @@ var It = { class: "hero-section-container" }, Lt = { class: "hero-section" }, Rt
1695
1698
  _: 3
1696
1699
  })]));
1697
1700
  }
1698
- }), [["__scopeId", "data-v-fb6ad449"]]), Rn = 0, zn = b([]);
1699
- function Bn() {
1701
+ }), [["__scopeId", "data-v-1fc4a23c"]]), zn = 0, Bn = b([]);
1702
+ function Vn() {
1700
1703
  let e = function(e, n = {}) {
1701
- let r = ++Rn, i = n.duration ?? 4e3;
1702
- zn.push({
1704
+ let r = ++zn, i = n.duration ?? 4e3;
1705
+ Bn.push({
1703
1706
  id: r,
1704
1707
  description: e,
1705
1708
  status: n.status ?? "info",
@@ -1721,34 +1724,34 @@ function Bn() {
1721
1724
  status: "info"
1722
1725
  });
1723
1726
  function t(e) {
1724
- let t = zn.findIndex((t) => t.id === e);
1725
- t !== -1 && zn.splice(t, 1);
1727
+ let t = Bn.findIndex((t) => t.id === e);
1728
+ t !== -1 && Bn.splice(t, 1);
1726
1729
  }
1727
1730
  return {
1728
- toasts: zn,
1731
+ toasts: Bn,
1729
1732
  toast: e,
1730
1733
  removeToast: t
1731
1734
  };
1732
1735
  }
1733
1736
  //#endregion
1734
1737
  //#region src/components/NToast.vue?vue&type=script&setup=true&lang.ts
1735
- var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1738
+ var Hn = { class: "icon-wrap" }, Un = ["innerHTML"], Wn = {
1736
1739
  key: 0,
1737
1740
  class: "arc-timer",
1738
1741
  viewBox: "0 0 36 36",
1739
1742
  width: "36",
1740
1743
  height: "36",
1741
1744
  "shape-rendering": "geometricPrecision"
1742
- }, Wn = { class: "body" }, Gn = {
1745
+ }, Gn = { class: "body" }, Kn = {
1743
1746
  key: 0,
1744
1747
  class: "title"
1745
- }, Kn = {
1748
+ }, qn = {
1746
1749
  key: 1,
1747
1750
  class: "description"
1748
- }, qn = /* @__PURE__ */ j(/* @__PURE__ */ p({
1751
+ }, Jn = /* @__PURE__ */ j(/* @__PURE__ */ p({
1749
1752
  __name: "NToast",
1750
1753
  setup(n) {
1751
- let { toasts: i } = Bn(), l = {
1754
+ let { toasts: i } = Vn(), l = {
1752
1755
  success: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M20 6 9 17l-5-5\"/>\n </svg>",
1753
1756
  danger: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"m15 9-6 6\"/>\n <path d=\"m9 9 6 6\"/>\n </svg>",
1754
1757
  warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>\n <path d=\"M12 9v4\"/>\n <path d=\"M12 17h.01\"/>\n </svg>",
@@ -1762,10 +1765,10 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1762
1765
  default: D(() => [(y(!0), s(e, null, S(T(i), (e) => (y(), s("div", {
1763
1766
  key: e.id,
1764
1767
  class: h(["toast", [`${e.status}`]])
1765
- }, [c("div", Vn, [c("div", {
1768
+ }, [c("div", Hn, [c("div", {
1766
1769
  class: "icon",
1767
1770
  innerHTML: l[e.status]
1768
- }, null, 8, Hn), e.duration > 0 ? (y(), s("svg", Un, [u[0] ||= c("circle", {
1771
+ }, null, 8, Un), e.duration > 0 ? (y(), s("svg", Wn, [u[0] ||= c("circle", {
1769
1772
  class: "arc-track",
1770
1773
  cx: "18",
1771
1774
  cy: "18",
@@ -1777,14 +1780,14 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1777
1780
  r: "16",
1778
1781
  transform: "rotate(-90 18 18)",
1779
1782
  style: g({ animationDuration: `${e.duration}ms` })
1780
- }, null, 4)])) : o("", !0)]), c("div", Wn, [e.title ? (y(), s("p", Gn, w(e.title), 1)) : o("", !0), e.description ? (y(), s("p", Kn, w(e.description), 1)) : o("", !0)])], 2))), 128))]),
1783
+ }, null, 4)])) : o("", !0)]), c("div", Gn, [e.title ? (y(), s("p", Kn, w(e.title), 1)) : o("", !0), e.description ? (y(), s("p", qn, w(e.description), 1)) : o("", !0)])], 2))), 128))]),
1781
1784
  _: 1
1782
1785
  })]));
1783
1786
  }
1784
- }), [["__scopeId", "data-v-3d2f3052"]]), Jn = { class: "code" }, Yn = {
1787
+ }), [["__scopeId", "data-v-3d2f3052"]]), Yn = { class: "code" }, Xn = {
1785
1788
  key: 0,
1786
1789
  class: "header"
1787
- }, Xn = { class: "language-label" }, Zn = {
1790
+ }, Zn = { class: "language-label" }, Qn = {
1788
1791
  key: 0,
1789
1792
  xmlns: "http://www.w3.org/2000/svg",
1790
1793
  width: "14",
@@ -1795,7 +1798,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1795
1798
  "stroke-width": "2",
1796
1799
  "stroke-linecap": "round",
1797
1800
  "stroke-linejoin": "round"
1798
- }, Qn = {
1801
+ }, $n = {
1799
1802
  key: 1,
1800
1803
  xmlns: "http://www.w3.org/2000/svg",
1801
1804
  width: "14",
@@ -1806,10 +1809,10 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1806
1809
  "stroke-width": "2",
1807
1810
  "stroke-linecap": "round",
1808
1811
  "stroke-linejoin": "round"
1809
- }, $n = { class: "code-body" }, er = {
1812
+ }, er = { class: "code-body" }, tr = {
1810
1813
  key: 0,
1811
1814
  class: "gutter"
1812
- }, tr = ["textContent"], nr = /* @__PURE__ */ j(/* @__PURE__ */ p({
1815
+ }, nr = ["textContent"], rr = /* @__PURE__ */ j(/* @__PURE__ */ p({
1813
1816
  __name: "NCode",
1814
1817
  props: {
1815
1818
  code: {},
@@ -1828,28 +1831,28 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1828
1831
  }, 2e3);
1829
1832
  } catch {}
1830
1833
  }
1831
- return (i, l) => (y(), s("div", Jn, [(t.language, y(), s("div", Yn, [c("span", Xn, w(t.language || "code"), 1), c("button", {
1834
+ return (i, l) => (y(), s("div", Yn, [(t.language, y(), s("div", Xn, [c("span", Zn, w(t.language || "code"), 1), c("button", {
1832
1835
  class: h(["copy-btn", { copied: n.value }]),
1833
1836
  onClick: a
1834
- }, [n.value ? (y(), s("svg", Qn, [...l[1] ||= [c("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : (y(), s("svg", Zn, [...l[0] ||= [c("rect", {
1837
+ }, [n.value ? (y(), s("svg", $n, [...l[1] ||= [c("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : (y(), s("svg", Qn, [...l[0] ||= [c("rect", {
1835
1838
  x: "9",
1836
1839
  y: "9",
1837
1840
  width: "13",
1838
1841
  height: "13",
1839
1842
  rx: "2",
1840
1843
  ry: "2"
1841
- }, null, -1), c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)]])), c("span", null, w(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div", $n, [t.showLineNumbers ? (y(), s("div", er, [(y(!0), s(e, null, S(r.value, (e, t) => (y(), s("span", {
1844
+ }, null, -1), c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)]])), c("span", null, w(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div", er, [t.showLineNumbers ? (y(), s("div", tr, [(y(!0), s(e, null, S(r.value, (e, t) => (y(), s("span", {
1842
1845
  key: t,
1843
1846
  class: "line-number"
1844
1847
  }, w(t + 1), 1))), 128))])) : o("", !0), c("pre", {
1845
1848
  class: "code-content",
1846
1849
  textContent: w(t.code.trim())
1847
- }, null, 8, tr)])]));
1850
+ }, null, 8, nr)])]));
1848
1851
  }
1849
- }), [["__scopeId", "data-v-6fed5425"]]), rr = {
1852
+ }), [["__scopeId", "data-v-6fed5425"]]), ir = {
1850
1853
  key: 0,
1851
1854
  class: "label"
1852
- }, ir = /* @__PURE__ */ j(/* @__PURE__ */ p({
1855
+ }, ar = /* @__PURE__ */ j(/* @__PURE__ */ p({
1853
1856
  __name: "NSwitch",
1854
1857
  props: {
1855
1858
  modelValue: {
@@ -1874,7 +1877,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1874
1877
  let e = !n.modelValue;
1875
1878
  r("update:modelValue", e), r("change", e);
1876
1879
  };
1877
- return (t, n) => (y(), s("div", { class: h(["switch-wrapper", { inline: e.inline }]) }, [e.title ? (y(), s("label", rr, w(e.title), 1)) : o("", !0), c("div", {
1880
+ return (t, n) => (y(), s("div", { class: h(["switch-wrapper", { inline: e.inline }]) }, [e.title ? (y(), s("label", ir, w(e.title), 1)) : o("", !0), c("div", {
1878
1881
  class: h(["switch", [
1879
1882
  `size-${e.size}`,
1880
1883
  { checked: a.value },
@@ -1883,7 +1886,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1883
1886
  onClick: l
1884
1887
  }, [...n[0] ||= [c("div", { class: "inner" }, [c("div", { class: "handle" })], -1)]], 2)], 2));
1885
1888
  }
1886
- }), [["__scopeId", "data-v-efa08615"]]), ar = /* @__PURE__ */ j(/* @__PURE__ */ p({
1889
+ }), [["__scopeId", "data-v-efa08615"]]), or = /* @__PURE__ */ j(/* @__PURE__ */ p({
1887
1890
  __name: "NTag",
1888
1891
  props: {
1889
1892
  intent: { default: "none" },
@@ -1932,49 +1935,49 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
1932
1935
  y2: "18"
1933
1936
  })], -1)]])) : o("", !0)], 2));
1934
1937
  }
1935
- }), [["__scopeId", "data-v-55e5be0f"]]), or = {
1938
+ }), [["__scopeId", "data-v-55e5be0f"]]), sr = {
1936
1939
  key: 0,
1937
1940
  class: "label"
1938
- }, sr = {
1941
+ }, cr = {
1939
1942
  key: 0,
1940
1943
  class: "picker-dropdown"
1941
- }, cr = { class: "picker-header" }, lr = { class: "header-nav" }, ur = { class: "header-nav" }, dr = { class: "picker-body" }, fr = { class: "weekday-grid" }, pr = { class: "day-grid" }, mr = {
1944
+ }, lr = { class: "picker-header" }, ur = { class: "header-nav" }, dr = { class: "header-nav" }, fr = { class: "picker-body" }, pr = { class: "weekday-grid" }, mr = { class: "day-grid" }, hr = {
1942
1945
  key: 1,
1943
1946
  class: "year-grid"
1944
- }, hr = {
1947
+ }, gr = {
1945
1948
  key: 0,
1946
1949
  class: "time-section"
1947
- }, gr = { class: "time-sliders" }, _r = {
1950
+ }, _r = { class: "time-sliders" }, vr = {
1948
1951
  key: 0,
1949
1952
  class: "time-row"
1950
- }, vr = ["value"], yr = { class: "time-val" }, br = {
1953
+ }, yr = ["value"], br = { class: "time-val" }, xr = {
1951
1954
  key: 1,
1952
1955
  class: "time-row"
1953
- }, xr = ["value"], Sr = { class: "time-val" }, Cr = { class: "mobile-sheet" }, wr = { class: "picker-header" }, Tr = { class: "header-nav" }, Er = { class: "header-nav" }, Dr = { class: "picker-body" }, Or = { class: "weekday-grid" }, kr = { class: "day-grid" }, Ar = {
1956
+ }, Sr = ["value"], Cr = { class: "time-val" }, wr = { class: "mobile-sheet" }, Tr = { class: "picker-header" }, Er = { class: "header-nav" }, Dr = { class: "header-nav" }, Or = { class: "picker-body" }, kr = { class: "weekday-grid" }, Ar = { class: "day-grid" }, jr = {
1954
1957
  key: 1,
1955
1958
  class: "year-grid"
1956
- }, jr = {
1959
+ }, Mr = {
1957
1960
  key: 0,
1958
1961
  class: "time-section"
1959
- }, Mr = { class: "time-sliders" }, Nr = {
1962
+ }, Nr = { class: "time-sliders" }, Pr = {
1960
1963
  key: 0,
1961
1964
  class: "time-row"
1962
- }, Pr = ["value"], Fr = { class: "time-val" }, Ir = {
1965
+ }, Fr = ["value"], Ir = { class: "time-val" }, Lr = {
1963
1966
  key: 1,
1964
1967
  class: "time-row"
1965
- }, Lr = ["value"], Rr = { class: "time-val" }, zr = { class: "range-modal" }, Br = { class: "range-body" }, Vr = {
1968
+ }, Rr = ["value"], zr = { class: "time-val" }, Br = { class: "range-modal" }, Vr = { class: "range-body" }, Hr = {
1966
1969
  key: 0,
1967
1970
  class: "range-sep"
1968
- }, Hr = { class: "range-cal" }, Ur = { class: "picker-header" }, Wr = { class: "header-nav" }, Gr = {
1971
+ }, Ur = { class: "range-cal" }, Wr = { class: "picker-header" }, Gr = { class: "header-nav" }, Kr = {
1969
1972
  key: 1,
1970
1973
  class: "header-nav-placeholder"
1971
- }, Kr = { class: "header-title no-click" }, qr = { class: "header-nav" }, Jr = {
1974
+ }, qr = { class: "header-title no-click" }, Jr = { class: "header-nav" }, Yr = {
1972
1975
  key: 1,
1973
1976
  class: "header-nav-placeholder"
1974
- }, Yr = { class: "weekday-grid" }, Xr = { class: "day-grid range-day-grid" }, Zr = ["onClick", "onMouseenter"], Qr = { class: "range-footer" }, $r = { class: "range-display" }, ei = { class: "mobile-sheet" }, ti = {
1977
+ }, Xr = { class: "weekday-grid" }, Zr = { class: "day-grid range-day-grid" }, Qr = ["onClick", "onMouseenter"], $r = { class: "range-footer" }, ei = { class: "range-display" }, ti = { class: "mobile-sheet" }, ni = {
1975
1978
  class: "picker-header",
1976
1979
  style: { "margin-top": "8px" }
1977
- }, ni = { class: "header-nav" }, ri = { class: "header-title no-click" }, ii = { class: "header-nav" }, ai = { class: "weekday-grid" }, oi = { class: "day-grid range-day-grid" }, si = ["onClick"], ci = { class: "range-footer" }, li = { class: "range-display" }, ui = /* @__PURE__ */ j(/* @__PURE__ */ p({
1980
+ }, ri = { class: "header-nav" }, ii = { class: "header-title no-click" }, ai = { class: "header-nav" }, oi = { class: "weekday-grid" }, si = { class: "day-grid range-day-grid" }, ci = ["onClick"], li = { class: "range-footer" }, ui = { class: "range-display" }, di = /* @__PURE__ */ j(/* @__PURE__ */ p({
1978
1981
  __name: "NDatePicker",
1979
1982
  props: {
1980
1983
  modelValue: { default: "" },
@@ -2259,7 +2262,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2259
2262
  ref: C,
2260
2263
  class: "datepicker"
2261
2264
  }, [
2262
- t.title ? (y(), s("label", or, w(t.title), 1)) : o("", !0),
2265
+ t.title ? (y(), s("label", sr, w(t.title), 1)) : o("", !0),
2263
2266
  c("div", { class: h(["date-picker", {
2264
2267
  open: b.value && !t.range && !T.value,
2265
2268
  disabled: t.disabled
@@ -2286,9 +2289,9 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2286
2289
  }, [c("path", { d: "M18 6 6 18" }), c("path", { d: "m6 6 12 12" })], -1)]]),
2287
2290
  _: 1
2288
2291
  })) : o("", !0)]), f(n, { name: "fade" }, {
2289
- default: D(() => [b.value && !t.range && !T.value ? (y(), s("div", sr, [
2290
- c("div", cr, [
2291
- c("div", lr, [f(M, {
2292
+ default: D(() => [b.value && !t.range && !T.value ? (y(), s("div", cr, [
2293
+ c("div", lr, [
2294
+ c("div", ur, [f(M, {
2292
2295
  variant: "ghost",
2293
2296
  square: "",
2294
2297
  onClick: i[0] ||= (e) => Se(-1)
@@ -2328,7 +2331,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2328
2331
  class: "header-title",
2329
2332
  onClick: He
2330
2333
  }, [F.value === "date" ? (y(), s(e, { key: 0 }, [d(w(re[le.value]) + " " + w(B.value), 1)], 64)) : (y(), s(e, { key: 1 }, [d(w(V.value[0]) + " - " + w(V.value[V.value.length - 1]), 1)], 64))]),
2331
- c("div", ur, [F.value === "date" ? (y(), a(M, {
2334
+ c("div", dr, [F.value === "date" ? (y(), a(M, {
2332
2335
  key: 0,
2333
2336
  variant: "ghost",
2334
2337
  square: "",
@@ -2365,10 +2368,10 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2365
2368
  _: 1
2366
2369
  })])
2367
2370
  ]),
2368
- c("div", dr, [F.value === "date" ? (y(), s(e, { key: 0 }, [c("div", fr, [(y(), s(e, null, S(k, (e) => c("span", {
2371
+ c("div", fr, [F.value === "date" ? (y(), s(e, { key: 0 }, [c("div", pr, [(y(), s(e, null, S(k, (e) => c("span", {
2369
2372
  key: e,
2370
2373
  class: "weekday"
2371
- }, w(e), 1)), 64))]), c("div", pr, [(y(!0), s(e, null, S(de.value, (e, t) => (y(), a(M, {
2374
+ }, w(e), 1)), 64))]), c("div", mr, [(y(!0), s(e, null, S(de.value, (e, t) => (y(), a(M, {
2372
2375
  key: t,
2373
2376
  variant: _e(e) ? "solid" : ge(e) ? "mute" : "ghost",
2374
2377
  intent: _e(e) || ge(e) ? "primary" : "none",
@@ -2383,7 +2386,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2383
2386
  "intent",
2384
2387
  "class",
2385
2388
  "onClick"
2386
- ]))), 128))])], 64)) : (y(), s("div", mr, [(y(!0), s(e, null, S(V.value, (e) => (y(), a(M, {
2389
+ ]))), 128))])], 64)) : (y(), s("div", hr, [(y(!0), s(e, null, S(V.value, (e) => (y(), a(M, {
2387
2390
  key: e,
2388
2391
  variant: e === B.value ? "solid" : "ghost",
2389
2392
  intent: e === B.value ? "primary" : "none",
@@ -2397,7 +2400,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2397
2400
  "intent",
2398
2401
  "onClick"
2399
2402
  ]))), 128))]))]),
2400
- v.value && F.value === "date" ? (y(), s("div", hr, [c("div", gr, [m.value ? (y(), s("div", _r, [
2403
+ v.value && F.value === "date" ? (y(), s("div", gr, [c("div", _r, [m.value ? (y(), s("div", vr, [
2401
2404
  i[27] ||= c("span", { class: "time-label" }, "時", -1),
2402
2405
  f(M, {
2403
2406
  variant: "ghost",
@@ -2428,7 +2431,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2428
2431
  max: "23",
2429
2432
  value: R.value,
2430
2433
  onInput: i[5] ||= (e) => we(e, "H")
2431
- }, null, 40, vr),
2434
+ }, null, 40, yr),
2432
2435
  f(M, {
2433
2436
  variant: "ghost",
2434
2437
  square: "",
@@ -2451,8 +2454,8 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2451
2454
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2452
2455
  _: 1
2453
2456
  }),
2454
- c("span", yr, w(P(R.value)), 1)
2455
- ])) : o("", !0), g.value ? (y(), s("div", br, [
2457
+ c("span", br, w(P(R.value)), 1)
2458
+ ])) : o("", !0), g.value ? (y(), s("div", xr, [
2456
2459
  i[30] ||= c("span", { class: "time-label" }, "分", -1),
2457
2460
  f(M, {
2458
2461
  variant: "ghost",
@@ -2483,7 +2486,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2483
2486
  max: "59",
2484
2487
  value: z.value,
2485
2488
  onInput: i[8] ||= (e) => we(e, "m")
2486
- }, null, 40, xr),
2489
+ }, null, 40, Sr),
2487
2490
  f(M, {
2488
2491
  variant: "ghost",
2489
2492
  square: "",
@@ -2506,7 +2509,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2506
2509
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2507
2510
  _: 1
2508
2511
  }),
2509
- c("span", Sr, w(P(z.value)), 1)
2512
+ c("span", Cr, w(P(z.value)), 1)
2510
2513
  ])) : o("", !0)])])) : o("", !0)
2511
2514
  ])) : o("", !0)]),
2512
2515
  _: 1
@@ -2516,10 +2519,10 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2516
2519
  key: 0,
2517
2520
  class: "mobile-overlay",
2518
2521
  onClick: O(Ve, ["self"])
2519
- }, [c("div", Cr, [
2522
+ }, [c("div", wr, [
2520
2523
  i[41] ||= c("div", { class: "sheet-handle" }, null, -1),
2521
- c("div", wr, [
2522
- c("div", Tr, [f(M, {
2524
+ c("div", Tr, [
2525
+ c("div", Er, [f(M, {
2523
2526
  variant: "ghost",
2524
2527
  square: "",
2525
2528
  onClick: i[10] ||= (e) => Se(-1)
@@ -2559,7 +2562,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2559
2562
  class: "header-title",
2560
2563
  onClick: He
2561
2564
  }, [F.value === "date" ? (y(), s(e, { key: 0 }, [d(w(re[le.value]) + " " + w(B.value), 1)], 64)) : (y(), s(e, { key: 1 }, [d(w(V.value[0]) + " - " + w(V.value[V.value.length - 1]), 1)], 64))]),
2562
- c("div", Er, [F.value === "date" ? (y(), a(M, {
2565
+ c("div", Dr, [F.value === "date" ? (y(), a(M, {
2563
2566
  key: 0,
2564
2567
  variant: "ghost",
2565
2568
  square: "",
@@ -2596,10 +2599,10 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2596
2599
  _: 1
2597
2600
  })])
2598
2601
  ]),
2599
- c("div", Dr, [F.value === "date" ? (y(), s(e, { key: 0 }, [c("div", Or, [(y(), s(e, null, S(k, (e) => c("span", {
2602
+ c("div", Or, [F.value === "date" ? (y(), s(e, { key: 0 }, [c("div", kr, [(y(), s(e, null, S(k, (e) => c("span", {
2600
2603
  key: e,
2601
2604
  class: "weekday"
2602
- }, w(e), 1)), 64))]), c("div", kr, [(y(!0), s(e, null, S(de.value, (e, t) => (y(), a(M, {
2605
+ }, w(e), 1)), 64))]), c("div", Ar, [(y(!0), s(e, null, S(de.value, (e, t) => (y(), a(M, {
2603
2606
  key: t,
2604
2607
  variant: _e(e) ? "solid" : ge(e) ? "mute" : "ghost",
2605
2608
  intent: _e(e) || ge(e) ? "primary" : "none",
@@ -2614,7 +2617,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2614
2617
  "intent",
2615
2618
  "class",
2616
2619
  "onClick"
2617
- ]))), 128))])], 64)) : (y(), s("div", Ar, [(y(!0), s(e, null, S(V.value, (e) => (y(), a(M, {
2620
+ ]))), 128))])], 64)) : (y(), s("div", jr, [(y(!0), s(e, null, S(V.value, (e) => (y(), a(M, {
2618
2621
  key: e,
2619
2622
  variant: e === B.value ? "solid" : "ghost",
2620
2623
  intent: e === B.value ? "primary" : "none",
@@ -2628,7 +2631,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2628
2631
  "intent",
2629
2632
  "onClick"
2630
2633
  ]))), 128))]))]),
2631
- v.value && F.value === "date" ? (y(), s("div", jr, [c("div", Mr, [m.value ? (y(), s("div", Nr, [
2634
+ v.value && F.value === "date" ? (y(), s("div", Mr, [c("div", Nr, [m.value ? (y(), s("div", Pr, [
2632
2635
  i[37] ||= c("span", { class: "time-label" }, "時", -1),
2633
2636
  f(M, {
2634
2637
  variant: "ghost",
@@ -2659,7 +2662,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2659
2662
  max: "23",
2660
2663
  value: R.value,
2661
2664
  onInput: i[15] ||= (e) => we(e, "H")
2662
- }, null, 40, Pr),
2665
+ }, null, 40, Fr),
2663
2666
  f(M, {
2664
2667
  variant: "ghost",
2665
2668
  square: "",
@@ -2682,8 +2685,8 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2682
2685
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2683
2686
  _: 1
2684
2687
  }),
2685
- c("span", Fr, w(P(R.value)), 1)
2686
- ])) : o("", !0), g.value ? (y(), s("div", Ir, [
2688
+ c("span", Ir, w(P(R.value)), 1)
2689
+ ])) : o("", !0), g.value ? (y(), s("div", Lr, [
2687
2690
  i[40] ||= c("span", { class: "time-label" }, "分", -1),
2688
2691
  f(M, {
2689
2692
  variant: "ghost",
@@ -2714,7 +2717,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2714
2717
  max: "59",
2715
2718
  value: z.value,
2716
2719
  onInput: i[18] ||= (e) => we(e, "m")
2717
- }, null, 40, Lr),
2720
+ }, null, 40, Rr),
2718
2721
  f(M, {
2719
2722
  variant: "ghost",
2720
2723
  square: "",
@@ -2737,7 +2740,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2737
2740
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2738
2741
  _: 1
2739
2742
  }),
2740
- c("span", Rr, w(P(z.value)), 1)
2743
+ c("span", zr, w(P(z.value)), 1)
2741
2744
  ])) : o("", !0)])])) : o("", !0)
2742
2745
  ])])) : o("", !0)]),
2743
2746
  _: 1
@@ -2747,11 +2750,11 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2747
2750
  key: 0,
2748
2751
  class: "range-overlay",
2749
2752
  onClick: O(Ve, ["self"])
2750
- }, [c("div", zr, [
2753
+ }, [c("div", Br, [
2751
2754
  i[46] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
2752
- c("div", Br, [(y(!0), s(e, null, S(ke.value, (t) => (y(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (y(), s("div", Vr)), c("div", Hr, [
2753
- c("div", Ur, [
2754
- c("div", Wr, [t.isLeft ? (y(), a(M, {
2755
+ c("div", Vr, [(y(!0), s(e, null, S(ke.value, (t) => (y(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (y(), s("div", Hr)), c("div", Ur, [
2756
+ c("div", Wr, [
2757
+ c("div", Gr, [t.isLeft ? (y(), a(M, {
2755
2758
  key: 0,
2756
2759
  variant: "ghost",
2757
2760
  square: "",
@@ -2769,9 +2772,9 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2769
2772
  "stroke-linejoin": "round"
2770
2773
  }, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
2771
2774
  _: 1
2772
- })) : (y(), s("div", Gr))]),
2773
- c("div", Kr, w(re[t.month]) + " " + w(t.year), 1),
2774
- c("div", qr, [t.isLeft ? (y(), s("div", Jr)) : (y(), a(M, {
2775
+ })) : (y(), s("div", Kr))]),
2776
+ c("div", qr, w(re[t.month]) + " " + w(t.year), 1),
2777
+ c("div", Jr, [t.isLeft ? (y(), s("div", Yr)) : (y(), a(M, {
2775
2778
  key: 0,
2776
2779
  variant: "ghost",
2777
2780
  square: "",
@@ -2791,18 +2794,18 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2791
2794
  _: 1
2792
2795
  }))])
2793
2796
  ]),
2794
- c("div", Yr, [(y(), s(e, null, S(k, (e) => c("span", {
2797
+ c("div", Xr, [(y(), s(e, null, S(k, (e) => c("span", {
2795
2798
  key: e,
2796
2799
  class: "weekday"
2797
2800
  }, w(e), 1)), 64))]),
2798
- c("div", Xr, [(y(!0), s(e, null, S(t.days, (e, t) => (y(), s("div", {
2801
+ c("div", Zr, [(y(!0), s(e, null, S(t.days, (e, t) => (y(), s("div", {
2799
2802
  key: t,
2800
2803
  class: h(["range-day", Re(e)]),
2801
2804
  onClick: (t) => Le(e),
2802
2805
  onMouseenter: (t) => Y.value = e
2803
- }, w(e.day), 43, Zr))), 128))])
2806
+ }, w(e.day), 43, Qr))), 128))])
2804
2807
  ])], 64))), 128))]),
2805
- c("div", Qr, [c("div", $r, [
2808
+ c("div", $r, [c("div", ei, [
2806
2809
  c("span", { class: h(["range-val", { "is-empty": !Ne.value }]) }, w(Ne.value || "開始日期"), 3),
2807
2810
  i[44] ||= c("span", { class: "range-arrow" }, "→", -1),
2808
2811
  c("span", { class: h(["range-val", { "is-empty": !Z.value }]) }, w(Z.value || "結束日期"), 3)
@@ -2824,11 +2827,11 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2824
2827
  key: 0,
2825
2828
  class: "mobile-overlay",
2826
2829
  onClick: O(Ve, ["self"])
2827
- }, [c("div", ei, [
2830
+ }, [c("div", ti, [
2828
2831
  i[51] ||= c("div", { class: "sheet-handle" }, null, -1),
2829
2832
  i[52] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
2830
- c("div", ti, [
2831
- c("div", ni, [f(M, {
2833
+ c("div", ni, [
2834
+ c("div", ri, [f(M, {
2832
2835
  variant: "ghost",
2833
2836
  square: "",
2834
2837
  onClick: Fe
@@ -2846,8 +2849,8 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2846
2849
  }, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
2847
2850
  _: 1
2848
2851
  })]),
2849
- c("div", ri, w(re[G.value]) + " " + w(W.value), 1),
2850
- c("div", ii, [f(M, {
2852
+ c("div", ii, w(re[G.value]) + " " + w(W.value), 1),
2853
+ c("div", ai, [f(M, {
2851
2854
  variant: "ghost",
2852
2855
  square: "",
2853
2856
  onClick: Ie
@@ -2866,16 +2869,16 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2866
2869
  _: 1
2867
2870
  })])
2868
2871
  ]),
2869
- c("div", ai, [(y(), s(e, null, S(k, (e) => c("span", {
2872
+ c("div", oi, [(y(), s(e, null, S(k, (e) => c("span", {
2870
2873
  key: e,
2871
2874
  class: "weekday"
2872
2875
  }, w(e), 1)), 64))]),
2873
- c("div", oi, [(y(!0), s(e, null, S(Oe.value, (e, t) => (y(), s("div", {
2876
+ c("div", si, [(y(!0), s(e, null, S(Oe.value, (e, t) => (y(), s("div", {
2874
2877
  key: t,
2875
2878
  class: h(["range-day", Re(e)]),
2876
2879
  onClick: (t) => Le(e)
2877
- }, w(e.day), 11, si))), 128))]),
2878
- c("div", ci, [c("div", li, [
2880
+ }, w(e.day), 11, ci))), 128))]),
2881
+ c("div", li, [c("div", ui, [
2879
2882
  c("span", { class: h(["range-val", { "is-empty": !Ne.value }]) }, w(Ne.value || "開始日期"), 3),
2880
2883
  i[49] ||= c("span", { class: "range-arrow" }, "→", -1),
2881
2884
  c("span", { class: h(["range-val", { "is-empty": !Z.value }]) }, w(Z.value || "結束日期"), 3)
@@ -2894,7 +2897,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2894
2897
  })
2895
2898
  ], 512));
2896
2899
  }
2897
- }), [["__scopeId", "data-v-9f942c6b"]]), di = /* @__PURE__ */ j(/* @__PURE__ */ p({
2900
+ }), [["__scopeId", "data-v-9f942c6b"]]), fi = /* @__PURE__ */ j(/* @__PURE__ */ p({
2898
2901
  __name: "NTooltip",
2899
2902
  props: {
2900
2903
  content: { default: "" },
@@ -2929,10 +2932,10 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2929
2932
  _: 3
2930
2933
  })], 32));
2931
2934
  }
2932
- }), [["__scopeId", "data-v-7a53ca0a"]]), fi = { class: "modal-header" }, pi = { class: "modal-title" }, mi = { class: "modal-content" }, hi = {
2935
+ }), [["__scopeId", "data-v-7a53ca0a"]]), pi = { class: "modal-header" }, mi = { class: "modal-title" }, hi = { class: "modal-content" }, gi = {
2933
2936
  key: 0,
2934
2937
  class: "modal-footer"
2935
- }, gi = /* @__PURE__ */ j(/* @__PURE__ */ p({
2938
+ }, _i = /* @__PURE__ */ j(/* @__PURE__ */ p({
2936
2939
  __name: "NModal",
2937
2940
  props: {
2938
2941
  show: {
@@ -2976,7 +2979,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2976
2979
  class: "modal-container",
2977
2980
  style: g({ width: e.width })
2978
2981
  }, [
2979
- c("header", fi, [c("h3", pi, w(e.title), 1), e.showClose ? (y(), s("button", {
2982
+ c("header", pi, [c("h3", mi, w(e.title), 1), e.showClose ? (y(), s("button", {
2980
2983
  key: 0,
2981
2984
  class: "close-btn",
2982
2985
  onClick: l
@@ -2988,16 +2991,16 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
2988
2991
  fill: "currentColor",
2989
2992
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"
2990
2993
  })], -1)]])) : o("", !0)]),
2991
- c("main", mi, [C(r.$slots, "default", {}, void 0, !0)]),
2992
- r.$slots.footer ? (y(), s("footer", hi, [C(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
2994
+ c("main", hi, [C(r.$slots, "default", {}, void 0, !0)]),
2995
+ r.$slots.footer ? (y(), s("footer", gi, [C(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
2993
2996
  ], 4)], 4)) : o("", !0)]),
2994
2997
  _: 3
2995
2998
  })]));
2996
2999
  }
2997
- }), [["__scopeId", "data-v-ee2fac3c"]]), _i = { class: "drawer-header" }, vi = { class: "drawer-title" }, yi = { class: "drawer-body" }, bi = {
3000
+ }), [["__scopeId", "data-v-ee2fac3c"]]), vi = { class: "drawer-header" }, yi = { class: "drawer-title" }, bi = { class: "drawer-body" }, xi = {
2998
3001
  key: 0,
2999
3002
  class: "drawer-footer"
3000
- }, xi = /* @__PURE__ */ j(/* @__PURE__ */ p({
3003
+ }, Si = /* @__PURE__ */ j(/* @__PURE__ */ p({
3001
3004
  __name: "NDrawer",
3002
3005
  props: {
3003
3006
  show: {
@@ -3042,7 +3045,7 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
3042
3045
  class: h(["drawer-container", [`placement-${e.placement}`]]),
3043
3046
  style: g({ width: e.width })
3044
3047
  }, [
3045
- c("header", _i, [c("h3", vi, [C(r.$slots, "title", {}, () => [d(w(e.title), 1)], !0)]), e.showClose ? (y(), s("button", {
3048
+ c("header", vi, [c("h3", yi, [C(r.$slots, "title", {}, () => [d(w(e.title), 1)], !0)]), e.showClose ? (y(), s("button", {
3046
3049
  key: 0,
3047
3050
  class: "close-btn",
3048
3051
  onClick: l
@@ -3054,18 +3057,18 @@ var Vn = { class: "icon-wrap" }, Hn = ["innerHTML"], Un = {
3054
3057
  fill: "currentColor",
3055
3058
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"
3056
3059
  })], -1)]])) : o("", !0)]),
3057
- c("main", yi, [C(r.$slots, "default", {}, void 0, !0)]),
3058
- r.$slots.footer ? (y(), s("footer", bi, [C(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
3060
+ c("main", bi, [C(r.$slots, "default", {}, void 0, !0)]),
3061
+ r.$slots.footer ? (y(), s("footer", xi, [C(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
3059
3062
  ], 6)], 4)) : o("", !0)]),
3060
3063
  _: 3
3061
3064
  })]));
3062
3065
  }
3063
- }), [["__scopeId", "data-v-f8c0a0bb"]]), Si = 0, Ci = b([]);
3064
- function wi() {
3066
+ }), [["__scopeId", "data-v-f8c0a0bb"]]), Ci = 0, wi = b([]);
3067
+ function Ti() {
3065
3068
  let e = function(e, t = {}) {
3066
- let n = ++Si;
3069
+ let n = ++Ci;
3067
3070
  return new Promise((r) => {
3068
- Ci.push({
3071
+ wi.push({
3069
3072
  id: n,
3070
3073
  type: "alert",
3071
3074
  message: e,
@@ -3091,8 +3094,8 @@ function wi() {
3091
3094
  });
3092
3095
  function t(e, t = {}) {
3093
3096
  return new Promise((n) => {
3094
- let r = ++Si;
3095
- Ci.push({
3097
+ let r = ++Ci;
3098
+ wi.push({
3096
3099
  id: r,
3097
3100
  type: "confirm",
3098
3101
  message: e,
@@ -3105,10 +3108,10 @@ function wi() {
3105
3108
  });
3106
3109
  }
3107
3110
  function n() {
3108
- for (; Ci.length > 0;) Ci.shift().resolve(!1);
3111
+ for (; wi.length > 0;) wi.shift().resolve(!1);
3109
3112
  }
3110
3113
  return {
3111
- alerts: Ci,
3114
+ alerts: wi,
3112
3115
  alert: e,
3113
3116
  confirm: t,
3114
3117
  clearAlerts: n
@@ -3116,13 +3119,13 @@ function wi() {
3116
3119
  }
3117
3120
  //#endregion
3118
3121
  //#region src/components/NAlert.vue?vue&type=script&setup=true&lang.ts
3119
- var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-body" }, Oi = {
3122
+ var Ei = { class: "cards-wrapper" }, Di = ["innerHTML"], Oi = { class: "card-body" }, ki = {
3120
3123
  key: 0,
3121
3124
  class: "card-title"
3122
- }, ki = { class: "card-message" }, Ai = { class: "card-footer" }, ji = ["onClick"], Mi = ["onClick"], Ni = /* @__PURE__ */ j(/* @__PURE__ */ p({
3125
+ }, Ai = { class: "card-message" }, ji = { class: "card-footer" }, Mi = ["onClick"], Ni = ["onClick"], Pi = /* @__PURE__ */ j(/* @__PURE__ */ p({
3123
3126
  __name: "NAlert",
3124
3127
  setup(n) {
3125
- let { alerts: r, clearAlerts: i } = wi(), l = {
3128
+ let { alerts: r, clearAlerts: i } = Ti(), l = {
3126
3129
  success: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 12l3 3 5-6\"/></svg>",
3127
3130
  warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/><path d=\"M12 9v4\"/><path d=\"M12 17h.01\"/></svg>",
3128
3131
  danger: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6\"/><path d=\"m9 9 6 6\"/></svg>",
@@ -3159,7 +3162,7 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3159
3162
  }
3160
3163
  return ee(() => document.addEventListener("keydown", m)), v(() => {
3161
3164
  document.removeEventListener("keydown", m), i();
3162
- }), (n, i) => (y(), a(t, { to: "body" }, [c("div", { class: h(["backdrop", { open: T(r).length > 0 }]) }, null, 2), c("div", { class: h(["alert-stack", { open: T(r).length > 0 }]) }, [c("div", Ti, [(y(!0), s(e, null, S(T(r), (e, t) => (y(), s("div", {
3165
+ }), (n, i) => (y(), a(t, { to: "body" }, [c("div", { class: h(["backdrop", { open: T(r).length > 0 }]) }, null, 2), c("div", { class: h(["alert-stack", { open: T(r).length > 0 }]) }, [c("div", Ei, [(y(!0), s(e, null, S(T(r), (e, t) => (y(), s("div", {
3163
3166
  key: e.id,
3164
3167
  class: h(["alert-card", `status-${e.status}`]),
3165
3168
  style: g(d(t))
@@ -3167,25 +3170,25 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3167
3170
  c("div", {
3168
3171
  class: "card-icon",
3169
3172
  innerHTML: u(e)
3170
- }, null, 8, Ei),
3171
- c("div", Di, [e.title ? (y(), s("p", Oi, w(e.title), 1)) : o("", !0), c("p", ki, w(e.message), 1)]),
3172
- c("div", Ai, [e.type === "confirm" ? (y(), s("button", {
3173
+ }, null, 8, Di),
3174
+ c("div", Oi, [e.title ? (y(), s("p", ki, w(e.title), 1)) : o("", !0), c("p", Ai, w(e.message), 1)]),
3175
+ c("div", ji, [e.type === "confirm" ? (y(), s("button", {
3173
3176
  key: 0,
3174
3177
  class: "btn btn-cancel",
3175
3178
  onClick: (t) => p(e)
3176
- }, w(e.cancelText), 9, ji)) : o("", !0), c("button", {
3179
+ }, w(e.cancelText), 9, Mi)) : o("", !0), c("button", {
3177
3180
  class: h(["btn btn-confirm", `btn-${e.status}`]),
3178
3181
  onClick: (t) => f(e)
3179
- }, w(e.confirmText), 11, Mi)])
3182
+ }, w(e.confirmText), 11, Ni)])
3180
3183
  ], 6))), 128))])], 2)]));
3181
3184
  }
3182
- }), [["__scopeId", "data-v-20105bbb"]]), Pi = { class: "nav" }, Fi = ["onClick"], Ii = ["innerHTML"], Li = { class: "nav-list" }, Ri = ["href", "onClick"], zi = ["innerHTML"], Bi = { class: "nav-text" }, Vi = { class: "user-capsule" }, Hi = { class: "user-avatar" }, Ui = ["src"], Wi = {
3185
+ }), [["__scopeId", "data-v-20105bbb"]]), Fi = { class: "nav" }, Ii = ["onClick"], Li = ["innerHTML"], Ri = { class: "nav-list" }, zi = ["href", "onClick"], Bi = ["innerHTML"], Vi = { class: "nav-text" }, Hi = { class: "user-capsule" }, Ui = { class: "user-avatar" }, Wi = ["src"], Gi = {
3183
3186
  key: 1,
3184
3187
  xmlns: "http://www.w3.org/2000/svg",
3185
3188
  width: "36",
3186
3189
  height: "36",
3187
3190
  viewBox: "0 0 36 36"
3188
- }, Gi = { class: "user-info" }, Ki = { class: "user-name-row" }, qi = { class: "user-name" }, Ji = /* @__PURE__ */ j(/* @__PURE__ */ p({
3191
+ }, Ki = { class: "user-info" }, qi = { class: "user-name-row" }, Ji = { class: "user-name" }, Yi = /* @__PURE__ */ j(/* @__PURE__ */ p({
3189
3192
  __name: "NSidebar",
3190
3193
  props: {
3191
3194
  isOpen: {
@@ -3232,13 +3235,13 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3232
3235
  onMouseenter: _[2] ||= (e) => l.value = !0
3233
3236
  }, [
3234
3237
  _[9] ||= c("div", { class: "header" }, [c("div", { class: "brand-logo" }, [c("span", { class: "logo-text" }, "NICKLABS"), c("span", { class: "logo-icon" }, "N")])], -1),
3235
- c("div", Pi, [(y(!0), s(e, null, S(n.menus, (t) => (y(), s("div", { class: h(["menu", {
3238
+ c("div", Fi, [(y(!0), s(e, null, S(n.menus, (t) => (y(), s("div", { class: h(["menu", {
3236
3239
  open: T(i)(t.title),
3237
3240
  active: p(t)
3238
3241
  }]) }, [c("div", {
3239
3242
  class: "title",
3240
3243
  onClick: (e) => T(o)(t.title)
3241
- }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Ii), c("span", null, w(t.title), 1)]), _[6] ||= c("svg", {
3244
+ }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Li), c("span", null, w(t.title), 1)]), _[6] ||= c("svg", {
3242
3245
  xmlns: "http://www.w3.org/2000/svg",
3243
3246
  width: "14",
3244
3247
  height: "14",
@@ -3249,17 +3252,17 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3249
3252
  "stroke-linecap": "round",
3250
3253
  "stroke-linejoin": "round",
3251
3254
  class: "icon"
3252
- }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, Fi), c("div", Li, [c("div", null, [(y(!0), s(e, null, S(t.children, (e) => (y(), s("a", {
3255
+ }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, Ii), c("div", Ri, [c("div", null, [(y(!0), s(e, null, S(t.children, (e) => (y(), s("a", {
3253
3256
  href: e.route,
3254
3257
  onClick: O((t) => g(e), ["prevent"])
3255
- }, [c("div", { class: h(["nav-item", { active: m(e.route) }]) }, [c("div", { innerHTML: e.icon }, null, 8, zi), c("span", Bi, w(e.title), 1)], 2)], 8, Ri))), 256))])])], 2))), 256))]),
3256
- c("div", Vi, [C(r.$slots, "user", {}, () => [
3257
- c("div", Hi, [n.userAvatarUrl ? (y(), s("img", {
3258
+ }, [c("div", { class: h(["nav-item", { active: m(e.route) }]) }, [c("div", { innerHTML: e.icon }, null, 8, Bi), c("span", Vi, w(e.title), 1)], 2)], 8, zi))), 256))])])], 2))), 256))]),
3259
+ c("div", Hi, [C(r.$slots, "user", {}, () => [
3260
+ c("div", Ui, [n.userAvatarUrl ? (y(), s("img", {
3258
3261
  key: 0,
3259
3262
  src: n.userAvatarUrl,
3260
3263
  alt: "User Avatar"
3261
- }, null, 8, Ui)) : (y(), s("svg", Wi, [..._[7] ||= [u("<defs data-v-f8786adf><clipPath id=\"avatarClip\" data-v-f8786adf><circle cx=\"18\" cy=\"18\" r=\"18\" data-v-f8786adf></circle></clipPath></defs><circle cx=\"18\" cy=\"18\" r=\"18\" fill=\"#dbeafe\" data-v-f8786adf></circle><g clip-path=\"url(#avatarClip)\" data-v-f8786adf><circle cx=\"18\" cy=\"14\" r=\"6\" fill=\"#2563eb\" data-v-f8786adf></circle><path d=\"M6,34 Q6,24 18,24 Q30,24 30,34\" fill=\"#2563eb\" data-v-f8786adf></path></g>", 3)]]))]),
3262
- c("div", Gi, [c("div", Ki, [c("span", qi, w(n.userName || "ADMINISTRATOR"), 1)])]),
3264
+ }, null, 8, Wi)) : (y(), s("svg", Gi, [..._[7] ||= [u("<defs data-v-f8786adf><clipPath id=\"avatarClip\" data-v-f8786adf><circle cx=\"18\" cy=\"18\" r=\"18\" data-v-f8786adf></circle></clipPath></defs><circle cx=\"18\" cy=\"18\" r=\"18\" fill=\"#dbeafe\" data-v-f8786adf></circle><g clip-path=\"url(#avatarClip)\" data-v-f8786adf><circle cx=\"18\" cy=\"14\" r=\"6\" fill=\"#2563eb\" data-v-f8786adf></circle><path d=\"M6,34 Q6,24 18,24 Q30,24 30,34\" fill=\"#2563eb\" data-v-f8786adf></path></g>", 3)]]))]),
3265
+ c("div", Ki, [c("div", qi, [c("span", Ji, w(n.userName || "ADMINISTRATOR"), 1)])]),
3263
3266
  f(M, {
3264
3267
  class: "logout-btn",
3265
3268
  intent: "error",
@@ -3298,7 +3301,7 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3298
3301
  }, null, 2)]))
3299
3302
  ], 34));
3300
3303
  }
3301
- }), [["__scopeId", "data-v-f8786adf"]]), Yi = { class: "layout" }, Xi = { class: "main-content" }, Zi = { class: "copyright" }, Qi = /* @__PURE__ */ j(/* @__PURE__ */ p({
3304
+ }), [["__scopeId", "data-v-f8786adf"]]), Xi = { class: "layout" }, Zi = { class: "main-content" }, Qi = { class: "copyright" }, $i = /* @__PURE__ */ j(/* @__PURE__ */ p({
3302
3305
  __name: "NLayout",
3303
3306
  props: {
3304
3307
  isShowSidebar: {
@@ -3312,7 +3315,7 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3312
3315
  emits: ["logout", "navigate"],
3313
3316
  setup(e, { emit: t }) {
3314
3317
  let n = Ft(), r = t;
3315
- return (t, i) => (y(), s("div", Yi, [e.isShowSidebar ? (y(), a(Ji, {
3318
+ return (t, i) => (y(), s("div", Xi, [e.isShowSidebar ? (y(), a(Yi, {
3316
3319
  key: 0,
3317
3320
  isOpen: T(n).isSidebarExpanded(),
3318
3321
  "onUpdate:isOpen": i[0] ||= (e) => T(n).toggleSidebar(),
@@ -3324,18 +3327,18 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3324
3327
  "isOpen",
3325
3328
  "menus",
3326
3329
  "currentPath"
3327
- ])) : o("", !0), c("main", Xi, [C(t.$slots, "default", {}, void 0, !0), c("div", Zi, w(e.copyright), 1)])]));
3330
+ ])) : o("", !0), c("main", Zi, [C(t.$slots, "default", {}, void 0, !0), c("div", Qi, w(e.copyright), 1)])]));
3328
3331
  }
3329
- }), [["__scopeId", "data-v-42c0ab8b"]]), $i = { class: "topbar" }, ea = { class: "topbar-left" }, ta = { class: "topbar-right" }, na = {
3332
+ }), [["__scopeId", "data-v-42c0ab8b"]]), ea = { class: "topbar" }, ta = { class: "topbar-left" }, na = { class: "topbar-right" }, ra = {
3330
3333
  key: 0,
3331
3334
  class: "pill"
3332
- }, ra = {
3335
+ }, ia = {
3333
3336
  key: 0,
3334
3337
  class: "name"
3335
- }, ia = {
3338
+ }, aa = {
3336
3339
  key: 1,
3337
3340
  class: "separator"
3338
- }, aa = /* @__PURE__ */ j(/* @__PURE__ */ p({
3341
+ }, oa = /* @__PURE__ */ j(/* @__PURE__ */ p({
3339
3342
  __name: "NNavigation",
3340
3343
  props: {
3341
3344
  isShowSidebar: {
@@ -3360,7 +3363,7 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3360
3363
  let n = t, r = () => {
3361
3364
  document.fullscreenElement ? document.exitFullscreen?.() : document.documentElement.requestFullscreen();
3362
3365
  };
3363
- return (t, i) => (y(), s("header", $i, [c("div", ea, [e.isShowSidebar ? (y(), a(M, {
3366
+ return (t, i) => (y(), s("header", ea, [c("div", ta, [e.isShowSidebar ? (y(), a(M, {
3364
3367
  key: 0,
3365
3368
  onClick: i[0] ||= (e) => n("toggleSidebar"),
3366
3369
  padding: "8px"
@@ -3403,9 +3406,9 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3403
3406
  c("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" })
3404
3407
  ], -1)]]),
3405
3408
  _: 1
3406
- })) : o("", !0)]), c("div", ta, [e.isShowUser || e.isShowLogoutButton ? (y(), s("div", na, [
3407
- e.isShowUser ? (y(), s("span", ra, "Nick")) : o("", !0),
3408
- e.isShowUser && e.isShowLogoutButton ? (y(), s("div", ia)) : o("", !0),
3409
+ })) : o("", !0)]), c("div", na, [e.isShowUser || e.isShowLogoutButton ? (y(), s("div", ra, [
3410
+ e.isShowUser ? (y(), s("span", ia, "Nick")) : o("", !0),
3411
+ e.isShowUser && e.isShowLogoutButton ? (y(), s("div", aa)) : o("", !0),
3409
3412
  e.isShowLogoutButton ? (y(), a(M, {
3410
3413
  key: 2,
3411
3414
  variant: "mute",
@@ -3431,10 +3434,10 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3431
3434
  })) : o("", !0)
3432
3435
  ])) : o("", !0)])]));
3433
3436
  }
3434
- }), [["__scopeId", "data-v-f38a4beb"]]), oa = { class: "brand" }, sa = ["src", "alt"], ca = {
3437
+ }), [["__scopeId", "data-v-f38a4beb"]]), sa = { class: "brand" }, ca = ["src", "alt"], la = {
3435
3438
  key: 1,
3436
3439
  class: "icon"
3437
- }, la = { key: 2 }, ua = { key: 3 }, da = /* @__PURE__ */ j(/* @__PURE__ */ p({
3440
+ }, ua = { key: 2 }, da = { key: 3 }, fa = /* @__PURE__ */ j(/* @__PURE__ */ p({
3438
3441
  __name: "NLoginLayout",
3439
3442
  props: {
3440
3443
  backgroundImage: { default: "" },
@@ -3452,15 +3455,15 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3452
3455
  radius: "xl",
3453
3456
  class: "card"
3454
3457
  }, {
3455
- default: D(() => [c("div", oa, [
3458
+ default: D(() => [c("div", sa, [
3456
3459
  t.value ? (y(), s("img", {
3457
3460
  key: 0,
3458
3461
  class: "logo-img",
3459
3462
  src: e.logo,
3460
3463
  alt: e.title
3461
- }, null, 8, sa)) : (y(), s("div", ca, w(e.logo), 1)),
3462
- e.title ? (y(), s("h1", la, w(e.title), 1)) : o("", !0),
3463
- e.description ? (y(), s("p", ua, w(e.description), 1)) : o("", !0)
3464
+ }, null, 8, ca)) : (y(), s("div", la, w(e.logo), 1)),
3465
+ e.title ? (y(), s("h1", ua, w(e.title), 1)) : o("", !0),
3466
+ e.description ? (y(), s("p", da, w(e.description), 1)) : o("", !0)
3464
3467
  ]), C(n.$slots, "default", {}, void 0, !0)]),
3465
3468
  _: 3
3466
3469
  })], 4));
@@ -3468,7 +3471,7 @@ var Ti = { class: "cards-wrapper" }, Ei = ["innerHTML"], Di = { class: "card-bod
3468
3471
  }), [["__scopeId", "data-v-f0866bc5"]]);
3469
3472
  //#endregion
3470
3473
  //#region src/composables/useRouteModal.ts
3471
- function fa(e) {
3474
+ function pa(e) {
3472
3475
  let t = i(() => {
3473
3476
  let t = A();
3474
3477
  return t ? t.currentRoute.value.matched.some((t) => t.name === e.routeName) : !1;
@@ -3492,7 +3495,7 @@ function fa(e) {
3492
3495
  }
3493
3496
  //#endregion
3494
3497
  //#region src/composables/useDisclosure.ts
3495
- function pa() {
3498
+ function ma() {
3496
3499
  let e = x(!1);
3497
3500
  function t() {
3498
3501
  e.value = !0;
@@ -3508,7 +3511,7 @@ function pa() {
3508
3511
  }
3509
3512
  //#endregion
3510
3513
  //#region src/index.ts
3511
- var ma = {
3514
+ var ha = {
3512
3515
  NButton: M,
3513
3516
  NBreadcrumb: z,
3514
3517
  NInput: fe,
@@ -3517,28 +3520,28 @@ var ma = {
3517
3520
  NSelect: Oe,
3518
3521
  NFileSelect: Nt,
3519
3522
  NForm: Qt,
3520
- NList: Ln,
3523
+ NList: Rn,
3521
3524
  NEmpty: un,
3522
- NToast: qn,
3525
+ NToast: Jn,
3523
3526
  NLoading: xn,
3524
- NCode: nr,
3525
- NSwitch: ir,
3526
- NTag: ar,
3527
- NDatePicker: ui,
3528
- NTooltip: di,
3529
- NModal: gi,
3530
- NDrawer: xi,
3531
- NAlert: Ni,
3527
+ NCode: rr,
3528
+ NSwitch: ar,
3529
+ NTag: or,
3530
+ NDatePicker: di,
3531
+ NTooltip: fi,
3532
+ NModal: _i,
3533
+ NDrawer: Si,
3534
+ NAlert: Pi,
3532
3535
  NTable: Pn,
3533
- NLayout: Qi,
3534
- NNavigation: aa,
3535
- NSidebar: Ji,
3536
+ NLayout: $i,
3537
+ NNavigation: oa,
3538
+ NSidebar: Yi,
3536
3539
  NCard: $t,
3537
- NLoginLayout: da
3538
- }, ha = { install(e, t = {}) {
3539
- Object.entries(ma).forEach(([t, n]) => {
3540
+ NLoginLayout: fa
3541
+ }, ga = { install(e, t = {}) {
3542
+ Object.entries(ha).forEach(([t, n]) => {
3540
3543
  e.component(t, n);
3541
3544
  }), t.router && ie(t.router);
3542
3545
  } };
3543
3546
  //#endregion
3544
- export { Ni as NAlert, M as NButton, $t as NCard, H as NCheckbox, nr as NCode, ui as NDatePicker, xi as NDrawer, un as NEmpty, Nt as NFileSelect, Qt as NForm, fe as NInput, Qi as NLayout, Ln as NList, xn as NLoading, da as NLoginLayout, gi as NModal, aa as NNavigation, Oe as NSelect, Ji as NSidebar, ir as NSwitch, Pn as NTable, ar as NTag, _e as NTextarea, qn as NToast, di as NTooltip, ha as NickLabsUI, wi as useAlert, F as useBreadcrumb, pa as useDisclosure, fa as useRouteModal, Ft as useSidebarManager, Bn as useToast };
3547
+ export { Pi as NAlert, M as NButton, $t as NCard, H as NCheckbox, rr as NCode, di as NDatePicker, Si as NDrawer, un as NEmpty, Nt as NFileSelect, Qt as NForm, fe as NInput, $i as NLayout, Rn as NList, xn as NLoading, fa as NLoginLayout, _i as NModal, oa as NNavigation, Oe as NSelect, Yi as NSidebar, ar as NSwitch, Pn as NTable, or as NTag, _e as NTextarea, Jn as NToast, fi as NTooltip, ga as NickLabsUI, Ti as useAlert, F as useBreadcrumb, ma as useDisclosure, pa as useRouteModal, Ft as useSidebarManager, Vn as useToast };