@vlalg-nimbus/nb-inputs 9.3.0 → 9.4.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,7 +1,7 @@
1
- import { useCssVars as Wa, onMounted as Aa, ref as oe, toRefs as Ea, computed as a, watch as re, openBlock as O, createElementBlock as K, normalizeClass as Ye, normalizeStyle as Ne, createElementVNode as xe, mergeProps as $a, Fragment as gl, renderList as yl, unref as u, withDirectives as Pa, vModelRadio as Tl, withKeys as na, withModifiers as Ia, toDisplayString as Rt, createCommentVNode as ye, vModelCheckbox as kl, onUnmounted as Ya, createTextVNode as jt, renderSlot as La, vModelDynamic as ml, vModelText as hl, defineAsyncComponent as Bl, nextTick as la, createBlock as Ll, Teleport as Al, createVNode as $l } from "vue";
2
- const Oa = (e, y) => {
1
+ import { useCssVars as Wa, onMounted as Aa, ref as oe, toRefs as Ea, computed as a, watch as re, openBlock as O, createElementBlock as K, normalizeClass as Ye, normalizeStyle as Ne, createElementVNode as Ve, mergeProps as $a, Fragment as gl, renderList as yl, unref as u, withDirectives as Pa, vModelRadio as Tl, withKeys as na, withModifiers as Ia, toDisplayString as Rt, createCommentVNode as me, vModelCheckbox as kl, onUnmounted as Ya, createTextVNode as jt, renderSlot as La, vModelDynamic as ml, vModelText as hl, defineAsyncComponent as Bl, nextTick as la, createBlock as Ll, Teleport as Al, createVNode as $l } from "vue";
2
+ const Oa = (e, b) => {
3
3
  const g = e.__vccOpts || e;
4
- for (const [h, F] of y)
4
+ for (const [h, F] of b)
5
5
  g[h] = F;
6
6
  return g;
7
7
  }, wl = ["id"], Dl = ["id", "disabled", "value", "name"], Rl = ["for", "tabindex"], Ml = /* @__PURE__ */ Object.assign({
@@ -18,14 +18,14 @@ const Oa = (e, y) => {
18
18
  type: String,
19
19
  default: "b",
20
20
  validator: (e = "b") => {
21
- const y = e ? e.toLowerCase() : "";
22
- return ["b", "ib"].includes(y);
21
+ const b = e ? e.toLowerCase() : "";
22
+ return ["b", "ib"].includes(b);
23
23
  }
24
24
  },
25
25
  tabIndex: {
26
26
  type: [Number, Array],
27
27
  default: 0,
28
- validator: (e, y) => Array.isArray(e) ? e.length === y.options.length : !0
28
+ validator: (e, b) => Array.isArray(e) ? e.length === b.options.length : !0
29
29
  },
30
30
  hasTabIndexEnter: {
31
31
  type: Boolean,
@@ -56,12 +56,12 @@ const Oa = (e, y) => {
56
56
  validator: (e) => {
57
57
  if (!e.length)
58
58
  return !1;
59
- let y = !1;
59
+ let b = !1;
60
60
  for (const g of e) {
61
61
  const h = Object.keys(g);
62
- h.length !== 2 && (y = !0), h.every((Q) => ["value", "text"].includes(Q)) || (y = !0);
62
+ h.length !== 2 && (b = !0), h.every((Q) => ["value", "text"].includes(Q)) || (b = !0);
63
63
  }
64
- if (!y)
64
+ if (!b)
65
65
  return e;
66
66
  }
67
67
  },
@@ -78,8 +78,8 @@ const Oa = (e, y) => {
78
78
  type: String,
79
79
  default: "light",
80
80
  validator: (e) => {
81
- const y = e ? e.toLowerCase() : "";
82
- return ["light", "dark"].includes(y);
81
+ const b = e ? e.toLowerCase() : "";
82
+ return ["light", "dark"].includes(b);
83
83
  }
84
84
  },
85
85
  // Cores do tema light
@@ -151,142 +151,142 @@ const Oa = (e, y) => {
151
151
  }
152
152
  },
153
153
  emits: ["current-value", "changed", "clicked"],
154
- setup(e, { emit: y }) {
155
- Wa((T) => ({
156
- "0fd48d29": Ue.value,
157
- "50426c15": xt.value,
158
- "5fa7628c": St.value,
159
- "5949c3d2": ot.value,
160
- 91322790: ht.value,
161
- "6750fc92": ve.value,
162
- "8c592938": vt.value,
163
- c11d4680: pt.value,
164
- "35b74fa6": Lt.value,
165
- "7dd5f889": ze.value,
166
- "5cb21b36": ke.value
154
+ setup(e, { emit: b }) {
155
+ Wa((V) => ({
156
+ "4dae10f6": Ue.value,
157
+ "3aeb4162": xt.value,
158
+ "36c094f2": St.value,
159
+ ecf28042: ot.value,
160
+ b03d93f6: ht.value,
161
+ "47b64a4a": pe.value,
162
+ c9891512: vt.value,
163
+ "4a63a9da": pt.value,
164
+ "9dd3cf8e": Lt.value,
165
+ 48025196: ze.value,
166
+ "21e702c3": Le.value
167
167
  })), Aa(() => {
168
168
  gt();
169
169
  });
170
- const g = y, h = e, F = oe(null), {
170
+ const g = b, h = e, F = oe(null), {
171
171
  ariaLabel: Q,
172
- ariaAttrs: ce,
173
- currentOption: D,
174
- valueType: k,
175
- display: x,
172
+ ariaAttrs: fe,
173
+ currentOption: R,
174
+ valueType: B,
175
+ display: C,
176
176
  options: I,
177
177
  theme: ae,
178
178
  lightTextColor: le,
179
179
  lightColor: X,
180
180
  lightColorHover: _,
181
- darkTextColor: $,
181
+ darkTextColor: w,
182
182
  darkColor: H,
183
- darkColorHover: ie,
183
+ darkColorHover: se,
184
184
  hoverEffect: q,
185
185
  activeHoverEffect: Fe,
186
- itemGap: be,
186
+ itemGap: he,
187
187
  internalGap: ee,
188
- scale: Ce,
189
- disabled: fe,
190
- fontFamily: Ae,
191
- fontSize: Ve,
192
- fontWeight: Te
188
+ scale: Te,
189
+ disabled: ve,
190
+ fontFamily: we,
191
+ fontSize: ke,
192
+ fontWeight: Be
193
193
  } = Ea(h), j = a(() => {
194
- const T = fe.value ? "component-disabled" : "", R = x.value !== "b" ? "inline-block" : "block", me = Ae.value ? Ae.value : "'Lato', sans-serif", te = Ve.value ? Ve.value : "1.6em", he = Te.value !== 0 && !Te.value || Te.value < 0 ? 200 : Te.value, tt = [!1, !0].includes(q.value) ? q.value : !1, Ge = [!1, !0].includes(Fe.value) ? Fe.value : !1, Ie = be.value !== 0 && !be.value || be.value < 0 ? 15 : be.value, b = ee.value !== 0 && !ee.value || ee.value < 0 ? 6 : ee.value, A = Ce.value !== 0 && !Ce.value || Ce.value < 0 ? 1 : Ce.value;
194
+ const V = ve.value ? "component-disabled" : "", D = C.value !== "b" ? "inline-block" : "block", Se = we.value ? we.value : "'Lato', sans-serif", te = ke.value ? ke.value : "1.6em", ge = Be.value !== 0 && !Be.value || Be.value < 0 ? 200 : Be.value, tt = [!1, !0].includes(q.value) ? q.value : !1, Ge = [!1, !0].includes(Fe.value) ? Fe.value : !1, Ie = he.value !== 0 && !he.value || he.value < 0 ? 15 : he.value, y = ee.value !== 0 && !ee.value || ee.value < 0 ? 6 : ee.value, k = Te.value !== 0 && !Te.value || Te.value < 0 ? 1 : Te.value;
195
195
  return {
196
- disabled: T,
197
- display: R,
196
+ disabled: V,
197
+ display: D,
198
198
  hoverEffect: tt,
199
199
  activeHoverEffect: Ge,
200
200
  itemGap: Ie,
201
- internalGap: b,
202
- scale: A,
203
- font: me,
201
+ internalGap: y,
202
+ scale: k,
203
+ font: Se,
204
204
  fontSize: te,
205
- fontWeight: he
205
+ fontWeight: ge
206
206
  };
207
207
  }), Qe = a(() => j.value.disabled), v = a(() => ({
208
208
  display: j.value.display
209
- })), se = a(() => j.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), Oe = a(() => {
210
- const T = j.value;
209
+ })), de = a(() => j.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), Oe = a(() => {
210
+ const V = j.value;
211
211
  return {
212
- fontSize: T.fontSize,
213
- fontWeight: T.fontWeight
212
+ fontSize: V.fontSize,
213
+ fontWeight: V.fontWeight
214
214
  };
215
- }), Xe = a(() => Array.isArray(I.value) && I.value.constructor === Array && I.value.length > 0), S = a(() => ae.value === "dark" ? "component__theme--dark" : "component__theme--light"), Ue = a(() => j.value.font), ve = a(() => le.value), vt = a(() => X.value), ht = a(() => j.value.hoverEffect ? _.value : X.value), ot = a(() => j.value.activeHoverEffect ? _.value : X.value), ze = a(() => $.value), ke = a(() => H.value), Lt = a(() => j.value.hoverEffect ? ie.value : H.value), pt = a(() => j.value.activeHoverEffect ? ie.value : H.value), St = a(() => {
216
- const R = j.value.internalGap;
217
- return !R || R < 0 ? 0 : `${R}px`;
215
+ }), Xe = a(() => Array.isArray(I.value) && I.value.constructor === Array && I.value.length > 0), S = a(() => ae.value === "dark" ? "component__theme--dark" : "component__theme--light"), Ue = a(() => j.value.font), pe = a(() => le.value), vt = a(() => X.value), ht = a(() => j.value.hoverEffect ? _.value : X.value), ot = a(() => j.value.activeHoverEffect ? _.value : X.value), ze = a(() => w.value), Le = a(() => H.value), Lt = a(() => j.value.hoverEffect ? se.value : H.value), pt = a(() => j.value.activeHoverEffect ? se.value : H.value), St = a(() => {
216
+ const D = j.value.internalGap;
217
+ return !D || D < 0 ? 0 : `${D}px`;
218
218
  }), xt = a(() => {
219
- const R = j.value.itemGap;
220
- return !R || R < 0 ? 0 : `${R}px`;
219
+ const D = j.value.itemGap;
220
+ return !D || D < 0 ? 0 : `${D}px`;
221
221
  }), Ct = a(() => ({
222
222
  zoom: j.value.scale
223
- })), Be = a(() => {
224
- const T = {};
225
- ce.value && Object.keys(ce.value).forEach((te) => T[`aria-${te}`] = ce.value[te]);
226
- const R = {
223
+ })), Ae = a(() => {
224
+ const V = {};
225
+ fe.value && Object.keys(fe.value).forEach((te) => V[`aria-${te}`] = fe.value[te]);
226
+ const D = {
227
227
  "aria-label": Q.value,
228
- "aria-disabled": fe.value,
229
- ...T
228
+ "aria-disabled": ve.value,
229
+ ...V
230
230
  };
231
231
  return Object.fromEntries(
232
- Object.entries(R).filter(([me, te]) => te != null)
232
+ Object.entries(D).filter(([Se, te]) => te != null)
233
233
  );
234
234
  }), gt = () => {
235
- const T = D.value;
236
- T && ["string"].includes(k.value) ? F.value = T.toString().toLowerCase() : F.value = T;
237
- }, et = () => {
238
- g("clicked");
235
+ const V = R.value;
236
+ V && ["string"].includes(B.value) ? F.value = V.toString().toLowerCase() : F.value = V;
237
+ }, et = (V) => {
238
+ g("clicked", V);
239
239
  };
240
- return re(D, (T, R) => {
241
- T !== R && gt();
242
- }), re(F, (T, R) => {
243
- T !== R && (g("current-value", T), g("changed", T));
244
- }), (T, R) => e.nbId && Xe.value ? (O(), K("div", {
240
+ return re(R, (V, D) => {
241
+ V !== D && gt();
242
+ }), re(F, (V, D) => {
243
+ V !== D && (g("current-value", V), g("changed", V));
244
+ }), (V, D) => e.nbId && Xe.value ? (O(), K("div", {
245
245
  key: 0,
246
246
  class: Ye(["nb-wrapper", Qe.value]),
247
247
  style: Ne([v.value, Ct.value])
248
248
  }, [
249
- xe("div", $a({
249
+ Ve("div", $a({
250
250
  id: e.nbId,
251
251
  role: "radiogroup"
252
- }, Be.value, {
253
- class: ["nb-reset", "component", se.value, S.value]
252
+ }, Ae.value, {
253
+ class: ["nb-reset", "component", de.value, S.value]
254
254
  }), [
255
- (O(!0), K(gl, null, yl(u(I), (me, te) => (O(), K("div", {
255
+ (O(!0), K(gl, null, yl(u(I), (Se, te) => (O(), K("div", {
256
256
  key: te,
257
257
  class: "component-radio__item"
258
258
  }, [
259
- Pa(xe("input", {
260
- id: `${e.nbId}-${me.value}`,
261
- "onUpdate:modelValue": R[0] || (R[0] = (he) => F.value = he),
259
+ Pa(Ve("input", {
260
+ id: `${e.nbId}-${Se.value}`,
261
+ "onUpdate:modelValue": D[0] || (D[0] = (ge) => F.value = ge),
262
262
  type: "radio",
263
263
  class: "component-radio__item--input",
264
- disabled: u(fe),
265
- value: me.value,
264
+ disabled: u(ve),
265
+ value: Se.value,
266
266
  name: e.groupName,
267
- onClick: et
267
+ onClick: D[1] || (D[1] = (ge) => et(ge))
268
268
  }, null, 8, Dl), [
269
269
  [Tl, F.value]
270
270
  ]),
271
- xe("label", {
272
- for: `${e.nbId}-${me.value}`,
273
- tabindex: u(fe) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[te] : e.tabIndex >= 0 ? e.tabIndex : te + 1,
271
+ Ve("label", {
272
+ for: `${e.nbId}-${Se.value}`,
273
+ tabindex: u(ve) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[te] : e.tabIndex >= 0 ? e.tabIndex : te + 1,
274
274
  class: "component-radio__item--label",
275
275
  onKeydown: [
276
- R[1] || (R[1] = na(Ia((he) => !u(fe) && e.hasTabIndexEnter && he.target.click(), ["prevent"]), ["enter"])),
277
- R[2] || (R[2] = na(Ia((he) => !u(fe) && e.hasTabIndexSpace && he.target.click(), ["prevent"]), ["space"]))
276
+ D[2] || (D[2] = na(Ia((ge) => !u(ve) && e.hasTabIndexEnter && ge.target.click(), ["prevent"]), ["enter"])),
277
+ D[3] || (D[3] = na(Ia((ge) => !u(ve) && e.hasTabIndexSpace && ge.target.click(), ["prevent"]), ["space"]))
278
278
  ]
279
279
  }, [
280
- R[3] || (R[3] = xe("div", null, null, -1)),
281
- xe("span", {
280
+ D[4] || (D[4] = Ve("div", null, null, -1)),
281
+ Ve("span", {
282
282
  style: Ne([Oe.value])
283
- }, Rt(me.text), 5)
283
+ }, Rt(Se.text), 5)
284
284
  ], 40, Rl)
285
285
  ]))), 128))
286
286
  ], 16, wl)
287
- ], 6)) : ye("", !0);
287
+ ], 6)) : me("", !0);
288
288
  }
289
- }), Nl = /* @__PURE__ */ Oa(Ml, [["__scopeId", "data-v-a95f65ea"]]);
289
+ }), Nl = /* @__PURE__ */ Oa(Ml, [["__scopeId", "data-v-4736d4fa"]]);
290
290
  const Fl = ["id"], zl = ["id", "disabled", "value", "name"], Il = ["for", "tabindex"], Wl = /* @__PURE__ */ Object.assign({
291
291
  name: "NbInputCheckbox",
292
292
  inheritAttrs: !1
@@ -301,14 +301,14 @@ const Fl = ["id"], zl = ["id", "disabled", "value", "name"], Il = ["for", "tabin
301
301
  type: String,
302
302
  default: "b",
303
303
  validator: (e = "b") => {
304
- const y = e ? e.toLowerCase() : "";
305
- return ["b", "ib"].includes(y);
304
+ const b = e ? e.toLowerCase() : "";
305
+ return ["b", "ib"].includes(b);
306
306
  }
307
307
  },
308
308
  tabIndex: {
309
309
  type: [Number, Array],
310
310
  default: 0,
311
- validator: (e, y) => Array.isArray(e) ? e.length === y.options.length : !0
311
+ validator: (e, b) => Array.isArray(e) ? e.length === b.options.length : !0
312
312
  },
313
313
  hasTabIndexEnter: {
314
314
  type: Boolean,
@@ -339,12 +339,12 @@ const Fl = ["id"], zl = ["id", "disabled", "value", "name"], Il = ["for", "tabin
339
339
  validator: (e) => {
340
340
  if (!e.length)
341
341
  return !1;
342
- let y = !1;
342
+ let b = !1;
343
343
  for (const g of e) {
344
344
  const h = Object.keys(g);
345
- h.length !== 2 && (y = !0), h.every((Q) => ["value", "text"].includes(Q)) || (y = !0);
345
+ h.length !== 2 && (b = !0), h.every((Q) => ["value", "text"].includes(Q)) || (b = !0);
346
346
  }
347
- if (!y)
347
+ if (!b)
348
348
  return e;
349
349
  }
350
350
  },
@@ -356,8 +356,8 @@ const Fl = ["id"], zl = ["id", "disabled", "value", "name"], Il = ["for", "tabin
356
356
  type: String,
357
357
  default: "light",
358
358
  validator: (e) => {
359
- const y = e ? e.toLowerCase() : "";
360
- return ["light", "dark"].includes(y);
359
+ const b = e ? e.toLowerCase() : "";
360
+ return ["light", "dark"].includes(b);
361
361
  }
362
362
  },
363
363
  // Cores do tema light
@@ -447,56 +447,56 @@ const Fl = ["id"], zl = ["id", "disabled", "value", "name"], Il = ["for", "tabin
447
447
  }
448
448
  },
449
449
  emits: ["current-value", "changed", "clicked"],
450
- setup(e, { emit: y }) {
451
- Wa((b) => ({
452
- "49e2c63f": vt.value,
453
- "107babaa": me.value,
454
- "3c7cc5ce": R.value,
455
- "16d311d0": T.value,
456
- "3f8b2f30": ke.value,
457
- "53078d64": ze.value,
458
- "537834e6": Lt.value,
459
- fbc86ee4: ot.value,
460
- "517939e1": ht.value,
461
- "3faff29d": et.value,
462
- "302ecd6a": Ct.value,
463
- "8a4df060": xt.value,
464
- "0a99dbe2": Be.value,
465
- d6971e68: St.value,
466
- ca30d9c2: pt.value
450
+ setup(e, { emit: b }) {
451
+ Wa((y) => ({
452
+ "7c68ff00": vt.value,
453
+ d1e7cb28: Se.value,
454
+ "48e2ad8f": D.value,
455
+ "2338f991": V.value,
456
+ d9a9ab2e: Le.value,
457
+ "35a2d00f": ze.value,
458
+ dfe7a964: Lt.value,
459
+ "48f03d2d": ot.value,
460
+ "0c977200": ht.value,
461
+ c252ed44: et.value,
462
+ cde5716e: Ct.value,
463
+ "631414ef": xt.value,
464
+ b44adfa4: Ae.value,
465
+ "1f3f6c4d": St.value,
466
+ aed233c0: pt.value
467
467
  })), Aa(() => {
468
468
  Ge();
469
469
  });
470
- const g = y, h = e, F = oe(null), {
470
+ const g = b, h = e, F = oe(null), {
471
471
  ariaLabel: Q,
472
- ariaAttrs: ce,
473
- currentOption: D,
474
- display: k,
475
- options: x,
472
+ ariaAttrs: fe,
473
+ currentOption: R,
474
+ display: B,
475
+ options: C,
476
476
  theme: I,
477
477
  lightTextColor: ae,
478
478
  lightColor: le,
479
479
  lightColorHover: X,
480
480
  darkTextColor: _,
481
- darkColor: $,
481
+ darkColor: w,
482
482
  darkColorHover: H,
483
- boxRadius: ie,
483
+ boxRadius: se,
484
484
  hoverEffect: q,
485
485
  activeHoverEffect: Fe,
486
- itemGap: be,
486
+ itemGap: he,
487
487
  internalGap: ee,
488
- scale: Ce,
489
- type: fe,
490
- background: Ae,
491
- disabled: Ve,
492
- fontFamily: Te,
488
+ scale: Te,
489
+ type: ve,
490
+ background: we,
491
+ disabled: ke,
492
+ fontFamily: Be,
493
493
  fontSize: j,
494
494
  fontWeight: Qe
495
495
  } = Ea(h), v = a(() => {
496
- const b = Ve.value ? "component-disabled" : "", A = k.value !== "b" ? "inline-block" : "block", de = Te.value ? Te.value : "'Lato', sans-serif", ge = j.value ? j.value : "1.6em", Se = Qe.value !== 0 && !Qe.value || Qe.value < 0 ? 200 : Qe.value, _e = ie.value !== 0 && !ie.value || ie.value < 0 ? 0 : ie.value, We = [!1, !0].includes(q.value) ? q.value : !1, Ee = [!1, !0].includes(Fe.value) ? Fe.value : !1, He = be.value !== 0 && !be.value || be.value < 0 ? 15 : be.value, qe = ee.value !== 0 && !ee.value || ee.value < 0 ? 6 : ee.value, Ke = ["box", "circle"].includes(fe.value) ? fe.value : "box", at = Ce.value !== 0 && !Ce.value || Ce.value < 0 ? 1 : Ce.value, yt = [!1, !0].includes(Ae.value) ? Ae.value : !1;
496
+ const y = ke.value ? "component-disabled" : "", k = B.value !== "b" ? "inline-block" : "block", ce = Be.value ? Be.value : "'Lato', sans-serif", be = j.value ? j.value : "1.6em", ye = Qe.value !== 0 && !Qe.value || Qe.value < 0 ? 200 : Qe.value, _e = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, We = [!1, !0].includes(q.value) ? q.value : !1, Ee = [!1, !0].includes(Fe.value) ? Fe.value : !1, He = he.value !== 0 && !he.value || he.value < 0 ? 15 : he.value, qe = ee.value !== 0 && !ee.value || ee.value < 0 ? 6 : ee.value, Ke = ["box", "circle"].includes(ve.value) ? ve.value : "box", at = Te.value !== 0 && !Te.value || Te.value < 0 ? 1 : Te.value, yt = [!1, !0].includes(we.value) ? we.value : !1;
497
497
  return {
498
- disabled: b,
499
- display: A,
498
+ disabled: y,
499
+ display: k,
500
500
  boxRadius: _e,
501
501
  hoverEffect: We,
502
502
  activeHoverEffect: Ee,
@@ -504,109 +504,109 @@ const Fl = ["id"], zl = ["id", "disabled", "value", "name"], Il = ["for", "tabin
504
504
  internalGap: qe,
505
505
  scale: at,
506
506
  type: Ke,
507
- font: de,
507
+ font: ce,
508
508
  background: yt,
509
- fontSize: ge,
510
- fontWeight: Se
509
+ fontSize: be,
510
+ fontWeight: ye
511
511
  };
512
- }), se = a(() => v.value.disabled), Oe = a(() => ({
512
+ }), de = a(() => v.value.disabled), Oe = a(() => ({
513
513
  display: v.value.display
514
514
  })), Xe = a(() => v.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), S = a(() => {
515
- const b = v.value;
515
+ const y = v.value;
516
516
  return {
517
- fontSize: b.fontSize,
518
- fontWeight: b.fontWeight
517
+ fontSize: y.fontSize,
518
+ fontWeight: y.fontWeight
519
519
  };
520
- }), Ue = a(() => Array.isArray(x.value) && x.value.constructor === Array && x.value.length > 0), ve = a(() => I.value === "dark" ? "component__theme--dark" : "component__theme--light"), vt = a(() => v.value.font), ht = a(() => ae.value), ot = a(() => le.value), ze = a(() => v.value.hoverEffect ? X.value : le.value), ke = a(() => v.value.activeHoverEffect ? X.value : le.value), Lt = a(() => {
521
- const b = v.value;
522
- return b.activeHoverEffect && b.background ? `${X.value}80` : X.value;
523
- }), pt = a(() => _.value), St = a(() => $.value), xt = a(() => v.value.hoverEffect ? H.value : $.value), Ct = a(() => v.value.activeHoverEffect ? H.value : $.value), Be = a(() => {
524
- const b = v.value;
525
- return b.activeHoverEffect && b.background ? `${H.value}80` : H.value;
520
+ }), Ue = a(() => Array.isArray(C.value) && C.value.constructor === Array && C.value.length > 0), pe = a(() => I.value === "dark" ? "component__theme--dark" : "component__theme--light"), vt = a(() => v.value.font), ht = a(() => ae.value), ot = a(() => le.value), ze = a(() => v.value.hoverEffect ? X.value : le.value), Le = a(() => v.value.activeHoverEffect ? X.value : le.value), Lt = a(() => {
521
+ const y = v.value;
522
+ return y.activeHoverEffect && y.background ? `${X.value}80` : X.value;
523
+ }), pt = a(() => _.value), St = a(() => w.value), xt = a(() => v.value.hoverEffect ? H.value : w.value), Ct = a(() => v.value.activeHoverEffect ? H.value : w.value), Ae = a(() => {
524
+ const y = v.value;
525
+ return y.activeHoverEffect && y.background ? `${H.value}80` : H.value;
526
526
  }), gt = a(() => v.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), et = a(() => {
527
- const b = v.value, A = I.value === "dark" ? _.value : ae.value;
528
- return b.background ? "#ffffff" : A;
527
+ const y = v.value, k = I.value === "dark" ? _.value : ae.value;
528
+ return y.background ? "#ffffff" : k;
529
529
  });
530
530
  a(() => v.value.background ? "19px" : "auto");
531
- const T = a(() => {
532
- const A = v.value.internalGap;
533
- return !A || A < 0 ? 0 : `${A}px`;
534
- }), R = a(() => {
535
- const b = v.value;
536
- return `${b.boxRadius > 7 ? 7 : b.boxRadius}px`;
537
- }), me = a(() => {
538
- const A = v.value.itemGap;
539
- return !A || A < 0 ? 0 : `${A}px`;
540
- }), te = a(() => v.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), he = a(() => ({
531
+ const V = a(() => {
532
+ const k = v.value.internalGap;
533
+ return !k || k < 0 ? 0 : `${k}px`;
534
+ }), D = a(() => {
535
+ const y = v.value;
536
+ return `${y.boxRadius > 7 ? 7 : y.boxRadius}px`;
537
+ }), Se = a(() => {
538
+ const k = v.value.itemGap;
539
+ return !k || k < 0 ? 0 : `${k}px`;
540
+ }), te = a(() => v.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), ge = a(() => ({
541
541
  zoom: v.value.scale
542
542
  })), tt = a(() => {
543
- const b = {};
544
- ce.value && Object.keys(ce.value).forEach((ge) => b[`aria-${ge}`] = ce.value[ge]);
545
- const A = {
543
+ const y = {};
544
+ fe.value && Object.keys(fe.value).forEach((be) => y[`aria-${be}`] = fe.value[be]);
545
+ const k = {
546
546
  "aria-label": Q.value,
547
- "aria-disabled": Ve.value,
548
- ...b
547
+ "aria-disabled": ke.value,
548
+ ...y
549
549
  };
550
550
  return Object.fromEntries(
551
- Object.entries(A).filter(([de, ge]) => ge != null)
551
+ Object.entries(k).filter(([ce, be]) => be != null)
552
552
  );
553
553
  }), Ge = () => {
554
- F.value = D.value;
555
- }, Ie = () => {
556
- g("clicked");
554
+ F.value = R.value;
555
+ }, Ie = (y) => {
556
+ g("clicked", y);
557
557
  };
558
- return re(D, (b, A) => {
559
- b !== A && Ge();
560
- }), re(F, (b, A) => {
561
- b !== A && (g("current-value", b), g("changed", b));
562
- }), (b, A) => e.nbId && Ue.value ? (O(), K("div", {
558
+ return re(R, (y, k) => {
559
+ y !== k && Ge();
560
+ }), re(F, (y, k) => {
561
+ y !== k && (g("current-value", y), g("changed", y));
562
+ }), (y, k) => e.nbId && Ue.value ? (O(), K("div", {
563
563
  key: 0,
564
- class: Ye(["nb-wrapper", se.value]),
565
- style: Ne([Oe.value, he.value])
564
+ class: Ye(["nb-wrapper", de.value]),
565
+ style: Ne([Oe.value, ge.value])
566
566
  }, [
567
- xe("div", $a({
567
+ Ve("div", $a({
568
568
  id: e.nbId,
569
569
  role: "group"
570
570
  }, tt.value, {
571
- class: ["nb-reset", "component", Xe.value, ve.value]
571
+ class: ["nb-reset", "component", Xe.value, pe.value]
572
572
  }), [
573
- (O(!0), K(gl, null, yl(u(x), (de, ge) => (O(), K("div", {
574
- key: ge,
573
+ (O(!0), K(gl, null, yl(u(C), (ce, be) => (O(), K("div", {
574
+ key: be,
575
575
  class: "component-checkbox__item"
576
576
  }, [
577
- Pa(xe("input", {
578
- id: `${e.nbId}-${de.value}`,
579
- "onUpdate:modelValue": A[0] || (A[0] = (Se) => F.value = Se),
577
+ Pa(Ve("input", {
578
+ id: `${e.nbId}-${ce.value}`,
579
+ "onUpdate:modelValue": k[0] || (k[0] = (ye) => F.value = ye),
580
580
  type: "checkbox",
581
581
  class: "component-checkbox__item--input",
582
- disabled: u(Ve),
583
- value: de.value,
582
+ disabled: u(ke),
583
+ value: ce.value,
584
584
  name: e.groupName,
585
- onClick: Ie
585
+ onClick: k[1] || (k[1] = (ye) => Ie(ye))
586
586
  }, null, 8, zl), [
587
587
  [kl, F.value]
588
588
  ]),
589
- xe("label", {
590
- for: `${e.nbId}-${de.value}`,
589
+ Ve("label", {
590
+ for: `${e.nbId}-${ce.value}`,
591
591
  class: Ye([[te.value], "component-checkbox__item--label"]),
592
- tabindex: u(Ve) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ge] : e.tabIndex >= 0 ? e.tabIndex : ge + 1,
592
+ tabindex: u(ke) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[be] : e.tabIndex >= 0 ? e.tabIndex : be + 1,
593
593
  onKeydown: [
594
- A[1] || (A[1] = na(Ia((Se) => !u(Ve) && e.hasTabIndexEnter && Se.target.click(), ["prevent"]), ["enter"])),
595
- A[2] || (A[2] = na(Ia((Se) => !u(Ve) && e.hasTabIndexSpace && Se.target.click(), ["prevent"]), ["space"]))
594
+ k[2] || (k[2] = na(Ia((ye) => !u(ke) && e.hasTabIndexEnter && ye.target.click(), ["prevent"]), ["enter"])),
595
+ k[3] || (k[3] = na(Ia((ye) => !u(ke) && e.hasTabIndexSpace && ye.target.click(), ["prevent"]), ["space"]))
596
596
  ]
597
597
  }, [
598
- xe("div", {
598
+ Ve("div", {
599
599
  class: Ye([gt.value])
600
600
  }, null, 2),
601
- xe("span", {
601
+ Ve("span", {
602
602
  style: Ne([S.value])
603
- }, Rt(de.text), 5)
603
+ }, Rt(ce.text), 5)
604
604
  ], 42, Il)
605
605
  ]))), 128))
606
606
  ], 16, Fl)
607
- ], 6)) : ye("", !0);
607
+ ], 6)) : me("", !0);
608
608
  }
609
- }), El = /* @__PURE__ */ Oa(Wl, [["__scopeId", "data-v-1c6afddc"]]);
609
+ }), El = /* @__PURE__ */ Oa(Wl, [["__scopeId", "data-v-e89ba0b2"]]);
610
610
  const Pl = ["id"], Ol = ["for"], _l = {
611
611
  key: 0,
612
612
  class: "component__label--required"
@@ -624,8 +624,8 @@ const Pl = ["id"], Ol = ["for"], _l = {
624
624
  type: String,
625
625
  default: "b",
626
626
  validator: (e = "b") => {
627
- const y = e.toLowerCase();
628
- return ["b", "ib"].includes(y);
627
+ const b = e.toLowerCase();
628
+ return ["b", "ib"].includes(b);
629
629
  }
630
630
  },
631
631
  tabIndex: {
@@ -1062,109 +1062,109 @@ const Pl = ["id"], Ol = ["for"], _l = {
1062
1062
  "entered",
1063
1063
  "paste"
1064
1064
  ],
1065
- setup(e, { emit: y }) {
1065
+ setup(e, { emit: b }) {
1066
1066
  Wa((o) => ({
1067
- "342644d9": Et.value,
1068
- "3f4c6557": ra.value,
1069
- "1ede05ca": u(Ct),
1070
- "4f7ccf67": ca.value,
1071
- "69eb990e": fa.value,
1072
- "6f6d3e5e": va.value,
1073
- 57352616: u(me),
1074
- "28a6c9c6": u(Ee),
1075
- "28d88a69": u(te),
1076
- "072e58ae": u(Mt),
1077
- "31d17fe2": u(R),
1078
- "04d07ecd": u(et),
1079
- "4aebdc33": u(T),
1080
- "5394bb04": dt.value,
1081
- "4e4085fe": u(Be),
1082
- "43c7ed7a": u(gt),
1083
- "195531a3": u(We),
1084
- "3b5e1535": u(he),
1085
- "396824a2": u(yt),
1086
- "5af8c896": u(xt),
1087
- 32439599: u(pt),
1088
- "46ada9ff": u(St),
1089
- "0245c2b2": u(ke),
1090
- "3e5efd74": u(Lt),
1091
- "05615226": ha.value,
1092
- "9b486f1e": xa.value,
1093
- d5642564: Ca.value,
1094
- "79afa904": _t.value,
1095
- "086cafa1": Dt.value,
1096
- "1127238e": u(tt),
1097
- "6445d91e": ya.value,
1098
- "6f07dcee": Pt.value,
1099
- "4678f62d": ia.value,
1100
- "15cf1bd4": Ut.value,
1101
- "1161f5f0": da.value,
1102
- c3b37b2c: Gt.value,
1103
- "19529b8f": sa.value
1067
+ "08c38d9e": Et.value,
1068
+ 32745802: ra.value,
1069
+ "66926c22": u(Ct),
1070
+ "035597e2": ca.value,
1071
+ c3c30bbe: fa.value,
1072
+ "27669d79": va.value,
1073
+ "02a2d684": u(Se),
1074
+ "45fe75c5": u(Ee),
1075
+ "8f65ce7e": u(te),
1076
+ "5b861051": u(Mt),
1077
+ "3f17508a": u(D),
1078
+ "4c84e525": u(et),
1079
+ "333fbeea": u(V),
1080
+ "0269d2d6": dt.value,
1081
+ "51d502b4": u(Ae),
1082
+ "6ffc1dd2": u(gt),
1083
+ "093eabfb": u(We),
1084
+ cb095c46: u(ge),
1085
+ "67d64607": u(yt),
1086
+ "1325e624": u(xt),
1087
+ "3dc80b7e": u(pt),
1088
+ "19c1f0a7": u(St),
1089
+ d7e041ec: u(Le),
1090
+ "3b225bee": u(Lt),
1091
+ "4d15b87e": ha.value,
1092
+ "42e00e6e": xa.value,
1093
+ "442651f6": Ca.value,
1094
+ d3871bb4: _t.value,
1095
+ a033c36e: Dt.value,
1096
+ "50b22636": u(tt),
1097
+ "5fa72fc9": ya.value,
1098
+ "104654d4": Pt.value,
1099
+ "155d4a56": ia.value,
1100
+ "4f6a4cbe": Ut.value,
1101
+ "371386d0": da.value,
1102
+ "6b4b1a7c": Gt.value,
1103
+ "610701e7": sa.value
1104
1104
  })), Aa(() => {
1105
- ve.value != null ? se.value === "number" && typeof ve.value == "number" ? z.value = ve.value : z.value = String(ve.value) : z.value = "";
1105
+ pe.value != null ? de.value === "number" && typeof pe.value == "number" ? z.value = pe.value : z.value = String(pe.value) : z.value = "";
1106
1106
  }), Ya(() => {
1107
1107
  Ht();
1108
1108
  });
1109
- const g = y, h = e, {
1109
+ const g = b, h = e, {
1110
1110
  nbId: F,
1111
1111
  display: Q,
1112
- hasTabIndexEnter: ce,
1113
- ariaLabel: D,
1114
- ariaAttrs: k,
1115
- textColor: x,
1112
+ hasTabIndexEnter: fe,
1113
+ ariaLabel: R,
1114
+ ariaAttrs: B,
1115
+ textColor: C,
1116
1116
  caretColor: I,
1117
1117
  selectionBgColor: ae,
1118
1118
  selectionTextColor: le,
1119
1119
  hasBorderRadius: X,
1120
1120
  borderRadius: _,
1121
- disabled: $,
1121
+ disabled: w,
1122
1122
  fontFamily: H,
1123
- fontSize: ie,
1123
+ fontSize: se,
1124
1124
  fontWeight: q,
1125
1125
  fontFamilyMsg: Fe,
1126
- fontSizeMsg: be,
1126
+ fontSizeMsg: he,
1127
1127
  fontWeightMsg: ee,
1128
- textMessageColor: Ce,
1129
- inputWidth: fe,
1130
- inputStyle: Ae,
1131
- activeTextStyle: Ve,
1132
- sizeMediaQuery: Te,
1128
+ textMessageColor: Te,
1129
+ inputWidth: ve,
1130
+ inputStyle: we,
1131
+ activeTextStyle: ke,
1132
+ sizeMediaQuery: Be,
1133
1133
  inputReadonly: j,
1134
1134
  blockPaste: Qe,
1135
1135
  showInputEye: v,
1136
- inputType: se,
1136
+ inputType: de,
1137
1137
  hasTrim: Oe,
1138
1138
  inputUppercase: Xe,
1139
1139
  inputName: S,
1140
1140
  inputPlaceholder: Ue,
1141
- inputText: ve,
1141
+ inputText: pe,
1142
1142
  theme: vt,
1143
1143
  inputEyeIcon: ht,
1144
1144
  tabindex: ot,
1145
1145
  inputEyeIconHidden: ze,
1146
- lightBgColor: ke,
1146
+ lightBgColor: Le,
1147
1147
  lightBgColorFocus: Lt,
1148
1148
  lightEyeBgColor: pt,
1149
1149
  lightEyeBgColorActive: St,
1150
1150
  lightDisabledBgColor: xt,
1151
1151
  lightTextColor: Ct,
1152
- darkBgColor: Be,
1152
+ darkBgColor: Ae,
1153
1153
  darkBgColorFocus: gt,
1154
1154
  darkEyeBgColor: et,
1155
- darkEyeBgColorActive: T,
1156
- darkDisabledBgColor: R,
1157
- darkTextColor: me,
1155
+ darkEyeBgColorActive: V,
1156
+ darkDisabledBgColor: D,
1157
+ darkTextColor: Se,
1158
1158
  darkDisabledEyeBgColor: te,
1159
- lightDisabledEyeBgColor: he,
1159
+ lightDisabledEyeBgColor: ge,
1160
1160
  textAlign: tt,
1161
1161
  showMsg: Ge,
1162
1162
  hasMsg: Ie,
1163
- hasIcon: b,
1164
- iconDirection: A,
1165
- iconPadding: de,
1166
- iconPaddingInput: ge,
1167
- iconMargin: Se,
1163
+ hasIcon: y,
1164
+ iconDirection: k,
1165
+ iconPadding: ce,
1166
+ iconPaddingInput: be,
1167
+ iconMargin: ye,
1168
1168
  iconBorderRadius: _e,
1169
1169
  iconLightTextColor: We,
1170
1170
  iconDarkTextColor: Ee,
@@ -1180,14 +1180,14 @@ const Pl = ["id"], Ol = ["for"], _l = {
1180
1180
  label: Nt,
1181
1181
  labelBreakOnActive: rt,
1182
1182
  labelBackground: Tt,
1183
- labelPadding: B,
1183
+ labelPadding: L,
1184
1184
  labelBorderRadius: E,
1185
1185
  labelLeft: Z,
1186
1186
  inputLabelMarginActive: Y,
1187
- labelActiveTop: $e,
1187
+ labelActiveTop: De,
1188
1188
  labelActiveLeft: M,
1189
1189
  labelRight: Wt,
1190
- labelActiveRight: we,
1190
+ labelActiveRight: Re,
1191
1191
  fontFamilyLabel: At,
1192
1192
  fontSizeLabel: ue,
1193
1193
  fontSizeLabelActive: ut,
@@ -1197,7 +1197,7 @@ const Pl = ["id"], Ol = ["for"], _l = {
1197
1197
  darkTextColorLabel: U,
1198
1198
  darkTextColorLabelActive: Yt
1199
1199
  } = Ea(h), z = oe(""), G = oe(null), kt = oe(""), wt = oe(!1), it = oe(!1), N = a(() => {
1200
- const o = $.value ? "component-disabled" : "", m = Q.value !== "b" ? "inline-block" : "block", Re = x ? x.value : "#ffffff", nt = I.value ? I.value : "", Ba = ae.value ? ae.value : "", ta = le.value ? le.value : "", wa = X.value ? X.value : !1, Da = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, It = H.value ? H.value : "'Lato', sans-serif", aa = ie.value ? ie.value : null, qt = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, Ra = Fe.value ? Fe.value : "'Lato', sans-serif", _a = be.value ? be.value : "1em", Ma = ee.value !== 0 && !ee.value || ee.value < 0 ? 100 : ee.value, Ha = Ce.value ? Ce.value : "#f15574", Le = fe.value ? fe.value : 200, qa = Ve.value ? Ve.value : "normal", mt = Te.value ? Te.value : "xs", t = j.value ? j.value : !1, l = v.value ? v.value : !1, n = se.value ? se.value : "text", r = Xe.value ? Xe.value : !1, s = vt.value ? vt.value : "normal", d = tt.value ? tt.value : "left", f = Ae.value ? Ae.value : "background", p = de.value ? de.value : "5px 10px", V = Se.value ? Se.value : "0", L = ge.value ? ge.value : 10, W = We.value ? We.value : "#000000", J = Ee.value ? Ee.value : "#000000", Me = He.value ? He.value : "transparent", ft = qe.value ? qe.value : "transparent", Pe = _e.value !== 0 && !_e.value || _e.value < 0 ? 0 : _e.value, Je = Ke.value ? Ke.value : "transparent", Ua = at.value ? at.value : "transparent", Ga = Vt.value ? Vt.value : 32, Ka = bt.value ? bt.value : 1, Za = lt.value ? lt.value : !1, Ja = Z.value !== 0 && !Z.value || Z.value < 0 ? 5 : Z.value, Qa = Tt.value ? Tt.value : "transparent", Xa = Y.value !== 0 && !Y.value || Y.value < 0 ? 15 : Y.value, el = B.value ? B.value : "1px 5px", tl = E.value !== 0 && !E.value || E.value < 0 ? 0 : E.value, al = $e.value === null || $e.value === void 0 ? -13 : $e.value, ll = M.value === null || M.value === void 0 ? 5 : M.value, nl = Wt.value === null || Wt.value === void 0 ? 0 : Wt.value, ol = we.value === null || we.value === void 0 ? 0 : we.value, rl = At.value ? At.value : "'Lato', sans-serif", ul = ue.value ? ue.value : "1em", il = ut.value ? ut.value : "0.8em", sl = ne.value ? ne.value : 400, dl = $t.value ? $t.value : "#ffffff", cl = U.value ? U.value : "#000000", fl = P.value ? P.value : "#ffffff", vl = Yt.value ? Yt.value : "#000000";
1200
+ const o = w.value ? "component-disabled" : "", m = Q.value !== "b" ? "inline-block" : "block", Ce = C ? C.value : "#ffffff", nt = I.value ? I.value : "", Ba = ae.value ? ae.value : "", ta = le.value ? le.value : "", wa = X.value ? X.value : !1, Da = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, It = H.value ? H.value : "'Lato', sans-serif", aa = se.value ? se.value : null, qt = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, Ra = Fe.value ? Fe.value : "'Lato', sans-serif", _a = he.value ? he.value : "1em", Ma = ee.value !== 0 && !ee.value || ee.value < 0 ? 100 : ee.value, Ha = Te.value ? Te.value : "#f15574", $e = ve.value ? ve.value : 200, qa = ke.value ? ke.value : "normal", mt = Be.value ? Be.value : "xs", t = j.value ? j.value : !1, l = v.value ? v.value : !1, n = de.value ? de.value : "text", r = Xe.value ? Xe.value : !1, s = vt.value ? vt.value : "normal", d = tt.value ? tt.value : "left", f = we.value ? we.value : "background", p = ce.value ? ce.value : "5px 10px", T = ye.value ? ye.value : "0", $ = be.value ? be.value : 10, W = We.value ? We.value : "#000000", J = Ee.value ? Ee.value : "#000000", Me = He.value ? He.value : "transparent", ft = qe.value ? qe.value : "transparent", Pe = _e.value !== 0 && !_e.value || _e.value < 0 ? 0 : _e.value, Je = Ke.value ? Ke.value : "transparent", Ua = at.value ? at.value : "transparent", Ga = Vt.value ? Vt.value : 32, Ka = bt.value ? bt.value : 1, Za = lt.value ? lt.value : !1, Ja = Z.value !== 0 && !Z.value || Z.value < 0 ? 5 : Z.value, Qa = Tt.value ? Tt.value : "transparent", Xa = Y.value !== 0 && !Y.value || Y.value < 0 ? 15 : Y.value, el = L.value ? L.value : "1px 5px", tl = E.value !== 0 && !E.value || E.value < 0 ? 0 : E.value, al = De.value === null || De.value === void 0 ? -13 : De.value, ll = M.value === null || M.value === void 0 ? 5 : M.value, nl = Wt.value === null || Wt.value === void 0 ? 0 : Wt.value, ol = Re.value === null || Re.value === void 0 ? 0 : Re.value, rl = At.value ? At.value : "'Lato', sans-serif", ul = ue.value ? ue.value : "1em", il = ut.value ? ut.value : "0.8em", sl = ne.value ? ne.value : 400, dl = $t.value ? $t.value : "#ffffff", cl = U.value ? U.value : "#000000", fl = P.value ? P.value : "#ffffff", vl = Yt.value ? Yt.value : "#000000";
1201
1201
  return {
1202
1202
  disabled: o,
1203
1203
  display: m,
@@ -1208,14 +1208,14 @@ const Pl = ["id"], Ol = ["for"], _l = {
1208
1208
  fontSizeMsg: _a,
1209
1209
  fontWeightMsg: Ma,
1210
1210
  textMessageColor: Ha,
1211
- textColor: Re,
1211
+ textColor: Ce,
1212
1212
  caretColor: nt,
1213
1213
  selectionBgColor: Ba,
1214
1214
  selectionTextColor: ta,
1215
1215
  hasBorderRadius: wa,
1216
1216
  borderRadius: Da,
1217
1217
  textAlign: d,
1218
- inputWidth: Le,
1218
+ inputWidth: $e,
1219
1219
  activeTextStyle: qa,
1220
1220
  sizeMediaQuery: mt,
1221
1221
  inputReadonly: t,
@@ -1225,8 +1225,8 @@ const Pl = ["id"], Ol = ["for"], _l = {
1225
1225
  theme: s,
1226
1226
  inputStyle: f,
1227
1227
  iconPadding: p,
1228
- iconMargin: V,
1229
- iconPaddingInput: L,
1228
+ iconMargin: T,
1229
+ iconPaddingInput: $,
1230
1230
  iconLightTextColor: W,
1231
1231
  iconDarkTextColor: J,
1232
1232
  iconLightBgColor: Me,
@@ -1290,7 +1290,7 @@ const Pl = ["id"], Ol = ["for"], _l = {
1290
1290
  }), st = a(() => {
1291
1291
  const o = N.value;
1292
1292
  return o.inputStyle !== "line" && o.hasBorderRadius ? { borderRadius: `${o.borderRadius}rem` } : {};
1293
- }), Et = a(() => N.value.font), Pt = a(() => N.value.fontFamilyMsg), ia = a(() => N.value.fontSizeMsg), Ut = a(() => N.value.fontWeightMsg), sa = a(() => N.value.textColor), Gt = a(() => N.value.theme === "dark" ? R.value : xt.value), da = a(() => N.value.textMessageColor), ca = a(() => {
1293
+ }), Et = a(() => N.value.font), Pt = a(() => N.value.fontFamilyMsg), ia = a(() => N.value.fontSizeMsg), Ut = a(() => N.value.fontWeightMsg), sa = a(() => N.value.textColor), Gt = a(() => N.value.theme === "dark" ? D.value : xt.value), da = a(() => N.value.textMessageColor), ca = a(() => {
1294
1294
  const o = N.value;
1295
1295
  return o.caretColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
1296
1296
  }), fa = a(() => {
@@ -1305,7 +1305,7 @@ const Pl = ["id"], Ol = ["for"], _l = {
1305
1305
  width: `${o.inputWidth}px`
1306
1306
  };
1307
1307
  }), pa = a(() => {
1308
- switch (Ae.value) {
1308
+ switch (we.value) {
1309
1309
  case "line":
1310
1310
  return "component__input--line";
1311
1311
  case "border":
@@ -1333,52 +1333,52 @@ const Pl = ["id"], Ol = ["for"], _l = {
1333
1333
  default:
1334
1334
  return "";
1335
1335
  }
1336
- }), w = a(() => {
1336
+ }), A = a(() => {
1337
1337
  switch (N.value.theme) {
1338
1338
  case "dark":
1339
1339
  return "component__theme--dark";
1340
1340
  default:
1341
1341
  return "component__theme--light";
1342
1342
  }
1343
- }), pe = a(() => N.value.inputReadonly ? "component__input--read-only" : ""), Ze = a(() => N.value.inputUppercase ? "component__input--uppercase" : ""), Ot = a(() => {
1343
+ }), ie = a(() => N.value.inputReadonly ? "component__input--read-only" : ""), Ze = a(() => N.value.inputUppercase ? "component__input--uppercase" : ""), Ot = a(() => {
1344
1344
  const o = N.value;
1345
1345
  return !!(o.showInputEye && o.inputType === "password");
1346
- }), i = a(() => wt.value ? ht.value : ze.value), C = a(() => S.value ? S.value : `${F.value}-name-label`), De = a(() => lt.value ? it.value ? Ue.value : "" : Ue.value), je = a(() => {
1346
+ }), i = a(() => wt.value ? ht.value : ze.value), x = a(() => S.value ? S.value : `${F.value}-name-label`), xe = a(() => lt.value ? it.value ? Ue.value : "" : Ue.value), je = a(() => {
1347
1347
  const o = z.value;
1348
1348
  return it.value || o != null && String(o).trim().length > 0;
1349
1349
  }), Zt = a(() => N.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), ga = a(() => it.value ? "component__input--active" : "component__input--no-active"), ya = a(() => Ot.value ? "6px 50px 6px 10px" : "6px 10px"), ba = a(() => !!(Ge.value && Ie.value)), ma = a(() => {
1350
1350
  const o = {};
1351
- k.value && Object.keys(k.value).forEach((nt) => o[`aria-${nt}`] = k.value[nt]);
1351
+ B.value && Object.keys(B.value).forEach((nt) => o[`aria-${nt}`] = B.value[nt]);
1352
1352
  const m = {
1353
- "aria-label": D.value,
1354
- "aria-disabled": $.value,
1353
+ "aria-label": R.value,
1354
+ "aria-disabled": w.value,
1355
1355
  ...o
1356
1356
  };
1357
1357
  return Object.fromEntries(
1358
- Object.entries(m).filter(([Re, nt]) => nt != null)
1358
+ Object.entries(m).filter(([Ce, nt]) => nt != null)
1359
1359
  );
1360
- }), Dt = a(() => b.value ? `${bt.value}rem` : "0"), ha = a(() => b.value ? `${Vt.value}px` : "0"), Sa = a(() => b.value ? `component__icon--${A.value}` : ""), xa = a(() => {
1360
+ }), Dt = a(() => y.value ? `${bt.value}rem` : "0"), ha = a(() => y.value ? `${Vt.value}px` : "0"), Sa = a(() => y.value ? `component__icon--${k.value}` : ""), xa = a(() => {
1361
1361
  const o = N.value;
1362
- return b.value ? o.iconPadding : "0";
1362
+ return y.value ? o.iconPadding : "0";
1363
1363
  }), Ca = a(() => {
1364
1364
  const o = N.value;
1365
- return b.value ? o.iconMargin : "0";
1365
+ return y.value ? o.iconMargin : "0";
1366
1366
  }), dt = a(() => {
1367
1367
  const o = N.value;
1368
- return b.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
1368
+ return y.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
1369
1369
  }), _t = a(() => {
1370
1370
  const o = N.value;
1371
- return b.value ? `${o.iconBorderRadius}rem` : "0";
1371
+ return y.value ? `${o.iconBorderRadius}rem` : "0";
1372
1372
  }), Jt = a(() => {
1373
1373
  const o = N.value;
1374
- return b.value ? A.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
1374
+ return y.value ? k.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
1375
1375
  }), Qt = a(() => {
1376
- const o = N.value, m = je.value, Re = m ? o.lightTextColorLabelActive : o.lightTextColorLabel, nt = m ? o.darkTextColorLabelActive : o.darkTextColorLabel;
1376
+ const o = N.value, m = je.value, Ce = m ? o.lightTextColorLabelActive : o.lightTextColorLabel, nt = m ? o.darkTextColorLabelActive : o.darkTextColorLabel;
1377
1377
  return {
1378
1378
  fontFamily: o.fontFamilyLabel,
1379
1379
  fontSize: m ? o.fontSizeLabelActive : o.fontSizeLabel,
1380
1380
  fontWeight: o.fontWeightLabel,
1381
- color: o.theme === "dark" ? nt : Re,
1381
+ color: o.theme === "dark" ? nt : Ce,
1382
1382
  top: m ? `${o.labelActiveTop}px` : "50%",
1383
1383
  left: m ? `${o.labelActiveLeft}px` : `${o.labelLeft}px`,
1384
1384
  right: m ? `${o.labelActiveRight}px` : `${o.labelRight}px`,
@@ -1403,15 +1403,15 @@ const Pl = ["id"], Ol = ["for"], _l = {
1403
1403
  return o.theme === "dark" ? o.darkTextColorLabelActive : o.lightTextColorLabelActive;
1404
1404
  });
1405
1405
  const Ht = () => {
1406
- ve.value != null ? se.value === "number" && typeof ve.value == "number" ? z.value = ve.value : z.value = String(ve.value) : z.value = "", kt.value = se.value;
1406
+ pe.value != null ? de.value === "number" && typeof pe.value == "number" ? z.value = pe.value : z.value = String(pe.value) : z.value = "", kt.value = de.value;
1407
1407
  }, Xt = () => {
1408
1408
  const o = N.value;
1409
1409
  if (o.inputReadonly || o.disabled)
1410
1410
  return;
1411
1411
  const m = !wt.value;
1412
- m ? kt.value = "text" : kt.value = se.value, wt.value = m;
1412
+ m ? kt.value = "text" : kt.value = de.value, wt.value = m;
1413
1413
  }, ct = a(() => kt.value === "number"), Bt = (o) => {
1414
- if (se.value === "number") {
1414
+ if (de.value === "number") {
1415
1415
  if (o === "" || o === null || o === void 0)
1416
1416
  return "";
1417
1417
  {
@@ -1420,22 +1420,22 @@ const Pl = ["id"], Ol = ["for"], _l = {
1420
1420
  }
1421
1421
  }
1422
1422
  return o;
1423
- }, Va = () => {
1424
- g("clicked");
1423
+ }, Va = (o) => {
1424
+ g("clicked", o);
1425
1425
  }, Ta = (o) => {
1426
- o.stopPropagation(), !($.value || N.value.inputReadonly) && G.value && G.value.focus();
1426
+ o.stopPropagation(), !(w.value || N.value.inputReadonly) && G.value && G.value.focus();
1427
1427
  }, ea = () => {
1428
- $.value || N.value.inputReadonly || !ce.value || g("entered", Bt(z.value));
1428
+ w.value || N.value.inputReadonly || !fe.value || g("entered", Bt(z.value));
1429
1429
  }, ka = async (o) => {
1430
- var Re;
1431
- const m = ((Re = o.clipboardData) == null ? void 0 : Re.getData("text")) || "";
1430
+ var Ce;
1431
+ const m = ((Ce = o.clipboardData) == null ? void 0 : Ce.getData("text")) || "";
1432
1432
  g("paste", m), Qe.value && o.preventDefault();
1433
1433
  };
1434
- return re(se, (o) => {
1434
+ return re(de, (o) => {
1435
1435
  kt.value = o;
1436
- }, { immediate: !0 }), re(ve, (o) => {
1436
+ }, { immediate: !0 }), re(pe, (o) => {
1437
1437
  if (o != null)
1438
- if (se.value === "number" && typeof o == "number")
1438
+ if (de.value === "number" && typeof o == "number")
1439
1439
  o !== z.value && (z.value = o);
1440
1440
  else {
1441
1441
  const m = String(o);
@@ -1451,7 +1451,7 @@ const Pl = ["id"], Ol = ["for"], _l = {
1451
1451
  g("show-input-eye", o);
1452
1452
  }, { immediate: !0 }), re(z, (o) => {
1453
1453
  Oe.value && typeof o == "string" && (o = o.trim()), g("current-value", Bt(o));
1454
- }), re(se, (o) => {
1454
+ }), re(de, (o) => {
1455
1455
  o === "password" && nextTick(() => {
1456
1456
  const m = document.getElementById(S.value);
1457
1457
  m && (m.type = "password", m.removeAttribute("autocomplete"));
@@ -1462,80 +1462,80 @@ const Pl = ["id"], Ol = ["for"], _l = {
1462
1462
  style: [oa.value, Kt.value, st.value],
1463
1463
  role: "input"
1464
1464
  }, ma.value), [
1465
- xe("div", {
1465
+ Ve("div", {
1466
1466
  id: u(F),
1467
- class: Ye(["nb-reset", "component", c.value, w.value, pe.value, pa.value]),
1467
+ class: Ye(["nb-reset", "component", c.value, A.value, ie.value, pa.value]),
1468
1468
  style: Ne([ua.value, Kt.value, st.value]),
1469
- onClick: Va
1469
+ onClick: m[4] || (m[4] = (Ce) => Va(Ce))
1470
1470
  }, [
1471
1471
  u(lt) ? (O(), K("label", {
1472
1472
  key: 0,
1473
- for: C.value,
1473
+ for: x.value,
1474
1474
  class: "component__label",
1475
1475
  style: Ne([Qt.value]),
1476
1476
  onClick: Ta
1477
1477
  }, [
1478
1478
  jt(Rt(u(Nt)), 1),
1479
- e.required ? (O(), K("span", _l, "*")) : ye("", !0)
1480
- ], 12, Ol)) : ye("", !0),
1479
+ e.required ? (O(), K("span", _l, "*")) : me("", !0)
1480
+ ], 12, Ol)) : me("", !0),
1481
1481
  Ot.value ? (O(), K("div", {
1482
1482
  key: 1,
1483
1483
  class: Ye(["component__eye", ga.value]),
1484
1484
  style: Ne([st.value]),
1485
1485
  onClick: Xt
1486
1486
  }, [
1487
- xe("label", {
1488
- for: C.value,
1487
+ Ve("label", {
1488
+ for: x.value,
1489
1489
  class: Ye(["component__eye-icon", "fas"])
1490
1490
  }, [
1491
1491
  e.inputEyeCustomIcon ? (O(), K("span", jl, [
1492
1492
  wt.value ? La(o.$slots, "eye-icon-show", { key: 0 }, () => [
1493
- m[4] || (m[4] = jt("show"))
1493
+ m[5] || (m[5] = jt("show"))
1494
1494
  ], !0) : La(o.$slots, "eye-icon-hidden", { key: 1 }, () => [
1495
- m[5] || (m[5] = jt("hidden"))
1495
+ m[6] || (m[6] = jt("hidden"))
1496
1496
  ], !0)
1497
1497
  ])) : (O(), K("span", ql, Rt(i.value), 1))
1498
1498
  ], 8, Hl)
1499
- ], 6)) : ye("", !0),
1500
- Pa(xe("input", {
1499
+ ], 6)) : me("", !0),
1500
+ Pa(Ve("input", {
1501
1501
  ref_key: "inputRef",
1502
1502
  ref: G,
1503
- "onUpdate:modelValue": m[0] || (m[0] = (Re) => z.value = Re),
1504
- id: C.value,
1505
- name: C.value,
1503
+ "onUpdate:modelValue": m[0] || (m[0] = (Ce) => z.value = Ce),
1504
+ id: x.value,
1505
+ name: x.value,
1506
1506
  type: kt.value,
1507
1507
  class: Ye(["component__input", [
1508
1508
  Ze.value,
1509
1509
  Zt.value,
1510
1510
  zt.value
1511
1511
  ]]),
1512
- placeholder: De.value,
1513
- disabled: u($) || u(j),
1512
+ placeholder: xe.value,
1513
+ disabled: u(w) || u(j),
1514
1514
  required: e.required,
1515
1515
  readonly: u(j),
1516
1516
  autocomplete: e.inputAutocomplete,
1517
- tabindex: u($) || u(j) ? -1 : u(ot),
1517
+ tabindex: u(w) || u(j) ? -1 : u(ot),
1518
1518
  min: ct.value ? e.min : void 0,
1519
1519
  max: ct.value ? e.max : void 0,
1520
1520
  step: ct.value ? e.step : void 0,
1521
1521
  role: "input",
1522
1522
  style: Ne([st.value, Jt.value]),
1523
- onFocus: m[1] || (m[1] = (Re) => it.value = !0),
1524
- onBlur: m[2] || (m[2] = (Re) => it.value = !1),
1525
- onKeydown: m[3] || (m[3] = na((Re) => !u($) && u(ce) && ea(), ["enter"])),
1523
+ onFocus: m[1] || (m[1] = (Ce) => it.value = !0),
1524
+ onBlur: m[2] || (m[2] = (Ce) => it.value = !1),
1525
+ onKeydown: m[3] || (m[3] = na((Ce) => !u(w) && u(fe) && ea(), ["enter"])),
1526
1526
  onPaste: ka
1527
1527
  }, null, 46, Yl), [
1528
1528
  [ml, z.value]
1529
1529
  ]),
1530
- u(b) ? (O(), K("label", {
1530
+ u(y) ? (O(), K("label", {
1531
1531
  key: 2,
1532
- for: C.value,
1532
+ for: x.value,
1533
1533
  class: Ye(["component__icon", Sa.value])
1534
1534
  }, [
1535
1535
  La(o.$slots, "icon", {}, () => [
1536
- m[6] || (m[6] = xe("span", null, "♥", -1))
1536
+ m[7] || (m[7] = Ve("span", null, "♥", -1))
1537
1537
  ], !0)
1538
- ], 10, Ul)) : ye("", !0)
1538
+ ], 10, Ul)) : me("", !0)
1539
1539
  ], 14, Pl),
1540
1540
  ba.value ? (O(), K("div", {
1541
1541
  key: 0,
@@ -1544,10 +1544,10 @@ const Pl = ["id"], Ol = ["for"], _l = {
1544
1544
  La(o.$slots, "message", {}, () => [
1545
1545
  jt(Rt(e.message), 1)
1546
1546
  ], !0)
1547
- ], 2)) : ye("", !0)
1548
- ], 16)) : ye("", !0);
1547
+ ], 2)) : me("", !0)
1548
+ ], 16)) : me("", !0);
1549
1549
  }
1550
- }), Kl = /* @__PURE__ */ Oa(Gl, [["__scopeId", "data-v-bc390fa8"]]);
1550
+ }), Kl = /* @__PURE__ */ Oa(Gl, [["__scopeId", "data-v-9e792880"]]);
1551
1551
  const Zl = ["for"], Jl = {
1552
1552
  key: 0,
1553
1553
  class: "component__label--required"
@@ -1565,8 +1565,8 @@ const Zl = ["for"], Jl = {
1565
1565
  type: String,
1566
1566
  default: "b",
1567
1567
  validator: (e = "b") => {
1568
- const y = e.toLowerCase();
1569
- return ["b", "ib"].includes(y);
1568
+ const b = e.toLowerCase();
1569
+ return ["b", "ib"].includes(b);
1570
1570
  }
1571
1571
  },
1572
1572
  tabIndex: {
@@ -1897,96 +1897,96 @@ const Zl = ["for"], Jl = {
1897
1897
  }
1898
1898
  },
1899
1899
  emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred", "paste"],
1900
- setup(e, { emit: y }) {
1900
+ setup(e, { emit: b }) {
1901
1901
  Wa((c) => ({
1902
- "4b2d2ea2": z.value,
1903
- "0ac199f5": kt.value,
1904
- "96b3ef5a": u(ht),
1905
- "660ed37b": u(Xe),
1906
- "47d24d74": u(Ue),
1907
- eec899e2: u(ot),
1908
- "677952e7": u(ze),
1909
- "54dbb5b0": u(ke),
1910
- "6c8e2e6d": u(gt),
1911
- "33c48fd6": u(pt),
1912
- b36d55e4: u(xt),
1913
- "31da8aae": u(et),
1914
- "044cdc01": u(T),
1915
- "0af1604a": u(R),
1916
- "0ad34078": u(ve),
1917
- "0736086a": u(Ct),
1918
- "54a56dae": $t.value,
1919
- "72b51dfe": it.value,
1920
- "03c61660": N.value,
1921
- fc9daf30: Ft.value,
1922
- "3c10729a": c.styleButtonColor,
1923
- a1cac3d0: G.value,
1924
- d325ff42: u(vt),
1925
- dc712f50: u(Lt),
1926
- "4c82aaf9": u(Be),
1927
- cd1b941c: u(me)
1902
+ e08d2976: z.value,
1903
+ "0de97d58": kt.value,
1904
+ "21b51536": u(ht),
1905
+ "5f9c85c4": u(Xe),
1906
+ a55ca4d2: u(Ue),
1907
+ "23c9d99c": u(ot),
1908
+ "6aa1364a": u(ze),
1909
+ "2d984c53": u(Le),
1910
+ "46c8792a": u(gt),
1911
+ d214e3dc: u(pt),
1912
+ "49c836ea": u(xt),
1913
+ "1be54a26": u(et),
1914
+ "4eb9803e": u(V),
1915
+ "6cc5e947": u(D),
1916
+ "396c9d81": u(pe),
1917
+ "401ac1e6": u(Ct),
1918
+ "2edfb86b": $t.value,
1919
+ b0f0a50a: it.value,
1920
+ "3cf3328d": N.value,
1921
+ "63eeeae5": Ft.value,
1922
+ "477726d6": c.styleButtonColor,
1923
+ "1c29aafb": G.value,
1924
+ "6f299702": u(vt),
1925
+ "117c150a": u(Lt),
1926
+ a3519814: u(Ae),
1927
+ "7baff86f": u(Se)
1928
1928
  })), Aa(() => {
1929
- _.value.length > 0 && (we.value = _.value);
1929
+ _.value.length > 0 && (Re.value = _.value);
1930
1930
  });
1931
- const g = y, h = e, {
1931
+ const g = b, h = e, {
1932
1932
  nbId: F,
1933
1933
  display: Q,
1934
- textColor: ce,
1935
- paddingX: D,
1936
- paddingY: k,
1937
- borderRadius: x,
1934
+ textColor: fe,
1935
+ paddingX: R,
1936
+ paddingY: B,
1937
+ borderRadius: C,
1938
1938
  disabled: I,
1939
1939
  fontFamily: ae,
1940
1940
  fontSize: le,
1941
1941
  fontWeight: X,
1942
1942
  currentList: _,
1943
- allowDuplicates: $,
1943
+ allowDuplicates: w,
1944
1944
  minChips: H,
1945
- maxChips: ie,
1945
+ maxChips: se,
1946
1946
  inputPosition: q,
1947
1947
  width: Fe,
1948
- inputName: be,
1948
+ inputName: he,
1949
1949
  inputPlaceholder: ee,
1950
- inputUppercase: Ce,
1951
- inputReadonly: fe,
1952
- blockPaste: Ae,
1953
- inputAutocomplete: Ve,
1954
- required: Te,
1950
+ inputUppercase: Te,
1951
+ inputReadonly: ve,
1952
+ blockPaste: we,
1953
+ inputAutocomplete: ke,
1954
+ required: Be,
1955
1955
  textAlign: j,
1956
1956
  hasBorderRadius: Qe,
1957
1957
  activeTextStyle: v,
1958
- theme: se,
1958
+ theme: de,
1959
1959
  inputStyle: Oe,
1960
1960
  lightBgColor: Xe,
1961
1961
  lightBgColorFocus: S,
1962
1962
  lightBorderColor: Ue,
1963
- lightBorderColorFocus: ve,
1963
+ lightBorderColorFocus: pe,
1964
1964
  lightDisabledBgColor: vt,
1965
1965
  lightTextColor: ht,
1966
1966
  lightChipBgColor: ot,
1967
1967
  lightChipTextColor: ze,
1968
- lightChipRemoveColor: ke,
1968
+ lightChipRemoveColor: Le,
1969
1969
  lightDisabledBorderColor: Lt,
1970
1970
  darkBgColor: pt,
1971
1971
  darkBgColorFocus: St,
1972
1972
  darkBorderColor: xt,
1973
1973
  darkBorderColorFocus: Ct,
1974
- darkDisabledBgColor: Be,
1974
+ darkDisabledBgColor: Ae,
1975
1975
  darkTextColor: gt,
1976
1976
  darkChipBgColor: et,
1977
- darkChipTextColor: T,
1978
- darkChipRemoveColor: R,
1979
- darkDisabledBorderColor: me,
1977
+ darkChipTextColor: V,
1978
+ darkChipRemoveColor: D,
1979
+ darkDisabledBorderColor: Se,
1980
1980
  tabIndex: te,
1981
- hasTabIndexEnter: he,
1981
+ hasTabIndexEnter: ge,
1982
1982
  ariaLabel: tt,
1983
1983
  ariaAttrs: Ge,
1984
1984
  caretColor: Ie,
1985
- selectionBgColor: b,
1986
- selectionTextColor: A,
1987
- showLabel: de,
1988
- label: ge,
1989
- labelBackground: Se,
1985
+ selectionBgColor: y,
1986
+ selectionTextColor: k,
1987
+ showLabel: ce,
1988
+ label: be,
1989
+ labelBackground: ye,
1990
1990
  labelPadding: _e,
1991
1991
  labelBorderRadius: We,
1992
1992
  labelBreakOnActive: Ee,
@@ -2002,23 +2002,23 @@ const Zl = ["for"], Jl = {
2002
2002
  lightTextColorLabelActive: Nt,
2003
2003
  darkTextColorLabel: rt,
2004
2004
  darkTextColorLabelActive: Tt,
2005
- fontFamilyChip: B,
2005
+ fontFamilyChip: L,
2006
2006
  fontSizeChip: E,
2007
2007
  fontWeightChip: Z
2008
- } = Ea(h), Y = oe(""), $e = oe(null), M = oe(null), Wt = oe(null), we = oe([]), At = oe(!1), ue = a(() => {
2009
- const c = I.value ? "component-disabled" : "", w = Q.value !== "b" ? "inline-block" : "block", pe = !Fe.value || Fe.value < 185 ? 185 : Fe.value, Ze = ce ? ce.value : "ffffff", Ot = Ie.value ? Ie.value : "", i = b.value ? b.value : "", C = A.value ? A.value : "", De = D.value !== 0 && !D.value || D.value < 0 ? 1 : D.value, je = k.value !== 0 && !k.value || k.value < 0 ? 0.2 : k.value, Zt = x.value !== 0 && !x.value || x.value < 0 ? 0 : x.value, ga = ae.value ? ae.value : "'Lato', sans-serif", ya = le.value ? le.value : "1.2em", ba = X.value !== 0 && !X.value || X.value < 0 ? 100 : X.value, ma = H.value !== 0 && !H.value || H.value < 0 ? 0 : H.value, Dt = ie.value !== 0 && !ie.value || ie.value < 0 ? 10 : ie.value, ha = !q.value || !["top", "bottom"].includes(q.value) ? "bottom" : q.value, Sa = !Oe.value || !["background", "line", "border"].includes(Oe.value) ? "background" : Oe.value, xa = se.value ? se.value : "light", Ca = de.value ? de.value : !1, dt = He.value !== 0 && !He.value || He.value < 0 ? 5 : He.value, _t = Se.value ? Se.value : "transparent", Jt = qe.value !== 0 && !qe.value || qe.value < 0 ? 15 : qe.value, Qt = _e.value ? _e.value : "1px 5px", Ht = We.value !== 0 && !We.value || We.value < 0 ? 0 : We.value, Xt = Ke.value === null || Ke.value === void 0 ? -13 : Ke.value, ct = at.value === null || at.value === void 0 ? 5 : at.value, Bt = yt.value ? yt.value : "'Lato', sans-serif", Va = Mt.value ? Mt.value : "1em", Ta = Vt.value ? Vt.value : "0.8em", ea = bt.value ? bt.value : 400, ka = lt.value ? lt.value : "#333333", o = rt.value ? rt.value : "#ffffff", m = Nt.value ? Nt.value : "#333333", Re = Tt.value ? Tt.value : "#ffffff", nt = B.value ? B.value : "'Lato', sans-serif", Ba = E.value ? E.value : "1.2em", ta = Z.value ? Z.value : 400;
2008
+ } = Ea(h), Y = oe(""), De = oe(null), M = oe(null), Wt = oe(null), Re = oe([]), At = oe(!1), ue = a(() => {
2009
+ const c = I.value ? "component-disabled" : "", A = Q.value !== "b" ? "inline-block" : "block", ie = !Fe.value || Fe.value < 185 ? 185 : Fe.value, Ze = fe ? fe.value : "ffffff", Ot = Ie.value ? Ie.value : "", i = y.value ? y.value : "", x = k.value ? k.value : "", xe = R.value !== 0 && !R.value || R.value < 0 ? 1 : R.value, je = B.value !== 0 && !B.value || B.value < 0 ? 0.2 : B.value, Zt = C.value !== 0 && !C.value || C.value < 0 ? 0 : C.value, ga = ae.value ? ae.value : "'Lato', sans-serif", ya = le.value ? le.value : "1.2em", ba = X.value !== 0 && !X.value || X.value < 0 ? 100 : X.value, ma = H.value !== 0 && !H.value || H.value < 0 ? 0 : H.value, Dt = se.value !== 0 && !se.value || se.value < 0 ? 10 : se.value, ha = !q.value || !["top", "bottom"].includes(q.value) ? "bottom" : q.value, Sa = !Oe.value || !["background", "line", "border"].includes(Oe.value) ? "background" : Oe.value, xa = de.value ? de.value : "light", Ca = ce.value ? ce.value : !1, dt = He.value !== 0 && !He.value || He.value < 0 ? 5 : He.value, _t = ye.value ? ye.value : "transparent", Jt = qe.value !== 0 && !qe.value || qe.value < 0 ? 15 : qe.value, Qt = _e.value ? _e.value : "1px 5px", Ht = We.value !== 0 && !We.value || We.value < 0 ? 0 : We.value, Xt = Ke.value === null || Ke.value === void 0 ? -13 : Ke.value, ct = at.value === null || at.value === void 0 ? 5 : at.value, Bt = yt.value ? yt.value : "'Lato', sans-serif", Va = Mt.value ? Mt.value : "1em", Ta = Vt.value ? Vt.value : "0.8em", ea = bt.value ? bt.value : 400, ka = lt.value ? lt.value : "#333333", o = rt.value ? rt.value : "#ffffff", m = Nt.value ? Nt.value : "#333333", Ce = Tt.value ? Tt.value : "#ffffff", nt = L.value ? L.value : "'Lato', sans-serif", Ba = E.value ? E.value : "1.2em", ta = Z.value ? Z.value : 400;
2010
2010
  return {
2011
2011
  disabled: c,
2012
- display: w,
2013
- width: pe,
2012
+ display: A,
2013
+ width: ie,
2014
2014
  font: ga,
2015
2015
  fontSize: ya,
2016
2016
  fontWeight: ba,
2017
2017
  textColor: Ze,
2018
2018
  caretColor: Ot,
2019
2019
  selectionBgColor: i,
2020
- selectionTextColor: C,
2021
- paddingX: De,
2020
+ selectionTextColor: x,
2021
+ paddingX: xe,
2022
2022
  paddingY: je,
2023
2023
  borderRadius: Zt,
2024
2024
  minChips: ma,
@@ -2041,32 +2041,32 @@ const Zl = ["for"], Jl = {
2041
2041
  lightTextColorLabel: ka,
2042
2042
  darkTextColorLabel: o,
2043
2043
  lightTextColorLabelActive: m,
2044
- darkTextColorLabelActive: Re,
2044
+ darkTextColorLabelActive: Ce,
2045
2045
  fontFamilyChip: nt,
2046
2046
  fontSizeChip: Ba,
2047
2047
  fontWeightChip: ta
2048
2048
  };
2049
2049
  }), ut = a(() => ue.value.disabled), ne = a(() => {
2050
- const c = ue.value, w = Et.value;
2050
+ const c = ue.value, A = Et.value;
2051
2051
  return {
2052
2052
  display: c.display,
2053
2053
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
2054
2054
  // paddingTop: isActive && showLabel.value ? `${Math.abs(defaultValues.labelActiveTop)}px` : '0',
2055
2055
  paddingTop: "0px",
2056
2056
  // Esconde o label quando não está ativo usando overflow hidden
2057
- overflow: w && de.value ? "visible" : "hidden"
2057
+ overflow: A && ce.value ? "visible" : "hidden"
2058
2058
  };
2059
2059
  }), $t = a(() => {
2060
2060
  const c = ue.value;
2061
2061
  return c.fontSize ? c.fontSize : "1.2em";
2062
2062
  }), P = a(() => {
2063
- const c = ue.value, w = Et.value;
2063
+ const c = ue.value, A = Et.value;
2064
2064
  return {
2065
2065
  color: c.textColor,
2066
2066
  padding: `${c.paddingY}rem ${c.paddingX}rem`,
2067
2067
  fontWeight: c.fontWeight,
2068
2068
  textAlign: j.value,
2069
- marginTop: w && de.value ? `${c.inputLabelMarginActive}px` : "0"
2069
+ marginTop: A && ce.value ? `${c.inputLabelMarginActive}px` : "0"
2070
2070
  };
2071
2071
  }), U = a(() => {
2072
2072
  switch (v.value) {
@@ -2083,13 +2083,13 @@ const Zl = ["for"], Jl = {
2083
2083
  }), z = a(() => ue.value.font), G = a(() => ue.value.textColor), kt = a(() => ue.value.inputPosition === "top" ? "column" : "column-reverse"), wt = a(() => {
2084
2084
  const c = {};
2085
2085
  Ge.value && Object.keys(Ge.value).forEach((Ze) => c[`aria-${Ze}`] = Ge.value[Ze]);
2086
- const w = {
2086
+ const A = {
2087
2087
  "aria-label": tt.value,
2088
2088
  "aria-disabled": I.value,
2089
2089
  ...c
2090
2090
  };
2091
2091
  return Object.fromEntries(
2092
- Object.entries(w).filter(([pe, Ze]) => Ze != null)
2092
+ Object.entries(A).filter(([ie, Ze]) => Ze != null)
2093
2093
  );
2094
2094
  }), it = a(() => {
2095
2095
  const c = ue.value;
@@ -2106,26 +2106,26 @@ const Zl = ["for"], Jl = {
2106
2106
  "--selection-bg-color": N.value,
2107
2107
  "--selection-text-color": Ft.value
2108
2108
  })), ua = a(() => {
2109
- const c = ue.value, w = {
2109
+ const c = ue.value, A = {
2110
2110
  width: `${c.width}px`
2111
2111
  };
2112
- return c.display === "block" ? { width: "auto" } : w;
2113
- }), st = a(() => be.value ? be.value : `${F.value}-name-label`), Et = a(() => At.value || we.value.length > 0 || Y.value && Y.value.trim().length > 0), Pt = a(() => de.value ? At.value || we.value.length > 0 ? ee.value : "" : ee.value), ia = a(() => {
2114
- const c = ue.value, w = Et.value, pe = w ? c.lightTextColorLabelActive : c.lightTextColorLabel, Ze = w ? c.darkTextColorLabelActive : c.darkTextColorLabel;
2112
+ return c.display === "block" ? { width: "auto" } : A;
2113
+ }), st = a(() => he.value ? he.value : `${F.value}-name-label`), Et = a(() => At.value || Re.value.length > 0 || Y.value && Y.value.trim().length > 0), Pt = a(() => ce.value ? At.value || Re.value.length > 0 ? ee.value : "" : ee.value), ia = a(() => {
2114
+ const c = ue.value, A = Et.value, ie = A ? c.lightTextColorLabelActive : c.lightTextColorLabel, Ze = A ? c.darkTextColorLabelActive : c.darkTextColorLabel;
2115
2115
  return {
2116
2116
  fontFamily: c.fontFamilyLabel,
2117
- fontSize: w ? c.fontSizeLabelActive : c.fontSizeLabel,
2117
+ fontSize: A ? c.fontSizeLabelActive : c.fontSizeLabel,
2118
2118
  fontWeight: c.fontWeightLabel,
2119
- color: c.theme === "dark" ? Ze : pe,
2120
- top: w ? `${c.labelActiveTop}px` : "50%",
2121
- left: w ? `${c.labelActiveLeft}px` : `${c.labelLeft}px`,
2122
- transform: w ? "translateY(0)" : "translateY(-50%)",
2119
+ color: c.theme === "dark" ? Ze : ie,
2120
+ top: A ? `${c.labelActiveTop}px` : "50%",
2121
+ left: A ? `${c.labelActiveLeft}px` : `${c.labelLeft}px`,
2122
+ transform: A ? "translateY(0)" : "translateY(-50%)",
2123
2123
  transition: "all 0.2s ease",
2124
- backgroundColor: w ? c.labelBackground : "transparent",
2125
- padding: w ? c.labelPadding : "0",
2126
- borderRadius: w ? `${c.labelBorderRadius}rem` : "0",
2124
+ backgroundColor: A ? c.labelBackground : "transparent",
2125
+ padding: A ? c.labelPadding : "0",
2126
+ borderRadius: A ? `${c.labelBorderRadius}rem` : "0",
2127
2127
  // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
2128
- ...w ? {
2128
+ ...A ? {
2129
2129
  whiteSpace: Ee.value ? "nowrap" : "normal",
2130
2130
  wordWrap: Ee.value ? "normal" : "break-word",
2131
2131
  overflowWrap: Ee.value ? "normal" : "break-word",
@@ -2142,7 +2142,7 @@ const Zl = ["for"], Jl = {
2142
2142
  fontFamily: c.fontFamilyChip
2143
2143
  };
2144
2144
  }), sa = a(() => {
2145
- switch (se.value) {
2145
+ switch (de.value) {
2146
2146
  case "dark":
2147
2147
  return "component__theme--dark";
2148
2148
  default:
@@ -2157,96 +2157,98 @@ const Zl = ["for"], Jl = {
2157
2157
  default:
2158
2158
  return "component__input--background";
2159
2159
  }
2160
- }), da = () => {
2161
- g("clicked");
2160
+ }), da = (c) => {
2161
+ g("clicked", c);
2162
2162
  }, ca = () => {
2163
2163
  At.value = !0, g("focused");
2164
2164
  }, fa = () => {
2165
2165
  At.value = !1, g("blurred");
2166
2166
  }, va = async (c) => {
2167
- var pe;
2168
- const w = ((pe = c.clipboardData) == null ? void 0 : pe.getData("text")) || "";
2169
- g("paste", w), Ae.value && c.preventDefault();
2167
+ var ie;
2168
+ const A = ((ie = c.clipboardData) == null ? void 0 : ie.getData("text")) || "";
2169
+ g("paste", A), we.value && c.preventDefault();
2170
2170
  }, Kt = (c) => {
2171
- if (!(I.value || fe.value) && c.key === "Enter" && Y.value.trim() !== "") {
2171
+ if (!(I.value || ve.value) && c.key === "Enter" && Y.value.trim() !== "") {
2172
2172
  c.preventDefault();
2173
- let w = Y.value.trim();
2174
- Ce.value && (w = w.toUpperCase()), ($.value || !we.value.includes(w)) && pa(w), Y.value = "";
2173
+ let A = Y.value.trim();
2174
+ Te.value && (A = A.toUpperCase()), (w.value || !Re.value.includes(A)) && pa(A), Y.value = "";
2175
2175
  }
2176
2176
  }, pa = (c) => {
2177
- we.value.push(c), g("added", c);
2177
+ Re.value.push(c), g("added", c);
2178
2178
  }, zt = (c) => {
2179
- we.value = we.value.filter((w) => w !== c), g("removed", c);
2179
+ Re.value = Re.value.filter((A) => A !== c), g("removed", c);
2180
2180
  };
2181
2181
  return re(_, (c) => {
2182
- we.value = c, g("changed", c);
2182
+ Re.value = c, g("changed", c);
2183
2183
  }), re(Y, (c) => {
2184
2184
  g("input-changed", c);
2185
- }), (c, w) => u(F) ? (O(), K("div", $a({
2185
+ }), (c, A) => u(F) ? (O(), K("div", $a({
2186
2186
  key: 0,
2187
2187
  class: ["nb-wrapper", ut.value],
2188
2188
  style: [ne.value],
2189
2189
  role: "input"
2190
- }, wt.value, { onClick: da }), [
2191
- u(de) ? (O(), K("label", {
2190
+ }, wt.value, {
2191
+ onClick: A[2] || (A[2] = (ie) => da(ie))
2192
+ }), [
2193
+ u(ce) ? (O(), K("label", {
2192
2194
  key: 0,
2193
2195
  for: st.value,
2194
2196
  class: "component__label",
2195
2197
  style: Ne([ia.value])
2196
2198
  }, [
2197
- jt(Rt(u(ge)), 1),
2198
- u(Te) ? (O(), K("span", Jl, "*")) : ye("", !0)
2199
- ], 12, Zl)) : ye("", !0),
2200
- xe("div", {
2199
+ jt(Rt(u(be)), 1),
2200
+ u(Be) ? (O(), K("span", Jl, "*")) : me("", !0)
2201
+ ], 12, Zl)) : me("", !0),
2202
+ Ve("div", {
2201
2203
  id: u(F),
2202
2204
  ref_key: "chipsContainer",
2203
- ref: $e,
2205
+ ref: De,
2204
2206
  class: Ye(["nb-reset", "component", sa.value, Gt.value]),
2205
2207
  style: Ne([P.value, ua.value, Yt.value])
2206
2208
  }, [
2207
- we.value.length > 0 ? (O(), K("div", {
2209
+ Re.value.length > 0 ? (O(), K("div", {
2208
2210
  key: 0,
2209
2211
  ref_key: "chips",
2210
2212
  ref: Wt,
2211
2213
  class: "chips"
2212
2214
  }, [
2213
- (O(!0), K(gl, null, yl(we.value, (pe) => (O(), K("div", {
2214
- key: pe,
2215
+ (O(!0), K(gl, null, yl(Re.value, (ie) => (O(), K("div", {
2216
+ key: ie,
2215
2217
  class: "chip"
2216
2218
  }, [
2217
2219
  La(c.$slots, "chip", {
2218
- chips: we.value,
2219
- chip: pe,
2220
+ chips: Re.value,
2221
+ chip: ie,
2220
2222
  removeChip: zt
2221
2223
  }, () => [
2222
- xe("span", {
2224
+ Ve("span", {
2223
2225
  class: "chip-text",
2224
2226
  style: Ne([Ut.value])
2225
- }, Rt(pe), 5),
2226
- !u(I) && !u(fe) ? (O(), K("span", {
2227
+ }, Rt(ie), 5),
2228
+ !u(I) && !u(ve) ? (O(), K("span", {
2227
2229
  key: 0,
2228
2230
  class: "chip-remove",
2229
2231
  style: Ne([Ut.value]),
2230
- onClick: (Ze) => zt(pe)
2231
- }, "×", 12, Xl)) : ye("", !0)
2232
+ onClick: (Ze) => zt(ie)
2233
+ }, "×", 12, Xl)) : me("", !0)
2232
2234
  ], !0)
2233
2235
  ]))), 128))
2234
- ], 512)) : ye("", !0),
2235
- Pa(xe("input", {
2236
+ ], 512)) : me("", !0),
2237
+ Pa(Ve("input", {
2236
2238
  ref_key: "chipInput",
2237
2239
  ref: M,
2238
2240
  type: "text",
2239
- "onUpdate:modelValue": w[0] || (w[0] = (pe) => Y.value = pe),
2241
+ "onUpdate:modelValue": A[0] || (A[0] = (ie) => Y.value = ie),
2240
2242
  id: st.value,
2241
2243
  name: st.value,
2242
2244
  placeholder: Pt.value,
2243
- readonly: u(fe),
2244
- autocomplete: u(Ve),
2245
- required: u(Te),
2246
- tabindex: u(I) || u(fe) ? -1 : u(te),
2245
+ readonly: u(ve),
2246
+ autocomplete: u(ke),
2247
+ required: u(Be),
2248
+ tabindex: u(I) || u(ve) ? -1 : u(te),
2247
2249
  class: Ye(["chips-input", U.value]),
2248
2250
  style: Ne([oa.value, ra.value]),
2249
- onKeydown: w[1] || (w[1] = na((pe) => !u(I) && u(he) && Kt(pe), ["enter"])),
2251
+ onKeydown: A[1] || (A[1] = na((ie) => !u(I) && u(ge) && Kt(ie), ["enter"])),
2250
2252
  onFocus: ca,
2251
2253
  onBlur: fa,
2252
2254
  onPaste: va
@@ -2254,9 +2256,9 @@ const Zl = ["for"], Jl = {
2254
2256
  [hl, Y.value]
2255
2257
  ])
2256
2258
  ], 14, Ql)
2257
- ], 16)) : ye("", !0);
2259
+ ], 16)) : me("", !0);
2258
2260
  }
2259
- }), an = /* @__PURE__ */ Oa(tn, [["__scopeId", "data-v-5e4299e4"]]);
2261
+ }), an = /* @__PURE__ */ Oa(tn, [["__scopeId", "data-v-fcb787c2"]]);
2260
2262
  const ln = ["id"], nn = ["for"], on = {
2261
2263
  key: 0,
2262
2264
  class: "component__label--required"
@@ -2274,8 +2276,8 @@ const ln = ["id"], nn = ["for"], on = {
2274
2276
  type: String,
2275
2277
  default: "b",
2276
2278
  validator: (e = "b") => {
2277
- const y = e.toLowerCase();
2278
- return ["b", "ib"].includes(y);
2279
+ const b = e.toLowerCase();
2280
+ return ["b", "ib"].includes(b);
2279
2281
  }
2280
2282
  },
2281
2283
  tabIndex: {
@@ -2666,93 +2668,93 @@ const ln = ["id"], nn = ["for"], on = {
2666
2668
  "entered",
2667
2669
  "paste"
2668
2670
  ],
2669
- setup(e, { emit: y }) {
2671
+ setup(e, { emit: b }) {
2670
2672
  Wa((i) => ({
2671
- "8275e69e": ne.value,
2672
- "383240bc": u(ot),
2673
- "2b8f308f": G.value,
2674
- "520916a1": kt.value,
2675
- e9c7cc0e: wt.value,
2676
- "133db13e": u(pt),
2677
- "0dff0d0a": u(Lt),
2678
- "347c89b4": u(ze),
2679
- "2bfc9d5c": u(ke),
2680
- "047ce06e": u(ht),
2681
- "5aeb328a": u(ve),
2682
- "01cf386e": u(vt),
2683
- "09561f02": At.value,
2684
- "7e4382b6": u(St),
2685
- 26828349: ia.value,
2686
- "06891216": $t.value,
2687
- "228b5755": P.value,
2688
- "1617293e": U.value,
2689
- cf3e4dd0: z.value,
2690
- 44600642: i.styleButtonColor,
2691
- 43491532: Yt.value
2673
+ "627b1b20": ne.value,
2674
+ "25e6215e": u(ot),
2675
+ "472b16c0": G.value,
2676
+ "06b1d412": kt.value,
2677
+ "8ee981ac": wt.value,
2678
+ "2c4f6faf": u(pt),
2679
+ e02b1a8a: u(Lt),
2680
+ "246261d7": u(ze),
2681
+ "41e29141": u(Le),
2682
+ "80039e46": u(ht),
2683
+ "1f413c0e": u(pe),
2684
+ b3eb5342: u(vt),
2685
+ "1466aef0": At.value,
2686
+ "5d9021a7": u(St),
2687
+ "88129a90": ia.value,
2688
+ "4529b8c7": $t.value,
2689
+ "3e273d86": P.value,
2690
+ "8b5b71a2": U.value,
2691
+ "4d099689": z.value,
2692
+ c77e339e: i.styleButtonColor,
2693
+ "30fcf5d4": Yt.value
2692
2694
  })), Aa(() => {
2693
2695
  Y.value = Xe.value;
2694
2696
  }), Ya(() => {
2695
2697
  c();
2696
2698
  });
2697
- const g = y, h = e, {
2699
+ const g = b, h = e, {
2698
2700
  nbId: F,
2699
2701
  display: Q,
2700
- hasTabIndexEnter: ce,
2701
- ariaLabel: D,
2702
- ariaAttrs: k,
2703
- textColor: x,
2702
+ hasTabIndexEnter: fe,
2703
+ ariaLabel: R,
2704
+ ariaAttrs: B,
2705
+ textColor: C,
2704
2706
  caretColor: I,
2705
2707
  selectionBgColor: ae,
2706
2708
  selectionTextColor: le,
2707
2709
  hasBorderRadius: X,
2708
2710
  borderRadius: _,
2709
- disabled: $,
2711
+ disabled: w,
2710
2712
  fontFamily: H,
2711
- fontSize: ie,
2713
+ fontSize: se,
2712
2714
  fontWeight: q,
2713
2715
  fontFamilyMsg: Fe,
2714
- fontSizeMsg: be,
2716
+ fontSizeMsg: he,
2715
2717
  fontWeightMsg: ee,
2716
- textMessageColor: Ce,
2717
- inputWidth: fe,
2718
- inputStyle: Ae,
2719
- activeTextStyle: Ve,
2720
- inputReadonly: Te,
2718
+ textMessageColor: Te,
2719
+ inputWidth: ve,
2720
+ inputStyle: we,
2721
+ activeTextStyle: ke,
2722
+ inputReadonly: Be,
2721
2723
  blockPaste: j,
2722
2724
  hasTrim: Qe,
2723
2725
  inputUppercase: v,
2724
- inputName: se,
2726
+ inputName: de,
2725
2727
  inputPlaceholder: Oe,
2726
2728
  inputText: Xe,
2727
2729
  theme: S,
2728
2730
  tabindex: Ue,
2729
- lightBgColor: ve,
2731
+ lightBgColor: pe,
2730
2732
  lightBgColorFocus: vt,
2731
2733
  lightDisabledBgColor: ht,
2732
2734
  lightTextColor: ot,
2733
2735
  darkBgColor: ze,
2734
- darkBgColorFocus: ke,
2736
+ darkBgColorFocus: Le,
2735
2737
  darkDisabledBgColor: Lt,
2736
2738
  darkTextColor: pt,
2737
2739
  textAlign: St,
2738
2740
  showMsg: xt,
2739
2741
  hasMsg: Ct,
2740
- showLabel: Be,
2742
+ showLabel: Ae,
2741
2743
  labelBackground: gt,
2742
2744
  labelPadding: et,
2743
- labelBorderRadius: T,
2744
- labelBreakOnActive: R,
2745
- labelLeft: me,
2745
+ labelBorderRadius: V,
2746
+ labelBreakOnActive: D,
2747
+ labelLeft: Se,
2746
2748
  inputLabelMarginActive: te,
2747
- labelActiveTop: he,
2749
+ labelActiveTop: ge,
2748
2750
  labelActiveLeft: tt,
2749
2751
  labelRight: Ge,
2750
2752
  labelActiveRight: Ie,
2751
- fontFamilyLabel: b,
2752
- fontSizeLabel: A,
2753
- fontSizeLabelActive: de,
2754
- fontWeightLabel: ge,
2755
- lightTextColorLabel: Se,
2753
+ fontFamilyLabel: y,
2754
+ fontSizeLabel: k,
2755
+ fontSizeLabelActive: ce,
2756
+ fontWeightLabel: be,
2757
+ lightTextColorLabel: ye,
2756
2758
  lightTextColorLabelActive: _e,
2757
2759
  darkTextColorLabel: We,
2758
2760
  darkTextColorLabelActive: Ee,
@@ -2768,14 +2770,14 @@ const ln = ["id"], nn = ["for"], on = {
2768
2770
  maxWidth: Nt,
2769
2771
  minHeight: rt,
2770
2772
  maxHeight: Tt,
2771
- autoResize: B,
2773
+ autoResize: L,
2772
2774
  minRows: E,
2773
2775
  maxRows: Z
2774
- } = Ea(h), Y = oe(""), $e = oe(!1), M = a(() => {
2775
- const i = $.value ? "component-disabled" : "", C = Q.value !== "b" ? "inline-block" : "block", De = x ? x.value : "ffffff", je = I.value ? I.value : "", Zt = ae.value ? ae.value : "", ga = le.value ? le.value : "", ya = X.value ? X.value : !1, ba = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, ma = H.value ? H.value : "'Lato', sans-serif", Dt = ie.value ? ie.value : "1.4em", ha = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, Sa = Fe.value ? Fe.value : "'Lato', sans-serif", xa = be.value ? be.value : "1em", Ca = ee.value !== 0 && !ee.value || ee.value < 0 ? 100 : ee.value, dt = Ce.value ? Ce.value : "#f15574", _t = fe.value ? fe.value : 200, Jt = Ve.value ? Ve.value : "normal", Qt = Te.value ? Te.value : !1, Ht = v.value ? v.value : !1, Xt = S.value ? S.value : "normal", ct = St.value ? St.value : "left", Bt = Ae.value ? Ae.value : "background", Va = Be.value ? Be.value : !1, Ta = me.value !== 0 && !me.value || me.value < 0 ? 5 : me.value, ea = gt.value ? gt.value : "transparent", ka = te.value !== 0 && !te.value || te.value < 0 ? 15 : te.value, o = et.value ? et.value : "1px 5px", m = T.value !== 0 && !T.value || T.value < 0 ? 0 : T.value, Re = he.value === null || he.value === void 0 ? -13 : he.value, nt = tt.value === null || tt.value === void 0 ? 5 : tt.value, Ba = Ge.value === null || Ge.value === void 0 ? 0 : Ge.value, ta = Ie.value === null || Ie.value === void 0 ? 0 : Ie.value, wa = b.value ? b.value : "'Lato', sans-serif", Da = A.value ? A.value : "1em", It = de.value ? de.value : "0.8em", aa = ge.value ? ge.value : 400, qt = Se.value ? Se.value : "#ffffff", Ra = We.value ? We.value : "#000000", _a = _e.value ? _e.value : "#ffffff", Ma = Ee.value ? Ee.value : "#000000", Ha = He.value && He.value > 0 ? He.value : 2, Le = qe.value && qe.value > 0 ? qe.value : 20, qa = Ke.value !== null && Ke.value >= 0 ? Ke.value : null, mt = at.value !== null && at.value >= 0 ? at.value : null, t = yt.value && ["soft", "hard", "off"].includes(yt.value) ? yt.value : "soft", l = Mt.value !== void 0 ? Mt.value : "default", n = Vt.value !== void 0 ? Vt.value : !1, r = bt.value && ["none", "both", "vertical", "horizontal"].includes(bt.value) ? bt.value : "vertical", s = lt.value ? lt.value : "auto", d = Nt.value ? Nt.value : "auto", f = rt.value ? rt.value : "auto", p = Tt.value ? Tt.value : "auto", V = B.value !== void 0 ? B.value : !1, L = E.value !== null && E.value > 0 ? E.value : null, W = Z.value !== null && Z.value > 0 ? Z.value : null;
2776
+ } = Ea(h), Y = oe(""), De = oe(!1), M = a(() => {
2777
+ const i = w.value ? "component-disabled" : "", x = Q.value !== "b" ? "inline-block" : "block", xe = C ? C.value : "ffffff", je = I.value ? I.value : "", Zt = ae.value ? ae.value : "", ga = le.value ? le.value : "", ya = X.value ? X.value : !1, ba = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, ma = H.value ? H.value : "'Lato', sans-serif", Dt = se.value ? se.value : "1.4em", ha = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, Sa = Fe.value ? Fe.value : "'Lato', sans-serif", xa = he.value ? he.value : "1em", Ca = ee.value !== 0 && !ee.value || ee.value < 0 ? 100 : ee.value, dt = Te.value ? Te.value : "#f15574", _t = ve.value ? ve.value : 200, Jt = ke.value ? ke.value : "normal", Qt = Be.value ? Be.value : !1, Ht = v.value ? v.value : !1, Xt = S.value ? S.value : "normal", ct = St.value ? St.value : "left", Bt = we.value ? we.value : "background", Va = Ae.value ? Ae.value : !1, Ta = Se.value !== 0 && !Se.value || Se.value < 0 ? 5 : Se.value, ea = gt.value ? gt.value : "transparent", ka = te.value !== 0 && !te.value || te.value < 0 ? 15 : te.value, o = et.value ? et.value : "1px 5px", m = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, Ce = ge.value === null || ge.value === void 0 ? -13 : ge.value, nt = tt.value === null || tt.value === void 0 ? 5 : tt.value, Ba = Ge.value === null || Ge.value === void 0 ? 0 : Ge.value, ta = Ie.value === null || Ie.value === void 0 ? 0 : Ie.value, wa = y.value ? y.value : "'Lato', sans-serif", Da = k.value ? k.value : "1em", It = ce.value ? ce.value : "0.8em", aa = be.value ? be.value : 400, qt = ye.value ? ye.value : "#ffffff", Ra = We.value ? We.value : "#000000", _a = _e.value ? _e.value : "#ffffff", Ma = Ee.value ? Ee.value : "#000000", Ha = He.value && He.value > 0 ? He.value : 2, $e = qe.value && qe.value > 0 ? qe.value : 20, qa = Ke.value !== null && Ke.value >= 0 ? Ke.value : null, mt = at.value !== null && at.value >= 0 ? at.value : null, t = yt.value && ["soft", "hard", "off"].includes(yt.value) ? yt.value : "soft", l = Mt.value !== void 0 ? Mt.value : "default", n = Vt.value !== void 0 ? Vt.value : !1, r = bt.value && ["none", "both", "vertical", "horizontal"].includes(bt.value) ? bt.value : "vertical", s = lt.value ? lt.value : "auto", d = Nt.value ? Nt.value : "auto", f = rt.value ? rt.value : "auto", p = Tt.value ? Tt.value : "auto", T = L.value !== void 0 ? L.value : !1, $ = E.value !== null && E.value > 0 ? E.value : null, W = Z.value !== null && Z.value > 0 ? Z.value : null;
2776
2778
  return {
2777
2779
  disabled: i,
2778
- display: C,
2780
+ display: x,
2779
2781
  font: ma,
2780
2782
  fontSize: Dt,
2781
2783
  fontWeight: ha,
@@ -2783,7 +2785,7 @@ const ln = ["id"], nn = ["for"], on = {
2783
2785
  fontSizeMsg: xa,
2784
2786
  fontWeightMsg: Ca,
2785
2787
  textMessageColor: dt,
2786
- textColor: De,
2788
+ textColor: xe,
2787
2789
  caretColor: je,
2788
2790
  selectionBgColor: Zt,
2789
2791
  selectionTextColor: ga,
@@ -2802,7 +2804,7 @@ const ln = ["id"], nn = ["for"], on = {
2802
2804
  labelBorderRadius: m,
2803
2805
  labelLeft: Ta,
2804
2806
  inputLabelMarginActive: ka,
2805
- labelActiveTop: Re,
2807
+ labelActiveTop: Ce,
2806
2808
  labelActiveLeft: nt,
2807
2809
  labelRight: Ba,
2808
2810
  labelActiveRight: ta,
@@ -2815,7 +2817,7 @@ const ln = ["id"], nn = ["for"], on = {
2815
2817
  lightTextColorLabelActive: _a,
2816
2818
  darkTextColorLabelActive: Ma,
2817
2819
  rows: Ha,
2818
- cols: Le,
2820
+ cols: $e,
2819
2821
  maxlength: qa,
2820
2822
  minlength: mt,
2821
2823
  wrap: t,
@@ -2826,33 +2828,33 @@ const ln = ["id"], nn = ["for"], on = {
2826
2828
  maxWidth: d,
2827
2829
  minHeight: f,
2828
2830
  maxHeight: p,
2829
- autoResize: V,
2830
- minRows: L,
2831
+ autoResize: T,
2832
+ minRows: $,
2831
2833
  maxRows: W
2832
2834
  };
2833
- }), Wt = a(() => M.value.disabled), we = a(() => {
2834
- const i = M.value, C = Pt.value;
2835
+ }), Wt = a(() => M.value.disabled), Re = a(() => {
2836
+ const i = M.value, x = Pt.value;
2835
2837
  return {
2836
2838
  display: i.display,
2837
2839
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
2838
2840
  // paddingTop: isActive && showLabel.value ? `${Math.abs(defaultValues.labelActiveTop)}px` : '0',
2839
2841
  paddingTop: "0px",
2840
2842
  // Esconde o label quando não está ativo usando overflow hidden
2841
- overflow: C && Be.value ? "visible" : "hidden"
2843
+ overflow: x && Ae.value ? "visible" : "hidden"
2842
2844
  };
2843
2845
  }), At = a(() => {
2844
2846
  const i = M.value;
2845
2847
  return i.fontSize ? i.fontSize : "1.4em";
2846
2848
  }), ue = a(() => {
2847
- const i = M.value, C = Pt.value;
2849
+ const i = M.value, x = Pt.value;
2848
2850
  return {
2849
2851
  fontWeight: i.fontWeight,
2850
- marginTop: C && Be.value ? `${i.inputLabelMarginActive}px` : "0",
2852
+ marginTop: x && Ae.value ? `${i.inputLabelMarginActive}px` : "0",
2851
2853
  // Quando o label está ativo, define altura mínima igual ao input para alinhar baseline
2852
2854
  // Mas permite que o textarea cresça quando há conteúdo
2853
- minHeight: (C && Be.value, "28px"),
2854
- height: C && Be.value ? "auto" : "28px",
2855
- maxHeight: C && Be.value ? void 0 : "28px"
2855
+ minHeight: (x && Ae.value, "28px"),
2856
+ height: x && Ae.value ? "auto" : "28px",
2857
+ maxHeight: x && Ae.value ? void 0 : "28px"
2856
2858
  };
2857
2859
  }), ut = a(() => {
2858
2860
  const i = M.value;
@@ -2872,7 +2874,7 @@ const ln = ["id"], nn = ["for"], on = {
2872
2874
  width: `${i.inputWidth}px`
2873
2875
  };
2874
2876
  }), N = a(() => {
2875
- switch (Ae.value) {
2877
+ switch (we.value) {
2876
2878
  case "line":
2877
2879
  return "component__input--line";
2878
2880
  case "border":
@@ -2896,42 +2898,42 @@ const ln = ["id"], nn = ["for"], on = {
2896
2898
  default:
2897
2899
  return "component__theme--light";
2898
2900
  }
2899
- }), ra = a(() => M.value.inputReadonly ? "component__input--read-only" : ""), ua = a(() => M.value.inputUppercase ? "component__input--uppercase" : ""), st = a(() => se.value ? se.value : `${F.value}-name-label`), Et = a(() => Be.value ? $e.value ? Oe.value : "" : Oe.value), Pt = a(() => $e.value || Y.value && Y.value.trim().length > 0);
2900
- a(() => $e.value ? "component__input--active" : "component__input--no-active");
2901
+ }), ra = a(() => M.value.inputReadonly ? "component__input--read-only" : ""), ua = a(() => M.value.inputUppercase ? "component__input--uppercase" : ""), st = a(() => de.value ? de.value : `${F.value}-name-label`), Et = a(() => Ae.value ? De.value ? Oe.value : "" : Oe.value), Pt = a(() => De.value || Y.value && Y.value.trim().length > 0);
2902
+ a(() => De.value ? "component__input--active" : "component__input--no-active");
2901
2903
  const ia = a(() => "6px 10px"), Ut = a(() => !!(xt.value && Ct.value)), sa = a(() => {
2902
2904
  const i = {};
2903
- k.value && Object.keys(k.value).forEach((je) => i[`aria-${je}`] = k.value[je]);
2904
- const C = {
2905
- "aria-label": D.value,
2906
- "aria-disabled": $.value,
2905
+ B.value && Object.keys(B.value).forEach((je) => i[`aria-${je}`] = B.value[je]);
2906
+ const x = {
2907
+ "aria-label": R.value,
2908
+ "aria-disabled": w.value,
2907
2909
  ...i
2908
2910
  };
2909
2911
  return Object.fromEntries(
2910
- Object.entries(C).filter(([De, je]) => je != null)
2912
+ Object.entries(x).filter(([xe, je]) => je != null)
2911
2913
  );
2912
2914
  }), Gt = a(() => {
2913
- const i = M.value, C = Pt.value, De = C ? i.lightTextColorLabelActive : i.lightTextColorLabel, je = C ? i.darkTextColorLabelActive : i.darkTextColorLabel;
2915
+ const i = M.value, x = Pt.value, xe = x ? i.lightTextColorLabelActive : i.lightTextColorLabel, je = x ? i.darkTextColorLabelActive : i.darkTextColorLabel;
2914
2916
  return {
2915
2917
  fontFamily: i.fontFamilyLabel,
2916
- fontSize: C ? i.fontSizeLabelActive : i.fontSizeLabel,
2918
+ fontSize: x ? i.fontSizeLabelActive : i.fontSizeLabel,
2917
2919
  fontWeight: i.fontWeightLabel,
2918
- color: i.theme === "dark" ? je : De,
2919
- top: C ? `${i.labelActiveTop}px` : "50%",
2920
- transform: C ? "translateY(0)" : "translateY(-50%)",
2921
- left: C ? `${i.labelActiveLeft}px` : `${i.labelLeft}px`,
2922
- right: C ? `${i.labelActiveRight}px` : `${i.labelRight}px`,
2920
+ color: i.theme === "dark" ? je : xe,
2921
+ top: x ? `${i.labelActiveTop}px` : "50%",
2922
+ transform: x ? "translateY(0)" : "translateY(-50%)",
2923
+ left: x ? `${i.labelActiveLeft}px` : `${i.labelLeft}px`,
2924
+ right: x ? `${i.labelActiveRight}px` : `${i.labelRight}px`,
2923
2925
  transition: "all 0.2s ease",
2924
- backgroundColor: C ? i.labelBackground : "transparent",
2925
- padding: C ? i.labelPadding : "0",
2926
- borderRadius: C ? `${i.labelBorderRadius}rem` : "0",
2926
+ backgroundColor: x ? i.labelBackground : "transparent",
2927
+ padding: x ? i.labelPadding : "0",
2928
+ borderRadius: x ? `${i.labelBorderRadius}rem` : "0",
2927
2929
  // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
2928
- ...C ? {
2929
- whiteSpace: R.value ? "nowrap" : "normal",
2930
- wordWrap: R.value ? "normal" : "break-word",
2931
- overflowWrap: R.value ? "normal" : "break-word",
2930
+ ...x ? {
2931
+ whiteSpace: D.value ? "nowrap" : "normal",
2932
+ wordWrap: D.value ? "normal" : "break-word",
2933
+ overflowWrap: D.value ? "normal" : "break-word",
2932
2934
  maxWidth: "100%",
2933
- textOverflow: R.value ? "ellipsis" : "clip",
2934
- overflow: R.value ? "hidden" : "visible"
2935
+ textOverflow: D.value ? "ellipsis" : "clip",
2936
+ overflow: D.value ? "hidden" : "visible"
2935
2937
  } : {}
2936
2938
  };
2937
2939
  });
@@ -2940,14 +2942,14 @@ const ln = ["id"], nn = ["for"], on = {
2940
2942
  return i.theme === "dark" ? i.darkTextColorLabelActive : i.lightTextColorLabelActive;
2941
2943
  });
2942
2944
  const da = a(() => {
2943
- const i = M.value, C = {
2945
+ const i = M.value, x = {
2944
2946
  rows: i.rows,
2945
2947
  cols: i.cols,
2946
2948
  wrap: i.wrap,
2947
2949
  spellcheck: i.spellcheck === "default" ? void 0 : i.spellcheck,
2948
2950
  autofocus: i.autofocus || void 0
2949
2951
  };
2950
- return i.maxlength !== null && (C.maxlength = i.maxlength), i.minlength !== null && (C.minlength = i.minlength), C;
2952
+ return i.maxlength !== null && (x.maxlength = i.maxlength), i.minlength !== null && (x.minlength = i.minlength), x;
2951
2953
  }), ca = a(() => ({
2952
2954
  resize: M.value.resize
2953
2955
  })), fa = a(() => M.value.wrap === "off" ? {
@@ -2975,14 +2977,14 @@ const ln = ["id"], nn = ["for"], on = {
2975
2977
  };
2976
2978
  }), c = () => {
2977
2979
  Y.value = Xe.value;
2978
- }, w = () => {
2979
- g("clicked");
2980
- }, pe = () => {
2981
- $.value || M.value.inputReadonly || !ce.value || g("entered", Y.value);
2980
+ }, A = (i) => {
2981
+ g("clicked", i);
2982
+ }, ie = () => {
2983
+ w.value || M.value.inputReadonly || !fe.value || g("entered", Y.value);
2982
2984
  }, Ze = async (i) => {
2983
- var De;
2984
- const C = ((De = i.clipboardData) == null ? void 0 : De.getData("text")) || "";
2985
- g("paste", C), j.value && i.preventDefault();
2985
+ var xe;
2986
+ const x = ((xe = i.clipboardData) == null ? void 0 : xe.getData("text")) || "";
2987
+ g("paste", x), j.value && i.preventDefault();
2986
2988
  }, Ot = () => {
2987
2989
  let i = Y.value;
2988
2990
  Qe.value && (i = i.trim()), g("current-value", i);
@@ -2991,33 +2993,33 @@ const ln = ["id"], nn = ["for"], on = {
2991
2993
  i !== Y.value && (Y.value = i);
2992
2994
  }, { immediate: !0 }), re(Y, (i) => {
2993
2995
  Qe.value && (i = i.trim()), g("changed", i);
2994
- }), re($e, (i) => {
2996
+ }), re(De, (i) => {
2995
2997
  g(i ? "focused" : "blurred");
2996
2998
  }), re(Y, () => {
2997
2999
  Ot();
2998
- }, { immediate: !0 }), (i, C) => u(F) ? (O(), K("div", $a({
3000
+ }, { immediate: !0 }), (i, x) => u(F) ? (O(), K("div", $a({
2999
3001
  key: 0,
3000
3002
  class: ["nb-wrapper", Wt.value],
3001
- style: [we.value, it.value, ut.value],
3003
+ style: [Re.value, it.value, ut.value],
3002
3004
  role: "input"
3003
3005
  }, sa.value), [
3004
- xe("div", {
3006
+ Ve("div", {
3005
3007
  id: u(F),
3006
3008
  class: Ye(["nb-reset", "component", oa.value, ra.value, N.value]),
3007
3009
  style: Ne([ue.value, it.value, ut.value]),
3008
- onClick: w
3010
+ onClick: x[4] || (x[4] = (xe) => A(xe))
3009
3011
  }, [
3010
- u(Be) ? (O(), K("label", {
3012
+ u(Ae) ? (O(), K("label", {
3011
3013
  key: 0,
3012
3014
  for: st.value,
3013
3015
  class: "component__label",
3014
3016
  style: Ne([Gt.value])
3015
3017
  }, [
3016
3018
  jt(Rt(e.label), 1),
3017
- e.required ? (O(), K("span", on, "*")) : ye("", !0)
3018
- ], 12, nn)) : ye("", !0),
3019
- Pa(xe("textarea", $a({
3020
- "onUpdate:modelValue": C[0] || (C[0] = (De) => Y.value = De),
3019
+ e.required ? (O(), K("span", on, "*")) : me("", !0)
3020
+ ], 12, nn)) : me("", !0),
3021
+ Pa(Ve("textarea", $a({
3022
+ "onUpdate:modelValue": x[0] || (x[0] = (xe) => Y.value = xe),
3021
3023
  id: st.value,
3022
3024
  name: st.value
3023
3025
  }, da.value, {
@@ -3026,17 +3028,17 @@ const ln = ["id"], nn = ["for"], on = {
3026
3028
  Ft.value
3027
3029
  ]],
3028
3030
  placeholder: Et.value,
3029
- disabled: u($) || u(Te),
3031
+ disabled: u(w) || u(Be),
3030
3032
  required: e.required,
3031
- readonly: u(Te),
3033
+ readonly: u(Be),
3032
3034
  autocomplete: e.inputAutocomplete,
3033
- tabindex: u($) || u(Te) ? -1 : u(Ue),
3035
+ tabindex: u(w) || u(Be) ? -1 : u(Ue),
3034
3036
  role: "textbox",
3035
3037
  style: [ut.value, ca.value, fa.value, va.value, Kt.value, pa.value, zt.value],
3036
- onFocus: C[1] || (C[1] = (De) => $e.value = !0),
3037
- onBlur: C[2] || (C[2] = (De) => $e.value = !1),
3038
+ onFocus: x[1] || (x[1] = (xe) => De.value = !0),
3039
+ onBlur: x[2] || (x[2] = (xe) => De.value = !1),
3038
3040
  onInput: Ot,
3039
- onKeydown: C[3] || (C[3] = na((De) => !u($) && u(ce) && pe(), ["enter"])),
3041
+ onKeydown: x[3] || (x[3] = na((xe) => !u(w) && u(fe) && ie(), ["enter"])),
3040
3042
  onPaste: Ze
3041
3043
  }), null, 16, rn), [
3042
3044
  [hl, Y.value]
@@ -3049,58 +3051,58 @@ const ln = ["id"], nn = ["for"], on = {
3049
3051
  La(i.$slots, "message", {}, () => [
3050
3052
  jt(Rt(e.message), 1)
3051
3053
  ], !0)
3052
- ], 2)) : ye("", !0)
3053
- ], 16)) : ye("", !0);
3054
+ ], 2)) : me("", !0)
3055
+ ], 16)) : me("", !0);
3054
3056
  }
3055
- }), sn = /* @__PURE__ */ Oa(un, [["__scopeId", "data-v-32bd91a4"]]), za = (e) => String(e).padStart(2, "0"), Na = (e) => {
3057
+ }), sn = /* @__PURE__ */ Oa(un, [["__scopeId", "data-v-56d3a040"]]), za = (e) => String(e).padStart(2, "0"), Na = (e) => {
3056
3058
  if (!e || !(e instanceof Date))
3057
3059
  return null;
3058
- const y = e.getFullYear(), g = za(e.getMonth() + 1), h = za(e.getDate()), F = za(e.getHours()), Q = za(e.getMinutes()), ce = za(e.getSeconds());
3059
- return `${y}-${g}-${h}T${F}:${Q}:${ce}`;
3060
- }, Fa = (e, y = "Z") => {
3060
+ const b = e.getFullYear(), g = za(e.getMonth() + 1), h = za(e.getDate()), F = za(e.getHours()), Q = za(e.getMinutes()), fe = za(e.getSeconds());
3061
+ return `${b}-${g}-${h}T${F}:${Q}:${fe}`;
3062
+ }, Fa = (e, b = "Z") => {
3061
3063
  if (!e || !(e instanceof Date))
3062
3064
  return null;
3063
3065
  const g = e.toISOString();
3064
- return y === "+00:00" ? g.replace("Z", "+00:00") : g;
3065
- }, bl = (e, y) => !e || !y ? !1 : e.getFullYear() === y.getFullYear() && // Verificar se o ano é o mesmo
3066
- e.getMonth() === y.getMonth() && // Verificar se o mês é o mesmo
3067
- e.getDate() === y.getDate(), ja = (e) => {
3066
+ return b === "+00:00" ? g.replace("Z", "+00:00") : g;
3067
+ }, bl = (e, b) => !e || !b ? !1 : e.getFullYear() === b.getFullYear() && // Verificar se o ano é o mesmo
3068
+ e.getMonth() === b.getMonth() && // Verificar se o mês é o mesmo
3069
+ e.getDate() === b.getDate(), ja = (e) => {
3068
3070
  if (!e)
3069
3071
  return null;
3070
3072
  if (/^\d{4}-\d{2}-\d{2}$/.test(e)) {
3071
3073
  const [g, h, F] = e.split("-").map(Number);
3072
3074
  return new Date(g, h - 1, F);
3073
3075
  }
3074
- const y = new Date(e);
3075
- return isNaN(y.getTime()) ? null : y;
3076
- }, dn = (e, y = {}) => {
3076
+ const b = new Date(e);
3077
+ return isNaN(b.getTime()) ? null : b;
3078
+ }, dn = (e, b = {}) => {
3077
3079
  const {
3078
3080
  inputType: g,
3079
3081
  hasSeconds: h = !1,
3080
3082
  allowRange: F = !1,
3081
3083
  timezoneFormat: Q = "Z",
3082
- locale: ce = "en-US"
3083
- } = y;
3084
+ locale: fe = "en-US"
3085
+ } = b;
3084
3086
  if (!e || e === "" || e === null || e === void 0)
3085
3087
  return g === "date" ? { date: null, dateString: null, isoString: null, isoStringLocal: null, day: null } : g === "time" ? { hour: 0, minute: 0, second: void 0, timeString: "" } : g === "datetime-local" ? { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null } : g === "week" ? { weekString: null, weekStartDate: null, weekEndDate: null, weekNumber: null, weekYear: null, isoString: null, isoStringLocal: null } : g === "month" ? { date: null, dateString: null, month: null, year: null, monthName: null, isoString: null, isoStringLocal: null } : F ? { startDate: null, endDate: null, isRange: !0, isoString: null, isoStringLocal: null } : null;
3086
3088
  try {
3087
3089
  if (g === "date") {
3088
- const D = ja(e);
3089
- if (!D)
3090
+ const R = ja(e);
3091
+ if (!R)
3090
3092
  return { date: null, dateString: null, isoString: null, isoStringLocal: null, day: null };
3091
- const k = /* @__PURE__ */ new Date();
3092
- k.setHours(0, 0, 0, 0);
3093
- const x = new Date(D.getTime());
3094
- return x.setHours(0, 0, 0, 0), {
3095
- date: x,
3093
+ const B = /* @__PURE__ */ new Date();
3094
+ B.setHours(0, 0, 0, 0);
3095
+ const C = new Date(R.getTime());
3096
+ return C.setHours(0, 0, 0, 0), {
3097
+ date: C,
3096
3098
  dateString: e,
3097
- isoString: Fa(x, Q),
3098
- isoStringLocal: Na(x),
3099
+ isoString: Fa(C, Q),
3100
+ isoStringLocal: Na(C),
3099
3101
  day: {
3100
- date: x.getDate(),
3101
- fullDate: x,
3102
+ date: C.getDate(),
3103
+ fullDate: C,
3102
3104
  isOtherMonth: !1,
3103
- isToday: bl(x, k),
3105
+ isToday: bl(C, B),
3104
3106
  isSelected: !0,
3105
3107
  isInRange: !1,
3106
3108
  isRangeStart: !1,
@@ -3110,36 +3112,36 @@ e.getDate() === y.getDate(), ja = (e) => {
3110
3112
  }
3111
3113
  };
3112
3114
  } else if (g === "time") {
3113
- const D = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, k = e.match(D);
3114
- if (!k)
3115
+ const R = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, B = e.match(R);
3116
+ if (!B)
3115
3117
  return { hour: 0, minute: 0, second: void 0, timeString: "" };
3116
- const x = parseInt(k[1], 10), I = parseInt(k[2], 10), ae = k[3] ? parseInt(k[3], 10) : void 0;
3118
+ const C = parseInt(B[1], 10), I = parseInt(B[2], 10), ae = B[3] ? parseInt(B[3], 10) : void 0;
3117
3119
  return {
3118
- hour: x,
3120
+ hour: C,
3119
3121
  minute: I,
3120
3122
  second: h ? ae : void 0,
3121
3123
  timeString: e
3122
3124
  };
3123
3125
  } else if (g === "datetime-local") {
3124
- const D = e.split("T");
3125
- if (D.length !== 2)
3126
+ const R = e.split("T");
3127
+ if (R.length !== 2)
3126
3128
  return { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null };
3127
- const k = D[0], x = D[1], I = ja(k);
3129
+ const B = R[0], C = R[1], I = ja(B);
3128
3130
  if (!I)
3129
3131
  return { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null };
3130
- const ae = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, le = x.match(ae);
3132
+ const ae = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, le = C.match(ae);
3131
3133
  if (!le)
3132
3134
  return { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null };
3133
- const X = parseInt(le[1], 10), _ = parseInt(le[2], 10), $ = le[3] ? parseInt(le[3], 10) : void 0, H = new Date(I.getTime());
3134
- H.setHours(X, _, $ || 0, 0);
3135
- const ie = /* @__PURE__ */ new Date();
3136
- ie.setHours(0, 0, 0, 0);
3135
+ const X = parseInt(le[1], 10), _ = parseInt(le[2], 10), w = le[3] ? parseInt(le[3], 10) : void 0, H = new Date(I.getTime());
3136
+ H.setHours(X, _, w || 0, 0);
3137
+ const se = /* @__PURE__ */ new Date();
3138
+ se.setHours(0, 0, 0, 0);
3137
3139
  const q = new Date(I.getTime());
3138
3140
  return q.setHours(0, 0, 0, 0), {
3139
3141
  date: q,
3140
3142
  hour: X,
3141
3143
  minute: _,
3142
- second: h ? $ : void 0,
3144
+ second: h ? w : void 0,
3143
3145
  datetimeString: e,
3144
3146
  isoString: Fa(H, Q),
3145
3147
  isoStringLocal: Na(H),
@@ -3147,7 +3149,7 @@ e.getDate() === y.getDate(), ja = (e) => {
3147
3149
  date: q.getDate(),
3148
3150
  fullDate: q,
3149
3151
  isOtherMonth: !1,
3150
- isToday: bl(q, ie),
3152
+ isToday: bl(q, se),
3151
3153
  isSelected: !0,
3152
3154
  isInRange: !1,
3153
3155
  isRangeStart: !1,
@@ -3157,57 +3159,57 @@ e.getDate() === y.getDate(), ja = (e) => {
3157
3159
  }
3158
3160
  };
3159
3161
  } else if (g === "week") {
3160
- const D = /^(\d{4})-W(\d{2})$/, k = e.match(D);
3161
- if (!k)
3162
+ const R = /^(\d{4})-W(\d{2})$/, B = e.match(R);
3163
+ if (!B)
3162
3164
  return { weekString: null, weekStartDate: null, weekEndDate: null, weekNumber: null, weekYear: null, isoString: null, isoStringLocal: null };
3163
- const x = parseInt(k[1], 10), I = parseInt(k[2], 10), X = (8 - (new Date(x, 0, 4).getDay() || 7)) % 7, _ = new Date(x, 0, 4 + X), $ = new Date(_.getTime());
3164
- $.setDate(_.getDate() + (I - 1) * 7), $.setHours(0, 0, 0, 0);
3165
- const H = new Date($.getTime());
3166
- return H.setDate($.getDate() + 6), H.setHours(23, 59, 59, 999), {
3165
+ const C = parseInt(B[1], 10), I = parseInt(B[2], 10), X = (8 - (new Date(C, 0, 4).getDay() || 7)) % 7, _ = new Date(C, 0, 4 + X), w = new Date(_.getTime());
3166
+ w.setDate(_.getDate() + (I - 1) * 7), w.setHours(0, 0, 0, 0);
3167
+ const H = new Date(w.getTime());
3168
+ return H.setDate(w.getDate() + 6), H.setHours(23, 59, 59, 999), {
3167
3169
  weekString: e,
3168
- weekStartDate: $,
3170
+ weekStartDate: w,
3169
3171
  weekEndDate: H,
3170
3172
  weekNumber: I,
3171
- weekYear: x,
3172
- isoString: Fa($, Q),
3173
- isoStringLocal: Na($)
3173
+ weekYear: C,
3174
+ isoString: Fa(w, Q),
3175
+ isoStringLocal: Na(w)
3174
3176
  };
3175
3177
  } else if (g === "month") {
3176
- const D = /^(\d{4})-(\d{2})$/, k = e.match(D);
3177
- if (!k)
3178
+ const R = /^(\d{4})-(\d{2})$/, B = e.match(R);
3179
+ if (!B)
3178
3180
  return { date: null, dateString: null, month: null, year: null, monthName: null, isoString: null, isoStringLocal: null };
3179
- const x = parseInt(k[1], 10), I = parseInt(k[2], 10) - 1, ae = new Date(x, I, 1);
3181
+ const C = parseInt(B[1], 10), I = parseInt(B[2], 10) - 1, ae = new Date(C, I, 1);
3180
3182
  ae.setHours(0, 0, 0, 0);
3181
3183
  const le = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
3182
3184
  return {
3183
3185
  date: ae,
3184
- dateString: `${x}-${za(I + 1)}-01`,
3186
+ dateString: `${C}-${za(I + 1)}-01`,
3185
3187
  month: I,
3186
- year: x,
3188
+ year: C,
3187
3189
  monthName: le[I],
3188
3190
  isoString: Fa(ae, Q),
3189
3191
  isoStringLocal: Na(ae)
3190
3192
  };
3191
3193
  } else if (F && typeof e == "string" && e.startsWith("{"))
3192
3194
  try {
3193
- const D = JSON.parse(e);
3194
- if (D && (D.startDate || D.endDate)) {
3195
- const k = D.startDate ? ja(D.startDate) : null, x = D.endDate ? ja(D.endDate) : null;
3196
- return k && x ? (k.setHours(0, 0, 0, 0), x.setHours(0, 0, 0, 0), {
3197
- startDate: k,
3198
- endDate: x,
3195
+ const R = JSON.parse(e);
3196
+ if (R && (R.startDate || R.endDate)) {
3197
+ const B = R.startDate ? ja(R.startDate) : null, C = R.endDate ? ja(R.endDate) : null;
3198
+ return B && C ? (B.setHours(0, 0, 0, 0), C.setHours(0, 0, 0, 0), {
3199
+ startDate: B,
3200
+ endDate: C,
3199
3201
  isRange: !0,
3200
3202
  isoString: {
3201
- start: Fa(k, Q),
3202
- end: Fa(x, Q)
3203
+ start: Fa(B, Q),
3204
+ end: Fa(C, Q)
3203
3205
  },
3204
3206
  isoStringLocal: {
3205
- start: Na(k),
3206
- end: Na(x)
3207
+ start: Na(B),
3208
+ end: Na(C)
3207
3209
  }
3208
3210
  }) : {
3209
- startDate: k,
3210
- endDate: x,
3211
+ startDate: B,
3212
+ endDate: C,
3211
3213
  isRange: !0,
3212
3214
  isoString: null,
3213
3215
  isoStringLocal: null
@@ -3216,8 +3218,8 @@ e.getDate() === y.getDate(), ja = (e) => {
3216
3218
  } catch {
3217
3219
  return { startDate: null, endDate: null, isRange: !0, isoString: null, isoStringLocal: null };
3218
3220
  }
3219
- } catch (D) {
3220
- console.error("Error building complete data from inputText:", D);
3221
+ } catch (R) {
3222
+ console.error("Error building complete data from inputText:", R);
3221
3223
  }
3222
3224
  return null;
3223
3225
  };
@@ -3238,8 +3240,8 @@ const cn = ["id"], fn = ["for"], vn = {
3238
3240
  type: String,
3239
3241
  default: "b",
3240
3242
  validator: (e = "b") => {
3241
- const y = e.toLowerCase();
3242
- return ["b", "ib"].includes(y);
3243
+ const b = e.toLowerCase();
3244
+ return ["b", "ib"].includes(b);
3243
3245
  }
3244
3246
  },
3245
3247
  tabIndex: {
@@ -3630,7 +3632,7 @@ const cn = ["id"], fn = ["for"], vn = {
3630
3632
  calendarEvents: {
3631
3633
  type: Array,
3632
3634
  default: () => [],
3633
- validator: (e) => Array.isArray(e) && e.every((y) => y && y.date && (y.color || !0))
3635
+ validator: (e) => Array.isArray(e) && e.every((b) => b && b.date && (b.color || !0))
3634
3636
  },
3635
3637
  // Calendar props - Text
3636
3638
  calendarSelectMonthText: {
@@ -3874,98 +3876,98 @@ const cn = ["id"], fn = ["for"], vn = {
3874
3876
  "date-selected",
3875
3877
  "month-changed"
3876
3878
  ],
3877
- setup(e, { emit: y }) {
3879
+ setup(e, { emit: b }) {
3878
3880
  Wa((t) => ({
3879
- fec94d28: oa.value,
3880
- "2979c624": it.value,
3881
- "7a5cbe9d": u(et),
3882
- "63d530f4": ia.value,
3883
- c6b71174: Ut.value,
3884
- c73c3544: sa.value,
3885
- "416286e3": u(te),
3886
- "8e575a22": u(me),
3887
- "41f9b60b": u(T),
3888
- "3403c07e": Et.value,
3889
- "8b0884e6": u(R),
3890
- ab4a5c7a: C.value,
3891
- "98e19656": De.value,
3892
- "975f51ae": u(gt),
3893
- f49ad776: u(Ct),
3894
- "4096b393": u(Be),
3895
- "6196f2db": u(he),
3896
- "5149e504": Ze.value,
3897
- "62c10cfb": ra.value,
3898
- "5ad157ba": ua.value,
3899
- "54dea463": st.value,
3900
- "3a078c86": Pt.value,
3901
- "14da127d": t.styleButtonColor
3881
+ "78d85593": oa.value,
3882
+ "374885dd": it.value,
3883
+ "2665f604": u(et),
3884
+ "38f2e66d": ia.value,
3885
+ "30b86dff": Ut.value,
3886
+ "7b5311d7": sa.value,
3887
+ "4f31469c": u(te),
3888
+ "968eb830": u(Se),
3889
+ "49b71004": u(V),
3890
+ "3c3b1e8c": Et.value,
3891
+ edd69198: u(D),
3892
+ "78f3cb6a": x.value,
3893
+ "47a32b8e": xe.value,
3894
+ "34f62550": u(gt),
3895
+ "75a0796c": u(Ct),
3896
+ "451ceecc": u(Ae),
3897
+ "76a47714": u(ge),
3898
+ "4137ca2b": Ze.value,
3899
+ "6a7e66f4": ra.value,
3900
+ "2fef0d33": ua.value,
3901
+ "5964df9c": st.value,
3902
+ 77103076: Pt.value,
3903
+ "3919e7b8": t.styleButtonColor
3902
3904
  }));
3903
3905
  const g = Bl(
3904
3906
  () => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
3905
3907
  );
3906
3908
  Aa(() => {
3907
- B.value = S.value;
3909
+ L.value = S.value;
3908
3910
  }), Ya(() => {
3909
3911
  Zt();
3910
3912
  });
3911
- const h = y, F = e, {
3913
+ const h = b, F = e, {
3912
3914
  nbId: Q,
3913
- display: ce,
3914
- hasTabIndexEnter: D,
3915
- ariaLabel: k,
3916
- ariaAttrs: x,
3915
+ display: fe,
3916
+ hasTabIndexEnter: R,
3917
+ ariaLabel: B,
3918
+ ariaAttrs: C,
3917
3919
  caretColor: I,
3918
3920
  selectionBgColor: ae,
3919
3921
  selectionTextColor: le,
3920
3922
  hasBorderRadius: X,
3921
3923
  borderRadius: _,
3922
- disabled: $,
3924
+ disabled: w,
3923
3925
  fontFamily: H,
3924
- fontSize: ie,
3926
+ fontSize: se,
3925
3927
  fontWeight: q,
3926
3928
  fontFamilyMsg: Fe,
3927
- fontSizeMsg: be,
3929
+ fontSizeMsg: he,
3928
3930
  fontWeightMsg: ee,
3929
- textMessageColor: Ce,
3930
- inputWidth: fe,
3931
- inputStyle: Ae,
3932
- activeTextStyle: Ve,
3933
- sizeMediaQuery: Te,
3931
+ textMessageColor: Te,
3932
+ inputWidth: ve,
3933
+ inputStyle: we,
3934
+ activeTextStyle: ke,
3935
+ sizeMediaQuery: Be,
3934
3936
  inputReadonly: j,
3935
3937
  blockPaste: Qe,
3936
3938
  inputType: v,
3937
- hasTrim: se,
3939
+ hasTrim: de,
3938
3940
  inputUppercase: Oe,
3939
3941
  inputName: Xe,
3940
3942
  inputText: S,
3941
3943
  min: Ue,
3942
- max: ve,
3944
+ max: pe,
3943
3945
  step: vt,
3944
3946
  hasSeconds: ht,
3945
3947
  locale: ot,
3946
3948
  theme: ze,
3947
- allowRange: ke,
3949
+ allowRange: Le,
3948
3950
  calendarZIndex: Lt,
3949
3951
  calendarWidth: pt,
3950
3952
  blockClicksWithoutEvents: St,
3951
3953
  tabindex: xt,
3952
3954
  lightBgColor: Ct,
3953
- lightBgColorFocus: Be,
3955
+ lightBgColorFocus: Ae,
3954
3956
  lightDisabledBgColor: gt,
3955
3957
  lightTextColor: et,
3956
- darkBgColor: T,
3957
- darkBgColorFocus: R,
3958
- darkDisabledBgColor: me,
3958
+ darkBgColor: V,
3959
+ darkBgColorFocus: D,
3960
+ darkDisabledBgColor: Se,
3959
3961
  darkTextColor: te,
3960
- textAlign: he,
3962
+ textAlign: ge,
3961
3963
  showMsg: tt,
3962
3964
  hasMsg: Ge,
3963
3965
  showLabel: Ie,
3964
- label: b,
3965
- labelBreakOnActive: A,
3966
- labelBackground: de,
3967
- labelPadding: ge,
3968
- labelBorderRadius: Se,
3966
+ label: y,
3967
+ labelBreakOnActive: k,
3968
+ labelBackground: ce,
3969
+ labelPadding: be,
3970
+ labelBorderRadius: ye,
3969
3971
  labelLeft: _e,
3970
3972
  inputLabelMarginActive: We,
3971
3973
  labelActiveTop: Ee,
@@ -3981,7 +3983,7 @@ const cn = ["id"], fn = ["for"], vn = {
3981
3983
  darkTextColorLabel: Nt,
3982
3984
  darkTextColorLabelActive: rt,
3983
3985
  required: Tt
3984
- } = Ea(F), B = oe(""), E = oe(""), Z = oe(""), Y = oe(""), $e = oe(!1), M = oe(!1), Wt = a(() => !pt.value || pt.value < 280 ? 280 : parseInt(pt.value, 10)), we = a(() => {
3986
+ } = Ea(F), L = oe(""), E = oe(""), Z = oe(""), Y = oe(""), De = oe(!1), M = oe(!1), Wt = a(() => !pt.value || pt.value < 280 ? 280 : parseInt(pt.value, 10)), Re = a(() => {
3985
3987
  if (ht.value !== null)
3986
3988
  return ht.value;
3987
3989
  if (v.value === "time" || v.value === "datetime-local") {
@@ -3991,16 +3993,16 @@ const cn = ["id"], fn = ["for"], vn = {
3991
3993
  let n = l;
3992
3994
  return v.value === "datetime-local" && (n = l.split("T")[1] || "", n = n.split(/[Z+-]/)[0] || ""), n.split(":").length >= 3;
3993
3995
  };
3994
- if (t(B.value) || t(S.value))
3996
+ if (t(L.value) || t(S.value))
3995
3997
  return !0;
3996
3998
  }
3997
3999
  return !1;
3998
4000
  }), At = a(() => {
3999
- if (!B.value)
4001
+ if (!L.value)
4000
4002
  return null;
4001
- if (ke.value && typeof B.value == "string" && B.value.startsWith("{"))
4003
+ if (Le.value && typeof L.value == "string" && L.value.startsWith("{"))
4002
4004
  try {
4003
- const t = JSON.parse(B.value);
4005
+ const t = JSON.parse(L.value);
4004
4006
  if (t && (t.startDate || t.endDate)) {
4005
4007
  const l = (n) => {
4006
4008
  if (!n)
@@ -4018,28 +4020,28 @@ const cn = ["id"], fn = ["for"], vn = {
4018
4020
  }
4019
4021
  } catch {
4020
4022
  }
4021
- if (v.value === "date" && typeof B.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(B.value)) {
4022
- const [t, l, n] = B.value.split("-").map(Number);
4023
+ if (v.value === "date" && typeof L.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(L.value)) {
4024
+ const [t, l, n] = L.value.split("-").map(Number);
4023
4025
  return new Date(t, l - 1, n);
4024
4026
  }
4025
- return B.value;
4027
+ return L.value;
4026
4028
  }), ue = (t, l, n) => {
4027
4029
  if (!t)
4028
4030
  return "";
4029
4031
  const r = n || ot.value;
4030
4032
  if (l === "date") {
4031
- if (ke.value && typeof t == "string" && t.startsWith("{"))
4033
+ if (Le.value && typeof t == "string" && t.startsWith("{"))
4032
4034
  try {
4033
4035
  const s = JSON.parse(t);
4034
4036
  if (s && (s.startDate || s.endDate)) {
4035
- const d = (V) => {
4036
- if (!V)
4037
+ const d = (T) => {
4038
+ if (!T)
4037
4039
  return "";
4038
- if (/^\d{4}-\d{2}-\d{2}$/.test(V)) {
4039
- const [L, W, J] = V.split("-");
4040
- return r === "pt-BR" ? `${J}/${W}/${L}` : `${W}/${J}/${L}`;
4040
+ if (/^\d{4}-\d{2}-\d{2}$/.test(T)) {
4041
+ const [$, W, J] = T.split("-");
4042
+ return r === "pt-BR" ? `${J}/${W}/${$}` : `${W}/${J}/${$}`;
4041
4043
  }
4042
- return V;
4044
+ return T;
4043
4045
  }, f = d(s.startDate), p = d(s.endDate);
4044
4046
  if (f && p)
4045
4047
  return `${f} - ${p}`;
@@ -4058,8 +4060,8 @@ const cn = ["id"], fn = ["for"], vn = {
4058
4060
  if (/^(\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2})?)?$/.test(t) && t.includes("T")) {
4059
4061
  const d = new Date(t);
4060
4062
  if (!isNaN(d.getTime())) {
4061
- const f = d.getFullYear(), p = String(d.getMonth() + 1).padStart(2, "0"), V = String(d.getDate()).padStart(2, "0");
4062
- return r === "pt-BR" ? `${V}/${p}/${f}` : `${p}/${V}/${f}`;
4063
+ const f = d.getFullYear(), p = String(d.getMonth() + 1).padStart(2, "0"), T = String(d.getDate()).padStart(2, "0");
4064
+ return r === "pt-BR" ? `${T}/${p}/${f}` : `${p}/${T}/${f}`;
4063
4065
  }
4064
4066
  }
4065
4067
  } else if (t instanceof Date && !isNaN(t.getTime())) {
@@ -4070,14 +4072,14 @@ const cn = ["id"], fn = ["for"], vn = {
4070
4072
  } else if (l === "datetime-local") {
4071
4073
  if (typeof t == "string") {
4072
4074
  if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
4073
- const [d, f] = t.split("T"), [p, V, L] = d.split("-");
4074
- return r === "pt-BR" ? `${L}/${V}/${p} ${f}` : `${V}/${L}/${p} ${f}`;
4075
+ const [d, f] = t.split("T"), [p, T, $] = d.split("-");
4076
+ return r === "pt-BR" ? `${$}/${T}/${p} ${f}` : `${T}/${$}/${p} ${f}`;
4075
4077
  }
4076
4078
  if (/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/.test(t)) {
4077
4079
  const d = new Date(t);
4078
4080
  if (!isNaN(d.getTime())) {
4079
- const f = d.getFullYear(), p = String(d.getMonth() + 1).padStart(2, "0"), V = String(d.getDate()).padStart(2, "0"), L = String(d.getHours()).padStart(2, "0"), W = String(d.getMinutes()).padStart(2, "0"), J = String(d.getSeconds()).padStart(2, "0");
4080
- return r === "pt-BR" ? `${V}/${p}/${f} ${L}:${W}:${J}` : `${p}/${V}/${f} ${L}:${W}:${J}`;
4081
+ const f = d.getFullYear(), p = String(d.getMonth() + 1).padStart(2, "0"), T = String(d.getDate()).padStart(2, "0"), $ = String(d.getHours()).padStart(2, "0"), W = String(d.getMinutes()).padStart(2, "0"), J = String(d.getSeconds()).padStart(2, "0");
4082
+ return r === "pt-BR" ? `${T}/${p}/${f} ${$}:${W}:${J}` : `${p}/${T}/${f} ${$}:${W}:${J}`;
4081
4083
  }
4082
4084
  }
4083
4085
  }
@@ -4102,12 +4104,12 @@ const cn = ["id"], fn = ["for"], vn = {
4102
4104
  return "";
4103
4105
  const r = t.trim(), s = n || ot.value;
4104
4106
  if (l === "date") {
4105
- if (ke.value && r.includes("-")) {
4106
- const d = r.split(/\s*-\s*/).map((L) => L.trim()), f = (L) => {
4107
- if (!L)
4107
+ if (Le.value && r.includes("-")) {
4108
+ const d = r.split(/\s*-\s*/).map(($) => $.trim()), f = ($) => {
4109
+ if (!$)
4108
4110
  return null;
4109
- if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(L)) {
4110
- const W = L.split("/");
4111
+ if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test($)) {
4112
+ const W = $.split("/");
4111
4113
  if (s === "pt-BR") {
4112
4114
  const [J, Me, ft] = W, Pe = J.padStart(2, "0"), Je = Me.padStart(2, "0");
4113
4115
  return `${ft}-${Je}-${Pe}`;
@@ -4115,20 +4117,20 @@ const cn = ["id"], fn = ["for"], vn = {
4115
4117
  const [J, Me, ft] = W, Pe = Me.padStart(2, "0"), Je = J.padStart(2, "0");
4116
4118
  return `${ft}-${Je}-${Pe}`;
4117
4119
  }
4118
- } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(L)) {
4119
- const W = L.split("-"), [J, Me, ft] = W, Pe = ft.padStart(2, "0"), Je = Me.padStart(2, "0");
4120
+ } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test($)) {
4121
+ const W = $.split("-"), [J, Me, ft] = W, Pe = ft.padStart(2, "0"), Je = Me.padStart(2, "0");
4120
4122
  return `${J}-${Je}-${Pe}`;
4121
4123
  }
4122
4124
  return null;
4123
4125
  };
4124
- let p = f(d[0]), V = d[1] ? f(d[1]) : null;
4125
- if (p && V) {
4126
- const L = new Date(p);
4127
- if (new Date(V) < L) {
4126
+ let p = f(d[0]), T = d[1] ? f(d[1]) : null;
4127
+ if (p && T) {
4128
+ const $ = new Date(p);
4129
+ if (new Date(T) < $) {
4128
4130
  const J = p;
4129
- p = V, V = J;
4131
+ p = T, T = J;
4130
4132
  }
4131
- return JSON.stringify({ startDate: p, endDate: V });
4133
+ return JSON.stringify({ startDate: p, endDate: T });
4132
4134
  } else if (p)
4133
4135
  return JSON.stringify({ startDate: p, endDate: null });
4134
4136
  return "";
@@ -4136,30 +4138,30 @@ const cn = ["id"], fn = ["for"], vn = {
4136
4138
  if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(r)) {
4137
4139
  const d = r.split("/");
4138
4140
  if (s === "pt-BR") {
4139
- const [f, p, V] = d, L = f.padStart(2, "0"), W = p.padStart(2, "0");
4140
- return `${V}-${W}-${L}`;
4141
+ const [f, p, T] = d, $ = f.padStart(2, "0"), W = p.padStart(2, "0");
4142
+ return `${T}-${W}-${$}`;
4141
4143
  } else {
4142
- const [f, p, V] = d, L = p.padStart(2, "0"), W = f.padStart(2, "0");
4143
- return `${V}-${W}-${L}`;
4144
+ const [f, p, T] = d, $ = p.padStart(2, "0"), W = f.padStart(2, "0");
4145
+ return `${T}-${W}-${$}`;
4144
4146
  }
4145
4147
  } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)) {
4146
- const d = r.split("-"), [f, p, V] = d, L = V.padStart(2, "0"), W = p.padStart(2, "0");
4147
- return `${f}-${W}-${L}`;
4148
+ const d = r.split("-"), [f, p, T] = d, $ = T.padStart(2, "0"), W = p.padStart(2, "0");
4149
+ return `${f}-${W}-${$}`;
4148
4150
  }
4149
4151
  return "";
4150
4152
  } else if (l === "datetime-local") {
4151
4153
  if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(r)) {
4152
4154
  const [d, f] = r.split(" "), p = d.split("/");
4153
4155
  if (s === "pt-BR") {
4154
- const [V, L, W] = p, J = V.padStart(2, "0"), Me = L.padStart(2, "0"), Pe = f.split(":").map((Je) => Je.padStart(2, "0")).join(":");
4156
+ const [T, $, W] = p, J = T.padStart(2, "0"), Me = $.padStart(2, "0"), Pe = f.split(":").map((Je) => Je.padStart(2, "0")).join(":");
4155
4157
  return `${W}-${Me}-${J}T${Pe}`;
4156
4158
  } else {
4157
- const [V, L, W] = p, J = L.padStart(2, "0"), Me = V.padStart(2, "0"), Pe = f.split(":").map((Je) => Je.padStart(2, "0")).join(":");
4159
+ const [T, $, W] = p, J = $.padStart(2, "0"), Me = T.padStart(2, "0"), Pe = f.split(":").map((Je) => Je.padStart(2, "0")).join(":");
4158
4160
  return `${W}-${Me}-${J}T${Pe}`;
4159
4161
  }
4160
4162
  } else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(r)) {
4161
- const [d, f] = r.split("T"), p = d.split("-"), [V, L, W] = p, J = W.padStart(2, "0"), Me = L.padStart(2, "0"), Pe = f.split(":").map((Je) => Je.padStart(2, "0")).join(":");
4162
- return `${V}-${Me}-${J}T${Pe}`;
4163
+ const [d, f] = r.split("T"), p = d.split("-"), [T, $, W] = p, J = W.padStart(2, "0"), Me = $.padStart(2, "0"), Pe = f.split(":").map((Je) => Je.padStart(2, "0")).join(":");
4164
+ return `${T}-${Me}-${J}T${Pe}`;
4163
4165
  }
4164
4166
  return "";
4165
4167
  } else if (l === "month") {
@@ -4182,13 +4184,13 @@ const cn = ["id"], fn = ["for"], vn = {
4182
4184
  }
4183
4185
  return r;
4184
4186
  }, ne = oe(!1), $t = oe({ top: 0, left: 0 }), P = oe(null), U = oe(null), Yt = oe(!0), z = a(() => Yt.value === !0), G = a(() => {
4185
- const t = $.value ? "component-disabled" : "", l = ce.value !== "b" ? "inline-block" : "block", n = I.value ? I.value : "", r = ae.value ? ae.value : "", s = le.value ? le.value : "", d = X.value ? X.value : !1, f = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, p = H.value ? H.value : "'Lato', sans-serif", V = ie.value ? ie.value : "1.4em", L = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, W = Fe.value ? Fe.value : "'Lato', sans-serif", J = be.value ? be.value : "1em", Me = ee.value !== 0 && !ee.value || ee.value < 0 ? 100 : ee.value, ft = Ce.value ? Ce.value : "#f15574", Pe = fe.value ? fe.value : 200, Je = Ve.value ? Ve.value : "normal", Ua = "sm", Ga = j.value ? j.value : !1, Ka = v.value ? v.value : "date", Za = Oe.value ? Oe.value : !1, Ja = ze.value ? ze.value : "normal", Qa = he.value ? he.value : "left", Xa = Ae.value ? Ae.value : "background", el = Ie.value ? Ie.value : !1, tl = _e.value !== 0 && !_e.value || _e.value < 0 ? 5 : _e.value, al = de.value ? de.value : "transparent", ll = We.value !== 0 && !We.value || We.value < 0 ? 15 : We.value, nl = ge.value ? ge.value : "1px 5px", ol = Se.value !== 0 && !Se.value || Se.value < 0 ? 0 : Se.value, rl = Ee.value === null || Ee.value === void 0 ? -13 : Ee.value, ul = He.value === null || He.value === void 0 ? 5 : He.value, il = qe.value === null || qe.value === void 0 ? 0 : qe.value, sl = Ke.value === null || Ke.value === void 0 ? 0 : Ke.value, dl = at.value ? at.value : "'Lato', sans-serif", cl = yt.value ? yt.value : "1em", fl = Mt.value ? Mt.value : "0.8em", vl = Vt.value ? Vt.value : 400, Sl = bt.value ? bt.value : "#ffffff", xl = Nt.value ? Nt.value : "#000000", Cl = lt.value ? lt.value : "#ffffff", Vl = rt.value ? rt.value : "#000000";
4187
+ const t = w.value ? "component-disabled" : "", l = fe.value !== "b" ? "inline-block" : "block", n = I.value ? I.value : "", r = ae.value ? ae.value : "", s = le.value ? le.value : "", d = X.value ? X.value : !1, f = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, p = H.value ? H.value : "'Lato', sans-serif", T = se.value ? se.value : "1.4em", $ = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, W = Fe.value ? Fe.value : "'Lato', sans-serif", J = he.value ? he.value : "1em", Me = ee.value !== 0 && !ee.value || ee.value < 0 ? 100 : ee.value, ft = Te.value ? Te.value : "#f15574", Pe = ve.value ? ve.value : 200, Je = ke.value ? ke.value : "normal", Ua = "sm", Ga = j.value ? j.value : !1, Ka = v.value ? v.value : "date", Za = Oe.value ? Oe.value : !1, Ja = ze.value ? ze.value : "normal", Qa = ge.value ? ge.value : "left", Xa = we.value ? we.value : "background", el = Ie.value ? Ie.value : !1, tl = _e.value !== 0 && !_e.value || _e.value < 0 ? 5 : _e.value, al = ce.value ? ce.value : "transparent", ll = We.value !== 0 && !We.value || We.value < 0 ? 15 : We.value, nl = be.value ? be.value : "1px 5px", ol = ye.value !== 0 && !ye.value || ye.value < 0 ? 0 : ye.value, rl = Ee.value === null || Ee.value === void 0 ? -13 : Ee.value, ul = He.value === null || He.value === void 0 ? 5 : He.value, il = qe.value === null || qe.value === void 0 ? 0 : qe.value, sl = Ke.value === null || Ke.value === void 0 ? 0 : Ke.value, dl = at.value ? at.value : "'Lato', sans-serif", cl = yt.value ? yt.value : "1em", fl = Mt.value ? Mt.value : "0.8em", vl = Vt.value ? Vt.value : 400, Sl = bt.value ? bt.value : "#ffffff", xl = Nt.value ? Nt.value : "#000000", Cl = lt.value ? lt.value : "#ffffff", Vl = rt.value ? rt.value : "#000000";
4186
4188
  return {
4187
4189
  disabled: t,
4188
4190
  display: l,
4189
4191
  font: p,
4190
- fontSize: V,
4191
- fontWeight: L,
4192
+ fontSize: T,
4193
+ fontWeight: $,
4192
4194
  fontFamilyMsg: W,
4193
4195
  fontSizeMsg: J,
4194
4196
  fontWeightMsg: Me,
@@ -4227,7 +4229,7 @@ const cn = ["id"], fn = ["for"], vn = {
4227
4229
  darkTextColorLabelActive: Vl
4228
4230
  };
4229
4231
  }), kt = a(() => G.value.disabled), wt = a(() => {
4230
- const t = G.value, l = w.value;
4232
+ const t = G.value, l = A.value;
4231
4233
  return {
4232
4234
  display: t.display,
4233
4235
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
@@ -4240,7 +4242,7 @@ const cn = ["id"], fn = ["for"], vn = {
4240
4242
  const t = G.value;
4241
4243
  return t.fontSize ? t.fontSize : "1.4em";
4242
4244
  }), N = a(() => {
4243
- const t = G.value, l = w.value;
4245
+ const t = G.value, l = A.value;
4244
4246
  return {
4245
4247
  fontWeight: t.fontWeight,
4246
4248
  marginTop: l && Ie.value ? `${t.inputLabelMarginActive}px` : "0"
@@ -4263,7 +4265,7 @@ const cn = ["id"], fn = ["for"], vn = {
4263
4265
  width: `${t.inputWidth}px`
4264
4266
  };
4265
4267
  }), da = a(() => {
4266
- switch (Ae.value) {
4268
+ switch (we.value) {
4267
4269
  case "line":
4268
4270
  return "component__input--line";
4269
4271
  case "border":
@@ -4287,27 +4289,27 @@ const cn = ["id"], fn = ["for"], vn = {
4287
4289
  default:
4288
4290
  return "component__theme--light";
4289
4291
  }
4290
- }), Kt = a(() => G.value.inputReadonly ? "component__input--read-only" : ""), pa = a(() => G.value.inputUppercase ? "component__input--uppercase" : ""), zt = a(() => Xe.value ? Xe.value : `${Q.value}-name-label`), c = a(() => ""), w = a(() => $e.value || E.value && E.value.trim().length > 0), pe = a(() => !E.value || E.value.trim().length === 0 ? "component__input--empty" : "");
4291
- a(() => $e.value ? "component__input--active" : "component__input--no-active");
4292
+ }), Kt = a(() => G.value.inputReadonly ? "component__input--read-only" : ""), pa = a(() => G.value.inputUppercase ? "component__input--uppercase" : ""), zt = a(() => Xe.value ? Xe.value : `${Q.value}-name-label`), c = a(() => ""), A = a(() => De.value || E.value && E.value.trim().length > 0), ie = a(() => !E.value || E.value.trim().length === 0 ? "component__input--empty" : "");
4293
+ a(() => De.value ? "component__input--active" : "component__input--no-active");
4292
4294
  const Ze = a(() => "6px 10px"), Ot = a(() => !!(tt.value && Ge.value)), i = a(() => {
4293
4295
  const t = {};
4294
- x.value && Object.keys(x.value).forEach((r) => t[`aria-${r}`] = x.value[r]);
4296
+ C.value && Object.keys(C.value).forEach((r) => t[`aria-${r}`] = C.value[r]);
4295
4297
  const l = {
4296
- "aria-label": k.value,
4297
- "aria-disabled": $.value,
4298
+ "aria-label": B.value,
4299
+ "aria-disabled": w.value,
4298
4300
  ...t
4299
4301
  };
4300
4302
  return Object.fromEntries(
4301
4303
  Object.entries(l).filter(([n, r]) => r != null)
4302
4304
  );
4303
- }), C = a(() => {
4304
- const t = ze.value === "dark" ? T.value : Ct.value, l = ze.value === "dark" ? te.value : et.value;
4305
+ }), x = a(() => {
4306
+ const t = ze.value === "dark" ? V.value : Ct.value, l = ze.value === "dark" ? te.value : et.value;
4305
4307
  return t === "transparent" || t === "#transparent" || !t ? l : t;
4306
- }), De = a(() => {
4307
- const t = ze.value === "dark" ? R.value : Be.value, l = ze.value === "dark" ? te.value : et.value;
4308
+ }), xe = a(() => {
4309
+ const t = ze.value === "dark" ? D.value : Ae.value, l = ze.value === "dark" ? te.value : et.value;
4308
4310
  return t === "transparent" || t === "#transparent" || !t ? l : t;
4309
4311
  }), je = a(() => {
4310
- const t = G.value, l = w.value, n = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, r = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
4312
+ const t = G.value, l = A.value, n = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, r = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
4311
4313
  return {
4312
4314
  fontFamily: t.fontFamilyLabel,
4313
4315
  fontSize: l ? t.fontSizeLabelActive : t.fontSizeLabel,
@@ -4324,12 +4326,12 @@ const cn = ["id"], fn = ["for"], vn = {
4324
4326
  // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
4325
4327
  ...l ? {
4326
4328
  width: "fit-content",
4327
- whiteSpace: A.value ? "nowrap" : "normal",
4328
- wordWrap: A.value ? "normal" : "break-word",
4329
- overflowWrap: A.value ? "normal" : "break-word",
4329
+ whiteSpace: k.value ? "nowrap" : "normal",
4330
+ wordWrap: k.value ? "normal" : "break-word",
4331
+ overflowWrap: k.value ? "normal" : "break-word",
4330
4332
  maxWidth: "100%",
4331
- textOverflow: A.value ? "ellipsis" : "clip",
4332
- overflow: A.value ? "hidden" : "visible"
4333
+ textOverflow: k.value ? "ellipsis" : "clip",
4334
+ overflow: k.value ? "hidden" : "visible"
4333
4335
  } : {}
4334
4336
  };
4335
4337
  });
@@ -4338,15 +4340,15 @@ const cn = ["id"], fn = ["for"], vn = {
4338
4340
  return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
4339
4341
  });
4340
4342
  const Zt = () => {
4341
- B.value = S.value, Y.value = v.value;
4342
- }, ga = () => {
4343
- h("clicked");
4343
+ L.value = S.value, Y.value = v.value;
4344
+ }, ga = (t) => {
4345
+ h("clicked", t);
4344
4346
  }, ya = (t) => {
4345
- t.stopPropagation(), !($.value || G.value.inputReadonly) && P.value && (P.value.focus(), z.value && (ne.value = !1, requestAnimationFrame(() => {
4347
+ t.stopPropagation(), !(w.value || G.value.inputReadonly) && P.value && (P.value.focus(), z.value && (ne.value = !1, requestAnimationFrame(() => {
4346
4348
  Dt(), ne.value = !0;
4347
4349
  })));
4348
4350
  }, ba = () => {
4349
- $.value || G.value.inputReadonly || !D.value || h("entered", B.value);
4351
+ w.value || G.value.inputReadonly || !R.value || h("entered", L.value);
4350
4352
  }, ma = async (t) => {
4351
4353
  var n;
4352
4354
  const l = ((n = t.clipboardData) == null ? void 0 : n.getData("text")) || "";
@@ -4365,7 +4367,7 @@ const cn = ["id"], fn = ["for"], vn = {
4365
4367
  left: $t.value.left,
4366
4368
  zIndex: Lt.value
4367
4369
  })), Sa = () => {
4368
- $e.value = !0, h("focused"), z.value && (ne.value = !1, requestAnimationFrame(() => {
4370
+ De.value = !0, h("focused"), z.value && (ne.value = !1, requestAnimationFrame(() => {
4369
4371
  Dt(), ne.value = !0;
4370
4372
  }));
4371
4373
  }, xa = (t) => {
@@ -4382,7 +4384,7 @@ const cn = ["id"], fn = ["for"], vn = {
4382
4384
  }
4383
4385
  }
4384
4386
  const n = (r = P.value) == null ? void 0 : r.closest(".component");
4385
- n && n.contains(l) || P.value !== l && ($e.value = !1, ne.value = !1, h("blurred"));
4387
+ n && n.contains(l) || P.value !== l && (De.value = !1, ne.value = !1, h("blurred"));
4386
4388
  }, 200);
4387
4389
  }, Ca = () => {
4388
4390
  z.value && (ne.value, ne.value = !1, requestAnimationFrame(() => {
@@ -4470,7 +4472,7 @@ const cn = ["id"], fn = ["for"], vn = {
4470
4472
  if (s.setHours(0, 0, 0, 0), l < s)
4471
4473
  return !0;
4472
4474
  }
4473
- const r = Jt(ve.value);
4475
+ const r = Jt(pe.value);
4474
4476
  if (r) {
4475
4477
  const s = new Date(r.getTime());
4476
4478
  if (s.setHours(0, 0, 0, 0), l > s)
@@ -4484,7 +4486,7 @@ const cn = ["id"], fn = ["for"], vn = {
4484
4486
  if (r < f)
4485
4487
  return !0;
4486
4488
  }
4487
- const d = Qt(ve.value);
4489
+ const d = Qt(pe.value);
4488
4490
  if (d) {
4489
4491
  const f = d.hour * 3600 + d.minute * 60 + (d.second || 0);
4490
4492
  if (r > f)
@@ -4572,14 +4574,14 @@ const cn = ["id"], fn = ["for"], vn = {
4572
4574
  h("valid", !1);
4573
4575
  return;
4574
4576
  }
4575
- if (B.value) {
4576
- const n = B.value.split("T");
4577
+ if (L.value) {
4578
+ const n = L.value.split("T");
4577
4579
  if (n.length === 2) {
4578
4580
  const r = n[0], s = n[1], d = !Ht(r), f = s.split(":");
4579
4581
  let p = !0;
4580
4582
  if (f.length >= 2) {
4581
- const V = parseInt(f[0], 10) || 0, L = parseInt(f[1], 10) || 0, W = f[2] ? parseInt(f[2], 10) : 0;
4582
- p = !Xt(V, L, W);
4583
+ const T = parseInt(f[0], 10) || 0, $ = parseInt(f[1], 10) || 0, W = f[2] ? parseInt(f[2], 10) : 0;
4584
+ p = !Xt(T, $, W);
4583
4585
  }
4584
4586
  t = d && p;
4585
4587
  }
@@ -4624,12 +4626,12 @@ const cn = ["id"], fn = ["for"], vn = {
4624
4626
  return ea(Ue.value, v.value);
4625
4627
  }), o = a(() => {
4626
4628
  if (!z.value)
4627
- return ea(ve.value, v.value);
4628
- }), m = a(() => !0), Re = (t) => {
4629
+ return ea(pe.value, v.value);
4630
+ }), m = a(() => !0), Ce = (t) => {
4629
4631
  let l = "";
4630
4632
  if (!t)
4631
4633
  l = "";
4632
- else if (ke.value && typeof t == "object" && !(t instanceof Date)) {
4634
+ else if (Le.value && typeof t == "object" && !(t instanceof Date)) {
4633
4635
  if (t.startDate === null && t.endDate === null)
4634
4636
  l = "";
4635
4637
  else if (t.startDate || t.endDate) {
@@ -4643,40 +4645,40 @@ const cn = ["id"], fn = ["for"], vn = {
4643
4645
  }
4644
4646
  } else
4645
4647
  v.value === "date" ? t instanceof Date ? l = dt(t) : typeof t == "string" && (l = t) : (v.value === "month" || v.value === "time" || v.value === "datetime-local" || v.value === "week") && (l = typeof t == "string" ? t : "");
4646
- mt = !0, B.value = l;
4648
+ mt = !0, L.value = l;
4647
4649
  const n = l ? ue(l, v.value) : "";
4648
4650
  E.value = n, Z.value = n;
4649
4651
  }, nt = () => {
4650
4652
  if (!z.value) {
4651
- B.value = E.value;
4653
+ L.value = E.value;
4652
4654
  return;
4653
4655
  }
4654
- Le = !0;
4656
+ $e = !0;
4655
4657
  const t = P.value ? {
4656
4658
  start: P.value.selectionStart,
4657
4659
  end: P.value.selectionEnd
4658
4660
  } : null, l = E.value.trim();
4659
4661
  if (!l || l.length === 0) {
4660
- mt = !0, B.value = "", E.value = "", Z.value = "", setTimeout(() => {
4661
- Le = !1;
4662
+ mt = !0, L.value = "", E.value = "", Z.value = "", setTimeout(() => {
4663
+ $e = !1;
4662
4664
  }, 50);
4663
4665
  return;
4664
4666
  }
4665
4667
  if (v.value === "date") {
4666
- const r = ke.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}$/;
4667
- if (ke.value) {
4668
+ const r = Le.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}$/;
4669
+ if (Le.value) {
4668
4670
  if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), l.length > 23 && !r.test(l)) {
4669
4671
  E.value = Z.value, t && P.value && la(() => {
4670
4672
  const s = Math.min(t.start, Z.value.length);
4671
4673
  P.value.setSelectionRange(s, s);
4672
4674
  }), setTimeout(() => {
4673
- Le = !1;
4675
+ $e = !1;
4674
4676
  }, 50);
4675
4677
  return;
4676
4678
  }
4677
4679
  if (!r.test(l) && l.length <= 23) {
4678
4680
  setTimeout(() => {
4679
- Le = !1;
4681
+ $e = !1;
4680
4682
  }, 50);
4681
4683
  return;
4682
4684
  }
@@ -4686,13 +4688,13 @@ const cn = ["id"], fn = ["for"], vn = {
4686
4688
  const s = Math.min(t.start, Z.value.length);
4687
4689
  P.value.setSelectionRange(s, s);
4688
4690
  }), setTimeout(() => {
4689
- Le = !1;
4691
+ $e = !1;
4690
4692
  }, 50);
4691
4693
  return;
4692
4694
  }
4693
4695
  if (!r.test(l) && l.length <= 10) {
4694
4696
  setTimeout(() => {
4695
- Le = !1;
4697
+ $e = !1;
4696
4698
  }, 50);
4697
4699
  return;
4698
4700
  }
@@ -4700,13 +4702,13 @@ const cn = ["id"], fn = ["for"], vn = {
4700
4702
  }
4701
4703
  let n = null;
4702
4704
  if (v.value === "date")
4703
- if (ke.value)
4705
+ if (Le.value)
4704
4706
  if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
4705
- if (n = ut(l, v.value), n && n !== B.value)
4706
- mt = !0, B.value = n, Z.value = l;
4707
+ if (n = ut(l, v.value), n && n !== L.value)
4708
+ mt = !0, L.value = n, Z.value = l;
4707
4709
  else {
4708
4710
  setTimeout(() => {
4709
- Le = !1;
4711
+ $e = !1;
4710
4712
  }, 50);
4711
4713
  return;
4712
4714
  }
@@ -4716,47 +4718,47 @@ const cn = ["id"], fn = ["for"], vn = {
4716
4718
  const d = s[1], f = ut(d, v.value);
4717
4719
  if (f) {
4718
4720
  const p = JSON.stringify({ startDate: f, endDate: null });
4719
- p !== B.value && (mt = !0, B.value = p, Z.value = l);
4721
+ p !== L.value && (mt = !0, L.value = p, Z.value = l);
4720
4722
  } else {
4721
4723
  Z.value = l, setTimeout(() => {
4722
- Le = !1;
4724
+ $e = !1;
4723
4725
  }, 50);
4724
4726
  return;
4725
4727
  }
4726
4728
  } else {
4727
4729
  Z.value = l, setTimeout(() => {
4728
- Le = !1;
4730
+ $e = !1;
4729
4731
  }, 50);
4730
4732
  return;
4731
4733
  }
4732
4734
  } else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
4733
4735
  if (n = ut(l, v.value), n) {
4734
4736
  const d = JSON.stringify({ startDate: n, endDate: null });
4735
- d !== B.value && (mt = !0, B.value = d, Z.value = l);
4737
+ d !== L.value && (mt = !0, L.value = d, Z.value = l);
4736
4738
  } else {
4737
4739
  Z.value = l, setTimeout(() => {
4738
- Le = !1;
4740
+ $e = !1;
4739
4741
  }, 50);
4740
4742
  return;
4741
4743
  }
4742
4744
  else {
4743
4745
  Z.value = l, setTimeout(() => {
4744
- Le = !1;
4746
+ $e = !1;
4745
4747
  }, 50);
4746
4748
  return;
4747
4749
  }
4748
4750
  else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
4749
- n = ut(l, v.value), n && n !== B.value && (mt = !0, B.value = n, Z.value = l);
4751
+ n = ut(l, v.value), n && n !== L.value && (mt = !0, L.value = n, Z.value = l);
4750
4752
  else {
4751
4753
  setTimeout(() => {
4752
- Le = !1;
4754
+ $e = !1;
4753
4755
  }, 50);
4754
4756
  return;
4755
4757
  }
4756
4758
  else
4757
- n = ut(l, v.value), n && n !== B.value && (mt = !0, B.value = n, Z.value = l);
4759
+ n = ut(l, v.value), n && n !== L.value && (mt = !0, L.value = n, Z.value = l);
4758
4760
  setTimeout(() => {
4759
- Le = !1;
4761
+ $e = !1;
4760
4762
  }, 50);
4761
4763
  }, Ba = (t) => {
4762
4764
  h("changed-complete", t), h("current-value-complete", t);
@@ -4784,7 +4786,7 @@ const cn = ["id"], fn = ["for"], vn = {
4784
4786
  if (!document.body.contains(l))
4785
4787
  return;
4786
4788
  const d = P.value && (l === P.value || P.value.contains(l)), f = n && (l === n || n.contains(l));
4787
- !d && !f && (ne.value = !1, (!E.value || E.value.trim().length === 0) && ($e.value = !1));
4789
+ !d && !f && (ne.value = !1, (!E.value || E.value.trim().length === 0) && (De.value = !1));
4788
4790
  }, 50);
4789
4791
  }, wa = () => {
4790
4792
  ne.value && z.value && Dt();
@@ -4832,14 +4834,14 @@ const cn = ["id"], fn = ["for"], vn = {
4832
4834
  if (isNaN(s.getTime()))
4833
4835
  t = "";
4834
4836
  else {
4835
- const d = s.getFullYear(), f = String(s.getMonth() + 1).padStart(2, "0"), p = String(s.getDate()).padStart(2, "0"), V = String(s.getHours()).padStart(2, "0"), L = String(s.getMinutes()).padStart(2, "0"), W = String(s.getSeconds()).padStart(2, "0"), J = ((l = S.value.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
4836
- t = J.includes(":") && J.split(":").length >= 3 ? `${d}-${f}-${p}T${V}:${L}:${W}` : `${d}-${f}-${p}T${V}:${L}`;
4837
+ const d = s.getFullYear(), f = String(s.getMonth() + 1).padStart(2, "0"), p = String(s.getDate()).padStart(2, "0"), T = String(s.getHours()).padStart(2, "0"), $ = String(s.getMinutes()).padStart(2, "0"), W = String(s.getSeconds()).padStart(2, "0"), J = ((l = S.value.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
4838
+ t = J.includes(":") && J.split(":").length >= 3 ? `${d}-${f}-${p}T${T}:${$}:${W}` : `${d}-${f}-${p}T${T}:${$}`;
4837
4839
  }
4838
4840
  } else
4839
4841
  t = "";
4840
4842
  } else
4841
4843
  t = "";
4842
- B.value = t, E.value = ue(S.value, v.value), document.addEventListener("click", ta, !1), window.addEventListener("scroll", wa, { capture: !0, passive: !0 }), window.addEventListener("resize", Da), la(() => {
4844
+ L.value = t, E.value = ue(S.value, v.value), document.addEventListener("click", ta, !1), window.addEventListener("scroll", wa, { capture: !0, passive: !0 }), window.addEventListener("resize", Da), la(() => {
4843
4845
  Bt();
4844
4846
  });
4845
4847
  }), Ya(() => {
@@ -4847,18 +4849,18 @@ const cn = ["id"], fn = ["for"], vn = {
4847
4849
  }), re(v, (t) => {
4848
4850
  Y.value = t;
4849
4851
  }, { immediate: !0 }), re(ot, () => {
4850
- B.value && z.value && (E.value = ue(B.value, v.value));
4852
+ L.value && z.value && (E.value = ue(L.value, v.value));
4851
4853
  });
4852
4854
  const Ha = (t) => dn(t, {
4853
4855
  inputType: v.value,
4854
4856
  hasSeconds: F.hasSeconds,
4855
- allowRange: ke.value,
4857
+ allowRange: Le.value,
4856
4858
  timezoneFormat: F.calendarIsoStringTimezoneFormat,
4857
4859
  locale: F.calendarLocale
4858
4860
  });
4859
4861
  re(S, (t) => {
4860
4862
  var l;
4861
- if (t !== B.value) {
4863
+ if (t !== L.value) {
4862
4864
  let n = t;
4863
4865
  if (v.value === "date")
4864
4866
  n = _t(t);
@@ -4874,14 +4876,14 @@ const cn = ["id"], fn = ["for"], vn = {
4874
4876
  if (isNaN(p.getTime()))
4875
4877
  n = "";
4876
4878
  else {
4877
- const V = p.getFullYear(), L = String(p.getMonth() + 1).padStart(2, "0"), W = String(p.getDate()).padStart(2, "0"), J = String(p.getHours()).padStart(2, "0"), Me = String(p.getMinutes()).padStart(2, "0"), ft = String(p.getSeconds()).padStart(2, "0"), Pe = ((l = t.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
4878
- n = Pe.includes(":") && Pe.split(":").length >= 3 ? `${V}-${L}-${W}T${J}:${Me}:${ft}` : `${V}-${L}-${W}T${J}:${Me}`;
4879
+ const T = p.getFullYear(), $ = String(p.getMonth() + 1).padStart(2, "0"), W = String(p.getDate()).padStart(2, "0"), J = String(p.getHours()).padStart(2, "0"), Me = String(p.getMinutes()).padStart(2, "0"), ft = String(p.getSeconds()).padStart(2, "0"), Pe = ((l = t.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
4880
+ n = Pe.includes(":") && Pe.split(":").length >= 3 ? `${T}-${$}-${W}T${J}:${Me}:${ft}` : `${T}-${$}-${W}T${J}:${Me}`;
4879
4881
  }
4880
4882
  } else
4881
4883
  n = "";
4882
4884
  } else
4883
4885
  n = "";
4884
- B.value = n;
4886
+ L.value = n;
4885
4887
  const r = ue(t, v.value);
4886
4888
  E.value = r, la(() => {
4887
4889
  Bt();
@@ -4890,21 +4892,21 @@ const cn = ["id"], fn = ["for"], vn = {
4890
4892
  s && (h("changed-complete", s), h("current-value-complete", s));
4891
4893
  }
4892
4894
  }, { immediate: !0 });
4893
- let Le = !1;
4895
+ let $e = !1;
4894
4896
  const qa = () => {
4895
- Le = !0, setTimeout(() => {
4896
- Le = !1;
4897
+ $e = !0, setTimeout(() => {
4898
+ $e = !1;
4897
4899
  }, 100);
4898
4900
  };
4899
4901
  let mt = !1;
4900
- return re(() => B.value, (t) => {
4901
- if (z.value && !mt && !Le) {
4902
+ return re(() => L.value, (t) => {
4903
+ if (z.value && !mt && !$e) {
4902
4904
  const l = ue(t, v.value);
4903
4905
  l !== E.value && (E.value = l, Z.value = l);
4904
4906
  }
4905
4907
  mt = !1;
4906
- }), re(B, (t) => {
4907
- if (se.value && (t = t.trim()), ke.value && typeof t == "string" && t.startsWith("{"))
4908
+ }), re(L, (t) => {
4909
+ if (de.value && (t = t.trim()), Le.value && typeof t == "string" && t.startsWith("{"))
4908
4910
  try {
4909
4911
  const l = JSON.parse(t);
4910
4912
  if (l && (l.startDate || l.endDate)) {
@@ -4912,8 +4914,8 @@ const cn = ["id"], fn = ["for"], vn = {
4912
4914
  if (!d)
4913
4915
  return null;
4914
4916
  if (/^\d{4}-\d{2}-\d{2}$/.test(d)) {
4915
- const [f, p, V] = d.split("-").map(Number);
4916
- return new Date(f, p - 1, V);
4917
+ const [f, p, T] = d.split("-").map(Number);
4918
+ return new Date(f, p - 1, T);
4917
4919
  }
4918
4920
  return new Date(d);
4919
4921
  }, r = l.startDate ? n(l.startDate) : null, s = l.endDate ? n(l.endDate) : null;
@@ -4923,13 +4925,13 @@ const cn = ["id"], fn = ["for"], vn = {
4923
4925
  } catch {
4924
4926
  }
4925
4927
  h("changed", t);
4926
- }), re($e, (t) => {
4928
+ }), re(De, (t) => {
4927
4929
  h(t ? "focused" : "blurred");
4928
- }), re(B, (t) => {
4929
- se.value && (t = t.trim()), h("current-value", t), la(() => {
4930
+ }), re(L, (t) => {
4931
+ de.value && (t = t.trim()), h("current-value", t), la(() => {
4930
4932
  Bt();
4931
4933
  });
4932
- }), re([Ue, ve], () => {
4934
+ }), re([Ue, pe], () => {
4933
4935
  la(() => {
4934
4936
  Bt();
4935
4937
  });
@@ -4939,11 +4941,11 @@ const cn = ["id"], fn = ["for"], vn = {
4939
4941
  style: [wt.value, Gt.value, Ft.value],
4940
4942
  role: "input"
4941
4943
  }, i.value), [
4942
- xe("div", {
4944
+ Ve("div", {
4943
4945
  id: u(Q),
4944
4946
  class: Ye(["nb-reset", "component", fa.value, va.value, Kt.value, da.value]),
4945
4947
  style: Ne([N.value, Gt.value, Ft.value]),
4946
- onClick: ga
4948
+ onClick: l[2] || (l[2] = (n) => ga(n))
4947
4949
  }, [
4948
4950
  u(Ie) ? (O(), K("label", {
4949
4951
  key: 0,
@@ -4952,17 +4954,17 @@ const cn = ["id"], fn = ["for"], vn = {
4952
4954
  style: Ne([je.value]),
4953
4955
  onClick: ya
4954
4956
  }, [
4955
- jt(Rt(u(b)), 1),
4956
- u(Tt) ? (O(), K("span", vn, "*")) : ye("", !0)
4957
- ], 12, fn)) : ye("", !0),
4958
- Pa(xe("input", {
4957
+ jt(Rt(u(y)), 1),
4958
+ u(Tt) ? (O(), K("span", vn, "*")) : me("", !0)
4959
+ ], 12, fn)) : me("", !0),
4960
+ Pa(Ve("input", {
4959
4961
  ref_key: "inputRef",
4960
4962
  ref: P,
4961
4963
  "onUpdate:modelValue": l[0] || (l[0] = (n) => E.value = n),
4962
4964
  onInput: nt,
4963
4965
  onKeydown: [
4964
4966
  qa,
4965
- l[1] || (l[1] = na((n) => !u($) && u(D) && ba(), ["enter"]))
4967
+ l[1] || (l[1] = na((n) => !u(w) && u(R) && ba(), ["enter"]))
4966
4968
  ],
4967
4969
  id: zt.value,
4968
4970
  name: zt.value,
@@ -4970,17 +4972,17 @@ const cn = ["id"], fn = ["for"], vn = {
4970
4972
  class: Ye(["component__input", [
4971
4973
  pa.value,
4972
4974
  ca.value,
4973
- pe.value
4975
+ ie.value
4974
4976
  ]]),
4975
4977
  placeholder: c.value,
4976
- disabled: u($) || u(j),
4978
+ disabled: u(w) || u(j),
4977
4979
  required: u(Tt),
4978
4980
  readonly: m.value,
4979
4981
  autocomplete: e.inputAutocomplete,
4980
4982
  min: ka.value,
4981
4983
  max: o.value,
4982
4984
  step: z.value ? void 0 : u(vt),
4983
- tabindex: u($) || u(j) ? -1 : u(xt),
4985
+ tabindex: u(w) || u(j) ? -1 : u(xt),
4984
4986
  role: "input",
4985
4987
  style: Ne([Ft.value]),
4986
4988
  onFocus: Sa,
@@ -4998,7 +5000,7 @@ const cn = ["id"], fn = ["for"], vn = {
4998
5000
  La(t.$slots, "message", {}, () => [
4999
5001
  jt(Rt(e.message), 1)
5000
5002
  ], !0)
5001
- ], 2)) : ye("", !0),
5003
+ ], 2)) : me("", !0),
5002
5004
  (O(), Ll(Al, { to: "body" }, [
5003
5005
  z.value && ne.value ? (O(), K("div", {
5004
5006
  key: 0,
@@ -5006,22 +5008,22 @@ const cn = ["id"], fn = ["for"], vn = {
5006
5008
  ref: U,
5007
5009
  class: "datepicker__custom-calendar-wrapper",
5008
5010
  style: Ne(ha.value),
5009
- onClick: l[4] || (l[4] = Ia((n) => M.value = !0, ["stop"])),
5010
- onMousedown: l[5] || (l[5] = Ia((n) => M.value = !0, ["stop"]))
5011
+ onClick: l[5] || (l[5] = Ia((n) => M.value = !0, ["stop"])),
5012
+ onMousedown: l[6] || (l[6] = Ia((n) => M.value = !0, ["stop"]))
5011
5013
  }, [
5012
5014
  $l(u(g), {
5013
5015
  "nb-id": `${u(Q)}-calendar`,
5014
5016
  value: At.value,
5015
5017
  "input-type": u(v),
5016
- "has-seconds": we.value,
5018
+ "has-seconds": Re.value,
5017
5019
  min: u(Ue),
5018
- max: u(ve),
5020
+ max: u(pe),
5019
5021
  step: u(vt),
5020
- disabled: u($),
5022
+ disabled: u(w),
5021
5023
  width: Wt.value,
5022
5024
  locale: u(ot),
5023
5025
  theme: u(ze),
5024
- "allow-range": u(ke),
5026
+ "allow-range": u(Le),
5025
5027
  "block-clicks-without-events": u(St),
5026
5028
  "font-family": e.calendarFontFamily,
5027
5029
  "font-size": e.calendarFontSize,
@@ -5081,18 +5083,18 @@ const cn = ["id"], fn = ["for"], vn = {
5081
5083
  "clear-button-title": e.calendarClearButtonTitle,
5082
5084
  "clear-button-symbol": e.calendarClearButtonSymbol,
5083
5085
  "iso-string-timezone-format": e.calendarIsoStringTimezoneFormat,
5084
- onChanged: Re,
5086
+ onChanged: Ce,
5085
5087
  onDateSelected: Ba,
5086
5088
  onMonthChanged: Ta,
5087
5089
  onValid: Va,
5088
- onMousedown: l[2] || (l[2] = (n) => M.value = !0),
5089
- onClick: l[3] || (l[3] = (n) => M.value = !0)
5090
+ onMousedown: l[3] || (l[3] = (n) => M.value = !0),
5091
+ onClick: l[4] || (l[4] = (n) => M.value = !0)
5090
5092
  }, null, 8, ["nb-id", "value", "input-type", "has-seconds", "min", "max", "step", "disabled", "width", "locale", "theme", "allow-range", "block-clicks-without-events", "font-family", "font-size", "font-weight", "primary-color", "selection-color", "event-color", "today-color", "hover-text-color", "normal-text-color", "month-year-item-bg", "month-year-item-bg-hover", "day-hover-bg", "day-hover-text-color", "time-display-text-color", "time-edit-button-bg", "time-edit-button-text-color", "time-edit-button-bg-hover", "time-edit-button-text-color-hover", "time-edit-button-font-family", "time-edit-button-font-size", "time-edit-button-padding", "time-edit-button-border-radius", "time-edit-button-font-weight", "time-edit-button-border", "time-edit-button-text", "today-button-bg", "today-button-text-color", "today-button-bg-hover", "today-button-text-color-hover", "today-button-font-family", "today-button-font-size", "today-button-padding", "today-button-border-radius", "today-button-font-weight", "today-button-border", "today-button-text", "now-button-text", "show-clear-button", "show-today-button", "clear-button-keep-current-month", "start-week-on-monday", "edit-range", "max-range-days", "min-year", "max-year", "go-to-date", "is-required", "width-full", "border-radius", "scroll-class", "events", "select-month-text", "select-year-text", "select-time-text", "time-display-label-text", "clear-button-title", "clear-button-symbol", "iso-string-timezone-format"])
5091
- ], 36)) : ye("", !0)
5093
+ ], 36)) : me("", !0)
5092
5094
  ]))
5093
- ], 16)) : ye("", !0);
5095
+ ], 16)) : me("", !0);
5094
5096
  }
5095
- }), yn = /* @__PURE__ */ Oa(gn, [["__scopeId", "data-v-8c15f0f4"]]), pl = {
5097
+ }), yn = /* @__PURE__ */ Oa(gn, [["__scopeId", "data-v-627e4800"]]), pl = {
5096
5098
  NbInputRadio: Nl,
5097
5099
  NbInputCheckbox: El,
5098
5100
  NbInput: Kl,
@@ -5101,9 +5103,9 @@ const cn = ["id"], fn = ["for"], vn = {
5101
5103
  NbDatePicker: yn
5102
5104
  }, mn = {
5103
5105
  install(e) {
5104
- for (const y in pl)
5105
- if (Object.prototype.hasOwnProperty.call(pl, y)) {
5106
- const g = pl[y];
5106
+ for (const b in pl)
5107
+ if (Object.prototype.hasOwnProperty.call(pl, b)) {
5108
+ const g = pl[b];
5107
5109
  e.component(g.name, g);
5108
5110
  }
5109
5111
  }