@flysk-tech/amocrm-kommo-vue-ui-kit 0.0.1

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 ADDED
@@ -0,0 +1,2747 @@
1
+ import { ref as k, computed as f, readonly as A, provide as Oe, inject as Ne, onMounted as j, onUnmounted as Me, watch as G, onBeforeUnmount as dt, defineComponent as v, createElementBlock as _, openBlock as m, mergeProps as g, unref as o, createBlock as B, watchEffect as K, createElementVNode as $, normalizeClass as x, 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 = k({
6
+ mode: "light",
7
+ customVariables: {},
8
+ ...e
9
+ }), t = f(() => r.value.mode === "dark" ? W.ALTERNATIVE : W.DEFAULT), i = (s) => {
10
+ r.value = {
11
+ ...r.value,
12
+ ...s
13
+ }, ye(r.value);
14
+ }, n = (s) => {
15
+ const c = s === W.ALTERNATIVE ? "dark" : "light";
16
+ i({ mode: c });
17
+ }, a = () => {
18
+ const s = r.value.mode === "light" ? "dark" : "light";
19
+ i({ mode: s });
20
+ };
21
+ ye(r.value);
22
+ const l = {
23
+ themeConfig: A(r),
24
+ appearance: A(t),
25
+ setTheme: i,
26
+ setAppearance: n,
27
+ toggleTheme: a
28
+ };
29
+ return Oe(He, l), l;
30
+ }
31
+ function qe() {
32
+ const e = Ne(He);
33
+ if (!e)
34
+ throw new Error(
35
+ "useTheme must be used within a component that has provideTheme() called in a parent component"
36
+ );
37
+ return e;
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);
42
+ }));
43
+ }
44
+ function In() {
45
+ const { themeConfig: e } = qe();
46
+ return f(() => e.value.mode);
47
+ }
48
+ function Cn() {
49
+ const { themeConfig: e } = qe();
50
+ return f(() => e.value.customVariables || {});
51
+ }
52
+ function bt(e, r) {
53
+ const t = typeof r == "object" && "value" in r ? r : f(() => r), i = f(() => {
54
+ const a = {};
55
+ return Object.entries(t.value).forEach(([l, s]) => {
56
+ const c = `--crm-ui-kit-${e}-${l}`;
57
+ a[c] = String(s);
58
+ }), a;
59
+ }), n = f(() => {
60
+ const a = {};
61
+ return Object.entries(i.value).forEach(([l, s]) => {
62
+ a[l] = s;
63
+ }), a;
64
+ });
65
+ return {
66
+ cssVariables: A(i),
67
+ styleVars: A(n)
68
+ };
69
+ }
70
+ function $n(e, r) {
71
+ return function(i) {
72
+ const n = f(() => ({
73
+ ...r,
74
+ ...i
75
+ }));
76
+ return bt(e, n);
77
+ };
78
+ }
79
+ function pe(e) {
80
+ const r = k(), t = k(!1), i = (n) => {
81
+ if (typeof document > "u") return null;
82
+ let a = document.querySelector(n);
83
+ return a || (a = document.createElement("div"), a.setAttribute("id", n.replace("#", "")), document.body.appendChild(a)), a;
84
+ };
85
+ return j(() => {
86
+ typeof document > "u" || (e ? r.value = i(e) || document.body : r.value = document.body, t.value = !0);
87
+ }), Me(() => {
88
+ e && r.value && r.value !== document.body && r.value.children.length === 0 && r.value.remove();
89
+ }), {
90
+ portalTarget: A(r),
91
+ isReady: A(t)
92
+ };
93
+ }
94
+ function Tn(e = "amocrm-portal") {
95
+ return `${e}-${Math.random().toString(36).substr(2, 9)}`;
96
+ }
97
+ const he = {
98
+ MODAL: "#amocrm-modal-portal",
99
+ TOOLTIP: "#amocrm-tooltip-portal",
100
+ DROPDOWN: "#amocrm-dropdown-portal",
101
+ NOTIFICATION: "#amocrm-notification-portal"
102
+ };
103
+ function Rn() {
104
+ return pe(he.MODAL);
105
+ }
106
+ function Sn() {
107
+ return pe(he.TOOLTIP);
108
+ }
109
+ function Dn() {
110
+ return pe(he.DROPDOWN);
111
+ }
112
+ function _t(e, r = []) {
113
+ const t = k(e), i = k(null), n = k(!1), a = f(() => i.value === null), l = () => {
114
+ for (const u of r) {
115
+ const h = u(t.value);
116
+ if (h !== !0)
117
+ return i.value = h, !1;
118
+ }
119
+ return i.value = null, !0;
120
+ }, s = () => {
121
+ i.value = null;
122
+ }, c = () => {
123
+ n.value = !0;
124
+ };
125
+ return {
126
+ value: t,
127
+ error: A(i),
128
+ isValid: A(a),
129
+ isDirty: A(n),
130
+ validate: l,
131
+ clearError: s,
132
+ touch: c
133
+ };
134
+ }
135
+ function An(e, r = {}) {
136
+ const t = {}, i = k({});
137
+ Object.keys(e).forEach((d) => {
138
+ const b = r[d] || [];
139
+ t[d] = _t(e[d], b);
140
+ });
141
+ const n = f(() => Object.values(t).every((d) => d.isValid.value)), a = f(() => Object.values(t).some((d) => d.error.value !== null)), l = (d) => {
142
+ const b = t[d];
143
+ if (!b) return !0;
144
+ const I = b.validate();
145
+ return !I && b.error.value ? i.value[d] = b.error.value : delete i.value[d], I;
146
+ }, s = () => {
147
+ let d = !0;
148
+ const b = {};
149
+ return Object.keys(t).forEach((I) => {
150
+ !l(I) && t[I].error.value && (b[I] = t[I].error.value, d = !1);
151
+ }), i.value = b, d;
152
+ }, c = () => {
153
+ Object.values(t).forEach((d) => d.clearError()), i.value = {};
154
+ }, u = (d) => {
155
+ var b;
156
+ (b = t[d]) == null || b.clearError(), delete i.value[d];
157
+ }, h = (d, b) => {
158
+ t[d] && (t[d].error.value = b, i.value[d] = b);
159
+ }, w = (d) => {
160
+ var b;
161
+ return (b = t[d]) == null ? void 0 : b.value.value;
162
+ }, p = (d, b) => {
163
+ t[d] && (t[d].value.value = b);
164
+ };
165
+ return {
166
+ fields: t,
167
+ errors: A(i),
168
+ isFormValid: A(n),
169
+ hasErrors: A(a),
170
+ validateField: l,
171
+ validateForm: s,
172
+ clearErrors: c,
173
+ clearFieldError: u,
174
+ setFieldError: h,
175
+ getFieldValue: w,
176
+ setFieldValue: p
177
+ };
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,
183
+ email: (e = "Некорректный email адрес") => {
184
+ const r = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
185
+ return (t) => t && !r.test(t) ? e : !0;
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(([n, a]) => `${n}: ${a};`).join(`
192
+ `);
193
+ return t.textContent = `.${r} {
194
+ ${i}
195
+ }`, document.head.appendChild(t), { className: r, styleElement: t };
196
+ }, be = (e) => {
197
+ const r = k("");
198
+ let t = e, i;
199
+ const n = (a) => {
200
+ i && (i.refCount--, i.refCount === 0 && (i.styleElement.remove(), Y.delete(t))), t = a;
201
+ const l = Y.get(a);
202
+ if (l)
203
+ l.refCount++, r.value = l.className, i = l;
204
+ else {
205
+ const { className: s, styleElement: c } = vt(a), u = { className: s, styleElement: c, refCount: 1 };
206
+ Y.set(a, u), r.value = s, i = u;
207
+ }
208
+ };
209
+ return n(e), G(() => e, n), dt(() => {
210
+ i && (i.refCount--, i.refCount === 0 && (i.styleElement.remove(), Y.delete(t)));
211
+ }), r;
212
+ }, zn = () => {
213
+ };
214
+ function Vn(e = "amocrm") {
215
+ return `${e}-${Math.random().toString(36).substr(2, 9)}`;
216
+ }
217
+ function En(...e) {
218
+ return e.filter(Boolean).join(" ");
219
+ }
220
+ function Ln(e, r) {
221
+ let t;
222
+ return function(...n) {
223
+ const a = () => {
224
+ clearTimeout(t), e(...n);
225
+ };
226
+ clearTimeout(t), t = setTimeout(a, r);
227
+ };
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));
233
+ };
234
+ }
235
+ function ge(e) {
236
+ return e !== null && typeof e == "object" && !Array.isArray(e);
237
+ }
238
+ function xt(e, r) {
239
+ const t = { ...e };
240
+ for (const i in r)
241
+ if (r.hasOwnProperty(i)) {
242
+ const n = r[i], a = t[i];
243
+ ge(n) && ge(a) ? t[i] = xt(a, n) : t[i] = n;
244
+ }
245
+ return t;
246
+ }
247
+ function On(e) {
248
+ if (typeof window > "u") return !1;
249
+ switch (e) {
250
+ case "IntersectionObserver":
251
+ return "IntersectionObserver" in window;
252
+ case "ResizeObserver":
253
+ return "ResizeObserver" in window;
254
+ case "MutationObserver":
255
+ return "MutationObserver" in window;
256
+ default:
257
+ return !1;
258
+ }
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__ */ v({
265
+ inheritAttrs: !1,
266
+ __name: "BaseInput",
267
+ props: {
268
+ isDisabled: { type: Boolean, default: !1 },
269
+ isReadonly: { type: Boolean, default: !1 },
270
+ isPlaceholderVisibleOnFocus: { type: Boolean, default: !1 }
271
+ },
272
+ setup(e, { expose: r }) {
273
+ const t = k(null);
274
+ return r({
275
+ inputRef: t
276
+ }), (i, n) => (m(), _("input", g(i.$attrs, {
277
+ ref_key: "inputRef",
278
+ ref: t,
279
+ class: [
280
+ o(we).input,
281
+ {
282
+ [o(we).placeholder_visible]: e.isPlaceholderVisibleOnFocus
283
+ }
284
+ ],
285
+ disabled: e.isDisabled,
286
+ readonly: e.isReadonly
287
+ }), null, 16, It));
288
+ }
289
+ }), Ct = "VisuallyHiddenInput-module__input___deWRN", $t = {
290
+ input: Ct
291
+ }, Q = /* @__PURE__ */ v({
292
+ __name: "VisuallyHiddenInput",
293
+ props: {
294
+ isDisabled: { type: Boolean },
295
+ isReadonly: { type: Boolean },
296
+ value: {},
297
+ name: {},
298
+ id: {},
299
+ isChecked: { type: Boolean },
300
+ isDefaultChecked: { type: Boolean }
301
+ },
302
+ setup(e, { expose: r }) {
303
+ const t = e, i = k(null), n = f(() => {
304
+ const { isChecked: l, isDefaultChecked: s, ...c } = t;
305
+ return l !== void 0 ? { checked: l, ...c } : c;
306
+ }), a = () => {
307
+ var l;
308
+ return ((l = i.value) == null ? void 0 : l.inputRef) ?? null;
309
+ };
310
+ return j(() => {
311
+ if (t.isDefaultChecked) {
312
+ const l = a();
313
+ l && (l.checked = !0);
314
+ }
315
+ }), t.isChecked !== void 0 && G(() => t.isChecked, (l) => {
316
+ const s = a();
317
+ s && (s.checked = !!l);
318
+ }), r({
319
+ inputRef: i
320
+ }), (l, s) => (m(), B(_e, g({
321
+ ref_key: "inputRef",
322
+ ref: i,
323
+ class: o($t).input
324
+ }, n.value), null, 16, ["class"]));
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__ */ v({
332
+ __name: "Spinner",
333
+ props: {
334
+ isCentered: { type: Boolean, default: !1 },
335
+ theme: { default: void 0 }
336
+ },
337
+ setup(e) {
338
+ return (r, t) => (m(), _("span", g({
339
+ class: [
340
+ o(Ie).spinner,
341
+ { [o(Ie).centered]: e.isCentered }
342
+ ],
343
+ style: e.theme || {}
344
+ }, r.$attrs), null, 16));
345
+ }
346
+ });
347
+ function Bt() {
348
+ const e = k(!1);
349
+ return {
350
+ shouldShowInvalidAnimation: e,
351
+ showInvalidAnimation: (t = () => {
352
+ }) => {
353
+ e.value = !0, setTimeout(() => {
354
+ e.value = !1, t();
355
+ }, 400);
356
+ }
357
+ };
358
+ }
359
+ function zt() {
360
+ const e = k(!1);
361
+ return {
362
+ shouldShowSuccessfulState: e,
363
+ showSuccessfulState: (t = () => {
364
+ }) => {
365
+ e.value = !0, setTimeout(() => {
366
+ e.value = !1, t();
367
+ }, 1500);
368
+ }
369
+ };
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", Nt = "Button-module__spinner_container___FC3J2", Mt = "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: Nt,
378
+ spinnerContainer: Mt,
379
+ invalid: Ft,
380
+ buttonShakeAnimation: Gt,
381
+ success: Ht
382
+ }, qt = ["type", "disabled"], jt = { key: 0 }, Nn = /* @__PURE__ */ v({
383
+ __name: "Button",
384
+ props: {
385
+ type: { default: "button" },
386
+ theme: {},
387
+ isLoading: { type: Boolean, default: !1 },
388
+ isDisabled: { type: Boolean, default: !1 },
389
+ before: {},
390
+ after: {},
391
+ children: {},
392
+ showInvalidAnimationRef: {},
393
+ showSuccessfulStateRef: {},
394
+ successfulStateText: {},
395
+ isClickableWhileDisabled: { type: Boolean, default: !1 }
396
+ },
397
+ emits: ["click"],
398
+ setup(e, { emit: r }) {
399
+ const t = e, i = r, { shouldShowInvalidAnimation: n, showInvalidAnimation: a } = Bt(), { shouldShowSuccessfulState: l, showSuccessfulState: s } = zt();
400
+ K(() => {
401
+ t.showInvalidAnimationRef && (t.showInvalidAnimationRef.value = a);
402
+ }), K(() => {
403
+ t.showSuccessfulStateRef && (t.showSuccessfulStateRef.value = s);
404
+ });
405
+ const c = f(() => {
406
+ var p, d, b, I, H;
407
+ const h = {
408
+ "--crm-ui-kit-spinner-border-color": (p = t.theme) == null ? void 0 : p["--crm-ui-kit-button-spinner-border-color"],
409
+ "--crm-ui-kit-spinner-border-width": (d = t.theme) == null ? void 0 : d["--crm-ui-kit-button-spinner-border-width"],
410
+ "--crm-ui-kit-spinner-circle-size": (b = t.theme) == null ? void 0 : b["--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
+ }, w = {
413
+ ...h,
414
+ "--crm-ui-kit-spinner-border-color": (H = t.theme) == null ? void 0 : H["--crm-ui-kit-button-spinner-disabled-border-color"]
415
+ };
416
+ return { defaultTheme: h, disabledTheme: w };
417
+ }), u = (h) => {
418
+ t.isDisabled && !t.isClickableWhileDisabled || t.isLoading || i("click", h);
419
+ };
420
+ return (h, w) => (m(), _("button", g(h.$attrs, {
421
+ type: e.type,
422
+ class: [
423
+ o(P).button,
424
+ {
425
+ [o(P).invalid]: o(n),
426
+ [o(P).success]: o(l),
427
+ [o(P).disabled]: e.isDisabled
428
+ }
429
+ ],
430
+ style: e.theme,
431
+ disabled: (e.isDisabled || e.isLoading) && !e.isClickableWhileDisabled,
432
+ onClick: u
433
+ }), [
434
+ $("span", {
435
+ class: x(o(P).content)
436
+ }, [
437
+ o(l) ? (m(), _("span", jt, T(e.successfulStateText || e.children), 1)) : e.isLoading ? (m(), _("span", {
438
+ key: 1,
439
+ class: x(o(P).spinner_container)
440
+ }, [
441
+ D(At, {
442
+ theme: e.isDisabled ? c.value.disabledTheme : c.value.defaultTheme,
443
+ "is-centered": !0
444
+ }, null, 8, ["theme"])
445
+ ], 2)) : (m(), _(ce, { key: 2 }, [
446
+ e.before ? (m(), _("span", {
447
+ key: 0,
448
+ class: x(o(P).before)
449
+ }, [
450
+ y(h.$slots, "before", {}, () => [
451
+ z(T(e.before), 1)
452
+ ])
453
+ ], 2)) : R("", !0),
454
+ $("span", null, [
455
+ y(h.$slots, "default", {}, () => [
456
+ z(T(e.children), 1)
457
+ ])
458
+ ]),
459
+ e.after ? (m(), _("span", {
460
+ key: 1,
461
+ class: x(o(P).after)
462
+ }, [
463
+ y(h.$slots, "after", {}, () => [
464
+ z(T(e.after), 1)
465
+ ])
466
+ ], 2)) : R("", !0)
467
+ ], 64))
468
+ ], 2)
469
+ ], 16, qt));
470
+ }
471
+ }), ke = {
472
+ "--crm-ui-kit-button-z-index": "1",
473
+ "--crm-ui-kit-button-height": "36px",
474
+ "--crm-ui-kit-button-elements-spacing": "4px",
475
+ "--crm-ui-kit-button-font-size": "14px",
476
+ "--crm-ui-kit-button-line-height": "14px",
477
+ "--crm-ui-kit-button-font-weight": "bold",
478
+ "--crm-ui-kit-button-sibling-element-spacing": "7px",
479
+ "--crm-ui-kit-button-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)",
480
+ "--crm-ui-kit-button-padding": "0px 10px",
481
+ "--crm-ui-kit-button-border-width": "1px",
482
+ "--crm-ui-kit-button-border-style": "solid",
483
+ "--crm-ui-kit-button-border-radius": "3px",
484
+ "--crm-ui-kit-button-hover-border-width": "1px",
485
+ "--crm-ui-kit-button-hover-border-style": "solid",
486
+ "--crm-ui-kit-button-hover-border-radius": "3px",
487
+ "--crm-ui-kit-button-success-color": "var(--crm-ui-kit-color-white)",
488
+ "--crm-ui-kit-button-success-background-color": "var(--crm-ui-kit-color-mustard-yellow)",
489
+ "--crm-ui-kit-button-success-hover-background-color": "var(--crm-ui-kit-color-amber)",
490
+ "--crm-ui-kit-button-success-border-color": "var(--crm-ui-kit-color-goldenrod)",
491
+ "--crm-ui-kit-button-spinner-border-color": "var(--crm-ui-kit-color-bright-blue)",
492
+ "--crm-ui-kit-button-spinner-disabled-border-color": "var(--crm-ui-kit-color-bright-blue)",
493
+ "--crm-ui-kit-button-spinner-border-width": "2px",
494
+ "--crm-ui-kit-button-spinner-circle-size": "16px",
495
+ "--crm-ui-kit-button-spinner-border-style": "solid"
496
+ }, Mn = {
497
+ ...ke,
498
+ "--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-primary)",
499
+ "--crm-ui-kit-button-border-color": "var(--crm-ui-kit-palette-border-primary)",
500
+ "--crm-ui-kit-button-background-color": "var(--crm-ui-kit-palette-background-primary)",
501
+ "--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
502
+ "--crm-ui-kit-button-disabled-background-color": "var(--crm-ui-kit-palette-background-primary)",
503
+ "--crm-ui-kit-button-disabled-border-color": "var(--crm-ui-kit-palette-border-primary)",
504
+ "--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-primary)",
505
+ "--crm-ui-kit-button-hover-background-color": "var(--crm-ui-kit-palette-button-classic-hover-background)",
506
+ "--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-palette-border-primary)"
507
+ }, Fn = {
508
+ ...ke,
509
+ "--crm-ui-kit-button-color": "var(--crm-ui-kit-color-white)",
510
+ "--crm-ui-kit-button-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
511
+ "--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
512
+ "--crm-ui-kit-button-disabled-background-color": "var(--crm-ui-kit-palette-background-primary)",
513
+ "--crm-ui-kit-button-disabled-border-color": "var(--crm-ui-kit-palette-border-primary)",
514
+ "--crm-ui-kit-button-background-color": "var(--crm-ui-kit-palette-active-element-900)",
515
+ "--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-color-white)",
516
+ "--crm-ui-kit-button-hover-background-color": "var(--crm-ui-kit-color-azure-blue)",
517
+ "--crm-ui-kit-button-hover-border-color": "var(--crm-ui-kit-color-cerulean-blue)",
518
+ "--crm-ui-kit-button-spinner-border-color": "var(--crm-ui-kit-color-white)",
519
+ "--crm-ui-kit-button-spinner-disabled-border-color": "var(--crm-ui-kit-color-bright-blue)"
520
+ }, Gn = {
521
+ ...ke,
522
+ "--crm-ui-kit-button-height": "30px",
523
+ "--crm-ui-kit-button-color": "var(--crm-ui-kit-palette-text-secondary-light)",
524
+ "--crm-ui-kit-button-padding": "0px 8px",
525
+ "--crm-ui-kit-button-border-color": "transparent",
526
+ "--crm-ui-kit-button-background-color": "inherit",
527
+ "--crm-ui-kit-button-disabled-color": "var(--crm-ui-kit-palette-text-secondary-light)",
528
+ "--crm-ui-kit-button-disabled-background-color": "inherit",
529
+ "--crm-ui-kit-button-disabled-border-color": "transparent",
530
+ "--crm-ui-kit-button-hover-background-color": "inherit",
531
+ "--crm-ui-kit-button-hover-border-color": "transparent",
532
+ "--crm-ui-kit-button-hover-color": "var(--crm-ui-kit-palette-text-secondary-light)"
533
+ }, ee = {
534
+ "--crm-ui-kit-text-size-s-font-size": "11px",
535
+ "--crm-ui-kit-text-size-s-line-height": "15px",
536
+ "--crm-ui-kit-text-size-m-font-size": "13px",
537
+ "--crm-ui-kit-text-size-m-line-height": "20px",
538
+ "--crm-ui-kit-text-size-ms-font-size": "13px",
539
+ "--crm-ui-kit-text-size-ms-line-height": "15px",
540
+ "--crm-ui-kit-text-size-l-font-size": "15px",
541
+ "--crm-ui-kit-text-size-l-line-height": "20px",
542
+ "--crm-ui-kit-text-size-xl-font-size": "18px",
543
+ "--crm-ui-kit-text-size-xl-line-height": "24px"
544
+ }, fe = {
545
+ ...ee,
546
+ "--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-primary)",
547
+ "--crm-ui-kit-text-font": "PT Sans"
548
+ }, Hn = {
549
+ ...ee,
550
+ "--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-light)",
551
+ "--crm-ui-kit-text-font": "PT Sans"
552
+ }, qn = {
553
+ ...ee,
554
+ "--crm-ui-kit-text-color": "var(--crm-ui-kit-palette-text-secondary-dark)",
555
+ "--crm-ui-kit-text-font": "PT Sans"
556
+ }, Yt = {
557
+ ...ee,
558
+ "--crm-ui-kit-text-color": "var(--crm-ui-kit-color-error)",
559
+ "--crm-ui-kit-text-font": "PT Sans"
560
+ }, je = {
561
+ "--crm-ui-kit-input-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
562
+ "--crm-ui-kit-input-color": "var(--crm-ui-kit-palette-text-primary)",
563
+ "--crm-ui-kit-input-error-color": "var(--crm-ui-kit-palette-text-primary)",
564
+ "--crm-ui-kit-input-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
565
+ "--crm-ui-kit-input-error-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
566
+ "--crm-ui-kit-input-error-description-color": "var(--crm-ui-kit-color-error)",
567
+ "--crm-ui-kit-input-background-color": "var(--crm-ui-kit-palette-background-primary)",
568
+ "--crm-ui-kit-input-font-size": "var(--crm-ui-kit-base-font-size)",
569
+ "--crm-ui-kit-input-border-width": "1px",
570
+ "--crm-ui-kit-input-line-height": "19.42px",
571
+ "--crm-ui-kit-input-disabled-opacity": "0.6",
572
+ "--crm-ui-kit-input-disabled-background-color": "transparent",
573
+ "--crm-ui-kit-input-error-placement-right-width": "250px",
574
+ "--crm-ui-kit-input-after-min-width": "36px",
575
+ "--crm-ui-kit-input-error-description-offset-placement-bottom": "5px",
576
+ "--crm-ui-kit-input-error-description-offset-placement-right": "10px",
577
+ "--crm-ui-kit-input-border-radius": "3px",
578
+ "--crm-ui-kit-input-padding-right": "9px",
579
+ "--crm-ui-kit-input-padding-left": "9px",
580
+ "--crm-ui-kit-input-height": "34px",
581
+ "--crm-ui-kit-input-width": "100%"
582
+ }, Ye = {
583
+ ...je,
584
+ "--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
585
+ "--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
586
+ "--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
587
+ "--crm-ui-kit-input-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-default)",
588
+ "--crm-ui-kit-input-error-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
589
+ "--crm-ui-kit-input-error-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
590
+ "--crm-ui-kit-input-error-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
591
+ "--crm-ui-kit-input-error-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
592
+ "--crm-ui-kit-input-disabled-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
593
+ "--crm-ui-kit-input-disabled-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
594
+ "--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
595
+ "--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,
598
+ "--crm-ui-kit-input-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
599
+ "--crm-ui-kit-input-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
600
+ "--crm-ui-kit-input-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
601
+ "--crm-ui-kit-input-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
602
+ "--crm-ui-kit-input-error-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
603
+ "--crm-ui-kit-input-error-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
604
+ "--crm-ui-kit-input-error-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
605
+ "--crm-ui-kit-input-error-border-right": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-error)",
606
+ "--crm-ui-kit-input-disabled-border-top": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
607
+ "--crm-ui-kit-input-disabled-border-bottom": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
608
+ "--crm-ui-kit-input-disabled-border-left": "var(--crm-ui-kit-input-border-width) solid var(--crm-ui-kit-palette-border-primary)",
609
+ "--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", ai = "Input-module__invalid___no7WZ", li = "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: ai,
623
+ disabled: li,
624
+ invalid_description: si,
625
+ invalidDescription: ci,
626
+ invalid_description_right: ui,
627
+ invalidDescriptionRight: di
628
+ }, Un = /* @__PURE__ */ v({
629
+ inheritAttrs: !1,
630
+ __name: "Input",
631
+ props: {
632
+ isDisabled: { type: Boolean, default: !1 },
633
+ isReadonly: { type: Boolean, default: !1 },
634
+ isPlaceholderVisibleOnFocus: { type: Boolean, default: !1 },
635
+ isInvalid: { type: Boolean, default: !1 },
636
+ after: { default: void 0 },
637
+ invalidDescription: { default: void 0 },
638
+ invalidDescriptionPlacement: { default: "bottom" },
639
+ theme: {},
640
+ modelValue: { default: "" }
641
+ },
642
+ emits: ["update:modelValue", "input", "change", "focus", "blur"],
643
+ setup(e, { expose: r, emit: t }) {
644
+ const i = mt(), n = f(() => {
645
+ const { class: b, style: I, ...H } = i;
646
+ return H;
647
+ }), a = e, l = t, s = k(null), c = f(() => a.theme || Ye), u = f(() => ({
648
+ ...Wt
649
+ })), h = (b) => {
650
+ const I = b.target;
651
+ l("update:modelValue", I.value), l("input", b);
652
+ }, w = (b) => {
653
+ l("change", b);
654
+ }, p = (b) => {
655
+ l("focus", b);
656
+ }, d = (b) => {
657
+ l("blur", b);
658
+ };
659
+ return r({
660
+ inputRef: s
661
+ }), (b, I) => (m(), _("div", {
662
+ class: x([o(E).wrapper, b.$attrs.class]),
663
+ style: S(c.value)
664
+ }, [
665
+ $("div", {
666
+ class: x([
667
+ o(E).input_wrapper,
668
+ {
669
+ [o(E).invalid_description_right]: e.invalidDescriptionPlacement === "right"
670
+ }
671
+ ])
672
+ }, [
673
+ $("div", {
674
+ class: x([
675
+ o(E).input_container,
676
+ {
677
+ [o(E).invalid]: e.isInvalid,
678
+ [o(E).disabled]: e.isDisabled
679
+ }
680
+ ])
681
+ }, [
682
+ D(_e, g(n.value, {
683
+ ref_key: "inputRef",
684
+ ref: s,
685
+ class: { [o(E).has_after]: !!e.after || !!b.$slots.after },
686
+ "is-disabled": e.isDisabled,
687
+ "is-readonly": e.isReadonly,
688
+ "is-placeholder-visible-on-focus": e.isPlaceholderVisibleOnFocus,
689
+ onInput: h,
690
+ onChange: w,
691
+ onFocus: p,
692
+ onBlur: d
693
+ }), null, 16, ["class", "is-disabled", "is-readonly", "is-placeholder-visible-on-focus"]),
694
+ e.after || b.$slots.after ? (m(), _("div", {
695
+ key: 0,
696
+ class: x(o(E).after)
697
+ }, [
698
+ y(b.$slots, "after", {}, () => [
699
+ z(T(e.after), 1)
700
+ ])
701
+ ], 2)) : R("", !0)
702
+ ], 2),
703
+ e.isInvalid && e.invalidDescription ? (m(), _("div", {
704
+ key: 0,
705
+ class: x(o(E).invalid_description),
706
+ style: S(u.value)
707
+ }, T(e.invalidDescription), 7)) : R("", !0)
708
+ ], 2)
709
+ ], 6));
710
+ }
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", M = {
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__ */ v({
723
+ inheritAttrs: !1,
724
+ __name: "TextArea",
725
+ props: {
726
+ isInvalid: { type: Boolean, default: !1 },
727
+ invalidDescription: {},
728
+ isAutosized: { type: Boolean, default: !1 },
729
+ maxHeight: {},
730
+ isPlaceholderVisibleOnFocus: { type: Boolean, default: !1 },
731
+ isDisabled: { type: Boolean, default: !1 },
732
+ isReadOnly: { type: Boolean, default: !1 },
733
+ theme: {},
734
+ modelValue: { default: "" }
735
+ },
736
+ emits: ["update:modelValue", "autosize"],
737
+ setup(e, { expose: r, emit: t }) {
738
+ const i = e, n = t, a = k(null), l = (c) => {
739
+ const u = c.target;
740
+ n("update:modelValue", u.value), i.isAutosized && s();
741
+ }, s = () => {
742
+ !a.value || !i.isAutosized || Fe(() => {
743
+ a.value && (a.value.style.height = "auto", a.value.style.height = `${a.value.scrollHeight}px`, n("autosize"));
744
+ });
745
+ };
746
+ return G(
747
+ () => i.modelValue,
748
+ () => {
749
+ i.isAutosized && s();
750
+ }
751
+ ), G(
752
+ () => i.isAutosized,
753
+ (c) => {
754
+ c && s();
755
+ }
756
+ ), r({
757
+ textareaRef: a
758
+ }), (c, u) => (m(), _("div", {
759
+ class: x(o(M).wrapper),
760
+ style: S(e.theme)
761
+ }, [
762
+ $("div", {
763
+ class: x([
764
+ o(M).textarea_container,
765
+ {
766
+ [o(M).invalid]: e.isInvalid,
767
+ [o(M).disabled]: e.isDisabled
768
+ }
769
+ ])
770
+ }, [
771
+ $("textarea", g(c.$attrs, {
772
+ ref_key: "textareaRef",
773
+ ref: a,
774
+ class: [
775
+ o(M).textarea,
776
+ {
777
+ [o(M).placeholder_visible]: e.isPlaceholderVisibleOnFocus
778
+ }
779
+ ],
780
+ style: { maxHeight: e.maxHeight ? `${e.maxHeight}px` : void 0 },
781
+ disabled: e.isDisabled,
782
+ readonly: e.isReadOnly,
783
+ value: e.modelValue,
784
+ onInput: l
785
+ }), null, 16, gi)
786
+ ], 2),
787
+ e.isInvalid && e.invalidDescription ? (m(), _("div", {
788
+ key: 0,
789
+ class: x(o(M).invalid_description)
790
+ }, T(e.invalidDescription), 3)) : R("", !0)
791
+ ], 6));
792
+ }
793
+ }), Ue = {
794
+ "--crm-ui-kit-textarea-disabled-border-color": "var(--crm-ui-kit-palette-border-primary)",
795
+ "--crm-ui-kit-textarea-color": "var(--crm-ui-kit-palette-text-primary)",
796
+ "--crm-ui-kit-textarea-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
797
+ "--crm-ui-kit-textarea-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
798
+ "--crm-ui-kit-textarea-error-border-color": "var(--crm-ui-kit-palette-border-error)",
799
+ "--crm-ui-kit-textarea-error-color": "var(--crm-ui-kit-color-error)",
800
+ "--crm-ui-kit-textarea-error-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
801
+ "--crm-ui-kit-textarea-background-color": "var(--crm-ui-kit-palette-background-primary)",
802
+ "--crm-ui-kit-textarea-disabled-background-color": "transparent",
803
+ "--crm-ui-kit-textarea-disabled-opacity": "0.6",
804
+ "--crm-ui-kit-textarea-font-weight": "400",
805
+ "--crm-ui-kit-textarea-font-size": "var(--crm-ui-kit-base-font-size)",
806
+ "--crm-ui-kit-textarea-line-height": "19px",
807
+ "--crm-ui-kit-textarea-padding-top": "8px",
808
+ "--crm-ui-kit-textarea-padding-horizontal": "9px",
809
+ "--crm-ui-kit-textarea-padding-bottom": "7px",
810
+ "--crm-ui-kit-textarea-border-radius": "3px",
811
+ "--crm-ui-kit-textarea-spacing": "4px",
812
+ "--crm-ui-kit-textarea-width": "100%",
813
+ "--crm-ui-kit-textarea-min-height": "56px",
814
+ "--crm-ui-kit-textarea-border-width": "1px",
815
+ "--crm-ui-kit-textarea-border-style": "solid",
816
+ "--crm-ui-kit-textarea-scrollbar-thumb-background": "var(--crm-ui-kit-palette-scrollbar-thumb-background)",
817
+ "--crm-ui-kit-textarea-scrollbar-offset": "4px"
818
+ }, Kn = {
819
+ ...Ue,
820
+ "--crm-ui-kit-textarea-border-color": "var(--crm-ui-kit-palette-border-default)"
821
+ }, Zn = {
822
+ ...Ue,
823
+ "--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__ */ v({
835
+ __name: "Text",
836
+ props: {
837
+ size: {},
838
+ isEllipsis: { type: Boolean, default: !1 },
839
+ maxRows: { default: 1 },
840
+ theme: {},
841
+ style: { default: () => ({}) }
842
+ },
843
+ setup(e) {
844
+ const r = e;
845
+ if (!["s", "m", "ms", "l", "xl"].includes(r.size))
846
+ throw new Error("Unknown size was presented");
847
+ const i = f(() => r.maxRows > 1);
848
+ return (n, a) => (m(), _("span", g(n.$attrs, {
849
+ class: [
850
+ o(U).text,
851
+ o(U)[e.size],
852
+ {
853
+ [o(U).ellipsis]: e.isEllipsis,
854
+ [o(U).line_clamp]: i.value
855
+ }
856
+ ],
857
+ style: {
858
+ ...i.value && { WebkitLineClamp: e.maxRows },
859
+ ...e.theme,
860
+ ...e.style
861
+ }
862
+ }), [
863
+ y(n.$slots, "default")
864
+ ], 16));
865
+ }
866
+ }), We = {
867
+ "--crm-ui-kit-inline-input-color": "var(--crm-ui-kit-palette-text-primary)",
868
+ "--crm-ui-kit-inline-input-placeholder-color": "var(--crm-ui-kit-palette-placeholder-primary)",
869
+ "--crm-ui-kit-inline-input-disabled-color": "var(--crm-ui-kit-palette-text-primary)",
870
+ "--crm-ui-kit-inline-input-invalid-description-color": "var(--crm-ui-kit-color-white)",
871
+ "--crm-ui-kit-inline-input-invalid-description-background-color": "var(--crm-ui-kit-color-error)",
872
+ "--crm-ui-kit-inline-input-font-size": "var(--crm-ui-kit-base-font-size)",
873
+ "--crm-ui-kit-input-after-min-width": "36px",
874
+ "--crm-ui-kit-inline-input-line-height": "20px",
875
+ "--crm-ui-kit-inline-input-width": "100%",
876
+ "--crm-ui-kit-inline-input-height": "19px",
877
+ "--crm-ui-kit-inline-input-invalid-description-width": "auto",
878
+ "--crm-ui-kit-inline-input-disabled-opacity": "0.6",
879
+ "--crm-ui-kit-inline-input-padding-left": "1px",
880
+ "--crm-ui-kit-inline-input-padding-right": "1px",
881
+ "--crm-ui-kit-inline-input-border-style": "solid",
882
+ "--crm-ui-kit-inline-input-border-width": "1px",
883
+ "--crm-ui-kit-inline-input-invalid-description-offset": "5px",
884
+ "--crm-ui-kit-inline-input-invalid-description-padding-x": "5px",
885
+ "--crm-ui-kit-inline-input-invalid-description-padding-y": "9px",
886
+ "--crm-ui-kit-inline-input-invalid-description-border-radius": "3px",
887
+ "--crm-ui-kit-inline-input-invalid-description-arrow-width": "4px",
888
+ "--crm-ui-kit-inline-input-invalid-description-arrow-top": "13px",
889
+ "--crm-ui-kit-inline-input-invalid-description-arrow-left": "-5px"
890
+ }, Jn = {
891
+ ...We,
892
+ "--crm-ui-kit-inline-input-border-color": "transparent",
893
+ "--crm-ui-kit-inline-input-focus-border-color": "var(--crm-ui-kit-color-blueberry)"
894
+ }, Xn = {
895
+ ...We,
896
+ "--crm-ui-kit-inline-input-border-color": "var(--crm-ui-kit-color-blueberry)",
897
+ "--crm-ui-kit-inline-input-focus-border-color": "var(--crm-ui-kit-color-blueberry)"
898
+ }, Bi = {
899
+ ...fe,
900
+ "--crm-ui-kit-text-color": "var(--crm-ui-kit-inline-input-invalid-description-color)",
901
+ "--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", Ni = "InlineInput-module__has_after___5vayE", Mi = "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: Ni,
910
+ hasAfter: Mi,
911
+ invalid_description_container: Fi,
912
+ invalidDescriptionContainer: Gi,
913
+ invalid_description: Hi,
914
+ invalidDescription: qi,
915
+ disabled: ji
916
+ }, Qn = /* @__PURE__ */ v({
917
+ inheritAttrs: !1,
918
+ __name: "InlineInput",
919
+ props: {
920
+ isDisabled: { type: Boolean },
921
+ isReadonly: { type: Boolean },
922
+ isPlaceholderVisibleOnFocus: { type: Boolean },
923
+ isInvalid: { type: Boolean, default: !1 },
924
+ invalidDescription: {},
925
+ after: {},
926
+ theme: {}
927
+ },
928
+ setup(e, { expose: r }) {
929
+ const t = k(null);
930
+ return r({
931
+ inputRef: t
932
+ }), (i, n) => (m(), _("div", {
933
+ class: x(o(O).wrapper),
934
+ style: S(e.theme)
935
+ }, [
936
+ $("div", {
937
+ class: x([
938
+ o(O).input_container,
939
+ {
940
+ [o(O).disabled]: e.isDisabled
941
+ }
942
+ ])
943
+ }, [
944
+ D(_e, g(i.$attrs, {
945
+ ref_key: "inputRef",
946
+ ref: t,
947
+ class: { [o(O).has_after]: !!e.after },
948
+ "is-disabled": e.isDisabled
949
+ }), null, 16, ["class", "is-disabled"])
950
+ ], 2),
951
+ e.after ? (m(), _("div", {
952
+ key: 0,
953
+ class: x(o(O).after_container)
954
+ }, [
955
+ $("div", {
956
+ class: x(o(O).after)
957
+ }, T(e.after), 3)
958
+ ], 2)) : R("", !0),
959
+ e.isInvalid ? (m(), _("div", {
960
+ key: 1,
961
+ class: x(o(O).invalid_description_container)
962
+ }, [
963
+ D(ve, {
964
+ size: "m",
965
+ theme: o(Bi),
966
+ class: x(o(O).invalid_description)
967
+ }, {
968
+ default: V(() => [
969
+ z(T(e.invalidDescription), 1)
970
+ ]),
971
+ _: 1
972
+ }, 8, ["theme", "class"])
973
+ ], 2)) : R("", !0)
974
+ ], 6));
975
+ }
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
+ }, ea = /* @__PURE__ */ v({
981
+ inheritAttrs: !1,
982
+ __name: "Switcher",
983
+ props: {
984
+ isDisabled: { type: Boolean },
985
+ isReadonly: { type: Boolean },
986
+ value: {},
987
+ name: {},
988
+ id: {},
989
+ isChecked: { type: Boolean },
990
+ isDefaultChecked: { type: Boolean },
991
+ theme: {}
992
+ },
993
+ setup(e, { expose: r }) {
994
+ const t = e, i = k(null);
995
+ return r({
996
+ inputRef: i
997
+ }), (n, a) => (m(), _("div", {
998
+ class: x(o(oe).wrapper),
999
+ style: S(e.theme)
1000
+ }, [
1001
+ D(Q, g(n.$attrs, {
1002
+ id: t.id,
1003
+ ref_key: "inputRef",
1004
+ ref: i,
1005
+ class: o(oe).input,
1006
+ 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
1013
+ }), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
1014
+ $("span", {
1015
+ class: x(o(oe).switcher)
1016
+ }, null, 2)
1017
+ ], 6));
1018
+ }
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 }, ta = /* @__PURE__ */ v({
1030
+ __name: "Label",
1031
+ props: {
1032
+ theme: {},
1033
+ text: {},
1034
+ description: {},
1035
+ textPlacement: { default: "top" },
1036
+ isCentered: { type: Boolean, default: !1 }
1037
+ },
1038
+ setup(e, { expose: r }) {
1039
+ const t = e, i = k(null), n = {
1040
+ top: F.top,
1041
+ left: F.left,
1042
+ right: F.right
1043
+ }, a = f(() => n[t.textPlacement]);
1044
+ return r({
1045
+ labelRef: i
1046
+ }), (l, s) => (m(), _("label", g(l.$attrs, {
1047
+ ref_key: "labelRef",
1048
+ ref: i,
1049
+ class: [
1050
+ a.value,
1051
+ {
1052
+ [o(F).centered]: e.isCentered
1053
+ }
1054
+ ],
1055
+ style: e.theme
1056
+ }), [
1057
+ e.text || e.description || l.$slots.text || l.$slots.description ? (m(), _("div", {
1058
+ key: 0,
1059
+ class: x(o(F).text_container)
1060
+ }, [
1061
+ e.text || l.$slots.text ? (m(), _("span", or, [
1062
+ y(l.$slots, "text", {}, () => [
1063
+ z(T(e.text), 1)
1064
+ ])
1065
+ ])) : R("", !0),
1066
+ e.description || l.$slots.description ? (m(), _("div", {
1067
+ key: 1,
1068
+ class: x(o(F).text_description)
1069
+ }, [
1070
+ y(l.$slots, "description", {}, () => [
1071
+ z(T(e.description), 1)
1072
+ ])
1073
+ ], 2)) : R("", !0)
1074
+ ], 2)) : R("", !0),
1075
+ y(l.$slots, "default")
1076
+ ], 16));
1077
+ }
1078
+ }), ia = {
1079
+ "--crm-ui-kit-switcher-active-element-color": "var(--crm-ui-kit-palette-active-element-900)",
1080
+ "--crm-ui-kit-switcher-border-color": "var(--crm-ui-kit-palette-switcher-border-default)",
1081
+ "--crm-ui-kit-switcher-line-border-radius": "26px",
1082
+ "--crm-ui-kit-switcher-circle-size": "14px",
1083
+ "--crm-ui-kit-switcher-line-width": "9px",
1084
+ "--crm-ui-kit-switcher-border-width": "1px",
1085
+ "--crm-ui-kit-switcher-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)",
1086
+ "--crm-ui-kit-switcher-focus-visible-outline-color": "var(--crm-ui-kit-palette-focus-visible-color)",
1087
+ "--crm-ui-kit-switcher-focus-visible-outline-width": "var(--crm-ui-kit-palette-focus-visible-outline-width)",
1088
+ "--crm-ui-kit-switcher-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
1089
+ "--crm-ui-kit-switcher-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
1090
+ "--crm-ui-kit-switcher-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
1091
+ }, nr = "SelectButton-module__button___rXDb-", ar = "SelectButton-module__invalid___9dO2z", lr = "SelectButton-module__disabled___sqM8-", ne = {
1092
+ button: nr,
1093
+ invalid: ar,
1094
+ disabled: lr
1095
+ }, sr = ["disabled"], cr = "Enter", ur = "Space", dr = /* @__PURE__ */ v({
1096
+ __name: "SelectButton",
1097
+ props: {
1098
+ theme: {},
1099
+ isInvalid: { type: Boolean, default: !1 },
1100
+ isDisabled: { type: Boolean, default: !1 }
1101
+ },
1102
+ emits: ["toggle"],
1103
+ setup(e, { expose: r, emit: t }) {
1104
+ const i = t, n = k(null), a = () => {
1105
+ i("toggle");
1106
+ }, l = (s) => {
1107
+ [cr, ur].includes(s.code) && (s.preventDefault(), a());
1108
+ };
1109
+ return r({
1110
+ buttonRef: n
1111
+ }), (s, c) => (m(), _("button", g({
1112
+ ref_key: "buttonRef",
1113
+ ref: n
1114
+ }, s.$attrs, {
1115
+ type: "button",
1116
+ class: [
1117
+ o(ne).button,
1118
+ {
1119
+ [o(ne).invalid]: e.isInvalid,
1120
+ [o(ne).disabled]: e.isDisabled
1121
+ }
1122
+ ],
1123
+ style: e.theme,
1124
+ disabled: e.isDisabled,
1125
+ onClick: a,
1126
+ onKeydown: l
1127
+ }), [
1128
+ y(s.$slots, "default")
1129
+ ], 16, sr));
1130
+ }
1131
+ }), Ke = {
1132
+ "--crm-ui-kit-select-button-border-width": "1px",
1133
+ "--crm-ui-kit-select-button-z-index": "10",
1134
+ "--crm-ui-kit-select-button-height": "36px",
1135
+ "--crm-ui-kit-select-button-width": "100%",
1136
+ "--crm-ui-kit-select-button-background-color": "var(--crm-ui-kit-palette-background-primary)",
1137
+ "--crm-ui-kit-select-button-error-color": "var(--crm-ui-kit-color-error)",
1138
+ "--crm-ui-kit-select-button-border-radius": "3px",
1139
+ "--crm-ui-kit-select-button-padding": "0px 7px 0px 9px",
1140
+ "--crm-ui-kit-select-button-disabled-border-color": "var(--crm-ui-kit-color-grey)",
1141
+ "--crm-ui-kit-select-button-disabled-border-opacity": "0.5",
1142
+ "--crm-ui-kit-select-button-font-size": "var(--crm-ui-kit-base-font-size)",
1143
+ "--crm-ui-kit-select-button-line-height": "20px",
1144
+ "--crm-ui-kit-select-button-focus-visible-border": "1px solid var(--crm-ui-kit-palette-border-active)",
1145
+ "--crm-ui-kit-select-button-color": "var(--crm-ui-kit-palette-text-primary)"
1146
+ }, ra = {
1147
+ ...Ke,
1148
+ "--crm-ui-kit-select-button-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-default)",
1149
+ "--crm-ui-kit-select-button-error-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-error)",
1150
+ "--crm-ui-kit-select-button-disabled-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)"
1151
+ }, oa = {
1152
+ ...Ke,
1153
+ "--crm-ui-kit-select-button-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-primary)",
1154
+ "--crm-ui-kit-select-button-error-border": "var(--crm-ui-kit-select-button-border-width) solid var(--crm-ui-kit-palette-border-error)",
1155
+ "--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);
1158
+ return [(a) => {
1159
+ Oe(t, a);
1160
+ }, (a) => {
1161
+ const l = Ne(t, r);
1162
+ if (l)
1163
+ return l;
1164
+ throw new Error(
1165
+ `\`${a}\` must be used within \`${e}\``
1166
+ );
1167
+ }];
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 = v({
1172
+ name: Ze
1173
+ }), na = /* @__PURE__ */ v({
1174
+ ...br,
1175
+ props: {
1176
+ theme: {},
1177
+ value: {},
1178
+ defaultValue: {},
1179
+ isInvalid: { type: Boolean },
1180
+ isDisabled: { type: Boolean },
1181
+ isOpen: { type: Boolean },
1182
+ isDefaultOpen: { type: Boolean }
1183
+ },
1184
+ emits: ["change", "openChange"],
1185
+ setup(e, { expose: r, emit: t }) {
1186
+ const n = e, a = t, l = k(null), s = k(n.isDefaultOpen ?? !1), c = k(-1), u = k(n.defaultValue), h = f(() => n.value !== void 0), w = pt(), p = f(() => {
1187
+ const C = w == null ? void 0 : w.vnode;
1188
+ return C != null && C.props ? "isOpen" in C.props || "is-open" in C.props : !1;
1189
+ }), d = f(
1190
+ () => h.value ? n.value : u.value
1191
+ ), b = f(
1192
+ () => p.value ? !!n.isOpen : s.value
1193
+ ), ut = J({
1194
+ get hoveredIndex() {
1195
+ return c.value;
1196
+ },
1197
+ set hoveredIndex(C) {
1198
+ c.value = C;
1199
+ },
1200
+ onHoveredIndexChange: (C) => {
1201
+ c.value = C;
1202
+ },
1203
+ onChange: (C) => {
1204
+ h.value || (u.value = C), a("change", C), s.value = !1;
1205
+ },
1206
+ get isOpened() {
1207
+ return b.value;
1208
+ },
1209
+ onOpen: (C) => {
1210
+ !(n.isDisabled ?? !1) && !p.value && (s.value = C, a("openChange", C));
1211
+ },
1212
+ get isDisabled() {
1213
+ return n.isDisabled ?? !1;
1214
+ },
1215
+ get isInvalid() {
1216
+ return n.isInvalid ?? !1;
1217
+ },
1218
+ get value() {
1219
+ return d.value;
1220
+ },
1221
+ get defaultValue() {
1222
+ return n.defaultValue;
1223
+ }
1224
+ });
1225
+ return mr(ut), r({
1226
+ selectRef: l
1227
+ }), (C, vn) => (m(), _("div", g(C.$attrs, {
1228
+ ref_key: "selectRef",
1229
+ ref: l,
1230
+ class: [
1231
+ o(Ce).select,
1232
+ {
1233
+ [o(Ce).opened]: b.value
1234
+ }
1235
+ ],
1236
+ style: e.theme
1237
+ }), [
1238
+ y(C.$slots, "default")
1239
+ ], 16));
1240
+ }
1241
+ }), aa = {
1242
+ "--crm-ui-kit-select-z-index": "auto",
1243
+ "--crm-ui-kit-select-opened-z-index": "60"
1244
+ }, _r = "Option-module__text___taK9J", kr = {
1245
+ text: _r
1246
+ }, Je = /* @__PURE__ */ v({
1247
+ __name: "Option",
1248
+ props: {
1249
+ className: {}
1250
+ },
1251
+ setup(e, { expose: r }) {
1252
+ const t = {
1253
+ ...fe,
1254
+ "--crm-ui-kit-text-color": "inherit"
1255
+ }, i = k(null);
1256
+ return r({
1257
+ optionRef: i
1258
+ }), (n, a) => (m(), _("span", {
1259
+ ref_key: "optionRef",
1260
+ ref: i,
1261
+ class: x([o(kr).text, e.className])
1262
+ }, [
1263
+ D(ve, {
1264
+ theme: t,
1265
+ size: "l",
1266
+ "is-ellipsis": !0
1267
+ }, {
1268
+ default: V(() => [
1269
+ y(n.$slots, "default")
1270
+ ]),
1271
+ _: 3
1272
+ })
1273
+ ], 2));
1274
+ }
1275
+ }), fr = "Item-module__item___MhuKP", vr = "Item-module__selected___vlZkB", xr = "Item-module__hovered___Zad41", ae = {
1276
+ item: fr,
1277
+ selected: vr,
1278
+ hovered: xr
1279
+ }, yr = "Select.Item", la = /* @__PURE__ */ v({
1280
+ __name: "Item",
1281
+ props: {
1282
+ item: {},
1283
+ index: {},
1284
+ className: {},
1285
+ theme: {}
1286
+ },
1287
+ setup(e, { expose: r }) {
1288
+ const t = e, i = te(yr), n = k(null), a = f(() => {
1289
+ var c;
1290
+ return ((c = i.value) == null ? void 0 : c.value) === t.item.value;
1291
+ }), l = f(() => i.hoveredIndex === t.index), s = (c) => {
1292
+ c.preventDefault(), i.onHoveredIndexChange(t.index), typeof i.onChange == "function" && i.onChange(t.item);
1293
+ };
1294
+ return r({
1295
+ itemRef: n
1296
+ }), (c, u) => (m(), _("li", g({
1297
+ ref_key: "itemRef",
1298
+ ref: n
1299
+ }, c.$attrs, {
1300
+ class: [
1301
+ o(ae).item,
1302
+ {
1303
+ [o(ae).selected]: a.value,
1304
+ [o(ae).hovered]: l.value
1305
+ },
1306
+ e.className
1307
+ ],
1308
+ style: e.theme,
1309
+ onClick: s
1310
+ }), [
1311
+ y(c.$slots, "default", {}, () => [
1312
+ D(Je, null, {
1313
+ default: V(() => [
1314
+ z(T(e.item.option), 1)
1315
+ ]),
1316
+ _: 1
1317
+ })
1318
+ ])
1319
+ ], 16));
1320
+ }
1321
+ }), sa = {
1322
+ "--crm-ui-kit-select-item-padding": "7px 6px 7px 22px",
1323
+ "--crm-ui-kit-select-item-margin": "0px -11px 0px 0px",
1324
+ "--crm-ui-kit-select-item-font-size": "var(--crm-ui-kit-base-font-size)",
1325
+ "--crm-ui-kit-select-item-font-weight": "400",
1326
+ "--crm-ui-kit-select-item-selected-background-color": "var(--crm-ui-kit-palette-background-default)",
1327
+ "--crm-ui-kit-select-item-selected-background": "var(--crm-ui-kit-icon-check-mark) 8px 14px no-repeat",
1328
+ "--crm-ui-kit-select-item-hovered-background-color": "var(--crm-ui-kit-palette-background-default)",
1329
+ "--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, ca = /* @__PURE__ */ v({
1333
+ __name: "Arrow",
1334
+ props: {
1335
+ theme: {},
1336
+ className: {}
1337
+ },
1338
+ setup(e, { expose: r }) {
1339
+ const t = k(null);
1340
+ return r({
1341
+ arrowRef: t
1342
+ }), (i, n) => (m(), _("span", {
1343
+ ref_key: "arrowRef",
1344
+ ref: t,
1345
+ class: x([o(wr).wrapper, e.className]),
1346
+ style: S(e.theme)
1347
+ }, [
1348
+ y(i.$slots, "default", {}, () => [
1349
+ (m(), _("svg", {
1350
+ xmlns: "http://www.w3.org/2000/svg",
1351
+ width: Ir,
1352
+ height: Cr,
1353
+ fill: "none",
1354
+ viewBox: "0 0 21 21"
1355
+ }, [...n[0] || (n[0] = [
1356
+ $("path", {
1357
+ fill: "currentColor",
1358
+ "fill-rule": "evenodd",
1359
+ 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",
1360
+ "clip-rule": "evenodd"
1361
+ }, null, -1)
1362
+ ])]))
1363
+ ])
1364
+ ], 6));
1365
+ }
1366
+ }), ua = {
1367
+ "--crm-ui-kit-select-arrow-width": "20px",
1368
+ "--crm-ui-kit-select-arrow-height": "20px",
1369
+ "--crm-ui-kit-select-margin": "0 0 0 auto"
1370
+ }, $r = "Icon-module__wrapper___LScci", Tr = {
1371
+ wrapper: $r
1372
+ }, da = /* @__PURE__ */ v({
1373
+ __name: "Icon",
1374
+ props: {
1375
+ theme: {}
1376
+ },
1377
+ setup(e, { expose: r }) {
1378
+ const t = k(null);
1379
+ return r({
1380
+ iconRef: t
1381
+ }), (i, n) => i.$slots.default ? (m(), _("span", {
1382
+ key: 0,
1383
+ ref_key: "iconRef",
1384
+ ref: t,
1385
+ class: x(o(Tr).wrapper),
1386
+ style: S(e.theme)
1387
+ }, [
1388
+ y(i.$slots, "default")
1389
+ ], 6)) : R("", !0);
1390
+ }
1391
+ }), ma = {
1392
+ "--crm-ui-kit-select-icon-width": "20px",
1393
+ "--crm-ui-kit-select-icon-height": "20px",
1394
+ "--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__ */ v({
1399
+ __name: "List",
1400
+ props: {
1401
+ theme: {},
1402
+ isOpened: { type: Boolean },
1403
+ hoveredIndex: { default: 0 }
1404
+ },
1405
+ emits: ["select", "toggle", "hoveredIndexChange"],
1406
+ setup(e, { expose: r, emit: t }) {
1407
+ const i = e, n = t, a = k(null), l = ue(), s = f(() => l.default ? l.default().length : 0), c = (u) => {
1408
+ const { hoveredIndex: h } = i;
1409
+ switch (u.code) {
1410
+ case "ArrowDown":
1411
+ u.preventDefault(), h < s.value - 1 && n("hoveredIndexChange", h + 1);
1412
+ break;
1413
+ case "ArrowUp":
1414
+ u.preventDefault(), h > 0 && n("hoveredIndexChange", h - 1);
1415
+ break;
1416
+ case "Enter":
1417
+ case "Space":
1418
+ u.preventDefault(), n("select", h);
1419
+ break;
1420
+ case "Escape":
1421
+ u.preventDefault(), n("toggle", !1);
1422
+ break;
1423
+ }
1424
+ };
1425
+ return r({
1426
+ listRef: a
1427
+ }), (u, h) => e.isOpened ? (m(), _("ul", g({ key: 0 }, u.$attrs, {
1428
+ ref_key: "listRef",
1429
+ ref: a,
1430
+ tabindex: "0",
1431
+ role: "list",
1432
+ class: [
1433
+ "custom-scroll",
1434
+ o($e).list,
1435
+ {
1436
+ [o($e).opened]: e.isOpened
1437
+ }
1438
+ ],
1439
+ style: e.theme,
1440
+ onKeydown: c
1441
+ }), [
1442
+ y(u.$slots, "default")
1443
+ ], 16)) : R("", !0);
1444
+ }
1445
+ }), pa = {
1446
+ "--crm-ui-kit-list-top": "0px",
1447
+ "--crm-ui-kit-list-max-height": "211px",
1448
+ "--crm-ui-kit-list-z-index": "30",
1449
+ "--crm-ui-kit-list-border-style": "solid",
1450
+ "--crm-ui-kit-list-left": "-13px",
1451
+ "--crm-ui-kit-list-width": "100%",
1452
+ "--crm-ui-kit-list-padding-right": "11px",
1453
+ "--crm-ui-kit-list-margin-right": "-13px",
1454
+ "--crm-ui-kit-list-background-color": "var(--crm-ui-kit-palette-background-primary)",
1455
+ "--crm-ui-kit-list-border-width": "1px",
1456
+ "--crm-ui-kit-list-border-color": "var(--crm-ui-kit-palette-border-primary)",
1457
+ "--crm-ui-kit-list-border-radius": "3px",
1458
+ "--crm-ui-kit-list-outline": "none",
1459
+ "--crm-ui-kit-list-color": "var(--crm-ui-kit-palette-text-primary)"
1460
+ }, Dr = "Select.Button", ha = /* @__PURE__ */ v({
1461
+ __name: "Button",
1462
+ props: {
1463
+ theme: {}
1464
+ },
1465
+ setup(e, { expose: r }) {
1466
+ const t = te(Dr), i = k(null), n = () => {
1467
+ t.onOpen(!t.isOpened);
1468
+ };
1469
+ return G(
1470
+ () => t.isOpened,
1471
+ (a, l) => {
1472
+ var s, c;
1473
+ l && !a && ((c = (s = i.value) == null ? void 0 : s.buttonRef) == null || c.focus());
1474
+ }
1475
+ ), r({
1476
+ buttonRef: i
1477
+ }), (a, l) => (m(), B(dr, g({
1478
+ ref_key: "buttonRef",
1479
+ ref: i
1480
+ }, a.$attrs, {
1481
+ theme: e.theme,
1482
+ "is-disabled": o(t).isDisabled,
1483
+ "is-invalid": o(t).isInvalid,
1484
+ onToggle: n
1485
+ }), {
1486
+ default: V(() => [
1487
+ y(a.$slots, "default")
1488
+ ]),
1489
+ _: 3
1490
+ }, 16, ["theme", "is-disabled", "is-invalid"]));
1491
+ }
1492
+ }), Ar = ({ ref: e, handler: r }) => {
1493
+ const t = (i) => {
1494
+ e.value && !e.value.contains(i.target) && r();
1495
+ };
1496
+ j(() => {
1497
+ document.addEventListener("mousedown", t);
1498
+ }), Me(() => {
1499
+ document.removeEventListener("mousedown", t);
1500
+ });
1501
+ }, Br = "Select.List", ba = /* @__PURE__ */ v({
1502
+ __name: "SelectList",
1503
+ props: {
1504
+ theme: {},
1505
+ className: {},
1506
+ container: {}
1507
+ },
1508
+ setup(e, { expose: r }) {
1509
+ const t = te(Br), i = k(null), n = ue(), a = f(() => n.default ? n.default().map((d) => {
1510
+ var b;
1511
+ return (b = d.props) == null ? void 0 : b.item;
1512
+ }).filter(Boolean) : []), l = f(() => {
1513
+ const p = {};
1514
+ return a.value.forEach((d, b) => {
1515
+ (d == null ? void 0 : d.value) !== void 0 && (p[String(d.value)] = b);
1516
+ }), p;
1517
+ }), s = f(() => {
1518
+ if (t.value) {
1519
+ const p = l.value[String(t.value.value)];
1520
+ if (p !== void 0) return p;
1521
+ }
1522
+ return t.hoveredIndex;
1523
+ }), c = (p) => {
1524
+ t.onHoveredIndexChange(p);
1525
+ }, u = (p) => {
1526
+ t.onOpen(p);
1527
+ }, h = (p) => {
1528
+ const d = a.value[p];
1529
+ d && typeof t.onChange == "function" && t.onChange(d);
1530
+ }, w = f(() => {
1531
+ var p;
1532
+ return ((p = i.value) == null ? void 0 : p.listRef) ?? null;
1533
+ });
1534
+ return Ar({
1535
+ ref: w,
1536
+ handler: () => {
1537
+ t.isOpened && t.onOpen(!1);
1538
+ }
1539
+ }), G(
1540
+ () => t.isOpened,
1541
+ (p) => {
1542
+ var d, b;
1543
+ p && ((b = (d = i.value) == null ? void 0 : d.listRef) == null || b.focus());
1544
+ }
1545
+ ), r({
1546
+ listRef: i
1547
+ }), (p, d) => e.container ? (m(), B(Ge, {
1548
+ key: 0,
1549
+ to: e.container
1550
+ }, [
1551
+ D(Te, {
1552
+ ref_key: "listRef",
1553
+ ref: i,
1554
+ "class-name": e.className,
1555
+ "is-opened": o(t).isOpened,
1556
+ theme: e.theme,
1557
+ "hovered-index": s.value,
1558
+ onHoveredIndexChange: c,
1559
+ onToggle: u,
1560
+ onSelect: h
1561
+ }, {
1562
+ default: V(() => [
1563
+ y(p.$slots, "default")
1564
+ ]),
1565
+ _: 3
1566
+ }, 8, ["class-name", "is-opened", "theme", "hovered-index"])
1567
+ ], 8, ["to"])) : (m(), B(Te, {
1568
+ key: 1,
1569
+ ref_key: "listRef",
1570
+ ref: i,
1571
+ "class-name": e.className,
1572
+ "is-opened": o(t).isOpened,
1573
+ theme: e.theme,
1574
+ "hovered-index": s.value,
1575
+ onHoveredIndexChange: c,
1576
+ onToggle: u,
1577
+ onSelect: h
1578
+ }, {
1579
+ default: V(() => [
1580
+ y(p.$slots, "default")
1581
+ ]),
1582
+ _: 3
1583
+ }, 8, ["class-name", "is-opened", "theme", "hovered-index"]));
1584
+ }
1585
+ }), zr = "Select.Value", _a = /* @__PURE__ */ v({
1586
+ __name: "Value",
1587
+ props: {
1588
+ placeholder: { default: "" },
1589
+ className: { default: "" },
1590
+ name: {}
1591
+ },
1592
+ setup(e, { expose: r }) {
1593
+ const t = te(zr), i = f(() => !t.value), n = k(null);
1594
+ return r({
1595
+ optionRef: n
1596
+ }), (a, l) => {
1597
+ var s;
1598
+ return m(), _(ce, null, [
1599
+ a.$slots.default ? y(a.$slots, "default", { key: 0 }) : (m(), B(Je, {
1600
+ key: 1,
1601
+ ref_key: "optionRef",
1602
+ ref: n,
1603
+ "class-name": e.className
1604
+ }, {
1605
+ default: V(() => {
1606
+ var c;
1607
+ return [
1608
+ z(T(i.value ? e.placeholder : (c = o(t).value) == null ? void 0 : c.option), 1)
1609
+ ];
1610
+ }),
1611
+ _: 1
1612
+ }, 8, ["class-name"])),
1613
+ D(Q, {
1614
+ name: e.name,
1615
+ type: "hidden",
1616
+ value: (s = o(t).value) == null ? void 0 : s.value
1617
+ }, null, 8, ["name", "value"])
1618
+ ], 64);
1619
+ };
1620
+ }
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", Nr = "Checkbox-module__invalid___B4jAs", Mr = "Checkbox-module__touchable___glE4H", q = {
1622
+ wrapper: Er,
1623
+ input: Lr,
1624
+ checkbox: Pr,
1625
+ indeterminate: Or,
1626
+ invalid: Nr,
1627
+ touchable: Mr
1628
+ }, Fr = /* @__PURE__ */ v({
1629
+ inheritAttrs: !1,
1630
+ __name: "Checkbox",
1631
+ props: {
1632
+ isDisabled: { type: Boolean },
1633
+ isReadonly: { type: Boolean },
1634
+ value: {},
1635
+ name: {},
1636
+ id: {},
1637
+ isChecked: { type: Boolean },
1638
+ isDefaultChecked: { type: Boolean },
1639
+ checkedStyle: { default: "mark" },
1640
+ isInvalid: { type: Boolean, default: !1 },
1641
+ theme: {}
1642
+ },
1643
+ setup(e, { expose: r }) {
1644
+ const t = e, i = k(null), n = k(!1);
1645
+ return j(() => {
1646
+ n.value = Vr();
1647
+ }), r({
1648
+ inputRef: i
1649
+ }), (a, l) => (m(), _("div", {
1650
+ class: x([
1651
+ o(q).wrapper,
1652
+ {
1653
+ [o(q).touchable]: n.value
1654
+ }
1655
+ ]),
1656
+ style: S(e.theme)
1657
+ }, [
1658
+ D(Q, g(a.$attrs, {
1659
+ id: t.id,
1660
+ ref_key: "inputRef",
1661
+ ref: i,
1662
+ class: o(q).input,
1663
+ 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
1670
+ }), null, 16, ["id", "class", "is-disabled", "is-readonly", "is-checked", "is-default-checked", "value", "name"]),
1671
+ $("span", {
1672
+ class: x([
1673
+ o(q).checkbox,
1674
+ {
1675
+ [o(q).indeterminate]: e.checkedStyle === "indeterminate",
1676
+ [o(q).invalid]: e.isInvalid
1677
+ }
1678
+ ])
1679
+ }, null, 2)
1680
+ ], 6));
1681
+ }
1682
+ }), ka = /* @__PURE__ */ v({
1683
+ __name: "LabelGroup",
1684
+ props: {
1685
+ theme: {}
1686
+ },
1687
+ setup(e, { expose: r }) {
1688
+ const t = ue(), i = k(null), n = f(() => t.default ? t.default() : []);
1689
+ return r({
1690
+ groupRef: i
1691
+ }), (a, l) => (m(), _("div", {
1692
+ ref_key: "groupRef",
1693
+ ref: i
1694
+ }, [
1695
+ (m(!0), _(ce, null, ht(n.value, (s, c) => (m(), _("div", {
1696
+ key: c,
1697
+ class: x([o(F).wrapper]),
1698
+ style: S(e.theme)
1699
+ }, [
1700
+ (m(), B(de(s)))
1701
+ ], 6))), 128))
1702
+ ], 512));
1703
+ }
1704
+ }), fa = {
1705
+ "--crm-ui-kit-label-group-margin-bottom": "16px"
1706
+ }, Gr = {
1707
+ "--crm-ui-kit-label-spacing": "4px",
1708
+ "--crm-ui-kit-label-description-spacing": "4px",
1709
+ "--crm-ui-kit-label-text-width": "auto"
1710
+ }, ie = {
1711
+ "--crm-ui-kit-checkbox-z-index": "3",
1712
+ "--crm-ui-kit-checkbox-border-width": "1px",
1713
+ "--crm-ui-kit-checkbox-border-radius": "3px",
1714
+ "--crm-ui-kit-checkbox-border-style": "solid",
1715
+ "--crm-ui-kit-checkbox-background-color": "var(--crm-ui-kit-palette-background-primary)",
1716
+ "--crm-ui-kit-checkbox-disabled-background-color": "var(--crm-ui-kit-palette-background-primary-disabled)",
1717
+ "--crm-ui-kit-checkbox-error-border-color": "var(--crm-ui-kit-color-error)",
1718
+ "--crm-ui-kit-checkbox-checked-background": "var(--crm-ui-kit-checkbox-background-color) var(--crm-ui-kit-icon-checked-mark) no-repeat center / 70%",
1719
+ "--crm-ui-kit-checkbox-indeterminate-background": "var(--crm-ui-kit-checkbox-background-color) var(--crm-ui-kit-icon-minus) no-repeat center",
1720
+ "--crm-ui-kit-checkbox-focus-visible-outline-color": "var(--crm-ui-kit-palette-focus-visible-color)",
1721
+ "--crm-ui-kit-checkbox-focus-visible-outline-width": "var(--crm-ui-kit-palette-focus-visible-outline-width)",
1722
+ "--crm-ui-kit-checkbox-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
1723
+ "--crm-ui-kit-checkbox-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
1724
+ "--crm-ui-kit-checkbox-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
1725
+ }, va = {
1726
+ ...ie,
1727
+ "--crm-ui-kit-checkbox-size": "20px",
1728
+ "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
1729
+ }, xa = {
1730
+ ...ie,
1731
+ "--crm-ui-kit-checkbox-size": "16px",
1732
+ "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-default)"
1733
+ }, ya = {
1734
+ ...ie,
1735
+ "--crm-ui-kit-checkbox-size": "20px",
1736
+ "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
1737
+ }, ga = {
1738
+ ...ie,
1739
+ "--crm-ui-kit-checkbox-size": "16px",
1740
+ "--crm-ui-kit-checkbox-border-color": "var(--crm-ui-kit-palette-border-primary)"
1741
+ };
1742
+ ({
1743
+ ...Gr
1744
+ });
1745
+ const wa = /* @__PURE__ */ v({
1746
+ __name: "Portal",
1747
+ props: {
1748
+ container: { default: void 0 }
1749
+ },
1750
+ setup(e, { expose: r }) {
1751
+ const t = e, i = k(null), n = f(() => t.container || document.body);
1752
+ return r({
1753
+ portalRef: i
1754
+ }), (a, l) => (m(), B(Ge, {
1755
+ to: n.value,
1756
+ disabled: !n.value
1757
+ }, [
1758
+ $("div", g({
1759
+ ref_key: "portalRef",
1760
+ ref: i
1761
+ }, a.$attrs), [
1762
+ y(a.$slots, "default")
1763
+ ], 16)
1764
+ ], 8, ["to", "disabled"]));
1765
+ }
1766
+ }), Hr = "ContentBlock-module__block___UvzuN", qr = {
1767
+ block: Hr
1768
+ }, Ia = /* @__PURE__ */ v({
1769
+ __name: "ContentBlock",
1770
+ props: {
1771
+ theme: {}
1772
+ },
1773
+ setup(e, { expose: r }) {
1774
+ const t = k(null);
1775
+ return r({
1776
+ blockRef: t
1777
+ }), (i, n) => (m(), _("div", g(i.$attrs, {
1778
+ ref_key: "blockRef",
1779
+ ref: t,
1780
+ class: o(qr).block,
1781
+ style: e.theme
1782
+ }), [
1783
+ y(i.$slots, "default")
1784
+ ], 16));
1785
+ }
1786
+ }), Ca = {
1787
+ "--crm-ui-kit-content-block-box-sizing": "border-box",
1788
+ "--crm-ui-kit-content-block-padding": "18px 18px 29px",
1789
+ "--crm-ui-kit-content-block-border-radius": "3px",
1790
+ "--crm-ui-kit-content-block-box-shadow": "var(--crm-ui-kit-palette-content-block-box-shadow)",
1791
+ "--crm-ui-kit-content-block-background": "var(--crm-ui-kit-palette-background-primary)"
1792
+ }, jr = "Link-module__link___35Vo1", Yr = {
1793
+ link: jr
1794
+ }, $a = /* @__PURE__ */ v({
1795
+ __name: "Link",
1796
+ props: {
1797
+ theme: {}
1798
+ },
1799
+ setup(e, { expose: r }) {
1800
+ const t = k(null);
1801
+ return r({
1802
+ linkRef: t
1803
+ }), (i, n) => (m(), _("a", g({
1804
+ ref_key: "linkRef",
1805
+ ref: t
1806
+ }, i.$attrs, {
1807
+ class: o(Yr).link,
1808
+ style: e.theme
1809
+ }), [
1810
+ y(i.$slots, "default")
1811
+ ], 16));
1812
+ }
1813
+ }), Ta = {
1814
+ "--crm-ui-kit-link-color": "var(--crm-ui-kit-palette-link-primary)",
1815
+ "--crm-ui-kit-link-hover-color": "var(--crm-ui-kit-palette-link-hover-primary)",
1816
+ "--crm-ui-kit-link-text-decoration": "underline",
1817
+ "--crm-ui-kit-link-focus-visible-outline-color": "var(--crm-ui-kit-palette-focus-visible-color)",
1818
+ "--crm-ui-kit-link-focus-visible-outline-width": "var(--crm-ui-kit-palette-focus-visible-outline-width)",
1819
+ "--crm-ui-kit-link-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
1820
+ "--crm-ui-kit-link-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
1821
+ "--crm-ui-kit-link-focus-visible-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)"
1822
+ }, Ra = {
1823
+ "--crm-ui-kit-spinner-border-color": "#158fd2",
1824
+ "--crm-ui-kit-spinner-border-width": "2px",
1825
+ "--crm-ui-kit-spinner-circle-size": "16px",
1826
+ "--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
+ }, Sa = /* @__PURE__ */ v({
1831
+ __name: "Callout",
1832
+ props: {
1833
+ theme: {},
1834
+ isIconAvailable: { type: Boolean, default: !0 }
1835
+ },
1836
+ setup(e, { expose: r }) {
1837
+ const t = e, i = k(null), n = f(() => {
1838
+ const { Icon: a, ...l } = t.theme;
1839
+ return l;
1840
+ });
1841
+ return r({
1842
+ calloutRef: i
1843
+ }), (a, l) => (m(), _("div", g(a.$attrs, {
1844
+ ref_key: "calloutRef",
1845
+ ref: i,
1846
+ class: o(Re).wrapper,
1847
+ style: n.value
1848
+ }), [
1849
+ e.isIconAvailable ? (m(), B(de(e.theme.Icon), {
1850
+ key: 0,
1851
+ class: x(o(Re).icon)
1852
+ }, null, 8, ["class"])) : R("", !0),
1853
+ y(a.$slots, "default")
1854
+ ], 16));
1855
+ }
1856
+ }), Kr = {
1857
+ xmlns: "http://www.w3.org/2000/svg",
1858
+ width: "20",
1859
+ height: "20",
1860
+ fill: "none"
1861
+ };
1862
+ function Zr(e, r) {
1863
+ return m(), _("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)
1865
+ ])]);
1866
+ }
1867
+ const Jr = { render: Zr }, Xr = {
1868
+ xmlns: "http://www.w3.org/2000/svg",
1869
+ width: "20",
1870
+ height: "20",
1871
+ fill: "currentColor"
1872
+ };
1873
+ function Qr(e, r) {
1874
+ return m(), _("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)
1876
+ ])]);
1877
+ }
1878
+ const eo = { render: Qr }, to = {
1879
+ xmlns: "http://www.w3.org/2000/svg",
1880
+ width: "20",
1881
+ height: "20",
1882
+ fill: "none"
1883
+ };
1884
+ function io(e, r) {
1885
+ return m(), _("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)
1887
+ ])]);
1888
+ }
1889
+ const ro = { render: io }, oo = {
1890
+ xmlns: "http://www.w3.org/2000/svg",
1891
+ width: "20",
1892
+ height: "20",
1893
+ fill: "currentColor"
1894
+ };
1895
+ function no(e, r) {
1896
+ return m(), _("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)
1898
+ ])]);
1899
+ }
1900
+ const ao = { render: no }, re = {
1901
+ "--crm-ui-kit-callout-padding": "12px",
1902
+ "--crm-ui-kit-callout-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
1903
+ "--crm-ui-kit-callout-icon-color": "var(--crm-ui-kit-palette-text-primary)"
1904
+ }, Da = {
1905
+ ...re,
1906
+ Icon: Jr,
1907
+ "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-warning-background-color)"
1908
+ }, Aa = {
1909
+ ...re,
1910
+ Icon: eo,
1911
+ "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-error-background-color)"
1912
+ }, Ba = {
1913
+ ...re,
1914
+ Icon: ro,
1915
+ "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-success-background-color)"
1916
+ }, za = {
1917
+ ...re,
1918
+ Icon: ao,
1919
+ "--crm-ui-kit-callout-background-color": "var(--crm-ui-kit-palette-callout-info-background-color)"
1920
+ }, Xe = "Accordion", [Qe, lo] = L(Xe), so = "Accordion-module__wrapper___X4UEj", et = {
1921
+ wrapper: so
1922
+ }, co = /* @__PURE__ */ v({
1923
+ __name: "AccordionSingle",
1924
+ props: {
1925
+ isCollapsible: { type: Boolean, default: !1 },
1926
+ value: {},
1927
+ defaultValue: {},
1928
+ theme: {}
1929
+ },
1930
+ emits: ["change"],
1931
+ setup(e, { expose: r, emit: t }) {
1932
+ const i = e, n = t, a = k(null), l = k(i.defaultValue), s = be(i.theme), c = f(() => "value" in i && i.value !== void 0), u = f(
1933
+ () => c.value ? i.value : l.value
1934
+ ), h = (p) => i.isCollapsible && p === u.value ? void 0 : p, w = (p) => {
1935
+ const d = h(p);
1936
+ c.value || (l.value = d), n("change", d);
1937
+ };
1938
+ return Qe({
1939
+ value: u,
1940
+ // computed ref
1941
+ defaultValue: me(() => i.defaultValue),
1942
+ onChange: w
1943
+ }), r({
1944
+ accordionRef: a
1945
+ }), (p, d) => (m(), _("div", g(p.$attrs, {
1946
+ ref_key: "accordionRef",
1947
+ ref: a,
1948
+ class: [o(et).wrapper, o(s)]
1949
+ }), [
1950
+ y(p.$slots, "default")
1951
+ ], 16));
1952
+ }
1953
+ }), uo = /* @__PURE__ */ v({
1954
+ __name: "AccordionMultiple",
1955
+ props: {
1956
+ value: {},
1957
+ defaultValue: { default: () => [] },
1958
+ theme: {}
1959
+ },
1960
+ emits: ["change"],
1961
+ setup(e, { expose: r, emit: t }) {
1962
+ const i = e, n = t, a = k(null), l = k(i.defaultValue || []), s = be(i.theme), c = f(() => "value" in i && i.value !== void 0), u = f(
1963
+ () => c.value ? i.value || [] : l.value
1964
+ ), h = (p) => {
1965
+ const d = u.value || [];
1966
+ return d.includes(p) ? d.filter((b) => b !== p) : [...d, p];
1967
+ }, w = (p) => {
1968
+ const d = h(p);
1969
+ c.value || (l.value = d), n("change", d);
1970
+ };
1971
+ return Qe({
1972
+ value: u,
1973
+ // computed ref
1974
+ defaultValue: me(() => i.defaultValue),
1975
+ onChange: w
1976
+ }), r({
1977
+ accordionRef: a
1978
+ }), (p, d) => (m(), _("div", g(p.$attrs, {
1979
+ ref_key: "accordionRef",
1980
+ ref: a,
1981
+ class: [o(et).wrapper, o(s)]
1982
+ }), [
1983
+ y(p.$slots, "default")
1984
+ ], 16));
1985
+ }
1986
+ }), mo = v({
1987
+ name: Xe
1988
+ }), po = /* @__PURE__ */ v({
1989
+ ...mo,
1990
+ props: {
1991
+ type: {},
1992
+ isCollapsible: { type: Boolean },
1993
+ value: {},
1994
+ defaultValue: {},
1995
+ theme: {}
1996
+ },
1997
+ setup(e, { expose: r }) {
1998
+ const t = k(null);
1999
+ return r({
2000
+ accordionRef: t
2001
+ }), (i, n) => e.type === "multiple" ? (m(), B(uo, g({ key: 0 }, i.$props, {
2002
+ ref_key: "accordionRef",
2003
+ ref: t
2004
+ }), {
2005
+ default: V(() => [
2006
+ y(i.$slots, "default")
2007
+ ]),
2008
+ _: 3
2009
+ }, 16)) : (m(), B(co, g({ key: 1 }, i.$props, {
2010
+ ref_key: "accordionRef",
2011
+ ref: t
2012
+ }), {
2013
+ default: V(() => [
2014
+ y(i.$slots, "default")
2015
+ ]),
2016
+ _: 3
2017
+ }, 16));
2018
+ }
2019
+ }), ho = {
2020
+ xmlns: "http://www.w3.org/2000/svg",
2021
+ width: "10",
2022
+ height: "7",
2023
+ fill: "none"
2024
+ };
2025
+ function bo(e, r) {
2026
+ return m(), _("svg", ho, [...r[0] || (r[0] = [
2027
+ $("path", {
2028
+ fill: "currentColor",
2029
+ "fill-rule": "evenodd",
2030
+ 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",
2031
+ "clip-rule": "evenodd"
2032
+ }, null, -1)
2033
+ ])]);
2034
+ }
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", N = {
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__ */ v({
2049
+ __name: "Item",
2050
+ props: {
2051
+ theme: {},
2052
+ value: {},
2053
+ title: {},
2054
+ before: { default: null }
2055
+ },
2056
+ setup(e, { expose: r }) {
2057
+ const t = e, i = k(null), { onChange: n, value: a } = lo(So), l = be(t.theme), s = () => {
2058
+ n(t.value);
2059
+ }, c = f(() => {
2060
+ const u = o(a);
2061
+ return Array.isArray(u) ? u.includes(t.value) : u === t.value;
2062
+ });
2063
+ return r({
2064
+ itemRef: i
2065
+ }), (u, h) => (m(), _("div", g(u.$attrs, {
2066
+ ref_key: "itemRef",
2067
+ ref: i,
2068
+ class: [
2069
+ o(N).wrapper,
2070
+ {
2071
+ [o(N).active]: c.value
2072
+ },
2073
+ o(l)
2074
+ ]
2075
+ }), [
2076
+ $("div", {
2077
+ class: x(o(N).header),
2078
+ onClick: s
2079
+ }, [
2080
+ $("div", {
2081
+ class: x(o(N).header_left)
2082
+ }, [
2083
+ e.before ? (m(), _("div", {
2084
+ key: 0,
2085
+ class: x(o(N).before_title)
2086
+ }, [
2087
+ (m(), B(de(e.before)))
2088
+ ], 2)) : R("", !0),
2089
+ D(ve, {
2090
+ theme: o(fe),
2091
+ size: "xl",
2092
+ "is-ellipsis": !0
2093
+ }, {
2094
+ default: V(() => [
2095
+ z(T(e.title), 1)
2096
+ ]),
2097
+ _: 1
2098
+ }, 8, ["theme"])
2099
+ ], 2),
2100
+ $("span", {
2101
+ class: x(o(N).chevron_container)
2102
+ }, [
2103
+ D(o(_o), {
2104
+ class: x(o(N).chevron_icon)
2105
+ }, null, 8, ["class"])
2106
+ ], 2)
2107
+ ], 2),
2108
+ $("div", {
2109
+ class: x(o(N).content)
2110
+ }, [
2111
+ y(u.$slots, "default")
2112
+ ], 2)
2113
+ ], 16));
2114
+ }
2115
+ }), Va = {
2116
+ "--crm-ui-kit-accordion-width": "100%"
2117
+ }, Ea = {
2118
+ "--crm-ui-kit-accordion-item-border-radius": "var(--crm-ui-kit-palette-focus-visible-border-radius)",
2119
+ "--crm-ui-kit-accordion-item-box-shadow": "var(--crm-ui-kit-palette-accordion-item-box-shadow)",
2120
+ "--crm-ui-kit-accordion-item-background-color": "var(--crm-ui-kit-palette-background-primary)",
2121
+ "--crm-ui-kit-accordion-item-padding": "12px 12px 12px 22px",
2122
+ "--crm-ui-kit-accordion-item-margin-bottom": "16px",
2123
+ "--crm-ui-kit-accordion-item-chevron-icon-color": "var(--crm-ui-kit-palette-text-primary)",
2124
+ "--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 = v({
2132
+ name: tt
2133
+ }), La = /* @__PURE__ */ v({
2134
+ ...Lo,
2135
+ props: {
2136
+ theme: {},
2137
+ orientation: { default: "horizontal" },
2138
+ isMultiSelect: { type: Boolean },
2139
+ isDisabled: { type: Boolean, default: !1 }
2140
+ },
2141
+ emits: ["change"],
2142
+ setup(e, { expose: r, emit: t }) {
2143
+ const i = e, n = t, a = k(null), l = k([]), s = (h) => {
2144
+ const w = l.value;
2145
+ let p = w;
2146
+ if (!h && l.value.length && (p = []), h) {
2147
+ const d = l.value.includes(h);
2148
+ i.isMultiSelect && (p = d ? w.filter((b) => b !== h) : [...w, h]), !i.isMultiSelect && !d && (p = [h]);
2149
+ }
2150
+ l.value = p, n("change", p, h);
2151
+ }, c = (h) => {
2152
+ const w = l.value;
2153
+ if (i.isMultiSelect) {
2154
+ l.value = [...w, h];
2155
+ return;
2156
+ }
2157
+ !i.isMultiSelect && !w.length && (l.value = [h]);
2158
+ }, u = J({
2159
+ values: l.value,
2160
+ onChange: s,
2161
+ registerActiveName: c,
2162
+ isDisabled: i.isDisabled
2163
+ });
2164
+ return K(() => {
2165
+ u.values = l.value, u.isDisabled = i.isDisabled;
2166
+ }), Bo(u), r({
2167
+ filterTabsRef: a
2168
+ }), (h, w) => (m(), _("div", g(h.$attrs, {
2169
+ ref_key: "filterTabsRef",
2170
+ ref: a,
2171
+ class: [
2172
+ o(Se).filter_tabs,
2173
+ {
2174
+ [o(Se).horizontal]: e.orientation === "horizontal"
2175
+ }
2176
+ ],
2177
+ style: e.theme
2178
+ }), [
2179
+ y(h.$slots, "default")
2180
+ ], 16));
2181
+ }
2182
+ }), Pa = {
2183
+ "--crm-ui-kit-filter-tabs-spacing": "8px"
2184
+ }, rt = "FilterTabs.ItemRoot", [Po, Oo] = L(rt), No = "ItemRoot-module__item_root___TqVxI", Mo = "ItemRoot-module__item_root___TqVxI", Fo = "ItemRoot-module__disabled___VgRs7", De = {
2185
+ item_root: No,
2186
+ itemRoot: Mo,
2187
+ disabled: Fo
2188
+ }, Oa = /* @__PURE__ */ v({
2189
+ __name: "ItemRoot",
2190
+ props: {
2191
+ isDisabled: { type: Boolean },
2192
+ isDefaultActive: { type: Boolean },
2193
+ name: {},
2194
+ theme: {},
2195
+ className: {}
2196
+ },
2197
+ setup(e) {
2198
+ const r = e, t = it(rt), i = f(() => t.isDisabled), { registerActiveName: n } = t;
2199
+ j(() => {
2200
+ r.isDefaultActive && r.name && n(r.name);
2201
+ });
2202
+ const a = f(() => {
2203
+ const { theme: l, className: s, isDefaultActive: c, ...u } = r;
2204
+ return u;
2205
+ });
2206
+ return Po(a.value), (l, s) => (m(), _("div", {
2207
+ class: x([
2208
+ o(De).item_root,
2209
+ e.className,
2210
+ {
2211
+ [o(De).disabled]: i.value || e.isDisabled
2212
+ }
2213
+ ]),
2214
+ style: S(e.theme)
2215
+ }, [
2216
+ y(l.$slots, "default")
2217
+ ], 6));
2218
+ }
2219
+ }), Na = {
2220
+ "--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", Ma = /* @__PURE__ */ v({
2225
+ __name: "Tab",
2226
+ props: {
2227
+ className: { default: "" },
2228
+ theme: {},
2229
+ onClick: {}
2230
+ },
2231
+ setup(e, { expose: r }) {
2232
+ const t = e, { theme: i, className: n, ...a } = t, l = k(null), s = it(Be), { name: c, isDisabled: u } = Oo(Be), h = f(() => s.values.includes(c)), w = f(() => s.isDisabled), p = () => {
2233
+ s.onChange(c);
2234
+ };
2235
+ return r({
2236
+ buttonRef: l
2237
+ }), (d, b) => (m(), _("button", g({
2238
+ ref_key: "buttonRef",
2239
+ ref: l
2240
+ }, a, {
2241
+ class: [
2242
+ o(Ae).button,
2243
+ {
2244
+ [o(Ae).selected]: h.value
2245
+ },
2246
+ o(n)
2247
+ ],
2248
+ style: o(i),
2249
+ name: o(c),
2250
+ disabled: w.value || o(u),
2251
+ onClick: p
2252
+ }), [
2253
+ y(d.$slots, "default")
2254
+ ], 16, qo));
2255
+ }
2256
+ }), Fa = {
2257
+ "--crm-ui-kit-filter-tabs-tab-z-index": "3",
2258
+ "--crm-ui-kit-filter-tabs-tab-action-color": "var(--crm-ui-kit-color-blueberry)",
2259
+ "--crm-ui-kit-filter-tabs-tab-border-width": "1px",
2260
+ "--crm-ui-kit-filter-tabs-tab-border-radius": "3px",
2261
+ "--crm-ui-kit-filter-tabs-tab-border-style": "solid",
2262
+ "--crm-ui-kit-filter-tabs-tab-focus-visible-outline-color": "var(--crm-ui-kit-color-cobalt-blue)",
2263
+ "--crm-ui-kit-filter-tabs-tab-focus-visible-outline-width": "var(--crm-ui-kit-palette-focus-visible-outline-width)",
2264
+ "--crm-ui-kit-filter-tabs-tab-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
2265
+ "--crm-ui-kit-filter-tabs-tab-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
2266
+ "--crm-ui-kit-filter-tabs-tab-background-color": "var(--crm-ui-kit-palette-surface-background-color)",
2267
+ "--crm-ui-kit-filter-tabs-tab-text-color": "var(--crm-ui-kit-palette-surface-text-color)",
2268
+ "--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 = ({
2270
+ isDisabled: e,
2271
+ onChange: r
2272
+ }) => {
2273
+ const t = k(/* @__PURE__ */ new Map()), i = k({}), n = k([]), a = (s) => {
2274
+ const c = new Map(t.value);
2275
+ if (s.type === "selectAll" && !e) {
2276
+ const u = Array.from(c.values()).some(
2277
+ (h) => h.isChecked && !h.isDisabled
2278
+ );
2279
+ c.forEach((h) => {
2280
+ h.isDisabled || (h.isChecked = !u);
2281
+ });
2282
+ }
2283
+ if (s.type === "checkbox" && !e) {
2284
+ const u = c.get(s.name);
2285
+ u && !u.isDisabled && c.set(u.name, {
2286
+ ...u,
2287
+ isChecked: !u.isChecked
2288
+ });
2289
+ }
2290
+ t.value = c, typeof r.value == "function" && r.value([...c.values()], s);
2291
+ };
2292
+ return G(
2293
+ () => n.value.length,
2294
+ async () => {
2295
+ if (n.value.length) {
2296
+ await Fe();
2297
+ const s = [...n.value];
2298
+ n.value = [];
2299
+ const c = new Map(t.value);
2300
+ s.forEach((u) => c.set(u.name, u)), t.value = c;
2301
+ }
2302
+ },
2303
+ { flush: "post" }
2304
+ ), {
2305
+ state: t,
2306
+ register: (s, c = {}) => (s !== "selectAll" && !i.value[s] && (i.value[s] = !0, n.value.push({
2307
+ name: s,
2308
+ isChecked: !!c.isDefaultChecked,
2309
+ isDisabled: !!c.isDisabled
2310
+ })), {
2311
+ name: s,
2312
+ onChange: a,
2313
+ ...c
2314
+ })
2315
+ };
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 = v({
2321
+ name: ot
2322
+ }), Ga = /* @__PURE__ */ v({
2323
+ ...Zo,
2324
+ props: {
2325
+ onChange: {},
2326
+ orientation: { default: "vertical" },
2327
+ theme: {},
2328
+ isDisabled: { type: Boolean, default: !1 }
2329
+ },
2330
+ setup(e, { expose: r }) {
2331
+ const t = e, i = k(null), { register: n, state: a } = Yo({
2332
+ onChange: me(t, "onChange"),
2333
+ isDisabled: t.isDisabled
2334
+ }), l = J({
2335
+ values: a.value,
2336
+ register: n,
2337
+ isDisabled: t.isDisabled
2338
+ });
2339
+ return K(() => {
2340
+ l.values = a.value, l.isDisabled = t.isDisabled;
2341
+ }), jo(l), r({
2342
+ checkboxGroupRef: i
2343
+ }), (s, c) => (m(), _("div", g(s.$attrs, {
2344
+ ref_key: "checkboxGroupRef",
2345
+ ref: i,
2346
+ class: [
2347
+ o(ze).checkbox_group,
2348
+ {
2349
+ [o(ze).horizontal]: e.orientation === "horizontal"
2350
+ }
2351
+ ],
2352
+ style: e.theme
2353
+ }), [
2354
+ y(s.$slots, "default")
2355
+ ], 16));
2356
+ }
2357
+ }), Ha = {
2358
+ "--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
+ }, qa = /* @__PURE__ */ v({
2364
+ __name: "ItemRoot",
2365
+ props: {
2366
+ name: {},
2367
+ value: {},
2368
+ isDisabled: { type: Boolean },
2369
+ isDefaultChecked: { type: Boolean },
2370
+ className: {},
2371
+ theme: {}
2372
+ },
2373
+ setup(e) {
2374
+ const r = e, t = xe(nt), i = f(() => t.isDisabled), n = f(() => {
2375
+ const { theme: a, className: l, ...s } = r;
2376
+ return {
2377
+ ...t.register(r.name, s),
2378
+ value: r.value
2379
+ };
2380
+ });
2381
+ return Jo(n.value), (a, l) => (m(), _("div", {
2382
+ class: x([
2383
+ o(Z).item_root,
2384
+ e.className,
2385
+ {
2386
+ [o(Z).disabled]: i.value || e.isDisabled
2387
+ }
2388
+ ]),
2389
+ style: S(e.theme)
2390
+ }, [
2391
+ y(a.$slots, "default")
2392
+ ], 6));
2393
+ }
2394
+ }), ja = {
2395
+ "--crm-ui-kit-checkbox-group-item-root-disabled-opacity": "var(--crm-ui-kit-disabled-opacity)"
2396
+ }, at = "CheckboxGroup.ItemRootSelectAll", [
2397
+ tn,
2398
+ rn
2399
+ ] = L(at), Ya = /* @__PURE__ */ v({
2400
+ __name: "ItemRootSelectAll",
2401
+ props: {
2402
+ isDisabled: { type: Boolean },
2403
+ className: {},
2404
+ theme: {}
2405
+ },
2406
+ setup(e) {
2407
+ const r = e, t = xe(at), i = f(() => t.isDisabled), n = f(() => {
2408
+ const { theme: a, className: l, ...s } = r;
2409
+ return {
2410
+ ...t.register("selectAll"),
2411
+ ...s
2412
+ };
2413
+ });
2414
+ return tn(n.value), (a, l) => (m(), _("div", {
2415
+ class: x([
2416
+ o(Z).item_root,
2417
+ e.className,
2418
+ {
2419
+ [o(Z).disabled]: i.value || e.isDisabled
2420
+ }
2421
+ ]),
2422
+ style: S(e.theme)
2423
+ }, [
2424
+ y(a.$slots, "default")
2425
+ ], 6));
2426
+ }
2427
+ }), Ve = "CheckboxGroup.CheckboxSelectAll", le = "selectAll", Ua = /* @__PURE__ */ v({
2428
+ __name: "CheckboxSelectAll",
2429
+ props: {
2430
+ isReadonly: { type: Boolean },
2431
+ name: {},
2432
+ id: {},
2433
+ checkedStyle: {},
2434
+ isInvalid: { type: Boolean },
2435
+ theme: {},
2436
+ className: { default: "" }
2437
+ },
2438
+ setup(e, { expose: r }) {
2439
+ const t = e, { theme: i, className: n, checkedStyle: a, ...l } = t, s = k(null), c = xe(Ve), u = rn(Ve), h = () => {
2440
+ u.onChange({ type: le, name: le });
2441
+ }, w = f(() => {
2442
+ const p = c.values, b = Array.from(p.values()).every(
2443
+ (I) => I.isChecked
2444
+ ) ? "mark" : "indeterminate";
2445
+ return {
2446
+ isChecked: Array.from(p.values()).some(
2447
+ (I) => I.isChecked
2448
+ ),
2449
+ checkedStyle: b
2450
+ };
2451
+ });
2452
+ return r({
2453
+ checkboxRef: s
2454
+ }), (p, d) => (m(), B(Fr, g({
2455
+ ref_key: "checkboxRef",
2456
+ ref: s,
2457
+ class: o(n),
2458
+ theme: o(i),
2459
+ value: le,
2460
+ "is-disabled": o(c).isDisabled || o(u).isDisabled,
2461
+ "is-checked": w.value.isChecked,
2462
+ "checked-style": w.value.checkedStyle
2463
+ }, l, { onChange: h }), null, 16, ["class", "theme", "is-disabled", "is-checked", "checked-style"]));
2464
+ }
2465
+ }), lt = "RadioGroup", [on, st] = L(lt), nn = "RadioGroup-module__radiogroup___A36hR", an = "RadioGroup-module__horizontal___QsBvv", Ee = {
2466
+ radiogroup: nn,
2467
+ horizontal: an
2468
+ }, ct = "RadioGroup.ItemRoot", [ln, 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
+ }, Wa = /* @__PURE__ */ v({
2473
+ __name: "ItemRoot",
2474
+ props: {
2475
+ theme: {},
2476
+ isDisabled: { type: Boolean },
2477
+ isReadonly: { type: Boolean },
2478
+ value: {},
2479
+ id: {},
2480
+ className: {},
2481
+ onInput: {},
2482
+ onFocus: {},
2483
+ onBlur: {}
2484
+ },
2485
+ setup(e) {
2486
+ const r = e, t = st(ct), i = f(() => t.isDisabled), n = f(() => {
2487
+ const { theme: a, ...l } = r;
2488
+ return l;
2489
+ });
2490
+ return ln(n.value), (a, l) => (m(), _("div", {
2491
+ class: x([
2492
+ o(Le).item_root,
2493
+ {
2494
+ [o(Le).disabled]: i.value || e.isDisabled
2495
+ }
2496
+ ]),
2497
+ style: S(e.theme)
2498
+ }, [
2499
+ y(a.$slots, "default")
2500
+ ], 6));
2501
+ }
2502
+ }), Ka = {
2503
+ "--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", Za = /* @__PURE__ */ v({
2509
+ __name: "Radio",
2510
+ props: {
2511
+ className: { default: "" },
2512
+ theme: {}
2513
+ },
2514
+ setup(e, { expose: r }) {
2515
+ const t = k(null), i = st(Pe), {
2516
+ value: n,
2517
+ isDisabled: a,
2518
+ className: l,
2519
+ ...s
2520
+ } = sn(Pe), c = f(() => {
2521
+ const u = {
2522
+ name: i.name,
2523
+ onChange: i.onChange,
2524
+ ...s
2525
+ };
2526
+ return i.defaultValue ? {
2527
+ isDefaultChecked: i.defaultValue === n,
2528
+ ...u
2529
+ } : {
2530
+ isChecked: i.value === n,
2531
+ ...u
2532
+ };
2533
+ });
2534
+ return r({
2535
+ inputRef: t
2536
+ }), (u, h) => (m(), _("div", {
2537
+ class: x([o(se).wrapper, o(l)]),
2538
+ style: S(e.theme)
2539
+ }, [
2540
+ D(Q, g({
2541
+ ref_key: "inputRef",
2542
+ ref: t,
2543
+ class: [o(se).input, e.className],
2544
+ type: "radio",
2545
+ value: o(n),
2546
+ "is-disabled": o(i).isDisabled || o(a)
2547
+ }, c.value), null, 16, ["class", "value", "is-disabled"]),
2548
+ $("span", {
2549
+ class: x(o(se).radio)
2550
+ }, null, 2)
2551
+ ], 6));
2552
+ }
2553
+ }), Ja = {
2554
+ "--crm-ui-kit-radio-size": "20px",
2555
+ "--crm-ui-kit-radio-z-index": "3",
2556
+ "--crm-ui-kit-radio-checked-circle-size": "8px",
2557
+ "--crm-ui-kit-radio-checked-circle-color": "var(--crm-ui-kit-color-blueberry)",
2558
+ "--crm-ui-kit-radio-border-width": "1px",
2559
+ "--crm-ui-kit-radio-border-radius": "50%",
2560
+ "--crm-ui-kit-radio-border-style": "solid",
2561
+ "--crm-ui-kit-radio-border-color": "var(--crm-ui-kit-palette-border-primary)",
2562
+ "--crm-ui-kit-radio-background-color": "var(--crm-ui-kit-palette-background-primary)",
2563
+ "--crm-ui-kit-radio-focus-visible-outline-color": "var(--crm-ui-kit-palette-focus-visible-color)",
2564
+ "--crm-ui-kit-radio-focus-visible-outline-width": "var(--crm-ui-kit-palette-focus-visible-outline-width)",
2565
+ "--crm-ui-kit-radio-focus-visible-outline-style": "var(--crm-ui-kit-palette-focus-visible-outline-style)",
2566
+ "--crm-ui-kit-radio-focus-visible-outline-offset": "var(--crm-ui-kit-palette-focus-visible-outline-offset)",
2567
+ "--crm-ui-kit-radio-focus-visible-border-radius": "50%"
2568
+ }, bn = v({
2569
+ name: lt
2570
+ }), Xa = /* @__PURE__ */ v({
2571
+ ...bn,
2572
+ props: {
2573
+ theme: {},
2574
+ orientation: { default: "vertical" },
2575
+ value: {},
2576
+ defaultValue: {},
2577
+ name: {},
2578
+ isDisabled: { type: Boolean, default: !1 }
2579
+ },
2580
+ emits: ["change"],
2581
+ setup(e, { expose: r, emit: t }) {
2582
+ const i = e, n = t, a = k(null), s = J({
2583
+ get name() {
2584
+ return i.name;
2585
+ },
2586
+ get value() {
2587
+ return i.value;
2588
+ },
2589
+ get defaultValue() {
2590
+ return i.defaultValue;
2591
+ },
2592
+ get isDisabled() {
2593
+ return i.isDisabled;
2594
+ },
2595
+ onChange: (c) => {
2596
+ const u = c.target;
2597
+ n("change", u.value);
2598
+ }
2599
+ });
2600
+ return on(s), r({
2601
+ radiogroupRef: a
2602
+ }), (c, u) => (m(), _("div", g(c.$attrs, {
2603
+ ref_key: "radiogroupRef",
2604
+ ref: a,
2605
+ role: "radiogroup",
2606
+ class: [
2607
+ o(Ee).radiogroup,
2608
+ {
2609
+ [o(Ee).horizontal]: e.orientation === "horizontal"
2610
+ }
2611
+ ],
2612
+ style: e.theme
2613
+ }), [
2614
+ y(c.$slots, "default")
2615
+ ], 16));
2616
+ }
2617
+ }), Qa = {
2618
+ "--crm-ui-kit-radio-group-spacing": "8px"
2619
+ }, _n = "0.0.1";
2620
+ function kn(e, r) {
2621
+ }
2622
+ const el = {
2623
+ install: kn,
2624
+ version: _n
2625
+ };
2626
+ export {
2627
+ yn as APPEARANCE_ATTRIBUTE_NAME,
2628
+ Ao as Accordion,
2629
+ Ea as AccordionItemTheme,
2630
+ Va as AccordionTheme,
2631
+ W as Appearance,
2632
+ _e as BaseInput,
2633
+ Nn as Button,
2634
+ Mn as ButtonNeutralTheme,
2635
+ Fn as ButtonPrimaryTheme,
2636
+ Gn as ButtonSecondaryTheme,
2637
+ Sa as Callout,
2638
+ re as CalloutBaseValues,
2639
+ Aa as CalloutErrorTheme,
2640
+ za as CalloutInfoTheme,
2641
+ Ba as CalloutSuccessTheme,
2642
+ Da as CalloutWarningTheme,
2643
+ Fr as Checkbox,
2644
+ ya as CheckboxDarkTheme,
2645
+ Ga as CheckboxGroup,
2646
+ qa as CheckboxGroupItemRoot,
2647
+ ja as CheckboxGroupItemRootTheme,
2648
+ Ha as CheckboxGroupTheme,
2649
+ va as CheckboxLightTheme,
2650
+ Ua as CheckboxSelectAll,
2651
+ ga as CheckboxSmallDarkTheme,
2652
+ xa as CheckboxSmallLightTheme,
2653
+ Ia as ContentBlock,
2654
+ Ca as ContentBlockTheme,
2655
+ gn as DEFAULT_APPEARANCE,
2656
+ La as FilterTabs,
2657
+ Na as FilterTabsItemRootTheme,
2658
+ Pa 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
+ Oa as ItemRoot,
2670
+ Ya as ItemRootSelectAll,
2671
+ ta as Label,
2672
+ ka as LabelGroup,
2673
+ fa as LabelGroupTheme,
2674
+ Gr as LabelTheme,
2675
+ $a as Link,
2676
+ Ta as LinkPrimaryTheme,
2677
+ Te as List,
2678
+ pa as ListTheme,
2679
+ he as PORTAL_TARGETS,
2680
+ wa as Portal,
2681
+ Za as Radio,
2682
+ Xa as RadioGroup,
2683
+ Wa as RadioGroupItemRoot,
2684
+ Ka as RadioGroupItemRootTheme,
2685
+ Qa as RadioGroupTheme,
2686
+ Ja as RadioPrimaryTheme,
2687
+ na as Select,
2688
+ ca as SelectArrow,
2689
+ ua as SelectArrowTheme,
2690
+ dr as SelectButton,
2691
+ oa as SelectButtonDarkTheme,
2692
+ ra as SelectButtonLightTheme,
2693
+ da as SelectIcon,
2694
+ ma as SelectIconTheme,
2695
+ la as SelectItem,
2696
+ sa as SelectItemTheme,
2697
+ ba as SelectList,
2698
+ pa as SelectListTheme,
2699
+ Je as SelectOption,
2700
+ aa as SelectRootTheme,
2701
+ ha as SelectTrigger,
2702
+ _a as SelectValue,
2703
+ At as Spinner,
2704
+ Ra as SpinnerTheme,
2705
+ ea as Switcher,
2706
+ ia as SwitcherPrimaryTheme,
2707
+ He as THEME_PROVIDER_KEY,
2708
+ Ma as Tab,
2709
+ Fa 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
+ el 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
2746
+ };
2747
+ //# sourceMappingURL=index.js.map