@getblock/core 0.0.76

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.
Files changed (34) hide show
  1. package/README.md +16 -0
  2. package/dist/components/badges/Badges.vue.d.ts +23 -0
  3. package/dist/components/breadcrumbs/Breadcrumbs.vue.d.ts +61 -0
  4. package/dist/components/button/Button.types.d.ts +3 -0
  5. package/dist/components/button/Button.vue.d.ts +63 -0
  6. package/dist/components/checkbox/Checkbox.vue.d.ts +117 -0
  7. package/dist/components/checkbox/types.d.ts +5 -0
  8. package/dist/components/chips/Chips.vue.d.ts +48 -0
  9. package/dist/components/dropdown/Dropdown.vue.d.ts +217 -0
  10. package/dist/components/dropdownWithCheckbox/Dropdown.vue.d.ts +431 -0
  11. package/dist/components/droplist/Droplist.vue.d.ts +208 -0
  12. package/dist/components/icon/Icon.types.d.ts +2 -0
  13. package/dist/components/icon/Icon.vue.d.ts +41 -0
  14. package/dist/components/index.d.ts +21 -0
  15. package/dist/components/input/Input.vue.d.ts +195 -0
  16. package/dist/components/input/types.d.ts +10 -0
  17. package/dist/components/lineTab/LineTab.vue.d.ts +33 -0
  18. package/dist/components/listItem/ListItem.vue.d.ts +23 -0
  19. package/dist/components/loading/CustomLoader.vue.d.ts +24 -0
  20. package/dist/components/notification/Notification.vue.d.ts +190 -0
  21. package/dist/components/radioButton/RadioButton.vue.d.ts +88 -0
  22. package/dist/components/range/Range.vue.d.ts +61 -0
  23. package/dist/components/tabBar/TabBar.vue.d.ts +92 -0
  24. package/dist/components/tag/Tag.vue.d.ts +75 -0
  25. package/dist/components/textArea/TextArea.vue.d.ts +119 -0
  26. package/dist/components/toggle/Toggle.vue.d.ts +30 -0
  27. package/dist/components/tooltip/Tooltip.vue.d.ts +42 -0
  28. package/dist/getblockui-core.es.ts +1873 -0
  29. package/dist/getblockui-core.umd.ts +1 -0
  30. package/dist/index.d.ts +1 -0
  31. package/dist/style.css +1 -0
  32. package/dist/vite-env.d.ts +9 -0
  33. package/dist/vite.svg +1 -0
  34. package/package.json +73 -0
