@neowit/orbit-vue 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/atoms/OBadge/OBadge.vue.d.ts +30 -0
  2. package/dist/atoms/OBadge/OBadge.vue.d.ts.map +1 -0
  3. package/dist/atoms/OBadge/index.d.ts +3 -0
  4. package/dist/atoms/OBadge/index.d.ts.map +1 -0
  5. package/dist/atoms/OButton/OButton.vue.d.ts +53 -0
  6. package/dist/atoms/OButton/OButton.vue.d.ts.map +1 -0
  7. package/dist/atoms/OButton/index.d.ts +3 -0
  8. package/dist/atoms/OButton/index.d.ts.map +1 -0
  9. package/dist/atoms/OCheckbox/OCheckbox.vue.d.ts +18 -0
  10. package/dist/atoms/OCheckbox/OCheckbox.vue.d.ts.map +1 -0
  11. package/dist/atoms/OCheckbox/index.d.ts +3 -0
  12. package/dist/atoms/OCheckbox/index.d.ts.map +1 -0
  13. package/dist/atoms/OFieldLabel/OFieldLabel.vue.d.ts +15 -0
  14. package/dist/atoms/OFieldLabel/OFieldLabel.vue.d.ts.map +1 -0
  15. package/dist/atoms/OFieldLabel/index.d.ts +3 -0
  16. package/dist/atoms/OFieldLabel/index.d.ts.map +1 -0
  17. package/dist/atoms/OFieldWrap/OFieldWrap.vue.d.ts +25 -0
  18. package/dist/atoms/OFieldWrap/OFieldWrap.vue.d.ts.map +1 -0
  19. package/dist/atoms/OFieldWrap/index.d.ts +3 -0
  20. package/dist/atoms/OFieldWrap/index.d.ts.map +1 -0
  21. package/dist/atoms/OHelpText/OHelpText.vue.d.ts +21 -0
  22. package/dist/atoms/OHelpText/OHelpText.vue.d.ts.map +1 -0
  23. package/dist/atoms/OHelpText/index.d.ts +3 -0
  24. package/dist/atoms/OHelpText/index.d.ts.map +1 -0
  25. package/dist/atoms/ORadioButton/ORadioButton.vue.d.ts +17 -0
  26. package/dist/atoms/ORadioButton/ORadioButton.vue.d.ts.map +1 -0
  27. package/dist/atoms/ORadioButton/index.d.ts +3 -0
  28. package/dist/atoms/ORadioButton/index.d.ts.map +1 -0
  29. package/dist/atoms/OStatusIcon/OStatusIcon.vue.d.ts +19 -0
  30. package/dist/atoms/OStatusIcon/OStatusIcon.vue.d.ts.map +1 -0
  31. package/dist/atoms/OStatusIcon/index.d.ts +3 -0
  32. package/dist/atoms/OStatusIcon/index.d.ts.map +1 -0
  33. package/dist/atoms/OSwitch/OSwitch.vue.d.ts +16 -0
  34. package/dist/atoms/OSwitch/OSwitch.vue.d.ts.map +1 -0
  35. package/dist/atoms/OSwitch/index.d.ts +3 -0
  36. package/dist/atoms/OSwitch/index.d.ts.map +1 -0
  37. package/dist/atoms/OText/OText.vue.d.ts +25 -0
  38. package/dist/atoms/OText/OText.vue.d.ts.map +1 -0
  39. package/dist/atoms/OText/index.d.ts +3 -0
  40. package/dist/atoms/OText/index.d.ts.map +1 -0
  41. package/dist/atoms/OTooltip/OTooltip.vue.d.ts +32 -0
  42. package/dist/atoms/OTooltip/OTooltip.vue.d.ts.map +1 -0
  43. package/dist/atoms/OTooltip/index.d.ts +3 -0
  44. package/dist/atoms/OTooltip/index.d.ts.map +1 -0
  45. package/dist/composables/index.d.ts +5 -0
  46. package/dist/composables/index.d.ts.map +1 -0
  47. package/dist/composables/useDialog.d.ts +100 -0
  48. package/dist/composables/useDialog.d.ts.map +1 -0
  49. package/dist/composables/useTheme.d.ts +15 -0
  50. package/dist/composables/useTheme.d.ts.map +1 -0
  51. package/dist/index.d.ts +49 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/molecules/OAlert/OAlert.vue.d.ts +40 -0
  54. package/dist/molecules/OAlert/OAlert.vue.d.ts.map +1 -0
  55. package/dist/molecules/OAlert/index.d.ts +3 -0
  56. package/dist/molecules/OAlert/index.d.ts.map +1 -0
  57. package/dist/molecules/OButtonGroup/OButtonGroup.vue.d.ts +19 -0
  58. package/dist/molecules/OButtonGroup/OButtonGroup.vue.d.ts.map +1 -0
  59. package/dist/molecules/OButtonGroup/index.d.ts +3 -0
  60. package/dist/molecules/OButtonGroup/index.d.ts.map +1 -0
  61. package/dist/molecules/OCheckboxGroup/OCheckboxGroup.vue.d.ts +36 -0
  62. package/dist/molecules/OCheckboxGroup/OCheckboxGroup.vue.d.ts.map +1 -0
  63. package/dist/molecules/OCheckboxGroup/index.d.ts +3 -0
  64. package/dist/molecules/OCheckboxGroup/index.d.ts.map +1 -0
  65. package/dist/molecules/ORadioGroup/ORadioGroup.vue.d.ts +30 -0
  66. package/dist/molecules/ORadioGroup/ORadioGroup.vue.d.ts.map +1 -0
  67. package/dist/molecules/ORadioGroup/index.d.ts +3 -0
  68. package/dist/molecules/ORadioGroup/index.d.ts.map +1 -0
  69. package/dist/molecules/OSelect/OSelect.vue.d.ts +93 -0
  70. package/dist/molecules/OSelect/OSelect.vue.d.ts.map +1 -0
  71. package/dist/molecules/OSelect/index.d.ts +3 -0
  72. package/dist/molecules/OSelect/index.d.ts.map +1 -0
  73. package/dist/molecules/OTextArea/OTextArea.vue.d.ts +36 -0
  74. package/dist/molecules/OTextArea/OTextArea.vue.d.ts.map +1 -0
  75. package/dist/molecules/OTextArea/index.d.ts +3 -0
  76. package/dist/molecules/OTextArea/index.d.ts.map +1 -0
  77. package/dist/molecules/OTextField/OTextField.vue.d.ts +63 -0
  78. package/dist/molecules/OTextField/OTextField.vue.d.ts.map +1 -0
  79. package/dist/molecules/OTextField/index.d.ts +3 -0
  80. package/dist/molecules/OTextField/index.d.ts.map +1 -0
  81. package/dist/orbit.cjs +21 -0
  82. package/dist/orbit.js +4218 -0
  83. package/dist/organisms/OAlertDialog/OAlertDialog.vue.d.ts +64 -0
  84. package/dist/organisms/OAlertDialog/OAlertDialog.vue.d.ts.map +1 -0
  85. package/dist/organisms/OAlertDialog/index.d.ts +3 -0
  86. package/dist/organisms/OAlertDialog/index.d.ts.map +1 -0
  87. package/dist/organisms/ODialog/ODialog.vue.d.ts +96 -0
  88. package/dist/organisms/ODialog/ODialog.vue.d.ts.map +1 -0
  89. package/dist/organisms/ODialog/ODialogProvider.vue.d.ts +3 -0
  90. package/dist/organisms/ODialog/ODialogProvider.vue.d.ts.map +1 -0
  91. package/dist/organisms/ODialog/index.d.ts +4 -0
  92. package/dist/organisms/ODialog/index.d.ts.map +1 -0
  93. package/dist/style.css +1 -0
  94. package/package.json +39 -0
