@flysk-tech/amocrm-kommo-vue-ui-kit 0.1.1 → 0.2.0

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,250 +1,250 @@
1
- import { ref as _, computed as k, readonly as A, provide as Oe, inject as Me, onMounted as j, onUnmounted as Ne, watch as G, onBeforeUnmount as dt, defineComponent as f, createElementBlock as b, openBlock as m, mergeProps as w, unref as n, createBlock as B, watchEffect as K, createElementVNode as $, normalizeClass as v, toDisplayString as T, createVNode as D, Fragment as ce, createCommentVNode as R, renderSlot as y, createTextVNode as z, useAttrs as mt, normalizeStyle as S, nextTick as Fe, withCtx as V, getCurrentInstance as pt, reactive as J, useSlots as ue, Teleport as Ge, renderList as ht, resolveDynamicComponent as de, createStaticVNode as X, toRef as me } from "vue";
2
- var W = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.ALTERNATIVE = "alternative", e))(W || {});
3
- const yn = "data-crm-ui-kit-theme", gn = "default", He = Symbol("theme-provider");
4
- function wn(e) {
5
- const r = _({
1
+ import { ref as k, computed as _, readonly as G, provide as st, inject as at, onMounted as te, onUnmounted as ct, watch as P, onBeforeUnmount as Yt, defineComponent as y, createElementBlock as v, openBlock as p, mergeProps as I, unref as r, createBlock as E, createElementVNode as T, normalizeClass as x, createTextVNode as L, renderSlot as $, createCommentVNode as A, toDisplayString as D, createVNode as M, Fragment as me, useAttrs as qt, normalizeStyle as V, nextTick as pe, withCtx as z, getCurrentInstance as ut, reactive as ie, useSlots as oe, Teleport as Ae, renderList as Ut, resolveDynamicComponent as Re, withModifiers as he, createStaticVNode as _e, toRef as De, watchEffect as dt } from "vue";
2
+ var ce = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.ALTERNATIVE = "alternative", e))(ce || {});
3
+ const zl = "data-crm-ui-kit-theme", Ll = "default", mt = Symbol("theme-provider");
4
+ function Pl(e) {
5
+ const o = k({
6
6
  mode: "light",
7
7
  customVariables: {},
8
8
  ...e
9
- }), t = k(() => r.value.mode === "dark" ? W.ALTERNATIVE : W.DEFAULT), i = (s) => {
10
- r.value = {
11
- ...r.value,
12
- ...s
13
- }, ye(r.value);
14
- }, o = (s) => {
15
- const c = s === W.ALTERNATIVE ? "dark" : "light";
16
- i({ mode: c });
9
+ }), i = _(() => o.value.mode === "dark" ? ce.ALTERNATIVE : ce.DEFAULT), t = (c) => {
10
+ o.value = {
11
+ ...o.value,
12
+ ...c
13
+ }, Fe(o.value);
14
+ }, n = (c) => {
15
+ const u = c === ce.ALTERNATIVE ? "dark" : "light";
16
+ t({ mode: u });
17
17
  }, l = () => {
18
- const s = r.value.mode === "light" ? "dark" : "light";
19
- i({ mode: s });
18
+ const c = o.value.mode === "light" ? "dark" : "light";
19
+ t({ mode: c });
20
20
  };
21
- ye(r.value);
22
- const a = {
23
- themeConfig: A(r),
24
- appearance: A(t),
25
- setTheme: i,
26
- setAppearance: o,
21
+ Fe(o.value);
22
+ const s = {
23
+ themeConfig: G(o),
24
+ appearance: G(i),
25
+ setTheme: t,
26
+ setAppearance: n,
27
27
  toggleTheme: l
28
28
  };
29
- return Oe(He, a), a;
29
+ return st(mt, s), s;
30
30
  }
31
- function qe() {
32
- const e = Me(He);
31
+ function pt() {
32
+ const e = at(mt);
33
33
  if (!e)
34
34
  throw new Error(
35
35
  "useTheme must be used within a component that has provideTheme() called in a parent component"
36
36
  );
37
37
  return e;
38
38
  }
39
- function ye(e) {
40
- typeof document > "u" || (document.documentElement.setAttribute("data-theme", e.mode), e.customVariables && Object.entries(e.customVariables).forEach(([r, t]) => {
41
- document.documentElement.style.setProperty(r, t);
39
+ function Fe(e) {
40
+ typeof document > "u" || (document.documentElement.setAttribute("data-theme", e.mode), e.customVariables && Object.entries(e.customVariables).forEach(([o, i]) => {
41
+ document.documentElement.style.setProperty(o, i);
42
42
  }));
43
43
  }
44
- function In() {
45
- const { themeConfig: e } = qe();
46
- return k(() => e.value.mode);
44
+ function Gl() {
45
+ const { themeConfig: e } = pt();
46
+ return _(() => e.value.mode);
47
47
  }
48
- function Cn() {
49
- const { themeConfig: e } = qe();
50
- return k(() => e.value.customVariables || {});
48
+ function Nl() {
49
+ const { themeConfig: e } = pt();
50
+ return _(() => e.value.customVariables || {});
51
51
  }
52
- function bt(e, r) {
53
- const t = typeof r == "object" && "value" in r ? r : k(() => r), i = k(() => {
52
+ function jt(e, o) {
53
+ const i = typeof o == "object" && "value" in o ? o : _(() => o), t = _(() => {
54
54
  const l = {};
55
- return Object.entries(t.value).forEach(([a, s]) => {
56
- const c = `--crm-ui-kit-${e}-${a}`;
57
- l[c] = String(s);
55
+ return Object.entries(i.value).forEach(([s, c]) => {
56
+ const u = `--crm-ui-kit-${e}-${s}`;
57
+ l[u] = String(c);
58
58
  }), l;
59
- }), o = k(() => {
59
+ }), n = _(() => {
60
60
  const l = {};
61
- return Object.entries(i.value).forEach(([a, s]) => {
62
- l[a] = s;
61
+ return Object.entries(t.value).forEach(([s, c]) => {
62
+ l[s] = c;
63
63
  }), l;
64
64
  });
65
65
  return {
66
- cssVariables: A(i),
67
- styleVars: A(o)
66
+ cssVariables: G(t),
67
+ styleVars: G(n)
68
68
  };
69
69
  }
70
- function $n(e, r) {
71
- return function(i) {
72
- const o = k(() => ({
73
- ...r,
74
- ...i
70
+ function Fl(e, o) {
71
+ return function(t) {
72
+ const n = _(() => ({
73
+ ...o,
74
+ ...t
75
75
  }));
76
- return bt(e, o);
76
+ return jt(e, n);
77
77
  };
78
78
  }
79
- function pe(e) {
80
- const r = _(), t = _(!1), i = (o) => {
79
+ function Be(e) {
80
+ const o = k(), i = k(!1), t = (n) => {
81
81
  if (typeof document > "u") return null;
82
- let l = document.querySelector(o);
83
- return l || (l = document.createElement("div"), l.setAttribute("id", o.replace("#", "")), document.body.appendChild(l)), l;
82
+ let l = document.querySelector(n);
83
+ return l || (l = document.createElement("div"), l.setAttribute("id", n.replace("#", "")), document.body.appendChild(l)), l;
84
84
  };
85
- return j(() => {
86
- typeof document > "u" || (e ? r.value = i(e) || document.body : r.value = document.body, t.value = !0);
87
- }), Ne(() => {
88
- e && r.value && r.value !== document.body && r.value.children.length === 0 && r.value.remove();
85
+ return te(() => {
86
+ typeof document > "u" || (e ? o.value = t(e) || document.body : o.value = document.body, i.value = !0);
87
+ }), ct(() => {
88
+ e && o.value && o.value !== document.body && o.value.children.length === 0 && o.value.remove();
89
89
  }), {
90
- portalTarget: A(r),
91
- isReady: A(t)
90
+ portalTarget: G(o),
91
+ isReady: G(i)
92
92
  };
93
93
  }
94
- function Tn(e = "amocrm-portal") {
94
+ function Hl(e = "amocrm-portal") {
95
95
  return `${e}-${Math.random().toString(36).substr(2, 9)}`;
96
96
  }
97
- const he = {
97
+ const Ve = {
98
98
  MODAL: "#amocrm-modal-portal",
99
99
  TOOLTIP: "#amocrm-tooltip-portal",
100
100
  DROPDOWN: "#amocrm-dropdown-portal",
101
101
  NOTIFICATION: "#amocrm-notification-portal"
102
102
  };
103
- function Rn() {
104
- return pe(he.MODAL);
103
+ function Yl() {
104
+ return Be(Ve.MODAL);
105
105
  }
106
- function Sn() {
107
- return pe(he.TOOLTIP);
106
+ function ql() {
107
+ return Be(Ve.TOOLTIP);
108
108
  }
109
- function Dn() {
110
- return pe(he.DROPDOWN);
109
+ function Ul() {
110
+ return Be(Ve.DROPDOWN);
111
111
  }
112
- function _t(e, r = []) {
113
- const t = _(e), i = _(null), o = _(!1), l = k(() => i.value === null), a = () => {
114
- for (const d of r) {
115
- const p = d(t.value);
116
- if (p !== !0)
117
- return i.value = p, !1;
112
+ function Kt(e, o = []) {
113
+ const i = k(e), t = k(null), n = k(!1), l = _(() => t.value === null), s = () => {
114
+ for (const d of o) {
115
+ const h = d(i.value);
116
+ if (h !== !0)
117
+ return t.value = h, !1;
118
118
  }
119
- return i.value = null, !0;
120
- }, s = () => {
121
- i.value = null;
119
+ return t.value = null, !0;
122
120
  }, c = () => {
123
- o.value = !0;
121
+ t.value = null;
122
+ }, u = () => {
123
+ n.value = !0;
124
124
  };
125
125
  return {
126
- value: t,
127
- error: A(i),
128
- isValid: A(l),
129
- isDirty: A(o),
130
- validate: a,
131
- clearError: s,
132
- touch: c
126
+ value: i,
127
+ error: G(t),
128
+ isValid: G(l),
129
+ isDirty: G(n),
130
+ validate: s,
131
+ clearError: c,
132
+ touch: u
133
133
  };
134
134
  }
135
- function An(e, r = {}) {
136
- const t = {}, i = _({});
137
- Object.keys(e).forEach((u) => {
138
- const h = r[u] || [];
139
- t[u] = _t(e[u], h);
135
+ function jl(e, o = {}) {
136
+ const i = {}, t = k({});
137
+ Object.keys(e).forEach((a) => {
138
+ const m = o[a] || [];
139
+ i[a] = Kt(e[a], m);
140
140
  });
141
- const o = k(() => Object.values(t).every((u) => u.isValid.value)), l = k(() => Object.values(t).some((u) => u.error.value !== null)), a = (u) => {
142
- const h = t[u];
143
- if (!h) return !0;
144
- const I = h.validate();
145
- return !I && h.error.value ? i.value[u] = h.error.value : delete i.value[u], I;
146
- }, s = () => {
147
- let u = !0;
148
- const h = {};
149
- return Object.keys(t).forEach((I) => {
150
- !a(I) && t[I].error.value && (h[I] = t[I].error.value, u = !1);
151
- }), i.value = h, u;
141
+ const n = _(() => Object.values(i).every((a) => a.isValid.value)), l = _(() => Object.values(i).some((a) => a.error.value !== null)), s = (a) => {
142
+ const m = i[a];
143
+ if (!m) return !0;
144
+ const b = m.validate();
145
+ return !b && m.error.value ? t.value[a] = m.error.value : delete t.value[a], b;
152
146
  }, c = () => {
153
- Object.values(t).forEach((u) => u.clearError()), i.value = {};
154
- }, d = (u) => {
155
- var h;
156
- (h = t[u]) == null || h.clearError(), delete i.value[u];
157
- }, p = (u, h) => {
158
- t[u] && (t[u].error.value = h, i.value[u] = h);
159
- }, g = (u) => {
160
- var h;
161
- return (h = t[u]) == null ? void 0 : h.value.value;
162
- }, x = (u, h) => {
163
- t[u] && (t[u].value.value = h);
147
+ let a = !0;
148
+ const m = {};
149
+ return Object.keys(i).forEach((b) => {
150
+ !s(b) && i[b].error.value && (m[b] = i[b].error.value, a = !1);
151
+ }), t.value = m, a;
152
+ }, u = () => {
153
+ Object.values(i).forEach((a) => a.clearError()), t.value = {};
154
+ }, d = (a) => {
155
+ var m;
156
+ (m = i[a]) == null || m.clearError(), delete t.value[a];
157
+ }, h = (a, m) => {
158
+ i[a] && (i[a].error.value = m, t.value[a] = m);
159
+ }, g = (a) => {
160
+ var m;
161
+ return (m = i[a]) == null ? void 0 : m.value.value;
162
+ }, f = (a, m) => {
163
+ i[a] && (i[a].value.value = m);
164
164
  };
165
165
  return {
166
- fields: t,
167
- errors: A(i),
168
- isFormValid: A(o),
169
- hasErrors: A(l),
170
- validateField: a,
171
- validateForm: s,
172
- clearErrors: c,
166
+ fields: i,
167
+ errors: G(t),
168
+ isFormValid: G(n),
169
+ hasErrors: G(l),
170
+ validateField: s,
171
+ validateForm: c,
172
+ clearErrors: u,
173
173
  clearFieldError: d,
174
- setFieldError: p,
174
+ setFieldError: h,
175
175
  getFieldValue: g,
176
- setFieldValue: x
176
+ setFieldValue: f
177
177
  };
178
178
  }
179
- const Bn = {
180
- required: (e = "Поле обязательно для заполнения") => (r) => r == null || r === "" ? e : !0,
181
- minLength: (e, r) => (t) => t && t.length < e ? r || `Минимальная длина: ${e} символов` : !0,
182
- maxLength: (e, r) => (t) => t && t.length > e ? r || `Максимальная длина: ${e} символов` : !0,
179
+ const Kl = {
180
+ required: (e = "Поле обязательно для заполнения") => (o) => o == null || o === "" ? e : !0,
181
+ minLength: (e, o) => (i) => i && i.length < e ? o || `Минимальная длина: ${e} символов` : !0,
182
+ maxLength: (e, o) => (i) => i && i.length > e ? o || `Максимальная длина: ${e} символов` : !0,
183
183
  email: (e = "Некорректный email адрес") => {
184
- const r = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
185
- return (t) => t && !r.test(t) ? e : !0;
184
+ const o = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
185
+ return (i) => i && !o.test(i) ? e : !0;
186
186
  },
187
- pattern: (e, r = "Некорректный формат") => (t) => t && !e.test(t) ? r : !0
188
- }, kt = "crm-ui-kit-theme";
189
- let ft = 0;
190
- const Y = /* @__PURE__ */ new Map(), vt = (e) => {
191
- const r = `${kt}-${++ft}`, t = document.createElement("style"), i = Object.entries(e).map(([o, l]) => `${o}: ${l};`).join(`
187
+ pattern: (e, o = "Некорректный формат") => (i) => i && !e.test(i) ? o : !0
188
+ }, Wt = "crm-ui-kit-theme";
189
+ let Zt = 0;
190
+ const le = /* @__PURE__ */ new Map(), Jt = (e) => {
191
+ const o = `${Wt}-${++Zt}`, i = document.createElement("style"), t = Object.entries(e).map(([n, l]) => `${n}: ${l};`).join(`
192
192
  `);
193
- return t.textContent = `.${r} {
194
- ${i}
195
- }`, document.head.appendChild(t), { className: r, styleElement: t };
196
- }, be = (e) => {
197
- const r = _("");
198
- let t = e, i;
199
- const o = (l) => {
200
- i && (i.refCount--, i.refCount === 0 && (i.styleElement.remove(), Y.delete(t))), t = l;
201
- const a = Y.get(l);
202
- if (a)
203
- a.refCount++, r.value = a.className, i = a;
193
+ return i.textContent = `.${o} {
194
+ ${t}
195
+ }`, document.head.appendChild(i), { className: o, styleElement: i };
196
+ }, Ee = (e) => {
197
+ const o = k("");
198
+ let i = e, t;
199
+ const n = (l) => {
200
+ t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(), le.delete(i))), i = l;
201
+ const s = le.get(l);
202
+ if (s)
203
+ s.refCount++, o.value = s.className, t = s;
204
204
  else {
205
- const { className: s, styleElement: c } = vt(l), d = { className: s, styleElement: c, refCount: 1 };
206
- Y.set(l, d), r.value = s, i = d;
205
+ const { className: c, styleElement: u } = Jt(l), d = { className: c, styleElement: u, refCount: 1 };
206
+ le.set(l, d), o.value = c, t = d;
207
207
  }
208
208
  };
209
- return o(e), G(() => e, o), dt(() => {
210
- i && (i.refCount--, i.refCount === 0 && (i.styleElement.remove(), Y.delete(t)));
211
- }), r;
212
- }, zn = () => {
209
+ return n(e), P(() => e, n), Yt(() => {
210
+ t && (t.refCount--, t.refCount === 0 && (t.styleElement.remove(), le.delete(i)));
211
+ }), o;
212
+ }, Wl = () => {
213
213
  };
214
- function Vn(e = "amocrm") {
214
+ function Zl(e = "amocrm") {
215
215
  return `${e}-${Math.random().toString(36).substr(2, 9)}`;
216
216
  }
217
- function En(...e) {
217
+ function Jl(...e) {
218
218
  return e.filter(Boolean).join(" ");
219
219
  }
220
- function Ln(e, r) {
221
- let t;
222
- return function(...o) {
220
+ function Xl(e, o) {
221
+ let i;
222
+ return function(...n) {
223
223
  const l = () => {
224
- clearTimeout(t), e(...o);
224
+ clearTimeout(i), e(...n);
225
225
  };
226
- clearTimeout(t), t = setTimeout(l, r);
226
+ clearTimeout(i), i = setTimeout(l, o);
227
227
  };
228
228
  }
229
- function Pn(e, r) {
230
- let t;
231
- return function(...i) {
232
- t || (e.apply(this, i), t = !0, setTimeout(() => t = !1, r));
229
+ function Ql(e, o) {
230
+ let i;
231
+ return function(...t) {
232
+ i || (e.apply(this, t), i = !0, setTimeout(() => i = !1, o));
233
233
  };
234
234
  }
235
- function ge(e) {
235
+ function He(e) {
236
236
  return e !== null && typeof e == "object" && !Array.isArray(e);
237
237
  }
238
- function xt(e, r) {
239
- const t = { ...e };
240
- for (const i in r)
241
- if (r.hasOwnProperty(i)) {
242
- const o = r[i], l = t[i];
243
- ge(o) && ge(l) ? t[i] = xt(l, o) : t[i] = o;
238
+ function Xt(e, o) {
239
+ const i = { ...e };
240
+ for (const t in o)
241
+ if (o.hasOwnProperty(t)) {
242
+ const n = o[t], l = i[t];
243
+ He(n) && He(l) ? i[t] = Xt(l, n) : i[t] = n;
244
244
  }
245
- return t;
245
+ return i;
246
246
  }
247
- function On(e) {
247
+ function es(e) {
248
248
  if (typeof window > "u") return !1;
249
249
  switch (e) {
250
250
  case "IntersectionObserver":
@@ -257,11 +257,11 @@ function On(e) {
257
257
  return !1;
258
258
  }
259
259
  }
260
- const yt = "BaseInput-module__input___pIIgE", gt = "BaseInput-module__placeholder_visible___qkWAb", wt = "BaseInput-module__placeholder_visible___qkWAb", we = {
261
- input: yt,
262
- placeholder_visible: gt,
263
- placeholderVisible: wt
264
- }, It = ["disabled", "readonly"], _e = /* @__PURE__ */ f({
260
+ const Qt = "BaseInput-module__input___pIIgE", ei = "BaseInput-module__placeholder_visible___qkWAb", ti = "BaseInput-module__placeholder_visible___qkWAb", Ye = {
261
+ input: Qt,
262
+ placeholder_visible: ei,
263
+ placeholderVisible: ti
264
+ }, ii = ["disabled", "readonly"], Me = /* @__PURE__ */ y({
265
265
  inheritAttrs: !1,
266
266
  __name: "BaseInput",
267
267
  props: {
@@ -269,26 +269,26 @@ const yt = "BaseInput-module__input___pIIgE", gt = "BaseInput-module__placeholde
269
269
  isReadonly: { type: Boolean, default: !1 },
270
270
  isPlaceholderVisibleOnFocus: { type: Boolean, default: !1 }
271
271
  },
272
- setup(e, { expose: r }) {
273
- const t = _(null);
274
- return r({
275
- inputRef: t
276
- }), (i, o) => (m(), b("input", w(i.$attrs, {
272
+ setup(e, { expose: o }) {
273
+ const i = k(null);
274
+ return o({
275
+ inputRef: i
276
+ }), (t, n) => (p(), v("input", I(t.$attrs, {
277
277
  ref_key: "inputRef",
278
- ref: t,
278
+ ref: i,
279
279
  class: [
280
- n(we).input,
280
+ r(Ye).input,
281
281
  {
282
- [n(we).placeholder_visible]: e.isPlaceholderVisibleOnFocus
282
+ [r(Ye).placeholder_visible]: e.isPlaceholderVisibleOnFocus
283
283
  }
284
284
  ],
285
285
  disabled: e.isDisabled,
286
286
  readonly: e.isReadonly
287
- }), null, 16, It));
287
+ }), null, 16, ii));
288
288
  }
289
- }), Ct = "VisuallyHiddenInput-module__input___deWRN", $t = {
290
- input: Ct
291
- }, Q = /* @__PURE__ */ f({
289
+ }), oi = "VisuallyHiddenInput-module__input___deWRN", ri = {
290
+ input: oi
291
+ }, be = /* @__PURE__ */ y({
292
292
  __name: "VisuallyHiddenInput",
293
293
  props: {
294
294
  isDisabled: { type: Boolean },
@@ -299,87 +299,87 @@ const yt = "BaseInput-module__input___pIIgE", gt = "BaseInput-module__placeholde
299
299
  isChecked: { type: Boolean },
300
300
  isDefaultChecked: { type: Boolean }
301
301
  },
302
- setup(e, { expose: r }) {
303
- const t = e, i = _(null), o = k(() => {
304
- const { isChecked: a, isDefaultChecked: s, ...c } = t;
305
- return a !== void 0 ? { checked: a, ...c } : c;
302
+ setup(e, { expose: o }) {
303
+ const i = e, t = k(null), n = _(() => {
304
+ const { isChecked: s, isDefaultChecked: c, ...u } = i;
305
+ return s !== void 0 ? { checked: s, ...u } : u;
306
306
  }), l = () => {
307
- var a;
308
- return ((a = i.value) == null ? void 0 : a.inputRef) ?? null;
307
+ var s;
308
+ return ((s = t.value) == null ? void 0 : s.inputRef) ?? null;
309
309
  };
310
- return j(() => {
311
- if (t.isDefaultChecked) {
312
- const a = l();
313
- a && (a.checked = !0);
310
+ return te(() => {
311
+ if (i.isDefaultChecked) {
312
+ const s = l();
313
+ s && (s.checked = !0);
314
314
  }
315
- }), t.isChecked !== void 0 && G(() => t.isChecked, (a) => {
316
- const s = l();
317
- s && (s.checked = !!a);
318
- }), r({
319
- inputRef: i
320
- }), (a, s) => (m(), B(_e, w({
315
+ }), i.isChecked !== void 0 && P(() => i.isChecked, (s) => {
316
+ const c = l();
317
+ c && (c.checked = !!s);
318
+ }), o({
319
+ inputRef: t
320
+ }), (s, c) => (p(), E(Me, I({
321
321
  ref_key: "inputRef",
322
- ref: i,
323
- class: n($t).input
324
- }, o.value), null, 16, ["class"]));
322
+ ref: t,
323
+ class: r(ri).input
324
+ }, n.value), null, 16, ["class"]));
325
325
  }
326
- }), Tt = "Spinner-module__spinner___SZoUP", Rt = "Spinner-module__spinner_animation___LJyzJ", St = "Spinner-module__spinner_animation___LJyzJ", Dt = "Spinner-module__centered___vcz-G", Ie = {
327
- spinner: Tt,
328
- spinner_animation: Rt,
329
- spinnerAnimation: St,
330
- centered: Dt
331
- }, At = /* @__PURE__ */ f({
326
+ }), ni = "Spinner-module__spinner___SZoUP", li = "Spinner-module__spinner_animation___LJyzJ", si = "Spinner-module__spinner_animation___LJyzJ", ai = "Spinner-module__centered___vcz-G", qe = {
327
+ spinner: ni,
328
+ spinner_animation: li,
329
+ spinnerAnimation: si,
330
+ centered: ai
331
+ }, ci = /* @__PURE__ */ y({
332
332
  __name: "Spinner",
333
333
  props: {
334
334
  isCentered: { type: Boolean, default: !1 },
335
335
  theme: { default: void 0 }
336
336
  },
337
337
  setup(e) {
338
- return (r, t) => (m(), b("span", w({
338
+ return (o, i) => (p(), v("span", I({
339
339
  class: [
340
- n(Ie).spinner,
341
- { [n(Ie).centered]: e.isCentered }
340
+ r(qe).spinner,
341
+ { [r(qe).centered]: e.isCentered }
342
342
  ],
343
343
  style: e.theme || {}
344
- }, r.$attrs), null, 16));
344
+ }, o.$attrs), null, 16));
345
345
  }
346
346
  });
347
- function Bt() {
348
- const e = _(!1);
347
+ function ui() {
348
+ const e = k(!1);
349
349
  return {
350
350
  shouldShowInvalidAnimation: e,
351
- showInvalidAnimation: (t = () => {
351
+ showInvalidAnimation: (i = () => {
352
352
  }) => {
353
353
  e.value = !0, setTimeout(() => {
354
- e.value = !1, t();
354
+ e.value = !1, i();
355
355
  }, 400);
356
356
  }
357
357
  };
358
358
  }
359
- function zt() {
360
- const e = _(!1);
359
+ function di() {
360
+ const e = k(!1);
361
361
  return {
362
362
  shouldShowSuccessfulState: e,
363
- showSuccessfulState: (t = () => {
363
+ showSuccessfulState: (i = () => {
364
364
  }) => {
365
365
  e.value = !0, setTimeout(() => {
366
- e.value = !1, t();
366
+ e.value = !1, i();
367
367
  }, 1500);
368
368
  }
369
369
  };
370
370
  }
371
- const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdWL", Lt = "Button-module__content___PpYVU", Pt = "Button-module__before___iPqpW", Ot = "Button-module__after___NzIvd", Mt = "Button-module__spinner_container___FC3J2", Nt = "Button-module__spinner_container___FC3J2", Ft = "Button-module__invalid___--B-C", Gt = "Button-module__buttonShakeAnimation___awnKy", Ht = "Button-module__success___CHTsg", P = {
372
- button: Vt,
373
- disabled: Et,
374
- content: Lt,
375
- before: Pt,
376
- after: Ot,
377
- spinner_container: Mt,
378
- spinnerContainer: Nt,
379
- invalid: Ft,
380
- buttonShakeAnimation: Gt,
381
- success: Ht
382
- }, qt = ["type", "disabled"], jt = { key: 0 }, Mn = /* @__PURE__ */ f({
371
+ const mi = "Button-module__button___18Bed", pi = "Button-module__disabled___UzdWL", hi = "Button-module__content___PpYVU", _i = "Button-module__before___iPqpW", bi = "Button-module__after___NzIvd", fi = "Button-module__spinner_container___FC3J2", vi = "Button-module__spinner_container___FC3J2", ki = "Button-module__invalid___--B-C", xi = "Button-module__buttonShakeAnimation___awnKy", yi = "Button-module__success___CHTsg", q = {
372
+ button: mi,
373
+ disabled: pi,
374
+ content: hi,
375
+ before: _i,
376
+ after: bi,
377
+ spinner_container: fi,
378
+ spinnerContainer: vi,
379
+ invalid: ki,
380
+ buttonShakeAnimation: xi,
381
+ success: yi
382
+ }, gi = ["type", "disabled"], Ci = { key: 0 }, ts = /* @__PURE__ */ y({
383
383
  __name: "Button",
384
384
  props: {
385
385
  type: { default: "button" },
@@ -388,87 +388,81 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
388
388
  isDisabled: { type: Boolean, default: !1 },
389
389
  before: {},
390
390
  after: {},
391
- children: {},
392
- showInvalidAnimationRef: {},
393
- showSuccessfulStateRef: {},
394
391
  successfulStateText: {},
395
392
  isClickableWhileDisabled: { type: Boolean, default: !1 }
396
393
  },
397
394
  emits: ["click"],
398
- setup(e, { emit: r }) {
399
- const t = e, i = r, { shouldShowInvalidAnimation: o, showInvalidAnimation: l } = Bt(), { shouldShowSuccessfulState: a, showSuccessfulState: s } = zt();
400
- K(() => {
401
- t.showInvalidAnimationRef && (t.showInvalidAnimationRef.value = l);
402
- }), K(() => {
403
- t.showSuccessfulStateRef && (t.showSuccessfulStateRef.value = s);
404
- });
405
- const c = k(() => {
406
- var x, u, h, I, H;
407
- const p = {
408
- "--crm-ui-kit-spinner-border-color": (x = t.theme) == null ? void 0 : x["--crm-ui-kit-button-spinner-border-color"],
409
- "--crm-ui-kit-spinner-border-width": (u = t.theme) == null ? void 0 : u["--crm-ui-kit-button-spinner-border-width"],
410
- "--crm-ui-kit-spinner-circle-size": (h = t.theme) == null ? void 0 : h["--crm-ui-kit-button-spinner-circle-size"],
411
- "--crm-ui-kit-spinner-border-style": (I = t.theme) == null ? void 0 : I["--crm-ui-kit-button-spinner-border-style"]
412
- }, g = {
413
- ...p,
414
- "--crm-ui-kit-spinner-border-color": (H = t.theme) == null ? void 0 : H["--crm-ui-kit-button-spinner-disabled-border-color"]
395
+ setup(e, { expose: o, emit: i }) {
396
+ const t = e, n = i, { shouldShowInvalidAnimation: l, showInvalidAnimation: s } = ui(), { shouldShowSuccessfulState: c, showSuccessfulState: u } = di();
397
+ o({ showInvalidAnimation: s, showSuccessfulState: u });
398
+ const d = _(() => {
399
+ var a, m, b, S, X;
400
+ const g = {
401
+ "--crm-ui-kit-spinner-border-color": (a = t.theme) == null ? void 0 : a["--crm-ui-kit-button-spinner-border-color"],
402
+ "--crm-ui-kit-spinner-border-width": (m = t.theme) == null ? void 0 : m["--crm-ui-kit-button-spinner-border-width"],
403
+ "--crm-ui-kit-spinner-circle-size": (b = t.theme) == null ? void 0 : b["--crm-ui-kit-button-spinner-circle-size"],
404
+ "--crm-ui-kit-spinner-border-style": (S = t.theme) == null ? void 0 : S["--crm-ui-kit-button-spinner-border-style"]
405
+ }, f = {
406
+ ...g,
407
+ "--crm-ui-kit-spinner-border-color": (X = t.theme) == null ? void 0 : X["--crm-ui-kit-button-spinner-disabled-border-color"]
415
408
  };
416
- return { defaultTheme: p, disabledTheme: g };
417
- }), d = (p) => {
418
- t.isDisabled && !t.isClickableWhileDisabled || t.isLoading || i("click", p);
409
+ return { defaultTheme: g, disabledTheme: f };
410
+ }), h = (g) => {
411
+ t.isDisabled && !t.isClickableWhileDisabled || t.isLoading || n("click", g);
419
412
  };
420
- return (p, g) => (m(), b("button", w(p.$attrs, {
413
+ return (g, f) => (p(), v("button", I(g.$attrs, {
421
414
  type: e.type,
422
415
  class: [
423
- n(P).button,
416
+ r(q).button,
424
417
  {
425
- [n(P).invalid]: n(o),
426
- [n(P).success]: n(a),
427
- [n(P).disabled]: e.isDisabled
418
+ [r(q).invalid]: r(l),
419
+ [r(q).success]: r(c),
420
+ [r(q).disabled]: e.isDisabled
428
421
  }
429
422
  ],
430
423
  style: e.theme,
431
424
  disabled: (e.isDisabled || e.isLoading) && !e.isClickableWhileDisabled,
432
- onClick: d
425
+ onClick: h
433
426
  }), [
434
- $("span", {
435
- class: v(n(P).content)
427
+ T("span", {
428
+ class: x(r(q).content)
436
429
  }, [
437
- n(a) ? (m(), b("span", jt, T(e.successfulStateText || e.children), 1)) : e.isLoading ? (m(), b("span", {
430
+ r(c) ? (p(), v("span", Ci, [
431
+ L(D(e.successfulStateText) + " ", 1),
432
+ e.successfulStateText ? A("", !0) : $(g.$slots, "default", { key: 0 })
433
+ ])) : e.isLoading ? (p(), v("span", {
438
434
  key: 1,
439
- class: v(n(P).spinner_container)
435
+ class: x(r(q).spinner_container)
440
436
  }, [
441
- D(At, {
442
- theme: e.isDisabled ? c.value.disabledTheme : c.value.defaultTheme,
437
+ M(ci, {
438
+ theme: e.isDisabled ? d.value.disabledTheme : d.value.defaultTheme,
443
439
  "is-centered": !0
444
440
  }, null, 8, ["theme"])
445
- ], 2)) : (m(), b(ce, { key: 2 }, [
446
- e.before ? (m(), b("span", {
441
+ ], 2)) : (p(), v(me, { key: 2 }, [
442
+ e.before ? (p(), v("span", {
447
443
  key: 0,
448
- class: v(n(P).before)
444
+ class: x(r(q).before)
449
445
  }, [
450
- y(p.$slots, "before", {}, () => [
451
- z(T(e.before), 1)
452
- ])
453
- ], 2)) : R("", !0),
454
- $("span", null, [
455
- y(p.$slots, "default", {}, () => [
456
- z(T(e.children), 1)
446
+ $(g.$slots, "before", {}, () => [
447
+ L(D(e.before), 1)
457
448
  ])
449
+ ], 2)) : A("", !0),
450
+ T("span", null, [
451
+ $(g.$slots, "default")
458
452
  ]),
459
- e.after ? (m(), b("span", {
453
+ e.after ? (p(), v("span", {
460
454
  key: 1,
461
- class: v(n(P).after)
455
+ class: x(r(q).after)
462
456
  }, [
463
- y(p.$slots, "after", {}, () => [
464
- z(T(e.after), 1)
457
+ $(g.$slots, "after", {}, () => [
458
+ L(D(e.after), 1)
465
459
  ])
466
- ], 2)) : R("", !0)
460
+ ], 2)) : A("", !0)
467
461
  ], 64))
468
462
  ], 2)
469
- ], 16, qt));
463
+ ], 16, gi));
470
464
  }
471
- }), ke = {
465
+ }), Oe = {
472
466
  "--crm-ui-kit-button-z-index": "1",
473
467
  "--crm-ui-kit-button-height": "36px",
474
468
  "--crm-ui-kit-button-elements-spacing": "4px",
@@ -493,8 +487,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
493
487
  "--crm-ui-kit-button-spinner-border-width": "2px",
494
488
  "--crm-ui-kit-button-spinner-circle-size": "16px",
495
489
  "--crm-ui-kit-button-spinner-border-style": "solid"
496
- }, Nn = {
497
- ...ke,
490
+ }, is = {
491
+ ...Oe,
498
492
  "--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-primary)",
499
493
  "--crm-ui-kit-button-border-color": "var(--crm-ui-kit-palette-border-primary)",
500
494
  "--crm-ui-kit-button-background-color": "var(--crm-ui-kit-palette-background-primary)",
@@ -504,8 +498,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
504
498
  "--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-primary)",
505
499
  "--crm-ui-kit-button-hover-background-color": "var(--crm-ui-kit-palette-button-classic-hover-background)",
506
500
  "--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-palette-border-primary)"
507
- }, Fn = {
508
- ...ke,
501
+ }, os = {
502
+ ...Oe,
509
503
  "--crm-ui-kit-button-color": "var(--crm-ui-kit-color-white)",
510
504
  "--crm-ui-kit-button-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
511
505
  "--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
@@ -517,8 +511,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
517
511
  "--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
518
512
  "--crm-ui-kit-button-spinner-border-color": "var(--crm-ui-kit-color-white)",
519
513
  "--crm-ui-kit-button-spinner-disabled-border-color": "var(--crm-ui-kit-color-bright-blue)"
520
- }, Gn = {
521
- ...ke,
514
+ }, rs = {
515
+ ...Oe,
522
516
  "--crm-ui-kit-button-height": "30px",
523
517
  "--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-secondary-light)",
524
518
  "--crm-ui-kit-button-padding": "0px 8px",
@@ -530,7 +524,7 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
530
524
  "--crm-ui-kit-button-hover-background-color": "inherit",
531
525
  "--crm-ui-kit-button-hover-border-color": "transparent",
532
526
  "--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-secondary-light)"
533
- }, ee = {
527
+ }, fe = {
534
528
  "--crm-ui-kit-text-size-s-font-size": "11px",
535
529
  "--crm-ui-kit-text-size-s-line-height": "15px",
536
530
  "--crm-ui-kit-text-size-m-font-size": "13px",
@@ -541,23 +535,23 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
541
535
  "--crm-ui-kit-text-size-l-line-height": "20px",
542
536
  "--crm-ui-kit-text-size-xl-font-size": "18px",
543
537
  "--crm-ui-kit-text-size-xl-line-height": "24px"
544
- }, fe = {
545
- ...ee,
538
+ }, ze = {
539
+ ...fe,
546
540
  "--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-primary)",
547
541
  "--crm-ui-kit-text-font": "PT Sans"
548
- }, Hn = {
549
- ...ee,
542
+ }, ns = {
543
+ ...fe,
550
544
  "--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-light)",
551
545
  "--crm-ui-kit-text-font": "PT Sans"
552
- }, qn = {
553
- ...ee,
546
+ }, ls = {
547
+ ...fe,
554
548
  "--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-dark)",
555
549
  "--crm-ui-kit-text-font": "PT Sans"
556
- }, Yt = {
557
- ...ee,
550
+ }, $i = {
551
+ ...fe,
558
552
  "--crm-ui-kit-text-color": "var(--crm-ui-kit-color-error)",
559
553
  "--crm-ui-kit-text-font": "PT Sans"
560
- }, je = {
554
+ }, ht = {
561
555
  "--crm-ui-kit-input-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
562
556
  "--crm-ui-kit-input-color": "var(--crm-ui-kit-palette-text-primary)",
563
557
  "--crm-ui-kit-input-error-color": "var(--crm-ui-kit-palette-text-primary)",
@@ -579,8 +573,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
579
573
  "--crm-ui-kit-input-padding-left": "9px",
580
574
  "--crm-ui-kit-input-height": "34px",
581
575
  "--crm-ui-kit-input-width": "100%"
582
- }, Ye = {
583
- ...je,
576
+ }, _t = {
577
+ ...ht,
584
578
  "--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
585
579
  "--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
586
580
  "--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
@@ -593,8 +587,8 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
593
587
  "--crm-ui-kit-input-disabled-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
594
588
  "--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
595
589
  "--crm-ui-kit-input-disabled-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)"
596
- }, Ut = {
597
- ...je,
590
+ }, Ii = {
591
+ ...ht,
598
592
  "--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
599
593
  "--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
600
594
  "--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
@@ -607,25 +601,25 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
607
601
  "--crm-ui-kit-input-disabled-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
608
602
  "--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
609
603
  "--crm-ui-kit-input-disabled-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)"
610
- }, Wt = Yt, jn = Ye, Yn = Ut, Kt = "Input-module__wrapper___dpfdV", Zt = "Input-module__input_wrapper___iVA--", Jt = "Input-module__input_wrapper___iVA--", Xt = "Input-module__input_container___TOBIn", Qt = "Input-module__input_container___TOBIn", ei = "Input-module__input___505b7", ti = "Input-module__placeholder_visible___O2Udj", ii = "Input-module__placeholder_visible___O2Udj", ri = "Input-module__after___dpDKi", oi = "Input-module__has_after___ADuC4", ni = "Input-module__has_after___ADuC4", li = "Input-module__invalid___no7WZ", ai = "Input-module__disabled___ProN9", si = "Input-module__invalid_description___xpoxv", ci = "Input-module__invalid_description___xpoxv", ui = "Input-module__invalid_description_right___-zM0v", di = "Input-module__invalid_description_right___-zM0v", E = {
611
- wrapper: Kt,
612
- input_wrapper: Zt,
613
- inputWrapper: Jt,
614
- input_container: Xt,
615
- inputContainer: Qt,
616
- input: ei,
617
- placeholder_visible: ti,
618
- placeholderVisible: ii,
619
- after: ri,
620
- has_after: oi,
621
- hasAfter: ni,
622
- invalid: li,
623
- disabled: ai,
624
- invalid_description: si,
625
- invalidDescription: ci,
626
- invalid_description_right: ui,
627
- invalidDescriptionRight: di
628
- }, Un = /* @__PURE__ */ f({
604
+ }, wi = $i, ss = _t, as = Ii, Si = "Input-module__wrapper___dpfdV", Ti = "Input-module__input_wrapper___iVA--", Ai = "Input-module__input_wrapper___iVA--", Ri = "Input-module__input_container___TOBIn", Di = "Input-module__input_container___TOBIn", Bi = "Input-module__input___505b7", Vi = "Input-module__placeholder_visible___O2Udj", Ei = "Input-module__placeholder_visible___O2Udj", Mi = "Input-module__after___dpDKi", Oi = "Input-module__has_after___ADuC4", zi = "Input-module__has_after___ADuC4", Li = "Input-module__invalid___no7WZ", Pi = "Input-module__disabled___ProN9", Gi = "Input-module__invalid_description___xpoxv", Ni = "Input-module__invalid_description___xpoxv", Fi = "Input-module__invalid_description_right___-zM0v", Hi = "Input-module__invalid_description_right___-zM0v", Y = {
605
+ wrapper: Si,
606
+ input_wrapper: Ti,
607
+ inputWrapper: Ai,
608
+ input_container: Ri,
609
+ inputContainer: Di,
610
+ input: Bi,
611
+ placeholder_visible: Vi,
612
+ placeholderVisible: Ei,
613
+ after: Mi,
614
+ has_after: Oi,
615
+ hasAfter: zi,
616
+ invalid: Li,
617
+ disabled: Pi,
618
+ invalid_description: Gi,
619
+ invalidDescription: Ni,
620
+ invalid_description_right: Fi,
621
+ invalidDescriptionRight: Hi
622
+ }, cs = /* @__PURE__ */ y({
629
623
  inheritAttrs: !1,
630
624
  __name: "Input",
631
625
  props: {
@@ -640,86 +634,86 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
640
634
  modelValue: { default: "" }
641
635
  },
642
636
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
643
- setup(e, { expose: r, emit: t }) {
644
- const i = mt(), o = k(() => {
645
- const { class: h, style: I, ...H } = i;
646
- return H;
647
- }), l = e, a = t, s = _(null), c = k(() => l.theme || Ye), d = k(() => ({
648
- ...Wt
649
- })), p = (h) => {
650
- const I = h.target;
651
- a("update:modelValue", I.value), a("input", h);
652
- }, g = (h) => {
653
- a("change", h);
654
- }, x = (h) => {
655
- a("focus", h);
656
- }, u = (h) => {
657
- a("blur", h);
637
+ setup(e, { expose: o, emit: i }) {
638
+ const t = qt(), n = _(() => {
639
+ const { class: m, style: b, ...S } = t;
640
+ return S;
641
+ }), l = e, s = i, c = k(null), u = _(() => l.theme || _t), d = _(() => ({
642
+ ...wi
643
+ })), h = (m) => {
644
+ const b = m.target;
645
+ s("update:modelValue", b.value), s("input", m);
646
+ }, g = (m) => {
647
+ s("change", m);
648
+ }, f = (m) => {
649
+ s("focus", m);
650
+ }, a = (m) => {
651
+ s("blur", m);
658
652
  };
659
- return r({
660
- inputRef: s
661
- }), (h, I) => (m(), b("div", {
662
- class: v([n(E).wrapper, h.$attrs.class]),
663
- style: S(c.value)
653
+ return o({
654
+ inputRef: c
655
+ }), (m, b) => (p(), v("div", {
656
+ class: x([r(Y).wrapper, m.$attrs.class]),
657
+ style: V(u.value)
664
658
  }, [
665
- $("div", {
666
- class: v([
667
- n(E).input_wrapper,
659
+ T("div", {
660
+ class: x([
661
+ r(Y).input_wrapper,
668
662
  {
669
- [n(E).invalid_description_right]: e.invalidDescriptionPlacement === "right"
663
+ [r(Y).invalid_description_right]: e.invalidDescriptionPlacement === "right"
670
664
  }
671
665
  ])
672
666
  }, [
673
- $("div", {
674
- class: v([
675
- n(E).input_container,
667
+ T("div", {
668
+ class: x([
669
+ r(Y).input_container,
676
670
  {
677
- [n(E).invalid]: e.isInvalid,
678
- [n(E).disabled]: e.isDisabled
671
+ [r(Y).invalid]: e.isInvalid,
672
+ [r(Y).disabled]: e.isDisabled
679
673
  }
680
674
  ])
681
675
  }, [
682
- D(_e, w(o.value, {
676
+ M(Me, I(n.value, {
683
677
  ref_key: "inputRef",
684
- ref: s,
685
- class: { [n(E).has_after]: !!e.after || !!h.$slots.after },
678
+ ref: c,
679
+ class: { [r(Y).has_after]: !!e.after || !!m.$slots.after },
686
680
  "is-disabled": e.isDisabled,
687
681
  "is-readonly": e.isReadonly,
688
682
  "is-placeholder-visible-on-focus": e.isPlaceholderVisibleOnFocus,
689
- onInput: p,
683
+ onInput: h,
690
684
  onChange: g,
691
- onFocus: x,
692
- onBlur: u
685
+ onFocus: f,
686
+ onBlur: a
693
687
  }), null, 16, ["class", "is-disabled", "is-readonly", "is-placeholder-visible-on-focus"]),
694
- e.after || h.$slots.after ? (m(), b("div", {
688
+ e.after || m.$slots.after ? (p(), v("div", {
695
689
  key: 0,
696
- class: v(n(E).after)
690
+ class: x(r(Y).after)
697
691
  }, [
698
- y(h.$slots, "after", {}, () => [
699
- z(T(e.after), 1)
692
+ $(m.$slots, "after", {}, () => [
693
+ L(D(e.after), 1)
700
694
  ])
701
- ], 2)) : R("", !0)
695
+ ], 2)) : A("", !0)
702
696
  ], 2),
703
- e.isInvalid && e.invalidDescription ? (m(), b("div", {
697
+ e.isInvalid && e.invalidDescription ? (p(), v("div", {
704
698
  key: 0,
705
- class: v(n(E).invalid_description),
706
- style: S(d.value)
707
- }, T(e.invalidDescription), 7)) : R("", !0)
699
+ class: x(r(Y).invalid_description),
700
+ style: V(d.value)
701
+ }, D(e.invalidDescription), 7)) : A("", !0)
708
702
  ], 2)
709
703
  ], 6));
710
704
  }
711
- }), mi = "TextArea-module__wrapper___Bn4Tw", pi = "TextArea-module__textarea_container___FS0Tq", hi = "TextArea-module__textarea_container___FS0Tq", bi = "TextArea-module__textarea___zZCio", _i = "TextArea-module__placeholder_visible___eCc8w", ki = "TextArea-module__placeholder_visible___eCc8w", fi = "TextArea-module__disabled___lHxCa", vi = "TextArea-module__invalid_description___B6FfM", xi = "TextArea-module__invalid_description___B6FfM", yi = "TextArea-module__invalid___lqbKp", N = {
712
- wrapper: mi,
713
- textarea_container: pi,
714
- textareaContainer: hi,
715
- textarea: bi,
716
- placeholder_visible: _i,
717
- placeholderVisible: ki,
718
- disabled: fi,
719
- invalid_description: vi,
720
- invalidDescription: xi,
721
- invalid: yi
722
- }, gi = ["disabled", "readonly", "value"], Wn = /* @__PURE__ */ f({
705
+ }), Yi = "TextArea-module__wrapper___Bn4Tw", qi = "TextArea-module__textarea_container___FS0Tq", Ui = "TextArea-module__textarea_container___FS0Tq", ji = "TextArea-module__textarea___zZCio", Ki = "TextArea-module__placeholder_visible___eCc8w", Wi = "TextArea-module__placeholder_visible___eCc8w", Zi = "TextArea-module__disabled___lHxCa", Ji = "TextArea-module__invalid_description___B6FfM", Xi = "TextArea-module__invalid_description___B6FfM", Qi = "TextArea-module__invalid___lqbKp", Z = {
706
+ wrapper: Yi,
707
+ textarea_container: qi,
708
+ textareaContainer: Ui,
709
+ textarea: ji,
710
+ placeholder_visible: Ki,
711
+ placeholderVisible: Wi,
712
+ disabled: Zi,
713
+ invalid_description: Ji,
714
+ invalidDescription: Xi,
715
+ invalid: Qi
716
+ }, eo = ["disabled", "readonly", "value"], us = /* @__PURE__ */ y({
723
717
  inheritAttrs: !1,
724
718
  __name: "TextArea",
725
719
  props: {
@@ -734,63 +728,63 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
734
728
  modelValue: { default: "" }
735
729
  },
736
730
  emits: ["update:modelValue", "autosize"],
737
- setup(e, { expose: r, emit: t }) {
738
- const i = e, o = t, l = _(null), a = (c) => {
739
- const d = c.target;
740
- o("update:modelValue", d.value), i.isAutosized && s();
741
- }, s = () => {
742
- !l.value || !i.isAutosized || Fe(() => {
743
- l.value && (l.value.style.height = "auto", l.value.style.height = `${l.value.scrollHeight}px`, o("autosize"));
731
+ setup(e, { expose: o, emit: i }) {
732
+ const t = e, n = i, l = k(null), s = (u) => {
733
+ const d = u.target;
734
+ n("update:modelValue", d.value), t.isAutosized && c();
735
+ }, c = () => {
736
+ !l.value || !t.isAutosized || pe(() => {
737
+ l.value && (l.value.style.height = "auto", l.value.style.height = `${l.value.scrollHeight}px`, n("autosize"));
744
738
  });
745
739
  };
746
- return G(
747
- () => i.modelValue,
740
+ return P(
741
+ () => t.modelValue,
748
742
  () => {
749
- i.isAutosized && s();
743
+ t.isAutosized && c();
750
744
  }
751
- ), G(
752
- () => i.isAutosized,
753
- (c) => {
754
- c && s();
745
+ ), P(
746
+ () => t.isAutosized,
747
+ (u) => {
748
+ u && c();
755
749
  }
756
- ), r({
750
+ ), o({
757
751
  textareaRef: l
758
- }), (c, d) => (m(), b("div", {
759
- class: v(n(N).wrapper),
760
- style: S(e.theme)
752
+ }), (u, d) => (p(), v("div", {
753
+ class: x(r(Z).wrapper),
754
+ style: V(e.theme)
761
755
  }, [
762
- $("div", {
763
- class: v([
764
- n(N).textarea_container,
756
+ T("div", {
757
+ class: x([
758
+ r(Z).textarea_container,
765
759
  {
766
- [n(N).invalid]: e.isInvalid,
767
- [n(N).disabled]: e.isDisabled
760
+ [r(Z).invalid]: e.isInvalid,
761
+ [r(Z).disabled]: e.isDisabled
768
762
  }
769
763
  ])
770
764
  }, [
771
- $("textarea", w(c.$attrs, {
765
+ T("textarea", I(u.$attrs, {
772
766
  ref_key: "textareaRef",
773
767
  ref: l,
774
768
  class: [
775
- n(N).textarea,
769
+ r(Z).textarea,
776
770
  {
777
- [n(N).placeholder_visible]: e.isPlaceholderVisibleOnFocus
771
+ [r(Z).placeholder_visible]: e.isPlaceholderVisibleOnFocus
778
772
  }
779
773
  ],
780
774
  style: { maxHeight: e.maxHeight ? `${e.maxHeight}px` : void 0 },
781
775
  disabled: e.isDisabled,
782
776
  readonly: e.isReadOnly,
783
777
  value: e.modelValue,
784
- onInput: a
785
- }), null, 16, gi)
778
+ onInput: s
779
+ }), null, 16, eo)
786
780
  ], 2),
787
- e.isInvalid && e.invalidDescription ? (m(), b("div", {
781
+ e.isInvalid && e.invalidDescription ? (p(), v("div", {
788
782
  key: 0,
789
- class: v(n(N).invalid_description)
790
- }, T(e.invalidDescription), 3)) : R("", !0)
783
+ class: x(r(Z).invalid_description)
784
+ }, D(e.invalidDescription), 3)) : A("", !0)
791
785
  ], 6));
792
786
  }
793
- }), Ue = {
787
+ }), bt = {
794
788
  "--crm-ui-kit-textarea-disabled-border-color": "var(--crm-ui-kit-palette-border-primary)",
795
789
  "--crm-ui-kit-textarea-color": "var(--crm-ui-kit-palette-text-primary)",
796
790
  "--crm-ui-kit-textarea-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
@@ -815,23 +809,23 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
815
809
  "--crm-ui-kit-textarea-border-style": "solid",
816
810
  "--crm-ui-kit-textarea-scrollbar-thumb-background": "var(--crm-ui-kit-palette-scrollbar-thumb-background)",
817
811
  "--crm-ui-kit-textarea-scrollbar-offset": "4px"
818
- }, Kn = {
819
- ...Ue,
812
+ }, ds = {
813
+ ...bt,
820
814
  "--crm-ui-kit-textarea-border-color": "var(--crm-ui-kit-palette-border-default)"
821
- }, Zn = {
822
- ...Ue,
815
+ }, ms = {
816
+ ...bt,
823
817
  "--crm-ui-kit-textarea-border-color": "var(--crm-ui-kit-palette-border-primary)"
824
- }, wi = "Text-module__text___XXjeA", Ii = "Text-module__ellipsis___79OkO", Ci = "Text-module__line_clamp___joAdp", $i = "Text-module__line_clamp___joAdp", Ti = "Text-module__s___sApyd", Ri = "Text-module__m___SHtLp", Si = "Text-module__ms___jfRqe", Di = "Text-module__l___GNH3i", Ai = "Text-module__xl___qII75", U = {
825
- text: wi,
826
- ellipsis: Ii,
827
- line_clamp: Ci,
828
- lineClamp: $i,
829
- s: Ti,
830
- m: Ri,
831
- ms: Si,
832
- l: Di,
833
- xl: Ai
834
- }, ve = /* @__PURE__ */ f({
818
+ }, to = "Text-module__text___XXjeA", io = "Text-module__ellipsis___79OkO", oo = "Text-module__line_clamp___joAdp", ro = "Text-module__line_clamp___joAdp", no = "Text-module__s___sApyd", lo = "Text-module__m___SHtLp", so = "Text-module__ms___jfRqe", ao = "Text-module__l___GNH3i", co = "Text-module__xl___qII75", se = {
819
+ text: to,
820
+ ellipsis: io,
821
+ line_clamp: oo,
822
+ lineClamp: ro,
823
+ s: no,
824
+ m: lo,
825
+ ms: so,
826
+ l: ao,
827
+ xl: co
828
+ }, Le = /* @__PURE__ */ y({
835
829
  __name: "Text",
836
830
  props: {
837
831
  size: {},
@@ -841,29 +835,29 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
841
835
  style: { default: () => ({}) }
842
836
  },
843
837
  setup(e) {
844
- const r = e;
845
- if (!["s", "m", "ms", "l", "xl"].includes(r.size))
838
+ const o = e;
839
+ if (!["s", "m", "ms", "l", "xl"].includes(o.size))
846
840
  throw new Error("Unknown size was presented");
847
- const i = k(() => r.maxRows > 1);
848
- return (o, l) => (m(), b("span", w(o.$attrs, {
841
+ const t = _(() => o.maxRows > 1);
842
+ return (n, l) => (p(), v("span", I(n.$attrs, {
849
843
  class: [
850
- n(U).text,
851
- n(U)[e.size],
844
+ r(se).text,
845
+ r(se)[e.size],
852
846
  {
853
- [n(U).ellipsis]: e.isEllipsis,
854
- [n(U).line_clamp]: i.value
847
+ [r(se).ellipsis]: e.isEllipsis,
848
+ [r(se).line_clamp]: t.value
855
849
  }
856
850
  ],
857
851
  style: {
858
- ...i.value && { WebkitLineClamp: e.maxRows },
852
+ ...t.value && { WebkitLineClamp: e.maxRows },
859
853
  ...e.theme,
860
854
  ...e.style
861
855
  }
862
856
  }), [
863
- y(o.$slots, "default")
857
+ $(n.$slots, "default")
864
858
  ], 16));
865
859
  }
866
- }), We = {
860
+ }), ft = {
867
861
  "--crm-ui-kit-inline-input-color": "var(--crm-ui-kit-palette-text-primary)",
868
862
  "--crm-ui-kit-inline-input-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
869
863
  "--crm-ui-kit-inline-input-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
@@ -887,33 +881,33 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
887
881
  "--crm-ui-kit-inline-input-invalid-description-arrow-width": "4px",
888
882
  "--crm-ui-kit-inline-input-invalid-description-arrow-top": "13px",
889
883
  "--crm-ui-kit-inline-input-invalid-description-arrow-left": "-5px"
890
- }, Jn = {
891
- ...We,
884
+ }, ps = {
885
+ ...ft,
892
886
  "--crm-ui-kit-inline-input-border-color": "transparent",
893
887
  "--crm-ui-kit-inline-input-focus-border-color": "var(--crm-ui-kit-color-blueberry)"
894
- }, Xn = {
895
- ...We,
888
+ }, hs = {
889
+ ...ft,
896
890
  "--crm-ui-kit-inline-input-border-color": "var(--crm-ui-kit-color-blueberry)",
897
891
  "--crm-ui-kit-inline-input-focus-border-color": "var(--crm-ui-kit-color-blueberry)"
898
- }, Bi = {
899
- ...fe,
892
+ }, uo = {
893
+ ...ze,
900
894
  "--crm-ui-kit-text-color": "var(--crm-ui-kit-inline-input-invalid-description-color)",
901
895
  "--crm-ui-kit-text-size-m-line-height": "15px"
902
- }, zi = "InlineInput-module__wrapper___qm49n", Vi = "InlineInput-module__input_container___gEtfR", Ei = "InlineInput-module__input_container___gEtfR", Li = "InlineInput-module__after_container___zn-12", Pi = "InlineInput-module__after_container___zn-12", Oi = "InlineInput-module__after___-G08s", Mi = "InlineInput-module__has_after___5vayE", Ni = "InlineInput-module__has_after___5vayE", Fi = "InlineInput-module__invalid_description_container___-HlH-", Gi = "InlineInput-module__invalid_description_container___-HlH-", Hi = "InlineInput-module__invalid_description___lJpY9", qi = "InlineInput-module__invalid_description___lJpY9", ji = "InlineInput-module__disabled___bzvEo", O = {
903
- wrapper: zi,
904
- input_container: Vi,
905
- inputContainer: Ei,
906
- after_container: Li,
907
- afterContainer: Pi,
908
- after: Oi,
909
- has_after: Mi,
910
- hasAfter: Ni,
911
- invalid_description_container: Fi,
912
- invalidDescriptionContainer: Gi,
913
- invalid_description: Hi,
914
- invalidDescription: qi,
915
- disabled: ji
916
- }, Qn = /* @__PURE__ */ f({
896
+ }, mo = "InlineInput-module__wrapper___qm49n", po = "InlineInput-module__input_container___gEtfR", ho = "InlineInput-module__input_container___gEtfR", _o = "InlineInput-module__after_container___zn-12", bo = "InlineInput-module__after_container___zn-12", fo = "InlineInput-module__after___-G08s", vo = "InlineInput-module__has_after___5vayE", ko = "InlineInput-module__has_after___5vayE", xo = "InlineInput-module__invalid_description_container___-HlH-", yo = "InlineInput-module__invalid_description_container___-HlH-", go = "InlineInput-module__invalid_description___lJpY9", Co = "InlineInput-module__invalid_description___lJpY9", $o = "InlineInput-module__disabled___bzvEo", U = {
897
+ wrapper: mo,
898
+ input_container: po,
899
+ inputContainer: ho,
900
+ after_container: _o,
901
+ afterContainer: bo,
902
+ after: fo,
903
+ has_after: vo,
904
+ hasAfter: ko,
905
+ invalid_description_container: xo,
906
+ invalidDescriptionContainer: yo,
907
+ invalid_description: go,
908
+ invalidDescription: Co,
909
+ disabled: $o
910
+ }, _s = /* @__PURE__ */ y({
917
911
  inheritAttrs: !1,
918
912
  __name: "InlineInput",
919
913
  props: {
@@ -925,59 +919,59 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
925
919
  after: {},
926
920
  theme: {}
927
921
  },
928
- setup(e, { expose: r }) {
929
- const t = _(null);
930
- return r({
931
- inputRef: t
932
- }), (i, o) => (m(), b("div", {
933
- class: v(n(O).wrapper),
934
- style: S(e.theme)
922
+ setup(e, { expose: o }) {
923
+ const i = k(null);
924
+ return o({
925
+ inputRef: i
926
+ }), (t, n) => (p(), v("div", {
927
+ class: x(r(U).wrapper),
928
+ style: V(e.theme)
935
929
  }, [
936
- $("div", {
937
- class: v([
938
- n(O).input_container,
930
+ T("div", {
931
+ class: x([
932
+ r(U).input_container,
939
933
  {
940
- [n(O).disabled]: e.isDisabled
934
+ [r(U).disabled]: e.isDisabled
941
935
  }
942
936
  ])
943
937
  }, [
944
- D(_e, w(i.$attrs, {
938
+ M(Me, I(t.$attrs, {
945
939
  ref_key: "inputRef",
946
- ref: t,
947
- class: { [n(O).has_after]: !!e.after },
940
+ ref: i,
941
+ class: { [r(U).has_after]: !!e.after },
948
942
  "is-disabled": e.isDisabled
949
943
  }), null, 16, ["class", "is-disabled"])
950
944
  ], 2),
951
- e.after ? (m(), b("div", {
945
+ e.after ? (p(), v("div", {
952
946
  key: 0,
953
- class: v(n(O).after_container)
947
+ class: x(r(U).after_container)
954
948
  }, [
955
- $("div", {
956
- class: v(n(O).after)
957
- }, T(e.after), 3)
958
- ], 2)) : R("", !0),
959
- e.isInvalid ? (m(), b("div", {
949
+ T("div", {
950
+ class: x(r(U).after)
951
+ }, D(e.after), 3)
952
+ ], 2)) : A("", !0),
953
+ e.isInvalid ? (p(), v("div", {
960
954
  key: 1,
961
- class: v(n(O).invalid_description_container)
955
+ class: x(r(U).invalid_description_container)
962
956
  }, [
963
- D(ve, {
957
+ M(Le, {
964
958
  size: "m",
965
- theme: n(Bi),
966
- class: v(n(O).invalid_description)
959
+ theme: r(uo),
960
+ class: x(r(U).invalid_description)
967
961
  }, {
968
- default: V(() => [
969
- z(T(e.invalidDescription), 1)
962
+ default: z(() => [
963
+ L(D(e.invalidDescription), 1)
970
964
  ]),
971
965
  _: 1
972
966
  }, 8, ["theme", "class"])
973
- ], 2)) : R("", !0)
967
+ ], 2)) : A("", !0)
974
968
  ], 6));
975
969
  }
976
- }), Yi = "Switcher-module__wrapper___Bamq6", Ui = "Switcher-module__switcher___MjuSh", Wi = "Switcher-module__input___-K2Ku", oe = {
977
- wrapper: Yi,
978
- switcher: Ui,
979
- input: Wi
980
- }, el = /* @__PURE__ */ f({
970
+ }), Io = "Switcher-module__wrapper___Bamq6", wo = "Switcher-module__switcher___MjuSh", So = "Switcher-module__input___-K2Ku", $e = {
971
+ wrapper: Io,
972
+ switcher: wo,
973
+ input: So
974
+ }, bs = /* @__PURE__ */ y({
981
975
  inheritAttrs: !1,
982
976
  __name: "Switcher",
983
977
  props: {
@@ -990,43 +984,43 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
990
984
  isDefaultChecked: { type: Boolean },
991
985
  theme: {}
992
986
  },
993
- setup(e, { expose: r }) {
994
- const t = e, i = _(null);
995
- return r({
996
- inputRef: i
997
- }), (o, l) => (m(), b("div", {
998
- class: v(n(oe).wrapper),
999
- style: S(e.theme)
987
+ setup(e, { expose: o }) {
988
+ const i = e, t = k(null);
989
+ return o({
990
+ inputRef: t
991
+ }), (n, l) => (p(), v("div", {
992
+ class: x(r($e).wrapper),
993
+ style: V(e.theme)
1000
994
  }, [
1001
- D(Q, w(o.$attrs, {
1002
- id: t.id,
995
+ M(be, I(n.$attrs, {
996
+ id: i.id,
1003
997
  ref_key: "inputRef",
1004
- ref: i,
1005
- class: n(oe).input,
998
+ ref: t,
999
+ class: r($e).input,
1006
1000
  type: "checkbox",
1007
- "is-disabled": t.isDisabled,
1008
- "is-readonly": t.isReadonly,
1009
- "is-checked": t.isChecked,
1010
- "is-default-checked": t.isDefaultChecked,
1011
- value: t.value,
1012
- name: t.name
1001
+ "is-disabled": i.isDisabled,
1002
+ "is-readonly": i.isReadonly,
1003
+ "is-checked": i.isChecked,
1004
+ "is-default-checked": i.isDefaultChecked,
1005
+ value: i.value,
1006
+ name: i.name
1013
1007
  }), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
1014
- $("span", {
1015
- class: v(n(oe).switcher)
1008
+ T("span", {
1009
+ class: x(r($e).switcher)
1016
1010
  }, null, 2)
1017
1011
  ], 6));
1018
1012
  }
1019
- }), Ki = "Label-module__wrapper___NGGOS", Zi = "Label-module__top___-lhYX", Ji = "Label-module__text_container___UrUIG", Xi = "Label-module__text_container___UrUIG", Qi = "Label-module__centered___l3-JI", er = "Label-module__left___YkSoh", tr = "Label-module__right___KNrND", ir = "Label-module__text_description___UScdu", rr = "Label-module__text_description___UScdu", F = {
1020
- wrapper: Ki,
1021
- top: Zi,
1022
- text_container: Ji,
1023
- textContainer: Xi,
1024
- centered: Qi,
1025
- left: er,
1026
- right: tr,
1027
- text_description: ir,
1028
- textDescription: rr
1029
- }, or = { key: 0 }, tl = /* @__PURE__ */ f({
1013
+ }), To = "Label-module__wrapper___NGGOS", Ao = "Label-module__top___-lhYX", Ro = "Label-module__text_container___UrUIG", Do = "Label-module__text_container___UrUIG", Bo = "Label-module__centered___l3-JI", Vo = "Label-module__left___YkSoh", Eo = "Label-module__right___KNrND", Mo = "Label-module__text_description___UScdu", Oo = "Label-module__text_description___UScdu", J = {
1014
+ wrapper: To,
1015
+ top: Ao,
1016
+ text_container: Ro,
1017
+ textContainer: Do,
1018
+ centered: Bo,
1019
+ left: Vo,
1020
+ right: Eo,
1021
+ text_description: Mo,
1022
+ textDescription: Oo
1023
+ }, zo = { key: 0 }, fs = /* @__PURE__ */ y({
1030
1024
  __name: "Label",
1031
1025
  props: {
1032
1026
  theme: {},
@@ -1035,47 +1029,47 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1035
1029
  textPlacement: { default: "top" },
1036
1030
  isCentered: { type: Boolean, default: !1 }
1037
1031
  },
1038
- setup(e, { expose: r }) {
1039
- const t = e, i = _(null), o = {
1040
- top: F.top,
1041
- left: F.left,
1042
- right: F.right
1043
- }, l = k(() => o[t.textPlacement]);
1044
- return r({
1045
- labelRef: i
1046
- }), (a, s) => (m(), b("label", w(a.$attrs, {
1032
+ setup(e, { expose: o }) {
1033
+ const i = e, t = k(null), n = {
1034
+ top: J.top,
1035
+ left: J.left,
1036
+ right: J.right
1037
+ }, l = _(() => n[i.textPlacement]);
1038
+ return o({
1039
+ labelRef: t
1040
+ }), (s, c) => (p(), v("label", I(s.$attrs, {
1047
1041
  ref_key: "labelRef",
1048
- ref: i,
1042
+ ref: t,
1049
1043
  class: [
1050
1044
  l.value,
1051
1045
  {
1052
- [n(F).centered]: e.isCentered
1046
+ [r(J).centered]: e.isCentered
1053
1047
  }
1054
1048
  ],
1055
1049
  style: e.theme
1056
1050
  }), [
1057
- e.text || e.description || a.$slots.text || a.$slots.description ? (m(), b("div", {
1051
+ e.text || e.description || s.$slots.text || s.$slots.description ? (p(), v("div", {
1058
1052
  key: 0,
1059
- class: v(n(F).text_container)
1053
+ class: x(r(J).text_container)
1060
1054
  }, [
1061
- e.text || a.$slots.text ? (m(), b("span", or, [
1062
- y(a.$slots, "text", {}, () => [
1063
- z(T(e.text), 1)
1055
+ e.text || s.$slots.text ? (p(), v("span", zo, [
1056
+ $(s.$slots, "text", {}, () => [
1057
+ L(D(e.text), 1)
1064
1058
  ])
1065
- ])) : R("", !0),
1066
- e.description || a.$slots.description ? (m(), b("div", {
1059
+ ])) : A("", !0),
1060
+ e.description || s.$slots.description ? (p(), v("div", {
1067
1061
  key: 1,
1068
- class: v(n(F).text_description)
1062
+ class: x(r(J).text_description)
1069
1063
  }, [
1070
- y(a.$slots, "description", {}, () => [
1071
- z(T(e.description), 1)
1064
+ $(s.$slots, "description", {}, () => [
1065
+ L(D(e.description), 1)
1072
1066
  ])
1073
- ], 2)) : R("", !0)
1074
- ], 2)) : R("", !0),
1075
- y(a.$slots, "default")
1067
+ ], 2)) : A("", !0)
1068
+ ], 2)) : A("", !0),
1069
+ $(s.$slots, "default")
1076
1070
  ], 16));
1077
1071
  }
1078
- }), il = {
1072
+ }), vs = {
1079
1073
  "--crm-ui-kit-switcher-active-element-color": "var(--crm-ui-kit-palette-active-element-900)",
1080
1074
  "--crm-ui-kit-switcher-border-color": "var(--crm-ui-kit-palette-switcher-border-default)",
1081
1075
  "--crm-ui-kit-switcher-line-border-radius": "26px",
@@ -1088,11 +1082,11 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1088
1082
  "--crm-ui-kit-switcher-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
1089
1083
  "--crm-ui-kit-switcher-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
1090
1084
  "--crm-ui-kit-switcher-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
1091
- }, nr = "SelectButton-module__button___rXDb-", lr = "SelectButton-module__invalid___9dO2z", ar = "SelectButton-module__disabled___sqM8-", ne = {
1092
- button: nr,
1093
- invalid: lr,
1094
- disabled: ar
1095
- }, sr = ["disabled"], cr = "Enter", ur = "Space", dr = /* @__PURE__ */ f({
1085
+ }, Lo = "SelectButton-module__button___rXDb-", Po = "SelectButton-module__invalid___9dO2z", Go = "SelectButton-module__disabled___sqM8-", Ie = {
1086
+ button: Lo,
1087
+ invalid: Po,
1088
+ disabled: Go
1089
+ }, No = ["disabled"], Fo = "Enter", Ho = "Space", vt = /* @__PURE__ */ y({
1096
1090
  __name: "SelectButton",
1097
1091
  props: {
1098
1092
  theme: {},
@@ -1100,35 +1094,35 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1100
1094
  isDisabled: { type: Boolean, default: !1 }
1101
1095
  },
1102
1096
  emits: ["toggle"],
1103
- setup(e, { expose: r, emit: t }) {
1104
- const i = t, o = _(null), l = () => {
1105
- i("toggle");
1106
- }, a = (s) => {
1107
- [cr, ur].includes(s.code) && (s.preventDefault(), l());
1097
+ setup(e, { expose: o, emit: i }) {
1098
+ const t = i, n = k(null), l = () => {
1099
+ t("toggle");
1100
+ }, s = (c) => {
1101
+ [Fo, Ho].includes(c.code) && (c.preventDefault(), l());
1108
1102
  };
1109
- return r({
1110
- buttonRef: o
1111
- }), (s, c) => (m(), b("button", w({
1103
+ return o({
1104
+ buttonRef: n
1105
+ }), (c, u) => (p(), v("button", I({
1112
1106
  ref_key: "buttonRef",
1113
- ref: o
1114
- }, s.$attrs, {
1107
+ ref: n
1108
+ }, c.$attrs, {
1115
1109
  type: "button",
1116
1110
  class: [
1117
- n(ne).button,
1111
+ r(Ie).button,
1118
1112
  {
1119
- [n(ne).invalid]: e.isInvalid,
1120
- [n(ne).disabled]: e.isDisabled
1113
+ [r(Ie).invalid]: e.isInvalid,
1114
+ [r(Ie).disabled]: e.isDisabled
1121
1115
  }
1122
1116
  ],
1123
1117
  style: e.theme,
1124
1118
  disabled: e.isDisabled,
1125
1119
  onClick: l,
1126
- onKeydown: a
1120
+ onKeydown: s
1127
1121
  }), [
1128
- y(s.$slots, "default")
1129
- ], 16, sr));
1122
+ $(c.$slots, "default")
1123
+ ], 16, No));
1130
1124
  }
1131
- }), Ke = {
1125
+ }), kt = {
1132
1126
  "--crm-ui-kit-select-button-border-width": "1px",
1133
1127
  "--crm-ui-kit-select-button-z-index": "10",
1134
1128
  "--crm-ui-kit-select-button-height": "36px",
@@ -1143,35 +1137,35 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1143
1137
  "--crm-ui-kit-select-button-line-height": "20px",
1144
1138
  "--crm-ui-kit-select-button-focus-visible-border": "1px solid var(--crm-ui-kit-palette-border-active)",
1145
1139
  "--crm-ui-kit-select-button-color": "var(--crm-ui-kit-palette-text-primary)"
1146
- }, rl = {
1147
- ...Ke,
1140
+ }, ks = {
1141
+ ...kt,
1148
1142
  "--crm-ui-kit-select-button-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-default)",
1149
1143
  "--crm-ui-kit-select-button-error-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-error)",
1150
1144
  "--crm-ui-kit-select-button-disabled-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)"
1151
- }, ol = {
1152
- ...Ke,
1145
+ }, xs = {
1146
+ ...kt,
1153
1147
  "--crm-ui-kit-select-button-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)",
1154
1148
  "--crm-ui-kit-select-button-error-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-error)",
1155
1149
  "--crm-ui-kit-select-button-disabled-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)"
1156
- }, L = (e, r) => {
1157
- const t = Symbol(e);
1150
+ }, F = (e, o) => {
1151
+ const i = Symbol(e);
1158
1152
  return [(l) => {
1159
- Oe(t, l);
1153
+ st(i, l);
1160
1154
  }, (l) => {
1161
- const a = Me(t, r);
1162
- if (a)
1163
- return a;
1155
+ const s = at(i, o);
1156
+ if (s)
1157
+ return s;
1164
1158
  throw new Error(
1165
1159
  `\`${l}\` must be used within \`${e}\``
1166
1160
  );
1167
1161
  }];
1168
- }, Ze = "Select", [mr, te] = L(Ze), pr = "Select-module__select___U4LyF", hr = "Select-module__opened___IOv4m", Ce = {
1169
- select: pr,
1170
- opened: hr
1171
- }, br = f({
1172
- name: Ze
1173
- }), nl = /* @__PURE__ */ f({
1174
- ...br,
1162
+ }, xt = "Select", [Yo, ve] = F(xt), qo = "Select-module__select___U4LyF", Uo = "Select-module__opened___IOv4m", Ue = {
1163
+ select: qo,
1164
+ opened: Uo
1165
+ }, jo = y({
1166
+ name: xt
1167
+ }), ys = /* @__PURE__ */ y({
1168
+ ...jo,
1175
1169
  props: {
1176
1170
  theme: {},
1177
1171
  value: {},
@@ -1182,101 +1176,101 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1182
1176
  isDefaultOpen: { type: Boolean }
1183
1177
  },
1184
1178
  emits: ["change", "openChange"],
1185
- setup(e, { expose: r, emit: t }) {
1186
- const o = e, l = t, a = _(null), s = _(o.isDefaultOpen ?? !1), c = _(-1), d = _(o.defaultValue), p = k(() => o.value !== void 0), g = pt(), x = k(() => {
1187
- const C = g == null ? void 0 : g.vnode;
1188
- return C != null && C.props ? "isOpen" in C.props || "is-open" in C.props : !1;
1189
- }), u = k(
1190
- () => p.value ? o.value : d.value
1191
- ), h = k(
1192
- () => x.value ? !!o.isOpen : s.value
1193
- ), ut = J({
1179
+ setup(e, { expose: o, emit: i }) {
1180
+ const n = e, l = i, s = k(null), c = k(n.isDefaultOpen ?? !1), u = k(-1), d = k(n.defaultValue), h = _(() => n.value !== void 0), g = ut(), f = _(() => {
1181
+ const R = g == null ? void 0 : g.vnode;
1182
+ return R != null && R.props ? "isOpen" in R.props || "is-open" in R.props : !1;
1183
+ }), a = _(
1184
+ () => h.value ? n.value : d.value
1185
+ ), m = _(
1186
+ () => f.value ? !!n.isOpen : c.value
1187
+ ), ge = ie({
1194
1188
  get hoveredIndex() {
1195
- return c.value;
1189
+ return u.value;
1196
1190
  },
1197
- set hoveredIndex(C) {
1198
- c.value = C;
1191
+ set hoveredIndex(R) {
1192
+ u.value = R;
1199
1193
  },
1200
- onHoveredIndexChange: (C) => {
1201
- c.value = C;
1194
+ onHoveredIndexChange: (R) => {
1195
+ u.value = R;
1202
1196
  },
1203
- onChange: (C) => {
1204
- p.value || (d.value = C), l("change", C), s.value = !1;
1197
+ onChange: (R) => {
1198
+ h.value || (d.value = R), l("change", R), c.value = !1;
1205
1199
  },
1206
1200
  get isOpened() {
1207
- return h.value;
1201
+ return m.value;
1208
1202
  },
1209
- onOpen: (C) => {
1210
- !(o.isDisabled ?? !1) && !x.value && (s.value = C, l("openChange", C));
1203
+ onOpen: (R) => {
1204
+ !(n.isDisabled ?? !1) && !f.value && (c.value = R, l("openChange", R));
1211
1205
  },
1212
1206
  get isDisabled() {
1213
- return o.isDisabled ?? !1;
1207
+ return n.isDisabled ?? !1;
1214
1208
  },
1215
1209
  get isInvalid() {
1216
- return o.isInvalid ?? !1;
1210
+ return n.isInvalid ?? !1;
1217
1211
  },
1218
1212
  get value() {
1219
- return u.value;
1213
+ return a.value;
1220
1214
  },
1221
1215
  get defaultValue() {
1222
- return o.defaultValue;
1216
+ return n.defaultValue;
1223
1217
  }
1224
1218
  });
1225
- return mr(ut), r({
1226
- selectRef: a
1227
- }), (C, vn) => (m(), b("div", w(C.$attrs, {
1219
+ return Yo(ge), o({
1220
+ selectRef: s
1221
+ }), (R, Ne) => (p(), v("div", I(R.$attrs, {
1228
1222
  ref_key: "selectRef",
1229
- ref: a,
1223
+ ref: s,
1230
1224
  class: [
1231
- n(Ce).select,
1225
+ r(Ue).select,
1232
1226
  {
1233
- [n(Ce).opened]: h.value
1227
+ [r(Ue).opened]: m.value
1234
1228
  }
1235
1229
  ],
1236
1230
  style: e.theme
1237
1231
  }), [
1238
- y(C.$slots, "default")
1232
+ $(R.$slots, "default")
1239
1233
  ], 16));
1240
1234
  }
1241
- }), ll = {
1235
+ }), gs = {
1242
1236
  "--crm-ui-kit-select-z-index": "auto",
1243
1237
  "--crm-ui-kit-select-opened-z-index": "60"
1244
- }, _r = "Option-module__text___taK9J", kr = {
1245
- text: _r
1246
- }, Je = /* @__PURE__ */ f({
1238
+ }, Ko = "Option-module__text___taK9J", Wo = {
1239
+ text: Ko
1240
+ }, re = /* @__PURE__ */ y({
1247
1241
  __name: "Option",
1248
1242
  props: {
1249
1243
  class: {}
1250
1244
  },
1251
- setup(e, { expose: r }) {
1252
- const t = e, i = {
1253
- ...fe,
1245
+ setup(e, { expose: o }) {
1246
+ const i = e, t = {
1247
+ ...ze,
1254
1248
  "--crm-ui-kit-text-color": "inherit"
1255
- }, o = _(null);
1256
- return r({
1257
- optionRef: o
1258
- }), (l, a) => (m(), b("span", {
1249
+ }, n = k(null);
1250
+ return o({
1251
+ optionRef: n
1252
+ }), (l, s) => (p(), v("span", {
1259
1253
  ref_key: "optionRef",
1260
- ref: o,
1261
- class: v([n(kr).text, t.class])
1254
+ ref: n,
1255
+ class: x([r(Wo).text, i.class])
1262
1256
  }, [
1263
- D(ve, {
1264
- theme: i,
1257
+ M(Le, {
1258
+ theme: t,
1265
1259
  size: "l",
1266
1260
  "is-ellipsis": !0
1267
1261
  }, {
1268
- default: V(() => [
1269
- y(l.$slots, "default")
1262
+ default: z(() => [
1263
+ $(l.$slots, "default")
1270
1264
  ]),
1271
1265
  _: 3
1272
1266
  })
1273
1267
  ], 2));
1274
1268
  }
1275
- }), fr = "Item-module__item___MhuKP", vr = "Item-module__selected___vlZkB", xr = "Item-module__hovered___Zad41", le = {
1276
- item: fr,
1277
- selected: vr,
1278
- hovered: xr
1279
- }, yr = "Select.Item", al = /* @__PURE__ */ f({
1269
+ }), Zo = "Item-module__item___MhuKP", Jo = "Item-module__selected___vlZkB", Xo = "Item-module__hovered___Zad41", we = {
1270
+ item: Zo,
1271
+ selected: Jo,
1272
+ hovered: Xo
1273
+ }, Qo = "Select.Item", Cs = /* @__PURE__ */ y({
1280
1274
  __name: "Item",
1281
1275
  props: {
1282
1276
  item: {},
@@ -1284,41 +1278,41 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1284
1278
  class: {},
1285
1279
  theme: {}
1286
1280
  },
1287
- setup(e, { expose: r }) {
1288
- const t = e, i = te(yr), o = _(null), l = k(() => {
1289
- var c;
1290
- return ((c = i.value) == null ? void 0 : c.value) === t.item.value;
1291
- }), a = k(() => i.hoveredIndex === t.index), s = (c) => {
1292
- c.preventDefault(), i.onHoveredIndexChange(t.index), typeof i.onChange == "function" && i.onChange(t.item);
1281
+ setup(e, { expose: o }) {
1282
+ const i = e, t = ve(Qo), n = k(null), l = _(() => {
1283
+ var u;
1284
+ return ((u = t.value) == null ? void 0 : u.value) === i.item.value;
1285
+ }), s = _(() => t.hoveredIndex === i.index), c = (u) => {
1286
+ u.preventDefault(), t.onHoveredIndexChange(i.index), typeof t.onChange == "function" && t.onChange(i.item);
1293
1287
  };
1294
- return r({
1295
- itemRef: o
1296
- }), (c, d) => (m(), b("li", w({
1288
+ return o({
1289
+ itemRef: n
1290
+ }), (u, d) => (p(), v("li", I({
1297
1291
  ref_key: "itemRef",
1298
- ref: o
1299
- }, c.$attrs, {
1292
+ ref: n
1293
+ }, u.$attrs, {
1300
1294
  class: [
1301
- n(le).item,
1295
+ r(we).item,
1302
1296
  {
1303
- [n(le).selected]: l.value,
1304
- [n(le).hovered]: a.value
1297
+ [r(we).selected]: l.value,
1298
+ [r(we).hovered]: s.value
1305
1299
  },
1306
- t.class
1300
+ i.class
1307
1301
  ],
1308
1302
  style: e.theme,
1309
- onClick: s
1303
+ onClick: c
1310
1304
  }), [
1311
- y(c.$slots, "default", {}, () => [
1312
- D(Je, null, {
1313
- default: V(() => [
1314
- z(T(e.item.option), 1)
1305
+ $(u.$slots, "default", {}, () => [
1306
+ M(re, null, {
1307
+ default: z(() => [
1308
+ L(D(e.item.option), 1)
1315
1309
  ]),
1316
1310
  _: 1
1317
1311
  })
1318
1312
  ])
1319
1313
  ], 16));
1320
1314
  }
1321
- }), sl = {
1315
+ }), $s = {
1322
1316
  "--crm-ui-kit-select-item-padding": "7px 6px 7px 22px",
1323
1317
  "--crm-ui-kit-select-item-margin": "0px -11px 0px 0px",
1324
1318
  "--crm-ui-kit-select-item-font-size": "var(--crm-ui-kit-base-font-size)",
@@ -1327,33 +1321,33 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1327
1321
  "--crm-ui-kit-select-item-selected-background": "var(--crm-ui-kit-icon-check-mark) 8px 14px no-repeat",
1328
1322
  "--crm-ui-kit-select-item-hovered-background-color": "var(--crm-ui-kit-palette-background-default)",
1329
1323
  "--crm-ui-kit-select-item-hover-background-color": "var(--crm-ui-kit-palette-background-default)"
1330
- }, gr = "Arrow-module__wrapper___MpIq-", wr = {
1331
- wrapper: gr
1332
- }, Ir = 20, Cr = 20, cl = /* @__PURE__ */ f({
1324
+ }, er = "Arrow-module__wrapper___MpIq-", tr = {
1325
+ wrapper: er
1326
+ }, ir = 20, or = 20, Is = /* @__PURE__ */ y({
1333
1327
  __name: "Arrow",
1334
1328
  props: {
1335
1329
  theme: {},
1336
1330
  class: {}
1337
1331
  },
1338
- setup(e, { expose: r }) {
1339
- const t = e, i = _(null);
1340
- return r({
1341
- arrowRef: i
1342
- }), (o, l) => (m(), b("span", {
1332
+ setup(e, { expose: o }) {
1333
+ const i = e, t = k(null);
1334
+ return o({
1335
+ arrowRef: t
1336
+ }), (n, l) => (p(), v("span", {
1343
1337
  ref_key: "arrowRef",
1344
- ref: i,
1345
- class: v([n(wr).wrapper, t.class]),
1346
- style: S(e.theme)
1338
+ ref: t,
1339
+ class: x([r(tr).wrapper, i.class]),
1340
+ style: V(e.theme)
1347
1341
  }, [
1348
- y(o.$slots, "default", {}, () => [
1349
- (m(), b("svg", {
1342
+ $(n.$slots, "default", {}, () => [
1343
+ (p(), v("svg", {
1350
1344
  xmlns: "http://www.w3.org/2000/svg",
1351
- width: Ir,
1352
- height: Cr,
1345
+ width: ir,
1346
+ height: or,
1353
1347
  fill: "none",
1354
1348
  viewBox: "0 0 21 21"
1355
1349
  }, [...l[0] || (l[0] = [
1356
- $("path", {
1350
+ T("path", {
1357
1351
  fill: "currentColor",
1358
1352
  "fill-rule": "evenodd",
1359
1353
  d: "m5.25 8.826 1-1 4.5 4.4 4.5-4.4 1 1-5.5 5.5-5.5-5.5Z",
@@ -1363,39 +1357,39 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1363
1357
  ])
1364
1358
  ], 6));
1365
1359
  }
1366
- }), ul = {
1360
+ }), ws = {
1367
1361
  "--crm-ui-kit-select-arrow-width": "20px",
1368
1362
  "--crm-ui-kit-select-arrow-height": "20px",
1369
1363
  "--crm-ui-kit-select-margin": "0 0 0 auto"
1370
- }, $r = "Icon-module__wrapper___LScci", Tr = {
1371
- wrapper: $r
1372
- }, dl = /* @__PURE__ */ f({
1364
+ }, rr = "Icon-module__wrapper___LScci", nr = {
1365
+ wrapper: rr
1366
+ }, Ss = /* @__PURE__ */ y({
1373
1367
  __name: "Icon",
1374
1368
  props: {
1375
1369
  theme: {}
1376
1370
  },
1377
- setup(e, { expose: r }) {
1378
- const t = _(null);
1379
- return r({
1380
- iconRef: t
1381
- }), (i, o) => i.$slots.default ? (m(), b("span", {
1371
+ setup(e, { expose: o }) {
1372
+ const i = k(null);
1373
+ return o({
1374
+ iconRef: i
1375
+ }), (t, n) => t.$slots.default ? (p(), v("span", {
1382
1376
  key: 0,
1383
1377
  ref_key: "iconRef",
1384
- ref: t,
1385
- class: v(n(Tr).wrapper),
1386
- style: S(e.theme)
1378
+ ref: i,
1379
+ class: x(r(nr).wrapper),
1380
+ style: V(e.theme)
1387
1381
  }, [
1388
- y(i.$slots, "default")
1389
- ], 6)) : R("", !0);
1382
+ $(t.$slots, "default")
1383
+ ], 6)) : A("", !0);
1390
1384
  }
1391
- }), ml = {
1385
+ }), Ts = {
1392
1386
  "--crm-ui-kit-select-icon-width": "20px",
1393
1387
  "--crm-ui-kit-select-icon-height": "20px",
1394
1388
  "--crm-ui-kit-select-icon-margin": "0 6px 0 0"
1395
- }, Rr = "List-module__list___yt0s5", Sr = "List-module__opened___-UDVm", $e = {
1396
- list: Rr,
1397
- opened: Sr
1398
- }, Te = /* @__PURE__ */ f({
1389
+ }, lr = "List-module__list___yt0s5", sr = "List-module__opened___-UDVm", je = {
1390
+ list: lr,
1391
+ opened: sr
1392
+ }, Ke = /* @__PURE__ */ y({
1399
1393
  __name: "List",
1400
1394
  props: {
1401
1395
  theme: {},
@@ -1403,46 +1397,45 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1403
1397
  hoveredIndex: { default: 0 }
1404
1398
  },
1405
1399
  emits: ["select", "toggle", "hoveredIndexChange"],
1406
- setup(e, { expose: r, emit: t }) {
1407
- const i = e, o = t, l = _(null), a = ue(), s = k(() => a.default ? a.default().length : 0), c = (d) => {
1408
- const { hoveredIndex: p } = i;
1400
+ setup(e, { expose: o, emit: i }) {
1401
+ const t = e, n = i, l = k(null), s = oe(), c = _(() => s.default ? s.default().length : 0), u = (d) => {
1402
+ const { hoveredIndex: h } = t;
1409
1403
  switch (d.code) {
1410
1404
  case "ArrowDown":
1411
- d.preventDefault(), p < s.value - 1 && o("hoveredIndexChange", p + 1);
1405
+ d.preventDefault(), h < c.value - 1 && n("hoveredIndexChange", h + 1);
1412
1406
  break;
1413
1407
  case "ArrowUp":
1414
- d.preventDefault(), p > 0 && o("hoveredIndexChange", p - 1);
1408
+ d.preventDefault(), h > 0 && n("hoveredIndexChange", h - 1);
1415
1409
  break;
1416
1410
  case "Enter":
1417
1411
  case "Space":
1418
- d.preventDefault(), o("select", p);
1412
+ d.preventDefault(), n("select", h);
1419
1413
  break;
1420
1414
  case "Escape":
1421
- d.preventDefault(), o("toggle", !1);
1415
+ d.preventDefault(), n("toggle", !1);
1422
1416
  break;
1423
1417
  }
1424
1418
  };
1425
- return r({
1419
+ return o({
1426
1420
  listRef: l
1427
- }), (d, p) => e.isOpened ? (m(), b("ul", w({ key: 0 }, d.$attrs, {
1421
+ }), (d, h) => e.isOpened ? (p(), v("ul", I({ key: 0 }, d.$attrs, {
1428
1422
  ref_key: "listRef",
1429
1423
  ref: l,
1430
1424
  tabindex: "0",
1431
1425
  role: "list",
1432
1426
  class: [
1433
- "custom-scroll",
1434
- n($e).list,
1427
+ r(je).list,
1435
1428
  {
1436
- [n($e).opened]: e.isOpened
1429
+ [r(je).opened]: e.isOpened
1437
1430
  }
1438
1431
  ],
1439
1432
  style: e.theme,
1440
- onKeydown: c
1433
+ onKeydown: u
1441
1434
  }), [
1442
- y(d.$slots, "default")
1443
- ], 16)) : R("", !0);
1435
+ $(d.$slots, "default")
1436
+ ], 16)) : A("", !0);
1444
1437
  }
1445
- }), pl = {
1438
+ }), As = {
1446
1439
  "--crm-ui-kit-list-top": "0px",
1447
1440
  "--crm-ui-kit-list-max-height": "211px",
1448
1441
  "--crm-ui-kit-list-z-index": "30",
@@ -1457,175 +1450,493 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1457
1450
  "--crm-ui-kit-list-border-radius": "3px",
1458
1451
  "--crm-ui-kit-list-outline": "none",
1459
1452
  "--crm-ui-kit-list-color": "var(--crm-ui-kit-palette-text-primary)"
1460
- }, Dr = "Select.Button", hl = /* @__PURE__ */ f({
1453
+ }, ar = "Select.Button", Rs = /* @__PURE__ */ y({
1461
1454
  __name: "Button",
1462
1455
  props: {
1463
1456
  theme: {}
1464
1457
  },
1465
- setup(e, { expose: r }) {
1466
- const t = te(Dr), i = _(null), o = () => {
1467
- t.onOpen(!t.isOpened);
1458
+ setup(e, { expose: o }) {
1459
+ const i = ve(ar), t = k(null), n = () => {
1460
+ i.onOpen(!i.isOpened);
1468
1461
  };
1469
- return G(
1470
- () => t.isOpened,
1471
- (l, a) => {
1472
- var s, c;
1473
- a && !l && ((c = (s = i.value) == null ? void 0 : s.buttonRef) == null || c.focus());
1462
+ return P(
1463
+ () => i.isOpened,
1464
+ (l, s) => {
1465
+ var c, u;
1466
+ s && !l && ((u = (c = t.value) == null ? void 0 : c.buttonRef) == null || u.focus());
1474
1467
  }
1475
- ), r({
1476
- buttonRef: i
1477
- }), (l, a) => (m(), B(dr, w({
1468
+ ), o({
1469
+ buttonRef: t
1470
+ }), (l, s) => (p(), E(vt, I({
1478
1471
  ref_key: "buttonRef",
1479
- ref: i
1472
+ ref: t
1480
1473
  }, l.$attrs, {
1481
1474
  theme: e.theme,
1482
- "is-disabled": n(t).isDisabled,
1483
- "is-invalid": n(t).isInvalid,
1484
- onToggle: o
1475
+ "is-disabled": r(i).isDisabled,
1476
+ "is-invalid": r(i).isInvalid,
1477
+ onToggle: n
1485
1478
  }), {
1486
- default: V(() => [
1487
- y(l.$slots, "default")
1479
+ default: z(() => [
1480
+ $(l.$slots, "default")
1488
1481
  ]),
1489
1482
  _: 3
1490
1483
  }, 16, ["theme", "is-disabled", "is-invalid"]));
1491
1484
  }
1492
- }), Ar = ({ ref: e, handler: r }) => {
1493
- const t = (i) => {
1494
- e.value && !e.value.contains(i.target) && r();
1485
+ }), yt = ({ ref: e, handler: o }) => {
1486
+ const i = (t) => {
1487
+ e.value && !e.value.contains(t.target) && o();
1495
1488
  };
1496
- j(() => {
1497
- document.addEventListener("mousedown", t);
1498
- }), Ne(() => {
1499
- document.removeEventListener("mousedown", t);
1489
+ te(() => {
1490
+ document.addEventListener("mousedown", i);
1491
+ }), ct(() => {
1492
+ document.removeEventListener("mousedown", i);
1500
1493
  });
1501
- }, Br = "Select.List", bl = /* @__PURE__ */ f({
1494
+ }, cr = "Select.List", Ds = /* @__PURE__ */ y({
1502
1495
  __name: "SelectList",
1503
1496
  props: {
1504
1497
  theme: {},
1505
1498
  class: {},
1506
1499
  container: {}
1507
1500
  },
1508
- setup(e, { expose: r }) {
1509
- const t = e, i = te(Br), o = _(null), l = ue(), a = k(() => l.default ? l.default().map((h) => {
1510
- var I;
1511
- return (I = h.props) == null ? void 0 : I.item;
1512
- }).filter(Boolean) : []), s = k(() => {
1513
- const u = {};
1514
- return a.value.forEach((h, I) => {
1515
- (h == null ? void 0 : h.value) !== void 0 && (u[String(h.value)] = I);
1516
- }), u;
1517
- }), c = k(() => {
1518
- if (i.value) {
1519
- const u = s.value[String(i.value.value)];
1520
- if (u !== void 0) return u;
1501
+ setup(e, { expose: o }) {
1502
+ const i = e, t = ve(cr), n = k(null), l = oe(), s = _(() => l.default ? l.default().map((m) => {
1503
+ var b;
1504
+ return (b = m.props) == null ? void 0 : b.item;
1505
+ }).filter(Boolean) : []), c = _(() => {
1506
+ const a = {};
1507
+ return s.value.forEach((m, b) => {
1508
+ (m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = b);
1509
+ }), a;
1510
+ }), u = _(() => {
1511
+ if (t.value) {
1512
+ const a = c.value[String(t.value.value)];
1513
+ if (a !== void 0) return a;
1521
1514
  }
1522
- return i.hoveredIndex;
1523
- }), d = (u) => {
1524
- i.onHoveredIndexChange(u);
1525
- }, p = (u) => {
1526
- i.onOpen(u);
1527
- }, g = (u) => {
1528
- const h = a.value[u];
1529
- h && typeof i.onChange == "function" && i.onChange(h);
1530
- }, x = k(() => {
1531
- var u;
1532
- return ((u = o.value) == null ? void 0 : u.listRef) ?? null;
1515
+ return t.hoveredIndex;
1516
+ }), d = (a) => {
1517
+ t.onHoveredIndexChange(a);
1518
+ }, h = (a) => {
1519
+ t.onOpen(a);
1520
+ }, g = (a) => {
1521
+ const m = s.value[a];
1522
+ m && typeof t.onChange == "function" && t.onChange(m);
1523
+ }, f = _(() => {
1524
+ var a;
1525
+ return ((a = n.value) == null ? void 0 : a.listRef) ?? null;
1533
1526
  });
1534
- return Ar({
1535
- ref: x,
1527
+ return yt({
1528
+ ref: f,
1536
1529
  handler: () => {
1537
- i.isOpened && i.onOpen(!1);
1530
+ t.isOpened && t.onOpen(!1);
1538
1531
  }
1539
- }), G(
1540
- () => i.isOpened,
1541
- (u) => {
1542
- var h, I;
1543
- u && ((I = (h = o.value) == null ? void 0 : h.listRef) == null || I.focus());
1532
+ }), P(
1533
+ () => t.isOpened,
1534
+ (a) => {
1535
+ var m, b;
1536
+ a && ((b = (m = n.value) == null ? void 0 : m.listRef) == null || b.focus());
1544
1537
  }
1545
- ), r({
1546
- listRef: o
1547
- }), (u, h) => e.container ? (m(), B(Ge, {
1538
+ ), o({
1539
+ listRef: n
1540
+ }), (a, m) => e.container ? (p(), E(Ae, {
1548
1541
  key: 0,
1549
1542
  to: e.container
1550
1543
  }, [
1551
- D(Te, {
1544
+ M(Ke, {
1552
1545
  ref_key: "listRef",
1553
- ref: o,
1554
- class: v(t.class),
1555
- "is-opened": n(i).isOpened,
1546
+ ref: n,
1547
+ class: x(i.class),
1548
+ "is-opened": r(t).isOpened,
1556
1549
  theme: e.theme,
1557
- "hovered-index": c.value,
1550
+ "hovered-index": u.value,
1558
1551
  onHoveredIndexChange: d,
1559
- onToggle: p,
1552
+ onToggle: h,
1560
1553
  onSelect: g
1561
1554
  }, {
1562
- default: V(() => [
1563
- y(u.$slots, "default")
1555
+ default: z(() => [
1556
+ $(a.$slots, "default")
1564
1557
  ]),
1565
1558
  _: 3
1566
1559
  }, 8, ["class", "is-opened", "theme", "hovered-index"])
1567
- ], 8, ["to"])) : (m(), B(Te, {
1560
+ ], 8, ["to"])) : (p(), E(Ke, {
1568
1561
  key: 1,
1569
1562
  ref_key: "listRef",
1570
- ref: o,
1571
- class: v(t.class),
1572
- "is-opened": n(i).isOpened,
1563
+ ref: n,
1564
+ class: x(i.class),
1565
+ "is-opened": r(t).isOpened,
1573
1566
  theme: e.theme,
1574
- "hovered-index": c.value,
1567
+ "hovered-index": u.value,
1575
1568
  onHoveredIndexChange: d,
1576
- onToggle: p,
1569
+ onToggle: h,
1577
1570
  onSelect: g
1578
1571
  }, {
1579
- default: V(() => [
1580
- y(u.$slots, "default")
1572
+ default: z(() => [
1573
+ $(a.$slots, "default")
1581
1574
  ]),
1582
1575
  _: 3
1583
1576
  }, 8, ["class", "is-opened", "theme", "hovered-index"]));
1584
1577
  }
1585
- }), zr = "Select.Value", _l = /* @__PURE__ */ f({
1578
+ }), ur = "Select.Value", Bs = /* @__PURE__ */ y({
1586
1579
  __name: "Value",
1587
1580
  props: {
1588
1581
  placeholder: { default: "" },
1589
1582
  class: { default: "" },
1590
1583
  name: {}
1591
1584
  },
1592
- setup(e, { expose: r }) {
1593
- const t = e, i = te(zr), o = k(() => !i.value), l = _(null);
1594
- return r({
1585
+ setup(e, { expose: o }) {
1586
+ const i = e, t = ve(ur), n = _(() => !t.value), l = k(null);
1587
+ return o({
1595
1588
  optionRef: l
1596
- }), (a, s) => {
1597
- var c;
1598
- return m(), b(ce, null, [
1599
- a.$slots.default ? y(a.$slots, "default", { key: 0 }) : (m(), B(Je, {
1589
+ }), (s, c) => {
1590
+ var u;
1591
+ return p(), v(me, null, [
1592
+ s.$slots.default ? $(s.$slots, "default", { key: 0 }) : (p(), E(re, {
1600
1593
  key: 1,
1601
1594
  ref_key: "optionRef",
1602
1595
  ref: l,
1603
- class: v(t.class)
1596
+ class: x(i.class)
1604
1597
  }, {
1605
- default: V(() => {
1598
+ default: z(() => {
1606
1599
  var d;
1607
1600
  return [
1608
- z(T(o.value ? e.placeholder : (d = n(i).value) == null ? void 0 : d.option), 1)
1601
+ L(D(n.value ? e.placeholder : (d = r(t).value) == null ? void 0 : d.option), 1)
1609
1602
  ];
1610
1603
  }),
1611
1604
  _: 1
1612
1605
  }, 8, ["class"])),
1613
- D(Q, {
1606
+ M(be, {
1614
1607
  name: e.name,
1615
1608
  type: "hidden",
1616
- value: (c = n(i).value) == null ? void 0 : c.value
1609
+ value: (u = r(t).value) == null ? void 0 : u.value
1617
1610
  }, null, 8, ["name", "value"])
1618
1611
  ], 64);
1619
1612
  };
1620
1613
  }
1621
- }), Vr = () => "ontouchstart" in window, Er = "Checkbox-module__wrapper___rznMS", Lr = "Checkbox-module__input___-039s", Pr = "Checkbox-module__checkbox___D0D4S", Or = "Checkbox-module__indeterminate___rX-dK", Mr = "Checkbox-module__invalid___B4jAs", Nr = "Checkbox-module__touchable___glE4H", q = {
1622
- wrapper: Er,
1623
- input: Lr,
1624
- checkbox: Pr,
1625
- indeterminate: Or,
1626
- invalid: Mr,
1627
- touchable: Nr
1628
- }, Fr = /* @__PURE__ */ f({
1614
+ }), gt = "MultiSelect", [dr, W] = F(gt), mr = "MultiSelect-module__multiselect___93yRK", pr = "MultiSelect-module__opened___thrIy", We = {
1615
+ multiselect: mr,
1616
+ opened: pr
1617
+ }, hr = y({
1618
+ name: gt
1619
+ }), Vs = /* @__PURE__ */ y({
1620
+ ...hr,
1621
+ props: {
1622
+ theme: {},
1623
+ mode: { default: "multi" },
1624
+ groupSelectable: { type: Boolean, default: !1 },
1625
+ value: {},
1626
+ defaultValue: {},
1627
+ items: {},
1628
+ isInvalid: { type: Boolean },
1629
+ isDisabled: { type: Boolean },
1630
+ isOpen: { type: Boolean },
1631
+ isDefaultOpen: { type: Boolean }
1632
+ },
1633
+ emits: ["change", "openChange"],
1634
+ setup(e, { expose: o, emit: i }) {
1635
+ const t = e, n = i, l = k(null), s = k(t.isDefaultOpen ?? !1), c = k(null), u = k(""), d = k(
1636
+ new Set((t.defaultValue ?? []).map((C) => C.value))
1637
+ ), h = _(() => t.value !== void 0), g = ut(), f = _(() => {
1638
+ const C = g == null ? void 0 : g.vnode;
1639
+ return C != null && C.props ? "isOpen" in C.props || "is-open" in C.props : !1;
1640
+ }), a = _(() => h.value ? new Set((t.value ?? []).map((C) => C.value)) : d.value), m = _(
1641
+ () => f.value ? !!t.isOpen : s.value
1642
+ ), b = _(() => t.items ?? []), S = _(() => {
1643
+ const C = a.value;
1644
+ return b.value.filter((w) => C.has(w.value));
1645
+ }), X = (C) => {
1646
+ (t.isDisabled ?? !1) || (f.value || (s.value = C), C || (u.value = ""), n("openChange", C));
1647
+ }, ge = (C) => {
1648
+ if (t.mode === "single")
1649
+ h.value || (d.value = /* @__PURE__ */ new Set([C.value])), n("change", [C]), X(!1);
1650
+ else {
1651
+ const w = new Set(a.value);
1652
+ w.has(C.value) ? w.delete(C.value) : w.add(C.value), h.value || (d.value = w);
1653
+ const O = b.value.filter((B) => w.has(B.value));
1654
+ n("change", O);
1655
+ }
1656
+ }, R = (C) => {
1657
+ const w = b.value.filter((N) => N.group === C);
1658
+ if (w.length === 0) return;
1659
+ const O = w.every((N) => a.value.has(N.value)), B = new Set(a.value);
1660
+ O ? w.forEach((N) => B.delete(N.value)) : w.forEach((N) => B.add(N.value)), h.value || (d.value = B);
1661
+ const H = b.value.filter((N) => B.has(N.value));
1662
+ n("change", H);
1663
+ }, Ne = () => {
1664
+ const C = b.value.length > 0 && b.value.every((B) => a.value.has(B.value)), w = /* @__PURE__ */ new Set();
1665
+ C || b.value.forEach((B) => w.add(B.value)), h.value || (d.value = w);
1666
+ const O = b.value.filter((B) => w.has(B.value));
1667
+ n("change", O);
1668
+ }, ne = (C) => b.value.filter((w) => w.group === C), Mt = (C) => {
1669
+ const w = ne(C);
1670
+ return w.length > 0 && w.every((O) => a.value.has(O.value));
1671
+ }, Ot = (C) => {
1672
+ const w = ne(C), O = w.filter((B) => a.value.has(B.value)).length;
1673
+ return O > 0 && O < w.length;
1674
+ }, zt = () => b.value.length > 0 && b.value.every((C) => a.value.has(C.value)), Lt = () => {
1675
+ const C = b.value.filter((w) => a.value.has(w.value)).length;
1676
+ return C > 0 && C < b.value.length;
1677
+ }, Pt = (C) => {
1678
+ c.value = C;
1679
+ }, Gt = (C) => {
1680
+ u.value = C;
1681
+ }, Nt = (C) => {
1682
+ const w = u.value.trim().toLowerCase();
1683
+ return w ? C.option.toLowerCase().includes(w) : !0;
1684
+ }, Ft = (C) => {
1685
+ const w = u.value.trim().toLowerCase();
1686
+ return w ? ne(C).some((B) => B.option.toLowerCase().includes(w)) : !0;
1687
+ };
1688
+ P(
1689
+ () => t.items,
1690
+ (C) => {
1691
+ if (!C) return;
1692
+ const w = new Set(C.map((H) => H.value)), O = a.value, B = [...O].filter((H) => !w.has(H));
1693
+ if (B.length > 0) {
1694
+ const H = new Set(O);
1695
+ B.forEach((Ce) => H.delete(Ce)), h.value || (d.value = H);
1696
+ const N = C.filter((Ce) => H.has(Ce.value));
1697
+ n("change", N);
1698
+ }
1699
+ },
1700
+ { deep: !0 }
1701
+ );
1702
+ const Ht = ie({
1703
+ get values() {
1704
+ return a.value;
1705
+ },
1706
+ get selectedItems() {
1707
+ return S.value;
1708
+ },
1709
+ get isOpened() {
1710
+ return m.value;
1711
+ },
1712
+ get isDisabled() {
1713
+ return t.isDisabled ?? !1;
1714
+ },
1715
+ get isInvalid() {
1716
+ return t.isInvalid ?? !1;
1717
+ },
1718
+ get hoveredItemValue() {
1719
+ return c.value;
1720
+ },
1721
+ get mode() {
1722
+ return t.mode ?? "multi";
1723
+ },
1724
+ get groupSelectable() {
1725
+ return t.groupSelectable ?? !1;
1726
+ },
1727
+ get searchQuery() {
1728
+ return u.value;
1729
+ },
1730
+ onOpen: X,
1731
+ onToggleItem: ge,
1732
+ onToggleGroup: R,
1733
+ onToggleAll: Ne,
1734
+ onHoveredItemChange: Pt,
1735
+ onSearchChange: Gt,
1736
+ isItemMatchingSearch: Nt,
1737
+ isGroupMatchingSearch: Ft,
1738
+ getGroupItems: ne,
1739
+ isGroupAllSelected: Mt,
1740
+ isGroupPartiallySelected: Ot,
1741
+ isAllSelected: zt,
1742
+ isPartiallySelected: Lt
1743
+ });
1744
+ return dr(Ht), o({
1745
+ multiSelectRef: l
1746
+ }), (C, w) => (p(), v("div", I(C.$attrs, {
1747
+ ref_key: "multiSelectRef",
1748
+ ref: l,
1749
+ class: [
1750
+ r(We).multiselect,
1751
+ {
1752
+ [r(We).opened]: m.value
1753
+ }
1754
+ ],
1755
+ style: e.theme
1756
+ }), [
1757
+ $(C.$slots, "default")
1758
+ ], 16));
1759
+ }
1760
+ }), Es = {
1761
+ "--crm-ui-kit-multiselect-z-index": "auto",
1762
+ "--crm-ui-kit-multiselect-opened-z-index": "60"
1763
+ }, _r = "MultiSelect.Trigger", Ms = /* @__PURE__ */ y({
1764
+ __name: "Trigger",
1765
+ props: {
1766
+ theme: {}
1767
+ },
1768
+ setup(e, { expose: o }) {
1769
+ const i = W(_r), t = k(null), n = () => {
1770
+ i.onOpen(!i.isOpened);
1771
+ };
1772
+ return P(
1773
+ () => i.isOpened,
1774
+ (l, s) => {
1775
+ var c, u;
1776
+ s && !l && ((u = (c = t.value) == null ? void 0 : c.buttonRef) == null || u.focus());
1777
+ }
1778
+ ), o({
1779
+ buttonRef: t
1780
+ }), (l, s) => (p(), E(vt, I({
1781
+ ref_key: "buttonRef",
1782
+ ref: t
1783
+ }, l.$attrs, {
1784
+ theme: e.theme,
1785
+ "is-disabled": r(i).isDisabled,
1786
+ "is-invalid": r(i).isInvalid,
1787
+ onToggle: n
1788
+ }), {
1789
+ default: z(() => [
1790
+ $(l.$slots, "default")
1791
+ ]),
1792
+ _: 3
1793
+ }, 16, ["theme", "is-disabled", "is-invalid"]));
1794
+ }
1795
+ }), br = "MultiSelectList-module__list___lKhqs", fr = "MultiSelectList-module__empty___4vLBH", ae = {
1796
+ list: br,
1797
+ empty: fr
1798
+ }, vr = ["aria-multiselectable"], kr = ["aria-multiselectable"], xr = "MultiSelect.List", Os = /* @__PURE__ */ y({
1799
+ __name: "MultiSelectList",
1800
+ props: {
1801
+ theme: {},
1802
+ class: {},
1803
+ container: {},
1804
+ emptyText: { default: "Нет элементов" }
1805
+ },
1806
+ setup(e, { expose: o }) {
1807
+ const i = e, t = W(xr), n = k(null), l = oe();
1808
+ function s(a) {
1809
+ var b;
1810
+ const m = [];
1811
+ for (const S of a)
1812
+ (b = S.props) != null && b.item && m.push(S.props.item), Array.isArray(S.children) && m.push(...s(S.children));
1813
+ return m;
1814
+ }
1815
+ const c = _(() => {
1816
+ if (!l.default) return [];
1817
+ const a = l.default();
1818
+ return s(a);
1819
+ }), u = _(() => c.value.length), d = _(() => {
1820
+ const a = {};
1821
+ return c.value.forEach((m, b) => {
1822
+ (m == null ? void 0 : m.value) !== void 0 && (a[String(m.value)] = b);
1823
+ }), a;
1824
+ }), h = k(-1), g = _(() => {
1825
+ const a = t.hoveredItemValue;
1826
+ return a === null ? -1 : d.value[String(a)] ?? -1;
1827
+ });
1828
+ P(
1829
+ () => t.isOpened,
1830
+ (a) => {
1831
+ a && (h.value = g.value);
1832
+ }
1833
+ );
1834
+ const f = (a) => {
1835
+ const m = u.value;
1836
+ let b = h.value;
1837
+ switch (a.code) {
1838
+ case "ArrowDown":
1839
+ if (a.preventDefault(), b < m - 1) {
1840
+ b++, h.value = b;
1841
+ const S = c.value[b];
1842
+ S && t.onHoveredItemChange(S.value);
1843
+ }
1844
+ break;
1845
+ case "ArrowUp":
1846
+ if (a.preventDefault(), b > 0) {
1847
+ b--, h.value = b;
1848
+ const S = c.value[b];
1849
+ S && t.onHoveredItemChange(S.value);
1850
+ }
1851
+ break;
1852
+ case "Enter":
1853
+ case "Space":
1854
+ if (a.preventDefault(), b >= 0 && b < m) {
1855
+ const S = c.value[b];
1856
+ S && t.onToggleItem(S);
1857
+ }
1858
+ break;
1859
+ case "Escape":
1860
+ a.preventDefault(), t.onOpen(!1);
1861
+ break;
1862
+ }
1863
+ };
1864
+ return yt({
1865
+ ref: n,
1866
+ handler: () => {
1867
+ t.isOpened && t.onOpen(!1);
1868
+ }
1869
+ }), P(
1870
+ () => t.isOpened,
1871
+ (a) => {
1872
+ a && setTimeout(() => {
1873
+ var m;
1874
+ (m = n.value) == null || m.focus();
1875
+ }, 0);
1876
+ }
1877
+ ), o({
1878
+ listRef: n,
1879
+ items: c,
1880
+ itemsMap: d
1881
+ }), (a, m) => e.container ? (p(), E(Ae, {
1882
+ key: 0,
1883
+ to: e.container
1884
+ }, [
1885
+ r(t).isOpened ? (p(), v("ul", I({
1886
+ key: 0,
1887
+ ref_key: "listRef",
1888
+ ref: n
1889
+ }, a.$attrs, {
1890
+ tabindex: "0",
1891
+ role: "listbox",
1892
+ "aria-multiselectable": r(t).mode === "multi" ? "true" : void 0,
1893
+ class: [
1894
+ "custom-scroll",
1895
+ r(ae).list,
1896
+ i.class
1897
+ ],
1898
+ style: e.theme,
1899
+ onKeydown: f
1900
+ }), [
1901
+ $(a.$slots, "default"),
1902
+ u.value === 0 ? (p(), v("li", {
1903
+ key: 0,
1904
+ class: x(r(ae).empty)
1905
+ }, D(e.emptyText), 3)) : A("", !0)
1906
+ ], 16, vr)) : A("", !0)
1907
+ ], 8, ["to"])) : (p(), v(me, { key: 1 }, [
1908
+ r(t).isOpened ? (p(), v("ul", I({
1909
+ key: 0,
1910
+ ref_key: "listRef",
1911
+ ref: n
1912
+ }, a.$attrs, {
1913
+ tabindex: "0",
1914
+ role: "listbox",
1915
+ "aria-multiselectable": r(t).mode === "multi" ? "true" : void 0,
1916
+ class: [
1917
+ "custom-scroll",
1918
+ r(ae).list,
1919
+ i.class
1920
+ ],
1921
+ style: e.theme,
1922
+ onKeydown: f
1923
+ }), [
1924
+ $(a.$slots, "default"),
1925
+ u.value === 0 ? (p(), v("li", {
1926
+ key: 0,
1927
+ class: x(r(ae).empty)
1928
+ }, D(e.emptyText), 3)) : A("", !0)
1929
+ ], 16, kr)) : A("", !0)
1930
+ ], 64));
1931
+ }
1932
+ }), yr = () => "ontouchstart" in window, gr = "Checkbox-module__wrapper___rznMS", Cr = "Checkbox-module__input___-039s", $r = "Checkbox-module__checkbox___D0D4S", Ir = "Checkbox-module__indeterminate___rX-dK", wr = "Checkbox-module__invalid___B4jAs", Sr = "Checkbox-module__touchable___glE4H", Q = {
1933
+ wrapper: gr,
1934
+ input: Cr,
1935
+ checkbox: $r,
1936
+ indeterminate: Ir,
1937
+ invalid: wr,
1938
+ touchable: Sr
1939
+ }, ke = /* @__PURE__ */ y({
1629
1940
  inheritAttrs: !1,
1630
1941
  __name: "Checkbox",
1631
1942
  props: {
@@ -1640,74 +1951,74 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1640
1951
  isInvalid: { type: Boolean, default: !1 },
1641
1952
  theme: {}
1642
1953
  },
1643
- setup(e, { expose: r }) {
1644
- const t = e, i = _(null), o = _(!1);
1645
- return j(() => {
1646
- o.value = Vr();
1647
- }), r({
1648
- inputRef: i
1649
- }), (l, a) => (m(), b("div", {
1650
- class: v([
1651
- n(q).wrapper,
1954
+ setup(e, { expose: o }) {
1955
+ const i = e, t = k(null), n = k(!1);
1956
+ return te(() => {
1957
+ n.value = yr();
1958
+ }), o({
1959
+ inputRef: t
1960
+ }), (l, s) => (p(), v("div", {
1961
+ class: x([
1962
+ r(Q).wrapper,
1652
1963
  {
1653
- [n(q).touchable]: o.value
1964
+ [r(Q).touchable]: n.value
1654
1965
  }
1655
1966
  ]),
1656
- style: S(e.theme)
1967
+ style: V(e.theme)
1657
1968
  }, [
1658
- D(Q, w(l.$attrs, {
1659
- id: t.id,
1969
+ M(be, I(l.$attrs, {
1970
+ id: i.id,
1660
1971
  ref_key: "inputRef",
1661
- ref: i,
1662
- class: n(q).input,
1972
+ ref: t,
1973
+ class: r(Q).input,
1663
1974
  type: "checkbox",
1664
- "is-disabled": t.isDisabled,
1665
- "is-readonly": t.isReadonly,
1666
- "is-checked": t.isChecked,
1667
- "is-default-checked": t.isDefaultChecked,
1668
- value: t.value,
1669
- name: t.name
1975
+ "is-disabled": i.isDisabled,
1976
+ "is-readonly": i.isReadonly,
1977
+ "is-checked": i.isChecked,
1978
+ "is-default-checked": i.isDefaultChecked,
1979
+ value: i.value,
1980
+ name: i.name
1670
1981
  }), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
1671
- $("span", {
1672
- class: v([
1673
- n(q).checkbox,
1982
+ T("span", {
1983
+ class: x([
1984
+ r(Q).checkbox,
1674
1985
  {
1675
- [n(q).indeterminate]: e.checkedStyle === "indeterminate",
1676
- [n(q).invalid]: e.isInvalid
1986
+ [r(Q).indeterminate]: e.checkedStyle === "indeterminate",
1987
+ [r(Q).invalid]: e.isInvalid
1677
1988
  }
1678
1989
  ])
1679
1990
  }, null, 2)
1680
1991
  ], 6));
1681
1992
  }
1682
- }), kl = /* @__PURE__ */ f({
1993
+ }), zs = /* @__PURE__ */ y({
1683
1994
  __name: "LabelGroup",
1684
1995
  props: {
1685
1996
  theme: {}
1686
1997
  },
1687
- setup(e, { expose: r }) {
1688
- const t = ue(), i = _(null), o = k(() => t.default ? t.default() : []);
1689
- return r({
1690
- groupRef: i
1691
- }), (l, a) => (m(), b("div", {
1998
+ setup(e, { expose: o }) {
1999
+ const i = oe(), t = k(null), n = _(() => i.default ? i.default() : []);
2000
+ return o({
2001
+ groupRef: t
2002
+ }), (l, s) => (p(), v("div", {
1692
2003
  ref_key: "groupRef",
1693
- ref: i
2004
+ ref: t
1694
2005
  }, [
1695
- (m(!0), b(ce, null, ht(o.value, (s, c) => (m(), b("div", {
1696
- key: c,
1697
- class: v([n(F).wrapper]),
1698
- style: S(e.theme)
2006
+ (p(!0), v(me, null, Ut(n.value, (c, u) => (p(), v("div", {
2007
+ key: u,
2008
+ class: x([r(J).wrapper]),
2009
+ style: V(e.theme)
1699
2010
  }, [
1700
- (m(), B(de(s)))
2011
+ (p(), E(Re(c)))
1701
2012
  ], 6))), 128))
1702
2013
  ], 512));
1703
2014
  }
1704
- }), fl = {
2015
+ }), Ls = {
1705
2016
  "--crm-ui-kit-label-group-margin-bottom": "16px"
1706
- }, Gr = {
2017
+ }, Tr = {
1707
2018
  "--crm-ui-kit-label-spacing": "4px",
1708
2019
  "--crm-ui-kit-label-description-spacing": "4px",
1709
2020
  "--crm-ui-kit-label-text-width": "auto"
1710
- }, ie = {
2021
+ }, xe = {
1711
2022
  "--crm-ui-kit-checkbox-z-index": "3",
1712
2023
  "--crm-ui-kit-checkbox-border-width": "1px",
1713
2024
  "--crm-ui-kit-checkbox-border-radius": "3px",
@@ -1722,95 +2033,426 @@ const Vt = "Button-module__button___18Bed", Et = "Button-module__disabled___UzdW
1722
2033
  "--crm-ui-kit-checkbox-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
1723
2034
  "--crm-ui-kit-checkbox-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
1724
2035
  "--crm-ui-kit-checkbox-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
1725
- }, vl = {
1726
- ...ie,
2036
+ }, Pe = {
2037
+ ...xe,
1727
2038
  "--crm-ui-kit-checkbox-size": "20px",
1728
2039
  "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
1729
- }, xl = {
1730
- ...ie,
2040
+ }, Ps = {
2041
+ ...xe,
1731
2042
  "--crm-ui-kit-checkbox-size": "16px",
1732
2043
  "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
1733
- }, yl = {
1734
- ...ie,
2044
+ }, Gs = {
2045
+ ...xe,
1735
2046
  "--crm-ui-kit-checkbox-size": "20px",
1736
2047
  "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
1737
- }, gl = {
1738
- ...ie,
2048
+ }, Ns = {
2049
+ ...xe,
1739
2050
  "--crm-ui-kit-checkbox-size": "16px",
1740
2051
  "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
1741
2052
  };
1742
2053
  ({
1743
- ...Gr
2054
+ ...Tr
1744
2055
  });
1745
- const wl = /* @__PURE__ */ f({
2056
+ const Ar = "Item-module__item___KOHVr", Rr = "Item-module__selected___rWQeZ", Dr = "Item-module__hovered___UY-ih", ue = {
2057
+ item: Ar,
2058
+ selected: Rr,
2059
+ hovered: Dr
2060
+ }, Br = ["aria-selected", "title"], Vr = "MultiSelect.Item", Fs = /* @__PURE__ */ y({
2061
+ __name: "Item",
2062
+ props: {
2063
+ item: {},
2064
+ theme: {}
2065
+ },
2066
+ setup(e, { expose: o }) {
2067
+ const i = e, t = W(Vr), n = k(null), l = Pe, s = _(() => t.isItemMatchingSearch(i.item)), c = _(() => t.values.has(i.item.value)), u = _(() => t.hoveredItemValue === i.item.value), d = (h) => {
2068
+ h.preventDefault(), t.onToggleItem(i.item);
2069
+ };
2070
+ return o({
2071
+ itemRef: n
2072
+ }), (h, g) => s.value ? (p(), v("li", I({
2073
+ key: 0,
2074
+ ref_key: "itemRef",
2075
+ ref: n
2076
+ }, h.$attrs, {
2077
+ role: "option",
2078
+ "aria-selected": c.value,
2079
+ class: [
2080
+ r(ue).item,
2081
+ {
2082
+ [r(ue).selected]: c.value,
2083
+ [r(ue).hovered]: u.value
2084
+ }
2085
+ ],
2086
+ style: e.theme,
2087
+ title: e.item.option,
2088
+ onClick: d
2089
+ }), [
2090
+ r(t).mode === "multi" ? (p(), E(ke, {
2091
+ key: 0,
2092
+ theme: r(l),
2093
+ "is-checked": c.value,
2094
+ tabindex: -1,
2095
+ onClick: g[0] || (g[0] = he(() => {
2096
+ }, ["stop"]))
2097
+ }, null, 8, ["theme", "is-checked"])) : A("", !0),
2098
+ $(h.$slots, "default", {}, () => [
2099
+ M(re, null, {
2100
+ default: z(() => [
2101
+ L(D(e.item.option), 1)
2102
+ ]),
2103
+ _: 1
2104
+ })
2105
+ ])
2106
+ ], 16, Br)) : A("", !0);
2107
+ }
2108
+ }), Er = "Group-module__group___KLx-N", Mr = "Group-module__header___eqC1O", Or = "Group-module__headerSelectable___Xrf4T", zr = "Group-module__label___uz8UE", Lr = "Group-module__children___CvJVM", Pr = "Group-module__empty___1ph2n", ee = {
2109
+ group: Er,
2110
+ header: Mr,
2111
+ headerSelectable: Or,
2112
+ label: zr,
2113
+ children: Lr,
2114
+ empty: Pr
2115
+ }, Gr = ["aria-label"], Nr = ["title"], Fr = "MultiSelect.Group", Hs = /* @__PURE__ */ y({
2116
+ __name: "Group",
2117
+ props: {
2118
+ group: {},
2119
+ theme: {},
2120
+ emptyText: { default: "Нет элементов" }
2121
+ },
2122
+ setup(e) {
2123
+ const o = /^(#[\da-f]{3,8}|rgba?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*(,\s*(0|1|0?\.\d+))?\s*\)|hsla?\(\s*\d{1,3}\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%\s*(,\s*(0|1|0?\.\d+))?\s*\)|[a-z]{3,20})$/i, i = e, t = W(Fr), n = _(() => t.isGroupMatchingSearch(i.group.id)), l = Pe, s = oe(), c = _(() => s.default ? s.default().length === 0 : !0), u = _(
2124
+ () => t.isGroupAllSelected(i.group.id)
2125
+ ), d = _(
2126
+ () => t.isGroupPartiallySelected(i.group.id)
2127
+ ), h = _(
2128
+ () => u.value || d.value
2129
+ ), g = _(
2130
+ () => u.value ? "mark" : "indeterminate"
2131
+ ), f = (b) => o.test(b.trim()), a = _(() => {
2132
+ const b = { ...i.theme };
2133
+ return i.group.color && f(i.group.color) && (b.backgroundColor = i.group.color), b;
2134
+ }), m = () => {
2135
+ t.groupSelectable && t.onToggleGroup(i.group.id);
2136
+ };
2137
+ return (b, S) => n.value ? (p(), v("li", {
2138
+ key: 0,
2139
+ class: x(r(ee).group),
2140
+ role: "group",
2141
+ "aria-label": e.group.label
2142
+ }, [
2143
+ T("div", {
2144
+ class: x([
2145
+ r(ee).header,
2146
+ {
2147
+ [r(ee).headerSelectable]: r(t).groupSelectable
2148
+ }
2149
+ ]),
2150
+ style: V(a.value),
2151
+ title: e.group.label,
2152
+ onClick: m
2153
+ }, [
2154
+ r(t).groupSelectable ? (p(), E(ke, {
2155
+ key: 0,
2156
+ theme: r(l),
2157
+ "is-checked": h.value,
2158
+ "checked-style": g.value,
2159
+ tabindex: -1,
2160
+ onClick: S[0] || (S[0] = he(() => {
2161
+ }, ["stop"]))
2162
+ }, null, 8, ["theme", "is-checked", "checked-style"])) : A("", !0),
2163
+ T("span", {
2164
+ class: x(r(ee).label)
2165
+ }, D(e.group.label), 3)
2166
+ ], 14, Nr),
2167
+ T("ul", {
2168
+ class: x(r(ee).children)
2169
+ }, [
2170
+ $(b.$slots, "default"),
2171
+ c.value ? (p(), v("li", {
2172
+ key: 0,
2173
+ class: x(r(ee).empty)
2174
+ }, D(e.emptyText), 3)) : A("", !0)
2175
+ ], 2)
2176
+ ], 10, Gr)) : A("", !0);
2177
+ }
2178
+ }), Hr = "MultiSelect.All", Ys = /* @__PURE__ */ y({
2179
+ __name: "All",
2180
+ props: {
2181
+ theme: {},
2182
+ label: { default: "Выбрать всё" }
2183
+ },
2184
+ setup(e) {
2185
+ const o = W(Hr), i = Pe, t = _(() => o.isAllSelected()), n = _(() => o.isPartiallySelected()), l = _(
2186
+ () => t.value || n.value
2187
+ ), s = _(
2188
+ () => t.value ? "mark" : "indeterminate"
2189
+ ), c = (u) => {
2190
+ u.preventDefault(), o.onToggleAll();
2191
+ };
2192
+ return (u, d) => r(o).searchQuery ? A("", !0) : (p(), v("li", {
2193
+ key: 0,
2194
+ class: x(r(ue).item),
2195
+ style: V(e.theme),
2196
+ onClick: c
2197
+ }, [
2198
+ M(ke, {
2199
+ theme: r(i),
2200
+ "is-checked": l.value,
2201
+ "checked-style": s.value,
2202
+ tabindex: -1,
2203
+ onClick: d[0] || (d[0] = he(() => {
2204
+ }, ["stop"]))
2205
+ }, null, 8, ["theme", "is-checked", "checked-style"]),
2206
+ M(re, null, {
2207
+ default: z(() => [
2208
+ L(D(e.label), 1)
2209
+ ]),
2210
+ _: 1
2211
+ })
2212
+ ], 6));
2213
+ }
2214
+ }), Yr = "Value-module__value___Aswvw", qr = "Value-module__text___-f1lX", Ur = {
2215
+ value: Yr,
2216
+ text: qr
2217
+ }, jr = "MultiSelect.Value", qs = /* @__PURE__ */ y({
2218
+ __name: "Value",
2219
+ props: {
2220
+ placeholder: { default: "" },
2221
+ displayMode: { default: "count" },
2222
+ maxDisplayItems: { default: 2 },
2223
+ countTemplate: { default: "{n} выбрано" },
2224
+ class: {}
2225
+ },
2226
+ setup(e, { expose: o }) {
2227
+ const i = e, t = W(jr), n = k(null), l = _(() => {
2228
+ const s = t.selectedItems;
2229
+ if (s.length === 0)
2230
+ return i.placeholder;
2231
+ if (i.displayMode === "count")
2232
+ return i.countTemplate.replace("{n}", String(s.length));
2233
+ const c = s.slice(0, i.maxDisplayItems), u = s.length - c.length, d = c.map((h) => h.option).join(", ");
2234
+ return u > 0 ? `${d} +${u}` : d;
2235
+ });
2236
+ return o({
2237
+ optionRef: n
2238
+ }), (s, c) => s.$slots.default ? $(s.$slots, "default", { key: 0 }) : (p(), E(re, {
2239
+ key: 1,
2240
+ ref_key: "optionRef",
2241
+ ref: n,
2242
+ class: x(r(Ur).text)
2243
+ }, {
2244
+ default: z(() => [
2245
+ L(D(l.value), 1)
2246
+ ]),
2247
+ _: 1
2248
+ }, 8, ["class"]));
2249
+ }
2250
+ }), Kr = "Search-module__search___cGZ5b", Wr = "Search-module__input___HP47K", Ze = {
2251
+ search: Kr,
2252
+ input: Wr
2253
+ }, Zr = ["placeholder", "value"], Jr = "MultiSelect.Search", Us = /* @__PURE__ */ y({
2254
+ __name: "Search",
2255
+ props: {
2256
+ theme: {},
2257
+ placeholder: { default: "Поиск..." }
2258
+ },
2259
+ setup(e) {
2260
+ const o = W(Jr), i = k(null), t = (n) => {
2261
+ o.onSearchChange(n.target.value);
2262
+ };
2263
+ return P(
2264
+ () => o.isOpened,
2265
+ (n) => {
2266
+ n && pe(() => {
2267
+ setTimeout(() => {
2268
+ var l;
2269
+ return (l = i.value) == null ? void 0 : l.focus();
2270
+ }, 0);
2271
+ });
2272
+ }
2273
+ ), (n, l) => (p(), v("li", {
2274
+ class: x(r(Ze).search),
2275
+ style: V(e.theme)
2276
+ }, [
2277
+ T("input", {
2278
+ ref_key: "inputRef",
2279
+ ref: i,
2280
+ class: x(r(Ze).input),
2281
+ type: "text",
2282
+ placeholder: e.placeholder,
2283
+ value: r(o).searchQuery,
2284
+ onInput: t,
2285
+ onKeydown: l[0] || (l[0] = he(() => {
2286
+ }, ["stop"]))
2287
+ }, null, 42, Zr)
2288
+ ], 6));
2289
+ }
2290
+ }), Xr = "Combobox-module__combobox___97Qx9", Qr = "Combobox-module__inputContainer___6t-il", en = "Combobox-module__focused___Ur996", tn = "Combobox-module__invalid___Ur1or", on = "Combobox-module__disabled___2nCcW", rn = "Combobox-module__input___KbcCI", nn = "Combobox-module__arrow___FwmsJ", ln = "Combobox-module__arrowOpen___U6A3h", j = {
2291
+ combobox: Xr,
2292
+ inputContainer: Qr,
2293
+ focused: en,
2294
+ invalid: tn,
2295
+ disabled: on,
2296
+ input: rn,
2297
+ arrow: nn,
2298
+ arrowOpen: ln
2299
+ }, sn = ["placeholder", "value", "disabled", "readonly"], an = "MultiSelect.Combobox", js = /* @__PURE__ */ y({
2300
+ __name: "Combobox",
2301
+ props: {
2302
+ theme: {},
2303
+ placeholder: { default: "Поиск..." },
2304
+ groups: {}
2305
+ },
2306
+ setup(e, { expose: o }) {
2307
+ const i = e, t = W(an), n = k(null), l = k(null), s = _(() => {
2308
+ if (!i.groups) return null;
2309
+ const f = /* @__PURE__ */ new Map();
2310
+ for (const a of i.groups)
2311
+ f.set(a.id, a.label);
2312
+ return f;
2313
+ }), c = _(() => {
2314
+ if (t.isOpened) return "";
2315
+ const f = t.selectedItems;
2316
+ if (f.length === 0) return "";
2317
+ if (f.length === 1) return f[0].option;
2318
+ if (t.isAllSelected()) return `Все (${f.length})`;
2319
+ if (s.value && f.every((a) => a.group != null)) {
2320
+ const a = [...new Set(f.map((b) => b.group))], m = a.filter((b) => t.isGroupAllSelected(b));
2321
+ if (m.length > 0 && m.length === a.length) {
2322
+ if (m.length === 1) {
2323
+ const S = s.value.get(m[0]);
2324
+ if (S) return `${S} (${f.length})`;
2325
+ }
2326
+ const b = s.value.get(m[0]);
2327
+ if (b)
2328
+ return m.length === 2 ? `${b}, ${s.value.get(m[1])}` : `${b} +${m.length - 1}`;
2329
+ }
2330
+ }
2331
+ return `${f[0].option} +${f.length - 1}`;
2332
+ }), u = (f) => {
2333
+ const a = f.target.value;
2334
+ t.onSearchChange(a);
2335
+ }, d = () => {
2336
+ t.isDisabled || t.onOpen(!0);
2337
+ }, h = () => {
2338
+ var f;
2339
+ (f = n.value) == null || f.focus();
2340
+ }, g = (f) => {
2341
+ var a;
2342
+ f.code === "Escape" && (t.onOpen(!1), (a = n.value) == null || a.blur());
2343
+ };
2344
+ return P(() => t.isOpened, (f) => {
2345
+ f && pe(() => {
2346
+ var a;
2347
+ return (a = n.value) == null ? void 0 : a.focus();
2348
+ });
2349
+ }), o({ inputRef: n }), (f, a) => (p(), v("div", {
2350
+ class: x(r(j).combobox),
2351
+ style: V(e.theme)
2352
+ }, [
2353
+ T("div", {
2354
+ ref_key: "containerRef",
2355
+ ref: l,
2356
+ class: x([
2357
+ r(j).inputContainer,
2358
+ {
2359
+ [r(j).focused]: r(t).isOpened,
2360
+ [r(j).invalid]: r(t).isInvalid,
2361
+ [r(j).disabled]: r(t).isDisabled
2362
+ }
2363
+ ]),
2364
+ onClick: h
2365
+ }, [
2366
+ T("input", {
2367
+ ref_key: "inputRef",
2368
+ ref: n,
2369
+ class: x(r(j).input),
2370
+ type: "text",
2371
+ placeholder: e.placeholder,
2372
+ value: r(t).isOpened ? r(t).searchQuery : c.value,
2373
+ disabled: r(t).isDisabled,
2374
+ readonly: !r(t).isOpened,
2375
+ onInput: u,
2376
+ onFocus: d,
2377
+ onKeydown: g
2378
+ }, null, 42, sn),
2379
+ $(f.$slots, "after", {}, () => [
2380
+ T("span", {
2381
+ class: x([r(j).arrow, { [r(j).arrowOpen]: r(t).isOpened }])
2382
+ }, null, 2)
2383
+ ])
2384
+ ], 2)
2385
+ ], 6));
2386
+ }
2387
+ }), Ks = /* @__PURE__ */ y({
1746
2388
  __name: "Portal",
1747
2389
  props: {
1748
2390
  container: { default: void 0 }
1749
2391
  },
1750
- setup(e, { expose: r }) {
1751
- const t = e, i = _(null), o = k(() => t.container || document.body);
1752
- return r({
1753
- portalRef: i
1754
- }), (l, a) => (m(), B(Ge, {
1755
- to: o.value,
1756
- disabled: !o.value
2392
+ setup(e, { expose: o }) {
2393
+ const i = e, t = k(null), n = _(() => i.container || document.body);
2394
+ return o({
2395
+ portalRef: t
2396
+ }), (l, s) => (p(), E(Ae, {
2397
+ to: n.value,
2398
+ disabled: !n.value
1757
2399
  }, [
1758
- $("div", w({
2400
+ T("div", I({
1759
2401
  ref_key: "portalRef",
1760
- ref: i
2402
+ ref: t
1761
2403
  }, l.$attrs), [
1762
- y(l.$slots, "default")
2404
+ $(l.$slots, "default")
1763
2405
  ], 16)
1764
2406
  ], 8, ["to", "disabled"]));
1765
2407
  }
1766
- }), Hr = "ContentBlock-module__block___UvzuN", qr = {
1767
- block: Hr
1768
- }, Il = /* @__PURE__ */ f({
2408
+ }), cn = "ContentBlock-module__block___UvzuN", un = {
2409
+ block: cn
2410
+ }, Ws = /* @__PURE__ */ y({
1769
2411
  __name: "ContentBlock",
1770
2412
  props: {
1771
2413
  theme: {}
1772
2414
  },
1773
- setup(e, { expose: r }) {
1774
- const t = _(null);
1775
- return r({
1776
- blockRef: t
1777
- }), (i, o) => (m(), b("div", w(i.$attrs, {
2415
+ setup(e, { expose: o }) {
2416
+ const i = k(null);
2417
+ return o({
2418
+ blockRef: i
2419
+ }), (t, n) => (p(), v("div", I(t.$attrs, {
1778
2420
  ref_key: "blockRef",
1779
- ref: t,
1780
- class: n(qr).block,
2421
+ ref: i,
2422
+ class: r(un).block,
1781
2423
  style: e.theme
1782
2424
  }), [
1783
- y(i.$slots, "default")
2425
+ $(t.$slots, "default")
1784
2426
  ], 16));
1785
2427
  }
1786
- }), Cl = {
2428
+ }), Zs = {
1787
2429
  "--crm-ui-kit-content-block-box-sizing": "border-box",
1788
2430
  "--crm-ui-kit-content-block-padding": "18px 18px 29px",
1789
2431
  "--crm-ui-kit-content-block-border-radius": "3px",
1790
2432
  "--crm-ui-kit-content-block-box-shadow": "var(--crm-ui-kit-palette-content-block-box-shadow)",
1791
2433
  "--crm-ui-kit-content-block-background": "var(--crm-ui-kit-palette-background-primary)"
1792
- }, jr = "Link-module__link___35Vo1", Yr = {
1793
- link: jr
1794
- }, $l = /* @__PURE__ */ f({
2434
+ }, dn = "Link-module__link___35Vo1", mn = {
2435
+ link: dn
2436
+ }, Js = /* @__PURE__ */ y({
1795
2437
  __name: "Link",
1796
2438
  props: {
1797
2439
  theme: {}
1798
2440
  },
1799
- setup(e, { expose: r }) {
1800
- const t = _(null);
1801
- return r({
1802
- linkRef: t
1803
- }), (i, o) => (m(), b("a", w({
2441
+ setup(e, { expose: o }) {
2442
+ const i = k(null);
2443
+ return o({
2444
+ linkRef: i
2445
+ }), (t, n) => (p(), v("a", I({
1804
2446
  ref_key: "linkRef",
1805
- ref: t
1806
- }, i.$attrs, {
1807
- class: n(Yr).link,
2447
+ ref: i
2448
+ }, t.$attrs, {
2449
+ class: r(mn).link,
1808
2450
  style: e.theme
1809
2451
  }), [
1810
- y(i.$slots, "default")
2452
+ $(t.$slots, "default")
1811
2453
  ], 16));
1812
2454
  }
1813
- }), Tl = {
2455
+ }), Xs = {
1814
2456
  "--crm-ui-kit-link-color": "var(--crm-ui-kit-palette-link-primary)",
1815
2457
  "--crm-ui-kit-link-hover-color": "var(--crm-ui-kit-palette-link-hover-primary)",
1816
2458
  "--crm-ui-kit-link-text-decoration": "underline",
@@ -1819,107 +2461,107 @@ const wl = /* @__PURE__ */ f({
1819
2461
  "--crm-ui-kit-link-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
1820
2462
  "--crm-ui-kit-link-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
1821
2463
  "--crm-ui-kit-link-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
1822
- }, Rl = {
2464
+ }, Qs = {
1823
2465
  "--crm-ui-kit-spinner-border-color": "#158fd2",
1824
2466
  "--crm-ui-kit-spinner-border-width": "2px",
1825
2467
  "--crm-ui-kit-spinner-circle-size": "16px",
1826
2468
  "--crm-ui-kit-spinner-border-style": "solid"
1827
- }, Ur = "Callout-module__wrapper___gW-Zt", Wr = "Callout-module__icon___4CBkz", Re = {
1828
- wrapper: Ur,
1829
- icon: Wr
1830
- }, Sl = /* @__PURE__ */ f({
2469
+ }, pn = "Callout-module__wrapper___gW-Zt", hn = "Callout-module__icon___4CBkz", Je = {
2470
+ wrapper: pn,
2471
+ icon: hn
2472
+ }, ea = /* @__PURE__ */ y({
1831
2473
  __name: "Callout",
1832
2474
  props: {
1833
2475
  theme: {},
1834
2476
  isIconAvailable: { type: Boolean, default: !0 }
1835
2477
  },
1836
- setup(e, { expose: r }) {
1837
- const t = e, i = _(null), o = k(() => {
1838
- const { Icon: l, ...a } = t.theme;
1839
- return a;
2478
+ setup(e, { expose: o }) {
2479
+ const i = e, t = k(null), n = _(() => {
2480
+ const { Icon: l, ...s } = i.theme;
2481
+ return s;
1840
2482
  });
1841
- return r({
1842
- calloutRef: i
1843
- }), (l, a) => (m(), b("div", w(l.$attrs, {
2483
+ return o({
2484
+ calloutRef: t
2485
+ }), (l, s) => (p(), v("div", I(l.$attrs, {
1844
2486
  ref_key: "calloutRef",
1845
- ref: i,
1846
- class: n(Re).wrapper,
1847
- style: o.value
2487
+ ref: t,
2488
+ class: r(Je).wrapper,
2489
+ style: n.value
1848
2490
  }), [
1849
- e.isIconAvailable ? (m(), B(de(e.theme.Icon), {
2491
+ e.isIconAvailable ? (p(), E(Re(e.theme.Icon), {
1850
2492
  key: 0,
1851
- class: v(n(Re).icon)
1852
- }, null, 8, ["class"])) : R("", !0),
1853
- y(l.$slots, "default")
2493
+ class: x(r(Je).icon)
2494
+ }, null, 8, ["class"])) : A("", !0),
2495
+ $(l.$slots, "default")
1854
2496
  ], 16));
1855
2497
  }
1856
- }), Kr = {
2498
+ }), _n = {
1857
2499
  xmlns: "http://www.w3.org/2000/svg",
1858
2500
  width: "20",
1859
2501
  height: "20",
1860
2502
  fill: "none"
1861
2503
  };
1862
- function Zr(e, r) {
1863
- return m(), b("svg", Kr, [...r[0] || (r[0] = [
1864
- X('<g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M9 15.207q0-.468.292-.76c.195-.194.468-.272.799-.272.35 0 .623.097.818.272q.292.292.292.76c0 .468-.097.565-.292.76q-.292.292-.818.292c-.331 0-.585-.097-.799-.292Q9 15.675 9 15.207m.195-8.688h1.831v4.5l-.35 2.22h-1.13l-.351-2.22z" clip-rule="evenodd"></path><path stroke="currentColor" stroke-width="1.3" d="M8.666 2.47a1.542 1.542 0 0 1 2.671 0l7.804 13.518a1.542 1.542 0 0 1-1.335 2.313H2.197a1.542 1.542 0 0 1-1.335-2.313z"></path></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
2504
+ function bn(e, o) {
2505
+ return p(), v("svg", _n, [...o[0] || (o[0] = [
2506
+ _e('<g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M9 15.207q0-.468.292-.76c.195-.194.468-.272.799-.272.35 0 .623.097.818.272q.292.292.292.76c0 .468-.097.565-.292.76q-.292.292-.818.292c-.331 0-.585-.097-.799-.292Q9 15.675 9 15.207m.195-8.688h1.831v4.5l-.35 2.22h-1.13l-.351-2.22z" clip-rule="evenodd"></path><path stroke="currentColor" stroke-width="1.3" d="M8.666 2.47a1.542 1.542 0 0 1 2.671 0l7.804 13.518a1.542 1.542 0 0 1-1.335 2.313H2.197a1.542 1.542 0 0 1-1.335-2.313z"></path></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
1865
2507
  ])]);
1866
2508
  }
1867
- const Jr = { render: Zr }, Xr = {
2509
+ const fn = { render: bn }, vn = {
1868
2510
  xmlns: "http://www.w3.org/2000/svg",
1869
2511
  width: "20",
1870
2512
  height: "20",
1871
2513
  fill: "currentColor"
1872
2514
  };
1873
- function Qr(e, r) {
1874
- return m(), b("svg", Xr, [...r[0] || (r[0] = [
1875
- X('<g clip-path="url(#a)"><path d="M8.96 4.75h2.077v4.859l-.403 2.407H9.362L8.96 9.609zm-.218 9.363q0-.517.341-.812.342-.31.9-.31.59 0 .93.31.34.295.341.812 0 .516-.34.827-.342.31-.931.31-.558 0-.9-.31-.34-.31-.34-.827Z"></path><path fill-rule="evenodd" d="M10 1.625a8.375 8.375 0 1 0 0 16.75 8.375 8.375 0 0 0 0-16.75M.375 10a9.625 9.625 0 1 1 19.25 0 9.625 9.625 0 0 1-19.25 0" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
2515
+ function kn(e, o) {
2516
+ return p(), v("svg", vn, [...o[0] || (o[0] = [
2517
+ _e('<g clip-path="url(#a)"><path d="M8.96 4.75h2.077v4.859l-.403 2.407H9.362L8.96 9.609zm-.218 9.363q0-.517.341-.812.342-.31.9-.31.59 0 .93.31.34.295.341.812 0 .516-.34.827-.342.31-.931.31-.558 0-.9-.31-.34-.31-.34-.827Z"></path><path fill-rule="evenodd" d="M10 1.625a8.375 8.375 0 1 0 0 16.75 8.375 8.375 0 0 0 0-16.75M.375 10a9.625 9.625 0 1 1 19.25 0 9.625 9.625 0 0 1-19.25 0" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
1876
2518
  ])]);
1877
2519
  }
1878
- const eo = { render: Qr }, to = {
2520
+ const xn = { render: kn }, yn = {
1879
2521
  xmlns: "http://www.w3.org/2000/svg",
1880
2522
  width: "20",
1881
2523
  height: "20",
1882
2524
  fill: "none"
1883
2525
  };
1884
- function io(e, r) {
1885
- return m(), b("svg", to, [...r[0] || (r[0] = [
1886
- X('<g stroke="currentColor" clip-path="url(#a)"><path stroke-width="1.299" d="M.65 10a9.35 9.35 0 1 1 18.7 0 9.35 9.35 0 0 1-18.7 0Z"></path><path stroke-width="1.299" d="M.65 10a9.35 9.35 0 1 1 18.7 0 9.35 9.35 0 0 1-18.7 0Z"></path><path stroke-width="1.455" d="m5.328 10 3.117 3.117 6.234-6.234"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
2526
+ function gn(e, o) {
2527
+ return p(), v("svg", yn, [...o[0] || (o[0] = [
2528
+ _e('<g stroke="currentColor" clip-path="url(#a)"><path stroke-width="1.299" d="M.65 10a9.35 9.35 0 1 1 18.7 0 9.35 9.35 0 0 1-18.7 0Z"></path><path stroke-width="1.299" d="M.65 10a9.35 9.35 0 1 1 18.7 0 9.35 9.35 0 0 1-18.7 0Z"></path><path stroke-width="1.455" d="m5.328 10 3.117 3.117 6.234-6.234"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
1887
2529
  ])]);
1888
2530
  }
1889
- const ro = { render: io }, oo = {
2531
+ const Cn = { render: gn }, $n = {
1890
2532
  xmlns: "http://www.w3.org/2000/svg",
1891
2533
  width: "20",
1892
2534
  height: "20",
1893
2535
  fill: "currentColor"
1894
2536
  };
1895
- function no(e, r) {
1896
- return m(), b("svg", oo, [...r[0] || (r[0] = [
1897
- X('<g clip-path="url(#a)"><path d="M10.972 15.195H9.023V8.7h1.949v6.494Zm-.285-8.72a.96.96 0 0 1-.695.278.93.93 0 0 1-.69-.284.96.96 0 0 1-.279-.695q0-.413.285-.69a.96.96 0 0 1 .695-.279q.412 0 .69.284.279.285.279.696a.93.93 0 0 1-.285.69"></path><path fill-rule="evenodd" d="M10 1.299A8.701 8.701 0 1 0 10 18.7a8.701 8.701 0 0 0 0-17.4ZM0 10C0 4.477 4.477 0 10 0s10 4.477 10 10-4.477 10-10 10S0 15.523 0 10" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
2537
+ function In(e, o) {
2538
+ return p(), v("svg", $n, [...o[0] || (o[0] = [
2539
+ _e('<g clip-path="url(#a)"><path d="M10.972 15.195H9.023V8.7h1.949v6.494Zm-.285-8.72a.96.96 0 0 1-.695.278.93.93 0 0 1-.69-.284.96.96 0 0 1-.279-.695q0-.413.285-.69a.96.96 0 0 1 .695-.279q.412 0 .69.284.279.285.279.696a.93.93 0 0 1-.285.69"></path><path fill-rule="evenodd" d="M10 1.299A8.701 8.701 0 1 0 10 18.7a8.701 8.701 0 0 0 0-17.4ZM0 10C0 4.477 4.477 0 10 0s10 4.477 10 10-4.477 10-10 10S0 15.523 0 10" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"></path></clipPath></defs>', 2)
1898
2540
  ])]);
1899
2541
  }
1900
- const lo = { render: no }, re = {
2542
+ const wn = { render: In }, ye = {
1901
2543
  "--crm-ui-kit-callout-padding": "12px",
1902
2544
  "--crm-ui-kit-callout-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
1903
2545
  "--crm-ui-kit-callout-icon-color": "var(--crm-ui-kit-palette-text-primary)"
1904
- }, Dl = {
1905
- ...re,
1906
- Icon: Jr,
2546
+ }, ta = {
2547
+ ...ye,
2548
+ Icon: fn,
1907
2549
  "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-warning-background-color)"
1908
- }, Al = {
1909
- ...re,
1910
- Icon: eo,
2550
+ }, ia = {
2551
+ ...ye,
2552
+ Icon: xn,
1911
2553
  "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-error-background-color)"
1912
- }, Bl = {
1913
- ...re,
1914
- Icon: ro,
2554
+ }, oa = {
2555
+ ...ye,
2556
+ Icon: Cn,
1915
2557
  "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-success-background-color)"
1916
- }, zl = {
1917
- ...re,
1918
- Icon: lo,
2558
+ }, ra = {
2559
+ ...ye,
2560
+ Icon: wn,
1919
2561
  "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-info-background-color)"
1920
- }, Xe = "Accordion", [Qe, ao] = L(Xe), so = "Accordion-module__wrapper___X4UEj", et = {
1921
- wrapper: so
1922
- }, co = /* @__PURE__ */ f({
2562
+ }, Ct = "Accordion", [$t, Sn] = F(Ct), Tn = "Accordion-module__wrapper___X4UEj", It = {
2563
+ wrapper: Tn
2564
+ }, An = /* @__PURE__ */ y({
1923
2565
  __name: "AccordionSingle",
1924
2566
  props: {
1925
2567
  isCollapsible: { type: Boolean, default: !1 },
@@ -1928,29 +2570,29 @@ const lo = { render: no }, re = {
1928
2570
  theme: {}
1929
2571
  },
1930
2572
  emits: ["change"],
1931
- setup(e, { expose: r, emit: t }) {
1932
- const i = e, o = t, l = _(null), a = _(i.defaultValue), s = be(i.theme), c = k(() => "value" in i && i.value !== void 0), d = k(
1933
- () => c.value ? i.value : a.value
1934
- ), p = (x) => i.isCollapsible && x === d.value ? void 0 : x, g = (x) => {
1935
- const u = p(x);
1936
- c.value || (a.value = u), o("change", u);
2573
+ setup(e, { expose: o, emit: i }) {
2574
+ const t = e, n = i, l = k(null), s = k(t.defaultValue), c = Ee(t.theme), u = _(() => "value" in t && t.value !== void 0), d = _(
2575
+ () => u.value ? t.value : s.value
2576
+ ), h = (f) => t.isCollapsible && f === d.value ? void 0 : f, g = (f) => {
2577
+ const a = h(f);
2578
+ u.value || (s.value = a), n("change", a);
1937
2579
  };
1938
- return Qe({
2580
+ return $t({
1939
2581
  value: d,
1940
2582
  // computed ref
1941
- defaultValue: me(() => i.defaultValue),
2583
+ defaultValue: De(() => t.defaultValue),
1942
2584
  onChange: g
1943
- }), r({
2585
+ }), o({
1944
2586
  accordionRef: l
1945
- }), (x, u) => (m(), b("div", w(x.$attrs, {
2587
+ }), (f, a) => (p(), v("div", I(f.$attrs, {
1946
2588
  ref_key: "accordionRef",
1947
2589
  ref: l,
1948
- class: [n(et).wrapper, n(s)]
2590
+ class: [r(It).wrapper, r(c)]
1949
2591
  }), [
1950
- y(x.$slots, "default")
2592
+ $(f.$slots, "default")
1951
2593
  ], 16));
1952
2594
  }
1953
- }), uo = /* @__PURE__ */ f({
2595
+ }), Rn = /* @__PURE__ */ y({
1954
2596
  __name: "AccordionMultiple",
1955
2597
  props: {
1956
2598
  value: {},
@@ -1958,35 +2600,35 @@ const lo = { render: no }, re = {
1958
2600
  theme: {}
1959
2601
  },
1960
2602
  emits: ["change"],
1961
- setup(e, { expose: r, emit: t }) {
1962
- const i = e, o = t, l = _(null), a = _(i.defaultValue || []), s = be(i.theme), c = k(() => "value" in i && i.value !== void 0), d = k(
1963
- () => c.value ? i.value || [] : a.value
1964
- ), p = (x) => {
1965
- const u = d.value || [];
1966
- return u.includes(x) ? u.filter((h) => h !== x) : [...u, x];
1967
- }, g = (x) => {
1968
- const u = p(x);
1969
- c.value || (a.value = u), o("change", u);
2603
+ setup(e, { expose: o, emit: i }) {
2604
+ const t = e, n = i, l = k(null), s = k(t.defaultValue || []), c = Ee(t.theme), u = _(() => "value" in t && t.value !== void 0), d = _(
2605
+ () => u.value ? t.value || [] : s.value
2606
+ ), h = (f) => {
2607
+ const a = d.value || [];
2608
+ return a.includes(f) ? a.filter((m) => m !== f) : [...a, f];
2609
+ }, g = (f) => {
2610
+ const a = h(f);
2611
+ u.value || (s.value = a), n("change", a);
1970
2612
  };
1971
- return Qe({
2613
+ return $t({
1972
2614
  value: d,
1973
2615
  // computed ref
1974
- defaultValue: me(() => i.defaultValue),
2616
+ defaultValue: De(() => t.defaultValue),
1975
2617
  onChange: g
1976
- }), r({
2618
+ }), o({
1977
2619
  accordionRef: l
1978
- }), (x, u) => (m(), b("div", w(x.$attrs, {
2620
+ }), (f, a) => (p(), v("div", I(f.$attrs, {
1979
2621
  ref_key: "accordionRef",
1980
2622
  ref: l,
1981
- class: [n(et).wrapper, n(s)]
2623
+ class: [r(It).wrapper, r(c)]
1982
2624
  }), [
1983
- y(x.$slots, "default")
2625
+ $(f.$slots, "default")
1984
2626
  ], 16));
1985
2627
  }
1986
- }), mo = f({
1987
- name: Xe
1988
- }), po = /* @__PURE__ */ f({
1989
- ...mo,
2628
+ }), Dn = y({
2629
+ name: Ct
2630
+ }), Bn = /* @__PURE__ */ y({
2631
+ ...Dn,
1990
2632
  props: {
1991
2633
  type: {},
1992
2634
  isCollapsible: { type: Boolean },
@@ -1994,37 +2636,37 @@ const lo = { render: no }, re = {
1994
2636
  defaultValue: {},
1995
2637
  theme: {}
1996
2638
  },
1997
- setup(e, { expose: r }) {
1998
- const t = _(null);
1999
- return r({
2000
- accordionRef: t
2001
- }), (i, o) => e.type === "multiple" ? (m(), B(uo, w({ key: 0 }, i.$props, {
2639
+ setup(e, { expose: o }) {
2640
+ const i = k(null);
2641
+ return o({
2642
+ accordionRef: i
2643
+ }), (t, n) => e.type === "multiple" ? (p(), E(Rn, I({ key: 0 }, t.$props, {
2002
2644
  ref_key: "accordionRef",
2003
- ref: t
2645
+ ref: i
2004
2646
  }), {
2005
- default: V(() => [
2006
- y(i.$slots, "default")
2647
+ default: z(() => [
2648
+ $(t.$slots, "default")
2007
2649
  ]),
2008
2650
  _: 3
2009
- }, 16)) : (m(), B(co, w({ key: 1 }, i.$props, {
2651
+ }, 16)) : (p(), E(An, I({ key: 1 }, t.$props, {
2010
2652
  ref_key: "accordionRef",
2011
- ref: t
2653
+ ref: i
2012
2654
  }), {
2013
- default: V(() => [
2014
- y(i.$slots, "default")
2655
+ default: z(() => [
2656
+ $(t.$slots, "default")
2015
2657
  ]),
2016
2658
  _: 3
2017
2659
  }, 16));
2018
2660
  }
2019
- }), ho = {
2661
+ }), Vn = {
2020
2662
  xmlns: "http://www.w3.org/2000/svg",
2021
2663
  width: "10",
2022
2664
  height: "7",
2023
2665
  fill: "none"
2024
2666
  };
2025
- function bo(e, r) {
2026
- return m(), b("svg", ho, [...r[0] || (r[0] = [
2027
- $("path", {
2667
+ function En(e, o) {
2668
+ return p(), v("svg", Vn, [...o[0] || (o[0] = [
2669
+ T("path", {
2028
2670
  fill: "currentColor",
2029
2671
  "fill-rule": "evenodd",
2030
2672
  d: "M.176.78a.574.574 0 0 1 .857 0L4.96 5.058 8.967.692a.573.573 0 0 1 .857 0 .705.705 0 0 1 0 .933L5.485 6.351a.6.6 0 0 1-.14.114.573.573 0 0 1-.83-.026L.175 1.713a.706.706 0 0 1 0-.933Z",
@@ -2032,20 +2674,20 @@ function bo(e, r) {
2032
2674
  }, null, -1)
2033
2675
  ])]);
2034
2676
  }
2035
- const _o = { render: bo }, ko = "Item-module__wrapper___Yv5zw", fo = "Item-module__header___Q13eV", vo = "Item-module__header_left___cPyvw", xo = "Item-module__header_left___cPyvw", yo = "Item-module__before_title___moIL0", go = "Item-module__before_title___moIL0", wo = "Item-module__chevron_container___0McTp", Io = "Item-module__chevron_container___0McTp", Co = "Item-module__chevron_icon___Yku1p", $o = "Item-module__chevron_icon___Yku1p", To = "Item-module__content___GATuv", Ro = "Item-module__active___fMoSb", M = {
2036
- wrapper: ko,
2037
- header: fo,
2038
- header_left: vo,
2039
- headerLeft: xo,
2040
- before_title: yo,
2041
- beforeTitle: go,
2042
- chevron_container: wo,
2043
- chevronContainer: Io,
2044
- chevron_icon: Co,
2045
- chevronIcon: $o,
2046
- content: To,
2047
- active: Ro
2048
- }, So = "Accordion.Item", Do = /* @__PURE__ */ f({
2677
+ const Mn = { render: En }, On = "Item-module__wrapper___Yv5zw", zn = "Item-module__header___Q13eV", Ln = "Item-module__header_left___cPyvw", Pn = "Item-module__header_left___cPyvw", Gn = "Item-module__before_title___moIL0", Nn = "Item-module__before_title___moIL0", Fn = "Item-module__chevron_container___0McTp", Hn = "Item-module__chevron_container___0McTp", Yn = "Item-module__chevron_icon___Yku1p", qn = "Item-module__chevron_icon___Yku1p", Un = "Item-module__content___GATuv", jn = "Item-module__active___fMoSb", K = {
2678
+ wrapper: On,
2679
+ header: zn,
2680
+ header_left: Ln,
2681
+ headerLeft: Pn,
2682
+ before_title: Gn,
2683
+ beforeTitle: Nn,
2684
+ chevron_container: Fn,
2685
+ chevronContainer: Hn,
2686
+ chevron_icon: Yn,
2687
+ chevronIcon: qn,
2688
+ content: Un,
2689
+ active: jn
2690
+ }, Kn = "Accordion.Item", Wn = /* @__PURE__ */ y({
2049
2691
  __name: "Item",
2050
2692
  props: {
2051
2693
  theme: {},
@@ -2053,68 +2695,68 @@ const _o = { render: bo }, ko = "Item-module__wrapper___Yv5zw", fo = "Item-modul
2053
2695
  title: {},
2054
2696
  before: { default: null }
2055
2697
  },
2056
- setup(e, { expose: r }) {
2057
- const t = e, i = _(null), { onChange: o, value: l } = ao(So), a = be(t.theme), s = () => {
2058
- o(t.value);
2059
- }, c = k(() => {
2060
- const d = n(l);
2061
- return Array.isArray(d) ? d.includes(t.value) : d === t.value;
2698
+ setup(e, { expose: o }) {
2699
+ const i = e, t = k(null), { onChange: n, value: l } = Sn(Kn), s = Ee(i.theme), c = () => {
2700
+ n(i.value);
2701
+ }, u = _(() => {
2702
+ const d = r(l);
2703
+ return Array.isArray(d) ? d.includes(i.value) : d === i.value;
2062
2704
  });
2063
- return r({
2064
- itemRef: i
2065
- }), (d, p) => (m(), b("div", w(d.$attrs, {
2705
+ return o({
2706
+ itemRef: t
2707
+ }), (d, h) => (p(), v("div", I(d.$attrs, {
2066
2708
  ref_key: "itemRef",
2067
- ref: i,
2709
+ ref: t,
2068
2710
  class: [
2069
- n(M).wrapper,
2711
+ r(K).wrapper,
2070
2712
  {
2071
- [n(M).active]: c.value
2713
+ [r(K).active]: u.value
2072
2714
  },
2073
- n(a)
2715
+ r(s)
2074
2716
  ]
2075
2717
  }), [
2076
- $("div", {
2077
- class: v(n(M).header),
2078
- onClick: s
2718
+ T("div", {
2719
+ class: x(r(K).header),
2720
+ onClick: c
2079
2721
  }, [
2080
- $("div", {
2081
- class: v(n(M).header_left)
2722
+ T("div", {
2723
+ class: x(r(K).header_left)
2082
2724
  }, [
2083
- e.before ? (m(), b("div", {
2725
+ e.before ? (p(), v("div", {
2084
2726
  key: 0,
2085
- class: v(n(M).before_title)
2727
+ class: x(r(K).before_title)
2086
2728
  }, [
2087
- (m(), B(de(e.before)))
2088
- ], 2)) : R("", !0),
2089
- D(ve, {
2090
- theme: n(fe),
2729
+ (p(), E(Re(e.before)))
2730
+ ], 2)) : A("", !0),
2731
+ M(Le, {
2732
+ theme: r(ze),
2091
2733
  size: "xl",
2092
2734
  "is-ellipsis": !0
2093
2735
  }, {
2094
- default: V(() => [
2095
- z(T(e.title), 1)
2736
+ default: z(() => [
2737
+ L(D(e.title), 1)
2096
2738
  ]),
2097
2739
  _: 1
2098
2740
  }, 8, ["theme"])
2099
2741
  ], 2),
2100
- $("span", {
2101
- class: v(n(M).chevron_container)
2742
+ T("span", {
2743
+ class: x(r(K).chevron_container)
2102
2744
  }, [
2103
- D(n(_o), {
2104
- class: v(n(M).chevron_icon)
2745
+ M(r(Mn), {
2746
+ class: x(r(K).chevron_icon)
2105
2747
  }, null, 8, ["class"])
2106
2748
  ], 2)
2107
2749
  ], 2),
2108
- $("div", {
2109
- class: v(n(M).content)
2750
+ T("div", {
2751
+ class: x(r(K).content)
2110
2752
  }, [
2111
- y(d.$slots, "default")
2753
+ $(d.$slots, "default")
2112
2754
  ], 2)
2113
2755
  ], 16));
2114
2756
  }
2115
- }), Vl = {
2757
+ }), na = {
2116
2758
  "--crm-ui-kit-accordion-width": "100%"
2117
- }, El = {
2759
+ }, la = {
2118
2760
  "--crm-ui-kit-accordion-item-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
2119
2761
  "--crm-ui-kit-accordion-item-box-shadow": "var(--crm-ui-kit-palette-accordion-item-box-shadow)",
2120
2762
  "--crm-ui-kit-accordion-item-background-color": "var(--crm-ui-kit-palette-background-primary)",
@@ -2122,16 +2764,16 @@ const _o = { render: bo }, ko = "Item-module__wrapper___Yv5zw", fo = "Item-modul
2122
2764
  "--crm-ui-kit-accordion-item-margin-bottom": "16px",
2123
2765
  "--crm-ui-kit-accordion-item-chevron-icon-color": "var(--crm-ui-kit-palette-text-primary)",
2124
2766
  "--crm-ui-kit-accordion-item-border-color": "var(--crm-ui-kit-palette-border-primary)"
2125
- }, Ao = po;
2126
- Ao.Item = Do;
2127
- const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs___-haM1", Vo = "FilterTabs-module__filter_tabs___-haM1", Eo = "FilterTabs-module__horizontal___e2s9c", Se = {
2128
- filter_tabs: zo,
2129
- filterTabs: Vo,
2130
- horizontal: Eo
2131
- }, Lo = f({
2132
- name: tt
2133
- }), Ll = /* @__PURE__ */ f({
2134
- ...Lo,
2767
+ }, Zn = Bn;
2768
+ Zn.Item = Wn;
2769
+ const wt = "FilterTabs", [Jn, St] = F(wt), Xn = "FilterTabs-module__filter_tabs___-haM1", Qn = "FilterTabs-module__filter_tabs___-haM1", el = "FilterTabs-module__horizontal___e2s9c", Xe = {
2770
+ filter_tabs: Xn,
2771
+ filterTabs: Qn,
2772
+ horizontal: el
2773
+ }, tl = y({
2774
+ name: wt
2775
+ }), sa = /* @__PURE__ */ y({
2776
+ ...tl,
2135
2777
  props: {
2136
2778
  theme: {},
2137
2779
  orientation: { default: "horizontal" },
@@ -2139,53 +2781,53 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2139
2781
  isDisabled: { type: Boolean, default: !1 }
2140
2782
  },
2141
2783
  emits: ["change"],
2142
- setup(e, { expose: r, emit: t }) {
2143
- const i = e, o = t, l = _(null), a = _([]), s = (p) => {
2144
- const g = a.value;
2145
- let x = g;
2146
- if (!p && a.value.length && (x = []), p) {
2147
- const u = a.value.includes(p);
2148
- i.isMultiSelect && (x = u ? g.filter((h) => h !== p) : [...g, p]), !i.isMultiSelect && !u && (x = [p]);
2784
+ setup(e, { expose: o, emit: i }) {
2785
+ const t = e, n = i, l = k(null), s = k([]), c = (h) => {
2786
+ const g = s.value;
2787
+ let f = g;
2788
+ if (!h && s.value.length && (f = []), h) {
2789
+ const a = s.value.includes(h);
2790
+ t.isMultiSelect && (f = a ? g.filter((m) => m !== h) : [...g, h]), !t.isMultiSelect && !a && (f = [h]);
2149
2791
  }
2150
- a.value = x, o("change", x, p);
2151
- }, c = (p) => {
2152
- const g = a.value;
2153
- if (i.isMultiSelect) {
2154
- a.value = [...g, p];
2792
+ s.value = f, n("change", f, h);
2793
+ }, u = (h) => {
2794
+ const g = s.value;
2795
+ if (t.isMultiSelect) {
2796
+ s.value = [...g, h];
2155
2797
  return;
2156
2798
  }
2157
- !i.isMultiSelect && !g.length && (a.value = [p]);
2158
- }, d = J({
2159
- values: a.value,
2160
- onChange: s,
2161
- registerActiveName: c,
2162
- isDisabled: i.isDisabled
2799
+ !t.isMultiSelect && !g.length && (s.value = [h]);
2800
+ }, d = ie({
2801
+ values: s.value,
2802
+ onChange: c,
2803
+ registerActiveName: u,
2804
+ isDisabled: t.isDisabled
2163
2805
  });
2164
- return K(() => {
2165
- d.values = a.value, d.isDisabled = i.isDisabled;
2166
- }), Bo(d), r({
2806
+ return dt(() => {
2807
+ d.values = s.value, d.isDisabled = t.isDisabled;
2808
+ }), Jn(d), o({
2167
2809
  filterTabsRef: l
2168
- }), (p, g) => (m(), b("div", w(p.$attrs, {
2810
+ }), (h, g) => (p(), v("div", I(h.$attrs, {
2169
2811
  ref_key: "filterTabsRef",
2170
2812
  ref: l,
2171
2813
  class: [
2172
- n(Se).filter_tabs,
2814
+ r(Xe).filter_tabs,
2173
2815
  {
2174
- [n(Se).horizontal]: e.orientation === "horizontal"
2816
+ [r(Xe).horizontal]: e.orientation === "horizontal"
2175
2817
  }
2176
2818
  ],
2177
2819
  style: e.theme
2178
2820
  }), [
2179
- y(p.$slots, "default")
2821
+ $(h.$slots, "default")
2180
2822
  ], 16));
2181
2823
  }
2182
- }), Pl = {
2824
+ }), aa = {
2183
2825
  "--crm-ui-kit-filter-tabs-spacing": "8px"
2184
- }, rt = "FilterTabs.ItemRoot", [Po, Oo] = L(rt), Mo = "ItemRoot-module__item_root___TqVxI", No = "ItemRoot-module__item_root___TqVxI", Fo = "ItemRoot-module__disabled___VgRs7", De = {
2185
- item_root: Mo,
2186
- itemRoot: No,
2187
- disabled: Fo
2188
- }, Ol = /* @__PURE__ */ f({
2826
+ }, Tt = "FilterTabs.ItemRoot", [il, ol] = F(Tt), rl = "ItemRoot-module__item_root___TqVxI", nl = "ItemRoot-module__item_root___TqVxI", ll = "ItemRoot-module__disabled___VgRs7", Qe = {
2827
+ item_root: rl,
2828
+ itemRoot: nl,
2829
+ disabled: ll
2830
+ }, ca = /* @__PURE__ */ y({
2189
2831
  __name: "ItemRoot",
2190
2832
  props: {
2191
2833
  isDisabled: { type: Boolean },
@@ -2195,65 +2837,65 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2195
2837
  class: {}
2196
2838
  },
2197
2839
  setup(e) {
2198
- const r = e, t = it(rt), i = k(() => t.isDisabled), { registerActiveName: o } = t;
2199
- j(() => {
2200
- r.isDefaultActive && r.name && o(r.name);
2840
+ const o = e, i = St(Tt), t = _(() => i.isDisabled), { registerActiveName: n } = i;
2841
+ te(() => {
2842
+ o.isDefaultActive && o.name && n(o.name);
2201
2843
  });
2202
- const l = k(() => {
2203
- const { theme: a, class: s, isDefaultActive: c, ...d } = r;
2844
+ const l = _(() => {
2845
+ const { theme: s, class: c, isDefaultActive: u, ...d } = o;
2204
2846
  return d;
2205
2847
  });
2206
- return Po(l.value), (a, s) => (m(), b("div", {
2207
- class: v([
2208
- n(De).item_root,
2209
- r.class,
2848
+ return il(l.value), (s, c) => (p(), v("div", {
2849
+ class: x([
2850
+ r(Qe).item_root,
2851
+ o.class,
2210
2852
  {
2211
- [n(De).disabled]: i.value || e.isDisabled
2853
+ [r(Qe).disabled]: t.value || e.isDisabled
2212
2854
  }
2213
2855
  ]),
2214
- style: S(e.theme)
2856
+ style: V(e.theme)
2215
2857
  }, [
2216
- y(a.$slots, "default")
2858
+ $(s.$slots, "default")
2217
2859
  ], 6));
2218
2860
  }
2219
- }), Ml = {
2861
+ }), ua = {
2220
2862
  "--crm-ui-kit-filter-tabs-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
2221
- }, Go = "Tab-module__button___iGASN", Ho = "Tab-module__selected___zxPPy", Ae = {
2222
- button: Go,
2223
- selected: Ho
2224
- }, qo = ["name", "disabled"], Be = "FilterTabs.Tab", Nl = /* @__PURE__ */ f({
2863
+ }, sl = "Tab-module__button___iGASN", al = "Tab-module__selected___zxPPy", et = {
2864
+ button: sl,
2865
+ selected: al
2866
+ }, cl = ["name", "disabled"], tt = "FilterTabs.Tab", da = /* @__PURE__ */ y({
2225
2867
  __name: "Tab",
2226
2868
  props: {
2227
2869
  class: { default: "" },
2228
2870
  theme: {},
2229
2871
  onClick: {}
2230
2872
  },
2231
- setup(e, { expose: r }) {
2232
- const t = e, { theme: i, class: o, ...l } = t, a = _(null), s = it(Be), { name: c, isDisabled: d } = Oo(Be), p = k(() => s.values.includes(c)), g = k(() => s.isDisabled), x = () => {
2233
- s.onChange(c);
2873
+ setup(e, { expose: o }) {
2874
+ const i = e, { theme: t, class: n, ...l } = i, s = k(null), c = St(tt), { name: u, isDisabled: d } = ol(tt), h = _(() => c.values.includes(u)), g = _(() => c.isDisabled), f = () => {
2875
+ c.onChange(u);
2234
2876
  };
2235
- return r({
2236
- buttonRef: a
2237
- }), (u, h) => (m(), b("button", w({
2877
+ return o({
2878
+ buttonRef: s
2879
+ }), (a, m) => (p(), v("button", I({
2238
2880
  ref_key: "buttonRef",
2239
- ref: a
2881
+ ref: s
2240
2882
  }, l, {
2241
2883
  class: [
2242
- n(Ae).button,
2884
+ r(et).button,
2243
2885
  {
2244
- [n(Ae).selected]: p.value
2886
+ [r(et).selected]: h.value
2245
2887
  },
2246
- n(o)
2888
+ r(n)
2247
2889
  ],
2248
- style: n(i),
2249
- name: n(c),
2250
- disabled: g.value || n(d),
2251
- onClick: x
2890
+ style: r(t),
2891
+ name: r(u),
2892
+ disabled: g.value || r(d),
2893
+ onClick: f
2252
2894
  }), [
2253
- y(u.$slots, "default")
2254
- ], 16, qo));
2895
+ $(a.$slots, "default")
2896
+ ], 16, cl));
2255
2897
  }
2256
- }), Fl = {
2898
+ }), ma = {
2257
2899
  "--crm-ui-kit-filter-tabs-tab-z-index": "3",
2258
2900
  "--crm-ui-kit-filter-tabs-tab-action-color": "var(--crm-ui-kit-color-blueberry)",
2259
2901
  "--crm-ui-kit-filter-tabs-tab-border-width": "1px",
@@ -2266,101 +2908,101 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2266
2908
  "--crm-ui-kit-filter-tabs-tab-background-color": "var(--crm-ui-kit-palette-surface-background-color)",
2267
2909
  "--crm-ui-kit-filter-tabs-tab-text-color": "var(--crm-ui-kit-palette-surface-text-color)",
2268
2910
  "--crm-ui-kit-filter-tabs-tab-hover-background-color": "var(--crm-ui-kit-palette-surface-hover-background-color)"
2269
- }, ot = "CheckboxGroup", [jo, xe] = L(ot), Yo = ({
2911
+ }, At = "CheckboxGroup", [ul, Ge] = F(At), dl = ({
2270
2912
  isDisabled: e,
2271
- onChange: r
2913
+ onChange: o
2272
2914
  }) => {
2273
- const t = _(/* @__PURE__ */ new Map()), i = _({}), o = _([]), l = (s) => {
2274
- const c = new Map(t.value);
2275
- if (s.type === "selectAll" && !e) {
2276
- const d = Array.from(c.values()).some(
2277
- (p) => p.isChecked && !p.isDisabled
2915
+ const i = k(/* @__PURE__ */ new Map()), t = k({}), n = k([]), l = (c) => {
2916
+ const u = new Map(i.value);
2917
+ if (c.type === "selectAll" && !e) {
2918
+ const d = Array.from(u.values()).some(
2919
+ (h) => h.isChecked && !h.isDisabled
2278
2920
  );
2279
- c.forEach((p) => {
2280
- p.isDisabled || (p.isChecked = !d);
2921
+ u.forEach((h) => {
2922
+ h.isDisabled || (h.isChecked = !d);
2281
2923
  });
2282
2924
  }
2283
- if (s.type === "checkbox" && !e) {
2284
- const d = c.get(s.name);
2285
- d && !d.isDisabled && c.set(d.name, {
2925
+ if (c.type === "checkbox" && !e) {
2926
+ const d = u.get(c.name);
2927
+ d && !d.isDisabled && u.set(d.name, {
2286
2928
  ...d,
2287
2929
  isChecked: !d.isChecked
2288
2930
  });
2289
2931
  }
2290
- t.value = c, typeof r.value == "function" && r.value([...c.values()], s);
2932
+ i.value = u, typeof o.value == "function" && o.value([...u.values()], c);
2291
2933
  };
2292
- return G(
2293
- () => o.value.length,
2934
+ return P(
2935
+ () => n.value.length,
2294
2936
  async () => {
2295
- if (o.value.length) {
2296
- await Fe();
2297
- const s = [...o.value];
2298
- o.value = [];
2299
- const c = new Map(t.value);
2300
- s.forEach((d) => c.set(d.name, d)), t.value = c;
2937
+ if (n.value.length) {
2938
+ await pe();
2939
+ const c = [...n.value];
2940
+ n.value = [];
2941
+ const u = new Map(i.value);
2942
+ c.forEach((d) => u.set(d.name, d)), i.value = u;
2301
2943
  }
2302
2944
  },
2303
2945
  { flush: "post" }
2304
2946
  ), {
2305
- state: t,
2306
- register: (s, c = {}) => (s !== "selectAll" && !i.value[s] && (i.value[s] = !0, o.value.push({
2307
- name: s,
2308
- isChecked: !!c.isDefaultChecked,
2309
- isDisabled: !!c.isDisabled
2947
+ state: i,
2948
+ register: (c, u = {}) => (c !== "selectAll" && !t.value[c] && (t.value[c] = !0, n.value.push({
2949
+ name: c,
2950
+ isChecked: !!u.isDefaultChecked,
2951
+ isDisabled: !!u.isDisabled
2310
2952
  })), {
2311
- name: s,
2953
+ name: c,
2312
2954
  onChange: l,
2313
- ...c
2955
+ ...u
2314
2956
  })
2315
2957
  };
2316
- }, Uo = "CheckboxGroup-module__checkbox_group___4vTLu", Wo = "CheckboxGroup-module__checkbox_group___4vTLu", Ko = "CheckboxGroup-module__horizontal___ge9lI", ze = {
2317
- checkbox_group: Uo,
2318
- checkboxGroup: Wo,
2319
- horizontal: Ko
2320
- }, Zo = f({
2321
- name: ot
2322
- }), Gl = /* @__PURE__ */ f({
2323
- ...Zo,
2958
+ }, ml = "CheckboxGroup-module__checkbox_group___4vTLu", pl = "CheckboxGroup-module__checkbox_group___4vTLu", hl = "CheckboxGroup-module__horizontal___ge9lI", it = {
2959
+ checkbox_group: ml,
2960
+ checkboxGroup: pl,
2961
+ horizontal: hl
2962
+ }, _l = y({
2963
+ name: At
2964
+ }), pa = /* @__PURE__ */ y({
2965
+ ..._l,
2324
2966
  props: {
2325
2967
  onChange: {},
2326
2968
  orientation: { default: "vertical" },
2327
2969
  theme: {},
2328
2970
  isDisabled: { type: Boolean, default: !1 }
2329
2971
  },
2330
- setup(e, { expose: r }) {
2331
- const t = e, i = _(null), { register: o, state: l } = Yo({
2332
- onChange: me(t, "onChange"),
2333
- isDisabled: t.isDisabled
2334
- }), a = J({
2972
+ setup(e, { expose: o }) {
2973
+ const i = e, t = k(null), { register: n, state: l } = dl({
2974
+ onChange: De(i, "onChange"),
2975
+ isDisabled: i.isDisabled
2976
+ }), s = ie({
2335
2977
  values: l.value,
2336
- register: o,
2337
- isDisabled: t.isDisabled
2978
+ register: n,
2979
+ isDisabled: i.isDisabled
2338
2980
  });
2339
- return K(() => {
2340
- a.values = l.value, a.isDisabled = t.isDisabled;
2341
- }), jo(a), r({
2342
- checkboxGroupRef: i
2343
- }), (s, c) => (m(), b("div", w(s.$attrs, {
2981
+ return dt(() => {
2982
+ s.values = l.value, s.isDisabled = i.isDisabled;
2983
+ }), ul(s), o({
2984
+ checkboxGroupRef: t
2985
+ }), (c, u) => (p(), v("div", I(c.$attrs, {
2344
2986
  ref_key: "checkboxGroupRef",
2345
- ref: i,
2987
+ ref: t,
2346
2988
  class: [
2347
- n(ze).checkbox_group,
2989
+ r(it).checkbox_group,
2348
2990
  {
2349
- [n(ze).horizontal]: e.orientation === "horizontal"
2991
+ [r(it).horizontal]: e.orientation === "horizontal"
2350
2992
  }
2351
2993
  ],
2352
2994
  style: e.theme
2353
2995
  }), [
2354
- y(s.$slots, "default")
2996
+ $(c.$slots, "default")
2355
2997
  ], 16));
2356
2998
  }
2357
- }), Hl = {
2999
+ }), ha = {
2358
3000
  "--crm-ui-kit-checkbox-group-spacing": "8px"
2359
- }, nt = "CheckboxGroup.ItemRoot", [Jo] = L(nt), Xo = "ItemRoot-module__item_root___kiMNv", Qo = "ItemRoot-module__item_root___kiMNv", en = "ItemRoot-module__disabled___leaqM", Z = {
2360
- item_root: Xo,
2361
- itemRoot: Qo,
2362
- disabled: en
2363
- }, ql = /* @__PURE__ */ f({
3001
+ }, Rt = "CheckboxGroup.ItemRoot", [bl] = F(Rt), fl = "ItemRoot-module__item_root___kiMNv", vl = "ItemRoot-module__item_root___kiMNv", kl = "ItemRoot-module__disabled___leaqM", de = {
3002
+ item_root: fl,
3003
+ itemRoot: vl,
3004
+ disabled: kl
3005
+ }, _a = /* @__PURE__ */ y({
2364
3006
  __name: "ItemRoot",
2365
3007
  props: {
2366
3008
  name: {},
@@ -2371,32 +3013,32 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2371
3013
  theme: {}
2372
3014
  },
2373
3015
  setup(e) {
2374
- const r = e, t = xe(nt), i = k(() => t.isDisabled), o = k(() => {
2375
- const { theme: l, class: a, ...s } = r;
3016
+ const o = e, i = Ge(Rt), t = _(() => i.isDisabled), n = _(() => {
3017
+ const { theme: l, class: s, ...c } = o;
2376
3018
  return {
2377
- ...t.register(r.name, s),
2378
- value: r.value
3019
+ ...i.register(o.name, c),
3020
+ value: o.value
2379
3021
  };
2380
3022
  });
2381
- return Jo(o.value), (l, a) => (m(), b("div", {
2382
- class: v([
2383
- n(Z).item_root,
2384
- r.class,
3023
+ return bl(n.value), (l, s) => (p(), v("div", {
3024
+ class: x([
3025
+ r(de).item_root,
3026
+ o.class,
2385
3027
  {
2386
- [n(Z).disabled]: i.value || e.isDisabled
3028
+ [r(de).disabled]: t.value || e.isDisabled
2387
3029
  }
2388
3030
  ]),
2389
- style: S(e.theme)
3031
+ style: V(e.theme)
2390
3032
  }, [
2391
- y(l.$slots, "default")
3033
+ $(l.$slots, "default")
2392
3034
  ], 6));
2393
3035
  }
2394
- }), jl = {
3036
+ }), ba = {
2395
3037
  "--crm-ui-kit-checkbox-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
2396
- }, lt = "CheckboxGroup.ItemRootSelectAll", [
2397
- tn,
2398
- rn
2399
- ] = L(lt), Yl = /* @__PURE__ */ f({
3038
+ }, Dt = "CheckboxGroup.ItemRootSelectAll", [
3039
+ xl,
3040
+ yl
3041
+ ] = F(Dt), fa = /* @__PURE__ */ y({
2400
3042
  __name: "ItemRootSelectAll",
2401
3043
  props: {
2402
3044
  isDisabled: { type: Boolean },
@@ -2404,27 +3046,27 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2404
3046
  theme: {}
2405
3047
  },
2406
3048
  setup(e) {
2407
- const r = e, t = xe(lt), i = k(() => t.isDisabled), o = k(() => {
2408
- const { theme: l, class: a, ...s } = r;
3049
+ const o = e, i = Ge(Dt), t = _(() => i.isDisabled), n = _(() => {
3050
+ const { theme: l, class: s, ...c } = o;
2409
3051
  return {
2410
- ...t.register("selectAll"),
2411
- ...s
3052
+ ...i.register("selectAll"),
3053
+ ...c
2412
3054
  };
2413
3055
  });
2414
- return tn(o.value), (l, a) => (m(), b("div", {
2415
- class: v([
2416
- n(Z).item_root,
2417
- r.class,
3056
+ return xl(n.value), (l, s) => (p(), v("div", {
3057
+ class: x([
3058
+ r(de).item_root,
3059
+ o.class,
2418
3060
  {
2419
- [n(Z).disabled]: i.value || e.isDisabled
3061
+ [r(de).disabled]: t.value || e.isDisabled
2420
3062
  }
2421
3063
  ]),
2422
- style: S(e.theme)
3064
+ style: V(e.theme)
2423
3065
  }, [
2424
- y(l.$slots, "default")
3066
+ $(l.$slots, "default")
2425
3067
  ], 6));
2426
3068
  }
2427
- }), Ve = "CheckboxGroup.CheckboxSelectAll", ae = "selectAll", Ul = /* @__PURE__ */ f({
3069
+ }), ot = "CheckboxGroup.CheckboxSelectAll", Se = "selectAll", va = /* @__PURE__ */ y({
2428
3070
  __name: "CheckboxSelectAll",
2429
3071
  props: {
2430
3072
  isReadonly: { type: Boolean },
@@ -2435,41 +3077,41 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2435
3077
  theme: {},
2436
3078
  class: { default: "" }
2437
3079
  },
2438
- setup(e, { expose: r }) {
2439
- const t = e, { theme: i, class: o, checkedStyle: l, ...a } = t, s = _(null), c = xe(Ve), d = rn(Ve), p = () => {
2440
- d.onChange({ type: ae, name: ae });
2441
- }, g = k(() => {
2442
- const x = c.values, h = Array.from(x.values()).every(
2443
- (I) => I.isChecked
3080
+ setup(e, { expose: o }) {
3081
+ const i = e, { theme: t, class: n, checkedStyle: l, ...s } = i, c = k(null), u = Ge(ot), d = yl(ot), h = () => {
3082
+ d.onChange({ type: Se, name: Se });
3083
+ }, g = _(() => {
3084
+ const f = u.values, m = Array.from(f.values()).every(
3085
+ (b) => b.isChecked
2444
3086
  ) ? "mark" : "indeterminate";
2445
3087
  return {
2446
- isChecked: Array.from(x.values()).some(
2447
- (I) => I.isChecked
3088
+ isChecked: Array.from(f.values()).some(
3089
+ (b) => b.isChecked
2448
3090
  ),
2449
- checkedStyle: h
3091
+ checkedStyle: m
2450
3092
  };
2451
3093
  });
2452
- return r({
2453
- checkboxRef: s
2454
- }), (x, u) => (m(), B(Fr, w({
3094
+ return o({
3095
+ checkboxRef: c
3096
+ }), (f, a) => (p(), E(ke, I({
2455
3097
  ref_key: "checkboxRef",
2456
- ref: s,
2457
- class: n(o),
2458
- theme: n(i),
2459
- value: ae,
2460
- "is-disabled": n(c).isDisabled || n(d).isDisabled,
3098
+ ref: c,
3099
+ class: r(n),
3100
+ theme: r(t),
3101
+ value: Se,
3102
+ "is-disabled": r(u).isDisabled || r(d).isDisabled,
2461
3103
  "is-checked": g.value.isChecked,
2462
3104
  "checked-style": g.value.checkedStyle
2463
- }, a, { onChange: p }), null, 16, ["class", "theme", "is-disabled", "is-checked", "checked-style"]));
3105
+ }, s, { onChange: h }), null, 16, ["class", "theme", "is-disabled", "is-checked", "checked-style"]));
2464
3106
  }
2465
- }), at = "RadioGroup", [on, st] = L(at), nn = "RadioGroup-module__radiogroup___A36hR", ln = "RadioGroup-module__horizontal___QsBvv", Ee = {
2466
- radiogroup: nn,
2467
- horizontal: ln
2468
- }, ct = "RadioGroup.ItemRoot", [an, sn] = L(ct), cn = "ItemRoot-module__item_root___PGFFE", un = "ItemRoot-module__item_root___PGFFE", dn = "ItemRoot-module__disabled___-CJGV", Le = {
2469
- item_root: cn,
2470
- itemRoot: un,
2471
- disabled: dn
2472
- }, Wl = /* @__PURE__ */ f({
3107
+ }), Bt = "RadioGroup", [gl, Vt] = F(Bt), Cl = "RadioGroup-module__radiogroup___A36hR", $l = "RadioGroup-module__horizontal___QsBvv", rt = {
3108
+ radiogroup: Cl,
3109
+ horizontal: $l
3110
+ }, Et = "RadioGroup.ItemRoot", [Il, wl] = F(Et), Sl = "ItemRoot-module__item_root___PGFFE", Tl = "ItemRoot-module__item_root___PGFFE", Al = "ItemRoot-module__disabled___-CJGV", nt = {
3111
+ item_root: Sl,
3112
+ itemRoot: Tl,
3113
+ disabled: Al
3114
+ }, ka = /* @__PURE__ */ y({
2473
3115
  __name: "ItemRoot",
2474
3116
  props: {
2475
3117
  theme: {},
@@ -2483,74 +3125,74 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2483
3125
  onBlur: {}
2484
3126
  },
2485
3127
  setup(e) {
2486
- const r = e, t = st(ct), i = k(() => t.isDisabled), o = k(() => {
2487
- const { theme: l, ...a } = r;
2488
- return a;
3128
+ const o = e, i = Vt(Et), t = _(() => i.isDisabled), n = _(() => {
3129
+ const { theme: l, ...s } = o;
3130
+ return s;
2489
3131
  });
2490
- return an(o.value), (l, a) => (m(), b("div", {
2491
- class: v([
2492
- n(Le).item_root,
3132
+ return Il(n.value), (l, s) => (p(), v("div", {
3133
+ class: x([
3134
+ r(nt).item_root,
2493
3135
  {
2494
- [n(Le).disabled]: i.value || e.isDisabled
3136
+ [r(nt).disabled]: t.value || e.isDisabled
2495
3137
  }
2496
3138
  ]),
2497
- style: S(e.theme)
3139
+ style: V(e.theme)
2498
3140
  }, [
2499
- y(l.$slots, "default")
3141
+ $(l.$slots, "default")
2500
3142
  ], 6));
2501
3143
  }
2502
- }), Kl = {
3144
+ }), xa = {
2503
3145
  "--crm-ui-kit-radio-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
2504
- }, mn = "Radio-module__wrapper___hnp4O", pn = "Radio-module__radio___XkxE9", hn = "Radio-module__input___ccZzQ", se = {
2505
- wrapper: mn,
2506
- radio: pn,
2507
- input: hn
2508
- }, Pe = "RadioGroup.Radio", Zl = /* @__PURE__ */ f({
3146
+ }, Rl = "Radio-module__wrapper___hnp4O", Dl = "Radio-module__radio___XkxE9", Bl = "Radio-module__input___ccZzQ", Te = {
3147
+ wrapper: Rl,
3148
+ radio: Dl,
3149
+ input: Bl
3150
+ }, lt = "RadioGroup.Radio", ya = /* @__PURE__ */ y({
2509
3151
  __name: "Radio",
2510
3152
  props: {
2511
3153
  class: { default: "" },
2512
3154
  theme: {}
2513
3155
  },
2514
- setup(e, { expose: r }) {
2515
- const t = e, i = _(null), o = st(Pe), {
3156
+ setup(e, { expose: o }) {
3157
+ const i = e, t = k(null), n = Vt(lt), {
2516
3158
  value: l,
2517
- isDisabled: a,
2518
- class: s,
2519
- ...c
2520
- } = sn(Pe), d = k(() => {
2521
- const p = {
2522
- name: o.name,
2523
- onChange: o.onChange,
2524
- ...c
3159
+ isDisabled: s,
3160
+ class: c,
3161
+ ...u
3162
+ } = wl(lt), d = _(() => {
3163
+ const h = {
3164
+ name: n.name,
3165
+ onChange: n.onChange,
3166
+ ...u
2525
3167
  };
2526
- return o.defaultValue ? {
2527
- isDefaultChecked: o.defaultValue === l,
2528
- ...p
3168
+ return n.defaultValue ? {
3169
+ isDefaultChecked: n.defaultValue === l,
3170
+ ...h
2529
3171
  } : {
2530
- isChecked: o.value === l,
2531
- ...p
3172
+ isChecked: n.value === l,
3173
+ ...h
2532
3174
  };
2533
3175
  });
2534
- return r({
2535
- inputRef: i
2536
- }), (p, g) => (m(), b("div", {
2537
- class: v([n(se).wrapper, n(s)]),
2538
- style: S(e.theme)
3176
+ return o({
3177
+ inputRef: t
3178
+ }), (h, g) => (p(), v("div", {
3179
+ class: x([r(Te).wrapper, r(c)]),
3180
+ style: V(e.theme)
2539
3181
  }, [
2540
- D(Q, w({
3182
+ M(be, I({
2541
3183
  ref_key: "inputRef",
2542
- ref: i,
2543
- class: [n(se).input, t.class],
3184
+ ref: t,
3185
+ class: [r(Te).input, i.class],
2544
3186
  type: "radio",
2545
- value: n(l),
2546
- "is-disabled": n(o).isDisabled || n(a)
3187
+ value: r(l),
3188
+ "is-disabled": r(n).isDisabled || r(s)
2547
3189
  }, d.value), null, 16, ["class", "value", "is-disabled"]),
2548
- $("span", {
2549
- class: v(n(se).radio)
3190
+ T("span", {
3191
+ class: x(r(Te).radio)
2550
3192
  }, null, 2)
2551
3193
  ], 6));
2552
3194
  }
2553
- }), Jl = {
3195
+ }), ga = {
2554
3196
  "--crm-ui-kit-radio-size": "20px",
2555
3197
  "--crm-ui-kit-radio-z-index": "3",
2556
3198
  "--crm-ui-kit-radio-checked-circle-size": "8px",
@@ -2565,10 +3207,10 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2565
3207
  "--crm-ui-kit-radio-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
2566
3208
  "--crm-ui-kit-radio-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
2567
3209
  "--crm-ui-kit-radio-focus-visible-border-radius": "50%"
2568
- }, bn = f({
2569
- name: at
2570
- }), Xl = /* @__PURE__ */ f({
2571
- ...bn,
3210
+ }, Vl = y({
3211
+ name: Bt
3212
+ }), Ca = /* @__PURE__ */ y({
3213
+ ...Vl,
2572
3214
  props: {
2573
3215
  theme: {},
2574
3216
  orientation: { default: "vertical" },
@@ -2578,170 +3220,181 @@ const tt = "FilterTabs", [Bo, it] = L(tt), zo = "FilterTabs-module__filter_tabs_
2578
3220
  isDisabled: { type: Boolean, default: !1 }
2579
3221
  },
2580
3222
  emits: ["change"],
2581
- setup(e, { expose: r, emit: t }) {
2582
- const i = e, o = t, l = _(null), s = J({
3223
+ setup(e, { expose: o, emit: i }) {
3224
+ const t = e, n = i, l = k(null), c = ie({
2583
3225
  get name() {
2584
- return i.name;
3226
+ return t.name;
2585
3227
  },
2586
3228
  get value() {
2587
- return i.value;
3229
+ return t.value;
2588
3230
  },
2589
3231
  get defaultValue() {
2590
- return i.defaultValue;
3232
+ return t.defaultValue;
2591
3233
  },
2592
3234
  get isDisabled() {
2593
- return i.isDisabled;
3235
+ return t.isDisabled;
2594
3236
  },
2595
- onChange: (c) => {
2596
- const d = c.target;
2597
- o("change", d.value);
3237
+ onChange: (u) => {
3238
+ const d = u.target;
3239
+ n("change", d.value);
2598
3240
  }
2599
3241
  });
2600
- return on(s), r({
3242
+ return gl(c), o({
2601
3243
  radiogroupRef: l
2602
- }), (c, d) => (m(), b("div", w(c.$attrs, {
3244
+ }), (u, d) => (p(), v("div", I(u.$attrs, {
2603
3245
  ref_key: "radiogroupRef",
2604
3246
  ref: l,
2605
3247
  role: "radiogroup",
2606
3248
  class: [
2607
- n(Ee).radiogroup,
3249
+ r(rt).radiogroup,
2608
3250
  {
2609
- [n(Ee).horizontal]: e.orientation === "horizontal"
3251
+ [r(rt).horizontal]: e.orientation === "horizontal"
2610
3252
  }
2611
3253
  ],
2612
3254
  style: e.theme
2613
3255
  }), [
2614
- y(c.$slots, "default")
3256
+ $(u.$slots, "default")
2615
3257
  ], 16));
2616
3258
  }
2617
- }), Ql = {
3259
+ }), $a = {
2618
3260
  "--crm-ui-kit-radio-group-spacing": "8px"
2619
- }, _n = "0.0.1";
2620
- function kn(e, r) {
3261
+ }, El = "0.0.1";
3262
+ function Ml(e, o) {
2621
3263
  }
2622
- const ea = {
2623
- install: kn,
2624
- version: _n
3264
+ const Ia = {
3265
+ install: Ml,
3266
+ version: El
2625
3267
  };
2626
3268
  export {
2627
- yn as APPEARANCE_ATTRIBUTE_NAME,
2628
- Ao as Accordion,
2629
- El as AccordionItemTheme,
2630
- Vl as AccordionTheme,
2631
- W as Appearance,
2632
- _e as BaseInput,
2633
- Mn as Button,
2634
- Nn as ButtonNeutralTheme,
2635
- Fn as ButtonPrimaryTheme,
2636
- Gn as ButtonSecondaryTheme,
2637
- Sl as Callout,
2638
- re as CalloutBaseValues,
2639
- Al as CalloutErrorTheme,
2640
- zl as CalloutInfoTheme,
2641
- Bl as CalloutSuccessTheme,
2642
- Dl as CalloutWarningTheme,
2643
- Fr as Checkbox,
2644
- yl as CheckboxDarkTheme,
2645
- Gl as CheckboxGroup,
2646
- ql as CheckboxGroupItemRoot,
2647
- jl as CheckboxGroupItemRootTheme,
2648
- Hl as CheckboxGroupTheme,
2649
- vl as CheckboxLightTheme,
2650
- Ul as CheckboxSelectAll,
2651
- gl as CheckboxSmallDarkTheme,
2652
- xl as CheckboxSmallLightTheme,
2653
- Il as ContentBlock,
2654
- Cl as ContentBlockTheme,
2655
- gn as DEFAULT_APPEARANCE,
2656
- Ll as FilterTabs,
2657
- Ml as FilterTabsItemRootTheme,
2658
- Pl as FilterTabsTheme,
2659
- Qn as InlineInput,
2660
- Bi as InlineInputInvalidTextTheme,
2661
- Xn as InlineInputPrimaryFocusedTheme,
2662
- Jn as InlineInputPrimaryTheme,
2663
- Un as Input,
2664
- Ut as InputDarkTheme,
2665
- Wt as InputInvalidTextTheme,
2666
- Ye as InputLightTheme,
2667
- jn as InputPrimaryTheme,
2668
- Yn as InputSecondaryTheme,
2669
- Ol as ItemRoot,
2670
- Yl as ItemRootSelectAll,
2671
- tl as Label,
2672
- kl as LabelGroup,
2673
- fl as LabelGroupTheme,
2674
- Gr as LabelTheme,
2675
- $l as Link,
2676
- Tl as LinkPrimaryTheme,
2677
- Te as List,
2678
- pl as ListTheme,
2679
- he as PORTAL_TARGETS,
2680
- wl as Portal,
2681
- Zl as Radio,
2682
- Xl as RadioGroup,
2683
- Wl as RadioGroupItemRoot,
2684
- Kl as RadioGroupItemRootTheme,
2685
- Ql as RadioGroupTheme,
2686
- Jl as RadioPrimaryTheme,
2687
- nl as Select,
2688
- cl as SelectArrow,
2689
- ul as SelectArrowTheme,
2690
- dr as SelectButton,
2691
- ol as SelectButtonDarkTheme,
2692
- rl as SelectButtonLightTheme,
2693
- dl as SelectIcon,
2694
- ml as SelectIconTheme,
2695
- al as SelectItem,
2696
- sl as SelectItemTheme,
2697
- bl as SelectList,
2698
- pl as SelectListTheme,
2699
- Je as SelectOption,
2700
- ll as SelectRootTheme,
2701
- hl as SelectTrigger,
2702
- _l as SelectValue,
2703
- At as Spinner,
2704
- Rl as SpinnerTheme,
2705
- el as Switcher,
2706
- il as SwitcherPrimaryTheme,
2707
- He as THEME_PROVIDER_KEY,
2708
- Nl as Tab,
2709
- Fl as TabPrimaryTheme,
2710
- ve as Text,
2711
- Wn as TextArea,
2712
- ee as TextBaseSizesTheme,
2713
- Yt as TextErrorTheme,
2714
- fe as TextPrimaryTheme,
2715
- qn as TextSecondaryDarkTheme,
2716
- Hn as TextSecondaryLightTheme,
2717
- Zn as TextareaDarkTheme,
2718
- Kn as TextareaLightTheme,
2719
- Bn as ValidationRules,
2720
- Q as VisuallyHiddenInput,
2721
- En as cn,
2722
- $n as createComponentTheme,
2723
- Tn as createPortalId,
2724
- Ln as debounce,
2725
- xt as deepMerge,
2726
- ea as default,
2727
- Vn as generateId,
2728
- kn as install,
2729
- ge as isObject,
2730
- On as isSupported,
2731
- zn as noop,
2732
- wn as provideTheme,
2733
- Pn as throttle,
2734
- bt as useComponentTheme,
2735
- Dn as useDropdownPortal,
2736
- _t as useFieldValidation,
2737
- An as useFormValidation,
2738
- Rn as useModalPortal,
2739
- pe as usePortal,
2740
- qe as useTheme,
2741
- be as useThemeClassName,
2742
- In as useThemeMode,
2743
- Cn as useThemeVariables,
2744
- Sn as useTooltipPortal,
2745
- _n as version
3269
+ zl as APPEARANCE_ATTRIBUTE_NAME,
3270
+ Zn as Accordion,
3271
+ la as AccordionItemTheme,
3272
+ na as AccordionTheme,
3273
+ ce as Appearance,
3274
+ Me as BaseInput,
3275
+ ts as Button,
3276
+ is as ButtonNeutralTheme,
3277
+ os as ButtonPrimaryTheme,
3278
+ rs as ButtonSecondaryTheme,
3279
+ ea as Callout,
3280
+ ye as CalloutBaseValues,
3281
+ ia as CalloutErrorTheme,
3282
+ ra as CalloutInfoTheme,
3283
+ oa as CalloutSuccessTheme,
3284
+ ta as CalloutWarningTheme,
3285
+ ke as Checkbox,
3286
+ Gs as CheckboxDarkTheme,
3287
+ pa as CheckboxGroup,
3288
+ _a as CheckboxGroupItemRoot,
3289
+ ba as CheckboxGroupItemRootTheme,
3290
+ ha as CheckboxGroupTheme,
3291
+ Pe as CheckboxLightTheme,
3292
+ va as CheckboxSelectAll,
3293
+ Ns as CheckboxSmallDarkTheme,
3294
+ Ps as CheckboxSmallLightTheme,
3295
+ Ws as ContentBlock,
3296
+ Zs as ContentBlockTheme,
3297
+ Ll as DEFAULT_APPEARANCE,
3298
+ sa as FilterTabs,
3299
+ ua as FilterTabsItemRootTheme,
3300
+ aa as FilterTabsTheme,
3301
+ _s as InlineInput,
3302
+ uo as InlineInputInvalidTextTheme,
3303
+ hs as InlineInputPrimaryFocusedTheme,
3304
+ ps as InlineInputPrimaryTheme,
3305
+ cs as Input,
3306
+ Ii as InputDarkTheme,
3307
+ wi as InputInvalidTextTheme,
3308
+ _t as InputLightTheme,
3309
+ ss as InputPrimaryTheme,
3310
+ as as InputSecondaryTheme,
3311
+ ca as ItemRoot,
3312
+ fa as ItemRootSelectAll,
3313
+ fs as Label,
3314
+ zs as LabelGroup,
3315
+ Ls as LabelGroupTheme,
3316
+ Tr as LabelTheme,
3317
+ Js as Link,
3318
+ Xs as LinkPrimaryTheme,
3319
+ Ke as List,
3320
+ As as ListTheme,
3321
+ Vs as MultiSelect,
3322
+ Ys as MultiSelectAll,
3323
+ js as MultiSelectCombobox,
3324
+ Hs as MultiSelectGroup,
3325
+ Fs as MultiSelectItem,
3326
+ Os as MultiSelectList,
3327
+ Es as MultiSelectRootTheme,
3328
+ Us as MultiSelectSearch,
3329
+ Ms as MultiSelectTrigger,
3330
+ qs as MultiSelectValue,
3331
+ Ve as PORTAL_TARGETS,
3332
+ Ks as Portal,
3333
+ ya as Radio,
3334
+ Ca as RadioGroup,
3335
+ ka as RadioGroupItemRoot,
3336
+ xa as RadioGroupItemRootTheme,
3337
+ $a as RadioGroupTheme,
3338
+ ga as RadioPrimaryTheme,
3339
+ ys as Select,
3340
+ Is as SelectArrow,
3341
+ ws as SelectArrowTheme,
3342
+ vt as SelectButton,
3343
+ xs as SelectButtonDarkTheme,
3344
+ ks as SelectButtonLightTheme,
3345
+ Ss as SelectIcon,
3346
+ Ts as SelectIconTheme,
3347
+ Cs as SelectItem,
3348
+ $s as SelectItemTheme,
3349
+ Ds as SelectList,
3350
+ As as SelectListTheme,
3351
+ re as SelectOption,
3352
+ gs as SelectRootTheme,
3353
+ Rs as SelectTrigger,
3354
+ Bs as SelectValue,
3355
+ ci as Spinner,
3356
+ Qs as SpinnerTheme,
3357
+ bs as Switcher,
3358
+ vs as SwitcherPrimaryTheme,
3359
+ mt as THEME_PROVIDER_KEY,
3360
+ da as Tab,
3361
+ ma as TabPrimaryTheme,
3362
+ Le as Text,
3363
+ us as TextArea,
3364
+ fe as TextBaseSizesTheme,
3365
+ $i as TextErrorTheme,
3366
+ ze as TextPrimaryTheme,
3367
+ ls as TextSecondaryDarkTheme,
3368
+ ns as TextSecondaryLightTheme,
3369
+ ms as TextareaDarkTheme,
3370
+ ds as TextareaLightTheme,
3371
+ Kl as ValidationRules,
3372
+ be as VisuallyHiddenInput,
3373
+ Jl as cn,
3374
+ Fl as createComponentTheme,
3375
+ Hl as createPortalId,
3376
+ Xl as debounce,
3377
+ Xt as deepMerge,
3378
+ Ia as default,
3379
+ Zl as generateId,
3380
+ Ml as install,
3381
+ He as isObject,
3382
+ es as isSupported,
3383
+ Wl as noop,
3384
+ Pl as provideTheme,
3385
+ Ql as throttle,
3386
+ jt as useComponentTheme,
3387
+ Ul as useDropdownPortal,
3388
+ Kt as useFieldValidation,
3389
+ jl as useFormValidation,
3390
+ Yl as useModalPortal,
3391
+ W as useMultiSelectContext,
3392
+ Be as usePortal,
3393
+ pt as useTheme,
3394
+ Ee as useThemeClassName,
3395
+ Gl as useThemeMode,
3396
+ Nl as useThemeVariables,
3397
+ ql as useTooltipPortal,
3398
+ El as version
2746
3399
  };
2747
3400
  //# sourceMappingURL=index.js.map