@@ -0,0 +1,1873 @@
1
+ import { defineComponent as L, computed as b, openBlock as i, createElementBlock as _, normalizeClass as a, unref as o, renderSlot as h, ref as g, useSlots as ge, createCommentVNode as x, createElementVNode as p, createBlock as V, withDirectives as Q, isRef as ye, vModelDynamic as we, createVNode as U, vShow as ie, onMounted as fe, watch as ve, resolveDirective as Te, Fragment as W, toDisplayString as A, renderList as oe, withModifiers as be, onBeforeUnmount as Le, Teleport as Ie, normalizeStyle as xe, nextTick as De, vModelText as Ce, createTextVNode as $e, withCtx as ze, onUnmounted as Oe, useCssVars as He } from "vue";
2
+ const Ae = "_getblock_ui_button_1pp63_1", Ne = "_getblock_ui_buttonAccent_1pp63_7", Me = "_getblock_ui_buttonTint_1pp63_8", Ee = "_getblock_ui_buttonPrimary_1pp63_9", Fe = "_getblock_ui_buttonSecondary_1pp63_10", Re = "_getblock_ui_buttonOutline_1pp63_11", Ve = "_getblock_ui_buttonTransparent_1pp63_12", je = "_getblock_ui_buttonDestructiveAccent_1pp63_13", We = "_getblock_ui_buttonDestructiveTint_1pp63_14", Ge = "_getblock_ui_buttonDestructiveSecondary_1pp63_15", Ue = "_getblock_ui_buttonDestructiveOutline_1pp63_16", Pe = "_getblock_ui_buttonDestructiveTransparent_1pp63_17", Ye = "dark", qe = "_getblock_ui_buttonLarge_1pp63_42", Xe = "_getblock_ui_buttonMedium_1pp63_46", Ke = "_getblock_ui_buttonSmall_1pp63_50", Je = "_getblock_ui_buttonBase_1pp63_57", Qe = "_getblock_ui_buttonAttention_1pp63_91", Ze = "_getblock_ui_buttonViolet_1pp63_96", et = "_getblock_ui_buttonSpecial_1pp63_101", tt = "_getblock_ui_buttonPinkGradient_1pp63_107", ot = "_getblock_ui_buttonWhite_1pp63_116", nt = "_getblock_ui_buttonTinyWhite_1pp63_120", lt = "_getblock_ui_buttonDestructive_1pp63_13", ct = "_getblock_ui_iconButtonLarge_1pp63_165", it = "_getblock_ui_iconButtonMedium_1pp63_169", at = "_getblock_ui_iconButtonSmall_1pp63_173", y = {
3
+ button: Ae,
4
+ buttonAccent: Ne,
5
+ buttonTint: Me,
6
+ buttonPrimary: Ee,
7
+ buttonSecondary: Fe,
8
+ buttonOutline: Re,
9
+ buttonTransparent: Ve,
10
+ buttonDestructiveAccent: je,
11
+ buttonDestructiveTint: We,
12
+ buttonDestructiveSecondary: Ge,
13
+ buttonDestructiveOutline: Ue,
14
+ buttonDestructiveTransparent: Pe,
15
+ dark: Ye,
16
+ buttonLarge: qe,
17
+ buttonMedium: Xe,
18
+ buttonSmall: Ke,
19
+ buttonBase: Je,
20
+ buttonAttention: Qe,
21
+ buttonViolet: Ze,
22
+ buttonSpecial: et,
23
+ buttonPinkGradient: tt,
24
+ buttonWhite: ot,
25
+ buttonTinyWhite: nt,
26
+ buttonDestructive: lt,
27
+ iconButtonLarge: ct,
28
+ iconButtonMedium: it,
29
+ iconButtonSmall: at
30
+ }, st = ["disabled"], rt = /* @__PURE__ */ L({
31
+ __name: "Button",
32
+ props: {
33
+ disabled: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ mainType: {
38
+ type: String,
39
+ default: "base",
40
+ validator: (n) => ["base", "destructive"].indexOf(n) >= 0
41
+ },
42
+ colorType: {
43
+ type: String,
44
+ default: "accent",
45
+ validator: (n) => [
46
+ "accent",
47
+ "tint",
48
+ "primary",
49
+ "secondary",
50
+ "outline",
51
+ "transparent",
52
+ "attention",
53
+ "violet",
54
+ "special",
55
+ "pink-gradient",
56
+ "white",
57
+ "tiny-white"
58
+ ].indexOf(n) >= 0
59
+ },
60
+ sizeType: {
61
+ type: String,
62
+ default: "large",
63
+ validator: (n) => ["large", "medium", "small"].indexOf(n) >= 0
64
+ },
65
+ iconButton: {
66
+ type: Boolean,
67
+ default: !1
68
+ }
69
+ },
70
+ setup(n) {
71
+ const t = n, e = b(() => ({
72
+ "pointer-events-none": t.disabled,
73
+ [y.buttonLarge]: t.sizeType === "large" && !t.iconButton,
74
+ [y.buttonMedium]: t.sizeType === "medium" && !t.iconButton,
75
+ [y.buttonSmall]: t.sizeType === "small" && !t.iconButton,
76
+ [y.buttonBase]: t.mainType === "base",
77
+ [y.buttonAccent]: t.mainType === "base" && t.colorType === "accent",
78
+ [y.buttonTint]: t.mainType === "base" && t.colorType === "tint",
79
+ [y.buttonPrimary]: t.mainType === "base" && t.colorType === "primary",
80
+ [y.buttonSecondary]: t.mainType === "base" && t.colorType === "secondary",
81
+ [y.buttonOutline]: t.mainType === "base" && t.colorType === "outline",
82
+ [y.buttonTransparent]: t.mainType === "base" && t.colorType === "transparent",
83
+ [y.buttonAttention]: t.mainType === "base" && t.colorType === "attention",
84
+ [y.buttonViolet]: t.mainType === "base" && t.colorType === "violet",
85
+ [y.buttonSpecial]: t.mainType === "base" && t.colorType === "special",
86
+ [y.buttonPinkGradient]: t.mainType === "base" && t.colorType === "pink-gradient",
87
+ [y.buttonWhite]: t.mainType === "base" && t.colorType === "white",
88
+ [y.buttonTinyWhite]: t.mainType === "base" && t.colorType === "tiny-white",
89
+ [y.buttonDestructive]: t.mainType === "destructive",
90
+ [y.buttonDestructiveAccent]: t.mainType === "destructive" && t.colorType === "accent",
91
+ [y.buttonDestructiveTint]: t.mainType === "destructive" && t.colorType === "tint",
92
+ [y.buttonDestructiveSecondary]: t.mainType === "destructive" && t.colorType === "secondary",
93
+ [y.buttonDestructiveOutline]: t.mainType === "destructive" && t.colorType === "outline",
94
+ [y.buttonDestructiveTransparent]: t.mainType === "destructive" && t.colorType === "transparent",
95
+ [y.iconButtonLarge]: t.sizeType === "large" && t.iconButton,
96
+ [y.iconButtonMedium]: t.sizeType === "medium" && t.iconButton,
97
+ [y.iconButtonSmall]: t.sizeType === "small" && t.iconButton
98
+ }));
99
+ return (s, l) => (i(), _("button", {
100
+ class: a([o(e), o(y).button]),
101
+ disabled: t.disabled
102
+ }, [
103
+ h(s.$slots, "left-icon"),
104
+ h(s.$slots, "default"),
105
+ h(s.$slots, "right-icon")
106
+ ], 10, st));
107
+ }
108
+ }), ut = "_getblock_ui_iconXs_15uci_2", dt = "_getblock_ui_iconSmall_15uci_6", _t = "_getblock_ui_iconMedium_15uci_10", pt = "_getblock_ui_iconLarge_15uci_14", bt = "_getblock_ui_iconMain_15uci_21", gt = "dark", mt = "_getblock_ui_iconSecondary_15uci_31", kt = "_getblock_ui_iconTertiary_15uci_41", vt = "_getblock_ui_iconDisable_15uci_51", ht = "_getblock_ui_iconAction_15uci_61", yt = "_getblock_ui_iconTintBlue_15uci_71", ft = "_getblock_ui_iconAttention_15uci_81", Tt = "_getblock_ui_iconAlert_15uci_91", xt = "_getblock_ui_iconSuccess_15uci_101", St = "_getblock_ui_iconColorBG_15uci_111", Bt = "_getblock_ui_iconLightBG_15uci_121", wt = "_getblock_ui_iconTintRed_15uci_131", Lt = "_getblock_ui_iconDefault_15uci_141", It = "_getblock_ui_iconReverseMain_15uci_151", Dt = "_getblock_ui_iconContrast_15uci_158", Ct = "_getblock_ui_iconViolet_15uci_167", $t = "_getblock_ui_iconAccentHover_15uci_178", zt = "_getblock_ui_iconTintHover_15uci_187", Ot = "_getblock_ui_iconAttentionHover_15uci_196", Ht = "_getblock_ui_iconErrorHover_15uci_205", T = {
109
+ iconXs: ut,
110
+ iconSmall: dt,
111
+ iconMedium: _t,
112
+ iconLarge: pt,
113
+ iconMain: bt,
114
+ dark: gt,
115
+ iconSecondary: mt,
116
+ iconTertiary: kt,
117
+ iconDisable: vt,
118
+ iconAction: ht,
119
+ iconTintBlue: yt,
120
+ iconAttention: ft,
121
+ iconAlert: Tt,
122
+ iconSuccess: xt,
123
+ iconColorBG: St,
124
+ iconLightBG: Bt,
125
+ iconTintRed: wt,
126
+ iconDefault: Lt,
127
+ iconReverseMain: It,
128
+ iconContrast: Dt,
129
+ iconViolet: Ct,
130
+ iconAccentHover: $t,
131
+ iconTintHover: zt,
132
+ iconAttentionHover: Ot,
133
+ iconErrorHover: Ht
134
+ }, At = ["alt", "height", "src", "width"], C = /* @__PURE__ */ L({
135
+ __name: "Icon",
136
+ props: {
137
+ iconName: {
138
+ type: String,
139
+ required: !0
140
+ },
141
+ colorType: {
142
+ type: String,
143
+ default: "main",
144
+ validator: (n) => [
145
+ "none",
146
+ "main",
147
+ "secondary",
148
+ "tertiary",
149
+ "disable",
150
+ "action",
151
+ "tint-blue",
152
+ "tint-red",
153
+ "attention",
154
+ "alert",
155
+ "success",
156
+ "color-bg",
157
+ "light-bg",
158
+ "default",
159
+ "accent-hover",
160
+ "tint-hover",
161
+ "attention-hover",
162
+ "reverse-main",
163
+ "error-hover",
164
+ "contrast",
165
+ "violet"
166
+ ].indexOf(n) >= 0
167
+ },
168
+ sizeType: {
169
+ type: String,
170
+ default: "medium",
171
+ validator: (n) => ["xs", "small", "medium", "large"].indexOf(n) >= 0
172
+ }
173
+ },
174
+ setup(n) {
175
+ const t = n, e = b(() => ({
176
+ xs: 14,
177
+ small: 16,
178
+ medium: 20,
179
+ large: 24
180
+ })[t.sizeType]), s = b(() => ({
181
+ [T.iconXs]: t.sizeType === "xs",
182
+ [T.iconSmall]: t.sizeType === "small",
183
+ [T.iconMedium]: t.sizeType === "medium",
184
+ [T.iconLarge]: t.sizeType === "large",
185
+ [T.iconMain]: t.colorType === "main",
186
+ [T.iconSecondary]: t.colorType === "secondary",
187
+ [T.iconTertiary]: t.colorType === "tertiary",
188
+ [T.iconDisable]: t.colorType === "disable",
189
+ [T.iconAction]: t.colorType === "action",
190
+ [T.iconTintBlue]: t.colorType === "tint-blue",
191
+ [T.iconTintRed]: t.colorType === "tint-red",
192
+ [T.iconAttention]: t.colorType === "attention",
193
+ [T.iconAlert]: t.colorType === "alert",
194
+ [T.iconSuccess]: t.colorType === "success",
195
+ [T.iconColorBG]: t.colorType === "color-bg",
196
+ [T.iconLightBG]: t.colorType === "light-bg",
197
+ [T.iconDefault]: t.colorType === "default",
198
+ [T.iconAccentHover]: t.colorType === "accent-hover",
199
+ [T.iconTintHover]: t.colorType === "tint-hover",
200
+ [T.iconAttentionHover]: t.colorType === "attention-hover",
201
+ [T.iconReverseMain]: t.colorType === "reverse-main",
202
+ [T.iconErrorHover]: t.colorType === "error-hover",
203
+ [T.iconContrast]: t.colorType === "contrast",
204
+ [T.iconViolet]: t.colorType === "violet"
205
+ }));
206
+ return (l, d) => (i(), _("img", {
207
+ alt: t.iconName,
208
+ class: a(o(s)),
209
+ height: o(e),
210
+ src: `https://storage.getblock.io/web/getblock-ui-kit/icons/${t.iconName}.svg`,
211
+ width: o(e)
212
+ }, null, 10, At));
213
+ }
214
+ }), Nt = "_getblock_ui_container_1n2d9_2", Mt = "_getblock_ui_inputMedium_1n2d9_9", Et = "_getblock_ui_inputLarge_1n2d9_12", Ft = "_getblock_ui_input_1n2d9_9", Rt = "dark", Vt = "_getblock_ui_inputFocus_1n2d9_25", jt = "_getblock_ui_inputFill_1n2d9_32", Wt = "_getblock_ui_inputOutline_1n2d9_39", Gt = "_getblock_ui_inputDisabled_1n2d9_46", Ut = "_getblock_ui_inputLabelDisabled_1n2d9_53", Pt = "_getblock_ui_inputDisabledCustomEvents_1n2d9_57", Yt = "_getblock_ui_inputError_1n2d9_67", qt = "_getblock_ui_inputHintError_1n2d9_71", Xt = "_getblock_ui_inputHint_1n2d9_71", Kt = "_getblock_ui_inputLabel_1n2d9_53", Jt = "_getblock_ui_shrink0_1n2d9_94", z = {
215
+ container: Nt,
216
+ inputMedium: Mt,
217
+ inputLarge: Et,
218
+ input: Ft,
219
+ dark: Rt,
220
+ inputFocus: Vt,
221
+ inputFill: jt,
222
+ inputOutline: Wt,
223
+ inputDisabled: Gt,
224
+ inputLabelDisabled: Ut,
225
+ inputDisabledCustomEvents: Pt,
226
+ inputError: Yt,
227
+ inputHintError: qt,
228
+ inputHint: Xt,
229
+ inputLabel: Kt,
230
+ shrink0: Jt
231
+ }, Qt = ["tabindex", "disabled", "name", "placeholder", "type"], Zt = /* @__PURE__ */ L({
232
+ __name: "Input",
233
+ props: {
234
+ disabled: {
235
+ type: Boolean,
236
+ default: !1
237
+ },
238
+ error: {
239
+ type: Boolean,
240
+ default: !1
241
+ },
242
+ placeholder: {
243
+ type: String,
244
+ default: ""
245
+ },
246
+ inputName: {
247
+ type: String,
248
+ required: !0
249
+ },
250
+ inputValue: {
251
+ type: String,
252
+ required: !0
253
+ },
254
+ inputType: {
255
+ type: String,
256
+ default: "text",
257
+ validator: (n) => ["text", "email", "number", "password"].indexOf(n) >= 0
258
+ },
259
+ colorType: {
260
+ type: String,
261
+ default: "fill",
262
+ validator: (n) => ["fill", "outline"].indexOf(n) >= 0
263
+ },
264
+ sizeType: {
265
+ type: String,
266
+ default: "large",
267
+ validator: (n) => ["large", "medium"].indexOf(n) >= 0
268
+ },
269
+ iconName: {
270
+ type: String,
271
+ default: ""
272
+ },
273
+ statusIcon: {
274
+ type: String,
275
+ default: "none",
276
+ validator: (n) => ["success", "error", "none"].indexOf(n) >= 0
277
+ },
278
+ customEventRightButton: {
279
+ type: Boolean,
280
+ default: !1
281
+ },
282
+ rightIconName: {
283
+ type: String,
284
+ default: ""
285
+ },
286
+ tabIndex: {
287
+ type: Number,
288
+ default: 0
289
+ }
290
+ },
291
+ emits: ["update:inputValue", "resetError", "focusOut", "onClickRightButton"],
292
+ setup(n, { emit: t }) {
293
+ const e = n, s = b(() => e.statusIcon === "success" ? { display: !0, colorType: "success", icon: "check-circle" } : e.statusIcon === "error" ? { display: !0, colorType: "alert", icon: "alert-triangle" } : { display: !1, colorType: "none", icon: "" }), l = g(null), d = g(!1), c = g(e.inputType), r = b({
294
+ get() {
295
+ return e.inputValue;
296
+ },
297
+ set($) {
298
+ t("update:inputValue", $);
299
+ }
300
+ }), m = b(() => e.customEventRightButton ? e.rightIconName : e.inputType === "password" ? "eye" : "x"), B = b(() => ({
301
+ [z.inputError]: e.error,
302
+ [z.inputDisabled]: e.disabled && !e.customEventRightButton,
303
+ [z.inputDisabledCustomEvents]: e.disabled && e.customEventRightButton,
304
+ [z.inputFocus]: d.value && !e.disabled,
305
+ [z.inputMedium]: e.sizeType === "medium",
306
+ [z.inputLarge]: e.sizeType === "large",
307
+ [z.inputFill]: e.colorType === "fill" && !d.value || e.disabled,
308
+ [z.inputOutline]: e.colorType === "outline" && !d.value || e.disabled
309
+ })), w = b(() => ({
310
+ [z.inputHint]: !e.error,
311
+ [z.inputHintError]: e.error
312
+ })), F = b(() => ({
313
+ [z.inputLabel]: !0,
314
+ [z.inputLabelDisabled]: e.disabled
315
+ })), G = () => {
316
+ t("update:inputValue", "");
317
+ }, I = () => {
318
+ c.value = c.value === "password" ? "text" : "password";
319
+ }, S = () => {
320
+ e.customEventRightButton ? t("onClickRightButton") : e.inputType === "password" ? I() : G();
321
+ }, O = () => {
322
+ var $;
323
+ t("resetError"), d.value = !0, ($ = l.value) == null || $.focus();
324
+ }, H = () => {
325
+ t("focusOut"), d.value = !1;
326
+ }, N = ge();
327
+ return ($, P) => (i(), _("div", {
328
+ class: a(o(z).container)
329
+ }, [
330
+ o(N).label ? (i(), _("p", {
331
+ key: 0,
332
+ class: a([o(F), "input__label"])
333
+ }, [
334
+ h($.$slots, "label")
335
+ ], 2)) : x("", !0),
336
+ p("div", {
337
+ class: a(["input__wrapper", [o(B), o(z).input]]),
338
+ tabindex: "0",
339
+ onFocusin: O,
340
+ onFocusout: H
341
+ }, [
342
+ e.iconName ? (i(), V(C, {
343
+ key: 0,
344
+ class: a(o(z).shrink0),
345
+ "color-type": e.disabled ? "secondary" : "main",
346
+ "icon-name": e.iconName
347
+ }, null, 8, ["class", "color-type", "icon-name"])) : x("", !0),
348
+ Q(p("input", {
349
+ tabindex: e.tabIndex,
350
+ ref_key: "inputRef",
351
+ ref: l,
352
+ style: { "pointer-events": "all" },
353
+ "onUpdate:modelValue": P[0] || (P[0] = (ne) => ye(r) ? r.value = ne : null),
354
+ disabled: e.disabled,
355
+ name: e.inputName,
356
+ placeholder: e.placeholder,
357
+ type: c.value
358
+ }, null, 8, Qt), [
359
+ [we, o(r)]
360
+ ]),
361
+ Q(p("button", {
362
+ class: a(o(z).shrink0),
363
+ onClick: S
364
+ }, [
365
+ U(C, {
366
+ "color-type": "tertiary",
367
+ "icon-name": o(m)
368
+ }, null, 8, ["icon-name"])
369
+ ], 2), [
370
+ [ie, e.customEventRightButton && o(r).length !== 0]
371
+ ]),
372
+ Q(p("button", {
373
+ class: a(o(z).shrink0),
374
+ onClick: S
375
+ }, [
376
+ U(C, {
377
+ "color-type": "tertiary",
378
+ "icon-name": o(m)
379
+ }, null, 8, ["icon-name"])
380
+ ], 2), [
381
+ [ie, !e.customEventRightButton && o(r).length !== 0 && !e.disabled]
382
+ ]),
383
+ o(s).display ? (i(), V(C, {
384
+ key: 1,
385
+ class: a(o(z).shrink0),
386
+ "color-type": o(s).colorType,
387
+ "icon-name": o(s).icon
388
+ }, null, 8, ["class", "color-type", "icon-name"])) : x("", !0)
389
+ ], 34),
390
+ o(N).hint ? (i(), _("p", {
391
+ key: 1,
392
+ class: a([o(w), "input__hint"])
393
+ }, [
394
+ h($.$slots, "hint")
395
+ ], 2)) : x("", !0)
396
+ ], 2));
397
+ }
398
+ }), eo = "_getblock_ui_chips_1r1p1_2", to = "dark", oo = "_getblock_ui_chipsLarge_1r1p1_9", no = "_getblock_ui_chipsMedium_1r1p1_13", lo = "_getblock_ui_chipsSmall_1r1p1_17", co = "_getblock_ui_chipsNotSelectedSimple_1r1p1_24", io = "_getblock_ui_chipsSelectedSimple_1r1p1_29", ao = "_getblock_ui_chipsNotSelectedLighten_1r1p1_38", so = "_getblock_ui_chipsSelectedLighten_1r1p1_43", Z = {
399
+ chips: eo,
400
+ dark: to,
401
+ chipsLarge: oo,
402
+ chipsMedium: no,
403
+ chipsSmall: lo,
404
+ chipsNotSelectedSimple: co,
405
+ chipsSelectedSimple: io,
406
+ chipsNotSelectedLighten: ao,
407
+ chipsSelectedLighten: so
408
+ }, gc = /* @__PURE__ */ L({
409
+ __name: "Chips",
410
+ props: {
411
+ selected: {
412
+ type: Boolean,
413
+ default: !1
414
+ },
415
+ sizeType: {
416
+ type: String,
417
+ default: "large",
418
+ validator: (n) => ["large", "medium", "small"].indexOf(n) >= 0
419
+ },
420
+ colorType: {
421
+ type: String,
422
+ default: "simple",
423
+ validator: (n) => ["simple", "lighten"].indexOf(n) >= 0
424
+ }
425
+ },
426
+ emits: ["changeSelected"],
427
+ setup(n, { emit: t }) {
428
+ const e = n, s = b(() => ({
429
+ [Z.chipsLarge]: e.sizeType === "large",
430
+ [Z.chipsMedium]: e.sizeType === "medium",
431
+ [Z.chipsSmall]: e.sizeType === "small",
432
+ [Z.chipsSelectedSimple]: e.selected && e.colorType === "simple",
433
+ [Z.chipsNotSelectedSimple]: !e.selected && e.colorType === "simple",
434
+ [Z.chipsSelectedLighten]: e.selected && e.colorType === "lighten",
435
+ [Z.chipsNotSelectedLighten]: !e.selected && e.colorType === "lighten"
436
+ })), l = () => {
437
+ t("changeSelected", !e.selected);
438
+ };
439
+ return (d, c) => (i(), _("button", {
440
+ class: a([o(s), o(Z).chips]),
441
+ onClick: l
442
+ }, [
443
+ h(d.$slots, "left-icon"),
444
+ h(d.$slots, "default"),
445
+ h(d.$slots, "right-icon")
446
+ ], 2));
447
+ }
448
+ }), ro = "_getblock_ui_listItem_1jdl3_1", uo = "_getblock_ui_listItemSelected_1jdl3_6", _o = "dark", po = "_getblock_ui_listItemNotSelected_1jdl3_13", bo = "_getblock_ui_text_1jdl3_20", ue = {
449
+ listItem: ro,
450
+ listItemSelected: uo,
451
+ dark: _o,
452
+ listItemNotSelected: po,
453
+ text: bo
454
+ }, mc = /* @__PURE__ */ L({
455
+ __name: "ListItem",
456
+ props: {
457
+ selected: {
458
+ type: Boolean,
459
+ default: !1
460
+ }
461
+ },
462
+ emits: ["changeSelected"],
463
+ setup(n, { emit: t }) {
464
+ const e = n, s = b(() => ({
465
+ [ue.listItemSelected]: e.selected,
466
+ [ue.listItemNotSelected]: !e.selected
467
+ })), l = () => {
468
+ t("changeSelected", !e.selected);
469
+ };
470
+ return (d, c) => (i(), _("button", {
471
+ class: a([o(s), o(ue).listItem]),
472
+ onClick: l
473
+ }, [
474
+ h(d.$slots, "left-icon"),
475
+ p("div", {
476
+ class: a(o(ue).text)
477
+ }, [
478
+ h(d.$slots, "default")
479
+ ], 2),
480
+ h(d.$slots, "right-icon")
481
+ ], 2));
482
+ }
483
+ }), go = "_getblock_ui_dropdown_3s0v7_2", mo = "dark", ko = "_getblock_ui_dropdownFocused_3s0v7_6", vo = "_getblock_ui_dropdownWrapper_3s0v7_11", ho = "_getblock_ui_dropdownFiltersWrapper_3s0v7_17", yo = "_getblock_ui_dropdownItemsListWrapper_3s0v7_21", fo = "_getblock_ui_dropdownList_3s0v7_25", To = "_getblock_ui_scrollTrack_3s0v7_33", xo = "_getblock_ui_scrollTrackWithFilters_3s0v7_42", So = "_getblock_ui_scrollBar_3s0v7_51", Bo = "_getblock_ui_dropdownListItem_3s0v7_73", wo = "_getblock_ui_dropdownListItemText_3s0v7_77", Lo = "_getblock_ui_dropdownListSelectedItemText_3s0v7_81", Io = "_getblock_ui_dropdownNotFoundListItem_3s0v7_85", Do = "_getblock_ui_dropdownNotFoundListItemText_3s0v7_89", Co = "_getblock_ui_dropdownSmall_3s0v7_95", $o = "_getblock_ui_dropdownMedium_3s0v7_99", zo = "_getblock_ui_dropdownLarge_3s0v7_103", Oo = "_getblock_ui_dropdownFill_3s0v7_109", Ho = "_getblock_ui_dropdownFillDisabled_3s0v7_114", Ao = "_getblock_ui_dropdownOutline_3s0v7_122", No = "_getblock_ui_dropdownOutlineDisabled_3s0v7_127", Mo = "_getblock_ui_dropdownError_3s0v7_135", Eo = "_getblock_ui_hoveredChevron_3s0v7_142", Fo = "_getblock_ui_rotateChevron_3s0v7_150", Ro = "_getblock_ui_search_3s0v7_156", Vo = "_getblock_ui_placeholder_3s0v7_162", jo = "_getblock_ui_placeholderWithoutText_3s0v7_166", v = {
484
+ dropdown: go,
485
+ dark: mo,
486
+ dropdownFocused: ko,
487
+ dropdownWrapper: vo,
488
+ dropdownFiltersWrapper: ho,
489
+ dropdownItemsListWrapper: yo,
490
+ dropdownList: fo,
491
+ scrollTrack: To,
492
+ scrollTrackWithFilters: xo,
493
+ scrollBar: So,
494
+ dropdownListItem: Bo,
495
+ dropdownListItemText: wo,
496
+ dropdownListSelectedItemText: Lo,
497
+ dropdownNotFoundListItem: Io,
498
+ dropdownNotFoundListItemText: Do,
499
+ dropdownSmall: Co,
500
+ dropdownMedium: $o,
501
+ dropdownLarge: zo,
502
+ dropdownFill: Oo,
503
+ dropdownFillDisabled: Ho,
504
+ dropdownOutline: Ao,
505
+ dropdownOutlineDisabled: No,
506
+ dropdownError: Mo,
507
+ hoveredChevron: Eo,
508
+ rotateChevron: Fo,
509
+ search: Ro,
510
+ placeholder: Vo,
511
+ placeholderWithoutText: jo
512
+ }, Wo = ["tabindex", "placeholder", "value"], Go = ["onClick", "onMouseenter"], Uo = { class: "flex gap-2 items-center" }, kc = /* @__PURE__ */ L({
513
+ __name: "Dropdown",
514
+ props: {
515
+ colorType: {
516
+ type: String,
517
+ default: "fill",
518
+ validator: (n) => ["fill", "outline"].indexOf(n) >= 0
519
+ },
520
+ colorTypeIcon: {
521
+ type: String,
522
+ default: "main",
523
+ validator: (n) => [
524
+ "none",
525
+ "main",
526
+ "secondary",
527
+ "tertiary",
528
+ "disable",
529
+ "action",
530
+ "tint-blue",
531
+ "attention",
532
+ "alert",
533
+ "success",
534
+ "color-bg",
535
+ "light-bg",
536
+ "default",
537
+ "accent-hover",
538
+ "tint-hover",
539
+ "attention-hover",
540
+ "error-hover"
541
+ ].indexOf(n) >= 0
542
+ },
543
+ disabled: {
544
+ type: Boolean,
545
+ default: !1
546
+ },
547
+ droplistResizable: {
548
+ type: Boolean,
549
+ default: !1
550
+ },
551
+ error: {
552
+ type: Boolean,
553
+ default: !1
554
+ },
555
+ isIconAlwaysSeen: {
556
+ type: Boolean,
557
+ default: !1
558
+ },
559
+ isNeededToFocus: {
560
+ type: Boolean,
561
+ default: !1
562
+ },
563
+ isWithSearch: {
564
+ type: Boolean,
565
+ default: !1
566
+ },
567
+ items: {
568
+ type: Array,
569
+ default: () => []
570
+ },
571
+ placeholder: {
572
+ type: Object,
573
+ default: () => ({
574
+ iconName: "",
575
+ value: "Default value",
576
+ text: "Default text"
577
+ })
578
+ },
579
+ selectedItem: {
580
+ type: Object,
581
+ default: () => ({})
582
+ },
583
+ sizeType: {
584
+ type: String,
585
+ default: "large",
586
+ validator: (n) => ["large", "medium", "small"].indexOf(n) >= 0
587
+ },
588
+ tabIndex: {
589
+ type: Number,
590
+ default: 0
591
+ }
592
+ },
593
+ emits: ["selectItem", "resetError"],
594
+ setup(n, { emit: t }) {
595
+ const e = n, s = ge(), l = g(!1), d = g(null), c = g(-1), r = g(null), m = g(null), B = g(null), w = g(!1), F = (u) => {
596
+ const k = r.value, f = m.value, R = B.value, j = k.scrollTop / (k.scrollHeight - k.clientHeight);
597
+ R.style.transform = `translateY(${j * (f.clientHeight - 50)}px)`;
598
+ }, G = (u) => {
599
+ const k = u.clientY, f = r.value.scrollTop, R = B.value.offsetHeight, j = m.value.offsetHeight;
600
+ w.value = !0;
601
+ const M = (re) => {
602
+ const Be = (re.clientY - k) / (j - R) * (r.value.scrollHeight - r.value.clientHeight);
603
+ r.value.scrollTop = f + Be;
604
+ }, q = () => {
605
+ document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", q), w.value = !1;
606
+ };
607
+ document.addEventListener("mousemove", M), document.addEventListener("mouseup", q);
608
+ }, I = (u) => {
609
+ const k = m.value, f = r.value, R = u.clientY - k.getBoundingClientRect().top, j = k.clientHeight, M = f.scrollHeight - f.clientHeight;
610
+ f.scrollTop = R / j * M;
611
+ };
612
+ fe(() => {
613
+ var u;
614
+ (u = r.value) == null || u.addEventListener("scroll", F);
615
+ });
616
+ const S = g(""), O = (u) => {
617
+ S.value = u.target.value;
618
+ }, H = b(() => e.isWithSearch ? e.items.filter(
619
+ (u) => u.value.toLowerCase().includes(S.value.toLowerCase()) || u.text.toLowerCase().includes(S.value.toLowerCase())
620
+ ) : e.items), N = b(() => ({
621
+ [v.dropdownSmall]: e.sizeType === "small",
622
+ [v.dropdownMedium]: e.sizeType === "medium",
623
+ [v.dropdownLarge]: e.sizeType === "large",
624
+ [v.dropdownFill]: e.colorType === "fill" && !l.value,
625
+ [v.dropdownOutline]: e.colorType === "outline" && !l.value,
626
+ [v.dropdownFillDisabled]: e.colorType === "fill" && e.disabled,
627
+ [v.dropdownOutlineDisabled]: e.colorType === "outline" && e.disabled,
628
+ [v.dropdownFocused]: l.value,
629
+ [v.dropdownError]: e.error
630
+ })), $ = b(() => ({
631
+ "w-max": e.droplistResizable
632
+ })), P = (u) => {
633
+ S.value = u.value, t("selectItem", u), c.value = -1, se();
634
+ }, ne = b(() => e.disabled || !l.value ? "tertiary" : "main");
635
+ console.log("1111");
636
+ const ae = () => {
637
+ var u, k;
638
+ w.value || (t("resetError"), l.value || ((u = d.value) == null || u.removeAttribute("readonly"), l.value = !0, S.value = "", c.value = -1, (k = d.value) == null || k.focus()));
639
+ }, se = () => {
640
+ var u;
641
+ l.value = !1, c.value = -1, (u = d.value) == null || u.setAttribute("readonly", "true");
642
+ }, me = (u) => {
643
+ u.key === "Enter" ? (u.preventDefault(), l.value && c.value >= 0 && c.value < H.value.length ? P(H.value[c.value]) : l.value || (l.value = !0)) : u.key === "ArrowDown" ? (u.preventDefault(), l.value ? c.value < H.value.length - 1 && (c.value++, D()) : (l.value = !0, c.value = 0)) : u.key === "ArrowUp" && (u.preventDefault(), l.value && c.value > 0 && (c.value--, D()));
644
+ }, D = () => {
645
+ if (r.value && c.value >= 0) {
646
+ const k = r.value.children[c.value];
647
+ k && k.scrollIntoView({ block: "nearest", behavior: "smooth" });
648
+ }
649
+ };
650
+ return ve(
651
+ () => e.isNeededToFocus,
652
+ () => {
653
+ e.isNeededToFocus && ae();
654
+ }
655
+ ), (u, k) => {
656
+ var R, j;
657
+ const f = Te("click-outside");
658
+ return Q((i(), _("div", {
659
+ tabindex: "0",
660
+ class: a([o(N), o(v).dropdown]),
661
+ onClick: ae,
662
+ onKeydown: me
663
+ }, [
664
+ ((R = e.selectedItem) == null ? void 0 : R.iconName) && !l.value ? (i(), V(C, {
665
+ key: 0,
666
+ "color-type": "default",
667
+ "size-type": "medium",
668
+ "icon-name": e.selectedItem.iconName
669
+ }, null, 8, ["icon-name"])) : ((j = e.selectedItem) == null ? void 0 : j.iconName) && n.isIconAlwaysSeen && l.value && !n.isWithSearch ? (i(), V(C, {
670
+ key: 1,
671
+ "color-type": "default",
672
+ "size-type": "medium",
673
+ "icon-name": e.selectedItem.iconName
674
+ }, null, 8, ["icon-name"])) : h(u.$slots, "left-icon", { key: 2 }),
675
+ n.isWithSearch ? (i(), _(W, { key: 3 }, [
676
+ p("input", {
677
+ tabindex: e.tabIndex,
678
+ ref_key: "dropdownInput",
679
+ ref: d,
680
+ readonly: "",
681
+ class: a(o(v).search),
682
+ placeholder: e.placeholder.value,
683
+ value: l.value ? S.value : e.selectedItem.text,
684
+ onInput: O
685
+ }, null, 42, Wo),
686
+ l.value ? x("", !0) : h(u.$slots, "selected-right", { key: 0 })
687
+ ], 64)) : (i(), _(W, { key: 4 }, [
688
+ p("p", {
689
+ class: a(["dropdown-placeholder", [o(v).placeholder, e.selectedItem.text ? "" : o(v).placeholderWithoutText]])
690
+ }, A(e.selectedItem.text ? e.selectedItem.text : e.placeholder.text), 3),
691
+ h(u.$slots, "selected-right")
692
+ ], 64)),
693
+ Q(p("div", {
694
+ class: a([o(v).dropdownWrapper, o($)])
695
+ }, [
696
+ o(H).length > 0 && o(s).filters ? (i(), _("div", {
697
+ key: 0,
698
+ class: a([o(v).dropdownFiltersWrapper])
699
+ }, [
700
+ h(u.$slots, "filters")
701
+ ], 2)) : x("", !0),
702
+ Q(p("div", {
703
+ class: a([o(v).dropdownItemsListWrapper])
704
+ }, [
705
+ o(H).length > 0 ? (i(), _(W, { key: 0 }, [
706
+ p("div", {
707
+ class: a([o(v).dropdownList, { "w-[97%]": o(H).length > 4 }]),
708
+ ref_key: "dropdownContent",
709
+ ref: r
710
+ }, [
711
+ (i(!0), _(W, null, oe(o(H), (M, q) => (i(), _("div", {
712
+ key: `${M.value}_${q}`,
713
+ class: a(["flex items-center justify-between dropdown-item", [o(v).dropdownListItem, { "bg-gray-100": c.value === q }]]),
714
+ onClick: be((re) => P(M), ["stop"]),
715
+ onMouseenter: (re) => c.value = q
716
+ }, [
717
+ p("div", Uo, [
718
+ M.iconName ? (i(), V(C, {
719
+ key: 0,
720
+ "size-type": "medium",
721
+ "color-type": n.colorTypeIcon,
722
+ "icon-name": M.iconName
723
+ }, null, 8, ["color-type", "icon-name"])) : x("", !0),
724
+ p("p", {
725
+ class: a([
726
+ o(v).dropdownListItemText,
727
+ M.value === e.selectedItem.value ? o(v).dropdownListSelectedItemText : ""
728
+ ])
729
+ }, A(M.text), 3)
730
+ ]),
731
+ h(u.$slots, "right", {
732
+ item: M,
733
+ index: q
734
+ })
735
+ ], 42, Go))), 128))
736
+ ], 2),
737
+ o(H).length > 4 ? (i(), _("div", {
738
+ key: 0,
739
+ class: a(o(s).filters ? o(v).scrollTrackWithFilters : o(v).scrollTrack),
740
+ ref_key: "scrollBar",
741
+ ref: m,
742
+ onClick: I
743
+ }, [
744
+ p("div", {
745
+ class: a(o(v).scrollBar),
746
+ ref_key: "thumb",
747
+ ref: B,
748
+ onMousedown: G
749
+ }, null, 34)
750
+ ], 2)) : x("", !0)
751
+ ], 64)) : (i(), _("div", {
752
+ key: 1,
753
+ class: a(o(v).dropdownNotFoundListItem),
754
+ onClick: k[0] || (k[0] = be(() => {
755
+ }, ["stop"]))
756
+ }, [
757
+ p("p", {
758
+ class: a(o(v).dropdownNotFoundListItemText)
759
+ }, "No results", 2)
760
+ ], 2))
761
+ ], 2), [
762
+ [ie, l.value]
763
+ ])
764
+ ], 2), [
765
+ [ie, l.value]
766
+ ]),
767
+ U(C, {
768
+ class: a(["transition", [e.disabled ? "" : o(v).hoveredChevron, l.value ? o(v).rotateChevron : ""]]),
769
+ "icon-name": "chevron-down",
770
+ "size-type": "medium",
771
+ "color-type": o(ne)
772
+ }, null, 8, ["class", "color-type"])
773
+ ], 34)), [
774
+ [f, se]
775
+ ]);
776
+ };
777
+ }
778
+ }), Po = "_getblock_ui_lineTabSelected_17xia_9", Yo = "dark", qo = "_getblock_ui_lineTabNotSelected_17xia_14", Xo = "_getblock_ui_lineTabMedium_17xia_22", Ko = "_getblock_ui_lineTabLarge_17xia_26", Jo = "_getblock_ui_lineTabLargeSelected_17xia_30", Qo = "_getblock_ui_lineDefault_17xia_37", Zo = "_getblock_ui_lineSelected_17xia_41", en = "_getblock_ui_lineNotSelected_17xia_45", X = {
779
+ default: "_getblock_ui_default_17xia_2",
780
+ lineTabSelected: Po,
781
+ dark: Yo,
782
+ lineTabNotSelected: qo,
783
+ lineTabMedium: Xo,
784
+ lineTabLarge: Ko,
785
+ lineTabLargeSelected: Jo,
786
+ lineDefault: Qo,
787
+ lineSelected: Zo,
788
+ lineNotSelected: en
789
+ }, vc = /* @__PURE__ */ L({
790
+ __name: "LineTab",
791
+ props: {
792
+ selected: {
793
+ type: Boolean,
794
+ default: !1
795
+ },
796
+ sizeType: {
797
+ type: String,
798
+ default: "medium"
799
+ }
800
+ },
801
+ emits: ["changeSelected"],
802
+ setup(n, { emit: t }) {
803
+ const e = n, s = b(() => ({
804
+ [X.default]: !0,
805
+ [X.lineTabMedium]: e.sizeType === "medium",
806
+ [X.lineTabLarge]: e.sizeType === "large" && !e.selected,
807
+ [X.lineTabSelected]: e.selected,
808
+ [X.lineTabNotSelected]: !e.selected,
809
+ [X.lineTabLargeSelected]: e.selected && e.sizeType === "large"
810
+ })), l = b(() => ({
811
+ [X.lineDefault]: !0,
812
+ [X.lineSelected]: e.selected,
813
+ [X.lineNotSelected]: !e.selected
814
+ })), d = () => {
815
+ t("changeSelected", !e.selected);
816
+ };
817
+ return (c, r) => (i(), _("button", {
818
+ class: a(["", o(s)]),
819
+ onClick: d
820
+ }, [
821
+ h(c.$slots, "default"),
822
+ p("div", {
823
+ class: a([o(l)])
824
+ }, null, 2)
825
+ ], 2));
826
+ }
827
+ }), tn = "_getblock_ui_badges_13bz5_2", on = "_getblock_ui_badgesAdditional_13bz5_9", nn = "dark", ln = "_getblock_ui_badgesSuccess_13bz5_14", cn = "_getblock_ui_badgesTint_13bz5_19", an = "_getblock_ui_badgesViolet_13bz5_24", sn = "_getblock_ui_badgesAttention_13bz5_29", rn = "_getblock_ui_badgesError_13bz5_34", un = "_getblock_ui_badgesSpecial_13bz5_39", dn = "_getblock_ui_badgesAccent_13bz5_45", _n = "_getblock_ui_badgesPrimary_13bz5_50", Y = {
828
+ badges: tn,
829
+ badgesAdditional: on,
830
+ dark: nn,
831
+ badgesSuccess: ln,
832
+ badgesTint: cn,
833
+ badgesViolet: an,
834
+ badgesAttention: sn,
835
+ badgesError: rn,
836
+ badgesSpecial: un,
837
+ badgesAccent: dn,
838
+ badgesPrimary: _n
839
+ }, hc = /* @__PURE__ */ L({
840
+ __name: "Badges",
841
+ props: {
842
+ colorType: {
843
+ type: String,
844
+ default: "additional",
845
+ validator: (n) => ["additional", "tint-base", "violet", "attention", "error", "special", "accent", "primary", "success"].indexOf(n) >= 0
846
+ }
847
+ },
848
+ setup(n) {
849
+ const t = n, e = b(() => ({
850
+ [Y.badgesAdditional]: t.colorType === "additional",
851
+ [Y.badgesTint]: t.colorType === "tint-base",
852
+ [Y.badgesViolet]: t.colorType === "violet",
853
+ [Y.badgesAttention]: t.colorType === "attention",
854
+ [Y.badgesError]: t.colorType === "error",
855
+ [Y.badgesSpecial]: t.colorType === "special",
856
+ [Y.badgesAccent]: t.colorType === "accent",
857
+ [Y.badgesPrimary]: t.colorType === "primary",
858
+ [Y.badgesSuccess]: t.colorType === "success"
859
+ }));
860
+ return (s, l) => (i(), _("div", {
861
+ class: a([o(e), o(Y).badges])
862
+ }, [
863
+ h(s.$slots, "default")
864
+ ], 2));
865
+ }
866
+ }), pn = "_getblock_ui_droplist_z2elx_2", bn = "dark", gn = "_getblock_ui_item_z2elx_8", mn = "_getblock_ui_itemAlert_z2elx_16", kn = "_getblock_ui_itemMain_z2elx_20", vn = "_getblock_ui_divider_z2elx_27", le = {
867
+ droplist: pn,
868
+ dark: bn,
869
+ item: gn,
870
+ itemAlert: mn,
871
+ itemMain: kn,
872
+ divider: vn
873
+ }, hn = "_getblock_ui_checkbox_8mm7t_2", yn = "dark", fn = "_getblock_ui_isRounded_8mm7t_11", Tn = "_getblock_ui_isOpener_8mm7t_16", xn = "_getblock_ui_checkboxActive_8mm7t_26", Sn = "_getblock_ui_checkboxDisabled_8mm7t_31", Bn = "_getblock_ui_checkboxCheckedDisabled_8mm7t_35", wn = "_getblock_ui_isMasterDisabled_8mm7t_41", Ln = "_getblock_ui_iconFilter_8mm7t_47", ee = {
874
+ checkbox: hn,
875
+ dark: yn,
876
+ isRounded: fn,
877
+ isOpener: Tn,
878
+ checkboxActive: xn,
879
+ checkboxDisabled: Sn,
880
+ checkboxCheckedDisabled: Bn,
881
+ isMasterDisabled: wn,
882
+ iconFilter: Ln
883
+ }, In = ["id", "checked", "disabled", "value"], ke = /* @__PURE__ */ L({
884
+ __name: "Checkbox",
885
+ props: {
886
+ isMaster: {
887
+ type: Boolean,
888
+ default: !1
889
+ },
890
+ isRounded: {
891
+ type: Boolean,
892
+ default: !1
893
+ },
894
+ checked: {
895
+ type: Boolean,
896
+ default: !1
897
+ },
898
+ disabled: {
899
+ type: Boolean,
900
+ default: !1
901
+ },
902
+ allChecked: {
903
+ type: Boolean,
904
+ default: !1
905
+ },
906
+ id: {
907
+ type: String,
908
+ default: ""
909
+ },
910
+ value: {
911
+ type: String,
912
+ default: ""
913
+ }
914
+ },
915
+ emits: ["change"],
916
+ setup(n, { emit: t }) {
917
+ const e = n, s = {
918
+ id: e.id,
919
+ checked: e.checked
920
+ }, l = () => {
921
+ t("change", s);
922
+ }, d = b(() => e.isMaster ? e.allChecked ? "check_v1" : "minus" : e.checked ? "check_v1" : "minus"), c = b(() => ({
923
+ [ee.iconFilter]: !e.checked && !e.isMaster
924
+ })), r = b(() => ({
925
+ [ee.checkbox]: !e.isMaster,
926
+ [ee.checkboxActive]: e.checked && !e.isMaster,
927
+ [ee.checkboxDisabled]: !e.checked && e.disabled && !e.isMaster,
928
+ [ee.checkboxCheckedDisabled]: e.checked && e.disabled && !e.isMaster,
929
+ [ee.isOpener]: e.isMaster,
930
+ [ee.isMasterDisabled]: e.isMaster && e.disabled,
931
+ [ee.isRounded]: e.isRounded
932
+ }));
933
+ return (m, B) => (i(), _("label", {
934
+ class: a(o(r))
935
+ }, [
936
+ p("input", {
937
+ type: "checkbox",
938
+ id: e.id,
939
+ checked: e.checked,
940
+ disabled: e.disabled,
941
+ value: e.value,
942
+ onChange: l
943
+ }, null, 40, In),
944
+ U(C, {
945
+ "icon-name": o(d),
946
+ class: a(o(c)),
947
+ "color-type": "color-bg",
948
+ "size-type": "xs"
949
+ }, null, 8, ["icon-name", "class"])
950
+ ], 2));
951
+ }
952
+ }), Dn = ["onClick"], yc = /* @__PURE__ */ L({
953
+ __name: "Droplist",
954
+ props: {
955
+ items: {
956
+ type: Array,
957
+ default: () => []
958
+ },
959
+ showDroplist: {
960
+ type: Boolean,
961
+ default: !1
962
+ },
963
+ isCheckboxes: {
964
+ type: Boolean,
965
+ default: !1
966
+ }
967
+ },
968
+ emits: ["selectItem", "hideDroplist"],
969
+ setup(n, { emit: t }) {
970
+ const e = n, s = (d) => ({
971
+ [le.itemAlert]: d === "alert",
972
+ [le.itemMain]: !0
973
+ }), l = (d) => {
974
+ t("selectItem", d), t("hideDroplist");
975
+ };
976
+ return (d, c) => n.showDroplist ? (i(), _("div", {
977
+ key: 0,
978
+ class: a([o(le).droplist])
979
+ }, [
980
+ (i(!0), _(W, null, oe(e.items, (r) => (i(), _(W, {
981
+ key: r.value
982
+ }, [
983
+ p("div", {
984
+ class: a(["droplist-item", o(le).item]),
985
+ onClick: be((m) => l(r.action), ["stop"])
986
+ }, [
987
+ r.imgName && !e.isCheckboxes ? (i(), V(C, {
988
+ key: 0,
989
+ "color-type": r.color === "main" || !r.color ? "secondary" : r.color,
990
+ "icon-name": r.imgName
991
+ }, null, 8, ["color-type", "icon-name"])) : x("", !0),
992
+ e.isCheckboxes ? (i(), V(ke, {
993
+ key: 1,
994
+ checked: r.checked,
995
+ "is-rounded": !0
996
+ }, null, 8, ["checked"])) : x("", !0),
997
+ p("p", {
998
+ class: a(s(r.color))
999
+ }, A(r.value), 3)
1000
+ ], 10, Dn),
1001
+ r.divider ? (i(), _("div", {
1002
+ key: 0,
1003
+ class: a(["divider-line", o(le).divider]),
1004
+ style: { width: "calc(100% - 24px)" }
1005
+ }, null, 2)) : x("", !0)
1006
+ ], 64))), 128))
1007
+ ], 2)) : x("", !0);
1008
+ }
1009
+ }), Cn = "_getblock_ui_tag_14ma3_1", $n = "dark", zn = "_getblock_ui_tagSmall_14ma3_8", On = "_getblock_ui_tagMedium_14ma3_11", Hn = "_getblock_ui_tagDisabled_14ma3_17", de = {
1010
+ tag: Cn,
1011
+ dark: $n,
1012
+ tagSmall: zn,
1013
+ tagMedium: On,
1014
+ tagDisabled: Hn
1015
+ }, An = ["disabled"], fc = /* @__PURE__ */ L({
1016
+ __name: "Tag",
1017
+ props: {
1018
+ sizeType: {
1019
+ type: String,
1020
+ default: "small",
1021
+ validator: (n) => ["medium", "small"].indexOf(n) >= 0
1022
+ },
1023
+ disabled: {
1024
+ type: Boolean,
1025
+ default: !1
1026
+ }
1027
+ },
1028
+ emits: ["deleteTag"],
1029
+ setup(n, { emit: t }) {
1030
+ const e = n, s = b(() => ({
1031
+ [de.tagMedium]: e.sizeType === "medium",
1032
+ [de.tagSmall]: e.sizeType === "small",
1033
+ [de.tagDisabled]: e.disabled
1034
+ })), l = g(!1), d = () => {
1035
+ t("deleteTag");
1036
+ };
1037
+ return (c, r) => (i(), _("button", {
1038
+ class: a([o(de).tag, o(s)]),
1039
+ disabled: e.disabled
1040
+ }, [
1041
+ h(c.$slots, "default"),
1042
+ U(C, {
1043
+ "color-type": l.value ? "main" : "tertiary",
1044
+ "size-type": "small",
1045
+ "icon-name": "x-close",
1046
+ onClick: d,
1047
+ onMouseover: r[0] || (r[0] = (m) => l.value = !0),
1048
+ onMouseout: r[1] || (r[1] = (m) => l.value = !1)
1049
+ }, null, 8, ["color-type"])
1050
+ ], 10, An));
1051
+ }
1052
+ }), Nn = "_getblock_ui_breadcrumbsContainer_jx4hc_1", Mn = "_getblock_ui_breadcrumb_jx4hc_1", En = "dark", Fn = "_getblock_ui_lastBreadcrumb_jx4hc_13", Rn = "_getblock_ui_notLastBreadcrumb_jx4hc_17", _e = {
1053
+ breadcrumbsContainer: Nn,
1054
+ breadcrumb: Mn,
1055
+ dark: En,
1056
+ lastBreadcrumb: Fn,
1057
+ notLastBreadcrumb: Rn
1058
+ }, Vn = ["href"], jn = { key: 1 }, Tc = /* @__PURE__ */ L({
1059
+ __name: "Breadcrumbs",
1060
+ props: {
1061
+ items: {
1062
+ type: Object,
1063
+ default: () => []
1064
+ }
1065
+ },
1066
+ setup(n) {
1067
+ return (t, e) => (i(), _("div", {
1068
+ class: a(o(_e).breadcrumbsContainer)
1069
+ }, [
1070
+ (i(!0), _(W, null, oe(n.items, (s, l) => (i(), _("div", {
1071
+ class: a([
1072
+ o(_e).breadcrumb,
1073
+ l === n.items.length - 1 ? o(_e).lastBreadcrumb : o(_e).notLastBreadcrumb
1074
+ ]),
1075
+ key: s.text
1076
+ }, [
1077
+ s.link ? (i(), _("a", {
1078
+ key: 0,
1079
+ href: s.link
1080
+ }, A(s.text), 9, Vn)) : (i(), _("p", jn, A(s.text), 1)),
1081
+ l !== n.items.length - 1 ? (i(), V(C, {
1082
+ key: 2,
1083
+ "icon-name": "chevron-right",
1084
+ "color-type": "disable"
1085
+ })) : x("", !0)
1086
+ ], 2))), 128))
1087
+ ], 2));
1088
+ }
1089
+ }), xc = /* @__PURE__ */ L({
1090
+ __name: "Tooltip",
1091
+ props: {
1092
+ horizontalPosition: {
1093
+ type: String,
1094
+ default: "center"
1095
+ },
1096
+ verticalPosition: {
1097
+ type: String,
1098
+ default: "top"
1099
+ }
1100
+ },
1101
+ setup(n) {
1102
+ const t = n, e = g(null), s = g(null), l = g(!1), d = g(!1), c = g({ top: "0px", left: "0px" }), r = async () => {
1103
+ l.value = !0, await De();
1104
+ const I = e.value, S = s.value, O = I.getBoundingClientRect(), H = 8, N = t.verticalPosition === "top" ? O.top - S.offsetHeight - H : O.bottom + H, $ = O.left + O.width / 2, P = t.horizontalPosition === "left" ? $ - S.offsetWidth : t.horizontalPosition === "right" ? $ : $ - S.offsetWidth / 2;
1105
+ c.value = {
1106
+ top: `${N}px`,
1107
+ left: `${P}px`
1108
+ };
1109
+ }, m = () => {
1110
+ setTimeout(() => {
1111
+ d.value || (l.value = !1);
1112
+ }, 100);
1113
+ }, B = () => {
1114
+ d.value = !0, r();
1115
+ }, w = () => {
1116
+ d.value = !1, m();
1117
+ }, F = () => {
1118
+ d.value = !0;
1119
+ }, G = () => {
1120
+ d.value = !1, m();
1121
+ };
1122
+ return Le(() => {
1123
+ l.value = !1;
1124
+ }), (I, S) => (i(), _("div", {
1125
+ ref_key: "triggerRef",
1126
+ ref: e,
1127
+ class: "cursor-help relative z-[5] w-fit",
1128
+ onMouseenter: B,
1129
+ onMouseleave: w
1130
+ }, [
1131
+ h(I.$slots, "tooltip-component"),
1132
+ (i(), V(Ie, { to: "body" }, [
1133
+ l.value ? (i(), _("div", {
1134
+ key: 0,
1135
+ ref_key: "tooltipRef",
1136
+ ref: s,
1137
+ class: "z-50 fixed tooltip-shadow bg-surface-base dark:bg-surface-dark-base text-xs leading-5 text-text-main dark:text-text-dark-main py-3 px-3 rounded-lg",
1138
+ style: xe(c.value),
1139
+ onMouseenter: F,
1140
+ onMouseleave: G
1141
+ }, [
1142
+ h(I.$slots, "tooltip-body")
1143
+ ], 36)) : x("", !0)
1144
+ ]))
1145
+ ], 544));
1146
+ }
1147
+ });
1148
+ const Wn = "_getblock_ui_textarea_1k8rw_2", Gn = "dark", Un = "_getblock_ui_textareaResizeButton_1k8rw_13", Pn = "_getblock_ui_textareaFocus_1k8rw_17", Yn = "_getblock_ui_container_1k8rw_26", qn = "_getblock_ui_labelContainer_1k8rw_32", Xn = "_getblock_ui_labelText_1k8rw_36", Kn = "_getblock_ui_input_1k8rw_42", Jn = "_getblock_ui_textareaFill_1k8rw_48", Qn = "_getblock_ui_textareaOutline_1k8rw_58", Zn = "_getblock_ui_textareaDisabled_1k8rw_67", el = "_getblock_ui_textareaLabelDisabled_1k8rw_74", tl = "_getblock_ui_textareaError_1k8rw_80", ol = "_getblock_ui_textareaHintError_1k8rw_84", nl = "_getblock_ui_textareaHint_1k8rw_84", ll = "_getblock_ui_textareaLabel_1k8rw_74", E = {
1149
+ textarea: Wn,
1150
+ dark: Gn,
1151
+ textareaResizeButton: Un,
1152
+ textareaFocus: Pn,
1153
+ container: Yn,
1154
+ labelContainer: qn,
1155
+ labelText: Xn,
1156
+ input: Kn,
1157
+ textareaFill: Jn,
1158
+ textareaOutline: Qn,
1159
+ textareaDisabled: Zn,
1160
+ textareaLabelDisabled: el,
1161
+ textareaError: tl,
1162
+ textareaHintError: ol,
1163
+ textareaHint: nl,
1164
+ textareaLabel: ll
1165
+ }, cl = ["disabled", "maxlength", "name", "placeholder"], Sc = /* @__PURE__ */ L({
1166
+ __name: "TextArea",
1167
+ props: {
1168
+ disabled: {
1169
+ type: Boolean,
1170
+ default: !1
1171
+ },
1172
+ error: {
1173
+ type: Boolean,
1174
+ default: !1
1175
+ },
1176
+ placeholder: {
1177
+ type: String,
1178
+ default: ""
1179
+ },
1180
+ inputName: {
1181
+ type: String,
1182
+ required: !0
1183
+ },
1184
+ inputValue: {
1185
+ type: String,
1186
+ required: !0
1187
+ },
1188
+ colorType: {
1189
+ type: String,
1190
+ default: "fill",
1191
+ validator: (n) => ["fill", "outline"].indexOf(n) >= 0
1192
+ }
1193
+ },
1194
+ emits: ["update:inputValue", "resetError"],
1195
+ setup(n, { emit: t }) {
1196
+ const e = n, s = g(null), l = g(!1), d = g(300), c = b({
1197
+ get() {
1198
+ return e.inputValue;
1199
+ },
1200
+ set(I) {
1201
+ t("update:inputValue", I);
1202
+ }
1203
+ }), r = b(() => ({
1204
+ [E.textareaError]: e.error,
1205
+ [E.textareaDisabled]: e.disabled,
1206
+ [E.textareaFocus]: l.value,
1207
+ [E.textareaFill]: e.colorType === "fill" && !l.value,
1208
+ [E.textareaOutline]: e.colorType === "outline" && !l.value
1209
+ })), m = b(() => ({
1210
+ [E.textareaHint]: !e.error,
1211
+ [E.textareaHintError]: e.error
1212
+ })), B = b(() => ({
1213
+ [E.textareaLabel]: !0,
1214
+ [E.textareaLabelDisabled]: e.disabled
1215
+ })), w = () => {
1216
+ var I;
1217
+ t("resetError"), l.value = !0, (I = s.value) == null || I.focus();
1218
+ }, F = () => {
1219
+ l.value = !1;
1220
+ }, G = ge();
1221
+ return (I, S) => (i(), _("div", {
1222
+ class: a(o(E).container)
1223
+ }, [
1224
+ o(G).label ? (i(), _("div", {
1225
+ key: 0,
1226
+ class: a(o(E).labelContainer)
1227
+ }, [
1228
+ p("p", {
1229
+ class: a(o(B))
1230
+ }, [
1231
+ h(I.$slots, "label")
1232
+ ], 2),
1233
+ p("p", {
1234
+ class: a(o(E).labelText)
1235
+ }, A(o(c).length) + "/" + A(d.value), 3)
1236
+ ], 2)) : x("", !0),
1237
+ p("div", {
1238
+ tabindex: "0",
1239
+ class: a([o(r), o(E).textarea]),
1240
+ onFocusin: w,
1241
+ onFocusout: F
1242
+ }, [
1243
+ Q(p("textarea", {
1244
+ ref_key: "inputRef",
1245
+ ref: s,
1246
+ "onUpdate:modelValue": S[0] || (S[0] = (O) => ye(c) ? c.value = O : null),
1247
+ class: a(o(E).input),
1248
+ disabled: e.disabled,
1249
+ maxlength: d.value,
1250
+ name: e.inputName,
1251
+ placeholder: e.placeholder
1252
+ }, null, 10, cl), [
1253
+ [Ce, o(c)]
1254
+ ]),
1255
+ p("div", {
1256
+ class: a(o(E).textareaResizeButton)
1257
+ }, [
1258
+ U(C, {
1259
+ "color-type": "secondary",
1260
+ "icon-name": "scale-04",
1261
+ "size-type": "large"
1262
+ })
1263
+ ], 2)
1264
+ ], 34),
1265
+ o(G).hint ? (i(), _("p", {
1266
+ key: 1,
1267
+ class: a(o(m))
1268
+ }, [
1269
+ h(I.$slots, "hint")
1270
+ ], 2)) : x("", !0)
1271
+ ], 2));
1272
+ }
1273
+ }), il = "_getblock_ui_toggle_1ykvb_1", al = "dark", sl = "_getblock_ui_toggleActive_1ykvb_19", rl = "_getblock_ui_toggleNotSelectedDisabled_1ykvb_24", ul = "_getblock_ui_toggleSelectedDisabled_1ykvb_28", pe = {
1274
+ toggle: il,
1275
+ dark: al,
1276
+ toggleActive: sl,
1277
+ toggleNotSelectedDisabled: rl,
1278
+ toggleSelectedDisabled: ul
1279
+ }, dl = ["disabled", "checked"], _l = /* @__PURE__ */ p("span", null, null, -1), Bc = /* @__PURE__ */ L({
1280
+ __name: "Toggle",
1281
+ props: {
1282
+ disabled: {
1283
+ type: Boolean,
1284
+ default: !1
1285
+ },
1286
+ selected: {
1287
+ type: Boolean,
1288
+ default: !1
1289
+ }
1290
+ },
1291
+ emits: ["changeSelected"],
1292
+ setup(n, { emit: t }) {
1293
+ const e = n, s = b(() => ({
1294
+ [pe.toggle]: !0,
1295
+ [pe.toggleActive]: e.selected,
1296
+ [pe.toggleSelectedDisabled]: e.selected && e.disabled,
1297
+ [pe.toggleNotSelectedDisabled]: !e.selected && e.disabled
1298
+ })), l = () => t("changeSelected");
1299
+ return (d, c) => (i(), _("label", {
1300
+ class: a(o(s))
1301
+ }, [
1302
+ p("input", {
1303
+ type: "checkbox",
1304
+ disabled: e.disabled,
1305
+ checked: n.selected,
1306
+ onChange: l
1307
+ }, null, 40, dl),
1308
+ _l
1309
+ ], 2));
1310
+ }
1311
+ }), pl = "_getblock_ui_radioButton_rj1c2_1", bl = "dark", gl = "_getblock_ui_radioButtonActive_rj1c2_17", ml = "_getblock_ui_radioButtonDisabled_rj1c2_22", kl = "_getblock_ui_radioButtonCheckedDisabled_rj1c2_26", vl = "_getblock_ui_iconFilter_rj1c2_32", ce = {
1312
+ radioButton: pl,
1313
+ dark: bl,
1314
+ radioButtonActive: gl,
1315
+ radioButtonDisabled: ml,
1316
+ radioButtonCheckedDisabled: kl,
1317
+ iconFilter: vl
1318
+ }, hl = ["checked", "disabled", "value"], yl = { key: 0 }, wc = /* @__PURE__ */ L({
1319
+ __name: "RadioButton",
1320
+ props: {
1321
+ disabled: {
1322
+ type: Boolean,
1323
+ default: !1
1324
+ },
1325
+ inputValue: {
1326
+ type: String,
1327
+ default: ""
1328
+ },
1329
+ modelValue: {
1330
+ type: String,
1331
+ default: ""
1332
+ },
1333
+ checkRadio: {
1334
+ type: Boolean,
1335
+ default: !1
1336
+ }
1337
+ },
1338
+ emits: ["update:modelValue"],
1339
+ setup(n, { emit: t }) {
1340
+ const e = n, s = (r) => {
1341
+ t("update:modelValue", r.target.value);
1342
+ }, l = b(() => e.modelValue === e.inputValue), d = b(() => ({
1343
+ [ce.iconFilter]: e.modelValue !== e.inputValue
1344
+ })), c = b(() => ({
1345
+ [ce.radioButton]: !0,
1346
+ [ce.radioButtonActive]: e.modelValue === e.inputValue,
1347
+ [ce.radioButtonDisabled]: e.modelValue !== e.inputValue && e.disabled,
1348
+ [ce.radioButtonCheckedDisabled]: e.modelValue === e.inputValue && e.disabled
1349
+ }));
1350
+ return (r, m) => (i(), _("label", {
1351
+ class: a(o(c))
1352
+ }, [
1353
+ p("input", {
1354
+ type: "radio",
1355
+ checked: o(l),
1356
+ disabled: e.disabled,
1357
+ value: n.inputValue,
1358
+ onChange: s
1359
+ }, null, 40, hl),
1360
+ n.checkRadio ? (i(), V(C, {
1361
+ key: 1,
1362
+ "icon-name": "check",
1363
+ "color-type": "color-bg",
1364
+ "size-type": "xs",
1365
+ class: a(o(d))
1366
+ }, null, 8, ["class"])) : (i(), _("span", yl))
1367
+ ], 2));
1368
+ }
1369
+ }), fl = "_getblock_ui_tabBarContainer_12dgf_2", Tl = "dark", xl = "_getblock_ui_tabBarItem_12dgf_7", Sl = "_getblock_ui_tabBarItemStretched_12dgf_11", Bl = "_getblock_ui_tabBarSelected_12dgf_17", wl = "_getblock_ui_tabBarNotSelected_12dgf_29", Ll = "_getblock_ui_tabBarSelectedDisabled_12dgf_41", Il = "_getblock_ui_tabBarNotSelectedDisabled_12dgf_42", te = {
1370
+ tabBarContainer: fl,
1371
+ dark: Tl,
1372
+ tabBarItem: xl,
1373
+ tabBarItemStretched: Sl,
1374
+ tabBarSelected: Bl,
1375
+ tabBarNotSelected: wl,
1376
+ tabBarSelectedDisabled: Ll,
1377
+ tabBarNotSelectedDisabled: Il
1378
+ }, Dl = ["onClick"], Cl = { class: "ml-[6px]" }, Lc = /* @__PURE__ */ L({
1379
+ __name: "TabBar",
1380
+ props: {
1381
+ selectedItem: {
1382
+ type: Object,
1383
+ required: !0
1384
+ },
1385
+ stretched: {
1386
+ type: Boolean,
1387
+ default: !1
1388
+ },
1389
+ tabItems: {
1390
+ type: Object,
1391
+ required: !0
1392
+ },
1393
+ iconsAndText: {
1394
+ type: Boolean,
1395
+ default: !1
1396
+ }
1397
+ },
1398
+ emits: ["changeSelectedItem"],
1399
+ setup(n, { emit: t }) {
1400
+ const e = n, s = (l) => {
1401
+ l.value !== e.selectedItem.value && t("changeSelectedItem", l);
1402
+ };
1403
+ return (l, d) => (i(), _("div", {
1404
+ class: a([o(te).tabBarContainer, e.stretched ? "w-full" : "max-w-max"])
1405
+ }, [
1406
+ (i(!0), _(W, null, oe(n.tabItems, (c) => (i(), _("div", {
1407
+ key: c.value,
1408
+ class: a([
1409
+ o(te).tabBarItem,
1410
+ e.selectedItem.value === c.value ? o(te).tabBarSelected : o(te).tabBarNotSelected,
1411
+ { [o(te).tabBarSelectedDisabled]: e.selectedItem.value === c.value && c.disabled },
1412
+ { [o(te).tabBarNotSelectedDisabled]: e.selectedItem.value !== c.value && c.disabled },
1413
+ { [o(te).tabBarItemStretched]: e.stretched }
1414
+ ]),
1415
+ onClick: (r) => s(c)
1416
+ }, [
1417
+ !c.iconName && !n.iconsAndText ? (i(), _(W, { key: 0 }, [
1418
+ $e(A(c.text), 1)
1419
+ ], 64)) : c.iconName && !n.iconsAndText ? (i(), V(C, {
1420
+ key: 1,
1421
+ "icon-name": c.iconName
1422
+ }, null, 8, ["icon-name"])) : x("", !0),
1423
+ c.iconName && n.iconsAndText ? (i(), _(W, { key: 2 }, [
1424
+ U(C, {
1425
+ "icon-name": c.iconName
1426
+ }, null, 8, ["icon-name"]),
1427
+ p("span", Cl, A(c.text), 1)
1428
+ ], 64)) : x("", !0),
1429
+ h(l.$slots, c.value)
1430
+ ], 10, Dl))), 128))
1431
+ ], 2));
1432
+ }
1433
+ }), $l = "_getblock_ui_notification_1y7zz_1", zl = "_getblock_ui_notificationLow_1y7zz_6", Ol = "dark", Hl = "_getblock_ui_notificationHigh_1y7zz_11", Al = "_getblock_ui_notificationAttention_1y7zz_16", Nl = "_getblock_ui_notificationError_1y7zz_21", Ml = "_getblock_ui_textBlock_1y7zz_26", El = "_getblock_ui_title_1y7zz_30", Fl = "_getblock_ui_button_1y7zz_34", K = {
1434
+ notification: $l,
1435
+ notificationLow: zl,
1436
+ dark: Ol,
1437
+ notificationHigh: Hl,
1438
+ notificationAttention: Al,
1439
+ notificationError: Nl,
1440
+ textBlock: Ml,
1441
+ title: El,
1442
+ button: Fl
1443
+ }, Ic = /* @__PURE__ */ L({
1444
+ __name: "Notification",
1445
+ props: {
1446
+ mainType: {
1447
+ type: String,
1448
+ default: "low",
1449
+ validator: (n) => ["low", "high", "attention", "error"].indexOf(n) >= 0
1450
+ },
1451
+ infoIcon: {
1452
+ type: Boolean,
1453
+ default: !1
1454
+ },
1455
+ infoIconName: {
1456
+ type: String,
1457
+ default: "info-circle"
1458
+ },
1459
+ closeIcon: {
1460
+ type: Boolean,
1461
+ default: !0
1462
+ },
1463
+ isWithCloseIcon: {
1464
+ type: Boolean,
1465
+ default: !0
1466
+ }
1467
+ },
1468
+ emits: ["deleteNotification"],
1469
+ setup(n, { emit: t }) {
1470
+ const e = n, s = {
1471
+ low: "tint",
1472
+ high: "accent",
1473
+ attention: "attention",
1474
+ error: "tint"
1475
+ }, l = {
1476
+ low: "tint-blue",
1477
+ high: "color-bg",
1478
+ attention: "attention",
1479
+ error: "alert"
1480
+ }, d = {
1481
+ low: "accent-hover",
1482
+ high: "tint-hover",
1483
+ attention: "attention-hover",
1484
+ error: "error-hover"
1485
+ }, c = g(!1), r = () => {
1486
+ t("deleteNotification");
1487
+ }, m = b(() => ({
1488
+ [K.notificationLow]: e.mainType === "low",
1489
+ [K.notificationHigh]: e.mainType === "high",
1490
+ [K.notificationAttention]: e.mainType === "attention",
1491
+ [K.notificationError]: e.mainType === "error"
1492
+ })), B = b(() => l[e.mainType]), w = b(() => c.value ? d[e.mainType] : l[e.mainType]), F = b(() => s[e.mainType]), G = b(() => e.mainType === "error" ? "destructive" : "base"), I = ge();
1493
+ return (S, O) => (i(), _("div", {
1494
+ class: a([o(m), o(K).notification])
1495
+ }, [
1496
+ e.infoIcon ? (i(), V(C, {
1497
+ key: 0,
1498
+ "color-type": o(B),
1499
+ "icon-name": e.infoIconName
1500
+ }, null, 8, ["color-type", "icon-name"])) : x("", !0),
1501
+ p("div", {
1502
+ class: a(o(K).textBlock)
1503
+ }, [
1504
+ o(I).title ? (i(), _("p", {
1505
+ key: 0,
1506
+ class: a(o(K).title)
1507
+ }, [
1508
+ h(S.$slots, "title")
1509
+ ], 2)) : x("", !0),
1510
+ p("p", null, [
1511
+ h(S.$slots, "default")
1512
+ ])
1513
+ ], 2),
1514
+ e.isWithCloseIcon && e.closeIcon ? (i(), V(C, {
1515
+ key: 1,
1516
+ "icon-name": "x-close",
1517
+ class: a(o(K).button),
1518
+ "color-type": o(w),
1519
+ onClick: r,
1520
+ onMouseout: O[0] || (O[0] = (H) => c.value = !1),
1521
+ onMouseover: O[1] || (O[1] = (H) => c.value = !0)
1522
+ }, null, 8, ["class", "color-type"])) : x("", !0),
1523
+ e.isWithCloseIcon && !e.closeIcon ? (i(), V(rt, {
1524
+ key: 2,
1525
+ "size-type": "small",
1526
+ class: a(o(K).button),
1527
+ "color-type": o(F),
1528
+ "main-type": o(G),
1529
+ onClick: r
1530
+ }, {
1531
+ default: ze(() => [
1532
+ h(S.$slots, "button-slot")
1533
+ ]),
1534
+ _: 3
1535
+ }, 8, ["class", "color-type", "main-type"])) : x("", !0)
1536
+ ], 2));
1537
+ }
1538
+ }), Rl = "_getblock_ui_customLoader_1pxz6_2", Vl = "_getblock_ui_spin_1pxz6_1", jl = "_getblock_ui_customHelper_first_1pxz6_6", Wl = "_getblock_ui_customHelper_second_1pxz6_14", Gl = "_getblock_ui_customLoaderAccent_1pxz6_24", Ul = "dark", Pl = "_getblock_ui_customLoaderAccentHelper_1pxz6_29", Yl = "_getblock_ui_customLoaderTint_1pxz6_34", ql = "_getblock_ui_customLoaderTintHelper_1pxz6_39", Xl = "_getblock_ui_customLoaderOutline_1pxz6_44", Kl = "_getblock_ui_customLoaderOutlineHelper_1pxz6_49", J = {
1539
+ customLoader: Rl,
1540
+ spin: Vl,
1541
+ customHelper_first: jl,
1542
+ customHelper_second: Wl,
1543
+ customLoaderAccent: Gl,
1544
+ dark: Ul,
1545
+ customLoaderAccentHelper: Pl,
1546
+ customLoaderTint: Yl,
1547
+ customLoaderTintHelper: ql,
1548
+ customLoaderOutline: Xl,
1549
+ customLoaderOutlineHelper: Kl
1550
+ }, Dc = /* @__PURE__ */ L({
1551
+ __name: "CustomLoader",
1552
+ props: {
1553
+ colorType: {
1554
+ type: String,
1555
+ default: "accent",
1556
+ validator: (n) => ["accent", "tint", "outline"].indexOf(n) >= 0
1557
+ }
1558
+ },
1559
+ setup(n) {
1560
+ const t = n, e = b(() => ({
1561
+ [J.customLoaderAccent]: t.colorType === "accent",
1562
+ [J.customLoaderTint]: t.colorType === "tint",
1563
+ [J.customLoaderOutline]: t.colorType === "outline"
1564
+ })), s = b(() => ({
1565
+ [J.customLoaderAccentHelper]: t.colorType === "accent",
1566
+ [J.customLoaderTintHelper]: t.colorType === "tint",
1567
+ [J.customLoaderOutlineHelper]: t.colorType === "outline"
1568
+ }));
1569
+ return (l, d) => (i(), _("div", {
1570
+ class: a([o(e), o(J).customLoader])
1571
+ }, [
1572
+ p("div", {
1573
+ class: a([o(J).customHelper_first, o(s)])
1574
+ }, null, 2),
1575
+ p("div", {
1576
+ class: a([o(J).customHelper_second, o(s)])
1577
+ }, null, 2)
1578
+ ], 2));
1579
+ }
1580
+ }), Jl = "_getblock_ui_rotateChevron_1li6h_1", Ql = {
1581
+ rotateChevron: Jl
1582
+ }, Zl = { class: "relative" }, ec = { class: "text-sm font-medium text-text-main dark:text-text-dark-main truncate" }, tc = {
1583
+ key: 0,
1584
+ class: "ml-auto text-sm font-medium text-text-secondary dark:text-text-dark-secondary uppercase"
1585
+ }, oc = { class: "flex gap-3 p-3 items-center" }, nc = { class: "text-sm font-medium text-text-main dark:text-text-dark-main" }, lc = /* @__PURE__ */ L({
1586
+ __name: "Dropdown",
1587
+ props: {
1588
+ items: {
1589
+ type: Array,
1590
+ default: () => []
1591
+ },
1592
+ placeholder: {
1593
+ type: String,
1594
+ default: ""
1595
+ },
1596
+ locale: {
1597
+ type: String,
1598
+ default: "en"
1599
+ },
1600
+ updateSignal: {
1601
+ type: Boolean,
1602
+ default: !1
1603
+ }
1604
+ },
1605
+ setup(n, { expose: t }) {
1606
+ const e = n, s = {
1607
+ en: {
1608
+ button: "Clear",
1609
+ other: "Other",
1610
+ inputPlaceholder: "Search"
1611
+ },
1612
+ cn: {
1613
+ button: "\u6E05\u9664",
1614
+ other: "\u5176\u4ED6",
1615
+ inputPlaceholder: "\u641C\u7D22"
1616
+ }
1617
+ }, l = g(!1), d = g(""), c = g(!1), r = g([]), m = g(!1), B = g(null), w = b(() => l.value ? "main" : "tertiary"), F = b(() => e.items.filter(
1618
+ (D) => D.value.toLowerCase().includes(d.value.toLowerCase()) || D.generalText.toLowerCase().includes(d.value.toLowerCase()) || D.additionalText.toLowerCase().includes(d.value.toLowerCase())
1619
+ )), G = (D) => {
1620
+ c.value && (c.value = !1, r.value = []);
1621
+ for (const u of F.value)
1622
+ if (u.value === D.id) {
1623
+ u.checked = !u.checked, u.checked ? r.value.push(u.generalText) : r.value = r.value.filter((k) => k !== u.generalText);
1624
+ break;
1625
+ }
1626
+ }, I = () => {
1627
+ r.value = [], e.items.map((D) => {
1628
+ D.checked && (D.checked = !1);
1629
+ }), c.value && (c.value = !1);
1630
+ }, S = () => {
1631
+ I(), c.value = !c.value, r.value.push(
1632
+ s[e.locale].other[0].toUpperCase() + s[e.locale].other.slice(1, s[e.locale].other.length)
1633
+ );
1634
+ }, O = () => {
1635
+ l.value = !l.value;
1636
+ }, H = () => {
1637
+ m.value || (l.value = !1);
1638
+ };
1639
+ t({
1640
+ selectedItems: r
1641
+ }), ve(
1642
+ () => e.updateSignal,
1643
+ () => {
1644
+ l.value || (m.value = !0, B.value = setTimeout(() => {
1645
+ m.value = !1;
1646
+ }, 0), l.value = !0);
1647
+ }
1648
+ ), Oe(() => {
1649
+ B.value && clearTimeout(B.value);
1650
+ });
1651
+ const N = g(null), $ = g(null), P = g(null), ne = g(!1), ae = (D) => {
1652
+ const u = N.value, k = $.value, f = P.value, R = u.scrollTop / (u.scrollHeight - u.clientHeight);
1653
+ f.style.transform = `translateY(${R * (k.clientHeight - 40)}px)`;
1654
+ }, se = (D) => {
1655
+ const u = D.clientY, k = N.value.scrollTop, f = P.value.offsetHeight, R = $.value.offsetHeight;
1656
+ ne.value = !0;
1657
+ const j = (q) => {
1658
+ const he = (q.clientY - u) / (R - f) * (N.value.scrollHeight - N.value.clientHeight);
1659
+ N.value.scrollTop = k + he;
1660
+ }, M = () => {
1661
+ document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", M), ne.value = !1;
1662
+ };
1663
+ document.addEventListener("mousemove", j), document.addEventListener("mouseup", M);
1664
+ }, me = (D) => {
1665
+ const u = $.value, k = N.value, f = D.clientY - u.getBoundingClientRect().top, R = u.clientHeight, j = k.scrollHeight - k.clientHeight;
1666
+ k.scrollTop = f / R * j;
1667
+ };
1668
+ return fe(() => {
1669
+ var D;
1670
+ (D = N.value) == null || D.addEventListener("scroll", ae);
1671
+ }), (D, u) => {
1672
+ const k = Te("click-outside");
1673
+ return Q((i(), _("div", {
1674
+ tabindex: "0",
1675
+ onClick: O,
1676
+ class: a([
1677
+ l.value ? "border-border-focus dark:border-border-dark-focus" : "border-surface-additional dark:border-surface-dark-additional dark:hover:border-border-dark-focus hover:border-border-focus",
1678
+ "flex items-center gap-3 px-4 py-3 w-full rounded-16 border-2 cursor-pointer relative"
1679
+ ])
1680
+ }, [
1681
+ U(C, {
1682
+ "color-type": "main",
1683
+ "size-type": "medium",
1684
+ "icon-name": "cube-01"
1685
+ }),
1686
+ p("span", {
1687
+ id: "generalSpan",
1688
+ class: a([
1689
+ "font-medium leading-5 truncate",
1690
+ r.value.length === 0 ? "text-text-secondary dark:text-text-dark-secondary" : "text-text-main dark:text-text-dark-main"
1691
+ ])
1692
+ }, A(r.value.length === 0 ? n.placeholder : r.value.join(",")), 3),
1693
+ Q(p("div", {
1694
+ onClick: u[1] || (u[1] = be(() => {
1695
+ }, ["stop"])),
1696
+ class: "flex flex-col gap-2 p-1.5 w-full absolute left-0 right-0 test rounded-16 bg-bg-base dark:bg-bg-dark-base cursor-default"
1697
+ }, [
1698
+ U(Zt, {
1699
+ "input-value": d.value,
1700
+ "onUpdate:inputValue": u[0] || (u[0] = (f) => d.value = f),
1701
+ placeholder: s[e.locale].inputPlaceholder,
1702
+ "icon-name": "search-md",
1703
+ "right-icon-name": "x-close",
1704
+ "size-type": "medium",
1705
+ "input-name": "search"
1706
+ }, null, 8, ["input-value", "placeholder"]),
1707
+ p("div", Zl, [
1708
+ p("div", {
1709
+ class: "overflow-auto max-h-[120px] content",
1710
+ ref_key: "dropdownContent",
1711
+ ref: N
1712
+ }, [
1713
+ (i(!0), _(W, null, oe(o(F), (f) => (i(), _("div", {
1714
+ key: f.value,
1715
+ class: a(["flex gap-3 p-3 items-center", { "pr-6": o(F).length >= 2 }])
1716
+ }, [
1717
+ U(ke, {
1718
+ checked: f.checked,
1719
+ id: f.value,
1720
+ value: f.value,
1721
+ onChange: G
1722
+ }, null, 8, ["checked", "id", "value"]),
1723
+ p("span", ec, A(f.generalText), 1),
1724
+ f.additionalText ? (i(), _("span", tc, A(f.additionalText), 1)) : x("", !0)
1725
+ ], 2))), 128)),
1726
+ p("div", oc, [
1727
+ U(ke, {
1728
+ checked: c.value,
1729
+ id: "other",
1730
+ value: "other",
1731
+ onChange: S
1732
+ }, null, 8, ["checked"]),
1733
+ p("span", nc, A(s[e.locale].other), 1)
1734
+ ])
1735
+ ], 512),
1736
+ o(F).length >= 2 ? (i(), _("div", {
1737
+ key: 0,
1738
+ class: "absolute right-1 top-0 h-full w-[10px]",
1739
+ ref_key: "scrollBar",
1740
+ ref: $,
1741
+ onClick: me
1742
+ }, [
1743
+ p("div", {
1744
+ class: "bg-[#cecece] w-[5px] h-[30px] rounded-[50px] cursor-pointer",
1745
+ ref_key: "thumb",
1746
+ ref: P,
1747
+ onMousedown: se
1748
+ }, null, 544)
1749
+ ], 512)) : x("", !0)
1750
+ ])
1751
+ ], 512), [
1752
+ [ie, l.value]
1753
+ ]),
1754
+ U(C, {
1755
+ class: a(["transition ml-auto", [l.value ? o(Ql).rotateChevron : ""]]),
1756
+ "icon-name": "chevron-down",
1757
+ "size-type": "medium",
1758
+ "color-type": o(w)
1759
+ }, null, 8, ["class", "color-type"])
1760
+ ], 2)), [
1761
+ [k, H]
1762
+ ]);
1763
+ };
1764
+ }
1765
+ });
1766
+ const Se = (n, t) => {
1767
+ const e = n.__vccOpts || n;
1768
+ for (const [s, l] of t)
1769
+ e[s] = l;
1770
+ return e;
1771
+ }, Cc = /* @__PURE__ */ Se(lc, [["__scopeId", "data-v-cf207b61"]]), cc = { class: "slider-container" }, ic = { class: "flex justify-between items-center w-full" }, ac = { class: "slider-label gb-text-text-main" }, sc = { class: "slider-wrapper" }, rc = { class: "relative w-full max-h-[28px]" }, uc = ["max", "value"], dc = { class: "slider-dots" }, _c = { class: "slider-marks" }, pc = /* @__PURE__ */ L({
1772
+ __name: "Range",
1773
+ props: {
1774
+ marks: null,
1775
+ values: null,
1776
+ value: null,
1777
+ color: { default: "blue" },
1778
+ label: { default: "" }
1779
+ },
1780
+ emits: ["update:value"],
1781
+ setup(n, { emit: t }) {
1782
+ const e = n;
1783
+ He((m) => ({
1784
+ "9be73400": o(d)
1785
+ }));
1786
+ const s = g(1), l = b(() => typeof document < "u" ? document.getElementsByTagName("html")[0].classList.contains("dark") : !1), d = b(() => {
1787
+ if (l.value) {
1788
+ if (e.color === "dark")
1789
+ return "#85858c";
1790
+ if (e.color === "blue")
1791
+ return "#3385FF";
1792
+ } else {
1793
+ if (e.color === "dark")
1794
+ return "#1E1E1F";
1795
+ if (e.color === "blue")
1796
+ return "#2772F5";
1797
+ }
1798
+ return "#2772F5";
1799
+ }), c = b(
1800
+ () => e.values[s.value] >= 1e6 ? new Intl.NumberFormat("en", { notation: "compact" }).format(e.values[s.value]) : e.values[s.value]
1801
+ );
1802
+ ve(
1803
+ () => e.value,
1804
+ (m) => {
1805
+ const B = e.values.findIndex((w) => w === m);
1806
+ s.value = B !== -1 ? B : 0;
1807
+ },
1808
+ { immediate: !0 }
1809
+ );
1810
+ const r = (m) => {
1811
+ const B = m.target;
1812
+ t("update:value", e.values[Number(B.value)]);
1813
+ };
1814
+ return (m, B) => (i(), _("div", cc, [
1815
+ p("div", ic, [
1816
+ p("p", ac, A(n.label), 1),
1817
+ p("p", {
1818
+ class: "font-bold",
1819
+ style: xe({ color: o(d) })
1820
+ }, A(o(c)), 5)
1821
+ ]),
1822
+ p("div", sc, [
1823
+ p("div", rc, [
1824
+ p("input", {
1825
+ type: "range",
1826
+ min: 0,
1827
+ max: n.values.length - 1,
1828
+ step: "1",
1829
+ value: s.value,
1830
+ class: "slider",
1831
+ onInput: r
1832
+ }, null, 40, uc),
1833
+ p("div", dc, [
1834
+ (i(!0), _(W, null, oe(n.marks, (w) => (i(), _("div", {
1835
+ key: w,
1836
+ class: a(["dot", [{ "!bg-[#DEDFE0]": n.value < Number(w) }]])
1837
+ }, null, 2))), 128))
1838
+ ])
1839
+ ]),
1840
+ p("div", _c, [
1841
+ (i(!0), _(W, null, oe(n.marks, (w) => (i(), _("span", {
1842
+ key: w,
1843
+ class: "slider-mark"
1844
+ }, A(w), 1))), 128))
1845
+ ])
1846
+ ])
1847
+ ]));
1848
+ }
1849
+ });
1850
+ const $c = /* @__PURE__ */ Se(pc, [["__scopeId", "data-v-3f4a2f2f"]]);
1851
+ export {
1852
+ hc as GetBlockUIBadge,
1853
+ Tc as GetBlockUIBreadcrumbs,
1854
+ rt as GetBlockUIButton,
1855
+ gc as GetBlockUIChips,
1856
+ kc as GetBlockUIDropdown,
1857
+ yc as GetBlockUIDroplist,
1858
+ C as GetBlockUIIcon,
1859
+ Zt as GetBlockUIInput,
1860
+ vc as GetBlockUILineTab,
1861
+ mc as GetBlockUIListItem,
1862
+ Dc as GetBlockUILoader,
1863
+ Ic as GetBlockUINotification,
1864
+ wc as GetBlockUIRadioButton,
1865
+ $c as GetBlockUIRange,
1866
+ Lc as GetBlockUITabBar,
1867
+ fc as GetBlockUITag,
1868
+ Sc as GetBlockUITextArea,
1869
+ Bc as GetBlockUIToggle,
1870
+ xc as GetBlockUITooltip,
1871
+ ke as GetBlockUiCheckbox,
1872
+ Cc as GetBlockUiDropdownWithCheckbox
1873
+ };