package/dist/orbit.js ADDED
@@ -0,0 +1,4218 @@
1
+ import { defineComponent as Z, computed as k, openBlock as t, createBlock as le, resolveDynamicComponent as hl, normalizeClass as h, withCtx as te, renderSlot as A, createElementBlock as a, createCommentVNode as i, normalizeStyle as Ge, ref as T, withKeys as Tl, createVNode as ve, Transition as fl, createTextVNode as N, toDisplayString as f, createElementVNode as o, watch as we, onMounted as Pe, useSlots as Ol, Fragment as K, unref as ae, withModifiers as $e, nextTick as ie, renderList as pe, onBeforeUnmount as vl, withDirectives as Ze, vModelText as Xe, vShow as sl, Teleport as kl, reactive as Sl, createSlots as Ll, watchEffect as Vl } from "vue";
2
+ const Ml = /* @__PURE__ */ Z({
3
+ __name: "OText",
4
+ props: {
5
+ variant: {},
6
+ as: { default: void 0 },
7
+ weight: { default: void 0 }
8
+ },
9
+ setup(e) {
10
+ const v = e, l = {
11
+ h1: "h1",
12
+ h2: "h2",
13
+ h3: "h3",
14
+ h4: "h4",
15
+ h5: "h5",
16
+ h6: "h6",
17
+ "body-large": "p",
18
+ "body-medium": "p",
19
+ "body-small": "p",
20
+ "body-extra-small": "p",
21
+ "caption-large": "span",
22
+ "caption-small": "span",
23
+ "button-large": "span",
24
+ "button-medium": "span",
25
+ "button-small": "span"
26
+ }, c = k(() => v.as || l[v.variant] || "span");
27
+ return (d, m) => (t(), le(hl(c.value), {
28
+ class: h(["orb-text", `orb-text--${e.variant}`, e.weight ? `orb-text--w-${e.weight}` : ""])
29
+ }, {
30
+ default: te(() => [
31
+ A(d.$slots, "default")
32
+ ]),
33
+ _: 3
34
+ }, 8, ["class"]));
35
+ }
36
+ }), zl = ["aria-label"], Al = {
37
+ key: 0,
38
+ class: "orb-badge__dot"
39
+ }, Fl = /* @__PURE__ */ Z({
40
+ __name: "OBadge",
41
+ props: {
42
+ type: { default: "soft" },
43
+ color: { default: "gray" },
44
+ maxWidth: {},
45
+ iconOnly: { type: Boolean }
46
+ },
47
+ setup(e) {
48
+ return (v, l) => e.type === "dot" ? (t(), a("span", {
49
+ key: 0,
50
+ class: h(["orb-badge", "orb-badge--dot", `orb-badge--${e.color}`]),
51
+ "aria-label": `Status: ${e.color}`
52
+ }, null, 10, zl)) : (t(), a("span", {
53
+ key: 1,
54
+ class: h([
55
+ "orb-badge",
56
+ `orb-badge--${e.type}`,
57
+ `orb-badge--${e.color}`,
58
+ { "orb-badge--icon-only": e.iconOnly }
59
+ ])
60
+ }, [
61
+ e.type === "status" ? (t(), a("span", Al)) : i("", !0),
62
+ e.type === "icon" ? A(v.$slots, "icon", { key: 1 }) : i("", !0),
63
+ e.iconOnly ? i("", !0) : (t(), a("span", {
64
+ key: 2,
65
+ class: "orb-badge__label",
66
+ style: Ge(e.maxWidth ? { maxWidth: e.maxWidth, overflow: "hidden", textOverflow: "ellipsis" } : void 0)
67
+ }, [
68
+ A(v.$slots, "default")
69
+ ], 4))
70
+ ], 2));
71
+ }
72
+ }), Rl = /* @__PURE__ */ Z({
73
+ __name: "OTooltip",
74
+ props: {
75
+ text: {},
76
+ placement: { default: "top" },
77
+ maxWidth: {},
78
+ showDelay: { default: 100 },
79
+ hideDelay: { default: 80 }
80
+ },
81
+ setup(e) {
82
+ const v = e, l = T(!1);
83
+ let c = null, d = null;
84
+ function m() {
85
+ d && (clearTimeout(d), d = null), c = setTimeout(() => {
86
+ l.value = !0;
87
+ }, v.showDelay);
88
+ }
89
+ function u() {
90
+ c && (clearTimeout(c), c = null), d = setTimeout(() => {
91
+ l.value = !1;
92
+ }, v.hideDelay);
93
+ }
94
+ function _() {
95
+ c && (clearTimeout(c), c = null), d && (clearTimeout(d), d = null), l.value = !1;
96
+ }
97
+ return (g, B) => (t(), a("span", {
98
+ class: "orb-tooltip-trigger",
99
+ onMouseenter: m,
100
+ onMouseleave: u,
101
+ onFocusin: m,
102
+ onFocusout: u,
103
+ onKeydown: Tl(_, ["escape"])
104
+ }, [
105
+ A(g.$slots, "default"),
106
+ ve(fl, { name: "orb-tooltip" }, {
107
+ default: te(() => [
108
+ l.value ? (t(), a("span", {
109
+ key: 0,
110
+ role: "tooltip",
111
+ class: h(["orb-tooltip", `orb-tooltip--${e.placement}`]),
112
+ style: Ge(e.maxWidth ? { maxWidth: e.maxWidth, whiteSpace: "normal" } : void 0)
113
+ }, [
114
+ A(g.$slots, "content", {}, () => [
115
+ N(f(e.text), 1)
116
+ ]),
117
+ B[0] || (B[0] = o("span", { class: "orb-tooltip__arrow" }, null, -1))
118
+ ], 6)) : i("", !0)
119
+ ]),
120
+ _: 3
121
+ })
122
+ ], 32));
123
+ }
124
+ }), Dl = ["role"], Re = /* @__PURE__ */ Z({
125
+ __name: "OHelpText",
126
+ props: {
127
+ variant: { default: "neutral" },
128
+ disabled: { type: Boolean, default: !1 }
129
+ },
130
+ setup(e) {
131
+ return (v, l) => (t(), a("span", {
132
+ class: h([
133
+ "orb-help-text",
134
+ `orb-help-text--${e.variant}`,
135
+ { "orb-help-text--disabled": e.disabled && e.variant === "neutral" }
136
+ ]),
137
+ role: e.variant === "negative" ? "alert" : void 0
138
+ }, [
139
+ A(v.$slots, "default")
140
+ ], 10, Dl));
141
+ }
142
+ }), Hl = {
143
+ key: 0,
144
+ class: "orb-field-label"
145
+ }, Il = {
146
+ key: 0,
147
+ class: "orb-field-label__suffix"
148
+ }, Ke = /* @__PURE__ */ Z({
149
+ __name: "OFieldLabel",
150
+ props: {
151
+ label: {},
152
+ required: { type: Boolean, default: !1 },
153
+ optional: { type: Boolean, default: !1 },
154
+ disabled: { type: Boolean, default: !1 },
155
+ charCount: {},
156
+ maxLength: {}
157
+ },
158
+ setup(e) {
159
+ const v = e, l = k(() => v.required ? " (obrigatório)" : v.optional ? " (opcional)" : "");
160
+ return (c, d) => e.label || e.maxLength ? (t(), a("div", Hl, [
161
+ e.label ? (t(), a("label", {
162
+ key: 0,
163
+ class: h(["orb-field-label__text", { "orb-field-label__text--disabled": e.disabled }])
164
+ }, [
165
+ N(f(e.label), 1),
166
+ l.value ? (t(), a("span", Il, f(l.value), 1)) : i("", !0)
167
+ ], 2)) : i("", !0),
168
+ e.maxLength != null ? (t(), a("span", {
169
+ key: 1,
170
+ class: h(["orb-field-label__counter", { "orb-field-label__counter--disabled": e.disabled }])
171
+ }, f(e.charCount ?? 0), 3)) : i("", !0)
172
+ ])) : i("", !0);
173
+ }
174
+ }), Wl = ["checked", "aria-checked", "disabled"], Zl = {
175
+ key: 0,
176
+ class: "orb-checkbox__content"
177
+ }, El = {
178
+ key: 0,
179
+ class: "orb-checkbox__label"
180
+ }, Pl = {
181
+ key: 1,
182
+ class: "orb-checkbox__description"
183
+ }, ql = /* @__PURE__ */ Z({
184
+ __name: "OCheckbox",
185
+ props: {
186
+ modelValue: { type: Boolean, default: !1 },
187
+ indeterminate: { type: Boolean, default: !1 },
188
+ disabled: { type: Boolean, default: !1 },
189
+ label: {},
190
+ description: {}
191
+ },
192
+ emits: ["update:modelValue"],
193
+ setup(e, { emit: v }) {
194
+ const l = e, c = v, d = k(() => l.modelValue), m = T(null);
195
+ we(() => l.indeterminate, (_) => {
196
+ m.value && (m.value.indeterminate = _);
197
+ }), Pe(() => {
198
+ m.value && l.indeterminate && (m.value.indeterminate = !0);
199
+ });
200
+ function u() {
201
+ l.disabled || c("update:modelValue", !l.modelValue);
202
+ }
203
+ return (_, g) => (t(), a("label", {
204
+ class: h([
205
+ "orb-checkbox",
206
+ { "orb-checkbox--disabled": e.disabled }
207
+ ])
208
+ }, [
209
+ o("span", {
210
+ class: h([
211
+ "orb-checkbox__box",
212
+ {
213
+ "orb-checkbox__box--checked": d.value && !e.indeterminate,
214
+ "orb-checkbox__box--indeterminate": e.indeterminate,
215
+ "orb-checkbox__box--disabled": e.disabled
216
+ }
217
+ ])
218
+ }, [
219
+ o("input", {
220
+ ref_key: "inputRef",
221
+ ref: m,
222
+ type: "checkbox",
223
+ checked: d.value,
224
+ "aria-checked": e.indeterminate ? "mixed" : d.value,
225
+ disabled: e.disabled,
226
+ class: "orb-checkbox__input",
227
+ onChange: u
228
+ }, null, 40, Wl),
229
+ (t(), a("svg", {
230
+ class: h(["orb-checkbox__icon", { "orb-checkbox__icon--visible": d.value && !e.indeterminate }]),
231
+ viewBox: "0 0 16 16",
232
+ fill: "none"
233
+ }, [...g[0] || (g[0] = [
234
+ o("path", {
235
+ d: "M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z",
236
+ fill: "currentColor"
237
+ }, null, -1)
238
+ ])], 2)),
239
+ (t(), a("svg", {
240
+ class: h(["orb-checkbox__icon orb-checkbox__icon--dash", { "orb-checkbox__icon--visible": e.indeterminate }]),
241
+ viewBox: "0 0 16 16",
242
+ fill: "none"
243
+ }, [...g[1] || (g[1] = [
244
+ o("path", {
245
+ d: "M3 8h10",
246
+ stroke: "currentColor",
247
+ "stroke-width": "2",
248
+ "stroke-linecap": "round"
249
+ }, null, -1)
250
+ ])], 2))
251
+ ], 2),
252
+ e.label || e.description ? (t(), a("span", Zl, [
253
+ e.label ? (t(), a("span", El, f(e.label), 1)) : i("", !0),
254
+ e.description ? (t(), a("span", Pl, f(e.description), 1)) : i("", !0)
255
+ ])) : i("", !0)
256
+ ], 2));
257
+ }
258
+ }), jl = ["name", "value", "checked", "disabled", "aria-label"], Gl = {
259
+ key: 0,
260
+ class: "orb-radio__content"
261
+ }, Kl = {
262
+ key: 0,
263
+ class: "orb-radio__label"
264
+ }, Nl = {
265
+ key: 1,
266
+ class: "orb-radio__description"
267
+ }, Ul = /* @__PURE__ */ Z({
268
+ __name: "ORadioButton",
269
+ props: {
270
+ modelValue: {},
271
+ value: {},
272
+ disabled: { type: Boolean, default: !1 },
273
+ label: {},
274
+ description: {},
275
+ name: {}
276
+ },
277
+ emits: ["update:modelValue"],
278
+ setup(e, { emit: v }) {
279
+ const l = e, c = v;
280
+ function d() {
281
+ l.disabled || c("update:modelValue", l.value);
282
+ }
283
+ return (m, u) => (t(), a("label", {
284
+ class: h([
285
+ "orb-radio",
286
+ { "orb-radio--disabled": e.disabled }
287
+ ])
288
+ }, [
289
+ o("span", {
290
+ class: h([
291
+ "orb-radio__circle",
292
+ {
293
+ "orb-radio__circle--checked": e.modelValue === e.value,
294
+ "orb-radio__circle--disabled": e.disabled
295
+ }
296
+ ])
297
+ }, [
298
+ o("input", {
299
+ type: "radio",
300
+ name: e.name,
301
+ value: e.value,
302
+ checked: e.modelValue === e.value,
303
+ disabled: e.disabled,
304
+ "aria-label": e.label || e.value,
305
+ class: "orb-radio__input",
306
+ onChange: d
307
+ }, null, 40, jl),
308
+ o("span", {
309
+ class: h(["orb-radio__dot", { "orb-radio__dot--visible": e.modelValue === e.value }])
310
+ }, null, 2)
311
+ ], 2),
312
+ e.label || e.description ? (t(), a("span", Gl, [
313
+ e.label ? (t(), a("span", Kl, f(e.label), 1)) : i("", !0),
314
+ e.description ? (t(), a("span", Nl, f(e.description), 1)) : i("", !0)
315
+ ])) : i("", !0)
316
+ ], 2));
317
+ }
318
+ }), Ql = ["aria-checked", "aria-label", "disabled"], Yl = {
319
+ key: 0,
320
+ class: "orb-switch__content"
321
+ }, Jl = {
322
+ key: 0,
323
+ class: "orb-switch__label"
324
+ }, Xl = {
325
+ key: 1,
326
+ class: "orb-switch__description"
327
+ }, et = /* @__PURE__ */ Z({
328
+ __name: "OSwitch",
329
+ props: {
330
+ modelValue: { type: Boolean, default: !1 },
331
+ disabled: { type: Boolean, default: !1 },
332
+ label: {},
333
+ description: {}
334
+ },
335
+ emits: ["update:modelValue"],
336
+ setup(e, { emit: v }) {
337
+ const l = e, c = v;
338
+ function d() {
339
+ l.disabled || c("update:modelValue", !l.modelValue);
340
+ }
341
+ return (m, u) => (t(), a("label", {
342
+ class: h([
343
+ "orb-switch",
344
+ { "orb-switch--disabled": e.disabled }
345
+ ])
346
+ }, [
347
+ o("button", {
348
+ type: "button",
349
+ role: "switch",
350
+ "aria-checked": e.modelValue,
351
+ "aria-label": e.label,
352
+ disabled: e.disabled,
353
+ class: h([
354
+ "orb-switch__track",
355
+ {
356
+ "orb-switch__track--on": e.modelValue,
357
+ "orb-switch__track--disabled": e.disabled
358
+ }
359
+ ]),
360
+ onClick: d
361
+ }, [...u[0] || (u[0] = [
362
+ o("span", { class: "orb-switch__thumb" }, null, -1)
363
+ ])], 10, Ql),
364
+ e.label || e.description ? (t(), a("span", Yl, [
365
+ e.label ? (t(), a("span", Jl, f(e.label), 1)) : i("", !0),
366
+ e.description ? (t(), a("span", Xl, f(e.description), 1)) : i("", !0)
367
+ ])) : i("", !0)
368
+ ], 2));
369
+ }
370
+ }), Ne = /* @__PURE__ */ Z({
371
+ __name: "OFieldWrap",
372
+ props: {
373
+ size: { default: "medium" },
374
+ focused: { type: Boolean, default: !1 },
375
+ invalid: { type: Boolean, default: !1 },
376
+ disabled: { type: Boolean, default: !1 }
377
+ },
378
+ setup(e) {
379
+ const v = e, l = k(() => [
380
+ "orb-field-wrap",
381
+ `orb-field-wrap--${v.size}`,
382
+ {
383
+ "orb-field-wrap--focus": v.focused && !v.disabled,
384
+ "orb-field-wrap--invalid": v.invalid,
385
+ "orb-field-wrap--disabled": v.disabled
386
+ }
387
+ ]);
388
+ return (c, d) => (t(), a("div", {
389
+ class: h(l.value)
390
+ }, [
391
+ A(c.$slots, "default")
392
+ ], 2));
393
+ }
394
+ }), lt = { class: "orb-btn__label" }, tt = {
395
+ key: 0,
396
+ class: "orb-btn__icon"
397
+ }, at = {
398
+ key: 1,
399
+ class: "orb-btn__content"
400
+ }, ot = {
401
+ key: 0,
402
+ class: "orb-btn__label"
403
+ }, it = {
404
+ key: 1,
405
+ class: "orb-btn__description"
406
+ }, nt = {
407
+ key: 2,
408
+ class: "orb-btn__count"
409
+ }, st = {
410
+ key: 3,
411
+ class: "orb-btn__icon"
412
+ }, rt = /* @__PURE__ */ Z({
413
+ __name: "OButton",
414
+ props: {
415
+ variant: { default: "primary" },
416
+ size: { default: "medium" },
417
+ disabled: { type: Boolean, default: !1 },
418
+ loading: { type: Boolean, default: !1 },
419
+ loadingText: { default: void 0 },
420
+ fullWidth: { type: Boolean, default: !1 },
421
+ pressed: { type: Boolean, default: void 0 },
422
+ count: { default: void 0 },
423
+ description: { default: void 0 },
424
+ disclosure: { type: [String, Boolean], default: void 0 },
425
+ type: { default: "button" },
426
+ href: {},
427
+ target: {}
428
+ },
429
+ emits: ["click"],
430
+ setup(e, { emit: v }) {
431
+ const l = e, c = v, d = Ol(), m = k(() => !d.default && !l.description && (!!d["leading-icon"] || !!d["trailing-icon"])), u = k(() => !!l.description), _ = k(() => l.disclosure === !0 || l.disclosure === "down" ? "down" : l.disclosure === "up" ? "up" : null), g = k(() => [
432
+ "orb-btn",
433
+ `orb-btn--${l.variant}`,
434
+ `orb-btn--${l.size}`,
435
+ {
436
+ "orb-btn--full-width": l.fullWidth,
437
+ "orb-btn--loading": l.loading,
438
+ "orb-btn--disabled": l.disabled,
439
+ "orb-btn--pressed": l.pressed === !0,
440
+ "orb-btn--icon-only": m.value,
441
+ "orb-btn--compound": u.value
442
+ }
443
+ ]), B = k(() => l.disabled || l.loading), b = k(() => l.href ? "a" : "button");
444
+ function M(w) {
445
+ if (B.value) {
446
+ w.preventDefault();
447
+ return;
448
+ }
449
+ c("click", w);
450
+ }
451
+ return (w, x) => (t(), le(hl(b.value), {
452
+ class: h(g.value),
453
+ type: e.href ? void 0 : e.type,
454
+ href: e.href,
455
+ target: e.href ? e.target : void 0,
456
+ disabled: !e.href && B.value ? !0 : void 0,
457
+ "aria-disabled": e.href && B.value ? "true" : void 0,
458
+ tabindex: e.href && B.value ? -1 : void 0,
459
+ rel: e.href && e.target === "_blank" ? "noopener noreferrer" : void 0,
460
+ "aria-pressed": e.pressed !== void 0 ? String(e.pressed) : void 0,
461
+ onClick: M
462
+ }, {
463
+ default: te(() => [
464
+ o("span", {
465
+ class: h(["orb-btn__spinner", { "orb-btn__spinner--visible": e.loading && !e.loadingText }]),
466
+ "aria-hidden": "true"
467
+ }, [...x[0] || (x[0] = [
468
+ o("svg", {
469
+ viewBox: "0 0 32 32",
470
+ fill: "none"
471
+ }, [
472
+ o("path", {
473
+ d: "M26.0719 16C27.1368 16 28.0158 15.1313 27.8454 14.0802C27.5714 12.3896 26.9374 10.7695 25.9776 9.33316C24.6591 7.35977 22.7849 5.8217 20.5922 4.91345C18.3995 4.00519 15.9867 3.76755 13.6589 4.23058C11.3311 4.6936 9.19295 5.83649 7.51472 7.51472C5.83649 9.19295 4.6936 11.3311 4.23058 13.6589C3.76755 15.9867 4.00519 18.3995 4.91345 20.5922C5.8217 22.7849 7.35977 24.6591 9.33316 25.9776C10.7695 26.9374 12.3896 27.5714 14.0802 27.8454C15.1313 28.0158 16 27.1368 16 26.0719C16 25.0071 15.125 24.1664 14.0898 23.9166C13.1626 23.6929 12.2769 23.3068 11.4755 22.7713C10.1363 21.8765 9.09247 20.6046 8.47609 19.1165C7.8597 17.6284 7.69843 15.991 8.01266 14.4112C8.32689 12.8315 9.10251 11.3804 10.2414 10.2414C11.3804 9.10251 12.8315 8.32689 14.4112 8.01266C15.991 7.69843 17.6284 7.8597 19.1165 8.47609C20.6046 9.09247 21.8765 10.1363 22.7713 11.4755C23.3068 12.2769 23.6929 13.1626 23.9166 14.0898C24.1664 15.125 25.0071 16 26.0719 16Z",
474
+ fill: "currentColor"
475
+ })
476
+ ], -1)
477
+ ])], 2),
478
+ e.loading && e.loadingText ? (t(), a(K, { key: 0 }, [
479
+ x[1] || (x[1] = o("span", {
480
+ class: "orb-btn__spinner orb-btn__spinner--inline orb-btn__spinner--visible",
481
+ "aria-hidden": "true"
482
+ }, [
483
+ o("svg", {
484
+ viewBox: "0 0 32 32",
485
+ fill: "none"
486
+ }, [
487
+ o("path", {
488
+ d: "M26.0719 16C27.1368 16 28.0158 15.1313 27.8454 14.0802C27.5714 12.3896 26.9374 10.7695 25.9776 9.33316C24.6591 7.35977 22.7849 5.8217 20.5922 4.91345C18.3995 4.00519 15.9867 3.76755 13.6589 4.23058C11.3311 4.6936 9.19295 5.83649 7.51472 7.51472C5.83649 9.19295 4.6936 11.3311 4.23058 13.6589C3.76755 15.9867 4.00519 18.3995 4.91345 20.5922C5.8217 22.7849 7.35977 24.6591 9.33316 25.9776C10.7695 26.9374 12.3896 27.5714 14.0802 27.8454C15.1313 28.0158 16 27.1368 16 26.0719C16 25.0071 15.125 24.1664 14.0898 23.9166C13.1626 23.6929 12.2769 23.3068 11.4755 22.7713C10.1363 21.8765 9.09247 20.6046 8.47609 19.1165C7.8597 17.6284 7.69843 15.991 8.01266 14.4112C8.32689 12.8315 9.10251 11.3804 10.2414 10.2414C11.3804 9.10251 12.8315 8.32689 14.4112 8.01266C15.991 7.69843 17.6284 7.8597 19.1165 8.47609C20.6046 9.09247 21.8765 10.1363 22.7713 11.4755C23.3068 12.2769 23.6929 13.1626 23.9166 14.0898C24.1664 15.125 25.0071 16 26.0719 16Z",
489
+ fill: "currentColor"
490
+ })
491
+ ])
492
+ ], -1)),
493
+ o("span", lt, f(e.loadingText), 1)
494
+ ], 64)) : (t(), a(K, { key: 1 }, [
495
+ w.$slots["leading-icon"] ? (t(), a("span", tt, [
496
+ A(w.$slots, "leading-icon")
497
+ ])) : i("", !0),
498
+ w.$slots.default || e.description ? (t(), a("span", at, [
499
+ w.$slots.default ? (t(), a("span", ot, [
500
+ A(w.$slots, "default")
501
+ ])) : i("", !0),
502
+ e.description ? (t(), a("span", it, f(e.description), 1)) : i("", !0)
503
+ ])) : i("", !0),
504
+ e.count !== void 0 ? (t(), a("span", nt, f(e.count), 1)) : i("", !0),
505
+ w.$slots["trailing-icon"] ? (t(), a("span", st, [
506
+ A(w.$slots, "trailing-icon")
507
+ ])) : i("", !0),
508
+ _.value ? (t(), a("span", {
509
+ key: 4,
510
+ class: h(["orb-btn__disclosure", { "orb-btn__disclosure--up": _.value === "up" }]),
511
+ "aria-hidden": "true"
512
+ }, [...x[2] || (x[2] = [
513
+ o("svg", {
514
+ viewBox: "0 0 256 256",
515
+ fill: "currentColor"
516
+ }, [
517
+ o("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" })
518
+ ], -1)
519
+ ])], 2)) : i("", !0)
520
+ ], 64))
521
+ ]),
522
+ _: 3
523
+ }, 8, ["class", "type", "href", "target", "disabled", "aria-disabled", "tabindex", "rel", "aria-pressed"]));
524
+ }
525
+ }), dt = ["aria-label"], ct = {
526
+ key: 0,
527
+ viewBox: "0 0 24 24",
528
+ fill: "none",
529
+ stroke: "currentColor",
530
+ "stroke-width": "1.5",
531
+ "stroke-linecap": "round",
532
+ "stroke-linejoin": "round",
533
+ "aria-hidden": "true"
534
+ }, ut = {
535
+ key: 1,
536
+ viewBox: "0 0 24 24",
537
+ fill: "none",
538
+ stroke: "currentColor",
539
+ "stroke-width": "1.5",
540
+ "stroke-linecap": "round",
541
+ "stroke-linejoin": "round",
542
+ "aria-hidden": "true"
543
+ }, bt = {
544
+ key: 2,
545
+ viewBox: "0 0 24 24",
546
+ fill: "none",
547
+ stroke: "currentColor",
548
+ "stroke-width": "1.5",
549
+ "stroke-linecap": "round",
550
+ "stroke-linejoin": "round",
551
+ "aria-hidden": "true"
552
+ }, ht = {
553
+ key: 3,
554
+ viewBox: "0 0 24 24",
555
+ fill: "none",
556
+ stroke: "currentColor",
557
+ "stroke-width": "1.5",
558
+ "stroke-linecap": "round",
559
+ "stroke-linejoin": "round",
560
+ "aria-hidden": "true"
561
+ }, Ee = /* @__PURE__ */ Z({
562
+ __name: "OStatusIcon",
563
+ props: {
564
+ status: {},
565
+ size: { default: "md" },
566
+ filled: { type: Boolean, default: !1 },
567
+ inverted: { type: Boolean, default: !1 }
568
+ },
569
+ setup(e) {
570
+ return (v, l) => (t(), a("span", {
571
+ class: h(["orb-status-icon", [
572
+ `orb-status-icon--${e.status}`,
573
+ `orb-status-icon--${e.size}`,
574
+ { "orb-status-icon--filled": e.filled },
575
+ { "orb-status-icon--inverted": e.inverted }
576
+ ]]),
577
+ role: "img",
578
+ "aria-label": e.status
579
+ }, [
580
+ e.status === "success" ? (t(), a("svg", ct, [...l[0] || (l[0] = [
581
+ o("circle", {
582
+ cx: "12",
583
+ cy: "12",
584
+ r: "10"
585
+ }, null, -1),
586
+ o("path", { d: "m9 12 2 2 4-4" }, null, -1)
587
+ ])])) : e.status === "warning" ? (t(), a("svg", ut, [...l[1] || (l[1] = [
588
+ o("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }, null, -1),
589
+ o("line", {
590
+ x1: "12",
591
+ y1: "9",
592
+ x2: "12",
593
+ y2: "13"
594
+ }, null, -1),
595
+ o("line", {
596
+ x1: "12",
597
+ y1: "17",
598
+ x2: "12.01",
599
+ y2: "17"
600
+ }, null, -1)
601
+ ])])) : e.status === "error" ? (t(), a("svg", bt, [...l[2] || (l[2] = [
602
+ o("circle", {
603
+ cx: "12",
604
+ cy: "12",
605
+ r: "10"
606
+ }, null, -1),
607
+ o("line", {
608
+ x1: "15",
609
+ y1: "9",
610
+ x2: "9",
611
+ y2: "15"
612
+ }, null, -1),
613
+ o("line", {
614
+ x1: "9",
615
+ y1: "9",
616
+ x2: "15",
617
+ y2: "15"
618
+ }, null, -1)
619
+ ])])) : (t(), a("svg", ht, [...l[3] || (l[3] = [
620
+ o("circle", {
621
+ cx: "12",
622
+ cy: "12",
623
+ r: "10"
624
+ }, null, -1),
625
+ o("line", {
626
+ x1: "12",
627
+ y1: "16",
628
+ x2: "12",
629
+ y2: "12"
630
+ }, null, -1),
631
+ o("line", {
632
+ x1: "12",
633
+ y1: "8",
634
+ x2: "12.01",
635
+ y2: "8"
636
+ }, null, -1)
637
+ ])]))
638
+ ], 10, dt));
639
+ }
640
+ }), ft = {
641
+ key: 0,
642
+ class: "orb-text-field__icon orb-text-field__icon--prefix"
643
+ }, vt = {
644
+ key: 1,
645
+ class: "orb-text-field__icon orb-text-field__icon--prefix"
646
+ }, kt = ["disabled"], gt = {
647
+ key: 3,
648
+ class: "orb-text-field__icon orb-text-field__icon--prefix"
649
+ }, mt = {
650
+ key: 4,
651
+ class: "orb-text-field__affix"
652
+ }, yt = ["id", "type", "value", "placeholder", "disabled", "maxlength", "min", "max", "step", "inputmode", "aria-invalid", "aria-label"], xt = {
653
+ key: 5,
654
+ class: "orb-text-field__icon orb-text-field__icon--validation"
655
+ }, pt = ["aria-label"], wt = {
656
+ key: 0,
657
+ xmlns: "http://www.w3.org/2000/svg",
658
+ viewBox: "0 0 256 256",
659
+ fill: "currentColor",
660
+ "aria-hidden": "true"
661
+ }, $t = {
662
+ key: 1,
663
+ xmlns: "http://www.w3.org/2000/svg",
664
+ viewBox: "0 0 256 256",
665
+ fill: "currentColor",
666
+ "aria-hidden": "true"
667
+ }, Ct = ["disabled"], _t = {
668
+ key: 9,
669
+ class: "orb-text-field__affix"
670
+ }, Bt = {
671
+ key: 10,
672
+ class: "orb-text-field__icon orb-text-field__icon--suffix"
673
+ }, Tt = ["href"], Ot = {
674
+ key: 0,
675
+ class: "orb-text-field__hyperlink-icon"
676
+ }, St = /* @__PURE__ */ Z({
677
+ __name: "OTextField",
678
+ props: {
679
+ modelValue: { default: "" },
680
+ label: {},
681
+ placeholder: {},
682
+ size: { default: "medium" },
683
+ state: { default: "default" },
684
+ required: { type: Boolean, default: !1 },
685
+ optional: { type: Boolean, default: !1 },
686
+ helpText: {},
687
+ maxLength: {},
688
+ prefixText: {},
689
+ suffixText: {},
690
+ validationIcon: { type: Boolean },
691
+ hyperlinkText: {},
692
+ hyperlinkHref: {},
693
+ type: { default: "text" },
694
+ id: {},
695
+ min: {},
696
+ max: {},
697
+ step: { default: 1 },
698
+ mask: {}
699
+ },
700
+ emits: ["update:modelValue", "hyperlink-click", "clear"],
701
+ setup(e, { emit: v }) {
702
+ const l = {
703
+ cpf: "###.###.###-##",
704
+ cnpj: "##.###.###/####-##",
705
+ cep: "#####-###",
706
+ tel: "(##) ####-####",
707
+ cel: "(##) #####-####"
708
+ };
709
+ function c(S, O) {
710
+ const j = S.replace(/\D/g, "");
711
+ let W = "", U = 0;
712
+ for (let Q = 0; Q < O.length && U < j.length; Q++)
713
+ O[Q] === "#" ? (W += j[U], U++) : W += O[Q];
714
+ return W;
715
+ }
716
+ function d(S) {
717
+ return S.replace(/\D/g, "");
718
+ }
719
+ function m(S) {
720
+ return l[S] ?? S;
721
+ }
722
+ const u = e, _ = v, g = T(!1), B = T(null), b = T(u.modelValue ?? ""), M = k(() => u.type === "search"), w = k(() => u.type === "password"), x = k(() => u.type === "number"), z = k(() => u.type === "tel"), P = k(() => !!u.mask), G = k(() => u.mask ? m(u.mask) : ""), se = k(() => b.value.length > 0), q = T(!1), oe = k(() => P.value ? c(b.value, G.value) : b.value), F = k(() => w.value ? q.value ? "text" : "password" : u.type);
723
+ we(() => u.modelValue, (S) => {
724
+ b.value = S ?? "";
725
+ });
726
+ function R(S) {
727
+ const O = S.target;
728
+ if (P.value) {
729
+ const j = d(O.value), W = G.value.replace(/[^#]/g, "").length, U = j.slice(0, W);
730
+ b.value = U;
731
+ const Q = c(U, G.value);
732
+ O.value = Q, _("update:modelValue", U);
733
+ } else
734
+ b.value = O.value, _("update:modelValue", O.value);
735
+ }
736
+ function be() {
737
+ var S;
738
+ b.value = "", _("update:modelValue", ""), _("clear"), (S = B.value) == null || S.focus();
739
+ }
740
+ function I() {
741
+ var S;
742
+ q.value = !q.value, (S = B.value) == null || S.focus();
743
+ }
744
+ function ke(S) {
745
+ var Q;
746
+ const O = parseFloat(b.value) || 0, j = u.step ?? 1;
747
+ let W = O + j * S;
748
+ u.min != null && W < u.min && (W = u.min), u.max != null && W > u.max && (W = u.max);
749
+ const U = String(W);
750
+ b.value = U, _("update:modelValue", U), (Q = B.value) == null || Q.focus();
751
+ }
752
+ function De() {
753
+ g.value = !0;
754
+ }
755
+ function he() {
756
+ g.value = !1;
757
+ }
758
+ return (S, O) => {
759
+ var j;
760
+ return t(), a("div", {
761
+ class: h(["orb-text-field", `orb-text-field--${e.size}`])
762
+ }, [
763
+ e.label || e.maxLength ? (t(), le(ae(Ke), {
764
+ key: 0,
765
+ label: e.label,
766
+ required: e.required,
767
+ optional: e.optional,
768
+ disabled: e.state === "disabled",
769
+ "char-count": ((j = e.modelValue) == null ? void 0 : j.length) ?? 0,
770
+ "max-length": e.maxLength
771
+ }, null, 8, ["label", "required", "optional", "disabled", "char-count", "max-length"])) : i("", !0),
772
+ ve(ae(Ne), {
773
+ size: e.size,
774
+ focused: g.value,
775
+ invalid: e.state === "invalid",
776
+ disabled: e.state === "disabled"
777
+ }, {
778
+ default: te(() => [
779
+ M.value && !S.$slots["prefix-icon"] ? (t(), a("span", ft, [...O[3] || (O[3] = [
780
+ o("svg", {
781
+ xmlns: "http://www.w3.org/2000/svg",
782
+ viewBox: "0 0 256 256",
783
+ fill: "currentColor",
784
+ "aria-hidden": "true"
785
+ }, [
786
+ o("path", { d: "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" })
787
+ ], -1)
788
+ ])])) : i("", !0),
789
+ z.value && !S.$slots["prefix-icon"] ? (t(), a("span", vt, [...O[4] || (O[4] = [
790
+ o("svg", {
791
+ xmlns: "http://www.w3.org/2000/svg",
792
+ viewBox: "0 0 256 256",
793
+ fill: "currentColor",
794
+ "aria-hidden": "true"
795
+ }, [
796
+ o("path", { d: "M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.17-1.4,8.12,8.12,0,0,0,.75-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z" })
797
+ ], -1)
798
+ ])])) : i("", !0),
799
+ x.value && e.state !== "disabled" ? (t(), a("button", {
800
+ key: 2,
801
+ type: "button",
802
+ class: "orb-text-field__stepper",
803
+ "aria-label": "Diminuir",
804
+ disabled: e.min != null && (parseFloat(b.value) || 0) <= e.min,
805
+ onClick: O[0] || (O[0] = (W) => ke(-1))
806
+ }, [...O[5] || (O[5] = [
807
+ o("svg", {
808
+ xmlns: "http://www.w3.org/2000/svg",
809
+ viewBox: "0 0 256 256",
810
+ fill: "currentColor",
811
+ "aria-hidden": "true"
812
+ }, [
813
+ o("path", { d: "M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z" })
814
+ ], -1)
815
+ ])], 8, kt)) : i("", !0),
816
+ S.$slots["prefix-icon"] ? (t(), a("span", gt, [
817
+ A(S.$slots, "prefix-icon")
818
+ ])) : i("", !0),
819
+ e.prefixText ? (t(), a("span", mt, f(e.prefixText), 1)) : i("", !0),
820
+ o("input", {
821
+ ref_key: "inputRef",
822
+ ref: B,
823
+ id: e.id,
824
+ type: F.value,
825
+ value: P.value ? oe.value : e.modelValue,
826
+ placeholder: e.placeholder,
827
+ disabled: e.state === "disabled",
828
+ maxlength: P.value ? G.value.length : e.maxLength,
829
+ min: x.value ? e.min : void 0,
830
+ max: x.value ? e.max : void 0,
831
+ step: x.value ? e.step : void 0,
832
+ inputmode: x.value ? "numeric" : z.value ? "tel" : P.value ? "numeric" : void 0,
833
+ "aria-invalid": e.state === "invalid" ? !0 : void 0,
834
+ "aria-label": M.value && !e.label ? e.placeholder || "Pesquisar" : void 0,
835
+ class: "orb-text-field__input",
836
+ onInput: R,
837
+ onFocus: De,
838
+ onBlur: he
839
+ }, null, 40, yt),
840
+ e.validationIcon && e.state !== "invalid" ? (t(), a("span", xt, [
841
+ ve(Ee, {
842
+ status: "success",
843
+ size: "sm"
844
+ })
845
+ ])) : i("", !0),
846
+ M.value && se.value && e.state !== "disabled" ? (t(), a("button", {
847
+ key: 6,
848
+ type: "button",
849
+ class: "orb-text-field__clear",
850
+ "aria-label": "Limpar busca",
851
+ onClick: be
852
+ }, [...O[6] || (O[6] = [
853
+ o("svg", {
854
+ xmlns: "http://www.w3.org/2000/svg",
855
+ viewBox: "0 0 256 256",
856
+ fill: "currentColor",
857
+ "aria-hidden": "true"
858
+ }, [
859
+ o("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" })
860
+ ], -1)
861
+ ])])) : i("", !0),
862
+ w.value && e.state !== "disabled" ? (t(), a("button", {
863
+ key: 7,
864
+ type: "button",
865
+ class: "orb-text-field__toggle",
866
+ "aria-label": q.value ? "Ocultar senha" : "Mostrar senha",
867
+ onClick: I
868
+ }, [
869
+ q.value ? (t(), a("svg", $t, [...O[8] || (O[8] = [
870
+ o("path", { d: "M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a120.69,120.69,0,0,0,52.57-12.13l21.51,23.75A8,8,0,0,0,208,224a8,8,0,0,0,5.92-13.38ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128c4.65-8.48,19.23-33.33,43.78-49.93l18.44,20.29A48,48,0,0,0,128,176a47.58,47.58,0,0,0,12.27-1.63L155,190.72A104.82,104.82,0,0,1,128,192Zm-4-80.18,29.58,32.54A32,32,0,0,1,124,111.82Zm123.31,12.94c-.35.79-8.82,19.57-27.65,38.4A8,8,0,0,1,204.34,152c14.54-14.54,23.32-29.36,27.09-36A169.47,169.47,0,0,0,207.93,85.3C185.67,63.19,158.78,52,128,52a121.12,121.12,0,0,0-19.69,1.6,8,8,0,1,1-2.62-15.78A137.7,137.7,0,0,1,128,36c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,124.76ZM164,128a36,36,0,0,0-6.21-20.26,8,8,0,1,1,13.42-8.7A52,52,0,0,1,180,128a8,8,0,0,1-16,0Z" }, null, -1)
871
+ ])])) : (t(), a("svg", wt, [...O[7] || (O[7] = [
872
+ o("path", { d: "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.29A169.47,169.47,0,0,1,24.57,128,169.47,169.47,0,0,1,48.07,97.29C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.29A169.47,169.47,0,0,1,231.43,128C223.72,141.72,192.44,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z" }, null, -1)
873
+ ])]))
874
+ ], 8, pt)) : i("", !0),
875
+ x.value && e.state !== "disabled" ? (t(), a("button", {
876
+ key: 8,
877
+ type: "button",
878
+ class: "orb-text-field__stepper",
879
+ "aria-label": "Aumentar",
880
+ disabled: e.max != null && (parseFloat(b.value) || 0) >= e.max,
881
+ onClick: O[1] || (O[1] = (W) => ke(1))
882
+ }, [...O[9] || (O[9] = [
883
+ o("svg", {
884
+ xmlns: "http://www.w3.org/2000/svg",
885
+ viewBox: "0 0 256 256",
886
+ fill: "currentColor",
887
+ "aria-hidden": "true"
888
+ }, [
889
+ o("path", { d: "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z" })
890
+ ], -1)
891
+ ])], 8, Ct)) : i("", !0),
892
+ e.suffixText ? (t(), a("span", _t, f(e.suffixText), 1)) : i("", !0),
893
+ S.$slots["suffix-icon"] ? (t(), a("span", Bt, [
894
+ A(S.$slots, "suffix-icon")
895
+ ])) : i("", !0)
896
+ ]),
897
+ _: 3
898
+ }, 8, ["size", "focused", "invalid", "disabled"]),
899
+ e.helpText ? (t(), le(ae(Re), {
900
+ key: 1,
901
+ variant: e.state === "invalid" ? "negative" : "neutral",
902
+ disabled: e.state === "disabled"
903
+ }, {
904
+ default: te(() => [
905
+ N(f(e.helpText), 1)
906
+ ]),
907
+ _: 1
908
+ }, 8, ["variant", "disabled"])) : i("", !0),
909
+ e.hyperlinkText ? (t(), a("a", {
910
+ key: 2,
911
+ href: e.hyperlinkHref || "#",
912
+ class: h(["orb-text-field__hyperlink", { "orb-text-field__hyperlink--disabled": e.state === "disabled" }]),
913
+ onClick: O[2] || (O[2] = $e((W) => e.state !== "disabled" && _("hyperlink-click"), ["prevent"]))
914
+ }, [
915
+ S.$slots["hyperlink-icon"] ? (t(), a("span", Ot, [
916
+ A(S.$slots, "hyperlink-icon")
917
+ ])) : i("", !0),
918
+ N(" " + f(e.hyperlinkText), 1)
919
+ ], 10, Tt)) : i("", !0)
920
+ ], 2);
921
+ };
922
+ }
923
+ }), Lt = ["id", "value", "placeholder", "disabled", "maxlength", "rows", "aria-invalid"], Vt = ["href"], Mt = /* @__PURE__ */ Z({
924
+ __name: "OTextArea",
925
+ props: {
926
+ modelValue: { default: "" },
927
+ label: {},
928
+ placeholder: {},
929
+ size: { default: "medium" },
930
+ state: { default: "default" },
931
+ required: { type: Boolean, default: !1 },
932
+ optional: { type: Boolean, default: !1 },
933
+ helpText: {},
934
+ maxLength: {},
935
+ rows: { default: 3 },
936
+ resize: { default: "vertical" },
937
+ hyperlinkText: {},
938
+ hyperlinkHref: {},
939
+ id: {}
940
+ },
941
+ emits: ["update:modelValue", "hyperlink-click"],
942
+ setup(e, { emit: v }) {
943
+ const l = e, c = v, d = T(!1), m = T(null);
944
+ function u(b) {
945
+ const M = b.target;
946
+ c("update:modelValue", M.value), l.resize === "auto" && ie(() => _());
947
+ }
948
+ function _() {
949
+ const b = m.value;
950
+ b && (b.style.height = "auto", b.style.height = `${b.scrollHeight}px`);
951
+ }
952
+ function g() {
953
+ d.value = !0;
954
+ }
955
+ function B() {
956
+ d.value = !1;
957
+ }
958
+ return we(() => l.modelValue, () => {
959
+ l.resize === "auto" && ie(() => _());
960
+ }), Pe(() => {
961
+ l.resize === "auto" && _();
962
+ }), (b, M) => {
963
+ var w;
964
+ return t(), a("div", {
965
+ class: h(["orb-text-area", `orb-text-area--${e.size}`])
966
+ }, [
967
+ e.label || e.maxLength ? (t(), le(ae(Ke), {
968
+ key: 0,
969
+ label: e.label,
970
+ required: e.required,
971
+ optional: e.optional,
972
+ disabled: e.state === "disabled",
973
+ "char-count": ((w = e.modelValue) == null ? void 0 : w.length) ?? 0,
974
+ "max-length": e.maxLength
975
+ }, null, 8, ["label", "required", "optional", "disabled", "char-count", "max-length"])) : i("", !0),
976
+ ve(ae(Ne), {
977
+ size: e.size,
978
+ focused: d.value,
979
+ invalid: e.state === "invalid",
980
+ disabled: e.state === "disabled"
981
+ }, {
982
+ default: te(() => [
983
+ o("textarea", {
984
+ ref_key: "textareaRef",
985
+ ref: m,
986
+ id: e.id,
987
+ value: e.modelValue,
988
+ placeholder: e.placeholder,
989
+ disabled: e.state === "disabled",
990
+ maxlength: e.maxLength,
991
+ rows: e.rows,
992
+ "aria-invalid": e.state === "invalid" ? !0 : void 0,
993
+ class: h([
994
+ "orb-text-area__input",
995
+ `orb-text-area__input--resize-${e.resize}`
996
+ ]),
997
+ onInput: u,
998
+ onFocus: g,
999
+ onBlur: B
1000
+ }, null, 42, Lt)
1001
+ ]),
1002
+ _: 1
1003
+ }, 8, ["size", "focused", "invalid", "disabled"]),
1004
+ e.helpText ? (t(), le(ae(Re), {
1005
+ key: 1,
1006
+ variant: e.state === "invalid" ? "negative" : "neutral",
1007
+ disabled: e.state === "disabled"
1008
+ }, {
1009
+ default: te(() => [
1010
+ N(f(e.helpText), 1)
1011
+ ]),
1012
+ _: 1
1013
+ }, 8, ["variant", "disabled"])) : i("", !0),
1014
+ e.hyperlinkText ? (t(), a("a", {
1015
+ key: 2,
1016
+ href: e.hyperlinkHref || "#",
1017
+ class: h(["orb-text-area__hyperlink", { "orb-text-area__hyperlink--disabled": e.state === "disabled" }]),
1018
+ onClick: M[0] || (M[0] = $e((x) => e.state !== "disabled" && c("hyperlink-click"), ["prevent"]))
1019
+ }, f(e.hyperlinkText), 11, Vt)) : i("", !0)
1020
+ ], 2);
1021
+ };
1022
+ }
1023
+ }), zt = ["disabled", "aria-invalid"], At = {
1024
+ key: 0,
1025
+ class: "orb-field-label__suffix"
1026
+ }, Ft = ["name", "value", "checked", "disabled", "aria-label", "onChange"], Rt = { class: "orb-radio__content" }, Dt = { class: "orb-radio__label" }, Ht = {
1027
+ key: 0,
1028
+ class: "orb-radio__description"
1029
+ }, It = /* @__PURE__ */ Z({
1030
+ __name: "ORadioGroup",
1031
+ props: {
1032
+ modelValue: {},
1033
+ options: {},
1034
+ label: {},
1035
+ orientation: { default: "vertical" },
1036
+ state: { default: "default" },
1037
+ required: { type: Boolean, default: !1 },
1038
+ optional: { type: Boolean, default: !1 },
1039
+ helpText: {},
1040
+ name: {}
1041
+ },
1042
+ emits: ["update:modelValue"],
1043
+ setup(e, { emit: v }) {
1044
+ const l = e, c = v, d = k(() => l.required ? " (obrigatório)" : l.optional ? " (opcional)" : "");
1045
+ function m(u) {
1046
+ l.state !== "disabled" && c("update:modelValue", u);
1047
+ }
1048
+ return (u, _) => (t(), a("fieldset", {
1049
+ class: h([
1050
+ "orb-radio-group",
1051
+ `orb-radio-group--${e.orientation}`,
1052
+ { "orb-radio-group--disabled": e.state === "disabled" }
1053
+ ]),
1054
+ disabled: e.state === "disabled",
1055
+ "aria-invalid": e.state === "invalid" ? !0 : void 0,
1056
+ role: "radiogroup"
1057
+ }, [
1058
+ e.label ? (t(), a("legend", {
1059
+ key: 0,
1060
+ class: h(["orb-field-label__text orb-radio-group__legend", { "orb-field-label__text--disabled": e.state === "disabled" }])
1061
+ }, [
1062
+ N(f(e.label), 1),
1063
+ d.value ? (t(), a("span", At, f(d.value), 1)) : i("", !0)
1064
+ ], 2)) : i("", !0),
1065
+ o("div", {
1066
+ class: h(["orb-radio-group__options", `orb-radio-group__options--${e.orientation}`])
1067
+ }, [
1068
+ (t(!0), a(K, null, pe(e.options, (g) => (t(), a("label", {
1069
+ key: g.value,
1070
+ class: h([
1071
+ "orb-radio",
1072
+ { "orb-radio--disabled": e.state === "disabled" }
1073
+ ])
1074
+ }, [
1075
+ o("span", {
1076
+ class: h([
1077
+ "orb-radio__circle",
1078
+ {
1079
+ "orb-radio__circle--checked": e.modelValue === g.value,
1080
+ "orb-radio__circle--disabled": e.state === "disabled",
1081
+ "orb-radio__circle--invalid": e.state === "invalid" && e.modelValue !== g.value
1082
+ }
1083
+ ])
1084
+ }, [
1085
+ o("input", {
1086
+ type: "radio",
1087
+ name: e.name,
1088
+ value: g.value,
1089
+ checked: e.modelValue === g.value,
1090
+ disabled: e.state === "disabled",
1091
+ "aria-label": g.label,
1092
+ class: "orb-radio__input",
1093
+ onChange: (B) => m(g.value)
1094
+ }, null, 40, Ft),
1095
+ o("span", {
1096
+ class: h(["orb-radio__dot", { "orb-radio__dot--visible": e.modelValue === g.value }])
1097
+ }, null, 2)
1098
+ ], 2),
1099
+ o("span", Rt, [
1100
+ o("span", Dt, f(g.label), 1),
1101
+ g.description ? (t(), a("span", Ht, f(g.description), 1)) : i("", !0)
1102
+ ])
1103
+ ], 2))), 128))
1104
+ ], 2),
1105
+ e.helpText ? (t(), le(ae(Re), {
1106
+ key: 1,
1107
+ variant: e.state === "invalid" ? "negative" : "neutral",
1108
+ disabled: e.state === "disabled"
1109
+ }, {
1110
+ default: te(() => [
1111
+ N(f(e.helpText), 1)
1112
+ ]),
1113
+ _: 1
1114
+ }, 8, ["variant", "disabled"])) : i("", !0)
1115
+ ], 10, zt));
1116
+ }
1117
+ }), Wt = ["disabled", "aria-invalid"], Zt = {
1118
+ key: 0,
1119
+ class: "orb-field-label__suffix"
1120
+ }, Et = ["checked", "aria-checked", "disabled", "aria-label"], Pt = { class: "orb-checkbox__content" }, qt = { class: "orb-checkbox__label" }, jt = ["value", "checked", "disabled", "aria-label", "onChange"], Gt = { class: "orb-checkbox__content" }, Kt = { class: "orb-checkbox__label" }, Nt = {
1121
+ key: 0,
1122
+ class: "orb-checkbox__description"
1123
+ }, Ut = /* @__PURE__ */ Z({
1124
+ __name: "OCheckboxGroup",
1125
+ props: {
1126
+ modelValue: { default: () => [] },
1127
+ options: {},
1128
+ label: {},
1129
+ orientation: { default: "vertical" },
1130
+ state: { default: "default" },
1131
+ required: { type: Boolean, default: !1 },
1132
+ optional: { type: Boolean, default: !1 },
1133
+ helpText: {},
1134
+ selectAll: { type: Boolean, default: !1 },
1135
+ selectAllLabel: { default: "Selecionar todos" }
1136
+ },
1137
+ emits: ["update:modelValue"],
1138
+ setup(e, { emit: v }) {
1139
+ const l = e, c = v, d = k(() => l.required ? " (obrigatório)" : l.optional ? " (opcional)" : "");
1140
+ function m(w) {
1141
+ return l.modelValue.includes(w);
1142
+ }
1143
+ function u(w) {
1144
+ if (l.state === "disabled") return;
1145
+ const x = m(w) ? l.modelValue.filter((z) => z !== w) : [...l.modelValue, w];
1146
+ c("update:modelValue", x);
1147
+ }
1148
+ const _ = k(() => l.options.map((w) => w.value)), g = k(() => _.value.length > 0 && _.value.every((w) => l.modelValue.includes(w))), B = k(() => !g.value && l.modelValue.length > 0), b = T(null);
1149
+ we(B, (w) => {
1150
+ b.value && (b.value.indeterminate = w);
1151
+ }), Pe(() => {
1152
+ b.value && B.value && (b.value.indeterminate = !0);
1153
+ });
1154
+ function M() {
1155
+ l.state !== "disabled" && (g.value ? c("update:modelValue", []) : c("update:modelValue", [..._.value]));
1156
+ }
1157
+ return (w, x) => (t(), a("fieldset", {
1158
+ class: h([
1159
+ "orb-checkbox-group",
1160
+ `orb-checkbox-group--${e.orientation}`,
1161
+ { "orb-checkbox-group--disabled": e.state === "disabled" }
1162
+ ]),
1163
+ disabled: e.state === "disabled",
1164
+ "aria-invalid": e.state === "invalid" ? !0 : void 0,
1165
+ role: "group"
1166
+ }, [
1167
+ e.label ? (t(), a("legend", {
1168
+ key: 0,
1169
+ class: h(["orb-field-label__text orb-checkbox-group__legend", { "orb-field-label__text--disabled": e.state === "disabled" }])
1170
+ }, [
1171
+ N(f(e.label), 1),
1172
+ d.value ? (t(), a("span", Zt, f(d.value), 1)) : i("", !0)
1173
+ ], 2)) : i("", !0),
1174
+ e.selectAll ? (t(), a("label", {
1175
+ key: 1,
1176
+ class: h([
1177
+ "orb-checkbox",
1178
+ "orb-checkbox-group__select-all",
1179
+ { "orb-checkbox--disabled": e.state === "disabled" }
1180
+ ])
1181
+ }, [
1182
+ o("span", {
1183
+ class: h([
1184
+ "orb-checkbox__box",
1185
+ {
1186
+ "orb-checkbox__box--checked": g.value,
1187
+ "orb-checkbox__box--indeterminate": B.value,
1188
+ "orb-checkbox__box--disabled": e.state === "disabled"
1189
+ }
1190
+ ])
1191
+ }, [
1192
+ o("input", {
1193
+ ref_key: "selectAllRef",
1194
+ ref: b,
1195
+ type: "checkbox",
1196
+ checked: g.value,
1197
+ "aria-checked": B.value ? "mixed" : g.value,
1198
+ disabled: e.state === "disabled",
1199
+ "aria-label": e.selectAllLabel,
1200
+ class: "orb-checkbox__input",
1201
+ onChange: M
1202
+ }, null, 40, Et),
1203
+ (t(), a("svg", {
1204
+ class: h(["orb-checkbox__icon", { "orb-checkbox__icon--visible": g.value }]),
1205
+ viewBox: "0 0 16 16",
1206
+ fill: "none"
1207
+ }, [...x[0] || (x[0] = [
1208
+ o("path", {
1209
+ d: "M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z",
1210
+ fill: "currentColor"
1211
+ }, null, -1)
1212
+ ])], 2)),
1213
+ (t(), a("svg", {
1214
+ class: h(["orb-checkbox__icon orb-checkbox__icon--dash", { "orb-checkbox__icon--visible": B.value }]),
1215
+ viewBox: "0 0 16 16",
1216
+ fill: "none"
1217
+ }, [...x[1] || (x[1] = [
1218
+ o("path", {
1219
+ d: "M3 8h10",
1220
+ stroke: "currentColor",
1221
+ "stroke-width": "2",
1222
+ "stroke-linecap": "round"
1223
+ }, null, -1)
1224
+ ])], 2))
1225
+ ], 2),
1226
+ o("span", Pt, [
1227
+ o("span", qt, f(e.selectAllLabel), 1)
1228
+ ])
1229
+ ], 2)) : i("", !0),
1230
+ o("div", {
1231
+ class: h(["orb-checkbox-group__options", `orb-checkbox-group__options--${e.orientation}`])
1232
+ }, [
1233
+ (t(!0), a(K, null, pe(e.options, (z) => (t(), a("label", {
1234
+ key: z.value,
1235
+ class: h([
1236
+ "orb-checkbox",
1237
+ { "orb-checkbox--disabled": e.state === "disabled" }
1238
+ ])
1239
+ }, [
1240
+ o("span", {
1241
+ class: h([
1242
+ "orb-checkbox__box",
1243
+ {
1244
+ "orb-checkbox__box--checked": m(z.value),
1245
+ "orb-checkbox__box--disabled": e.state === "disabled",
1246
+ "orb-checkbox__box--invalid": e.state === "invalid" && !m(z.value)
1247
+ }
1248
+ ])
1249
+ }, [
1250
+ o("input", {
1251
+ type: "checkbox",
1252
+ value: z.value,
1253
+ checked: m(z.value),
1254
+ disabled: e.state === "disabled",
1255
+ "aria-label": z.label,
1256
+ class: "orb-checkbox__input",
1257
+ onChange: (P) => u(z.value)
1258
+ }, null, 40, jt),
1259
+ (t(), a("svg", {
1260
+ class: h(["orb-checkbox__icon", { "orb-checkbox__icon--visible": m(z.value) }]),
1261
+ viewBox: "0 0 16 16",
1262
+ fill: "none"
1263
+ }, [...x[2] || (x[2] = [
1264
+ o("path", {
1265
+ d: "M13.3 4.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 9.6l5.3-5.3a1 1 0 0 1 1.4 0z",
1266
+ fill: "currentColor"
1267
+ }, null, -1)
1268
+ ])], 2))
1269
+ ], 2),
1270
+ o("span", Gt, [
1271
+ o("span", Kt, f(z.label), 1),
1272
+ z.description ? (t(), a("span", Nt, f(z.description), 1)) : i("", !0)
1273
+ ])
1274
+ ], 2))), 128))
1275
+ ], 2),
1276
+ e.helpText ? (t(), le(ae(Re), {
1277
+ key: 2,
1278
+ variant: e.state === "invalid" ? "negative" : "neutral",
1279
+ disabled: e.state === "disabled"
1280
+ }, {
1281
+ default: te(() => [
1282
+ N(f(e.helpText), 1)
1283
+ ]),
1284
+ _: 1
1285
+ }, 8, ["variant", "disabled"])) : i("", !0)
1286
+ ], 10, Wt));
1287
+ }
1288
+ }), Qt = /* @__PURE__ */ Z({
1289
+ __name: "OButtonGroup",
1290
+ props: {
1291
+ orientation: { default: "horizontal" }
1292
+ },
1293
+ setup(e) {
1294
+ const v = e, l = k(() => [
1295
+ "orb-btn-group",
1296
+ `orb-btn-group--${v.orientation}`
1297
+ ]);
1298
+ return (c, d) => (t(), a("div", {
1299
+ class: h(l.value),
1300
+ role: "group"
1301
+ }, [
1302
+ A(c.$slots, "default")
1303
+ ], 2));
1304
+ }
1305
+ }), Yt = ["id", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-label", "aria-multiselectable", "disabled"], Jt = ["innerHTML"], Xt = {
1306
+ key: 0,
1307
+ class: "orb-select__tags"
1308
+ }, ea = ["innerHTML"], la = { class: "orb-select__tag-label" }, ta = ["aria-label", "onClick"], aa = {
1309
+ key: 0,
1310
+ class: "orb-select__tag orb-select__tag--count"
1311
+ }, oa = {
1312
+ key: 1,
1313
+ class: "orb-select__value orb-select__value--placeholder"
1314
+ }, ia = {
1315
+ key: 2,
1316
+ class: "orb-select__spinner",
1317
+ "aria-hidden": "true"
1318
+ }, na = ["aria-label"], sa = { class: "orb-select__listbox-inner" }, ra = {
1319
+ key: 0,
1320
+ class: "orb-select__toolbar orb-select__toolbar--top"
1321
+ }, da = {
1322
+ key: 1,
1323
+ class: "orb-select__search"
1324
+ }, ca = ["placeholder"], ua = ["id", "aria-multiselectable"], ba = {
1325
+ class: "orb-select__group-label",
1326
+ role: "presentation"
1327
+ }, ha = ["id", "aria-selected", "aria-disabled", "data-active", "onClick", "onMouseenter"], fa = {
1328
+ key: 0,
1329
+ xmlns: "http://www.w3.org/2000/svg",
1330
+ viewBox: "0 0 256 256",
1331
+ fill: "currentColor"
1332
+ }, va = ["innerHTML"], ka = { class: "orb-select__option-content" }, ga = { class: "orb-select__option-label" }, ma = {
1333
+ key: 0,
1334
+ class: "orb-select__option-desc"
1335
+ }, ya = {
1336
+ key: 2,
1337
+ class: "orb-select__option-check",
1338
+ "aria-hidden": "true"
1339
+ }, xa = ["id", "aria-selected", "aria-disabled", "data-active", "onClick", "onMouseenter"], pa = {
1340
+ key: 0,
1341
+ xmlns: "http://www.w3.org/2000/svg",
1342
+ viewBox: "0 0 256 256",
1343
+ fill: "currentColor"
1344
+ }, wa = ["innerHTML"], $a = { class: "orb-select__option-content" }, Ca = { class: "orb-select__option-label" }, _a = {
1345
+ key: 0,
1346
+ class: "orb-select__option-desc"
1347
+ }, Ba = {
1348
+ key: 2,
1349
+ class: "orb-select__option-check",
1350
+ "aria-hidden": "true"
1351
+ }, Ta = ["id", "aria-selected", "aria-disabled", "data-active", "onClick", "onMouseenter"], Oa = {
1352
+ key: 0,
1353
+ xmlns: "http://www.w3.org/2000/svg",
1354
+ viewBox: "0 0 256 256",
1355
+ fill: "currentColor"
1356
+ }, Sa = ["innerHTML"], La = { class: "orb-select__option-content" }, Va = { class: "orb-select__option-label" }, Ma = {
1357
+ key: 0,
1358
+ class: "orb-select__option-desc"
1359
+ }, za = {
1360
+ key: 2,
1361
+ class: "orb-select__option-check",
1362
+ "aria-hidden": "true"
1363
+ }, Aa = ["id", "data-active"], Fa = { class: "orb-select__option-label" }, Ra = {
1364
+ key: 3,
1365
+ class: "orb-select__empty"
1366
+ }, Da = {
1367
+ key: 4,
1368
+ class: "orb-select__limit-msg"
1369
+ }, Ha = {
1370
+ key: 2,
1371
+ class: "orb-select__toolbar orb-select__toolbar--bottom"
1372
+ }, Ia = ["aria-label"], Wa = { class: "orb-select__listbox-inner" }, Za = {
1373
+ key: 0,
1374
+ class: "orb-select__toolbar orb-select__toolbar--top"
1375
+ }, Ea = {
1376
+ key: 1,
1377
+ class: "orb-select__search"
1378
+ }, Pa = ["placeholder"], qa = ["id", "aria-multiselectable"], ja = ["id", "aria-selected", "aria-disabled", "data-active", "onClick", "onMouseenter"], Ga = {
1379
+ key: 0,
1380
+ xmlns: "http://www.w3.org/2000/svg",
1381
+ viewBox: "0 0 256 256",
1382
+ fill: "currentColor"
1383
+ }, Ka = ["innerHTML"], Na = { class: "orb-select__option-content" }, Ua = { class: "orb-select__option-label" }, Qa = {
1384
+ key: 0,
1385
+ class: "orb-select__option-desc"
1386
+ }, Ya = {
1387
+ key: 2,
1388
+ class: "orb-select__option-check",
1389
+ "aria-hidden": "true"
1390
+ }, Ja = {
1391
+ key: 0,
1392
+ class: "orb-select__empty"
1393
+ }, Xa = {
1394
+ key: 1,
1395
+ class: "orb-select__limit-msg"
1396
+ }, eo = {
1397
+ key: 2,
1398
+ class: "orb-select__toolbar orb-select__toolbar--bottom"
1399
+ }, lo = /* @__PURE__ */ Z({
1400
+ __name: "OSelect",
1401
+ props: {
1402
+ modelValue: { default: "" },
1403
+ options: { default: () => [] },
1404
+ label: {},
1405
+ placeholder: {},
1406
+ size: { default: "medium" },
1407
+ state: { default: "default" },
1408
+ required: { type: Boolean, default: !1 },
1409
+ optional: { type: Boolean, default: !1 },
1410
+ helpText: {},
1411
+ clearable: { type: Boolean, default: !1 },
1412
+ loading: { type: Boolean, default: !1 },
1413
+ searchable: { type: Boolean, default: !1 },
1414
+ searchPlaceholder: { default: "Buscar..." },
1415
+ multiple: { type: Boolean, default: !1 },
1416
+ maxTagCount: { default: 0 },
1417
+ maxSelections: { default: 0 },
1418
+ allowDeselect: { type: Boolean, default: !1 },
1419
+ creatable: { type: Boolean, default: !1 },
1420
+ createLabel: { default: 'Criar "{query}"' },
1421
+ filterFn: {},
1422
+ teleport: { type: [Boolean, String], default: !1 },
1423
+ direction: { default: "down" },
1424
+ id: {}
1425
+ },
1426
+ emits: ["update:modelValue", "change", "search", "create", "loadMore"],
1427
+ setup(e, { emit: v }) {
1428
+ const l = e, c = v, d = T(!1), m = T(!1), u = T(null), _ = T(null), g = T(null), B = T(null), b = T(-1), M = T(""), w = T(null), x = T(""), z = T({}), P = T("down"), G = T(null), se = T(!1), q = k(() => l.state === "disabled"), oe = k(() => l.state === "invalid"), F = k(() => l.multiple ? Array.isArray(l.modelValue) ? l.modelValue : [] : typeof l.modelValue == "string" && l.modelValue !== "" ? [l.modelValue] : []), R = k(() => {
1429
+ const n = [];
1430
+ for (const s of l.options)
1431
+ "options" in s ? n.push(...s.options) : n.push(s);
1432
+ return n;
1433
+ });
1434
+ function be(n, s) {
1435
+ return l.filterFn ? l.filterFn(n, s) : n.label.toLowerCase().includes(s.toLowerCase());
1436
+ }
1437
+ const I = k(() => !l.searchable || !x.value ? R.value : R.value.filter((n) => be(n, x.value))), ke = k(() => !l.searchable || !x.value ? l.options : l.options.map((n) => {
1438
+ if ("options" in n) {
1439
+ const s = n.options.filter((r) => be(r, x.value));
1440
+ return s.length > 0 ? { ...n, options: s } : null;
1441
+ }
1442
+ return be(n, x.value) ? n : null;
1443
+ }).filter(Boolean)), De = k(() => l.options.some((n) => "options" in n)), he = k(
1444
+ () => R.value.find((n) => n.value === (l.multiple ? "" : l.modelValue))
1445
+ ), S = k(
1446
+ () => R.value.filter((n) => F.value.includes(n.value))
1447
+ ), O = k(
1448
+ () => {
1449
+ var n;
1450
+ return ((n = he.value) == null ? void 0 : n.label) ?? "";
1451
+ }
1452
+ ), j = k(() => l.multiple ? F.value.length > 0 : l.modelValue !== "" && l.modelValue != null), W = k(() => (l.id ?? "orb-select") + "-listbox"), U = k(() => I.value.length === 0), Q = k(() => !l.multiple || l.maxSelections <= 0 ? !1 : F.value.length >= l.maxSelections), fe = k(() => {
1453
+ if (!l.creatable || !l.searchable || !x.value.trim()) return !1;
1454
+ const n = x.value.trim().toLowerCase();
1455
+ return !R.value.some((s) => s.label.toLowerCase() === n);
1456
+ }), Ue = k(() => l.maxTagCount > 0 && S.value.length > l.maxTagCount ? S.value.slice(0, l.maxTagCount) : S.value), qe = k(() => l.maxTagCount > 0 && S.value.length > l.maxTagCount ? S.value.length - l.maxTagCount : 0);
1457
+ Pe(() => {
1458
+ document.addEventListener("mousedown", ll);
1459
+ }), vl(() => {
1460
+ document.removeEventListener("mousedown", ll), w.value && clearTimeout(w.value);
1461
+ }), we(d, (n) => {
1462
+ if (n) {
1463
+ x.value = "", se.value = !1, al(), l.teleport && $l();
1464
+ const s = l.multiple ? "" : l.modelValue, r = I.value.findIndex((p) => p.value === s);
1465
+ b.value = r >= 0 ? r : 0, ie(() => {
1466
+ var p;
1467
+ l.searchable && ((p = g.value) == null || p.focus()), Ce();
1468
+ });
1469
+ } else
1470
+ b.value = -1, x.value = "";
1471
+ }), we(() => l.options, () => {
1472
+ se.value = !1;
1473
+ }, { deep: !1 }), we(x, (n) => {
1474
+ b.value = I.value.length > 0 ? 0 : -1, l.searchable && c("search", n);
1475
+ });
1476
+ function $() {
1477
+ q.value || l.loading || (d.value = !d.value);
1478
+ }
1479
+ function C() {
1480
+ q.value || l.loading || d.value || (d.value = !0);
1481
+ }
1482
+ function ge() {
1483
+ var n;
1484
+ d.value && (d.value = !1, (n = u.value) == null || n.focus());
1485
+ }
1486
+ function me(n) {
1487
+ if (!n.disabled)
1488
+ if (l.multiple) {
1489
+ const s = [...F.value], r = s.indexOf(n.value);
1490
+ if (r >= 0)
1491
+ s.splice(r, 1);
1492
+ else {
1493
+ if (Q.value) return;
1494
+ s.push(n.value);
1495
+ }
1496
+ c("update:modelValue", s), c("change", s), ie(() => {
1497
+ var p;
1498
+ l.searchable && ((p = g.value) == null || p.focus());
1499
+ });
1500
+ } else
1501
+ l.allowDeselect && n.value === l.modelValue ? (c("update:modelValue", ""), c("change", "")) : (c("update:modelValue", n.value), c("change", n.value)), ge();
1502
+ }
1503
+ function xl(n) {
1504
+ var r;
1505
+ n.stopPropagation();
1506
+ const s = l.multiple ? [] : "";
1507
+ c("update:modelValue", s), c("change", s), (r = u.value) == null || r.focus();
1508
+ }
1509
+ function el(n, s) {
1510
+ const r = F.value.filter((p) => p !== n);
1511
+ c("update:modelValue", r), c("change", r);
1512
+ }
1513
+ function ll(n) {
1514
+ var r, p;
1515
+ const s = n.target;
1516
+ if (!((r = B.value) != null && r.contains(s))) {
1517
+ if (l.teleport && ((p = _.value) != null && p.contains(s))) return;
1518
+ d.value = !1;
1519
+ }
1520
+ }
1521
+ function pl() {
1522
+ m.value = !0;
1523
+ }
1524
+ function wl() {
1525
+ m.value = !1;
1526
+ }
1527
+ function tl() {
1528
+ const n = x.value.trim();
1529
+ if (!n) return;
1530
+ const s = n.toLowerCase().replace(/\s+/g, "-");
1531
+ if (c("create", n), l.multiple) {
1532
+ const r = [...F.value, s];
1533
+ c("update:modelValue", r), c("change", r);
1534
+ } else
1535
+ c("update:modelValue", s), c("change", s), ge();
1536
+ x.value = "";
1537
+ }
1538
+ function al() {
1539
+ if (l.direction !== "auto") {
1540
+ P.value = l.direction;
1541
+ return;
1542
+ }
1543
+ if (!B.value) {
1544
+ P.value = "down";
1545
+ return;
1546
+ }
1547
+ const n = B.value.getBoundingClientRect(), s = window.innerHeight - n.bottom, r = n.top;
1548
+ P.value = s < 280 && r > s ? "up" : "down";
1549
+ }
1550
+ function $l() {
1551
+ if (!B.value) return;
1552
+ al();
1553
+ const n = B.value.getBoundingClientRect();
1554
+ P.value === "up" ? z.value = {
1555
+ position: "fixed",
1556
+ bottom: `${window.innerHeight - n.top + 4}px`,
1557
+ left: `${n.left}px`,
1558
+ width: `${n.width}px`,
1559
+ zIndex: "9999"
1560
+ } : z.value = {
1561
+ position: "fixed",
1562
+ top: `${n.bottom + 4}px`,
1563
+ left: `${n.left}px`,
1564
+ width: `${n.width}px`,
1565
+ zIndex: "9999"
1566
+ };
1567
+ }
1568
+ function ol(n) {
1569
+ const s = n.target;
1570
+ if (!s) return;
1571
+ s.scrollHeight - s.scrollTop - s.clientHeight < 40 && !se.value && !l.loading && (se.value = !0, c("loadMore"));
1572
+ }
1573
+ function Qe(n) {
1574
+ switch (I.value.length + (fe.value ? 1 : 0), n.key) {
1575
+ case "Enter":
1576
+ case " ":
1577
+ if (l.searchable && d.value && n.key === " ") return;
1578
+ if (n.preventDefault(), d.value)
1579
+ if (fe.value && b.value === I.value.length)
1580
+ tl();
1581
+ else {
1582
+ const s = I.value[b.value];
1583
+ s && !s.disabled && me(s);
1584
+ }
1585
+ else
1586
+ C();
1587
+ break;
1588
+ case "ArrowDown":
1589
+ n.preventDefault(), d.value ? il(1) : C();
1590
+ break;
1591
+ case "ArrowUp":
1592
+ n.preventDefault(), d.value ? il(-1) : C();
1593
+ break;
1594
+ case "Home":
1595
+ n.preventDefault(), d.value && Cl();
1596
+ break;
1597
+ case "End":
1598
+ n.preventDefault(), d.value && _l();
1599
+ break;
1600
+ case "Escape":
1601
+ n.preventDefault(), ge();
1602
+ break;
1603
+ case "Backspace":
1604
+ l.multiple && l.searchable && d.value && !x.value && F.value.length > 0 && el(F.value[F.value.length - 1]);
1605
+ break;
1606
+ case "Tab":
1607
+ d.value && (d.value = !1);
1608
+ break;
1609
+ default:
1610
+ !l.searchable && n.key.length === 1 && !n.ctrlKey && !n.metaKey && (n.preventDefault(), Bl(n.key));
1611
+ }
1612
+ }
1613
+ function il(n) {
1614
+ var xe, nl;
1615
+ const s = I.value, r = s.length + (fe.value ? 1 : 0);
1616
+ if (r === 0) return;
1617
+ let p = b.value, V = 0;
1618
+ do
1619
+ if (p += n, p < 0 && (p = r - 1), p >= r && (p = 0), V++, p === s.length && fe.value) break;
1620
+ while (p < s.length && ((xe = s[p]) != null && xe.disabled) && V < r);
1621
+ (p === s.length || !((nl = s[p]) != null && nl.disabled)) && (b.value = p, ie(() => Ce()));
1622
+ }
1623
+ function Cl() {
1624
+ const n = I.value.findIndex((s) => !s.disabled);
1625
+ n >= 0 && (b.value = n, ie(() => Ce()));
1626
+ }
1627
+ function _l() {
1628
+ if (fe.value) {
1629
+ b.value = I.value.length, ie(() => Ce());
1630
+ return;
1631
+ }
1632
+ const n = I.value;
1633
+ for (let s = n.length - 1; s >= 0; s--)
1634
+ if (!n[s].disabled) {
1635
+ b.value = s, ie(() => Ce());
1636
+ return;
1637
+ }
1638
+ }
1639
+ function Bl(n) {
1640
+ M.value += n.toLowerCase(), w.value && clearTimeout(w.value), w.value = setTimeout(() => {
1641
+ M.value = "";
1642
+ }, 500);
1643
+ const s = M.value, r = R.value, p = b.value >= 0 ? b.value : 0;
1644
+ for (let V = 0; V < r.length; V++) {
1645
+ const xe = (p + V) % r.length;
1646
+ if (!r[xe].disabled && r[xe].label.toLowerCase().startsWith(s)) {
1647
+ b.value = xe, d.value || C(), ie(() => Ce());
1648
+ return;
1649
+ }
1650
+ }
1651
+ }
1652
+ function Ce() {
1653
+ var s;
1654
+ const n = (s = _.value) == null ? void 0 : s.querySelector('[data-active="true"]');
1655
+ n == null || n.scrollIntoView({ block: "nearest" });
1656
+ }
1657
+ function _e(n) {
1658
+ return `${W.value}-option-${n}`;
1659
+ }
1660
+ function ye(n) {
1661
+ return I.value.indexOf(n);
1662
+ }
1663
+ function E(n) {
1664
+ return F.value.includes(n.value);
1665
+ }
1666
+ return (n, s) => (t(), a("div", {
1667
+ ref_key: "selectRoot",
1668
+ ref: B,
1669
+ class: h(["orb-select", `orb-select--${e.size}`])
1670
+ }, [
1671
+ e.label ? (t(), le(ae(Ke), {
1672
+ key: 0,
1673
+ label: e.label,
1674
+ required: e.required,
1675
+ optional: e.optional,
1676
+ disabled: q.value
1677
+ }, null, 8, ["label", "required", "optional", "disabled"])) : i("", !0),
1678
+ ve(ae(Ne), {
1679
+ size: e.size,
1680
+ focused: m.value,
1681
+ invalid: oe.value,
1682
+ disabled: q.value
1683
+ }, {
1684
+ default: te(() => {
1685
+ var r;
1686
+ return [
1687
+ o("button", {
1688
+ ref_key: "triggerRef",
1689
+ ref: u,
1690
+ type: "button",
1691
+ role: "combobox",
1692
+ id: e.id,
1693
+ "aria-expanded": d.value,
1694
+ "aria-haspopup": "listbox",
1695
+ "aria-controls": W.value,
1696
+ "aria-activedescendant": b.value >= 0 ? _e(b.value) : void 0,
1697
+ "aria-invalid": oe.value ? !0 : void 0,
1698
+ "aria-label": e.label ? void 0 : e.placeholder || "Selecionar",
1699
+ "aria-multiselectable": e.multiple || void 0,
1700
+ disabled: q.value,
1701
+ class: h(["orb-select__trigger", { "orb-select__trigger--multi": e.multiple && j.value }]),
1702
+ onClick: $,
1703
+ onKeydown: Qe,
1704
+ onFocus: pl,
1705
+ onBlur: wl
1706
+ }, [
1707
+ e.multiple ? (t(), a(K, { key: 1 }, [
1708
+ j.value ? (t(), a("div", Xt, [
1709
+ (t(!0), a(K, null, pe(Ue.value, (p) => (t(), a("span", {
1710
+ key: p.value,
1711
+ class: "orb-select__tag"
1712
+ }, [
1713
+ p.icon ? (t(), a("span", {
1714
+ key: 0,
1715
+ class: "orb-select__tag-icon",
1716
+ "aria-hidden": "true",
1717
+ innerHTML: p.icon
1718
+ }, null, 8, ea)) : i("", !0),
1719
+ o("span", la, f(p.label), 1),
1720
+ o("button", {
1721
+ type: "button",
1722
+ class: "orb-select__tag-remove",
1723
+ "aria-label": `Remover ${p.label}`,
1724
+ onClick: $e((V) => el(p.value), ["stop"]),
1725
+ onMousedown: s[0] || (s[0] = $e(() => {
1726
+ }, ["prevent"]))
1727
+ }, [...s[6] || (s[6] = [
1728
+ o("svg", {
1729
+ xmlns: "http://www.w3.org/2000/svg",
1730
+ viewBox: "0 0 256 256",
1731
+ fill: "currentColor",
1732
+ "aria-hidden": "true"
1733
+ }, [
1734
+ o("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" })
1735
+ ], -1)
1736
+ ])], 40, ta)
1737
+ ]))), 128)),
1738
+ qe.value > 0 ? (t(), a("span", aa, " +" + f(qe.value), 1)) : i("", !0)
1739
+ ])) : (t(), a("span", oa, f(e.placeholder || ""), 1))
1740
+ ], 64)) : (t(), a(K, { key: 0 }, [
1741
+ (r = he.value) != null && r.icon && j.value ? (t(), a("span", {
1742
+ key: 0,
1743
+ class: "orb-select__trigger-icon",
1744
+ "aria-hidden": "true",
1745
+ innerHTML: he.value.icon
1746
+ }, null, 8, Jt)) : i("", !0),
1747
+ o("span", {
1748
+ class: h(["orb-select__value", { "orb-select__value--placeholder": !j.value }])
1749
+ }, [
1750
+ A(n.$slots, "selected", { option: he.value }, () => [
1751
+ N(f(j.value ? O.value : e.placeholder || ""), 1)
1752
+ ])
1753
+ ], 2)
1754
+ ], 64)),
1755
+ e.loading ? (t(), a("span", ia, [...s[7] || (s[7] = [
1756
+ o("svg", {
1757
+ viewBox: "0 0 16 16",
1758
+ fill: "none"
1759
+ }, [
1760
+ o("circle", {
1761
+ cx: "8",
1762
+ cy: "8",
1763
+ r: "6",
1764
+ stroke: "currentColor",
1765
+ "stroke-width": "2",
1766
+ "stroke-linecap": "round",
1767
+ "stroke-dasharray": "28",
1768
+ "stroke-dashoffset": "8"
1769
+ })
1770
+ ], -1)
1771
+ ])])) : i("", !0),
1772
+ e.clearable && j.value && !q.value && !e.loading ? (t(), a("button", {
1773
+ key: 3,
1774
+ type: "button",
1775
+ class: "orb-select__clear",
1776
+ "aria-label": "Limpar seleção",
1777
+ onClick: xl,
1778
+ onMousedown: s[1] || (s[1] = $e(() => {
1779
+ }, ["prevent"]))
1780
+ }, [...s[8] || (s[8] = [
1781
+ o("svg", {
1782
+ xmlns: "http://www.w3.org/2000/svg",
1783
+ viewBox: "0 0 256 256",
1784
+ fill: "currentColor",
1785
+ "aria-hidden": "true"
1786
+ }, [
1787
+ o("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" })
1788
+ ], -1)
1789
+ ])], 32)) : i("", !0),
1790
+ e.loading ? i("", !0) : (t(), a("span", {
1791
+ key: 4,
1792
+ class: h(["orb-select__chevron", { "orb-select__chevron--open": d.value }]),
1793
+ "aria-hidden": "true"
1794
+ }, [...s[9] || (s[9] = [
1795
+ o("svg", {
1796
+ xmlns: "http://www.w3.org/2000/svg",
1797
+ viewBox: "0 0 256 256",
1798
+ fill: "currentColor"
1799
+ }, [
1800
+ o("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" })
1801
+ ], -1)
1802
+ ])], 2))
1803
+ ], 42, Yt)
1804
+ ];
1805
+ }),
1806
+ _: 3
1807
+ }, 8, ["size", "focused", "invalid", "disabled"]),
1808
+ e.teleport ? i("", !0) : Ze((t(), a("div", {
1809
+ key: 1,
1810
+ ref_key: "listboxRef",
1811
+ ref: _,
1812
+ class: h(["orb-select__listbox", { "orb-select__listbox--up": P.value === "up" }]),
1813
+ "aria-label": e.label || e.placeholder || "Opções"
1814
+ }, [
1815
+ o("div", sa, [
1816
+ n.$slots["dropdown-header"] ? (t(), a("div", ra, [
1817
+ A(n.$slots, "dropdown-header")
1818
+ ])) : i("", !0),
1819
+ e.searchable ? (t(), a("div", da, [
1820
+ s[10] || (s[10] = o("span", {
1821
+ class: "orb-select__search-icon",
1822
+ "aria-hidden": "true"
1823
+ }, [
1824
+ o("svg", {
1825
+ xmlns: "http://www.w3.org/2000/svg",
1826
+ viewBox: "0 0 256 256",
1827
+ fill: "currentColor"
1828
+ }, [
1829
+ o("path", { d: "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" })
1830
+ ])
1831
+ ], -1)),
1832
+ Ze(o("input", {
1833
+ ref_key: "searchInputRef",
1834
+ ref: g,
1835
+ "onUpdate:modelValue": s[2] || (s[2] = (r) => x.value = r),
1836
+ type: "text",
1837
+ class: "orb-select__search-input",
1838
+ placeholder: e.searchPlaceholder,
1839
+ autocomplete: "off",
1840
+ onKeydown: Qe
1841
+ }, null, 40, ca), [
1842
+ [Xe, x.value]
1843
+ ])
1844
+ ])) : i("", !0),
1845
+ o("div", {
1846
+ ref_key: "optionsContainerRef",
1847
+ ref: G,
1848
+ id: W.value,
1849
+ role: "listbox",
1850
+ "aria-multiselectable": e.multiple || void 0,
1851
+ class: "orb-select__options",
1852
+ onScroll: ol
1853
+ }, [
1854
+ De.value ? (t(!0), a(K, { key: 0 }, pe(e.searchable ? ke.value : e.options, (r, p) => (t(), a(K, { key: p }, [
1855
+ "options" in r ? (t(), a(K, { key: 0 }, [
1856
+ o("div", ba, f(r.label), 1),
1857
+ (t(!0), a(K, null, pe(r.options, (V) => (t(), a("div", {
1858
+ key: V.value,
1859
+ id: _e(ye(V)),
1860
+ role: "option",
1861
+ "aria-selected": E(V),
1862
+ "aria-disabled": V.disabled || void 0,
1863
+ "data-active": ye(V) === b.value,
1864
+ class: h([
1865
+ "orb-select__option",
1866
+ {
1867
+ "orb-select__option--selected": E(V),
1868
+ "orb-select__option--active": ye(V) === b.value,
1869
+ "orb-select__option--disabled": V.disabled
1870
+ }
1871
+ ]),
1872
+ onClick: (xe) => me(V),
1873
+ onMouseenter: (xe) => b.value = ye(V)
1874
+ }, [
1875
+ e.multiple ? (t(), a("span", {
1876
+ key: 0,
1877
+ class: h(["orb-select__option-checkbox", { "orb-select__option-checkbox--checked": E(V) }]),
1878
+ "aria-hidden": "true"
1879
+ }, [
1880
+ E(V) ? (t(), a("svg", fa, [...s[11] || (s[11] = [
1881
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }, null, -1)
1882
+ ])])) : i("", !0)
1883
+ ], 2)) : i("", !0),
1884
+ V.icon ? (t(), a("span", {
1885
+ key: 1,
1886
+ class: "orb-select__option-icon",
1887
+ "aria-hidden": "true",
1888
+ innerHTML: V.icon
1889
+ }, null, 8, va)) : i("", !0),
1890
+ o("span", ka, [
1891
+ o("span", ga, f(V.label), 1),
1892
+ V.description ? (t(), a("span", ma, f(V.description), 1)) : i("", !0)
1893
+ ]),
1894
+ !e.multiple && E(V) ? (t(), a("span", ya, [...s[12] || (s[12] = [
1895
+ o("svg", {
1896
+ xmlns: "http://www.w3.org/2000/svg",
1897
+ viewBox: "0 0 256 256",
1898
+ fill: "currentColor"
1899
+ }, [
1900
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" })
1901
+ ], -1)
1902
+ ])])) : i("", !0)
1903
+ ], 42, ha))), 128))
1904
+ ], 64)) : (t(), a("div", {
1905
+ key: 1,
1906
+ id: _e(ye(r)),
1907
+ role: "option",
1908
+ "aria-selected": E(r),
1909
+ "aria-disabled": r.disabled || void 0,
1910
+ "data-active": ye(r) === b.value,
1911
+ class: h([
1912
+ "orb-select__option",
1913
+ {
1914
+ "orb-select__option--selected": E(r),
1915
+ "orb-select__option--active": ye(r) === b.value,
1916
+ "orb-select__option--disabled": r.disabled
1917
+ }
1918
+ ]),
1919
+ onClick: (V) => me(r),
1920
+ onMouseenter: (V) => b.value = ye(r)
1921
+ }, [
1922
+ e.multiple ? (t(), a("span", {
1923
+ key: 0,
1924
+ class: h(["orb-select__option-checkbox", { "orb-select__option-checkbox--checked": E(r) }]),
1925
+ "aria-hidden": "true"
1926
+ }, [
1927
+ E(r) ? (t(), a("svg", pa, [...s[13] || (s[13] = [
1928
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }, null, -1)
1929
+ ])])) : i("", !0)
1930
+ ], 2)) : i("", !0),
1931
+ r.icon ? (t(), a("span", {
1932
+ key: 1,
1933
+ class: "orb-select__option-icon",
1934
+ "aria-hidden": "true",
1935
+ innerHTML: r.icon
1936
+ }, null, 8, wa)) : i("", !0),
1937
+ o("span", $a, [
1938
+ o("span", Ca, f(r.label), 1),
1939
+ r.description ? (t(), a("span", _a, f(r.description), 1)) : i("", !0)
1940
+ ]),
1941
+ !e.multiple && E(r) ? (t(), a("span", Ba, [...s[14] || (s[14] = [
1942
+ o("svg", {
1943
+ xmlns: "http://www.w3.org/2000/svg",
1944
+ viewBox: "0 0 256 256",
1945
+ fill: "currentColor"
1946
+ }, [
1947
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" })
1948
+ ], -1)
1949
+ ])])) : i("", !0)
1950
+ ], 42, xa))
1951
+ ], 64))), 128)) : (t(!0), a(K, { key: 1 }, pe(I.value, (r, p) => (t(), a("div", {
1952
+ key: r.value,
1953
+ id: _e(p),
1954
+ role: "option",
1955
+ "aria-selected": E(r),
1956
+ "aria-disabled": r.disabled || void 0,
1957
+ "data-active": p === b.value,
1958
+ class: h([
1959
+ "orb-select__option",
1960
+ {
1961
+ "orb-select__option--selected": E(r),
1962
+ "orb-select__option--active": p === b.value,
1963
+ "orb-select__option--disabled": r.disabled
1964
+ }
1965
+ ]),
1966
+ onClick: (V) => me(r),
1967
+ onMouseenter: (V) => b.value = p
1968
+ }, [
1969
+ e.multiple ? (t(), a("span", {
1970
+ key: 0,
1971
+ class: h(["orb-select__option-checkbox", { "orb-select__option-checkbox--checked": E(r) }]),
1972
+ "aria-hidden": "true"
1973
+ }, [
1974
+ E(r) ? (t(), a("svg", Oa, [...s[15] || (s[15] = [
1975
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }, null, -1)
1976
+ ])])) : i("", !0)
1977
+ ], 2)) : i("", !0),
1978
+ r.icon ? (t(), a("span", {
1979
+ key: 1,
1980
+ class: "orb-select__option-icon",
1981
+ "aria-hidden": "true",
1982
+ innerHTML: r.icon
1983
+ }, null, 8, Sa)) : i("", !0),
1984
+ o("span", La, [
1985
+ o("span", Va, f(r.label), 1),
1986
+ r.description ? (t(), a("span", Ma, f(r.description), 1)) : i("", !0)
1987
+ ]),
1988
+ !e.multiple && E(r) ? (t(), a("span", za, [...s[16] || (s[16] = [
1989
+ o("svg", {
1990
+ xmlns: "http://www.w3.org/2000/svg",
1991
+ viewBox: "0 0 256 256",
1992
+ fill: "currentColor"
1993
+ }, [
1994
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" })
1995
+ ], -1)
1996
+ ])])) : i("", !0)
1997
+ ], 42, Ta))), 128)),
1998
+ fe.value ? (t(), a("div", {
1999
+ key: 2,
2000
+ id: _e(I.value.length),
2001
+ role: "option",
2002
+ "aria-selected": !1,
2003
+ "data-active": b.value === I.value.length,
2004
+ class: h([
2005
+ "orb-select__option",
2006
+ "orb-select__option--create",
2007
+ { "orb-select__option--active": b.value === I.value.length }
2008
+ ]),
2009
+ onClick: tl,
2010
+ onMouseenter: s[3] || (s[3] = (r) => b.value = I.value.length)
2011
+ }, [
2012
+ s[17] || (s[17] = o("span", {
2013
+ class: "orb-select__create-icon",
2014
+ "aria-hidden": "true"
2015
+ }, [
2016
+ o("svg", {
2017
+ xmlns: "http://www.w3.org/2000/svg",
2018
+ viewBox: "0 0 256 256",
2019
+ fill: "currentColor"
2020
+ }, [
2021
+ o("path", { d: "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z" })
2022
+ ])
2023
+ ], -1)),
2024
+ o("span", Fa, f(e.createLabel.replace("{query}", x.value.trim())), 1)
2025
+ ], 42, Aa)) : i("", !0),
2026
+ U.value && !fe.value ? (t(), a("div", Ra, f(e.searchable && x.value ? "Nenhum resultado encontrado" : "Nenhuma opção disponível"), 1)) : i("", !0),
2027
+ Q.value ? (t(), a("div", Da, " Limite de " + f(e.maxSelections) + " " + f(e.maxSelections === 1 ? "seleção" : "seleções") + " atingido ", 1)) : i("", !0)
2028
+ ], 40, ua),
2029
+ n.$slots["dropdown-footer"] ? (t(), a("div", Ha, [
2030
+ A(n.$slots, "dropdown-footer")
2031
+ ])) : i("", !0)
2032
+ ])
2033
+ ], 10, na)), [
2034
+ [sl, d.value]
2035
+ ]),
2036
+ (t(), le(kl, {
2037
+ to: typeof e.teleport == "string" ? e.teleport : "body",
2038
+ disabled: !e.teleport
2039
+ }, [
2040
+ e.teleport ? Ze((t(), a("div", {
2041
+ key: 0,
2042
+ ref_key: "listboxRef",
2043
+ ref: _,
2044
+ class: h(["orb-select__listbox", `orb-select--${e.size}`, { "orb-select__listbox--up": P.value === "up" }]),
2045
+ style: Ge(z.value),
2046
+ "aria-label": e.label || e.placeholder || "Opções",
2047
+ onMousedown: s[5] || (s[5] = $e(() => {
2048
+ }, ["prevent"]))
2049
+ }, [
2050
+ o("div", Wa, [
2051
+ n.$slots["dropdown-header"] ? (t(), a("div", Za, [
2052
+ A(n.$slots, "dropdown-header")
2053
+ ])) : i("", !0),
2054
+ e.searchable ? (t(), a("div", Ea, [
2055
+ s[18] || (s[18] = o("span", {
2056
+ class: "orb-select__search-icon",
2057
+ "aria-hidden": "true"
2058
+ }, [
2059
+ o("svg", {
2060
+ xmlns: "http://www.w3.org/2000/svg",
2061
+ viewBox: "0 0 256 256",
2062
+ fill: "currentColor"
2063
+ }, [
2064
+ o("path", { d: "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" })
2065
+ ])
2066
+ ], -1)),
2067
+ Ze(o("input", {
2068
+ ref_key: "searchInputRef",
2069
+ ref: g,
2070
+ "onUpdate:modelValue": s[4] || (s[4] = (r) => x.value = r),
2071
+ type: "text",
2072
+ class: "orb-select__search-input",
2073
+ placeholder: e.searchPlaceholder,
2074
+ autocomplete: "off",
2075
+ onKeydown: Qe
2076
+ }, null, 40, Pa), [
2077
+ [Xe, x.value]
2078
+ ])
2079
+ ])) : i("", !0),
2080
+ o("div", {
2081
+ id: W.value,
2082
+ role: "listbox",
2083
+ "aria-multiselectable": e.multiple || void 0,
2084
+ class: "orb-select__options",
2085
+ onScroll: ol
2086
+ }, [
2087
+ (t(!0), a(K, null, pe(I.value, (r, p) => (t(), a("div", {
2088
+ key: r.value,
2089
+ id: _e(p),
2090
+ role: "option",
2091
+ "aria-selected": E(r),
2092
+ "aria-disabled": r.disabled || void 0,
2093
+ "data-active": p === b.value,
2094
+ class: h([
2095
+ "orb-select__option",
2096
+ {
2097
+ "orb-select__option--selected": E(r),
2098
+ "orb-select__option--active": p === b.value,
2099
+ "orb-select__option--disabled": r.disabled
2100
+ }
2101
+ ]),
2102
+ onClick: (V) => me(r),
2103
+ onMouseenter: (V) => b.value = p
2104
+ }, [
2105
+ e.multiple ? (t(), a("span", {
2106
+ key: 0,
2107
+ class: h(["orb-select__option-checkbox", { "orb-select__option-checkbox--checked": E(r) }]),
2108
+ "aria-hidden": "true"
2109
+ }, [
2110
+ E(r) ? (t(), a("svg", Ga, [...s[19] || (s[19] = [
2111
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" }, null, -1)
2112
+ ])])) : i("", !0)
2113
+ ], 2)) : i("", !0),
2114
+ r.icon ? (t(), a("span", {
2115
+ key: 1,
2116
+ class: "orb-select__option-icon",
2117
+ "aria-hidden": "true",
2118
+ innerHTML: r.icon
2119
+ }, null, 8, Ka)) : i("", !0),
2120
+ o("span", Na, [
2121
+ o("span", Ua, f(r.label), 1),
2122
+ r.description ? (t(), a("span", Qa, f(r.description), 1)) : i("", !0)
2123
+ ]),
2124
+ !e.multiple && E(r) ? (t(), a("span", Ya, [...s[20] || (s[20] = [
2125
+ o("svg", {
2126
+ xmlns: "http://www.w3.org/2000/svg",
2127
+ viewBox: "0 0 256 256",
2128
+ fill: "currentColor"
2129
+ }, [
2130
+ o("path", { d: "M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z" })
2131
+ ], -1)
2132
+ ])])) : i("", !0)
2133
+ ], 42, ja))), 128)),
2134
+ U.value ? (t(), a("div", Ja, f(e.searchable && x.value ? "Nenhum resultado encontrado" : "Nenhuma opção disponível"), 1)) : i("", !0),
2135
+ Q.value ? (t(), a("div", Xa, " Limite de " + f(e.maxSelections) + " " + f(e.maxSelections === 1 ? "seleção" : "seleções") + " atingido ", 1)) : i("", !0)
2136
+ ], 40, qa),
2137
+ n.$slots["dropdown-footer"] ? (t(), a("div", eo, [
2138
+ A(n.$slots, "dropdown-footer")
2139
+ ])) : i("", !0)
2140
+ ])
2141
+ ], 46, Ia)), [
2142
+ [sl, d.value]
2143
+ ]) : i("", !0)
2144
+ ], 8, ["to", "disabled"])),
2145
+ e.helpText ? (t(), le(ae(Re), {
2146
+ key: 2,
2147
+ variant: oe.value ? "negative" : "neutral",
2148
+ disabled: q.value
2149
+ }, {
2150
+ default: te(() => [
2151
+ N(f(e.helpText), 1)
2152
+ ]),
2153
+ _: 1
2154
+ }, 8, ["variant", "disabled"])) : i("", !0)
2155
+ ], 2));
2156
+ }
2157
+ }), to = ["role"], ao = {
2158
+ key: 0,
2159
+ class: "orb-alert__icon"
2160
+ }, oo = { class: "orb-alert__content" }, io = {
2161
+ key: 0,
2162
+ class: "orb-alert__title"
2163
+ }, no = {
2164
+ key: 1,
2165
+ class: "orb-alert__description"
2166
+ }, so = {
2167
+ key: 2,
2168
+ class: "orb-alert__actions"
2169
+ }, ro = /* @__PURE__ */ Z({
2170
+ __name: "OAlert",
2171
+ props: {
2172
+ variant: { default: "info" },
2173
+ appearance: { default: "soft" },
2174
+ title: {},
2175
+ closable: { type: Boolean, default: !1 },
2176
+ hideIcon: { type: Boolean, default: !1 }
2177
+ },
2178
+ emits: ["close"],
2179
+ setup(e, { emit: v }) {
2180
+ const l = e, c = v, d = T(!0), m = T(!1), u = k(() => !l.hideIcon && l.variant !== "neutral"), _ = k(() => l.variant === "warning" || l.variant === "error" ? "alert" : "status");
2181
+ function g() {
2182
+ m.value = !0;
2183
+ }
2184
+ function B() {
2185
+ m.value && (d.value = !1, c("close"));
2186
+ }
2187
+ return (b, M) => d.value ? (t(), a("div", {
2188
+ key: 0,
2189
+ class: h([
2190
+ "orb-alert",
2191
+ `orb-alert--${e.variant}`,
2192
+ `orb-alert--${e.appearance}`,
2193
+ { "orb-alert--closing": m.value },
2194
+ { "orb-alert--has-icon": u.value }
2195
+ ]),
2196
+ role: _.value,
2197
+ onTransitionend: B
2198
+ }, [
2199
+ u.value ? (t(), a("span", ao, [
2200
+ A(b.$slots, "icon", {}, () => [
2201
+ ve(ae(Ee), {
2202
+ status: e.variant,
2203
+ size: "md"
2204
+ }, null, 8, ["status"])
2205
+ ])
2206
+ ])) : i("", !0),
2207
+ o("div", oo, [
2208
+ e.title ? (t(), a("p", io, f(e.title), 1)) : i("", !0),
2209
+ b.$slots.default ? (t(), a("div", no, [
2210
+ A(b.$slots, "default")
2211
+ ])) : i("", !0),
2212
+ b.$slots.actions ? (t(), a("div", so, [
2213
+ A(b.$slots, "actions")
2214
+ ])) : i("", !0)
2215
+ ]),
2216
+ e.closable ? (t(), a("button", {
2217
+ key: 1,
2218
+ type: "button",
2219
+ class: "orb-alert__close",
2220
+ "aria-label": "Fechar",
2221
+ onClick: g
2222
+ }, [...M[0] || (M[0] = [
2223
+ o("svg", {
2224
+ viewBox: "0 0 256 256",
2225
+ fill: "currentColor",
2226
+ "aria-hidden": "true"
2227
+ }, [
2228
+ o("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" })
2229
+ ], -1)
2230
+ ])])) : i("", !0)
2231
+ ], 42, to)) : i("", !0);
2232
+ }
2233
+ }), co = ["role", "aria-label", "aria-labelledby", "aria-describedby", "aria-busy"], uo = {
2234
+ key: 0,
2235
+ class: "orb-dialog__hero"
2236
+ }, bo = { class: "orb-dialog__hero-actions" }, ho = ["aria-label"], fo = {
2237
+ key: 0,
2238
+ width: "18",
2239
+ height: "18",
2240
+ viewBox: "0 0 24 24",
2241
+ fill: "none",
2242
+ stroke: "currentColor",
2243
+ "stroke-width": "2",
2244
+ "stroke-linecap": "round",
2245
+ "stroke-linejoin": "round",
2246
+ "aria-hidden": "true"
2247
+ }, vo = {
2248
+ key: 1,
2249
+ width: "18",
2250
+ height: "18",
2251
+ viewBox: "0 0 24 24",
2252
+ fill: "none",
2253
+ stroke: "currentColor",
2254
+ "stroke-width": "2",
2255
+ "stroke-linecap": "round",
2256
+ "stroke-linejoin": "round",
2257
+ "aria-hidden": "true"
2258
+ }, ko = ["disabled"], go = {
2259
+ key: 0,
2260
+ class: "orb-dialog__spinner",
2261
+ width: "20",
2262
+ height: "20",
2263
+ viewBox: "0 0 24 24",
2264
+ fill: "none",
2265
+ "aria-hidden": "true"
2266
+ }, mo = {
2267
+ key: 1,
2268
+ width: "20",
2269
+ height: "20",
2270
+ viewBox: "0 0 24 24",
2271
+ fill: "none",
2272
+ stroke: "currentColor",
2273
+ "stroke-width": "2",
2274
+ "stroke-linecap": "round",
2275
+ "stroke-linejoin": "round",
2276
+ "aria-hidden": "true"
2277
+ }, yo = { class: "orb-dialog__header-text" }, xo = ["aria-label"], po = {
2278
+ key: 0,
2279
+ width: "18",
2280
+ height: "18",
2281
+ viewBox: "0 0 24 24",
2282
+ fill: "none",
2283
+ stroke: "currentColor",
2284
+ "stroke-width": "2",
2285
+ "stroke-linecap": "round",
2286
+ "stroke-linejoin": "round",
2287
+ "aria-hidden": "true"
2288
+ }, wo = {
2289
+ key: 1,
2290
+ width: "18",
2291
+ height: "18",
2292
+ viewBox: "0 0 24 24",
2293
+ fill: "none",
2294
+ stroke: "currentColor",
2295
+ "stroke-width": "2",
2296
+ "stroke-linecap": "round",
2297
+ "stroke-linejoin": "round",
2298
+ "aria-hidden": "true"
2299
+ }, $o = ["disabled"], Co = {
2300
+ key: 0,
2301
+ class: "orb-dialog__spinner",
2302
+ width: "20",
2303
+ height: "20",
2304
+ viewBox: "0 0 24 24",
2305
+ fill: "none",
2306
+ "aria-hidden": "true"
2307
+ }, _o = {
2308
+ key: 1,
2309
+ width: "20",
2310
+ height: "20",
2311
+ viewBox: "0 0 24 24",
2312
+ fill: "none",
2313
+ stroke: "currentColor",
2314
+ "stroke-width": "2",
2315
+ "stroke-linecap": "round",
2316
+ "stroke-linejoin": "round",
2317
+ "aria-hidden": "true"
2318
+ }, Be = [];
2319
+ let He = 0, rl = "", dl = "";
2320
+ const gl = /* @__PURE__ */ Z({
2321
+ __name: "ODialog",
2322
+ props: {
2323
+ open: { type: Boolean, default: !1 },
2324
+ size: { default: "md" },
2325
+ title: {},
2326
+ description: {},
2327
+ role: { default: "dialog" },
2328
+ backdrop: { default: "opaque" },
2329
+ closeOnOverlayClick: { type: Boolean, default: !0 },
2330
+ closeOnEscape: { type: Boolean, default: !0 },
2331
+ preventBodyScroll: { type: Boolean, default: !0 },
2332
+ scrollBehavior: { default: "inside" },
2333
+ showCloseButton: { type: Boolean, default: !0 },
2334
+ initialFocusRef: {},
2335
+ returnFocusRef: {},
2336
+ ariaLabel: {},
2337
+ motionPreset: { default: "scale" },
2338
+ loading: { type: Boolean, default: !1 },
2339
+ preventCloseWhileLoading: { type: Boolean, default: !0 },
2340
+ beforeClose: {},
2341
+ responsive: { type: Boolean, default: !0 },
2342
+ allowFullscreen: { type: Boolean, default: !1 },
2343
+ position: { default: "center" }
2344
+ },
2345
+ emits: ["update:open", "close"],
2346
+ setup(e, { emit: v }) {
2347
+ const l = e, c = v, d = `orb-dialog-${Math.random().toString(36).slice(2, 8)}`, m = T(null), u = T(null), _ = `orb-dialog-title-${Math.random().toString(36).slice(2, 8)}`, g = `orb-dialog-desc-${Math.random().toString(36).slice(2, 8)}`, B = T(0), b = T(!1), M = T(!1), w = T(!1), x = T(!1);
2348
+ let z = null;
2349
+ function P() {
2350
+ M.value = !M.value;
2351
+ }
2352
+ async function G($) {
2353
+ if (!(l.loading && l.preventCloseWhileLoading) && !b.value) {
2354
+ if (l.beforeClose) {
2355
+ b.value = !0;
2356
+ try {
2357
+ if (await l.beforeClose($) === !1) {
2358
+ b.value = !1;
2359
+ return;
2360
+ }
2361
+ } catch {
2362
+ b.value = !1;
2363
+ return;
2364
+ }
2365
+ }
2366
+ b.value = !1, c("update:open", !1), c("close", { reason: $ });
2367
+ }
2368
+ }
2369
+ function se($) {
2370
+ $.target === $.currentTarget && l.closeOnOverlayClick && l.role !== "alertdialog" && G("overlay");
2371
+ }
2372
+ function q($) {
2373
+ if ($.key === "Escape" && l.closeOnEscape && l.role !== "alertdialog") {
2374
+ const C = Be[Be.length - 1];
2375
+ if (C && C.id !== d) return;
2376
+ $.stopPropagation(), G("escape");
2377
+ return;
2378
+ }
2379
+ if ($.key === "Tab" && m.value) {
2380
+ const C = m.value.querySelectorAll(
2381
+ 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'
2382
+ );
2383
+ if (C.length === 0) return;
2384
+ const ge = C[0], me = C[C.length - 1];
2385
+ $.shiftKey ? document.activeElement === ge && ($.preventDefault(), me.focus()) : document.activeElement === me && ($.preventDefault(), ge.focus());
2386
+ }
2387
+ }
2388
+ let oe = !1;
2389
+ function F() {
2390
+ if (l.preventBodyScroll && !oe) {
2391
+ if (oe = !0, He === 0) {
2392
+ rl = document.body.style.overflow, dl = document.body.style.paddingRight;
2393
+ const $ = window.innerWidth - document.documentElement.clientWidth;
2394
+ document.body.style.overflow = "hidden", $ > 0 && (document.body.style.paddingRight = `${$}px`);
2395
+ }
2396
+ He++;
2397
+ }
2398
+ }
2399
+ function R() {
2400
+ oe && (oe = !1, He--, He <= 0 && (He = 0, document.body.style.overflow = rl, document.body.style.paddingRight = dl));
2401
+ }
2402
+ async function be() {
2403
+ var $;
2404
+ if (await ie(), ($ = l.initialFocusRef) != null && $.value) {
2405
+ l.initialFocusRef.value.focus();
2406
+ return;
2407
+ }
2408
+ if (m.value) {
2409
+ const C = m.value.querySelector(
2410
+ 'button:not([disabled]), [tabindex]:not([tabindex="-1"]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), a[href]'
2411
+ );
2412
+ C ? C.focus() : m.value.focus();
2413
+ }
2414
+ }
2415
+ function I() {
2416
+ var $;
2417
+ ($ = l.returnFocusRef) != null && $.value ? l.returnFocusRef.value.focus() : z && z.focus();
2418
+ }
2419
+ function ke() {
2420
+ if (!u.value) return;
2421
+ const $ = u.value, C = 1;
2422
+ w.value = $.scrollTop > C, x.value = $.scrollTop + $.clientHeight < $.scrollHeight - C;
2423
+ }
2424
+ async function De() {
2425
+ await ie(), u.value && l.scrollBehavior === "inside" && (ke(), u.value.addEventListener("scroll", ke, { passive: !0 }));
2426
+ }
2427
+ function he() {
2428
+ u.value && u.value.removeEventListener("scroll", ke), w.value = !1, x.value = !1;
2429
+ }
2430
+ function S() {
2431
+ Be.push({ id: d, close: () => G("escape") }), B.value = Be.length - 1;
2432
+ }
2433
+ function O() {
2434
+ const $ = Be.findIndex((C) => C.id === d);
2435
+ $ !== -1 && Be.splice($, 1), B.value = 0;
2436
+ }
2437
+ we(() => l.open, ($) => {
2438
+ $ ? (z = document.activeElement, S(), F(), be(), De()) : (M.value = !1, O(), R(), I(), he());
2439
+ }), vl(() => {
2440
+ l.open && (O(), R(), he());
2441
+ });
2442
+ const j = k(() => 1e3 + B.value * 10), W = k(() => [
2443
+ "orb-dialog-backdrop",
2444
+ `orb-dialog-backdrop--${l.backdrop}`,
2445
+ l.scrollBehavior === "outside" ? "orb-dialog-backdrop--scroll-outside" : "",
2446
+ l.responsive ? "" : "orb-dialog-backdrop--no-responsive",
2447
+ l.position === "top" ? "orb-dialog-backdrop--top" : ""
2448
+ ]), U = k(() => M.value ? "full" : l.size), Q = k(() => [
2449
+ "orb-dialog",
2450
+ `orb-dialog--${U.value}`,
2451
+ l.scrollBehavior === "inside" ? "orb-dialog--scroll-inside" : "",
2452
+ l.loading ? "orb-dialog--loading" : "",
2453
+ l.responsive ? "" : "orb-dialog--no-responsive"
2454
+ ]), fe = k(() => [
2455
+ "orb-dialog__header",
2456
+ w.value ? "orb-dialog__header--shadow" : ""
2457
+ ]), Ue = k(() => [
2458
+ "orb-dialog__footer",
2459
+ x.value ? "orb-dialog__footer--shadow" : ""
2460
+ ]), qe = k(() => l.motionPreset === "none" ? "" : `orb-dialog--${l.motionPreset}`);
2461
+ return ($, C) => (t(), le(kl, { to: "body" }, [
2462
+ ve(fl, { name: qe.value }, {
2463
+ default: te(() => [
2464
+ e.open ? (t(), a("div", {
2465
+ key: 0,
2466
+ class: h(W.value),
2467
+ style: Ge({ zIndex: j.value }),
2468
+ onMousedown: $e(se, ["self"])
2469
+ }, [
2470
+ o("div", {
2471
+ ref_key: "dialogRef",
2472
+ ref: m,
2473
+ class: h(Q.value),
2474
+ role: e.role,
2475
+ "aria-modal": "true",
2476
+ "aria-label": e.ariaLabel && !e.title ? e.ariaLabel : void 0,
2477
+ "aria-labelledby": e.title ? _ : void 0,
2478
+ "aria-describedby": e.description ? g : void 0,
2479
+ "aria-busy": e.loading || void 0,
2480
+ tabindex: "-1",
2481
+ onKeydown: q
2482
+ }, [
2483
+ $.$slots.hero ? (t(), a("div", uo, [
2484
+ A($.$slots, "hero"),
2485
+ o("div", bo, [
2486
+ e.allowFullscreen ? (t(), a("button", {
2487
+ key: 0,
2488
+ type: "button",
2489
+ class: "orb-dialog__fullscreen orb-dialog__fullscreen--over-hero",
2490
+ "aria-label": M.value ? "Restaurar tamanho" : "Tela cheia",
2491
+ onClick: P
2492
+ }, [
2493
+ M.value ? (t(), a("svg", vo, [...C[3] || (C[3] = [
2494
+ o("polyline", { points: "4 14 10 14 10 20" }, null, -1),
2495
+ o("polyline", { points: "20 10 14 10 14 4" }, null, -1),
2496
+ o("line", {
2497
+ x1: "14",
2498
+ y1: "10",
2499
+ x2: "21",
2500
+ y2: "3"
2501
+ }, null, -1),
2502
+ o("line", {
2503
+ x1: "3",
2504
+ y1: "21",
2505
+ x2: "10",
2506
+ y2: "14"
2507
+ }, null, -1)
2508
+ ])])) : (t(), a("svg", fo, [...C[2] || (C[2] = [
2509
+ o("polyline", { points: "15 3 21 3 21 9" }, null, -1),
2510
+ o("polyline", { points: "9 21 3 21 3 15" }, null, -1),
2511
+ o("line", {
2512
+ x1: "21",
2513
+ y1: "3",
2514
+ x2: "14",
2515
+ y2: "10"
2516
+ }, null, -1),
2517
+ o("line", {
2518
+ x1: "3",
2519
+ y1: "21",
2520
+ x2: "10",
2521
+ y2: "14"
2522
+ }, null, -1)
2523
+ ])]))
2524
+ ], 8, ho)) : i("", !0),
2525
+ e.showCloseButton ? (t(), a("button", {
2526
+ key: 1,
2527
+ type: "button",
2528
+ class: "orb-dialog__close orb-dialog__close--over-hero",
2529
+ "aria-label": "Fechar",
2530
+ disabled: e.loading && e.preventCloseWhileLoading,
2531
+ onClick: C[0] || (C[0] = (ge) => G("close-button"))
2532
+ }, [
2533
+ e.loading ? (t(), a("svg", go, [...C[4] || (C[4] = [
2534
+ o("circle", {
2535
+ cx: "12",
2536
+ cy: "12",
2537
+ r: "10",
2538
+ stroke: "currentColor",
2539
+ "stroke-width": "2",
2540
+ "stroke-linecap": "round",
2541
+ "stroke-dasharray": "31.4 31.4"
2542
+ }, null, -1)
2543
+ ])])) : (t(), a("svg", mo, [...C[5] || (C[5] = [
2544
+ o("line", {
2545
+ x1: "18",
2546
+ y1: "6",
2547
+ x2: "6",
2548
+ y2: "18"
2549
+ }, null, -1),
2550
+ o("line", {
2551
+ x1: "6",
2552
+ y1: "6",
2553
+ x2: "18",
2554
+ y2: "18"
2555
+ }, null, -1)
2556
+ ])]))
2557
+ ], 8, ko)) : i("", !0)
2558
+ ])
2559
+ ])) : i("", !0),
2560
+ $.$slots.header || e.title ? (t(), a("div", {
2561
+ key: 1,
2562
+ class: h(fe.value)
2563
+ }, [
2564
+ A($.$slots, "header", {}, () => [
2565
+ o("div", yo, [
2566
+ e.title ? (t(), a("h2", {
2567
+ key: 0,
2568
+ id: _,
2569
+ class: "orb-dialog__title"
2570
+ }, f(e.title), 1)) : i("", !0),
2571
+ e.description ? (t(), a("p", {
2572
+ key: 1,
2573
+ id: g,
2574
+ class: "orb-dialog__description"
2575
+ }, f(e.description), 1)) : i("", !0)
2576
+ ])
2577
+ ]),
2578
+ $.$slots.hero ? i("", !0) : (t(), a(K, { key: 0 }, [
2579
+ e.allowFullscreen ? (t(), a("button", {
2580
+ key: 0,
2581
+ type: "button",
2582
+ class: "orb-dialog__fullscreen",
2583
+ "aria-label": M.value ? "Restaurar tamanho" : "Tela cheia",
2584
+ onClick: P
2585
+ }, [
2586
+ M.value ? (t(), a("svg", wo, [...C[7] || (C[7] = [
2587
+ o("polyline", { points: "4 14 10 14 10 20" }, null, -1),
2588
+ o("polyline", { points: "20 10 14 10 14 4" }, null, -1),
2589
+ o("line", {
2590
+ x1: "14",
2591
+ y1: "10",
2592
+ x2: "21",
2593
+ y2: "3"
2594
+ }, null, -1),
2595
+ o("line", {
2596
+ x1: "3",
2597
+ y1: "21",
2598
+ x2: "10",
2599
+ y2: "14"
2600
+ }, null, -1)
2601
+ ])])) : (t(), a("svg", po, [...C[6] || (C[6] = [
2602
+ o("polyline", { points: "15 3 21 3 21 9" }, null, -1),
2603
+ o("polyline", { points: "9 21 3 21 3 15" }, null, -1),
2604
+ o("line", {
2605
+ x1: "21",
2606
+ y1: "3",
2607
+ x2: "14",
2608
+ y2: "10"
2609
+ }, null, -1),
2610
+ o("line", {
2611
+ x1: "3",
2612
+ y1: "21",
2613
+ x2: "10",
2614
+ y2: "14"
2615
+ }, null, -1)
2616
+ ])]))
2617
+ ], 8, xo)) : i("", !0),
2618
+ e.showCloseButton ? (t(), a("button", {
2619
+ key: 1,
2620
+ type: "button",
2621
+ class: "orb-dialog__close",
2622
+ "aria-label": "Fechar",
2623
+ disabled: e.loading && e.preventCloseWhileLoading,
2624
+ onClick: C[1] || (C[1] = (ge) => G("close-button"))
2625
+ }, [
2626
+ e.loading ? (t(), a("svg", Co, [...C[8] || (C[8] = [
2627
+ o("circle", {
2628
+ cx: "12",
2629
+ cy: "12",
2630
+ r: "10",
2631
+ stroke: "currentColor",
2632
+ "stroke-width": "2",
2633
+ "stroke-linecap": "round",
2634
+ "stroke-dasharray": "31.4 31.4"
2635
+ }, null, -1)
2636
+ ])])) : (t(), a("svg", _o, [...C[9] || (C[9] = [
2637
+ o("line", {
2638
+ x1: "18",
2639
+ y1: "6",
2640
+ x2: "6",
2641
+ y2: "18"
2642
+ }, null, -1),
2643
+ o("line", {
2644
+ x1: "6",
2645
+ y1: "6",
2646
+ x2: "18",
2647
+ y2: "18"
2648
+ }, null, -1)
2649
+ ])]))
2650
+ ], 8, $o)) : i("", !0)
2651
+ ], 64))
2652
+ ], 2)) : i("", !0),
2653
+ o("div", {
2654
+ ref_key: "bodyRef",
2655
+ ref: u,
2656
+ class: "orb-dialog__body"
2657
+ }, [
2658
+ A($.$slots, "default")
2659
+ ], 512),
2660
+ $.$slots.footer ? (t(), a("div", {
2661
+ key: 2,
2662
+ class: h(Ue.value)
2663
+ }, [
2664
+ A($.$slots, "footer", { loading: e.loading })
2665
+ ], 2)) : i("", !0)
2666
+ ], 42, co)
2667
+ ], 38)) : i("", !0)
2668
+ ]),
2669
+ _: 3
2670
+ }, 8, ["name"])
2671
+ ]));
2672
+ }
2673
+ }), re = Sl([]);
2674
+ function si() {
2675
+ function e(d) {
2676
+ return new Promise((m) => {
2677
+ const u = {
2678
+ id: `dlg-${Math.random().toString(36).slice(2, 8)}`,
2679
+ type: "confirm",
2680
+ variant: d.destructive ? "destructive" : "confirmation",
2681
+ open: !0,
2682
+ options: d,
2683
+ resolve: m
2684
+ };
2685
+ re.push(u);
2686
+ });
2687
+ }
2688
+ function v(d) {
2689
+ return new Promise((m) => {
2690
+ const u = {
2691
+ id: `dlg-${Math.random().toString(36).slice(2, 8)}`,
2692
+ type: "alert",
2693
+ variant: "info",
2694
+ open: !0,
2695
+ options: { ...d, confirmText: d.confirmText ?? "OK" },
2696
+ resolve: m
2697
+ };
2698
+ re.push(u);
2699
+ });
2700
+ }
2701
+ function l(d) {
2702
+ return new Promise((m) => {
2703
+ const u = {
2704
+ id: `dlg-${Math.random().toString(36).slice(2, 8)}`,
2705
+ type: "confirm",
2706
+ variant: "warning",
2707
+ open: !0,
2708
+ options: d,
2709
+ resolve: m
2710
+ };
2711
+ re.push(u);
2712
+ });
2713
+ }
2714
+ function c(d) {
2715
+ return new Promise((m) => {
2716
+ const u = {
2717
+ id: `dlg-${Math.random().toString(36).slice(2, 8)}`,
2718
+ type: "confirm",
2719
+ variant: "destructive",
2720
+ open: !0,
2721
+ options: d,
2722
+ resolve: m
2723
+ };
2724
+ re.push(u);
2725
+ });
2726
+ }
2727
+ return { confirm: e, alert: v, warning: l, destructive: c };
2728
+ }
2729
+ function Bo() {
2730
+ return re;
2731
+ }
2732
+ function cl(e, v) {
2733
+ const l = re.findIndex((c) => c.id === e);
2734
+ l !== -1 && (re[l].resolve(v), re[l].open = !1, setTimeout(() => {
2735
+ const c = re.findIndex((d) => d.id === e);
2736
+ c !== -1 && re.splice(c, 1);
2737
+ }, 300));
2738
+ }
2739
+ const To = {
2740
+ key: 0,
2741
+ class: "orb-alert-dialog orb-alert-dialog--centered"
2742
+ }, Oo = { class: "orb-alert-dialog__title" }, So = {
2743
+ key: 1,
2744
+ class: "orb-alert-dialog__description"
2745
+ }, Lo = {
2746
+ key: 2,
2747
+ class: "orb-alert-dialog__body"
2748
+ }, Vo = { class: "orb-alert-dialog__actions orb-alert-dialog__actions--centered" }, Mo = ["disabled"], zo = {
2749
+ key: 0,
2750
+ class: "orb-alert-dialog__spinner",
2751
+ width: "16",
2752
+ height: "16",
2753
+ viewBox: "0 0 24 24",
2754
+ fill: "none",
2755
+ "aria-hidden": "true"
2756
+ }, Ao = { class: "orb-alert-dialog orb-alert-dialog--horizontal" }, Fo = { class: "orb-alert-dialog__text" }, Ro = { class: "orb-alert-dialog__title" }, Do = { class: "orb-alert-dialog__desc-wrap" }, Ho = {
2757
+ key: 0,
2758
+ class: "orb-alert-dialog__description"
2759
+ }, Io = {
2760
+ key: 1,
2761
+ class: "orb-alert-dialog__body"
2762
+ }, Wo = {
2763
+ key: 2,
2764
+ class: "orb-alert-dialog__confirmation"
2765
+ }, Zo = { class: "orb-alert-dialog__confirmation-label" }, Eo = ["placeholder"], Po = {
2766
+ key: 0,
2767
+ class: "orb-alert-dialog__actions orb-alert-dialog__actions--inline"
2768
+ }, qo = ["disabled"], jo = ["disabled"], Go = ["disabled"], Ko = {
2769
+ key: 0,
2770
+ class: "orb-alert-dialog__spinner",
2771
+ width: "16",
2772
+ height: "16",
2773
+ viewBox: "0 0 24 24",
2774
+ fill: "none",
2775
+ "aria-hidden": "true"
2776
+ }, No = { class: "orb-alert-dialog__actions orb-alert-dialog__actions--footer" }, Uo = ["disabled"], Qo = ["disabled"], Yo = ["disabled"], Jo = {
2777
+ key: 0,
2778
+ class: "orb-alert-dialog__spinner",
2779
+ width: "16",
2780
+ height: "16",
2781
+ viewBox: "0 0 24 24",
2782
+ fill: "none",
2783
+ "aria-hidden": "true"
2784
+ }, ml = /* @__PURE__ */ Z({
2785
+ __name: "OAlertDialog",
2786
+ props: {
2787
+ open: { type: Boolean, default: !1 },
2788
+ title: {},
2789
+ description: {},
2790
+ variant: { default: "confirmation" },
2791
+ confirmLabel: {},
2792
+ cancelLabel: {},
2793
+ secondaryLabel: {},
2794
+ loading: { type: Boolean },
2795
+ size: { default: "sm" },
2796
+ closeOnEscape: { type: Boolean, default: !1 },
2797
+ closeOnOverlayClick: { type: Boolean, default: !1 },
2798
+ showIcon: { type: Boolean, default: !0 },
2799
+ confirmationText: {},
2800
+ inlineActions: { type: Boolean, default: !0 }
2801
+ },
2802
+ emits: ["update:open", "confirm", "cancel", "secondary"],
2803
+ setup(e, { emit: v }) {
2804
+ const l = e, c = v, d = T(null), m = T(null), u = T(""), _ = k(() => l.variant === "info"), g = k(() => l.confirmationText ? u.value === l.confirmationText : !0), B = k(() => _.value ? m : d), b = k(() => {
2805
+ if (l.confirmLabel) return l.confirmLabel;
2806
+ switch (l.variant) {
2807
+ case "info":
2808
+ return "OK";
2809
+ case "destructive":
2810
+ return "Excluir";
2811
+ case "warning":
2812
+ return "Continuar";
2813
+ default:
2814
+ return "Confirmar";
2815
+ }
2816
+ }), M = k(() => l.cancelLabel ?? "Cancelar"), w = k(() => {
2817
+ switch (l.variant) {
2818
+ case "info":
2819
+ return "info";
2820
+ case "warning":
2821
+ return "warning";
2822
+ case "confirmation":
2823
+ case "destructive":
2824
+ default:
2825
+ return "error";
2826
+ }
2827
+ }), x = k(() => `orb-alert-dialog__icon orb-alert-dialog__icon--${l.variant}`), z = k(() => {
2828
+ if (_.value) return "orb-alert-dialog__btn orb-alert-dialog__btn--confirm orb-alert-dialog__btn--primary orb-alert-dialog__btn--wide";
2829
+ const F = "orb-alert-dialog__btn orb-alert-dialog__btn--confirm";
2830
+ return l.variant === "destructive" ? `${F} orb-alert-dialog__btn--destructive` : `${F} orb-alert-dialog__btn--primary`;
2831
+ }), P = k(() => !_.value);
2832
+ async function G() {
2833
+ l.loading || !g.value || (c("confirm"), await ie(), l.loading || c("update:open", !1));
2834
+ }
2835
+ function se() {
2836
+ l.loading || (c("cancel"), c("update:open", !1));
2837
+ }
2838
+ function q() {
2839
+ l.loading || c("secondary");
2840
+ }
2841
+ function oe(F) {
2842
+ F || (u.value = "", c("cancel")), c("update:open", F);
2843
+ }
2844
+ return (F, R) => (t(), le(gl, {
2845
+ open: e.open,
2846
+ size: e.size,
2847
+ role: "alertdialog",
2848
+ "close-on-overlay-click": e.closeOnOverlayClick,
2849
+ "close-on-escape": e.closeOnEscape,
2850
+ "show-close-button": !1,
2851
+ loading: e.loading,
2852
+ "prevent-close-while-loading": !0,
2853
+ "aria-label": e.title,
2854
+ "initial-focus-ref": B.value,
2855
+ "onUpdate:open": oe
2856
+ }, Ll({
2857
+ default: te(() => [
2858
+ _.value ? (t(), a("div", To, [
2859
+ e.showIcon ? (t(), a("div", {
2860
+ key: 0,
2861
+ class: h(x.value)
2862
+ }, [
2863
+ ve(Ee, {
2864
+ status: w.value,
2865
+ size: "md"
2866
+ }, null, 8, ["status"])
2867
+ ], 2)) : i("", !0),
2868
+ o("h3", Oo, f(e.title), 1),
2869
+ e.description ? (t(), a("p", So, f(e.description), 1)) : i("", !0),
2870
+ F.$slots.default ? (t(), a("div", Lo, [
2871
+ A(F.$slots, "default")
2872
+ ])) : i("", !0),
2873
+ o("div", Vo, [
2874
+ o("button", {
2875
+ ref_key: "confirmBtnRef",
2876
+ ref: m,
2877
+ type: "button",
2878
+ class: h(z.value),
2879
+ disabled: e.loading,
2880
+ onClick: G
2881
+ }, [
2882
+ e.loading ? (t(), a("svg", zo, [...R[1] || (R[1] = [
2883
+ o("circle", {
2884
+ cx: "12",
2885
+ cy: "12",
2886
+ r: "10",
2887
+ stroke: "currentColor",
2888
+ "stroke-width": "2",
2889
+ "stroke-linecap": "round",
2890
+ "stroke-dasharray": "31.4 31.4"
2891
+ }, null, -1)
2892
+ ])])) : i("", !0),
2893
+ N(" " + f(b.value), 1)
2894
+ ], 10, Mo)
2895
+ ])
2896
+ ])) : (t(), a(K, { key: 1 }, [
2897
+ o("div", Ao, [
2898
+ e.showIcon ? (t(), a("div", {
2899
+ key: 0,
2900
+ class: h(x.value)
2901
+ }, [
2902
+ ve(Ee, {
2903
+ status: w.value,
2904
+ size: "md"
2905
+ }, null, 8, ["status"])
2906
+ ], 2)) : i("", !0),
2907
+ o("div", Fo, [
2908
+ o("h3", Ro, f(e.title), 1),
2909
+ o("div", Do, [
2910
+ e.description ? (t(), a("p", Ho, f(e.description), 1)) : i("", !0),
2911
+ F.$slots.default ? (t(), a("div", Io, [
2912
+ A(F.$slots, "default")
2913
+ ])) : i("", !0),
2914
+ e.confirmationText ? (t(), a("div", Wo, [
2915
+ o("p", Zo, [
2916
+ R[2] || (R[2] = N(" Digite ", -1)),
2917
+ o("strong", null, f(e.confirmationText), 1),
2918
+ R[3] || (R[3] = N(" para confirmar: ", -1))
2919
+ ]),
2920
+ Ze(o("input", {
2921
+ "onUpdate:modelValue": R[0] || (R[0] = (be) => u.value = be),
2922
+ type: "text",
2923
+ class: "orb-alert-dialog__confirmation-input",
2924
+ placeholder: e.confirmationText,
2925
+ autocomplete: "off",
2926
+ spellcheck: "false"
2927
+ }, null, 8, Eo), [
2928
+ [Xe, u.value]
2929
+ ])
2930
+ ])) : i("", !0)
2931
+ ])
2932
+ ])
2933
+ ]),
2934
+ e.inlineActions ? (t(), a("div", Po, [
2935
+ e.secondaryLabel ? (t(), a("button", {
2936
+ key: 0,
2937
+ type: "button",
2938
+ class: "orb-alert-dialog__btn orb-alert-dialog__btn--secondary",
2939
+ disabled: e.loading,
2940
+ onClick: q
2941
+ }, f(e.secondaryLabel), 9, qo)) : i("", !0),
2942
+ P.value ? (t(), a("button", {
2943
+ key: 1,
2944
+ ref_key: "cancelBtnRef",
2945
+ ref: d,
2946
+ type: "button",
2947
+ class: "orb-alert-dialog__btn orb-alert-dialog__btn--cancel",
2948
+ disabled: e.loading,
2949
+ onClick: se
2950
+ }, f(M.value), 9, jo)) : i("", !0),
2951
+ o("button", {
2952
+ ref_key: "confirmBtnRef",
2953
+ ref: m,
2954
+ type: "button",
2955
+ class: h(z.value),
2956
+ disabled: e.loading || !g.value,
2957
+ onClick: G
2958
+ }, [
2959
+ e.loading ? (t(), a("svg", Ko, [...R[4] || (R[4] = [
2960
+ o("circle", {
2961
+ cx: "12",
2962
+ cy: "12",
2963
+ r: "10",
2964
+ stroke: "currentColor",
2965
+ "stroke-width": "2",
2966
+ "stroke-linecap": "round",
2967
+ "stroke-dasharray": "31.4 31.4"
2968
+ }, null, -1)
2969
+ ])])) : i("", !0),
2970
+ N(" " + f(b.value), 1)
2971
+ ], 10, Go)
2972
+ ])) : i("", !0)
2973
+ ], 64))
2974
+ ]),
2975
+ _: 2
2976
+ }, [
2977
+ !_.value && !e.inlineActions ? {
2978
+ name: "footer",
2979
+ fn: te(() => [
2980
+ o("div", No, [
2981
+ e.secondaryLabel ? (t(), a("button", {
2982
+ key: 0,
2983
+ type: "button",
2984
+ class: "orb-alert-dialog__btn orb-alert-dialog__btn--secondary",
2985
+ disabled: e.loading,
2986
+ onClick: q
2987
+ }, f(e.secondaryLabel), 9, Uo)) : i("", !0),
2988
+ P.value ? (t(), a("button", {
2989
+ key: 1,
2990
+ ref_key: "cancelBtnRef",
2991
+ ref: d,
2992
+ type: "button",
2993
+ class: "orb-alert-dialog__btn orb-alert-dialog__btn--cancel",
2994
+ disabled: e.loading,
2995
+ onClick: se
2996
+ }, f(M.value), 9, Qo)) : i("", !0),
2997
+ o("button", {
2998
+ ref_key: "confirmBtnRef",
2999
+ ref: m,
3000
+ type: "button",
3001
+ class: h(z.value),
3002
+ disabled: e.loading || !g.value,
3003
+ onClick: G
3004
+ }, [
3005
+ e.loading ? (t(), a("svg", Jo, [...R[5] || (R[5] = [
3006
+ o("circle", {
3007
+ cx: "12",
3008
+ cy: "12",
3009
+ r: "10",
3010
+ stroke: "currentColor",
3011
+ "stroke-width": "2",
3012
+ "stroke-linecap": "round",
3013
+ "stroke-dasharray": "31.4 31.4"
3014
+ }, null, -1)
3015
+ ])])) : i("", !0),
3016
+ N(" " + f(b.value), 1)
3017
+ ], 10, Yo)
3018
+ ])
3019
+ ]),
3020
+ key: "0"
3021
+ } : void 0
3022
+ ]), 1032, ["open", "size", "close-on-overlay-click", "close-on-escape", "loading", "aria-label", "initial-focus-ref"]));
3023
+ }
3024
+ }), Xo = /* @__PURE__ */ Z({
3025
+ __name: "ODialogProvider",
3026
+ setup(e) {
3027
+ const v = Bo();
3028
+ function l(u) {
3029
+ cl(u, !0);
3030
+ }
3031
+ function c(u) {
3032
+ cl(u, !1);
3033
+ }
3034
+ function d(u) {
3035
+ return u.options.confirmText ?? (u.type === "alert" ? "OK" : u.variant === "destructive" ? "Excluir" : u.variant === "warning" ? "Continuar" : "Confirmar");
3036
+ }
3037
+ function m(u) {
3038
+ return u.options.cancelText ?? "Cancelar";
3039
+ }
3040
+ return (u, _) => (t(!0), a(K, null, pe(ae(v), (g) => (t(), le(ml, {
3041
+ key: g.id,
3042
+ open: g.open,
3043
+ title: g.options.title,
3044
+ description: g.options.description,
3045
+ variant: g.variant,
3046
+ "confirm-label": d(g),
3047
+ "cancel-label": m(g),
3048
+ size: g.options.size ?? "sm",
3049
+ onConfirm: (B) => l(g.id),
3050
+ onCancel: (B) => c(g.id),
3051
+ "onUpdate:open": (B) => {
3052
+ B || c(g.id);
3053
+ }
3054
+ }, null, 8, ["open", "title", "description", "variant", "confirm-label", "cancel-label", "size", "onConfirm", "onCancel", "onUpdate:open"]))), 128));
3055
+ }
3056
+ }), ul = "orb-theme", Te = T("system"), je = T("light");
3057
+ function yl() {
3058
+ return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
3059
+ }
3060
+ function Ye(e) {
3061
+ typeof document > "u" || (document.documentElement.setAttribute("data-theme", e), je.value = e);
3062
+ }
3063
+ function bl(e) {
3064
+ return e === "system" ? yl() : e;
3065
+ }
3066
+ function ri() {
3067
+ Pe(() => {
3068
+ const l = localStorage.getItem(ul);
3069
+ l && (Te.value = l), Ye(bl(Te.value));
3070
+ const c = window.matchMedia("(prefers-color-scheme: dark)"), d = () => {
3071
+ Te.value === "system" && Ye(yl());
3072
+ };
3073
+ c.addEventListener("change", d);
3074
+ }), Vl(() => {
3075
+ Ye(bl(Te.value));
3076
+ });
3077
+ function e(l) {
3078
+ Te.value = l, localStorage.setItem(ul, l);
3079
+ }
3080
+ function v() {
3081
+ const l = je.value === "light" ? "dark" : "light";
3082
+ e(l);
3083
+ }
3084
+ return {
3085
+ theme: k(() => Te.value),
3086
+ resolvedTheme: k(() => je.value),
3087
+ isDark: k(() => je.value === "dark"),
3088
+ setTheme: e,
3089
+ toggleTheme: v
3090
+ };
3091
+ }
3092
+ var H = {
3093
+ white: {
3094
+ 100: "rgba(255, 255, 255, 0.10)",
3095
+ 120: "rgba(255, 255, 255, 0.12)",
3096
+ 200: "rgba(255, 255, 255, 0.20)",
3097
+ 250: "rgba(255, 255, 255, 0.25)",
3098
+ 400: "rgba(255, 255, 255, 0.40)",
3099
+ 550: "rgba(255, 255, 255, 0.55)",
3100
+ 700: "rgba(255, 255, 255, 0.70)",
3101
+ 800: "rgba(255, 255, 255, 0.80)",
3102
+ 900: "rgba(255, 255, 255, 0.90)",
3103
+ 1e3: "rgba(255, 255, 255, 1)"
3104
+ },
3105
+ black: {
3106
+ 100: "rgba(0, 0, 0, 0.10)",
3107
+ 250: "rgba(0, 0, 0, 0.25)",
3108
+ 400: "rgba(0, 0, 0, 0.40)",
3109
+ 550: "rgba(0, 0, 0, 0.55)",
3110
+ 700: "rgba(0, 0, 0, 0.70)",
3111
+ 800: "rgba(0, 0, 0, 0.80)",
3112
+ 900: "rgba(0, 0, 0, 0.90)",
3113
+ 1e3: "rgba(0, 0, 0, 1)"
3114
+ }
3115
+ }, y = {
3116
+ 0: "#fff",
3117
+ 50: "oklch(98.5% 0 0)",
3118
+ 100: "oklch(97% 0 0)",
3119
+ 200: "oklch(92.2% 0 0)",
3120
+ 300: "oklch(87% 0 0)",
3121
+ 400: "oklch(70.8% 0 0)",
3122
+ 500: "oklch(55.6% 0 0)",
3123
+ 600: "oklch(43.9% 0 0)",
3124
+ 700: "oklch(37.1% 0 0)",
3125
+ 800: "oklch(26.9% 0 0)",
3126
+ 900: "oklch(20.5% 0 0)",
3127
+ 950: "oklch(14.5% 0 0)",
3128
+ 1e3: "#000"
3129
+ }, D = {
3130
+ 50: "oklch(97.1% 0.013 17.38)",
3131
+ 100: "oklch(93.6% 0.032 17.717)",
3132
+ 200: "oklch(88.5% 0.062 18.334)",
3133
+ 300: "oklch(80.8% 0.114 19.571)",
3134
+ 400: "oklch(70.4% 0.191 22.216)",
3135
+ 500: "oklch(63.7% 0.237 25.331)",
3136
+ 600: "oklch(57.7% 0.245 27.325)",
3137
+ 700: "oklch(50.5% 0.213 27.518)",
3138
+ 800: "oklch(44.4% 0.177 26.899)",
3139
+ 900: "oklch(39.6% 0.141 25.723)",
3140
+ 950: "oklch(25.8% 0.092 26.042)"
3141
+ }, Oe = {
3142
+ 50: "oklch(98% 0.016 73.684)",
3143
+ 100: "oklch(95.4% 0.038 75.164)",
3144
+ 200: "oklch(90.1% 0.076 70.697)",
3145
+ 300: "oklch(83.7% 0.128 66.29)",
3146
+ 400: "oklch(75% 0.183 55.934)",
3147
+ 500: "oklch(70.5% 0.213 47.604)",
3148
+ 600: "oklch(64.6% 0.222 41.116)",
3149
+ 700: "oklch(55.3% 0.195 38.402)",
3150
+ 800: "oklch(47% 0.157 37.304)",
3151
+ 900: "oklch(40.8% 0.123 38.172)",
3152
+ 950: "oklch(26.6% 0.079 36.259)"
3153
+ }, de = {
3154
+ 50: "oklch(98.7% 0.022 95.277)",
3155
+ 100: "oklch(96.2% 0.059 95.617)",
3156
+ 200: "oklch(92.4% 0.12 95.746)",
3157
+ 300: "oklch(87.9% 0.169 91.605)",
3158
+ 400: "oklch(82.8% 0.189 84.429)",
3159
+ 500: "oklch(76.9% 0.188 70.08)",
3160
+ 600: "oklch(66.6% 0.179 58.318)",
3161
+ 700: "oklch(55.5% 0.163 48.998)",
3162
+ 800: "oklch(47.3% 0.137 46.201)",
3163
+ 900: "oklch(41.4% 0.112 45.904)",
3164
+ 950: "oklch(27.9% 0.077 45.635)"
3165
+ }, Se = {
3166
+ 50: "oklch(98.7% 0.026 102.212)",
3167
+ 100: "oklch(97.3% 0.071 103.193)",
3168
+ 200: "oklch(94.5% 0.129 101.54)",
3169
+ 300: "oklch(90.5% 0.182 98.111)",
3170
+ 400: "oklch(85.2% 0.199 91.936)",
3171
+ 500: "oklch(79.5% 0.184 86.047)",
3172
+ 600: "oklch(68.1% 0.162 75.834)",
3173
+ 700: "oklch(55.4% 0.135 66.442)",
3174
+ 800: "oklch(47.6% 0.114 61.907)",
3175
+ 900: "oklch(42.1% 0.095 57.708)",
3176
+ 950: "oklch(28.6% 0.066 53.813)"
3177
+ }, di = {
3178
+ 50: "oklch(98.6% 0.031 120.757)",
3179
+ 100: "oklch(96.7% 0.067 122.328)",
3180
+ 200: "oklch(93.8% 0.127 124.321)",
3181
+ 300: "oklch(89.7% 0.196 126.665)",
3182
+ 400: "oklch(84.1% 0.238 128.85)",
3183
+ 500: "oklch(76.8% 0.233 130.85)",
3184
+ 600: "oklch(64.8% 0.2 131.684)",
3185
+ 700: "oklch(53.2% 0.157 131.589)",
3186
+ 800: "oklch(45.3% 0.124 130.933)",
3187
+ 900: "oklch(40.5% 0.101 131.063)",
3188
+ 950: "oklch(27.4% 0.072 132.109)"
3189
+ }, ue = {
3190
+ 50: "oklch(98.2% 0.018 155.826)",
3191
+ 100: "oklch(96.2% 0.044 156.743)",
3192
+ 200: "oklch(92.5% 0.084 155.995)",
3193
+ 300: "oklch(87.1% 0.15 154.449)",
3194
+ 400: "oklch(79.2% 0.209 151.711)",
3195
+ 500: "oklch(72.3% 0.219 149.579)",
3196
+ 600: "oklch(62.7% 0.194 149.214)",
3197
+ 700: "oklch(52.7% 0.154 150.069)",
3198
+ 800: "oklch(44.8% 0.119 151.328)",
3199
+ 900: "oklch(39.3% 0.095 152.535)",
3200
+ 950: "oklch(26.6% 0.065 152.934)"
3201
+ }, ne = {
3202
+ 50: "oklch(97.9% 0.021 166.113)",
3203
+ 100: "oklch(95% 0.052 163.051)",
3204
+ 200: "oklch(90.5% 0.093 164.15)",
3205
+ 300: "oklch(84.5% 0.143 164.978)",
3206
+ 400: "oklch(76.5% 0.177 163.223)",
3207
+ 500: "oklch(69.6% 0.17 162.48)",
3208
+ 600: "oklch(59.6% 0.145 163.225)",
3209
+ 700: "oklch(50.8% 0.118 165.612)",
3210
+ 800: "oklch(43.2% 0.095 166.913)",
3211
+ 900: "oklch(37.8% 0.077 168.94)",
3212
+ 950: "oklch(26.2% 0.051 172.552)"
3213
+ }, Le = {
3214
+ 50: "oklch(98.4% 0.014 180.72)",
3215
+ 100: "oklch(95.3% 0.051 180.801)",
3216
+ 200: "oklch(91% 0.096 180.426)",
3217
+ 300: "oklch(85.5% 0.138 181.071)",
3218
+ 400: "oklch(77.7% 0.152 181.912)",
3219
+ 500: "oklch(70.4% 0.14 182.503)",
3220
+ 600: "oklch(60% 0.118 184.704)",
3221
+ 700: "oklch(51.1% 0.096 186.391)",
3222
+ 800: "oklch(43.7% 0.078 188.216)",
3223
+ 900: "oklch(38.6% 0.063 188.416)",
3224
+ 950: "oklch(27.7% 0.046 192.524)"
3225
+ }, Ve = {
3226
+ 50: "oklch(98.4% 0.019 200.873)",
3227
+ 100: "oklch(95.6% 0.045 203.388)",
3228
+ 200: "oklch(91.7% 0.08 205.041)",
3229
+ 300: "oklch(86.5% 0.127 207.078)",
3230
+ 400: "oklch(78.9% 0.154 211.53)",
3231
+ 500: "oklch(71.5% 0.143 215.221)",
3232
+ 600: "oklch(60.9% 0.126 221.723)",
3233
+ 700: "oklch(52% 0.105 223.128)",
3234
+ 800: "oklch(45% 0.085 224.283)",
3235
+ 900: "oklch(39.8% 0.07 227.392)",
3236
+ 950: "oklch(30.2% 0.056 229.695)"
3237
+ }, ce = {
3238
+ 50: "oklch(97.7% 0.013 236.62)",
3239
+ 100: "oklch(95.1% 0.026 236.824)",
3240
+ 200: "oklch(90.1% 0.058 230.902)",
3241
+ 300: "oklch(82.8% 0.111 230.318)",
3242
+ 400: "oklch(74.6% 0.16 232.661)",
3243
+ 500: "oklch(68.5% 0.169 237.323)",
3244
+ 600: "oklch(58.8% 0.158 241.966)",
3245
+ 700: "oklch(50% 0.134 242.749)",
3246
+ 800: "oklch(44.3% 0.11 240.79)",
3247
+ 900: "oklch(39.1% 0.09 240.876)",
3248
+ 950: "oklch(29.3% 0.066 243.157)"
3249
+ }, Me = {
3250
+ 50: "oklch(97% 0.014 254.604)",
3251
+ 100: "oklch(93.2% 0.032 255.585)",
3252
+ 200: "oklch(88.2% 0.059 254.128)",
3253
+ 300: "oklch(80.9% 0.105 251.813)",
3254
+ 400: "oklch(70.7% 0.165 254.624)",
3255
+ 500: "oklch(62.3% 0.214 259.815)",
3256
+ 600: "oklch(54.6% 0.245 262.881)",
3257
+ 700: "oklch(48.8% 0.243 264.376)",
3258
+ 800: "oklch(42.4% 0.199 265.638)",
3259
+ 900: "oklch(37.9% 0.146 265.522)",
3260
+ 950: "oklch(28.2% 0.091 267.935)"
3261
+ }, ze = {
3262
+ 50: "oklch(96.2% 0.018 272.314)",
3263
+ 100: "oklch(93% 0.034 272.788)",
3264
+ 200: "oklch(87% 0.065 274.039)",
3265
+ 300: "oklch(78.5% 0.115 274.713)",
3266
+ 400: "oklch(67.3% 0.182 276.935)",
3267
+ 500: "oklch(58.5% 0.233 277.117)",
3268
+ 600: "oklch(51.1% 0.262 276.966)",
3269
+ 700: "oklch(45.7% 0.24 277.023)",
3270
+ 800: "oklch(39.8% 0.195 277.366)",
3271
+ 900: "oklch(35.9% 0.144 278.697)",
3272
+ 950: "oklch(25.7% 0.09 281.288)"
3273
+ }, ci = {
3274
+ 50: "oklch(96.9% 0.016 293.756)",
3275
+ 100: "oklch(94.3% 0.029 294.588)",
3276
+ 200: "oklch(89.4% 0.057 293.283)",
3277
+ 300: "oklch(81.1% 0.111 293.571)",
3278
+ 400: "oklch(70.2% 0.183 293.541)",
3279
+ 500: "oklch(60.6% 0.25 292.717)",
3280
+ 600: "oklch(54.1% 0.281 293.009)",
3281
+ 700: "oklch(49.1% 0.27 292.581)",
3282
+ 800: "oklch(43.2% 0.232 292.759)",
3283
+ 900: "oklch(38% 0.189 293.745)",
3284
+ 950: "oklch(28.3% 0.141 291.089)"
3285
+ }, Ae = {
3286
+ 50: "oklch(97.7% 0.014 308.299)",
3287
+ 100: "oklch(94.6% 0.033 307.174)",
3288
+ 200: "oklch(90.2% 0.063 306.703)",
3289
+ 300: "oklch(82.7% 0.119 306.383)",
3290
+ 400: "oklch(71.4% 0.203 305.504)",
3291
+ 500: "oklch(62.7% 0.265 303.9)",
3292
+ 600: "oklch(55.8% 0.288 302.321)",
3293
+ 700: "oklch(49.6% 0.265 301.924)",
3294
+ 800: "oklch(43.8% 0.218 303.724)",
3295
+ 900: "oklch(38.1% 0.176 304.987)",
3296
+ 950: "oklch(29.1% 0.149 302.717)"
3297
+ }, ui = {
3298
+ 50: "oklch(97.7% 0.017 320.058)",
3299
+ 100: "oklch(95.2% 0.037 318.852)",
3300
+ 200: "oklch(90.3% 0.076 319.62)",
3301
+ 300: "oklch(83.3% 0.145 321.434)",
3302
+ 400: "oklch(74% 0.238 322.16)",
3303
+ 500: "oklch(66.7% 0.295 322.15)",
3304
+ 600: "oklch(59.1% 0.293 322.896)",
3305
+ 700: "oklch(51.8% 0.253 323.949)",
3306
+ 800: "oklch(45.2% 0.211 324.591)",
3307
+ 900: "oklch(40.1% 0.17 325.612)",
3308
+ 950: "oklch(29.3% 0.136 325.661)"
3309
+ }, Fe = {
3310
+ 50: "oklch(97.1% 0.014 343.198)",
3311
+ 100: "oklch(94.8% 0.028 342.258)",
3312
+ 200: "oklch(89.9% 0.061 343.231)",
3313
+ 300: "oklch(82.3% 0.12 346.018)",
3314
+ 400: "oklch(71.8% 0.202 349.761)",
3315
+ 500: "oklch(65.6% 0.241 354.308)",
3316
+ 600: "oklch(59.2% 0.249 0.584)",
3317
+ 700: "oklch(52.5% 0.223 3.958)",
3318
+ 800: "oklch(45.9% 0.187 3.815)",
3319
+ 900: "oklch(40.8% 0.153 2.432)",
3320
+ 950: "oklch(28.4% 0.109 3.907)"
3321
+ }, bi = {
3322
+ 50: "oklch(96.9% 0.015 12.422)",
3323
+ 100: "oklch(94.1% 0.03 12.58)",
3324
+ 200: "oklch(89.2% 0.058 10.001)",
3325
+ 300: "oklch(81% 0.117 11.638)",
3326
+ 400: "oklch(71.2% 0.194 13.428)",
3327
+ 500: "oklch(64.5% 0.246 16.439)",
3328
+ 600: "oklch(58.6% 0.253 17.585)",
3329
+ 700: "oklch(51.4% 0.222 16.935)",
3330
+ 800: "oklch(45.5% 0.188 13.697)",
3331
+ 900: "oklch(41% 0.159 10.272)",
3332
+ 950: "oklch(27.1% 0.105 12.094)"
3333
+ }, L = {
3334
+ 50: "oklch(98.4% 0.003 247.858)",
3335
+ 100: "oklch(96.8% 0.007 247.896)",
3336
+ 200: "oklch(92.9% 0.013 255.508)",
3337
+ 300: "oklch(86.9% 0.022 252.894)",
3338
+ 400: "oklch(70.4% 0.04 256.788)",
3339
+ 500: "oklch(55.4% 0.046 257.417)",
3340
+ 600: "oklch(44.6% 0.043 257.281)",
3341
+ 700: "oklch(37.2% 0.044 257.287)",
3342
+ 800: "oklch(27.9% 0.041 260.031)",
3343
+ 900: "oklch(20.8% 0.042 265.755)",
3344
+ 950: "oklch(12.9% 0.042 264.695)"
3345
+ }, hi = {
3346
+ 50: "oklch(98.5% 0.002 247.839)",
3347
+ 100: "oklch(96.7% 0.003 264.542)",
3348
+ 200: "oklch(92.8% 0.006 264.531)",
3349
+ 300: "oklch(87.2% 0.01 258.338)",
3350
+ 400: "oklch(70.7% 0.022 261.325)",
3351
+ 500: "oklch(55.1% 0.027 264.364)",
3352
+ 600: "oklch(44.6% 0.03 256.802)",
3353
+ 700: "oklch(37.3% 0.034 259.733)",
3354
+ 800: "oklch(27.8% 0.033 256.848)",
3355
+ 900: "oklch(21% 0.034 264.665)",
3356
+ 950: "oklch(13% 0.028 261.692)"
3357
+ }, fi = {
3358
+ 50: "oklch(98.5% 0 0)",
3359
+ 100: "oklch(96.7% 0.001 286.375)",
3360
+ 200: "oklch(92% 0.004 286.32)",
3361
+ 300: "oklch(87.1% 0.006 286.286)",
3362
+ 400: "oklch(70.5% 0.015 286.067)",
3363
+ 500: "oklch(55.2% 0.016 285.938)",
3364
+ 600: "oklch(44.2% 0.017 285.786)",
3365
+ 700: "oklch(37% 0.013 285.805)",
3366
+ 800: "oklch(27.4% 0.006 286.033)",
3367
+ 900: "oklch(21% 0.006 285.885)",
3368
+ 950: "oklch(14.1% 0.005 285.823)"
3369
+ }, vi = {
3370
+ 50: "oklch(98.5% 0.001 106.423)",
3371
+ 100: "oklch(97% 0.001 106.424)",
3372
+ 200: "oklch(92.3% 0.003 48.717)",
3373
+ 300: "oklch(86.9% 0.005 56.366)",
3374
+ 400: "oklch(70.9% 0.01 56.259)",
3375
+ 500: "oklch(55.3% 0.013 58.071)",
3376
+ 600: "oklch(44.4% 0.011 73.639)",
3377
+ 700: "oklch(37.4% 0.01 67.558)",
3378
+ 800: "oklch(26.8% 0.007 34.298)",
3379
+ 900: "oklch(21.6% 0.006 56.043)",
3380
+ 950: "oklch(14.7% 0.004 49.25)"
3381
+ }, ki = {
3382
+ 50: "oklch(98.5% 0 0)",
3383
+ 100: "oklch(96% 0.003 325.6)",
3384
+ 200: "oklch(92.2% 0.005 325.62)",
3385
+ 300: "oklch(86.5% 0.012 325.68)",
3386
+ 400: "oklch(71.1% 0.019 323.02)",
3387
+ 500: "oklch(54.2% 0.034 322.5)",
3388
+ 600: "oklch(43.5% 0.029 321.78)",
3389
+ 700: "oklch(36.4% 0.029 323.89)",
3390
+ 800: "oklch(26.3% 0.024 320.12)",
3391
+ 900: "oklch(21.2% 0.019 322.12)",
3392
+ 950: "oklch(14.5% 0.008 326)"
3393
+ }, gi = {
3394
+ 50: "oklch(98.8% 0.003 106.5)",
3395
+ 100: "oklch(96.6% 0.005 106.5)",
3396
+ 200: "oklch(93% 0.007 106.5)",
3397
+ 300: "oklch(88% 0.011 106.6)",
3398
+ 400: "oklch(73.7% 0.021 106.9)",
3399
+ 500: "oklch(58% 0.031 107.3)",
3400
+ 600: "oklch(46.6% 0.025 107.3)",
3401
+ 700: "oklch(39.4% 0.023 107.4)",
3402
+ 800: "oklch(28.6% 0.016 107.4)",
3403
+ 900: "oklch(22.8% 0.013 107.4)",
3404
+ 950: "oklch(15.3% 0.006 107.1)"
3405
+ }, mi = {
3406
+ 50: "oklch(98.7% 0.002 197.1)",
3407
+ 100: "oklch(96.3% 0.002 197.1)",
3408
+ 200: "oklch(92.5% 0.005 214.3)",
3409
+ 300: "oklch(87.2% 0.007 219.6)",
3410
+ 400: "oklch(72.3% 0.014 214.4)",
3411
+ 500: "oklch(56% 0.021 213.5)",
3412
+ 600: "oklch(45% 0.017 213.2)",
3413
+ 700: "oklch(37.8% 0.015 216)",
3414
+ 800: "oklch(27.5% 0.011 216.9)",
3415
+ 900: "oklch(21.8% 0.008 223.9)",
3416
+ 950: "oklch(14.8% 0.004 228.8)"
3417
+ }, yi = {
3418
+ 50: "oklch(98.6% 0.002 67.8)",
3419
+ 100: "oklch(96% 0.002 17.2)",
3420
+ 200: "oklch(92.2% 0.005 34.3)",
3421
+ 300: "oklch(86.8% 0.007 39.5)",
3422
+ 400: "oklch(71.4% 0.014 41.2)",
3423
+ 500: "oklch(54.7% 0.021 43.1)",
3424
+ 600: "oklch(43.8% 0.017 39.3)",
3425
+ 700: "oklch(36.7% 0.016 35.7)",
3426
+ 800: "oklch(26.8% 0.011 36.5)",
3427
+ 900: "oklch(21.4% 0.009 43.1)",
3428
+ 950: "oklch(14.7% 0.004 49.3)"
3429
+ }, xi = {
3430
+ 50: "oklch(97.7% 0.014 308.299)",
3431
+ 100: "oklch(94.6% 0.033 307.174)",
3432
+ 200: "oklch(90.2% 0.063 306.703)",
3433
+ 300: "oklch(82.7% 0.119 306.383)",
3434
+ 400: "oklch(71.4% 0.203 305.504)",
3435
+ 500: "oklch(62.7% 0.265 303.9)",
3436
+ 600: "oklch(55.8% 0.288 302.321)",
3437
+ 700: "oklch(49.6% 0.265 301.924)",
3438
+ 800: "oklch(43.8% 0.218 303.724)",
3439
+ 900: "oklch(38.1% 0.176 304.987)",
3440
+ 950: "oklch(29.1% 0.149 302.717)"
3441
+ }, ei = {
3442
+ 50: "oklch(97.9% 0.011 356.992)",
3443
+ 100: "oklch(95.1% 0.026 2.758)",
3444
+ 200: "oklch(88.9% 0.062 2.08)",
3445
+ 300: "oklch(82.9% 0.099 3.505)",
3446
+ 400: "oklch(74.4% 0.161 6.263)",
3447
+ 500: "oklch(69.4% 0.201 9.064)",
3448
+ 600: "oklch(66.4% 0.226 12.253)",
3449
+ 700: "oklch(56.9% 0.192 12.094)",
3450
+ 800: "oklch(47.4% 0.157 11.378)",
3451
+ 900: "oklch(40.8% 0.132 10.888)",
3452
+ 950: "oklch(27% 0.08 10.488)"
3453
+ }, li = {
3454
+ 50: "oklch(96.2% 0.018 272.314)",
3455
+ 100: "oklch(93% 0.034 272.788)",
3456
+ 200: "oklch(87% 0.065 274.039)",
3457
+ 300: "oklch(78.5% 0.115 274.713)",
3458
+ 400: "oklch(67.3% 0.182 276.935)",
3459
+ 500: "oklch(58.5% 0.233 277.117)",
3460
+ 600: "oklch(51.1% 0.262 276.966)",
3461
+ 700: "oklch(45.7% 0.24 277.023)",
3462
+ 800: "oklch(39.8% 0.195 277.366)",
3463
+ 900: "oklch(35.9% 0.144 278.697)",
3464
+ 950: "oklch(25.7% 0.09 281.288)"
3465
+ }, ti = {
3466
+ 50: "oklch(98.4% 0.014 180.72)",
3467
+ 100: "oklch(95.3% 0.051 180.801)",
3468
+ 200: "oklch(91% 0.096 180.426)",
3469
+ 300: "oklch(85.5% 0.138 181.071)",
3470
+ 400: "oklch(77.7% 0.152 181.912)",
3471
+ 500: "oklch(70.4% 0.14 182.503)",
3472
+ 600: "oklch(60% 0.118 184.704)",
3473
+ 700: "oklch(51.1% 0.096 186.391)",
3474
+ 800: "oklch(43.7% 0.078 188.216)",
3475
+ 900: "oklch(38.6% 0.063 188.416)",
3476
+ 950: "oklch(27.7% 0.046 192.524)"
3477
+ }, ai = {
3478
+ 50: "oklch(97.5% 0.015 94.196)",
3479
+ 100: "oklch(93.7% 0.038 92.236)",
3480
+ 200: "oklch(87.4% 0.071 89.461)",
3481
+ 300: "oklch(78.3% 0.109 85.27)",
3482
+ 400: "oklch(72.3% 0.122 79.487)",
3483
+ 500: "oklch(66.4% 0.119 73.618)",
3484
+ 600: "oklch(57.5% 0.108 64.952)",
3485
+ 700: "oklch(47.9% 0.09 57.119)",
3486
+ 800: "oklch(42.3% 0.075 51.375)",
3487
+ 900: "oklch(38.1% 0.065 45.673)",
3488
+ 950: "oklch(25.9% 0.045 41.584)"
3489
+ }, oi = {
3490
+ 50: "oklch(97.4% 0.006 239.819)",
3491
+ 100: "oklch(95.2% 0.009 242.84)",
3492
+ 200: "oklch(91% 0.018 245.4)",
3493
+ 300: "oklch(85.3% 0.029 246.519)",
3494
+ 400: "oklch(77.8% 0.043 258.371)",
3495
+ 500: "oklch(70.8% 0.057 264.115)",
3496
+ 600: "oklch(65.4% 0.065 269.289)",
3497
+ 700: "oklch(56.1% 0.068 269.924)",
3498
+ 800: "oklch(48.7% 0.057 270.368)",
3499
+ 900: "oklch(43.6% 0.038 267.435)",
3500
+ 950: "oklch(30.6% 0.025 268.465)"
3501
+ }, Y = {
3502
+ display: "'Inter Display', 'Inter', system-ui, -apple-system, sans-serif"
3503
+ }, pi = {
3504
+ display: "'salt' on"
3505
+ }, J = {
3506
+ regular: "400",
3507
+ medium: "500",
3508
+ "semi-bold": "600",
3509
+ bold: "700"
3510
+ }, X = {
3511
+ 100: "12px",
3512
+ 200: "14px",
3513
+ 300: "16px",
3514
+ 400: "18px",
3515
+ 500: "20px",
3516
+ 600: "24px",
3517
+ 700: "28px",
3518
+ 800: "32px",
3519
+ 900: "36px",
3520
+ 1e3: "40px",
3521
+ 1100: "44px",
3522
+ 1200: "48px",
3523
+ 1300: "60px"
3524
+ }, ee = {
3525
+ 100: "16px",
3526
+ 200: "20px",
3527
+ 300: "24px",
3528
+ 400: "28px",
3529
+ 500: "32px",
3530
+ 600: "36px",
3531
+ 700: "44px",
3532
+ 800: "48px",
3533
+ 900: "52px",
3534
+ 1e3: "56px",
3535
+ 1100: "76px"
3536
+ }, wi = {
3537
+ 0: "0px",
3538
+ 100: "2px",
3539
+ 200: "4px",
3540
+ 300: "8px",
3541
+ 400: "12px",
3542
+ 500: "16px",
3543
+ 600: "20px",
3544
+ 700: "24px",
3545
+ 800: "28px",
3546
+ 900: "32px",
3547
+ 1e3: "48px",
3548
+ 1100: "64px",
3549
+ 1200: "80px",
3550
+ 1300: "128px",
3551
+ 1400: "200px",
3552
+ 1500: "400px"
3553
+ }, $i = {
3554
+ 0: "0px",
3555
+ 100: "4px",
3556
+ 200: "8px",
3557
+ 300: "12px",
3558
+ pill: "9999px"
3559
+ }, Ci = {
3560
+ 0: "0px",
3561
+ 100: "1px",
3562
+ 150: "1.5px",
3563
+ 200: "2px",
3564
+ 300: "3px"
3565
+ }, Ie = {
3566
+ 0: "none",
3567
+ 100: "0px 2px 2px 0px rgba(30, 41, 59, 0.04), 0px 4px 8px 0px rgba(30, 41, 59, 0.08)",
3568
+ 200: "0px 4px 4px 0px rgba(30, 41, 59, 0.04), 0px 8px 24px 0px rgba(30, 41, 59, 0.08)",
3569
+ 300: "0px 16px 40px 0px rgba(30, 41, 59, 0.08), 0px 8px 8px 0px rgba(30, 41, 59, 0.04)",
3570
+ 400: "0px 24px 56px 0px rgba(30, 41, 59, 0.08), 0px 12px 12px 0px rgba(30, 41, 59, 0.04)"
3571
+ }, We = {
3572
+ 0: "none",
3573
+ 100: "0px 2px 2px 0px rgba(0, 0, 0, 0.20), 0px 4px 8px 0px rgba(0, 0, 0, 0.30)",
3574
+ 200: "0px 4px 4px 0px rgba(0, 0, 0, 0.20), 0px 8px 24px 0px rgba(0, 0, 0, 0.40)",
3575
+ 300: "0px 16px 40px 0px rgba(0, 0, 0, 0.40), 0px 8px 8px 0px rgba(0, 0, 0, 0.20)",
3576
+ 400: "0px 24px 56px 0px rgba(0, 0, 0, 0.50), 0px 12px 12px 0px rgba(0, 0, 0, 0.25)"
3577
+ }, _i = {
3578
+ xs: "375px",
3579
+ sm: "640px",
3580
+ md: "768px",
3581
+ lg: "1024px",
3582
+ xl: "1280px",
3583
+ "2xl": "1536px"
3584
+ }, Bi = {
3585
+ hide: "-1",
3586
+ base: "0",
3587
+ dropdown: "1000",
3588
+ sticky: "1100",
3589
+ fixed: "1200",
3590
+ overlay: "1300",
3591
+ modal: "1400",
3592
+ popover: "1500",
3593
+ tooltip: "1600",
3594
+ toast: "1700"
3595
+ }, Ti = {
3596
+ fastest: "50ms",
3597
+ fast: "100ms",
3598
+ normal: "200ms",
3599
+ slow: "300ms",
3600
+ slower: "400ms",
3601
+ slowest: "500ms"
3602
+ }, Oi = {
3603
+ linear: "linear",
3604
+ in: "cubic-bezier(0.4, 0, 1, 1)",
3605
+ out: "cubic-bezier(0, 0, 0.2, 1)",
3606
+ inOut: "cubic-bezier(0.4, 0, 0.2, 1)"
3607
+ }, Si = {
3608
+ h1: {
3609
+ fontFamily: Y.display,
3610
+ fontWeight: J.bold,
3611
+ fontSize: X[1200],
3612
+ // 48px
3613
+ lineHeight: ee[700],
3614
+ // 44px
3615
+ letterSpacing: "0px"
3616
+ },
3617
+ h2: {
3618
+ fontFamily: Y.display,
3619
+ fontWeight: J.bold,
3620
+ fontSize: X[1e3],
3621
+ // 40px
3622
+ lineHeight: ee[600],
3623
+ // 36px
3624
+ letterSpacing: "0px"
3625
+ },
3626
+ h3: {
3627
+ fontFamily: Y.display,
3628
+ fontWeight: J["semi-bold"],
3629
+ fontSize: X[800],
3630
+ // 32px
3631
+ lineHeight: ee[500],
3632
+ // 32px
3633
+ letterSpacing: "0px"
3634
+ },
3635
+ h4: {
3636
+ fontFamily: Y.display,
3637
+ fontWeight: J["semi-bold"],
3638
+ fontSize: X[600],
3639
+ // 24px
3640
+ lineHeight: ee[400],
3641
+ // 28px
3642
+ letterSpacing: "0px"
3643
+ },
3644
+ h5: {
3645
+ fontFamily: Y.display,
3646
+ fontWeight: J["semi-bold"],
3647
+ fontSize: X[500],
3648
+ // 20px
3649
+ lineHeight: ee[300],
3650
+ // 24px
3651
+ letterSpacing: "0px"
3652
+ },
3653
+ h6: {
3654
+ fontFamily: Y.display,
3655
+ fontWeight: J["semi-bold"],
3656
+ fontSize: X[400],
3657
+ // 18px
3658
+ lineHeight: ee[200],
3659
+ // 20px
3660
+ letterSpacing: "0px"
3661
+ }
3662
+ }, Li = {
3663
+ large: {
3664
+ fontFamily: Y.display,
3665
+ fontWeight: J.regular,
3666
+ fontSize: X[400],
3667
+ // 18px
3668
+ lineHeight: ee[300],
3669
+ // 24px
3670
+ letterSpacing: "0px"
3671
+ },
3672
+ medium: {
3673
+ fontFamily: Y.display,
3674
+ fontWeight: J.regular,
3675
+ fontSize: X[300],
3676
+ // 16px
3677
+ lineHeight: ee[300],
3678
+ // 24px
3679
+ letterSpacing: "0px"
3680
+ },
3681
+ small: {
3682
+ fontFamily: Y.display,
3683
+ fontWeight: J.regular,
3684
+ fontSize: X[200],
3685
+ // 14px
3686
+ lineHeight: ee[200],
3687
+ // 20px
3688
+ letterSpacing: "0px"
3689
+ },
3690
+ "extra-small": {
3691
+ fontFamily: Y.display,
3692
+ fontWeight: J.regular,
3693
+ fontSize: X[100],
3694
+ // 12px
3695
+ lineHeight: ee[100],
3696
+ // 16px
3697
+ letterSpacing: "0px"
3698
+ }
3699
+ }, Vi = {
3700
+ large: {
3701
+ fontFamily: Y.display,
3702
+ fontWeight: J["semi-bold"],
3703
+ fontSize: X[200],
3704
+ // 14px
3705
+ lineHeight: ee[200],
3706
+ // 20px
3707
+ letterSpacing: "0px"
3708
+ },
3709
+ small: {
3710
+ fontFamily: Y.display,
3711
+ fontWeight: J["semi-bold"],
3712
+ fontSize: X[100],
3713
+ // 12px
3714
+ lineHeight: ee[100],
3715
+ // 16px
3716
+ letterSpacing: "0px"
3717
+ }
3718
+ }, Mi = {
3719
+ large: {
3720
+ fontFamily: Y.display,
3721
+ fontWeight: J["semi-bold"],
3722
+ fontSize: X[300],
3723
+ // 16px
3724
+ lineHeight: ee[300],
3725
+ // 24px
3726
+ letterSpacing: "0px"
3727
+ },
3728
+ medium: {
3729
+ fontFamily: Y.display,
3730
+ fontWeight: J["semi-bold"],
3731
+ fontSize: X[200],
3732
+ // 14px
3733
+ lineHeight: ee[300],
3734
+ // 24px
3735
+ letterSpacing: "0px"
3736
+ },
3737
+ small: {
3738
+ fontFamily: Y.display,
3739
+ fontWeight: J["semi-bold"],
3740
+ fontSize: X[100],
3741
+ // 12px
3742
+ lineHeight: ee[100],
3743
+ // 16px
3744
+ letterSpacing: "0px"
3745
+ }
3746
+ }, zi = {
3747
+ // ── Background (layer) ──
3748
+ bg: y[0],
3749
+ "bg-subtle": y[50],
3750
+ "bg-muted": y[100],
3751
+ "bg-emphasis": y[200],
3752
+ "bg-inverse": y[1e3],
3753
+ // ── Foreground / Text ──
3754
+ fg: y[950],
3755
+ "fg-subtle": y[800],
3756
+ "fg-muted": y[500],
3757
+ "fg-on-emphasis": y[0],
3758
+ "fg-inverse": y[0],
3759
+ "fg-disabled": H.black[250],
3760
+ // ── Border ──
3761
+ border: y[200],
3762
+ "border-subtle": y[100],
3763
+ "border-emphasis": y[400],
3764
+ "border-disabled": H.black[100],
3765
+ // ── Ring (focus) ──
3766
+ ring: "var(--orb-branding-200)",
3767
+ "ring-offset": y[0],
3768
+ // ── Surface ──
3769
+ surface: y[0],
3770
+ "surface-raised": y[50],
3771
+ "surface-overlay": y[0],
3772
+ // ── Primary (brand — driven by --orb-branding-* palette) ──
3773
+ primary: "var(--orb-branding-600)",
3774
+ "primary-hover": "var(--orb-branding-700)",
3775
+ "primary-active": "var(--orb-branding-800)",
3776
+ "primary-focus": "var(--orb-branding-600)",
3777
+ "primary-subtle": "var(--orb-branding-50)",
3778
+ "primary-fg": y[0],
3779
+ "primary-border": "var(--orb-branding-600)",
3780
+ // ── Secondary ──
3781
+ secondary: y[0],
3782
+ "secondary-hover": y[300],
3783
+ "secondary-active": y[400],
3784
+ "secondary-focus": y[200],
3785
+ "secondary-fg": y[900],
3786
+ "secondary-border": y[300],
3787
+ // ── Success (emerald) ──
3788
+ success: ne[600],
3789
+ "success-hover": ne[700],
3790
+ "success-subtle": ne[50],
3791
+ "success-fg": y[0],
3792
+ "success-border": ne[300],
3793
+ "success-text": ne[700],
3794
+ // ── Warning (amber) ──
3795
+ warning: de[500],
3796
+ "warning-hover": de[600],
3797
+ "warning-subtle": de[50],
3798
+ "warning-fg": y[1e3],
3799
+ "warning-border": de[300],
3800
+ "warning-text": de[700],
3801
+ // ── Error (red) ──
3802
+ error: D[600],
3803
+ "error-hover": D[700],
3804
+ "error-subtle": D[50],
3805
+ "error-fg": y[0],
3806
+ "error-border": D[300],
3807
+ "error-text": D[700],
3808
+ // ── Info (sky) ──
3809
+ info: ce[600],
3810
+ "info-hover": ce[700],
3811
+ "info-subtle": ce[50],
3812
+ "info-fg": y[0],
3813
+ "info-border": ce[300],
3814
+ "info-text": ce[700],
3815
+ // ── Input ──
3816
+ "input-bg": y[50],
3817
+ "input-border": y[200],
3818
+ "input-border-hover": y[300],
3819
+ "input-border-focus": "var(--orb-branding-600)",
3820
+ "input-placeholder": y[400],
3821
+ "input-disabled-bg": H.black[100],
3822
+ "input-disabled-fg": H.black[250],
3823
+ // ── Color variants (medium = solid, light = subtle bg) ──
3824
+ "bg-medium-pink": Fe[600],
3825
+ "bg-light-pink": Fe[50],
3826
+ "text-medium-pink": Fe[600],
3827
+ "bg-medium-gray": y[700],
3828
+ "bg-light-gray": y[100],
3829
+ "text-medium-gray": y[600],
3830
+ "bg-medium-green": ue[600],
3831
+ "bg-light-green": ue[50],
3832
+ "text-medium-green": ue[700],
3833
+ "bg-medium-red": D[600],
3834
+ "bg-light-red": D[50],
3835
+ "text-medium-red": D[600],
3836
+ "bg-medium-yellow": Se[500],
3837
+ "bg-light-yellow": Se[50],
3838
+ "text-medium-yellow": Se[700],
3839
+ "bg-medium-blue": Me[600],
3840
+ "bg-light-blue": Me[50],
3841
+ "text-medium-blue": Me[600],
3842
+ "bg-medium-purple": Ae[600],
3843
+ "bg-light-purple": Ae[50],
3844
+ "text-medium-purple": Ae[600],
3845
+ "bg-medium-indigo": ze[600],
3846
+ "bg-light-indigo": ze[50],
3847
+ "text-medium-indigo": ze[600],
3848
+ "bg-medium-orange": Oe[600],
3849
+ "bg-light-orange": Oe[50],
3850
+ "text-medium-orange": Oe[700],
3851
+ "bg-medium-teal": Le[600],
3852
+ "bg-light-teal": Le[50],
3853
+ "text-medium-teal": Le[700],
3854
+ "bg-medium-cyan": Ve[600],
3855
+ "bg-light-cyan": Ve[50],
3856
+ "text-medium-cyan": Ve[700],
3857
+ // ── Tooltip ──
3858
+ "tooltip-bg": y[900],
3859
+ "tooltip-fg": y[0],
3860
+ // ── Icon ──
3861
+ "icon-default": y[600],
3862
+ "icon-disabled": H.black[250],
3863
+ "icon-hyperlink": "var(--orb-branding-600)",
3864
+ "icon-success": ne[600],
3865
+ // ── Text extras ──
3866
+ "text-hyperlink": "var(--orb-branding-600)",
3867
+ "text-disabled": H.black[250],
3868
+ "text-invalid": D[600],
3869
+ // ── Border extras ──
3870
+ "border-field": y[200],
3871
+ "border-field-action": y[700],
3872
+ "border-invalid": D[600],
3873
+ "border-neutral": y[0],
3874
+ // ── Background extras ──
3875
+ "bg-field": y[0],
3876
+ "bg-field-disabled": H.black[100],
3877
+ "bg-layer2": y[50],
3878
+ "bg-disabled": H.black[100],
3879
+ // ── Shadow (semantic — references primitives) ──
3880
+ "shadow-sm": Ie[100],
3881
+ "shadow-md": Ie[200],
3882
+ "shadow-lg": Ie[300],
3883
+ "shadow-overlay": Ie[200],
3884
+ "overlay-bg": H.white[200],
3885
+ // ── Dialog / Modal ──
3886
+ "dialog-bg": y[0],
3887
+ "dialog-border": y[200],
3888
+ "dialog-shadow": Ie[300],
3889
+ "dialog-scrim": H.black[400],
3890
+ "dialog-outline": "transparent",
3891
+ "dialog-header-border": "transparent",
3892
+ "dialog-footer-border": "transparent",
3893
+ "dialog-footer-bg": y[50],
3894
+ // ── Shared semantic ──
3895
+ "text-support": L[500],
3896
+ "frame-bg-layer3": y[100]
3897
+ }, Ai = {
3898
+ // ── Background (layer) ──
3899
+ // Hierarchy: bg (deepest) → bg-subtle (cards/hero) → bg-muted (code/inputs) → bg-emphasis (hover)
3900
+ bg: L[900],
3901
+ "bg-subtle": L[800],
3902
+ "bg-muted": L[700],
3903
+ "bg-emphasis": L[600],
3904
+ "bg-inverse": L[50],
3905
+ // ── Foreground / Text ──
3906
+ fg: y[0],
3907
+ "fg-subtle": L[300],
3908
+ "fg-muted": L[400],
3909
+ "fg-on-emphasis": y[0],
3910
+ "fg-inverse": L[950],
3911
+ "fg-disabled": H.white[250],
3912
+ // ── Border ──
3913
+ border: L[700],
3914
+ "border-subtle": L[800],
3915
+ "border-emphasis": L[600],
3916
+ "border-disabled": H.white[100],
3917
+ // ── Ring (focus) ──
3918
+ ring: "var(--orb-branding-300)",
3919
+ "ring-offset": L[900],
3920
+ // ── Surface ──
3921
+ surface: L[800],
3922
+ "surface-raised": L[700],
3923
+ "surface-overlay": L[700],
3924
+ // ── Primary (brand — driven by --orb-branding-* palette) ──
3925
+ primary: "var(--orb-branding-600)",
3926
+ "primary-hover": "var(--orb-branding-700)",
3927
+ "primary-active": "var(--orb-branding-800)",
3928
+ "primary-focus": "var(--orb-branding-600)",
3929
+ "primary-subtle": "var(--orb-branding-950)",
3930
+ "primary-fg": y[0],
3931
+ "primary-border": "var(--orb-branding-600)",
3932
+ // ── Secondary ──
3933
+ secondary: "rgba(148, 163, 184, 0.1)",
3934
+ "secondary-hover": "rgba(203, 213, 225, 0.1)",
3935
+ "secondary-active": "rgba(241, 245, 249, 0.25)",
3936
+ "secondary-focus": "rgba(241, 245, 249, 0.10)",
3937
+ "secondary-fg": y[0],
3938
+ "secondary-border": "transparent",
3939
+ // ── Success (emerald) ──
3940
+ success: ne[600],
3941
+ "success-hover": ne[500],
3942
+ "success-subtle": ne[950],
3943
+ "success-fg": y[0],
3944
+ "success-border": ne[800],
3945
+ "success-text": ne[400],
3946
+ // ── Warning (amber) ──
3947
+ warning: de[500],
3948
+ "warning-hover": de[400],
3949
+ "warning-subtle": de[950],
3950
+ "warning-fg": y[1e3],
3951
+ "warning-border": de[800],
3952
+ "warning-text": de[400],
3953
+ // ── Error (red) ──
3954
+ error: D[500],
3955
+ "error-hover": D[400],
3956
+ "error-subtle": D[950],
3957
+ "error-fg": y[0],
3958
+ "error-border": D[800],
3959
+ "error-text": D[400],
3960
+ // ── Info (sky) ──
3961
+ info: ce[600],
3962
+ "info-hover": ce[500],
3963
+ "info-subtle": ce[950],
3964
+ "info-fg": y[0],
3965
+ "info-border": ce[800],
3966
+ "info-text": ce[400],
3967
+ // ── Input ──
3968
+ "input-bg": L[800],
3969
+ "input-border": L[600],
3970
+ "input-border-hover": L[500],
3971
+ "input-border-focus": "var(--orb-branding-600)",
3972
+ "input-placeholder": L[400],
3973
+ "input-disabled-bg": H.white[100],
3974
+ "input-disabled-fg": H.white[250],
3975
+ // ── Color variants (medium = solid, light = subtle bg) ──
3976
+ "bg-medium-pink": Fe[600],
3977
+ "bg-light-pink": Fe[950],
3978
+ "text-medium-pink": Fe[400],
3979
+ "bg-medium-gray": L[400],
3980
+ "bg-light-gray": L[700],
3981
+ "text-medium-gray": L[300],
3982
+ "bg-medium-green": ue[600],
3983
+ "bg-light-green": ue[950],
3984
+ "text-medium-green": ue[400],
3985
+ "bg-medium-red": D[500],
3986
+ "bg-light-red": D[950],
3987
+ "text-medium-red": D[400],
3988
+ "bg-medium-yellow": Se[500],
3989
+ "bg-light-yellow": Se[950],
3990
+ "text-medium-yellow": Se[400],
3991
+ "bg-medium-blue": Me[500],
3992
+ "bg-light-blue": Me[950],
3993
+ "text-medium-blue": Me[400],
3994
+ "bg-medium-purple": Ae[500],
3995
+ "bg-light-purple": Ae[950],
3996
+ "text-medium-purple": Ae[400],
3997
+ "bg-medium-indigo": ze[500],
3998
+ "bg-light-indigo": ze[950],
3999
+ "text-medium-indigo": ze[400],
4000
+ "bg-medium-orange": Oe[500],
4001
+ "bg-light-orange": Oe[950],
4002
+ "text-medium-orange": Oe[400],
4003
+ "bg-medium-teal": Le[500],
4004
+ "bg-light-teal": Le[950],
4005
+ "text-medium-teal": Le[400],
4006
+ "bg-medium-cyan": Ve[500],
4007
+ "bg-light-cyan": Ve[950],
4008
+ "text-medium-cyan": Ve[400],
4009
+ // ── Tooltip ──
4010
+ "tooltip-bg": L[700],
4011
+ "tooltip-fg": y[0],
4012
+ // ── Icon ──
4013
+ "icon-default": L[300],
4014
+ "icon-disabled": H.white[250],
4015
+ "icon-hyperlink": "var(--orb-branding-600)",
4016
+ "icon-success": ne[500],
4017
+ // ── Text extras ──
4018
+ "text-hyperlink": "var(--orb-branding-600)",
4019
+ "text-disabled": H.white[250],
4020
+ "text-invalid": D[400],
4021
+ // ── Border extras ──
4022
+ "border-field": L[600],
4023
+ "border-field-action": L[300],
4024
+ "border-invalid": D[500],
4025
+ "border-neutral": y[0],
4026
+ // ── Background extras ──
4027
+ "bg-field": L[800],
4028
+ "bg-field-disabled": H.white[100],
4029
+ "bg-layer2": L[800],
4030
+ "bg-disabled": H.white[100],
4031
+ // ── Shadow (semantic — references primitives) ──
4032
+ "shadow-sm": We[100],
4033
+ "shadow-md": We[200],
4034
+ "shadow-lg": We[300],
4035
+ "shadow-overlay": We[200],
4036
+ "overlay-bg": H.white[120],
4037
+ // ── Dialog / Modal ──
4038
+ "dialog-bg": L[800],
4039
+ "dialog-border": L[600],
4040
+ "dialog-shadow": We[300],
4041
+ "dialog-scrim": H.black[700],
4042
+ "dialog-outline": H.white[100],
4043
+ "dialog-header-border": "transparent",
4044
+ "dialog-footer-border": "transparent",
4045
+ "dialog-footer-bg": "rgba(51, 65, 85, 0.25)",
4046
+ // ── Shared semantic ──
4047
+ "text-support": L[400],
4048
+ "frame-bg-layer3": L[600]
4049
+ }, Fi = {
4050
+ // ── Success (fixed across themes) ──
4051
+ "static-success-default": ue[600],
4052
+ "static-success-hover": ue[700],
4053
+ "static-success-active": ue[800],
4054
+ "static-success-focus": ue[600],
4055
+ // ── Invalid (fixed across themes) ──
4056
+ "static-invalid-default": D[600],
4057
+ "static-invalid-hover": D[700],
4058
+ "static-invalid-active": D[800],
4059
+ "static-invalid-focus": D[600],
4060
+ // ── Overlay actions (buttons over images/media) ──
4061
+ "static-overlay-bg": H.black[400],
4062
+ "static-overlay-bg-hover": H.black[550],
4063
+ "static-overlay-fg": y[0]
4064
+ }, Ri = {
4065
+ branding: ei
4066
+ }, Di = {
4067
+ branding: li
4068
+ }, Hi = {
4069
+ branding: ti
4070
+ }, Ii = {
4071
+ branding: ai
4072
+ }, Wi = {
4073
+ branding: oi
4074
+ };
4075
+ function Zi(e) {
4076
+ return e;
4077
+ }
4078
+ function Je(e) {
4079
+ return Object.entries(e).map(([v, l]) => ` --orb-${v}: ${l};`).join(`
4080
+ `);
4081
+ }
4082
+ function Ei(e) {
4083
+ var d, m;
4084
+ const v = [];
4085
+ v.push(`/**
4086
+ * Orbit Design System - Custom Theme Overrides
4087
+ * Auto-generated from orbit.config.ts
4088
+ *
4089
+ * Import AFTER variables.css:
4090
+ * import '@neowit/orbit-tokens/css'
4091
+ * import './orbit-overrides.css'
4092
+ */`);
4093
+ const l = (d = e.theme) == null ? void 0 : d.light, c = (m = e.theme) == null ? void 0 : m.dark;
4094
+ return l && Object.keys(l).length > 0 && v.push(`:root,
4095
+ [data-theme="light"] {
4096
+ ${Je(l)}
4097
+ }`), c && Object.keys(c).length > 0 && (v.push(`[data-theme="dark"] {
4098
+ ${Je(c)}
4099
+ }`), v.push(`@media (prefers-color-scheme: dark) {
4100
+ :root:not([data-theme="light"]):not([data-theme="dark"]) {
4101
+ ${Je(c)}
4102
+ }
4103
+ }`)), v.join(`
4104
+
4105
+ `) + `
4106
+ `;
4107
+ }
4108
+ const ii = {
4109
+ OText: Ml,
4110
+ OBadge: Fl,
4111
+ OTooltip: Rl,
4112
+ OHelpText: Re,
4113
+ OFieldLabel: Ke,
4114
+ OCheckbox: ql,
4115
+ ORadioButton: Ul,
4116
+ OSwitch: et,
4117
+ OFieldWrap: Ne,
4118
+ OButton: rt,
4119
+ OStatusIcon: Ee,
4120
+ OTextField: St,
4121
+ OTextArea: Mt,
4122
+ ORadioGroup: It,
4123
+ OCheckboxGroup: Ut,
4124
+ OButtonGroup: Qt,
4125
+ OSelect: lo,
4126
+ OAlert: ro,
4127
+ ODialog: gl,
4128
+ ODialogProvider: Xo,
4129
+ OAlertDialog: ml
4130
+ }, Pi = {
4131
+ install(e) {
4132
+ for (const [v, l] of Object.entries(ii))
4133
+ e.component(v, l);
4134
+ }
4135
+ };
4136
+ export {
4137
+ ro as OAlert,
4138
+ ml as OAlertDialog,
4139
+ Fl as OBadge,
4140
+ rt as OButton,
4141
+ Qt as OButtonGroup,
4142
+ ql as OCheckbox,
4143
+ Ut as OCheckboxGroup,
4144
+ gl as ODialog,
4145
+ Xo as ODialogProvider,
4146
+ Ke as OFieldLabel,
4147
+ Ne as OFieldWrap,
4148
+ Re as OHelpText,
4149
+ Ul as ORadioButton,
4150
+ It as ORadioGroup,
4151
+ lo as OSelect,
4152
+ Ee as OStatusIcon,
4153
+ et as OSwitch,
4154
+ Ml as OText,
4155
+ Mt as OTextArea,
4156
+ St as OTextField,
4157
+ Rl as OTooltip,
4158
+ Pi as OrbitPlugin,
4159
+ de as amber,
4160
+ Me as blue,
4161
+ Li as body,
4162
+ $i as borderRadius,
4163
+ Ci as borderWidth,
4164
+ _i as breakpoints,
4165
+ Mi as button,
4166
+ Vi as caption,
4167
+ Ri as contasy,
4168
+ Wi as contasyGlobal,
4169
+ Ii as contasyPrivate,
4170
+ Hi as contasyStart,
4171
+ Ve as cyan,
4172
+ Ai as dark,
4173
+ Pi as default,
4174
+ Zi as defineOrbitConfig,
4175
+ Ti as duration,
4176
+ Oi as easing,
4177
+ ne as emerald,
4178
+ Y as fontFamily,
4179
+ pi as fontFeatureSettings,
4180
+ X as fontSize,
4181
+ J as fontWeight,
4182
+ ui as fuchsia,
4183
+ Ei as generateConfigCss,
4184
+ hi as gray,
4185
+ ue as green,
4186
+ Si as heading,
4187
+ ze as indigo,
4188
+ zi as light,
4189
+ di as lime,
4190
+ ee as lineHeight,
4191
+ ki as mauve,
4192
+ mi as mist,
4193
+ y as neutral,
4194
+ Di as notasy,
4195
+ gi as olive,
4196
+ Oe as orange,
4197
+ xi as orbit,
4198
+ Fe as pink,
4199
+ Ae as purple,
4200
+ D as red,
4201
+ bi as rose,
4202
+ Ie as shadows,
4203
+ We as shadowsDark,
4204
+ ce as sky,
4205
+ L as slate,
4206
+ wi as spacing,
4207
+ Fi as staticTokens,
4208
+ vi as stone,
4209
+ yi as taupe,
4210
+ Le as teal,
4211
+ H as transparent,
4212
+ si as useDialog,
4213
+ ri as useTheme,
4214
+ ci as violet,
4215
+ Se as yellow,
4216
+ Bi as zIndex,
4217
+ fi as zinc
4218
+ };