@nons-dev/uikit 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var Xe = Object.defineProperty;
2
2
  var Ze = (e, s, t) => s in e ? Xe(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
3
3
  var ze = (e, s, t) => Ze(e, typeof s != "symbol" ? s + "" : s, t);
4
- import { defineComponent as A, computed as g, openBlock as a, createElementBlock as n, normalizeClass as S, createBlock as T, resolveDynamicComponent as re, reactive as Ee, withCtx as U, renderSlot as K, createTextVNode as Y, toDisplayString as C, useSlots as Je, createCommentVNode as f, createVNode as x, createElementVNode as m, ref as P, watch as ee, onMounted as te, onUnmounted as oe, withModifiers as X, Transition as ae, Fragment as j, renderList as W, withDirectives as ue, vModelText as Me, normalizeStyle as Q, unref as R, mergeProps as Pe, h as De, onBeforeUnmount as Qe, nextTick as et, vShow as Ae, useCssVars as tt } from "vue";
5
- import { Tag as at, Folder as st, Globe as lt, Minimize2 as ke, Maximize2 as we, Clock as nt, Bell as ot, Info as it, HelpCircle as ct, AlertCircle as Le, X as $e, ChartPie as rt, Moon as dt, Sun as ut, Check as mt, MoreHorizontal as ft, ArrowRight as vt, ArrowLeft as pt, Edit2 as bt, Trash2 as ht, Filter as gt, ChevronDown as Oe, Search as _t, Plus as yt, Menu as kt, Bolt as wt, Terminal as $t, Settings as Ct, Fingerprint as xt, BarChart3 as St, Flag as It, MessageSquare as Bt, Archive as Vt, Package as zt, ShoppingBag as Dt, Users as At, LayoutDashboard as Te, ChevronUp as Lt, ChevronsUpDown as Tt } from "@lucide/vue";
4
+ import { defineComponent as A, computed as _, openBlock as a, createElementBlock as n, normalizeClass as S, createBlock as E, resolveDynamicComponent as de, reactive as Ee, withCtx as j, renderSlot as H, createTextVNode as Y, toDisplayString as C, useSlots as Qe, createCommentVNode as f, createVNode as w, createElementVNode as m, ref as M, watch as ee, onMounted as te, onUnmounted as oe, withModifiers as X, Transition as ae, Fragment as q, renderList as W, withDirectives as me, vModelText as Me, normalizeStyle as J, unref as R, mergeProps as Pe, h as De, onBeforeUnmount as Je, nextTick as et, vShow as Ae, useCssVars as tt } from "vue";
5
+ import { Tag as at, Folder as st, Globe as lt, Minimize2 as ke, Maximize2 as we, Clock as nt, Bell as ot, Info as it, HelpCircle as ct, AlertCircle as Le, X as $e, ChartPie as dt, Moon as rt, Sun as ut, Check as mt, MoreHorizontal as ft, ArrowRight as vt, ArrowLeft as pt, Edit2 as bt, Trash2 as ht, Filter as gt, ChevronDown as Oe, Search as _t, Plus as yt, Menu as kt, Bolt as wt, Terminal as $t, Settings as Ct, Fingerprint as xt, BarChart3 as St, Flag as It, MessageSquare as Vt, Archive as Bt, Package as zt, ShoppingBag as Dt, Users as At, LayoutDashboard as Te, ChevronUp as Lt, ChevronsUpDown as Tt } from "@lucide/vue";
6
6
  class Et {
7
7
  constructor() {
8
8
  ze(this, "registry", /* @__PURE__ */ new Map());
@@ -17,7 +17,7 @@ class Et {
17
17
  return this.registry.has(s);
18
18
  }
19
19
  }
20
- const E = new Et(), Mt = /* @__PURE__ */ A({
20
+ const T = new Et(), Mt = /* @__PURE__ */ A({
21
21
  __name: "Icon",
22
22
  props: {
23
23
  name: {},
@@ -31,8 +31,8 @@ const E = new Et(), Mt = /* @__PURE__ */ A({
31
31
  users: At,
32
32
  "shopping-bag": Dt,
33
33
  package: zt,
34
- archive: Vt,
35
- "message-square": Bt,
34
+ archive: Bt,
35
+ "message-square": Vt,
36
36
  flag: It,
37
37
  "bar-chart": St,
38
38
  fingerprint: xt,
@@ -51,8 +51,8 @@ const E = new Et(), Mt = /* @__PURE__ */ A({
51
51
  more: ft,
52
52
  check: mt,
53
53
  sun: ut,
54
- moon: dt,
55
- "chart-pie": rt,
54
+ moon: rt,
55
+ "chart-pie": dt,
56
56
  x: $e,
57
57
  "alert-circle": Le,
58
58
  attention: Le,
@@ -65,15 +65,15 @@ const E = new Et(), Mt = /* @__PURE__ */ A({
65
65
  globe: lt,
66
66
  folder: st,
67
67
  tag: at
68
- }, t = e, l = g(() => t.name.startsWith("ti-") || t.name.startsWith("ti ") || t.name.includes(" ")), i = g(() => s[t.name.toLowerCase()]), o = g(() => [
68
+ }, t = e, l = _(() => t.name.startsWith("ti-") || t.name.startsWith("ti ") || t.name.includes(" ")), i = _(() => s[t.name.toLowerCase()]), o = _(() => [
69
69
  "ds-icon",
70
70
  `ds-icon--size-${t.size}`,
71
71
  `ds-icon--variant-${t.variant}`
72
72
  ]);
73
- return (r, c) => l.value ? (a(), n("i", {
73
+ return (d, c) => l.value ? (a(), n("i", {
74
74
  key: 0,
75
75
  class: S([e.name, o.value])
76
- }, null, 2)) : i.value ? (a(), T(re(i.value), {
76
+ }, null, 2)) : i.value ? (a(), E(de(i.value), {
77
77
  key: 1,
78
78
  class: S(o.value),
79
79
  "aria-hidden": "true"
@@ -102,9 +102,9 @@ const E = new Et(), Mt = /* @__PURE__ */ A({
102
102
  textarea: Gt,
103
103
  schema: Yt,
104
104
  sidepanel: Xt
105
- }, Jt = { name: "Nons", footer: "Admin Panel" }, Qt = { dashboard: "Buttons", users: "Icons", stores: "Typography", products: "Form Fields", orders: "Layouts", chat: "Badges & Avatars", reports: "Dividers", stats: "Schema Renderer", components: "Components" }, ea = { name: "Behrouz", email: "admin@Nons.ir" }, ta = { search: "Search...", child_panel: "Seller Panel", child_finance: "Finance", child_content: "Content Management", panel_finance: "Finance", panel_seller: "Seller", panel_support: "Support", theme_toggle: "Toggle Theme", settings: "Settings", reports: "Reports", add: "Add", lang_fa: "Persian", lang_en: "English" }, aa = { title: "Roles List", subtitle: "Manage your users here", add_new: "Add New", search: "Search...", filter: "Filter", filter_all: "All Roles", filter_admin: "Admin", filter_seller: "Seller", filter_viewer: "Viewer", next: "Next", prev: "Previous", delete: "Delete", edit: "Edit", cancel: "Cancel", save: "Save", add_role: "Add New Role", edit_role: "Edit Role", no_data: "No data found." }, sa = { name: "Role", key: "Key", capabilities: "Capabilities", count: "Count", actions: "Actions", name_placeholder: "e.g. Seller", key_placeholder: "e.g. SELLER", name_label: "Role Name", key_label: "Role Key", access_type: "Access Type", access_placeholder: "Select...", access_full: "Full Access", access_limited: "Limited Access", access_readonly: "Read Only", cap_full_access: "Full Access", cap_shop: "Shop", cap_support: "Support", cap_products: "Products", cap_report: "Report", cap_buy: "Buy", cap_sell: "Sell", cap_view: "View", cap_limited: "Limited", error_name_required: "Role name is required", error_key_required: "Role key is required", error_key_exists: "A role with this key already exists" }, la = { title: "Component Explorer", subtitle: "Browse and preview all design system components", categories: { actions: "Actions", forms: "Forms", feedback: "Feedback", base: "Base", layouts: "Layouts", components: "Components", navigation: "Navigation", "data-display": "Data Display", disclosure: "Disclosure" }, tabs: { preview: "Preview", props: "Props", schema: "Schema", usage: "Usage" }, components: { button: { name: "Button", desc: "Interactive buttons with variants, sizes and states" }, "icon-button": { name: "IconButton", desc: "Icon-only square button for compact actions" }, icon: { name: "Icon", desc: "Unified icon system with token sizes and semantic colors" }, text: { name: "Text", desc: "Typography component with predefined scales and weights" }, input: { name: "Input", desc: "Text input field with icon and error state support" }, spacer: { name: "Spacer", desc: "Fixed token-based layout spacer for spacing sections" }, textarea: { name: "Textarea", desc: "Multiline text input with character and word limits support" }, select: { name: "Select", desc: "Dropdown select menu with custom options" }, "multi-select": { name: "MultiSelect", desc: "Dropdown select menu with multiple checkable options and display tags" }, "search-box": { name: "SearchBox", desc: "Text input combined with search icon and clear actions" }, dropdown: { name: "Dropdown", desc: "General selection dropdown with static items and API source loading" }, autocomplete: { name: "AsyncAutocomplete", desc: "Text input with dynamic and asynchronous suggestion loading from server" }, menu: { name: "Menu", desc: "Structured menu layout with dynamic options" }, "menu-item": { name: "MenuItem", desc: "Individual choice element in a Menu block" }, tooltip: { name: "Tooltip", desc: "Helpful overlay text displaying on mouse-over" }, popover: { name: "Popover", desc: "Floating interactive content panel mapping to logical flow" }, tabs: { name: "Tabs", desc: "Navigation controls for switching between content sections" }, checkbox: { name: "Checkbox", desc: "Custom styled checkbox with disabled state" }, switch: { name: "Switch", desc: "Toggle switch with animation and disabled state" }, badge: { name: "Badge", desc: "Colored badges with semantic variants and icon" }, avatar: { name: "Avatar", desc: "User avatar with image or fallback initials" }, divider: { name: "Divider", desc: "Horizontal divider line with token thickness" }, card: { name: "Card", desc: "Content card with header, body and footer sections" }, table: { name: "SchemaTable", desc: "Schema-driven table with sort, row selection, and TableCell integration" }, "table-cell": { name: "TableCell", desc: "Schema-driven table cell with 6 type variants (text, date, profile, tag, checkbox, actions)" }, "filter-bar": { name: "FilterBar", desc: "Composed search and filter controls for datasets" }, pagination: { name: "Pagination", desc: "Navigation controls for datasets pages" }, "empty-state": { name: "EmptyState", desc: "Informational banner when zero records are returned" }, "loading-state": { name: "LoadingState", desc: "Spinner, shimmering skeletons or placeholders for pending processes" }, sidepanel: { name: "SidePanel", desc: "Slide-in side panel with header and footer" }, stack: { name: "Stack", desc: "Vertical or horizontal layout with gap and separator" }, row: { name: "Row", desc: "Flexible horizontal layout with alignment options" }, grid: { name: "Grid", desc: "12-column responsive grid system" }, section: { name: "Section", desc: "Page section with title and subtitle" }, accordion: { name: "Accordion", desc: "Collapsible content panels for grouping related information" }, alert: { name: "Alert", desc: "Inline message panels for notifications and confirmation actions" }, progress: { name: "Progress", desc: "Visual progress indicators for ongoing operations" }, breadcrumb: { name: "Breadcrumb", desc: "Navigation trail for displaying current page hierarchy" }, chip: { name: "Chip", desc: "Compact, interactive tags with delete action buttons" }, "command-menu": { name: "CommandMenu", desc: "Keyboard-navigable search and action command palette" }, "swipe-item": { name: "SwipeItem", desc: "Swipeable list item that reveals action buttons on swipe" }, sidebar: { name: "SidebarNav", desc: "Schema-driven navigation sidebar with collapsed/expanded modes" }, "user-card": { name: "UserCard", desc: "Compact user profile card for sidebar footers with avatar, name, role and action icon" }, "page-title": { name: "PageTitle", desc: "Page header with title, subtitle and optional action button" }, "notification-bell": { name: "NotificationBell", desc: "Bell button with unread notification dot indicator" }, "notification-panel": { name: "NotificationPanel", desc: "Dropdown panel listing notification items with SwipeItem rows" }, "toggle-button": { name: "ToggleButton", desc: "Two-state button with separate icon and label for each state" }, "action-toggle": { name: "ActionToggle", desc: "Segmented toggle with 2 or 3 options and sliding thumb" } } }, na = { previous: "Previous", next: "Next", page_of: "Page {page} of {total}" }, oa = { text: "Loading..." }, ia = { empty: "No data found." }, ca = { no_results: "No results found", remove: "Remove", go: "Go", run: "Run", transfer: "Transfer" }, ra = { words: "words" }, da = { demo_title: "Dynamic Schema Rendering Test (Schema UI Engine)", demo_subtitle: "This card is fully rendered from a JSON specification and has real functionality.", input_placeholder: "Schema input...", submit: "Submit from Schema" }, ua = { close: "Close", cancel: "Cancel", save: "Save", minimize: "Minimize", maximize: "Maximize" }, ma = {
106
- app: Jt,
107
- nav: Qt,
105
+ }, Qt = { name: "Nons", footer: "Admin Panel" }, Jt = { dashboard: "Buttons", users: "Icons", stores: "Typography", products: "Form Fields", orders: "Layouts", chat: "Badges & Avatars", reports: "Dividers", stats: "Schema Renderer", components: "Components" }, ea = { name: "Behrouz", email: "admin@Nons.ir" }, ta = { search: "Search...", child_panel: "Seller Panel", child_finance: "Finance", child_content: "Content Management", panel_finance: "Finance", panel_seller: "Seller", panel_support: "Support", theme_toggle: "Toggle Theme", settings: "Settings", reports: "Reports", add: "Add", lang_fa: "Persian", lang_en: "English" }, aa = { title: "Roles List", subtitle: "Manage your users here", add_new: "Add New", search: "Search...", filter: "Filter", filter_all: "All Roles", filter_admin: "Admin", filter_seller: "Seller", filter_viewer: "Viewer", next: "Next", prev: "Previous", delete: "Delete", edit: "Edit", cancel: "Cancel", save: "Save", add_role: "Add New Role", edit_role: "Edit Role", no_data: "No data found." }, sa = { name: "Role", key: "Key", capabilities: "Capabilities", count: "Count", actions: "Actions", name_placeholder: "e.g. Seller", key_placeholder: "e.g. SELLER", name_label: "Role Name", key_label: "Role Key", access_type: "Access Type", access_placeholder: "Select...", access_full: "Full Access", access_limited: "Limited Access", access_readonly: "Read Only", cap_full_access: "Full Access", cap_shop: "Shop", cap_support: "Support", cap_products: "Products", cap_report: "Report", cap_buy: "Buy", cap_sell: "Sell", cap_view: "View", cap_limited: "Limited", error_name_required: "Role name is required", error_key_required: "Role key is required", error_key_exists: "A role with this key already exists" }, la = { title: "Component Explorer", subtitle: "Browse and preview all design system components", categories: { actions: "Actions", forms: "Forms", feedback: "Feedback", base: "Base", layouts: "Layouts", components: "Components", navigation: "Navigation", "data-display": "Data Display", disclosure: "Disclosure" }, tabs: { preview: "Preview", props: "Props", schema: "Schema", usage: "Usage" }, components: { button: { name: "Button", desc: "Interactive buttons with variants, sizes and states" }, "icon-button": { name: "IconButton", desc: "Icon-only square button for compact actions" }, icon: { name: "Icon", desc: "Unified icon system with token sizes and semantic colors" }, text: { name: "Text", desc: "Typography component with predefined scales and weights" }, input: { name: "Input", desc: "Text input field with icon and error state support" }, spacer: { name: "Spacer", desc: "Fixed token-based layout spacer for spacing sections" }, textarea: { name: "Textarea", desc: "Multiline text input with character and word limits support" }, select: { name: "Select", desc: "Dropdown select menu with custom options" }, "multi-select": { name: "MultiSelect", desc: "Dropdown select menu with multiple checkable options and display tags" }, "search-box": { name: "SearchBox", desc: "Text input combined with search icon and clear actions" }, dropdown: { name: "Dropdown", desc: "General selection dropdown with static items and API source loading" }, autocomplete: { name: "AsyncAutocomplete", desc: "Text input with dynamic and asynchronous suggestion loading from server" }, menu: { name: "Menu", desc: "Structured menu layout with dynamic options" }, "menu-item": { name: "MenuItem", desc: "Individual choice element in a Menu block" }, tooltip: { name: "Tooltip", desc: "Helpful overlay text displaying on mouse-over" }, popover: { name: "Popover", desc: "Floating interactive content panel mapping to logical flow" }, tabs: { name: "Tabs", desc: "Navigation controls for switching between content sections" }, checkbox: { name: "Checkbox", desc: "Custom styled checkbox with disabled state" }, switch: { name: "Switch", desc: "Toggle switch with animation and disabled state" }, badge: { name: "Badge", desc: "Colored badges with semantic variants and icon" }, avatar: { name: "Avatar", desc: "User avatar with image or fallback initials" }, divider: { name: "Divider", desc: "Horizontal divider line with token thickness" }, card: { name: "Card", desc: "Content card with header, body and footer sections" }, table: { name: "SchemaTable", desc: "Schema-driven table with sort, row selection, and TableCell integration" }, "table-cell": { name: "TableCell", desc: "Schema-driven table cell with 6 type variants (text, date, profile, tag, checkbox, actions)" }, "filter-bar": { name: "FilterBar", desc: "Composed search and filter controls for datasets" }, pagination: { name: "Pagination", desc: "Navigation controls for datasets pages" }, "empty-state": { name: "EmptyState", desc: "Informational banner when zero records are returned" }, "loading-state": { name: "LoadingState", desc: "Spinner, shimmering skeletons or placeholders for pending processes" }, sidepanel: { name: "SidePanel", desc: "Slide-in side panel with header and footer" }, stack: { name: "Stack", desc: "Vertical or horizontal layout with gap and separator" }, row: { name: "Row", desc: "Flexible horizontal layout with alignment options" }, grid: { name: "Grid", desc: "12-column responsive grid system" }, section: { name: "Section", desc: "Page section with title and subtitle" }, accordion: { name: "Accordion", desc: "Collapsible content panels for grouping related information" }, alert: { name: "Alert", desc: "Inline message panels for notifications and confirmation actions" }, progress: { name: "Progress", desc: "Visual progress indicators for ongoing operations" }, breadcrumb: { name: "Breadcrumb", desc: "Navigation trail for displaying current page hierarchy" }, chip: { name: "Chip", desc: "Compact, interactive tags with delete action buttons" }, "command-menu": { name: "CommandMenu", desc: "Keyboard-navigable search and action command palette" }, "swipe-item": { name: "SwipeItem", desc: "Swipeable list item that reveals action buttons on swipe" }, sidebar: { name: "SidebarNav", desc: "Schema-driven navigation sidebar with collapsed/expanded modes" }, "user-card": { name: "UserCard", desc: "Compact user profile card for sidebar footers with avatar, name, role and action icon" }, "page-title": { name: "PageTitle", desc: "Page header with title, subtitle and optional action button" }, "notification-bell": { name: "NotificationBell", desc: "Bell button with unread notification dot indicator" }, "notification-panel": { name: "NotificationPanel", desc: "Dropdown panel listing notification items with SwipeItem rows" }, "toggle-button": { name: "ToggleButton", desc: "Two-state button with separate icon and label for each state" }, "action-toggle": { name: "ActionToggle", desc: "Segmented toggle with 2 or 3 options and sliding thumb" } } }, na = { previous: "Previous", next: "Next", page_of: "Page {page} of {total}" }, oa = { text: "Loading..." }, ia = { empty: "No data found." }, ca = { no_results: "No results found", remove: "Remove", go: "Go", run: "Run", transfer: "Transfer" }, da = { words: "words" }, ra = { demo_title: "Dynamic Schema Rendering Test (Schema UI Engine)", demo_subtitle: "This card is fully rendered from a JSON specification and has real functionality.", input_placeholder: "Schema input...", submit: "Submit from Schema" }, ua = { close: "Close", cancel: "Cancel", save: "Save", minimize: "Minimize", maximize: "Maximize" }, ma = {
106
+ app: Qt,
107
+ nav: Jt,
108
108
  profile: ea,
109
109
  header: ta,
110
110
  home: aa,
@@ -114,8 +114,8 @@ const E = new Et(), Mt = /* @__PURE__ */ A({
114
114
  loading: oa,
115
115
  table: ia,
116
116
  common: ca,
117
- textarea: ra,
118
- schema: da,
117
+ textarea: da,
118
+ schema: ra,
119
119
  sidepanel: ua
120
120
  }, fa = { fa: Zt, en: ma }, Ie = Ee({
121
121
  locale: "fa"
@@ -144,7 +144,7 @@ function F(e, s) {
144
144
  }
145
145
  function Ne() {
146
146
  return {
147
- locale: g(() => Ie.locale),
147
+ locale: _(() => Ie.locale),
148
148
  t: (e, s) => F(e, s),
149
149
  setLocale: Re
150
150
  };
@@ -158,13 +158,13 @@ const pa = /* @__PURE__ */ A({
158
158
  tag: {}
159
159
  },
160
160
  setup(e) {
161
- const s = e, t = g(() => s.value ? F(s.value) : ""), l = g(() => [
161
+ const s = e, t = _(() => s.value ? F(s.value) : ""), l = _(() => [
162
162
  "ds-text",
163
163
  `ds-text--${s.variant}`,
164
164
  {
165
165
  "ds-text--truncate": s.truncate
166
166
  }
167
- ]), i = g(() => {
167
+ ]), i = _(() => {
168
168
  if (s.tag) return s.tag;
169
169
  switch (s.variant) {
170
170
  case "heading-2xl":
@@ -187,11 +187,11 @@ const pa = /* @__PURE__ */ A({
187
187
  return "span";
188
188
  }
189
189
  });
190
- return (o, r) => (a(), T(re(i.value), {
190
+ return (o, d) => (a(), E(de(i.value), {
191
191
  class: S(l.value)
192
192
  }, {
193
- default: U(() => [
194
- K(o.$slots, "default", {}, () => [
193
+ default: j(() => [
194
+ H(o.$slots, "default", {}, () => [
195
195
  Y(C(t.value), 1)
196
196
  ], !0)
197
197
  ]),
@@ -218,7 +218,7 @@ const pa = /* @__PURE__ */ A({
218
218
  },
219
219
  emits: ["click"],
220
220
  setup(e, { emit: s }) {
221
- const t = e, l = s, i = Je(), o = g(() => [
221
+ const t = e, l = s, i = Qe(), o = _(() => [
222
222
  "ds-button",
223
223
  `ds-button--${t.variant}`,
224
224
  `ds-button--${t.size}`,
@@ -228,31 +228,31 @@ const pa = /* @__PURE__ */ A({
228
228
  "ds-button--icon-only": t.icon && !t.label && !i.default
229
229
  }
230
230
  ]);
231
- function r(c) {
231
+ function d(c) {
232
232
  !t.disabled && !t.loading && l("click", c);
233
233
  }
234
- return (c, d) => (a(), n("button", {
234
+ return (c, r) => (a(), n("button", {
235
235
  type: e.type,
236
236
  class: S(o.value),
237
237
  disabled: e.disabled || e.loading,
238
- onClick: r
238
+ onClick: d
239
239
  }, [
240
240
  e.loading ? (a(), n("span", ha)) : f("", !0),
241
- e.icon && e.iconPosition === "start" && !e.loading ? (a(), T(N, {
241
+ e.icon && e.iconPosition === "start" && !e.loading ? (a(), E(N, {
242
242
  key: 1,
243
243
  name: e.icon,
244
244
  size: "sm",
245
245
  variant: "default"
246
246
  }, null, 8, ["name"])) : f("", !0),
247
247
  c.$slots.default || e.label ? (a(), n("span", ga, [
248
- K(c.$slots, "default", {}, () => [
249
- x(G, {
248
+ H(c.$slots, "default", {}, () => [
249
+ w(G, {
250
250
  variant: "body-md",
251
251
  value: e.label
252
252
  }, null, 8, ["value"])
253
253
  ], !0)
254
254
  ])) : f("", !0),
255
- e.icon && e.iconPosition === "end" && !e.loading ? (a(), T(N, {
255
+ e.icon && e.iconPosition === "end" && !e.loading ? (a(), E(N, {
256
256
  key: 3,
257
257
  name: e.icon,
258
258
  size: "sm",
@@ -276,7 +276,7 @@ const pa = /* @__PURE__ */ A({
276
276
  },
277
277
  emits: ["update:modelValue", "focus", "blur", "input", "keydown"],
278
278
  setup(e, { emit: s }) {
279
- const t = e, l = s, i = g(() => [
279
+ const t = e, l = s, i = _(() => [
280
280
  "ds-input",
281
281
  {
282
282
  "ds-input--disabled": t.disabled,
@@ -285,15 +285,15 @@ const pa = /* @__PURE__ */ A({
285
285
  "ds-input--has-icon": !!t.icon
286
286
  }
287
287
  ]);
288
- function o(r) {
289
- const c = r.target;
290
- l("update:modelValue", c.value), l("input", r);
288
+ function o(d) {
289
+ const c = d.target;
290
+ l("update:modelValue", c.value), l("input", d);
291
291
  }
292
- return (r, c) => (a(), n("div", {
292
+ return (d, c) => (a(), n("div", {
293
293
  class: S(i.value)
294
294
  }, [
295
295
  m("div", ya, [
296
- e.icon ? (a(), T(N, {
296
+ e.icon ? (a(), E(N, {
297
297
  key: 0,
298
298
  name: e.icon,
299
299
  size: "sm",
@@ -308,14 +308,14 @@ const pa = /* @__PURE__ */ A({
308
308
  readonly: e.readonly,
309
309
  class: "ds-input__field",
310
310
  onInput: o,
311
- onFocus: c[0] || (c[0] = (d) => l("focus", d)),
312
- onBlur: c[1] || (c[1] = (d) => l("blur", d)),
313
- onKeydown: c[2] || (c[2] = (d) => l("keydown", d))
311
+ onFocus: c[0] || (c[0] = (r) => l("focus", r)),
312
+ onBlur: c[1] || (c[1] = (r) => l("blur", r)),
313
+ onKeydown: c[2] || (c[2] = (r) => l("keydown", r))
314
314
  }, null, 40, ka)
315
315
  ])
316
316
  ], 2));
317
317
  }
318
- }), ve = /* @__PURE__ */ L(wa, [["__scopeId", "data-v-7227544b"]]), $a = {
318
+ }), ue = /* @__PURE__ */ L(wa, [["__scopeId", "data-v-7227544b"]]), $a = {
319
319
  class: "ds-divider",
320
320
  role: "separator"
321
321
  }, Ca = /* @__PURE__ */ A({
@@ -331,22 +331,22 @@ const pa = /* @__PURE__ */ A({
331
331
  icon: {}
332
332
  },
333
333
  setup(e) {
334
- const s = e, t = g(() => [
334
+ const s = e, t = _(() => [
335
335
  "ds-badge",
336
336
  `ds-badge--${s.variant}`
337
337
  ]);
338
338
  return (l, i) => (a(), n("span", {
339
339
  class: S(t.value)
340
340
  }, [
341
- e.icon ? (a(), T(N, {
341
+ e.icon ? (a(), E(N, {
342
342
  key: 0,
343
343
  name: e.icon,
344
344
  size: "xs",
345
345
  variant: "default",
346
346
  class: "ds-badge__icon"
347
347
  }, null, 8, ["name"])) : f("", !0),
348
- K(l.$slots, "default", {}, () => [
349
- x(G, {
348
+ H(l.$slots, "default", {}, () => [
349
+ w(G, {
350
350
  variant: "caption",
351
351
  value: e.text,
352
352
  class: "ds-badge__text"
@@ -354,10 +354,10 @@ const pa = /* @__PURE__ */ A({
354
354
  ], !0)
355
355
  ], 2));
356
356
  }
357
- }), Sa = /* @__PURE__ */ L(xa, [["__scopeId", "data-v-2be2004d"]]), Ia = ["src", "alt"], Ba = {
357
+ }), Sa = /* @__PURE__ */ L(xa, [["__scopeId", "data-v-2be2004d"]]), Ia = ["src", "alt"], Va = {
358
358
  key: 1,
359
359
  class: "ds-avatar__fallback"
360
- }, Va = /* @__PURE__ */ A({
360
+ }, Ba = /* @__PURE__ */ A({
361
361
  __name: "Avatar",
362
362
  props: {
363
363
  src: {},
@@ -367,12 +367,12 @@ const pa = /* @__PURE__ */ A({
367
367
  square: { type: Boolean, default: !1 }
368
368
  },
369
369
  setup(e) {
370
- const s = e, t = P(!1);
370
+ const s = e, t = M(!1);
371
371
  ee(() => s.src, () => {
372
372
  t.value = !1;
373
373
  });
374
- const l = g(() => {
375
- var d, v;
374
+ const l = _(() => {
375
+ var r, v;
376
376
  if (s.fallback) return s.fallback;
377
377
  if (!s.name) return "?";
378
378
  const o = s.name.trim().split(/\s+/);
@@ -381,14 +381,14 @@ const pa = /* @__PURE__ */ A({
381
381
  const u = o[0];
382
382
  return u ? u.charAt(0).toUpperCase() : "?";
383
383
  }
384
- const r = ((d = o[0]) == null ? void 0 : d.charAt(0)) || "", c = ((v = o[o.length - 1]) == null ? void 0 : v.charAt(0)) || "";
385
- return (r + c).toUpperCase();
386
- }), i = g(() => [
384
+ const d = ((r = o[0]) == null ? void 0 : r.charAt(0)) || "", c = ((v = o[o.length - 1]) == null ? void 0 : v.charAt(0)) || "";
385
+ return (d + c).toUpperCase();
386
+ }), i = _(() => [
387
387
  "ds-avatar",
388
388
  `ds-avatar--${s.size}`,
389
389
  { "ds-avatar--square": s.square }
390
390
  ]);
391
- return (o, r) => (a(), n("div", {
391
+ return (o, d) => (a(), n("div", {
392
392
  class: S(i.value)
393
393
  }, [
394
394
  e.src && !t.value ? (a(), n("img", {
@@ -396,11 +396,11 @@ const pa = /* @__PURE__ */ A({
396
396
  src: e.src,
397
397
  alt: e.name,
398
398
  class: "ds-avatar__image",
399
- onError: r[0] || (r[0] = (c) => t.value = !0)
400
- }, null, 40, Ia)) : (a(), n("div", Ba, C(l.value), 1))
399
+ onError: d[0] || (d[0] = (c) => t.value = !0)
400
+ }, null, 40, Ia)) : (a(), n("div", Va, C(l.value), 1))
401
401
  ], 2));
402
402
  }
403
- }), de = /* @__PURE__ */ L(Va, [["__scopeId", "data-v-e32afb9f"]]), za = { class: "ds-select__wrapper" }, Da = ["id", "aria-expanded", "aria-controls"], Aa = {
403
+ }), re = /* @__PURE__ */ L(Ba, [["__scopeId", "data-v-e32afb9f"]]), za = { class: "ds-select__wrapper" }, Da = ["id", "aria-expanded", "aria-controls"], Aa = {
404
404
  key: 0,
405
405
  class: "ds-select__value"
406
406
  }, La = {
@@ -419,84 +419,84 @@ const pa = /* @__PURE__ */ A({
419
419
  emits: ["update:modelValue", "change"],
420
420
  setup(e, { emit: s }) {
421
421
  const t = e, l = s;
422
- function i(p) {
423
- return typeof p == "object" && p !== null ? p : { label: String(p), value: p };
422
+ function i(h) {
423
+ return typeof h == "object" && h !== null ? h : { label: String(h), value: h };
424
424
  }
425
- function o(p) {
426
- return i(p).value;
425
+ function o(h) {
426
+ return i(h).value;
427
427
  }
428
- function r(p) {
429
- return i(p).label;
428
+ function d(h) {
429
+ return i(h).label;
430
430
  }
431
- const c = g(() => {
432
- const p = t.modelValue;
433
- if (p === "" || p === void 0) return "";
434
- const z = t.options.find((y) => o(y) === p);
435
- return z ? r(z) : "";
436
- }), d = P(!1), v = P(null), u = P(null), h = P(-1);
437
- function _() {
438
- t.disabled || (d.value = !d.value, M());
431
+ const c = _(() => {
432
+ const h = t.modelValue;
433
+ if (h === "" || h === void 0) return "";
434
+ const B = t.options.find((k) => o(k) === h);
435
+ return B ? d(B) : "";
436
+ }), r = M(!1), v = M(null), u = M(null), b = M(-1);
437
+ function V() {
438
+ t.disabled || (r.value = !r.value, P());
439
439
  }
440
- function k() {
441
- t.disabled || d.value || (d.value = !0, M());
440
+ function p() {
441
+ t.disabled || r.value || (r.value = !0, P());
442
442
  }
443
- function M() {
444
- const p = t.modelValue;
445
- h.value = t.options.findIndex((z) => o(z) === p);
443
+ function P() {
444
+ const h = t.modelValue;
445
+ b.value = t.options.findIndex((B) => o(B) === h);
446
446
  }
447
- function B() {
448
- var p;
449
- d.value = !1, h.value = -1, (p = v.value) == null || p.focus();
447
+ function I() {
448
+ var h;
449
+ r.value = !1, b.value = -1, (h = v.value) == null || h.focus();
450
450
  }
451
- function V(p) {
452
- const z = o(p);
453
- if (z === t.modelValue) {
454
- B();
451
+ function $(h) {
452
+ const B = o(h);
453
+ if (B === t.modelValue) {
454
+ I();
455
455
  return;
456
456
  }
457
- l("update:modelValue", z), l("change", z), B();
457
+ l("update:modelValue", B), l("change", B), I();
458
458
  }
459
- function H(p) {
459
+ function U(h) {
460
460
  if (!t.disabled) {
461
- if (!d.value) {
462
- (p.key === "Enter" || p.key === "ArrowDown" || p.key === " ") && (p.preventDefault(), k());
461
+ if (!r.value) {
462
+ (h.key === "Enter" || h.key === "ArrowDown" || h.key === " ") && (h.preventDefault(), p());
463
463
  return;
464
464
  }
465
- switch (p.key) {
465
+ switch (h.key) {
466
466
  case "Escape":
467
- p.preventDefault(), B();
467
+ h.preventDefault(), I();
468
468
  break;
469
469
  case "ArrowDown":
470
- p.preventDefault(), h.value = h.value < t.options.length - 1 ? h.value + 1 : 0;
470
+ h.preventDefault(), b.value = b.value < t.options.length - 1 ? b.value + 1 : 0;
471
471
  break;
472
472
  case "ArrowUp":
473
- p.preventDefault(), h.value = h.value > 0 ? h.value - 1 : t.options.length - 1;
473
+ h.preventDefault(), b.value = b.value > 0 ? b.value - 1 : t.options.length - 1;
474
474
  break;
475
475
  case "Enter":
476
- p.preventDefault(), h.value >= 0 && h.value < t.options.length && V(t.options[h.value]);
476
+ h.preventDefault(), b.value >= 0 && b.value < t.options.length && $(t.options[b.value]);
477
477
  break;
478
478
  }
479
479
  }
480
480
  }
481
- function w(p) {
482
- const z = p.target, y = v.value, $ = u.value;
483
- !y && !$ || y && y.contains(z) || $ && $.contains(z) || d.value && B();
481
+ function z(h) {
482
+ const B = h.target, k = v.value, x = u.value;
483
+ !k && !x || k && k.contains(B) || x && x.contains(B) || r.value && I();
484
484
  }
485
485
  te(() => {
486
- document.addEventListener("click", w);
486
+ document.addEventListener("click", z);
487
487
  }), oe(() => {
488
- document.removeEventListener("click", w);
488
+ document.removeEventListener("click", z);
489
489
  });
490
- const I = g(() => [
490
+ const y = _(() => [
491
491
  "ds-select",
492
492
  {
493
493
  "ds-select--disabled": t.disabled,
494
494
  "ds-select--error": !!t.error,
495
- "ds-select--open": d.value
495
+ "ds-select--open": r.value
496
496
  }
497
- ]), O = g(() => t.id ? `${t.id}-listbox` : void 0);
498
- return (p, z) => (a(), n("div", {
499
- class: S(I.value)
497
+ ]), O = _(() => t.id ? `${t.id}-listbox` : void 0);
498
+ return (h, B) => (a(), n("div", {
499
+ class: S(y.value)
500
500
  }, [
501
501
  m("div", za, [
502
502
  m("div", {
@@ -504,44 +504,44 @@ const pa = /* @__PURE__ */ A({
504
504
  ref_key: "triggerRef",
505
505
  ref: v,
506
506
  role: "combobox",
507
- "aria-expanded": d.value,
507
+ "aria-expanded": r.value,
508
508
  "aria-controls": O.value,
509
509
  "aria-haspopup": "listbox",
510
510
  tabindex: "0",
511
- class: S(["ds-select__trigger", { "ds-select__trigger--open": d.value }]),
512
- onClick: X(_, ["stop"]),
513
- onKeydown: H
511
+ class: S(["ds-select__trigger", { "ds-select__trigger--open": r.value }]),
512
+ onClick: X(V, ["stop"]),
513
+ onKeydown: U
514
514
  }, [
515
515
  c.value ? (a(), n("span", Aa, C(c.value), 1)) : (a(), n("span", La, C(e.placeholder), 1)),
516
- x(N, {
516
+ w(N, {
517
517
  name: "chevron-down",
518
518
  class: "ds-select__chevron",
519
519
  size: "sm"
520
520
  })
521
521
  ], 42, Da),
522
- x(ae, { name: "ds-select-drop" }, {
523
- default: U(() => [
524
- d.value ? (a(), n("div", {
522
+ w(ae, { name: "ds-select-drop" }, {
523
+ default: j(() => [
524
+ r.value ? (a(), n("div", {
525
525
  key: 0,
526
526
  id: O.value,
527
527
  ref_key: "dropdownRef",
528
528
  ref: u,
529
529
  role: "listbox",
530
530
  class: "ds-select__dropdown",
531
- onClick: z[0] || (z[0] = X(() => {
531
+ onClick: B[0] || (B[0] = X(() => {
532
532
  }, ["stop"]))
533
533
  }, [
534
- (a(!0), n(j, null, W(t.options, (y, $) => (a(), n("div", {
535
- key: String(o(y)),
534
+ (a(!0), n(q, null, W(t.options, (k, x) => (a(), n("div", {
535
+ key: String(o(k)),
536
536
  role: "option",
537
- "aria-selected": o(y) === e.modelValue,
537
+ "aria-selected": o(k) === e.modelValue,
538
538
  class: S(["ds-select__option", {
539
- "ds-select__option--selected": o(y) === e.modelValue,
540
- "ds-select__option--focused": $ === h.value
539
+ "ds-select__option--selected": o(k) === e.modelValue,
540
+ "ds-select__option--focused": x === b.value
541
541
  }]),
542
- onClick: X((b) => V(y), ["stop"]),
543
- onMouseenter: (b) => h.value = $
544
- }, C(r(y)), 43, Ea))), 128))
542
+ onClick: X((g) => $(k), ["stop"]),
543
+ onMouseenter: (g) => b.value = x
544
+ }, C(d(k)), 43, Ea))), 128))
545
545
  ], 8, Ta)) : f("", !0)
546
546
  ]),
547
547
  _: 1
@@ -567,73 +567,73 @@ const pa = /* @__PURE__ */ A({
567
567
  },
568
568
  emits: ["update:modelValue", "change"],
569
569
  setup(e, { emit: s }) {
570
- const t = e, l = s, i = P(""), o = P(!1), r = P(null), c = P(null), d = P(-1);
571
- function v(p) {
572
- return typeof p == "object" && p !== null ? p : { label: String(p), value: p };
573
- }
574
- const u = g(() => t.options.map(v)), h = g(() => {
575
- const p = i.value.toLowerCase().trim();
576
- return p ? u.value.filter(
577
- (z) => z.label.toLowerCase().includes(p)
570
+ const t = e, l = s, i = M(""), o = M(!1), d = M(null), c = M(null), r = M(-1);
571
+ function v(h) {
572
+ return typeof h == "object" && h !== null ? h : { label: String(h), value: h };
573
+ }
574
+ const u = _(() => t.options.map(v)), b = _(() => {
575
+ const h = i.value.toLowerCase().trim();
576
+ return h ? u.value.filter(
577
+ (B) => B.label.toLowerCase().includes(h)
578
578
  ) : u.value;
579
- }), _ = g(() => u.value.filter(
580
- (p) => t.modelValue.includes(p.value)
579
+ }), V = _(() => u.value.filter(
580
+ (h) => t.modelValue.includes(h.value)
581
581
  ));
582
- function k(p) {
583
- return t.modelValue.includes(p);
582
+ function p(h) {
583
+ return t.modelValue.includes(h);
584
584
  }
585
- function M() {
586
- t.disabled || o.value || (o.value = !0, d.value = -1);
585
+ function P() {
586
+ t.disabled || o.value || (o.value = !0, r.value = -1);
587
587
  }
588
- function B() {
589
- o.value = !1, d.value = -1;
588
+ function I() {
589
+ o.value = !1, r.value = -1;
590
590
  }
591
- function V(p) {
592
- const z = [...t.modelValue], y = z.indexOf(p.value);
593
- y > -1 ? z.splice(y, 1) : z.push(p.value), l("update:modelValue", z), l("change", z), i.value = "";
591
+ function $(h) {
592
+ const B = [...t.modelValue], k = B.indexOf(h.value);
593
+ k > -1 ? B.splice(k, 1) : B.push(h.value), l("update:modelValue", B), l("change", B), i.value = "";
594
594
  }
595
- function H(p) {
595
+ function U(h) {
596
596
  if (t.disabled) return;
597
- const z = t.modelValue.filter((y) => y !== p);
598
- l("update:modelValue", z), l("change", z);
597
+ const B = t.modelValue.filter((k) => k !== h);
598
+ l("update:modelValue", B), l("change", B);
599
599
  }
600
- function w(p) {
600
+ function z(h) {
601
601
  if (!t.disabled) {
602
602
  if (!o.value) {
603
- (p.key === "Enter" || p.key === "ArrowDown" || p.key === " ") && (p.preventDefault(), M());
603
+ (h.key === "Enter" || h.key === "ArrowDown" || h.key === " ") && (h.preventDefault(), P());
604
604
  return;
605
605
  }
606
- switch (p.key) {
606
+ switch (h.key) {
607
607
  case "Escape":
608
- p.preventDefault(), B();
608
+ h.preventDefault(), I();
609
609
  break;
610
610
  case "ArrowDown":
611
- if (p.preventDefault(), h.value.length === 0) return;
612
- d.value = d.value < h.value.length - 1 ? d.value + 1 : 0;
611
+ if (h.preventDefault(), b.value.length === 0) return;
612
+ r.value = r.value < b.value.length - 1 ? r.value + 1 : 0;
613
613
  break;
614
614
  case "ArrowUp":
615
- if (p.preventDefault(), h.value.length === 0) return;
616
- d.value = d.value > 0 ? d.value - 1 : h.value.length - 1;
615
+ if (h.preventDefault(), b.value.length === 0) return;
616
+ r.value = r.value > 0 ? r.value - 1 : b.value.length - 1;
617
617
  break;
618
618
  case "Enter":
619
- if (p.preventDefault(), d.value >= 0 && d.value < h.value.length) {
620
- const z = h.value[d.value];
621
- z && V(z);
619
+ if (h.preventDefault(), r.value >= 0 && r.value < b.value.length) {
620
+ const B = b.value[r.value];
621
+ B && $(B);
622
622
  }
623
623
  break;
624
624
  }
625
625
  }
626
626
  }
627
- function I(p) {
628
- const z = p.target, y = r.value, $ = c.value;
629
- !y && !$ || y && y.contains(z) || $ && $.contains(z) || o.value && B();
627
+ function y(h) {
628
+ const B = h.target, k = d.value, x = c.value;
629
+ !k && !x || k && k.contains(B) || x && x.contains(B) || o.value && I();
630
630
  }
631
631
  te(() => {
632
- document.addEventListener("click", I);
632
+ document.addEventListener("click", y);
633
633
  }), oe(() => {
634
- document.removeEventListener("click", I);
634
+ document.removeEventListener("click", y);
635
635
  });
636
- const O = g(() => [
636
+ const O = _(() => [
637
637
  "ds-multi-select",
638
638
  {
639
639
  "ds-multi-select--disabled": t.disabled,
@@ -641,59 +641,59 @@ const pa = /* @__PURE__ */ A({
641
641
  "ds-multi-select--open": o.value
642
642
  }
643
643
  ]);
644
- return (p, z) => (a(), n("div", {
644
+ return (h, B) => (a(), n("div", {
645
645
  class: S(O.value)
646
646
  }, [
647
647
  m("div", Pa, [
648
648
  m("div", {
649
649
  ref_key: "triggerRef",
650
- ref: r,
650
+ ref: d,
651
651
  class: S(["ds-multi-select__trigger", { "ds-multi-select__trigger--open": o.value }]),
652
- onClick: M
652
+ onClick: P
653
653
  }, [
654
- ue(m("input", {
654
+ me(m("input", {
655
655
  id: e.id,
656
- "onUpdate:modelValue": z[0] || (z[0] = (y) => i.value = y),
656
+ "onUpdate:modelValue": B[0] || (B[0] = (k) => i.value = k),
657
657
  type: "text",
658
658
  placeholder: e.placeholder,
659
659
  disabled: e.disabled,
660
660
  class: "ds-multi-select__input",
661
- onKeydown: w,
662
- onFocus: M
661
+ onKeydown: z,
662
+ onFocus: P
663
663
  }, null, 40, Oa), [
664
664
  [Me, i.value]
665
665
  ]),
666
- x(N, {
666
+ w(N, {
667
667
  name: "chevron-down",
668
668
  class: "ds-multi-select__chevron",
669
669
  size: "sm"
670
670
  })
671
671
  ], 2),
672
- x(ae, { name: "ds-multi-select-drop" }, {
673
- default: U(() => [
672
+ w(ae, { name: "ds-multi-select-drop" }, {
673
+ default: j(() => [
674
674
  o.value ? (a(), n("div", {
675
675
  key: 0,
676
676
  ref_key: "dropdownRef",
677
677
  ref: c,
678
678
  role: "listbox",
679
679
  class: "ds-multi-select__dropdown",
680
- onClick: z[1] || (z[1] = X(() => {
680
+ onClick: B[1] || (B[1] = X(() => {
681
681
  }, ["stop"]))
682
682
  }, [
683
- h.value.length === 0 ? (a(), n("div", Ra, C(i.value ? "نتیجه‌ای یافت نشد" : "گزینه‌ای وجود ندارد"), 1)) : f("", !0),
684
- (a(!0), n(j, null, W(h.value, (y, $) => (a(), n("div", {
685
- key: String(y.value),
683
+ b.value.length === 0 ? (a(), n("div", Ra, C(i.value ? "نتیجه‌ای یافت نشد" : "گزینه‌ای وجود ندارد"), 1)) : f("", !0),
684
+ (a(!0), n(q, null, W(b.value, (k, x) => (a(), n("div", {
685
+ key: String(k.value),
686
686
  role: "option",
687
- "aria-selected": k(y.value),
687
+ "aria-selected": p(k.value),
688
688
  class: S(["ds-multi-select__option", {
689
- "ds-multi-select__option--selected": k(y.value),
690
- "ds-multi-select__option--focused": $ === d.value
689
+ "ds-multi-select__option--selected": p(k.value),
690
+ "ds-multi-select__option--focused": x === r.value
691
691
  }]),
692
- onClick: X((b) => V(y), ["stop"]),
693
- onMouseenter: (b) => d.value = $
692
+ onClick: X((g) => $(k), ["stop"]),
693
+ onMouseenter: (g) => r.value = x
694
694
  }, [
695
- m("span", Fa, C(y.label), 1),
696
- k(y.value) ? (a(), T(N, {
695
+ m("span", Fa, C(k.label), 1),
696
+ p(k.value) ? (a(), E(N, {
697
697
  key: 0,
698
698
  name: "check",
699
699
  class: "ds-multi-select__check-icon",
@@ -705,19 +705,19 @@ const pa = /* @__PURE__ */ A({
705
705
  _: 1
706
706
  })
707
707
  ]),
708
- _.value.length > 0 ? (a(), n("div", Ua, [
709
- (a(!0), n(j, null, W(_.value, (y) => (a(), n("div", {
710
- key: String(y.value),
708
+ V.value.length > 0 ? (a(), n("div", Ua, [
709
+ (a(!0), n(q, null, W(V.value, (k) => (a(), n("div", {
710
+ key: String(k.value),
711
711
  class: "ds-multi-select__tag"
712
712
  }, [
713
- m("span", ja, C(y.label), 1),
713
+ m("span", ja, C(k.label), 1),
714
714
  m("button", {
715
715
  type: "button",
716
716
  disabled: e.disabled,
717
717
  class: "ds-multi-select__tag-remove",
718
- onClick: X(($) => H(y.value), ["stop"])
718
+ onClick: X((x) => U(k.value), ["stop"])
719
719
  }, [
720
- x(N, {
720
+ w(N, {
721
721
  name: "x",
722
722
  size: "xs"
723
723
  })
@@ -740,7 +740,7 @@ const pa = /* @__PURE__ */ A({
740
740
  },
741
741
  emits: ["update:modelValue", "change"],
742
742
  setup(e, { emit: s }) {
743
- const t = e, l = s, i = g(() => !!t.modelValue), o = g(() => [
743
+ const t = e, l = s, i = _(() => !!t.modelValue), o = _(() => [
744
744
  "ds-checkbox",
745
745
  {
746
746
  "ds-checkbox--checked": i.value,
@@ -748,14 +748,14 @@ const pa = /* @__PURE__ */ A({
748
748
  "ds-checkbox--error": !!t.error
749
749
  }
750
750
  ]);
751
- function r() {
751
+ function d() {
752
752
  if (t.disabled) return;
753
753
  const c = !i.value;
754
754
  l("update:modelValue", c), l("change", c);
755
755
  }
756
- return (c, d) => (a(), n("div", {
756
+ return (c, r) => (a(), n("div", {
757
757
  class: S(o.value),
758
- onClick: r
758
+ onClick: d
759
759
  }, [
760
760
  m("input", {
761
761
  id: e.id,
@@ -763,12 +763,12 @@ const pa = /* @__PURE__ */ A({
763
763
  checked: i.value,
764
764
  disabled: e.disabled,
765
765
  class: "ds-checkbox__input",
766
- onClick: d[0] || (d[0] = X(() => {
766
+ onClick: r[0] || (r[0] = X(() => {
767
767
  }, ["stop"])),
768
- onChange: r
768
+ onChange: d
769
769
  }, null, 40, Wa),
770
770
  m("div", Ga, [
771
- i.value ? (a(), T(N, {
771
+ i.value ? (a(), E(N, {
772
772
  key: 0,
773
773
  name: "check",
774
774
  size: "xs",
@@ -777,8 +777,8 @@ const pa = /* @__PURE__ */ A({
777
777
  })) : f("", !0)
778
778
  ]),
779
779
  e.label || c.$slots.default ? (a(), n("span", Ya, [
780
- K(c.$slots, "default", {}, () => [
781
- x(G, {
780
+ H(c.$slots, "default", {}, () => [
781
+ w(G, {
782
782
  variant: "body-sm",
783
783
  value: e.label
784
784
  }, null, 8, ["value"])
@@ -786,10 +786,10 @@ const pa = /* @__PURE__ */ A({
786
786
  ])) : f("", !0)
787
787
  ], 2));
788
788
  }
789
- }), me = /* @__PURE__ */ L(Xa, [["__scopeId", "data-v-590d6988"]]), Za = ["id", "aria-checked", "checked", "disabled"], Ja = {
789
+ }), fe = /* @__PURE__ */ L(Xa, [["__scopeId", "data-v-590d6988"]]), Za = ["id", "aria-checked", "checked", "disabled"], Qa = {
790
790
  key: 0,
791
791
  class: "ds-switch__label"
792
- }, Qa = /* @__PURE__ */ A({
792
+ }, Ja = /* @__PURE__ */ A({
793
793
  __name: "Switch",
794
794
  props: {
795
795
  modelValue: { type: Boolean, default: !1 },
@@ -799,21 +799,21 @@ const pa = /* @__PURE__ */ A({
799
799
  },
800
800
  emits: ["update:modelValue", "change"],
801
801
  setup(e, { emit: s }) {
802
- const t = e, l = s, i = g(() => !!t.modelValue), o = g(() => [
802
+ const t = e, l = s, i = _(() => !!t.modelValue), o = _(() => [
803
803
  "ds-switch",
804
804
  {
805
805
  "ds-switch--checked": i.value,
806
806
  "ds-switch--disabled": t.disabled
807
807
  }
808
808
  ]);
809
- function r() {
809
+ function d() {
810
810
  if (t.disabled) return;
811
811
  const c = !i.value;
812
812
  l("update:modelValue", c), l("change", c);
813
813
  }
814
- return (c, d) => (a(), n("div", {
814
+ return (c, r) => (a(), n("div", {
815
815
  class: S(o.value),
816
- onClick: r
816
+ onClick: d
817
817
  }, [
818
818
  m("input", {
819
819
  id: e.id,
@@ -823,16 +823,16 @@ const pa = /* @__PURE__ */ A({
823
823
  checked: i.value,
824
824
  disabled: e.disabled,
825
825
  class: "ds-switch__input",
826
- onClick: d[0] || (d[0] = X(() => {
826
+ onClick: r[0] || (r[0] = X(() => {
827
827
  }, ["stop"])),
828
- onChange: r
828
+ onChange: d
829
829
  }, null, 40, Za),
830
- d[1] || (d[1] = m("div", { class: "ds-switch__track" }, [
830
+ r[1] || (r[1] = m("div", { class: "ds-switch__track" }, [
831
831
  m("div", { class: "ds-switch__thumb" })
832
832
  ], -1)),
833
- e.label || c.$slots.default ? (a(), n("span", Ja, [
834
- K(c.$slots, "default", {}, () => [
835
- x(G, {
833
+ e.label || c.$slots.default ? (a(), n("span", Qa, [
834
+ H(c.$slots, "default", {}, () => [
835
+ w(G, {
836
836
  variant: "body-sm",
837
837
  value: e.label
838
838
  }, null, 8, ["value"])
@@ -840,7 +840,7 @@ const pa = /* @__PURE__ */ A({
840
840
  ])) : f("", !0)
841
841
  ], 2));
842
842
  }
843
- }), es = /* @__PURE__ */ L(Qa, [["__scopeId", "data-v-907da2d8"]]), ts = ["for"], as = {
843
+ }), es = /* @__PURE__ */ L(Ja, [["__scopeId", "data-v-907da2d8"]]), ts = ["for"], as = {
844
844
  key: 0,
845
845
  class: "ds-form-field__required"
846
846
  }, ss = { class: "ds-form-field__control" }, ls = {
@@ -860,7 +860,7 @@ const pa = /* @__PURE__ */ A({
860
860
  id: {}
861
861
  },
862
862
  setup(e) {
863
- const s = e, t = g(() => (typeof s.error == "string", !!s.error));
863
+ const s = e, t = _(() => (typeof s.error == "string", !!s.error));
864
864
  return (l, i) => (a(), n("div", {
865
865
  class: S(["ds-form-field", { "ds-form-field--error": t.value, "ds-form-field--disabled": e.disabled }])
866
866
  }, [
@@ -869,23 +869,23 @@ const pa = /* @__PURE__ */ A({
869
869
  for: e.id,
870
870
  class: "ds-form-field__label"
871
871
  }, [
872
- x(G, {
872
+ w(G, {
873
873
  variant: "body-sm",
874
874
  value: e.label
875
875
  }, null, 8, ["value"]),
876
876
  e.required ? (a(), n("span", as, "*")) : f("", !0)
877
877
  ], 8, ts)) : f("", !0),
878
878
  m("div", ss, [
879
- K(l.$slots, "default", {}, void 0, !0)
879
+ H(l.$slots, "default", {}, void 0, !0)
880
880
  ]),
881
881
  e.hint && !t.value ? (a(), n("span", ls, [
882
- x(G, {
882
+ w(G, {
883
883
  variant: "caption",
884
884
  value: e.hint
885
885
  }, null, 8, ["value"])
886
886
  ])) : f("", !0),
887
887
  typeof e.error == "string" && e.error ? (a(), n("span", ns, [
888
- x(G, {
888
+ w(G, {
889
889
  variant: "caption",
890
890
  value: e.error
891
891
  }, null, 8, ["value"])
@@ -911,20 +911,20 @@ const pa = /* @__PURE__ */ A({
911
911
  xl: "8"
912
912
  }[o];
913
913
  return c ? `var(--space-${c})` : /^\d+(-\d+)?$/.test(o) ? `var(--space-${o})` : o;
914
- }, l = g(() => {
915
- const o = {}, r = t(s.size), c = s.mobile ? t(s.mobile) : void 0, d = s.desktop ? t(s.desktop) : void 0;
916
- return s.orientation === "vertical" ? (o["--spacer-height"] = r, c && (o["--spacer-mobile-height"] = c), d && (o["--spacer-desktop-height"] = d)) : (o["--spacer-width"] = r, c && (o["--spacer-mobile-width"] = c), d && (o["--spacer-desktop-width"] = d)), o;
917
- }), i = g(() => [
914
+ }, l = _(() => {
915
+ const o = {}, d = t(s.size), c = s.mobile ? t(s.mobile) : void 0, r = s.desktop ? t(s.desktop) : void 0;
916
+ return s.orientation === "vertical" ? (o["--spacer-height"] = d, c && (o["--spacer-mobile-height"] = c), r && (o["--spacer-desktop-height"] = r)) : (o["--spacer-width"] = d, c && (o["--spacer-mobile-width"] = c), r && (o["--spacer-desktop-width"] = r)), o;
917
+ }), i = _(() => [
918
918
  "ds-spacer",
919
919
  `ds-spacer--${s.orientation}`
920
920
  ]);
921
- return (o, r) => (a(), n("div", {
921
+ return (o, d) => (a(), n("div", {
922
922
  class: S(i.value),
923
- style: Q(l.value),
923
+ style: J(l.value),
924
924
  role: "presentation"
925
925
  }, null, 6));
926
926
  }
927
- }), rs = /* @__PURE__ */ L(cs, [["__scopeId", "data-v-f0547263"]]), ds = ["id", "value", "placeholder", "disabled", "readonly", "rows", "maxlength", "minlength"], us = {
927
+ }), ds = /* @__PURE__ */ L(cs, [["__scopeId", "data-v-f0547263"]]), rs = ["id", "value", "placeholder", "disabled", "readonly", "rows", "maxlength", "minlength"], us = {
928
928
  key: 0,
929
929
  class: "ds-textarea__footer"
930
930
  }, ms = {
@@ -952,10 +952,10 @@ const pa = /* @__PURE__ */ A({
952
952
  },
953
953
  emits: ["update:modelValue", "focus", "blur", "input"],
954
954
  setup(e, { emit: s }) {
955
- const t = e, l = s, { t: i } = Ne(), o = g(() => {
956
- const d = (t.modelValue || "").trim();
957
- return d ? d.split(/\s+/).filter(Boolean).length : 0;
958
- }), r = g(() => [
955
+ const t = e, l = s, { t: i } = Ne(), o = _(() => {
956
+ const r = (t.modelValue || "").trim();
957
+ return r ? r.split(/\s+/).filter(Boolean).length : 0;
958
+ }), d = _(() => [
959
959
  "ds-textarea",
960
960
  `ds-textarea--resize-${t.resize}`,
961
961
  {
@@ -964,12 +964,12 @@ const pa = /* @__PURE__ */ A({
964
964
  "ds-textarea--error": !!t.error
965
965
  }
966
966
  ]);
967
- function c(d) {
968
- const v = d.target;
969
- l("update:modelValue", v.value), l("input", d);
967
+ function c(r) {
968
+ const v = r.target;
969
+ l("update:modelValue", v.value), l("input", r);
970
970
  }
971
- return (d, v) => (a(), n("div", {
972
- class: S(r.value)
971
+ return (r, v) => (a(), n("div", {
972
+ class: S(d.value)
973
973
  }, [
974
974
  m("textarea", {
975
975
  id: e.id,
@@ -984,14 +984,127 @@ const pa = /* @__PURE__ */ A({
984
984
  onInput: c,
985
985
  onFocus: v[0] || (v[0] = (u) => l("focus", u)),
986
986
  onBlur: v[1] || (v[1] = (u) => l("blur", u))
987
- }, null, 40, ds),
987
+ }, null, 40, rs),
988
988
  e.showCounter && e.maxlength || e.showWordCount && e.maxWords ? (a(), n("div", us, [
989
989
  e.showCounter && e.maxlength ? (a(), n("span", ms, C((e.modelValue || "").length) + " / " + C(e.maxlength), 1)) : f("", !0),
990
990
  e.showWordCount && e.maxWords ? (a(), n("span", fs, C(o.value) + " / " + C(e.maxWords) + " " + C(R(i)("textarea.words")), 1)) : f("", !0)
991
991
  ])) : f("", !0)
992
992
  ], 2));
993
993
  }
994
- }), ps = /* @__PURE__ */ L(vs, [["__scopeId", "data-v-cf0c9283"]]), bs = /* @__PURE__ */ A({
994
+ }), ps = /* @__PURE__ */ L(vs, [["__scopeId", "data-v-cf0c9283"]]), bs = ["value", "disabled"], hs = /* @__PURE__ */ A({
995
+ __name: "ColorPicker",
996
+ props: {
997
+ modelValue: { default: "#ffffff" },
998
+ disabled: { type: Boolean, default: !1 }
999
+ },
1000
+ emits: ["update:modelValue"],
1001
+ setup(e, { emit: s }) {
1002
+ const t = e, l = s, i = M(t.modelValue);
1003
+ ee(() => t.modelValue, (c) => {
1004
+ c && (i.value = c);
1005
+ });
1006
+ function o(c) {
1007
+ const r = c.target;
1008
+ i.value = r.value, l("update:modelValue", r.value);
1009
+ }
1010
+ function d(c) {
1011
+ i.value = c, /^#[0-9a-fA-F]{6}$/.test(c) && l("update:modelValue", c);
1012
+ }
1013
+ return (c, r) => (a(), n("div", {
1014
+ class: S(["ds-color-picker", { "ds-color-picker--disabled": e.disabled }])
1015
+ }, [
1016
+ m("div", {
1017
+ class: "ds-color-picker__swatch",
1018
+ style: J({ backgroundColor: i.value })
1019
+ }, [
1020
+ m("input", {
1021
+ type: "color",
1022
+ value: i.value,
1023
+ disabled: e.disabled,
1024
+ class: "ds-color-picker__input",
1025
+ onInput: o
1026
+ }, null, 40, bs)
1027
+ ], 4),
1028
+ w(ue, {
1029
+ "model-value": i.value,
1030
+ disabled: e.disabled,
1031
+ maxlength: "7",
1032
+ class: "ds-color-picker__hex",
1033
+ "onUpdate:modelValue": d
1034
+ }, null, 8, ["model-value", "disabled"])
1035
+ ], 2));
1036
+ }
1037
+ }), gs = /* @__PURE__ */ L(hs, [["__scopeId", "data-v-564f8832"]]), _s = ["src"], ys = {
1038
+ key: 1,
1039
+ class: "ds-file-uploader__placeholder"
1040
+ }, ks = { class: "ds-file-uploader__text" }, ws = /* @__PURE__ */ A({
1041
+ __name: "FileUploader",
1042
+ props: {
1043
+ modelValue: { default: "" },
1044
+ disabled: { type: Boolean, default: !1 },
1045
+ placeholderText: { default: "Upload" },
1046
+ buttonText: { default: "Change logo" }
1047
+ },
1048
+ emits: ["update:modelValue"],
1049
+ setup(e, { emit: s }) {
1050
+ const t = e, l = s, i = M(null);
1051
+ function o() {
1052
+ var c;
1053
+ t.disabled || (c = i.value) == null || c.click();
1054
+ }
1055
+ function d(c) {
1056
+ var b;
1057
+ const v = (b = c.target.files) == null ? void 0 : b[0];
1058
+ if (!v) return;
1059
+ const u = new FileReader();
1060
+ u.onload = (V) => {
1061
+ var P;
1062
+ const p = (P = V.target) == null ? void 0 : P.result;
1063
+ l("update:modelValue", p);
1064
+ }, u.readAsDataURL(v);
1065
+ }
1066
+ return (c, r) => (a(), n("div", {
1067
+ class: S(["ds-file-uploader", { "ds-file-uploader--disabled": e.disabled }])
1068
+ }, [
1069
+ m("div", {
1070
+ class: "ds-file-uploader__area",
1071
+ onClick: o
1072
+ }, [
1073
+ e.modelValue ? (a(), n("img", {
1074
+ key: 0,
1075
+ src: e.modelValue,
1076
+ class: "ds-file-uploader__preview"
1077
+ }, null, 8, _s)) : (a(), n("div", ys, [
1078
+ w(N, {
1079
+ name: "image",
1080
+ size: "md",
1081
+ class: "ds-file-uploader__icon"
1082
+ }),
1083
+ m("span", ks, C(e.placeholderText), 1)
1084
+ ])),
1085
+ m("input", {
1086
+ ref_key: "fileInputRef",
1087
+ ref: i,
1088
+ type: "file",
1089
+ accept: "image/*",
1090
+ class: "ds-file-uploader__input",
1091
+ onChange: d
1092
+ }, null, 544)
1093
+ ]),
1094
+ m("button", {
1095
+ type: "button",
1096
+ class: "ds-file-uploader__btn",
1097
+ onClick: o
1098
+ }, [
1099
+ w(N, {
1100
+ name: "upload",
1101
+ size: "xs"
1102
+ }),
1103
+ Y(" " + C(e.buttonText), 1)
1104
+ ])
1105
+ ], 2));
1106
+ }
1107
+ }), $s = /* @__PURE__ */ L(ws, [["__scopeId", "data-v-55e844ae"]]), Cs = /* @__PURE__ */ A({
995
1108
  __name: "Stack",
996
1109
  props: {
997
1110
  direction: { default: "column" },
@@ -1001,7 +1114,7 @@ const pa = /* @__PURE__ */ A({
1001
1114
  separator: { type: Boolean, default: !1 }
1002
1115
  },
1003
1116
  setup(e) {
1004
- const s = e, t = g(() => [
1117
+ const s = e, t = _(() => [
1005
1118
  "ds-stack",
1006
1119
  `ds-stack--dir-${s.direction}`,
1007
1120
  `ds-stack--align-${s.align || "stretch"}`,
@@ -1014,10 +1127,10 @@ const pa = /* @__PURE__ */ A({
1014
1127
  return (l, i) => (a(), n("div", {
1015
1128
  class: S(t.value)
1016
1129
  }, [
1017
- K(l.$slots, "default", {}, void 0, !0)
1130
+ H(l.$slots, "default", {}, void 0, !0)
1018
1131
  ], 2));
1019
1132
  }
1020
- }), hs = /* @__PURE__ */ L(bs, [["__scopeId", "data-v-cf20cd02"]]), gs = /* @__PURE__ */ A({
1133
+ }), xs = /* @__PURE__ */ L(Cs, [["__scopeId", "data-v-cf20cd02"]]), Ss = /* @__PURE__ */ A({
1021
1134
  __name: "Row",
1022
1135
  props: {
1023
1136
  align: { default: "center" },
@@ -1026,7 +1139,7 @@ const pa = /* @__PURE__ */ A({
1026
1139
  gap: { default: "md" }
1027
1140
  },
1028
1141
  setup(e) {
1029
- const s = e, t = g(() => [
1142
+ const s = e, t = _(() => [
1030
1143
  "ds-row",
1031
1144
  `ds-row--align-${s.align}`,
1032
1145
  `ds-row--justify-${s.justify}`,
@@ -1038,10 +1151,10 @@ const pa = /* @__PURE__ */ A({
1038
1151
  return (l, i) => (a(), n("div", {
1039
1152
  class: S(t.value)
1040
1153
  }, [
1041
- K(l.$slots, "default", {}, void 0, !0)
1154
+ H(l.$slots, "default", {}, void 0, !0)
1042
1155
  ], 2));
1043
1156
  }
1044
- }), _s = /* @__PURE__ */ L(gs, [["__scopeId", "data-v-b1229c0b"]]), ys = /* @__PURE__ */ A({
1157
+ }), Is = /* @__PURE__ */ L(Ss, [["__scopeId", "data-v-b1229c0b"]]), Vs = /* @__PURE__ */ A({
1045
1158
  __name: "Grid",
1046
1159
  props: {
1047
1160
  cols: { default: 12 },
@@ -1051,29 +1164,29 @@ const pa = /* @__PURE__ */ A({
1051
1164
  gap: { default: "md" }
1052
1165
  },
1053
1166
  setup(e) {
1054
- const s = e, t = g(() => ({
1167
+ const s = e, t = _(() => ({
1055
1168
  "--grid-cols": s.cols,
1056
1169
  "--grid-cols-sm": s.sm || s.cols,
1057
1170
  "--grid-cols-md": s.md || s.sm || s.cols,
1058
1171
  "--grid-cols-lg": s.lg || s.md || s.sm || s.cols
1059
- })), l = g(() => [
1172
+ })), l = _(() => [
1060
1173
  "ds-grid",
1061
1174
  `ds-grid--gap-${s.gap}`
1062
1175
  ]);
1063
1176
  return (i, o) => (a(), n("div", {
1064
1177
  class: S(l.value),
1065
- style: Q(t.value)
1178
+ style: J(t.value)
1066
1179
  }, [
1067
- K(i.$slots, "default", {}, void 0, !0)
1180
+ H(i.$slots, "default", {}, void 0, !0)
1068
1181
  ], 6));
1069
1182
  }
1070
- }), ks = /* @__PURE__ */ L(ys, [["__scopeId", "data-v-1ba93f4f"]]), ws = {
1183
+ }), Bs = /* @__PURE__ */ L(Vs, [["__scopeId", "data-v-1ba93f4f"]]), zs = {
1071
1184
  key: 0,
1072
1185
  class: "ds-section__header"
1073
- }, $s = { class: "ds-section__title-group" }, Cs = {
1186
+ }, Ds = { class: "ds-section__title-group" }, As = {
1074
1187
  key: 0,
1075
1188
  class: "ds-section__actions"
1076
- }, xs = { class: "ds-section__content" }, Ss = /* @__PURE__ */ A({
1189
+ }, Ls = { class: "ds-section__content" }, Ts = /* @__PURE__ */ A({
1077
1190
  __name: "Section",
1078
1191
  props: {
1079
1192
  title: {},
@@ -1081,7 +1194,7 @@ const pa = /* @__PURE__ */ A({
1081
1194
  bordered: { type: Boolean, default: !0 }
1082
1195
  },
1083
1196
  setup(e) {
1084
- const s = e, t = g(() => [
1197
+ const s = e, t = _(() => [
1085
1198
  "ds-section",
1086
1199
  {
1087
1200
  "ds-section--bordered": s.bordered
@@ -1090,49 +1203,49 @@ const pa = /* @__PURE__ */ A({
1090
1203
  return (l, i) => (a(), n("section", {
1091
1204
  class: S(t.value)
1092
1205
  }, [
1093
- e.title || e.subtitle || l.$slots.actions ? (a(), n("div", ws, [
1094
- m("div", $s, [
1095
- e.title ? (a(), T(G, {
1206
+ e.title || e.subtitle || l.$slots.actions ? (a(), n("div", zs, [
1207
+ m("div", Ds, [
1208
+ e.title ? (a(), E(G, {
1096
1209
  key: 0,
1097
1210
  variant: "title",
1098
1211
  value: e.title,
1099
1212
  class: "ds-section__title"
1100
1213
  }, null, 8, ["value"])) : f("", !0),
1101
- e.subtitle ? (a(), T(G, {
1214
+ e.subtitle ? (a(), E(G, {
1102
1215
  key: 1,
1103
1216
  variant: "subtitle",
1104
1217
  value: e.subtitle,
1105
1218
  class: "ds-section__subtitle"
1106
1219
  }, null, 8, ["value"])) : f("", !0)
1107
1220
  ]),
1108
- l.$slots.actions ? (a(), n("div", Cs, [
1109
- K(l.$slots, "actions", {}, void 0, !0)
1221
+ l.$slots.actions ? (a(), n("div", As, [
1222
+ H(l.$slots, "actions", {}, void 0, !0)
1110
1223
  ])) : f("", !0)
1111
1224
  ])) : f("", !0),
1112
- m("div", xs, [
1113
- K(l.$slots, "default", {}, void 0, !0)
1225
+ m("div", Ls, [
1226
+ H(l.$slots, "default", {}, void 0, !0)
1114
1227
  ])
1115
1228
  ], 2));
1116
1229
  }
1117
- }), Is = /* @__PURE__ */ L(Ss, [["__scopeId", "data-v-07f2f674"]]), Bs = { class: "ds-card" }, Vs = {
1230
+ }), Es = /* @__PURE__ */ L(Ts, [["__scopeId", "data-v-07f2f674"]]), Ms = { class: "ds-card" }, Ps = {
1118
1231
  key: 0,
1119
1232
  class: "ds-card__header"
1120
- }, zs = {
1233
+ }, Os = {
1121
1234
  key: 0,
1122
1235
  class: "ds-card__title-group"
1123
- }, Ds = {
1236
+ }, Rs = {
1124
1237
  key: 0,
1125
1238
  class: "ds-card__title"
1126
- }, As = {
1239
+ }, Ns = {
1127
1240
  key: 1,
1128
1241
  class: "ds-card__subtitle"
1129
- }, Ls = {
1242
+ }, Fs = {
1130
1243
  key: 1,
1131
1244
  class: "ds-card__header-actions"
1132
- }, Ts = {
1245
+ }, Us = {
1133
1246
  key: 1,
1134
1247
  class: "ds-card__footer"
1135
- }, Es = /* @__PURE__ */ A({
1248
+ }, js = /* @__PURE__ */ A({
1136
1249
  __name: "Card",
1137
1250
  props: {
1138
1251
  title: {},
@@ -1140,39 +1253,39 @@ const pa = /* @__PURE__ */ A({
1140
1253
  padding: { type: Boolean, default: !0 }
1141
1254
  },
1142
1255
  setup(e) {
1143
- return (s, t) => (a(), n("div", Bs, [
1144
- e.title || s.$slots.header ? (a(), n("div", Vs, [
1145
- e.title || e.subtitle ? (a(), n("div", zs, [
1146
- e.title ? (a(), n("h3", Ds, C(e.title), 1)) : f("", !0),
1147
- e.subtitle ? (a(), n("p", As, C(e.subtitle), 1)) : f("", !0)
1256
+ return (s, t) => (a(), n("div", Ms, [
1257
+ e.title || s.$slots.header ? (a(), n("div", Ps, [
1258
+ e.title || e.subtitle ? (a(), n("div", Os, [
1259
+ e.title ? (a(), n("h3", Rs, C(e.title), 1)) : f("", !0),
1260
+ e.subtitle ? (a(), n("p", Ns, C(e.subtitle), 1)) : f("", !0)
1148
1261
  ])) : f("", !0),
1149
- s.$slots.header ? (a(), n("div", Ls, [
1150
- K(s.$slots, "header", {}, void 0, !0)
1262
+ s.$slots.header ? (a(), n("div", Fs, [
1263
+ H(s.$slots, "header", {}, void 0, !0)
1151
1264
  ])) : f("", !0)
1152
1265
  ])) : f("", !0),
1153
1266
  m("div", {
1154
1267
  class: S(["ds-card__body", { "ds-card__body--no-padding": !e.padding }])
1155
1268
  }, [
1156
- K(s.$slots, "default", {}, void 0, !0)
1269
+ H(s.$slots, "default", {}, void 0, !0)
1157
1270
  ], 2),
1158
- s.$slots.footer ? (a(), n("div", Ts, [
1159
- K(s.$slots, "footer", {}, void 0, !0)
1271
+ s.$slots.footer ? (a(), n("div", Us, [
1272
+ H(s.$slots, "footer", {}, void 0, !0)
1160
1273
  ])) : f("", !0)
1161
1274
  ]));
1162
1275
  }
1163
- }), Ms = /* @__PURE__ */ L(Es, [["__scopeId", "data-v-51d0748a"]]), Ps = { class: "sp-head" }, Os = { class: "sp-title" }, Rs = { key: 0 }, Ns = {
1276
+ }), qs = /* @__PURE__ */ L(js, [["__scopeId", "data-v-51d0748a"]]), Ks = { class: "sp-head" }, Hs = { class: "sp-title" }, Ws = { key: 0 }, Gs = {
1164
1277
  key: 1,
1165
1278
  class: "sp-meta"
1166
- }, Fs = { key: 0 }, Us = { key: 0 }, js = { class: "sp-actions" }, qs = ["aria-label"], Ks = ["aria-label"], Hs = { class: "sp-content" }, Ws = {
1279
+ }, Ys = { key: 0 }, Xs = { key: 0 }, Zs = { class: "sp-actions" }, Qs = ["aria-label"], Js = ["aria-label"], el = { class: "sp-content" }, tl = {
1167
1280
  key: 0,
1168
1281
  class: "sp-footer"
1169
- }, Gs = { class: "sp-head" }, Ys = { class: "sp-title" }, Xs = { key: 0 }, Zs = {
1282
+ }, al = { class: "sp-head" }, sl = { class: "sp-title" }, ll = { key: 0 }, nl = {
1170
1283
  key: 1,
1171
1284
  class: "sp-meta"
1172
- }, Js = { key: 0 }, Qs = { key: 0 }, el = { class: "sp-actions" }, tl = ["aria-label"], al = ["aria-label"], sl = { class: "sp-content" }, ll = {
1285
+ }, ol = { key: 0 }, il = { key: 0 }, cl = { class: "sp-actions" }, dl = ["aria-label"], rl = ["aria-label"], ul = { class: "sp-content" }, ml = {
1173
1286
  key: 0,
1174
1287
  class: "sp-footer"
1175
- }, nl = /* @__PURE__ */ A({
1288
+ }, fl = /* @__PURE__ */ A({
1176
1289
  __name: "SidePanel",
1177
1290
  props: {
1178
1291
  modelValue: { type: Boolean, default: !1 },
@@ -1191,115 +1304,115 @@ const pa = /* @__PURE__ */ A({
1191
1304
  },
1192
1305
  emits: ["update:modelValue", "update:maximized", "close", "cancel", "confirm"],
1193
1306
  setup(e, { emit: s }) {
1194
- const t = e, l = s, i = P(!1);
1307
+ const t = e, l = s, i = M(!1);
1195
1308
  ee(() => t.maximized, (u) => {
1196
1309
  i.value = u;
1197
1310
  }, { immediate: !0 });
1198
1311
  function o() {
1199
1312
  i.value = !i.value, l("update:maximized", i.value);
1200
1313
  }
1201
- function r() {
1314
+ function d() {
1202
1315
  l("update:modelValue", !1), l("close");
1203
1316
  }
1204
1317
  function c(u) {
1205
- t.closeOnOverlayClick && u.target === u.currentTarget && r();
1318
+ t.closeOnOverlayClick && u.target === u.currentTarget && d();
1206
1319
  }
1207
1320
  ee(() => t.modelValue, (u) => {
1208
1321
  t.docked || (u ? document.body.style.overflow = "hidden" : document.body.style.overflow = "");
1209
1322
  });
1210
- function d() {
1211
- l("cancel"), r();
1323
+ function r() {
1324
+ l("cancel"), d();
1212
1325
  }
1213
1326
  function v() {
1214
1327
  l("confirm");
1215
1328
  }
1216
- return (u, h) => {
1217
- var _;
1329
+ return (u, b) => {
1330
+ var V;
1218
1331
  return e.docked ? (a(), n("div", {
1219
1332
  key: 1,
1220
1333
  class: S(["sp-docked", {
1221
1334
  "sp-docked--open": e.modelValue,
1222
1335
  "sp-docked--maximized": i.value
1223
1336
  }]),
1224
- style: Q({
1337
+ style: J({
1225
1338
  width: e.modelValue ? i.value ? "100%" : e.width : "0"
1226
1339
  })
1227
1340
  }, [
1228
1341
  m("div", {
1229
1342
  class: S(["sp sp--docked", { "sp--maximized": i.value }])
1230
1343
  }, [
1231
- m("div", Gs, [
1232
- m("div", Ys, [
1233
- e.title ? (a(), n("h2", Xs, C(e.title), 1)) : f("", !0),
1234
- e.subtitle || u.$slots.subtitle || (_ = e.metaItems) != null && _.length ? (a(), n("div", Zs, [
1235
- K(u.$slots, "subtitle", {}, () => {
1236
- var k;
1344
+ m("div", al, [
1345
+ m("div", sl, [
1346
+ e.title ? (a(), n("h2", ll, C(e.title), 1)) : f("", !0),
1347
+ e.subtitle || u.$slots.subtitle || (V = e.metaItems) != null && V.length ? (a(), n("div", nl, [
1348
+ H(u.$slots, "subtitle", {}, () => {
1349
+ var p;
1237
1350
  return [
1238
- e.subtitle ? (a(), n("span", Js, C(e.subtitle), 1)) : (k = e.metaItems) != null && k.length ? (a(!0), n(j, { key: 1 }, W(e.metaItems, (M, B) => (a(), n(j, { key: B }, [
1239
- m("span", null, C(M), 1),
1240
- B < e.metaItems.length - 1 ? (a(), n("span", Qs, "·")) : f("", !0)
1351
+ e.subtitle ? (a(), n("span", ol, C(e.subtitle), 1)) : (p = e.metaItems) != null && p.length ? (a(!0), n(q, { key: 1 }, W(e.metaItems, (P, I) => (a(), n(q, { key: I }, [
1352
+ m("span", null, C(P), 1),
1353
+ I < e.metaItems.length - 1 ? (a(), n("span", il, "·")) : f("", !0)
1241
1354
  ], 64))), 128)) : f("", !0)
1242
1355
  ];
1243
1356
  }, !0)
1244
1357
  ])) : f("", !0)
1245
1358
  ]),
1246
- m("div", el, [
1359
+ m("div", cl, [
1247
1360
  e.maximizable ? (a(), n("button", {
1248
1361
  key: 0,
1249
1362
  class: "sp-icon-btn",
1250
1363
  onClick: o,
1251
1364
  "aria-label": i.value ? R(F)("sidepanel.minimize") : R(F)("sidepanel.maximize")
1252
1365
  }, [
1253
- i.value ? (a(), T(R(ke), {
1366
+ i.value ? (a(), E(R(ke), {
1254
1367
  key: 0,
1255
1368
  size: 18
1256
- })) : (a(), T(R(we), {
1369
+ })) : (a(), E(R(we), {
1257
1370
  key: 1,
1258
1371
  size: 18
1259
1372
  }))
1260
- ], 8, tl)) : f("", !0),
1373
+ ], 8, dl)) : f("", !0),
1261
1374
  m("button", {
1262
1375
  class: "sp-icon-btn",
1263
- onClick: r,
1376
+ onClick: d,
1264
1377
  "aria-label": R(F)("sidepanel.close")
1265
1378
  }, [
1266
- x(R($e), { size: 18 })
1267
- ], 8, al)
1379
+ w(R($e), { size: 18 })
1380
+ ], 8, rl)
1268
1381
  ])
1269
1382
  ]),
1270
- m("div", sl, [
1271
- K(u.$slots, "default", {}, void 0, !0)
1383
+ m("div", ul, [
1384
+ H(u.$slots, "default", {}, void 0, !0)
1272
1385
  ]),
1273
- u.$slots.footer || e.cancelLabel || e.confirmLabel ? (a(), n("div", ll, [
1274
- K(u.$slots, "footer", {}, () => [
1275
- x(Z, {
1386
+ u.$slots.footer || e.cancelLabel || e.confirmLabel ? (a(), n("div", ml, [
1387
+ H(u.$slots, "footer", {}, () => [
1388
+ w(Z, {
1276
1389
  variant: "secondary",
1277
- onClick: d
1390
+ onClick: r
1278
1391
  }, {
1279
- default: U(() => [
1392
+ default: j(() => [
1280
1393
  Y(C(e.cancelLabel ?? R(F)("sidepanel.cancel")), 1)
1281
1394
  ]),
1282
1395
  _: 1
1283
1396
  }),
1284
- x(Z, {
1397
+ w(Z, {
1285
1398
  variant: "primary",
1286
1399
  onClick: v
1287
1400
  }, {
1288
- default: U(() => [
1401
+ default: j(() => [
1289
1402
  Y(C(e.confirmLabel ?? R(F)("sidepanel.save")) + " ", 1),
1290
- e.confirmIcon ? (a(), T(re(e.confirmIcon), { key: 0 })) : f("", !0)
1403
+ e.confirmIcon ? (a(), E(de(e.confirmIcon), { key: 0 })) : f("", !0)
1291
1404
  ]),
1292
1405
  _: 1
1293
1406
  })
1294
1407
  ], !0)
1295
1408
  ])) : f("", !0)
1296
1409
  ], 2)
1297
- ], 6)) : (a(), T(ae, {
1410
+ ], 6)) : (a(), E(ae, {
1298
1411
  key: 0,
1299
1412
  name: "ds-slide"
1300
1413
  }, {
1301
- default: U(() => {
1302
- var k;
1414
+ default: j(() => {
1415
+ var p;
1303
1416
  return [
1304
1417
  e.modelValue ? (a(), n("div", {
1305
1418
  key: 0,
@@ -1308,70 +1421,70 @@ const pa = /* @__PURE__ */ A({
1308
1421
  }, [
1309
1422
  m("div", {
1310
1423
  class: S(["sp", { "sp--maximized": i.value }]),
1311
- style: Q({ width: i.value ? "100%" : e.width }),
1424
+ style: J({ width: i.value ? "100%" : e.width }),
1312
1425
  role: "dialog",
1313
1426
  "aria-modal": "true"
1314
1427
  }, [
1315
- m("div", Ps, [
1316
- m("div", Os, [
1317
- e.title ? (a(), n("h2", Rs, C(e.title), 1)) : f("", !0),
1318
- e.subtitle || u.$slots.subtitle || (k = e.metaItems) != null && k.length ? (a(), n("div", Ns, [
1319
- K(u.$slots, "subtitle", {}, () => {
1320
- var M;
1428
+ m("div", Ks, [
1429
+ m("div", Hs, [
1430
+ e.title ? (a(), n("h2", Ws, C(e.title), 1)) : f("", !0),
1431
+ e.subtitle || u.$slots.subtitle || (p = e.metaItems) != null && p.length ? (a(), n("div", Gs, [
1432
+ H(u.$slots, "subtitle", {}, () => {
1433
+ var P;
1321
1434
  return [
1322
- e.subtitle ? (a(), n("span", Fs, C(e.subtitle), 1)) : (M = e.metaItems) != null && M.length ? (a(!0), n(j, { key: 1 }, W(e.metaItems, (B, V) => (a(), n(j, { key: V }, [
1323
- m("span", null, C(B), 1),
1324
- V < e.metaItems.length - 1 ? (a(), n("span", Us, "·")) : f("", !0)
1435
+ e.subtitle ? (a(), n("span", Ys, C(e.subtitle), 1)) : (P = e.metaItems) != null && P.length ? (a(!0), n(q, { key: 1 }, W(e.metaItems, (I, $) => (a(), n(q, { key: $ }, [
1436
+ m("span", null, C(I), 1),
1437
+ $ < e.metaItems.length - 1 ? (a(), n("span", Xs, "·")) : f("", !0)
1325
1438
  ], 64))), 128)) : f("", !0)
1326
1439
  ];
1327
1440
  }, !0)
1328
1441
  ])) : f("", !0)
1329
1442
  ]),
1330
- m("div", js, [
1443
+ m("div", Zs, [
1331
1444
  e.maximizable ? (a(), n("button", {
1332
1445
  key: 0,
1333
1446
  class: "sp-icon-btn",
1334
1447
  onClick: o,
1335
1448
  "aria-label": i.value ? R(F)("sidepanel.minimize") : R(F)("sidepanel.maximize")
1336
1449
  }, [
1337
- i.value ? (a(), T(R(ke), {
1450
+ i.value ? (a(), E(R(ke), {
1338
1451
  key: 0,
1339
1452
  size: 18
1340
- })) : (a(), T(R(we), {
1453
+ })) : (a(), E(R(we), {
1341
1454
  key: 1,
1342
1455
  size: 18
1343
1456
  }))
1344
- ], 8, qs)) : f("", !0),
1457
+ ], 8, Qs)) : f("", !0),
1345
1458
  m("button", {
1346
1459
  class: "sp-icon-btn",
1347
- onClick: r,
1460
+ onClick: d,
1348
1461
  "aria-label": R(F)("sidepanel.close")
1349
1462
  }, [
1350
- x(R($e), { size: 18 })
1351
- ], 8, Ks)
1463
+ w(R($e), { size: 18 })
1464
+ ], 8, Js)
1352
1465
  ])
1353
1466
  ]),
1354
- m("div", Hs, [
1355
- K(u.$slots, "default", {}, void 0, !0)
1467
+ m("div", el, [
1468
+ H(u.$slots, "default", {}, void 0, !0)
1356
1469
  ]),
1357
- u.$slots.footer || e.cancelLabel || e.confirmLabel ? (a(), n("div", Ws, [
1358
- K(u.$slots, "footer", {}, () => [
1359
- x(Z, {
1470
+ u.$slots.footer || e.cancelLabel || e.confirmLabel ? (a(), n("div", tl, [
1471
+ H(u.$slots, "footer", {}, () => [
1472
+ w(Z, {
1360
1473
  variant: "secondary",
1361
- onClick: d
1474
+ onClick: r
1362
1475
  }, {
1363
- default: U(() => [
1476
+ default: j(() => [
1364
1477
  Y(C(e.cancelLabel ?? R(F)("sidepanel.cancel")), 1)
1365
1478
  ]),
1366
1479
  _: 1
1367
1480
  }),
1368
- x(Z, {
1481
+ w(Z, {
1369
1482
  variant: "primary",
1370
1483
  onClick: v
1371
1484
  }, {
1372
- default: U(() => [
1485
+ default: j(() => [
1373
1486
  Y(C(e.confirmLabel ?? R(F)("sidepanel.save")) + " ", 1),
1374
- e.confirmIcon ? (a(), T(re(e.confirmIcon), { key: 0 })) : f("", !0)
1487
+ e.confirmIcon ? (a(), E(de(e.confirmIcon), { key: 0 })) : f("", !0)
1375
1488
  ]),
1376
1489
  _: 1
1377
1490
  })
@@ -1385,7 +1498,7 @@ const pa = /* @__PURE__ */ A({
1385
1498
  }));
1386
1499
  };
1387
1500
  }
1388
- }), ol = /* @__PURE__ */ L(nl, [["__scopeId", "data-v-aecb3469"]]), il = { class: "ds-bulk-edit-bar" }, cl = { class: "ds-bulk-edit-bar__count" }, rl = { class: "ds-bulk-edit-bar__controls" }, dl = { class: "ds-bulk-edit-bar__actions" }, ul = /* @__PURE__ */ A({
1501
+ }), vl = /* @__PURE__ */ L(fl, [["__scopeId", "data-v-aecb3469"]]), pl = { class: "ds-bulk-edit-bar" }, bl = { class: "ds-bulk-edit-bar__count" }, hl = { class: "ds-bulk-edit-bar__controls" }, gl = { class: "ds-bulk-edit-bar__actions" }, _l = /* @__PURE__ */ A({
1389
1502
  __name: "BulkEditBar",
1390
1503
  props: {
1391
1504
  columns: { default: () => [] },
@@ -1393,63 +1506,63 @@ const pa = /* @__PURE__ */ A({
1393
1506
  },
1394
1507
  emits: ["apply", "cancel"],
1395
1508
  setup(e, { emit: s }) {
1396
- const t = e, l = s, i = g(() => t.columns.filter((v) => v.editable)), o = P(""), r = P("");
1509
+ const t = e, l = s, i = _(() => t.columns.filter((v) => v.editable)), o = M(""), d = M("");
1397
1510
  ee(o, () => {
1398
- r.value = "";
1511
+ d.value = "";
1399
1512
  });
1400
- const c = g(() => i.value.find((v) => v.id === o.value));
1401
- function d() {
1402
- o.value && (l("apply", { field: o.value, value: r.value }), o.value = "", r.value = "");
1513
+ const c = _(() => i.value.find((v) => v.id === o.value));
1514
+ function r() {
1515
+ o.value && (l("apply", { field: o.value, value: d.value }), o.value = "", d.value = "");
1403
1516
  }
1404
1517
  return (v, u) => {
1405
- var h, _;
1406
- return a(), n("div", il, [
1407
- m("span", cl, C(e.selectedCount) + " selected", 1),
1408
- m("div", rl, [
1409
- x(Ce, {
1518
+ var b, V;
1519
+ return a(), n("div", pl, [
1520
+ m("span", bl, C(e.selectedCount) + " selected", 1),
1521
+ m("div", hl, [
1522
+ w(Ce, {
1410
1523
  modelValue: o.value,
1411
- "onUpdate:modelValue": u[0] || (u[0] = (k) => o.value = k),
1412
- options: i.value.map((k) => ({ label: k.label, value: k.id })),
1524
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => o.value = p),
1525
+ options: i.value.map((p) => ({ label: p.label, value: p.id })),
1413
1526
  placeholder: "Select field...",
1414
1527
  class: "ds-bulk-edit-bar__field-select"
1415
1528
  }, null, 8, ["modelValue", "options"]),
1416
- c.value ? (a(), n(j, { key: 0 }, [
1417
- ((h = c.value.editorOptions) == null ? void 0 : h.type) === "input" ? (a(), T(ve, {
1529
+ c.value ? (a(), n(q, { key: 0 }, [
1530
+ ((b = c.value.editorOptions) == null ? void 0 : b.type) === "input" ? (a(), E(ue, {
1418
1531
  key: 0,
1419
- modelValue: r.value,
1420
- "onUpdate:modelValue": u[1] || (u[1] = (k) => r.value = k),
1532
+ modelValue: d.value,
1533
+ "onUpdate:modelValue": u[1] || (u[1] = (p) => d.value = p),
1421
1534
  type: c.value.editorOptions.inputType || "text",
1422
1535
  placeholder: "New value...",
1423
1536
  class: "ds-bulk-edit-bar__editor"
1424
1537
  }, null, 8, ["modelValue", "type"])) : f("", !0),
1425
- ((_ = c.value.editorOptions) == null ? void 0 : _.type) === "select" ? (a(), T(Ce, {
1538
+ ((V = c.value.editorOptions) == null ? void 0 : V.type) === "select" ? (a(), E(Ce, {
1426
1539
  key: 1,
1427
- modelValue: r.value,
1428
- "onUpdate:modelValue": u[2] || (u[2] = (k) => r.value = k),
1540
+ modelValue: d.value,
1541
+ "onUpdate:modelValue": u[2] || (u[2] = (p) => d.value = p),
1429
1542
  options: c.value.editorOptions.options || [],
1430
1543
  placeholder: "Select value...",
1431
1544
  class: "ds-bulk-edit-bar__editor"
1432
1545
  }, null, 8, ["modelValue", "options"])) : f("", !0)
1433
1546
  ], 64)) : f("", !0)
1434
1547
  ]),
1435
- m("div", dl, [
1436
- x(Z, {
1548
+ m("div", gl, [
1549
+ w(Z, {
1437
1550
  variant: "ghost",
1438
1551
  size: "sm",
1439
- onClick: u[3] || (u[3] = (k) => l("cancel"))
1552
+ onClick: u[3] || (u[3] = (p) => l("cancel"))
1440
1553
  }, {
1441
- default: U(() => [...u[4] || (u[4] = [
1554
+ default: j(() => [...u[4] || (u[4] = [
1442
1555
  Y("Cancel", -1)
1443
1556
  ])]),
1444
1557
  _: 1
1445
1558
  }),
1446
- x(Z, {
1559
+ w(Z, {
1447
1560
  variant: "primary",
1448
1561
  size: "sm",
1449
1562
  disabled: !o.value,
1450
- onClick: d
1563
+ onClick: r
1451
1564
  }, {
1452
- default: U(() => [...u[5] || (u[5] = [
1565
+ default: j(() => [...u[5] || (u[5] = [
1453
1566
  Y("Apply", -1)
1454
1567
  ])]),
1455
1568
  _: 1
@@ -1458,16 +1571,16 @@ const pa = /* @__PURE__ */ A({
1458
1571
  ]);
1459
1572
  };
1460
1573
  }
1461
- }), Ue = /* @__PURE__ */ L(ul, [["__scopeId", "data-v-ea3e8318"]]), ml = { class: "ds-search-box__wrapper" }, fl = {
1574
+ }), Ue = /* @__PURE__ */ L(_l, [["__scopeId", "data-v-ea3e8318"]]), yl = { class: "ds-search-box__wrapper" }, kl = {
1462
1575
  key: 0,
1463
1576
  class: "ds-search-box__action-container"
1464
- }, vl = {
1577
+ }, wl = {
1465
1578
  key: 0,
1466
1579
  class: "ds-search-box__spinner"
1467
- }, pl = {
1580
+ }, $l = {
1468
1581
  key: 0,
1469
1582
  class: "ds-search-box__dropdown"
1470
- }, bl = ["onClick", "onMouseenter"], hl = /* @__PURE__ */ A({
1583
+ }, Cl = ["onClick", "onMouseenter"], xl = /* @__PURE__ */ A({
1471
1584
  __name: "SearchBox",
1472
1585
  props: {
1473
1586
  modelValue: { default: "" },
@@ -1479,98 +1592,98 @@ const pa = /* @__PURE__ */ A({
1479
1592
  },
1480
1593
  emits: ["update:modelValue", "clear", "select"],
1481
1594
  setup(e, { emit: s }) {
1482
- const t = e, l = s, i = g(() => t.modelValue), o = P(!1), r = P(null), c = P(-1), d = g(() => t.options.map((V) => typeof V == "object" && V !== null ? V : { label: String(V), value: String(V) })), v = g(() => {
1483
- const V = i.value.toLowerCase().trim();
1484
- return V ? d.value.filter(
1485
- (H) => H.label.toLowerCase().includes(V)
1595
+ const t = e, l = s, i = _(() => t.modelValue), o = M(!1), d = M(null), c = M(-1), r = _(() => t.options.map(($) => typeof $ == "object" && $ !== null ? $ : { label: String($), value: String($) })), v = _(() => {
1596
+ const $ = i.value.toLowerCase().trim();
1597
+ return $ ? r.value.filter(
1598
+ (U) => U.label.toLowerCase().includes($)
1486
1599
  ) : [];
1487
- }), u = g(() => o.value && v.value.length > 0 && !t.disabled);
1600
+ }), u = _(() => o.value && v.value.length > 0 && !t.disabled);
1488
1601
  ee(v, () => {
1489
1602
  c.value = -1;
1490
1603
  });
1491
- function h(V) {
1492
- l("update:modelValue", V);
1604
+ function b($) {
1605
+ l("update:modelValue", $);
1493
1606
  }
1494
- function _() {
1607
+ function V() {
1495
1608
  t.disabled || (l("update:modelValue", ""), l("clear"));
1496
1609
  }
1497
- function k(V) {
1498
- l("update:modelValue", V.value), l("select", V.value), o.value = !1, c.value = -1;
1610
+ function p($) {
1611
+ l("update:modelValue", $.value), l("select", $.value), o.value = !1, c.value = -1;
1499
1612
  }
1500
- function M(V) {
1613
+ function P($) {
1501
1614
  if (!t.disabled) {
1502
1615
  if (!u.value) {
1503
- V.key === "ArrowDown" && (o.value = !0);
1616
+ $.key === "ArrowDown" && (o.value = !0);
1504
1617
  return;
1505
1618
  }
1506
- switch (V.key) {
1619
+ switch ($.key) {
1507
1620
  case "Escape":
1508
- V.preventDefault(), o.value = !1, c.value = -1;
1621
+ $.preventDefault(), o.value = !1, c.value = -1;
1509
1622
  break;
1510
1623
  case "ArrowDown":
1511
- V.preventDefault(), c.value = c.value < v.value.length - 1 ? c.value + 1 : 0;
1624
+ $.preventDefault(), c.value = c.value < v.value.length - 1 ? c.value + 1 : 0;
1512
1625
  break;
1513
1626
  case "ArrowUp":
1514
- V.preventDefault(), c.value = c.value > 0 ? c.value - 1 : v.value.length - 1;
1627
+ $.preventDefault(), c.value = c.value > 0 ? c.value - 1 : v.value.length - 1;
1515
1628
  break;
1516
1629
  case "Enter":
1517
1630
  if (c.value >= 0 && c.value < v.value.length) {
1518
- V.preventDefault();
1519
- const H = v.value[c.value];
1520
- H && k(H);
1631
+ $.preventDefault();
1632
+ const U = v.value[c.value];
1633
+ U && p(U);
1521
1634
  }
1522
1635
  break;
1523
1636
  }
1524
1637
  }
1525
1638
  }
1526
- function B(V) {
1527
- const H = V.target;
1528
- r.value && !r.value.contains(H) && (o.value = !1);
1639
+ function I($) {
1640
+ const U = $.target;
1641
+ d.value && !d.value.contains(U) && (o.value = !1);
1529
1642
  }
1530
1643
  return te(() => {
1531
- document.addEventListener("click", B);
1644
+ document.addEventListener("click", I);
1532
1645
  }), oe(() => {
1533
- document.removeEventListener("click", B);
1534
- }), (V, H) => (a(), n("div", {
1646
+ document.removeEventListener("click", I);
1647
+ }), ($, U) => (a(), n("div", {
1535
1648
  ref_key: "containerRef",
1536
- ref: r,
1649
+ ref: d,
1537
1650
  class: "ds-search-box"
1538
1651
  }, [
1539
- m("div", ml, [
1540
- x(ve, {
1652
+ m("div", yl, [
1653
+ w(ue, {
1541
1654
  "model-value": i.value,
1542
1655
  placeholder: e.placeholder,
1543
1656
  disabled: e.disabled,
1544
1657
  icon: "search",
1545
1658
  class: "ds-search-box__input",
1546
- "onUpdate:modelValue": h,
1547
- onFocus: H[0] || (H[0] = (w) => o.value = !0),
1548
- onKeydown: M
1659
+ "onUpdate:modelValue": b,
1660
+ onFocus: U[0] || (U[0] = (z) => o.value = !0),
1661
+ onKeydown: P
1549
1662
  }, null, 8, ["model-value", "placeholder", "disabled"]),
1550
- e.loading || e.clearable && i.value ? (a(), n("div", fl, [
1551
- e.loading ? (a(), n("span", vl)) : e.clearable && i.value ? (a(), n("button", {
1663
+ e.loading || e.clearable && i.value ? (a(), n("div", kl, [
1664
+ e.loading ? (a(), n("span", wl)) : e.clearable && i.value ? (a(), n("button", {
1552
1665
  key: 1,
1553
1666
  type: "button",
1554
1667
  class: "ds-search-box__clear",
1555
- onClick: _
1668
+ onClick: V
1556
1669
  }, [
1557
- x(N, {
1670
+ w(N, {
1558
1671
  name: "x",
1559
1672
  size: "xs"
1560
1673
  })
1561
1674
  ])) : f("", !0)
1562
1675
  ])) : f("", !0),
1563
- x(ae, { name: "ds-search-box-drop" }, {
1564
- default: U(() => [
1565
- u.value ? (a(), n("div", pl, [
1566
- (a(!0), n(j, null, W(v.value, (w, I) => (a(), n("div", {
1567
- key: w.value,
1676
+ w(ae, { name: "ds-search-box-drop" }, {
1677
+ default: j(() => [
1678
+ u.value ? (a(), n("div", $l, [
1679
+ (a(!0), n(q, null, W(v.value, (z, y) => (a(), n("div", {
1680
+ key: z.value,
1568
1681
  class: S(["ds-search-box__option", {
1569
- "ds-search-box__option--focused": I === c.value
1682
+ "ds-search-box__option--focused": y === c.value
1570
1683
  }]),
1571
- onClick: X((O) => k(w), ["stop"]),
1572
- onMouseenter: (O) => c.value = I
1573
- }, C(w.label), 43, bl))), 128))
1684
+ onClick: X((O) => p(z), ["stop"]),
1685
+ onMouseenter: (O) => c.value = y
1686
+ }, C(z.label), 43, Cl))), 128))
1574
1687
  ])) : f("", !0)
1575
1688
  ]),
1576
1689
  _: 1
@@ -1578,10 +1691,10 @@ const pa = /* @__PURE__ */ A({
1578
1691
  ])
1579
1692
  ], 512));
1580
1693
  }
1581
- }), gl = /* @__PURE__ */ L(hl, [["__scopeId", "data-v-59094448"]]), _l = {
1694
+ }), Sl = /* @__PURE__ */ L(xl, [["__scopeId", "data-v-59094448"]]), Il = {
1582
1695
  key: 0,
1583
1696
  class: "ds-dropdown__empty"
1584
- }, yl = ["onClick", "onMouseenter"], kl = { class: "ds-dropdown__item-content" }, wl = { class: "ds-dropdown__item-label" }, $l = /* @__PURE__ */ A({
1697
+ }, Vl = ["onClick", "onMouseenter"], Bl = { class: "ds-dropdown__item-content" }, zl = { class: "ds-dropdown__item-label" }, Dl = /* @__PURE__ */ A({
1585
1698
  __name: "Dropdown",
1586
1699
  props: {
1587
1700
  modelValue: { default: "" },
@@ -1606,67 +1719,67 @@ const pa = /* @__PURE__ */ A({
1606
1719
  { id: "edit", label: "ویرایش", value: "edit", icon: "edit" },
1607
1720
  { id: "delete", label: "حذف", value: "delete", icon: "trash" }
1608
1721
  ]
1609
- }, r = g(() => l.source && o[l.source] ? o[l.source] : l.items), c = g(() => l.modelValue || ""), d = g(() => r.value.find((I) => I.value === c.value)), v = g(() => l.label ? l.label : d.value ? d.value.label : l.placeholder), u = P(!1), h = P(null), _ = P(null), k = P(-1);
1610
- function M() {
1722
+ }, d = _(() => l.source && o[l.source] ? o[l.source] : l.items), c = _(() => l.modelValue || ""), r = _(() => d.value.find((y) => y.value === c.value)), v = _(() => l.label ? l.label : r.value ? r.value.label : l.placeholder), u = M(!1), b = M(null), V = M(null), p = M(-1);
1723
+ function P() {
1611
1724
  l.disabled || (u.value = !u.value);
1612
1725
  }
1613
- function B() {
1614
- u.value = !1, k.value = -1;
1726
+ function I() {
1727
+ u.value = !1, p.value = -1;
1615
1728
  }
1616
- function V(I) {
1617
- I.disabled || (i("update:modelValue", I.value), i("change", I.value), i("select", I), B());
1729
+ function $(y) {
1730
+ y.disabled || (i("update:modelValue", y.value), i("change", y.value), i("select", y), I());
1618
1731
  }
1619
- function H(I) {
1732
+ function U(y) {
1620
1733
  if (!l.disabled) {
1621
1734
  if (!u.value) {
1622
- (I.key === "Enter" || I.key === "ArrowDown" || I.key === " ") && (I.preventDefault(), u.value = !0);
1735
+ (y.key === "Enter" || y.key === "ArrowDown" || y.key === " ") && (y.preventDefault(), u.value = !0);
1623
1736
  return;
1624
1737
  }
1625
- switch (I.key) {
1738
+ switch (y.key) {
1626
1739
  case "Escape":
1627
- I.preventDefault(), B();
1740
+ y.preventDefault(), I();
1628
1741
  break;
1629
1742
  case "ArrowDown":
1630
- I.preventDefault(), k.value = k.value < r.value.length - 1 ? k.value + 1 : 0;
1743
+ y.preventDefault(), p.value = p.value < d.value.length - 1 ? p.value + 1 : 0;
1631
1744
  break;
1632
1745
  case "ArrowUp":
1633
- I.preventDefault(), k.value = k.value > 0 ? k.value - 1 : r.value.length - 1;
1746
+ y.preventDefault(), p.value = p.value > 0 ? p.value - 1 : d.value.length - 1;
1634
1747
  break;
1635
1748
  case "Enter":
1636
- if (I.preventDefault(), k.value >= 0 && k.value < r.value.length) {
1637
- const O = r.value[k.value];
1638
- O && V(O);
1749
+ if (y.preventDefault(), p.value >= 0 && p.value < d.value.length) {
1750
+ const O = d.value[p.value];
1751
+ O && $(O);
1639
1752
  }
1640
1753
  break;
1641
1754
  }
1642
1755
  }
1643
1756
  }
1644
- function w(I) {
1645
- const O = I.target, p = h.value, z = _.value;
1646
- !p && !z || p && p.contains(O) || z && z.contains(O) || u.value && B();
1757
+ function z(y) {
1758
+ const O = y.target, h = b.value, B = V.value;
1759
+ !h && !B || h && h.contains(O) || B && B.contains(O) || u.value && I();
1647
1760
  }
1648
1761
  return te(() => {
1649
- document.addEventListener("click", w);
1762
+ document.addEventListener("click", z);
1650
1763
  }), oe(() => {
1651
- document.removeEventListener("click", w);
1764
+ document.removeEventListener("click", z);
1652
1765
  }), s({
1653
1766
  isOpen: u,
1654
1767
  open: () => u.value = !0,
1655
1768
  close: () => u.value = !1,
1656
1769
  toggle: () => u.value = !u.value
1657
- }), (I, O) => (a(), n("div", {
1770
+ }), (y, O) => (a(), n("div", {
1658
1771
  class: S(["ds-dropdown", { "ds-dropdown--open": u.value, "ds-dropdown--disabled": e.disabled }])
1659
1772
  }, [
1660
1773
  m("div", {
1661
1774
  ref_key: "triggerRef",
1662
- ref: h,
1775
+ ref: b,
1663
1776
  class: "ds-dropdown__trigger",
1664
- onClick: X(M, ["stop"]),
1665
- onKeydown: H,
1777
+ onClick: X(P, ["stop"]),
1778
+ onKeydown: U,
1666
1779
  tabindex: "0"
1667
1780
  }, [
1668
- K(I.$slots, "trigger", {}, () => [
1669
- x(Z, {
1781
+ H(y.$slots, "trigger", {}, () => [
1782
+ w(Z, {
1670
1783
  variant: "secondary",
1671
1784
  disabled: e.disabled,
1672
1785
  icon: e.icon || "chevron-down",
@@ -1674,43 +1787,43 @@ const pa = /* @__PURE__ */ A({
1674
1787
  loading: e.loading,
1675
1788
  class: "ds-dropdown__btn"
1676
1789
  }, {
1677
- default: U(() => [
1790
+ default: j(() => [
1678
1791
  Y(C(v.value), 1)
1679
1792
  ]),
1680
1793
  _: 1
1681
1794
  }, 8, ["disabled", "icon", "loading"])
1682
1795
  ], !0)
1683
1796
  ], 544),
1684
- x(ae, { name: "ds-dropdown-drop" }, {
1685
- default: U(() => [
1797
+ w(ae, { name: "ds-dropdown-drop" }, {
1798
+ default: j(() => [
1686
1799
  u.value ? (a(), n("div", {
1687
1800
  key: 0,
1688
1801
  ref_key: "dropdownRef",
1689
- ref: _,
1802
+ ref: V,
1690
1803
  class: "ds-dropdown__menu"
1691
1804
  }, [
1692
- K(I.$slots, "default", {}, () => [
1693
- r.value.length === 0 ? (a(), n("div", _l, C(e.emptyState ? e.emptyState.includes(".") ? R(F)(e.emptyState) : e.emptyState : "گزینه‌ای وجود ندارد"), 1)) : f("", !0),
1694
- (a(!0), n(j, null, W(r.value, (p, z) => (a(), n("div", {
1695
- key: p.id,
1805
+ H(y.$slots, "default", {}, () => [
1806
+ d.value.length === 0 ? (a(), n("div", Il, C(e.emptyState ? e.emptyState.includes(".") ? R(F)(e.emptyState) : e.emptyState : "گزینه‌ای وجود ندارد"), 1)) : f("", !0),
1807
+ (a(!0), n(q, null, W(d.value, (h, B) => (a(), n("div", {
1808
+ key: h.id,
1696
1809
  class: S(["ds-dropdown__item", {
1697
- "ds-dropdown__item--selected": p.value === c.value,
1698
- "ds-dropdown__item--disabled": p.disabled,
1699
- "ds-dropdown__item--focused": z === k.value
1810
+ "ds-dropdown__item--selected": h.value === c.value,
1811
+ "ds-dropdown__item--disabled": h.disabled,
1812
+ "ds-dropdown__item--focused": B === p.value
1700
1813
  }]),
1701
- onClick: X((y) => V(p), ["stop"]),
1702
- onMouseenter: (y) => k.value = z
1814
+ onClick: X((k) => $(h), ["stop"]),
1815
+ onMouseenter: (k) => p.value = B
1703
1816
  }, [
1704
- m("div", kl, [
1705
- p.icon ? (a(), T(N, {
1817
+ m("div", Bl, [
1818
+ h.icon ? (a(), E(N, {
1706
1819
  key: 0,
1707
- name: p.icon,
1820
+ name: h.icon,
1708
1821
  size: "sm",
1709
1822
  class: "ds-dropdown__item-icon"
1710
1823
  }, null, 8, ["name"])) : f("", !0),
1711
- m("span", wl, C(p.label), 1)
1824
+ m("span", zl, C(h.label), 1)
1712
1825
  ])
1713
- ], 42, yl))), 128))
1826
+ ], 42, Vl))), 128))
1714
1827
  ], !0)
1715
1828
  ], 512)) : f("", !0)
1716
1829
  ]),
@@ -1718,7 +1831,7 @@ const pa = /* @__PURE__ */ A({
1718
1831
  })
1719
1832
  ], 2));
1720
1833
  }
1721
- }), Be = /* @__PURE__ */ L($l, [["__scopeId", "data-v-21c067bb"]]), Cl = /* @__PURE__ */ A({
1834
+ }), Ve = /* @__PURE__ */ L(Dl, [["__scopeId", "data-v-21c067bb"]]), Al = /* @__PURE__ */ A({
1722
1835
  __name: "Menu",
1723
1836
  props: {
1724
1837
  variant: { default: "vertical" }
@@ -1727,10 +1840,10 @@ const pa = /* @__PURE__ */ A({
1727
1840
  return (s, t) => (a(), n("div", {
1728
1841
  class: S(["ds-menu", `ds-menu--${e.variant}`])
1729
1842
  }, [
1730
- K(s.$slots, "default", {}, void 0, !0)
1843
+ H(s.$slots, "default", {}, void 0, !0)
1731
1844
  ], 2));
1732
1845
  }
1733
- }), je = /* @__PURE__ */ L(Cl, [["__scopeId", "data-v-9e21cb4a"]]), xl = ["aria-disabled"], Sl = { class: "ds-menu-item__content" }, Il = { class: "ds-menu-item__label" }, Bl = /* @__PURE__ */ A({
1846
+ }), je = /* @__PURE__ */ L(Al, [["__scopeId", "data-v-9e21cb4a"]]), Ll = ["aria-disabled"], Tl = { class: "ds-menu-item__content" }, El = { class: "ds-menu-item__label" }, Ml = /* @__PURE__ */ A({
1734
1847
  __name: "MenuItem",
1735
1848
  props: {
1736
1849
  label: {},
@@ -1748,7 +1861,7 @@ const pa = /* @__PURE__ */ A({
1748
1861
  }
1749
1862
  l("click", o);
1750
1863
  }
1751
- return (o, r) => (a(), n("div", {
1864
+ return (o, d) => (a(), n("div", {
1752
1865
  class: S(["ds-menu-item", {
1753
1866
  "ds-menu-item--active": e.active,
1754
1867
  "ds-menu-item--disabled": e.disabled
@@ -1757,25 +1870,25 @@ const pa = /* @__PURE__ */ A({
1757
1870
  "aria-disabled": e.disabled,
1758
1871
  onClick: i
1759
1872
  }, [
1760
- m("div", Sl, [
1761
- e.icon ? (a(), T(N, {
1873
+ m("div", Tl, [
1874
+ e.icon ? (a(), E(N, {
1762
1875
  key: 0,
1763
1876
  name: e.icon,
1764
1877
  size: "sm",
1765
1878
  class: "ds-menu-item__icon"
1766
1879
  }, null, 8, ["name"])) : f("", !0),
1767
- m("span", Il, [
1768
- K(o.$slots, "default", {}, () => [
1769
- x(G, {
1880
+ m("span", El, [
1881
+ H(o.$slots, "default", {}, () => [
1882
+ w(G, {
1770
1883
  variant: "body-md",
1771
1884
  value: e.label
1772
1885
  }, null, 8, ["value"])
1773
1886
  ], !0)
1774
1887
  ])
1775
1888
  ])
1776
- ], 10, xl));
1889
+ ], 10, Ll));
1777
1890
  }
1778
- }), fe = /* @__PURE__ */ L(Bl, [["__scopeId", "data-v-37b12109"]]), Vl = /* @__PURE__ */ A({
1891
+ }), ve = /* @__PURE__ */ L(Ml, [["__scopeId", "data-v-37b12109"]]), Pl = /* @__PURE__ */ A({
1779
1892
  __name: "Tooltip",
1780
1893
  props: {
1781
1894
  text: {},
@@ -1785,7 +1898,7 @@ const pa = /* @__PURE__ */ A({
1785
1898
  disabled: { type: Boolean, default: !1 }
1786
1899
  },
1787
1900
  setup(e) {
1788
- const s = e, t = P(!1);
1901
+ const s = e, t = M(!1);
1789
1902
  let l = null;
1790
1903
  function i() {
1791
1904
  s.disabled || (l && clearTimeout(l), l = window.setTimeout(() => {
@@ -1795,28 +1908,28 @@ const pa = /* @__PURE__ */ A({
1795
1908
  function o() {
1796
1909
  l && clearTimeout(l), t.value = !1;
1797
1910
  }
1798
- return (r, c) => (a(), n("div", {
1911
+ return (d, c) => (a(), n("div", {
1799
1912
  class: "ds-tooltip-container",
1800
1913
  onMouseenter: i,
1801
1914
  onMouseleave: o,
1802
1915
  onFocusin: i,
1803
1916
  onFocusout: o
1804
1917
  }, [
1805
- K(r.$slots, "default", {}, () => [
1806
- e.icon ? (a(), T(N, {
1918
+ H(d.$slots, "default", {}, () => [
1919
+ e.icon ? (a(), E(N, {
1807
1920
  key: 0,
1808
1921
  name: e.icon,
1809
1922
  class: "ds-tooltip__icon"
1810
1923
  }, null, 8, ["name"])) : f("", !0)
1811
1924
  ], !0),
1812
- x(ae, { name: "ds-tooltip-fade" }, {
1813
- default: U(() => [
1925
+ w(ae, { name: "ds-tooltip-fade" }, {
1926
+ default: j(() => [
1814
1927
  t.value ? (a(), n("div", {
1815
1928
  key: 0,
1816
1929
  class: S(["ds-tooltip", `ds-tooltip--${e.position}`]),
1817
1930
  role: "tooltip"
1818
1931
  }, [
1819
- x(G, {
1932
+ w(G, {
1820
1933
  variant: "caption",
1821
1934
  value: e.text,
1822
1935
  class: "ds-tooltip__text"
@@ -1827,29 +1940,29 @@ const pa = /* @__PURE__ */ A({
1827
1940
  })
1828
1941
  ], 32));
1829
1942
  }
1830
- }), xe = /* @__PURE__ */ L(Vl, [["__scopeId", "data-v-c0feb722"]]), zl = /* @__PURE__ */ A({
1943
+ }), xe = /* @__PURE__ */ L(Pl, [["__scopeId", "data-v-c0feb722"]]), Ol = /* @__PURE__ */ A({
1831
1944
  __name: "Popover",
1832
1945
  props: {
1833
1946
  disabled: { type: Boolean, default: !1 },
1834
1947
  position: { default: "bottom-start" }
1835
1948
  },
1836
1949
  setup(e) {
1837
- const s = e, t = P(!1), l = P(null), i = P(null);
1950
+ const s = e, t = M(!1), l = M(null), i = M(null);
1838
1951
  function o() {
1839
1952
  s.disabled || (t.value = !t.value);
1840
1953
  }
1841
- function r() {
1954
+ function d() {
1842
1955
  t.value = !1;
1843
1956
  }
1844
- function c(d) {
1845
- const v = d.target, u = l.value, h = i.value;
1846
- !u && !h || u && u.contains(v) || h && h.contains(v) || t.value && r();
1957
+ function c(r) {
1958
+ const v = r.target, u = l.value, b = i.value;
1959
+ !u && !b || u && u.contains(v) || b && b.contains(v) || t.value && d();
1847
1960
  }
1848
1961
  return te(() => {
1849
1962
  document.addEventListener("click", c);
1850
1963
  }), oe(() => {
1851
1964
  document.removeEventListener("click", c);
1852
- }), (d, v) => (a(), n("div", {
1965
+ }), (r, v) => (a(), n("div", {
1853
1966
  class: S(["ds-popover-container", { "ds-popover-container--disabled": e.disabled }])
1854
1967
  }, [
1855
1968
  m("div", {
@@ -1858,27 +1971,27 @@ const pa = /* @__PURE__ */ A({
1858
1971
  class: "ds-popover-trigger",
1859
1972
  onClick: X(o, ["stop"])
1860
1973
  }, [
1861
- K(d.$slots, "trigger", {}, void 0, !0)
1974
+ H(r.$slots, "trigger", {}, void 0, !0)
1862
1975
  ], 512),
1863
- x(ae, { name: "ds-popover-fade" }, {
1864
- default: U(() => [
1976
+ w(ae, { name: "ds-popover-fade" }, {
1977
+ default: j(() => [
1865
1978
  t.value ? (a(), n("div", {
1866
1979
  key: 0,
1867
1980
  ref_key: "popoverRef",
1868
1981
  ref: i,
1869
1982
  class: S(["ds-popover", `ds-popover--${e.position}`])
1870
1983
  }, [
1871
- K(d.$slots, "default", {}, void 0, !0)
1984
+ H(r.$slots, "default", {}, void 0, !0)
1872
1985
  ], 2)) : f("", !0)
1873
1986
  ]),
1874
1987
  _: 3
1875
1988
  })
1876
1989
  ], 2));
1877
1990
  }
1878
- }), Dl = /* @__PURE__ */ L(zl, [["__scopeId", "data-v-a8781e33"]]), Al = {
1991
+ }), Rl = /* @__PURE__ */ L(Ol, [["__scopeId", "data-v-a8781e33"]]), Nl = {
1879
1992
  class: "ds-tabs__header",
1880
1993
  role: "tablist"
1881
- }, Ll = ["aria-selected", "disabled", "onClick"], Tl = { class: "ds-tabs__content" }, El = /* @__PURE__ */ A({
1994
+ }, Fl = ["aria-selected", "disabled", "onClick"], Ul = { class: "ds-tabs__content" }, jl = /* @__PURE__ */ A({
1882
1995
  __name: "Tabs",
1883
1996
  props: {
1884
1997
  modelValue: { default: "" },
@@ -1888,14 +2001,14 @@ const pa = /* @__PURE__ */ A({
1888
2001
  emits: ["update:modelValue", "change"],
1889
2002
  setup(e, { emit: s }) {
1890
2003
  const t = e, l = s;
1891
- function i(o, r) {
1892
- t.disabled || r || (l("update:modelValue", o), l("change", o));
2004
+ function i(o, d) {
2005
+ t.disabled || d || (l("update:modelValue", o), l("change", o));
1893
2006
  }
1894
- return (o, r) => (a(), n("div", {
2007
+ return (o, d) => (a(), n("div", {
1895
2008
  class: S(["ds-tabs", { "ds-tabs--disabled": e.disabled }])
1896
2009
  }, [
1897
- m("div", Al, [
1898
- (a(!0), n(j, null, W(e.items, (c) => (a(), n("button", {
2010
+ m("div", Nl, [
2011
+ (a(!0), n(q, null, W(e.items, (c) => (a(), n("button", {
1899
2012
  key: c.value,
1900
2013
  type: "button",
1901
2014
  role: "tab",
@@ -1905,30 +2018,30 @@ const pa = /* @__PURE__ */ A({
1905
2018
  "ds-tabs__tab-btn--active": c.value === e.modelValue,
1906
2019
  "ds-tabs__tab-btn--disabled": c.disabled
1907
2020
  }]),
1908
- onClick: (d) => i(c.value, c.disabled)
2021
+ onClick: (r) => i(c.value, c.disabled)
1909
2022
  }, [
1910
- c.icon ? (a(), T(N, {
2023
+ c.icon ? (a(), E(N, {
1911
2024
  key: 0,
1912
2025
  name: c.icon,
1913
2026
  size: "sm",
1914
2027
  class: "ds-tabs__tab-icon"
1915
2028
  }, null, 8, ["name"])) : f("", !0),
1916
- x(G, {
2029
+ w(G, {
1917
2030
  variant: "body-md",
1918
2031
  value: c.label,
1919
2032
  class: "ds-tabs__tab-label"
1920
2033
  }, null, 8, ["value"])
1921
- ], 10, Ll))), 128))
2034
+ ], 10, Fl))), 128))
1922
2035
  ]),
1923
- m("div", Tl, [
1924
- K(o.$slots, "default", {}, void 0, !0)
2036
+ m("div", Ul, [
2037
+ H(o.$slots, "default", {}, void 0, !0)
1925
2038
  ])
1926
2039
  ], 2));
1927
2040
  }
1928
- }), Ml = /* @__PURE__ */ L(El, [["__scopeId", "data-v-e77b7886"]]), Pl = ["disabled", "aria-label"], Ol = {
2041
+ }), ql = /* @__PURE__ */ L(jl, [["__scopeId", "data-v-e77b7886"]]), Kl = ["disabled", "aria-label"], Hl = {
1929
2042
  key: 0,
1930
2043
  class: "ds-icon-button__spinner"
1931
- }, Rl = /* @__PURE__ */ A({
2044
+ }, Wl = /* @__PURE__ */ A({
1932
2045
  __name: "IconButton",
1933
2046
  props: {
1934
2047
  icon: {},
@@ -1940,7 +2053,7 @@ const pa = /* @__PURE__ */ A({
1940
2053
  },
1941
2054
  emits: ["click"],
1942
2055
  setup(e, { emit: s }) {
1943
- const t = e, l = s, i = g(() => [
2056
+ const t = e, l = s, i = _(() => [
1944
2057
  "ds-icon-button",
1945
2058
  `ds-icon-button--${t.variant}`,
1946
2059
  `ds-icon-button--${t.size}`,
@@ -1948,7 +2061,7 @@ const pa = /* @__PURE__ */ A({
1948
2061
  "ds-icon-button--disabled": t.disabled,
1949
2062
  "ds-icon-button--loading": t.loading
1950
2063
  }
1951
- ]), o = g(() => {
2064
+ ]), o = _(() => {
1952
2065
  switch (t.size) {
1953
2066
  case "sm":
1954
2067
  return "sm";
@@ -1960,44 +2073,44 @@ const pa = /* @__PURE__ */ A({
1960
2073
  return "md";
1961
2074
  }
1962
2075
  });
1963
- function r(c) {
2076
+ function d(c) {
1964
2077
  !t.disabled && !t.loading && l("click", c);
1965
2078
  }
1966
- return (c, d) => (a(), n("button", {
2079
+ return (c, r) => (a(), n("button", {
1967
2080
  class: S(i.value),
1968
2081
  disabled: e.disabled || e.loading,
1969
2082
  "aria-label": e.ariaLabel,
1970
- onClick: r
2083
+ onClick: d
1971
2084
  }, [
1972
- e.loading ? (a(), n("span", Ol)) : (a(), T(N, {
2085
+ e.loading ? (a(), n("span", Hl)) : (a(), E(N, {
1973
2086
  key: 1,
1974
2087
  name: e.icon,
1975
2088
  size: o.value
1976
2089
  }, null, 8, ["name", "size"]))
1977
- ], 10, Pl));
2090
+ ], 10, Kl));
1978
2091
  }
1979
- }), qe = /* @__PURE__ */ L(Rl, [["__scopeId", "data-v-545f6e22"]]), Nl = {
2092
+ }), qe = /* @__PURE__ */ L(Wl, [["__scopeId", "data-v-545f6e22"]]), Gl = {
1980
2093
  key: 0,
1981
2094
  class: "ds-table-cell ds-table-cell--text"
1982
- }, Fl = {
2095
+ }, Yl = {
1983
2096
  key: 1,
1984
2097
  class: "ds-table-cell ds-table-cell--date"
1985
- }, Ul = {
2098
+ }, Xl = {
1986
2099
  key: 2,
1987
2100
  class: "ds-table-cell ds-table-cell--profile"
1988
- }, jl = ["href"], ql = { class: "ds-table-cell__profile-text" }, Kl = { class: "ds-table-cell__profile-name" }, Hl = {
2101
+ }, Zl = ["href"], Ql = { class: "ds-table-cell__profile-text" }, Jl = { class: "ds-table-cell__profile-name" }, en = {
1989
2102
  key: 0,
1990
2103
  class: "ds-table-cell__profile-email"
1991
- }, Wl = {
2104
+ }, tn = {
1992
2105
  key: 3,
1993
2106
  class: "ds-table-cell ds-table-cell--tag"
1994
- }, Gl = {
2107
+ }, an = {
1995
2108
  key: 4,
1996
2109
  class: "ds-table-cell ds-table-cell--checkbox"
1997
- }, Yl = {
2110
+ }, sn = {
1998
2111
  key: 5,
1999
2112
  class: "ds-table-cell ds-table-cell--actions"
2000
- }, Xl = /* @__PURE__ */ A({
2113
+ }, ln = /* @__PURE__ */ A({
2001
2114
  __name: "TableCell",
2002
2115
  props: {
2003
2116
  type: {},
@@ -2018,89 +2131,89 @@ const pa = /* @__PURE__ */ A({
2018
2131
  const t = e, l = s;
2019
2132
  function i(v, u) {
2020
2133
  if (v == null) return "";
2021
- const h = typeof v == "string" || typeof v == "number" ? new Date(v) : v instanceof Date ? v : null;
2022
- if (!h || isNaN(h.getTime())) return String(v ?? "");
2134
+ const b = typeof v == "string" || typeof v == "number" ? new Date(v) : v instanceof Date ? v : null;
2135
+ if (!b || isNaN(b.getTime())) return String(v ?? "");
2023
2136
  if (u) {
2024
- const _ = {
2025
- YYYY: String(h.getFullYear()),
2026
- MM: String(h.getMonth() + 1).padStart(2, "0"),
2027
- DD: String(h.getDate()).padStart(2, "0"),
2028
- HH: String(h.getHours()).padStart(2, "0"),
2029
- mm: String(h.getMinutes()).padStart(2, "0"),
2030
- ss: String(h.getSeconds()).padStart(2, "0")
2137
+ const V = {
2138
+ YYYY: String(b.getFullYear()),
2139
+ MM: String(b.getMonth() + 1).padStart(2, "0"),
2140
+ DD: String(b.getDate()).padStart(2, "0"),
2141
+ HH: String(b.getHours()).padStart(2, "0"),
2142
+ mm: String(b.getMinutes()).padStart(2, "0"),
2143
+ ss: String(b.getSeconds()).padStart(2, "0")
2031
2144
  };
2032
- return u.replace(/YYYY|MM|DD|HH|mm|ss/g, (k) => _[k] ?? k);
2145
+ return u.replace(/YYYY|MM|DD|HH|mm|ss/g, (p) => V[p] ?? p);
2033
2146
  }
2034
2147
  return new Intl.DateTimeFormat("fa-IR", {
2035
2148
  year: "numeric",
2036
2149
  month: "2-digit",
2037
2150
  day: "2-digit"
2038
- }).format(h);
2151
+ }).format(b);
2039
2152
  }
2040
2153
  function o(v) {
2041
2154
  return v == null ? "" : String(v);
2042
2155
  }
2043
- function r(v) {
2156
+ function d(v) {
2044
2157
  l("update:modelValue", v);
2045
2158
  }
2046
2159
  function c(v) {
2047
2160
  l("action-click", v), v.onClick();
2048
2161
  }
2049
- const d = g(() => {
2162
+ const r = _(() => {
2050
2163
  if (t.tags && t.tags.length > 0) return t.tags;
2051
2164
  const v = t.value;
2052
2165
  return Array.isArray(v) ? v.map((u) => ({ value: o(u), variant: t.variant })) : v != null ? [{ value: o(v), variant: t.variant }] : [];
2053
2166
  });
2054
- return (v, u) => e.type === "text" ? (a(), n("span", Nl, C(o(e.value)), 1)) : e.type === "date" ? (a(), n("span", Fl, C(i(e.value, e.format)), 1)) : e.type === "profile" ? (a(), n("span", Ul, [
2167
+ return (v, u) => e.type === "text" ? (a(), n("span", Gl, C(o(e.value)), 1)) : e.type === "date" ? (a(), n("span", Yl, C(i(e.value, e.format)), 1)) : e.type === "profile" ? (a(), n("span", Xl, [
2055
2168
  e.profileLink ? (a(), n("a", {
2056
2169
  key: 0,
2057
2170
  href: e.profileLink,
2058
2171
  class: "ds-table-cell__profile-avatar-link"
2059
2172
  }, [
2060
- x(de, {
2173
+ w(re, {
2061
2174
  src: e.avatarUrl,
2062
2175
  name: e.name,
2063
2176
  size: "sm"
2064
2177
  }, null, 8, ["src", "name"])
2065
- ], 8, jl)) : (a(), T(de, {
2178
+ ], 8, Zl)) : (a(), E(re, {
2066
2179
  key: 1,
2067
2180
  src: e.avatarUrl,
2068
2181
  name: e.name,
2069
2182
  size: "sm"
2070
2183
  }, null, 8, ["src", "name"])),
2071
- m("span", ql, [
2072
- m("span", Kl, C(e.name), 1),
2073
- e.email ? (a(), n("span", Hl, C(e.email), 1)) : f("", !0)
2184
+ m("span", Ql, [
2185
+ m("span", Jl, C(e.name), 1),
2186
+ e.email ? (a(), n("span", en, C(e.email), 1)) : f("", !0)
2074
2187
  ])
2075
- ])) : e.type === "tag" ? (a(), n("span", Wl, [
2076
- (a(!0), n(j, null, W(d.value, (h, _) => (a(), n("span", {
2077
- key: _,
2078
- class: S(["ds-table-cell__tag", h.variant ? `ds-table-cell__tag--${h.variant}` : ""])
2079
- }, C(h.value), 3))), 128))
2080
- ])) : e.type === "checkbox" ? (a(), n("span", Gl, [
2081
- x(me, {
2188
+ ])) : e.type === "tag" ? (a(), n("span", tn, [
2189
+ (a(!0), n(q, null, W(r.value, (b, V) => (a(), n("span", {
2190
+ key: V,
2191
+ class: S(["ds-table-cell__tag", b.variant ? `ds-table-cell__tag--${b.variant}` : ""])
2192
+ }, C(b.value), 3))), 128))
2193
+ ])) : e.type === "checkbox" ? (a(), n("span", an, [
2194
+ w(fe, {
2082
2195
  "model-value": e.modelValue,
2083
2196
  disabled: e.disabled,
2084
- "onUpdate:modelValue": r
2197
+ "onUpdate:modelValue": d
2085
2198
  }, null, 8, ["model-value", "disabled"])
2086
- ])) : e.type === "actions" ? (a(), n("span", Yl, [
2087
- (a(!0), n(j, null, W(e.actions, (h, _) => (a(), T(qe, {
2088
- key: _,
2089
- icon: h.icon ?? "more",
2090
- variant: h.variant ?? "ghost",
2199
+ ])) : e.type === "actions" ? (a(), n("span", sn, [
2200
+ (a(!0), n(q, null, W(e.actions, (b, V) => (a(), E(qe, {
2201
+ key: V,
2202
+ icon: b.icon ?? "more",
2203
+ variant: b.variant ?? "ghost",
2091
2204
  size: "sm",
2092
- "aria-label": h.label,
2093
- onClick: (k) => c(h)
2205
+ "aria-label": b.label,
2206
+ onClick: (p) => c(b)
2094
2207
  }, null, 8, ["icon", "variant", "aria-label", "onClick"]))), 128))
2095
2208
  ])) : f("", !0);
2096
2209
  }
2097
- }), Ke = /* @__PURE__ */ L(Xl, [["__scopeId", "data-v-939d302b"]]), Zl = { class: "ds-table-container" }, Jl = { class: "ds-table" }, Ql = { class: "ds-table__thead" }, en = { class: "ds-table__row" }, tn = ["onClick"], an = {
2210
+ }), Ke = /* @__PURE__ */ L(ln, [["__scopeId", "data-v-939d302b"]]), nn = { class: "ds-table-container" }, on = { class: "ds-table" }, cn = { class: "ds-table__thead" }, dn = { class: "ds-table__row" }, rn = ["onClick"], un = {
2098
2211
  key: 1,
2099
2212
  class: "ds-table__header-content"
2100
- }, sn = { class: "ds-table__header-label" }, ln = { class: "ds-table__tbody" }, nn = ["onClick"], on = {
2213
+ }, mn = { class: "ds-table__header-label" }, fn = { class: "ds-table__tbody" }, vn = ["onClick"], pn = {
2101
2214
  key: 0,
2102
2215
  class: "ds-table__row ds-table__row--empty"
2103
- }, cn = ["colspan"], rn = /* @__PURE__ */ A({
2216
+ }, bn = ["colspan"], hn = /* @__PURE__ */ A({
2104
2217
  __name: "SchemaTable",
2105
2218
  props: {
2106
2219
  columns: { default: () => [] },
@@ -2112,156 +2225,156 @@ const pa = /* @__PURE__ */ A({
2112
2225
  },
2113
2226
  emits: ["row-click", "update:modelValue", "update:modelValue-cell", "action-click", "update:sort", "bulk-update"],
2114
2227
  setup(e, { emit: s }) {
2115
- const t = e, l = s, i = P({}), o = g(() => t.items.length > 0), r = g(() => t.selectable ? [{ id: "__selection", label: "", cell: "checkbox", align: "center" }, ...t.columns] : t.columns), c = g(() => {
2116
- var b;
2117
- let y = [...t.items];
2118
- const $ = Object.entries(i.value).filter(([, D]) => D !== null);
2119
- if ($.length === 0) return y;
2120
- for (const [D, q] of $) {
2121
- if (!q) continue;
2122
- const J = t.columns.find((ne) => ne.id === D);
2123
- if (!J) continue;
2124
- const se = ((b = J.fields) == null ? void 0 : b.value) || D;
2125
- y.sort((ne, Ye) => {
2228
+ const t = e, l = s, i = M({}), o = _(() => t.items.length > 0), d = _(() => t.selectable ? [{ id: "__selection", label: "", cell: "checkbox", align: "center" }, ...t.columns] : t.columns), c = _(() => {
2229
+ var g;
2230
+ let k = [...t.items];
2231
+ const x = Object.entries(i.value).filter(([, D]) => D !== null);
2232
+ if (x.length === 0) return k;
2233
+ for (const [D, K] of x) {
2234
+ if (!K) continue;
2235
+ const Q = t.columns.find((ne) => ne.id === D);
2236
+ if (!Q) continue;
2237
+ const se = ((g = Q.fields) == null ? void 0 : g.value) || D;
2238
+ k.sort((ne, Ye) => {
2126
2239
  const ie = ne[se], ce = Ye[se];
2127
2240
  if (ie == null) return 1;
2128
2241
  if (ce == null) return -1;
2129
2242
  if (typeof ie == "number" && typeof ce == "number")
2130
- return q === "asc" ? ie - ce : ce - ie;
2243
+ return K === "asc" ? ie - ce : ce - ie;
2131
2244
  const be = String(ie), he = String(ce), ge = Number(be), _e = Number(he);
2132
- return !isNaN(ge) && !isNaN(_e) ? q === "asc" ? ge - _e : _e - ge : q === "asc" ? be.localeCompare(he) : he.localeCompare(be);
2245
+ return !isNaN(ge) && !isNaN(_e) ? K === "asc" ? ge - _e : _e - ge : K === "asc" ? be.localeCompare(he) : he.localeCompare(be);
2133
2246
  });
2134
2247
  }
2135
- return y;
2248
+ return k;
2136
2249
  });
2137
- function d(y, $) {
2138
- const b = {};
2139
- if (y.fields)
2140
- for (const [D, q] of Object.entries(y.fields))
2141
- b[D] = $[q];
2142
- if (y.staticProps)
2143
- for (const [D, q] of Object.entries(y.staticProps))
2144
- b[D] = q;
2145
- return b;
2146
- }
2147
- function v(y, $) {
2148
- l("row-click", y, $);
2149
- }
2150
- function u(y, $, b) {
2151
- l("action-click", { action: y, item: $, index: b });
2152
- }
2153
- function h(y) {
2154
- const $ = [...t.modelValue], b = $.indexOf(y);
2155
- b > -1 ? $.splice(b, 1) : $.push(y), l("update:modelValue", $);
2156
- }
2157
- function _() {
2158
- k.value ? l("update:modelValue", []) : l("update:modelValue", c.value.map((y, $) => String($)));
2159
- }
2160
- const k = g(() => o.value && t.modelValue.length === c.value.length), M = g(() => t.modelValue.length > 0 && !k.value);
2161
- function B(y, $) {
2162
- return String($);
2163
- }
2164
- function V(y) {
2250
+ function r(k, x) {
2251
+ const g = {};
2252
+ if (k.fields)
2253
+ for (const [D, K] of Object.entries(k.fields))
2254
+ g[D] = x[K];
2255
+ if (k.staticProps)
2256
+ for (const [D, K] of Object.entries(k.staticProps))
2257
+ g[D] = K;
2258
+ return g;
2259
+ }
2260
+ function v(k, x) {
2261
+ l("row-click", k, x);
2262
+ }
2263
+ function u(k, x, g) {
2264
+ l("action-click", { action: k, item: x, index: g });
2265
+ }
2266
+ function b(k) {
2267
+ const x = [...t.modelValue], g = x.indexOf(k);
2268
+ g > -1 ? x.splice(g, 1) : x.push(k), l("update:modelValue", x);
2269
+ }
2270
+ function V() {
2271
+ p.value ? l("update:modelValue", []) : l("update:modelValue", c.value.map((k, x) => String(x)));
2272
+ }
2273
+ const p = _(() => o.value && t.modelValue.length === c.value.length), P = _(() => t.modelValue.length > 0 && !p.value);
2274
+ function I(k, x) {
2275
+ return String(x);
2276
+ }
2277
+ function $(k) {
2165
2278
  if (!t.sortable) return;
2166
- const $ = i.value[y];
2167
- let b;
2168
- $ == null ? b = "asc" : $ === "asc" ? b = "desc" : b = null, i.value = { ...i.value, [y]: b }, l("update:sort", y, b);
2279
+ const x = i.value[k];
2280
+ let g;
2281
+ x == null ? g = "asc" : x === "asc" ? g = "desc" : g = null, i.value = { ...i.value, [k]: g }, l("update:sort", k, g);
2169
2282
  }
2170
- function H(y) {
2171
- const $ = i.value[y];
2172
- return $ === "asc" ? Lt : $ === "desc" ? Oe : Tt;
2283
+ function U(k) {
2284
+ const x = i.value[k];
2285
+ return x === "asc" ? Lt : x === "desc" ? Oe : Tt;
2173
2286
  }
2174
- function w(y) {
2175
- return i.value[y] != null;
2287
+ function z(k) {
2288
+ return i.value[k] != null;
2176
2289
  }
2177
- function I() {
2178
- const y = t.columns.length;
2179
- return t.selectable ? y + 1 : y;
2290
+ function y() {
2291
+ const k = t.columns.length;
2292
+ return t.selectable ? k + 1 : k;
2180
2293
  }
2181
- const O = g(() => t.modelValue.length > 0), p = g(() => t.bulkEdit && O.value);
2182
- function z(y) {
2183
- l("bulk-update", { ...y, rows: [...t.modelValue] }), l("update:modelValue", []);
2294
+ const O = _(() => t.modelValue.length > 0), h = _(() => t.bulkEdit && O.value);
2295
+ function B(k) {
2296
+ l("bulk-update", { ...k, rows: [...t.modelValue] }), l("update:modelValue", []);
2184
2297
  }
2185
- return (y, $) => (a(), n("div", Zl, [
2298
+ return (k, x) => (a(), n("div", nn, [
2186
2299
  e.bulkEdit ? (a(), n("div", {
2187
2300
  key: 0,
2188
- class: S([{ "ds-table__bulk-edit-wrapper--hidden": !p.value }, "ds-table__bulk-edit-wrapper"])
2301
+ class: S([{ "ds-table__bulk-edit-wrapper--hidden": !h.value }, "ds-table__bulk-edit-wrapper"])
2189
2302
  }, [
2190
- x(Ue, {
2303
+ w(Ue, {
2191
2304
  columns: e.columns,
2192
2305
  "selected-count": e.modelValue.length,
2193
- onApply: z,
2194
- onCancel: $[0] || ($[0] = (b) => l("update:modelValue", []))
2306
+ onApply: B,
2307
+ onCancel: x[0] || (x[0] = (g) => l("update:modelValue", []))
2195
2308
  }, null, 8, ["columns", "selected-count"])
2196
2309
  ], 2)) : f("", !0),
2197
- m("table", Jl, [
2198
- m("thead", Ql, [
2199
- m("tr", en, [
2200
- (a(!0), n(j, null, W(r.value, (b) => (a(), n("th", {
2201
- key: b.id,
2310
+ m("table", on, [
2311
+ m("thead", cn, [
2312
+ m("tr", dn, [
2313
+ (a(!0), n(q, null, W(d.value, (g) => (a(), n("th", {
2314
+ key: g.id,
2202
2315
  class: S([
2203
2316
  "ds-table__header-cell",
2204
- b.align ? `ds-table__header-cell--align-${b.align}` : "",
2205
- { "ds-table__header-cell--sortable": e.sortable && b.id !== "__selection" },
2206
- { "ds-table__header-cell--selection": b.id === "__selection" }
2317
+ g.align ? `ds-table__header-cell--align-${g.align}` : "",
2318
+ { "ds-table__header-cell--sortable": e.sortable && g.id !== "__selection" },
2319
+ { "ds-table__header-cell--selection": g.id === "__selection" }
2207
2320
  ]),
2208
- onClick: (D) => b.id !== "__selection" ? V(b.id) : void 0
2321
+ onClick: (D) => g.id !== "__selection" ? $(g.id) : void 0
2209
2322
  }, [
2210
- b.id === "__selection" ? (a(), T(me, {
2323
+ g.id === "__selection" ? (a(), E(fe, {
2211
2324
  key: 0,
2212
- "model-value": k.value,
2213
- indeterminate: M.value,
2214
- "onUpdate:modelValue": _
2215
- }, null, 8, ["model-value", "indeterminate"])) : (a(), n("span", an, [
2216
- m("span", sn, C(b.label), 1),
2325
+ "model-value": p.value,
2326
+ indeterminate: P.value,
2327
+ "onUpdate:modelValue": V
2328
+ }, null, 8, ["model-value", "indeterminate"])) : (a(), n("span", un, [
2329
+ m("span", mn, C(g.label), 1),
2217
2330
  e.sortable ? (a(), n("span", {
2218
2331
  key: 0,
2219
- class: S(["ds-table__sort-icon", { "ds-table__sort-icon--active": w(b.id) }])
2332
+ class: S(["ds-table__sort-icon", { "ds-table__sort-icon--active": z(g.id) }])
2220
2333
  }, [
2221
- (a(), T(re(H(b.id)), { class: "ds-table__sort-icon-svg" }))
2334
+ (a(), E(de(U(g.id)), { class: "ds-table__sort-icon-svg" }))
2222
2335
  ], 2)) : f("", !0)
2223
2336
  ]))
2224
- ], 10, tn))), 128))
2337
+ ], 10, rn))), 128))
2225
2338
  ])
2226
2339
  ]),
2227
- m("tbody", ln, [
2228
- (a(!0), n(j, null, W(c.value, (b, D) => (a(), n("tr", {
2340
+ m("tbody", fn, [
2341
+ (a(!0), n(q, null, W(c.value, (g, D) => (a(), n("tr", {
2229
2342
  key: D,
2230
- class: S(["ds-table__row ds-table__row--body", { "ds-table__row--selected": t.selectable && t.modelValue.includes(B(b, D)) }]),
2231
- onClick: (q) => v(b, D)
2343
+ class: S(["ds-table__row ds-table__row--body", { "ds-table__row--selected": t.selectable && t.modelValue.includes(I(g, D)) }]),
2344
+ onClick: (K) => v(g, D)
2232
2345
  }, [
2233
- (a(!0), n(j, null, W(r.value, (q) => (a(), n("td", {
2234
- key: q.id,
2235
- class: S(["ds-table__data-cell", q.align ? `ds-table__data-cell--align-${q.align}` : "", { "ds-table__data-cell--selection": q.id === "__selection" }]),
2236
- onClick: $[1] || ($[1] = X(() => {
2346
+ (a(!0), n(q, null, W(d.value, (K) => (a(), n("td", {
2347
+ key: K.id,
2348
+ class: S(["ds-table__data-cell", K.align ? `ds-table__data-cell--align-${K.align}` : "", { "ds-table__data-cell--selection": K.id === "__selection" }]),
2349
+ onClick: x[1] || (x[1] = X(() => {
2237
2350
  }, ["stop"]))
2238
2351
  }, [
2239
- q.id === "__selection" ? (a(), T(me, {
2352
+ K.id === "__selection" ? (a(), E(fe, {
2240
2353
  key: 0,
2241
- "model-value": t.selectable ? t.modelValue.includes(B(b, D)) : !1,
2242
- "onUpdate:modelValue": (J) => h(B(b, D))
2243
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : (a(), T(Ke, Pe({
2354
+ "model-value": t.selectable ? t.modelValue.includes(I(g, D)) : !1,
2355
+ "onUpdate:modelValue": (Q) => b(I(g, D))
2356
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : (a(), E(Ke, Pe({
2244
2357
  key: 1,
2245
- type: q.cell
2246
- }, { ref_for: !0 }, d(q, b), {
2247
- onActionClick: (J) => u(J, b, D)
2358
+ type: K.cell
2359
+ }, { ref_for: !0 }, r(K, g), {
2360
+ onActionClick: (Q) => u(Q, g, D)
2248
2361
  }), null, 16, ["type", "onActionClick"]))
2249
2362
  ], 2))), 128))
2250
- ], 10, nn))), 128)),
2251
- o.value ? f("", !0) : (a(), n("tr", on, [
2363
+ ], 10, vn))), 128)),
2364
+ o.value ? f("", !0) : (a(), n("tr", pn, [
2252
2365
  m("td", {
2253
- colspan: I(),
2366
+ colspan: y(),
2254
2367
  class: "ds-table__empty-cell"
2255
- }, " هیچ داده‌ای یافت نشد. ", 8, cn)
2368
+ }, " هیچ داده‌ای یافت نشد. ", 8, bn)
2256
2369
  ]))
2257
2370
  ])
2258
2371
  ])
2259
2372
  ]));
2260
2373
  }
2261
- }), dn = /* @__PURE__ */ L(rn, [["__scopeId", "data-v-ec5f4274"]]), un = { class: "ds-filter-bar" }, mn = { class: "ds-filter-bar__filters" }, fn = {
2374
+ }), gn = /* @__PURE__ */ L(hn, [["__scopeId", "data-v-ec5f4274"]]), _n = { class: "ds-filter-bar" }, yn = { class: "ds-filter-bar__filters" }, kn = {
2262
2375
  key: 0,
2263
2376
  class: "ds-filter-bar__actions"
2264
- }, vn = /* @__PURE__ */ A({
2377
+ }, wn = /* @__PURE__ */ A({
2265
2378
  __name: "FilterBar",
2266
2379
  props: {
2267
2380
  showClear: { type: Boolean, default: !1 }
@@ -2269,17 +2382,17 @@ const pa = /* @__PURE__ */ A({
2269
2382
  emits: ["clear"],
2270
2383
  setup(e, { emit: s }) {
2271
2384
  const t = s;
2272
- return (l, i) => (a(), n("div", un, [
2273
- m("div", mn, [
2274
- K(l.$slots, "default", {}, void 0, !0)
2385
+ return (l, i) => (a(), n("div", _n, [
2386
+ m("div", yn, [
2387
+ H(l.$slots, "default", {}, void 0, !0)
2275
2388
  ]),
2276
- e.showClear ? (a(), n("div", fn, [
2277
- x(Z, {
2389
+ e.showClear ? (a(), n("div", kn, [
2390
+ w(Z, {
2278
2391
  variant: "ghost",
2279
2392
  size: "sm",
2280
2393
  onClick: i[0] || (i[0] = (o) => t("clear"))
2281
2394
  }, {
2282
- default: U(() => [...i[1] || (i[1] = [
2395
+ default: j(() => [...i[1] || (i[1] = [
2283
2396
  Y(" پاک کردن فیلترها ", -1)
2284
2397
  ])]),
2285
2398
  _: 1
@@ -2287,11 +2400,11 @@ const pa = /* @__PURE__ */ A({
2287
2400
  ])) : f("", !0)
2288
2401
  ]));
2289
2402
  }
2290
- }), pn = /* @__PURE__ */ L(vn, [["__scopeId", "data-v-76a12d68"]]), bn = {
2403
+ }), $n = /* @__PURE__ */ L(wn, [["__scopeId", "data-v-76a12d68"]]), Cn = {
2291
2404
  class: "ds-pagination",
2292
2405
  role: "navigation",
2293
2406
  "aria-label": "Pagination"
2294
- }, hn = { class: "ds-pagination__info" }, gn = /* @__PURE__ */ A({
2407
+ }, xn = { class: "ds-pagination__info" }, Sn = /* @__PURE__ */ A({
2295
2408
  __name: "Pagination",
2296
2409
  props: {
2297
2410
  page: { default: 1 },
@@ -2300,50 +2413,50 @@ const pa = /* @__PURE__ */ A({
2300
2413
  },
2301
2414
  emits: ["update:page", "update:value", "change"],
2302
2415
  setup(e, { emit: s }) {
2303
- const t = e, l = s, i = g(() => Math.max(1, Math.ceil(t.total / t.pageSize))), o = g(() => t.page <= 1), r = g(() => t.page >= i.value), c = g(() => "arrow-right"), d = g(() => "arrow-left");
2416
+ const t = e, l = s, i = _(() => Math.max(1, Math.ceil(t.total / t.pageSize))), o = _(() => t.page <= 1), d = _(() => t.page >= i.value), c = _(() => "arrow-right"), r = _(() => "arrow-left");
2304
2417
  function v(u) {
2305
2418
  u < 1 || u > i.value || (l("update:page", u), l("update:value", u), l("change", u));
2306
2419
  }
2307
- return (u, h) => (a(), n("div", bn, [
2308
- x(Z, {
2420
+ return (u, b) => (a(), n("div", Cn, [
2421
+ w(Z, {
2309
2422
  variant: "secondary",
2310
2423
  size: "sm",
2311
2424
  icon: c.value,
2312
2425
  disabled: o.value,
2313
- onClick: h[0] || (h[0] = (_) => v(e.page - 1))
2426
+ onClick: b[0] || (b[0] = (V) => v(e.page - 1))
2314
2427
  }, {
2315
- default: U(() => [
2428
+ default: j(() => [
2316
2429
  Y(C(R(F)("pagination.previous")), 1)
2317
2430
  ]),
2318
2431
  _: 1
2319
2432
  }, 8, ["icon", "disabled"]),
2320
- m("div", hn, [
2321
- x(G, { variant: "body-sm" }, {
2322
- default: U(() => [
2433
+ m("div", xn, [
2434
+ w(G, { variant: "body-sm" }, {
2435
+ default: j(() => [
2323
2436
  Y(C(R(F)("pagination.page_of", { page: String(e.page), total: String(i.value) })), 1)
2324
2437
  ]),
2325
2438
  _: 1
2326
2439
  })
2327
2440
  ]),
2328
- x(Z, {
2441
+ w(Z, {
2329
2442
  variant: "secondary",
2330
2443
  size: "sm",
2331
- icon: d.value,
2444
+ icon: r.value,
2332
2445
  "icon-position": "end",
2333
- disabled: r.value,
2334
- onClick: h[1] || (h[1] = (_) => v(e.page + 1))
2446
+ disabled: d.value,
2447
+ onClick: b[1] || (b[1] = (V) => v(e.page + 1))
2335
2448
  }, {
2336
- default: U(() => [
2449
+ default: j(() => [
2337
2450
  Y(C(R(F)("pagination.next")), 1)
2338
2451
  ]),
2339
2452
  _: 1
2340
2453
  }, 8, ["icon", "disabled"])
2341
2454
  ]));
2342
2455
  }
2343
- }), _n = /* @__PURE__ */ L(gn, [["__scopeId", "data-v-2732ec5f"]]), yn = { class: "ds-empty-state" }, kn = { class: "ds-empty-state__icon-wrapper" }, wn = {
2456
+ }), In = /* @__PURE__ */ L(Sn, [["__scopeId", "data-v-2732ec5f"]]), Vn = { class: "ds-empty-state" }, Bn = { class: "ds-empty-state__icon-wrapper" }, zn = {
2344
2457
  key: 1,
2345
2458
  class: "ds-empty-state__action"
2346
- }, $n = /* @__PURE__ */ A({
2459
+ }, Dn = /* @__PURE__ */ A({
2347
2460
  __name: "EmptyState",
2348
2461
  props: {
2349
2462
  title: { default: F("table.empty") },
@@ -2354,32 +2467,32 @@ const pa = /* @__PURE__ */ A({
2354
2467
  emits: ["action"],
2355
2468
  setup(e, { emit: s }) {
2356
2469
  const t = s;
2357
- return (l, i) => (a(), n("div", yn, [
2358
- m("div", kn, [
2359
- x(N, {
2470
+ return (l, i) => (a(), n("div", Vn, [
2471
+ m("div", Bn, [
2472
+ w(N, {
2360
2473
  name: e.icon,
2361
2474
  size: "lg",
2362
2475
  class: "ds-empty-state__icon"
2363
2476
  }, null, 8, ["name"])
2364
2477
  ]),
2365
- x(G, {
2478
+ w(G, {
2366
2479
  variant: "heading-lg",
2367
2480
  value: e.title,
2368
2481
  class: "ds-empty-state__title"
2369
2482
  }, null, 8, ["value"]),
2370
- e.description ? (a(), T(G, {
2483
+ e.description ? (a(), E(G, {
2371
2484
  key: 0,
2372
2485
  variant: "body-md",
2373
2486
  value: e.description,
2374
2487
  class: "ds-empty-state__desc"
2375
2488
  }, null, 8, ["value"])) : f("", !0),
2376
- e.actionLabel ? (a(), n("div", wn, [
2377
- x(Z, {
2489
+ e.actionLabel ? (a(), n("div", zn, [
2490
+ w(Z, {
2378
2491
  variant: "primary",
2379
2492
  size: "md",
2380
2493
  onClick: i[0] || (i[0] = (o) => t("action"))
2381
2494
  }, {
2382
- default: U(() => [
2495
+ default: j(() => [
2383
2496
  Y(C(e.actionLabel), 1)
2384
2497
  ]),
2385
2498
  _: 1
@@ -2387,13 +2500,13 @@ const pa = /* @__PURE__ */ A({
2387
2500
  ])) : f("", !0)
2388
2501
  ]));
2389
2502
  }
2390
- }), Cn = /* @__PURE__ */ L($n, [["__scopeId", "data-v-62f76e13"]]), xn = {
2503
+ }), An = /* @__PURE__ */ L(Dn, [["__scopeId", "data-v-62f76e13"]]), Ln = {
2391
2504
  key: 1,
2392
2505
  class: "ds-loading-state__skeleton-wrapper"
2393
- }, Sn = {
2506
+ }, Tn = {
2394
2507
  key: 2,
2395
2508
  class: "ds-loading-state__placeholder-wrapper"
2396
- }, In = /* @__PURE__ */ A({
2509
+ }, En = /* @__PURE__ */ A({
2397
2510
  __name: "LoadingState",
2398
2511
  props: {
2399
2512
  variant: { default: "spinner" },
@@ -2403,25 +2516,25 @@ const pa = /* @__PURE__ */ A({
2403
2516
  return (s, t) => (a(), n("div", {
2404
2517
  class: S(["ds-loading-state", [`ds-loading-state--${e.variant}`]])
2405
2518
  }, [
2406
- e.variant === "spinner" ? (a(), n(j, { key: 0 }, [
2519
+ e.variant === "spinner" ? (a(), n(q, { key: 0 }, [
2407
2520
  t[0] || (t[0] = m("div", { class: "ds-loading-state__spinner" }, null, -1)),
2408
- e.text ? (a(), T(G, {
2521
+ e.text ? (a(), E(G, {
2409
2522
  key: 0,
2410
2523
  variant: "body-sm",
2411
2524
  value: e.text,
2412
2525
  class: "ds-loading-state__text"
2413
2526
  }, null, 8, ["value"])) : f("", !0)
2414
- ], 64)) : e.variant === "skeleton" ? (a(), n("div", xn, [...t[1] || (t[1] = [
2527
+ ], 64)) : e.variant === "skeleton" ? (a(), n("div", Ln, [...t[1] || (t[1] = [
2415
2528
  m("div", { class: "ds-loading-state__skeleton-line ds-loading-state__skeleton-line--title" }, null, -1),
2416
2529
  m("div", { class: "ds-loading-state__skeleton-line" }, null, -1),
2417
2530
  m("div", { class: "ds-loading-state__skeleton-line ds-loading-state__skeleton-line--short" }, null, -1)
2418
- ])])) : e.variant === "placeholder" ? (a(), n("div", Sn, [...t[2] || (t[2] = [
2531
+ ])])) : e.variant === "placeholder" ? (a(), n("div", Tn, [...t[2] || (t[2] = [
2419
2532
  m("div", { class: "ds-loading-state__placeholder-circle" }, null, -1),
2420
2533
  m("div", { class: "ds-loading-state__skeleton-line ds-loading-state__skeleton-line--title" }, null, -1)
2421
2534
  ])])) : f("", !0)
2422
2535
  ], 2));
2423
2536
  }
2424
- }), He = /* @__PURE__ */ L(In, [["__scopeId", "data-v-23811991"]]), Bn = {
2537
+ }), He = /* @__PURE__ */ L(En, [["__scopeId", "data-v-23811991"]]), Mn = {
2425
2538
  users: [
2426
2539
  { id: "1", name: "علیرضا علوی", email: "alireza@example.com", role: "مدیر کل" },
2427
2540
  { id: "2", name: "سارا رضایی", email: "sara@example.com", role: "نویسنده" },
@@ -2435,28 +2548,28 @@ const pa = /* @__PURE__ */ A({
2435
2548
  { id: "p3", name: "تبلت لنوو", price: "12,000,000" }
2436
2549
  ]
2437
2550
  };
2438
- function Vn(e, s = "") {
2551
+ function Pn(e, s = "") {
2439
2552
  return new Promise((t) => {
2440
2553
  setTimeout(() => {
2441
- const l = Bn[e] || [];
2554
+ const l = Mn[e] || [];
2442
2555
  if (!s.trim()) {
2443
2556
  t(l);
2444
2557
  return;
2445
2558
  }
2446
- const i = s.toLowerCase().trim(), o = l.filter((r) => Object.values(r).some(
2559
+ const i = s.toLowerCase().trim(), o = l.filter((d) => Object.values(d).some(
2447
2560
  (c) => String(c).toLowerCase().includes(i)
2448
2561
  ));
2449
2562
  t(o);
2450
2563
  }, 200);
2451
2564
  });
2452
2565
  }
2453
- const zn = { class: "ds-autocomplete" }, Dn = { class: "ds-autocomplete__trigger-wrapper" }, An = {
2566
+ const On = { class: "ds-autocomplete" }, Rn = { class: "ds-autocomplete__trigger-wrapper" }, Nn = {
2454
2567
  key: 0,
2455
2568
  class: "ds-autocomplete__loading"
2456
- }, Ln = {
2569
+ }, Fn = {
2457
2570
  key: 1,
2458
2571
  class: "ds-autocomplete__empty"
2459
- }, Tn = /* @__PURE__ */ A({
2572
+ }, Un = /* @__PURE__ */ A({
2460
2573
  __name: "AsyncAutocomplete",
2461
2574
  props: {
2462
2575
  modelValue: { default: void 0 },
@@ -2473,153 +2586,153 @@ const zn = { class: "ds-autocomplete" }, Dn = { class: "ds-autocomplete__trigger
2473
2586
  },
2474
2587
  emits: ["update:modelValue", "change", "clear"],
2475
2588
  setup(e, { emit: s }) {
2476
- const t = e, l = s, i = g(() => t.modelValue), o = P(null), r = P(""), c = P(!1), d = P(!1), v = P([]), u = P(-1), h = g(() => t.loading || d.value);
2477
- function _(b) {
2478
- if (typeof b == "string" || typeof b == "number") return String(b);
2479
- if (!b || typeof b != "object") return "";
2480
- const D = b;
2589
+ const t = e, l = s, i = _(() => t.modelValue), o = M(null), d = M(""), c = M(!1), r = M(!1), v = M([]), u = M(-1), b = _(() => t.loading || r.value);
2590
+ function V(g) {
2591
+ if (typeof g == "string" || typeof g == "number") return String(g);
2592
+ if (!g || typeof g != "object") return "";
2593
+ const D = g;
2481
2594
  return String(D[t.labelKey] ?? D.label ?? "");
2482
2595
  }
2483
- function k(b) {
2484
- if (typeof b == "string" || typeof b == "number") return b;
2485
- if (!b || typeof b != "object") return null;
2486
- const D = b;
2596
+ function p(g) {
2597
+ if (typeof g == "string" || typeof g == "number") return g;
2598
+ if (!g || typeof g != "object") return null;
2599
+ const D = g;
2487
2600
  return D[t.valueKey] ?? D.value ?? null;
2488
2601
  }
2489
- const M = g(() => {
2490
- if (!r.value.trim()) return v.value;
2491
- const b = r.value.toLowerCase().trim();
2602
+ const P = _(() => {
2603
+ if (!d.value.trim()) return v.value;
2604
+ const g = d.value.toLowerCase().trim();
2492
2605
  return v.value.filter(
2493
- (D) => _(D).toLowerCase().includes(b)
2606
+ (D) => V(D).toLowerCase().includes(g)
2494
2607
  );
2495
- }), B = g(() => {
2608
+ }), I = _(() => {
2496
2609
  if (t.source)
2497
- return M.value;
2498
- if (!r.value.trim()) return t.items;
2499
- const b = r.value.toLowerCase().trim();
2610
+ return P.value;
2611
+ if (!d.value.trim()) return t.items;
2612
+ const g = d.value.toLowerCase().trim();
2500
2613
  return t.items.filter(
2501
- (D) => _(D).toLowerCase().includes(b)
2614
+ (D) => V(D).toLowerCase().includes(g)
2502
2615
  );
2503
- }), V = g(() => {
2504
- const b = /* @__PURE__ */ new Map();
2505
- return t.items.forEach((D) => b.set(k(D), D)), v.value.forEach((D) => b.set(k(D), D)), Array.from(b.values());
2506
- }), H = g(() => {
2616
+ }), $ = _(() => {
2617
+ const g = /* @__PURE__ */ new Map();
2618
+ return t.items.forEach((D) => g.set(p(D), D)), v.value.forEach((D) => g.set(p(D), D)), Array.from(g.values());
2619
+ }), U = _(() => {
2507
2620
  if (c.value)
2508
- return r.value;
2509
- const b = V.value.find((D) => k(D) === i.value);
2510
- return b ? _(b) : "";
2621
+ return d.value;
2622
+ const g = $.value.find((D) => p(D) === i.value);
2623
+ return g ? V(g) : "";
2511
2624
  });
2512
- async function w(b) {
2625
+ async function z(g) {
2513
2626
  if (t.source) {
2514
- d.value = !0;
2627
+ r.value = !0;
2515
2628
  try {
2516
- const D = await Vn(t.source, b);
2629
+ const D = await Pn(t.source, g);
2517
2630
  v.value = D;
2518
2631
  } catch (D) {
2519
2632
  console.error(D), v.value = [];
2520
2633
  } finally {
2521
- d.value = !1;
2634
+ r.value = !1;
2522
2635
  }
2523
2636
  }
2524
2637
  }
2525
- let I = null;
2526
- function O(b) {
2527
- t.searchable && (r.value = b, c.value = !0, o.value && !o.value.isOpen && o.value.open(), I && clearTimeout(I), I = window.setTimeout(() => {
2528
- t.source && w(b);
2638
+ let y = null;
2639
+ function O(g) {
2640
+ t.searchable && (d.value = g, c.value = !0, o.value && !o.value.isOpen && o.value.open(), y && clearTimeout(y), y = window.setTimeout(() => {
2641
+ t.source && z(g);
2529
2642
  }, 200));
2530
2643
  }
2531
- function p() {
2532
- t.disabled || (c.value = !0, r.value = "", u.value = -1, o.value && !o.value.isOpen && o.value.open(), t.source && v.value.length === 0 && w(""));
2644
+ function h() {
2645
+ t.disabled || (c.value = !0, d.value = "", u.value = -1, o.value && !o.value.isOpen && o.value.open(), t.source && v.value.length === 0 && z(""));
2533
2646
  }
2534
- function z(b) {
2535
- const D = k(b);
2536
- l("update:modelValue", D), l("change", D), c.value = !1, r.value = _(b), u.value = -1, o.value && o.value.close();
2647
+ function B(g) {
2648
+ const D = p(g);
2649
+ l("update:modelValue", D), l("change", D), c.value = !1, d.value = V(g), u.value = -1, o.value && o.value.close();
2537
2650
  }
2538
- function y() {
2539
- t.disabled || (l("update:modelValue", null), l("change", null), l("clear"), r.value = "", c.value = !1, u.value = -1);
2651
+ function k() {
2652
+ t.disabled || (l("update:modelValue", null), l("change", null), l("clear"), d.value = "", c.value = !1, u.value = -1);
2540
2653
  }
2541
- function $(b) {
2542
- var q, J, se;
2654
+ function x(g) {
2655
+ var K, Q, se;
2543
2656
  if (t.disabled) return;
2544
- if (!((q = o.value) == null ? void 0 : q.isOpen)) {
2545
- b.key === "ArrowDown" && (b.preventDefault(), (J = o.value) == null || J.open());
2657
+ if (!((K = o.value) == null ? void 0 : K.isOpen)) {
2658
+ g.key === "ArrowDown" && (g.preventDefault(), (Q = o.value) == null || Q.open());
2546
2659
  return;
2547
2660
  }
2548
- switch (b.key) {
2661
+ switch (g.key) {
2549
2662
  case "Escape":
2550
- b.preventDefault(), (se = o.value) == null || se.close(), c.value = !1;
2663
+ g.preventDefault(), (se = o.value) == null || se.close(), c.value = !1;
2551
2664
  break;
2552
2665
  case "ArrowDown":
2553
- b.preventDefault(), u.value = u.value < B.value.length - 1 ? u.value + 1 : 0;
2666
+ g.preventDefault(), u.value = u.value < I.value.length - 1 ? u.value + 1 : 0;
2554
2667
  break;
2555
2668
  case "ArrowUp":
2556
- b.preventDefault(), u.value = u.value > 0 ? u.value - 1 : B.value.length - 1;
2669
+ g.preventDefault(), u.value = u.value > 0 ? u.value - 1 : I.value.length - 1;
2557
2670
  break;
2558
2671
  case "Enter":
2559
- if (u.value >= 0 && u.value < B.value.length) {
2560
- b.preventDefault();
2561
- const ne = B.value[u.value];
2562
- ne && z(ne);
2672
+ if (u.value >= 0 && u.value < I.value.length) {
2673
+ g.preventDefault();
2674
+ const ne = I.value[u.value];
2675
+ ne && B(ne);
2563
2676
  }
2564
2677
  break;
2565
2678
  }
2566
2679
  }
2567
2680
  return ee(() => {
2568
- var b;
2569
- return (b = o.value) == null ? void 0 : b.isOpen;
2570
- }, (b) => {
2571
- b || setTimeout(() => {
2681
+ var g;
2682
+ return (g = o.value) == null ? void 0 : g.isOpen;
2683
+ }, (g) => {
2684
+ g || setTimeout(() => {
2572
2685
  c.value = !1;
2573
2686
  }, 100);
2574
- }), (b, D) => (a(), n("div", zn, [
2575
- x(Be, {
2687
+ }), (g, D) => (a(), n("div", On, [
2688
+ w(Ve, {
2576
2689
  ref_key: "dropdownRef",
2577
2690
  ref: o,
2578
2691
  class: "ds-autocomplete__dropdown"
2579
2692
  }, {
2580
- trigger: U(() => [
2581
- m("div", Dn, [
2582
- x(ve, {
2583
- "model-value": H.value,
2693
+ trigger: j(() => [
2694
+ m("div", Rn, [
2695
+ w(ue, {
2696
+ "model-value": U.value,
2584
2697
  placeholder: e.placeholder,
2585
2698
  disabled: e.disabled,
2586
2699
  icon: "search",
2587
2700
  error: e.error,
2588
2701
  class: "ds-autocomplete__input",
2589
2702
  "onUpdate:modelValue": O,
2590
- onFocus: p,
2591
- onKeydown: $
2703
+ onFocus: h,
2704
+ onKeydown: x
2592
2705
  }, null, 8, ["model-value", "placeholder", "disabled", "error"]),
2593
2706
  e.clearable && i.value ? (a(), n("button", {
2594
2707
  key: 0,
2595
2708
  type: "button",
2596
2709
  class: "ds-autocomplete__clear",
2597
- onClick: X(y, ["stop"])
2710
+ onClick: X(k, ["stop"])
2598
2711
  }, [
2599
- x(N, {
2712
+ w(N, {
2600
2713
  name: "x",
2601
2714
  size: "xs"
2602
2715
  })
2603
2716
  ])) : f("", !0)
2604
2717
  ])
2605
2718
  ]),
2606
- default: U(() => [
2607
- x(je, {
2719
+ default: j(() => [
2720
+ w(je, {
2608
2721
  variant: "vertical",
2609
2722
  class: "ds-autocomplete__menu-container"
2610
2723
  }, {
2611
- default: U(() => [
2612
- h.value ? (a(), n("div", An, [
2613
- x(He, {
2724
+ default: j(() => [
2725
+ b.value ? (a(), n("div", Nn, [
2726
+ w(He, {
2614
2727
  variant: "spinner",
2615
2728
  text: "در حال بارگذاری..."
2616
2729
  })
2617
- ])) : B.value.length === 0 ? (a(), n("div", Ln, " نتیجه‌ای یافت نشد ")) : (a(!0), n(j, { key: 2 }, W(B.value, (q, J) => (a(), T(fe, {
2618
- key: String(k(q)),
2619
- label: _(q),
2620
- active: k(q) === i.value || J === u.value,
2621
- onClick: (se) => z(q),
2622
- onMouseenter: (se) => u.value = J
2730
+ ])) : I.value.length === 0 ? (a(), n("div", Fn, " نتیجه‌ای یافت نشد ")) : (a(!0), n(q, { key: 2 }, W(I.value, (K, Q) => (a(), E(ve, {
2731
+ key: String(p(K)),
2732
+ label: V(K),
2733
+ active: p(K) === i.value || Q === u.value,
2734
+ onClick: (se) => B(K),
2735
+ onMouseenter: (se) => u.value = Q
2623
2736
  }, null, 8, ["label", "active", "onClick", "onMouseenter"]))), 128))
2624
2737
  ]),
2625
2738
  _: 1
@@ -2629,21 +2742,21 @@ const zn = { class: "ds-autocomplete" }, Dn = { class: "ds-autocomplete__trigger
2629
2742
  }, 512)
2630
2743
  ]));
2631
2744
  }
2632
- }), En = /* @__PURE__ */ L(Tn, [["__scopeId", "data-v-9faf0edb"]]), Ve = Ee({
2745
+ }), jn = /* @__PURE__ */ L(Un, [["__scopeId", "data-v-9faf0edb"]]), Be = Ee({
2633
2746
  theme: "dark",
2634
2747
  locale: "fa",
2635
2748
  direction: "rtl",
2636
2749
  permissions: ["finance.view", "roles.manage"],
2637
2750
  data: {}
2638
2751
  });
2639
- function Mn(e) {
2640
- return e ? Ve.permissions.includes(e) : !0;
2752
+ function qn(e) {
2753
+ return e ? Be.permissions.includes(e) : !0;
2641
2754
  }
2642
- function Ri(e) {
2643
- Ve.locale = e, Re(e);
2755
+ function Gi(e) {
2756
+ Be.locale = e, Re(e);
2644
2757
  }
2645
- function Ni(e) {
2646
- Ve.direction = e, document.documentElement.dir = e;
2758
+ function Yi(e) {
2759
+ Be.direction = e, document.documentElement.dir = e;
2647
2760
  }
2648
2761
  const We = A({
2649
2762
  name: "SchemaRenderer",
@@ -2657,26 +2770,26 @@ const We = A({
2657
2770
  setup(e, { emit: s }) {
2658
2771
  const t = (l) => {
2659
2772
  var u;
2660
- if (l.permission && !Mn(l.permission))
2773
+ if (l.permission && !qn(l.permission))
2661
2774
  return null;
2662
- if (l.type === "text" && !(l.props && Object.keys(l.props).some((_) => _ !== "value"))) {
2663
- const _ = ((u = l.props) == null ? void 0 : u.value) || "";
2664
- return _.includes(".") ? F(_) : _;
2775
+ if (l.type === "text" && !(l.props && Object.keys(l.props).some((V) => V !== "value"))) {
2776
+ const V = ((u = l.props) == null ? void 0 : u.value) || "";
2777
+ return V.includes(".") ? F(V) : V;
2665
2778
  }
2666
- const o = E.get(l.type) || l.type, r = l.type === "accordion", c = l.children && !r ? l.children.map((h) => t(h)).filter(Boolean) : void 0, d = { ...l.props };
2667
- return r && l.children && (d.items = l.children), l.events && Object.entries(l.events).forEach(([h, _]) => {
2668
- const k = `on${h.charAt(0).toUpperCase()}${h.slice(1)}`;
2669
- d[k] = (M) => {
2670
- s("event", { name: _, event: M, node: l });
2779
+ const o = T.get(l.type) || l.type, d = l.type === "accordion", c = l.children && !d ? l.children.map((b) => t(b)).filter(Boolean) : void 0, r = { ...l.props };
2780
+ return d && l.children && (r.items = l.children), l.events && Object.entries(l.events).forEach(([b, V]) => {
2781
+ const p = `on${b.charAt(0).toUpperCase()}${b.slice(1)}`;
2782
+ r[p] = (P) => {
2783
+ s("event", { name: V, event: P, node: l });
2671
2784
  };
2672
- }), De(o, d, c ? { default: () => c } : void 0);
2785
+ }), De(o, r, c ? { default: () => c } : void 0);
2673
2786
  };
2674
2787
  return () => Array.isArray(e.schema) ? De("div", { class: "schema-tree" }, e.schema.map((l) => t(l)).filter(Boolean)) : t(e.schema);
2675
2788
  }
2676
- }), Pn = {
2789
+ }), Kn = {
2677
2790
  class: "ds-accordion",
2678
2791
  role: "presentation"
2679
- }, On = ["aria-expanded", "disabled", "onClick"], Rn = { class: "ds-accordion__title" }, Nn = { class: "ds-accordion__content" }, Fn = { class: "ds-accordion__content-inner" }, Un = /* @__PURE__ */ A({
2792
+ }, Hn = ["aria-expanded", "disabled", "onClick"], Wn = { class: "ds-accordion__title" }, Gn = { class: "ds-accordion__content" }, Yn = { class: "ds-accordion__content-inner" }, Xn = /* @__PURE__ */ A({
2680
2793
  __name: "Accordion",
2681
2794
  props: {
2682
2795
  items: { default: () => [] },
@@ -2685,44 +2798,44 @@ const We = A({
2685
2798
  disabled: { type: Boolean, default: !1 }
2686
2799
  },
2687
2800
  setup(e) {
2688
- const s = e, t = P([]), l = (o) => {
2801
+ const s = e, t = M([]), l = (o) => {
2689
2802
  if (s.disabled) return;
2690
2803
  t.value.indexOf(o) > -1 ? t.value = t.value.filter((c) => c !== o) : s.multiple ? t.value.push(o) : t.value = [o];
2691
2804
  }, i = (o) => t.value.includes(o);
2692
2805
  return te(() => {
2693
- s.defaultOpen && s.items.length > 0 && (s.multiple ? t.value = s.items.map((o, r) => r) : t.value = [0]);
2694
- }), (o, r) => (a(), n("div", Pn, [
2695
- (a(!0), n(j, null, W(e.items, (c, d) => (a(), n("div", {
2696
- key: d,
2806
+ s.defaultOpen && s.items.length > 0 && (s.multiple ? t.value = s.items.map((o, d) => d) : t.value = [0]);
2807
+ }), (o, d) => (a(), n("div", Kn, [
2808
+ (a(!0), n(q, null, W(e.items, (c, r) => (a(), n("div", {
2809
+ key: r,
2697
2810
  class: S([
2698
2811
  "ds-accordion__item",
2699
- { "ds-accordion__item--open": i(d) },
2812
+ { "ds-accordion__item--open": i(r) },
2700
2813
  { "ds-accordion__item--disabled": e.disabled }
2701
2814
  ])
2702
2815
  }, [
2703
2816
  m("button", {
2704
2817
  type: "button",
2705
2818
  class: "ds-accordion__header",
2706
- "aria-expanded": i(d),
2819
+ "aria-expanded": i(r),
2707
2820
  disabled: e.disabled,
2708
- onClick: (v) => l(d)
2821
+ onClick: (v) => l(r)
2709
2822
  }, [
2710
- m("span", Rn, C(c.title.includes(".") ? R(F)(c.title) : c.title), 1),
2711
- x(N, {
2823
+ m("span", Wn, C(c.title.includes(".") ? R(F)(c.title) : c.title), 1),
2824
+ w(N, {
2712
2825
  name: "chevron-down",
2713
2826
  size: "sm",
2714
2827
  class: "ds-accordion__chevron"
2715
2828
  })
2716
- ], 8, On),
2829
+ ], 8, Hn),
2717
2830
  m("div", {
2718
2831
  class: S([
2719
2832
  "ds-accordion__content-wrapper",
2720
- { "ds-accordion__content-wrapper--open": i(d) }
2833
+ { "ds-accordion__content-wrapper--open": i(r) }
2721
2834
  ])
2722
2835
  }, [
2723
- m("div", Nn, [
2724
- m("div", Fn, [
2725
- x(We, {
2836
+ m("div", Gn, [
2837
+ m("div", Yn, [
2838
+ w(We, {
2726
2839
  schema: c.content
2727
2840
  }, null, 8, ["schema"])
2728
2841
  ])
@@ -2731,16 +2844,16 @@ const We = A({
2731
2844
  ], 2))), 128))
2732
2845
  ]));
2733
2846
  }
2734
- }), jn = /* @__PURE__ */ L(Un, [["__scopeId", "data-v-24e0f847"]]), qn = { class: "ds-alert__main" }, Kn = { class: "ds-alert__icon-container" }, Hn = { class: "ds-alert__content" }, Wn = { class: "ds-alert__text-group" }, Gn = {
2847
+ }), Zn = /* @__PURE__ */ L(Xn, [["__scopeId", "data-v-24e0f847"]]), Qn = { class: "ds-alert__main" }, Jn = { class: "ds-alert__icon-container" }, eo = { class: "ds-alert__content" }, to = { class: "ds-alert__text-group" }, ao = {
2735
2848
  key: 0,
2736
2849
  class: "ds-alert__title"
2737
- }, Yn = {
2850
+ }, so = {
2738
2851
  key: 1,
2739
2852
  class: "ds-alert__description"
2740
- }, Xn = {
2853
+ }, lo = {
2741
2854
  key: 0,
2742
2855
  class: "ds-alert__actions"
2743
- }, Zn = ["aria-label"], Jn = /* @__PURE__ */ A({
2856
+ }, no = ["aria-label"], oo = /* @__PURE__ */ A({
2744
2857
  __name: "Alert",
2745
2858
  props: {
2746
2859
  variant: { default: "info" },
@@ -2750,11 +2863,12 @@ const We = A({
2750
2863
  actions: { default: () => [] },
2751
2864
  layout: { default: "column" }
2752
2865
  },
2753
- setup(e) {
2754
- const s = e, t = P(!1), l = () => {
2755
- t.value = !0;
2756
- }, i = g(() => {
2757
- switch (s.variant) {
2866
+ emits: ["event"],
2867
+ setup(e, { emit: s }) {
2868
+ const t = e, l = s, i = M(!1), o = () => {
2869
+ i.value = !0;
2870
+ }, d = _(() => {
2871
+ switch (t.variant) {
2758
2872
  case "success":
2759
2873
  return "check";
2760
2874
  case "warning":
@@ -2766,32 +2880,33 @@ const We = A({
2766
2880
  default:
2767
2881
  return "info";
2768
2882
  }
2769
- }), o = g(() => [
2883
+ }), c = _(() => [
2770
2884
  "ds-alert",
2771
- `ds-alert--${s.variant}`,
2772
- `ds-alert--layout-${s.layout}`
2885
+ `ds-alert--${t.variant}`,
2886
+ `ds-alert--layout-${t.layout}`
2773
2887
  ]);
2774
- return (r, c) => t.value ? f("", !0) : (a(), n("div", {
2888
+ return (r, v) => i.value ? f("", !0) : (a(), n("div", {
2775
2889
  key: 0,
2776
- class: S(o.value),
2890
+ class: S(c.value),
2777
2891
  role: "alert"
2778
2892
  }, [
2779
- m("div", qn, [
2780
- m("div", Kn, [
2781
- x(N, {
2782
- name: i.value,
2893
+ m("div", Qn, [
2894
+ m("div", Jn, [
2895
+ w(N, {
2896
+ name: d.value,
2783
2897
  size: "lg"
2784
2898
  }, null, 8, ["name"])
2785
2899
  ]),
2786
- m("div", Hn, [
2787
- m("div", Wn, [
2788
- e.title ? (a(), n("h4", Gn, C(e.title.includes(".") ? R(F)(e.title) : e.title), 1)) : f("", !0),
2789
- e.description ? (a(), n("p", Yn, C(e.description.includes(".") ? R(F)(e.description) : e.description), 1)) : f("", !0)
2900
+ m("div", eo, [
2901
+ m("div", to, [
2902
+ e.title ? (a(), n("h4", ao, C(e.title.includes(".") ? R(F)(e.title) : e.title), 1)) : f("", !0),
2903
+ e.description ? (a(), n("p", so, C(e.description.includes(".") ? R(F)(e.description) : e.description), 1)) : f("", !0)
2790
2904
  ]),
2791
- e.actions && e.actions.length > 0 ? (a(), n("div", Xn, [
2792
- (a(!0), n(j, null, W(e.actions, (d, v) => (a(), T(We, {
2793
- key: v,
2794
- schema: d
2905
+ e.actions && e.actions.length > 0 ? (a(), n("div", lo, [
2906
+ (a(!0), n(q, null, W(e.actions, (u, b) => (a(), E(We, {
2907
+ key: b,
2908
+ schema: u,
2909
+ onEvent: v[0] || (v[0] = (V) => l("event", V))
2795
2910
  }, null, 8, ["schema"]))), 128))
2796
2911
  ])) : f("", !0)
2797
2912
  ]),
@@ -2799,27 +2914,27 @@ const We = A({
2799
2914
  key: 0,
2800
2915
  type: "button",
2801
2916
  class: "ds-alert__dismiss-btn",
2802
- onClick: l,
2917
+ onClick: o,
2803
2918
  "aria-label": R(F)("common.close") || "Close"
2804
2919
  }, [
2805
- x(N, {
2920
+ w(N, {
2806
2921
  name: "x",
2807
2922
  size: "lg"
2808
2923
  })
2809
- ], 8, Zn)) : f("", !0)
2924
+ ], 8, no)) : f("", !0)
2810
2925
  ])
2811
2926
  ], 2));
2812
2927
  }
2813
- }), Qn = /* @__PURE__ */ L(Jn, [["__scopeId", "data-v-ce80e33d"]]), eo = ["aria-valuenow", "aria-valuemax"], to = {
2928
+ }), io = /* @__PURE__ */ L(oo, [["__scopeId", "data-v-7893c0df"]]), co = ["aria-valuenow", "aria-valuemax"], ro = {
2814
2929
  key: 0,
2815
2930
  class: "ds-progress__header"
2816
- }, ao = {
2931
+ }, uo = {
2817
2932
  key: 0,
2818
2933
  class: "ds-progress__label"
2819
- }, so = {
2934
+ }, mo = {
2820
2935
  key: 1,
2821
2936
  class: "ds-progress__value"
2822
- }, lo = { class: "ds-progress__track" }, no = /* @__PURE__ */ A({
2937
+ }, fo = { class: "ds-progress__track" }, vo = /* @__PURE__ */ A({
2823
2938
  __name: "Progress",
2824
2939
  props: {
2825
2940
  value: { default: 0 },
@@ -2828,7 +2943,7 @@ const We = A({
2828
2943
  showValue: { type: Boolean, default: !1 }
2829
2944
  },
2830
2945
  setup(e) {
2831
- const s = e, t = g(() => {
2946
+ const s = e, t = _(() => {
2832
2947
  const l = Math.max(0, Math.min(s.value, s.max));
2833
2948
  return Math.round(l / s.max * 100);
2834
2949
  });
@@ -2839,30 +2954,30 @@ const We = A({
2839
2954
  "aria-valuemin": 0,
2840
2955
  "aria-valuemax": e.max
2841
2956
  }, [
2842
- e.label || e.showValue ? (a(), n("div", to, [
2843
- e.label ? (a(), n("span", ao, C(e.label.includes(".") ? R(F)(e.label) : e.label), 1)) : f("", !0),
2844
- e.showValue ? (a(), n("span", so, C(t.value) + "% ", 1)) : f("", !0)
2957
+ e.label || e.showValue ? (a(), n("div", ro, [
2958
+ e.label ? (a(), n("span", uo, C(e.label.includes(".") ? R(F)(e.label) : e.label), 1)) : f("", !0),
2959
+ e.showValue ? (a(), n("span", mo, C(t.value) + "% ", 1)) : f("", !0)
2845
2960
  ])) : f("", !0),
2846
- m("div", lo, [
2961
+ m("div", fo, [
2847
2962
  m("div", {
2848
2963
  class: "ds-progress__bar",
2849
- style: Q({ width: `${t.value}%` })
2964
+ style: J({ width: `${t.value}%` })
2850
2965
  }, null, 4)
2851
2966
  ])
2852
- ], 8, eo));
2967
+ ], 8, co));
2853
2968
  }
2854
- }), oo = /* @__PURE__ */ L(no, [["__scopeId", "data-v-d9bb4686"]]), io = {
2969
+ }), po = /* @__PURE__ */ L(vo, [["__scopeId", "data-v-d9bb4686"]]), bo = {
2855
2970
  class: "ds-breadcrumb",
2856
2971
  "aria-label": "Breadcrumb"
2857
- }, co = { class: "ds-breadcrumb__list" }, ro = {
2972
+ }, ho = { class: "ds-breadcrumb__list" }, go = {
2858
2973
  key: 0,
2859
2974
  class: "ds-breadcrumb__separator",
2860
2975
  "aria-hidden": "true"
2861
- }, uo = {
2976
+ }, _o = {
2862
2977
  key: 1,
2863
2978
  class: "ds-breadcrumb__current",
2864
2979
  "aria-current": "page"
2865
- }, mo = ["href", "onClick"], fo = /* @__PURE__ */ A({
2980
+ }, yo = ["href", "onClick"], ko = /* @__PURE__ */ A({
2866
2981
  __name: "Breadcrumb",
2867
2982
  props: {
2868
2983
  items: { default: () => [] },
@@ -2873,24 +2988,24 @@ const We = A({
2873
2988
  const t = s, l = (i) => {
2874
2989
  i && t("navigate", i);
2875
2990
  };
2876
- return (i, o) => (a(), n("nav", io, [
2877
- m("ol", co, [
2878
- (a(!0), n(j, null, W(e.items, (r, c) => (a(), n("li", {
2991
+ return (i, o) => (a(), n("nav", bo, [
2992
+ m("ol", ho, [
2993
+ (a(!0), n(q, null, W(e.items, (d, c) => (a(), n("li", {
2879
2994
  key: c,
2880
2995
  class: "ds-breadcrumb__item"
2881
2996
  }, [
2882
- c > 0 ? (a(), n("span", ro, C(e.separator), 1)) : f("", !0),
2883
- c === e.items.length - 1 ? (a(), n("span", uo, C(r.label.includes(".") ? R(F)(r.label) : r.label), 1)) : (a(), n("a", {
2997
+ c > 0 ? (a(), n("span", go, C(e.separator), 1)) : f("", !0),
2998
+ c === e.items.length - 1 ? (a(), n("span", _o, C(d.label.includes(".") ? R(F)(d.label) : d.label), 1)) : (a(), n("a", {
2884
2999
  key: 2,
2885
- href: r.path || "#",
3000
+ href: d.path || "#",
2886
3001
  class: "ds-breadcrumb__link",
2887
- onClick: X((d) => l(r.path), ["prevent"])
2888
- }, C(r.label.includes(".") ? R(F)(r.label) : r.label), 9, mo))
3002
+ onClick: X((r) => l(d.path), ["prevent"])
3003
+ }, C(d.label.includes(".") ? R(F)(d.label) : d.label), 9, yo))
2889
3004
  ]))), 128))
2890
3005
  ])
2891
3006
  ]));
2892
3007
  }
2893
- }), vo = /* @__PURE__ */ L(fo, [["__scopeId", "data-v-ea7e8d33"]]), po = ["tabindex"], bo = { class: "ds-chip__label" }, ho = ["disabled", "aria-label"], go = /* @__PURE__ */ A({
3008
+ }), wo = /* @__PURE__ */ L(ko, [["__scopeId", "data-v-ea7e8d33"]]), $o = ["tabindex"], Co = { class: "ds-chip__label" }, xo = ["disabled", "aria-label"], So = /* @__PURE__ */ A({
2894
3009
  __name: "Chip",
2895
3010
  props: {
2896
3011
  label: {},
@@ -2904,24 +3019,24 @@ const We = A({
2904
3019
  c.stopPropagation(), !t.disabled && l("close");
2905
3020
  }, o = () => {
2906
3021
  t.disabled || l("click");
2907
- }, r = g(() => [
3022
+ }, d = _(() => [
2908
3023
  "ds-chip",
2909
3024
  { "ds-chip--disabled": t.disabled },
2910
3025
  { "ds-chip--interactive": !t.disabled }
2911
3026
  ]);
2912
- return (c, d) => (a(), n("div", {
2913
- class: S(r.value),
3027
+ return (c, r) => (a(), n("div", {
3028
+ class: S(d.value),
2914
3029
  onClick: o,
2915
3030
  role: "button",
2916
3031
  tabindex: e.disabled ? -1 : 0
2917
3032
  }, [
2918
- e.icon ? (a(), T(N, {
3033
+ e.icon ? (a(), E(N, {
2919
3034
  key: 0,
2920
3035
  name: e.icon,
2921
3036
  size: "xs",
2922
3037
  class: "ds-chip__icon"
2923
3038
  }, null, 8, ["name"])) : f("", !0),
2924
- m("span", bo, C(e.label.includes(".") ? R(F)(e.label) : e.label), 1),
3039
+ m("span", Co, C(e.label.includes(".") ? R(F)(e.label) : e.label), 1),
2925
3040
  e.closable ? (a(), n("button", {
2926
3041
  key: 1,
2927
3042
  type: "button",
@@ -2930,27 +3045,27 @@ const We = A({
2930
3045
  onClick: i,
2931
3046
  "aria-label": R(F)("common.remove") || "Remove"
2932
3047
  }, [
2933
- x(N, {
3048
+ w(N, {
2934
3049
  name: "x",
2935
3050
  size: "xs"
2936
3051
  })
2937
- ], 8, ho)) : f("", !0)
2938
- ], 10, po));
3052
+ ], 8, xo)) : f("", !0)
3053
+ ], 10, $o));
2939
3054
  }
2940
- }), _o = /* @__PURE__ */ L(go, [["__scopeId", "data-v-a511bfd1"]]), yo = { class: "ds-command-trigger__left" }, ko = { class: "ds-command-trigger__shortcut-group" }, wo = { class: "ds-command-key" }, $o = {
3055
+ }), Io = /* @__PURE__ */ L(So, [["__scopeId", "data-v-a511bfd1"]]), Vo = { class: "ds-command-trigger__left" }, Bo = { class: "ds-command-trigger__shortcut-group" }, zo = { class: "ds-command-key" }, Do = {
2941
3056
  key: 0,
2942
3057
  class: "ds-command-key-separator"
2943
- }, Co = {
3058
+ }, Ao = {
2944
3059
  class: "ds-command-dialog",
2945
3060
  role: "dialog",
2946
3061
  "aria-modal": "true"
2947
- }, xo = { class: "ds-command-dialog__header" }, So = ["placeholder"], Io = { class: "ds-command-dialog__body" }, Bo = {
3062
+ }, Lo = { class: "ds-command-dialog__header" }, To = ["placeholder"], Eo = { class: "ds-command-dialog__body" }, Mo = {
2948
3063
  key: 0,
2949
3064
  class: "ds-command-list"
2950
- }, Vo = ["onClick", "onMouseenter"], zo = { class: "ds-command-item__left" }, Do = { class: "ds-command-item__label" }, Ao = { class: "ds-command-item__action-hint" }, Lo = { class: "ds-command-item__action-text" }, To = {
3065
+ }, Po = ["onClick", "onMouseenter"], Oo = { class: "ds-command-item__left" }, Ro = { class: "ds-command-item__label" }, No = { class: "ds-command-item__action-hint" }, Fo = { class: "ds-command-item__action-text" }, Uo = {
2951
3066
  key: 1,
2952
3067
  class: "ds-command-empty"
2953
- }, Eo = /* @__PURE__ */ A({
3068
+ }, jo = /* @__PURE__ */ A({
2954
3069
  __name: "CommandMenu",
2955
3070
  props: {
2956
3071
  items: { default: () => [] },
@@ -2960,122 +3075,122 @@ const We = A({
2960
3075
  },
2961
3076
  emits: ["select", "navigate"],
2962
3077
  setup(e, { emit: s }) {
2963
- const t = e, l = s, { locale: i } = Ne(), o = g(() => t.shortcut ? t.shortcut.split("+") : []), r = P(!1), c = P(""), d = P(0), v = P(null), u = (w) => {
2964
- const I = t.shortcut.toLowerCase().split("+"), O = I[I.length - 1], p = I.includes("ctrl") || I.includes("control"), z = I.includes("meta") || I.includes("cmd") || I.includes("⌘"), y = I.includes("alt"), $ = I.includes("shift");
2965
- return O && w.key.toLowerCase() === O ? !(p && !w.ctrlKey || z && !w.metaKey || y && !w.altKey || $ && !w.shiftKey) : !1;
2966
- }, h = (w) => {
2967
- u(w) ? (w.preventDefault(), _()) : r.value && (w.key === "Escape" ? (w.preventDefault(), M()) : w.key === "ArrowDown" ? (w.preventDefault(), d.value = (d.value + 1) % V.value.length) : w.key === "ArrowUp" ? (w.preventDefault(), d.value = (d.value - 1 + V.value.length) % V.value.length) : w.key === "Enter" && (w.preventDefault(), V.value[d.value] && B(V.value[d.value])));
3078
+ const t = e, l = s, { locale: i } = Ne(), o = _(() => t.shortcut ? t.shortcut.split("+") : []), d = M(!1), c = M(""), r = M(0), v = M(null), u = (z) => {
3079
+ const y = t.shortcut.toLowerCase().split("+"), O = y[y.length - 1], h = y.includes("ctrl") || y.includes("control"), B = y.includes("meta") || y.includes("cmd") || y.includes("⌘"), k = y.includes("alt"), x = y.includes("shift");
3080
+ return O && z.key.toLowerCase() === O ? !(h && !z.ctrlKey || B && !z.metaKey || k && !z.altKey || x && !z.shiftKey) : !1;
3081
+ }, b = (z) => {
3082
+ u(z) ? (z.preventDefault(), V()) : d.value && (z.key === "Escape" ? (z.preventDefault(), P()) : z.key === "ArrowDown" ? (z.preventDefault(), r.value = (r.value + 1) % $.value.length) : z.key === "ArrowUp" ? (z.preventDefault(), r.value = (r.value - 1 + $.value.length) % $.value.length) : z.key === "Enter" && (z.preventDefault(), $.value[r.value] && I($.value[r.value])));
2968
3083
  };
2969
3084
  te(() => {
2970
- window.addEventListener("keydown", h);
2971
- }), Qe(() => {
2972
- window.removeEventListener("keydown", h), document.body.style.overflow = "";
3085
+ window.addEventListener("keydown", b);
3086
+ }), Je(() => {
3087
+ window.removeEventListener("keydown", b), document.body.style.overflow = "";
2973
3088
  });
2974
- const _ = () => {
2975
- r.value ? M() : k();
2976
- }, k = () => {
2977
- r.value = !0, c.value = "", d.value = 0, document.body.style.overflow = "hidden", et(() => {
2978
- var w;
2979
- (w = v.value) == null || w.focus();
3089
+ const V = () => {
3090
+ d.value ? P() : p();
3091
+ }, p = () => {
3092
+ d.value = !0, c.value = "", r.value = 0, document.body.style.overflow = "hidden", et(() => {
3093
+ var z;
3094
+ (z = v.value) == null || z.focus();
2980
3095
  });
2981
- }, M = () => {
2982
- r.value = !1, document.body.style.overflow = "";
2983
- }, B = (w) => {
2984
- if (l("select", w), w.action.startsWith("navigate:")) {
2985
- const I = w.action.replace("navigate:", "");
2986
- l("navigate", I);
3096
+ }, P = () => {
3097
+ d.value = !1, document.body.style.overflow = "";
3098
+ }, I = (z) => {
3099
+ if (l("select", z), z.action.startsWith("navigate:")) {
3100
+ const y = z.action.replace("navigate:", "");
3101
+ l("navigate", y);
2987
3102
  }
2988
- M();
2989
- }, V = g(() => {
2990
- const w = c.value.trim().toLowerCase();
2991
- return w ? t.items.filter((I) => {
2992
- const O = F(I.label).toLowerCase(), p = I.label.toLowerCase();
2993
- return O.includes(w) || p.includes(w);
3103
+ P();
3104
+ }, $ = _(() => {
3105
+ const z = c.value.trim().toLowerCase();
3106
+ return z ? t.items.filter((y) => {
3107
+ const O = F(y.label).toLowerCase(), h = y.label.toLowerCase();
3108
+ return O.includes(z) || h.includes(z);
2994
3109
  }) : t.items;
2995
3110
  });
2996
- ee(V, () => {
2997
- d.value = 0;
3111
+ ee($, () => {
3112
+ r.value = 0;
2998
3113
  });
2999
- const H = (w) => {
3000
- w.target === w.currentTarget && M();
3114
+ const U = (z) => {
3115
+ z.target === z.currentTarget && P();
3001
3116
  };
3002
- return (w, I) => (a(), n("div", null, [
3117
+ return (z, y) => (a(), n("div", null, [
3003
3118
  m("button", {
3004
3119
  type: "button",
3005
3120
  class: "ds-command-trigger",
3006
- onClick: k
3121
+ onClick: p
3007
3122
  }, [
3008
- m("span", yo, [
3009
- x(N, {
3123
+ m("span", Vo, [
3124
+ w(N, {
3010
3125
  name: "search",
3011
3126
  size: "sm"
3012
3127
  }),
3013
3128
  m("span", null, C(e.placeholder.includes(".") ? R(F)(e.placeholder) : e.placeholder), 1)
3014
3129
  ]),
3015
- m("span", ko, [
3016
- (a(!0), n(j, null, W(o.value, (O, p) => (a(), n(j, { key: p }, [
3017
- m("kbd", wo, C(O), 1),
3018
- p < o.value.length - 1 ? (a(), n("span", $o, "+")) : f("", !0)
3130
+ m("span", Bo, [
3131
+ (a(!0), n(q, null, W(o.value, (O, h) => (a(), n(q, { key: h }, [
3132
+ m("kbd", zo, C(O), 1),
3133
+ h < o.value.length - 1 ? (a(), n("span", Do, "+")) : f("", !0)
3019
3134
  ], 64))), 128))
3020
3135
  ])
3021
3136
  ]),
3022
- x(ae, { name: "ds-command-fade" }, {
3023
- default: U(() => [
3024
- r.value ? (a(), n("div", {
3137
+ w(ae, { name: "ds-command-fade" }, {
3138
+ default: j(() => [
3139
+ d.value ? (a(), n("div", {
3025
3140
  key: 0,
3026
3141
  class: "ds-command-overlay",
3027
- onClick: H
3142
+ onClick: U
3028
3143
  }, [
3029
- m("div", Co, [
3030
- m("div", xo, [
3031
- x(N, {
3144
+ m("div", Ao, [
3145
+ m("div", Lo, [
3146
+ w(N, {
3032
3147
  name: "search",
3033
3148
  size: "md",
3034
3149
  class: "ds-command-dialog__search-icon"
3035
3150
  }),
3036
- ue(m("input", {
3151
+ me(m("input", {
3037
3152
  ref_key: "searchInput",
3038
3153
  ref: v,
3039
3154
  type: "text",
3040
- "onUpdate:modelValue": I[0] || (I[0] = (O) => c.value = O),
3155
+ "onUpdate:modelValue": y[0] || (y[0] = (O) => c.value = O),
3041
3156
  class: "ds-command-dialog__input",
3042
3157
  placeholder: e.placeholder.includes(".") ? R(F)(e.placeholder) : e.placeholder,
3043
3158
  "aria-label": "Search commands"
3044
- }, null, 8, So), [
3159
+ }, null, 8, To), [
3045
3160
  [Me, c.value]
3046
3161
  ]),
3047
- I[1] || (I[1] = m("kbd", { class: "ds-command-dialog__escape-kbd" }, "ESC", -1))
3162
+ y[1] || (y[1] = m("kbd", { class: "ds-command-dialog__escape-kbd" }, "ESC", -1))
3048
3163
  ]),
3049
- m("div", Io, [
3050
- V.value.length > 0 ? (a(), n("ul", Bo, [
3051
- (a(!0), n(j, null, W(V.value, (O, p) => (a(), n("li", {
3164
+ m("div", Eo, [
3165
+ $.value.length > 0 ? (a(), n("ul", Mo, [
3166
+ (a(!0), n(q, null, W($.value, (O, h) => (a(), n("li", {
3052
3167
  key: O.id,
3053
3168
  class: S([
3054
3169
  "ds-command-item",
3055
- { "ds-command-item--active": p === d.value }
3170
+ { "ds-command-item--active": h === r.value }
3056
3171
  ]),
3057
- onClick: (z) => B(O),
3058
- onMouseenter: (z) => d.value = p
3172
+ onClick: (B) => I(O),
3173
+ onMouseenter: (B) => r.value = h
3059
3174
  }, [
3060
- m("div", zo, [
3061
- O.icon ? (a(), T(N, {
3175
+ m("div", Oo, [
3176
+ O.icon ? (a(), E(N, {
3062
3177
  key: 0,
3063
3178
  name: O.icon,
3064
3179
  size: "sm",
3065
3180
  class: "ds-command-item__icon"
3066
3181
  }, null, 8, ["name"])) : f("", !0),
3067
- m("span", Do, C(O.label.includes(".") ? R(F)(O.label) : O.label), 1)
3182
+ m("span", Ro, C(O.label.includes(".") ? R(F)(O.label) : O.label), 1)
3068
3183
  ]),
3069
- m("span", Ao, [
3070
- m("span", Lo, C(O.action.startsWith("navigate:") ? R(i) === "fa" ? "انتقال" : "Go" : R(i) === "fa" ? "اجرا" : "Run"), 1),
3071
- x(N, {
3184
+ m("span", No, [
3185
+ m("span", Fo, C(O.action.startsWith("navigate:") ? R(i) === "fa" ? "انتقال" : "Go" : R(i) === "fa" ? "اجرا" : "Run"), 1),
3186
+ w(N, {
3072
3187
  name: R(i) === "fa" ? "arrow-left" : "arrow-right",
3073
3188
  size: "xs",
3074
3189
  class: "ds-command-item__action-icon"
3075
3190
  }, null, 8, ["name"])
3076
3191
  ])
3077
- ], 42, Vo))), 128))
3078
- ])) : (a(), n("div", To, C(R(F)("common.no_results") || "نتیجه‌ای یافت نشد (No results found)"), 1))
3192
+ ], 42, Po))), 128))
3193
+ ])) : (a(), n("div", Uo, C(R(F)("common.no_results") || "نتیجه‌ای یافت نشد (No results found)"), 1))
3079
3194
  ])
3080
3195
  ])
3081
3196
  ])) : f("", !0)
@@ -3084,7 +3199,7 @@ const We = A({
3084
3199
  })
3085
3200
  ]));
3086
3201
  }
3087
- }), Mo = /* @__PURE__ */ L(Eo, [["__scopeId", "data-v-0ca8a2e5"]]), Po = { class: "ds-user-card__info" }, Oo = /* @__PURE__ */ A({
3202
+ }), qo = /* @__PURE__ */ L(jo, [["__scopeId", "data-v-0ca8a2e5"]]), Ko = { class: "ds-user-card__info" }, Ho = /* @__PURE__ */ A({
3088
3203
  __name: "UserCard",
3089
3204
  props: {
3090
3205
  name: { default: "User" },
@@ -3098,32 +3213,32 @@ const We = A({
3098
3213
  return (s, t) => (a(), n("div", {
3099
3214
  class: S(["ds-user-card", { "ds-user-card--collapsed": e.collapsed }])
3100
3215
  }, [
3101
- e.avatar ? (a(), T(de, {
3216
+ e.avatar ? (a(), E(re, {
3102
3217
  key: 0,
3103
3218
  src: e.avatar,
3104
3219
  size: "sm",
3105
3220
  square: e.squareAvatar
3106
- }, null, 8, ["src", "square"])) : (a(), T(de, {
3221
+ }, null, 8, ["src", "square"])) : (a(), E(re, {
3107
3222
  key: 1,
3108
3223
  name: e.name,
3109
3224
  size: "sm",
3110
3225
  square: e.squareAvatar
3111
3226
  }, null, 8, ["name", "square"])),
3112
- ue(m("div", Po, [
3113
- x(G, {
3227
+ me(m("div", Ko, [
3228
+ w(G, {
3114
3229
  variant: "body-sm",
3115
3230
  class: "ds-user-card__name"
3116
3231
  }, {
3117
- default: U(() => [
3232
+ default: j(() => [
3118
3233
  Y(C(e.name), 1)
3119
3234
  ]),
3120
3235
  _: 1
3121
3236
  }),
3122
- x(G, {
3237
+ w(G, {
3123
3238
  variant: "caption",
3124
3239
  class: "ds-user-card__role"
3125
3240
  }, {
3126
- default: U(() => [
3241
+ default: j(() => [
3127
3242
  Y(C(e.role), 1)
3128
3243
  ]),
3129
3244
  _: 1
@@ -3131,7 +3246,7 @@ const We = A({
3131
3246
  ], 512), [
3132
3247
  [Ae, !e.collapsed]
3133
3248
  ]),
3134
- ue(x(N, {
3249
+ me(w(N, {
3135
3250
  name: e.icon,
3136
3251
  size: "sm",
3137
3252
  class: "ds-user-card__action"
@@ -3140,7 +3255,7 @@ const We = A({
3140
3255
  ])
3141
3256
  ], 2));
3142
3257
  }
3143
- }), Ge = /* @__PURE__ */ L(Oo, [["__scopeId", "data-v-29686b7a"]]), Ro = ["width", "height"], No = /* @__PURE__ */ A({
3258
+ }), Ge = /* @__PURE__ */ L(Ho, [["__scopeId", "data-v-29686b7a"]]), Wo = ["width", "height"], Go = /* @__PURE__ */ A({
3144
3259
  __name: "Logo",
3145
3260
  props: {
3146
3261
  size: { default: 24 }
@@ -3168,15 +3283,15 @@ const We = A({
3168
3283
  d: "M305 0C329.853 4.18769e-06 350 20.1472 350 45V305C350 329.853 329.853 350 305 350H45C20.1472 350 1.36923e-06 329.853 0 305V45C4.18824e-06 20.1472 20.1472 1.36905e-06 45 0H305ZM229.557 102C229.438 102 229.32 102.001 229.201 102.002C228.932 102.003 228.663 102.005 228.395 102.009C228.071 102.014 227.748 102.023 227.425 102.032C227.368 102.034 227.312 102.034 227.256 102.036C226.948 102.046 226.64 102.058 226.333 102.071C226.251 102.075 226.168 102.077 226.086 102.081C225.723 102.098 225.36 102.118 224.998 102.141C224.986 102.141 224.974 102.142 224.962 102.143C202.145 103.552 182.149 115.382 169.675 132.932C169.679 132.925 169.683 132.919 169.687 132.913C146.755 157.756 135.638 168.421 105.954 146.218C105.799 146.1 105.644 145.982 105.487 145.866C105.314 145.735 105.137 145.605 104.962 145.472C104.986 145.493 105.011 145.516 105.035 145.537C99.0239 141.239 91.6619 138.709 83.709 138.709C63.4351 138.709 47 155.145 47 175.419C47 195.693 63.4352 212.128 83.709 212.128C91.6626 212.128 99.0246 209.597 105.036 205.299C105.011 205.321 104.987 205.344 104.962 205.366C105.148 205.224 105.336 205.085 105.521 204.945C105.652 204.848 105.782 204.75 105.912 204.651C135.627 182.407 146.744 193.071 169.687 217.925C169.646 217.855 169.605 217.785 169.564 217.716C182.857 236.542 204.783 248.838 229.581 248.838C270.129 248.838 303 215.967 303 175.419C303 136.241 272.312 104.23 233.663 102.112C233.656 102.112 233.649 102.112 233.643 102.111C232.784 102.065 231.921 102.033 231.055 102.016C230.981 102.014 230.908 102.013 230.834 102.012C230.417 102.005 230 102 229.581 102H229.557Z",
3169
3284
  fill: "currentColor"
3170
3285
  }, null, -1)
3171
- ])], 8, Ro));
3286
+ ])], 8, Wo));
3172
3287
  }
3173
- }), Fo = /* @__PURE__ */ L(No, [["__scopeId", "data-v-7f65507a"]]), Uo = { class: "ds-sidebar__header" }, jo = { class: "ds-sidebar__nav" }, qo = { class: "ds-sidebar__footer" }, Ko = {
3288
+ }), Yo = /* @__PURE__ */ L(Go, [["__scopeId", "data-v-7f65507a"]]), Xo = { class: "ds-sidebar__header" }, Zo = ["src"], Qo = { class: "ds-sidebar__nav" }, Jo = { class: "ds-sidebar__footer" }, ei = {
3174
3289
  key: 0,
3175
3290
  class: "ds-sidebar__divider-line"
3176
- }, Ho = {
3291
+ }, ti = {
3177
3292
  key: 1,
3178
3293
  class: "ds-sidebar__child"
3179
- }, Wo = { class: "ds-sidebar__child-dropdown" }, Go = { class: "ds-sidebar__child-items" }, Yo = ["onClick"], Xo = /* @__PURE__ */ A({
3294
+ }, ai = { class: "ds-sidebar__child-dropdown" }, si = { class: "ds-sidebar__child-items" }, li = ["onClick"], ni = /* @__PURE__ */ A({
3180
3295
  __name: "SidebarNav",
3181
3296
  props: {
3182
3297
  navigation: { default: () => [] },
@@ -3191,119 +3306,127 @@ const We = A({
3191
3306
  },
3192
3307
  emits: ["navigate"],
3193
3308
  setup(e, { emit: s }) {
3194
- const t = e, l = s, i = P(""), o = P(!1);
3195
- ee(() => t.activeId, (_) => {
3196
- var k, M;
3197
- if (_) {
3198
- for (const B of t.navigation) {
3199
- if (B.id === _) {
3200
- i.value = B.id, o.value = !!(B.children && B.children.length > 0);
3309
+ const t = e, l = s, i = M(""), o = M(!1);
3310
+ ee(() => t.activeId, (p) => {
3311
+ var P, I;
3312
+ if (p) {
3313
+ for (const $ of t.navigation) {
3314
+ if ($.id === p) {
3315
+ i.value = $.id, o.value = !!($.children && $.children.length > 0);
3201
3316
  return;
3202
3317
  }
3203
- if ((k = B.children) != null && k.some((V) => V.id === _)) {
3204
- i.value = B.id, o.value = !0;
3318
+ if ((P = $.children) != null && P.some((U) => U.id === p)) {
3319
+ i.value = $.id, o.value = !0;
3205
3320
  return;
3206
3321
  }
3207
3322
  }
3208
- for (const B of t.footer) {
3209
- if (B.id === _) {
3210
- i.value = B.id, o.value = !!(B.children && B.children.length > 0);
3323
+ for (const $ of t.footer) {
3324
+ if ($.id === p) {
3325
+ i.value = $.id, o.value = !!($.children && $.children.length > 0);
3211
3326
  return;
3212
3327
  }
3213
- if ((M = B.children) != null && M.some((V) => V.id === _)) {
3214
- i.value = B.id, o.value = !0;
3328
+ if ((I = $.children) != null && I.some((U) => U.id === p)) {
3329
+ i.value = $.id, o.value = !0;
3215
3330
  return;
3216
3331
  }
3217
3332
  }
3218
3333
  }
3219
3334
  }, { immediate: !0 });
3220
- const r = g(() => i.value && (t.navigation.find((_) => _.id === i.value) || t.footer.find((_) => _.id === i.value)) || null);
3221
- function c(_) {
3222
- if (t.navigation.some((M) => M.id === _) || t.footer.some((M) => M.id === _)) {
3223
- i.value = _;
3224
- const M = [...t.navigation, ...t.footer].find((B) => B.id === _);
3225
- o.value = !!(M != null && M.children && M.children.length > 0);
3335
+ const d = _(() => i.value && (t.navigation.find((p) => p.id === i.value) || t.footer.find((p) => p.id === i.value)) || null);
3336
+ function c(p) {
3337
+ if (t.navigation.some((I) => I.id === p) || t.footer.some((I) => I.id === p)) {
3338
+ i.value = p;
3339
+ const I = [...t.navigation, ...t.footer].find(($) => $.id === p);
3340
+ o.value = !!(I != null && I.children && I.children.length > 0);
3226
3341
  }
3227
- l("navigate", _);
3342
+ l("navigate", p);
3228
3343
  }
3229
- function d(_) {
3230
- c(_.value);
3344
+ function r(p) {
3345
+ c(p.value);
3231
3346
  }
3232
3347
  function v() {
3233
3348
  o.value = !o.value;
3234
3349
  }
3235
- function u(_) {
3236
- var k;
3237
- return !!(_.id === t.activeId || (k = _.children) != null && k.some((M) => M.id === t.activeId));
3238
- }
3239
- const h = g(() => (t.navigation || []).map((_) => ({
3240
- id: _.id,
3241
- label: _.label,
3242
- value: _.id
3243
- })));
3244
- return (_, k) => {
3245
- var M, B, V, H;
3350
+ function u(p) {
3351
+ var P;
3352
+ return !!(p.id === t.activeId || (P = p.children) != null && P.some((I) => I.id === t.activeId));
3353
+ }
3354
+ const b = _(() => (t.navigation || []).map((p) => ({
3355
+ id: p.id,
3356
+ label: p.label,
3357
+ value: p.id
3358
+ }))), V = _(() => {
3359
+ var P;
3360
+ const p = (P = t.brand) == null ? void 0 : P.icon;
3361
+ return p ? p.startsWith("data:") || p.startsWith("http") || p.startsWith("/") : !1;
3362
+ });
3363
+ return (p, P) => {
3364
+ var I, $, U, z;
3246
3365
  return a(), n("div", {
3247
3366
  class: S(["ds-sidebar-container", { "ds-sidebar-container--child-closed": !o.value }])
3248
3367
  }, [
3249
3368
  m("aside", {
3250
3369
  class: S(["ds-sidebar", { "ds-sidebar--collapsed": e.collapsed }])
3251
3370
  }, [
3252
- m("div", Uo, [
3253
- e.brand.icon ? (a(), T(Fo, {
3371
+ m("div", Xo, [
3372
+ V.value ? (a(), n("img", {
3254
3373
  key: 0,
3374
+ src: e.brand.icon,
3375
+ class: "ds-sidebar__logo-image"
3376
+ }, null, 8, Zo)) : e.brand.icon ? (a(), E(Yo, {
3377
+ key: 1,
3255
3378
  size: 24,
3256
3379
  class: "ds-sidebar__logo-icon"
3257
3380
  })) : f("", !0),
3258
- e.brand.title ? (a(), T(G, {
3259
- key: 1,
3381
+ e.brand.title ? (a(), E(G, {
3382
+ key: 2,
3260
3383
  variant: "body-md",
3261
3384
  class: "ds-sidebar__brand-title"
3262
3385
  }, {
3263
- default: U(() => [
3386
+ default: j(() => [
3264
3387
  Y(C(e.brand.title), 1)
3265
3388
  ]),
3266
3389
  _: 1
3267
3390
  })) : f("", !0)
3268
3391
  ]),
3269
- m("nav", jo, [
3270
- (a(!0), n(j, null, W(e.navigation, (w) => (a(), T(xe, {
3271
- key: w.id,
3272
- text: w.label,
3392
+ m("nav", Qo, [
3393
+ (a(!0), n(q, null, W(e.navigation, (y) => (a(), E(xe, {
3394
+ key: y.id,
3395
+ text: y.label,
3273
3396
  position: "end"
3274
3397
  }, {
3275
- default: U(() => [
3276
- x(fe, {
3277
- label: w.label,
3278
- icon: w.icon || "menu",
3279
- active: u(w),
3280
- onClick: (I) => c(w.id)
3398
+ default: j(() => [
3399
+ w(ve, {
3400
+ label: y.label,
3401
+ icon: y.icon || "menu",
3402
+ active: u(y),
3403
+ onClick: (O) => c(y.id)
3281
3404
  }, null, 8, ["label", "icon", "active", "onClick"])
3282
3405
  ]),
3283
3406
  _: 2
3284
3407
  }, 1032, ["text"]))), 128))
3285
3408
  ]),
3286
- m("div", qo, [
3287
- (a(!0), n(j, null, W(e.footer, (w) => (a(), T(xe, {
3288
- key: w.id,
3289
- text: w.label,
3409
+ m("div", Jo, [
3410
+ (a(!0), n(q, null, W(e.footer, (y) => (a(), E(xe, {
3411
+ key: y.id,
3412
+ text: y.label,
3290
3413
  position: "end"
3291
3414
  }, {
3292
- default: U(() => [
3293
- x(fe, {
3294
- label: w.label,
3295
- icon: w.icon || "settings",
3296
- active: u(w),
3297
- onClick: (I) => c(w.id)
3415
+ default: j(() => [
3416
+ w(ve, {
3417
+ label: y.label,
3418
+ icon: y.icon || "settings",
3419
+ active: u(y),
3420
+ onClick: (O) => c(y.id)
3298
3421
  }, null, 8, ["label", "icon", "active", "onClick"])
3299
3422
  ]),
3300
3423
  _: 2
3301
3424
  }, 1032, ["text"]))), 128)),
3302
- (M = e.profile) != null && M.enabled ? (a(), T(Fe, {
3425
+ (I = e.profile) != null && I.enabled ? (a(), E(Fe, {
3303
3426
  key: 0,
3304
3427
  class: "ds-sidebar__divider"
3305
3428
  })) : f("", !0),
3306
- (B = e.profile) != null && B.enabled ? (a(), T(Ge, {
3429
+ ($ = e.profile) != null && $.enabled ? (a(), E(Ge, {
3307
3430
  key: 1,
3308
3431
  name: e.userName,
3309
3432
  role: e.userRole,
@@ -3311,7 +3434,7 @@ const We = A({
3311
3434
  collapsed: !0,
3312
3435
  icon: "more"
3313
3436
  }, null, 8, ["name", "role", "avatar"])) : f("", !0),
3314
- x(qe, {
3437
+ w(qe, {
3315
3438
  icon: o.value ? "minimize-2" : "maximize-2",
3316
3439
  variant: "ghost",
3317
3440
  class: "ds-sidebar__child-toggle",
@@ -3319,43 +3442,43 @@ const We = A({
3319
3442
  }, null, 8, ["icon"])
3320
3443
  ])
3321
3444
  ], 2),
3322
- o.value ? (a(), n("div", Ko)) : f("", !0),
3323
- o.value ? (a(), n("div", Ho, [
3324
- m("div", Wo, [
3325
- x(Be, {
3326
- items: h.value,
3327
- label: ((V = r.value) == null ? void 0 : V.label) || "",
3445
+ o.value ? (a(), n("div", ei)) : f("", !0),
3446
+ o.value ? (a(), n("div", ti, [
3447
+ m("div", ai, [
3448
+ w(Ve, {
3449
+ items: b.value,
3450
+ label: ((U = d.value) == null ? void 0 : U.label) || "",
3328
3451
  icon: "chevron-down",
3329
- onSelect: d
3452
+ onSelect: r
3330
3453
  }, null, 8, ["items", "label"])
3331
3454
  ]),
3332
- m("div", Go, [
3333
- (a(!0), n(j, null, W((H = r.value) == null ? void 0 : H.children, (w) => (a(), n("div", {
3334
- key: w.id,
3335
- class: S(["ds-sidebar__child-item", { "ds-sidebar__child-item--active": e.activeId === w.id }]),
3336
- onClick: (I) => c(w.id)
3455
+ m("div", si, [
3456
+ (a(!0), n(q, null, W((z = d.value) == null ? void 0 : z.children, (y) => (a(), n("div", {
3457
+ key: y.id,
3458
+ class: S(["ds-sidebar__child-item", { "ds-sidebar__child-item--active": e.activeId === y.id }]),
3459
+ onClick: (O) => c(y.id)
3337
3460
  }, [
3338
- x(N, {
3339
- name: w.icon || "menu",
3461
+ w(N, {
3462
+ name: y.icon || "menu",
3340
3463
  size: "sm",
3341
3464
  class: "ds-sidebar__child-item-icon"
3342
3465
  }, null, 8, ["name"]),
3343
- x(G, {
3466
+ w(G, {
3344
3467
  variant: "body-md",
3345
3468
  class: "ds-sidebar__child-item-label"
3346
3469
  }, {
3347
- default: U(() => [
3348
- Y(C(w.label), 1)
3470
+ default: j(() => [
3471
+ Y(C(y.label), 1)
3349
3472
  ]),
3350
3473
  _: 2
3351
3474
  }, 1024)
3352
- ], 10, Yo))), 128))
3475
+ ], 10, li))), 128))
3353
3476
  ])
3354
3477
  ])) : f("", !0)
3355
3478
  ], 2);
3356
3479
  };
3357
3480
  }
3358
- }), Zo = /* @__PURE__ */ L(Xo, [["__scopeId", "data-v-4cbc3e88"]]), Jo = ["aria-checked", "onClick"], Qo = { key: 1 }, ei = /* @__PURE__ */ A({
3481
+ }), oi = /* @__PURE__ */ L(ni, [["__scopeId", "data-v-9bcfc2fe"]]), ii = ["aria-checked", "onClick"], ci = { key: 1 }, di = /* @__PURE__ */ A({
3359
3482
  __name: "ActionToggle",
3360
3483
  props: {
3361
3484
  options: {},
@@ -3363,41 +3486,41 @@ const We = A({
3363
3486
  },
3364
3487
  emits: ["update:modelValue"],
3365
3488
  setup(e, { emit: s }) {
3366
- tt((r) => ({
3367
- v142bb2c5: r.options.length,
3368
- bdc18452: r.modelValue
3489
+ tt((d) => ({
3490
+ v142bb2c5: d.options.length,
3491
+ bdc18452: d.modelValue
3369
3492
  }));
3370
3493
  const t = e, l = s;
3371
- function i(r) {
3372
- l("update:modelValue", r);
3494
+ function i(d) {
3495
+ l("update:modelValue", d);
3373
3496
  }
3374
- function o(r) {
3375
- r.key === "ArrowRight" || r.key === "ArrowDown" ? (r.preventDefault(), i((t.modelValue + 1) % t.options.length)) : (r.key === "ArrowLeft" || r.key === "ArrowUp") && (r.preventDefault(), i((t.modelValue - 1 + t.options.length) % t.options.length));
3497
+ function o(d) {
3498
+ d.key === "ArrowRight" || d.key === "ArrowDown" ? (d.preventDefault(), i((t.modelValue + 1) % t.options.length)) : (d.key === "ArrowLeft" || d.key === "ArrowUp") && (d.preventDefault(), i((t.modelValue - 1 + t.options.length) % t.options.length));
3376
3499
  }
3377
- return (r, c) => (a(), n("div", {
3500
+ return (d, c) => (a(), n("div", {
3378
3501
  class: "ds-action-toggle",
3379
3502
  tabindex: "0",
3380
3503
  role: "radiogroup",
3381
3504
  onKeydown: o
3382
3505
  }, [
3383
3506
  c[0] || (c[0] = m("div", { class: "ds-action-toggle__thumb" }, null, -1)),
3384
- (a(!0), n(j, null, W(e.options, (d, v) => (a(), n("div", {
3507
+ (a(!0), n(q, null, W(e.options, (r, v) => (a(), n("div", {
3385
3508
  key: v,
3386
3509
  class: S(["ds-action-toggle__option", { "ds-action-toggle__option--active": e.modelValue === v }]),
3387
3510
  role: "radio",
3388
3511
  "aria-checked": e.modelValue === v,
3389
3512
  onClick: X((u) => i(v), ["stop"])
3390
3513
  }, [
3391
- d.icon ? (a(), T(N, {
3514
+ r.icon ? (a(), E(N, {
3392
3515
  key: 0,
3393
- name: d.icon,
3516
+ name: r.icon,
3394
3517
  size: "md"
3395
3518
  }, null, 8, ["name"])) : f("", !0),
3396
- d.label ? (a(), n("span", Qo, C(d.label), 1)) : f("", !0)
3397
- ], 10, Jo))), 128))
3519
+ r.label ? (a(), n("span", ci, C(r.label), 1)) : f("", !0)
3520
+ ], 10, ii))), 128))
3398
3521
  ], 32));
3399
3522
  }
3400
- }), ti = /* @__PURE__ */ L(ei, [["__scopeId", "data-v-30aa8411"]]), ai = ["disabled"], si = { key: 1 }, li = /* @__PURE__ */ A({
3523
+ }), ri = /* @__PURE__ */ L(di, [["__scopeId", "data-v-30aa8411"]]), ui = ["disabled"], mi = { key: 1 }, fi = /* @__PURE__ */ A({
3401
3524
  __name: "ToggleButton",
3402
3525
  props: {
3403
3526
  offLabel: {},
@@ -3410,7 +3533,7 @@ const We = A({
3410
3533
  },
3411
3534
  emits: ["update:modelValue"],
3412
3535
  setup(e, { emit: s }) {
3413
- const t = e, l = s, i = g(() => t.modelValue ? t.onLabel : t.offLabel), o = g(() => t.modelValue ? t.onIcon : t.offIcon), r = g(() => {
3536
+ const t = e, l = s, i = _(() => t.modelValue ? t.onLabel : t.offLabel), o = _(() => t.modelValue ? t.onIcon : t.offIcon), d = _(() => {
3414
3537
  switch (t.size) {
3415
3538
  case "sm":
3416
3539
  return "sm";
@@ -3421,7 +3544,7 @@ const We = A({
3421
3544
  default:
3422
3545
  return "md";
3423
3546
  }
3424
- }), c = g(() => [
3547
+ }), c = _(() => [
3425
3548
  "ds-toggle-btn",
3426
3549
  `ds-toggle-btn--${t.size}`,
3427
3550
  {
@@ -3430,32 +3553,32 @@ const We = A({
3430
3553
  "ds-toggle-btn--icon-only": !i.value && !!o.value
3431
3554
  }
3432
3555
  ]);
3433
- function d() {
3556
+ function r() {
3434
3557
  t.disabled || l("update:modelValue", !t.modelValue);
3435
3558
  }
3436
3559
  return (v, u) => (a(), n("button", {
3437
3560
  class: S(c.value),
3438
3561
  disabled: e.disabled,
3439
- onClick: d
3562
+ onClick: r
3440
3563
  }, [
3441
- o.value ? (a(), T(N, {
3564
+ o.value ? (a(), E(N, {
3442
3565
  key: 0,
3443
3566
  name: o.value,
3444
- size: r.value
3567
+ size: d.value
3445
3568
  }, null, 8, ["name", "size"])) : f("", !0),
3446
- i.value ? (a(), n("span", si, C(i.value), 1)) : f("", !0)
3447
- ], 10, ai));
3569
+ i.value ? (a(), n("span", mi, C(i.value), 1)) : f("", !0)
3570
+ ], 10, ui));
3448
3571
  }
3449
- }), ni = /* @__PURE__ */ L(li, [["__scopeId", "data-v-41d7a903"]]), oi = ["aria-label", "onClick"], ii = { key: 1 }, ci = ["aria-label", "aria-pressed"], ri = ["src", "alt"], di = { class: "ds-swipe-item__body" }, ui = {
3572
+ }), vi = /* @__PURE__ */ L(fi, [["__scopeId", "data-v-41d7a903"]]), pi = ["aria-label", "onClick"], bi = { key: 1 }, hi = ["aria-label", "aria-pressed"], gi = ["src", "alt"], _i = { class: "ds-swipe-item__body" }, yi = {
3450
3573
  key: 0,
3451
3574
  class: "ds-swipe-item__title"
3452
- }, mi = {
3575
+ }, ki = {
3453
3576
  key: 1,
3454
3577
  class: "ds-swipe-item__description"
3455
- }, fi = {
3578
+ }, wi = {
3456
3579
  key: 2,
3457
3580
  class: "ds-swipe-item__timestamp"
3458
- }, ye = 92, vi = 0.3, pi = /* @__PURE__ */ A({
3581
+ }, ye = 92, $i = 0.3, Ci = /* @__PURE__ */ A({
3459
3582
  __name: "SwipeItem",
3460
3583
  props: {
3461
3584
  id: {},
@@ -3472,57 +3595,57 @@ const We = A({
3472
3595
  },
3473
3596
  emits: ["action"],
3474
3597
  setup(e, { emit: s }) {
3475
- const t = e, l = s, i = P(0), o = P(0), r = P(!1), c = P(!1), d = P(0), v = g(
3598
+ const t = e, l = s, i = M(0), o = M(0), d = M(!1), c = M(!1), r = M(0), v = _(
3476
3599
  () => c.value ? 0 : Math.min(0, i.value + o.value)
3477
- ), u = g(() => c.value ? { transform: "translateX(-100%)" } : {
3600
+ ), u = _(() => c.value ? { transform: "translateX(-100%)" } : {
3478
3601
  transform: `translateX(${v.value}px)`,
3479
- transition: r.value ? "none" : void 0
3480
- }), h = g(
3602
+ transition: d.value ? "none" : void 0
3603
+ }), b = _(
3481
3604
  () => c.value ? { maxHeight: "0", marginBottom: "0", overflow: "hidden", pointerEvents: "none", opacity: "0" } : {}
3482
- ), _ = g(() => `${t.actions.length * ye}px`), k = {
3605
+ ), V = _(() => `${t.actions.length * ye}px`), p = {
3483
3606
  default: { bg: "var(--alert-default-bg)", fg: "var(--alert-default-icon)" },
3484
3607
  primary: { bg: "var(--color-primary-bg)", fg: "var(--color-primary)" },
3485
3608
  secondary: { bg: "var(--alert-secondary-bg)", fg: "var(--alert-secondary-icon)" },
3486
3609
  success: { bg: "var(--alert-success-bg)", fg: "var(--alert-success-icon)" },
3487
3610
  warning: { bg: "var(--alert-warning-bg)", fg: "var(--alert-warning-icon)" },
3488
3611
  danger: { bg: "var(--alert-danger-bg)", fg: "var(--alert-danger-icon)" }
3489
- }, M = g(() => k[t.variant].bg), B = g(() => k[t.variant].fg), V = g(() => k[t.variant].fg);
3490
- function H($) {
3491
- t.disabled || c.value || (r.value = !0, d.value = $.clientX, o.value = 0, $.currentTarget.setPointerCapture($.pointerId));
3492
- }
3493
- function w($) {
3494
- !r.value || t.disabled || (o.value = $.clientX - d.value);
3495
- }
3496
- function I($) {
3497
- var q;
3498
- if (!r.value) return;
3499
- r.value = !1, $.currentTarget.releasePointerCapture($.pointerId);
3500
- const b = Math.abs(v.value), D = ((q = $.currentTarget.parentElement) == null ? void 0 : q.offsetWidth) || 300;
3501
- if (b > D * vi) {
3612
+ }, P = _(() => p[t.variant].bg), I = _(() => p[t.variant].fg), $ = _(() => p[t.variant].fg);
3613
+ function U(x) {
3614
+ t.disabled || c.value || (d.value = !0, r.value = x.clientX, o.value = 0, x.currentTarget.setPointerCapture(x.pointerId));
3615
+ }
3616
+ function z(x) {
3617
+ !d.value || t.disabled || (o.value = x.clientX - r.value);
3618
+ }
3619
+ function y(x) {
3620
+ var K;
3621
+ if (!d.value) return;
3622
+ d.value = !1, x.currentTarget.releasePointerCapture(x.pointerId);
3623
+ const g = Math.abs(v.value), D = ((K = x.currentTarget.parentElement) == null ? void 0 : K.offsetWidth) || 300;
3624
+ if (g > D * $i) {
3502
3625
  i.value = -D, setTimeout(() => {
3503
3626
  c.value = !0, setTimeout(() => l("action", t.id, "__delete"), 300);
3504
3627
  }, 150);
3505
3628
  return;
3506
3629
  }
3507
- i.value = b > ye / 2 ? -ye * t.actions.length : 0, o.value = 0;
3630
+ i.value = g > ye / 2 ? -ye * t.actions.length : 0, o.value = 0;
3508
3631
  }
3509
3632
  function O() {
3510
- r.value = !1, i.value = 0, o.value = 0;
3633
+ d.value = !1, i.value = 0, o.value = 0;
3511
3634
  }
3512
- function p($) {
3513
- t.disabled || (($.key === "Delete" || $.key === "Backspace") && z(), $.key === "Escape" && (i.value = 0, o.value = 0));
3635
+ function h(x) {
3636
+ t.disabled || ((x.key === "Delete" || x.key === "Backspace") && B(), x.key === "Escape" && (i.value = 0, o.value = 0));
3514
3637
  }
3515
- function z() {
3638
+ function B() {
3516
3639
  c.value = !0, setTimeout(() => l("action", t.id, "__delete"), 300);
3517
3640
  }
3518
- function y($) {
3519
- if ($ === "__delete" || $ === "delete") {
3520
- z();
3641
+ function k(x) {
3642
+ if (x === "__delete" || x === "delete") {
3643
+ B();
3521
3644
  return;
3522
3645
  }
3523
- i.value = 0, l("action", t.id, $);
3646
+ i.value = 0, l("action", t.id, x);
3524
3647
  }
3525
- return ($, b) => (a(), n("div", {
3648
+ return (x, g) => (a(), n("div", {
3526
3649
  class: S([
3527
3650
  "ds-swipe-item",
3528
3651
  `ds-swipe-item--${e.variant}`,
@@ -3530,48 +3653,48 @@ const We = A({
3530
3653
  e.read && "ds-swipe-item--read",
3531
3654
  c.value && "ds-swipe-item--deleting"
3532
3655
  ]),
3533
- style: Q(h.value)
3656
+ style: J(b.value)
3534
3657
  }, [
3535
3658
  e.unread ? (a(), n("span", {
3536
3659
  key: 0,
3537
3660
  class: "ds-swipe-item__unread-bar",
3538
- style: Q({ backgroundColor: V.value, opacity: e.read ? 0.3 : 1 }),
3661
+ style: J({ backgroundColor: $.value, opacity: e.read ? 0.3 : 1 }),
3539
3662
  "aria-hidden": "true"
3540
3663
  }, null, 4)) : f("", !0),
3541
3664
  e.actions.length > 0 ? (a(), n("div", {
3542
3665
  key: 1,
3543
3666
  class: "ds-swipe-item__actions",
3544
- style: Q({ width: _.value })
3667
+ style: J({ width: V.value })
3545
3668
  }, [
3546
- (a(!0), n(j, null, W(e.actions, (D) => (a(), n("button", {
3669
+ (a(!0), n(q, null, W(e.actions, (D) => (a(), n("button", {
3547
3670
  key: D.id,
3548
3671
  class: S(["ds-swipe-item__action-btn", `ds-swipe-item__action-btn--${D.variant || "secondary"}`]),
3549
3672
  "aria-label": D.label,
3550
- onClick: (q) => y(D.id)
3673
+ onClick: (K) => k(D.id)
3551
3674
  }, [
3552
- D.icon ? (a(), T(N, {
3675
+ D.icon ? (a(), E(N, {
3553
3676
  key: 0,
3554
3677
  name: D.icon,
3555
3678
  size: "sm"
3556
- }, null, 8, ["name"])) : (a(), n("span", ii, C(D.label), 1))
3557
- ], 10, oi))), 128))
3679
+ }, null, 8, ["name"])) : (a(), n("span", bi, C(D.label), 1))
3680
+ ], 10, pi))), 128))
3558
3681
  ], 4)) : f("", !0),
3559
3682
  m("div", {
3560
- class: S(["ds-swipe-item__content", r.value && "ds-swipe-item__content--dragging"]),
3561
- style: Q(u.value),
3683
+ class: S(["ds-swipe-item__content", d.value && "ds-swipe-item__content--dragging"]),
3684
+ style: J(u.value),
3562
3685
  tabindex: "0",
3563
3686
  role: "button",
3564
3687
  "aria-label": e.title,
3565
3688
  "aria-pressed": !e.unread || e.read,
3566
- onPointerdown: H,
3567
- onPointermove: w,
3568
- onPointerup: I,
3689
+ onPointerdown: U,
3690
+ onPointermove: z,
3691
+ onPointerup: y,
3569
3692
  onPointercancel: O,
3570
- onKeydown: p
3693
+ onKeydown: h
3571
3694
  }, [
3572
3695
  m("span", {
3573
3696
  class: "ds-swipe-item__icon-bg",
3574
- style: Q({ backgroundColor: M.value, color: B.value })
3697
+ style: J({ backgroundColor: P.value, color: I.value })
3575
3698
  }, [
3576
3699
  e.image ? (a(), n("img", {
3577
3700
  key: 0,
@@ -3579,28 +3702,28 @@ const We = A({
3579
3702
  alt: e.title || "",
3580
3703
  class: "ds-swipe-item__image",
3581
3704
  loading: "lazy"
3582
- }, null, 8, ri)) : e.icon ? (a(), T(N, {
3705
+ }, null, 8, gi)) : e.icon ? (a(), E(N, {
3583
3706
  key: 1,
3584
3707
  name: e.icon,
3585
3708
  size: "sm",
3586
3709
  class: "ds-swipe-item__icon"
3587
3710
  }, null, 8, ["name"])) : f("", !0)
3588
3711
  ], 4),
3589
- m("span", di, [
3590
- e.title ? (a(), n("span", ui, C(e.title), 1)) : f("", !0),
3591
- e.description ? (a(), n("span", mi, C(e.description), 1)) : f("", !0),
3592
- e.timestamp ? (a(), n("span", fi, [
3593
- x(N, {
3712
+ m("span", _i, [
3713
+ e.title ? (a(), n("span", yi, C(e.title), 1)) : f("", !0),
3714
+ e.description ? (a(), n("span", ki, C(e.description), 1)) : f("", !0),
3715
+ e.timestamp ? (a(), n("span", wi, [
3716
+ w(N, {
3594
3717
  name: "clock",
3595
3718
  size: "xs"
3596
3719
  }),
3597
3720
  Y(" " + C(e.timestamp), 1)
3598
3721
  ])) : f("", !0)
3599
3722
  ])
3600
- ], 46, ci)
3723
+ ], 46, hi)
3601
3724
  ], 6));
3602
3725
  }
3603
- }), bi = /* @__PURE__ */ L(pi, [["__scopeId", "data-v-4f08a415"]]), hi = { class: "ds-notification-panel" }, gi = { class: "ds-notification-panel__list" }, _i = /* @__PURE__ */ A({
3726
+ }), xi = /* @__PURE__ */ L(Ci, [["__scopeId", "data-v-4f08a415"]]), Si = { class: "ds-notification-panel" }, Ii = { class: "ds-notification-panel__list" }, Vi = /* @__PURE__ */ A({
3604
3727
  __name: "NotificationPanel",
3605
3728
  props: {
3606
3729
  items: {},
@@ -3608,9 +3731,9 @@ const We = A({
3608
3731
  },
3609
3732
  emits: ["action", "view-more"],
3610
3733
  setup(e) {
3611
- return (s, t) => (a(), n("div", hi, [
3612
- m("div", gi, [
3613
- (a(!0), n(j, null, W(e.items, (l) => (a(), T(bi, Pe({
3734
+ return (s, t) => (a(), n("div", Si, [
3735
+ m("div", Ii, [
3736
+ (a(!0), n(q, null, W(e.items, (l) => (a(), E(xi, Pe({
3614
3737
  key: l.id
3615
3738
  }, { ref_for: !0 }, l, {
3616
3739
  onAction: t[0] || (t[0] = (i, o) => s.$emit("action", i, o))
@@ -3625,13 +3748,13 @@ const We = A({
3625
3748
  ])) : f("", !0)
3626
3749
  ]));
3627
3750
  }
3628
- }), yi = /* @__PURE__ */ L(_i, [["__scopeId", "data-v-a261dc59"]]), ki = { class: "ds-notification-bell__inner" }, wi = {
3751
+ }), Bi = /* @__PURE__ */ L(Vi, [["__scopeId", "data-v-a261dc59"]]), zi = { class: "ds-notification-bell__inner" }, Di = {
3629
3752
  key: 0,
3630
3753
  class: "ds-notification-bell__dot"
3631
- }, $i = {
3754
+ }, Ai = {
3632
3755
  key: 0,
3633
3756
  class: "ds-notification-bell__panel"
3634
- }, Ci = /* @__PURE__ */ A({
3757
+ }, Li = /* @__PURE__ */ A({
3635
3758
  __name: "NotificationBell",
3636
3759
  props: {
3637
3760
  unread: { type: Boolean, default: !1 },
@@ -3641,7 +3764,7 @@ const We = A({
3641
3764
  },
3642
3765
  emits: ["read", "action", "view-more"],
3643
3766
  setup(e, { emit: s }) {
3644
- const t = e, l = s, i = P(!1), o = P(null), r = g(() => {
3767
+ const t = e, l = s, i = M(!1), o = M(null), d = _(() => {
3645
3768
  switch (t.size) {
3646
3769
  case "sm":
3647
3770
  return "sm";
@@ -3656,20 +3779,20 @@ const We = A({
3656
3779
  function c() {
3657
3780
  i.value = !i.value, i.value && l("read");
3658
3781
  }
3659
- function d(u, h) {
3660
- l("action", u, h);
3782
+ function r(u, b) {
3783
+ l("action", u, b);
3661
3784
  }
3662
3785
  function v(u) {
3663
- const h = o.value;
3664
- if (!h) return;
3665
- const _ = u.target;
3666
- h.contains(_) || (i.value = !1);
3786
+ const b = o.value;
3787
+ if (!b) return;
3788
+ const V = u.target;
3789
+ b.contains(V) || (i.value = !1);
3667
3790
  }
3668
3791
  return te(() => {
3669
3792
  document.addEventListener("click", v);
3670
3793
  }), oe(() => {
3671
3794
  document.removeEventListener("click", v);
3672
- }), (u, h) => (a(), n("div", {
3795
+ }), (u, b) => (a(), n("div", {
3673
3796
  ref_key: "panelRef",
3674
3797
  ref: o,
3675
3798
  class: "ds-notification-bell"
@@ -3678,28 +3801,28 @@ const We = A({
3678
3801
  class: S(["ds-notification-bell__btn", `ds-notification-bell__btn--${e.size}`]),
3679
3802
  onClick: X(c, ["stop"])
3680
3803
  }, [
3681
- m("span", ki, [
3682
- x(N, {
3804
+ m("span", zi, [
3805
+ w(N, {
3683
3806
  name: "bell",
3684
- size: r.value
3807
+ size: d.value
3685
3808
  }, null, 8, ["size"]),
3686
- e.unread ? (a(), n("span", wi)) : f("", !0)
3809
+ e.unread ? (a(), n("span", Di)) : f("", !0)
3687
3810
  ])
3688
3811
  ], 2),
3689
- i.value && e.items.length ? (a(), n("div", $i, [
3690
- x(yi, {
3812
+ i.value && e.items.length ? (a(), n("div", Ai, [
3813
+ w(Bi, {
3691
3814
  items: e.items,
3692
3815
  "view-more-label": e.viewMoreLabel,
3693
- onAction: d,
3694
- onViewMore: h[0] || (h[0] = (_) => u.$emit("view-more"))
3816
+ onAction: r,
3817
+ onViewMore: b[0] || (b[0] = (V) => u.$emit("view-more"))
3695
3818
  }, null, 8, ["items", "view-more-label"])
3696
3819
  ])) : f("", !0)
3697
3820
  ], 512));
3698
3821
  }
3699
- }), xi = /* @__PURE__ */ L(Ci, [["__scopeId", "data-v-87e100f7"]]), Si = { class: "ds-page-title" }, Ii = { class: "ds-page-title__info" }, Bi = { class: "ds-page-title__title" }, Vi = {
3822
+ }), Ti = /* @__PURE__ */ L(Li, [["__scopeId", "data-v-87e100f7"]]), Ei = { class: "ds-page-title" }, Mi = { class: "ds-page-title__info" }, Pi = { class: "ds-page-title__title" }, Oi = {
3700
3823
  key: 0,
3701
3824
  class: "ds-page-title__subtitle"
3702
- }, zi = /* @__PURE__ */ A({
3825
+ }, Ri = /* @__PURE__ */ A({
3703
3826
  __name: "PageTitle",
3704
3827
  props: {
3705
3828
  title: {},
@@ -3709,12 +3832,12 @@ const We = A({
3709
3832
  },
3710
3833
  emits: ["action"],
3711
3834
  setup(e) {
3712
- return (s, t) => (a(), n("div", Si, [
3713
- m("div", Ii, [
3714
- m("h1", Bi, C(e.title), 1),
3715
- e.subtitle ? (a(), n("p", Vi, C(e.subtitle), 1)) : f("", !0)
3835
+ return (s, t) => (a(), n("div", Ei, [
3836
+ m("div", Mi, [
3837
+ m("h1", Pi, C(e.title), 1),
3838
+ e.subtitle ? (a(), n("p", Oi, C(e.subtitle), 1)) : f("", !0)
3716
3839
  ]),
3717
- e.btnLabel ? (a(), T(Z, {
3840
+ e.btnLabel ? (a(), E(Z, {
3718
3841
  key: 0,
3719
3842
  variant: "primary",
3720
3843
  icon: e.btnIcon,
@@ -3724,15 +3847,15 @@ const We = A({
3724
3847
  }, null, 8, ["icon", "label"])) : f("", !0)
3725
3848
  ]));
3726
3849
  }
3727
- }), Di = /* @__PURE__ */ L(zi, [["__scopeId", "data-v-0bc89876"]]);
3728
- function Fi() {
3729
- E.register("button", Z), E.register("input", ve), E.register("icon", N), E.register("text", G), E.register("divider", Fe), E.register("badge", Sa), E.register("avatar", de), E.register("select", Ce), E.register("multi-select", Ha), E.register("checkbox", me), E.register("switch", es), E.register("form-field", is), E.register("spacer", rs), E.register("textarea", ps), E.register("stack", hs), E.register("row", _s), E.register("grid", ks), E.register("section", Is), E.register("card", Ms), E.register("table", dn), E.register("table-cell", Ke), E.register("side-panel", ol), E.register("bulk-edit", Ue), E.register("search-box", gl), E.register("dropdown", Be), E.register("menu", je), E.register("menu-item", fe), E.register("tooltip", xe), E.register("popover", Dl), E.register("tabs", Ml), E.register("filter-bar", pn), E.register("pagination", _n), E.register("empty-state", Cn), E.register("loading-state", He), E.register("autocomplete", En), E.register("accordion", jn), E.register("alert", Qn), E.register("progress", oo), E.register("breadcrumb", vo), E.register("chip", _o), E.register("command-menu", Mo), E.register("sidebar", Zo), E.register("user-card", Ge), E.register("action-toggle", ti), E.register("toggle-button", ni), E.register("notification-bell", xi), E.register("page-title", Di);
3850
+ }), Ni = /* @__PURE__ */ L(Ri, [["__scopeId", "data-v-0bc89876"]]);
3851
+ function Xi() {
3852
+ T.register("button", Z), T.register("input", ue), T.register("icon", N), T.register("text", G), T.register("divider", Fe), T.register("badge", Sa), T.register("avatar", re), T.register("select", Ce), T.register("multi-select", Ha), T.register("checkbox", fe), T.register("switch", es), T.register("form-field", is), T.register("spacer", ds), T.register("textarea", ps), T.register("color-picker", gs), T.register("file-uploader", $s), T.register("stack", xs), T.register("row", Is), T.register("grid", Bs), T.register("section", Es), T.register("card", qs), T.register("table", gn), T.register("table-cell", Ke), T.register("side-panel", vl), T.register("bulk-edit", Ue), T.register("search-box", Sl), T.register("dropdown", Ve), T.register("menu", je), T.register("menu-item", ve), T.register("tooltip", xe), T.register("popover", Rl), T.register("tabs", ql), T.register("filter-bar", $n), T.register("pagination", In), T.register("empty-state", An), T.register("loading-state", He), T.register("autocomplete", jn), T.register("accordion", Zn), T.register("alert", io), T.register("progress", po), T.register("breadcrumb", wo), T.register("chip", Io), T.register("command-menu", qo), T.register("sidebar", oi), T.register("user-card", Ge), T.register("action-toggle", ri), T.register("toggle-button", vi), T.register("notification-bell", Ti), T.register("page-title", Ni);
3730
3853
  }
3731
3854
  function le(e, s) {
3732
3855
  return Object.entries(e || {}).map(([t, l]) => `${s}${t}: ${l};`).join(`
3733
3856
  `);
3734
3857
  }
3735
- function Ai(e) {
3858
+ function Fi(e) {
3736
3859
  var t;
3737
3860
  const s = (t = e.font) == null ? void 0 : t.faces;
3738
3861
  return !s || !s.length ? "" : s.map(
@@ -3749,13 +3872,13 @@ function Ai(e) {
3749
3872
 
3750
3873
  `;
3751
3874
  }
3752
- function Li(e) {
3753
- var v, u, h, _;
3754
- const s = [], t = Ai(e);
3875
+ function Ui(e) {
3876
+ var v, u, b, V;
3877
+ const s = [], t = Fi(e);
3755
3878
  t && s.push(t);
3756
3879
  const l = e.tokens, i = ((v = l.colors) == null ? void 0 : v.light) && Object.keys(l.colors.light).length, o = ((u = l.colors) == null ? void 0 : u.dark) && Object.keys(l.colors.dark).length;
3757
3880
  i && (s.push(":root {"), s.push(" color-scheme: light;"), s.push(le(l.colors.light, " ")), s.push("}"), s.push("")), o && (s.push('[data-theme="dark"] {'), s.push(" color-scheme: dark;"), s.push(le(l.colors.dark, " ")), s.push("}"), s.push(""));
3758
- const r = [
3881
+ const d = [
3759
3882
  ["spacing", "Spacing"],
3760
3883
  ["typography", "Typography"],
3761
3884
  ["radius", "Border Radius"],
@@ -3764,30 +3887,30 @@ function Li(e) {
3764
3887
  ["button", "Button"],
3765
3888
  ["alert", "Alert"]
3766
3889
  ];
3767
- for (const [k, M] of r) {
3768
- const B = l[k];
3769
- !B || !Object.keys(B).length || (s.push(`/* ${M} */`), s.push(":root {"), s.push(le(B, " ")), s.push("}"), s.push(""));
3890
+ for (const [p, P] of d) {
3891
+ const I = l[p];
3892
+ !I || !Object.keys(I).length || (s.push(`/* ${P} */`), s.push(":root {"), s.push(le(I, " ")), s.push("}"), s.push(""));
3770
3893
  }
3771
- const c = ((h = l.shadows) == null ? void 0 : h.light) && Object.keys(l.shadows.light).length, d = ((_ = l.shadows) == null ? void 0 : _.dark) && Object.keys(l.shadows.dark).length;
3772
- return c && (s.push(":root {"), s.push(" color-scheme: light;"), s.push(le(l.shadows.light, " ")), s.push("}"), s.push("")), d && (s.push('[data-theme="dark"] {'), s.push(" color-scheme: dark;"), s.push(le(l.shadows.dark, " ")), s.push("}"), s.push("")), s.join(`
3894
+ const c = ((b = l.shadows) == null ? void 0 : b.light) && Object.keys(l.shadows.light).length, r = ((V = l.shadows) == null ? void 0 : V.dark) && Object.keys(l.shadows.dark).length;
3895
+ return c && (s.push(":root {"), s.push(" color-scheme: light;"), s.push(le(l.shadows.light, " ")), s.push("}"), s.push("")), r && (s.push('[data-theme="dark"] {'), s.push(" color-scheme: dark;"), s.push(le(l.shadows.dark, " ")), s.push("}"), s.push("")), s.join(`
3773
3896
  `);
3774
3897
  }
3775
- function Ti(e) {
3898
+ function ji(e) {
3776
3899
  const s = e["theme-mappings"];
3777
3900
  if (!s) return "";
3778
3901
  const t = [];
3779
3902
  return t.push(":root {"), t.push(" color-scheme: light;"), s.light && t.push(le(s.light, " ")), t.push("}"), t.push(""), t.push('[data-theme="dark"] {'), t.push(" color-scheme: dark;"), s.dark && t.push(le(s.dark, " ")), t.push("}"), t.join(`
3780
3903
  `);
3781
3904
  }
3782
- function Ui(e) {
3783
- const s = [], t = Li(e);
3905
+ function Zi(e) {
3906
+ const s = [], t = Ui(e);
3784
3907
  t && s.push(t);
3785
- const l = Ti(e);
3908
+ const l = ji(e);
3786
3909
  return l && s.push(l), s.join(`
3787
3910
  `);
3788
3911
  }
3789
3912
  let Se = null;
3790
- function ji(e) {
3913
+ function Qi(e) {
3791
3914
  Se = e;
3792
3915
  }
3793
3916
  function pe() {
@@ -3795,48 +3918,48 @@ function pe() {
3795
3918
  throw new Error("Config not loaded. Call loadConfig() first.");
3796
3919
  return Se;
3797
3920
  }
3798
- function qi() {
3921
+ function Ji() {
3799
3922
  return pe().direction.default;
3800
3923
  }
3801
- function Ki() {
3924
+ function ec() {
3802
3925
  return pe().locale.default;
3803
3926
  }
3804
- function Hi() {
3927
+ function tc() {
3805
3928
  return pe().locale.supported;
3806
3929
  }
3807
- function Wi(e) {
3930
+ function ac(e) {
3808
3931
  var t, l;
3809
3932
  const s = pe().font;
3810
3933
  return e === "fa" && ((t = s.fa) != null && t.family) ? s.fa.family : (l = s.en) != null && l.family ? s.en.family : "IRANSansX";
3811
3934
  }
3812
- function Gi(e) {
3935
+ function sc(e) {
3813
3936
  return !e || typeof e != "object" ? !1 : typeof e.type == "string";
3814
3937
  }
3815
- function Ei(e) {
3938
+ function qi(e) {
3816
3939
  return {
3817
3940
  ...e,
3818
3941
  props: e.props || {},
3819
- children: e.children ? e.children.map(Ei) : void 0,
3942
+ children: e.children ? e.children.map(qi) : void 0,
3820
3943
  events: e.events || {}
3821
3944
  };
3822
3945
  }
3823
3946
  export {
3824
- Fi as bootstrapRegistry,
3825
- Ui as generateFullCSS,
3947
+ Xi as bootstrapRegistry,
3948
+ Zi as generateFullCSS,
3826
3949
  pe as getConfig,
3827
- Ki as getDefaultLocale,
3828
- qi as getDirection,
3829
- Wi as getFontFamily,
3830
- Hi as getSupportedLocales,
3831
- Mn as hasPermission,
3832
- ji as loadConfig,
3833
- Ei as normalizeSchema,
3834
- E as registry,
3835
- Ve as runtimeContext,
3950
+ ec as getDefaultLocale,
3951
+ Ji as getDirection,
3952
+ ac as getFontFamily,
3953
+ tc as getSupportedLocales,
3954
+ qn as hasPermission,
3955
+ Qi as loadConfig,
3956
+ qi as normalizeSchema,
3957
+ T as registry,
3958
+ Be as runtimeContext,
3836
3959
  Re as setLocale,
3837
- Ni as setUIDirection,
3838
- Ri as setUILocale,
3960
+ Yi as setUIDirection,
3961
+ Gi as setUILocale,
3839
3962
  F as t,
3840
3963
  Ne as useI18n,
3841
- Gi as validateSchema
3964
+ sc as validateSchema
3842
3965
  };