@vlalg-nimbus/nb-inputs 9.0.1 → 9.2.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,10 +1,10 @@
1
- import { useCssVars as Na, onMounted as La, ref as Y, toRefs as Fa, computed as a, watch as G, openBlock as W, createElementBlock as P, normalizeClass as Ee, normalizeStyle as Be, createElementVNode as ve, mergeProps as Aa, Fragment as dl, renderList as cl, unref as u, withDirectives as za, vModelRadio as bl, withKeys as la, withModifiers as Ma, toDisplayString as Dt, createCommentVNode as oe, vModelCheckbox as ml, onUnmounted as Pa, createTextVNode as qt, renderSlot as Ba, vModelDynamic as fl, vModelText as vl, defineAsyncComponent as hl, nextTick as aa, createBlock as Sl, Teleport as xl, createVNode as Cl } from "vue";
2
- const Wa = (e, S) => {
3
- const C = e.__vccOpts || e;
4
- for (const [B, _] of S)
5
- C[B] = _;
6
- return C;
7
- }, Vl = ["id"], Tl = ["id", "disabled", "value", "name"], kl = ["for", "tabindex"], Bl = /* @__PURE__ */ Object.assign({
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 Ce, mergeProps as $a, Fragment as pl, renderList as gl, unref as u, withDirectives as Pa, vModelRadio as Tl, withKeys as na, withModifiers as Ia, toDisplayString as Dt, createCommentVNode as ye, vModelCheckbox as kl, onUnmounted as Ya, createTextVNode as jt, renderSlot as La, vModelDynamic as bl, vModelText as ml, defineAsyncComponent as Bl, nextTick as la, createBlock as Ll, Teleport as Al, createVNode as $l } from "vue";
2
+ const Oa = (e, y) => {
3
+ const g = e.__vccOpts || e;
4
+ for (const [h, M] of y)
5
+ g[h] = M;
6
+ return g;
7
+ }, wl = ["id"], Dl = ["id", "disabled", "value", "name"], Rl = ["for", "tabindex"], Ml = /* @__PURE__ */ Object.assign({
8
8
  name: "NbInputRadio",
9
9
  inheritAttrs: !1
10
10
  }, {
@@ -18,14 +18,14 @@ const Wa = (e, S) => {
18
18
  type: String,
19
19
  default: "b",
20
20
  validator: (e = "b") => {
21
- const S = e ? e.toLowerCase() : "";
22
- return ["b", "ib"].includes(S);
21
+ const y = e ? e.toLowerCase() : "";
22
+ return ["b", "ib"].includes(y);
23
23
  }
24
24
  },
25
25
  tabIndex: {
26
26
  type: [Number, Array],
27
27
  default: 0,
28
- validator: (e, S) => Array.isArray(e) ? e.length === S.options.length : !0
28
+ validator: (e, y) => Array.isArray(e) ? e.length === y.options.length : !0
29
29
  },
30
30
  hasTabIndexEnter: {
31
31
  type: Boolean,
@@ -56,12 +56,12 @@ const Wa = (e, S) => {
56
56
  validator: (e) => {
57
57
  if (!e.length)
58
58
  return !1;
59
- let S = !1;
60
- for (const C of e) {
61
- const B = Object.keys(C);
62
- B.length !== 2 && (S = !0), B.every((Le) => ["value", "text"].includes(Le)) || (S = !0);
59
+ let y = !1;
60
+ for (const g of e) {
61
+ const h = Object.keys(g);
62
+ h.length !== 2 && (y = !0), h.every((Q) => ["value", "text"].includes(Q)) || (y = !0);
63
63
  }
64
- if (!S)
64
+ if (!y)
65
65
  return e;
66
66
  }
67
67
  },
@@ -78,8 +78,8 @@ const Wa = (e, S) => {
78
78
  type: String,
79
79
  default: "light",
80
80
  validator: (e) => {
81
- const S = e ? e.toLowerCase() : "";
82
- return ["light", "dark"].includes(S);
81
+ const y = e ? e.toLowerCase() : "";
82
+ return ["light", "dark"].includes(y);
83
83
  }
84
84
  },
85
85
  // Cores do tema light
@@ -151,143 +151,143 @@ const Wa = (e, S) => {
151
151
  }
152
152
  },
153
153
  emits: ["current-value", "changed", "clicked"],
154
- setup(e, { emit: S }) {
155
- Na((x) => ({
156
- "0fd48d29": _e.value,
157
- "50426c15": Lt.value,
158
- "5fa7628c": yt.value,
159
- "5949c3d2": tt.value,
160
- 91322790: gt.value,
161
- "6750fc92": ee.value,
162
- "8c592938": ut.value,
163
- c11d4680: it.value,
164
- "35b74fa6": Bt.value,
165
- "7dd5f889": we.value,
166
- "5cb21b36": Se.value
167
- })), La(() => {
168
- st();
154
+ setup(e, { emit: y }) {
155
+ Wa((V) => ({
156
+ "0fd48d29": Ue.value,
157
+ "50426c15": Bt.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": kt.value,
165
+ "7dd5f889": ze.value,
166
+ "5cb21b36": Be.value
167
+ })), Aa(() => {
168
+ gt();
169
169
  });
170
- const C = S, B = e, _ = Y(null), {
171
- ariaLabel: Le,
172
- ariaAttrs: pe,
173
- currentOption: Ne,
174
- valueType: Ae,
175
- display: re,
176
- options: J,
177
- theme: Pe,
178
- lightTextColor: Fe,
179
- lightColor: ae,
180
- lightColorHover: K,
181
- darkTextColor: N,
182
- darkColor: le,
183
- darkColorHover: ue,
184
- hoverEffect: Q,
185
- activeHoverEffect: $e,
186
- itemGap: ie,
187
- internalGap: H,
188
- scale: ge,
189
- disabled: X,
190
- fontFamily: he,
191
- fontSize: ye,
192
- fontWeight: be
193
- } = Fa(B), I = a(() => {
194
- const x = X.value ? "component-disabled" : "", $ = re.value !== "b" ? "inline-block" : "block", se = he.value ? he.value : "'Lato', sans-serif", q = ye.value ? ye.value : "1.6em", de = be.value !== 0 && !be.value || be.value < 0 ? 200 : be.value, at = [!1, !0].includes(Q.value) ? Q.value : !1, Ge = [!1, !0].includes($e.value) ? $e.value : !1, We = ie.value !== 0 && !ie.value || ie.value < 0 ? 15 : ie.value, p = H.value !== 0 && !H.value || H.value < 0 ? 6 : H.value, T = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value;
170
+ const g = y, h = e, M = oe(null), {
171
+ ariaLabel: Q,
172
+ ariaAttrs: ce,
173
+ currentOption: D,
174
+ valueType: T,
175
+ display: x,
176
+ options: I,
177
+ theme: ae,
178
+ lightTextColor: le,
179
+ lightColor: X,
180
+ lightColorHover: _,
181
+ darkTextColor: $,
182
+ darkColor: H,
183
+ darkColorHover: ie,
184
+ hoverEffect: q,
185
+ activeHoverEffect: Fe,
186
+ itemGap: be,
187
+ internalGap: ee,
188
+ scale: Ve,
189
+ disabled: fe,
190
+ fontFamily: $e,
191
+ fontSize: Te,
192
+ fontWeight: ke
193
+ } = Ea(h), j = a(() => {
194
+ const V = fe.value ? "component-disabled" : "", N = x.value !== "b" ? "inline-block" : "block", me = $e.value ? $e.value : "'Lato', sans-serif", te = Te.value ? Te.value : "1.6em", he = ke.value !== 0 && !ke.value || ke.value < 0 ? 200 : ke.value, et = [!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, L = Ve.value !== 0 && !Ve.value || Ve.value < 0 ? 1 : Ve.value;
195
195
  return {
196
- disabled: x,
197
- display: $,
198
- hoverEffect: at,
196
+ disabled: V,
197
+ display: N,
198
+ hoverEffect: et,
199
199
  activeHoverEffect: Ge,
200
- itemGap: We,
201
- internalGap: p,
202
- scale: T,
203
- font: se,
204
- fontSize: q,
205
- fontWeight: de
200
+ itemGap: Ie,
201
+ internalGap: b,
202
+ scale: L,
203
+ font: me,
204
+ fontSize: te,
205
+ fontWeight: he
206
206
  };
207
- }), je = a(() => I.value.disabled), v = a(() => ({
208
- display: I.value.display
209
- })), Z = a(() => I.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), ze = a(() => {
210
- const x = I.value;
207
+ }), Je = a(() => j.value.disabled), v = a(() => ({
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 V = j.value;
211
211
  return {
212
- fontSize: x.fontSize,
213
- fontWeight: x.fontWeight
212
+ fontSize: V.fontSize,
213
+ fontWeight: V.fontWeight
214
214
  };
215
- }), Ue = a(() => Array.isArray(J.value) && J.value.constructor === Array && J.value.length > 0), h = a(() => Pe.value === "dark" ? "component__theme--dark" : "component__theme--light"), _e = a(() => I.value.font), ee = a(() => Fe.value), ut = a(() => ae.value), gt = a(() => I.value.hoverEffect ? K.value : ae.value), tt = a(() => I.value.activeHoverEffect ? K.value : ae.value), we = a(() => N.value), Se = a(() => le.value), Bt = a(() => I.value.hoverEffect ? ue.value : le.value), it = a(() => I.value.activeHoverEffect ? ue.value : le.value), yt = a(() => {
216
- const $ = I.value.internalGap;
217
- return !$ || $ < 0 ? 0 : `${$}px`;
218
- }), Lt = a(() => {
219
- const $ = I.value.itemGap;
220
- return !$ || $ < 0 ? 0 : `${$}px`;
221
- }), bt = a(() => ({
222
- zoom: I.value.scale
223
- })), Oe = a(() => {
224
- const x = {};
225
- pe.value && Object.keys(pe.value).forEach((q) => x[`aria-${q}`] = pe.value[q]);
226
- const $ = {
227
- "aria-label": Le.value,
228
- "aria-disabled": X.value,
229
- ...x
215
+ }), Qe = 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), Be = a(() => H.value), kt = a(() => j.value.hoverEffect ? ie.value : H.value), pt = a(() => j.value.activeHoverEffect ? ie.value : H.value), St = a(() => {
216
+ const N = j.value.internalGap;
217
+ return !N || N < 0 ? 0 : `${N}px`;
218
+ }), Bt = a(() => {
219
+ const N = j.value.itemGap;
220
+ return !N || N < 0 ? 0 : `${N}px`;
221
+ }), xt = a(() => ({
222
+ zoom: j.value.scale
223
+ })), Le = a(() => {
224
+ const V = {};
225
+ ce.value && Object.keys(ce.value).forEach((te) => V[`aria-${te}`] = ce.value[te]);
226
+ const N = {
227
+ "aria-label": Q.value,
228
+ "aria-disabled": fe.value,
229
+ ...V
230
230
  };
231
231
  return Object.fromEntries(
232
- Object.entries($).filter(([se, q]) => q != null)
232
+ Object.entries(N).filter(([me, te]) => te != null)
233
233
  );
234
- }), st = () => {
235
- const x = Ne.value;
236
- x && ["string"].includes(Ae.value) ? _.value = x.toString().toLowerCase() : _.value = x;
237
- }, Ye = () => {
238
- C("clicked");
234
+ }), gt = () => {
235
+ const V = D.value;
236
+ V && ["string"].includes(T.value) ? M.value = V.toString().toLowerCase() : M.value = V;
237
+ }, Xe = () => {
238
+ g("clicked");
239
239
  };
240
- return G(Ne, (x, $) => {
241
- x !== $ && st();
242
- }), G(_, (x, $) => {
243
- x !== $ && (C("current-value", x), C("changed", x));
244
- }), (x, $) => e.nbId && Ue.value ? (W(), P("div", {
240
+ return re(D, (V, N) => {
241
+ V !== N && gt();
242
+ }), re(M, (V, N) => {
243
+ V !== N && (g("current-value", V), g("changed", V));
244
+ }), (V, N) => e.nbId && Qe.value ? (O(), K("div", {
245
245
  key: 0,
246
- class: Ee(["nb-wrapper", je.value]),
247
- style: Be([v.value, bt.value])
246
+ class: Ye(["nb-wrapper", Je.value]),
247
+ style: Ne([v.value, xt.value])
248
248
  }, [
249
- ve("div", Aa({
249
+ Ce("div", $a({
250
250
  id: e.nbId,
251
251
  role: "radiogroup"
252
- }, Oe.value, {
253
- class: ["nb-reset", "component", Z.value, h.value]
252
+ }, Le.value, {
253
+ class: ["nb-reset", "component", se.value, S.value]
254
254
  }), [
255
- (W(!0), P(dl, null, cl(u(J), (se, q) => (W(), P("div", {
256
- key: q,
255
+ (O(!0), K(pl, null, gl(u(I), (me, te) => (O(), K("div", {
256
+ key: te,
257
257
  class: "component-radio__item"
258
258
  }, [
259
- za(ve("input", {
260
- id: `${e.nbId}-${se.value}`,
261
- "onUpdate:modelValue": $[0] || ($[0] = (de) => _.value = de),
259
+ Pa(Ce("input", {
260
+ id: `${e.nbId}-${me.value}`,
261
+ "onUpdate:modelValue": N[0] || (N[0] = (he) => M.value = he),
262
262
  type: "radio",
263
263
  class: "component-radio__item--input",
264
- disabled: u(X),
265
- value: se.value,
264
+ disabled: u(fe),
265
+ value: me.value,
266
266
  name: e.groupName,
267
- onClick: Ye
268
- }, null, 8, Tl), [
269
- [bl, _.value]
267
+ onClick: Xe
268
+ }, null, 8, Dl), [
269
+ [Tl, M.value]
270
270
  ]),
271
- ve("label", {
272
- for: `${e.nbId}-${se.value}`,
273
- tabindex: u(X) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[q] : e.tabIndex >= 0 ? e.tabIndex : q + 1,
271
+ Ce("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,
274
274
  class: "component-radio__item--label",
275
275
  onKeydown: [
276
- $[1] || ($[1] = la(Ma((de) => !u(X) && e.hasTabIndexEnter && de.target.click(), ["prevent"]), ["enter"])),
277
- $[2] || ($[2] = la(Ma((de) => !u(X) && e.hasTabIndexSpace && de.target.click(), ["prevent"]), ["space"]))
276
+ N[1] || (N[1] = na(Ia((he) => !u(fe) && e.hasTabIndexEnter && he.target.click(), ["prevent"]), ["enter"])),
277
+ N[2] || (N[2] = na(Ia((he) => !u(fe) && e.hasTabIndexSpace && he.target.click(), ["prevent"]), ["space"]))
278
278
  ]
279
279
  }, [
280
- $[3] || ($[3] = ve("div", null, null, -1)),
281
- ve("span", {
282
- style: Be([ze.value])
283
- }, Dt(se.text), 5)
284
- ], 40, kl)
280
+ N[3] || (N[3] = Ce("div", null, null, -1)),
281
+ Ce("span", {
282
+ style: Ne([Oe.value])
283
+ }, Dt(me.text), 5)
284
+ ], 40, Rl)
285
285
  ]))), 128))
286
- ], 16, Vl)
287
- ], 6)) : oe("", !0);
286
+ ], 16, wl)
287
+ ], 6)) : ye("", !0);
288
288
  }
289
- }), Ll = /* @__PURE__ */ Wa(Bl, [["__scopeId", "data-v-a95f65ea"]]);
290
- const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabindex"], Dl = /* @__PURE__ */ Object.assign({
289
+ }), Nl = /* @__PURE__ */ Oa(Ml, [["__scopeId", "data-v-a95f65ea"]]);
290
+ const Fl = ["id"], zl = ["id", "disabled", "value", "name"], Il = ["for", "tabindex"], Wl = /* @__PURE__ */ Object.assign({
291
291
  name: "NbInputCheckbox",
292
292
  inheritAttrs: !1
293
293
  }, {
@@ -301,14 +301,14 @@ const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabin
301
301
  type: String,
302
302
  default: "b",
303
303
  validator: (e = "b") => {
304
- const S = e ? e.toLowerCase() : "";
305
- return ["b", "ib"].includes(S);
304
+ const y = e ? e.toLowerCase() : "";
305
+ return ["b", "ib"].includes(y);
306
306
  }
307
307
  },
308
308
  tabIndex: {
309
309
  type: [Number, Array],
310
310
  default: 0,
311
- validator: (e, S) => Array.isArray(e) ? e.length === S.options.length : !0
311
+ validator: (e, y) => Array.isArray(e) ? e.length === y.options.length : !0
312
312
  },
313
313
  hasTabIndexEnter: {
314
314
  type: Boolean,
@@ -339,12 +339,12 @@ const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabin
339
339
  validator: (e) => {
340
340
  if (!e.length)
341
341
  return !1;
342
- let S = !1;
343
- for (const C of e) {
344
- const B = Object.keys(C);
345
- B.length !== 2 && (S = !0), B.every((Le) => ["value", "text"].includes(Le)) || (S = !0);
342
+ let y = !1;
343
+ for (const g of e) {
344
+ const h = Object.keys(g);
345
+ h.length !== 2 && (y = !0), h.every((Q) => ["value", "text"].includes(Q)) || (y = !0);
346
346
  }
347
- if (!S)
347
+ if (!y)
348
348
  return e;
349
349
  }
350
350
  },
@@ -356,8 +356,8 @@ const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabin
356
356
  type: String,
357
357
  default: "light",
358
358
  validator: (e) => {
359
- const S = e ? e.toLowerCase() : "";
360
- return ["light", "dark"].includes(S);
359
+ const y = e ? e.toLowerCase() : "";
360
+ return ["light", "dark"].includes(y);
361
361
  }
362
362
  },
363
363
  // Cores do tema light
@@ -447,170 +447,170 @@ const Al = ["id"], $l = ["id", "disabled", "value", "name"], wl = ["for", "tabin
447
447
  }
448
448
  },
449
449
  emits: ["current-value", "changed", "clicked"],
450
- setup(e, { emit: S }) {
451
- Na((p) => ({
452
- "49e2c63f": ut.value,
453
- "107babaa": se.value,
454
- "3c7cc5ce": $.value,
455
- "16d311d0": x.value,
456
- "3f8b2f30": Se.value,
457
- "53078d64": we.value,
458
- "537834e6": Bt.value,
459
- fbc86ee4: tt.value,
460
- "517939e1": gt.value,
461
- "3faff29d": Ye.value,
462
- "302ecd6a": bt.value,
463
- "8a4df060": Lt.value,
464
- "0a99dbe2": Oe.value,
465
- d6971e68: yt.value,
466
- ca30d9c2: it.value
467
- })), La(() => {
450
+ setup(e, { emit: y }) {
451
+ Wa((b) => ({
452
+ "49e2c63f": vt.value,
453
+ "107babaa": me.value,
454
+ "3c7cc5ce": N.value,
455
+ "16d311d0": V.value,
456
+ "3f8b2f30": Be.value,
457
+ "53078d64": ze.value,
458
+ "537834e6": kt.value,
459
+ fbc86ee4: ot.value,
460
+ "517939e1": ht.value,
461
+ "3faff29d": Xe.value,
462
+ "302ecd6a": xt.value,
463
+ "8a4df060": Bt.value,
464
+ "0a99dbe2": Le.value,
465
+ d6971e68: St.value,
466
+ ca30d9c2: pt.value
467
+ })), Aa(() => {
468
468
  Ge();
469
469
  });
470
- const C = S, B = e, _ = Y(null), {
471
- ariaLabel: Le,
472
- ariaAttrs: pe,
473
- currentOption: Ne,
474
- display: Ae,
475
- options: re,
476
- theme: J,
477
- lightTextColor: Pe,
478
- lightColor: Fe,
479
- lightColorHover: ae,
480
- darkTextColor: K,
481
- darkColor: N,
482
- darkColorHover: le,
483
- boxRadius: ue,
484
- hoverEffect: Q,
485
- activeHoverEffect: $e,
486
- itemGap: ie,
487
- internalGap: H,
488
- scale: ge,
489
- type: X,
490
- background: he,
491
- disabled: ye,
492
- fontFamily: be,
493
- fontSize: I,
494
- fontWeight: je
495
- } = Fa(B), v = a(() => {
496
- const p = ye.value ? "component-disabled" : "", T = Ae.value !== "b" ? "inline-block" : "block", te = be.value ? be.value : "'Lato', sans-serif", ne = I.value ? I.value : "1.6em", ce = je.value !== 0 && !je.value || je.value < 0 ? 200 : je.value, De = ue.value !== 0 && !ue.value || ue.value < 0 ? 0 : ue.value, xe = [!1, !0].includes(Q.value) ? Q.value : !1, Re = [!1, !0].includes($e.value) ? $e.value : !1, Ie = ie.value !== 0 && !ie.value || ie.value < 0 ? 15 : ie.value, He = H.value !== 0 && !H.value || H.value < 0 ? 6 : H.value, Ke = ["box", "circle"].includes(X.value) ? X.value : "box", dt = ge.value !== 0 && !ge.value || ge.value < 0 ? 1 : ge.value, ct = [!1, !0].includes(he.value) ? he.value : !1;
470
+ const g = y, h = e, M = oe(null), {
471
+ ariaLabel: Q,
472
+ ariaAttrs: ce,
473
+ currentOption: D,
474
+ display: T,
475
+ options: x,
476
+ theme: I,
477
+ lightTextColor: ae,
478
+ lightColor: le,
479
+ lightColorHover: X,
480
+ darkTextColor: _,
481
+ darkColor: $,
482
+ darkColorHover: H,
483
+ boxRadius: ie,
484
+ hoverEffect: q,
485
+ activeHoverEffect: Fe,
486
+ itemGap: be,
487
+ internalGap: ee,
488
+ scale: Ve,
489
+ type: fe,
490
+ background: $e,
491
+ disabled: Te,
492
+ fontFamily: ke,
493
+ fontSize: j,
494
+ fontWeight: Je
495
+ } = Ea(h), v = a(() => {
496
+ const b = Te.value ? "component-disabled" : "", L = T.value !== "b" ? "inline-block" : "block", de = ke.value ? ke.value : "'Lato', sans-serif", ge = j.value ? j.value : "1.6em", Se = Je.value !== 0 && !Je.value || Je.value < 0 ? 200 : Je.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", tt = Ve.value !== 0 && !Ve.value || Ve.value < 0 ? 1 : Ve.value, yt = [!1, !0].includes($e.value) ? $e.value : !1;
497
497
  return {
498
- disabled: p,
499
- display: T,
500
- boxRadius: De,
501
- hoverEffect: xe,
502
- activeHoverEffect: Re,
503
- itemGap: Ie,
504
- internalGap: He,
505
- scale: dt,
498
+ disabled: b,
499
+ display: L,
500
+ boxRadius: _e,
501
+ hoverEffect: We,
502
+ activeHoverEffect: Ee,
503
+ itemGap: He,
504
+ internalGap: qe,
505
+ scale: tt,
506
506
  type: Ke,
507
- font: te,
508
- background: ct,
509
- fontSize: ne,
510
- fontWeight: ce
507
+ font: de,
508
+ background: yt,
509
+ fontSize: ge,
510
+ fontWeight: Se
511
511
  };
512
- }), Z = a(() => v.value.disabled), ze = a(() => ({
512
+ }), se = a(() => v.value.disabled), Oe = a(() => ({
513
513
  display: v.value.display
514
- })), Ue = a(() => v.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), h = a(() => {
515
- const p = v.value;
514
+ })), Qe = a(() => v.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), S = a(() => {
515
+ const b = v.value;
516
516
  return {
517
- fontSize: p.fontSize,
518
- fontWeight: p.fontWeight
517
+ fontSize: b.fontSize,
518
+ fontWeight: b.fontWeight
519
519
  };
520
- }), _e = a(() => Array.isArray(re.value) && re.value.constructor === Array && re.value.length > 0), ee = a(() => J.value === "dark" ? "component__theme--dark" : "component__theme--light"), ut = a(() => v.value.font), gt = a(() => Pe.value), tt = a(() => Fe.value), we = a(() => v.value.hoverEffect ? ae.value : Fe.value), Se = a(() => v.value.activeHoverEffect ? ae.value : Fe.value), Bt = a(() => {
521
- const p = v.value;
522
- return p.activeHoverEffect && p.background ? `${ae.value}80` : ae.value;
523
- }), it = a(() => K.value), yt = a(() => N.value), Lt = a(() => v.value.hoverEffect ? le.value : N.value), bt = a(() => v.value.activeHoverEffect ? le.value : N.value), Oe = a(() => {
524
- const p = v.value;
525
- return p.activeHoverEffect && p.background ? `${le.value}80` : le.value;
526
- }), st = a(() => v.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ye = a(() => {
527
- const p = v.value, T = J.value === "dark" ? K.value : Pe.value;
528
- return p.background ? "#ffffff" : T;
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), Be = a(() => v.value.activeHoverEffect ? X.value : le.value), kt = a(() => {
521
+ const b = v.value;
522
+ return b.activeHoverEffect && b.background ? `${X.value}80` : X.value;
523
+ }), pt = a(() => _.value), St = a(() => $.value), Bt = a(() => v.value.hoverEffect ? H.value : $.value), xt = a(() => v.value.activeHoverEffect ? H.value : $.value), Le = a(() => {
524
+ const b = v.value;
525
+ return b.activeHoverEffect && b.background ? `${H.value}80` : H.value;
526
+ }), gt = a(() => v.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Xe = a(() => {
527
+ const b = v.value, L = I.value === "dark" ? _.value : ae.value;
528
+ return b.background ? "#ffffff" : L;
529
529
  });
530
530
  a(() => v.value.background ? "19px" : "auto");
531
- const x = a(() => {
532
- const T = v.value.internalGap;
533
- return !T || T < 0 ? 0 : `${T}px`;
534
- }), $ = a(() => {
535
- const p = v.value;
536
- return `${p.boxRadius > 7 ? 7 : p.boxRadius}px`;
537
- }), se = a(() => {
538
- const T = v.value.itemGap;
539
- return !T || T < 0 ? 0 : `${T}px`;
540
- }), q = a(() => v.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), de = a(() => ({
531
+ const V = a(() => {
532
+ const L = v.value.internalGap;
533
+ return !L || L < 0 ? 0 : `${L}px`;
534
+ }), N = a(() => {
535
+ const b = v.value;
536
+ return `${b.boxRadius > 7 ? 7 : b.boxRadius}px`;
537
+ }), me = a(() => {
538
+ const L = v.value.itemGap;
539
+ return !L || L < 0 ? 0 : `${L}px`;
540
+ }), te = a(() => v.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), he = a(() => ({
541
541
  zoom: v.value.scale
542
- })), at = a(() => {
543
- const p = {};
544
- pe.value && Object.keys(pe.value).forEach((ne) => p[`aria-${ne}`] = pe.value[ne]);
545
- const T = {
546
- "aria-label": Le.value,
547
- "aria-disabled": ye.value,
548
- ...p
542
+ })), et = a(() => {
543
+ const b = {};
544
+ ce.value && Object.keys(ce.value).forEach((ge) => b[`aria-${ge}`] = ce.value[ge]);
545
+ const L = {
546
+ "aria-label": Q.value,
547
+ "aria-disabled": Te.value,
548
+ ...b
549
549
  };
550
550
  return Object.fromEntries(
551
- Object.entries(T).filter(([te, ne]) => ne != null)
551
+ Object.entries(L).filter(([de, ge]) => ge != null)
552
552
  );
553
553
  }), Ge = () => {
554
- _.value = Ne.value;
555
- }, We = () => {
556
- C("clicked");
554
+ M.value = D.value;
555
+ }, Ie = () => {
556
+ g("clicked");
557
557
  };
558
- return G(Ne, (p, T) => {
559
- p !== T && Ge();
560
- }), G(_, (p, T) => {
561
- p !== T && (C("current-value", p), C("changed", p));
562
- }), (p, T) => e.nbId && _e.value ? (W(), P("div", {
558
+ return re(D, (b, L) => {
559
+ b !== L && Ge();
560
+ }), re(M, (b, L) => {
561
+ b !== L && (g("current-value", b), g("changed", b));
562
+ }), (b, L) => e.nbId && Ue.value ? (O(), K("div", {
563
563
  key: 0,
564
- class: Ee(["nb-wrapper", Z.value]),
565
- style: Be([ze.value, de.value])
564
+ class: Ye(["nb-wrapper", se.value]),
565
+ style: Ne([Oe.value, he.value])
566
566
  }, [
567
- ve("div", Aa({
567
+ Ce("div", $a({
568
568
  id: e.nbId,
569
569
  role: "group"
570
- }, at.value, {
571
- class: ["nb-reset", "component", Ue.value, ee.value]
570
+ }, et.value, {
571
+ class: ["nb-reset", "component", Qe.value, ve.value]
572
572
  }), [
573
- (W(!0), P(dl, null, cl(u(re), (te, ne) => (W(), P("div", {
574
- key: ne,
573
+ (O(!0), K(pl, null, gl(u(x), (de, ge) => (O(), K("div", {
574
+ key: ge,
575
575
  class: "component-checkbox__item"
576
576
  }, [
577
- za(ve("input", {
578
- id: `${e.nbId}-${te.value}`,
579
- "onUpdate:modelValue": T[0] || (T[0] = (ce) => _.value = ce),
577
+ Pa(Ce("input", {
578
+ id: `${e.nbId}-${de.value}`,
579
+ "onUpdate:modelValue": L[0] || (L[0] = (Se) => M.value = Se),
580
580
  type: "checkbox",
581
581
  class: "component-checkbox__item--input",
582
- disabled: u(ye),
583
- value: te.value,
582
+ disabled: u(Te),
583
+ value: de.value,
584
584
  name: e.groupName,
585
- onClick: We
586
- }, null, 8, $l), [
587
- [ml, _.value]
585
+ onClick: Ie
586
+ }, null, 8, zl), [
587
+ [kl, M.value]
588
588
  ]),
589
- ve("label", {
590
- for: `${e.nbId}-${te.value}`,
591
- class: Ee([[q.value], "component-checkbox__item--label"]),
592
- tabindex: u(ye) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ne] : e.tabIndex >= 0 ? e.tabIndex : ne + 1,
589
+ Ce("label", {
590
+ for: `${e.nbId}-${de.value}`,
591
+ class: Ye([[te.value], "component-checkbox__item--label"]),
592
+ tabindex: u(Te) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ge] : e.tabIndex >= 0 ? e.tabIndex : ge + 1,
593
593
  onKeydown: [
594
- T[1] || (T[1] = la(Ma((ce) => !u(ye) && e.hasTabIndexEnter && ce.target.click(), ["prevent"]), ["enter"])),
595
- T[2] || (T[2] = la(Ma((ce) => !u(ye) && e.hasTabIndexSpace && ce.target.click(), ["prevent"]), ["space"]))
594
+ L[1] || (L[1] = na(Ia((Se) => !u(Te) && e.hasTabIndexEnter && Se.target.click(), ["prevent"]), ["enter"])),
595
+ L[2] || (L[2] = na(Ia((Se) => !u(Te) && e.hasTabIndexSpace && Se.target.click(), ["prevent"]), ["space"]))
596
596
  ]
597
597
  }, [
598
- ve("div", {
599
- class: Ee([st.value])
598
+ Ce("div", {
599
+ class: Ye([gt.value])
600
600
  }, null, 2),
601
- ve("span", {
602
- style: Be([h.value])
603
- }, Dt(te.text), 5)
604
- ], 42, wl)
601
+ Ce("span", {
602
+ style: Ne([S.value])
603
+ }, Dt(de.text), 5)
604
+ ], 42, Il)
605
605
  ]))), 128))
606
- ], 16, Al)
607
- ], 6)) : oe("", !0);
606
+ ], 16, Fl)
607
+ ], 6)) : ye("", !0);
608
608
  }
609
- }), Rl = /* @__PURE__ */ Wa(Dl, [["__scopeId", "data-v-1c6afddc"]]);
610
- const Ml = ["id"], Nl = ["for"], Fl = {
609
+ }), El = /* @__PURE__ */ Oa(Wl, [["__scopeId", "data-v-1c6afddc"]]);
610
+ const Pl = ["id"], Ol = ["for"], _l = {
611
611
  key: 0,
612
612
  class: "component__label--required"
613
- }, zl = ["for"], Wl = { key: 0 }, Il = { key: 1 }, El = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex", "min", "max", "step"], Pl = ["for"], _l = /* @__PURE__ */ Object.assign({
613
+ }, Hl = ["for"], ql = { key: 0 }, jl = { key: 1 }, Yl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex", "min", "max", "step"], Ul = ["for"], Gl = /* @__PURE__ */ Object.assign({
614
614
  name: "NbInput",
615
615
  inheritAttrs: !1
616
616
  }, {
@@ -624,8 +624,8 @@ const Ml = ["id"], Nl = ["for"], Fl = {
624
624
  type: String,
625
625
  default: "b",
626
626
  validator: (e = "b") => {
627
- const S = e.toLowerCase();
628
- return ["b", "ib"].includes(S);
627
+ const y = e.toLowerCase();
628
+ return ["b", "ib"].includes(y);
629
629
  }
630
630
  },
631
631
  tabIndex: {
@@ -1062,211 +1062,214 @@ const Ml = ["id"], Nl = ["for"], Fl = {
1062
1062
  "entered",
1063
1063
  "paste"
1064
1064
  ],
1065
- setup(e, { emit: S }) {
1066
- Na((o) => ({
1067
- "440599b4": oa.value,
1068
- a3815248: na.value,
1069
- e36d7636: u(bt),
1070
- "650d18a8": sa.value,
1071
- c7ec6004: da.value,
1072
- "57d3f016": ca.value,
1073
- "73afd0ca": u(se),
1074
- "45dd7bbc": u(Re),
1075
- "77cc7e84": u(q),
1076
- e8193a24: u(Rt),
1077
- "5ca879a7": u($),
1078
- "743bbde8": u(Ye),
1079
- "7af41b0e": u(x),
1080
- "17cd86d9": Ca.value,
1081
- "35dc14c3": u(Oe),
1082
- f5405c56: u(st),
1083
- "54856b3e": u(xe),
1084
- "6a2eb70c": u(de),
1085
- "4513470a": u(ct),
1086
- e9fdf11e: u(Lt),
1087
- "9f7f8c44": u(it),
1088
- "17ad4684": u(yt),
1089
- "0e1c0c8d": u(Se),
1090
- "5b95af6a": u(Bt),
1091
- "74cc9141": wt.value,
1092
- "1818a668": Sa.value,
1093
- "134a9193": xa.value,
1094
- d7b06ffa: ot.value,
1095
- "775fa126": ma.value,
1096
- "3d1cc0da": u(at),
1097
- "4c994568": ga.value,
1098
- "56a36bb3": ra.value,
1099
- "7714cb1c": Ut.value,
1100
- "3305cdca": ua.value,
1101
- "3b3cdb16": Yt.value,
1102
- "4083b276": o.styleButtonColor,
1103
- ee844aac: ia.value
1104
- })), La(() => {
1105
- ee.value != null ? Z.value === "number" && typeof ee.value == "number" ? L.value = ee.value : L.value = String(ee.value) : L.value = "";
1106
- }), Pa(() => {
1107
- Jt();
1065
+ setup(e, { emit: y }) {
1066
+ Wa((o) => ({
1067
+ "59ed7525": Pt.value,
1068
+ "172e6aea": ra.value,
1069
+ "0d4e4716": u(xt),
1070
+ "2f14b79b": da.value,
1071
+ "7c4fb6a6": ca.value,
1072
+ "435fd505": fa.value,
1073
+ "0c518b4a": u(me),
1074
+ "44eb4651": u(Ee),
1075
+ "0bc8bfb5": u(te),
1076
+ "777f47dd": u(Rt),
1077
+ "36122e16": u(N),
1078
+ "197e7fce": u(Xe),
1079
+ "627e1702": u(V),
1080
+ "2cca7e6c": Ca.value,
1081
+ "79dca832": u(Le),
1082
+ "572d0bc6": u(gt),
1083
+ 30282622: u(We),
1084
+ "9316ed2e": u(he),
1085
+ "69f8000a": u(yt),
1086
+ "42643e3c": u(Bt),
1087
+ "11db7dcd": u(pt),
1088
+ "3d7b9b33": u(St),
1089
+ "4a2de6fe": u(Be),
1090
+ "3a0f2c7a": u(kt),
1091
+ "185cd91c": wt.value,
1092
+ "747e3286": Sa.value,
1093
+ "74e5d582": xa.value,
1094
+ "8c13c69c": dt.value,
1095
+ "84edd656": ma.value,
1096
+ "4be37a7c": u(et),
1097
+ "15c537bd": ga.value,
1098
+ cab801bc: Ot.value,
1099
+ "2610de61": ia.value,
1100
+ "4e571d4a": Ut.value,
1101
+ "082fe724": Gt.value,
1102
+ "9ce93e94": o.styleButtonColor,
1103
+ "07c2dcdb": sa.value
1104
+ })), Aa(() => {
1105
+ ve.value != null ? se.value === "number" && typeof ve.value == "number" ? F.value = ve.value : F.value = String(ve.value) : F.value = "";
1106
+ }), Ya(() => {
1107
+ Xt();
1108
1108
  });
1109
- const C = S, B = e, {
1110
- nbId: _,
1111
- display: Le,
1112
- hasTabIndexEnter: pe,
1113
- ariaLabel: Ne,
1114
- ariaAttrs: Ae,
1115
- textColor: re,
1116
- caretColor: J,
1117
- selectionBgColor: Pe,
1118
- selectionTextColor: Fe,
1119
- hasBorderRadius: ae,
1120
- borderRadius: K,
1121
- disabled: N,
1122
- fontFamily: le,
1123
- fontSize: ue,
1124
- fontWeight: Q,
1125
- fontFamilyMsg: $e,
1126
- fontSizeMsg: ie,
1127
- fontWeightMsg: H,
1128
- textMessageColor: ge,
1129
- inputWidth: X,
1130
- inputStyle: he,
1131
- activeTextStyle: ye,
1132
- sizeMediaQuery: be,
1133
- inputReadonly: I,
1134
- blockPaste: je,
1109
+ const g = y, h = e, {
1110
+ nbId: M,
1111
+ display: Q,
1112
+ hasTabIndexEnter: ce,
1113
+ ariaLabel: D,
1114
+ ariaAttrs: T,
1115
+ textColor: x,
1116
+ caretColor: I,
1117
+ selectionBgColor: ae,
1118
+ selectionTextColor: le,
1119
+ hasBorderRadius: X,
1120
+ borderRadius: _,
1121
+ disabled: $,
1122
+ fontFamily: H,
1123
+ fontSize: ie,
1124
+ fontWeight: q,
1125
+ fontFamilyMsg: Fe,
1126
+ fontSizeMsg: be,
1127
+ fontWeightMsg: ee,
1128
+ textMessageColor: Ve,
1129
+ inputWidth: fe,
1130
+ inputStyle: $e,
1131
+ activeTextStyle: Te,
1132
+ sizeMediaQuery: ke,
1133
+ inputReadonly: j,
1134
+ blockPaste: Je,
1135
1135
  showInputEye: v,
1136
- inputType: Z,
1137
- hasTrim: ze,
1138
- inputUppercase: Ue,
1139
- inputName: h,
1140
- inputPlaceholder: _e,
1141
- inputText: ee,
1142
- theme: ut,
1143
- inputEyeIcon: gt,
1144
- tabindex: tt,
1145
- inputEyeIconHidden: we,
1146
- lightBgColor: Se,
1147
- lightBgColorFocus: Bt,
1148
- lightEyeBgColor: it,
1149
- lightEyeBgColorActive: yt,
1150
- lightDisabledBgColor: Lt,
1151
- lightTextColor: bt,
1152
- darkBgColor: Oe,
1153
- darkBgColorFocus: st,
1154
- darkEyeBgColor: Ye,
1155
- darkEyeBgColorActive: x,
1156
- darkDisabledBgColor: $,
1157
- darkTextColor: se,
1158
- darkDisabledEyeBgColor: q,
1159
- lightDisabledEyeBgColor: de,
1160
- textAlign: at,
1136
+ inputType: se,
1137
+ hasTrim: Oe,
1138
+ inputUppercase: Qe,
1139
+ inputName: S,
1140
+ inputPlaceholder: Ue,
1141
+ inputText: ve,
1142
+ theme: vt,
1143
+ inputEyeIcon: ht,
1144
+ tabindex: ot,
1145
+ inputEyeIconHidden: ze,
1146
+ lightBgColor: Be,
1147
+ lightBgColorFocus: kt,
1148
+ lightEyeBgColor: pt,
1149
+ lightEyeBgColorActive: St,
1150
+ lightDisabledBgColor: Bt,
1151
+ lightTextColor: xt,
1152
+ darkBgColor: Le,
1153
+ darkBgColorFocus: gt,
1154
+ darkEyeBgColor: Xe,
1155
+ darkEyeBgColorActive: V,
1156
+ darkDisabledBgColor: N,
1157
+ darkTextColor: me,
1158
+ darkDisabledEyeBgColor: te,
1159
+ lightDisabledEyeBgColor: he,
1160
+ textAlign: et,
1161
1161
  showMsg: Ge,
1162
- hasMsg: We,
1163
- hasIcon: p,
1164
- iconDirection: T,
1165
- iconPadding: te,
1166
- iconPaddingInput: ne,
1167
- iconMargin: ce,
1168
- iconBorderRadius: De,
1169
- iconLightTextColor: xe,
1170
- iconDarkTextColor: Re,
1171
- iconLightBgColor: Ie,
1172
- iconDarkBgColor: He,
1162
+ hasMsg: Ie,
1163
+ hasIcon: b,
1164
+ iconDirection: L,
1165
+ iconPadding: de,
1166
+ iconPaddingInput: ge,
1167
+ iconMargin: Se,
1168
+ iconBorderRadius: _e,
1169
+ iconLightTextColor: We,
1170
+ iconDarkTextColor: Ee,
1171
+ iconLightBgColor: He,
1172
+ iconDarkBgColor: qe,
1173
1173
  iconLightBgColorActive: Ke,
1174
- iconDarkBgColorActive: dt,
1175
- iconLightDisabledBgColor: ct,
1174
+ iconDarkBgColorActive: tt,
1175
+ iconLightDisabledBgColor: yt,
1176
1176
  iconDarkDisabledBgColor: Rt,
1177
- iconWidth: mt,
1178
- iconSize: ht,
1179
- showLabel: Qe,
1177
+ iconWidth: Ct,
1178
+ iconSize: bt,
1179
+ showLabel: at,
1180
1180
  label: Mt,
1181
- labelBreakOnActive: Ze,
1182
- labelBackground: ft,
1183
- labelPadding: m,
1184
- labelBorderRadius: R,
1185
- labelLeft: g,
1186
- inputLabelMarginActive: St,
1187
- labelActiveTop: lt,
1188
- labelActiveLeft: xt,
1189
- labelRight: Ce,
1190
- labelActiveRight: nt,
1191
- fontFamilyLabel: fe,
1192
- fontSizeLabel: Ct,
1193
- fontSizeLabelActive: Vt,
1194
- fontWeightLabel: j,
1181
+ labelBreakOnActive: rt,
1182
+ labelBackground: Vt,
1183
+ labelPadding: k,
1184
+ labelBorderRadius: E,
1185
+ labelLeft: Z,
1186
+ inputLabelMarginActive: Y,
1187
+ labelActiveTop: we,
1188
+ labelActiveLeft: R,
1189
+ labelRight: Et,
1190
+ labelActiveRight: De,
1191
+ fontFamilyLabel: Lt,
1192
+ fontSizeLabel: ue,
1193
+ fontSizeLabelActive: ut,
1194
+ fontWeightLabel: ne,
1195
1195
  lightTextColorLabel: At,
1196
- lightTextColorLabelActive: F,
1197
- darkTextColorLabel: E,
1198
- darkTextColorLabelActive: jt
1199
- } = Fa(B), L = Y(""), z = Y(null), Tt = Y(""), kt = Y(!1), vt = Y(!1), A = a(() => {
1200
- const o = N.value ? "component-disabled" : "", b = Le.value !== "b" ? "inline-block" : "block", ke = re ? re.value : "ffffff", Je = J.value ? J.value : "", ka = Pe.value ? Pe.value : "", ea = Fe.value ? Fe.value : "", $a = ae.value ? ae.value : !1, wa = K.value !== 0 && !K.value || K.value < 0 ? 0 : K.value, Wt = le.value ? le.value : "'Lato', sans-serif", ta = ue.value ? ue.value : null, Ht = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, Da = $e.value ? $e.value : "'Lato', sans-serif", Ia = ie.value ? ie.value : "1em", Ra = H.value !== 0 && !H.value || H.value < 0 ? 100 : H.value, me = ge.value ? ge.value : "#f15574", Ea = X.value ? X.value : 200, pt = ye.value ? ye.value : "normal", t = be.value ? be.value : "xs", l = I.value ? I.value : !1, n = v.value ? v.value : !1, r = Z.value ? Z.value : "text", d = Ue.value ? Ue.value : !1, s = ut.value ? ut.value : "normal", c = at.value ? at.value : "left", y = he.value ? he.value : "background", V = te.value ? te.value : "5px 10px", k = ce.value ? ce.value : "0", M = ne.value ? ne.value : 10, O = xe.value ? xe.value : "#000000", Me = Re.value ? Re.value : "#000000", Xe = Ie.value ? Ie.value : "transparent", qe = He.value ? He.value : "transparent", et = De.value !== 0 && !De.value || De.value < 0 ? 0 : De.value, _a = Ke.value ? Ke.value : "transparent", Oa = dt.value ? dt.value : "transparent", Ha = mt.value ? mt.value : 32, qa = ht.value ? ht.value : 1, ja = Qe.value ? Qe.value : !1, Ua = g.value !== 0 && !g.value || g.value < 0 ? 5 : g.value, Ya = ft.value ? ft.value : "transparent", Ga = St.value !== 0 && !St.value || St.value < 0 ? 15 : St.value, Ka = m.value ? m.value : "1px 5px", Qa = R.value !== 0 && !R.value || R.value < 0 ? 0 : R.value, Za = lt.value === null || lt.value === void 0 ? -13 : lt.value, Ja = xt.value === null || xt.value === void 0 ? -10 : xt.value, Xa = Ce.value === null || Ce.value === void 0 ? 0 : Ce.value, el = nt.value === null || nt.value === void 0 ? 0 : nt.value, tl = fe.value ? fe.value : "'Lato', sans-serif", al = Ct.value ? Ct.value : "1em", ll = Vt.value ? Vt.value : "0.8em", nl = j.value ? j.value : 400, ol = At.value ? At.value : "#ffffff", rl = E.value ? E.value : "#000000", ul = F.value ? F.value : "#ffffff", il = jt.value ? jt.value : "#000000";
1196
+ lightTextColorLabelActive: P,
1197
+ darkTextColorLabel: U,
1198
+ darkTextColorLabelActive: Yt
1199
+ } = Ea(h), F = oe(""), G = oe(null), Tt = oe(""), $t = oe(!1), it = oe(!1), z = a(() => {
1200
+ const o = $.value ? "component-disabled" : "", m = Q.value !== "b" ? "inline-block" : "block", Re = x ? x.value : "ffffff", nt = I.value ? I.value : "", ka = ae.value ? ae.value : "", Ba = le.value ? le.value : "", ta = X.value ? X.value : !1, wa = _.value !== 0 && !_.value || _.value < 0 ? 0 : _.value, Da = H.value ? H.value : "'Lato', sans-serif", Wt = ie.value ? ie.value : null, aa = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, qt = Fe.value ? Fe.value : "'Lato', sans-serif", Ra = be.value ? be.value : "1em", _a = ee.value !== 0 && !ee.value || ee.value < 0 ? 100 : ee.value, Ma = Ve.value ? Ve.value : "#f15574", Ha = fe.value ? fe.value : 200, Ae = Te.value ? Te.value : "normal", qa = ke.value ? ke.value : "xs", mt = j.value ? j.value : !1, t = v.value ? v.value : !1, l = se.value ? se.value : "text", n = Qe.value ? Qe.value : !1, r = vt.value ? vt.value : "normal", s = et.value ? et.value : "left", d = $e.value ? $e.value : "background", f = de.value ? de.value : "5px 10px", p = Se.value ? Se.value : "0", C = ge.value ? ge.value : 10, B = We.value ? We.value : "#000000", W = Ee.value ? Ee.value : "#000000", J = He.value ? He.value : "transparent", Me = qe.value ? qe.value : "transparent", ft = _e.value !== 0 && !_e.value || _e.value < 0 ? 0 : _e.value, Pe = Ke.value ? Ke.value : "transparent", Ze = tt.value ? tt.value : "transparent", Ua = Ct.value ? Ct.value : 32, Ga = bt.value ? bt.value : 1, Ka = at.value ? at.value : !1, Za = Z.value !== 0 && !Z.value || Z.value < 0 ? 5 : Z.value, Ja = Vt.value ? Vt.value : "transparent", Qa = Y.value !== 0 && !Y.value || Y.value < 0 ? 15 : Y.value, Xa = k.value ? k.value : "1px 5px", el = E.value !== 0 && !E.value || E.value < 0 ? 0 : E.value, tl = we.value === null || we.value === void 0 ? -13 : we.value, al = R.value === null || R.value === void 0 ? 5 : R.value, ll = Et.value === null || Et.value === void 0 ? 0 : Et.value, nl = De.value === null || De.value === void 0 ? 0 : De.value, ol = Lt.value ? Lt.value : "'Lato', sans-serif", rl = ue.value ? ue.value : "1em", ul = ut.value ? ut.value : "0.8em", il = ne.value ? ne.value : 400, sl = At.value ? At.value : "#ffffff", dl = U.value ? U.value : "#000000", cl = P.value ? P.value : "#ffffff", fl = Yt.value ? Yt.value : "#000000";
1201
1201
  return {
1202
1202
  disabled: o,
1203
- display: b,
1204
- font: Wt,
1205
- fontSize: ta,
1206
- fontWeight: Ht,
1207
- fontFamilyMsg: Da,
1208
- fontSizeMsg: Ia,
1209
- fontWeightMsg: Ra,
1210
- textMessageColor: me,
1211
- textColor: ke,
1212
- caretColor: Je,
1203
+ display: m,
1204
+ font: Da,
1205
+ fontSize: Wt,
1206
+ fontWeight: aa,
1207
+ fontFamilyMsg: qt,
1208
+ fontSizeMsg: Ra,
1209
+ fontWeightMsg: _a,
1210
+ textMessageColor: Ma,
1211
+ textColor: Re,
1212
+ caretColor: nt,
1213
1213
  selectionBgColor: ka,
1214
- selectionTextColor: ea,
1215
- hasBorderRadius: $a,
1214
+ selectionTextColor: Ba,
1215
+ hasBorderRadius: ta,
1216
1216
  borderRadius: wa,
1217
- textAlign: c,
1218
- inputWidth: Ea,
1219
- activeTextStyle: pt,
1220
- sizeMediaQuery: t,
1221
- inputReadonly: l,
1222
- showInputEye: n,
1223
- inputType: r,
1224
- inputUppercase: d,
1225
- theme: s,
1226
- inputStyle: y,
1227
- iconPadding: V,
1228
- iconMargin: k,
1229
- iconPaddingInput: M,
1230
- iconLightTextColor: O,
1231
- iconDarkTextColor: Me,
1232
- iconLightBgColor: Xe,
1233
- iconDarkBgColor: qe,
1234
- iconBorderRadius: et,
1235
- iconLightBgColorActive: _a,
1236
- iconDarkBgColorActive: Oa,
1237
- iconWidth: Ha,
1238
- iconSize: qa,
1239
- showLabel: ja,
1240
- labelBackground: Ya,
1241
- labelPadding: Ka,
1242
- labelBorderRadius: Qa,
1243
- labelLeft: Ua,
1244
- inputLabelMarginActive: Ga,
1245
- labelActiveTop: Za,
1246
- labelActiveLeft: Ja,
1247
- labelRight: Xa,
1248
- labelActiveRight: el,
1249
- fontFamilyLabel: tl,
1250
- fontSizeLabel: al,
1251
- fontSizeLabelActive: ll,
1252
- fontWeightLabel: nl,
1253
- lightTextColorLabel: ol,
1254
- darkTextColorLabel: rl,
1255
- lightTextColorLabelActive: ul,
1256
- darkTextColorLabelActive: il
1217
+ textAlign: s,
1218
+ inputWidth: Ha,
1219
+ activeTextStyle: Ae,
1220
+ sizeMediaQuery: qa,
1221
+ inputReadonly: mt,
1222
+ showInputEye: t,
1223
+ inputType: l,
1224
+ inputUppercase: n,
1225
+ theme: r,
1226
+ inputStyle: d,
1227
+ iconPadding: f,
1228
+ iconMargin: p,
1229
+ iconPaddingInput: C,
1230
+ iconLightTextColor: B,
1231
+ iconDarkTextColor: W,
1232
+ iconLightBgColor: J,
1233
+ iconDarkBgColor: Me,
1234
+ iconBorderRadius: ft,
1235
+ iconLightBgColorActive: Pe,
1236
+ iconDarkBgColorActive: Ze,
1237
+ iconWidth: Ua,
1238
+ iconSize: Ga,
1239
+ showLabel: Ka,
1240
+ labelBackground: Ja,
1241
+ labelPadding: Xa,
1242
+ labelBorderRadius: el,
1243
+ labelLeft: Za,
1244
+ inputLabelMarginActive: Qa,
1245
+ labelActiveTop: tl,
1246
+ labelActiveLeft: al,
1247
+ labelRight: ll,
1248
+ labelActiveRight: nl,
1249
+ fontFamilyLabel: ol,
1250
+ fontSizeLabel: rl,
1251
+ fontSizeLabelActive: ul,
1252
+ fontWeightLabel: il,
1253
+ lightTextColorLabel: sl,
1254
+ darkTextColorLabel: dl,
1255
+ lightTextColorLabelActive: cl,
1256
+ darkTextColorLabelActive: fl
1257
1257
  };
1258
- }), It = a(() => A.value.disabled), Et = a(() => {
1259
- const o = A.value, b = Pt.value;
1258
+ }), Nt = a(() => z.value.disabled), oa = a(() => {
1259
+ const o = z.value, m = xe.value;
1260
1260
  return {
1261
1261
  display: o.display,
1262
1262
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
1263
- paddingTop: b && Qe.value ? `${Math.abs(o.labelActiveTop)}px` : "0"
1263
+ // paddingTop: isActive && showLabel.value ? `${Math.abs(defaultValues.labelActiveTop)}px` : '0',
1264
+ paddingTop: "0px",
1265
+ // Esconde o label quando não está ativo usando overflow hidden
1266
+ overflow: m && at.value ? "visible" : "hidden"
1264
1267
  };
1265
- }), na = a(() => {
1266
- const o = A.value;
1268
+ }), ra = a(() => {
1269
+ const o = z.value;
1267
1270
  if (o.fontSize)
1268
1271
  return o.fontSize;
1269
- let b = "";
1272
+ let m = "";
1270
1273
  switch (o.sizeMediaQuery) {
1271
1274
  case "sm":
1272
1275
  return "1.2em";
@@ -1275,34 +1278,34 @@ const Ml = ["id"], Nl = ["for"], Fl = {
1275
1278
  case "lg":
1276
1279
  return "2em";
1277
1280
  default:
1278
- b = "1.2em";
1281
+ m = "1.2em";
1279
1282
  }
1280
- return b;
1281
- }), Nt = a(() => {
1282
- const o = A.value, b = Pt.value;
1283
+ return m;
1284
+ }), ua = a(() => {
1285
+ const o = z.value, m = xe.value;
1283
1286
  return {
1284
1287
  fontWeight: o.fontWeight,
1285
- marginTop: b && Qe.value ? `${o.inputLabelMarginActive}px` : "0"
1288
+ marginTop: m && at.value ? `${o.inputLabelMarginActive}px` : "0"
1286
1289
  };
1287
- }), $t = a(() => {
1288
- const o = A.value;
1290
+ }), st = a(() => {
1291
+ const o = z.value;
1289
1292
  return o.inputStyle !== "line" && o.hasBorderRadius ? { borderRadius: `${o.borderRadius}rem` } : {};
1290
- }), oa = a(() => A.value.font), ra = a(() => A.value.fontFamilyMsg), Ut = a(() => A.value.fontSizeMsg), ua = a(() => A.value.fontWeightMsg), ia = a(() => A.value.textColor), Yt = a(() => A.value.textMessageColor), sa = a(() => {
1291
- const o = A.value;
1293
+ }), Pt = a(() => z.value.font), Ot = a(() => z.value.fontFamilyMsg), ia = a(() => z.value.fontSizeMsg), Ut = a(() => z.value.fontWeightMsg), sa = a(() => z.value.textColor), Gt = a(() => z.value.textMessageColor), da = a(() => {
1294
+ const o = z.value;
1292
1295
  return o.caretColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
1293
- }), da = a(() => {
1294
- const o = A.value;
1295
- return o.selectionBgColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
1296
1296
  }), ca = a(() => {
1297
- const o = A.value;
1297
+ const o = z.value;
1298
+ return o.selectionBgColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
1299
+ }), fa = a(() => {
1300
+ const o = z.value;
1298
1301
  return o.selectionTextColor || (o.theme === "dark" ? "#000000" : "#ffffff");
1299
- }), Gt = a(() => {
1300
- const o = A.value;
1302
+ }), Kt = a(() => {
1303
+ const o = z.value;
1301
1304
  return o.display === "block" ? { width: "100%" } : {
1302
1305
  width: `${o.inputWidth}px`
1303
1306
  };
1304
- }), fa = a(() => {
1305
- switch (he.value) {
1307
+ }), va = a(() => {
1308
+ switch ($e.value) {
1306
1309
  case "line":
1307
1310
  return "component__input--line";
1308
1311
  case "border":
@@ -1310,8 +1313,8 @@ const Ml = ["id"], Nl = ["for"], Fl = {
1310
1313
  default:
1311
1314
  return "component__input--background";
1312
1315
  }
1313
- }), Kt = a(() => {
1314
- switch (A.value.activeTextStyle) {
1316
+ }), pa = a(() => {
1317
+ switch (z.value.activeTextStyle) {
1315
1318
  case "italic":
1316
1319
  return "component__input--active--italic";
1317
1320
  case "oblique":
@@ -1319,8 +1322,8 @@ const Ml = ["id"], Nl = ["for"], Fl = {
1319
1322
  default:
1320
1323
  return "component__input--active--normal";
1321
1324
  }
1322
- }), f = a(() => {
1323
- switch (A.value.sizeMediaQuery) {
1325
+ }), Ft = a(() => {
1326
+ switch (z.value.sizeMediaQuery) {
1324
1327
  case "sm":
1325
1328
  return "component__sm";
1326
1329
  case "md":
@@ -1330,225 +1333,225 @@ const Ml = ["id"], Nl = ["for"], Fl = {
1330
1333
  default:
1331
1334
  return "";
1332
1335
  }
1333
- }), w = a(() => {
1334
- switch (A.value.theme) {
1336
+ }), c = a(() => {
1337
+ switch (z.value.theme) {
1335
1338
  case "dark":
1336
1339
  return "component__theme--dark";
1337
1340
  default:
1338
1341
  return "component__theme--light";
1339
1342
  }
1340
- }), U = a(() => A.value.inputReadonly ? "component__input--read-only" : ""), i = a(() => A.value.inputUppercase ? "component__input--uppercase" : ""), D = a(() => {
1341
- const o = A.value;
1343
+ }), w = a(() => z.value.inputReadonly ? "component__input--read-only" : ""), pe = a(() => z.value.inputUppercase ? "component__input--uppercase" : ""), je = a(() => {
1344
+ const o = z.value;
1342
1345
  return !!(o.showInputEye && o.inputType === "password");
1343
- }), Ve = a(() => kt.value ? gt.value : we.value), Te = a(() => h.value ? h.value : `${_.value}-name-label`), va = a(() => Qe.value ? vt.value ? _e.value : "" : _e.value), Pt = a(() => {
1344
- const o = L.value;
1345
- return vt.value || o != null && String(o).trim().length > 0;
1346
- }), pa = a(() => A.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Qt = a(() => vt.value ? "component__input--active" : "component__input--no-active"), ga = a(() => D.value ? "6px 50px 6px 10px" : "6px 10px"), ya = a(() => !!(Ge.value && We.value)), ba = a(() => {
1346
+ }), Zt = a(() => $t.value ? ht.value : ze.value), i = a(() => S.value ? S.value : `${M.value}-name-label`), A = a(() => at.value ? it.value ? Ue.value : "" : Ue.value), xe = a(() => {
1347
+ const o = F.value;
1348
+ return it.value || o != null && String(o).trim().length > 0;
1349
+ }), lt = a(() => z.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Jt = a(() => it.value ? "component__input--active" : "component__input--no-active"), ga = a(() => je.value ? "6px 50px 6px 10px" : "6px 10px"), ya = a(() => !!(Ge.value && Ie.value)), ba = a(() => {
1347
1350
  const o = {};
1348
- Ae.value && Object.keys(Ae.value).forEach((Je) => o[`aria-${Je}`] = Ae.value[Je]);
1349
- const b = {
1350
- "aria-label": Ne.value,
1351
- "aria-disabled": N.value,
1351
+ T.value && Object.keys(T.value).forEach((nt) => o[`aria-${nt}`] = T.value[nt]);
1352
+ const m = {
1353
+ "aria-label": D.value,
1354
+ "aria-disabled": $.value,
1352
1355
  ...o
1353
1356
  };
1354
1357
  return Object.fromEntries(
1355
- Object.entries(b).filter(([ke, Je]) => Je != null)
1358
+ Object.entries(m).filter(([Re, nt]) => nt != null)
1356
1359
  );
1357
- }), ma = a(() => p.value ? `${ht.value}rem` : "0"), wt = a(() => p.value ? `${mt.value}px` : "0"), ha = a(() => p.value ? `component__icon--${T.value}` : ""), Sa = a(() => {
1358
- const o = A.value;
1359
- return p.value ? o.iconPadding : "0";
1360
+ }), ma = a(() => b.value ? `${bt.value}rem` : "0"), wt = a(() => b.value ? `${Ct.value}px` : "0"), ha = a(() => b.value ? `component__icon--${L.value}` : ""), Sa = a(() => {
1361
+ const o = z.value;
1362
+ return b.value ? o.iconPadding : "0";
1360
1363
  }), xa = a(() => {
1361
- const o = A.value;
1362
- return p.value ? o.iconMargin : "0";
1364
+ const o = z.value;
1365
+ return b.value ? o.iconMargin : "0";
1363
1366
  }), Ca = a(() => {
1364
- const o = A.value;
1365
- return p.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
1366
- }), ot = a(() => {
1367
- const o = A.value;
1368
- return p.value ? `${o.iconBorderRadius}rem` : "0";
1367
+ const o = z.value;
1368
+ return b.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
1369
+ }), dt = a(() => {
1370
+ const o = z.value;
1371
+ return b.value ? `${o.iconBorderRadius}rem` : "0";
1369
1372
  }), _t = a(() => {
1370
- const o = A.value;
1371
- return p.value ? T.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
1372
- }), Zt = a(() => {
1373
- const o = A.value, b = Pt.value, ke = b ? o.lightTextColorLabelActive : o.lightTextColorLabel, Je = b ? o.darkTextColorLabelActive : o.darkTextColorLabel;
1373
+ const o = z.value;
1374
+ return b.value ? L.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
1375
+ }), Qt = a(() => {
1376
+ const o = z.value, m = xe.value, Re = m ? o.lightTextColorLabelActive : o.lightTextColorLabel, nt = m ? o.darkTextColorLabelActive : o.darkTextColorLabel;
1374
1377
  return {
1375
1378
  fontFamily: o.fontFamilyLabel,
1376
- fontSize: b ? o.fontSizeLabelActive : o.fontSizeLabel,
1379
+ fontSize: m ? o.fontSizeLabelActive : o.fontSizeLabel,
1377
1380
  fontWeight: o.fontWeightLabel,
1378
- color: o.theme === "dark" ? Je : ke,
1379
- top: b ? `${o.labelActiveTop}px` : "50%",
1380
- left: b ? `${o.labelActiveLeft}px` : `${o.labelLeft}px`,
1381
- right: b ? `${o.labelActiveRight}px` : `${o.labelRight}px`,
1382
- transform: b ? "translateY(0)" : "translateY(-50%)",
1381
+ color: o.theme === "dark" ? nt : Re,
1382
+ top: m ? `${o.labelActiveTop}px` : "50%",
1383
+ left: m ? `${o.labelActiveLeft}px` : `${o.labelLeft}px`,
1384
+ right: m ? `${o.labelActiveRight}px` : `${o.labelRight}px`,
1385
+ transform: m ? "translateY(0)" : "translateY(-50%)",
1383
1386
  transition: "all 0.2s ease",
1384
- backgroundColor: b ? o.labelBackground : "transparent",
1385
- padding: b ? o.labelPadding : "0",
1386
- borderRadius: b ? `${o.labelBorderRadius}rem` : "0",
1387
+ backgroundColor: m ? o.labelBackground : "transparent",
1388
+ padding: m ? o.labelPadding : "0",
1389
+ borderRadius: m ? `${o.labelBorderRadius}rem` : "0",
1387
1390
  // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
1388
- ...b ? {
1389
- whiteSpace: Ze.value ? "nowrap" : "normal",
1390
- wordWrap: Ze.value ? "normal" : "break-word",
1391
- overflowWrap: Ze.value ? "normal" : "break-word",
1391
+ ...m ? {
1392
+ whiteSpace: rt.value ? "nowrap" : "normal",
1393
+ wordWrap: rt.value ? "normal" : "break-word",
1394
+ overflowWrap: rt.value ? "normal" : "break-word",
1392
1395
  maxWidth: "100%",
1393
- textOverflow: Ze.value ? "ellipsis" : "clip",
1394
- overflow: Ze.value ? "hidden" : "visible"
1396
+ textOverflow: rt.value ? "ellipsis" : "clip",
1397
+ overflow: rt.value ? "hidden" : "visible"
1395
1398
  } : {}
1396
1399
  };
1397
1400
  });
1398
1401
  a(() => {
1399
- const o = A.value;
1402
+ const o = z.value;
1400
1403
  return o.theme === "dark" ? o.darkTextColorLabelActive : o.lightTextColorLabelActive;
1401
1404
  });
1402
- const Jt = () => {
1403
- ee.value != null ? Z.value === "number" && typeof ee.value == "number" ? L.value = ee.value : L.value = String(ee.value) : L.value = "", Tt.value = Z.value;
1404
- }, Ot = () => {
1405
- const o = A.value;
1405
+ const Xt = () => {
1406
+ ve.value != null ? se.value === "number" && typeof ve.value == "number" ? F.value = ve.value : F.value = String(ve.value) : F.value = "", Tt.value = se.value;
1407
+ }, Ht = () => {
1408
+ const o = z.value;
1406
1409
  if (o.inputReadonly || o.disabled)
1407
1410
  return;
1408
- const b = !kt.value;
1409
- b ? Tt.value = "text" : Tt.value = Z.value, kt.value = b;
1410
- }, Ft = a(() => Tt.value === "number"), rt = (o) => {
1411
- if (Z.value === "number") {
1411
+ const m = !$t.value;
1412
+ m ? Tt.value = "text" : Tt.value = se.value, $t.value = m;
1413
+ }, zt = a(() => Tt.value === "number"), ct = (o) => {
1414
+ if (se.value === "number") {
1412
1415
  if (o === "" || o === null || o === void 0)
1413
1416
  return "";
1414
1417
  {
1415
- const b = typeof o == "number" ? o : Number(o);
1416
- return isNaN(b) ? o : b;
1418
+ const m = typeof o == "number" ? o : Number(o);
1419
+ return isNaN(m) ? o : m;
1417
1420
  }
1418
1421
  }
1419
1422
  return o;
1420
- }, zt = () => {
1421
- C("clicked");
1423
+ }, It = () => {
1424
+ g("clicked");
1422
1425
  }, Va = (o) => {
1423
- o.stopPropagation(), !(N.value || A.value.inputReadonly) && z.value && z.value.focus();
1424
- }, Xt = () => {
1425
- N.value || A.value.inputReadonly || !pe.value || C("entered", rt(L.value));
1426
- }, Ta = async (o) => {
1427
- var ke;
1428
- const b = ((ke = o.clipboardData) == null ? void 0 : ke.getData("text")) || "";
1429
- C("paste", b), je.value && o.preventDefault();
1426
+ o.stopPropagation(), !($.value || z.value.inputReadonly) && G.value && G.value.focus();
1427
+ }, Ta = () => {
1428
+ $.value || z.value.inputReadonly || !ce.value || g("entered", ct(F.value));
1429
+ }, ea = async (o) => {
1430
+ var Re;
1431
+ const m = ((Re = o.clipboardData) == null ? void 0 : Re.getData("text")) || "";
1432
+ g("paste", m), Je.value && o.preventDefault();
1430
1433
  };
1431
- return G(Z, (o) => {
1434
+ return re(se, (o) => {
1432
1435
  Tt.value = o;
1433
- }, { immediate: !0 }), G(ee, (o) => {
1436
+ }, { immediate: !0 }), re(ve, (o) => {
1434
1437
  if (o != null)
1435
- if (Z.value === "number" && typeof o == "number")
1436
- o !== L.value && (L.value = o);
1438
+ if (se.value === "number" && typeof o == "number")
1439
+ o !== F.value && (F.value = o);
1437
1440
  else {
1438
- const b = String(o);
1439
- b !== L.value && (L.value = b);
1441
+ const m = String(o);
1442
+ m !== F.value && (F.value = m);
1440
1443
  }
1441
1444
  else
1442
- L.value !== "" && (L.value = "");
1443
- }, { immediate: !0 }), G(L, (o) => {
1444
- ze.value && typeof o == "string" && (o = o.trim()), C("changed", rt(o));
1445
- }), G(vt, (o) => {
1446
- C(o ? "focused" : "blurred");
1447
- }), G(kt, (o) => {
1448
- C("show-input-eye", o);
1449
- }, { immediate: !0 }), G(L, (o) => {
1450
- ze.value && typeof o == "string" && (o = o.trim()), C("current-value", rt(o));
1451
- }), G(Z, (o) => {
1445
+ F.value !== "" && (F.value = "");
1446
+ }, { immediate: !0 }), re(F, (o) => {
1447
+ Oe.value && typeof o == "string" && (o = o.trim()), g("changed", ct(o));
1448
+ }), re(it, (o) => {
1449
+ g(o ? "focused" : "blurred");
1450
+ }), re($t, (o) => {
1451
+ g("show-input-eye", o);
1452
+ }, { immediate: !0 }), re(F, (o) => {
1453
+ Oe.value && typeof o == "string" && (o = o.trim()), g("current-value", ct(o));
1454
+ }), re(se, (o) => {
1452
1455
  o === "password" && nextTick(() => {
1453
- const b = document.getElementById(h.value);
1454
- b && (b.type = "password", b.removeAttribute("autocomplete"));
1456
+ const m = document.getElementById(S.value);
1457
+ m && (m.type = "password", m.removeAttribute("autocomplete"));
1455
1458
  });
1456
- }), (o, b) => u(_) ? (W(), P("div", Aa({
1459
+ }), (o, m) => u(M) ? (O(), K("div", $a({
1457
1460
  key: 0,
1458
- class: ["nb-wrapper", It.value],
1459
- style: [Et.value, Gt.value, $t.value],
1461
+ class: ["nb-wrapper", Nt.value],
1462
+ style: [oa.value, Kt.value, st.value],
1460
1463
  role: "input"
1461
1464
  }, ba.value), [
1462
- ve("div", {
1463
- id: u(_),
1464
- class: Ee(["nb-reset", "component", f.value, w.value, U.value, fa.value]),
1465
- style: Be([Nt.value, Gt.value, $t.value]),
1466
- onClick: zt
1465
+ Ce("div", {
1466
+ id: u(M),
1467
+ class: Ye(["nb-reset", "component", Ft.value, c.value, w.value, va.value]),
1468
+ style: Ne([ua.value, Kt.value, st.value]),
1469
+ onClick: It
1467
1470
  }, [
1468
- u(Qe) ? (W(), P("label", {
1471
+ u(at) ? (O(), K("label", {
1469
1472
  key: 0,
1470
- for: Te.value,
1473
+ for: i.value,
1471
1474
  class: "component__label",
1472
- style: Be([Zt.value]),
1475
+ style: Ne([Qt.value]),
1473
1476
  onClick: Va
1474
1477
  }, [
1475
- qt(Dt(u(Mt)), 1),
1476
- e.required ? (W(), P("span", Fl, "*")) : oe("", !0)
1477
- ], 12, Nl)) : oe("", !0),
1478
- D.value ? (W(), P("div", {
1478
+ jt(Dt(u(Mt)), 1),
1479
+ e.required ? (O(), K("span", _l, "*")) : ye("", !0)
1480
+ ], 12, Ol)) : ye("", !0),
1481
+ je.value ? (O(), K("div", {
1479
1482
  key: 1,
1480
- class: Ee(["component__eye", Qt.value]),
1481
- style: Be([$t.value]),
1482
- onClick: Ot
1483
+ class: Ye(["component__eye", Jt.value]),
1484
+ style: Ne([st.value]),
1485
+ onClick: Ht
1483
1486
  }, [
1484
- ve("label", {
1485
- for: Te.value,
1486
- class: Ee(["component__eye-icon", "fas"])
1487
+ Ce("label", {
1488
+ for: i.value,
1489
+ class: Ye(["component__eye-icon", "fas"])
1487
1490
  }, [
1488
- e.inputEyeCustomIcon ? (W(), P("span", Il, [
1489
- kt.value ? Ba(o.$slots, "eye-icon-show", { key: 0 }, () => [
1490
- b[4] || (b[4] = qt("show"))
1491
- ], !0) : Ba(o.$slots, "eye-icon-hidden", { key: 1 }, () => [
1492
- b[5] || (b[5] = qt("hidden"))
1491
+ e.inputEyeCustomIcon ? (O(), K("span", jl, [
1492
+ $t.value ? La(o.$slots, "eye-icon-show", { key: 0 }, () => [
1493
+ m[4] || (m[4] = jt("show"))
1494
+ ], !0) : La(o.$slots, "eye-icon-hidden", { key: 1 }, () => [
1495
+ m[5] || (m[5] = jt("hidden"))
1493
1496
  ], !0)
1494
- ])) : (W(), P("span", Wl, Dt(Ve.value), 1))
1495
- ], 8, zl)
1496
- ], 6)) : oe("", !0),
1497
- za(ve("input", {
1497
+ ])) : (O(), K("span", ql, Dt(Zt.value), 1))
1498
+ ], 8, Hl)
1499
+ ], 6)) : ye("", !0),
1500
+ Pa(Ce("input", {
1498
1501
  ref_key: "inputRef",
1499
- ref: z,
1500
- "onUpdate:modelValue": b[0] || (b[0] = (ke) => L.value = ke),
1501
- id: Te.value,
1502
- name: Te.value,
1502
+ ref: G,
1503
+ "onUpdate:modelValue": m[0] || (m[0] = (Re) => F.value = Re),
1504
+ id: i.value,
1505
+ name: i.value,
1503
1506
  type: Tt.value,
1504
- class: Ee(["component__input", [
1505
- i.value,
1506
- pa.value,
1507
- Kt.value
1507
+ class: Ye(["component__input", [
1508
+ pe.value,
1509
+ lt.value,
1510
+ pa.value
1508
1511
  ]]),
1509
- placeholder: va.value,
1510
- disabled: u(N) || u(I),
1512
+ placeholder: A.value,
1513
+ disabled: u($) || u(j),
1511
1514
  required: e.required,
1512
- readonly: u(I),
1515
+ readonly: u(j),
1513
1516
  autocomplete: e.inputAutocomplete,
1514
- tabindex: u(N) || u(I) ? -1 : u(tt),
1515
- min: Ft.value ? e.min : void 0,
1516
- max: Ft.value ? e.max : void 0,
1517
- step: Ft.value ? e.step : void 0,
1517
+ tabindex: u($) || u(j) ? -1 : u(ot),
1518
+ min: zt.value ? e.min : void 0,
1519
+ max: zt.value ? e.max : void 0,
1520
+ step: zt.value ? e.step : void 0,
1518
1521
  role: "input",
1519
- style: Be([$t.value, _t.value]),
1520
- onFocus: b[1] || (b[1] = (ke) => vt.value = !0),
1521
- onBlur: b[2] || (b[2] = (ke) => vt.value = !1),
1522
- onKeydown: b[3] || (b[3] = la((ke) => !u(N) && u(pe) && Xt(), ["enter"])),
1523
- onPaste: Ta
1524
- }, null, 46, El), [
1525
- [fl, L.value]
1522
+ style: Ne([st.value, _t.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) && Ta(), ["enter"])),
1526
+ onPaste: ea
1527
+ }, null, 46, Yl), [
1528
+ [bl, F.value]
1526
1529
  ]),
1527
- u(p) ? (W(), P("label", {
1530
+ u(b) ? (O(), K("label", {
1528
1531
  key: 2,
1529
- for: Te.value,
1530
- class: Ee(["component__icon", ha.value])
1532
+ for: i.value,
1533
+ class: Ye(["component__icon", ha.value])
1531
1534
  }, [
1532
- Ba(o.$slots, "icon", {}, () => [
1533
- b[6] || (b[6] = ve("span", null, "♥", -1))
1535
+ La(o.$slots, "icon", {}, () => [
1536
+ m[6] || (m[6] = Ce("span", null, "♥", -1))
1534
1537
  ], !0)
1535
- ], 10, Pl)) : oe("", !0)
1536
- ], 14, Ml),
1537
- ya.value ? (W(), P("div", {
1538
+ ], 10, Ul)) : ye("", !0)
1539
+ ], 14, Pl),
1540
+ ya.value ? (O(), K("div", {
1538
1541
  key: 0,
1539
- class: Ee(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
1542
+ class: Ye(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
1540
1543
  }, [
1541
- Ba(o.$slots, "message", {}, () => [
1542
- qt(Dt(e.message), 1)
1544
+ La(o.$slots, "message", {}, () => [
1545
+ jt(Dt(e.message), 1)
1543
1546
  ], !0)
1544
- ], 2)) : oe("", !0)
1545
- ], 16)) : oe("", !0);
1547
+ ], 2)) : ye("", !0)
1548
+ ], 16)) : ye("", !0);
1546
1549
  }
1547
- }), Ol = /* @__PURE__ */ Wa(_l, [["__scopeId", "data-v-1dc2e4db"]]);
1548
- const Hl = ["for"], ql = {
1550
+ }), Kl = /* @__PURE__ */ Oa(Gl, [["__scopeId", "data-v-4a717a3b"]]);
1551
+ const Zl = ["for"], Jl = {
1549
1552
  key: 0,
1550
1553
  class: "component__label--required"
1551
- }, jl = ["id"], Ul = ["onClick"], Yl = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], Gl = /* @__PURE__ */ Object.assign({
1554
+ }, Ql = ["id"], Xl = ["onClick"], en = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], tn = /* @__PURE__ */ Object.assign({
1552
1555
  name: "NbInputChip",
1553
1556
  inheritAttrs: !1
1554
1557
  }, {
@@ -1562,8 +1565,8 @@ const Hl = ["for"], ql = {
1562
1565
  type: String,
1563
1566
  default: "b",
1564
1567
  validator: (e = "b") => {
1565
- const S = e.toLowerCase();
1566
- return ["b", "ib"].includes(S);
1568
+ const y = e.toLowerCase();
1569
+ return ["b", "ib"].includes(y);
1567
1570
  }
1568
1571
  },
1569
1572
  tabIndex: {
@@ -1823,6 +1826,11 @@ const Hl = ["for"], ql = {
1823
1826
  type: Number,
1824
1827
  default: 0
1825
1828
  },
1829
+ labelBreakOnActive: {
1830
+ type: Boolean,
1831
+ default: !0,
1832
+ validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
1833
+ },
1826
1834
  labelLeft: {
1827
1835
  type: Number,
1828
1836
  default: 5
@@ -1889,169 +1897,178 @@ const Hl = ["for"], ql = {
1889
1897
  }
1890
1898
  },
1891
1899
  emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred", "paste"],
1892
- setup(e, { emit: S }) {
1893
- Na((f) => ({
1894
- "47d9637a": jt.value,
1895
- "65b71666": z.value,
1896
- "40cfe1aa": u(gt),
1897
- "11f69f5a": u(Ue),
1898
- "7e5dfe4c": u(_e),
1899
- "81b13832": u(tt),
1900
- "29dc2dbf": u(we),
1901
- "09f33a88": u(Se),
1902
- "0b5826d6": u(st),
1903
- "19e63f86": u(it),
1904
- "4ccfad94": u(Lt),
1905
- "1a618ed1": u(Ye),
1906
- c19173ae: u(x),
1907
- d62c3f1c: u($),
1908
- "2f211428": u(ee),
1909
- "8764e57c": u(bt),
1910
- "3b29a854": j.value,
1911
- b3f81bb4: kt.value,
1912
- "2813ea10": vt.value,
1913
- "5d9d5490": A.value,
1914
- "1883778b": f.styleButtonColor,
1915
- "4be6b620": L.value,
1916
- "4b848537": u(ut),
1917
- "3360c130": u(Bt),
1918
- "5309a9be": u(Oe),
1919
- "755e621a": u(se)
1920
- })), La(() => {
1921
- K.value.length > 0 && (Ce.value = K.value);
1900
+ setup(e, { emit: y }) {
1901
+ Wa((c) => ({
1902
+ "4b2d2ea2": F.value,
1903
+ "0ac199f5": Tt.value,
1904
+ "96b3ef5a": u(ht),
1905
+ "660ed37b": u(Qe),
1906
+ "47d24d74": u(Ue),
1907
+ eec899e2: u(ot),
1908
+ "677952e7": u(ze),
1909
+ "54dbb5b0": u(Be),
1910
+ "6c8e2e6d": u(gt),
1911
+ "33c48fd6": u(pt),
1912
+ b36d55e4: u(Bt),
1913
+ "31da8aae": u(Xe),
1914
+ "044cdc01": u(V),
1915
+ "0af1604a": u(N),
1916
+ "0ad34078": u(ve),
1917
+ "0736086a": u(xt),
1918
+ "54a56dae": At.value,
1919
+ "72b51dfe": it.value,
1920
+ "03c61660": z.value,
1921
+ fc9daf30: Nt.value,
1922
+ "3c10729a": c.styleButtonColor,
1923
+ a1cac3d0: G.value,
1924
+ d325ff42: u(vt),
1925
+ dc712f50: u(kt),
1926
+ "4c82aaf9": u(Le),
1927
+ cd1b941c: u(me)
1928
+ })), Aa(() => {
1929
+ _.value.length > 0 && (De.value = _.value);
1922
1930
  });
1923
- const C = S, B = e, {
1924
- nbId: _,
1925
- display: Le,
1926
- textColor: pe,
1927
- paddingX: Ne,
1928
- paddingY: Ae,
1929
- borderRadius: re,
1930
- disabled: J,
1931
- fontFamily: Pe,
1932
- fontSize: Fe,
1933
- fontWeight: ae,
1934
- currentList: K,
1935
- allowDuplicates: N,
1936
- minChips: le,
1937
- maxChips: ue,
1938
- inputPosition: Q,
1939
- width: $e,
1940
- inputName: ie,
1941
- inputPlaceholder: H,
1942
- inputUppercase: ge,
1943
- inputReadonly: X,
1944
- blockPaste: he,
1945
- inputAutocomplete: ye,
1946
- required: be,
1947
- textAlign: I,
1948
- hasBorderRadius: je,
1931
+ const g = y, h = e, {
1932
+ nbId: M,
1933
+ display: Q,
1934
+ textColor: ce,
1935
+ paddingX: D,
1936
+ paddingY: T,
1937
+ borderRadius: x,
1938
+ disabled: I,
1939
+ fontFamily: ae,
1940
+ fontSize: le,
1941
+ fontWeight: X,
1942
+ currentList: _,
1943
+ allowDuplicates: $,
1944
+ minChips: H,
1945
+ maxChips: ie,
1946
+ inputPosition: q,
1947
+ width: Fe,
1948
+ inputName: be,
1949
+ inputPlaceholder: ee,
1950
+ inputUppercase: Ve,
1951
+ inputReadonly: fe,
1952
+ blockPaste: $e,
1953
+ inputAutocomplete: Te,
1954
+ required: ke,
1955
+ textAlign: j,
1956
+ hasBorderRadius: Je,
1949
1957
  activeTextStyle: v,
1950
- theme: Z,
1951
- inputStyle: ze,
1952
- lightBgColor: Ue,
1953
- lightBgColorFocus: h,
1954
- lightBorderColor: _e,
1955
- lightBorderColorFocus: ee,
1956
- lightDisabledBgColor: ut,
1957
- lightTextColor: gt,
1958
- lightChipBgColor: tt,
1959
- lightChipTextColor: we,
1960
- lightChipRemoveColor: Se,
1961
- lightDisabledBorderColor: Bt,
1962
- darkBgColor: it,
1963
- darkBgColorFocus: yt,
1964
- darkBorderColor: Lt,
1965
- darkBorderColorFocus: bt,
1966
- darkDisabledBgColor: Oe,
1967
- darkTextColor: st,
1968
- darkChipBgColor: Ye,
1969
- darkChipTextColor: x,
1970
- darkChipRemoveColor: $,
1971
- darkDisabledBorderColor: se,
1972
- tabIndex: q,
1973
- hasTabIndexEnter: de,
1974
- ariaLabel: at,
1958
+ theme: se,
1959
+ inputStyle: Oe,
1960
+ lightBgColor: Qe,
1961
+ lightBgColorFocus: S,
1962
+ lightBorderColor: Ue,
1963
+ lightBorderColorFocus: ve,
1964
+ lightDisabledBgColor: vt,
1965
+ lightTextColor: ht,
1966
+ lightChipBgColor: ot,
1967
+ lightChipTextColor: ze,
1968
+ lightChipRemoveColor: Be,
1969
+ lightDisabledBorderColor: kt,
1970
+ darkBgColor: pt,
1971
+ darkBgColorFocus: St,
1972
+ darkBorderColor: Bt,
1973
+ darkBorderColorFocus: xt,
1974
+ darkDisabledBgColor: Le,
1975
+ darkTextColor: gt,
1976
+ darkChipBgColor: Xe,
1977
+ darkChipTextColor: V,
1978
+ darkChipRemoveColor: N,
1979
+ darkDisabledBorderColor: me,
1980
+ tabIndex: te,
1981
+ hasTabIndexEnter: he,
1982
+ ariaLabel: et,
1975
1983
  ariaAttrs: Ge,
1976
- caretColor: We,
1977
- selectionBgColor: p,
1978
- selectionTextColor: T,
1979
- showLabel: te,
1980
- label: ne,
1981
- labelBackground: ce,
1982
- labelPadding: De,
1983
- labelBorderRadius: xe,
1984
- labelLeft: Re,
1985
- inputLabelMarginActive: Ie,
1986
- labelActiveTop: He,
1987
- labelActiveLeft: Ke,
1988
- fontFamilyLabel: dt,
1989
- fontSizeLabel: ct,
1990
- fontSizeLabelActive: Rt,
1991
- fontWeightLabel: mt,
1992
- lightTextColorLabel: ht,
1993
- lightTextColorLabelActive: Qe,
1994
- darkTextColorLabel: Mt,
1995
- darkTextColorLabelActive: Ze,
1996
- fontFamilyChip: ft,
1997
- fontSizeChip: m,
1998
- fontWeightChip: R
1999
- } = Fa(B), g = Y(""), St = Y(null), lt = Y(null), xt = Y(null), Ce = Y([]), nt = Y(!1), fe = a(() => {
2000
- const f = J.value ? "component-disabled" : "", w = Le.value !== "b" ? "inline-block" : "block", U = !$e.value || $e.value < 185 ? 185 : $e.value, i = pe ? pe.value : "ffffff", D = We.value ? We.value : "", Ve = p.value ? p.value : "", Te = T.value ? T.value : "", va = Ne.value !== 0 && !Ne.value || Ne.value < 0 ? 1 : Ne.value, Pt = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 0.2 : Ae.value, pa = re.value !== 0 && !re.value || re.value < 0 ? 0 : re.value, Qt = Pe.value ? Pe.value : "'Lato', sans-serif", ga = Fe.value ? Fe.value : "1.2em", ya = ae.value !== 0 && !ae.value || ae.value < 0 ? 100 : ae.value, ba = le.value !== 0 && !le.value || le.value < 0 ? 0 : le.value, ma = ue.value !== 0 && !ue.value || ue.value < 0 ? 10 : ue.value, wt = !Q.value || !["top", "bottom"].includes(Q.value) ? "bottom" : Q.value, ha = !ze.value || !["background", "line", "border"].includes(ze.value) ? "background" : ze.value, Sa = Z.value ? Z.value : "light", xa = te.value ? te.value : !1, Ca = Re.value !== 0 && !Re.value || Re.value < 0 ? 5 : Re.value, ot = ce.value ? ce.value : "transparent", _t = Ie.value !== 0 && !Ie.value || Ie.value < 0 ? 15 : Ie.value, Zt = De.value ? De.value : "1px 5px", Jt = xe.value !== 0 && !xe.value || xe.value < 0 ? 0 : xe.value, Ot = He.value === null || He.value === void 0 ? -13 : He.value, Ft = Ke.value === null || Ke.value === void 0 ? 5 : Ke.value, rt = dt.value ? dt.value : "'Lato', sans-serif", zt = ct.value ? ct.value : "1em", Va = Rt.value ? Rt.value : "0.8em", Xt = mt.value ? mt.value : 400, Ta = ht.value ? ht.value : "#333333", o = Mt.value ? Mt.value : "#ffffff", b = Qe.value ? Qe.value : "#333333", ke = Ze.value ? Ze.value : "#ffffff", Je = ft.value ? ft.value : "'Lato', sans-serif", ka = m.value ? m.value : "1.2em", ea = R.value ? R.value : 400;
1984
+ caretColor: Ie,
1985
+ selectionBgColor: b,
1986
+ selectionTextColor: L,
1987
+ showLabel: de,
1988
+ label: ge,
1989
+ labelBackground: Se,
1990
+ labelPadding: _e,
1991
+ labelBorderRadius: We,
1992
+ labelBreakOnActive: Ee,
1993
+ labelLeft: He,
1994
+ inputLabelMarginActive: qe,
1995
+ labelActiveTop: Ke,
1996
+ labelActiveLeft: tt,
1997
+ fontFamilyLabel: yt,
1998
+ fontSizeLabel: Rt,
1999
+ fontSizeLabelActive: Ct,
2000
+ fontWeightLabel: bt,
2001
+ lightTextColorLabel: at,
2002
+ lightTextColorLabelActive: Mt,
2003
+ darkTextColorLabel: rt,
2004
+ darkTextColorLabelActive: Vt,
2005
+ fontFamilyChip: k,
2006
+ fontSizeChip: E,
2007
+ fontWeightChip: Z
2008
+ } = Ea(h), Y = oe(""), we = oe(null), R = oe(null), Et = oe(null), De = oe([]), Lt = 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, je = ce ? ce.value : "ffffff", Zt = Ie.value ? Ie.value : "", i = b.value ? b.value : "", A = L.value ? L.value : "", xe = D.value !== 0 && !D.value || D.value < 0 ? 1 : D.value, lt = T.value !== 0 && !T.value || T.value < 0 ? 0.2 : T.value, Jt = 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, wt = 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", Qt = qe.value !== 0 && !qe.value || qe.value < 0 ? 15 : qe.value, Xt = _e.value ? _e.value : "1px 5px", Ht = We.value !== 0 && !We.value || We.value < 0 ? 0 : We.value, zt = Ke.value === null || Ke.value === void 0 ? -13 : Ke.value, ct = tt.value === null || tt.value === void 0 ? 5 : tt.value, It = yt.value ? yt.value : "'Lato', sans-serif", Va = Rt.value ? Rt.value : "1em", Ta = Ct.value ? Ct.value : "0.8em", ea = bt.value ? bt.value : 400, o = at.value ? at.value : "#333333", m = rt.value ? rt.value : "#ffffff", Re = Mt.value ? Mt.value : "#333333", nt = Vt.value ? Vt.value : "#ffffff", ka = k.value ? k.value : "'Lato', sans-serif", Ba = E.value ? E.value : "1.2em", ta = Z.value ? Z.value : 400;
2001
2010
  return {
2002
- disabled: f,
2011
+ disabled: c,
2003
2012
  display: w,
2004
- width: U,
2005
- font: Qt,
2006
- fontSize: ga,
2007
- fontWeight: ya,
2008
- textColor: i,
2009
- caretColor: D,
2010
- selectionBgColor: Ve,
2011
- selectionTextColor: Te,
2012
- paddingX: va,
2013
- paddingY: Pt,
2014
- borderRadius: pa,
2015
- minChips: ba,
2016
- maxChips: ma,
2017
- inputPosition: wt,
2018
- inputStyle: ha,
2019
- theme: Sa,
2020
- showLabel: xa,
2021
- labelLeft: Ca,
2022
- labelBackground: ot,
2023
- inputLabelMarginActive: _t,
2024
- labelPadding: Zt,
2025
- labelBorderRadius: Jt,
2026
- labelActiveTop: Ot,
2027
- labelActiveLeft: Ft,
2028
- fontFamilyLabel: rt,
2029
- fontSizeLabel: zt,
2030
- fontSizeLabelActive: Va,
2031
- fontWeightLabel: Xt,
2032
- lightTextColorLabel: Ta,
2033
- darkTextColorLabel: o,
2034
- lightTextColorLabelActive: b,
2035
- darkTextColorLabelActive: ke,
2036
- fontFamilyChip: Je,
2037
- fontSizeChip: ka,
2038
- fontWeightChip: ea
2013
+ width: pe,
2014
+ font: ga,
2015
+ fontSize: ya,
2016
+ fontWeight: ba,
2017
+ textColor: je,
2018
+ caretColor: Zt,
2019
+ selectionBgColor: i,
2020
+ selectionTextColor: A,
2021
+ paddingX: xe,
2022
+ paddingY: lt,
2023
+ borderRadius: Jt,
2024
+ minChips: ma,
2025
+ maxChips: wt,
2026
+ inputPosition: ha,
2027
+ inputStyle: Sa,
2028
+ theme: xa,
2029
+ showLabel: Ca,
2030
+ labelLeft: dt,
2031
+ labelBackground: _t,
2032
+ inputLabelMarginActive: Qt,
2033
+ labelPadding: Xt,
2034
+ labelBorderRadius: Ht,
2035
+ labelActiveTop: zt,
2036
+ labelActiveLeft: ct,
2037
+ fontFamilyLabel: It,
2038
+ fontSizeLabel: Va,
2039
+ fontSizeLabelActive: Ta,
2040
+ fontWeightLabel: ea,
2041
+ lightTextColorLabel: o,
2042
+ darkTextColorLabel: m,
2043
+ lightTextColorLabelActive: Re,
2044
+ darkTextColorLabelActive: nt,
2045
+ fontFamilyChip: ka,
2046
+ fontSizeChip: Ba,
2047
+ fontWeightChip: ta
2048
+ };
2049
+ }), ut = a(() => ue.value.disabled), ne = a(() => {
2050
+ const c = ue.value, w = Pt.value;
2051
+ return {
2052
+ display: c.display,
2053
+ // Adiciona padding-top quando o label está ativo para evitar que seja cortado
2054
+ // paddingTop: isActive && showLabel.value ? `${Math.abs(defaultValues.labelActiveTop)}px` : '0',
2055
+ paddingTop: "0px",
2056
+ // Esconde o label quando não está ativo usando overflow hidden
2057
+ overflow: w && de.value ? "visible" : "hidden"
2039
2058
  };
2040
- }), Ct = a(() => fe.value.disabled), Vt = a(() => ({
2041
- display: fe.value.display
2042
- })), j = a(() => {
2043
- const f = fe.value;
2044
- return f.fontSize ? f.fontSize : "1.2em";
2045
2059
  }), At = a(() => {
2046
- const f = fe.value, w = $t.value;
2060
+ const c = ue.value;
2061
+ return c.fontSize ? c.fontSize : "1.2em";
2062
+ }), P = a(() => {
2063
+ const c = ue.value, w = Pt.value;
2047
2064
  return {
2048
- color: f.textColor,
2049
- padding: `${f.paddingY}rem ${f.paddingX}rem`,
2050
- fontWeight: f.fontWeight,
2051
- textAlign: I.value,
2052
- marginTop: w && te.value ? `${f.inputLabelMarginActive}px` : "0"
2065
+ color: c.textColor,
2066
+ padding: `${c.paddingY}rem ${c.paddingX}rem`,
2067
+ fontWeight: c.fontWeight,
2068
+ textAlign: j.value,
2069
+ marginTop: w && de.value ? `${c.inputLabelMarginActive}px` : "0"
2053
2070
  };
2054
- }), F = a(() => {
2071
+ }), U = a(() => {
2055
2072
  switch (v.value) {
2056
2073
  case "italic":
2057
2074
  return "component__text--italic";
@@ -2060,70 +2077,79 @@ const Hl = ["for"], ql = {
2060
2077
  default:
2061
2078
  return "component__text--normal";
2062
2079
  }
2063
- }), E = a(() => {
2064
- const f = fe.value;
2065
- return f.inputStyle !== "line" && je.value ? { borderRadius: `${f.borderRadius}rem` } : {};
2066
- }), jt = a(() => fe.value.font), L = a(() => fe.value.textColor), z = a(() => fe.value.inputPosition === "top" ? "column" : "column-reverse"), Tt = a(() => {
2067
- const f = {};
2068
- Ge.value && Object.keys(Ge.value).forEach((i) => f[`aria-${i}`] = Ge.value[i]);
2080
+ }), Yt = a(() => {
2081
+ const c = ue.value;
2082
+ return c.inputStyle !== "line" && Je.value ? { borderRadius: `${c.borderRadius}rem` } : {};
2083
+ }), F = a(() => ue.value.font), G = a(() => ue.value.textColor), Tt = a(() => ue.value.inputPosition === "top" ? "column" : "column-reverse"), $t = a(() => {
2084
+ const c = {};
2085
+ Ge.value && Object.keys(Ge.value).forEach((je) => c[`aria-${je}`] = Ge.value[je]);
2069
2086
  const w = {
2070
- "aria-label": at.value,
2071
- "aria-disabled": J.value,
2072
- ...f
2087
+ "aria-label": et.value,
2088
+ "aria-disabled": I.value,
2089
+ ...c
2073
2090
  };
2074
2091
  return Object.fromEntries(
2075
- Object.entries(w).filter(([U, i]) => i != null)
2092
+ Object.entries(w).filter(([pe, je]) => je != null)
2076
2093
  );
2077
- }), kt = a(() => {
2078
- const f = fe.value;
2079
- return f.caretColor || (f.theme === "dark" ? "#00d4ff" : "#007bff");
2080
- }), vt = a(() => {
2081
- const f = fe.value;
2082
- return f.selectionBgColor || (f.theme === "dark" ? "#00d4ff" : "#007bff");
2083
- }), A = a(() => {
2084
- const f = fe.value;
2085
- return f.selectionTextColor || (f.theme === "dark" ? "#000000" : "#ffffff");
2086
- }), It = a(() => ({
2087
- caretColor: kt.value
2088
- })), Et = a(() => ({
2089
- "--selection-bg-color": vt.value,
2090
- "--selection-text-color": A.value
2091
- })), na = a(() => {
2092
- const f = fe.value, w = {
2093
- width: `${f.width}px`
2094
+ }), it = a(() => {
2095
+ const c = ue.value;
2096
+ return c.caretColor || (c.theme === "dark" ? "#00d4ff" : "#007bff");
2097
+ }), z = a(() => {
2098
+ const c = ue.value;
2099
+ return c.selectionBgColor || (c.theme === "dark" ? "#00d4ff" : "#007bff");
2100
+ }), Nt = a(() => {
2101
+ const c = ue.value;
2102
+ return c.selectionTextColor || (c.theme === "dark" ? "#000000" : "#ffffff");
2103
+ }), oa = a(() => ({
2104
+ caretColor: it.value
2105
+ })), ra = a(() => ({
2106
+ "--selection-bg-color": z.value,
2107
+ "--selection-text-color": Nt.value
2108
+ })), ua = a(() => {
2109
+ const c = ue.value, w = {
2110
+ width: `${c.width}px`
2094
2111
  };
2095
- return f.display === "block" ? { width: "auto" } : w;
2096
- }), Nt = a(() => ie.value ? ie.value : `${_.value}-name-label`), $t = a(() => nt.value || Ce.value.length > 0 || g.value && g.value.trim().length > 0), oa = a(() => te.value ? nt.value || Ce.value.length > 0 ? H.value : "" : H.value), ra = a(() => {
2097
- const f = fe.value, w = $t.value, U = w ? f.lightTextColorLabelActive : f.lightTextColorLabel, i = w ? f.darkTextColorLabelActive : f.darkTextColorLabel;
2112
+ return c.display === "block" ? { width: "auto" } : w;
2113
+ }), st = a(() => be.value ? be.value : `${M.value}-name-label`), Pt = a(() => Lt.value || De.value.length > 0 || Y.value && Y.value.trim().length > 0), Ot = a(() => de.value ? Lt.value || De.value.length > 0 ? ee.value : "" : ee.value), ia = a(() => {
2114
+ const c = ue.value, w = Pt.value, pe = w ? c.lightTextColorLabelActive : c.lightTextColorLabel, je = w ? c.darkTextColorLabelActive : c.darkTextColorLabel;
2098
2115
  return {
2099
- fontFamily: f.fontFamilyLabel,
2100
- fontSize: w ? f.fontSizeLabelActive : f.fontSizeLabel,
2101
- fontWeight: f.fontWeightLabel,
2102
- color: f.theme === "dark" ? i : U,
2103
- top: w ? `${f.labelActiveTop}px` : "50%",
2104
- left: w ? `${f.labelActiveLeft}px` : `${f.labelLeft}px`,
2116
+ fontFamily: c.fontFamilyLabel,
2117
+ fontSize: w ? c.fontSizeLabelActive : c.fontSizeLabel,
2118
+ fontWeight: c.fontWeightLabel,
2119
+ color: c.theme === "dark" ? je : pe,
2120
+ top: w ? `${c.labelActiveTop}px` : "50%",
2121
+ left: w ? `${c.labelActiveLeft}px` : `${c.labelLeft}px`,
2105
2122
  transform: w ? "translateY(0)" : "translateY(-50%)",
2106
2123
  transition: "all 0.2s ease",
2107
- backgroundColor: w ? f.labelBackground : "transparent",
2108
- padding: w ? f.labelPadding : "0",
2109
- borderRadius: w ? `${f.labelBorderRadius}rem` : "0"
2124
+ backgroundColor: w ? c.labelBackground : "transparent",
2125
+ padding: w ? c.labelPadding : "0",
2126
+ borderRadius: w ? `${c.labelBorderRadius}rem` : "0",
2127
+ // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
2128
+ ...w ? {
2129
+ whiteSpace: Ee.value ? "nowrap" : "normal",
2130
+ wordWrap: Ee.value ? "normal" : "break-word",
2131
+ overflowWrap: Ee.value ? "normal" : "break-word",
2132
+ maxWidth: "100%",
2133
+ textOverflow: Ee.value ? "ellipsis" : "clip",
2134
+ overflow: Ee.value ? "hidden" : "visible"
2135
+ } : {}
2110
2136
  };
2111
2137
  }), Ut = a(() => {
2112
- const f = fe.value;
2138
+ const c = ue.value;
2113
2139
  return {
2114
- fontSize: f.fontSizeChip,
2115
- fontWeight: f.fontWeightChip,
2116
- fontFamily: f.fontFamilyChip
2140
+ fontSize: c.fontSizeChip,
2141
+ fontWeight: c.fontWeightChip,
2142
+ fontFamily: c.fontFamilyChip
2117
2143
  };
2118
- }), ua = a(() => {
2119
- switch (Z.value) {
2144
+ }), sa = a(() => {
2145
+ switch (se.value) {
2120
2146
  case "dark":
2121
2147
  return "component__theme--dark";
2122
2148
  default:
2123
2149
  return "component__theme--light";
2124
2150
  }
2125
- }), ia = a(() => {
2126
- switch (ze.value) {
2151
+ }), Gt = a(() => {
2152
+ switch (Oe.value) {
2127
2153
  case "line":
2128
2154
  return "component__input--line";
2129
2155
  case "border":
@@ -2131,110 +2157,110 @@ const Hl = ["for"], ql = {
2131
2157
  default:
2132
2158
  return "component__input--background";
2133
2159
  }
2134
- }), Yt = () => {
2135
- C("clicked");
2136
- }, sa = () => {
2137
- nt.value = !0, C("focused");
2138
- }, da = () => {
2139
- nt.value = !1, C("blurred");
2140
- }, ca = async (f) => {
2141
- var U;
2142
- const w = ((U = f.clipboardData) == null ? void 0 : U.getData("text")) || "";
2143
- C("paste", w), he.value && f.preventDefault();
2144
- }, Gt = (f) => {
2145
- if (!(J.value || X.value) && f.key === "Enter" && g.value.trim() !== "") {
2146
- f.preventDefault();
2147
- let w = g.value.trim();
2148
- ge.value && (w = w.toUpperCase()), (N.value || !Ce.value.includes(w)) && fa(w), g.value = "";
2160
+ }), da = () => {
2161
+ g("clicked");
2162
+ }, ca = () => {
2163
+ Lt.value = !0, g("focused");
2164
+ }, fa = () => {
2165
+ Lt.value = !1, g("blurred");
2166
+ }, Kt = async (c) => {
2167
+ var pe;
2168
+ const w = ((pe = c.clipboardData) == null ? void 0 : pe.getData("text")) || "";
2169
+ g("paste", w), $e.value && c.preventDefault();
2170
+ }, va = (c) => {
2171
+ if (!(I.value || fe.value) && c.key === "Enter" && Y.value.trim() !== "") {
2172
+ c.preventDefault();
2173
+ let w = Y.value.trim();
2174
+ Ve.value && (w = w.toUpperCase()), ($.value || !De.value.includes(w)) && pa(w), Y.value = "";
2149
2175
  }
2150
- }, fa = (f) => {
2151
- Ce.value.push(f), C("added", f);
2152
- }, Kt = (f) => {
2153
- Ce.value = Ce.value.filter((w) => w !== f), C("removed", f);
2176
+ }, pa = (c) => {
2177
+ De.value.push(c), g("added", c);
2178
+ }, Ft = (c) => {
2179
+ De.value = De.value.filter((w) => w !== c), g("removed", c);
2154
2180
  };
2155
- return G(K, (f) => {
2156
- Ce.value = f, C("changed", f);
2157
- }), G(g, (f) => {
2158
- C("input-changed", f);
2159
- }), (f, w) => u(_) ? (W(), P("div", Aa({
2181
+ return re(_, (c) => {
2182
+ De.value = c, g("changed", c);
2183
+ }), re(Y, (c) => {
2184
+ g("input-changed", c);
2185
+ }), (c, w) => u(M) ? (O(), K("div", $a({
2160
2186
  key: 0,
2161
- class: ["nb-wrapper", Ct.value],
2162
- style: [Vt.value],
2187
+ class: ["nb-wrapper", ut.value],
2188
+ style: [ne.value],
2163
2189
  role: "input"
2164
- }, Tt.value, { onClick: Yt }), [
2165
- u(te) ? (W(), P("label", {
2190
+ }, $t.value, { onClick: da }), [
2191
+ u(de) ? (O(), K("label", {
2166
2192
  key: 0,
2167
- for: Nt.value,
2193
+ for: st.value,
2168
2194
  class: "component__label",
2169
- style: Be([ra.value])
2195
+ style: Ne([ia.value])
2170
2196
  }, [
2171
- qt(Dt(u(ne)), 1),
2172
- u(be) ? (W(), P("span", ql, "*")) : oe("", !0)
2173
- ], 12, Hl)) : oe("", !0),
2174
- ve("div", {
2175
- id: u(_),
2197
+ jt(Dt(u(ge)), 1),
2198
+ u(ke) ? (O(), K("span", Jl, "*")) : ye("", !0)
2199
+ ], 12, Zl)) : ye("", !0),
2200
+ Ce("div", {
2201
+ id: u(M),
2176
2202
  ref_key: "chipsContainer",
2177
- ref: St,
2178
- class: Ee(["nb-reset", "component", ua.value, ia.value]),
2179
- style: Be([At.value, na.value, E.value])
2203
+ ref: we,
2204
+ class: Ye(["nb-reset", "component", sa.value, Gt.value]),
2205
+ style: Ne([P.value, ua.value, Yt.value])
2180
2206
  }, [
2181
- Ce.value.length > 0 ? (W(), P("div", {
2207
+ De.value.length > 0 ? (O(), K("div", {
2182
2208
  key: 0,
2183
2209
  ref_key: "chips",
2184
- ref: xt,
2210
+ ref: Et,
2185
2211
  class: "chips"
2186
2212
  }, [
2187
- (W(!0), P(dl, null, cl(Ce.value, (U) => (W(), P("div", {
2188
- key: U,
2213
+ (O(!0), K(pl, null, gl(De.value, (pe) => (O(), K("div", {
2214
+ key: pe,
2189
2215
  class: "chip"
2190
2216
  }, [
2191
- Ba(f.$slots, "chip", {
2192
- chips: Ce.value,
2193
- chip: U,
2194
- removeChip: Kt
2217
+ La(c.$slots, "chip", {
2218
+ chips: De.value,
2219
+ chip: pe,
2220
+ removeChip: Ft
2195
2221
  }, () => [
2196
- ve("span", {
2222
+ Ce("span", {
2197
2223
  class: "chip-text",
2198
- style: Be([Ut.value])
2199
- }, Dt(U), 5),
2200
- !u(J) && !u(X) ? (W(), P("span", {
2224
+ style: Ne([Ut.value])
2225
+ }, Dt(pe), 5),
2226
+ !u(I) && !u(fe) ? (O(), K("span", {
2201
2227
  key: 0,
2202
2228
  class: "chip-remove",
2203
- style: Be([Ut.value]),
2204
- onClick: (i) => Kt(U)
2205
- }, "×", 12, Ul)) : oe("", !0)
2229
+ style: Ne([Ut.value]),
2230
+ onClick: (je) => Ft(pe)
2231
+ }, "×", 12, Xl)) : ye("", !0)
2206
2232
  ], !0)
2207
2233
  ]))), 128))
2208
- ], 512)) : oe("", !0),
2209
- za(ve("input", {
2234
+ ], 512)) : ye("", !0),
2235
+ Pa(Ce("input", {
2210
2236
  ref_key: "chipInput",
2211
- ref: lt,
2237
+ ref: R,
2212
2238
  type: "text",
2213
- "onUpdate:modelValue": w[0] || (w[0] = (U) => g.value = U),
2214
- id: Nt.value,
2215
- name: Nt.value,
2216
- placeholder: oa.value,
2217
- readonly: u(X),
2218
- autocomplete: u(ye),
2219
- required: u(be),
2220
- tabindex: u(J) || u(X) ? -1 : u(q),
2221
- class: Ee(["chips-input", F.value]),
2222
- style: Be([It.value, Et.value]),
2223
- onKeydown: w[1] || (w[1] = la((U) => !u(J) && u(de) && Gt(U), ["enter"])),
2224
- onFocus: sa,
2225
- onBlur: da,
2226
- onPaste: ca
2227
- }, null, 46, Yl), [
2228
- [vl, g.value]
2239
+ "onUpdate:modelValue": w[0] || (w[0] = (pe) => Y.value = pe),
2240
+ id: st.value,
2241
+ name: st.value,
2242
+ placeholder: Ot.value,
2243
+ readonly: u(fe),
2244
+ autocomplete: u(Te),
2245
+ required: u(ke),
2246
+ tabindex: u(I) || u(fe) ? -1 : u(te),
2247
+ class: Ye(["chips-input", U.value]),
2248
+ style: Ne([oa.value, ra.value]),
2249
+ onKeydown: w[1] || (w[1] = na((pe) => !u(I) && u(he) && va(pe), ["enter"])),
2250
+ onFocus: ca,
2251
+ onBlur: fa,
2252
+ onPaste: Kt
2253
+ }, null, 46, en), [
2254
+ [ml, Y.value]
2229
2255
  ])
2230
- ], 14, jl)
2231
- ], 16)) : oe("", !0);
2256
+ ], 14, Ql)
2257
+ ], 16)) : ye("", !0);
2232
2258
  }
2233
- }), Kl = /* @__PURE__ */ Wa(Gl, [["__scopeId", "data-v-8a410829"]]);
2234
- const Ql = ["id"], Zl = ["for"], Jl = {
2259
+ }), an = /* @__PURE__ */ Oa(tn, [["__scopeId", "data-v-5e4299e4"]]);
2260
+ const ln = ["id"], nn = ["for"], on = {
2235
2261
  key: 0,
2236
2262
  class: "component__label--required"
2237
- }, Xl = ["id", "name", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], en = /* @__PURE__ */ Object.assign({
2263
+ }, rn = ["id", "name", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], un = /* @__PURE__ */ Object.assign({
2238
2264
  name: "NbTextarea",
2239
2265
  inheritAttrs: !1
2240
2266
  }, {
@@ -2248,8 +2274,8 @@ const Ql = ["id"], Zl = ["for"], Jl = {
2248
2274
  type: String,
2249
2275
  default: "b",
2250
2276
  validator: (e = "b") => {
2251
- const S = e.toLowerCase();
2252
- return ["b", "ib"].includes(S);
2277
+ const y = e.toLowerCase();
2278
+ return ["b", "ib"].includes(y);
2253
2279
  }
2254
2280
  },
2255
2281
  tabIndex: {
@@ -2479,6 +2505,11 @@ const Ql = ["id"], Zl = ["for"], Jl = {
2479
2505
  type: Number,
2480
2506
  default: 0
2481
2507
  },
2508
+ labelBreakOnActive: {
2509
+ type: Boolean,
2510
+ default: !0,
2511
+ validator: (e) => typeof e == "boolean" && [!0, !1].includes(e)
2512
+ },
2482
2513
  labelLeft: {
2483
2514
  type: Number,
2484
2515
  default: 5
@@ -2495,6 +2526,14 @@ const Ql = ["id"], Zl = ["for"], Jl = {
2495
2526
  type: Number,
2496
2527
  default: 5
2497
2528
  },
2529
+ labelRight: {
2530
+ type: Number,
2531
+ default: 0
2532
+ },
2533
+ labelActiveRight: {
2534
+ type: Number,
2535
+ default: 0
2536
+ },
2498
2537
  fontFamilyLabel: {
2499
2538
  type: String,
2500
2539
  default: "'Lato', sans-serif"
@@ -2627,195 +2666,213 @@ const Ql = ["id"], Zl = ["for"], Jl = {
2627
2666
  "entered",
2628
2667
  "paste"
2629
2668
  ],
2630
- setup(e, { emit: S }) {
2631
- Na((i) => ({
2632
- a404ea36: fe.value,
2633
- "08e3a654": u(tt),
2634
- "08d189db": E.value,
2635
- "74be46ed": jt.value,
2636
- 55733176: L.value,
2637
- f0c424ec: u(it),
2638
- "649be056": u(Bt),
2639
- "5546cb1c": u(we),
2640
- "95eafcf4": u(Se),
2641
- fd0b12bc: u(gt),
2642
- "5eac3cbe": u(ee),
2643
- d03f228c: u(ut),
2644
- "6fb52ccb": xt.value,
2645
- a53475fc: u(yt),
2646
- "2a438d7d": $t.value,
2647
- "13b81d3c": Ct.value,
2648
- "00649ebe": Vt.value,
2649
- a7af40ec: j.value,
2650
- "89d3ed38": F.value,
2651
- "0f68d676": i.styleButtonColor,
2652
- "13fa7aca": At.value
2653
- })), La(() => {
2654
- m.value = Ue.value;
2655
- }), Pa(() => {
2656
- fa();
2669
+ setup(e, { emit: y }) {
2670
+ Wa((i) => ({
2671
+ "8275e69e": ne.value,
2672
+ "383240bc": u(ot),
2673
+ "2b8f308f": G.value,
2674
+ "520916a1": Tt.value,
2675
+ e9c7cc0e: $t.value,
2676
+ "133db13e": u(pt),
2677
+ "0dff0d0a": u(kt),
2678
+ "347c89b4": u(ze),
2679
+ "2bfc9d5c": u(Be),
2680
+ "047ce06e": u(ht),
2681
+ "5aeb328a": u(ve),
2682
+ "01cf386e": u(vt),
2683
+ "09561f02": Lt.value,
2684
+ "7e4382b6": u(St),
2685
+ 26828349: ia.value,
2686
+ "06891216": At.value,
2687
+ "228b5755": P.value,
2688
+ "1617293e": U.value,
2689
+ cf3e4dd0: F.value,
2690
+ 44600642: i.styleButtonColor,
2691
+ 43491532: Yt.value
2692
+ })), Aa(() => {
2693
+ Y.value = Qe.value;
2694
+ }), Ya(() => {
2695
+ c();
2657
2696
  });
2658
- const C = S, B = e, {
2659
- nbId: _,
2660
- display: Le,
2661
- hasTabIndexEnter: pe,
2662
- ariaLabel: Ne,
2663
- ariaAttrs: Ae,
2664
- textColor: re,
2665
- caretColor: J,
2666
- selectionBgColor: Pe,
2667
- selectionTextColor: Fe,
2668
- hasBorderRadius: ae,
2669
- borderRadius: K,
2670
- disabled: N,
2671
- fontFamily: le,
2672
- fontSize: ue,
2673
- fontWeight: Q,
2674
- fontFamilyMsg: $e,
2675
- fontSizeMsg: ie,
2676
- fontWeightMsg: H,
2677
- textMessageColor: ge,
2678
- inputWidth: X,
2679
- inputStyle: he,
2680
- activeTextStyle: ye,
2681
- inputReadonly: be,
2682
- blockPaste: I,
2683
- hasTrim: je,
2697
+ const g = y, h = e, {
2698
+ nbId: M,
2699
+ display: Q,
2700
+ hasTabIndexEnter: ce,
2701
+ ariaLabel: D,
2702
+ ariaAttrs: T,
2703
+ textColor: x,
2704
+ caretColor: I,
2705
+ selectionBgColor: ae,
2706
+ selectionTextColor: le,
2707
+ hasBorderRadius: X,
2708
+ borderRadius: _,
2709
+ disabled: $,
2710
+ fontFamily: H,
2711
+ fontSize: ie,
2712
+ fontWeight: q,
2713
+ fontFamilyMsg: Fe,
2714
+ fontSizeMsg: be,
2715
+ fontWeightMsg: ee,
2716
+ textMessageColor: Ve,
2717
+ inputWidth: fe,
2718
+ inputStyle: $e,
2719
+ activeTextStyle: Te,
2720
+ inputReadonly: ke,
2721
+ blockPaste: j,
2722
+ hasTrim: Je,
2684
2723
  inputUppercase: v,
2685
- inputName: Z,
2686
- inputPlaceholder: ze,
2687
- inputText: Ue,
2688
- theme: h,
2689
- tabindex: _e,
2690
- lightBgColor: ee,
2691
- lightBgColorFocus: ut,
2692
- lightDisabledBgColor: gt,
2693
- lightTextColor: tt,
2694
- darkBgColor: we,
2695
- darkBgColorFocus: Se,
2696
- darkDisabledBgColor: Bt,
2697
- darkTextColor: it,
2698
- textAlign: yt,
2699
- showMsg: Lt,
2700
- hasMsg: bt,
2701
- showLabel: Oe,
2702
- labelBackground: st,
2703
- labelPadding: Ye,
2704
- labelBorderRadius: x,
2705
- labelLeft: $,
2706
- inputLabelMarginActive: se,
2707
- labelActiveTop: q,
2708
- labelActiveLeft: de,
2709
- fontFamilyLabel: at,
2710
- fontSizeLabel: Ge,
2711
- fontSizeLabelActive: We,
2712
- fontWeightLabel: p,
2713
- lightTextColorLabel: T,
2714
- lightTextColorLabelActive: te,
2715
- darkTextColorLabel: ne,
2716
- darkTextColorLabelActive: ce,
2717
- rows: De,
2718
- cols: xe,
2719
- maxlength: Re,
2720
- minlength: Ie,
2721
- wrap: He,
2722
- spellcheck: Ke,
2723
- autofocus: dt,
2724
- resize: ct,
2725
- minWidth: Rt,
2726
- maxWidth: mt,
2727
- minHeight: ht,
2728
- maxHeight: Qe,
2729
- autoResize: Mt,
2730
- minRows: Ze,
2731
- maxRows: ft
2732
- } = Fa(B), m = Y(""), R = Y(!1), g = a(() => {
2733
- const i = N.value ? "component-disabled" : "", D = Le.value !== "b" ? "inline-block" : "block", Ve = re ? re.value : "ffffff", Te = J.value ? J.value : "", va = Pe.value ? Pe.value : "", Pt = Fe.value ? Fe.value : "", pa = ae.value ? ae.value : !1, Qt = K.value !== 0 && !K.value || K.value < 0 ? 0 : K.value, ga = le.value ? le.value : "'Lato', sans-serif", ya = ue.value ? ue.value : "1.4em", ba = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, ma = $e.value ? $e.value : "'Lato', sans-serif", wt = ie.value ? ie.value : "1em", ha = H.value !== 0 && !H.value || H.value < 0 ? 100 : H.value, Sa = ge.value ? ge.value : "#f15574", xa = X.value ? X.value : 200, Ca = ye.value ? ye.value : "normal", ot = be.value ? be.value : !1, _t = v.value ? v.value : !1, Zt = h.value ? h.value : "normal", Jt = yt.value ? yt.value : "left", Ot = he.value ? he.value : "background", Ft = Oe.value ? Oe.value : !1, rt = $.value !== 0 && !$.value || $.value < 0 ? 5 : $.value, zt = st.value ? st.value : "transparent", Va = se.value !== 0 && !se.value || se.value < 0 ? 15 : se.value, Xt = Ye.value ? Ye.value : "1px 5px", Ta = x.value !== 0 && !x.value || x.value < 0 ? 0 : x.value, o = q.value === null || q.value === void 0 ? -13 : q.value, b = de.value === null || de.value === void 0 ? -10 : de.value, ke = at.value ? at.value : "'Lato', sans-serif", Je = Ge.value ? Ge.value : "1em", ka = We.value ? We.value : "0.8em", ea = p.value ? p.value : 400, $a = T.value ? T.value : "#ffffff", wa = ne.value ? ne.value : "#000000", Wt = te.value ? te.value : "#ffffff", ta = ce.value ? ce.value : "#000000", Ht = De.value && De.value > 0 ? De.value : 2, Da = xe.value && xe.value > 0 ? xe.value : 20, Ia = Re.value !== null && Re.value >= 0 ? Re.value : null, Ra = Ie.value !== null && Ie.value >= 0 ? Ie.value : null, me = He.value && ["soft", "hard", "off"].includes(He.value) ? He.value : "soft", Ea = Ke.value !== void 0 ? Ke.value : "default", pt = dt.value !== void 0 ? dt.value : !1, t = ct.value && ["none", "both", "vertical", "horizontal"].includes(ct.value) ? ct.value : "vertical", l = Rt.value ? Rt.value : "auto", n = mt.value ? mt.value : "auto", r = ht.value ? ht.value : "auto", d = Qe.value ? Qe.value : "auto", s = Mt.value !== void 0 ? Mt.value : !1, c = Ze.value !== null && Ze.value > 0 ? Ze.value : null, y = ft.value !== null && ft.value > 0 ? ft.value : null;
2724
+ inputName: se,
2725
+ inputPlaceholder: Oe,
2726
+ inputText: Qe,
2727
+ theme: S,
2728
+ tabindex: Ue,
2729
+ lightBgColor: ve,
2730
+ lightBgColorFocus: vt,
2731
+ lightDisabledBgColor: ht,
2732
+ lightTextColor: ot,
2733
+ darkBgColor: ze,
2734
+ darkBgColorFocus: Be,
2735
+ darkDisabledBgColor: kt,
2736
+ darkTextColor: pt,
2737
+ textAlign: St,
2738
+ showMsg: Bt,
2739
+ hasMsg: xt,
2740
+ showLabel: Le,
2741
+ labelBackground: gt,
2742
+ labelPadding: Xe,
2743
+ labelBorderRadius: V,
2744
+ labelBreakOnActive: N,
2745
+ labelLeft: me,
2746
+ inputLabelMarginActive: te,
2747
+ labelActiveTop: he,
2748
+ labelActiveLeft: et,
2749
+ labelRight: Ge,
2750
+ labelActiveRight: Ie,
2751
+ fontFamilyLabel: b,
2752
+ fontSizeLabel: L,
2753
+ fontSizeLabelActive: de,
2754
+ fontWeightLabel: ge,
2755
+ lightTextColorLabel: Se,
2756
+ lightTextColorLabelActive: _e,
2757
+ darkTextColorLabel: We,
2758
+ darkTextColorLabelActive: Ee,
2759
+ rows: He,
2760
+ cols: qe,
2761
+ maxlength: Ke,
2762
+ minlength: tt,
2763
+ wrap: yt,
2764
+ spellcheck: Rt,
2765
+ autofocus: Ct,
2766
+ resize: bt,
2767
+ minWidth: at,
2768
+ maxWidth: Mt,
2769
+ minHeight: rt,
2770
+ maxHeight: Vt,
2771
+ autoResize: k,
2772
+ minRows: E,
2773
+ maxRows: Z
2774
+ } = Ea(h), Y = oe(""), we = oe(!1), R = a(() => {
2775
+ const i = $.value ? "component-disabled" : "", A = Q.value !== "b" ? "inline-block" : "block", xe = x ? x.value : "ffffff", lt = I.value ? I.value : "", Jt = 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", wt = 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 = Ve.value ? Ve.value : "#f15574", _t = fe.value ? fe.value : 200, Qt = Te.value ? Te.value : "normal", Xt = ke.value ? ke.value : !1, Ht = v.value ? v.value : !1, zt = S.value ? S.value : "normal", ct = St.value ? St.value : "left", It = $e.value ? $e.value : "background", Va = Le.value ? Le.value : !1, Ta = me.value !== 0 && !me.value || me.value < 0 ? 5 : me.value, ea = gt.value ? gt.value : "transparent", o = te.value !== 0 && !te.value || te.value < 0 ? 15 : te.value, m = Xe.value ? Xe.value : "1px 5px", Re = V.value !== 0 && !V.value || V.value < 0 ? 0 : V.value, nt = he.value === null || he.value === void 0 ? -13 : he.value, ka = et.value === null || et.value === void 0 ? 5 : et.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 = L.value ? L.value : "1em", Wt = 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, Ae = qe.value && qe.value > 0 ? qe.value : 20, qa = Ke.value !== null && Ke.value >= 0 ? Ke.value : null, mt = tt.value !== null && tt.value >= 0 ? tt.value : null, t = yt.value && ["soft", "hard", "off"].includes(yt.value) ? yt.value : "soft", l = Rt.value !== void 0 ? Rt.value : "default", n = Ct.value !== void 0 ? Ct.value : !1, r = bt.value && ["none", "both", "vertical", "horizontal"].includes(bt.value) ? bt.value : "vertical", s = at.value ? at.value : "auto", d = Mt.value ? Mt.value : "auto", f = rt.value ? rt.value : "auto", p = Vt.value ? Vt.value : "auto", C = k.value !== void 0 ? k.value : !1, B = E.value !== null && E.value > 0 ? E.value : null, W = Z.value !== null && Z.value > 0 ? Z.value : null;
2734
2776
  return {
2735
2777
  disabled: i,
2736
- display: D,
2737
- font: ga,
2738
- fontSize: ya,
2739
- fontWeight: ba,
2740
- fontFamilyMsg: ma,
2741
- fontSizeMsg: wt,
2742
- fontWeightMsg: ha,
2743
- textMessageColor: Sa,
2744
- textColor: Ve,
2745
- caretColor: Te,
2746
- selectionBgColor: va,
2747
- selectionTextColor: Pt,
2748
- hasBorderRadius: pa,
2749
- borderRadius: Qt,
2750
- textAlign: Jt,
2751
- inputWidth: xa,
2752
- activeTextStyle: Ca,
2753
- inputReadonly: ot,
2754
- inputUppercase: _t,
2755
- theme: Zt,
2756
- inputStyle: Ot,
2757
- showLabel: Ft,
2758
- labelBackground: zt,
2759
- labelPadding: Xt,
2760
- labelBorderRadius: Ta,
2761
- labelLeft: rt,
2762
- inputLabelMarginActive: Va,
2763
- labelActiveTop: o,
2764
- labelActiveLeft: b,
2765
- fontFamilyLabel: ke,
2766
- fontSizeLabel: Je,
2767
- fontSizeLabelActive: ka,
2768
- fontWeightLabel: ea,
2769
- lightTextColorLabel: $a,
2770
- darkTextColorLabel: wa,
2771
- lightTextColorLabelActive: Wt,
2772
- darkTextColorLabelActive: ta,
2773
- rows: Ht,
2774
- cols: Da,
2775
- maxlength: Ia,
2776
- minlength: Ra,
2777
- wrap: me,
2778
- spellcheck: Ea,
2779
- autofocus: pt,
2780
- resize: t,
2781
- minWidth: l,
2782
- maxWidth: n,
2783
- minHeight: r,
2784
- maxHeight: d,
2785
- autoResize: s,
2786
- minRows: c,
2787
- maxRows: y
2778
+ display: A,
2779
+ font: ma,
2780
+ fontSize: wt,
2781
+ fontWeight: ha,
2782
+ fontFamilyMsg: Sa,
2783
+ fontSizeMsg: xa,
2784
+ fontWeightMsg: Ca,
2785
+ textMessageColor: dt,
2786
+ textColor: xe,
2787
+ caretColor: lt,
2788
+ selectionBgColor: Jt,
2789
+ selectionTextColor: ga,
2790
+ hasBorderRadius: ya,
2791
+ borderRadius: ba,
2792
+ textAlign: ct,
2793
+ inputWidth: _t,
2794
+ activeTextStyle: Qt,
2795
+ inputReadonly: Xt,
2796
+ inputUppercase: Ht,
2797
+ theme: zt,
2798
+ inputStyle: It,
2799
+ showLabel: Va,
2800
+ labelBackground: ea,
2801
+ labelPadding: m,
2802
+ labelBorderRadius: Re,
2803
+ labelLeft: Ta,
2804
+ inputLabelMarginActive: o,
2805
+ labelActiveTop: nt,
2806
+ labelActiveLeft: ka,
2807
+ labelRight: Ba,
2808
+ labelActiveRight: ta,
2809
+ fontFamilyLabel: wa,
2810
+ fontSizeLabel: Da,
2811
+ fontSizeLabelActive: Wt,
2812
+ fontWeightLabel: aa,
2813
+ lightTextColorLabel: qt,
2814
+ darkTextColorLabel: Ra,
2815
+ lightTextColorLabelActive: _a,
2816
+ darkTextColorLabelActive: Ma,
2817
+ rows: Ha,
2818
+ cols: Ae,
2819
+ maxlength: qa,
2820
+ minlength: mt,
2821
+ wrap: t,
2822
+ spellcheck: l,
2823
+ autofocus: n,
2824
+ resize: r,
2825
+ minWidth: s,
2826
+ maxWidth: d,
2827
+ minHeight: f,
2828
+ maxHeight: p,
2829
+ autoResize: C,
2830
+ minRows: B,
2831
+ maxRows: W
2788
2832
  };
2789
- }), St = a(() => g.value.disabled), lt = a(() => ({
2790
- display: g.value.display
2791
- })), xt = a(() => {
2792
- const i = g.value;
2833
+ }), Et = a(() => R.value.disabled), De = a(() => {
2834
+ const i = R.value, A = Ot.value;
2835
+ return {
2836
+ display: i.display,
2837
+ // Adiciona padding-top quando o label está ativo para evitar que seja cortado
2838
+ // paddingTop: isActive && showLabel.value ? `${Math.abs(defaultValues.labelActiveTop)}px` : '0',
2839
+ paddingTop: "0px",
2840
+ // Esconde o label quando não está ativo usando overflow hidden
2841
+ overflow: A && Le.value ? "visible" : "hidden"
2842
+ };
2843
+ }), Lt = a(() => {
2844
+ const i = R.value;
2793
2845
  return i.fontSize ? i.fontSize : "1.4em";
2794
- }), Ce = a(() => {
2795
- const i = g.value, D = Nt.value;
2846
+ }), ue = a(() => {
2847
+ const i = R.value, A = Ot.value;
2796
2848
  return {
2797
2849
  fontWeight: i.fontWeight,
2798
- marginTop: D && Oe.value ? `${i.inputLabelMarginActive}px` : "0"
2850
+ marginTop: A && Le.value ? `${i.inputLabelMarginActive}px` : "0",
2851
+ // Quando o label está ativo, define altura mínima igual ao input para alinhar baseline
2852
+ // Mas permite que o textarea cresça quando há conteúdo
2853
+ minHeight: (A && Le.value, "28px"),
2854
+ height: A && Le.value ? "auto" : "28px",
2855
+ maxHeight: A && Le.value ? void 0 : "28px"
2799
2856
  };
2800
- }), nt = a(() => {
2801
- const i = g.value;
2857
+ }), ut = a(() => {
2858
+ const i = R.value;
2802
2859
  return i.inputStyle !== "line" && i.hasBorderRadius ? { borderRadius: `${i.borderRadius}rem` } : {};
2803
- }), fe = a(() => g.value.font), Ct = a(() => g.value.fontFamilyMsg), Vt = a(() => g.value.fontSizeMsg), j = a(() => g.value.fontWeightMsg), At = a(() => g.value.textColor), F = a(() => g.value.textMessageColor), E = a(() => {
2804
- const i = g.value;
2860
+ }), ne = a(() => R.value.font), At = a(() => R.value.fontFamilyMsg), P = a(() => R.value.fontSizeMsg), U = a(() => R.value.fontWeightMsg), Yt = a(() => R.value.textColor), F = a(() => R.value.textMessageColor), G = a(() => {
2861
+ const i = R.value;
2805
2862
  return i.caretColor || (i.theme === "dark" ? "#00d4ff" : "#007bff");
2806
- }), jt = a(() => {
2807
- const i = g.value;
2863
+ }), Tt = a(() => {
2864
+ const i = R.value;
2808
2865
  return i.selectionBgColor || (i.theme === "dark" ? "#00d4ff" : "#007bff");
2809
- }), L = a(() => {
2810
- const i = g.value;
2866
+ }), $t = a(() => {
2867
+ const i = R.value;
2811
2868
  return i.selectionTextColor || (i.theme === "dark" ? "#000000" : "#ffffff");
2812
- }), z = a(() => {
2813
- const i = g.value;
2869
+ }), it = a(() => {
2870
+ const i = R.value;
2814
2871
  return i.display === "block" ? { width: "100%" } : {
2815
2872
  width: `${i.inputWidth}px`
2816
2873
  };
2817
- }), Tt = a(() => {
2818
- switch (he.value) {
2874
+ }), z = a(() => {
2875
+ switch ($e.value) {
2819
2876
  case "line":
2820
2877
  return "component__input--line";
2821
2878
  case "border":
@@ -2823,8 +2880,8 @@ const Ql = ["id"], Zl = ["for"], Jl = {
2823
2880
  default:
2824
2881
  return "component__input--background";
2825
2882
  }
2826
- }), kt = a(() => {
2827
- switch (g.value.activeTextStyle) {
2883
+ }), Nt = a(() => {
2884
+ switch (R.value.activeTextStyle) {
2828
2885
  case "italic":
2829
2886
  return "component__input--active--italic";
2830
2887
  case "oblique":
@@ -2832,164 +2889,342 @@ const Ql = ["id"], Zl = ["for"], Jl = {
2832
2889
  default:
2833
2890
  return "component__input--active--normal";
2834
2891
  }
2835
- }), vt = a(() => {
2836
- switch (g.value.theme) {
2892
+ }), oa = a(() => {
2893
+ switch (R.value.theme) {
2837
2894
  case "dark":
2838
2895
  return "component__theme--dark";
2839
2896
  default:
2840
2897
  return "component__theme--light";
2841
2898
  }
2842
- }), A = a(() => g.value.inputReadonly ? "component__input--read-only" : ""), It = a(() => g.value.inputUppercase ? "component__input--uppercase" : ""), Et = a(() => Z.value ? Z.value : `${_.value}-name-label`), na = a(() => Oe.value ? R.value ? ze.value : "" : ze.value), Nt = a(() => R.value || m.value && m.value.trim().length > 0);
2843
- a(() => R.value ? "component__input--active" : "component__input--no-active");
2844
- const $t = a(() => "6px 10px"), oa = a(() => !!(Lt.value && bt.value)), ra = a(() => {
2899
+ }), ra = a(() => R.value.inputReadonly ? "component__input--read-only" : ""), ua = a(() => R.value.inputUppercase ? "component__input--uppercase" : ""), st = a(() => se.value ? se.value : `${M.value}-name-label`), Pt = a(() => Le.value ? we.value ? Oe.value : "" : Oe.value), Ot = a(() => we.value || Y.value && Y.value.trim().length > 0);
2900
+ a(() => we.value ? "component__input--active" : "component__input--no-active");
2901
+ const ia = a(() => "6px 10px"), Ut = a(() => !!(Bt.value && xt.value)), sa = a(() => {
2845
2902
  const i = {};
2846
- Ae.value && Object.keys(Ae.value).forEach((Te) => i[`aria-${Te}`] = Ae.value[Te]);
2847
- const D = {
2848
- "aria-label": Ne.value,
2849
- "aria-disabled": N.value,
2903
+ T.value && Object.keys(T.value).forEach((lt) => i[`aria-${lt}`] = T.value[lt]);
2904
+ const A = {
2905
+ "aria-label": D.value,
2906
+ "aria-disabled": $.value,
2850
2907
  ...i
2851
2908
  };
2852
2909
  return Object.fromEntries(
2853
- Object.entries(D).filter(([Ve, Te]) => Te != null)
2910
+ Object.entries(A).filter(([xe, lt]) => lt != null)
2854
2911
  );
2855
- }), Ut = a(() => {
2856
- const i = g.value, D = Nt.value, Ve = D ? i.lightTextColorLabelActive : i.lightTextColorLabel, Te = D ? i.darkTextColorLabelActive : i.darkTextColorLabel;
2912
+ }), Gt = a(() => {
2913
+ const i = R.value, A = Ot.value, xe = A ? i.lightTextColorLabelActive : i.lightTextColorLabel, lt = A ? i.darkTextColorLabelActive : i.darkTextColorLabel;
2857
2914
  return {
2858
2915
  fontFamily: i.fontFamilyLabel,
2859
- fontSize: D ? i.fontSizeLabelActive : i.fontSizeLabel,
2916
+ fontSize: A ? i.fontSizeLabelActive : i.fontSizeLabel,
2860
2917
  fontWeight: i.fontWeightLabel,
2861
- color: i.theme === "dark" ? Te : Ve,
2862
- top: D ? `${i.labelActiveTop}px` : "50%",
2863
- left: D ? `${i.labelActiveLeft}px` : `${i.labelLeft}px`,
2864
- transform: D ? "translateY(0)" : "translateY(-50%)",
2918
+ color: i.theme === "dark" ? lt : xe,
2919
+ top: A ? `${i.labelActiveTop}px` : "50%",
2920
+ transform: A ? "translateY(0)" : "translateY(-50%)",
2921
+ left: A ? `${i.labelActiveLeft}px` : `${i.labelLeft}px`,
2922
+ right: A ? `${i.labelActiveRight}px` : `${i.labelRight}px`,
2865
2923
  transition: "all 0.2s ease",
2866
- backgroundColor: D ? i.labelBackground : "transparent",
2867
- padding: D ? i.labelPadding : "0",
2868
- borderRadius: D ? `${i.labelBorderRadius}rem` : "0"
2924
+ backgroundColor: A ? i.labelBackground : "transparent",
2925
+ padding: A ? i.labelPadding : "0",
2926
+ borderRadius: A ? `${i.labelBorderRadius}rem` : "0",
2927
+ // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
2928
+ ...A ? {
2929
+ whiteSpace: N.value ? "nowrap" : "normal",
2930
+ wordWrap: N.value ? "normal" : "break-word",
2931
+ overflowWrap: N.value ? "normal" : "break-word",
2932
+ maxWidth: "100%",
2933
+ textOverflow: N.value ? "ellipsis" : "clip",
2934
+ overflow: N.value ? "hidden" : "visible"
2935
+ } : {}
2869
2936
  };
2870
2937
  });
2871
2938
  a(() => {
2872
- const i = g.value;
2939
+ const i = R.value;
2873
2940
  return i.theme === "dark" ? i.darkTextColorLabelActive : i.lightTextColorLabelActive;
2874
2941
  });
2875
- const ua = a(() => {
2876
- const i = g.value, D = {
2942
+ const da = a(() => {
2943
+ const i = R.value, A = {
2877
2944
  rows: i.rows,
2878
2945
  cols: i.cols,
2879
2946
  wrap: i.wrap,
2880
2947
  spellcheck: i.spellcheck === "default" ? void 0 : i.spellcheck,
2881
2948
  autofocus: i.autofocus || void 0
2882
2949
  };
2883
- return i.maxlength !== null && (D.maxlength = i.maxlength), i.minlength !== null && (D.minlength = i.minlength), D;
2884
- }), ia = a(() => ({
2885
- resize: g.value.resize
2886
- })), Yt = a(() => g.value.wrap === "off" ? {
2950
+ return i.maxlength !== null && (A.maxlength = i.maxlength), i.minlength !== null && (A.minlength = i.minlength), A;
2951
+ }), ca = a(() => ({
2952
+ resize: R.value.resize
2953
+ })), fa = a(() => R.value.wrap === "off" ? {
2887
2954
  whiteSpace: "nowrap",
2888
2955
  overflowX: "auto"
2889
- } : {}), sa = a(() => {
2890
- const i = g.value;
2956
+ } : {}), Kt = a(() => {
2957
+ const i = R.value;
2891
2958
  return i.minWidth === "auto" ? {} : {
2892
2959
  minWidth: i.minWidth
2893
2960
  };
2894
- }), da = a(() => {
2895
- const i = g.value;
2961
+ }), va = a(() => {
2962
+ const i = R.value;
2896
2963
  return i.maxWidth === "auto" ? {} : {
2897
2964
  maxWidth: i.maxWidth
2898
2965
  };
2899
- }), ca = a(() => {
2900
- const i = g.value;
2966
+ }), pa = a(() => {
2967
+ const i = R.value;
2901
2968
  return i.minHeight === "auto" ? {} : {
2902
2969
  minHeight: i.minHeight
2903
2970
  };
2904
- }), Gt = a(() => {
2905
- const i = g.value;
2971
+ }), Ft = a(() => {
2972
+ const i = R.value;
2906
2973
  return i.maxHeight === "auto" ? {} : {
2907
2974
  maxHeight: i.maxHeight
2908
2975
  };
2909
- }), fa = () => {
2910
- m.value = Ue.value;
2911
- }, Kt = () => {
2912
- C("clicked");
2913
- }, f = () => {
2914
- N.value || g.value.inputReadonly || !pe.value || C("entered", m.value);
2915
- }, w = async (i) => {
2916
- var Ve;
2917
- const D = ((Ve = i.clipboardData) == null ? void 0 : Ve.getData("text")) || "";
2918
- C("paste", D), I.value && i.preventDefault();
2919
- }, U = () => {
2920
- let i = m.value;
2921
- je.value && (i = i.trim()), C("current-value", i);
2976
+ }), c = () => {
2977
+ Y.value = Qe.value;
2978
+ }, w = () => {
2979
+ g("clicked");
2980
+ }, pe = () => {
2981
+ $.value || R.value.inputReadonly || !ce.value || g("entered", Y.value);
2982
+ }, je = async (i) => {
2983
+ var xe;
2984
+ const A = ((xe = i.clipboardData) == null ? void 0 : xe.getData("text")) || "";
2985
+ g("paste", A), j.value && i.preventDefault();
2986
+ }, Zt = () => {
2987
+ let i = Y.value;
2988
+ Je.value && (i = i.trim()), g("current-value", i);
2922
2989
  };
2923
- return G(Ue, (i) => {
2924
- i !== m.value && (m.value = i);
2925
- }, { immediate: !0 }), G(m, (i) => {
2926
- je.value && (i = i.trim()), C("changed", i);
2927
- }), G(R, (i) => {
2928
- C(i ? "focused" : "blurred");
2929
- }), G(m, () => {
2930
- U();
2931
- }, { immediate: !0 }), (i, D) => u(_) ? (W(), P("div", Aa({
2990
+ return re(Qe, (i) => {
2991
+ i !== Y.value && (Y.value = i);
2992
+ }, { immediate: !0 }), re(Y, (i) => {
2993
+ Je.value && (i = i.trim()), g("changed", i);
2994
+ }), re(we, (i) => {
2995
+ g(i ? "focused" : "blurred");
2996
+ }), re(Y, () => {
2997
+ Zt();
2998
+ }, { immediate: !0 }), (i, A) => u(M) ? (O(), K("div", $a({
2932
2999
  key: 0,
2933
- class: ["nb-wrapper", St.value],
2934
- style: [lt.value, z.value, nt.value],
3000
+ class: ["nb-wrapper", Et.value],
3001
+ style: [De.value, it.value, ut.value],
2935
3002
  role: "input"
2936
- }, ra.value), [
2937
- ve("div", {
2938
- id: u(_),
2939
- class: Ee(["nb-reset", "component", vt.value, A.value, Tt.value]),
2940
- style: Be([Ce.value, z.value, nt.value]),
2941
- onClick: Kt
3003
+ }, sa.value), [
3004
+ Ce("div", {
3005
+ id: u(M),
3006
+ class: Ye(["nb-reset", "component", oa.value, ra.value, z.value]),
3007
+ style: Ne([ue.value, it.value, ut.value]),
3008
+ onClick: w
2942
3009
  }, [
2943
- u(Oe) ? (W(), P("label", {
3010
+ u(Le) ? (O(), K("label", {
2944
3011
  key: 0,
2945
- for: Et.value,
3012
+ for: st.value,
2946
3013
  class: "component__label",
2947
- style: Be([Ut.value])
3014
+ style: Ne([Gt.value])
2948
3015
  }, [
2949
- qt(Dt(e.label), 1),
2950
- e.required ? (W(), P("span", Jl, "*")) : oe("", !0)
2951
- ], 12, Zl)) : oe("", !0),
2952
- za(ve("textarea", Aa({
2953
- "onUpdate:modelValue": D[0] || (D[0] = (Ve) => m.value = Ve),
2954
- id: Et.value,
2955
- name: Et.value
2956
- }, ua.value, {
3016
+ jt(Dt(e.label), 1),
3017
+ e.required ? (O(), K("span", on, "*")) : ye("", !0)
3018
+ ], 12, nn)) : ye("", !0),
3019
+ Pa(Ce("textarea", $a({
3020
+ "onUpdate:modelValue": A[0] || (A[0] = (xe) => Y.value = xe),
3021
+ id: st.value,
3022
+ name: st.value
3023
+ }, da.value, {
2957
3024
  class: ["component__input", [
2958
- It.value,
2959
- kt.value
3025
+ ua.value,
3026
+ Nt.value
2960
3027
  ]],
2961
- placeholder: na.value,
2962
- disabled: u(N) || u(be),
3028
+ placeholder: Pt.value,
3029
+ disabled: u($) || u(ke),
2963
3030
  required: e.required,
2964
- readonly: u(be),
3031
+ readonly: u(ke),
2965
3032
  autocomplete: e.inputAutocomplete,
2966
- tabindex: u(N) || u(be) ? -1 : u(_e),
3033
+ tabindex: u($) || u(ke) ? -1 : u(Ue),
2967
3034
  role: "textbox",
2968
- style: [nt.value, ia.value, Yt.value, sa.value, da.value, ca.value, Gt.value],
2969
- onFocus: D[1] || (D[1] = (Ve) => R.value = !0),
2970
- onBlur: D[2] || (D[2] = (Ve) => R.value = !1),
2971
- onInput: U,
2972
- onKeydown: D[3] || (D[3] = la((Ve) => !u(N) && u(pe) && f(), ["enter"])),
2973
- onPaste: w
2974
- }), null, 16, Xl), [
2975
- [vl, m.value]
3035
+ style: [ut.value, ca.value, fa.value, Kt.value, va.value, pa.value, Ft.value],
3036
+ onFocus: A[1] || (A[1] = (xe) => we.value = !0),
3037
+ onBlur: A[2] || (A[2] = (xe) => we.value = !1),
3038
+ onInput: Zt,
3039
+ onKeydown: A[3] || (A[3] = na((xe) => !u($) && u(ce) && pe(), ["enter"])),
3040
+ onPaste: je
3041
+ }), null, 16, rn), [
3042
+ [ml, Y.value]
2976
3043
  ])
2977
- ], 14, Ql),
2978
- oa.value ? (W(), P("div", {
3044
+ ], 14, ln),
3045
+ Ut.value ? (O(), K("div", {
2979
3046
  key: 0,
2980
- class: Ee(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
3047
+ class: Ye(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
2981
3048
  }, [
2982
- Ba(i.$slots, "message", {}, () => [
2983
- qt(Dt(e.message), 1)
3049
+ La(i.$slots, "message", {}, () => [
3050
+ jt(Dt(e.message), 1)
2984
3051
  ], !0)
2985
- ], 2)) : oe("", !0)
2986
- ], 16)) : oe("", !0);
3052
+ ], 2)) : ye("", !0)
3053
+ ], 16)) : ye("", !0);
3054
+ }
3055
+ }), sn = /* @__PURE__ */ Oa(un, [["__scopeId", "data-v-32bd91a4"]]), za = (e) => String(e).padStart(2, "0"), Na = (e) => {
3056
+ if (!e || !(e instanceof Date))
3057
+ return null;
3058
+ const y = e.getFullYear(), g = za(e.getMonth() + 1), h = za(e.getDate()), M = za(e.getHours()), Q = za(e.getMinutes()), ce = za(e.getSeconds());
3059
+ return `${y}-${g}-${h}T${M}:${Q}:${ce}`;
3060
+ }, Fa = (e, y = "Z") => {
3061
+ if (!e || !(e instanceof Date))
3062
+ return null;
3063
+ const g = e.toISOString();
3064
+ return y === "+00:00" ? g.replace("Z", "+00:00") : g;
3065
+ }, yl = (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) => {
3068
+ if (!e)
3069
+ return null;
3070
+ if (/^\d{4}-\d{2}-\d{2}$/.test(e)) {
3071
+ const [g, h, M] = e.split("-").map(Number);
3072
+ return new Date(g, h - 1, M);
3073
+ }
3074
+ const y = new Date(e);
3075
+ return isNaN(y.getTime()) ? null : y;
3076
+ }, dn = (e, y = {}) => {
3077
+ const {
3078
+ inputType: g,
3079
+ hasSeconds: h = !1,
3080
+ allowRange: M = !1,
3081
+ timezoneFormat: Q = "Z",
3082
+ locale: ce = "en-US"
3083
+ } = y;
3084
+ if (!e || e === "" || e === null || e === void 0)
3085
+ 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 } : M ? { startDate: null, endDate: null, isRange: !0, isoString: null, isoStringLocal: null } : null;
3086
+ try {
3087
+ if (g === "date") {
3088
+ const D = ja(e);
3089
+ if (!D)
3090
+ return { date: null, dateString: null, isoString: null, isoStringLocal: null, day: null };
3091
+ const T = /* @__PURE__ */ new Date();
3092
+ T.setHours(0, 0, 0, 0);
3093
+ const x = new Date(D.getTime());
3094
+ return x.setHours(0, 0, 0, 0), {
3095
+ date: x,
3096
+ dateString: e,
3097
+ isoString: Fa(x, Q),
3098
+ isoStringLocal: Na(x),
3099
+ day: {
3100
+ date: x.getDate(),
3101
+ fullDate: x,
3102
+ isOtherMonth: !1,
3103
+ isToday: yl(x, T),
3104
+ isSelected: !0,
3105
+ isInRange: !1,
3106
+ isRangeStart: !1,
3107
+ isRangeEnd: !1,
3108
+ isDisabled: !1,
3109
+ events: []
3110
+ }
3111
+ };
3112
+ } else if (g === "time") {
3113
+ const D = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, T = e.match(D);
3114
+ if (!T)
3115
+ return { hour: 0, minute: 0, second: void 0, timeString: "" };
3116
+ const x = parseInt(T[1], 10), I = parseInt(T[2], 10), ae = T[3] ? parseInt(T[3], 10) : void 0;
3117
+ return {
3118
+ hour: x,
3119
+ minute: I,
3120
+ second: h ? ae : void 0,
3121
+ timeString: e
3122
+ };
3123
+ } else if (g === "datetime-local") {
3124
+ const D = e.split("T");
3125
+ if (D.length !== 2)
3126
+ return { date: null, hour: 0, minute: 0, second: void 0, datetimeString: null, isoString: null, isoStringLocal: null, day: null };
3127
+ const T = D[0], x = D[1], I = ja(T);
3128
+ if (!I)
3129
+ 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);
3131
+ if (!le)
3132
+ 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);
3137
+ const q = new Date(I.getTime());
3138
+ return q.setHours(0, 0, 0, 0), {
3139
+ date: q,
3140
+ hour: X,
3141
+ minute: _,
3142
+ second: h ? $ : void 0,
3143
+ datetimeString: e,
3144
+ isoString: Fa(H, Q),
3145
+ isoStringLocal: Na(H),
3146
+ day: {
3147
+ date: q.getDate(),
3148
+ fullDate: q,
3149
+ isOtherMonth: !1,
3150
+ isToday: yl(q, ie),
3151
+ isSelected: !0,
3152
+ isInRange: !1,
3153
+ isRangeStart: !1,
3154
+ isRangeEnd: !1,
3155
+ isDisabled: !1,
3156
+ events: []
3157
+ }
3158
+ };
3159
+ } else if (g === "week") {
3160
+ const D = /^(\d{4})-W(\d{2})$/, T = e.match(D);
3161
+ if (!T)
3162
+ return { weekString: null, weekStartDate: null, weekEndDate: null, weekNumber: null, weekYear: null, isoString: null, isoStringLocal: null };
3163
+ const x = parseInt(T[1], 10), I = parseInt(T[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), {
3167
+ weekString: e,
3168
+ weekStartDate: $,
3169
+ weekEndDate: H,
3170
+ weekNumber: I,
3171
+ weekYear: x,
3172
+ isoString: Fa($, Q),
3173
+ isoStringLocal: Na($)
3174
+ };
3175
+ } else if (g === "month") {
3176
+ const D = /^(\d{4})-(\d{2})$/, T = e.match(D);
3177
+ if (!T)
3178
+ return { date: null, dateString: null, month: null, year: null, monthName: null, isoString: null, isoStringLocal: null };
3179
+ const x = parseInt(T[1], 10), I = parseInt(T[2], 10) - 1, ae = new Date(x, I, 1);
3180
+ ae.setHours(0, 0, 0, 0);
3181
+ const le = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
3182
+ return {
3183
+ date: ae,
3184
+ dateString: `${x}-${za(I + 1)}-01`,
3185
+ month: I,
3186
+ year: x,
3187
+ monthName: le[I],
3188
+ isoString: Fa(ae, Q),
3189
+ isoStringLocal: Na(ae)
3190
+ };
3191
+ } else if (M && typeof e == "string" && e.startsWith("{"))
3192
+ try {
3193
+ const D = JSON.parse(e);
3194
+ if (D && (D.startDate || D.endDate)) {
3195
+ const T = D.startDate ? ja(D.startDate) : null, x = D.endDate ? ja(D.endDate) : null;
3196
+ return T && x ? (T.setHours(0, 0, 0, 0), x.setHours(0, 0, 0, 0), {
3197
+ startDate: T,
3198
+ endDate: x,
3199
+ isRange: !0,
3200
+ isoString: {
3201
+ start: Fa(T, Q),
3202
+ end: Fa(x, Q)
3203
+ },
3204
+ isoStringLocal: {
3205
+ start: Na(T),
3206
+ end: Na(x)
3207
+ }
3208
+ }) : {
3209
+ startDate: T,
3210
+ endDate: x,
3211
+ isRange: !0,
3212
+ isoString: null,
3213
+ isoStringLocal: null
3214
+ };
3215
+ }
3216
+ } catch {
3217
+ return { startDate: null, endDate: null, isRange: !0, isoString: null, isoStringLocal: null };
3218
+ }
3219
+ } catch (D) {
3220
+ console.error("Error building complete data from inputText:", D);
2987
3221
  }
2988
- }), tn = /* @__PURE__ */ Wa(en, [["__scopeId", "data-v-63673665"]]);
2989
- const an = ["id"], ln = ["for"], nn = {
3222
+ return null;
3223
+ };
3224
+ const cn = ["id"], fn = ["for"], vn = {
2990
3225
  key: 0,
2991
3226
  class: "component__label--required"
2992
- }, on = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], rn = /* @__PURE__ */ Object.assign({
3227
+ }, pn = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], gn = /* @__PURE__ */ Object.assign({
2993
3228
  name: "NbDatePicker",
2994
3229
  inheritAttrs: !1
2995
3230
  }, {
@@ -3003,8 +3238,8 @@ const an = ["id"], ln = ["for"], nn = {
3003
3238
  type: String,
3004
3239
  default: "b",
3005
3240
  validator: (e = "b") => {
3006
- const S = e.toLowerCase();
3007
- return ["b", "ib"].includes(S);
3241
+ const y = e.toLowerCase();
3242
+ return ["b", "ib"].includes(y);
3008
3243
  }
3009
3244
  },
3010
3245
  tabIndex: {
@@ -3395,7 +3630,7 @@ const an = ["id"], ln = ["for"], nn = {
3395
3630
  calendarEvents: {
3396
3631
  type: Array,
3397
3632
  default: () => [],
3398
- validator: (e) => Array.isArray(e) && e.every((S) => S && S.date && (S.color || !0))
3633
+ validator: (e) => Array.isArray(e) && e.every((y) => y && y.date && (y.color || !0))
3399
3634
  },
3400
3635
  // Calendar props - Text
3401
3636
  calendarSelectMonthText: {
@@ -3422,6 +3657,11 @@ const an = ["id"], ln = ["for"], nn = {
3422
3657
  type: String,
3423
3658
  default: "×"
3424
3659
  },
3660
+ calendarIsoStringTimezoneFormat: {
3661
+ type: String,
3662
+ default: "Z",
3663
+ validator: (e) => ["Z", "+00:00"].includes(e)
3664
+ },
3425
3665
  hasTrim: {
3426
3666
  type: Boolean,
3427
3667
  default: !1,
@@ -3623,123 +3863,127 @@ const an = ["id"], ln = ["for"], nn = {
3623
3863
  emits: [
3624
3864
  "current-value",
3625
3865
  "changed",
3866
+ "current-value-complete",
3867
+ "changed-complete",
3626
3868
  "focused",
3627
3869
  "blurred",
3628
3870
  "clicked",
3629
3871
  "entered",
3630
3872
  "paste",
3631
- "valid"
3873
+ "valid",
3874
+ "date-selected",
3875
+ "month-changed"
3632
3876
  ],
3633
- setup(e, { emit: S }) {
3634
- Na((t) => ({
3635
- "1578cd41": Et.value,
3636
- "07ae5c22": vt.value,
3637
- "04e1a79c": u(Ye),
3638
- "46f075ff": Ut.value,
3639
- "5946efde": ua.value,
3640
- "0558ef69": ia.value,
3641
- "141192ae": u(q),
3642
- "63601a7a": u(se),
3643
- "7fff3896": u(x),
3644
- deec3168: oa.value,
3645
- "3ac919e2": u($),
3646
- "2aa82e18": va.value,
3647
- "2b7174c0": Pt.value,
3648
- "5b3d80fe": u(st),
3649
- "085d631a": u(bt),
3650
- "6c163c44": u(Oe),
3651
- "10bcc7b4": u(de),
3652
- "5816984e": D.value,
3653
- be72e0f4: na.value,
3654
- "3dec9cc5": Nt.value,
3655
- "43865aa4": $t.value,
3656
- "19b44a88": ra.value,
3657
- d5b1225c: t.styleButtonColor
3877
+ setup(e, { emit: y }) {
3878
+ Wa((t) => ({
3879
+ fec94d28: oa.value,
3880
+ "2979c624": it.value,
3881
+ "7a5cbe9d": u(Xe),
3882
+ "63d530f4": ia.value,
3883
+ c6b71174: Ut.value,
3884
+ c73c3544: sa.value,
3885
+ "416286e3": u(te),
3886
+ "8e575a22": u(me),
3887
+ "41f9b60b": u(V),
3888
+ "3403c07e": Pt.value,
3889
+ "8b0884e6": u(N),
3890
+ ab4a5c7a: A.value,
3891
+ "98e19656": xe.value,
3892
+ "975f51ae": u(gt),
3893
+ f49ad776: u(xt),
3894
+ "4096b393": u(Le),
3895
+ "6196f2db": u(he),
3896
+ "5149e504": je.value,
3897
+ "62c10cfb": ra.value,
3898
+ "5ad157ba": ua.value,
3899
+ "54dea463": st.value,
3900
+ "3a078c86": Ot.value,
3901
+ "14da127d": t.styleButtonColor
3658
3902
  }));
3659
- const C = hl(
3903
+ const g = Bl(
3660
3904
  () => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
3661
3905
  );
3662
- La(() => {
3663
- m.value = h.value;
3664
- }), Pa(() => {
3665
- Qt();
3906
+ Aa(() => {
3907
+ k.value = S.value;
3908
+ }), Ya(() => {
3909
+ Jt();
3666
3910
  });
3667
- const B = S, _ = e, {
3668
- nbId: Le,
3669
- display: pe,
3670
- hasTabIndexEnter: Ne,
3671
- ariaLabel: Ae,
3672
- ariaAttrs: re,
3673
- caretColor: J,
3674
- selectionBgColor: Pe,
3675
- selectionTextColor: Fe,
3676
- hasBorderRadius: ae,
3677
- borderRadius: K,
3678
- disabled: N,
3679
- fontFamily: le,
3680
- fontSize: ue,
3681
- fontWeight: Q,
3682
- fontFamilyMsg: $e,
3683
- fontSizeMsg: ie,
3684
- fontWeightMsg: H,
3685
- textMessageColor: ge,
3686
- inputWidth: X,
3687
- inputStyle: he,
3688
- activeTextStyle: ye,
3689
- sizeMediaQuery: be,
3690
- inputReadonly: I,
3691
- blockPaste: je,
3911
+ const h = y, M = e, {
3912
+ nbId: Q,
3913
+ display: ce,
3914
+ hasTabIndexEnter: D,
3915
+ ariaLabel: T,
3916
+ ariaAttrs: x,
3917
+ caretColor: I,
3918
+ selectionBgColor: ae,
3919
+ selectionTextColor: le,
3920
+ hasBorderRadius: X,
3921
+ borderRadius: _,
3922
+ disabled: $,
3923
+ fontFamily: H,
3924
+ fontSize: ie,
3925
+ fontWeight: q,
3926
+ fontFamilyMsg: Fe,
3927
+ fontSizeMsg: be,
3928
+ fontWeightMsg: ee,
3929
+ textMessageColor: Ve,
3930
+ inputWidth: fe,
3931
+ inputStyle: $e,
3932
+ activeTextStyle: Te,
3933
+ sizeMediaQuery: ke,
3934
+ inputReadonly: j,
3935
+ blockPaste: Je,
3692
3936
  inputType: v,
3693
- hasTrim: Z,
3694
- inputUppercase: ze,
3695
- inputName: Ue,
3696
- inputText: h,
3697
- min: _e,
3698
- max: ee,
3699
- step: ut,
3700
- hasSeconds: gt,
3701
- locale: tt,
3702
- theme: we,
3703
- allowRange: Se,
3704
- calendarZIndex: Bt,
3705
- calendarWidth: it,
3706
- blockClicksWithoutEvents: yt,
3707
- tabindex: Lt,
3708
- lightBgColor: bt,
3709
- lightBgColorFocus: Oe,
3710
- lightDisabledBgColor: st,
3711
- lightTextColor: Ye,
3712
- darkBgColor: x,
3713
- darkBgColorFocus: $,
3714
- darkDisabledBgColor: se,
3715
- darkTextColor: q,
3716
- textAlign: de,
3717
- showMsg: at,
3937
+ hasTrim: se,
3938
+ inputUppercase: Oe,
3939
+ inputName: Qe,
3940
+ inputText: S,
3941
+ min: Ue,
3942
+ max: ve,
3943
+ step: vt,
3944
+ hasSeconds: ht,
3945
+ locale: ot,
3946
+ theme: ze,
3947
+ allowRange: Be,
3948
+ calendarZIndex: kt,
3949
+ calendarWidth: pt,
3950
+ blockClicksWithoutEvents: St,
3951
+ tabindex: Bt,
3952
+ lightBgColor: xt,
3953
+ lightBgColorFocus: Le,
3954
+ lightDisabledBgColor: gt,
3955
+ lightTextColor: Xe,
3956
+ darkBgColor: V,
3957
+ darkBgColorFocus: N,
3958
+ darkDisabledBgColor: me,
3959
+ darkTextColor: te,
3960
+ textAlign: he,
3961
+ showMsg: et,
3718
3962
  hasMsg: Ge,
3719
- showLabel: We,
3720
- label: p,
3721
- labelBreakOnActive: T,
3722
- labelBackground: te,
3723
- labelPadding: ne,
3724
- labelBorderRadius: ce,
3725
- labelLeft: De,
3726
- inputLabelMarginActive: xe,
3727
- labelActiveTop: Re,
3728
- labelActiveLeft: Ie,
3729
- labelRight: He,
3963
+ showLabel: Ie,
3964
+ label: b,
3965
+ labelBreakOnActive: L,
3966
+ labelBackground: de,
3967
+ labelPadding: ge,
3968
+ labelBorderRadius: Se,
3969
+ labelLeft: _e,
3970
+ inputLabelMarginActive: We,
3971
+ labelActiveTop: Ee,
3972
+ labelActiveLeft: He,
3973
+ labelRight: qe,
3730
3974
  labelActiveRight: Ke,
3731
- fontFamilyLabel: dt,
3732
- fontSizeLabel: ct,
3975
+ fontFamilyLabel: tt,
3976
+ fontSizeLabel: yt,
3733
3977
  fontSizeLabelActive: Rt,
3734
- fontWeightLabel: mt,
3735
- lightTextColorLabel: ht,
3736
- lightTextColorLabelActive: Qe,
3978
+ fontWeightLabel: Ct,
3979
+ lightTextColorLabel: bt,
3980
+ lightTextColorLabelActive: at,
3737
3981
  darkTextColorLabel: Mt,
3738
- darkTextColorLabelActive: Ze,
3739
- required: ft
3740
- } = Fa(_), m = Y(""), R = Y(""), g = Y(""), St = Y(""), lt = Y(!1), xt = Y(!1), Ce = a(() => !it.value || it.value < 280 ? 280 : parseInt(it.value, 10)), nt = a(() => {
3741
- if (gt.value !== null)
3742
- return gt.value;
3982
+ darkTextColorLabelActive: rt,
3983
+ required: Vt
3984
+ } = Ea(M), k = oe(""), E = oe(""), Z = oe(""), Y = oe(""), we = oe(!1), R = oe(!1), Et = a(() => !pt.value || pt.value < 280 ? 280 : parseInt(pt.value, 10)), De = a(() => {
3985
+ if (ht.value !== null)
3986
+ return ht.value;
3743
3987
  if (v.value === "time" || v.value === "datetime-local") {
3744
3988
  const t = (l) => {
3745
3989
  if (!l || typeof l != "string")
@@ -3747,23 +3991,23 @@ const an = ["id"], ln = ["for"], nn = {
3747
3991
  let n = l;
3748
3992
  return v.value === "datetime-local" && (n = l.split("T")[1] || "", n = n.split(/[Z+-]/)[0] || ""), n.split(":").length >= 3;
3749
3993
  };
3750
- if (t(m.value) || t(h.value))
3994
+ if (t(k.value) || t(S.value))
3751
3995
  return !0;
3752
3996
  }
3753
3997
  return !1;
3754
- }), fe = a(() => {
3755
- if (!m.value)
3998
+ }), Lt = a(() => {
3999
+ if (!k.value)
3756
4000
  return null;
3757
- if (Se.value && typeof m.value == "string" && m.value.startsWith("{"))
4001
+ if (Be.value && typeof k.value == "string" && k.value.startsWith("{"))
3758
4002
  try {
3759
- const t = JSON.parse(m.value);
4003
+ const t = JSON.parse(k.value);
3760
4004
  if (t && (t.startDate || t.endDate)) {
3761
4005
  const l = (n) => {
3762
4006
  if (!n)
3763
4007
  return null;
3764
4008
  if (/^\d{4}-\d{2}-\d{2}$/.test(n)) {
3765
- const [r, d, s] = n.split("-").map(Number);
3766
- return new Date(r, d - 1, s);
4009
+ const [r, s, d] = n.split("-").map(Number);
4010
+ return new Date(r, s - 1, d);
3767
4011
  }
3768
4012
  return new Date(n);
3769
4013
  };
@@ -3774,249 +4018,252 @@ const an = ["id"], ln = ["for"], nn = {
3774
4018
  }
3775
4019
  } catch {
3776
4020
  }
3777
- if (v.value === "date" && typeof m.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(m.value)) {
3778
- const [t, l, n] = m.value.split("-").map(Number);
4021
+ if (v.value === "date" && typeof k.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(k.value)) {
4022
+ const [t, l, n] = k.value.split("-").map(Number);
3779
4023
  return new Date(t, l - 1, n);
3780
4024
  }
3781
- return m.value;
3782
- }), Ct = (t, l, n) => {
4025
+ return k.value;
4026
+ }), ue = (t, l, n) => {
3783
4027
  if (!t)
3784
4028
  return "";
3785
- const r = n || tt.value;
4029
+ const r = n || ot.value;
3786
4030
  if (l === "date") {
3787
- if (Se.value && typeof t == "string" && t.startsWith("{"))
4031
+ if (Be.value && typeof t == "string" && t.startsWith("{"))
3788
4032
  try {
3789
- const d = JSON.parse(t);
3790
- if (d && (d.startDate || d.endDate)) {
3791
- const s = (V) => {
3792
- if (!V)
4033
+ const s = JSON.parse(t);
4034
+ if (s && (s.startDate || s.endDate)) {
4035
+ const d = (C) => {
4036
+ if (!C)
3793
4037
  return "";
3794
- if (/^\d{4}-\d{2}-\d{2}$/.test(V)) {
3795
- const [k, M, O] = V.split("-");
3796
- return r === "pt-BR" ? `${O}/${M}/${k}` : `${M}/${O}/${k}`;
4038
+ if (/^\d{4}-\d{2}-\d{2}$/.test(C)) {
4039
+ const [B, W, J] = C.split("-");
4040
+ return r === "pt-BR" ? `${J}/${W}/${B}` : `${W}/${J}/${B}`;
3797
4041
  }
3798
- return V;
3799
- }, c = s(d.startDate), y = s(d.endDate);
3800
- if (c && y)
3801
- return `${c} - ${y}`;
3802
- if (c)
3803
- return c;
3804
- if (y)
3805
- return y;
4042
+ return C;
4043
+ }, f = d(s.startDate), p = d(s.endDate);
4044
+ if (f && p)
4045
+ return `${f} - ${p}`;
4046
+ if (f)
4047
+ return f;
4048
+ if (p)
4049
+ return p;
3806
4050
  }
3807
4051
  } catch {
3808
4052
  }
3809
4053
  if (typeof t == "string") {
3810
4054
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
3811
- const [s, c, y] = t.split("-");
3812
- return r === "pt-BR" ? `${y}/${c}/${s}` : `${c}/${y}/${s}`;
4055
+ const [d, f, p] = t.split("-");
4056
+ return r === "pt-BR" ? `${p}/${f}/${d}` : `${f}/${p}/${d}`;
3813
4057
  }
3814
4058
  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")) {
3815
- const s = new Date(t);
3816
- if (!isNaN(s.getTime())) {
3817
- const c = s.getFullYear(), y = String(s.getMonth() + 1).padStart(2, "0"), V = String(s.getDate()).padStart(2, "0");
3818
- return r === "pt-BR" ? `${V}/${y}/${c}` : `${y}/${V}/${c}`;
4059
+ const d = new Date(t);
4060
+ if (!isNaN(d.getTime())) {
4061
+ const f = d.getFullYear(), p = String(d.getMonth() + 1).padStart(2, "0"), C = String(d.getDate()).padStart(2, "0");
4062
+ return r === "pt-BR" ? `${C}/${p}/${f}` : `${p}/${C}/${f}`;
3819
4063
  }
3820
4064
  }
3821
4065
  } else if (t instanceof Date && !isNaN(t.getTime())) {
3822
- const d = t.getFullYear(), s = String(t.getMonth() + 1).padStart(2, "0"), c = String(t.getDate()).padStart(2, "0");
3823
- return r === "pt-BR" ? `${c}/${s}/${d}` : `${s}/${c}/${d}`;
4066
+ const s = t.getFullYear(), d = String(t.getMonth() + 1).padStart(2, "0"), f = String(t.getDate()).padStart(2, "0");
4067
+ return r === "pt-BR" ? `${f}/${d}/${s}` : `${d}/${f}/${s}`;
3824
4068
  }
3825
4069
  return "";
3826
4070
  } else if (l === "datetime-local") {
3827
4071
  if (typeof t == "string") {
3828
4072
  if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
3829
- const [s, c] = t.split("T"), [y, V, k] = s.split("-");
3830
- return r === "pt-BR" ? `${k}/${V}/${y} ${c}` : `${V}/${k}/${y} ${c}`;
4073
+ const [d, f] = t.split("T"), [p, C, B] = d.split("-");
4074
+ return r === "pt-BR" ? `${B}/${C}/${p} ${f}` : `${C}/${B}/${p} ${f}`;
3831
4075
  }
3832
4076
  if (/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/.test(t)) {
3833
- const s = new Date(t);
3834
- if (!isNaN(s.getTime())) {
3835
- const c = s.getFullYear(), y = String(s.getMonth() + 1).padStart(2, "0"), V = String(s.getDate()).padStart(2, "0"), k = String(s.getHours()).padStart(2, "0"), M = String(s.getMinutes()).padStart(2, "0"), O = String(s.getSeconds()).padStart(2, "0");
3836
- return r === "pt-BR" ? `${V}/${y}/${c} ${k}:${M}:${O}` : `${y}/${V}/${c} ${k}:${M}:${O}`;
4077
+ const d = new Date(t);
4078
+ if (!isNaN(d.getTime())) {
4079
+ const f = d.getFullYear(), p = String(d.getMonth() + 1).padStart(2, "0"), C = String(d.getDate()).padStart(2, "0"), B = 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" ? `${C}/${p}/${f} ${B}:${W}:${J}` : `${p}/${C}/${f} ${B}:${W}:${J}`;
3837
4081
  }
3838
4082
  }
3839
4083
  }
3840
4084
  return "";
3841
4085
  } else if (l === "month") {
3842
4086
  if (typeof t == "string" && /^\d{4}-\d{2}$/.test(t)) {
3843
- const [d, s] = t.split("-");
3844
- return `${s}/${d}`;
4087
+ const [s, d] = t.split("-");
4088
+ return `${d}/${s}`;
3845
4089
  }
3846
4090
  return t;
3847
4091
  } else if (l === "week") {
3848
4092
  if (typeof t == "string" && /^\d{4}-W\d{2}$/i.test(t)) {
3849
- const d = t.match(/^(\d{4})-W(\d{2})$/i);
3850
- if (d)
3851
- return r === "pt-BR" ? `Semana ${d[2]} de ${d[1]}` : `Week ${d[2]} of ${d[1]}`;
4093
+ const s = t.match(/^(\d{4})-W(\d{2})$/i);
4094
+ if (s)
4095
+ return r === "pt-BR" ? `Semana ${s[2]} de ${s[1]}` : `Week ${s[2]} of ${s[1]}`;
3852
4096
  }
3853
4097
  return t;
3854
4098
  }
3855
4099
  return t;
3856
- }, Vt = (t, l, n) => {
4100
+ }, ut = (t, l, n) => {
3857
4101
  if (!t || !t.trim())
3858
4102
  return "";
3859
- const r = t.trim(), d = n || tt.value;
4103
+ const r = t.trim(), s = n || ot.value;
3860
4104
  if (l === "date") {
3861
- if (Se.value && r.includes("-")) {
3862
- const s = r.split(/\s*-\s*/).map((k) => k.trim()), c = (k) => {
3863
- if (!k)
4105
+ if (Be.value && r.includes("-")) {
4106
+ const d = r.split(/\s*-\s*/).map((B) => B.trim()), f = (B) => {
4107
+ if (!B)
3864
4108
  return null;
3865
- if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(k)) {
3866
- const M = k.split("/");
3867
- if (d === "pt-BR") {
3868
- const [O, Me, Xe] = M, qe = O.padStart(2, "0"), et = Me.padStart(2, "0");
3869
- return `${Xe}-${et}-${qe}`;
4109
+ if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(B)) {
4110
+ const W = B.split("/");
4111
+ if (s === "pt-BR") {
4112
+ const [J, Me, ft] = W, Pe = J.padStart(2, "0"), Ze = Me.padStart(2, "0");
4113
+ return `${ft}-${Ze}-${Pe}`;
3870
4114
  } else {
3871
- const [O, Me, Xe] = M, qe = Me.padStart(2, "0"), et = O.padStart(2, "0");
3872
- return `${Xe}-${et}-${qe}`;
4115
+ const [J, Me, ft] = W, Pe = Me.padStart(2, "0"), Ze = J.padStart(2, "0");
4116
+ return `${ft}-${Ze}-${Pe}`;
3873
4117
  }
3874
- } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(k)) {
3875
- const M = k.split("-"), [O, Me, Xe] = M, qe = Xe.padStart(2, "0"), et = Me.padStart(2, "0");
3876
- return `${O}-${et}-${qe}`;
4118
+ } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(B)) {
4119
+ const W = B.split("-"), [J, Me, ft] = W, Pe = ft.padStart(2, "0"), Ze = Me.padStart(2, "0");
4120
+ return `${J}-${Ze}-${Pe}`;
3877
4121
  }
3878
4122
  return null;
3879
4123
  };
3880
- let y = c(s[0]), V = s[1] ? c(s[1]) : null;
3881
- if (y && V) {
3882
- const k = new Date(y);
3883
- if (new Date(V) < k) {
3884
- const O = y;
3885
- y = V, V = O;
4124
+ let p = f(d[0]), C = d[1] ? f(d[1]) : null;
4125
+ if (p && C) {
4126
+ const B = new Date(p);
4127
+ if (new Date(C) < B) {
4128
+ const J = p;
4129
+ p = C, C = J;
3886
4130
  }
3887
- return JSON.stringify({ startDate: y, endDate: V });
3888
- } else if (y)
3889
- return JSON.stringify({ startDate: y, endDate: null });
4131
+ return JSON.stringify({ startDate: p, endDate: C });
4132
+ } else if (p)
4133
+ return JSON.stringify({ startDate: p, endDate: null });
3890
4134
  return "";
3891
4135
  }
3892
4136
  if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(r)) {
3893
- const s = r.split("/");
3894
- if (d === "pt-BR") {
3895
- const [c, y, V] = s, k = c.padStart(2, "0"), M = y.padStart(2, "0");
3896
- return `${V}-${M}-${k}`;
4137
+ const d = r.split("/");
4138
+ if (s === "pt-BR") {
4139
+ const [f, p, C] = d, B = f.padStart(2, "0"), W = p.padStart(2, "0");
4140
+ return `${C}-${W}-${B}`;
3897
4141
  } else {
3898
- const [c, y, V] = s, k = y.padStart(2, "0"), M = c.padStart(2, "0");
3899
- return `${V}-${M}-${k}`;
4142
+ const [f, p, C] = d, B = p.padStart(2, "0"), W = f.padStart(2, "0");
4143
+ return `${C}-${W}-${B}`;
3900
4144
  }
3901
4145
  } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)) {
3902
- const s = r.split("-"), [c, y, V] = s, k = V.padStart(2, "0"), M = y.padStart(2, "0");
3903
- return `${c}-${M}-${k}`;
4146
+ const d = r.split("-"), [f, p, C] = d, B = C.padStart(2, "0"), W = p.padStart(2, "0");
4147
+ return `${f}-${W}-${B}`;
3904
4148
  }
3905
4149
  return "";
3906
4150
  } else if (l === "datetime-local") {
3907
4151
  if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(r)) {
3908
- const [s, c] = r.split(" "), y = s.split("/");
3909
- if (d === "pt-BR") {
3910
- const [V, k, M] = y, O = V.padStart(2, "0"), Me = k.padStart(2, "0"), qe = c.split(":").map((et) => et.padStart(2, "0")).join(":");
3911
- return `${M}-${Me}-${O}T${qe}`;
4152
+ const [d, f] = r.split(" "), p = d.split("/");
4153
+ if (s === "pt-BR") {
4154
+ const [C, B, W] = p, J = C.padStart(2, "0"), Me = B.padStart(2, "0"), Pe = f.split(":").map((Ze) => Ze.padStart(2, "0")).join(":");
4155
+ return `${W}-${Me}-${J}T${Pe}`;
3912
4156
  } else {
3913
- const [V, k, M] = y, O = k.padStart(2, "0"), Me = V.padStart(2, "0"), qe = c.split(":").map((et) => et.padStart(2, "0")).join(":");
3914
- return `${M}-${Me}-${O}T${qe}`;
4157
+ const [C, B, W] = p, J = B.padStart(2, "0"), Me = C.padStart(2, "0"), Pe = f.split(":").map((Ze) => Ze.padStart(2, "0")).join(":");
4158
+ return `${W}-${Me}-${J}T${Pe}`;
3915
4159
  }
3916
4160
  } else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(r)) {
3917
- const [s, c] = r.split("T"), y = s.split("-"), [V, k, M] = y, O = M.padStart(2, "0"), Me = k.padStart(2, "0"), qe = c.split(":").map((et) => et.padStart(2, "0")).join(":");
3918
- return `${V}-${Me}-${O}T${qe}`;
4161
+ const [d, f] = r.split("T"), p = d.split("-"), [C, B, W] = p, J = W.padStart(2, "0"), Me = B.padStart(2, "0"), Pe = f.split(":").map((Ze) => Ze.padStart(2, "0")).join(":");
4162
+ return `${C}-${Me}-${J}T${Pe}`;
3919
4163
  }
3920
4164
  return "";
3921
4165
  } else if (l === "month") {
3922
4166
  if (/^\d{1,2}\/\d{4}$/.test(r)) {
3923
- const [s, c] = r.split("/"), y = s.padStart(2, "0");
3924
- return `${c}-${y}`;
4167
+ const [d, f] = r.split("/"), p = d.padStart(2, "0");
4168
+ return `${f}-${p}`;
3925
4169
  } else if (/^\d{4}-\d{1,2}$/.test(r)) {
3926
- const [s, c] = r.split("-"), y = c.padStart(2, "0");
3927
- return `${s}-${y}`;
4170
+ const [d, f] = r.split("-"), p = f.padStart(2, "0");
4171
+ return `${d}-${p}`;
3928
4172
  }
3929
4173
  return "";
3930
4174
  } else if (l === "week") {
3931
4175
  if (/^\d{4}-W\d{2}$/i.test(r))
3932
4176
  return r.toUpperCase();
3933
- const s = r.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
3934
- if (s)
3935
- return `${s[2]}-W${s[1]}`;
3936
- const c = r.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
3937
- return c ? `${c[2]}-W${c[1]}` : "";
4177
+ const d = r.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
4178
+ if (d)
4179
+ return `${d[2]}-W${d[1]}`;
4180
+ const f = r.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
4181
+ return f ? `${f[2]}-W${f[1]}` : "";
3938
4182
  }
3939
4183
  return r;
3940
- }, j = Y(!1), At = Y({ top: 0, left: 0 }), F = Y(null), E = Y(null), jt = Y(!0), L = a(() => jt.value === !0), z = a(() => {
3941
- const t = N.value ? "component-disabled" : "", l = pe.value !== "b" ? "inline-block" : "block", n = J.value ? J.value : "", r = Pe.value ? Pe.value : "", d = Fe.value ? Fe.value : "", s = ae.value ? ae.value : !1, c = K.value !== 0 && !K.value || K.value < 0 ? 0 : K.value, y = le.value ? le.value : "'Lato', sans-serif", V = ue.value ? ue.value : "1.4em", k = Q.value !== 0 && !Q.value || Q.value < 0 ? 100 : Q.value, M = $e.value ? $e.value : "'Lato', sans-serif", O = ie.value ? ie.value : "1em", Me = H.value !== 0 && !H.value || H.value < 0 ? 100 : H.value, Xe = ge.value ? ge.value : "#f15574", qe = X.value ? X.value : 200, et = ye.value ? ye.value : "normal", _a = "sm", Oa = I.value ? I.value : !1, Ha = v.value ? v.value : "date", qa = ze.value ? ze.value : !1, ja = we.value ? we.value : "normal", Ua = de.value ? de.value : "left", Ya = he.value ? he.value : "background", Ga = We.value ? We.value : !1, Ka = De.value !== 0 && !De.value || De.value < 0 ? 5 : De.value, Qa = te.value ? te.value : "transparent", Za = xe.value !== 0 && !xe.value || xe.value < 0 ? 15 : xe.value, Ja = ne.value ? ne.value : "1px 5px", Xa = ce.value !== 0 && !ce.value || ce.value < 0 ? 0 : ce.value, el = Re.value === null || Re.value === void 0 ? -13 : Re.value, tl = Ie.value === null || Ie.value === void 0 ? -10 : Ie.value, al = He.value === null || He.value === void 0 ? 0 : He.value, ll = Ke.value === null || Ke.value === void 0 ? 0 : Ke.value, nl = dt.value ? dt.value : "'Lato', sans-serif", ol = ct.value ? ct.value : "1em", rl = Rt.value ? Rt.value : "0.8em", ul = mt.value ? mt.value : 400, il = ht.value ? ht.value : "#ffffff", pl = Mt.value ? Mt.value : "#000000", gl = Qe.value ? Qe.value : "#ffffff", yl = Ze.value ? Ze.value : "#000000";
4184
+ }, ne = oe(!1), At = oe({ top: 0, left: 0 }), P = oe(null), U = oe(null), Yt = oe(!0), F = 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", C = ie.value ? ie.value : "1.4em", B = 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 = Ve.value ? Ve.value : "#f15574", Pe = fe.value ? fe.value : 200, Ze = Te.value ? Te.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 = $e.value ? $e.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 = tt.value ? tt.value : "'Lato', sans-serif", cl = yt.value ? yt.value : "1em", fl = Rt.value ? Rt.value : "0.8em", hl = Ct.value ? Ct.value : 400, Sl = bt.value ? bt.value : "#ffffff", xl = Mt.value ? Mt.value : "#000000", Cl = at.value ? at.value : "#ffffff", Vl = rt.value ? rt.value : "#000000";
3942
4186
  return {
3943
4187
  disabled: t,
3944
4188
  display: l,
3945
- font: y,
3946
- fontSize: V,
3947
- fontWeight: k,
3948
- fontFamilyMsg: M,
3949
- fontSizeMsg: O,
4189
+ font: p,
4190
+ fontSize: C,
4191
+ fontWeight: B,
4192
+ fontFamilyMsg: W,
4193
+ fontSizeMsg: J,
3950
4194
  fontWeightMsg: Me,
3951
- textMessageColor: Xe,
4195
+ textMessageColor: ft,
3952
4196
  caretColor: n,
3953
4197
  selectionBgColor: r,
3954
- selectionTextColor: d,
3955
- hasBorderRadius: s,
3956
- borderRadius: c,
3957
- textAlign: Ua,
3958
- inputWidth: qe,
3959
- activeTextStyle: et,
3960
- sizeMediaQuery: _a,
3961
- inputReadonly: Oa,
3962
- inputType: Ha,
3963
- inputUppercase: qa,
3964
- theme: ja,
3965
- inputStyle: Ya,
3966
- showLabel: Ga,
3967
- labelBackground: Qa,
3968
- labelPadding: Ja,
3969
- labelBorderRadius: Xa,
3970
- labelLeft: Ka,
3971
- inputLabelMarginActive: Za,
3972
- labelActiveTop: el,
3973
- labelActiveLeft: tl,
3974
- labelRight: al,
3975
- labelActiveRight: ll,
3976
- fontFamilyLabel: nl,
3977
- fontSizeLabel: ol,
3978
- fontSizeLabelActive: rl,
3979
- fontWeightLabel: ul,
3980
- lightTextColorLabel: il,
3981
- darkTextColorLabel: pl,
3982
- lightTextColorLabelActive: gl,
3983
- darkTextColorLabelActive: yl
4198
+ selectionTextColor: s,
4199
+ hasBorderRadius: d,
4200
+ borderRadius: f,
4201
+ textAlign: Qa,
4202
+ inputWidth: Pe,
4203
+ activeTextStyle: Ze,
4204
+ sizeMediaQuery: Ua,
4205
+ inputReadonly: Ga,
4206
+ inputType: Ka,
4207
+ inputUppercase: Za,
4208
+ theme: Ja,
4209
+ inputStyle: Xa,
4210
+ showLabel: el,
4211
+ labelBackground: al,
4212
+ labelPadding: nl,
4213
+ labelBorderRadius: ol,
4214
+ labelLeft: tl,
4215
+ inputLabelMarginActive: ll,
4216
+ labelActiveTop: rl,
4217
+ labelActiveLeft: ul,
4218
+ labelRight: il,
4219
+ labelActiveRight: sl,
4220
+ fontFamilyLabel: dl,
4221
+ fontSizeLabel: cl,
4222
+ fontSizeLabelActive: fl,
4223
+ fontWeightLabel: hl,
4224
+ lightTextColorLabel: Sl,
4225
+ darkTextColorLabel: xl,
4226
+ lightTextColorLabelActive: Cl,
4227
+ darkTextColorLabelActive: Vl
3984
4228
  };
3985
- }), Tt = a(() => z.value.disabled), kt = a(() => {
3986
- const t = z.value, l = U.value;
4229
+ }), Tt = a(() => G.value.disabled), $t = a(() => {
4230
+ const t = G.value, l = w.value;
3987
4231
  return {
3988
4232
  display: t.display,
3989
4233
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
3990
- paddingTop: l && We.value ? `${Math.abs(t.labelActiveTop)}px` : "0"
4234
+ // paddingTop: isActive && showLabel.value ? `${Math.abs(defaultValues.labelActiveTop)}px` : '0',
4235
+ paddingTop: "0px",
4236
+ // Esconde o label quando não está ativo usando overflow hidden
4237
+ overflow: l && Ie.value ? "visible" : "hidden"
3991
4238
  };
3992
- }), vt = a(() => {
3993
- const t = z.value;
4239
+ }), it = a(() => {
4240
+ const t = G.value;
3994
4241
  return t.fontSize ? t.fontSize : "1.4em";
3995
- }), A = a(() => {
3996
- const t = z.value, l = U.value;
4242
+ }), z = a(() => {
4243
+ const t = G.value, l = w.value;
3997
4244
  return {
3998
4245
  fontWeight: t.fontWeight,
3999
- marginTop: l && We.value ? `${t.inputLabelMarginActive}px` : "0"
4246
+ marginTop: l && Ie.value ? `${t.inputLabelMarginActive}px` : "0"
4000
4247
  };
4001
- }), It = a(() => {
4002
- const t = z.value;
4248
+ }), Nt = a(() => {
4249
+ const t = G.value;
4003
4250
  return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
4004
- }), Et = a(() => z.value.font), na = a(() => z.value.fontFamilyMsg), Nt = a(() => z.value.fontSizeMsg), $t = a(() => z.value.fontWeightMsg), oa = a(() => we.value === "dark" ? q.value : Ye.value), ra = a(() => z.value.textMessageColor), Ut = a(() => {
4005
- const t = z.value;
4251
+ }), oa = a(() => G.value.font), ra = a(() => G.value.fontFamilyMsg), ua = a(() => G.value.fontSizeMsg), st = a(() => G.value.fontWeightMsg), Pt = a(() => ze.value === "dark" ? te.value : Xe.value), Ot = a(() => G.value.textMessageColor), ia = a(() => {
4252
+ const t = G.value;
4006
4253
  return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
4007
- }), ua = a(() => {
4008
- const t = z.value;
4254
+ }), Ut = a(() => {
4255
+ const t = G.value;
4009
4256
  return t.selectionBgColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
4010
- }), ia = a(() => {
4011
- const t = z.value;
4257
+ }), sa = a(() => {
4258
+ const t = G.value;
4012
4259
  return t.selectionTextColor || (t.theme === "dark" ? "#000000" : "#ffffff");
4013
- }), Yt = a(() => {
4014
- const t = z.value;
4260
+ }), Gt = a(() => {
4261
+ const t = G.value;
4015
4262
  return t.display === "block" ? { width: "100%" } : {
4016
4263
  width: `${t.inputWidth}px`
4017
4264
  };
4018
- }), sa = a(() => {
4019
- switch (he.value) {
4265
+ }), da = a(() => {
4266
+ switch ($e.value) {
4020
4267
  case "line":
4021
4268
  return "component__input--line";
4022
4269
  case "border":
@@ -4024,8 +4271,8 @@ const an = ["id"], ln = ["for"], nn = {
4024
4271
  default:
4025
4272
  return "component__input--background";
4026
4273
  }
4027
- }), da = a(() => {
4028
- switch (z.value.activeTextStyle) {
4274
+ }), ca = a(() => {
4275
+ switch (G.value.activeTextStyle) {
4029
4276
  case "italic":
4030
4277
  return "component__input--active--italic";
4031
4278
  case "oblique":
@@ -4033,34 +4280,34 @@ const an = ["id"], ln = ["for"], nn = {
4033
4280
  default:
4034
4281
  return "component__input--active--normal";
4035
4282
  }
4036
- }), ca = a(() => "component__sm"), Gt = a(() => {
4037
- switch (z.value.theme) {
4283
+ }), fa = a(() => "component__sm"), Kt = a(() => {
4284
+ switch (G.value.theme) {
4038
4285
  case "dark":
4039
4286
  return "component__theme--dark";
4040
4287
  default:
4041
4288
  return "component__theme--light";
4042
4289
  }
4043
- }), fa = a(() => z.value.inputReadonly ? "component__input--read-only" : ""), Kt = a(() => z.value.inputUppercase ? "component__input--uppercase" : ""), f = a(() => Ue.value ? Ue.value : `${Le.value}-name-label`), w = a(() => ""), U = a(() => lt.value || R.value && R.value.trim().length > 0), i = a(() => !R.value || R.value.trim().length === 0 ? "component__input--empty" : "");
4044
- a(() => lt.value ? "component__input--active" : "component__input--no-active");
4045
- const D = a(() => "6px 10px"), Ve = a(() => !!(at.value && Ge.value)), Te = a(() => {
4290
+ }), va = a(() => G.value.inputReadonly ? "component__input--read-only" : ""), pa = a(() => G.value.inputUppercase ? "component__input--uppercase" : ""), Ft = a(() => Qe.value ? Qe.value : `${Q.value}-name-label`), c = a(() => ""), w = a(() => we.value || E.value && E.value.trim().length > 0), pe = a(() => !E.value || E.value.trim().length === 0 ? "component__input--empty" : "");
4291
+ a(() => we.value ? "component__input--active" : "component__input--no-active");
4292
+ const je = a(() => "6px 10px"), Zt = a(() => !!(et.value && Ge.value)), i = a(() => {
4046
4293
  const t = {};
4047
- re.value && Object.keys(re.value).forEach((r) => t[`aria-${r}`] = re.value[r]);
4294
+ x.value && Object.keys(x.value).forEach((r) => t[`aria-${r}`] = x.value[r]);
4048
4295
  const l = {
4049
- "aria-label": Ae.value,
4050
- "aria-disabled": N.value,
4296
+ "aria-label": T.value,
4297
+ "aria-disabled": $.value,
4051
4298
  ...t
4052
4299
  };
4053
4300
  return Object.fromEntries(
4054
4301
  Object.entries(l).filter(([n, r]) => r != null)
4055
4302
  );
4056
- }), va = a(() => {
4057
- const t = we.value === "dark" ? x.value : bt.value, l = we.value === "dark" ? q.value : Ye.value;
4303
+ }), A = a(() => {
4304
+ const t = ze.value === "dark" ? V.value : xt.value, l = ze.value === "dark" ? te.value : Xe.value;
4058
4305
  return t === "transparent" || t === "#transparent" || !t ? l : t;
4059
- }), Pt = a(() => {
4060
- const t = we.value === "dark" ? $.value : Oe.value, l = we.value === "dark" ? q.value : Ye.value;
4306
+ }), xe = a(() => {
4307
+ const t = ze.value === "dark" ? N.value : Le.value, l = ze.value === "dark" ? te.value : Xe.value;
4061
4308
  return t === "transparent" || t === "#transparent" || !t ? l : t;
4062
- }), pa = a(() => {
4063
- const t = z.value, l = U.value, n = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, r = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
4309
+ }), lt = a(() => {
4310
+ const t = G.value, l = w.value, n = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, r = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
4064
4311
  return {
4065
4312
  fontFamily: t.fontFamilyLabel,
4066
4313
  fontSize: l ? t.fontSizeLabelActive : t.fontSizeLabel,
@@ -4077,36 +4324,36 @@ const an = ["id"], ln = ["for"], nn = {
4077
4324
  // Se labelBreakOnActive for true (padrão), usa ellipsis quando ativo. Se false, quebra linha
4078
4325
  ...l ? {
4079
4326
  width: "fit-content",
4080
- whiteSpace: T.value ? "nowrap" : "normal",
4081
- wordWrap: T.value ? "normal" : "break-word",
4082
- overflowWrap: T.value ? "normal" : "break-word",
4327
+ whiteSpace: L.value ? "nowrap" : "normal",
4328
+ wordWrap: L.value ? "normal" : "break-word",
4329
+ overflowWrap: L.value ? "normal" : "break-word",
4083
4330
  maxWidth: "100%",
4084
- textOverflow: T.value ? "ellipsis" : "clip",
4085
- overflow: T.value ? "hidden" : "visible"
4331
+ textOverflow: L.value ? "ellipsis" : "clip",
4332
+ overflow: L.value ? "hidden" : "visible"
4086
4333
  } : {}
4087
4334
  };
4088
4335
  });
4089
4336
  a(() => {
4090
- const t = z.value;
4337
+ const t = G.value;
4091
4338
  return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
4092
4339
  });
4093
- const Qt = () => {
4094
- m.value = h.value, St.value = v.value;
4340
+ const Jt = () => {
4341
+ k.value = S.value, Y.value = v.value;
4095
4342
  }, ga = () => {
4096
- B("clicked");
4343
+ h("clicked");
4097
4344
  }, ya = (t) => {
4098
- t.stopPropagation(), !(N.value || z.value.inputReadonly) && F.value && (F.value.focus(), L.value && (j.value = !1, requestAnimationFrame(() => {
4099
- wt(), j.value = !0;
4345
+ t.stopPropagation(), !($.value || G.value.inputReadonly) && P.value && (P.value.focus(), F.value && (ne.value = !1, requestAnimationFrame(() => {
4346
+ wt(), ne.value = !0;
4100
4347
  })));
4101
4348
  }, ba = () => {
4102
- N.value || z.value.inputReadonly || !Ne.value || B("entered", m.value);
4349
+ $.value || G.value.inputReadonly || !D.value || h("entered", k.value);
4103
4350
  }, ma = async (t) => {
4104
4351
  var n;
4105
4352
  const l = ((n = t.clipboardData) == null ? void 0 : n.getData("text")) || "";
4106
- B("paste", l), je.value && t.preventDefault();
4353
+ h("paste", l), Je.value && t.preventDefault();
4107
4354
  }, wt = () => {
4108
- F.value && aa(() => {
4109
- const t = F.value.getBoundingClientRect(), l = 4;
4355
+ P.value && la(() => {
4356
+ const t = P.value.getBoundingClientRect(), l = 4;
4110
4357
  At.value = {
4111
4358
  top: `${t.bottom + l}px`,
4112
4359
  left: `${t.left}px`
@@ -4116,32 +4363,32 @@ const an = ["id"], ln = ["for"], nn = {
4116
4363
  position: "fixed",
4117
4364
  top: At.value.top,
4118
4365
  left: At.value.left,
4119
- zIndex: Bt.value
4366
+ zIndex: kt.value
4120
4367
  })), Sa = () => {
4121
- lt.value = !0, B("focused"), L.value && (j.value = !1, requestAnimationFrame(() => {
4122
- wt(), j.value = !0;
4368
+ we.value = !0, h("focused"), F.value && (ne.value = !1, requestAnimationFrame(() => {
4369
+ wt(), ne.value = !0;
4123
4370
  }));
4124
4371
  }, xa = (t) => {
4125
- t.relatedTarget && E.value && E.value.contains(t.relatedTarget) || setTimeout(() => {
4372
+ t.relatedTarget && U.value && U.value.contains(t.relatedTarget) || setTimeout(() => {
4126
4373
  var r;
4127
4374
  const l = document.activeElement;
4128
- if (j.value) {
4129
- if (E.value && E.value.contains(l) || t.relatedTarget && E.value && E.value.contains(t.relatedTarget))
4375
+ if (ne.value) {
4376
+ if (U.value && U.value.contains(l) || t.relatedTarget && U.value && U.value.contains(t.relatedTarget))
4130
4377
  return;
4131
- if (l === document.body && E.value) {
4132
- const d = E.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
4133
- if (Array.from(d).some((c) => c === document.activeElement || c.contains(document.activeElement)))
4378
+ if (l === document.body && U.value) {
4379
+ const s = U.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
4380
+ if (Array.from(s).some((f) => f === document.activeElement || f.contains(document.activeElement)))
4134
4381
  return;
4135
4382
  }
4136
4383
  }
4137
- const n = (r = F.value) == null ? void 0 : r.closest(".component");
4138
- n && n.contains(l) || F.value !== l && (lt.value = !1, j.value = !1, B("blurred"));
4384
+ const n = (r = P.value) == null ? void 0 : r.closest(".component");
4385
+ n && n.contains(l) || P.value !== l && (we.value = !1, ne.value = !1, h("blurred"));
4139
4386
  }, 200);
4140
4387
  }, Ca = () => {
4141
- L.value && (j.value, j.value = !1, requestAnimationFrame(() => {
4142
- wt(), j.value = !0;
4388
+ F.value && (ne.value, ne.value = !1, requestAnimationFrame(() => {
4389
+ wt(), ne.value = !0;
4143
4390
  }));
4144
- }, ot = (t) => {
4391
+ }, dt = (t) => {
4145
4392
  if (!t || !(t instanceof Date))
4146
4393
  return null;
4147
4394
  const l = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), r = String(t.getDate()).padStart(2, "0");
@@ -4150,19 +4397,19 @@ const an = ["id"], ln = ["for"], nn = {
4150
4397
  if (t == null || t === "")
4151
4398
  return "";
4152
4399
  if (t instanceof Date)
4153
- return isNaN(t.getTime()) ? "" : ot(t);
4400
+ return isNaN(t.getTime()) ? "" : dt(t);
4154
4401
  if (typeof t == "string") {
4155
4402
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
4156
- const [n, r, d] = t.split("-").map(Number), s = new Date(n, r - 1, d);
4157
- return s.getFullYear() === n && s.getMonth() === r - 1 && s.getDate() === d ? t : "";
4403
+ const [n, r, s] = t.split("-").map(Number), d = new Date(n, r - 1, s);
4404
+ return d.getFullYear() === n && d.getMonth() === r - 1 && d.getDate() === s ? t : "";
4158
4405
  }
4159
4406
  if (/^(\d{4}-\d{2}-\d{2})(T\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2})?)?$/.test(t)) {
4160
4407
  const n = new Date(t);
4161
- return isNaN(n.getTime()) ? "" : ot(n);
4408
+ return isNaN(n.getTime()) ? "" : dt(n);
4162
4409
  }
4163
4410
  }
4164
4411
  return "";
4165
- }, Zt = (t) => {
4412
+ }, Qt = (t) => {
4166
4413
  if (!t)
4167
4414
  return null;
4168
4415
  if (t instanceof Date) {
@@ -4171,15 +4418,15 @@ const an = ["id"], ln = ["for"], nn = {
4171
4418
  }
4172
4419
  if (typeof t == "string") {
4173
4420
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
4174
- const [n, r, d] = t.split("-").map(Number), s = new Date(n, r - 1, d);
4175
- return s.setHours(0, 0, 0, 0), s;
4421
+ const [n, r, s] = t.split("-").map(Number), d = new Date(n, r - 1, s);
4422
+ return d.setHours(0, 0, 0, 0), d;
4176
4423
  }
4177
4424
  const l = new Date(t);
4178
4425
  if (!isNaN(l.getTime()))
4179
4426
  return l.setHours(0, 0, 0, 0), l;
4180
4427
  }
4181
4428
  return null;
4182
- }, Jt = (t) => {
4429
+ }, Xt = (t) => {
4183
4430
  if (!t)
4184
4431
  return null;
4185
4432
  if (t instanceof Date && !isNaN(t.getTime())) {
@@ -4190,18 +4437,18 @@ const an = ["id"], ln = ["for"], nn = {
4190
4437
  if (typeof t == "string") {
4191
4438
  let l = t;
4192
4439
  if (t.includes("T")) {
4193
- const d = t.split("T");
4194
- d.length === 2 && (l = d[1]);
4440
+ const s = t.split("T");
4441
+ s.length === 2 && (l = s[1]);
4195
4442
  }
4196
4443
  const n = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, r = l.match(n);
4197
4444
  if (r) {
4198
- const d = parseInt(r[1], 10), s = parseInt(r[2], 10), c = r[3] ? parseInt(r[3], 10) : 0;
4199
- if (d >= 0 && d <= 23 && s >= 0 && s <= 59 && c >= 0 && c <= 59)
4200
- return { hour: d, minute: s, second: c };
4445
+ const s = parseInt(r[1], 10), d = parseInt(r[2], 10), f = r[3] ? parseInt(r[3], 10) : 0;
4446
+ if (s >= 0 && s <= 23 && d >= 0 && d <= 59 && f >= 0 && f <= 59)
4447
+ return { hour: s, minute: d, second: f };
4201
4448
  }
4202
4449
  }
4203
4450
  return null;
4204
- }, Ot = (t) => {
4451
+ }, Ht = (t) => {
4205
4452
  if (!t)
4206
4453
  return !1;
4207
4454
  let l = null;
@@ -4209,61 +4456,61 @@ const an = ["id"], ln = ["for"], nn = {
4209
4456
  l = new Date(t.getTime()), l.setHours(0, 0, 0, 0);
4210
4457
  else if (typeof t == "string")
4211
4458
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
4212
- const [d, s, c] = t.split("-").map(Number);
4213
- l = new Date(d, s - 1, c), l.setHours(0, 0, 0, 0);
4459
+ const [s, d, f] = t.split("-").map(Number);
4460
+ l = new Date(s, d - 1, f), l.setHours(0, 0, 0, 0);
4214
4461
  } else if (l = new Date(t), !isNaN(l.getTime()))
4215
4462
  l.setHours(0, 0, 0, 0);
4216
4463
  else
4217
4464
  return !0;
4218
4465
  if (!l || isNaN(l.getTime()))
4219
4466
  return !0;
4220
- const n = Zt(_e.value);
4467
+ const n = Qt(Ue.value);
4221
4468
  if (n) {
4222
- const d = new Date(n.getTime());
4223
- if (d.setHours(0, 0, 0, 0), l < d)
4469
+ const s = new Date(n.getTime());
4470
+ if (s.setHours(0, 0, 0, 0), l < s)
4224
4471
  return !0;
4225
4472
  }
4226
- const r = Zt(ee.value);
4473
+ const r = Qt(ve.value);
4227
4474
  if (r) {
4228
- const d = new Date(r.getTime());
4229
- if (d.setHours(0, 0, 0, 0), l > d)
4475
+ const s = new Date(r.getTime());
4476
+ if (s.setHours(0, 0, 0, 0), l > s)
4230
4477
  return !0;
4231
4478
  }
4232
4479
  return !1;
4233
- }, Ft = (t, l, n = 0) => {
4234
- const r = t * 3600 + l * 60 + n, d = Jt(_e.value);
4235
- if (d) {
4236
- const c = d.hour * 3600 + d.minute * 60 + (d.second || 0);
4237
- if (r < c)
4480
+ }, zt = (t, l, n = 0) => {
4481
+ const r = t * 3600 + l * 60 + n, s = Xt(Ue.value);
4482
+ if (s) {
4483
+ const f = s.hour * 3600 + s.minute * 60 + (s.second || 0);
4484
+ if (r < f)
4238
4485
  return !0;
4239
4486
  }
4240
- const s = Jt(ee.value);
4241
- if (s) {
4242
- const c = s.hour * 3600 + s.minute * 60 + (s.second || 0);
4243
- if (r > c)
4487
+ const d = Xt(ve.value);
4488
+ if (d) {
4489
+ const f = d.hour * 3600 + d.minute * 60 + (d.second || 0);
4490
+ if (r > f)
4244
4491
  return !0;
4245
4492
  }
4246
4493
  return !1;
4247
- }, rt = (t, l) => {
4494
+ }, ct = (t, l) => {
4248
4495
  if (!t || t === "")
4249
4496
  return !0;
4250
4497
  if (l === "date") {
4251
4498
  if (!/^\d{4}-\d{2}-\d{2}$/.test(t))
4252
4499
  return !1;
4253
- const [n, r, d] = t.split("-").map(Number), s = new Date(n, r - 1, d);
4254
- return s.getFullYear() === n && s.getMonth() === r - 1 && s.getDate() === d;
4500
+ const [n, r, s] = t.split("-").map(Number), d = new Date(n, r - 1, s);
4501
+ return d.getFullYear() === n && d.getMonth() === r - 1 && d.getDate() === s;
4255
4502
  } else if (l === "time") {
4256
4503
  const n = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/, r = t.match(n);
4257
4504
  if (!r)
4258
4505
  return !1;
4259
- const d = parseInt(r[1], 10), s = parseInt(r[2], 10), c = r[3] ? parseInt(r[3], 10) : 0;
4260
- return d >= 0 && d <= 23 && s >= 0 && s <= 59 && c >= 0 && c <= 59;
4506
+ const s = parseInt(r[1], 10), d = parseInt(r[2], 10), f = r[3] ? parseInt(r[3], 10) : 0;
4507
+ return s >= 0 && s <= 23 && d >= 0 && d <= 59 && f >= 0 && f <= 59;
4261
4508
  } else if (l === "datetime-local") {
4262
4509
  const n = t.split("T");
4263
4510
  if (n.length !== 2)
4264
4511
  return !1;
4265
- const r = n[0], d = n[1];
4266
- return rt(r, "date") && rt(d, "time");
4512
+ const r = n[0], s = n[1];
4513
+ return ct(r, "date") && ct(s, "time");
4267
4514
  } else if (l === "month") {
4268
4515
  if (!/^\d{4}-\d{2}$/.test(t))
4269
4516
  return !1;
@@ -4276,174 +4523,176 @@ const an = ["id"], ln = ["for"], nn = {
4276
4523
  return n >= 1900 && n <= 2100 && r >= 1 && r <= 53;
4277
4524
  }
4278
4525
  return !1;
4279
- }, zt = () => {
4526
+ }, It = () => {
4280
4527
  let t = !0;
4281
- if (h.value === null || h.value === void 0 || h.value === "") {
4282
- t = !ft.value, B("valid", t);
4528
+ if (S.value === null || S.value === void 0 || S.value === "") {
4529
+ t = !Vt.value, h("valid", t);
4283
4530
  return;
4284
4531
  }
4285
4532
  if (v.value === "date") {
4286
- const n = _t(h.value);
4287
- if (n === "" && h.value !== "" && h.value !== null && h.value !== void 0) {
4288
- B("valid", !1);
4533
+ const n = _t(S.value);
4534
+ if (n === "" && S.value !== "" && S.value !== null && S.value !== void 0) {
4535
+ h("valid", !1);
4289
4536
  return;
4290
4537
  }
4291
4538
  if (n === "") {
4292
- B("valid", !0);
4539
+ h("valid", !0);
4293
4540
  return;
4294
4541
  }
4295
- if (!rt(n, v.value)) {
4296
- B("valid", !1);
4542
+ if (!ct(n, v.value)) {
4543
+ h("valid", !1);
4297
4544
  return;
4298
4545
  }
4299
- t = !Ot(n);
4546
+ t = !Ht(n);
4300
4547
  } else if (v.value === "time") {
4301
- if (!rt(h.value, v.value)) {
4302
- B("valid", !1);
4548
+ if (!ct(S.value, v.value)) {
4549
+ h("valid", !1);
4303
4550
  return;
4304
4551
  }
4305
- const n = h.value.split(":");
4552
+ const n = S.value.split(":");
4306
4553
  if (n.length >= 2) {
4307
- const r = parseInt(n[0], 10) || 0, d = parseInt(n[1], 10) || 0, s = n[2] ? parseInt(n[2], 10) : 0;
4308
- t = !Ft(r, d, s);
4554
+ const r = parseInt(n[0], 10) || 0, s = parseInt(n[1], 10) || 0, d = n[2] ? parseInt(n[2], 10) : 0;
4555
+ t = !zt(r, s, d);
4309
4556
  }
4310
4557
  } else if (v.value === "datetime-local") {
4311
- if (h.value, typeof h.value == "string") {
4558
+ if (S.value, typeof S.value == "string") {
4312
4559
  const n = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/, r = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/;
4313
- if (!n.test(h.value) && !r.test(h.value)) {
4314
- B("valid", !1);
4560
+ if (!n.test(S.value) && !r.test(S.value)) {
4561
+ h("valid", !1);
4315
4562
  return;
4316
4563
  }
4317
- if (r.test(h.value)) {
4318
- const d = new Date(h.value);
4319
- if (isNaN(d.getTime())) {
4320
- B("valid", !1);
4564
+ if (r.test(S.value)) {
4565
+ const s = new Date(S.value);
4566
+ if (isNaN(s.getTime())) {
4567
+ h("valid", !1);
4321
4568
  return;
4322
4569
  }
4323
4570
  }
4324
- } else if (h.value !== null && h.value !== void 0 && h.value !== "") {
4325
- B("valid", !1);
4571
+ } else if (S.value !== null && S.value !== void 0 && S.value !== "") {
4572
+ h("valid", !1);
4326
4573
  return;
4327
4574
  }
4328
- if (m.value) {
4329
- const n = m.value.split("T");
4575
+ if (k.value) {
4576
+ const n = k.value.split("T");
4330
4577
  if (n.length === 2) {
4331
- const r = n[0], d = n[1], s = !Ot(r), c = d.split(":");
4332
- let y = !0;
4333
- if (c.length >= 2) {
4334
- const V = parseInt(c[0], 10) || 0, k = parseInt(c[1], 10) || 0, M = c[2] ? parseInt(c[2], 10) : 0;
4335
- y = !Ft(V, k, M);
4578
+ const r = n[0], s = n[1], d = !Ht(r), f = s.split(":");
4579
+ let p = !0;
4580
+ if (f.length >= 2) {
4581
+ const C = parseInt(f[0], 10) || 0, B = parseInt(f[1], 10) || 0, W = f[2] ? parseInt(f[2], 10) : 0;
4582
+ p = !zt(C, B, W);
4336
4583
  }
4337
- t = s && y;
4584
+ t = d && p;
4338
4585
  }
4339
4586
  }
4340
4587
  } else if (v.value === "month") {
4341
- if (!rt(h.value, v.value)) {
4342
- B("valid", !1);
4588
+ if (!ct(S.value, v.value)) {
4589
+ h("valid", !1);
4343
4590
  return;
4344
4591
  }
4345
- t = !Ot(h.value + "-01");
4592
+ t = !Ht(S.value + "-01");
4346
4593
  } else if (v.value === "week") {
4347
- if (!rt(h.value, v.value)) {
4348
- B("valid", !1);
4594
+ if (!ct(S.value, v.value)) {
4595
+ h("valid", !1);
4349
4596
  return;
4350
4597
  }
4351
4598
  t = !0;
4352
4599
  }
4353
- B("valid", t);
4600
+ h("valid", t);
4354
4601
  }, Va = (t) => {
4355
- B("valid", t);
4356
- }, Xt = (t, l) => {
4602
+ h("valid", t);
4603
+ }, Ta = (t) => {
4604
+ h("month-changed", t);
4605
+ }, ea = (t, l) => {
4357
4606
  if (!t || !(t instanceof Date))
4358
4607
  return t || "";
4359
4608
  if (l === "date")
4360
- return ot(t);
4609
+ return dt(t);
4361
4610
  if (l === "time") {
4362
- const n = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), d = String(t.getSeconds()).padStart(2, "0");
4363
- return `${n}:${r}:${d}`;
4611
+ const n = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
4612
+ return `${n}:${r}:${s}`;
4364
4613
  } else if (l === "datetime-local") {
4365
- const n = ot(t), r = String(t.getHours()).padStart(2, "0"), d = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
4366
- return `${n}T${r}:${d}:${s}`;
4614
+ const n = dt(t), r = String(t.getHours()).padStart(2, "0"), s = String(t.getMinutes()).padStart(2, "0"), d = String(t.getSeconds()).padStart(2, "0");
4615
+ return `${n}T${r}:${s}:${d}`;
4367
4616
  } else if (l === "month") {
4368
4617
  const n = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0");
4369
4618
  return `${n}-${r}`;
4370
4619
  } else if (l === "week")
4371
- return ot(t);
4620
+ return dt(t);
4372
4621
  return "";
4373
- }, Ta = a(() => {
4374
- if (!L.value)
4375
- return Xt(_e.value, v.value);
4376
- }), o = a(() => {
4377
- if (!L.value)
4378
- return Xt(ee.value, v.value);
4379
- }), b = a(() => !0), ke = (t) => {
4622
+ }, o = a(() => {
4623
+ if (!F.value)
4624
+ return ea(Ue.value, v.value);
4625
+ }), m = a(() => {
4626
+ if (!F.value)
4627
+ return ea(ve.value, v.value);
4628
+ }), Re = a(() => !0), nt = (t) => {
4380
4629
  let l = "";
4381
4630
  if (!t)
4382
4631
  l = "";
4383
- else if (Se.value && typeof t == "object" && !(t instanceof Date)) {
4632
+ else if (Be.value && typeof t == "object" && !(t instanceof Date)) {
4384
4633
  if (t.startDate === null && t.endDate === null)
4385
4634
  l = "";
4386
4635
  else if (t.startDate || t.endDate) {
4387
4636
  const r = {
4388
4637
  // Converter startDate para string ISO se existir
4389
- startDate: t.startDate ? ot(t.startDate) : null,
4638
+ startDate: t.startDate ? dt(t.startDate) : null,
4390
4639
  // Converter endDate para string ISO se existir
4391
- endDate: t.endDate ? ot(t.endDate) : null
4640
+ endDate: t.endDate ? dt(t.endDate) : null
4392
4641
  };
4393
4642
  l = JSON.stringify(r);
4394
4643
  }
4395
4644
  } else
4396
- v.value === "date" ? t instanceof Date ? l = ot(t) : typeof t == "string" && (l = t) : (v.value === "month" || v.value === "time" || v.value === "datetime-local" || v.value === "week") && (l = typeof t == "string" ? t : "");
4397
- pt = !0, m.value = l;
4398
- const n = l ? Ct(l, v.value) : "";
4399
- R.value = n, g.value = n;
4400
- }, Je = () => {
4401
- if (!L.value) {
4402
- m.value = R.value;
4645
+ 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, k.value = l;
4647
+ const n = l ? ue(l, v.value) : "";
4648
+ E.value = n, Z.value = n;
4649
+ }, ka = () => {
4650
+ if (!F.value) {
4651
+ k.value = E.value;
4403
4652
  return;
4404
4653
  }
4405
- me = !0;
4406
- const t = F.value ? {
4407
- start: F.value.selectionStart,
4408
- end: F.value.selectionEnd
4409
- } : null, l = R.value.trim();
4654
+ Ae = !0;
4655
+ const t = P.value ? {
4656
+ start: P.value.selectionStart,
4657
+ end: P.value.selectionEnd
4658
+ } : null, l = E.value.trim();
4410
4659
  if (!l || l.length === 0) {
4411
- pt = !0, m.value = "", R.value = "", g.value = "", setTimeout(() => {
4412
- me = !1;
4660
+ mt = !0, k.value = "", E.value = "", Z.value = "", setTimeout(() => {
4661
+ Ae = !1;
4413
4662
  }, 50);
4414
4663
  return;
4415
4664
  }
4416
4665
  if (v.value === "date") {
4417
- const r = Se.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}$/;
4418
- if (Se.value) {
4666
+ const r = Be.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 (Be.value) {
4419
4668
  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)) {
4420
- R.value = g.value, t && F.value && aa(() => {
4421
- const d = Math.min(t.start, g.value.length);
4422
- F.value.setSelectionRange(d, d);
4669
+ E.value = Z.value, t && P.value && la(() => {
4670
+ const s = Math.min(t.start, Z.value.length);
4671
+ P.value.setSelectionRange(s, s);
4423
4672
  }), setTimeout(() => {
4424
- me = !1;
4673
+ Ae = !1;
4425
4674
  }, 50);
4426
4675
  return;
4427
4676
  }
4428
4677
  if (!r.test(l) && l.length <= 23) {
4429
4678
  setTimeout(() => {
4430
- me = !1;
4679
+ Ae = !1;
4431
4680
  }, 50);
4432
4681
  return;
4433
4682
  }
4434
4683
  } else {
4435
4684
  if (l.length > 10 && !r.test(l)) {
4436
- R.value = g.value, t && F.value && aa(() => {
4437
- const d = Math.min(t.start, g.value.length);
4438
- F.value.setSelectionRange(d, d);
4685
+ E.value = Z.value, t && P.value && la(() => {
4686
+ const s = Math.min(t.start, Z.value.length);
4687
+ P.value.setSelectionRange(s, s);
4439
4688
  }), setTimeout(() => {
4440
- me = !1;
4689
+ Ae = !1;
4441
4690
  }, 50);
4442
4691
  return;
4443
4692
  }
4444
4693
  if (!r.test(l) && l.length <= 10) {
4445
4694
  setTimeout(() => {
4446
- me = !1;
4695
+ Ae = !1;
4447
4696
  }, 50);
4448
4697
  return;
4449
4698
  }
@@ -4451,156 +4700,165 @@ const an = ["id"], ln = ["for"], nn = {
4451
4700
  }
4452
4701
  let n = null;
4453
4702
  if (v.value === "date")
4454
- if (Se.value)
4703
+ if (Be.value)
4455
4704
  if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
4456
- if (n = Vt(l, v.value), n && n !== m.value)
4457
- pt = !0, m.value = n, g.value = l;
4705
+ if (n = ut(l, v.value), n && n !== k.value)
4706
+ mt = !0, k.value = n, Z.value = l;
4458
4707
  else {
4459
4708
  setTimeout(() => {
4460
- me = !1;
4709
+ Ae = !1;
4461
4710
  }, 50);
4462
4711
  return;
4463
4712
  }
4464
4713
  else if (l.includes("-")) {
4465
- const d = l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
4466
- if (d) {
4467
- const s = d[1], c = Vt(s, v.value);
4468
- if (c) {
4469
- const y = JSON.stringify({ startDate: c, endDate: null });
4470
- y !== m.value && (pt = !0, m.value = y, g.value = l);
4714
+ const s = l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
4715
+ if (s) {
4716
+ const d = s[1], f = ut(d, v.value);
4717
+ if (f) {
4718
+ const p = JSON.stringify({ startDate: f, endDate: null });
4719
+ p !== k.value && (mt = !0, k.value = p, Z.value = l);
4471
4720
  } else {
4472
- g.value = l, setTimeout(() => {
4473
- me = !1;
4721
+ Z.value = l, setTimeout(() => {
4722
+ Ae = !1;
4474
4723
  }, 50);
4475
4724
  return;
4476
4725
  }
4477
4726
  } else {
4478
- g.value = l, setTimeout(() => {
4479
- me = !1;
4727
+ Z.value = l, setTimeout(() => {
4728
+ Ae = !1;
4480
4729
  }, 50);
4481
4730
  return;
4482
4731
  }
4483
4732
  } else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
4484
- if (n = Vt(l, v.value), n) {
4485
- const s = JSON.stringify({ startDate: n, endDate: null });
4486
- s !== m.value && (pt = !0, m.value = s, g.value = l);
4733
+ if (n = ut(l, v.value), n) {
4734
+ const d = JSON.stringify({ startDate: n, endDate: null });
4735
+ d !== k.value && (mt = !0, k.value = d, Z.value = l);
4487
4736
  } else {
4488
- g.value = l, setTimeout(() => {
4489
- me = !1;
4737
+ Z.value = l, setTimeout(() => {
4738
+ Ae = !1;
4490
4739
  }, 50);
4491
4740
  return;
4492
4741
  }
4493
4742
  else {
4494
- g.value = l, setTimeout(() => {
4495
- me = !1;
4743
+ Z.value = l, setTimeout(() => {
4744
+ Ae = !1;
4496
4745
  }, 50);
4497
4746
  return;
4498
4747
  }
4499
4748
  else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
4500
- n = Vt(l, v.value), n && n !== m.value && (pt = !0, m.value = n, g.value = l);
4749
+ n = ut(l, v.value), n && n !== k.value && (mt = !0, k.value = n, Z.value = l);
4501
4750
  else {
4502
4751
  setTimeout(() => {
4503
- me = !1;
4752
+ Ae = !1;
4504
4753
  }, 50);
4505
4754
  return;
4506
4755
  }
4507
4756
  else
4508
- n = Vt(l, v.value), n && n !== m.value && (pt = !0, m.value = n, g.value = l);
4757
+ n = ut(l, v.value), n && n !== k.value && (mt = !0, k.value = n, Z.value = l);
4509
4758
  setTimeout(() => {
4510
- me = !1;
4759
+ Ae = !1;
4511
4760
  }, 50);
4512
- }, ka = (t) => {
4513
- }, ea = (t) => {
4514
- var d;
4515
- if (!j.value || !E.value || !F.value)
4761
+ }, Ba = (t) => {
4762
+ h("changed-complete", t), h("current-value-complete", t);
4763
+ }, ta = (t) => {
4764
+ var s;
4765
+ if (!ne.value || !U.value || !P.value)
4516
4766
  return;
4517
- const l = t.target, n = (d = F.value) == null ? void 0 : d.closest(".nb-wrapper");
4518
- if (E.value && E.value.contains(l) || n && (l === n || n.contains(l)) || E.value && E.value.contains(l))
4767
+ const l = t.target, n = (s = P.value) == null ? void 0 : s.closest(".nb-wrapper");
4768
+ if (U.value && U.value.contains(l) || n && (l === n || n.contains(l)) || U.value && U.value.contains(l))
4519
4769
  return;
4520
4770
  let r = l;
4521
4771
  for (; r && r !== document.body; ) {
4522
- if (r === E.value || E.value && E.value.contains(r))
4772
+ if (r === U.value || U.value && U.value.contains(r))
4523
4773
  return;
4524
4774
  r = r.parentElement;
4525
4775
  }
4526
4776
  setTimeout(() => {
4527
- if (!j.value || !E.value || E.value && E.value.contains(l))
4777
+ if (!ne.value || !U.value || U.value && U.value.contains(l))
4528
4778
  return;
4529
4779
  for (r = l; r && r !== document.body; ) {
4530
- if (r === E.value || E.value && E.value.contains(r))
4780
+ if (r === U.value || U.value && U.value.contains(r))
4531
4781
  return;
4532
4782
  r = r.parentElement;
4533
4783
  }
4534
4784
  if (!document.body.contains(l))
4535
4785
  return;
4536
- const s = F.value && (l === F.value || F.value.contains(l)), c = n && (l === n || n.contains(l));
4537
- !s && !c && (j.value = !1, (!R.value || R.value.trim().length === 0) && (lt.value = !1));
4786
+ 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) && (we.value = !1));
4538
4788
  }, 50);
4539
- }, $a = () => {
4540
- j.value && L.value && wt();
4541
4789
  }, wa = () => {
4542
- j.value && L.value && (j.value = !1);
4790
+ ne.value && F.value && wt();
4791
+ }, Da = () => {
4792
+ ne.value && F.value && (ne.value = !1);
4543
4793
  };
4544
- let Wt = null, ta = null, Ht = { top: 0, left: 0 };
4545
- const Da = () => {
4546
- if (!j.value || !L.value || !F.value)
4794
+ let Wt = null, aa = null, qt = { top: 0, left: 0 };
4795
+ const Ra = () => {
4796
+ if (!ne.value || !F.value || !P.value)
4547
4797
  return;
4548
- const t = 4, l = F.value.getBoundingClientRect(), n = `${l.bottom + t}px`, r = `${l.left}px`;
4549
- (Ht.top !== n || Ht.left !== r) && (Ht.top = n, Ht.left = r, At.value = {
4798
+ const t = 4, l = P.value.getBoundingClientRect(), n = `${l.bottom + t}px`, r = `${l.left}px`;
4799
+ (qt.top !== n || qt.left !== r) && (qt.top = n, qt.left = r, At.value = {
4550
4800
  top: n,
4551
4801
  left: r
4552
- }), ta = requestAnimationFrame(Da);
4553
- }, Ia = () => {
4554
- if (!F.value || !L.value)
4802
+ }), aa = requestAnimationFrame(Ra);
4803
+ }, _a = () => {
4804
+ if (!P.value || !F.value)
4555
4805
  return;
4556
- Ht = { top: 0, left: 0 }, Da(), Wt = new ResizeObserver(() => {
4557
- j.value && wt();
4558
- }), Wt.observe(F.value);
4559
- const t = F.value.closest(".component");
4806
+ qt = { top: 0, left: 0 }, Ra(), Wt = new ResizeObserver(() => {
4807
+ ne.value && wt();
4808
+ }), Wt.observe(P.value);
4809
+ const t = P.value.closest(".component");
4560
4810
  t && Wt.observe(t);
4561
- }, Ra = () => {
4562
- ta !== null && (cancelAnimationFrame(ta), ta = null), Wt && (Wt.disconnect(), Wt = null);
4811
+ }, Ma = () => {
4812
+ aa !== null && (cancelAnimationFrame(aa), aa = null), Wt && (Wt.disconnect(), Wt = null);
4563
4813
  };
4564
- G(j, (t) => {
4565
- t && L.value ? aa(() => {
4566
- Ia();
4567
- }) : Ra();
4568
- }), La(() => {
4814
+ re(ne, (t) => {
4815
+ t && F.value ? la(() => {
4816
+ _a();
4817
+ }) : Ma();
4818
+ }), Aa(() => {
4569
4819
  var l;
4570
- let t = h.value;
4820
+ let t = S.value;
4571
4821
  if (v.value === "date")
4572
- t = _t(h.value);
4822
+ t = _t(S.value);
4573
4823
  else if (v.value === "datetime-local")
4574
- if (h.value === null || h.value === void 0 || h.value === "")
4824
+ if (S.value === null || S.value === void 0 || S.value === "")
4575
4825
  t = "";
4576
- else if (typeof h.value == "string") {
4826
+ else if (typeof S.value == "string") {
4577
4827
  const n = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/, r = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/;
4578
- if (n.test(h.value))
4579
- t = h.value;
4580
- else if (r.test(h.value)) {
4581
- const d = new Date(h.value);
4582
- if (isNaN(d.getTime()))
4828
+ if (n.test(S.value))
4829
+ t = S.value;
4830
+ else if (r.test(S.value)) {
4831
+ const s = new Date(S.value);
4832
+ if (isNaN(s.getTime()))
4583
4833
  t = "";
4584
4834
  else {
4585
- const s = d.getFullYear(), c = String(d.getMonth() + 1).padStart(2, "0"), y = String(d.getDate()).padStart(2, "0"), V = String(d.getHours()).padStart(2, "0"), k = String(d.getMinutes()).padStart(2, "0"), M = String(d.getSeconds()).padStart(2, "0"), O = ((l = h.value.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
4586
- t = O.includes(":") && O.split(":").length >= 3 ? `${s}-${c}-${y}T${V}:${k}:${M}` : `${s}-${c}-${y}T${V}:${k}`;
4835
+ const d = s.getFullYear(), f = String(s.getMonth() + 1).padStart(2, "0"), p = String(s.getDate()).padStart(2, "0"), C = String(s.getHours()).padStart(2, "0"), B = 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${C}:${B}:${W}` : `${d}-${f}-${p}T${C}:${B}`;
4587
4837
  }
4588
4838
  } else
4589
4839
  t = "";
4590
4840
  } else
4591
4841
  t = "";
4592
- m.value = t, R.value = Ct(h.value, v.value), document.addEventListener("click", ea, !1), window.addEventListener("scroll", $a, { capture: !0, passive: !0 }), window.addEventListener("resize", wa), aa(() => {
4593
- zt();
4842
+ k.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
+ It();
4594
4844
  });
4595
- }), Pa(() => {
4596
- Qt(), Ra(), document.removeEventListener("click", ea), window.removeEventListener("scroll", $a, { capture: !0, passive: !0 }), window.removeEventListener("resize", wa);
4597
- }), G(v, (t) => {
4598
- St.value = t;
4599
- }, { immediate: !0 }), G(tt, () => {
4600
- m.value && L.value && (R.value = Ct(m.value, v.value));
4601
- }), G(h, (t) => {
4845
+ }), Ya(() => {
4846
+ Jt(), Ma(), document.removeEventListener("click", ta), window.removeEventListener("scroll", wa, { capture: !0, passive: !0 }), window.removeEventListener("resize", Da);
4847
+ }), re(v, (t) => {
4848
+ Y.value = t;
4849
+ }, { immediate: !0 }), re(ot, () => {
4850
+ k.value && F.value && (E.value = ue(k.value, v.value));
4851
+ });
4852
+ const Ha = (t) => dn(t, {
4853
+ inputType: v.value,
4854
+ hasSeconds: M.hasSeconds,
4855
+ allowRange: Be.value,
4856
+ timezoneFormat: M.calendarIsoStringTimezoneFormat,
4857
+ locale: M.calendarLocale
4858
+ });
4859
+ re(S, (t) => {
4602
4860
  var l;
4603
- if (t !== m.value) {
4861
+ if (t !== k.value) {
4604
4862
  let n = t;
4605
4863
  if (v.value === "date")
4606
4864
  n = _t(t);
@@ -4608,161 +4866,163 @@ const an = ["id"], ln = ["for"], nn = {
4608
4866
  if (t == null || t === "")
4609
4867
  n = "";
4610
4868
  else if (typeof t == "string") {
4611
- const d = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/, s = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/;
4869
+ const d = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/, f = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?)(?:Z|[+-]\d{2}:\d{2})?$/;
4612
4870
  if (d.test(t))
4613
4871
  n = t;
4614
- else if (s.test(t)) {
4615
- const c = new Date(t);
4616
- if (isNaN(c.getTime()))
4872
+ else if (f.test(t)) {
4873
+ const p = new Date(t);
4874
+ if (isNaN(p.getTime()))
4617
4875
  n = "";
4618
4876
  else {
4619
- const y = c.getFullYear(), V = String(c.getMonth() + 1).padStart(2, "0"), k = String(c.getDate()).padStart(2, "0"), M = String(c.getHours()).padStart(2, "0"), O = String(c.getMinutes()).padStart(2, "0"), Me = String(c.getSeconds()).padStart(2, "0"), Xe = ((l = t.split("T")[1]) == null ? void 0 : l.split(/[Z+-]/)[0]) || "";
4620
- n = Xe.includes(":") && Xe.split(":").length >= 3 ? `${y}-${V}-${k}T${M}:${O}:${Me}` : `${y}-${V}-${k}T${M}:${O}`;
4877
+ const C = p.getFullYear(), B = 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 ? `${C}-${B}-${W}T${J}:${Me}:${ft}` : `${C}-${B}-${W}T${J}:${Me}`;
4621
4879
  }
4622
4880
  } else
4623
4881
  n = "";
4624
4882
  } else
4625
4883
  n = "";
4626
- m.value = n;
4627
- const r = Ct(t, v.value);
4628
- R.value = r, aa(() => {
4629
- zt();
4630
- }), g.value = r;
4884
+ k.value = n;
4885
+ const r = ue(t, v.value);
4886
+ E.value = r, la(() => {
4887
+ It();
4888
+ }), Z.value = r;
4889
+ const s = Ha(n);
4890
+ s && (h("changed-complete", s), h("current-value-complete", s));
4631
4891
  }
4632
4892
  }, { immediate: !0 });
4633
- let me = !1;
4634
- const Ea = () => {
4635
- me = !0, setTimeout(() => {
4636
- me = !1;
4893
+ let Ae = !1;
4894
+ const qa = () => {
4895
+ Ae = !0, setTimeout(() => {
4896
+ Ae = !1;
4637
4897
  }, 100);
4638
4898
  };
4639
- let pt = !1;
4640
- return G(() => m.value, (t) => {
4641
- if (L.value && !pt && !me) {
4642
- const l = Ct(t, v.value);
4643
- l !== R.value && (R.value = l, g.value = l);
4899
+ let mt = !1;
4900
+ return re(() => k.value, (t) => {
4901
+ if (F.value && !mt && !Ae) {
4902
+ const l = ue(t, v.value);
4903
+ l !== E.value && (E.value = l, Z.value = l);
4644
4904
  }
4645
- pt = !1;
4646
- }), G(m, (t) => {
4647
- if (Z.value && (t = t.trim()), Se.value && typeof t == "string" && t.startsWith("{"))
4905
+ mt = !1;
4906
+ }), re(k, (t) => {
4907
+ if (se.value && (t = t.trim()), Be.value && typeof t == "string" && t.startsWith("{"))
4648
4908
  try {
4649
4909
  const l = JSON.parse(t);
4650
4910
  if (l && (l.startDate || l.endDate)) {
4651
- const n = (s) => {
4652
- if (!s)
4911
+ const n = (d) => {
4912
+ if (!d)
4653
4913
  return null;
4654
- if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
4655
- const [c, y, V] = s.split("-").map(Number);
4656
- return new Date(c, y - 1, V);
4914
+ if (/^\d{4}-\d{2}-\d{2}$/.test(d)) {
4915
+ const [f, p, C] = d.split("-").map(Number);
4916
+ return new Date(f, p - 1, C);
4657
4917
  }
4658
- return new Date(s);
4659
- }, r = l.startDate ? n(l.startDate) : null, d = l.endDate ? n(l.endDate) : null;
4660
- B("changed", { startDate: r, endDate: d });
4918
+ return new Date(d);
4919
+ }, r = l.startDate ? n(l.startDate) : null, s = l.endDate ? n(l.endDate) : null;
4920
+ h("changed", { startDate: r, endDate: s });
4661
4921
  return;
4662
4922
  }
4663
4923
  } catch {
4664
4924
  }
4665
- B("changed", t);
4666
- }), G(lt, (t) => {
4667
- B(t ? "focused" : "blurred");
4668
- }), G(m, (t) => {
4669
- Z.value && (t = t.trim()), B("current-value", t), aa(() => {
4670
- zt();
4925
+ h("changed", t);
4926
+ }), re(we, (t) => {
4927
+ h(t ? "focused" : "blurred");
4928
+ }), re(k, (t) => {
4929
+ se.value && (t = t.trim()), h("current-value", t), la(() => {
4930
+ It();
4671
4931
  });
4672
- }), G([_e, ee], () => {
4673
- aa(() => {
4674
- zt();
4932
+ }), re([Ue, ve], () => {
4933
+ la(() => {
4934
+ It();
4675
4935
  });
4676
- }), (t, l) => u(Le) ? (W(), P("div", Aa({
4936
+ }), (t, l) => u(Q) ? (O(), K("div", $a({
4677
4937
  key: 0,
4678
4938
  class: ["nb-wrapper", Tt.value],
4679
- style: [kt.value, Yt.value, It.value],
4939
+ style: [$t.value, Gt.value, Nt.value],
4680
4940
  role: "input"
4681
- }, Te.value), [
4682
- ve("div", {
4683
- id: u(Le),
4684
- class: Ee(["nb-reset", "component", ca.value, Gt.value, fa.value, sa.value]),
4685
- style: Be([A.value, Yt.value, It.value]),
4941
+ }, i.value), [
4942
+ Ce("div", {
4943
+ id: u(Q),
4944
+ class: Ye(["nb-reset", "component", fa.value, Kt.value, va.value, da.value]),
4945
+ style: Ne([z.value, Gt.value, Nt.value]),
4686
4946
  onClick: ga
4687
4947
  }, [
4688
- u(We) ? (W(), P("label", {
4948
+ u(Ie) ? (O(), K("label", {
4689
4949
  key: 0,
4690
- for: f.value,
4950
+ for: Ft.value,
4691
4951
  class: "component__label",
4692
- style: Be([pa.value]),
4952
+ style: Ne([lt.value]),
4693
4953
  onClick: ya
4694
4954
  }, [
4695
- qt(Dt(u(p)), 1),
4696
- u(ft) ? (W(), P("span", nn, "*")) : oe("", !0)
4697
- ], 12, ln)) : oe("", !0),
4698
- za(ve("input", {
4955
+ jt(Dt(u(b)), 1),
4956
+ u(Vt) ? (O(), K("span", vn, "*")) : ye("", !0)
4957
+ ], 12, fn)) : ye("", !0),
4958
+ Pa(Ce("input", {
4699
4959
  ref_key: "inputRef",
4700
- ref: F,
4701
- "onUpdate:modelValue": l[0] || (l[0] = (n) => R.value = n),
4702
- onInput: Je,
4960
+ ref: P,
4961
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => E.value = n),
4962
+ onInput: ka,
4703
4963
  onKeydown: [
4704
- Ea,
4705
- l[1] || (l[1] = la((n) => !u(N) && u(Ne) && ba(), ["enter"]))
4964
+ qa,
4965
+ l[1] || (l[1] = na((n) => !u($) && u(D) && ba(), ["enter"]))
4706
4966
  ],
4707
- id: f.value,
4708
- name: f.value,
4709
- type: L.value ? "text" : St.value,
4710
- class: Ee(["component__input", [
4711
- Kt.value,
4712
- da.value,
4713
- i.value
4967
+ id: Ft.value,
4968
+ name: Ft.value,
4969
+ type: F.value ? "text" : Y.value,
4970
+ class: Ye(["component__input", [
4971
+ pa.value,
4972
+ ca.value,
4973
+ pe.value
4714
4974
  ]]),
4715
- placeholder: w.value,
4716
- disabled: u(N) || u(I),
4717
- required: u(ft),
4718
- readonly: b.value,
4975
+ placeholder: c.value,
4976
+ disabled: u($) || u(j),
4977
+ required: u(Vt),
4978
+ readonly: Re.value,
4719
4979
  autocomplete: e.inputAutocomplete,
4720
- min: Ta.value,
4721
- max: o.value,
4722
- step: L.value ? void 0 : u(ut),
4723
- tabindex: u(N) || u(I) ? -1 : u(Lt),
4980
+ min: o.value,
4981
+ max: m.value,
4982
+ step: F.value ? void 0 : u(vt),
4983
+ tabindex: u($) || u(j) ? -1 : u(Bt),
4724
4984
  role: "input",
4725
- style: Be([It.value]),
4985
+ style: Ne([Nt.value]),
4726
4986
  onFocus: Sa,
4727
4987
  onBlur: xa,
4728
4988
  onClick: Ca,
4729
4989
  onPaste: ma
4730
- }, null, 46, on), [
4731
- [fl, R.value]
4990
+ }, null, 46, pn), [
4991
+ [bl, E.value]
4732
4992
  ])
4733
- ], 14, an),
4734
- Ve.value ? (W(), P("div", {
4993
+ ], 14, cn),
4994
+ Zt.value ? (O(), K("div", {
4735
4995
  key: 0,
4736
- class: Ee(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
4996
+ class: Ye(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
4737
4997
  }, [
4738
- Ba(t.$slots, "message", {}, () => [
4739
- qt(Dt(e.message), 1)
4998
+ La(t.$slots, "message", {}, () => [
4999
+ jt(Dt(e.message), 1)
4740
5000
  ], !0)
4741
- ], 2)) : oe("", !0),
4742
- (W(), Sl(xl, { to: "body" }, [
4743
- L.value && j.value ? (W(), P("div", {
5001
+ ], 2)) : ye("", !0),
5002
+ (O(), Ll(Al, { to: "body" }, [
5003
+ F.value && ne.value ? (O(), K("div", {
4744
5004
  key: 0,
4745
5005
  ref_key: "calendarRef",
4746
- ref: E,
5006
+ ref: U,
4747
5007
  class: "datepicker__custom-calendar-wrapper",
4748
- style: Be(ha.value),
4749
- onClick: l[4] || (l[4] = Ma((n) => xt.value = !0, ["stop"])),
4750
- onMousedown: l[5] || (l[5] = Ma((n) => xt.value = !0, ["stop"]))
5008
+ style: Ne(ha.value),
5009
+ onClick: l[4] || (l[4] = Ia((n) => R.value = !0, ["stop"])),
5010
+ onMousedown: l[5] || (l[5] = Ia((n) => R.value = !0, ["stop"]))
4751
5011
  }, [
4752
- Cl(u(C), {
4753
- "nb-id": `${u(Le)}-calendar`,
4754
- value: fe.value,
5012
+ $l(u(g), {
5013
+ "nb-id": `${u(Q)}-calendar`,
5014
+ value: Lt.value,
4755
5015
  "input-type": u(v),
4756
- "has-seconds": nt.value,
4757
- min: u(_e),
4758
- max: u(ee),
4759
- step: u(ut),
4760
- disabled: u(N),
4761
- width: Ce.value,
4762
- locale: u(tt),
4763
- theme: u(we),
4764
- "allow-range": u(Se),
4765
- "block-clicks-without-events": u(yt),
5016
+ "has-seconds": De.value,
5017
+ min: u(Ue),
5018
+ max: u(ve),
5019
+ step: u(vt),
5020
+ disabled: u($),
5021
+ width: Et.value,
5022
+ locale: u(ot),
5023
+ theme: u(ze),
5024
+ "allow-range": u(Be),
5025
+ "block-clicks-without-events": u(St),
4766
5026
  "font-family": e.calendarFontFamily,
4767
5027
  "font-size": e.calendarFontSize,
4768
5028
  "font-weight": e.calendarFontWeight,
@@ -4820,32 +5080,34 @@ const an = ["id"], ln = ["for"], nn = {
4820
5080
  "time-display-label-text": e.calendarTimeDisplayLabelText,
4821
5081
  "clear-button-title": e.calendarClearButtonTitle,
4822
5082
  "clear-button-symbol": e.calendarClearButtonSymbol,
4823
- onChanged: ke,
4824
- onDateSelected: ka,
5083
+ "iso-string-timezone-format": e.calendarIsoStringTimezoneFormat,
5084
+ onChanged: nt,
5085
+ onDateSelected: Ba,
5086
+ onMonthChanged: Ta,
4825
5087
  onValid: Va,
4826
- onMousedown: l[2] || (l[2] = (n) => xt.value = !0),
4827
- onClick: l[3] || (l[3] = (n) => xt.value = !0)
4828
- }, 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"])
4829
- ], 36)) : oe("", !0)
5088
+ onMousedown: l[2] || (l[2] = (n) => R.value = !0),
5089
+ onClick: l[3] || (l[3] = (n) => R.value = !0)
5090
+ }, 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)
4830
5092
  ]))
4831
- ], 16)) : oe("", !0);
5093
+ ], 16)) : ye("", !0);
4832
5094
  }
4833
- }), un = /* @__PURE__ */ Wa(rn, [["__scopeId", "data-v-158ccd7c"]]), sl = {
4834
- NbInputRadio: Ll,
4835
- NbInputCheckbox: Rl,
4836
- NbInput: Ol,
4837
- NbInputChip: Kl,
4838
- NbTextarea: tn,
4839
- NbDatePicker: un
4840
- }, dn = {
5095
+ }), yn = /* @__PURE__ */ Oa(gn, [["__scopeId", "data-v-8c15f0f4"]]), vl = {
5096
+ NbInputRadio: Nl,
5097
+ NbInputCheckbox: El,
5098
+ NbInput: Kl,
5099
+ NbInputChip: an,
5100
+ NbTextarea: sn,
5101
+ NbDatePicker: yn
5102
+ }, mn = {
4841
5103
  install(e) {
4842
- for (const S in sl)
4843
- if (Object.prototype.hasOwnProperty.call(sl, S)) {
4844
- const C = sl[S];
4845
- e.component(C.name, C);
5104
+ for (const y in vl)
5105
+ if (Object.prototype.hasOwnProperty.call(vl, y)) {
5106
+ const g = vl[y];
5107
+ e.component(g.name, g);
4846
5108
  }
4847
5109
  }
4848
5110
  };
4849
5111
  export {
4850
- dn as default
5112
+ mn as default
4851
5113
  };