@vlalg-nimbus/nb-inputs 8.0.17 → 8.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.
package/dist/nb-inputs.js CHANGED
@@ -1,8 +1,8 @@
1
- import { useCssVars as ya, onMounted as pa, ref as j, toRefs as ma, computed as a, watch as U, openBlock as M, createElementBlock as D, normalizeClass as Fe, normalizeStyle as Se, createElementVNode as pe, mergeProps as ba, Fragment as Ya, renderList as Qa, unref as o, withDirectives as ha, vModelRadio as fl, withKeys as Kt, withModifiers as ga, toDisplayString as kt, createCommentVNode as re, vModelCheckbox as vl, onUnmounted as $a, createTextVNode as It, renderSlot as va, vModelDynamic as Ja, vModelText as Xa, defineAsyncComponent as pl, nextTick as _a, createBlock as bl, Teleport as gl, createVNode as yl } from "vue";
2
- const Ca = (e, y) => {
1
+ import { useCssVars as ma, onMounted as ba, ref as G, toRefs as ha, computed as a, watch as K, openBlock as z, createElementBlock as N, normalizeClass as Oe, normalizeStyle as Le, createElementVNode as pe, mergeProps as ga, Fragment as Qa, renderList as Ja, unref as o, withDirectives as Ca, vModelRadio as fl, withKeys as Gt, withModifiers as ya, toDisplayString as Bt, createCommentVNode as re, vModelCheckbox as vl, onUnmounted as $a, createTextVNode as Et, renderSlot as pa, vModelDynamic as Xa, vModelText as Za, defineAsyncComponent as pl, nextTick as _a, createBlock as bl, Teleport as gl, createVNode as yl } from "vue";
2
+ const xa = (e, y) => {
3
3
  const h = e.__vccOpts || e;
4
- for (const [P, N] of y)
5
- h[P] = N;
4
+ for (const [P, I] of y)
5
+ h[P] = I;
6
6
  return h;
7
7
  }, ml = ["id"], hl = ["id", "disabled", "value", "name"], Cl = ["for", "tabindex"], xl = /* @__PURE__ */ Object.assign({
8
8
  name: "NbInputRadio",
@@ -59,7 +59,7 @@ const Ca = (e, y) => {
59
59
  let y = !1;
60
60
  for (const h of e) {
61
61
  const P = Object.keys(h);
62
- P.length !== 2 && (y = !0), P.every((Ve) => ["value", "text"].includes(Ve)) || (y = !0);
62
+ P.length !== 2 && (y = !0), P.every((Te) => ["value", "text"].includes(Te)) || (y = !0);
63
63
  }
64
64
  if (!y)
65
65
  return e;
@@ -152,141 +152,141 @@ const Ca = (e, y) => {
152
152
  },
153
153
  emits: ["current-value", "changed", "clicked"],
154
154
  setup(e, { emit: y }) {
155
- ya((b) => ({
155
+ ma((g) => ({
156
156
  "0fd48d29": ye.value,
157
- "50426c15": ct.value,
158
- "5fa7628c": dt.value,
159
- "5949c3d2": Te.value,
160
- 91322790: Qe.value,
161
- "6750fc92": lt.value,
162
- "8c592938": mt.value,
163
- c11d4680: st.value,
164
- "35b74fa6": nt.value,
157
+ "50426c15": ft.value,
158
+ "5fa7628c": St.value,
159
+ "5949c3d2": _e.value,
160
+ 91322790: et.value,
161
+ "6750fc92": ot.value,
162
+ "8c592938": Ct.value,
163
+ c11d4680: ct.value,
164
+ "35b74fa6": ut.value,
165
165
  "7dd5f889": xe.value,
166
- "5cb21b36": ht.value
167
- })), pa(() => {
168
- Je();
166
+ "5cb21b36": xt.value
167
+ })), ba(() => {
168
+ je();
169
169
  });
170
- const h = y, P = e, N = j(null), {
171
- ariaLabel: Ve,
170
+ const h = y, P = e, I = G(null), {
171
+ ariaLabel: Te,
172
172
  ariaAttrs: be,
173
- currentOption: Re,
174
- valueType: ke,
173
+ currentOption: Me,
174
+ valueType: Be,
175
175
  display: ie,
176
- options: J,
177
- theme: Oe,
178
- lightTextColor: Me,
179
- lightColor: ae,
180
- lightColorHover: G,
181
- darkTextColor: w,
182
- darkColor: le,
176
+ options: Z,
177
+ theme: qe,
178
+ lightTextColor: ze,
179
+ lightColor: le,
180
+ lightColorHover: Y,
181
+ darkTextColor: R,
182
+ darkColor: ne,
183
183
  darkColorHover: se,
184
- hoverEffect: K,
185
- activeHoverEffect: Le,
184
+ hoverEffect: Q,
185
+ activeHoverEffect: Ae,
186
186
  itemGap: de,
187
187
  internalGap: F,
188
188
  scale: ge,
189
- disabled: X,
189
+ disabled: ee,
190
190
  fontFamily: he,
191
191
  fontSize: ce,
192
192
  fontWeight: Ce
193
- } = ma(P), $ = a(() => {
194
- const b = X.value ? "component-disabled" : "", S = ie.value !== "b" ? "inline-block" : "block", ne = he.value ? he.value : "'Lato', sans-serif", Z = ce.value ? ce.value : "1.6em", me = Ce.value !== 0 && !Ce.value || Ce.value < 0 ? 200 : Ce.value, Be = [!1, !0].includes(K.value) ? K.value : !1, Xe = [!1, !0].includes(Le.value) ? Le.value : !1, q = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, d = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, m = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value;
193
+ } = ha(P), $ = a(() => {
194
+ const g = ee.value ? "component-disabled" : "", T = ie.value !== "b" ? "inline-block" : "block", te = he.value ? he.value : "'Lato', sans-serif", H = ce.value ? ce.value : "1.6em", me = Ce.value !== 0 && !Ce.value || Ce.value < 0 ? 200 : Ce.value, tt = [!1, !0].includes(Q.value) ? Q.value : !1, $e = [!1, !0].includes(Ae.value) ? Ae.value : !1, fe = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, c = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, m = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value;
195
195
  return {
196
- disabled: b,
197
- display: S,
198
- hoverEffect: Be,
199
- activeHoverEffect: Xe,
200
- itemGap: q,
201
- internalGap: d,
196
+ disabled: g,
197
+ display: T,
198
+ hoverEffect: tt,
199
+ activeHoverEffect: $e,
200
+ itemGap: fe,
201
+ internalGap: c,
202
202
  scale: m,
203
- font: ne,
204
- fontSize: Z,
203
+ font: te,
204
+ fontSize: H,
205
205
  fontWeight: me
206
206
  };
207
- }), L = a(() => $.value.disabled), C = a(() => ({
207
+ }), k = a(() => $.value.disabled), C = a(() => ({
208
208
  display: $.value.display
209
- })), ze = a(() => $.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), He = a(() => {
210
- const b = $.value;
209
+ })), We = a(() => $.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), Ge = a(() => {
210
+ const g = $.value;
211
211
  return {
212
- fontSize: b.fontSize,
213
- fontWeight: b.fontWeight
212
+ fontSize: g.fontSize,
213
+ fontWeight: g.fontWeight
214
214
  };
215
- }), We = a(() => Array.isArray(J.value) && J.value.constructor === Array && J.value.length > 0), at = a(() => Oe.value === "dark" ? "component__theme--dark" : "component__theme--light"), ye = a(() => $.value.font), lt = a(() => Me.value), mt = a(() => ae.value), Qe = a(() => $.value.hoverEffect ? G.value : ae.value), Te = a(() => $.value.activeHoverEffect ? G.value : ae.value), xe = a(() => w.value), ht = a(() => le.value), nt = a(() => $.value.hoverEffect ? se.value : le.value), st = a(() => $.value.activeHoverEffect ? se.value : le.value), dt = a(() => {
216
- const S = $.value.internalGap;
217
- return !S || S < 0 ? 0 : `${S}px`;
218
- }), ct = a(() => {
219
- const S = $.value.itemGap;
220
- return !S || S < 0 ? 0 : `${S}px`;
221
- }), je = a(() => ({
215
+ }), De = a(() => Array.isArray(Z.value) && Z.value.constructor === Array && Z.value.length > 0), nt = a(() => qe.value === "dark" ? "component__theme--dark" : "component__theme--light"), ye = a(() => $.value.font), ot = a(() => ze.value), Ct = a(() => le.value), et = a(() => $.value.hoverEffect ? Y.value : le.value), _e = a(() => $.value.activeHoverEffect ? Y.value : le.value), xe = a(() => R.value), xt = a(() => ne.value), ut = a(() => $.value.hoverEffect ? se.value : ne.value), ct = a(() => $.value.activeHoverEffect ? se.value : ne.value), St = a(() => {
216
+ const T = $.value.internalGap;
217
+ return !T || T < 0 ? 0 : `${T}px`;
218
+ }), ft = a(() => {
219
+ const T = $.value.itemGap;
220
+ return !T || T < 0 ? 0 : `${T}px`;
221
+ }), He = a(() => ({
222
222
  zoom: $.value.scale
223
- })), Ue = a(() => {
224
- const b = {};
225
- be.value && Object.keys(be.value).forEach((Z) => b[`aria-${Z}`] = be.value[Z]);
226
- const S = {
227
- "aria-label": Ve.value,
228
- "aria-disabled": X.value,
229
- ...b
223
+ })), vt = a(() => {
224
+ const g = {};
225
+ be.value && Object.keys(be.value).forEach((H) => g[`aria-${H}`] = be.value[H]);
226
+ const T = {
227
+ "aria-label": Te.value,
228
+ "aria-disabled": ee.value,
229
+ ...g
230
230
  };
231
231
  return Object.fromEntries(
232
- Object.entries(S).filter(([ne, Z]) => Z != null)
232
+ Object.entries(T).filter(([te, H]) => H != null)
233
233
  );
234
- }), Je = () => {
235
- const b = Re.value;
236
- b && ["string"].includes(ke.value) ? N.value = b.toString().toLowerCase() : N.value = b;
237
- }, Ge = () => {
234
+ }), je = () => {
235
+ const g = Me.value;
236
+ g && ["string"].includes(Be.value) ? I.value = g.toString().toLowerCase() : I.value = g;
237
+ }, Ke = () => {
238
238
  h("clicked");
239
239
  };
240
- return U(Re, (b, S) => {
241
- b !== S && Je();
242
- }), U(N, (b, S) => {
243
- b !== S && (h("current-value", b), h("changed", b));
244
- }), (b, S) => e.nbId && We.value ? (M(), D("div", {
240
+ return K(Me, (g, T) => {
241
+ g !== T && je();
242
+ }), K(I, (g, T) => {
243
+ g !== T && (h("current-value", g), h("changed", g));
244
+ }), (g, T) => e.nbId && De.value ? (z(), N("div", {
245
245
  key: 0,
246
- class: Fe(["nb-wrapper", L.value]),
247
- style: Se([C.value, je.value])
246
+ class: Oe(["nb-wrapper", k.value]),
247
+ style: Le([C.value, He.value])
248
248
  }, [
249
- pe("div", ba({
249
+ pe("div", ga({
250
250
  id: e.nbId,
251
251
  role: "radiogroup"
252
- }, Ue.value, {
253
- class: ["nb-reset", "component", ze.value, at.value]
252
+ }, vt.value, {
253
+ class: ["nb-reset", "component", We.value, nt.value]
254
254
  }), [
255
- (M(!0), D(Ya, null, Qa(o(J), (ne, Z) => (M(), D("div", {
256
- key: Z,
255
+ (z(!0), N(Qa, null, Ja(o(Z), (te, H) => (z(), N("div", {
256
+ key: H,
257
257
  class: "component-radio__item"
258
258
  }, [
259
- ha(pe("input", {
260
- id: `${e.nbId}-${ne.value}`,
261
- "onUpdate:modelValue": S[0] || (S[0] = (me) => N.value = me),
259
+ Ca(pe("input", {
260
+ id: `${e.nbId}-${te.value}`,
261
+ "onUpdate:modelValue": T[0] || (T[0] = (me) => I.value = me),
262
262
  type: "radio",
263
263
  class: "component-radio__item--input",
264
- disabled: o(X),
265
- value: ne.value,
264
+ disabled: o(ee),
265
+ value: te.value,
266
266
  name: e.groupName,
267
- onClick: Ge
267
+ onClick: Ke
268
268
  }, null, 8, hl), [
269
- [fl, N.value]
269
+ [fl, I.value]
270
270
  ]),
271
271
  pe("label", {
272
- for: `${e.nbId}-${ne.value}`,
273
- tabindex: o(X) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[Z] : e.tabIndex >= 0 ? e.tabIndex : Z + 1,
272
+ for: `${e.nbId}-${te.value}`,
273
+ tabindex: o(ee) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[H] : e.tabIndex >= 0 ? e.tabIndex : H + 1,
274
274
  class: "component-radio__item--label",
275
275
  onKeydown: [
276
- S[1] || (S[1] = Kt(ga((me) => !o(X) && e.hasTabIndexEnter && me.target.click(), ["prevent"]), ["enter"])),
277
- S[2] || (S[2] = Kt(ga((me) => !o(X) && e.hasTabIndexSpace && me.target.click(), ["prevent"]), ["space"]))
276
+ T[1] || (T[1] = Gt(ya((me) => !o(ee) && e.hasTabIndexEnter && me.target.click(), ["prevent"]), ["enter"])),
277
+ T[2] || (T[2] = Gt(ya((me) => !o(ee) && e.hasTabIndexSpace && me.target.click(), ["prevent"]), ["space"]))
278
278
  ]
279
279
  }, [
280
- S[3] || (S[3] = pe("div", null, null, -1)),
280
+ T[3] || (T[3] = pe("div", null, null, -1)),
281
281
  pe("span", {
282
- style: Se([He.value])
283
- }, kt(ne.text), 5)
282
+ style: Le([Ge.value])
283
+ }, Bt(te.text), 5)
284
284
  ], 40, Cl)
285
285
  ]))), 128))
286
286
  ], 16, ml)
287
287
  ], 6)) : re("", !0);
288
288
  }
289
- }), Sl = /* @__PURE__ */ Ca(xl, [["__scopeId", "data-v-a95f65ea"]]);
289
+ }), Sl = /* @__PURE__ */ xa(xl, [["__scopeId", "data-v-a95f65ea"]]);
290
290
  const Vl = ["id"], kl = ["id", "disabled", "value", "name"], Ll = ["for", "tabindex"], Tl = /* @__PURE__ */ Object.assign({
291
291
  name: "NbInputCheckbox",
292
292
  inheritAttrs: !1
@@ -342,7 +342,7 @@ const Vl = ["id"], kl = ["id", "disabled", "value", "name"], Ll = ["for", "tabin
342
342
  let y = !1;
343
343
  for (const h of e) {
344
344
  const P = Object.keys(h);
345
- P.length !== 2 && (y = !0), P.every((Ve) => ["value", "text"].includes(Ve)) || (y = !0);
345
+ P.length !== 2 && (y = !0), P.every((Te) => ["value", "text"].includes(Te)) || (y = !0);
346
346
  }
347
347
  if (!y)
348
348
  return e;
@@ -448,165 +448,165 @@ const Vl = ["id"], kl = ["id", "disabled", "value", "name"], Ll = ["for", "tabin
448
448
  },
449
449
  emits: ["current-value", "changed", "clicked"],
450
450
  setup(e, { emit: y }) {
451
- ya((d) => ({
452
- "49e2c63f": mt.value,
453
- "107babaa": ne.value,
454
- "3c7cc5ce": S.value,
455
- "16d311d0": b.value,
456
- "3f8b2f30": ht.value,
451
+ ma((c) => ({
452
+ "49e2c63f": Ct.value,
453
+ "107babaa": te.value,
454
+ "3c7cc5ce": T.value,
455
+ "16d311d0": g.value,
456
+ "3f8b2f30": xt.value,
457
457
  "53078d64": xe.value,
458
- "537834e6": nt.value,
459
- fbc86ee4: Te.value,
460
- "517939e1": Qe.value,
461
- "3faff29d": Ge.value,
462
- "302ecd6a": je.value,
463
- "8a4df060": ct.value,
464
- "0a99dbe2": Ue.value,
465
- d6971e68: dt.value,
466
- ca30d9c2: st.value
467
- })), pa(() => {
468
- Xe();
458
+ "537834e6": ut.value,
459
+ fbc86ee4: _e.value,
460
+ "517939e1": et.value,
461
+ "3faff29d": Ke.value,
462
+ "302ecd6a": He.value,
463
+ "8a4df060": ft.value,
464
+ "0a99dbe2": vt.value,
465
+ d6971e68: St.value,
466
+ ca30d9c2: ct.value
467
+ })), ba(() => {
468
+ $e();
469
469
  });
470
- const h = y, P = e, N = j(null), {
471
- ariaLabel: Ve,
470
+ const h = y, P = e, I = G(null), {
471
+ ariaLabel: Te,
472
472
  ariaAttrs: be,
473
- currentOption: Re,
474
- display: ke,
473
+ currentOption: Me,
474
+ display: Be,
475
475
  options: ie,
476
- theme: J,
477
- lightTextColor: Oe,
478
- lightColor: Me,
479
- lightColorHover: ae,
480
- darkTextColor: G,
481
- darkColor: w,
482
- darkColorHover: le,
476
+ theme: Z,
477
+ lightTextColor: qe,
478
+ lightColor: ze,
479
+ lightColorHover: le,
480
+ darkTextColor: Y,
481
+ darkColor: R,
482
+ darkColorHover: ne,
483
483
  boxRadius: se,
484
- hoverEffect: K,
485
- activeHoverEffect: Le,
484
+ hoverEffect: Q,
485
+ activeHoverEffect: Ae,
486
486
  itemGap: de,
487
487
  internalGap: F,
488
488
  scale: ge,
489
- type: X,
489
+ type: ee,
490
490
  background: he,
491
491
  disabled: ce,
492
492
  fontFamily: Ce,
493
493
  fontSize: $,
494
- fontWeight: L
495
- } = ma(P), C = a(() => {
496
- const d = ce.value ? "component-disabled" : "", m = ke.value !== "b" ? "inline-block" : "block", fe = Ce.value ? Ce.value : "'Lato', sans-serif", H = $.value ? $.value : "1.6em", Y = L.value !== 0 && !L.value || L.value < 0 ? 200 : L.value, Ae = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, _e = [!1, !0].includes(K.value) ? K.value : !1, De = [!1, !0].includes(Le.value) ? Le.value : !1, qe = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, Ze = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, ot = ["box", "circle"].includes(X.value) ? X.value : "box", ut = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value, ft = [!1, !0].includes(he.value) ? he.value : !1;
494
+ fontWeight: k
495
+ } = ha(P), C = a(() => {
496
+ const c = ce.value ? "component-disabled" : "", m = Be.value !== "b" ? "inline-block" : "block", Se = Ce.value ? Ce.value : "'Lato', sans-serif", j = $.value ? $.value : "1.6em", J = k.value !== 0 && !k.value || k.value < 0 ? 200 : k.value, Ve = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, we = [!1, !0].includes(Q.value) ? Q.value : !1, Ne = [!1, !0].includes(Ae.value) ? Ae.value : !1, Ue = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, Ye = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, rt = ["box", "circle"].includes(ee.value) ? ee.value : "box", it = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value, pt = [!1, !0].includes(he.value) ? he.value : !1;
497
497
  return {
498
- disabled: d,
498
+ disabled: c,
499
499
  display: m,
500
- boxRadius: Ae,
501
- hoverEffect: _e,
502
- activeHoverEffect: De,
503
- itemGap: qe,
504
- internalGap: Ze,
505
- scale: ut,
506
- type: ot,
507
- font: fe,
508
- background: ft,
509
- fontSize: H,
510
- fontWeight: Y
500
+ boxRadius: Ve,
501
+ hoverEffect: we,
502
+ activeHoverEffect: Ne,
503
+ itemGap: Ue,
504
+ internalGap: Ye,
505
+ scale: it,
506
+ type: rt,
507
+ font: Se,
508
+ background: pt,
509
+ fontSize: j,
510
+ fontWeight: J
511
511
  };
512
- }), ze = a(() => C.value.disabled), He = a(() => ({
512
+ }), We = a(() => C.value.disabled), Ge = a(() => ({
513
513
  display: C.value.display
514
- })), We = a(() => C.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), at = a(() => {
515
- const d = C.value;
514
+ })), De = a(() => C.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), nt = a(() => {
515
+ const c = C.value;
516
516
  return {
517
- fontSize: d.fontSize,
518
- fontWeight: d.fontWeight
517
+ fontSize: c.fontSize,
518
+ fontWeight: c.fontWeight
519
519
  };
520
- }), ye = a(() => Array.isArray(ie.value) && ie.value.constructor === Array && ie.value.length > 0), lt = a(() => J.value === "dark" ? "component__theme--dark" : "component__theme--light"), mt = a(() => C.value.font), Qe = a(() => Oe.value), Te = a(() => Me.value), xe = a(() => C.value.hoverEffect ? ae.value : Me.value), ht = a(() => C.value.activeHoverEffect ? ae.value : Me.value), nt = a(() => {
521
- const d = C.value;
522
- return d.activeHoverEffect && d.background ? `${ae.value}80` : ae.value;
523
- }), st = a(() => G.value), dt = a(() => w.value), ct = a(() => C.value.hoverEffect ? le.value : w.value), je = a(() => C.value.activeHoverEffect ? le.value : w.value), Ue = a(() => {
524
- const d = C.value;
525
- return d.activeHoverEffect && d.background ? `${le.value}80` : le.value;
526
- }), Je = a(() => C.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ge = a(() => {
527
- const d = C.value, m = J.value === "dark" ? G.value : Oe.value;
528
- return d.background ? "#ffffff" : m;
520
+ }), ye = a(() => Array.isArray(ie.value) && ie.value.constructor === Array && ie.value.length > 0), ot = a(() => Z.value === "dark" ? "component__theme--dark" : "component__theme--light"), Ct = a(() => C.value.font), et = a(() => qe.value), _e = a(() => ze.value), xe = a(() => C.value.hoverEffect ? le.value : ze.value), xt = a(() => C.value.activeHoverEffect ? le.value : ze.value), ut = a(() => {
521
+ const c = C.value;
522
+ return c.activeHoverEffect && c.background ? `${le.value}80` : le.value;
523
+ }), ct = a(() => Y.value), St = a(() => R.value), ft = a(() => C.value.hoverEffect ? ne.value : R.value), He = a(() => C.value.activeHoverEffect ? ne.value : R.value), vt = a(() => {
524
+ const c = C.value;
525
+ return c.activeHoverEffect && c.background ? `${ne.value}80` : ne.value;
526
+ }), je = a(() => C.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ke = a(() => {
527
+ const c = C.value, m = Z.value === "dark" ? Y.value : qe.value;
528
+ return c.background ? "#ffffff" : m;
529
529
  });
530
530
  a(() => C.value.background ? "19px" : "auto");
531
- const b = a(() => {
531
+ const g = a(() => {
532
532
  const m = C.value.internalGap;
533
533
  return !m || m < 0 ? 0 : `${m}px`;
534
- }), S = a(() => {
535
- const d = C.value;
536
- return `${d.boxRadius > 7 ? 7 : d.boxRadius}px`;
537
- }), ne = a(() => {
534
+ }), T = a(() => {
535
+ const c = C.value;
536
+ return `${c.boxRadius > 7 ? 7 : c.boxRadius}px`;
537
+ }), te = a(() => {
538
538
  const m = C.value.itemGap;
539
539
  return !m || m < 0 ? 0 : `${m}px`;
540
- }), Z = a(() => C.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), me = a(() => ({
540
+ }), H = a(() => C.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), me = a(() => ({
541
541
  zoom: C.value.scale
542
- })), Be = a(() => {
543
- const d = {};
544
- be.value && Object.keys(be.value).forEach((H) => d[`aria-${H}`] = be.value[H]);
542
+ })), tt = a(() => {
543
+ const c = {};
544
+ be.value && Object.keys(be.value).forEach((j) => c[`aria-${j}`] = be.value[j]);
545
545
  const m = {
546
- "aria-label": Ve.value,
546
+ "aria-label": Te.value,
547
547
  "aria-disabled": ce.value,
548
- ...d
548
+ ...c
549
549
  };
550
550
  return Object.fromEntries(
551
- Object.entries(m).filter(([fe, H]) => H != null)
551
+ Object.entries(m).filter(([Se, j]) => j != null)
552
552
  );
553
- }), Xe = () => {
554
- N.value = Re.value;
555
- }, q = () => {
553
+ }), $e = () => {
554
+ I.value = Me.value;
555
+ }, fe = () => {
556
556
  h("clicked");
557
557
  };
558
- return U(Re, (d, m) => {
559
- d !== m && Xe();
560
- }), U(N, (d, m) => {
561
- d !== m && (h("current-value", d), h("changed", d));
562
- }), (d, m) => e.nbId && ye.value ? (M(), D("div", {
558
+ return K(Me, (c, m) => {
559
+ c !== m && $e();
560
+ }), K(I, (c, m) => {
561
+ c !== m && (h("current-value", c), h("changed", c));
562
+ }), (c, m) => e.nbId && ye.value ? (z(), N("div", {
563
563
  key: 0,
564
- class: Fe(["nb-wrapper", ze.value]),
565
- style: Se([He.value, me.value])
564
+ class: Oe(["nb-wrapper", We.value]),
565
+ style: Le([Ge.value, me.value])
566
566
  }, [
567
- pe("div", ba({
567
+ pe("div", ga({
568
568
  id: e.nbId,
569
569
  role: "group"
570
- }, Be.value, {
571
- class: ["nb-reset", "component", We.value, lt.value]
570
+ }, tt.value, {
571
+ class: ["nb-reset", "component", De.value, ot.value]
572
572
  }), [
573
- (M(!0), D(Ya, null, Qa(o(ie), (fe, H) => (M(), D("div", {
574
- key: H,
573
+ (z(!0), N(Qa, null, Ja(o(ie), (Se, j) => (z(), N("div", {
574
+ key: j,
575
575
  class: "component-checkbox__item"
576
576
  }, [
577
- ha(pe("input", {
578
- id: `${e.nbId}-${fe.value}`,
579
- "onUpdate:modelValue": m[0] || (m[0] = (Y) => N.value = Y),
577
+ Ca(pe("input", {
578
+ id: `${e.nbId}-${Se.value}`,
579
+ "onUpdate:modelValue": m[0] || (m[0] = (J) => I.value = J),
580
580
  type: "checkbox",
581
581
  class: "component-checkbox__item--input",
582
582
  disabled: o(ce),
583
- value: fe.value,
583
+ value: Se.value,
584
584
  name: e.groupName,
585
- onClick: q
585
+ onClick: fe
586
586
  }, null, 8, kl), [
587
- [vl, N.value]
587
+ [vl, I.value]
588
588
  ]),
589
589
  pe("label", {
590
- for: `${e.nbId}-${fe.value}`,
591
- class: Fe([[Z.value], "component-checkbox__item--label"]),
592
- tabindex: o(ce) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[H] : e.tabIndex >= 0 ? e.tabIndex : H + 1,
590
+ for: `${e.nbId}-${Se.value}`,
591
+ class: Oe([[H.value], "component-checkbox__item--label"]),
592
+ tabindex: o(ce) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[j] : e.tabIndex >= 0 ? e.tabIndex : j + 1,
593
593
  onKeydown: [
594
- m[1] || (m[1] = Kt(ga((Y) => !o(ce) && e.hasTabIndexEnter && Y.target.click(), ["prevent"]), ["enter"])),
595
- m[2] || (m[2] = Kt(ga((Y) => !o(ce) && e.hasTabIndexSpace && Y.target.click(), ["prevent"]), ["space"]))
594
+ m[1] || (m[1] = Gt(ya((J) => !o(ce) && e.hasTabIndexEnter && J.target.click(), ["prevent"]), ["enter"])),
595
+ m[2] || (m[2] = Gt(ya((J) => !o(ce) && e.hasTabIndexSpace && J.target.click(), ["prevent"]), ["space"]))
596
596
  ]
597
597
  }, [
598
598
  pe("div", {
599
- class: Fe([Je.value])
599
+ class: Oe([je.value])
600
600
  }, null, 2),
601
601
  pe("span", {
602
- style: Se([at.value])
603
- }, kt(fe.text), 5)
602
+ style: Le([nt.value])
603
+ }, Bt(Se.text), 5)
604
604
  ], 42, Ll)
605
605
  ]))), 128))
606
606
  ], 16, Vl)
607
607
  ], 6)) : re("", !0);
608
608
  }
609
- }), Bl = /* @__PURE__ */ Ca(Tl, [["__scopeId", "data-v-1c6afddc"]]);
609
+ }), Bl = /* @__PURE__ */ xa(Tl, [["__scopeId", "data-v-1c6afddc"]]);
610
610
  const Al = ["id"], _l = ["for"], $l = {
611
611
  key: 0,
612
612
  class: "component__label--required"
@@ -1057,160 +1057,160 @@ const Al = ["id"], _l = ["for"], $l = {
1057
1057
  "entered"
1058
1058
  ],
1059
1059
  setup(e, { emit: y }) {
1060
- ya((n) => ({
1061
- "598b71f8": Jt.value,
1062
- "1c1eb8e8": Qt.value,
1063
- "7e7ce396": o(ct),
1060
+ ma((n) => ({
1061
+ "598b71f8": Qt.value,
1062
+ "1c1eb8e8": Yt.value,
1063
+ "7e7ce396": o(ft),
1064
1064
  "2beb5748": ta.value,
1065
1065
  "428926a4": aa.value,
1066
- "96ddbe74": zt.value,
1067
- "09d9644b": o(S),
1068
- "18ecb6d2": o(_e),
1069
- e9631058: o(ne),
1070
- "2e9ed8c4": o(ft),
1071
- "0f798257": o(b),
1072
- b297f190: o(Je),
1073
- "2244285e": o(Ge),
1074
- e54e87ae: Ht.value,
1075
- f44e651a: o(je),
1076
- "0a29f1b6": o(Ue),
1077
- d7cee6e4: o(Ae),
1078
- "27a5d52a": o(Z),
1079
- "7ffc2c5a": o(ut),
1080
- "325114c1": o(dt),
1081
- "665dcae4": o(nt),
1082
- "5a5ee334": o(st),
1066
+ "96ddbe74": la.value,
1067
+ "09d9644b": o(T),
1068
+ "18ecb6d2": o(we),
1069
+ e9631058: o(te),
1070
+ "2e9ed8c4": o(pt),
1071
+ "0f798257": o(g),
1072
+ b297f190: o(je),
1073
+ "2244285e": o(Ke),
1074
+ e54e87ae: fa.value,
1075
+ f44e651a: o(He),
1076
+ "0a29f1b6": o(vt),
1077
+ d7cee6e4: o(Ve),
1078
+ "27a5d52a": o(H),
1079
+ "7ffc2c5a": o(it),
1080
+ "325114c1": o(St),
1081
+ "665dcae4": o(ut),
1082
+ "5a5ee334": o(ct),
1083
1083
  "84932c46": o(xe),
1084
- "0e109cfb": o(ht),
1085
- b1764ade: Dt.value,
1084
+ "0e109cfb": o(xt),
1085
+ b1764ade: sa.value,
1086
1086
  "697ee21c": da.value,
1087
1087
  "2fdb7243": ca.value,
1088
- "524d369a": jt.value,
1088
+ "524d369a": qt.value,
1089
1089
  "89de2454": ia.value,
1090
1090
  "71a4c443": o(me),
1091
- ed648ac8: oa.value,
1092
- b2bfb73a: Ft.value,
1093
- "3df309bc": Ot.value,
1091
+ ed648ac8: Tt.value,
1092
+ b2bfb73a: Jt.value,
1093
+ "3df309bc": Dt.value,
1094
1094
  "22588dcb": Xt.value,
1095
1095
  "25132f25": ea.value,
1096
1096
  "55495c15": n.styleButtonColor,
1097
1097
  "8993b80c": Zt.value
1098
- })), pa(() => {
1099
- ye.value != null ? C.value === "number" && typeof ye.value == "number" ? Q.value = ye.value : Q.value = String(ye.value) : Q.value = "";
1098
+ })), ba(() => {
1099
+ ye.value != null ? C.value === "number" && typeof ye.value == "number" ? X.value = ye.value : X.value = String(ye.value) : X.value = "";
1100
1100
  }), $a(() => {
1101
- _t();
1101
+ ht();
1102
1102
  });
1103
1103
  const h = y, P = e, {
1104
- nbId: N,
1105
- display: Ve,
1104
+ nbId: I,
1105
+ display: Te,
1106
1106
  hasTabIndexEnter: be,
1107
- ariaLabel: Re,
1108
- ariaAttrs: ke,
1107
+ ariaLabel: Me,
1108
+ ariaAttrs: Be,
1109
1109
  textColor: ie,
1110
- caretColor: J,
1111
- selectionBgColor: Oe,
1112
- selectionTextColor: Me,
1113
- hasBorderRadius: ae,
1114
- borderRadius: G,
1115
- disabled: w,
1116
- fontFamily: le,
1110
+ caretColor: Z,
1111
+ selectionBgColor: qe,
1112
+ selectionTextColor: ze,
1113
+ hasBorderRadius: le,
1114
+ borderRadius: Y,
1115
+ disabled: R,
1116
+ fontFamily: ne,
1117
1117
  fontSize: se,
1118
- fontWeight: K,
1119
- fontFamilyMsg: Le,
1118
+ fontWeight: Q,
1119
+ fontFamilyMsg: Ae,
1120
1120
  fontSizeMsg: de,
1121
1121
  fontWeightMsg: F,
1122
1122
  textMessageColor: ge,
1123
- inputWidth: X,
1123
+ inputWidth: ee,
1124
1124
  inputStyle: he,
1125
1125
  activeTextStyle: ce,
1126
1126
  sizeMediaQuery: Ce,
1127
1127
  inputReadonly: $,
1128
- showInputEye: L,
1128
+ showInputEye: k,
1129
1129
  inputType: C,
1130
- hasTrim: ze,
1131
- inputUppercase: He,
1132
- inputName: We,
1133
- inputPlaceholder: at,
1130
+ hasTrim: We,
1131
+ inputUppercase: Ge,
1132
+ inputName: De,
1133
+ inputPlaceholder: nt,
1134
1134
  inputText: ye,
1135
- theme: lt,
1136
- inputEyeIcon: mt,
1137
- tabindex: Qe,
1138
- inputEyeIconHidden: Te,
1135
+ theme: ot,
1136
+ inputEyeIcon: Ct,
1137
+ tabindex: et,
1138
+ inputEyeIconHidden: _e,
1139
1139
  lightBgColor: xe,
1140
- lightBgColorFocus: ht,
1141
- lightEyeBgColor: nt,
1142
- lightEyeBgColorActive: st,
1143
- lightDisabledBgColor: dt,
1144
- lightTextColor: ct,
1145
- darkBgColor: je,
1146
- darkBgColorFocus: Ue,
1147
- darkEyeBgColor: Je,
1148
- darkEyeBgColorActive: Ge,
1149
- darkDisabledBgColor: b,
1150
- darkTextColor: S,
1151
- darkDisabledEyeBgColor: ne,
1152
- lightDisabledEyeBgColor: Z,
1140
+ lightBgColorFocus: xt,
1141
+ lightEyeBgColor: ut,
1142
+ lightEyeBgColorActive: ct,
1143
+ lightDisabledBgColor: St,
1144
+ lightTextColor: ft,
1145
+ darkBgColor: He,
1146
+ darkBgColorFocus: vt,
1147
+ darkEyeBgColor: je,
1148
+ darkEyeBgColorActive: Ke,
1149
+ darkDisabledBgColor: g,
1150
+ darkTextColor: T,
1151
+ darkDisabledEyeBgColor: te,
1152
+ lightDisabledEyeBgColor: H,
1153
1153
  textAlign: me,
1154
- showMsg: Be,
1155
- hasMsg: Xe,
1156
- hasIcon: q,
1157
- iconDirection: d,
1154
+ showMsg: tt,
1155
+ hasMsg: $e,
1156
+ hasIcon: fe,
1157
+ iconDirection: c,
1158
1158
  iconPadding: m,
1159
- iconPaddingInput: fe,
1160
- iconMargin: H,
1161
- iconBorderRadius: Y,
1162
- iconLightTextColor: Ae,
1163
- iconDarkTextColor: _e,
1164
- iconLightBgColor: De,
1165
- iconDarkBgColor: qe,
1166
- iconLightBgColorActive: Ze,
1167
- iconDarkBgColorActive: ot,
1168
- iconLightDisabledBgColor: ut,
1169
- iconDarkDisabledBgColor: ft,
1170
- iconWidth: vt,
1171
- iconSize: pt,
1172
- showLabel: Ke,
1173
- label: Lt,
1174
- labelBreakOnActive: g,
1175
- labelBackground: I,
1176
- labelPadding: T,
1177
- labelBorderRadius: $e,
1178
- labelLeft: f,
1179
- inputLabelMarginActive: rt,
1180
- labelActiveTop: wt,
1181
- labelActiveLeft: Rt,
1182
- labelRight: ee,
1183
- labelActiveRight: we,
1184
- fontFamilyLabel: V,
1185
- fontSizeLabel: Ct,
1186
- fontSizeLabelActive: R,
1187
- fontWeightLabel: z,
1188
- lightTextColorLabel: te,
1189
- lightTextColorLabelActive: E,
1190
- darkTextColorLabel: Et,
1159
+ iconPaddingInput: Se,
1160
+ iconMargin: j,
1161
+ iconBorderRadius: J,
1162
+ iconLightTextColor: Ve,
1163
+ iconDarkTextColor: we,
1164
+ iconLightBgColor: Ne,
1165
+ iconDarkBgColor: Ue,
1166
+ iconLightBgColorActive: Ye,
1167
+ iconDarkBgColorActive: rt,
1168
+ iconLightDisabledBgColor: it,
1169
+ iconDarkDisabledBgColor: pt,
1170
+ iconWidth: bt,
1171
+ iconSize: gt,
1172
+ showLabel: Qe,
1173
+ label: At,
1174
+ labelBreakOnActive: Je,
1175
+ labelBackground: x,
1176
+ labelPadding: L,
1177
+ labelBorderRadius: w,
1178
+ labelLeft: b,
1179
+ inputLabelMarginActive: Xe,
1180
+ labelActiveTop: yt,
1181
+ labelActiveLeft: zt,
1182
+ labelRight: ke,
1183
+ labelActiveRight: Re,
1184
+ fontFamilyLabel: U,
1185
+ fontSizeLabel: O,
1186
+ fontSizeLabelActive: Vt,
1187
+ fontWeightLabel: M,
1188
+ lightTextColorLabel: W,
1189
+ lightTextColorLabelActive: ae,
1190
+ darkTextColorLabel: E,
1191
1191
  darkTextColorLabelActive: Pt
1192
- } = ma(P), Q = j(""), Tt = j(null), et = j(""), bt = j(!1), it = j(!1), k = a(() => {
1193
- const n = w.value ? "component-disabled" : "", t = Ve.value !== "b" ? "inline-block" : "block", l = ie ? ie.value : "ffffff", s = J.value ? J.value : "", i = Oe.value ? Oe.value : "", v = Me.value ? Me.value : "", c = ae.value ? ae.value : !1, p = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, x = le.value ? le.value : "'Lato', sans-serif", _ = se.value ? se.value : null, W = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, O = Le.value ? Le.value : "'Lato', sans-serif", ue = de.value ? de.value : "1em", Ie = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, tt = ge.value ? ge.value : "#f15574", Ee = X.value ? X.value : 200, Pe = ce.value ? ce.value : "normal", xa = Ce.value ? Ce.value : "xs", Sa = $.value ? $.value : !1, Va = L.value ? L.value : !1, ka = C.value ? C.value : "text", La = He.value ? He.value : !1, Ta = lt.value ? lt.value : "normal", Ba = me.value ? me.value : "left", Aa = he.value ? he.value : "background", wa = m.value ? m.value : "5px 10px", Ra = H.value ? H.value : "0", Ma = fe.value ? fe.value : 10, za = Ae.value ? Ae.value : "#000000", Wa = _e.value ? _e.value : "#000000", Da = De.value ? De.value : "transparent", Na = qe.value ? qe.value : "transparent", Ia = Y.value !== 0 && !Y.value || Y.value < 0 ? 0 : Y.value, Ea = Ze.value ? Ze.value : "transparent", Pa = ot.value ? ot.value : "transparent", Fa = vt.value ? vt.value : 32, Oa = pt.value ? pt.value : 1, qa = Ke.value ? Ke.value : !1, Ha = f.value !== 0 && !f.value || f.value < 0 ? 5 : f.value, ja = I.value ? I.value : "transparent", Ua = rt.value !== 0 && !rt.value || rt.value < 0 ? 15 : rt.value, Ga = T.value ? T.value : "1px 5px", Za = $e.value !== 0 && !$e.value || $e.value < 0 ? 0 : $e.value, el = wt.value === null || wt.value === void 0 ? -13 : wt.value, tl = Rt.value === null || Rt.value === void 0 ? -10 : Rt.value, al = ee.value === null || ee.value === void 0 ? 0 : ee.value, ll = we.value === null || we.value === void 0 ? 0 : we.value, nl = V.value ? V.value : "'Lato', sans-serif", ol = Ct.value ? Ct.value : "1em", ul = R.value ? R.value : "0.8em", rl = z.value ? z.value : 400, il = te.value ? te.value : "#ffffff", sl = Et.value ? Et.value : "#000000", dl = E.value ? E.value : "#ffffff", cl = Pt.value ? Pt.value : "#000000";
1192
+ } = ha(P), X = G(""), _t = G(null), mt = G(""), at = G(!1), st = G(!1), V = a(() => {
1193
+ const n = R.value ? "component-disabled" : "", d = Te.value !== "b" ? "inline-block" : "block", t = ie ? ie.value : "ffffff", l = Z.value ? Z.value : "", s = qe.value ? qe.value : "", i = ze.value ? ze.value : "", v = le.value ? le.value : !1, f = Y.value !== 0 && !Y.value || Y.value < 0 ? 0 : Y.value, p = ne.value ? ne.value : "'Lato', sans-serif", S = se.value ? se.value : null, _ = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, D = Ae.value ? Ae.value : "'Lato', sans-serif", q = de.value ? de.value : "1em", ue = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, Ee = ge.value ? ge.value : "#f15574", lt = ee.value ? ee.value : 200, Pe = ce.value ? ce.value : "normal", Fe = Ce.value ? Ce.value : "xs", Sa = $.value ? $.value : !1, Va = k.value ? k.value : !1, ka = C.value ? C.value : "text", La = Ge.value ? Ge.value : !1, Ta = ot.value ? ot.value : "normal", Ba = me.value ? me.value : "left", Aa = he.value ? he.value : "background", wa = m.value ? m.value : "5px 10px", Ra = j.value ? j.value : "0", Ma = Se.value ? Se.value : 10, za = Ve.value ? Ve.value : "#000000", Wa = we.value ? we.value : "#000000", Da = Ne.value ? Ne.value : "transparent", Na = Ue.value ? Ue.value : "transparent", Ia = J.value !== 0 && !J.value || J.value < 0 ? 0 : J.value, Ea = Ye.value ? Ye.value : "transparent", Pa = rt.value ? rt.value : "transparent", Fa = bt.value ? bt.value : 32, Oa = gt.value ? gt.value : 1, qa = Qe.value ? Qe.value : !1, Ha = b.value !== 0 && !b.value || b.value < 0 ? 5 : b.value, ja = x.value ? x.value : "transparent", Ua = Xe.value !== 0 && !Xe.value || Xe.value < 0 ? 15 : Xe.value, Ga = L.value ? L.value : "1px 5px", Ka = w.value !== 0 && !w.value || w.value < 0 ? 0 : w.value, el = yt.value === null || yt.value === void 0 ? -13 : yt.value, tl = zt.value === null || zt.value === void 0 ? -10 : zt.value, al = ke.value === null || ke.value === void 0 ? 0 : ke.value, ll = Re.value === null || Re.value === void 0 ? 0 : Re.value, nl = U.value ? U.value : "'Lato', sans-serif", ol = O.value ? O.value : "1em", ul = Vt.value ? Vt.value : "0.8em", rl = M.value ? M.value : 400, il = W.value ? W.value : "#ffffff", sl = E.value ? E.value : "#000000", dl = ae.value ? ae.value : "#ffffff", cl = Pt.value ? Pt.value : "#000000";
1194
1194
  return {
1195
1195
  disabled: n,
1196
- display: t,
1197
- font: x,
1198
- fontSize: _,
1199
- fontWeight: W,
1200
- fontFamilyMsg: O,
1201
- fontSizeMsg: ue,
1202
- fontWeightMsg: Ie,
1203
- textMessageColor: tt,
1204
- textColor: l,
1205
- caretColor: s,
1206
- selectionBgColor: i,
1207
- selectionTextColor: v,
1208
- hasBorderRadius: c,
1209
- borderRadius: p,
1196
+ display: d,
1197
+ font: p,
1198
+ fontSize: S,
1199
+ fontWeight: _,
1200
+ fontFamilyMsg: D,
1201
+ fontSizeMsg: q,
1202
+ fontWeightMsg: ue,
1203
+ textMessageColor: Ee,
1204
+ textColor: t,
1205
+ caretColor: l,
1206
+ selectionBgColor: s,
1207
+ selectionTextColor: i,
1208
+ hasBorderRadius: v,
1209
+ borderRadius: f,
1210
1210
  textAlign: Ba,
1211
- inputWidth: Ee,
1211
+ inputWidth: lt,
1212
1212
  activeTextStyle: Pe,
1213
- sizeMediaQuery: xa,
1213
+ sizeMediaQuery: Fe,
1214
1214
  inputReadonly: Sa,
1215
1215
  showInputEye: Va,
1216
1216
  inputType: ka,
@@ -1232,7 +1232,7 @@ const Al = ["id"], _l = ["for"], $l = {
1232
1232
  showLabel: qa,
1233
1233
  labelBackground: ja,
1234
1234
  labelPadding: Ga,
1235
- labelBorderRadius: Za,
1235
+ labelBorderRadius: Ka,
1236
1236
  labelLeft: Ha,
1237
1237
  inputLabelMarginActive: Ua,
1238
1238
  labelActiveTop: el,
@@ -1248,18 +1248,18 @@ const Al = ["id"], _l = ["for"], $l = {
1248
1248
  lightTextColorLabelActive: dl,
1249
1249
  darkTextColorLabelActive: cl
1250
1250
  };
1251
- }), Yt = a(() => k.value.disabled), Mt = a(() => {
1252
- const n = k.value, t = Wt.value;
1251
+ }), Kt = a(() => V.value.disabled), Wt = a(() => {
1252
+ const n = V.value, d = Nt.value;
1253
1253
  return {
1254
1254
  display: n.display,
1255
1255
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
1256
- paddingTop: t && Ke.value ? `${Math.abs(n.labelActiveTop)}px` : "0"
1256
+ paddingTop: d && Qe.value ? `${Math.abs(n.labelActiveTop)}px` : "0"
1257
1257
  };
1258
- }), Qt = a(() => {
1259
- const n = k.value;
1258
+ }), Yt = a(() => {
1259
+ const n = V.value;
1260
1260
  if (n.fontSize)
1261
1261
  return n.fontSize;
1262
- let t = "";
1262
+ let d = "";
1263
1263
  switch (n.sizeMediaQuery) {
1264
1264
  case "sm":
1265
1265
  return "1.2em";
@@ -1268,33 +1268,33 @@ const Al = ["id"], _l = ["for"], $l = {
1268
1268
  case "lg":
1269
1269
  return "2em";
1270
1270
  default:
1271
- t = "1.2em";
1271
+ d = "1.2em";
1272
1272
  }
1273
- return t;
1274
- }), Bt = a(() => {
1275
- const n = k.value, t = Wt.value;
1273
+ return d;
1274
+ }), $t = a(() => {
1275
+ const n = V.value, d = Nt.value;
1276
1276
  return {
1277
1277
  fontWeight: n.fontWeight,
1278
- marginTop: t && Ke.value ? `${n.inputLabelMarginActive}px` : "0"
1278
+ marginTop: d && Qe.value ? `${n.inputLabelMarginActive}px` : "0"
1279
1279
  };
1280
- }), xt = a(() => {
1281
- const n = k.value;
1280
+ }), kt = a(() => {
1281
+ const n = V.value;
1282
1282
  return n.inputStyle !== "line" && n.hasBorderRadius ? { borderRadius: `${n.borderRadius}rem` } : {};
1283
- }), Jt = a(() => k.value.font), Ft = a(() => k.value.fontFamilyMsg), Ot = a(() => k.value.fontSizeMsg), Xt = a(() => k.value.fontWeightMsg), Zt = a(() => k.value.textColor), ea = a(() => k.value.textMessageColor), ta = a(() => {
1284
- const n = k.value;
1283
+ }), Qt = a(() => V.value.font), Jt = a(() => V.value.fontFamilyMsg), Dt = a(() => V.value.fontSizeMsg), Xt = a(() => V.value.fontWeightMsg), Zt = a(() => V.value.textColor), ea = a(() => V.value.textMessageColor), ta = a(() => {
1284
+ const n = V.value;
1285
1285
  return n.caretColor || (n.theme === "dark" ? "#00d4ff" : "#007bff");
1286
1286
  }), aa = a(() => {
1287
- const n = k.value;
1287
+ const n = V.value;
1288
1288
  return n.selectionBgColor || (n.theme === "dark" ? "#00d4ff" : "#007bff");
1289
- }), zt = a(() => {
1290
- const n = k.value;
1289
+ }), la = a(() => {
1290
+ const n = V.value;
1291
1291
  return n.selectionTextColor || (n.theme === "dark" ? "#000000" : "#ffffff");
1292
- }), qt = a(() => {
1293
- const n = k.value;
1292
+ }), wt = a(() => {
1293
+ const n = V.value;
1294
1294
  return n.display === "block" ? { width: "100%" } : {
1295
1295
  width: `${n.inputWidth}px`
1296
1296
  };
1297
- }), At = a(() => {
1297
+ }), Ft = a(() => {
1298
1298
  switch (he.value) {
1299
1299
  case "line":
1300
1300
  return "component__input--line";
@@ -1304,7 +1304,7 @@ const Al = ["id"], _l = ["for"], $l = {
1304
1304
  return "component__input--background";
1305
1305
  }
1306
1306
  }), r = a(() => {
1307
- switch (k.value.activeTextStyle) {
1307
+ switch (V.value.activeTextStyle) {
1308
1308
  case "italic":
1309
1309
  return "component__input--active--italic";
1310
1310
  case "oblique":
@@ -1313,7 +1313,7 @@ const Al = ["id"], _l = ["for"], $l = {
1313
1313
  return "component__input--active--normal";
1314
1314
  }
1315
1315
  }), B = a(() => {
1316
- switch (k.value.sizeMediaQuery) {
1316
+ switch (V.value.sizeMediaQuery) {
1317
1317
  case "sm":
1318
1318
  return "component__sm";
1319
1319
  case "md":
@@ -1324,215 +1324,215 @@ const Al = ["id"], _l = ["for"], $l = {
1324
1324
  return "";
1325
1325
  }
1326
1326
  }), ve = a(() => {
1327
- switch (k.value.theme) {
1327
+ switch (V.value.theme) {
1328
1328
  case "dark":
1329
1329
  return "component__theme--dark";
1330
1330
  default:
1331
1331
  return "component__theme--light";
1332
1332
  }
1333
- }), u = a(() => k.value.inputReadonly ? "component__input--read-only" : ""), A = a(() => k.value.inputUppercase ? "component__input--uppercase" : ""), Ne = a(() => {
1334
- const n = k.value;
1333
+ }), u = a(() => V.value.inputReadonly ? "component__input--read-only" : ""), A = a(() => V.value.inputUppercase ? "component__input--uppercase" : ""), Ie = a(() => {
1334
+ const n = V.value;
1335
1335
  return !!(n.showInputEye && n.inputType === "password");
1336
- }), Ye = a(() => bt.value ? mt.value : Te.value), gt = a(() => We.value ? We.value : `${N.value}-name-label`), la = a(() => Ke.value ? it.value ? at.value : "" : at.value), Wt = a(() => {
1337
- const n = Q.value;
1338
- return it.value || n != null && String(n).trim().length > 0;
1339
- }), na = a(() => k.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), St = a(() => it.value ? "component__input--active" : "component__input--no-active"), oa = a(() => Ne.value ? "6px 50px 6px 10px" : "6px 10px"), ua = a(() => !!(Be.value && Xe.value)), ra = a(() => {
1336
+ }), Ze = a(() => at.value ? Ct.value : _e.value), Lt = a(() => De.value ? De.value : `${I.value}-name-label`), Ot = a(() => Qe.value ? st.value ? nt.value : "" : nt.value), Nt = a(() => {
1337
+ const n = X.value;
1338
+ return st.value || n != null && String(n).trim().length > 0;
1339
+ }), na = a(() => V.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), oa = a(() => st.value ? "component__input--active" : "component__input--no-active"), Tt = a(() => Ie.value ? "6px 50px 6px 10px" : "6px 10px"), ua = a(() => !!(tt.value && $e.value)), ra = a(() => {
1340
1340
  const n = {};
1341
- ke.value && Object.keys(ke.value).forEach((s) => n[`aria-${s}`] = ke.value[s]);
1342
- const t = {
1343
- "aria-label": Re.value,
1344
- "aria-disabled": w.value,
1341
+ Be.value && Object.keys(Be.value).forEach((l) => n[`aria-${l}`] = Be.value[l]);
1342
+ const d = {
1343
+ "aria-label": Me.value,
1344
+ "aria-disabled": R.value,
1345
1345
  ...n
1346
1346
  };
1347
1347
  return Object.fromEntries(
1348
- Object.entries(t).filter(([l, s]) => s != null)
1348
+ Object.entries(d).filter(([t, l]) => l != null)
1349
1349
  );
1350
- }), ia = a(() => q.value ? `${pt.value}rem` : "0"), Dt = a(() => q.value ? `${vt.value}px` : "0"), sa = a(() => q.value ? `component__icon--${d.value}` : ""), da = a(() => {
1351
- const n = k.value;
1352
- return q.value ? n.iconPadding : "0";
1350
+ }), ia = a(() => fe.value ? `${gt.value}rem` : "0"), sa = a(() => fe.value ? `${bt.value}px` : "0"), It = a(() => fe.value ? `component__icon--${c.value}` : ""), da = a(() => {
1351
+ const n = V.value;
1352
+ return fe.value ? n.iconPadding : "0";
1353
1353
  }), ca = a(() => {
1354
- const n = k.value;
1355
- return q.value ? n.iconMargin : "0";
1354
+ const n = V.value;
1355
+ return fe.value ? n.iconMargin : "0";
1356
+ }), fa = a(() => {
1357
+ const n = V.value;
1358
+ return fe.value ? n.theme === "dark" ? n.iconDarkBgColor : n.iconLightBgColor : "transparent";
1359
+ }), qt = a(() => {
1360
+ const n = V.value;
1361
+ return fe.value ? `${n.iconBorderRadius}rem` : "0";
1356
1362
  }), Ht = a(() => {
1357
- const n = k.value;
1358
- return q.value ? n.theme === "dark" ? n.iconDarkBgColor : n.iconLightBgColor : "transparent";
1363
+ const n = V.value;
1364
+ return fe.value ? c.value === "left" ? { paddingLeft: `${n.iconPaddingInput}px` } : { paddingRight: `${n.iconPaddingInput}px` } : {};
1359
1365
  }), jt = a(() => {
1360
- const n = k.value;
1361
- return q.value ? `${n.iconBorderRadius}rem` : "0";
1362
- }), Ut = a(() => {
1363
- const n = k.value;
1364
- return q.value ? d.value === "left" ? { paddingLeft: `${n.iconPaddingInput}px` } : { paddingRight: `${n.iconPaddingInput}px` } : {};
1365
- }), yt = a(() => {
1366
- const n = k.value, t = Wt.value, l = t ? n.lightTextColorLabelActive : n.lightTextColorLabel, s = t ? n.darkTextColorLabelActive : n.darkTextColorLabel;
1366
+ const n = V.value, d = Nt.value, t = d ? n.lightTextColorLabelActive : n.lightTextColorLabel, l = d ? n.darkTextColorLabelActive : n.darkTextColorLabel;
1367
1367
  return {
1368
1368
  fontFamily: n.fontFamilyLabel,
1369
- fontSize: t ? n.fontSizeLabelActive : n.fontSizeLabel,
1369
+ fontSize: d ? n.fontSizeLabelActive : n.fontSizeLabel,
1370
1370
  fontWeight: n.fontWeightLabel,
1371
- color: n.theme === "dark" ? s : l,
1372
- top: t ? `${n.labelActiveTop}px` : "50%",
1373
- left: t ? `${n.labelActiveLeft}px` : `${n.labelLeft}px`,
1374
- right: t ? `${n.labelActiveRight}px` : `${n.labelRight}px`,
1375
- transform: t ? "translateY(0)" : "translateY(-50%)",
1371
+ color: n.theme === "dark" ? l : t,
1372
+ top: d ? `${n.labelActiveTop}px` : "50%",
1373
+ left: d ? `${n.labelActiveLeft}px` : `${n.labelLeft}px`,
1374
+ right: d ? `${n.labelActiveRight}px` : `${n.labelRight}px`,
1375
+ transform: d ? "translateY(0)" : "translateY(-50%)",
1376
1376
  transition: "all 0.2s ease",
1377
- backgroundColor: t ? n.labelBackground : "transparent",
1378
- padding: t ? n.labelPadding : "0",
1379
- borderRadius: t ? `${n.labelBorderRadius}rem` : "0",
1377
+ backgroundColor: d ? n.labelBackground : "transparent",
1378
+ padding: d ? n.labelPadding : "0",
1379
+ borderRadius: d ? `${n.labelBorderRadius}rem` : "0",
1380
1380
  // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
1381
- ...t ? {
1382
- whiteSpace: g.value ? "nowrap" : "normal",
1383
- wordWrap: g.value ? "normal" : "break-word",
1384
- overflowWrap: g.value ? "normal" : "break-word",
1381
+ ...d ? {
1382
+ whiteSpace: Je.value ? "nowrap" : "normal",
1383
+ wordWrap: Je.value ? "normal" : "break-word",
1384
+ overflowWrap: Je.value ? "normal" : "break-word",
1385
1385
  maxWidth: "100%",
1386
- textOverflow: g.value ? "ellipsis" : "clip",
1387
- overflow: g.value ? "hidden" : "visible"
1386
+ textOverflow: Je.value ? "ellipsis" : "clip",
1387
+ overflow: Je.value ? "hidden" : "visible"
1388
1388
  } : {}
1389
1389
  };
1390
1390
  });
1391
1391
  a(() => {
1392
- const n = k.value;
1392
+ const n = V.value;
1393
1393
  return n.theme === "dark" ? n.darkTextColorLabelActive : n.lightTextColorLabelActive;
1394
1394
  });
1395
- const _t = () => {
1396
- ye.value != null ? C.value === "number" && typeof ye.value == "number" ? Q.value = ye.value : Q.value = String(ye.value) : Q.value = "", et.value = C.value;
1397
- }, Vt = () => {
1398
- const n = k.value;
1395
+ const ht = () => {
1396
+ ye.value != null ? C.value === "number" && typeof ye.value == "number" ? X.value = ye.value : X.value = String(ye.value) : X.value = "", mt.value = C.value;
1397
+ }, Rt = () => {
1398
+ const n = V.value;
1399
1399
  if (n.inputReadonly || n.disabled)
1400
1400
  return;
1401
- const t = !bt.value;
1402
- t ? et.value = "text" : et.value = C.value, bt.value = t;
1403
- }, $t = a(() => et.value === "number"), Nt = (n) => {
1401
+ const d = !at.value;
1402
+ d ? mt.value = "text" : mt.value = C.value, at.value = d;
1403
+ }, dt = a(() => mt.value === "number"), Mt = (n) => {
1404
1404
  if (C.value === "number") {
1405
1405
  if (n === "" || n === null || n === void 0)
1406
1406
  return "";
1407
1407
  {
1408
- const t = typeof n == "number" ? n : Number(n);
1409
- return isNaN(t) ? n : t;
1408
+ const d = typeof n == "number" ? n : Number(n);
1409
+ return isNaN(d) ? n : d;
1410
1410
  }
1411
1411
  }
1412
1412
  return n;
1413
- }, Gt = () => {
1413
+ }, va = () => {
1414
1414
  h("clicked");
1415
- }, oe = (n) => {
1416
- n.stopPropagation(), !(w.value || k.value.inputReadonly) && Tt.value && Tt.value.focus();
1417
- }, fa = () => {
1418
- w.value || k.value.inputReadonly || !be.value || h("entered", Nt(Q.value));
1415
+ }, Ut = (n) => {
1416
+ n.stopPropagation(), !(R.value || V.value.inputReadonly) && _t.value && _t.value.focus();
1417
+ }, oe = () => {
1418
+ R.value || V.value.inputReadonly || !be.value || h("entered", Mt(X.value));
1419
1419
  };
1420
- return U(C, (n) => {
1421
- et.value = n;
1422
- }, { immediate: !0 }), U(ye, (n) => {
1420
+ return K(C, (n) => {
1421
+ mt.value = n;
1422
+ }, { immediate: !0 }), K(ye, (n) => {
1423
1423
  if (n != null)
1424
1424
  if (C.value === "number" && typeof n == "number")
1425
- n !== Q.value && (Q.value = n);
1425
+ n !== X.value && (X.value = n);
1426
1426
  else {
1427
- const t = String(n);
1428
- t !== Q.value && (Q.value = t);
1427
+ const d = String(n);
1428
+ d !== X.value && (X.value = d);
1429
1429
  }
1430
1430
  else
1431
- Q.value !== "" && (Q.value = "");
1432
- }, { immediate: !0 }), U(Q, (n) => {
1433
- ze.value && typeof n == "string" && (n = n.trim()), h("changed", Nt(n));
1434
- }), U(it, (n) => {
1431
+ X.value !== "" && (X.value = "");
1432
+ }, { immediate: !0 }), K(X, (n) => {
1433
+ We.value && typeof n == "string" && (n = n.trim()), h("changed", Mt(n));
1434
+ }), K(st, (n) => {
1435
1435
  h(n ? "focused" : "blurred");
1436
- }), U(bt, (n) => {
1436
+ }), K(at, (n) => {
1437
1437
  h("show-input-eye", n);
1438
- }, { immediate: !0 }), U(Q, (n) => {
1439
- ze.value && typeof n == "string" && (n = n.trim()), h("current-value", Nt(n));
1440
- }), U(C, (n) => {
1438
+ }, { immediate: !0 }), K(X, (n) => {
1439
+ We.value && typeof n == "string" && (n = n.trim()), h("current-value", Mt(n));
1440
+ }), K(C, (n) => {
1441
1441
  n === "password" && nextTick(() => {
1442
- const t = document.getElementById(We.value);
1443
- t && (t.type = "password", t.removeAttribute("autocomplete"));
1442
+ const d = document.getElementById(De.value);
1443
+ d && (d.type = "password", d.removeAttribute("autocomplete"));
1444
1444
  });
1445
- }), (n, t) => o(N) ? (M(), D("div", ba({
1445
+ }), (n, d) => o(I) ? (z(), N("div", ga({
1446
1446
  key: 0,
1447
- class: ["nb-wrapper", Yt.value],
1448
- style: [Mt.value, qt.value, xt.value],
1447
+ class: ["nb-wrapper", Kt.value],
1448
+ style: [Wt.value, wt.value, kt.value],
1449
1449
  role: "input"
1450
1450
  }, ra.value), [
1451
1451
  pe("div", {
1452
- id: o(N),
1453
- class: Fe(["nb-reset", "component", B.value, ve.value, u.value, At.value]),
1454
- style: Se([Bt.value, qt.value, xt.value]),
1455
- onClick: Gt
1452
+ id: o(I),
1453
+ class: Oe(["nb-reset", "component", B.value, ve.value, u.value, Ft.value]),
1454
+ style: Le([$t.value, wt.value, kt.value]),
1455
+ onClick: va
1456
1456
  }, [
1457
- o(Ke) ? (M(), D("label", {
1457
+ o(Qe) ? (z(), N("label", {
1458
1458
  key: 0,
1459
- for: gt.value,
1459
+ for: Lt.value,
1460
1460
  class: "component__label",
1461
- style: Se([yt.value]),
1462
- onClick: oe
1461
+ style: Le([jt.value]),
1462
+ onClick: Ut
1463
1463
  }, [
1464
- It(kt(o(Lt)), 1),
1465
- e.required ? (M(), D("span", $l, "*")) : re("", !0)
1464
+ Et(Bt(o(At)), 1),
1465
+ e.required ? (z(), N("span", $l, "*")) : re("", !0)
1466
1466
  ], 12, _l)) : re("", !0),
1467
- Ne.value ? (M(), D("div", {
1467
+ Ie.value ? (z(), N("div", {
1468
1468
  key: 1,
1469
- class: Fe(["component__eye", St.value]),
1470
- style: Se([xt.value]),
1471
- onClick: Vt
1469
+ class: Oe(["component__eye", oa.value]),
1470
+ style: Le([kt.value]),
1471
+ onClick: Rt
1472
1472
  }, [
1473
1473
  pe("label", {
1474
- for: gt.value,
1475
- class: Fe(["component__eye-icon", "fas"])
1474
+ for: Lt.value,
1475
+ class: Oe(["component__eye-icon", "fas"])
1476
1476
  }, [
1477
- e.inputEyeCustomIcon ? (M(), D("span", Ml, [
1478
- bt.value ? va(n.$slots, "eye-icon-show", { key: 0 }, () => [
1479
- t[4] || (t[4] = It("show"))
1480
- ], !0) : va(n.$slots, "eye-icon-hidden", { key: 1 }, () => [
1481
- t[5] || (t[5] = It("hidden"))
1477
+ e.inputEyeCustomIcon ? (z(), N("span", Ml, [
1478
+ at.value ? pa(n.$slots, "eye-icon-show", { key: 0 }, () => [
1479
+ d[4] || (d[4] = Et("show"))
1480
+ ], !0) : pa(n.$slots, "eye-icon-hidden", { key: 1 }, () => [
1481
+ d[5] || (d[5] = Et("hidden"))
1482
1482
  ], !0)
1483
- ])) : (M(), D("span", Rl, kt(Ye.value), 1))
1483
+ ])) : (z(), N("span", Rl, Bt(Ze.value), 1))
1484
1484
  ], 8, wl)
1485
1485
  ], 6)) : re("", !0),
1486
- ha(pe("input", {
1486
+ Ca(pe("input", {
1487
1487
  ref_key: "inputRef",
1488
- ref: Tt,
1489
- "onUpdate:modelValue": t[0] || (t[0] = (l) => Q.value = l),
1490
- id: gt.value,
1491
- name: gt.value,
1492
- type: et.value,
1493
- class: Fe(["component__input", [
1488
+ ref: _t,
1489
+ "onUpdate:modelValue": d[0] || (d[0] = (t) => X.value = t),
1490
+ id: Lt.value,
1491
+ name: Lt.value,
1492
+ type: mt.value,
1493
+ class: Oe(["component__input", [
1494
1494
  A.value,
1495
1495
  na.value,
1496
1496
  r.value
1497
1497
  ]]),
1498
- placeholder: la.value,
1499
- disabled: o(w) || o($),
1498
+ placeholder: Ot.value,
1499
+ disabled: o(R) || o($),
1500
1500
  required: e.required,
1501
1501
  readonly: o($),
1502
1502
  autocomplete: e.inputAutocomplete,
1503
- tabindex: o(w) || o($) ? -1 : o(Qe),
1504
- min: $t.value ? e.min : void 0,
1505
- max: $t.value ? e.max : void 0,
1506
- step: $t.value ? e.step : void 0,
1503
+ tabindex: o(R) || o($) ? -1 : o(et),
1504
+ min: dt.value ? e.min : void 0,
1505
+ max: dt.value ? e.max : void 0,
1506
+ step: dt.value ? e.step : void 0,
1507
1507
  role: "input",
1508
- style: Se([xt.value, Ut.value]),
1509
- onFocus: t[1] || (t[1] = (l) => it.value = !0),
1510
- onBlur: t[2] || (t[2] = (l) => it.value = !1),
1511
- onKeydown: t[3] || (t[3] = Kt((l) => !o(w) && o(be) && fa(), ["enter"]))
1508
+ style: Le([kt.value, Ht.value]),
1509
+ onFocus: d[1] || (d[1] = (t) => st.value = !0),
1510
+ onBlur: d[2] || (d[2] = (t) => st.value = !1),
1511
+ onKeydown: d[3] || (d[3] = Gt((t) => !o(R) && o(be) && oe(), ["enter"]))
1512
1512
  }, null, 46, zl), [
1513
- [Ja, Q.value]
1513
+ [Xa, X.value]
1514
1514
  ]),
1515
- o(q) ? (M(), D("label", {
1515
+ o(fe) ? (z(), N("label", {
1516
1516
  key: 2,
1517
- for: gt.value,
1518
- class: Fe(["component__icon", sa.value])
1517
+ for: Lt.value,
1518
+ class: Oe(["component__icon", It.value])
1519
1519
  }, [
1520
- va(n.$slots, "icon", {}, () => [
1521
- t[6] || (t[6] = pe("span", null, "♥", -1))
1520
+ pa(n.$slots, "icon", {}, () => [
1521
+ d[6] || (d[6] = pe("span", null, "♥", -1))
1522
1522
  ], !0)
1523
1523
  ], 10, Wl)) : re("", !0)
1524
1524
  ], 14, Al),
1525
- ua.value ? (M(), D("div", {
1525
+ ua.value ? (z(), N("div", {
1526
1526
  key: 0,
1527
- class: Fe(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
1527
+ class: Oe(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
1528
1528
  }, [
1529
- va(n.$slots, "message", {}, () => [
1530
- It(kt(e.message), 1)
1529
+ pa(n.$slots, "message", {}, () => [
1530
+ Et(Bt(e.message), 1)
1531
1531
  ], !0)
1532
1532
  ], 2)) : re("", !0)
1533
1533
  ], 16)) : re("", !0);
1534
1534
  }
1535
- }), Nl = /* @__PURE__ */ Ca(Dl, [["__scopeId", "data-v-23bbf3c4"]]);
1535
+ }), Nl = /* @__PURE__ */ xa(Dl, [["__scopeId", "data-v-23bbf3c4"]]);
1536
1536
  const Il = ["for"], El = {
1537
1537
  key: 0,
1538
1538
  class: "component__label--required"
@@ -1873,159 +1873,159 @@ const Il = ["for"], El = {
1873
1873
  },
1874
1874
  emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred"],
1875
1875
  setup(e, { emit: y }) {
1876
- ya((r) => ({
1876
+ ma((r) => ({
1877
1877
  "6622f6ac": Pt.value,
1878
- "6b4fc1fd": Tt.value,
1879
- "3459745b": o(mt),
1880
- "363da183": o(He),
1881
- af4a5108: o(at),
1882
- "2db785d2": o(Qe),
1883
- "6ff10a22": o(Te),
1878
+ "6b4fc1fd": _t.value,
1879
+ "3459745b": o(Ct),
1880
+ "363da183": o(Ge),
1881
+ af4a5108: o(nt),
1882
+ "2db785d2": o(et),
1883
+ "6ff10a22": o(_e),
1884
1884
  "6b000890": o(xe),
1885
- bb8dbd36: o(Ue),
1886
- "054dede6": o(nt),
1887
- "1d036a06": o(dt),
1888
- "5dcccfa1": o(Je),
1889
- "9654da0e": o(Ge),
1890
- "87af8d7c": o(b),
1885
+ bb8dbd36: o(vt),
1886
+ "054dede6": o(ut),
1887
+ "1d036a06": o(St),
1888
+ "5dcccfa1": o(je),
1889
+ "9654da0e": o(Ke),
1890
+ "87af8d7c": o(g),
1891
1891
  "397adabc": o(ye),
1892
- "7cda4e72": o(ct),
1893
- eb5f3eb4: z.value,
1894
- "2d219a14": bt.value,
1895
- "3d016fc8": it.value,
1896
- cd3a7540: k.value,
1892
+ "7cda4e72": o(ft),
1893
+ eb5f3eb4: M.value,
1894
+ "2d219a14": at.value,
1895
+ "3d016fc8": st.value,
1896
+ cd3a7540: V.value,
1897
1897
  "428050bb": r.styleButtonColor,
1898
- "2ece0a20": Q.value,
1899
- "0c114667": o(lt),
1900
- "70496a60": o(ht),
1901
- "048cf81e": o(je),
1902
- "9db85a2c": o(S)
1903
- })), pa(() => {
1904
- G.value.length > 0 && (ee.value = G.value);
1898
+ "2ece0a20": X.value,
1899
+ "0c114667": o(ot),
1900
+ "70496a60": o(xt),
1901
+ "048cf81e": o(He),
1902
+ "9db85a2c": o(T)
1903
+ })), ba(() => {
1904
+ Y.value.length > 0 && (ke.value = Y.value);
1905
1905
  });
1906
1906
  const h = y, P = e, {
1907
- nbId: N,
1908
- display: Ve,
1907
+ nbId: I,
1908
+ display: Te,
1909
1909
  textColor: be,
1910
- paddingX: Re,
1911
- paddingY: ke,
1910
+ paddingX: Me,
1911
+ paddingY: Be,
1912
1912
  borderRadius: ie,
1913
- disabled: J,
1914
- fontFamily: Oe,
1915
- fontSize: Me,
1916
- fontWeight: ae,
1917
- currentList: G,
1918
- allowDuplicates: w,
1919
- minChips: le,
1913
+ disabled: Z,
1914
+ fontFamily: qe,
1915
+ fontSize: ze,
1916
+ fontWeight: le,
1917
+ currentList: Y,
1918
+ allowDuplicates: R,
1919
+ minChips: ne,
1920
1920
  maxChips: se,
1921
- inputPosition: K,
1922
- width: Le,
1921
+ inputPosition: Q,
1922
+ width: Ae,
1923
1923
  inputName: de,
1924
1924
  inputPlaceholder: F,
1925
1925
  inputUppercase: ge,
1926
- inputReadonly: X,
1926
+ inputReadonly: ee,
1927
1927
  inputAutocomplete: he,
1928
1928
  required: ce,
1929
1929
  textAlign: Ce,
1930
1930
  hasBorderRadius: $,
1931
- activeTextStyle: L,
1931
+ activeTextStyle: k,
1932
1932
  theme: C,
1933
- inputStyle: ze,
1934
- lightBgColor: He,
1935
- lightBgColorFocus: We,
1936
- lightBorderColor: at,
1933
+ inputStyle: We,
1934
+ lightBgColor: Ge,
1935
+ lightBgColorFocus: De,
1936
+ lightBorderColor: nt,
1937
1937
  lightBorderColorFocus: ye,
1938
- lightDisabledBgColor: lt,
1939
- lightTextColor: mt,
1940
- lightChipBgColor: Qe,
1941
- lightChipTextColor: Te,
1938
+ lightDisabledBgColor: ot,
1939
+ lightTextColor: Ct,
1940
+ lightChipBgColor: et,
1941
+ lightChipTextColor: _e,
1942
1942
  lightChipRemoveColor: xe,
1943
- lightDisabledBorderColor: ht,
1944
- darkBgColor: nt,
1945
- darkBgColorFocus: st,
1946
- darkBorderColor: dt,
1947
- darkBorderColorFocus: ct,
1948
- darkDisabledBgColor: je,
1949
- darkTextColor: Ue,
1950
- darkChipBgColor: Je,
1951
- darkChipTextColor: Ge,
1952
- darkChipRemoveColor: b,
1953
- darkDisabledBorderColor: S,
1954
- tabIndex: ne,
1955
- hasTabIndexEnter: Z,
1943
+ lightDisabledBorderColor: xt,
1944
+ darkBgColor: ut,
1945
+ darkBgColorFocus: ct,
1946
+ darkBorderColor: St,
1947
+ darkBorderColorFocus: ft,
1948
+ darkDisabledBgColor: He,
1949
+ darkTextColor: vt,
1950
+ darkChipBgColor: je,
1951
+ darkChipTextColor: Ke,
1952
+ darkChipRemoveColor: g,
1953
+ darkDisabledBorderColor: T,
1954
+ tabIndex: te,
1955
+ hasTabIndexEnter: H,
1956
1956
  ariaLabel: me,
1957
- ariaAttrs: Be,
1958
- caretColor: Xe,
1959
- selectionBgColor: q,
1960
- selectionTextColor: d,
1957
+ ariaAttrs: tt,
1958
+ caretColor: $e,
1959
+ selectionBgColor: fe,
1960
+ selectionTextColor: c,
1961
1961
  showLabel: m,
1962
- label: fe,
1963
- labelBackground: H,
1964
- labelPadding: Y,
1965
- labelBorderRadius: Ae,
1966
- labelLeft: _e,
1967
- inputLabelMarginActive: De,
1968
- labelActiveTop: qe,
1969
- labelActiveLeft: Ze,
1970
- fontFamilyLabel: ot,
1971
- fontSizeLabel: ut,
1972
- fontSizeLabelActive: ft,
1973
- fontWeightLabel: vt,
1974
- lightTextColorLabel: pt,
1975
- lightTextColorLabelActive: Ke,
1976
- darkTextColorLabel: Lt,
1977
- darkTextColorLabelActive: g,
1978
- fontFamilyChip: I,
1979
- fontSizeChip: T,
1980
- fontWeightChip: $e
1981
- } = ma(P), f = j(""), rt = j(null), wt = j(null), Rt = j(null), ee = j([]), we = j(!1), V = a(() => {
1982
- const r = J.value ? "component-disabled" : "", B = Ve.value !== "b" ? "inline-block" : "block", ve = !Le.value || Le.value < 185 ? 185 : Le.value, u = be ? be.value : "ffffff", A = Xe.value ? Xe.value : "", Ne = q.value ? q.value : "", Ye = d.value ? d.value : "", gt = Re.value !== 0 && !Re.value || Re.value < 0 ? 1 : Re.value, la = ke.value !== 0 && !ke.value || ke.value < 0 ? 0.2 : ke.value, Wt = ie.value !== 0 && !ie.value || ie.value < 0 ? 0 : ie.value, na = Oe.value ? Oe.value : "'Lato', sans-serif", St = Me.value ? Me.value : "1.2em", oa = ae.value !== 0 && !ae.value || ae.value < 0 ? 100 : ae.value, ua = le.value !== 0 && !le.value || le.value < 0 ? 0 : le.value, ra = se.value !== 0 && !se.value || se.value < 0 ? 10 : se.value, ia = !K.value || !["top", "bottom"].includes(K.value) ? "bottom" : K.value, Dt = !ze.value || !["background", "line", "border"].includes(ze.value) ? "background" : ze.value, sa = C.value ? C.value : "light", da = m.value ? m.value : !1, ca = _e.value !== 0 && !_e.value || _e.value < 0 ? 5 : _e.value, Ht = H.value ? H.value : "transparent", jt = De.value !== 0 && !De.value || De.value < 0 ? 15 : De.value, Ut = Y.value ? Y.value : "1px 5px", yt = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 0 : Ae.value, _t = qe.value === null || qe.value === void 0 ? -13 : qe.value, Vt = Ze.value === null || Ze.value === void 0 ? 5 : Ze.value, $t = ot.value ? ot.value : "'Lato', sans-serif", Nt = ut.value ? ut.value : "1em", Gt = ft.value ? ft.value : "0.8em", oe = vt.value ? vt.value : 400, fa = pt.value ? pt.value : "#333333", n = Lt.value ? Lt.value : "#ffffff", t = Ke.value ? Ke.value : "#333333", l = g.value ? g.value : "#ffffff", s = I.value ? I.value : "'Lato', sans-serif", i = T.value ? T.value : "1.2em", v = $e.value ? $e.value : 400;
1962
+ label: Se,
1963
+ labelBackground: j,
1964
+ labelPadding: J,
1965
+ labelBorderRadius: Ve,
1966
+ labelLeft: we,
1967
+ inputLabelMarginActive: Ne,
1968
+ labelActiveTop: Ue,
1969
+ labelActiveLeft: Ye,
1970
+ fontFamilyLabel: rt,
1971
+ fontSizeLabel: it,
1972
+ fontSizeLabelActive: pt,
1973
+ fontWeightLabel: bt,
1974
+ lightTextColorLabel: gt,
1975
+ lightTextColorLabelActive: Qe,
1976
+ darkTextColorLabel: At,
1977
+ darkTextColorLabelActive: Je,
1978
+ fontFamilyChip: x,
1979
+ fontSizeChip: L,
1980
+ fontWeightChip: w
1981
+ } = ha(P), b = G(""), Xe = G(null), yt = G(null), zt = G(null), ke = G([]), Re = G(!1), U = a(() => {
1982
+ const r = Z.value ? "component-disabled" : "", B = Te.value !== "b" ? "inline-block" : "block", ve = !Ae.value || Ae.value < 185 ? 185 : Ae.value, u = be ? be.value : "ffffff", A = $e.value ? $e.value : "", Ie = fe.value ? fe.value : "", Ze = c.value ? c.value : "", Lt = Me.value !== 0 && !Me.value || Me.value < 0 ? 1 : Me.value, Ot = Be.value !== 0 && !Be.value || Be.value < 0 ? 0.2 : Be.value, Nt = ie.value !== 0 && !ie.value || ie.value < 0 ? 0 : ie.value, na = qe.value ? qe.value : "'Lato', sans-serif", oa = ze.value ? ze.value : "1.2em", Tt = le.value !== 0 && !le.value || le.value < 0 ? 100 : le.value, ua = ne.value !== 0 && !ne.value || ne.value < 0 ? 0 : ne.value, ra = se.value !== 0 && !se.value || se.value < 0 ? 10 : se.value, ia = !Q.value || !["top", "bottom"].includes(Q.value) ? "bottom" : Q.value, sa = !We.value || !["background", "line", "border"].includes(We.value) ? "background" : We.value, It = C.value ? C.value : "light", da = m.value ? m.value : !1, ca = we.value !== 0 && !we.value || we.value < 0 ? 5 : we.value, fa = j.value ? j.value : "transparent", qt = Ne.value !== 0 && !Ne.value || Ne.value < 0 ? 15 : Ne.value, Ht = J.value ? J.value : "1px 5px", jt = Ve.value !== 0 && !Ve.value || Ve.value < 0 ? 0 : Ve.value, ht = Ue.value === null || Ue.value === void 0 ? -13 : Ue.value, Rt = Ye.value === null || Ye.value === void 0 ? 5 : Ye.value, dt = rt.value ? rt.value : "'Lato', sans-serif", Mt = it.value ? it.value : "1em", va = pt.value ? pt.value : "0.8em", Ut = bt.value ? bt.value : 400, oe = gt.value ? gt.value : "#333333", n = At.value ? At.value : "#ffffff", d = Qe.value ? Qe.value : "#333333", t = Je.value ? Je.value : "#ffffff", l = x.value ? x.value : "'Lato', sans-serif", s = L.value ? L.value : "1.2em", i = w.value ? w.value : 400;
1983
1983
  return {
1984
1984
  disabled: r,
1985
1985
  display: B,
1986
1986
  width: ve,
1987
1987
  font: na,
1988
- fontSize: St,
1989
- fontWeight: oa,
1988
+ fontSize: oa,
1989
+ fontWeight: Tt,
1990
1990
  textColor: u,
1991
1991
  caretColor: A,
1992
- selectionBgColor: Ne,
1993
- selectionTextColor: Ye,
1994
- paddingX: gt,
1995
- paddingY: la,
1996
- borderRadius: Wt,
1992
+ selectionBgColor: Ie,
1993
+ selectionTextColor: Ze,
1994
+ paddingX: Lt,
1995
+ paddingY: Ot,
1996
+ borderRadius: Nt,
1997
1997
  minChips: ua,
1998
1998
  maxChips: ra,
1999
1999
  inputPosition: ia,
2000
- inputStyle: Dt,
2001
- theme: sa,
2000
+ inputStyle: sa,
2001
+ theme: It,
2002
2002
  showLabel: da,
2003
2003
  labelLeft: ca,
2004
- labelBackground: Ht,
2005
- inputLabelMarginActive: jt,
2006
- labelPadding: Ut,
2007
- labelBorderRadius: yt,
2008
- labelActiveTop: _t,
2009
- labelActiveLeft: Vt,
2010
- fontFamilyLabel: $t,
2011
- fontSizeLabel: Nt,
2012
- fontSizeLabelActive: Gt,
2013
- fontWeightLabel: oe,
2014
- lightTextColorLabel: fa,
2004
+ labelBackground: fa,
2005
+ inputLabelMarginActive: qt,
2006
+ labelPadding: Ht,
2007
+ labelBorderRadius: jt,
2008
+ labelActiveTop: ht,
2009
+ labelActiveLeft: Rt,
2010
+ fontFamilyLabel: dt,
2011
+ fontSizeLabel: Mt,
2012
+ fontSizeLabelActive: va,
2013
+ fontWeightLabel: Ut,
2014
+ lightTextColorLabel: oe,
2015
2015
  darkTextColorLabel: n,
2016
- lightTextColorLabelActive: t,
2017
- darkTextColorLabelActive: l,
2018
- fontFamilyChip: s,
2019
- fontSizeChip: i,
2020
- fontWeightChip: v
2016
+ lightTextColorLabelActive: d,
2017
+ darkTextColorLabelActive: t,
2018
+ fontFamilyChip: l,
2019
+ fontSizeChip: s,
2020
+ fontWeightChip: i
2021
2021
  };
2022
- }), Ct = a(() => V.value.disabled), R = a(() => ({
2023
- display: V.value.display
2024
- })), z = a(() => {
2025
- const r = V.value;
2022
+ }), O = a(() => U.value.disabled), Vt = a(() => ({
2023
+ display: U.value.display
2024
+ })), M = a(() => {
2025
+ const r = U.value;
2026
2026
  return r.fontSize ? r.fontSize : "1.2em";
2027
- }), te = a(() => {
2028
- const r = V.value, B = xt.value;
2027
+ }), W = a(() => {
2028
+ const r = U.value, B = kt.value;
2029
2029
  return {
2030
2030
  color: r.textColor,
2031
2031
  padding: `${r.paddingY}rem ${r.paddingX}rem`,
@@ -2033,8 +2033,8 @@ const Il = ["for"], El = {
2033
2033
  textAlign: Ce.value,
2034
2034
  marginTop: B && m.value ? `${r.inputLabelMarginActive}px` : "0"
2035
2035
  };
2036
- }), E = a(() => {
2037
- switch (L.value) {
2036
+ }), ae = a(() => {
2037
+ switch (k.value) {
2038
2038
  case "italic":
2039
2039
  return "component__text--italic";
2040
2040
  case "oblique":
@@ -2042,41 +2042,41 @@ const Il = ["for"], El = {
2042
2042
  default:
2043
2043
  return "component__text--normal";
2044
2044
  }
2045
- }), Et = a(() => {
2046
- const r = V.value;
2045
+ }), E = a(() => {
2046
+ const r = U.value;
2047
2047
  return r.inputStyle !== "line" && $.value ? { borderRadius: `${r.borderRadius}rem` } : {};
2048
- }), Pt = a(() => V.value.font), Q = a(() => V.value.textColor), Tt = a(() => V.value.inputPosition === "top" ? "column" : "column-reverse"), et = a(() => {
2048
+ }), Pt = a(() => U.value.font), X = a(() => U.value.textColor), _t = a(() => U.value.inputPosition === "top" ? "column" : "column-reverse"), mt = a(() => {
2049
2049
  const r = {};
2050
- Be.value && Object.keys(Be.value).forEach((u) => r[`aria-${u}`] = Be.value[u]);
2050
+ tt.value && Object.keys(tt.value).forEach((u) => r[`aria-${u}`] = tt.value[u]);
2051
2051
  const B = {
2052
2052
  "aria-label": me.value,
2053
- "aria-disabled": J.value,
2053
+ "aria-disabled": Z.value,
2054
2054
  ...r
2055
2055
  };
2056
2056
  return Object.fromEntries(
2057
2057
  Object.entries(B).filter(([ve, u]) => u != null)
2058
2058
  );
2059
- }), bt = a(() => {
2060
- const r = V.value;
2059
+ }), at = a(() => {
2060
+ const r = U.value;
2061
2061
  return r.caretColor || (r.theme === "dark" ? "#00d4ff" : "#007bff");
2062
- }), it = a(() => {
2063
- const r = V.value;
2062
+ }), st = a(() => {
2063
+ const r = U.value;
2064
2064
  return r.selectionBgColor || (r.theme === "dark" ? "#00d4ff" : "#007bff");
2065
- }), k = a(() => {
2066
- const r = V.value;
2065
+ }), V = a(() => {
2066
+ const r = U.value;
2067
2067
  return r.selectionTextColor || (r.theme === "dark" ? "#000000" : "#ffffff");
2068
- }), Yt = a(() => ({
2069
- caretColor: bt.value
2070
- })), Mt = a(() => ({
2071
- "--selection-bg-color": it.value,
2072
- "--selection-text-color": k.value
2073
- })), Qt = a(() => {
2074
- const r = V.value, B = {
2068
+ }), Kt = a(() => ({
2069
+ caretColor: at.value
2070
+ })), Wt = a(() => ({
2071
+ "--selection-bg-color": st.value,
2072
+ "--selection-text-color": V.value
2073
+ })), Yt = a(() => {
2074
+ const r = U.value, B = {
2075
2075
  width: `${r.width}px`
2076
2076
  };
2077
2077
  return r.display === "block" ? { width: "auto" } : B;
2078
- }), Bt = a(() => de.value ? de.value : `${N.value}-name-label`), xt = a(() => we.value || ee.value.length > 0 || f.value && f.value.trim().length > 0), Jt = a(() => m.value ? we.value || ee.value.length > 0 ? F.value : "" : F.value), Ft = a(() => {
2079
- const r = V.value, B = xt.value, ve = B ? r.lightTextColorLabelActive : r.lightTextColorLabel, u = B ? r.darkTextColorLabelActive : r.darkTextColorLabel;
2078
+ }), $t = a(() => de.value ? de.value : `${I.value}-name-label`), kt = a(() => Re.value || ke.value.length > 0 || b.value && b.value.trim().length > 0), Qt = a(() => m.value ? Re.value || ke.value.length > 0 ? F.value : "" : F.value), Jt = a(() => {
2079
+ const r = U.value, B = kt.value, ve = B ? r.lightTextColorLabelActive : r.lightTextColorLabel, u = B ? r.darkTextColorLabelActive : r.darkTextColorLabel;
2080
2080
  return {
2081
2081
  fontFamily: r.fontFamilyLabel,
2082
2082
  fontSize: B ? r.fontSizeLabelActive : r.fontSizeLabel,
@@ -2090,8 +2090,8 @@ const Il = ["for"], El = {
2090
2090
  padding: B ? r.labelPadding : "0",
2091
2091
  borderRadius: B ? `${r.labelBorderRadius}rem` : "0"
2092
2092
  };
2093
- }), Ot = a(() => {
2094
- const r = V.value;
2093
+ }), Dt = a(() => {
2094
+ const r = U.value;
2095
2095
  return {
2096
2096
  fontSize: r.fontSizeChip,
2097
2097
  fontWeight: r.fontWeightChip,
@@ -2105,7 +2105,7 @@ const Il = ["for"], El = {
2105
2105
  return "component__theme--light";
2106
2106
  }
2107
2107
  }), Zt = a(() => {
2108
- switch (ze.value) {
2108
+ switch (We.value) {
2109
2109
  case "line":
2110
2110
  return "component__input--line";
2111
2111
  case "border":
@@ -2116,98 +2116,98 @@ const Il = ["for"], El = {
2116
2116
  }), ea = () => {
2117
2117
  h("clicked");
2118
2118
  }, ta = () => {
2119
- we.value = !0, h("focused");
2119
+ Re.value = !0, h("focused");
2120
2120
  }, aa = () => {
2121
- we.value = !1, h("blurred");
2122
- }, zt = (r) => {
2123
- if (!(J.value || X.value) && r.key === "Enter" && f.value.trim() !== "") {
2121
+ Re.value = !1, h("blurred");
2122
+ }, la = (r) => {
2123
+ if (!(Z.value || ee.value) && r.key === "Enter" && b.value.trim() !== "") {
2124
2124
  r.preventDefault();
2125
- let B = f.value.trim();
2126
- ge.value && (B = B.toUpperCase()), (w.value || !ee.value.includes(B)) && qt(B), f.value = "";
2125
+ let B = b.value.trim();
2126
+ ge.value && (B = B.toUpperCase()), (R.value || !ke.value.includes(B)) && wt(B), b.value = "";
2127
2127
  }
2128
- }, qt = (r) => {
2129
- ee.value.push(r), h("added", r);
2130
- }, At = (r) => {
2131
- ee.value = ee.value.filter((B) => B !== r), h("removed", r);
2128
+ }, wt = (r) => {
2129
+ ke.value.push(r), h("added", r);
2130
+ }, Ft = (r) => {
2131
+ ke.value = ke.value.filter((B) => B !== r), h("removed", r);
2132
2132
  };
2133
- return U(G, (r) => {
2134
- ee.value = r, h("changed", r);
2135
- }), U(f, (r) => {
2133
+ return K(Y, (r) => {
2134
+ ke.value = r, h("changed", r);
2135
+ }), K(b, (r) => {
2136
2136
  h("input-changed", r);
2137
- }), (r, B) => o(N) ? (M(), D("div", ba({
2137
+ }), (r, B) => o(I) ? (z(), N("div", ga({
2138
2138
  key: 0,
2139
- class: ["nb-wrapper", Ct.value],
2140
- style: [R.value],
2139
+ class: ["nb-wrapper", O.value],
2140
+ style: [Vt.value],
2141
2141
  role: "input"
2142
- }, et.value, { onClick: ea }), [
2143
- o(m) ? (M(), D("label", {
2142
+ }, mt.value, { onClick: ea }), [
2143
+ o(m) ? (z(), N("label", {
2144
2144
  key: 0,
2145
- for: Bt.value,
2145
+ for: $t.value,
2146
2146
  class: "component__label",
2147
- style: Se([Ft.value])
2147
+ style: Le([Jt.value])
2148
2148
  }, [
2149
- It(kt(o(fe)), 1),
2150
- o(ce) ? (M(), D("span", El, "*")) : re("", !0)
2149
+ Et(Bt(o(Se)), 1),
2150
+ o(ce) ? (z(), N("span", El, "*")) : re("", !0)
2151
2151
  ], 12, Il)) : re("", !0),
2152
2152
  pe("div", {
2153
- id: o(N),
2153
+ id: o(I),
2154
2154
  ref_key: "chipsContainer",
2155
- ref: rt,
2156
- class: Fe(["nb-reset", "component", Xt.value, Zt.value]),
2157
- style: Se([te.value, Qt.value, Et.value])
2155
+ ref: Xe,
2156
+ class: Oe(["nb-reset", "component", Xt.value, Zt.value]),
2157
+ style: Le([W.value, Yt.value, E.value])
2158
2158
  }, [
2159
- ee.value.length > 0 ? (M(), D("div", {
2159
+ ke.value.length > 0 ? (z(), N("div", {
2160
2160
  key: 0,
2161
2161
  ref_key: "chips",
2162
- ref: Rt,
2162
+ ref: zt,
2163
2163
  class: "chips"
2164
2164
  }, [
2165
- (M(!0), D(Ya, null, Qa(ee.value, (ve) => (M(), D("div", {
2165
+ (z(!0), N(Qa, null, Ja(ke.value, (ve) => (z(), N("div", {
2166
2166
  key: ve,
2167
2167
  class: "chip"
2168
2168
  }, [
2169
- va(r.$slots, "chip", {
2170
- chips: ee.value,
2169
+ pa(r.$slots, "chip", {
2170
+ chips: ke.value,
2171
2171
  chip: ve,
2172
- removeChip: At
2172
+ removeChip: Ft
2173
2173
  }, () => [
2174
2174
  pe("span", {
2175
2175
  class: "chip-text",
2176
- style: Se([Ot.value])
2177
- }, kt(ve), 5),
2178
- !o(J) && !o(X) ? (M(), D("span", {
2176
+ style: Le([Dt.value])
2177
+ }, Bt(ve), 5),
2178
+ !o(Z) && !o(ee) ? (z(), N("span", {
2179
2179
  key: 0,
2180
2180
  class: "chip-remove",
2181
- style: Se([Ot.value]),
2182
- onClick: (u) => At(ve)
2181
+ style: Le([Dt.value]),
2182
+ onClick: (u) => Ft(ve)
2183
2183
  }, "×", 12, Fl)) : re("", !0)
2184
2184
  ], !0)
2185
2185
  ]))), 128))
2186
2186
  ], 512)) : re("", !0),
2187
- ha(pe("input", {
2187
+ Ca(pe("input", {
2188
2188
  ref_key: "chipInput",
2189
- ref: wt,
2189
+ ref: yt,
2190
2190
  type: "text",
2191
- "onUpdate:modelValue": B[0] || (B[0] = (ve) => f.value = ve),
2192
- id: Bt.value,
2193
- name: Bt.value,
2194
- placeholder: Jt.value,
2195
- readonly: o(X),
2191
+ "onUpdate:modelValue": B[0] || (B[0] = (ve) => b.value = ve),
2192
+ id: $t.value,
2193
+ name: $t.value,
2194
+ placeholder: Qt.value,
2195
+ readonly: o(ee),
2196
2196
  autocomplete: o(he),
2197
2197
  required: o(ce),
2198
- tabindex: o(J) || o(X) ? -1 : o(ne),
2199
- class: Fe(["chips-input", E.value]),
2200
- style: Se([Yt.value, Mt.value]),
2201
- onKeydown: B[1] || (B[1] = Kt((ve) => !o(J) && o(Z) && zt(ve), ["enter"])),
2198
+ tabindex: o(Z) || o(ee) ? -1 : o(te),
2199
+ class: Oe(["chips-input", ae.value]),
2200
+ style: Le([Kt.value, Wt.value]),
2201
+ onKeydown: B[1] || (B[1] = Gt((ve) => !o(Z) && o(H) && la(ve), ["enter"])),
2202
2202
  onFocus: ta,
2203
2203
  onBlur: aa
2204
2204
  }, null, 46, Ol), [
2205
- [Xa, f.value]
2205
+ [Za, b.value]
2206
2206
  ])
2207
2207
  ], 14, Pl)
2208
2208
  ], 16)) : re("", !0);
2209
2209
  }
2210
- }), Hl = /* @__PURE__ */ Ca(ql, [["__scopeId", "data-v-ad4015ce"]]);
2210
+ }), Hl = /* @__PURE__ */ xa(ql, [["__scopeId", "data-v-ad4015ce"]]);
2211
2211
  const jl = ["id"], Ul = ["for"], Gl = {
2212
2212
  key: 0,
2213
2213
  class: "component__label--required"
@@ -2600,155 +2600,155 @@ const jl = ["id"], Ul = ["for"], Gl = {
2600
2600
  "entered"
2601
2601
  ],
2602
2602
  setup(e, { emit: y }) {
2603
- ya((u) => ({
2604
- "15fde79e": V.value,
2605
- "2d10b64f": o(Qe),
2606
- "07a02f82": Et.value,
2603
+ ma((u) => ({
2604
+ "15fde79e": U.value,
2605
+ "2d10b64f": o(et),
2606
+ "07a02f82": E.value,
2607
2607
  f1245958: Pt.value,
2608
- "0b771428": Q.value,
2609
- "0d57d0f1": o(nt),
2610
- "6ac15a7d": o(ht),
2611
- "6b362b99": o(Te),
2608
+ "0b771428": X.value,
2609
+ "0d57d0f1": o(ut),
2610
+ "6ac15a7d": o(xt),
2611
+ "6b362b99": o(_e),
2612
2612
  dfdede82: o(xe),
2613
- "4004415b": o(mt),
2613
+ "4004415b": o(Ct),
2614
2614
  f7f65f12: o(ye),
2615
- "1d9c46a1": o(lt),
2616
- "1521df9c": Rt.value,
2617
- "7eef73e9": o(st),
2618
- "4f9c2136": xt.value,
2619
- e804faee: Ct.value,
2620
- "02c75370": R.value,
2621
- "31e43771": z.value,
2622
- "6474d46a": E.value,
2615
+ "1d9c46a1": o(ot),
2616
+ "1521df9c": zt.value,
2617
+ "7eef73e9": o(ct),
2618
+ "4f9c2136": kt.value,
2619
+ e804faee: O.value,
2620
+ "02c75370": Vt.value,
2621
+ "31e43771": M.value,
2622
+ "6474d46a": ae.value,
2623
2623
  "2b2234a2": u.styleButtonColor,
2624
- "27854c14": te.value
2625
- })), pa(() => {
2626
- T.value = He.value;
2624
+ "27854c14": W.value
2625
+ })), ba(() => {
2626
+ L.value = Ge.value;
2627
2627
  }), $a(() => {
2628
- At();
2628
+ Ft();
2629
2629
  });
2630
2630
  const h = y, P = e, {
2631
- nbId: N,
2632
- display: Ve,
2631
+ nbId: I,
2632
+ display: Te,
2633
2633
  hasTabIndexEnter: be,
2634
- ariaLabel: Re,
2635
- ariaAttrs: ke,
2634
+ ariaLabel: Me,
2635
+ ariaAttrs: Be,
2636
2636
  textColor: ie,
2637
- caretColor: J,
2638
- selectionBgColor: Oe,
2639
- selectionTextColor: Me,
2640
- hasBorderRadius: ae,
2641
- borderRadius: G,
2642
- disabled: w,
2643
- fontFamily: le,
2637
+ caretColor: Z,
2638
+ selectionBgColor: qe,
2639
+ selectionTextColor: ze,
2640
+ hasBorderRadius: le,
2641
+ borderRadius: Y,
2642
+ disabled: R,
2643
+ fontFamily: ne,
2644
2644
  fontSize: se,
2645
- fontWeight: K,
2646
- fontFamilyMsg: Le,
2645
+ fontWeight: Q,
2646
+ fontFamilyMsg: Ae,
2647
2647
  fontSizeMsg: de,
2648
2648
  fontWeightMsg: F,
2649
2649
  textMessageColor: ge,
2650
- inputWidth: X,
2650
+ inputWidth: ee,
2651
2651
  inputStyle: he,
2652
2652
  activeTextStyle: ce,
2653
2653
  inputReadonly: Ce,
2654
2654
  hasTrim: $,
2655
- inputUppercase: L,
2655
+ inputUppercase: k,
2656
2656
  inputName: C,
2657
- inputPlaceholder: ze,
2658
- inputText: He,
2659
- theme: We,
2660
- tabindex: at,
2657
+ inputPlaceholder: We,
2658
+ inputText: Ge,
2659
+ theme: De,
2660
+ tabindex: nt,
2661
2661
  lightBgColor: ye,
2662
- lightBgColorFocus: lt,
2663
- lightDisabledBgColor: mt,
2664
- lightTextColor: Qe,
2665
- darkBgColor: Te,
2662
+ lightBgColorFocus: ot,
2663
+ lightDisabledBgColor: Ct,
2664
+ lightTextColor: et,
2665
+ darkBgColor: _e,
2666
2666
  darkBgColorFocus: xe,
2667
- darkDisabledBgColor: ht,
2668
- darkTextColor: nt,
2669
- textAlign: st,
2670
- showMsg: dt,
2671
- hasMsg: ct,
2672
- showLabel: je,
2673
- labelBackground: Ue,
2674
- labelPadding: Je,
2675
- labelBorderRadius: Ge,
2676
- labelLeft: b,
2677
- inputLabelMarginActive: S,
2678
- labelActiveTop: ne,
2679
- labelActiveLeft: Z,
2667
+ darkDisabledBgColor: xt,
2668
+ darkTextColor: ut,
2669
+ textAlign: ct,
2670
+ showMsg: St,
2671
+ hasMsg: ft,
2672
+ showLabel: He,
2673
+ labelBackground: vt,
2674
+ labelPadding: je,
2675
+ labelBorderRadius: Ke,
2676
+ labelLeft: g,
2677
+ inputLabelMarginActive: T,
2678
+ labelActiveTop: te,
2679
+ labelActiveLeft: H,
2680
2680
  fontFamilyLabel: me,
2681
- fontSizeLabel: Be,
2682
- fontSizeLabelActive: Xe,
2683
- fontWeightLabel: q,
2684
- lightTextColorLabel: d,
2681
+ fontSizeLabel: tt,
2682
+ fontSizeLabelActive: $e,
2683
+ fontWeightLabel: fe,
2684
+ lightTextColorLabel: c,
2685
2685
  lightTextColorLabelActive: m,
2686
- darkTextColorLabel: fe,
2687
- darkTextColorLabelActive: H,
2688
- rows: Y,
2689
- cols: Ae,
2690
- maxlength: _e,
2691
- minlength: De,
2692
- wrap: qe,
2693
- spellcheck: Ze,
2694
- autofocus: ot,
2695
- resize: ut,
2696
- minWidth: ft,
2697
- maxWidth: vt,
2698
- minHeight: pt,
2699
- maxHeight: Ke,
2700
- autoResize: Lt,
2701
- minRows: g,
2702
- maxRows: I
2703
- } = ma(P), T = j(""), $e = j(!1), f = a(() => {
2704
- const u = w.value ? "component-disabled" : "", A = Ve.value !== "b" ? "inline-block" : "block", Ne = ie ? ie.value : "ffffff", Ye = J.value ? J.value : "", gt = Oe.value ? Oe.value : "", la = Me.value ? Me.value : "", Wt = ae.value ? ae.value : !1, na = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, St = le.value ? le.value : "'Lato', sans-serif", oa = se.value ? se.value : "1.4em", ua = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, ra = Le.value ? Le.value : "'Lato', sans-serif", ia = de.value ? de.value : "1em", Dt = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, sa = ge.value ? ge.value : "#f15574", da = X.value ? X.value : 200, ca = ce.value ? ce.value : "normal", Ht = Ce.value ? Ce.value : !1, jt = L.value ? L.value : !1, Ut = We.value ? We.value : "normal", yt = st.value ? st.value : "left", _t = he.value ? he.value : "background", Vt = je.value ? je.value : !1, $t = b.value !== 0 && !b.value || b.value < 0 ? 5 : b.value, Nt = Ue.value ? Ue.value : "transparent", Gt = S.value !== 0 && !S.value || S.value < 0 ? 15 : S.value, oe = Je.value ? Je.value : "1px 5px", fa = Ge.value !== 0 && !Ge.value || Ge.value < 0 ? 0 : Ge.value, n = ne.value === null || ne.value === void 0 ? -13 : ne.value, t = Z.value === null || Z.value === void 0 ? -10 : Z.value, l = me.value ? me.value : "'Lato', sans-serif", s = Be.value ? Be.value : "1em", i = Xe.value ? Xe.value : "0.8em", v = q.value ? q.value : 400, c = d.value ? d.value : "#ffffff", p = fe.value ? fe.value : "#000000", x = m.value ? m.value : "#ffffff", _ = H.value ? H.value : "#000000", W = Y.value && Y.value > 0 ? Y.value : 2, O = Ae.value && Ae.value > 0 ? Ae.value : 20, ue = _e.value !== null && _e.value >= 0 ? _e.value : null, Ie = De.value !== null && De.value >= 0 ? De.value : null, tt = qe.value && ["soft", "hard", "off"].includes(qe.value) ? qe.value : "soft", Ee = Ze.value !== void 0 ? Ze.value : "default", Pe = ot.value !== void 0 ? ot.value : !1, xa = ut.value && ["none", "both", "vertical", "horizontal"].includes(ut.value) ? ut.value : "vertical", Sa = ft.value ? ft.value : "auto", Va = vt.value ? vt.value : "auto", ka = pt.value ? pt.value : "auto", La = Ke.value ? Ke.value : "auto", Ta = Lt.value !== void 0 ? Lt.value : !1, Ba = g.value !== null && g.value > 0 ? g.value : null, Aa = I.value !== null && I.value > 0 ? I.value : null;
2686
+ darkTextColorLabel: Se,
2687
+ darkTextColorLabelActive: j,
2688
+ rows: J,
2689
+ cols: Ve,
2690
+ maxlength: we,
2691
+ minlength: Ne,
2692
+ wrap: Ue,
2693
+ spellcheck: Ye,
2694
+ autofocus: rt,
2695
+ resize: it,
2696
+ minWidth: pt,
2697
+ maxWidth: bt,
2698
+ minHeight: gt,
2699
+ maxHeight: Qe,
2700
+ autoResize: At,
2701
+ minRows: Je,
2702
+ maxRows: x
2703
+ } = ha(P), L = G(""), w = G(!1), b = a(() => {
2704
+ const u = R.value ? "component-disabled" : "", A = Te.value !== "b" ? "inline-block" : "block", Ie = ie ? ie.value : "ffffff", Ze = Z.value ? Z.value : "", Lt = qe.value ? qe.value : "", Ot = ze.value ? ze.value : "", Nt = le.value ? le.value : !1, na = Y.value !== 0 && !Y.value || Y.value < 0 ? 0 : Y.value, oa = ne.value ? ne.value : "'Lato', sans-serif", Tt = se.value ? se.value : "1.4em", ua = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, ra = Ae.value ? Ae.value : "'Lato', sans-serif", ia = de.value ? de.value : "1em", sa = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, It = ge.value ? ge.value : "#f15574", da = ee.value ? ee.value : 200, ca = ce.value ? ce.value : "normal", fa = Ce.value ? Ce.value : !1, qt = k.value ? k.value : !1, Ht = De.value ? De.value : "normal", jt = ct.value ? ct.value : "left", ht = he.value ? he.value : "background", Rt = He.value ? He.value : !1, dt = g.value !== 0 && !g.value || g.value < 0 ? 5 : g.value, Mt = vt.value ? vt.value : "transparent", va = T.value !== 0 && !T.value || T.value < 0 ? 15 : T.value, Ut = je.value ? je.value : "1px 5px", oe = Ke.value !== 0 && !Ke.value || Ke.value < 0 ? 0 : Ke.value, n = te.value === null || te.value === void 0 ? -13 : te.value, d = H.value === null || H.value === void 0 ? -10 : H.value, t = me.value ? me.value : "'Lato', sans-serif", l = tt.value ? tt.value : "1em", s = $e.value ? $e.value : "0.8em", i = fe.value ? fe.value : 400, v = c.value ? c.value : "#ffffff", f = Se.value ? Se.value : "#000000", p = m.value ? m.value : "#ffffff", S = j.value ? j.value : "#000000", _ = J.value && J.value > 0 ? J.value : 2, D = Ve.value && Ve.value > 0 ? Ve.value : 20, q = we.value !== null && we.value >= 0 ? we.value : null, ue = Ne.value !== null && Ne.value >= 0 ? Ne.value : null, Ee = Ue.value && ["soft", "hard", "off"].includes(Ue.value) ? Ue.value : "soft", lt = Ye.value !== void 0 ? Ye.value : "default", Pe = rt.value !== void 0 ? rt.value : !1, Fe = it.value && ["none", "both", "vertical", "horizontal"].includes(it.value) ? it.value : "vertical", Sa = pt.value ? pt.value : "auto", Va = bt.value ? bt.value : "auto", ka = gt.value ? gt.value : "auto", La = Qe.value ? Qe.value : "auto", Ta = At.value !== void 0 ? At.value : !1, Ba = Je.value !== null && Je.value > 0 ? Je.value : null, Aa = x.value !== null && x.value > 0 ? x.value : null;
2705
2705
  return {
2706
2706
  disabled: u,
2707
2707
  display: A,
2708
- font: St,
2709
- fontSize: oa,
2708
+ font: oa,
2709
+ fontSize: Tt,
2710
2710
  fontWeight: ua,
2711
2711
  fontFamilyMsg: ra,
2712
2712
  fontSizeMsg: ia,
2713
- fontWeightMsg: Dt,
2714
- textMessageColor: sa,
2715
- textColor: Ne,
2716
- caretColor: Ye,
2717
- selectionBgColor: gt,
2718
- selectionTextColor: la,
2719
- hasBorderRadius: Wt,
2713
+ fontWeightMsg: sa,
2714
+ textMessageColor: It,
2715
+ textColor: Ie,
2716
+ caretColor: Ze,
2717
+ selectionBgColor: Lt,
2718
+ selectionTextColor: Ot,
2719
+ hasBorderRadius: Nt,
2720
2720
  borderRadius: na,
2721
- textAlign: yt,
2721
+ textAlign: jt,
2722
2722
  inputWidth: da,
2723
2723
  activeTextStyle: ca,
2724
- inputReadonly: Ht,
2725
- inputUppercase: jt,
2726
- theme: Ut,
2727
- inputStyle: _t,
2728
- showLabel: Vt,
2729
- labelBackground: Nt,
2730
- labelPadding: oe,
2731
- labelBorderRadius: fa,
2732
- labelLeft: $t,
2733
- inputLabelMarginActive: Gt,
2724
+ inputReadonly: fa,
2725
+ inputUppercase: qt,
2726
+ theme: Ht,
2727
+ inputStyle: ht,
2728
+ showLabel: Rt,
2729
+ labelBackground: Mt,
2730
+ labelPadding: Ut,
2731
+ labelBorderRadius: oe,
2732
+ labelLeft: dt,
2733
+ inputLabelMarginActive: va,
2734
2734
  labelActiveTop: n,
2735
- labelActiveLeft: t,
2736
- fontFamilyLabel: l,
2737
- fontSizeLabel: s,
2738
- fontSizeLabelActive: i,
2739
- fontWeightLabel: v,
2740
- lightTextColorLabel: c,
2741
- darkTextColorLabel: p,
2742
- lightTextColorLabelActive: x,
2743
- darkTextColorLabelActive: _,
2744
- rows: W,
2745
- cols: O,
2746
- maxlength: ue,
2747
- minlength: Ie,
2748
- wrap: tt,
2749
- spellcheck: Ee,
2735
+ labelActiveLeft: d,
2736
+ fontFamilyLabel: t,
2737
+ fontSizeLabel: l,
2738
+ fontSizeLabelActive: s,
2739
+ fontWeightLabel: i,
2740
+ lightTextColorLabel: v,
2741
+ darkTextColorLabel: f,
2742
+ lightTextColorLabelActive: p,
2743
+ darkTextColorLabelActive: S,
2744
+ rows: _,
2745
+ cols: D,
2746
+ maxlength: q,
2747
+ minlength: ue,
2748
+ wrap: Ee,
2749
+ spellcheck: lt,
2750
2750
  autofocus: Pe,
2751
- resize: xa,
2751
+ resize: Fe,
2752
2752
  minWidth: Sa,
2753
2753
  maxWidth: Va,
2754
2754
  minHeight: ka,
@@ -2757,35 +2757,35 @@ const jl = ["id"], Ul = ["for"], Gl = {
2757
2757
  minRows: Ba,
2758
2758
  maxRows: Aa
2759
2759
  };
2760
- }), rt = a(() => f.value.disabled), wt = a(() => ({
2761
- display: f.value.display
2762
- })), Rt = a(() => {
2763
- const u = f.value;
2760
+ }), Xe = a(() => b.value.disabled), yt = a(() => ({
2761
+ display: b.value.display
2762
+ })), zt = a(() => {
2763
+ const u = b.value;
2764
2764
  return u.fontSize ? u.fontSize : "1.4em";
2765
- }), ee = a(() => {
2766
- const u = f.value, A = Bt.value;
2765
+ }), ke = a(() => {
2766
+ const u = b.value, A = $t.value;
2767
2767
  return {
2768
2768
  fontWeight: u.fontWeight,
2769
- marginTop: A && je.value ? `${u.inputLabelMarginActive}px` : "0"
2769
+ marginTop: A && He.value ? `${u.inputLabelMarginActive}px` : "0"
2770
2770
  };
2771
- }), we = a(() => {
2772
- const u = f.value;
2771
+ }), Re = a(() => {
2772
+ const u = b.value;
2773
2773
  return u.inputStyle !== "line" && u.hasBorderRadius ? { borderRadius: `${u.borderRadius}rem` } : {};
2774
- }), V = a(() => f.value.font), Ct = a(() => f.value.fontFamilyMsg), R = a(() => f.value.fontSizeMsg), z = a(() => f.value.fontWeightMsg), te = a(() => f.value.textColor), E = a(() => f.value.textMessageColor), Et = a(() => {
2775
- const u = f.value;
2774
+ }), U = a(() => b.value.font), O = a(() => b.value.fontFamilyMsg), Vt = a(() => b.value.fontSizeMsg), M = a(() => b.value.fontWeightMsg), W = a(() => b.value.textColor), ae = a(() => b.value.textMessageColor), E = a(() => {
2775
+ const u = b.value;
2776
2776
  return u.caretColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
2777
2777
  }), Pt = a(() => {
2778
- const u = f.value;
2778
+ const u = b.value;
2779
2779
  return u.selectionBgColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
2780
- }), Q = a(() => {
2781
- const u = f.value;
2780
+ }), X = a(() => {
2781
+ const u = b.value;
2782
2782
  return u.selectionTextColor || (u.theme === "dark" ? "#000000" : "#ffffff");
2783
- }), Tt = a(() => {
2784
- const u = f.value;
2783
+ }), _t = a(() => {
2784
+ const u = b.value;
2785
2785
  return u.display === "block" ? { width: "100%" } : {
2786
2786
  width: `${u.inputWidth}px`
2787
2787
  };
2788
- }), et = a(() => {
2788
+ }), mt = a(() => {
2789
2789
  switch (he.value) {
2790
2790
  case "line":
2791
2791
  return "component__input--line";
@@ -2794,8 +2794,8 @@ const jl = ["id"], Ul = ["for"], Gl = {
2794
2794
  default:
2795
2795
  return "component__input--background";
2796
2796
  }
2797
- }), bt = a(() => {
2798
- switch (f.value.activeTextStyle) {
2797
+ }), at = a(() => {
2798
+ switch (b.value.activeTextStyle) {
2799
2799
  case "italic":
2800
2800
  return "component__input--active--italic";
2801
2801
  case "oblique":
@@ -2803,33 +2803,33 @@ const jl = ["id"], Ul = ["for"], Gl = {
2803
2803
  default:
2804
2804
  return "component__input--active--normal";
2805
2805
  }
2806
- }), it = a(() => {
2807
- switch (f.value.theme) {
2806
+ }), st = a(() => {
2807
+ switch (b.value.theme) {
2808
2808
  case "dark":
2809
2809
  return "component__theme--dark";
2810
2810
  default:
2811
2811
  return "component__theme--light";
2812
2812
  }
2813
- }), k = a(() => f.value.inputReadonly ? "component__input--read-only" : ""), Yt = a(() => f.value.inputUppercase ? "component__input--uppercase" : ""), Mt = a(() => C.value ? C.value : `${N.value}-name-label`), Qt = a(() => je.value ? $e.value ? ze.value : "" : ze.value), Bt = a(() => $e.value || T.value && T.value.trim().length > 0);
2814
- a(() => $e.value ? "component__input--active" : "component__input--no-active");
2815
- const xt = a(() => "6px 10px"), Jt = a(() => !!(dt.value && ct.value)), Ft = a(() => {
2813
+ }), V = a(() => b.value.inputReadonly ? "component__input--read-only" : ""), Kt = a(() => b.value.inputUppercase ? "component__input--uppercase" : ""), Wt = a(() => C.value ? C.value : `${I.value}-name-label`), Yt = a(() => He.value ? w.value ? We.value : "" : We.value), $t = a(() => w.value || L.value && L.value.trim().length > 0);
2814
+ a(() => w.value ? "component__input--active" : "component__input--no-active");
2815
+ const kt = a(() => "6px 10px"), Qt = a(() => !!(St.value && ft.value)), Jt = a(() => {
2816
2816
  const u = {};
2817
- ke.value && Object.keys(ke.value).forEach((Ye) => u[`aria-${Ye}`] = ke.value[Ye]);
2817
+ Be.value && Object.keys(Be.value).forEach((Ze) => u[`aria-${Ze}`] = Be.value[Ze]);
2818
2818
  const A = {
2819
- "aria-label": Re.value,
2820
- "aria-disabled": w.value,
2819
+ "aria-label": Me.value,
2820
+ "aria-disabled": R.value,
2821
2821
  ...u
2822
2822
  };
2823
2823
  return Object.fromEntries(
2824
- Object.entries(A).filter(([Ne, Ye]) => Ye != null)
2824
+ Object.entries(A).filter(([Ie, Ze]) => Ze != null)
2825
2825
  );
2826
- }), Ot = a(() => {
2827
- const u = f.value, A = Bt.value, Ne = A ? u.lightTextColorLabelActive : u.lightTextColorLabel, Ye = A ? u.darkTextColorLabelActive : u.darkTextColorLabel;
2826
+ }), Dt = a(() => {
2827
+ const u = b.value, A = $t.value, Ie = A ? u.lightTextColorLabelActive : u.lightTextColorLabel, Ze = A ? u.darkTextColorLabelActive : u.darkTextColorLabel;
2828
2828
  return {
2829
2829
  fontFamily: u.fontFamilyLabel,
2830
2830
  fontSize: A ? u.fontSizeLabelActive : u.fontSizeLabel,
2831
2831
  fontWeight: u.fontWeightLabel,
2832
- color: u.theme === "dark" ? Ye : Ne,
2832
+ color: u.theme === "dark" ? Ze : Ie,
2833
2833
  top: A ? `${u.labelActiveTop}px` : "50%",
2834
2834
  left: A ? `${u.labelActiveLeft}px` : `${u.labelLeft}px`,
2835
2835
  transform: A ? "translateY(0)" : "translateY(-50%)",
@@ -2840,11 +2840,11 @@ const jl = ["id"], Ul = ["for"], Gl = {
2840
2840
  };
2841
2841
  });
2842
2842
  a(() => {
2843
- const u = f.value;
2843
+ const u = b.value;
2844
2844
  return u.theme === "dark" ? u.darkTextColorLabelActive : u.lightTextColorLabelActive;
2845
2845
  });
2846
2846
  const Xt = a(() => {
2847
- const u = f.value, A = {
2847
+ const u = b.value, A = {
2848
2848
  rows: u.rows,
2849
2849
  cols: u.cols,
2850
2850
  wrap: u.wrap,
@@ -2853,105 +2853,105 @@ const jl = ["id"], Ul = ["for"], Gl = {
2853
2853
  };
2854
2854
  return u.maxlength !== null && (A.maxlength = u.maxlength), u.minlength !== null && (A.minlength = u.minlength), A;
2855
2855
  }), Zt = a(() => ({
2856
- resize: f.value.resize
2857
- })), ea = a(() => f.value.wrap === "off" ? {
2856
+ resize: b.value.resize
2857
+ })), ea = a(() => b.value.wrap === "off" ? {
2858
2858
  whiteSpace: "nowrap",
2859
2859
  overflowX: "auto"
2860
2860
  } : {}), ta = a(() => {
2861
- const u = f.value;
2861
+ const u = b.value;
2862
2862
  return u.minWidth === "auto" ? {} : {
2863
2863
  minWidth: u.minWidth
2864
2864
  };
2865
2865
  }), aa = a(() => {
2866
- const u = f.value;
2866
+ const u = b.value;
2867
2867
  return u.maxWidth === "auto" ? {} : {
2868
2868
  maxWidth: u.maxWidth
2869
2869
  };
2870
- }), zt = a(() => {
2871
- const u = f.value;
2870
+ }), la = a(() => {
2871
+ const u = b.value;
2872
2872
  return u.minHeight === "auto" ? {} : {
2873
2873
  minHeight: u.minHeight
2874
2874
  };
2875
- }), qt = a(() => {
2876
- const u = f.value;
2875
+ }), wt = a(() => {
2876
+ const u = b.value;
2877
2877
  return u.maxHeight === "auto" ? {} : {
2878
2878
  maxHeight: u.maxHeight
2879
2879
  };
2880
- }), At = () => {
2881
- T.value = He.value;
2880
+ }), Ft = () => {
2881
+ L.value = Ge.value;
2882
2882
  }, r = () => {
2883
2883
  h("clicked");
2884
2884
  }, B = () => {
2885
- w.value || f.value.inputReadonly || !be.value || h("entered", T.value);
2885
+ R.value || b.value.inputReadonly || !be.value || h("entered", L.value);
2886
2886
  }, ve = () => {
2887
- let u = T.value;
2887
+ let u = L.value;
2888
2888
  $.value && (u = u.trim()), h("current-value", u);
2889
2889
  };
2890
- return U(He, (u) => {
2891
- u !== T.value && (T.value = u);
2892
- }, { immediate: !0 }), U(T, (u) => {
2890
+ return K(Ge, (u) => {
2891
+ u !== L.value && (L.value = u);
2892
+ }, { immediate: !0 }), K(L, (u) => {
2893
2893
  $.value && (u = u.trim()), h("changed", u);
2894
- }), U($e, (u) => {
2894
+ }), K(w, (u) => {
2895
2895
  h(u ? "focused" : "blurred");
2896
- }), U(T, () => {
2896
+ }), K(L, () => {
2897
2897
  ve();
2898
- }, { immediate: !0 }), (u, A) => o(N) ? (M(), D("div", ba({
2898
+ }, { immediate: !0 }), (u, A) => o(I) ? (z(), N("div", ga({
2899
2899
  key: 0,
2900
- class: ["nb-wrapper", rt.value],
2901
- style: [wt.value, Tt.value, we.value],
2900
+ class: ["nb-wrapper", Xe.value],
2901
+ style: [yt.value, _t.value, Re.value],
2902
2902
  role: "input"
2903
- }, Ft.value), [
2903
+ }, Jt.value), [
2904
2904
  pe("div", {
2905
- id: o(N),
2906
- class: Fe(["nb-reset", "component", it.value, k.value, et.value]),
2907
- style: Se([ee.value, Tt.value, we.value]),
2905
+ id: o(I),
2906
+ class: Oe(["nb-reset", "component", st.value, V.value, mt.value]),
2907
+ style: Le([ke.value, _t.value, Re.value]),
2908
2908
  onClick: r
2909
2909
  }, [
2910
- o(je) ? (M(), D("label", {
2910
+ o(He) ? (z(), N("label", {
2911
2911
  key: 0,
2912
- for: Mt.value,
2912
+ for: Wt.value,
2913
2913
  class: "component__label",
2914
- style: Se([Ot.value])
2914
+ style: Le([Dt.value])
2915
2915
  }, [
2916
- It(kt(e.label), 1),
2917
- e.required ? (M(), D("span", Gl, "*")) : re("", !0)
2916
+ Et(Bt(e.label), 1),
2917
+ e.required ? (z(), N("span", Gl, "*")) : re("", !0)
2918
2918
  ], 12, Ul)) : re("", !0),
2919
- ha(pe("textarea", ba({
2920
- "onUpdate:modelValue": A[0] || (A[0] = (Ne) => T.value = Ne),
2921
- id: Mt.value,
2922
- name: Mt.value
2919
+ Ca(pe("textarea", ga({
2920
+ "onUpdate:modelValue": A[0] || (A[0] = (Ie) => L.value = Ie),
2921
+ id: Wt.value,
2922
+ name: Wt.value
2923
2923
  }, Xt.value, {
2924
2924
  class: ["component__input", [
2925
- Yt.value,
2926
- bt.value
2925
+ Kt.value,
2926
+ at.value
2927
2927
  ]],
2928
- placeholder: Qt.value,
2929
- disabled: o(w) || o(Ce),
2928
+ placeholder: Yt.value,
2929
+ disabled: o(R) || o(Ce),
2930
2930
  required: e.required,
2931
2931
  readonly: o(Ce),
2932
2932
  autocomplete: e.inputAutocomplete,
2933
- tabindex: o(w) || o(Ce) ? -1 : o(at),
2933
+ tabindex: o(R) || o(Ce) ? -1 : o(nt),
2934
2934
  role: "textbox",
2935
- style: [we.value, Zt.value, ea.value, ta.value, aa.value, zt.value, qt.value],
2936
- onFocus: A[1] || (A[1] = (Ne) => $e.value = !0),
2937
- onBlur: A[2] || (A[2] = (Ne) => $e.value = !1),
2935
+ style: [Re.value, Zt.value, ea.value, ta.value, aa.value, la.value, wt.value],
2936
+ onFocus: A[1] || (A[1] = (Ie) => w.value = !0),
2937
+ onBlur: A[2] || (A[2] = (Ie) => w.value = !1),
2938
2938
  onInput: ve,
2939
- onKeydown: A[3] || (A[3] = Kt((Ne) => !o(w) && o(be) && B(), ["enter"]))
2939
+ onKeydown: A[3] || (A[3] = Gt((Ie) => !o(R) && o(be) && B(), ["enter"]))
2940
2940
  }), null, 16, Kl), [
2941
- [Xa, T.value]
2941
+ [Za, L.value]
2942
2942
  ])
2943
2943
  ], 14, jl),
2944
- Jt.value ? (M(), D("div", {
2944
+ Qt.value ? (z(), N("div", {
2945
2945
  key: 0,
2946
- class: Fe(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
2946
+ class: Oe(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
2947
2947
  }, [
2948
- va(u.$slots, "message", {}, () => [
2949
- It(kt(e.message), 1)
2948
+ pa(u.$slots, "message", {}, () => [
2949
+ Et(Bt(e.message), 1)
2950
2950
  ], !0)
2951
2951
  ], 2)) : re("", !0)
2952
2952
  ], 16)) : re("", !0);
2953
2953
  }
2954
- }), Ql = /* @__PURE__ */ Ca(Yl, [["__scopeId", "data-v-f04d2155"]]);
2954
+ }), Ql = /* @__PURE__ */ xa(Yl, [["__scopeId", "data-v-f04d2155"]]);
2955
2955
  const Jl = ["id"], Xl = ["for"], Zl = {
2956
2956
  key: 0,
2957
2957
  class: "component__label--required"
@@ -3107,6 +3107,11 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3107
3107
  default: 350,
3108
3108
  validator: (e) => typeof e == "number" && e >= 280
3109
3109
  },
3110
+ blockClicksWithoutEvents: {
3111
+ type: Boolean,
3112
+ default: !1,
3113
+ validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
3114
+ },
3110
3115
  hasTrim: {
3111
3116
  type: Boolean,
3112
3117
  default: !1,
@@ -3309,122 +3314,123 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3309
3314
  "entered"
3310
3315
  ],
3311
3316
  setup(e, { emit: y }) {
3312
- ya((t) => ({
3313
- "38fee851": bt.value,
3314
- "72e828df": Q.value,
3315
- "5ebab342": o(Ue),
3316
- "0b35d0ef": Bt.value,
3317
- "188def01": xt.value,
3318
- "78674b4e": Jt.value,
3319
- ea5e2cc4: o(S),
3320
- "7e9e7d6a": o(b),
3321
- "90f0e8f4": o(Je),
3322
- a86f6b88: Mt.value,
3323
- "01a1c61c": o(Ge),
3324
- "21e39db0": A.value,
3325
- "2f78ac90": Ne.value,
3326
- b06907e4: o(je),
3327
- "7c4123ac": o(dt),
3328
- db617e64: o(ct),
3329
- "4601eb16": o(ne),
3330
- e512822e: B.value,
3331
- "4f623b14": it.value,
3332
- "0231f7b5": k.value,
3333
- b2d19cc4: Yt.value,
3334
- "5ee5b178": Qt.value,
3335
- "598d71e2": t.styleButtonColor
3317
+ ma((t) => ({
3318
+ "761d4e8c": st.value,
3319
+ b0ecd5f8: _t.value,
3320
+ 83726886: o(je),
3321
+ c5a67058: kt.value,
3322
+ "68e76626": Qt.value,
3323
+ "63a49c3e": Jt.value,
3324
+ "811b547a": o(te),
3325
+ "86750c62": o(T),
3326
+ "7520862a": o(Ke),
3327
+ "2c2172be": Yt.value,
3328
+ a7d1faa6: o(g),
3329
+ c813d23a: Ie.value,
3330
+ "7fd223b5": Ze.value,
3331
+ "2e840c49": o(vt),
3332
+ "70fd6965": o(ft),
3333
+ fb37db1a: o(He),
3334
+ "02bd9c8a": o(H),
3335
+ "3c94ba24": ve.value,
3336
+ "3391d84a": V.value,
3337
+ d7ae22cc: Kt.value,
3338
+ d2a7f97a: Wt.value,
3339
+ a181aec6: $t.value,
3340
+ "0675579d": t.styleButtonColor
3336
3341
  }));
3337
3342
  const h = pl(
3338
3343
  () => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
3339
3344
  );
3340
- pa(() => {
3341
- g.value = We.value;
3345
+ ba(() => {
3346
+ x.value = De.value;
3342
3347
  }), $a(() => {
3343
- gt();
3348
+ Ot();
3344
3349
  });
3345
- const P = y, N = e, {
3346
- nbId: Ve,
3350
+ const P = y, I = e, {
3351
+ nbId: Te,
3347
3352
  display: be,
3348
- hasTabIndexEnter: Re,
3349
- ariaLabel: ke,
3353
+ hasTabIndexEnter: Me,
3354
+ ariaLabel: Be,
3350
3355
  ariaAttrs: ie,
3351
- caretColor: J,
3352
- selectionBgColor: Oe,
3353
- selectionTextColor: Me,
3354
- hasBorderRadius: ae,
3355
- borderRadius: G,
3356
- disabled: w,
3357
- fontFamily: le,
3356
+ caretColor: Z,
3357
+ selectionBgColor: qe,
3358
+ selectionTextColor: ze,
3359
+ hasBorderRadius: le,
3360
+ borderRadius: Y,
3361
+ disabled: R,
3362
+ fontFamily: ne,
3358
3363
  fontSize: se,
3359
- fontWeight: K,
3360
- fontFamilyMsg: Le,
3364
+ fontWeight: Q,
3365
+ fontFamilyMsg: Ae,
3361
3366
  fontSizeMsg: de,
3362
3367
  fontWeightMsg: F,
3363
3368
  textMessageColor: ge,
3364
- inputWidth: X,
3369
+ inputWidth: ee,
3365
3370
  inputStyle: he,
3366
3371
  activeTextStyle: ce,
3367
3372
  sizeMediaQuery: Ce,
3368
3373
  inputReadonly: $,
3369
- inputType: L,
3374
+ inputType: k,
3370
3375
  hasTrim: C,
3371
- inputUppercase: ze,
3372
- inputName: He,
3373
- inputText: We,
3374
- min: at,
3376
+ inputUppercase: We,
3377
+ inputName: Ge,
3378
+ inputText: De,
3379
+ min: nt,
3375
3380
  max: ye,
3376
- step: lt,
3377
- useCustomCalendar: mt,
3378
- locale: Qe,
3379
- theme: Te,
3381
+ step: ot,
3382
+ useCustomCalendar: Ct,
3383
+ locale: et,
3384
+ theme: _e,
3380
3385
  allowRange: xe,
3381
- calendarZIndex: ht,
3382
- calendarWidth: nt,
3383
- tabindex: st,
3384
- lightBgColor: dt,
3385
- lightBgColorFocus: ct,
3386
- lightDisabledBgColor: je,
3387
- lightTextColor: Ue,
3388
- darkBgColor: Je,
3389
- darkBgColorFocus: Ge,
3390
- darkDisabledBgColor: b,
3391
- darkTextColor: S,
3392
- textAlign: ne,
3393
- showMsg: Z,
3394
- hasMsg: me,
3395
- showLabel: Be,
3396
- label: Xe,
3397
- labelBreakOnActive: q,
3398
- labelBackground: d,
3399
- labelPadding: m,
3400
- labelBorderRadius: fe,
3401
- labelLeft: H,
3402
- inputLabelMarginActive: Y,
3403
- labelActiveTop: Ae,
3404
- labelActiveLeft: _e,
3405
- labelRight: De,
3406
- labelActiveRight: qe,
3407
- fontFamilyLabel: Ze,
3408
- fontSizeLabel: ot,
3409
- fontSizeLabelActive: ut,
3410
- fontWeightLabel: ft,
3411
- lightTextColorLabel: vt,
3412
- lightTextColorLabelActive: pt,
3413
- darkTextColorLabel: Ke,
3414
- darkTextColorLabelActive: Lt
3415
- } = ma(N), g = j(""), I = j(""), T = j(""), $e = j(""), f = j(!1), rt = j(!1), wt = a(() => !nt.value || nt.value < 280 ? 280 : parseInt(nt.value, 10)), Rt = a(() => {
3416
- if (!g.value)
3386
+ calendarZIndex: xt,
3387
+ calendarWidth: ut,
3388
+ blockClicksWithoutEvents: ct,
3389
+ tabindex: St,
3390
+ lightBgColor: ft,
3391
+ lightBgColorFocus: He,
3392
+ lightDisabledBgColor: vt,
3393
+ lightTextColor: je,
3394
+ darkBgColor: Ke,
3395
+ darkBgColorFocus: g,
3396
+ darkDisabledBgColor: T,
3397
+ darkTextColor: te,
3398
+ textAlign: H,
3399
+ showMsg: me,
3400
+ hasMsg: tt,
3401
+ showLabel: $e,
3402
+ label: fe,
3403
+ labelBreakOnActive: c,
3404
+ labelBackground: m,
3405
+ labelPadding: Se,
3406
+ labelBorderRadius: j,
3407
+ labelLeft: J,
3408
+ inputLabelMarginActive: Ve,
3409
+ labelActiveTop: we,
3410
+ labelActiveLeft: Ne,
3411
+ labelRight: Ue,
3412
+ labelActiveRight: Ye,
3413
+ fontFamilyLabel: rt,
3414
+ fontSizeLabel: it,
3415
+ fontSizeLabelActive: pt,
3416
+ fontWeightLabel: bt,
3417
+ lightTextColorLabel: gt,
3418
+ lightTextColorLabelActive: Qe,
3419
+ darkTextColorLabel: At,
3420
+ darkTextColorLabelActive: Je
3421
+ } = ha(I), x = G(""), L = G(""), w = G(""), b = G(""), Xe = G(!1), yt = G(!1), zt = a(() => !ut.value || ut.value < 280 ? 280 : parseInt(ut.value, 10)), ke = a(() => {
3422
+ if (!x.value)
3417
3423
  return null;
3418
- if (xe.value && typeof g.value == "string" && g.value.startsWith("{"))
3424
+ if (xe.value && typeof x.value == "string" && x.value.startsWith("{"))
3419
3425
  try {
3420
- const t = JSON.parse(g.value);
3426
+ const t = JSON.parse(x.value);
3421
3427
  if (t && (t.startDate || t.endDate)) {
3422
3428
  const l = (s) => {
3423
3429
  if (!s)
3424
3430
  return null;
3425
3431
  if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
3426
- const [i, v, c] = s.split("-").map(Number);
3427
- return new Date(i, v - 1, c);
3432
+ const [i, v, f] = s.split("-").map(Number);
3433
+ return new Date(i, v - 1, f);
3428
3434
  }
3429
3435
  return new Date(s);
3430
3436
  };
@@ -3435,53 +3441,53 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3435
3441
  }
3436
3442
  } catch {
3437
3443
  }
3438
- if (L.value === "date" && typeof g.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(g.value)) {
3439
- const [t, l, s] = g.value.split("-").map(Number);
3444
+ if (k.value === "date" && typeof x.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(x.value)) {
3445
+ const [t, l, s] = x.value.split("-").map(Number);
3440
3446
  return new Date(t, l - 1, s);
3441
3447
  }
3442
- return g.value;
3443
- }), ee = (t, l, s) => {
3448
+ return x.value;
3449
+ }), Re = (t, l, s) => {
3444
3450
  if (!t)
3445
3451
  return "";
3446
- const i = s || Qe.value;
3452
+ const i = s || et.value;
3447
3453
  if (l === "date") {
3448
3454
  if (xe.value && typeof t == "string" && t.startsWith("{"))
3449
3455
  try {
3450
3456
  const v = JSON.parse(t);
3451
3457
  if (v && (v.startDate || v.endDate)) {
3452
- const c = (_) => {
3458
+ const f = (_) => {
3453
3459
  if (!_)
3454
3460
  return "";
3455
3461
  if (/^\d{4}-\d{2}-\d{2}$/.test(_)) {
3456
- const [W, O, ue] = _.split("-");
3457
- return i === "pt-BR" ? `${ue}/${O}/${W}` : `${O}/${ue}/${W}`;
3462
+ const [D, q, ue] = _.split("-");
3463
+ return i === "pt-BR" ? `${ue}/${q}/${D}` : `${q}/${ue}/${D}`;
3458
3464
  }
3459
3465
  return _;
3460
- }, p = c(v.startDate), x = c(v.endDate);
3461
- if (p && x)
3462
- return `${p} - ${x}`;
3466
+ }, p = f(v.startDate), S = f(v.endDate);
3467
+ if (p && S)
3468
+ return `${p} - ${S}`;
3463
3469
  if (p)
3464
3470
  return p;
3465
- if (x)
3466
- return x;
3471
+ if (S)
3472
+ return S;
3467
3473
  }
3468
3474
  } catch {
3469
3475
  }
3470
3476
  if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}$/.test(t)) {
3471
- const [v, c, p] = t.split("-");
3472
- return i === "pt-BR" ? `${p}/${c}/${v}` : `${c}/${p}/${v}`;
3477
+ const [v, f, p] = t.split("-");
3478
+ return i === "pt-BR" ? `${p}/${f}/${v}` : `${f}/${p}/${v}`;
3473
3479
  }
3474
3480
  return t;
3475
3481
  } else if (l === "datetime-local") {
3476
3482
  if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
3477
- const [v, c] = t.split("T"), [p, x, _] = v.split("-");
3478
- return i === "pt-BR" ? `${_}/${x}/${p} ${c}` : `${x}/${_}/${p} ${c}`;
3483
+ const [v, f] = t.split("T"), [p, S, _] = v.split("-");
3484
+ return i === "pt-BR" ? `${_}/${S}/${p} ${f}` : `${S}/${_}/${p} ${f}`;
3479
3485
  }
3480
3486
  return t;
3481
3487
  } else if (l === "month") {
3482
3488
  if (typeof t == "string" && /^\d{4}-\d{2}$/.test(t)) {
3483
- const [v, c] = t.split("-");
3484
- return `${c}/${v}`;
3489
+ const [v, f] = t.split("-");
3490
+ return `${f}/${v}`;
3485
3491
  }
3486
3492
  return t;
3487
3493
  } else if (l === "week") {
@@ -3493,169 +3499,169 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3493
3499
  return t;
3494
3500
  }
3495
3501
  return t;
3496
- }, we = (t, l, s) => {
3502
+ }, U = (t, l, s) => {
3497
3503
  if (!t || !t.trim())
3498
3504
  return "";
3499
- const i = t.trim(), v = s || Qe.value;
3505
+ const i = t.trim(), v = s || et.value;
3500
3506
  if (l === "date") {
3501
3507
  if (xe.value && i.includes("-")) {
3502
- const c = i.split(/\s*-\s*/).map((W) => W.trim()), p = (W) => {
3503
- if (!W)
3508
+ const f = i.split(/\s*-\s*/).map((D) => D.trim()), p = (D) => {
3509
+ if (!D)
3504
3510
  return null;
3505
- if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(W)) {
3506
- const O = W.split("/");
3511
+ if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(D)) {
3512
+ const q = D.split("/");
3507
3513
  if (v === "pt-BR") {
3508
- const [ue, Ie, tt] = O, Ee = ue.padStart(2, "0"), Pe = Ie.padStart(2, "0");
3509
- return `${tt}-${Pe}-${Ee}`;
3514
+ const [ue, Ee, lt] = q, Pe = ue.padStart(2, "0"), Fe = Ee.padStart(2, "0");
3515
+ return `${lt}-${Fe}-${Pe}`;
3510
3516
  } else {
3511
- const [ue, Ie, tt] = O, Ee = Ie.padStart(2, "0"), Pe = ue.padStart(2, "0");
3512
- return `${tt}-${Pe}-${Ee}`;
3517
+ const [ue, Ee, lt] = q, Pe = Ee.padStart(2, "0"), Fe = ue.padStart(2, "0");
3518
+ return `${lt}-${Fe}-${Pe}`;
3513
3519
  }
3514
- } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(W)) {
3515
- const O = W.split("-"), [ue, Ie, tt] = O, Ee = tt.padStart(2, "0"), Pe = Ie.padStart(2, "0");
3516
- return `${ue}-${Pe}-${Ee}`;
3520
+ } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(D)) {
3521
+ const q = D.split("-"), [ue, Ee, lt] = q, Pe = lt.padStart(2, "0"), Fe = Ee.padStart(2, "0");
3522
+ return `${ue}-${Fe}-${Pe}`;
3517
3523
  }
3518
3524
  return null;
3519
3525
  };
3520
- let x = p(c[0]), _ = c[1] ? p(c[1]) : null;
3521
- if (x && _) {
3522
- const W = new Date(x);
3523
- if (new Date(_) < W) {
3524
- const ue = x;
3525
- x = _, _ = ue;
3526
+ let S = p(f[0]), _ = f[1] ? p(f[1]) : null;
3527
+ if (S && _) {
3528
+ const D = new Date(S);
3529
+ if (new Date(_) < D) {
3530
+ const ue = S;
3531
+ S = _, _ = ue;
3526
3532
  }
3527
- return JSON.stringify({ startDate: x, endDate: _ });
3528
- } else if (x)
3529
- return JSON.stringify({ startDate: x, endDate: null });
3533
+ return JSON.stringify({ startDate: S, endDate: _ });
3534
+ } else if (S)
3535
+ return JSON.stringify({ startDate: S, endDate: null });
3530
3536
  return "";
3531
3537
  }
3532
3538
  if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(i)) {
3533
- const c = i.split("/");
3539
+ const f = i.split("/");
3534
3540
  if (v === "pt-BR") {
3535
- const [p, x, _] = c, W = p.padStart(2, "0"), O = x.padStart(2, "0");
3536
- return `${_}-${O}-${W}`;
3541
+ const [p, S, _] = f, D = p.padStart(2, "0"), q = S.padStart(2, "0");
3542
+ return `${_}-${q}-${D}`;
3537
3543
  } else {
3538
- const [p, x, _] = c, W = x.padStart(2, "0"), O = p.padStart(2, "0");
3539
- return `${_}-${O}-${W}`;
3544
+ const [p, S, _] = f, D = S.padStart(2, "0"), q = p.padStart(2, "0");
3545
+ return `${_}-${q}-${D}`;
3540
3546
  }
3541
3547
  } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(i)) {
3542
- const c = i.split("-"), [p, x, _] = c, W = _.padStart(2, "0"), O = x.padStart(2, "0");
3543
- return `${p}-${O}-${W}`;
3548
+ const f = i.split("-"), [p, S, _] = f, D = _.padStart(2, "0"), q = S.padStart(2, "0");
3549
+ return `${p}-${q}-${D}`;
3544
3550
  }
3545
3551
  return "";
3546
3552
  } else if (l === "datetime-local") {
3547
3553
  if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
3548
- const [c, p] = i.split(" "), x = c.split("/");
3554
+ const [f, p] = i.split(" "), S = f.split("/");
3549
3555
  if (v === "pt-BR") {
3550
- const [_, W, O] = x, ue = _.padStart(2, "0"), Ie = W.padStart(2, "0"), Ee = p.split(":").map((Pe) => Pe.padStart(2, "0")).join(":");
3551
- return `${O}-${Ie}-${ue}T${Ee}`;
3556
+ const [_, D, q] = S, ue = _.padStart(2, "0"), Ee = D.padStart(2, "0"), Pe = p.split(":").map((Fe) => Fe.padStart(2, "0")).join(":");
3557
+ return `${q}-${Ee}-${ue}T${Pe}`;
3552
3558
  } else {
3553
- const [_, W, O] = x, ue = W.padStart(2, "0"), Ie = _.padStart(2, "0"), Ee = p.split(":").map((Pe) => Pe.padStart(2, "0")).join(":");
3554
- return `${O}-${Ie}-${ue}T${Ee}`;
3559
+ const [_, D, q] = S, ue = D.padStart(2, "0"), Ee = _.padStart(2, "0"), Pe = p.split(":").map((Fe) => Fe.padStart(2, "0")).join(":");
3560
+ return `${q}-${Ee}-${ue}T${Pe}`;
3555
3561
  }
3556
3562
  } else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
3557
- const [c, p] = i.split("T"), x = c.split("-"), [_, W, O] = x, ue = O.padStart(2, "0"), Ie = W.padStart(2, "0"), Ee = p.split(":").map((Pe) => Pe.padStart(2, "0")).join(":");
3558
- return `${_}-${Ie}-${ue}T${Ee}`;
3563
+ const [f, p] = i.split("T"), S = f.split("-"), [_, D, q] = S, ue = q.padStart(2, "0"), Ee = D.padStart(2, "0"), Pe = p.split(":").map((Fe) => Fe.padStart(2, "0")).join(":");
3564
+ return `${_}-${Ee}-${ue}T${Pe}`;
3559
3565
  }
3560
3566
  return "";
3561
3567
  } else if (l === "month") {
3562
3568
  if (/^\d{1,2}\/\d{4}$/.test(i)) {
3563
- const [c, p] = i.split("/"), x = c.padStart(2, "0");
3564
- return `${p}-${x}`;
3569
+ const [f, p] = i.split("/"), S = f.padStart(2, "0");
3570
+ return `${p}-${S}`;
3565
3571
  } else if (/^\d{4}-\d{1,2}$/.test(i)) {
3566
- const [c, p] = i.split("-"), x = p.padStart(2, "0");
3567
- return `${c}-${x}`;
3572
+ const [f, p] = i.split("-"), S = p.padStart(2, "0");
3573
+ return `${f}-${S}`;
3568
3574
  }
3569
3575
  return "";
3570
3576
  } else if (l === "week") {
3571
3577
  if (/^\d{4}-W\d{2}$/i.test(i))
3572
3578
  return i.toUpperCase();
3573
- const c = i.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
3574
- if (c)
3575
- return `${c[2]}-W${c[1]}`;
3579
+ const f = i.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
3580
+ if (f)
3581
+ return `${f[2]}-W${f[1]}`;
3576
3582
  const p = i.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
3577
3583
  return p ? `${p[2]}-W${p[1]}` : "";
3578
3584
  }
3579
3585
  return i;
3580
- }, V = j(!1), Ct = j({ top: 0, left: 0 }), R = j(null), z = j(null), te = a(() => mt.value === !0), E = a(() => {
3581
- const t = w.value ? "component-disabled" : "", l = be.value !== "b" ? "inline-block" : "block", s = J.value ? J.value : "", i = Oe.value ? Oe.value : "", v = Me.value ? Me.value : "", c = ae.value ? ae.value : !1, p = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, x = le.value ? le.value : "'Lato', sans-serif", _ = se.value ? se.value : "1.4em", W = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, O = Le.value ? Le.value : "'Lato', sans-serif", ue = de.value ? de.value : "1em", Ie = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, tt = ge.value ? ge.value : "#f15574", Ee = X.value ? X.value : 200, Pe = ce.value ? ce.value : "normal", xa = "sm", Sa = $.value ? $.value : !1, Va = L.value ? L.value : "date", ka = ze.value ? ze.value : !1, La = Te.value ? Te.value : "normal", Ta = ne.value ? ne.value : "left", Ba = he.value ? he.value : "background", Aa = Be.value ? Be.value : !1, wa = H.value !== 0 && !H.value || H.value < 0 ? 5 : H.value, Ra = d.value ? d.value : "transparent", Ma = Y.value !== 0 && !Y.value || Y.value < 0 ? 15 : Y.value, za = m.value ? m.value : "1px 5px", Wa = fe.value !== 0 && !fe.value || fe.value < 0 ? 0 : fe.value, Da = Ae.value === null || Ae.value === void 0 ? -13 : Ae.value, Na = _e.value === null || _e.value === void 0 ? -10 : _e.value, Ia = De.value === null || De.value === void 0 ? 0 : De.value, Ea = qe.value === null || qe.value === void 0 ? 0 : qe.value, Pa = Ze.value ? Ze.value : "'Lato', sans-serif", Fa = ot.value ? ot.value : "1em", Oa = ut.value ? ut.value : "0.8em", qa = ft.value ? ft.value : 400, Ha = vt.value ? vt.value : "#ffffff", ja = Ke.value ? Ke.value : "#000000", Ua = pt.value ? pt.value : "#ffffff", Ga = Lt.value ? Lt.value : "#000000";
3586
+ }, O = G(!1), Vt = G({ top: 0, left: 0 }), M = G(null), W = G(null), ae = a(() => Ct.value === !0), E = a(() => {
3587
+ const t = R.value ? "component-disabled" : "", l = be.value !== "b" ? "inline-block" : "block", s = Z.value ? Z.value : "", i = qe.value ? qe.value : "", v = ze.value ? ze.value : "", f = le.value ? le.value : !1, p = Y.value !== 0 && !Y.value || Y.value < 0 ? 0 : Y.value, S = ne.value ? ne.value : "'Lato', sans-serif", _ = se.value ? se.value : "1.4em", D = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, q = Ae.value ? Ae.value : "'Lato', sans-serif", ue = de.value ? de.value : "1em", Ee = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, lt = ge.value ? ge.value : "#f15574", Pe = ee.value ? ee.value : 200, Fe = ce.value ? ce.value : "normal", Sa = "sm", Va = $.value ? $.value : !1, ka = k.value ? k.value : "date", La = We.value ? We.value : !1, Ta = _e.value ? _e.value : "normal", Ba = H.value ? H.value : "left", Aa = he.value ? he.value : "background", wa = $e.value ? $e.value : !1, Ra = J.value !== 0 && !J.value || J.value < 0 ? 5 : J.value, Ma = m.value ? m.value : "transparent", za = Ve.value !== 0 && !Ve.value || Ve.value < 0 ? 15 : Ve.value, Wa = Se.value ? Se.value : "1px 5px", Da = j.value !== 0 && !j.value || j.value < 0 ? 0 : j.value, Na = we.value === null || we.value === void 0 ? -13 : we.value, Ia = Ne.value === null || Ne.value === void 0 ? -10 : Ne.value, Ea = Ue.value === null || Ue.value === void 0 ? 0 : Ue.value, Pa = Ye.value === null || Ye.value === void 0 ? 0 : Ye.value, Fa = rt.value ? rt.value : "'Lato', sans-serif", Oa = it.value ? it.value : "1em", qa = pt.value ? pt.value : "0.8em", Ha = bt.value ? bt.value : 400, ja = gt.value ? gt.value : "#ffffff", Ua = At.value ? At.value : "#000000", Ga = Qe.value ? Qe.value : "#ffffff", Ka = Je.value ? Je.value : "#000000";
3582
3588
  return {
3583
3589
  disabled: t,
3584
3590
  display: l,
3585
- font: x,
3591
+ font: S,
3586
3592
  fontSize: _,
3587
- fontWeight: W,
3588
- fontFamilyMsg: O,
3593
+ fontWeight: D,
3594
+ fontFamilyMsg: q,
3589
3595
  fontSizeMsg: ue,
3590
- fontWeightMsg: Ie,
3591
- textMessageColor: tt,
3596
+ fontWeightMsg: Ee,
3597
+ textMessageColor: lt,
3592
3598
  caretColor: s,
3593
3599
  selectionBgColor: i,
3594
3600
  selectionTextColor: v,
3595
- hasBorderRadius: c,
3601
+ hasBorderRadius: f,
3596
3602
  borderRadius: p,
3597
- textAlign: Ta,
3598
- inputWidth: Ee,
3599
- activeTextStyle: Pe,
3600
- sizeMediaQuery: xa,
3601
- inputReadonly: Sa,
3602
- inputType: Va,
3603
- inputUppercase: ka,
3604
- theme: La,
3605
- inputStyle: Ba,
3606
- showLabel: Aa,
3607
- labelBackground: Ra,
3608
- labelPadding: za,
3609
- labelBorderRadius: Wa,
3610
- labelLeft: wa,
3611
- inputLabelMarginActive: Ma,
3612
- labelActiveTop: Da,
3613
- labelActiveLeft: Na,
3614
- labelRight: Ia,
3615
- labelActiveRight: Ea,
3616
- fontFamilyLabel: Pa,
3617
- fontSizeLabel: Fa,
3618
- fontSizeLabelActive: Oa,
3619
- fontWeightLabel: qa,
3620
- lightTextColorLabel: Ha,
3621
- darkTextColorLabel: ja,
3622
- lightTextColorLabelActive: Ua,
3623
- darkTextColorLabelActive: Ga
3603
+ textAlign: Ba,
3604
+ inputWidth: Pe,
3605
+ activeTextStyle: Fe,
3606
+ sizeMediaQuery: Sa,
3607
+ inputReadonly: Va,
3608
+ inputType: ka,
3609
+ inputUppercase: La,
3610
+ theme: Ta,
3611
+ inputStyle: Aa,
3612
+ showLabel: wa,
3613
+ labelBackground: Ma,
3614
+ labelPadding: Wa,
3615
+ labelBorderRadius: Da,
3616
+ labelLeft: Ra,
3617
+ inputLabelMarginActive: za,
3618
+ labelActiveTop: Na,
3619
+ labelActiveLeft: Ia,
3620
+ labelRight: Ea,
3621
+ labelActiveRight: Pa,
3622
+ fontFamilyLabel: Fa,
3623
+ fontSizeLabel: Oa,
3624
+ fontSizeLabelActive: qa,
3625
+ fontWeightLabel: Ha,
3626
+ lightTextColorLabel: ja,
3627
+ darkTextColorLabel: Ua,
3628
+ lightTextColorLabelActive: Ga,
3629
+ darkTextColorLabelActive: Ka
3624
3630
  };
3625
- }), Et = a(() => E.value.disabled), Pt = a(() => {
3626
- const t = E.value, l = At.value;
3631
+ }), Pt = a(() => E.value.disabled), X = a(() => {
3632
+ const t = E.value, l = r.value;
3627
3633
  return {
3628
3634
  display: t.display,
3629
3635
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
3630
- paddingTop: l && Be.value ? `${Math.abs(t.labelActiveTop)}px` : "0"
3636
+ paddingTop: l && $e.value ? `${Math.abs(t.labelActiveTop)}px` : "0"
3631
3637
  };
3632
- }), Q = a(() => {
3638
+ }), _t = a(() => {
3633
3639
  const t = E.value;
3634
3640
  return t.fontSize ? t.fontSize : "1.4em";
3635
- }), Tt = a(() => {
3636
- const t = E.value, l = At.value;
3641
+ }), mt = a(() => {
3642
+ const t = E.value, l = r.value;
3637
3643
  return {
3638
3644
  fontWeight: t.fontWeight,
3639
- marginTop: l && Be.value ? `${t.inputLabelMarginActive}px` : "0"
3645
+ marginTop: l && $e.value ? `${t.inputLabelMarginActive}px` : "0"
3640
3646
  };
3641
- }), et = a(() => {
3647
+ }), at = a(() => {
3642
3648
  const t = E.value;
3643
3649
  return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
3644
- }), bt = a(() => E.value.font), it = a(() => E.value.fontFamilyMsg), k = a(() => E.value.fontSizeMsg), Yt = a(() => E.value.fontWeightMsg), Mt = a(() => Te.value === "dark" ? S.value : Ue.value), Qt = a(() => E.value.textMessageColor), Bt = a(() => {
3650
+ }), st = a(() => E.value.font), V = a(() => E.value.fontFamilyMsg), Kt = a(() => E.value.fontSizeMsg), Wt = a(() => E.value.fontWeightMsg), Yt = a(() => _e.value === "dark" ? te.value : je.value), $t = a(() => E.value.textMessageColor), kt = a(() => {
3645
3651
  const t = E.value;
3646
3652
  return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
3647
- }), xt = a(() => {
3653
+ }), Qt = a(() => {
3648
3654
  const t = E.value;
3649
3655
  return t.selectionBgColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
3650
3656
  }), Jt = a(() => {
3651
3657
  const t = E.value;
3652
3658
  return t.selectionTextColor || (t.theme === "dark" ? "#000000" : "#ffffff");
3653
- }), Ft = a(() => {
3659
+ }), Dt = a(() => {
3654
3660
  const t = E.value;
3655
3661
  return t.display === "block" ? { width: "100%" } : {
3656
3662
  width: `${t.inputWidth}px`
3657
3663
  };
3658
- }), Ot = a(() => {
3664
+ }), Xt = a(() => {
3659
3665
  switch (he.value) {
3660
3666
  case "line":
3661
3667
  return "component__input--line";
@@ -3664,7 +3670,7 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3664
3670
  default:
3665
3671
  return "component__input--background";
3666
3672
  }
3667
- }), Xt = a(() => {
3673
+ }), Zt = a(() => {
3668
3674
  switch (E.value.activeTextStyle) {
3669
3675
  case "italic":
3670
3676
  return "component__input--active--italic";
@@ -3673,34 +3679,34 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3673
3679
  default:
3674
3680
  return "component__input--active--normal";
3675
3681
  }
3676
- }), Zt = a(() => "component__sm"), ea = a(() => {
3682
+ }), ea = a(() => "component__sm"), ta = a(() => {
3677
3683
  switch (E.value.theme) {
3678
3684
  case "dark":
3679
3685
  return "component__theme--dark";
3680
3686
  default:
3681
3687
  return "component__theme--light";
3682
3688
  }
3683
- }), ta = a(() => E.value.inputReadonly ? "component__input--read-only" : ""), aa = a(() => E.value.inputUppercase ? "component__input--uppercase" : ""), zt = a(() => He.value ? He.value : `${Ve.value}-name-label`), qt = a(() => ""), At = a(() => f.value || I.value && I.value.trim().length > 0), r = a(() => !I.value || I.value.trim().length === 0 ? "component__input--empty" : "");
3684
- a(() => f.value ? "component__input--active" : "component__input--no-active");
3685
- const B = a(() => "6px 10px"), ve = a(() => !!(Z.value && me.value)), u = a(() => {
3689
+ }), aa = a(() => E.value.inputReadonly ? "component__input--read-only" : ""), la = a(() => E.value.inputUppercase ? "component__input--uppercase" : ""), wt = a(() => Ge.value ? Ge.value : `${Te.value}-name-label`), Ft = a(() => ""), r = a(() => Xe.value || L.value && L.value.trim().length > 0), B = a(() => !L.value || L.value.trim().length === 0 ? "component__input--empty" : "");
3690
+ a(() => Xe.value ? "component__input--active" : "component__input--no-active");
3691
+ const ve = a(() => "6px 10px"), u = a(() => !!(me.value && tt.value)), A = a(() => {
3686
3692
  const t = {};
3687
3693
  ie.value && Object.keys(ie.value).forEach((i) => t[`aria-${i}`] = ie.value[i]);
3688
3694
  const l = {
3689
- "aria-label": ke.value,
3690
- "aria-disabled": w.value,
3695
+ "aria-label": Be.value,
3696
+ "aria-disabled": R.value,
3691
3697
  ...t
3692
3698
  };
3693
3699
  return Object.fromEntries(
3694
3700
  Object.entries(l).filter(([s, i]) => i != null)
3695
3701
  );
3696
- }), A = a(() => {
3697
- const t = Te.value === "dark" ? Je.value : dt.value, l = Te.value === "dark" ? S.value : Ue.value;
3702
+ }), Ie = a(() => {
3703
+ const t = _e.value === "dark" ? Ke.value : ft.value, l = _e.value === "dark" ? te.value : je.value;
3698
3704
  return t === "transparent" || t === "#transparent" || !t ? l : t;
3699
- }), Ne = a(() => {
3700
- const t = Te.value === "dark" ? Ge.value : ct.value, l = Te.value === "dark" ? S.value : Ue.value;
3705
+ }), Ze = a(() => {
3706
+ const t = _e.value === "dark" ? g.value : He.value, l = _e.value === "dark" ? te.value : je.value;
3701
3707
  return t === "transparent" || t === "#transparent" || !t ? l : t;
3702
- }), Ye = a(() => {
3703
- const t = E.value, l = At.value, s = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, i = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
3708
+ }), Lt = a(() => {
3709
+ const t = E.value, l = r.value, s = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, i = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
3704
3710
  return {
3705
3711
  fontFamily: t.fontFamilyLabel,
3706
3712
  fontSize: l ? t.fontSizeLabelActive : t.fontSizeLabel,
@@ -3716,12 +3722,12 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3716
3722
  borderRadius: l ? `${t.labelBorderRadius}rem` : "0",
3717
3723
  // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
3718
3724
  ...l ? {
3719
- whiteSpace: q.value ? "nowrap" : "normal",
3720
- wordWrap: q.value ? "normal" : "break-word",
3721
- overflowWrap: q.value ? "normal" : "break-word",
3725
+ whiteSpace: c.value ? "nowrap" : "normal",
3726
+ wordWrap: c.value ? "normal" : "break-word",
3727
+ overflowWrap: c.value ? "normal" : "break-word",
3722
3728
  maxWidth: "100%",
3723
- textOverflow: q.value ? "ellipsis" : "clip",
3724
- overflow: q.value ? "hidden" : "visible"
3729
+ textOverflow: c.value ? "ellipsis" : "clip",
3730
+ overflow: c.value ? "hidden" : "visible"
3725
3731
  } : {}
3726
3732
  };
3727
3733
  });
@@ -3729,59 +3735,59 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3729
3735
  const t = E.value;
3730
3736
  return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
3731
3737
  });
3732
- const gt = () => {
3733
- g.value = We.value, $e.value = L.value;
3734
- }, la = () => {
3738
+ const Ot = () => {
3739
+ x.value = De.value, b.value = k.value;
3740
+ }, Nt = () => {
3735
3741
  P("clicked");
3736
- }, Wt = (t) => {
3737
- t.stopPropagation(), !(w.value || E.value.inputReadonly) && R.value && (R.value.focus(), te.value && (V.value = !1, requestAnimationFrame(() => {
3738
- St(), V.value = !0;
3742
+ }, na = (t) => {
3743
+ t.stopPropagation(), !(R.value || E.value.inputReadonly) && M.value && (M.value.focus(), ae.value && (O.value = !1, requestAnimationFrame(() => {
3744
+ Tt(), O.value = !0;
3739
3745
  })));
3740
- }, na = () => {
3741
- w.value || E.value.inputReadonly || !Re.value || P("entered", g.value);
3742
- }, St = () => {
3743
- R.value && _a(() => {
3744
- const t = R.value.getBoundingClientRect(), l = 4;
3745
- Ct.value = {
3746
+ }, oa = () => {
3747
+ R.value || E.value.inputReadonly || !Me.value || P("entered", x.value);
3748
+ }, Tt = () => {
3749
+ M.value && _a(() => {
3750
+ const t = M.value.getBoundingClientRect(), l = 4;
3751
+ Vt.value = {
3746
3752
  top: `${t.bottom + l}px`,
3747
3753
  left: `${t.left}px`
3748
3754
  };
3749
3755
  });
3750
- }, oa = a(() => ({
3756
+ }, ua = a(() => ({
3751
3757
  position: "fixed",
3752
- top: Ct.value.top,
3753
- left: Ct.value.left,
3754
- zIndex: ht.value
3755
- })), ua = () => {
3756
- f.value = !0, P("focused"), te.value && (V.value = !1, requestAnimationFrame(() => {
3757
- St(), V.value = !0;
3758
+ top: Vt.value.top,
3759
+ left: Vt.value.left,
3760
+ zIndex: xt.value
3761
+ })), ra = () => {
3762
+ Xe.value = !0, P("focused"), ae.value && (O.value = !1, requestAnimationFrame(() => {
3763
+ Tt(), O.value = !0;
3758
3764
  }));
3759
- }, ra = (t) => {
3760
- t.relatedTarget && z.value && z.value.contains(t.relatedTarget) || setTimeout(() => {
3765
+ }, ia = (t) => {
3766
+ t.relatedTarget && W.value && W.value.contains(t.relatedTarget) || setTimeout(() => {
3761
3767
  var i;
3762
3768
  const l = document.activeElement;
3763
- if (V.value) {
3764
- if (z.value && z.value.contains(l) || t.relatedTarget && z.value && z.value.contains(t.relatedTarget))
3769
+ if (O.value) {
3770
+ if (W.value && W.value.contains(l) || t.relatedTarget && W.value && W.value.contains(t.relatedTarget))
3765
3771
  return;
3766
- if (l === document.body && z.value) {
3767
- const v = z.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
3772
+ if (l === document.body && W.value) {
3773
+ const v = W.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
3768
3774
  if (Array.from(v).some((p) => p === document.activeElement || p.contains(document.activeElement)))
3769
3775
  return;
3770
3776
  }
3771
3777
  }
3772
- const s = (i = R.value) == null ? void 0 : i.closest(".component");
3773
- s && s.contains(l) || R.value !== l && (f.value = !1, V.value = !1, P("blurred"));
3778
+ const s = (i = M.value) == null ? void 0 : i.closest(".component");
3779
+ s && s.contains(l) || M.value !== l && (Xe.value = !1, O.value = !1, P("blurred"));
3774
3780
  }, 200);
3775
- }, ia = () => {
3776
- te.value && (V.value, V.value = !1, requestAnimationFrame(() => {
3777
- St(), V.value = !0;
3781
+ }, sa = () => {
3782
+ ae.value && (O.value, O.value = !1, requestAnimationFrame(() => {
3783
+ Tt(), O.value = !0;
3778
3784
  }));
3779
- }, Dt = (t) => {
3785
+ }, It = (t) => {
3780
3786
  if (!t || !(t instanceof Date))
3781
3787
  return null;
3782
3788
  const l = t.getFullYear(), s = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0");
3783
3789
  return `${l}-${s}-${i}`;
3784
- }, sa = (t) => {
3790
+ }, da = (t) => {
3785
3791
  let l = "";
3786
3792
  if (!t)
3787
3793
  l = "";
@@ -3791,40 +3797,40 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3791
3797
  else if (t.startDate || t.endDate) {
3792
3798
  const i = {
3793
3799
  // Converter startDate para string ISO se existir
3794
- startDate: t.startDate ? Dt(t.startDate) : null,
3800
+ startDate: t.startDate ? It(t.startDate) : null,
3795
3801
  // Converter endDate para string ISO se existir
3796
- endDate: t.endDate ? Dt(t.endDate) : null
3802
+ endDate: t.endDate ? It(t.endDate) : null
3797
3803
  };
3798
3804
  l = JSON.stringify(i);
3799
3805
  }
3800
3806
  } else
3801
- L.value === "date" ? t instanceof Date ? l = Dt(t) : typeof t == "string" && (l = t) : (L.value === "month" || L.value === "time" || L.value === "datetime-local" || L.value === "week") && (l = typeof t == "string" ? t : "");
3802
- n = !0, g.value = l;
3803
- const s = l ? ee(l, L.value) : "";
3804
- I.value = s, T.value = s;
3805
- }, da = () => {
3806
- if (!te.value) {
3807
- g.value = I.value;
3807
+ k.value === "date" ? t instanceof Date ? l = It(t) : typeof t == "string" && (l = t) : (k.value === "month" || k.value === "time" || k.value === "datetime-local" || k.value === "week") && (l = typeof t == "string" ? t : "");
3808
+ d = !0, x.value = l;
3809
+ const s = l ? Re(l, k.value) : "";
3810
+ L.value = s, w.value = s;
3811
+ }, ca = () => {
3812
+ if (!ae.value) {
3813
+ x.value = L.value;
3808
3814
  return;
3809
3815
  }
3810
3816
  oe = !0;
3811
- const t = R.value ? {
3812
- start: R.value.selectionStart,
3813
- end: R.value.selectionEnd
3814
- } : null, l = I.value.trim();
3817
+ const t = M.value ? {
3818
+ start: M.value.selectionStart,
3819
+ end: M.value.selectionEnd
3820
+ } : null, l = L.value.trim();
3815
3821
  if (!l || l.length === 0) {
3816
- n = !0, g.value = "", I.value = "", T.value = "", setTimeout(() => {
3822
+ d = !0, x.value = "", L.value = "", w.value = "", setTimeout(() => {
3817
3823
  oe = !1;
3818
3824
  }, 50);
3819
3825
  return;
3820
3826
  }
3821
- if (L.value === "date") {
3827
+ if (k.value === "date") {
3822
3828
  const i = xe.value ? /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$|^\d{1,2}\/\d{1,2}\/\d{4}\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})?$/ : /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/;
3823
3829
  if (xe.value) {
3824
3830
  if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), l.length > 23 && !i.test(l)) {
3825
- I.value = T.value, t && R.value && _a(() => {
3826
- const v = Math.min(t.start, T.value.length);
3827
- R.value.setSelectionRange(v, v);
3831
+ L.value = w.value, t && M.value && _a(() => {
3832
+ const v = Math.min(t.start, w.value.length);
3833
+ M.value.setSelectionRange(v, v);
3828
3834
  }), setTimeout(() => {
3829
3835
  oe = !1;
3830
3836
  }, 50);
@@ -3838,9 +3844,9 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3838
3844
  }
3839
3845
  } else {
3840
3846
  if (l.length > 10 && !i.test(l)) {
3841
- I.value = T.value, t && R.value && _a(() => {
3842
- const v = Math.min(t.start, T.value.length);
3843
- R.value.setSelectionRange(v, v);
3847
+ L.value = w.value, t && M.value && _a(() => {
3848
+ const v = Math.min(t.start, w.value.length);
3849
+ M.value.setSelectionRange(v, v);
3844
3850
  }), setTimeout(() => {
3845
3851
  oe = !1;
3846
3852
  }, 50);
@@ -3855,11 +3861,11 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3855
3861
  }
3856
3862
  }
3857
3863
  let s = null;
3858
- if (L.value === "date")
3864
+ if (k.value === "date")
3859
3865
  if (xe.value)
3860
3866
  if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
3861
- if (s = we(l, L.value), s && s !== g.value)
3862
- n = !0, g.value = s, T.value = l;
3867
+ if (s = U(l, k.value), s && s !== x.value)
3868
+ d = !0, x.value = s, w.value = l;
3863
3869
  else {
3864
3870
  setTimeout(() => {
3865
3871
  oe = !1;
@@ -3869,40 +3875,40 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3869
3875
  else if (l.includes("-")) {
3870
3876
  const v = l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
3871
3877
  if (v) {
3872
- const c = v[1], p = we(c, L.value);
3878
+ const f = v[1], p = U(f, k.value);
3873
3879
  if (p) {
3874
- const x = JSON.stringify({ startDate: p, endDate: null });
3875
- x !== g.value && (n = !0, g.value = x, T.value = l);
3880
+ const S = JSON.stringify({ startDate: p, endDate: null });
3881
+ S !== x.value && (d = !0, x.value = S, w.value = l);
3876
3882
  } else {
3877
- T.value = l, setTimeout(() => {
3883
+ w.value = l, setTimeout(() => {
3878
3884
  oe = !1;
3879
3885
  }, 50);
3880
3886
  return;
3881
3887
  }
3882
3888
  } else {
3883
- T.value = l, setTimeout(() => {
3889
+ w.value = l, setTimeout(() => {
3884
3890
  oe = !1;
3885
3891
  }, 50);
3886
3892
  return;
3887
3893
  }
3888
3894
  } else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
3889
- if (s = we(l, L.value), s) {
3890
- const c = JSON.stringify({ startDate: s, endDate: null });
3891
- c !== g.value && (n = !0, g.value = c, T.value = l);
3895
+ if (s = U(l, k.value), s) {
3896
+ const f = JSON.stringify({ startDate: s, endDate: null });
3897
+ f !== x.value && (d = !0, x.value = f, w.value = l);
3892
3898
  } else {
3893
- T.value = l, setTimeout(() => {
3899
+ w.value = l, setTimeout(() => {
3894
3900
  oe = !1;
3895
3901
  }, 50);
3896
3902
  return;
3897
3903
  }
3898
3904
  else {
3899
- T.value = l, setTimeout(() => {
3905
+ w.value = l, setTimeout(() => {
3900
3906
  oe = !1;
3901
3907
  }, 50);
3902
3908
  return;
3903
3909
  }
3904
3910
  else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
3905
- s = we(l, L.value), s && s !== g.value && (n = !0, g.value = s, T.value = l);
3911
+ s = U(l, k.value), s && s !== x.value && (d = !0, x.value = s, w.value = l);
3906
3912
  else {
3907
3913
  setTimeout(() => {
3908
3914
  oe = !1;
@@ -3910,107 +3916,107 @@ const Jl = ["id"], Xl = ["for"], Zl = {
3910
3916
  return;
3911
3917
  }
3912
3918
  else
3913
- s = we(l, L.value), s && s !== g.value && (n = !0, g.value = s, T.value = l);
3919
+ s = U(l, k.value), s && s !== x.value && (d = !0, x.value = s, w.value = l);
3914
3920
  setTimeout(() => {
3915
3921
  oe = !1;
3916
3922
  }, 50);
3917
- }, ca = (t) => {
3918
- }, Ht = (t) => {
3923
+ }, fa = (t) => {
3924
+ }, qt = (t) => {
3919
3925
  var v;
3920
- if (!V.value || !z.value || !R.value)
3926
+ if (!O.value || !W.value || !M.value)
3921
3927
  return;
3922
- const l = t.target, s = (v = R.value) == null ? void 0 : v.closest(".nb-wrapper");
3923
- if (z.value && z.value.contains(l) || s && (l === s || s.contains(l)) || z.value && z.value.contains(l))
3928
+ const l = t.target, s = (v = M.value) == null ? void 0 : v.closest(".nb-wrapper");
3929
+ if (W.value && W.value.contains(l) || s && (l === s || s.contains(l)) || W.value && W.value.contains(l))
3924
3930
  return;
3925
3931
  let i = l;
3926
3932
  for (; i && i !== document.body; ) {
3927
- if (i === z.value || z.value && z.value.contains(i))
3933
+ if (i === W.value || W.value && W.value.contains(i))
3928
3934
  return;
3929
3935
  i = i.parentElement;
3930
3936
  }
3931
3937
  setTimeout(() => {
3932
- if (!V.value || !z.value || z.value && z.value.contains(l))
3938
+ if (!O.value || !W.value || W.value && W.value.contains(l))
3933
3939
  return;
3934
3940
  for (i = l; i && i !== document.body; ) {
3935
- if (i === z.value || z.value && z.value.contains(i))
3941
+ if (i === W.value || W.value && W.value.contains(i))
3936
3942
  return;
3937
3943
  i = i.parentElement;
3938
3944
  }
3939
3945
  if (!document.body.contains(l))
3940
3946
  return;
3941
- const c = R.value && (l === R.value || R.value.contains(l)), p = s && (l === s || s.contains(l));
3942
- !c && !p && (V.value = !1, (!I.value || I.value.trim().length === 0) && (f.value = !1));
3947
+ const f = M.value && (l === M.value || M.value.contains(l)), p = s && (l === s || s.contains(l));
3948
+ !f && !p && (O.value = !1, (!L.value || L.value.trim().length === 0) && (Xe.value = !1));
3943
3949
  }, 50);
3950
+ }, Ht = () => {
3951
+ O.value && ae.value && Tt();
3944
3952
  }, jt = () => {
3945
- V.value && te.value && St();
3946
- }, Ut = () => {
3947
- V.value && te.value && (V.value = !1);
3953
+ O.value && ae.value && (O.value = !1);
3948
3954
  };
3949
- let yt = null, _t = null, Vt = { top: 0, left: 0 };
3950
- const $t = () => {
3951
- if (!V.value || !te.value || !R.value)
3955
+ let ht = null, Rt = null, dt = { top: 0, left: 0 };
3956
+ const Mt = () => {
3957
+ if (!O.value || !ae.value || !M.value)
3952
3958
  return;
3953
- const t = 4, l = R.value.getBoundingClientRect(), s = `${l.bottom + t}px`, i = `${l.left}px`;
3954
- (Vt.top !== s || Vt.left !== i) && (Vt.top = s, Vt.left = i, Ct.value = {
3959
+ const t = 4, l = M.value.getBoundingClientRect(), s = `${l.bottom + t}px`, i = `${l.left}px`;
3960
+ (dt.top !== s || dt.left !== i) && (dt.top = s, dt.left = i, Vt.value = {
3955
3961
  top: s,
3956
3962
  left: i
3957
- }), _t = requestAnimationFrame($t);
3958
- }, Nt = () => {
3959
- if (!R.value || !te.value)
3963
+ }), Rt = requestAnimationFrame(Mt);
3964
+ }, va = () => {
3965
+ if (!M.value || !ae.value)
3960
3966
  return;
3961
- Vt = { top: 0, left: 0 }, $t(), yt = new ResizeObserver(() => {
3962
- V.value && St();
3963
- }), yt.observe(R.value);
3964
- const t = R.value.closest(".component");
3965
- t && yt.observe(t);
3966
- }, Gt = () => {
3967
- _t !== null && (cancelAnimationFrame(_t), _t = null), yt && (yt.disconnect(), yt = null);
3967
+ dt = { top: 0, left: 0 }, Mt(), ht = new ResizeObserver(() => {
3968
+ O.value && Tt();
3969
+ }), ht.observe(M.value);
3970
+ const t = M.value.closest(".component");
3971
+ t && ht.observe(t);
3972
+ }, Ut = () => {
3973
+ Rt !== null && (cancelAnimationFrame(Rt), Rt = null), ht && (ht.disconnect(), ht = null);
3968
3974
  };
3969
- U(V, (t) => {
3970
- t && te.value ? _a(() => {
3971
- Nt();
3972
- }) : Gt();
3973
- }), pa(() => {
3974
- g.value = We.value, I.value = ee(We.value, L.value), document.addEventListener("click", Ht, !1), window.addEventListener("scroll", jt, { capture: !0, passive: !0 }), window.addEventListener("resize", Ut);
3975
+ K(O, (t) => {
3976
+ t && ae.value ? _a(() => {
3977
+ va();
3978
+ }) : Ut();
3979
+ }), ba(() => {
3980
+ x.value = De.value, L.value = Re(De.value, k.value), document.addEventListener("click", qt, !1), window.addEventListener("scroll", Ht, { capture: !0, passive: !0 }), window.addEventListener("resize", jt);
3975
3981
  }), $a(() => {
3976
- gt(), Gt(), document.removeEventListener("click", Ht), window.removeEventListener("scroll", jt, { capture: !0, passive: !0 }), window.removeEventListener("resize", Ut);
3977
- }), U(L, (t) => {
3978
- $e.value = t;
3979
- }, { immediate: !0 }), U(Qe, () => {
3980
- g.value && te.value && (I.value = ee(g.value, L.value));
3981
- }), U(We, (t) => {
3982
- if (t !== g.value) {
3983
- g.value = t;
3984
- const l = ee(t, L.value);
3985
- I.value = l, T.value = l;
3982
+ Ot(), Ut(), document.removeEventListener("click", qt), window.removeEventListener("scroll", Ht, { capture: !0, passive: !0 }), window.removeEventListener("resize", jt);
3983
+ }), K(k, (t) => {
3984
+ b.value = t;
3985
+ }, { immediate: !0 }), K(et, () => {
3986
+ x.value && ae.value && (L.value = Re(x.value, k.value));
3987
+ }), K(De, (t) => {
3988
+ if (t !== x.value) {
3989
+ x.value = t;
3990
+ const l = Re(t, k.value);
3991
+ L.value = l, w.value = l;
3986
3992
  }
3987
3993
  }, { immediate: !0 });
3988
3994
  let oe = !1;
3989
- const fa = () => {
3995
+ const n = () => {
3990
3996
  oe = !0, setTimeout(() => {
3991
3997
  oe = !1;
3992
3998
  }, 100);
3993
3999
  };
3994
- let n = !1;
3995
- return U(() => g.value, (t) => {
3996
- if (te.value && !n && !oe) {
3997
- const l = ee(t, L.value);
3998
- l !== I.value && (I.value = l, T.value = l);
4000
+ let d = !1;
4001
+ return K(() => x.value, (t) => {
4002
+ if (ae.value && !d && !oe) {
4003
+ const l = Re(t, k.value);
4004
+ l !== L.value && (L.value = l, w.value = l);
3999
4005
  }
4000
- n = !1;
4001
- }), U(g, (t) => {
4006
+ d = !1;
4007
+ }), K(x, (t) => {
4002
4008
  if (C.value && (t = t.trim()), xe.value && typeof t == "string" && t.startsWith("{"))
4003
4009
  try {
4004
4010
  const l = JSON.parse(t);
4005
4011
  if (l && (l.startDate || l.endDate)) {
4006
- const s = (c) => {
4007
- if (!c)
4012
+ const s = (f) => {
4013
+ if (!f)
4008
4014
  return null;
4009
- if (/^\d{4}-\d{2}-\d{2}$/.test(c)) {
4010
- const [p, x, _] = c.split("-").map(Number);
4011
- return new Date(p, x - 1, _);
4015
+ if (/^\d{4}-\d{2}-\d{2}$/.test(f)) {
4016
+ const [p, S, _] = f.split("-").map(Number);
4017
+ return new Date(p, S - 1, _);
4012
4018
  }
4013
- return new Date(c);
4019
+ return new Date(f);
4014
4020
  }, i = l.startDate ? s(l.startDate) : null, v = l.endDate ? s(l.endDate) : null;
4015
4021
  P("changed", { startDate: i, endDate: v });
4016
4022
  return;
@@ -4018,107 +4024,108 @@ const Jl = ["id"], Xl = ["for"], Zl = {
4018
4024
  } catch {
4019
4025
  }
4020
4026
  P("changed", t);
4021
- }), U(f, (t) => {
4027
+ }), K(Xe, (t) => {
4022
4028
  P(t ? "focused" : "blurred");
4023
- }), U(g, (t) => {
4029
+ }), K(x, (t) => {
4024
4030
  C.value && (t = t.trim()), P("current-value", t);
4025
- }), (t, l) => o(Ve) ? (M(), D("div", ba({
4031
+ }), (t, l) => o(Te) ? (z(), N("div", ga({
4026
4032
  key: 0,
4027
- class: ["nb-wrapper", Et.value],
4028
- style: [Pt.value, Ft.value, et.value],
4033
+ class: ["nb-wrapper", Pt.value],
4034
+ style: [X.value, Dt.value, at.value],
4029
4035
  role: "input"
4030
- }, u.value), [
4036
+ }, A.value), [
4031
4037
  pe("div", {
4032
- id: o(Ve),
4033
- class: Fe(["nb-reset", "component", Zt.value, ea.value, ta.value, Ot.value]),
4034
- style: Se([Tt.value, Ft.value, et.value]),
4035
- onClick: la
4038
+ id: o(Te),
4039
+ class: Oe(["nb-reset", "component", ea.value, ta.value, aa.value, Xt.value]),
4040
+ style: Le([mt.value, Dt.value, at.value]),
4041
+ onClick: Nt
4036
4042
  }, [
4037
- o(Be) ? (M(), D("label", {
4043
+ o($e) ? (z(), N("label", {
4038
4044
  key: 0,
4039
- for: zt.value,
4045
+ for: wt.value,
4040
4046
  class: "component__label",
4041
- style: Se([Ye.value]),
4042
- onClick: Wt
4047
+ style: Le([Lt.value]),
4048
+ onClick: na
4043
4049
  }, [
4044
- It(kt(o(Xe)), 1),
4045
- e.required ? (M(), D("span", Zl, "*")) : re("", !0)
4050
+ Et(Bt(o(fe)), 1),
4051
+ e.required ? (z(), N("span", Zl, "*")) : re("", !0)
4046
4052
  ], 12, Xl)) : re("", !0),
4047
- ha(pe("input", {
4053
+ Ca(pe("input", {
4048
4054
  ref_key: "inputRef",
4049
- ref: R,
4050
- "onUpdate:modelValue": l[0] || (l[0] = (s) => I.value = s),
4051
- onInput: da,
4055
+ ref: M,
4056
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => L.value = s),
4057
+ onInput: ca,
4052
4058
  onKeydown: [
4053
- fa,
4054
- l[1] || (l[1] = Kt((s) => !o(w) && o(Re) && na(), ["enter"]))
4059
+ n,
4060
+ l[1] || (l[1] = Gt((s) => !o(R) && o(Me) && oa(), ["enter"]))
4055
4061
  ],
4056
- id: zt.value,
4057
- name: zt.value,
4058
- type: te.value ? "text" : $e.value,
4059
- class: Fe(["component__input", [
4060
- aa.value,
4061
- Xt.value,
4062
- r.value
4062
+ id: wt.value,
4063
+ name: wt.value,
4064
+ type: ae.value ? "text" : b.value,
4065
+ class: Oe(["component__input", [
4066
+ la.value,
4067
+ Zt.value,
4068
+ B.value
4063
4069
  ]]),
4064
- placeholder: qt.value,
4065
- disabled: o(w) || o($),
4070
+ placeholder: Ft.value,
4071
+ disabled: o(R) || o($),
4066
4072
  required: e.required,
4067
4073
  readonly: o($),
4068
4074
  autocomplete: e.inputAutocomplete,
4069
- min: te.value ? void 0 : o(at),
4070
- max: te.value ? void 0 : o(ye),
4071
- step: te.value ? void 0 : o(lt),
4072
- tabindex: o(w) || o($) ? -1 : o(st),
4075
+ min: ae.value ? void 0 : o(nt),
4076
+ max: ae.value ? void 0 : o(ye),
4077
+ step: ae.value ? void 0 : o(ot),
4078
+ tabindex: o(R) || o($) ? -1 : o(St),
4073
4079
  role: "input",
4074
- style: Se([et.value]),
4075
- onFocus: ua,
4076
- onBlur: ra,
4077
- onClick: ia
4080
+ style: Le([at.value]),
4081
+ onFocus: ra,
4082
+ onBlur: ia,
4083
+ onClick: sa
4078
4084
  }, null, 46, en), [
4079
- [Ja, I.value]
4085
+ [Xa, L.value]
4080
4086
  ])
4081
4087
  ], 14, Jl),
4082
- ve.value ? (M(), D("div", {
4088
+ u.value ? (z(), N("div", {
4083
4089
  key: 0,
4084
- class: Fe(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
4090
+ class: Oe(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
4085
4091
  }, [
4086
- va(t.$slots, "message", {}, () => [
4087
- It(kt(e.message), 1)
4092
+ pa(t.$slots, "message", {}, () => [
4093
+ Et(Bt(e.message), 1)
4088
4094
  ], !0)
4089
4095
  ], 2)) : re("", !0),
4090
- (M(), bl(gl, { to: "body" }, [
4091
- te.value && V.value ? (M(), D("div", {
4096
+ (z(), bl(gl, { to: "body" }, [
4097
+ ae.value && O.value ? (z(), N("div", {
4092
4098
  key: 0,
4093
4099
  ref_key: "calendarRef",
4094
- ref: z,
4100
+ ref: W,
4095
4101
  class: "datepicker__custom-calendar-wrapper",
4096
- style: Se(oa.value),
4097
- onClick: l[4] || (l[4] = ga((s) => rt.value = !0, ["stop"])),
4098
- onMousedown: l[5] || (l[5] = ga((s) => rt.value = !0, ["stop"]))
4102
+ style: Le(ua.value),
4103
+ onClick: l[4] || (l[4] = ya((s) => yt.value = !0, ["stop"])),
4104
+ onMousedown: l[5] || (l[5] = ya((s) => yt.value = !0, ["stop"]))
4099
4105
  }, [
4100
4106
  yl(o(h), {
4101
- "nb-id": `${o(Ve)}-calendar`,
4102
- value: Rt.value,
4103
- "input-type": o(L),
4104
- min: o(at),
4107
+ "nb-id": `${o(Te)}-calendar`,
4108
+ value: ke.value,
4109
+ "input-type": o(k),
4110
+ min: o(nt),
4105
4111
  max: o(ye),
4106
- step: o(lt),
4107
- disabled: o(w),
4108
- width: wt.value,
4109
- locale: o(Qe),
4110
- theme: o(Te),
4112
+ step: o(ot),
4113
+ disabled: o(R),
4114
+ width: zt.value,
4115
+ locale: o(et),
4116
+ theme: o(_e),
4111
4117
  "allow-range": o(xe),
4112
- onChanged: sa,
4113
- onDateSelected: ca,
4114
- onMousedown: l[2] || (l[2] = (s) => rt.value = !0),
4115
- onClick: l[3] || (l[3] = (s) => rt.value = !0)
4116
- }, null, 8, ["nb-id", "value", "input-type", "min", "max", "step", "disabled", "width", "locale", "theme", "allow-range"])
4118
+ "block-clicks-without-events": o(ct),
4119
+ onChanged: da,
4120
+ onDateSelected: fa,
4121
+ onMousedown: l[2] || (l[2] = (s) => yt.value = !0),
4122
+ onClick: l[3] || (l[3] = (s) => yt.value = !0)
4123
+ }, null, 8, ["nb-id", "value", "input-type", "min", "max", "step", "disabled", "width", "locale", "theme", "allow-range", "block-clicks-without-events"])
4117
4124
  ], 36)) : re("", !0)
4118
4125
  ]))
4119
4126
  ], 16)) : re("", !0);
4120
4127
  }
4121
- }), an = /* @__PURE__ */ Ca(tn, [["__scopeId", "data-v-5c71e4c8"]]), Ka = {
4128
+ }), an = /* @__PURE__ */ xa(tn, [["__scopeId", "data-v-6a4be8fa"]]), Ya = {
4122
4129
  NbInputRadio: Sl,
4123
4130
  NbInputCheckbox: Bl,
4124
4131
  NbInput: Nl,
@@ -4127,9 +4134,9 @@ const Jl = ["id"], Xl = ["for"], Zl = {
4127
4134
  NbDatePicker: an
4128
4135
  }, nn = {
4129
4136
  install(e) {
4130
- for (const y in Ka)
4131
- if (Object.prototype.hasOwnProperty.call(Ka, y)) {
4132
- const h = Ka[y];
4137
+ for (const y in Ya)
4138
+ if (Object.prototype.hasOwnProperty.call(Ya, y)) {
4139
+ const h = Ya[y];
4133
4140
  e.component(h.name, h);
4134
4141
  }
4135
4142
  }