@vlalg-nimbus/nb-inputs 9.0.0 → 9.1.0

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