@vlalg-nimbus/nb-inputs 8.0.14 → 8.0.16

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 fa, onMounted as sa, ref as J, toRefs as va, computed as a, watch as U, openBlock as O, createElementBlock as j, normalizeClass as We, normalizeStyle as Ee, createElementVNode as ve, mergeProps as da, Fragment as qa, renderList as ja, unref as n, withDirectives as pa, vModelRadio as al, withKeys as jt, withModifiers as ca, toDisplayString as St, createCommentVNode as Be, vModelCheckbox as ll, onUnmounted as ma, renderSlot as ia, createTextVNode as ga, vModelDynamic as Ha, vModelText as Ua, defineAsyncComponent as nl, nextTick as ya, createBlock as ol, Teleport as ul, createVNode as rl } from "vue";
1
+ import { useCssVars as fa, onMounted as sa, ref as J, toRefs as va, computed as a, watch as H, openBlock as F, createElementBlock as q, normalizeClass as We, normalizeStyle as Ee, createElementVNode as ve, mergeProps as da, Fragment as qa, renderList as ja, unref as o, withDirectives as pa, vModelRadio as nl, withKeys as qt, withModifiers as ca, toDisplayString as Ct, createCommentVNode as Be, vModelCheckbox as ol, onUnmounted as ma, renderSlot as ia, createTextVNode as ga, vModelDynamic as Ha, vModelText as Ua, defineAsyncComponent as ul, nextTick as ya, createBlock as rl, Teleport as il, createVNode as sl } from "vue";
2
2
  const ba = (e, m) => {
3
3
  const C = e.__vccOpts || e;
4
- for (const [P, N] of m)
5
- C[P] = N;
4
+ for (const [E, D] of m)
5
+ C[E] = D;
6
6
  return C;
7
- }, il = ["id"], sl = ["id", "disabled", "value", "name"], dl = ["for", "tabindex"], cl = /* @__PURE__ */ Object.assign({
7
+ }, dl = ["id"], cl = ["id", "disabled", "value", "name"], fl = ["for", "tabindex"], vl = /* @__PURE__ */ Object.assign({
8
8
  name: "NbInputRadio",
9
9
  inheritAttrs: !1
10
10
  }, {
@@ -58,8 +58,8 @@ const ba = (e, m) => {
58
58
  return !1;
59
59
  let m = !1;
60
60
  for (const C of e) {
61
- const P = Object.keys(C);
62
- P.length !== 2 && (m = !0), P.every((Ve) => ["value", "text"].includes(Ve)) || (m = !0);
61
+ const E = Object.keys(C);
62
+ E.length !== 2 && (m = !0), E.every((Ve) => ["value", "text"].includes(Ve)) || (m = !0);
63
63
  }
64
64
  if (!m)
65
65
  return e;
@@ -157,17 +157,17 @@ const ba = (e, m) => {
157
157
  "50426c15": ct.value,
158
158
  "5fa7628c": dt.value,
159
159
  "5949c3d2": Te.value,
160
- 91322790: Xe.value,
161
- "6750fc92": lt.value,
162
- "8c592938": gt.value,
160
+ 91322790: Qe.value,
161
+ "6750fc92": tt.value,
162
+ "8c592938": bt.value,
163
163
  c11d4680: st.value,
164
- "35b74fa6": nt.value,
164
+ "35b74fa6": at.value,
165
165
  "7dd5f889": Se.value,
166
- "5cb21b36": yt.value
166
+ "5cb21b36": gt.value
167
167
  })), sa(() => {
168
- Ze();
168
+ Je();
169
169
  });
170
- const C = m, P = e, N = J(null), {
170
+ const C = m, E = e, D = J(null), {
171
171
  ariaLabel: Ve,
172
172
  ariaAttrs: pe,
173
173
  currentOption: Ae,
@@ -175,23 +175,23 @@ const ba = (e, m) => {
175
175
  display: se,
176
176
  options: X,
177
177
  theme: Pe,
178
- lightTextColor: _e,
178
+ lightTextColor: $e,
179
179
  lightColor: ne,
180
- lightColorHover: G,
181
- darkTextColor: R,
180
+ lightColorHover: U,
181
+ darkTextColor: w,
182
182
  darkColor: oe,
183
183
  darkColorHover: de,
184
- hoverEffect: K,
184
+ hoverEffect: G,
185
185
  activeHoverEffect: Le,
186
186
  itemGap: ce,
187
- internalGap: F,
187
+ internalGap: P,
188
188
  scale: be,
189
189
  disabled: Z,
190
190
  fontFamily: Ce,
191
191
  fontSize: ge,
192
192
  fontWeight: xe
193
- } = va(P), _ = a(() => {
194
- const y = Z.value ? "component-disabled" : "", V = se.value !== "b" ? "inline-block" : "block", ue = Ce.value ? Ce.value : "'Lato', sans-serif", ee = ge.value ? ge.value : "1.6em", me = xe.value !== 0 && !xe.value || xe.value < 0 ? 200 : xe.value, Re = [!1, !0].includes(K.value) ? K.value : !1, Ke = [!1, !0].includes(Le.value) ? Le.value : !1, re = ce.value !== 0 && !ce.value || ce.value < 0 ? 15 : ce.value, d = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, b = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value;
193
+ } = va(E), $ = a(() => {
194
+ const y = Z.value ? "component-disabled" : "", V = se.value !== "b" ? "inline-block" : "block", ue = Ce.value ? Ce.value : "'Lato', sans-serif", ee = ge.value ? ge.value : "1.6em", me = xe.value !== 0 && !xe.value || xe.value < 0 ? 200 : xe.value, Re = [!1, !0].includes(G.value) ? G.value : !1, Ke = [!1, !0].includes(Le.value) ? Le.value : !1, re = ce.value !== 0 && !ce.value || ce.value < 0 ? 15 : ce.value, d = P.value !== 0 && !P.value || P.value < 0 ? 6 : P.value, b = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value;
195
195
  return {
196
196
  disabled: y,
197
197
  display: V,
@@ -204,22 +204,22 @@ const ba = (e, m) => {
204
204
  fontSize: ee,
205
205
  fontWeight: me
206
206
  };
207
- }), L = a(() => _.value.disabled), x = a(() => ({
208
- display: _.value.display
209
- })), $e = a(() => _.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), je = a(() => {
210
- const y = _.value;
207
+ }), L = a(() => $.value.disabled), x = a(() => ({
208
+ display: $.value.display
209
+ })), _e = a(() => $.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), je = a(() => {
210
+ const y = $.value;
211
211
  return {
212
212
  fontSize: y.fontSize,
213
213
  fontWeight: y.fontWeight
214
214
  };
215
- }), we = a(() => Array.isArray(X.value) && X.value.constructor === Array && X.value.length > 0), at = a(() => Pe.value === "dark" ? "component__theme--dark" : "component__theme--light"), ye = a(() => _.value.font), lt = a(() => _e.value), gt = a(() => ne.value), Xe = a(() => _.value.hoverEffect ? G.value : ne.value), Te = a(() => _.value.activeHoverEffect ? G.value : ne.value), Se = a(() => R.value), yt = a(() => oe.value), nt = a(() => _.value.hoverEffect ? de.value : oe.value), st = a(() => _.value.activeHoverEffect ? de.value : oe.value), dt = a(() => {
216
- const V = _.value.internalGap;
215
+ }), we = a(() => Array.isArray(X.value) && X.value.constructor === Array && X.value.length > 0), et = a(() => Pe.value === "dark" ? "component__theme--dark" : "component__theme--light"), ye = a(() => $.value.font), tt = a(() => $e.value), bt = a(() => ne.value), Qe = a(() => $.value.hoverEffect ? U.value : ne.value), Te = a(() => $.value.activeHoverEffect ? U.value : ne.value), Se = a(() => w.value), gt = a(() => oe.value), at = a(() => $.value.hoverEffect ? de.value : oe.value), st = a(() => $.value.activeHoverEffect ? de.value : oe.value), dt = a(() => {
216
+ const V = $.value.internalGap;
217
217
  return !V || V < 0 ? 0 : `${V}px`;
218
218
  }), ct = a(() => {
219
- const V = _.value.itemGap;
219
+ const V = $.value.itemGap;
220
220
  return !V || V < 0 ? 0 : `${V}px`;
221
221
  }), He = a(() => ({
222
- zoom: _.value.scale
222
+ zoom: $.value.scale
223
223
  })), Ue = a(() => {
224
224
  const y = {};
225
225
  pe.value && Object.keys(pe.value).forEach((ee) => y[`aria-${ee}`] = pe.value[ee]);
@@ -231,17 +231,17 @@ const ba = (e, m) => {
231
231
  return Object.fromEntries(
232
232
  Object.entries(V).filter(([ue, ee]) => ee != null)
233
233
  );
234
- }), Ze = () => {
234
+ }), Je = () => {
235
235
  const y = Ae.value;
236
- y && ["string"].includes(ke.value) ? N.value = y.toString().toLowerCase() : N.value = y;
236
+ y && ["string"].includes(ke.value) ? D.value = y.toString().toLowerCase() : D.value = y;
237
237
  }, Ge = () => {
238
238
  C("clicked");
239
239
  };
240
- return U(Ae, (y, V) => {
241
- y !== V && Ze();
242
- }), U(N, (y, V) => {
240
+ return H(Ae, (y, V) => {
241
+ y !== V && Je();
242
+ }), H(D, (y, V) => {
243
243
  y !== V && (C("current-value", y), C("changed", y));
244
- }), (y, V) => e.nbId && we.value ? (O(), j("div", {
244
+ }), (y, V) => e.nbId && we.value ? (F(), q("div", {
245
245
  key: 0,
246
246
  class: We(["nb-wrapper", L.value]),
247
247
  style: Ee([x.value, He.value])
@@ -250,44 +250,44 @@ const ba = (e, m) => {
250
250
  id: e.nbId,
251
251
  role: "radiogroup"
252
252
  }, Ue.value, {
253
- class: ["nb-reset", "component", $e.value, at.value]
253
+ class: ["nb-reset", "component", _e.value, et.value]
254
254
  }), [
255
- (O(!0), j(qa, null, ja(n(X), (ue, ee) => (O(), j("div", {
255
+ (F(!0), q(qa, null, ja(o(X), (ue, ee) => (F(), q("div", {
256
256
  key: ee,
257
257
  class: "component-radio__item"
258
258
  }, [
259
259
  pa(ve("input", {
260
260
  id: `${e.nbId}-${ue.value}`,
261
- "onUpdate:modelValue": V[0] || (V[0] = (me) => N.value = me),
261
+ "onUpdate:modelValue": V[0] || (V[0] = (me) => D.value = me),
262
262
  type: "radio",
263
263
  class: "component-radio__item--input",
264
- disabled: n(Z),
264
+ disabled: o(Z),
265
265
  value: ue.value,
266
266
  name: e.groupName,
267
267
  onClick: Ge
268
- }, null, 8, sl), [
269
- [al, N.value]
268
+ }, null, 8, cl), [
269
+ [nl, D.value]
270
270
  ]),
271
271
  ve("label", {
272
272
  for: `${e.nbId}-${ue.value}`,
273
- tabindex: n(Z) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ee] : e.tabIndex >= 0 ? e.tabIndex : ee + 1,
273
+ tabindex: o(Z) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ee] : e.tabIndex >= 0 ? e.tabIndex : ee + 1,
274
274
  class: "component-radio__item--label",
275
275
  onKeydown: [
276
- V[1] || (V[1] = jt(ca((me) => !n(Z) && e.hasTabIndexEnter && me.target.click(), ["prevent"]), ["enter"])),
277
- V[2] || (V[2] = jt(ca((me) => !n(Z) && e.hasTabIndexSpace && me.target.click(), ["prevent"]), ["space"]))
276
+ V[1] || (V[1] = qt(ca((me) => !o(Z) && e.hasTabIndexEnter && me.target.click(), ["prevent"]), ["enter"])),
277
+ V[2] || (V[2] = qt(ca((me) => !o(Z) && e.hasTabIndexSpace && me.target.click(), ["prevent"]), ["space"]))
278
278
  ]
279
279
  }, [
280
280
  V[3] || (V[3] = ve("div", null, null, -1)),
281
281
  ve("span", {
282
282
  style: Ee([je.value])
283
- }, St(ue.text), 5)
284
- ], 40, dl)
283
+ }, Ct(ue.text), 5)
284
+ ], 40, fl)
285
285
  ]))), 128))
286
- ], 16, il)
286
+ ], 16, dl)
287
287
  ], 6)) : Be("", !0);
288
288
  }
289
- }), fl = /* @__PURE__ */ ba(cl, [["__scopeId", "data-v-a95f65ea"]]);
290
- const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabindex"], gl = /* @__PURE__ */ Object.assign({
289
+ }), pl = /* @__PURE__ */ ba(vl, [["__scopeId", "data-v-a95f65ea"]]);
290
+ const bl = ["id"], gl = ["id", "disabled", "value", "name"], yl = ["for", "tabindex"], ml = /* @__PURE__ */ Object.assign({
291
291
  name: "NbInputCheckbox",
292
292
  inheritAttrs: !1
293
293
  }, {
@@ -341,8 +341,8 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
341
341
  return !1;
342
342
  let m = !1;
343
343
  for (const C of e) {
344
- const P = Object.keys(C);
345
- P.length !== 2 && (m = !0), P.every((Ve) => ["value", "text"].includes(Ve)) || (m = !0);
344
+ const E = Object.keys(C);
345
+ E.length !== 2 && (m = !0), E.every((Ve) => ["value", "text"].includes(Ve)) || (m = !0);
346
346
  }
347
347
  if (!m)
348
348
  return e;
@@ -449,15 +449,15 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
449
449
  emits: ["current-value", "changed", "clicked"],
450
450
  setup(e, { emit: m }) {
451
451
  fa((d) => ({
452
- "49e2c63f": gt.value,
452
+ "49e2c63f": bt.value,
453
453
  "107babaa": ue.value,
454
454
  "3c7cc5ce": V.value,
455
455
  "16d311d0": y.value,
456
- "3f8b2f30": yt.value,
456
+ "3f8b2f30": gt.value,
457
457
  "53078d64": Se.value,
458
- "537834e6": nt.value,
458
+ "537834e6": at.value,
459
459
  fbc86ee4: Te.value,
460
- "517939e1": Xe.value,
460
+ "517939e1": Qe.value,
461
461
  "3faff29d": Ge.value,
462
462
  "302ecd6a": He.value,
463
463
  "8a4df060": ct.value,
@@ -467,7 +467,7 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
467
467
  })), sa(() => {
468
468
  Ke();
469
469
  });
470
- const C = m, P = e, N = J(null), {
470
+ const C = m, E = e, D = J(null), {
471
471
  ariaLabel: Ve,
472
472
  ariaAttrs: pe,
473
473
  currentOption: Ae,
@@ -475,25 +475,25 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
475
475
  options: se,
476
476
  theme: X,
477
477
  lightTextColor: Pe,
478
- lightColor: _e,
478
+ lightColor: $e,
479
479
  lightColorHover: ne,
480
- darkTextColor: G,
481
- darkColor: R,
480
+ darkTextColor: U,
481
+ darkColor: w,
482
482
  darkColorHover: oe,
483
483
  boxRadius: de,
484
- hoverEffect: K,
484
+ hoverEffect: G,
485
485
  activeHoverEffect: Le,
486
486
  itemGap: ce,
487
- internalGap: F,
487
+ internalGap: P,
488
488
  scale: be,
489
489
  type: Z,
490
490
  background: Ce,
491
491
  disabled: ge,
492
492
  fontFamily: xe,
493
- fontSize: _,
493
+ fontSize: $,
494
494
  fontWeight: L
495
- } = va(P), x = a(() => {
496
- const d = ge.value ? "component-disabled" : "", b = ke.value !== "b" ? "inline-block" : "block", fe = xe.value ? xe.value : "'Lato', sans-serif", Y = _.value ? _.value : "1.6em", te = L.value !== 0 && !L.value || L.value < 0 ? 200 : L.value, Me = de.value !== 0 && !de.value || de.value < 0 ? 0 : de.value, ze = [!1, !0].includes(K.value) ? K.value : !1, Fe = [!1, !0].includes(Le.value) ? Le.value : !1, Ye = ce.value !== 0 && !ce.value || ce.value < 0 ? 15 : ce.value, et = F.value !== 0 && !F.value || F.value < 0 ? 6 : F.value, ot = ["box", "circle"].includes(Z.value) ? Z.value : "box", ut = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value, ft = [!1, !0].includes(Ce.value) ? Ce.value : !1;
495
+ } = va(E), x = a(() => {
496
+ const d = ge.value ? "component-disabled" : "", b = ke.value !== "b" ? "inline-block" : "block", fe = xe.value ? xe.value : "'Lato', sans-serif", K = $.value ? $.value : "1.6em", te = L.value !== 0 && !L.value || L.value < 0 ? 200 : L.value, Me = de.value !== 0 && !de.value || de.value < 0 ? 0 : de.value, ze = [!1, !0].includes(G.value) ? G.value : !1, Fe = [!1, !0].includes(Le.value) ? Le.value : !1, Ye = ce.value !== 0 && !ce.value || ce.value < 0 ? 15 : ce.value, Xe = P.value !== 0 && !P.value || P.value < 0 ? 6 : P.value, lt = ["box", "circle"].includes(Z.value) ? Z.value : "box", nt = be.value !== 0 && !be.value || be.value < 0 ? 1 : be.value, ft = [!1, !0].includes(Ce.value) ? Ce.value : !1;
497
497
  return {
498
498
  disabled: d,
499
499
  display: b,
@@ -501,30 +501,30 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
501
501
  hoverEffect: ze,
502
502
  activeHoverEffect: Fe,
503
503
  itemGap: Ye,
504
- internalGap: et,
505
- scale: ut,
506
- type: ot,
504
+ internalGap: Xe,
505
+ scale: nt,
506
+ type: lt,
507
507
  font: fe,
508
508
  background: ft,
509
- fontSize: Y,
509
+ fontSize: K,
510
510
  fontWeight: te
511
511
  };
512
- }), $e = a(() => x.value.disabled), je = a(() => ({
512
+ }), _e = a(() => x.value.disabled), je = a(() => ({
513
513
  display: x.value.display
514
- })), we = a(() => x.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), at = a(() => {
514
+ })), we = a(() => x.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), et = a(() => {
515
515
  const d = x.value;
516
516
  return {
517
517
  fontSize: d.fontSize,
518
518
  fontWeight: d.fontWeight
519
519
  };
520
- }), ye = a(() => Array.isArray(se.value) && se.value.constructor === Array && se.value.length > 0), lt = a(() => X.value === "dark" ? "component__theme--dark" : "component__theme--light"), gt = a(() => x.value.font), Xe = a(() => Pe.value), Te = a(() => _e.value), Se = a(() => x.value.hoverEffect ? ne.value : _e.value), yt = a(() => x.value.activeHoverEffect ? ne.value : _e.value), nt = a(() => {
520
+ }), ye = a(() => Array.isArray(se.value) && se.value.constructor === Array && se.value.length > 0), tt = a(() => X.value === "dark" ? "component__theme--dark" : "component__theme--light"), bt = a(() => x.value.font), Qe = a(() => Pe.value), Te = a(() => $e.value), Se = a(() => x.value.hoverEffect ? ne.value : $e.value), gt = a(() => x.value.activeHoverEffect ? ne.value : $e.value), at = a(() => {
521
521
  const d = x.value;
522
522
  return d.activeHoverEffect && d.background ? `${ne.value}80` : ne.value;
523
- }), st = a(() => G.value), dt = a(() => R.value), ct = a(() => x.value.hoverEffect ? oe.value : R.value), He = a(() => x.value.activeHoverEffect ? oe.value : R.value), Ue = a(() => {
523
+ }), st = a(() => U.value), dt = a(() => w.value), ct = a(() => x.value.hoverEffect ? oe.value : w.value), He = a(() => x.value.activeHoverEffect ? oe.value : w.value), Ue = a(() => {
524
524
  const d = x.value;
525
525
  return d.activeHoverEffect && d.background ? `${oe.value}80` : oe.value;
526
- }), Ze = a(() => x.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ge = a(() => {
527
- const d = x.value, b = X.value === "dark" ? G.value : Pe.value;
526
+ }), Je = a(() => x.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ge = a(() => {
527
+ const d = x.value, b = X.value === "dark" ? U.value : Pe.value;
528
528
  return d.background ? "#ffffff" : b;
529
529
  });
530
530
  a(() => x.value.background ? "19px" : "auto");
@@ -541,73 +541,73 @@ const vl = ["id"], pl = ["id", "disabled", "value", "name"], bl = ["for", "tabin
541
541
  zoom: x.value.scale
542
542
  })), Re = a(() => {
543
543
  const d = {};
544
- pe.value && Object.keys(pe.value).forEach((Y) => d[`aria-${Y}`] = pe.value[Y]);
544
+ pe.value && Object.keys(pe.value).forEach((K) => d[`aria-${K}`] = pe.value[K]);
545
545
  const b = {
546
546
  "aria-label": Ve.value,
547
547
  "aria-disabled": ge.value,
548
548
  ...d
549
549
  };
550
550
  return Object.fromEntries(
551
- Object.entries(b).filter(([fe, Y]) => Y != null)
551
+ Object.entries(b).filter(([fe, K]) => K != null)
552
552
  );
553
553
  }), Ke = () => {
554
- N.value = Ae.value;
554
+ D.value = Ae.value;
555
555
  }, re = () => {
556
556
  C("clicked");
557
557
  };
558
- return U(Ae, (d, b) => {
558
+ return H(Ae, (d, b) => {
559
559
  d !== b && Ke();
560
- }), U(N, (d, b) => {
560
+ }), H(D, (d, b) => {
561
561
  d !== b && (C("current-value", d), C("changed", d));
562
- }), (d, b) => e.nbId && ye.value ? (O(), j("div", {
562
+ }), (d, b) => e.nbId && ye.value ? (F(), q("div", {
563
563
  key: 0,
564
- class: We(["nb-wrapper", $e.value]),
564
+ class: We(["nb-wrapper", _e.value]),
565
565
  style: Ee([je.value, me.value])
566
566
  }, [
567
567
  ve("div", da({
568
568
  id: e.nbId,
569
569
  role: "group"
570
570
  }, Re.value, {
571
- class: ["nb-reset", "component", we.value, lt.value]
571
+ class: ["nb-reset", "component", we.value, tt.value]
572
572
  }), [
573
- (O(!0), j(qa, null, ja(n(se), (fe, Y) => (O(), j("div", {
574
- key: Y,
573
+ (F(!0), q(qa, null, ja(o(se), (fe, K) => (F(), q("div", {
574
+ key: K,
575
575
  class: "component-checkbox__item"
576
576
  }, [
577
577
  pa(ve("input", {
578
578
  id: `${e.nbId}-${fe.value}`,
579
- "onUpdate:modelValue": b[0] || (b[0] = (te) => N.value = te),
579
+ "onUpdate:modelValue": b[0] || (b[0] = (te) => D.value = te),
580
580
  type: "checkbox",
581
581
  class: "component-checkbox__item--input",
582
- disabled: n(ge),
582
+ disabled: o(ge),
583
583
  value: fe.value,
584
584
  name: e.groupName,
585
585
  onClick: re
586
- }, null, 8, pl), [
587
- [ll, N.value]
586
+ }, null, 8, gl), [
587
+ [ol, D.value]
588
588
  ]),
589
589
  ve("label", {
590
590
  for: `${e.nbId}-${fe.value}`,
591
591
  class: We([[ee.value], "component-checkbox__item--label"]),
592
- tabindex: n(ge) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[Y] : e.tabIndex >= 0 ? e.tabIndex : Y + 1,
592
+ tabindex: o(ge) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[K] : e.tabIndex >= 0 ? e.tabIndex : K + 1,
593
593
  onKeydown: [
594
- b[1] || (b[1] = jt(ca((te) => !n(ge) && e.hasTabIndexEnter && te.target.click(), ["prevent"]), ["enter"])),
595
- b[2] || (b[2] = jt(ca((te) => !n(ge) && e.hasTabIndexSpace && te.target.click(), ["prevent"]), ["space"]))
594
+ b[1] || (b[1] = qt(ca((te) => !o(ge) && e.hasTabIndexEnter && te.target.click(), ["prevent"]), ["enter"])),
595
+ b[2] || (b[2] = qt(ca((te) => !o(ge) && e.hasTabIndexSpace && te.target.click(), ["prevent"]), ["space"]))
596
596
  ]
597
597
  }, [
598
598
  ve("div", {
599
- class: We([Ze.value])
599
+ class: We([Je.value])
600
600
  }, null, 2),
601
601
  ve("span", {
602
- style: Ee([at.value])
603
- }, St(fe.text), 5)
604
- ], 42, bl)
602
+ style: Ee([et.value])
603
+ }, Ct(fe.text), 5)
604
+ ], 42, yl)
605
605
  ]))), 128))
606
- ], 16, vl)
606
+ ], 16, bl)
607
607
  ], 6)) : Be("", !0);
608
608
  }
609
- }), yl = /* @__PURE__ */ ba(gl, [["__scopeId", "data-v-1c6afddc"]]);
610
- const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 }, Vl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], kl = ["for"], Ll = /* @__PURE__ */ Object.assign({
609
+ }), hl = /* @__PURE__ */ ba(ml, [["__scopeId", "data-v-1c6afddc"]]);
610
+ const Cl = ["id"], xl = ["for"], Sl = ["for"], Vl = { key: 0 }, kl = { key: 1 }, Ll = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex", "min", "max", "step"], Tl = ["for"], Bl = /* @__PURE__ */ Object.assign({
611
611
  name: "NbInput",
612
612
  inheritAttrs: !1
613
613
  }, {
@@ -719,13 +719,25 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
719
719
  },
720
720
  inputText: {
721
721
  type: [String, Number],
722
- default: ""
722
+ default: null
723
723
  },
724
724
  inputType: {
725
725
  type: String,
726
726
  default: "text",
727
727
  validator: (e) => ["text", "number", "email", "password"].indexOf(e) !== -1
728
728
  },
729
+ min: {
730
+ type: String,
731
+ default: ""
732
+ },
733
+ max: {
734
+ type: String,
735
+ default: ""
736
+ },
737
+ step: {
738
+ type: [String, Number],
739
+ default: ""
740
+ },
729
741
  hasTrim: {
730
742
  type: Boolean,
731
743
  default: !1,
@@ -1029,51 +1041,51 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
1029
1041
  "entered"
1030
1042
  ],
1031
1043
  setup(e, { emit: m }) {
1032
- fa((o) => ({
1033
- "67393ca6": At.value,
1034
- "492237ac": Bt.value,
1035
- "070b6157": n(ct),
1036
- "6cfae57a": Yt.value,
1037
- "08362f4c": Qt.value,
1038
- "6a65b3e4": Jt.value,
1039
- "1950b62e": n(V),
1040
- bc050f20: n(ze),
1041
- dda7ee14: n(ue),
1042
- c2f5b288: n(ft),
1043
- d13f5716: n(y),
1044
- "26044b4c": n(Ze),
1045
- d190cc00: n(Ge),
1046
- "687a4ecb": ra.value,
1047
- "548a9d91": n(He),
1048
- "53e6cc72": n(Ue),
1049
- "2d1ffeb0": n(Me),
1050
- "450b2f70": n(ee),
1051
- f68c0608: n(ut),
1052
- b176f33a: n(dt),
1053
- "4fc1abac": n(nt),
1054
- f84cb45c: n(st),
1055
- "7582c502": n(Se),
1056
- d1bd42ce: n(yt),
1057
- "24e2a49a": na.value,
1058
- "44a074be": oa.value,
1059
- "9a67f93e": ua.value,
1060
- "00542751": Pt.value,
1061
- b6e1a318: la.value,
1062
- "57aff83e": n(me),
1063
- de542384: Ct.value,
1064
- "7551f481": _t.value,
1065
- "63f70c40": Dt.value,
1066
- a92d612e: Ut.value,
1067
- "4e8df1c3": Kt.value,
1068
- "306aeeb7": o.styleButtonColor,
1069
- "017ff71c": Gt.value
1044
+ fa((l) => ({
1045
+ "4e737fa6": Bt.value,
1046
+ a3dffdac: Tt.value,
1047
+ eee43752: o(ct),
1048
+ "1bc8c27a": Kt.value,
1049
+ "6a6a4c4c": Yt.value,
1050
+ "100690e4": Qt.value,
1051
+ "740e7c2e": o(V),
1052
+ "566fd520": o(ze),
1053
+ "757b8bf6": o(ue),
1054
+ "442603bc": o(ft),
1055
+ "41f7b175": o(y),
1056
+ "6e805d5a": o(Je),
1057
+ "3f8bdd00": o(Ge),
1058
+ d92fdc6a: ua.value,
1059
+ b2620ade: o(He),
1060
+ "00fa5cc7": o(Ue),
1061
+ "53a901b0": o(Me),
1062
+ f9c97570: o(ee),
1063
+ d9968008: o(nt),
1064
+ "4f98c963": o(dt),
1065
+ "02e0eea8": o(at),
1066
+ "33e47a5c": o(st),
1067
+ "88f43f02": o(Se),
1068
+ "6c2808ce": o(gt),
1069
+ "6f1130b3": la.value,
1070
+ "6f8e37be": na.value,
1071
+ "6199e061": oa.value,
1072
+ 62884451: Et.value,
1073
+ "77304b74": aa.value,
1074
+ "9440be3e": o(me),
1075
+ f1c59d84: ht.value,
1076
+ "70d35cfe": At.value,
1077
+ "12c4e940": zt.value,
1078
+ "4398272e": Ht.value,
1079
+ "9e7be27a": Gt.value,
1080
+ "5b58b1b7": l.styleButtonColor,
1081
+ f9fb0bc8: Ut.value
1070
1082
  })), sa(() => {
1071
- ye.value != null ? x.value === "number" && typeof ye.value == "number" ? Q.value = ye.value : Q.value = String(ye.value) : Q.value = "";
1083
+ ye.value != null ? x.value === "number" && typeof ye.value == "number" ? Y.value = ye.value : Y.value = String(ye.value) : Y.value = "";
1072
1084
  }), ma(() => {
1073
- bt();
1085
+ pt();
1074
1086
  });
1075
- const C = m, P = e, {
1076
- nbId: N,
1087
+ const C = m, E = e, {
1088
+ nbId: D,
1077
1089
  display: Ve,
1078
1090
  hasTabIndexEnter: pe,
1079
1091
  ariaLabel: Ae,
@@ -1081,42 +1093,42 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
1081
1093
  textColor: se,
1082
1094
  caretColor: X,
1083
1095
  selectionBgColor: Pe,
1084
- selectionTextColor: _e,
1096
+ selectionTextColor: $e,
1085
1097
  hasBorderRadius: ne,
1086
- borderRadius: G,
1087
- disabled: R,
1098
+ borderRadius: U,
1099
+ disabled: w,
1088
1100
  fontFamily: oe,
1089
1101
  fontSize: de,
1090
- fontWeight: K,
1102
+ fontWeight: G,
1091
1103
  fontFamilyMsg: Le,
1092
1104
  fontSizeMsg: ce,
1093
- fontWeightMsg: F,
1105
+ fontWeightMsg: P,
1094
1106
  textMessageColor: be,
1095
1107
  inputWidth: Z,
1096
1108
  inputStyle: Ce,
1097
1109
  activeTextStyle: ge,
1098
1110
  sizeMediaQuery: xe,
1099
- inputReadonly: _,
1111
+ inputReadonly: $,
1100
1112
  showInputEye: L,
1101
1113
  inputType: x,
1102
- hasTrim: $e,
1114
+ hasTrim: _e,
1103
1115
  inputUppercase: je,
1104
1116
  inputName: we,
1105
- inputPlaceholder: at,
1117
+ inputPlaceholder: et,
1106
1118
  inputText: ye,
1107
- theme: lt,
1108
- inputEyeIcon: gt,
1109
- tabindex: Xe,
1119
+ theme: tt,
1120
+ inputEyeIcon: bt,
1121
+ tabindex: Qe,
1110
1122
  inputEyeIconHidden: Te,
1111
1123
  lightBgColor: Se,
1112
- lightBgColorFocus: yt,
1113
- lightEyeBgColor: nt,
1124
+ lightBgColorFocus: gt,
1125
+ lightEyeBgColor: at,
1114
1126
  lightEyeBgColorActive: st,
1115
1127
  lightDisabledBgColor: dt,
1116
1128
  lightTextColor: ct,
1117
1129
  darkBgColor: He,
1118
1130
  darkBgColorFocus: Ue,
1119
- darkEyeBgColor: Ze,
1131
+ darkEyeBgColor: Je,
1120
1132
  darkEyeBgColorActive: Ge,
1121
1133
  darkDisabledBgColor: y,
1122
1134
  darkTextColor: V,
@@ -1129,99 +1141,99 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
1129
1141
  iconDirection: d,
1130
1142
  iconPadding: b,
1131
1143
  iconPaddingInput: fe,
1132
- iconMargin: Y,
1144
+ iconMargin: K,
1133
1145
  iconBorderRadius: te,
1134
1146
  iconLightTextColor: Me,
1135
1147
  iconDarkTextColor: ze,
1136
1148
  iconLightBgColor: Fe,
1137
1149
  iconDarkBgColor: Ye,
1138
- iconLightBgColorActive: et,
1139
- iconDarkBgColorActive: ot,
1140
- iconLightDisabledBgColor: ut,
1150
+ iconLightBgColorActive: Xe,
1151
+ iconDarkBgColorActive: lt,
1152
+ iconLightDisabledBgColor: nt,
1141
1153
  iconDarkDisabledBgColor: ft,
1142
1154
  iconWidth: h,
1143
- iconSize: M,
1155
+ iconSize: R,
1144
1156
  showLabel: k,
1145
1157
  labelBackground: Oe,
1146
1158
  labelPadding: T,
1147
1159
  labelBorderRadius: he,
1148
- labelLeft: Vt,
1149
- inputLabelMarginActive: kt,
1150
- labelActiveTop: rt,
1151
- labelActiveLeft: H,
1152
- fontFamilyLabel: I,
1160
+ labelLeft: xt,
1161
+ inputLabelMarginActive: St,
1162
+ labelActiveTop: ot,
1163
+ labelActiveLeft: j,
1164
+ fontFamilyLabel: N,
1153
1165
  fontSizeLabel: ae,
1154
- fontSizeLabelActive: $,
1155
- fontWeightLabel: z,
1166
+ fontSizeLabelActive: _,
1167
+ fontWeightLabel: M,
1156
1168
  lightTextColorLabel: le,
1157
- lightTextColorLabelActive: W,
1158
- darkTextColorLabel: wt,
1159
- darkTextColorLabelActive: Rt
1160
- } = va(P), Q = J(""), vt = J(""), it = J(!1), pt = J(!1), B = a(() => {
1161
- const o = R.value ? "component-disabled" : "", f = Ve.value !== "b" ? "inline-block" : "block", w = se ? se.value : "ffffff", Qe = X.value ? X.value : "", Je = Pe.value ? Pe.value : "", t = _e.value ? _e.value : "", l = ne.value ? ne.value : !1, s = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, i = oe.value ? oe.value : "'Lato', sans-serif", v = de.value ? de.value : null, c = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, p = Le.value ? Le.value : "'Lato', sans-serif", S = ce.value ? ce.value : "1em", A = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, D = be.value ? be.value : "#f15574", q = Z.value ? Z.value : 200, ie = ge.value ? ge.value : "normal", De = xe.value ? xe.value : "xs", tt = _.value ? _.value : !1, Ne = L.value ? L.value : !1, Ie = x.value ? x.value : "text", ha = je.value ? je.value : !1, Ca = lt.value ? lt.value : "normal", xa = me.value ? me.value : "left", Sa = Ce.value ? Ce.value : "background", Va = b.value ? b.value : "5px 10px", ka = Y.value ? Y.value : "0", La = fe.value ? fe.value : 10, Ta = Me.value ? Me.value : "#000000", Ba = ze.value ? ze.value : "#000000", Aa = Fe.value ? Fe.value : "transparent", _a = Ye.value ? Ye.value : "transparent", $a = te.value !== 0 && !te.value || te.value < 0 ? 0 : te.value, wa = et.value ? et.value : "transparent", Ra = ot.value ? ot.value : "transparent", Ma = h.value ? h.value : 32, za = M.value ? M.value : 1, Da = k.value ? k.value : !1, Na = Vt.value !== 0 && !Vt.value || Vt.value < 0 ? 5 : Vt.value, Ia = Oe.value ? Oe.value : "transparent", Wa = kt.value !== 0 && !kt.value || kt.value < 0 ? 15 : kt.value, Ea = T.value ? T.value : "1px 5px", Pa = he.value !== 0 && !he.value || he.value < 0 ? 0 : he.value, Fa = rt.value === null || rt.value === void 0 ? -13 : rt.value, Ga = H.value === null || H.value === void 0 ? -10 : H.value, Ka = I.value ? I.value : "'Lato', sans-serif", Ya = ae.value ? ae.value : "1em", Qa = $.value ? $.value : "0.8em", Ja = z.value ? z.value : 400, Xa = le.value ? le.value : "#ffffff", Za = wt.value ? wt.value : "#000000", el = W.value ? W.value : "#ffffff", tl = Rt.value ? Rt.value : "#000000";
1169
+ lightTextColorLabelActive: I,
1170
+ darkTextColorLabel: _t,
1171
+ darkTextColorLabelActive: wt
1172
+ } = va(E), Y = J(""), ut = J(""), rt = J(!1), vt = J(!1), B = a(() => {
1173
+ const l = w.value ? "component-disabled" : "", c = Ve.value !== "b" ? "inline-block" : "block", Q = se ? se.value : "ffffff", t = X.value ? X.value : "", n = Pe.value ? Pe.value : "", s = $e.value ? $e.value : "", i = ne.value ? ne.value : !1, v = U.value !== 0 && !U.value || U.value < 0 ? 0 : U.value, f = oe.value ? oe.value : "'Lato', sans-serif", p = de.value ? de.value : null, S = G.value !== 0 && !G.value || G.value < 0 ? 100 : G.value, A = Le.value ? Le.value : "'Lato', sans-serif", z = ce.value ? ce.value : "1em", O = P.value !== 0 && !P.value || P.value < 0 ? 100 : P.value, ie = be.value ? be.value : "#f15574", De = Z.value ? Z.value : 200, Ze = ge.value ? ge.value : "normal", Ne = xe.value ? xe.value : "xs", Ie = $.value ? $.value : !1, ha = L.value ? L.value : !1, Ca = x.value ? x.value : "text", xa = je.value ? je.value : !1, Sa = tt.value ? tt.value : "normal", Va = me.value ? me.value : "left", ka = Ce.value ? Ce.value : "background", La = b.value ? b.value : "5px 10px", Ta = K.value ? K.value : "0", Ba = fe.value ? fe.value : 10, Aa = Me.value ? Me.value : "#000000", $a = ze.value ? ze.value : "#000000", _a = Fe.value ? Fe.value : "transparent", wa = Ye.value ? Ye.value : "transparent", Ra = te.value !== 0 && !te.value || te.value < 0 ? 0 : te.value, Ma = Xe.value ? Xe.value : "transparent", za = lt.value ? lt.value : "transparent", Da = h.value ? h.value : 32, Na = R.value ? R.value : 1, Ia = k.value ? k.value : !1, Wa = xt.value !== 0 && !xt.value || xt.value < 0 ? 5 : xt.value, Ea = Oe.value ? Oe.value : "transparent", Pa = St.value !== 0 && !St.value || St.value < 0 ? 15 : St.value, Fa = T.value ? T.value : "1px 5px", Ga = he.value !== 0 && !he.value || he.value < 0 ? 0 : he.value, Ka = ot.value === null || ot.value === void 0 ? -13 : ot.value, Ya = j.value === null || j.value === void 0 ? -10 : j.value, Qa = N.value ? N.value : "'Lato', sans-serif", Ja = ae.value ? ae.value : "1em", Xa = _.value ? _.value : "0.8em", Za = M.value ? M.value : 400, el = le.value ? le.value : "#ffffff", tl = _t.value ? _t.value : "#000000", al = I.value ? I.value : "#ffffff", ll = wt.value ? wt.value : "#000000";
1162
1174
  return {
1163
- disabled: o,
1164
- display: f,
1165
- font: i,
1166
- fontSize: v,
1167
- fontWeight: c,
1168
- fontFamilyMsg: p,
1169
- fontSizeMsg: S,
1170
- fontWeightMsg: A,
1171
- textMessageColor: D,
1172
- textColor: w,
1173
- caretColor: Qe,
1174
- selectionBgColor: Je,
1175
- selectionTextColor: t,
1176
- hasBorderRadius: l,
1177
- borderRadius: s,
1178
- textAlign: xa,
1179
- inputWidth: q,
1180
- activeTextStyle: ie,
1181
- sizeMediaQuery: De,
1182
- inputReadonly: tt,
1183
- showInputEye: Ne,
1184
- inputType: Ie,
1185
- inputUppercase: ha,
1186
- theme: Ca,
1187
- inputStyle: Sa,
1188
- iconPadding: Va,
1189
- iconMargin: ka,
1190
- iconPaddingInput: La,
1191
- iconLightTextColor: Ta,
1192
- iconDarkTextColor: Ba,
1193
- iconLightBgColor: Aa,
1194
- iconDarkBgColor: _a,
1195
- iconBorderRadius: $a,
1196
- iconLightBgColorActive: wa,
1197
- iconDarkBgColorActive: Ra,
1198
- iconWidth: Ma,
1199
- iconSize: za,
1200
- showLabel: Da,
1201
- labelBackground: Ia,
1202
- labelPadding: Ea,
1203
- labelBorderRadius: Pa,
1204
- labelLeft: Na,
1205
- inputLabelMarginActive: Wa,
1206
- labelActiveTop: Fa,
1207
- labelActiveLeft: Ga,
1208
- fontFamilyLabel: Ka,
1209
- fontSizeLabel: Ya,
1210
- fontSizeLabelActive: Qa,
1211
- fontWeightLabel: Ja,
1212
- lightTextColorLabel: Xa,
1213
- darkTextColorLabel: Za,
1214
- lightTextColorLabelActive: el,
1215
- darkTextColorLabelActive: tl
1175
+ disabled: l,
1176
+ display: c,
1177
+ font: f,
1178
+ fontSize: p,
1179
+ fontWeight: S,
1180
+ fontFamilyMsg: A,
1181
+ fontSizeMsg: z,
1182
+ fontWeightMsg: O,
1183
+ textMessageColor: ie,
1184
+ textColor: Q,
1185
+ caretColor: t,
1186
+ selectionBgColor: n,
1187
+ selectionTextColor: s,
1188
+ hasBorderRadius: i,
1189
+ borderRadius: v,
1190
+ textAlign: Va,
1191
+ inputWidth: De,
1192
+ activeTextStyle: Ze,
1193
+ sizeMediaQuery: Ne,
1194
+ inputReadonly: Ie,
1195
+ showInputEye: ha,
1196
+ inputType: Ca,
1197
+ inputUppercase: xa,
1198
+ theme: Sa,
1199
+ inputStyle: ka,
1200
+ iconPadding: La,
1201
+ iconMargin: Ta,
1202
+ iconPaddingInput: Ba,
1203
+ iconLightTextColor: Aa,
1204
+ iconDarkTextColor: $a,
1205
+ iconLightBgColor: _a,
1206
+ iconDarkBgColor: wa,
1207
+ iconBorderRadius: Ra,
1208
+ iconLightBgColorActive: Ma,
1209
+ iconDarkBgColorActive: za,
1210
+ iconWidth: Da,
1211
+ iconSize: Na,
1212
+ showLabel: Ia,
1213
+ labelBackground: Ea,
1214
+ labelPadding: Fa,
1215
+ labelBorderRadius: Ga,
1216
+ labelLeft: Wa,
1217
+ inputLabelMarginActive: Pa,
1218
+ labelActiveTop: Ka,
1219
+ labelActiveLeft: Ya,
1220
+ fontFamilyLabel: Qa,
1221
+ fontSizeLabel: Ja,
1222
+ fontSizeLabelActive: Xa,
1223
+ fontWeightLabel: Za,
1224
+ lightTextColorLabel: el,
1225
+ darkTextColorLabel: tl,
1226
+ lightTextColorLabelActive: al,
1227
+ darkTextColorLabelActive: ll
1216
1228
  };
1217
- }), Mt = a(() => B.value.disabled), zt = a(() => ({
1229
+ }), Rt = a(() => B.value.disabled), Mt = a(() => ({
1218
1230
  display: B.value.display
1219
- })), Bt = a(() => {
1220
- const o = B.value;
1221
- if (o.fontSize)
1222
- return o.fontSize;
1223
- let f = "";
1224
- switch (o.sizeMediaQuery) {
1231
+ })), Tt = a(() => {
1232
+ const l = B.value;
1233
+ if (l.fontSize)
1234
+ return l.fontSize;
1235
+ let c = "";
1236
+ switch (l.sizeMediaQuery) {
1225
1237
  case "sm":
1226
1238
  return "1.2em";
1227
1239
  case "md":
@@ -1229,33 +1241,33 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
1229
1241
  case "lg":
1230
1242
  return "2em";
1231
1243
  default:
1232
- f = "1.2em";
1244
+ c = "1.2em";
1233
1245
  }
1234
- return f;
1235
- }), Ht = a(() => {
1236
- const o = B.value, f = Et.value;
1246
+ return c;
1247
+ }), jt = a(() => {
1248
+ const l = B.value, c = Wt.value;
1237
1249
  return {
1238
- fontWeight: o.fontWeight,
1239
- marginTop: f && k.value ? `${o.inputLabelMarginActive}px` : "0"
1250
+ fontWeight: l.fontWeight,
1251
+ marginTop: c && k.value ? `${l.inputLabelMarginActive}px` : "0"
1240
1252
  };
1241
- }), mt = a(() => {
1242
- const o = B.value;
1243
- return o.inputStyle !== "line" && o.hasBorderRadius ? { borderRadius: `${o.borderRadius}rem` } : {};
1244
- }), At = a(() => B.value.font), _t = a(() => B.value.fontFamilyMsg), Dt = a(() => B.value.fontSizeMsg), Ut = a(() => B.value.fontWeightMsg), Gt = a(() => B.value.textColor), Kt = a(() => B.value.textMessageColor), Yt = a(() => {
1245
- const o = B.value;
1246
- return o.caretColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
1253
+ }), yt = a(() => {
1254
+ const l = B.value;
1255
+ return l.inputStyle !== "line" && l.hasBorderRadius ? { borderRadius: `${l.borderRadius}rem` } : {};
1256
+ }), Bt = a(() => B.value.font), At = a(() => B.value.fontFamilyMsg), zt = a(() => B.value.fontSizeMsg), Ht = a(() => B.value.fontWeightMsg), Ut = a(() => B.value.textColor), Gt = a(() => B.value.textMessageColor), Kt = a(() => {
1257
+ const l = B.value;
1258
+ return l.caretColor || (l.theme === "dark" ? "#00d4ff" : "#007bff");
1259
+ }), Yt = a(() => {
1260
+ const l = B.value;
1261
+ return l.selectionBgColor || (l.theme === "dark" ? "#00d4ff" : "#007bff");
1247
1262
  }), Qt = a(() => {
1248
- const o = B.value;
1249
- return o.selectionBgColor || (o.theme === "dark" ? "#00d4ff" : "#007bff");
1250
- }), Jt = a(() => {
1251
- const o = B.value;
1252
- return o.selectionTextColor || (o.theme === "dark" ? "#000000" : "#ffffff");
1253
- }), Lt = a(() => {
1254
- const o = B.value;
1255
- return o.display === "block" ? { width: "100%" } : {
1256
- width: `${o.inputWidth}px`
1263
+ const l = B.value;
1264
+ return l.selectionTextColor || (l.theme === "dark" ? "#000000" : "#ffffff");
1265
+ }), Vt = a(() => {
1266
+ const l = B.value;
1267
+ return l.display === "block" ? { width: "100%" } : {
1268
+ width: `${l.inputWidth}px`
1257
1269
  };
1258
- }), Nt = a(() => {
1270
+ }), Dt = a(() => {
1259
1271
  switch (Ce.value) {
1260
1272
  case "line":
1261
1273
  return "component__input--line";
@@ -1291,179 +1303,192 @@ const ml = ["id"], hl = ["for"], Cl = ["for"], xl = { key: 0 }, Sl = { key: 1 },
1291
1303
  default:
1292
1304
  return "component__theme--light";
1293
1305
  }
1294
- }), E = a(() => B.value.inputReadonly ? "component__input--read-only" : ""), qe = a(() => B.value.inputUppercase ? "component__input--uppercase" : ""), It = a(() => {
1295
- const o = B.value;
1296
- return !!(o.showInputEye && o.inputType === "password");
1297
- }), Xt = a(() => it.value ? gt.value : Te.value), ht = a(() => we.value ? we.value : `${N.value}-name-label`), Wt = a(() => k.value ? pt.value ? at.value : "" : at.value), Et = a(() => {
1298
- const o = Q.value;
1299
- return pt.value || o != null && String(o).trim().length > 0;
1300
- }), Zt = a(() => B.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), ea = a(() => pt.value ? "component__input--active" : "component__input--no-active"), Ct = a(() => It.value ? "6px 50px 6px 10px" : "6px 10px"), ta = a(() => !!(Re.value && Ke.value)), aa = a(() => {
1301
- const o = {};
1302
- ke.value && Object.keys(ke.value).forEach((Qe) => o[`aria-${Qe}`] = ke.value[Qe]);
1303
- const f = {
1306
+ }), W = a(() => B.value.inputReadonly ? "component__input--read-only" : ""), qe = a(() => B.value.inputUppercase ? "component__input--uppercase" : ""), Nt = a(() => {
1307
+ const l = B.value;
1308
+ return !!(l.showInputEye && l.inputType === "password");
1309
+ }), Jt = a(() => rt.value ? bt.value : Te.value), mt = a(() => we.value ? we.value : `${D.value}-name-label`), It = a(() => k.value ? vt.value ? et.value : "" : et.value), Wt = a(() => {
1310
+ const l = Y.value;
1311
+ return vt.value || l != null && String(l).trim().length > 0;
1312
+ }), Xt = a(() => B.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Zt = a(() => vt.value ? "component__input--active" : "component__input--no-active"), ht = a(() => Nt.value ? "6px 50px 6px 10px" : "6px 10px"), ea = a(() => !!(Re.value && Ke.value)), ta = a(() => {
1313
+ const l = {};
1314
+ ke.value && Object.keys(ke.value).forEach((t) => l[`aria-${t}`] = ke.value[t]);
1315
+ const c = {
1304
1316
  "aria-label": Ae.value,
1305
- "aria-disabled": R.value,
1306
- ...o
1317
+ "aria-disabled": w.value,
1318
+ ...l
1307
1319
  };
1308
1320
  return Object.fromEntries(
1309
- Object.entries(f).filter(([w, Qe]) => Qe != null)
1321
+ Object.entries(c).filter(([Q, t]) => t != null)
1310
1322
  );
1311
- }), la = a(() => re.value ? `${M.value}rem` : "0"), na = a(() => re.value ? `${h.value}px` : "0"), $t = a(() => re.value ? `component__icon--${d.value}` : ""), oa = a(() => {
1312
- const o = B.value;
1313
- return re.value ? o.iconPadding : "0";
1323
+ }), aa = a(() => re.value ? `${R.value}rem` : "0"), la = a(() => re.value ? `${h.value}px` : "0"), $t = a(() => re.value ? `component__icon--${d.value}` : ""), na = a(() => {
1324
+ const l = B.value;
1325
+ return re.value ? l.iconPadding : "0";
1326
+ }), oa = a(() => {
1327
+ const l = B.value;
1328
+ return re.value ? l.iconMargin : "0";
1314
1329
  }), ua = a(() => {
1315
- const o = B.value;
1316
- return re.value ? o.iconMargin : "0";
1317
- }), ra = a(() => {
1318
- const o = B.value;
1319
- return re.value ? o.theme === "dark" ? o.iconDarkBgColor : o.iconLightBgColor : "transparent";
1330
+ const l = B.value;
1331
+ return re.value ? l.theme === "dark" ? l.iconDarkBgColor : l.iconLightBgColor : "transparent";
1332
+ }), Et = a(() => {
1333
+ const l = B.value;
1334
+ return re.value ? `${l.iconBorderRadius}rem` : "0";
1320
1335
  }), Pt = a(() => {
1321
- const o = B.value;
1322
- return re.value ? `${o.iconBorderRadius}rem` : "0";
1336
+ const l = B.value;
1337
+ return re.value ? d.value === "left" ? { paddingLeft: `${l.iconPaddingInput}px` } : { paddingRight: `${l.iconPaddingInput}px` } : {};
1323
1338
  }), Ft = a(() => {
1324
- const o = B.value;
1325
- return re.value ? d.value === "left" ? { paddingLeft: `${o.iconPaddingInput}px` } : { paddingRight: `${o.iconPaddingInput}px` } : {};
1326
- }), Ot = a(() => {
1327
- const o = B.value, f = Et.value, w = f ? o.lightTextColorLabelActive : o.lightTextColorLabel, Qe = f ? o.darkTextColorLabelActive : o.darkTextColorLabel;
1339
+ const l = B.value, c = Wt.value, Q = c ? l.lightTextColorLabelActive : l.lightTextColorLabel, t = c ? l.darkTextColorLabelActive : l.darkTextColorLabel;
1328
1340
  return {
1329
- fontFamily: o.fontFamilyLabel,
1330
- fontSize: f ? o.fontSizeLabelActive : o.fontSizeLabel,
1331
- fontWeight: o.fontWeightLabel,
1332
- color: o.theme === "dark" ? Qe : w,
1333
- top: f ? `${o.labelActiveTop}px` : "50%",
1334
- left: f ? `${o.labelActiveLeft}px` : `${o.labelLeft}px`,
1335
- transform: f ? "translateY(0)" : "translateY(-50%)",
1341
+ fontFamily: l.fontFamilyLabel,
1342
+ fontSize: c ? l.fontSizeLabelActive : l.fontSizeLabel,
1343
+ fontWeight: l.fontWeightLabel,
1344
+ color: l.theme === "dark" ? t : Q,
1345
+ top: c ? `${l.labelActiveTop}px` : "50%",
1346
+ left: c ? `${l.labelActiveLeft}px` : `${l.labelLeft}px`,
1347
+ transform: c ? "translateY(0)" : "translateY(-50%)",
1336
1348
  transition: "all 0.2s ease",
1337
- backgroundColor: f ? o.labelBackground : "transparent",
1338
- padding: f ? o.labelPadding : "0",
1339
- borderRadius: f ? `${o.labelBorderRadius}rem` : "0"
1349
+ backgroundColor: c ? l.labelBackground : "transparent",
1350
+ padding: c ? l.labelPadding : "0",
1351
+ borderRadius: c ? `${l.labelBorderRadius}rem` : "0"
1340
1352
  };
1341
1353
  });
1342
1354
  a(() => {
1343
- const o = B.value;
1344
- return o.theme === "dark" ? o.darkTextColorLabelActive : o.lightTextColorLabelActive;
1355
+ const l = B.value;
1356
+ return l.theme === "dark" ? l.darkTextColorLabelActive : l.lightTextColorLabelActive;
1345
1357
  });
1346
- const bt = () => {
1347
- ye.value != null ? x.value === "number" && typeof ye.value == "number" ? Q.value = ye.value : Q.value = String(ye.value) : Q.value = "", vt.value = x.value;
1348
- }, Tt = () => {
1349
- const o = B.value;
1350
- if (o.inputReadonly || o.disabled)
1358
+ const pt = () => {
1359
+ ye.value != null ? x.value === "number" && typeof ye.value == "number" ? Y.value = ye.value : Y.value = String(ye.value) : Y.value = "", ut.value = x.value;
1360
+ }, kt = () => {
1361
+ const l = B.value;
1362
+ if (l.inputReadonly || l.disabled)
1351
1363
  return;
1352
- const f = !it.value;
1353
- f ? vt.value = "text" : vt.value = x.value, it.value = f;
1354
- }, xt = () => {
1364
+ const c = !rt.value;
1365
+ c ? ut.value = "text" : ut.value = x.value, rt.value = c;
1366
+ }, it = a(() => ut.value === "number"), Lt = (l) => {
1367
+ if (x.value === "number") {
1368
+ if (l === "" || l === null || l === void 0)
1369
+ return "";
1370
+ {
1371
+ const c = typeof l == "number" ? l : Number(l);
1372
+ return isNaN(c) ? l : c;
1373
+ }
1374
+ }
1375
+ return l;
1376
+ }, ra = () => {
1355
1377
  C("clicked");
1356
- }, qt = () => {
1357
- R.value || B.value.inputReadonly || !pe.value || C("entered", Q.value);
1378
+ }, Ot = () => {
1379
+ w.value || B.value.inputReadonly || !pe.value || C("entered", Lt(Y.value));
1358
1380
  };
1359
- return U(x, (o) => {
1360
- vt.value = o;
1361
- }, { immediate: !0 }), U(ye, (o) => {
1362
- if (o != null)
1363
- if (x.value === "number" && typeof o == "number")
1364
- o !== Q.value && (Q.value = o);
1381
+ return H(x, (l) => {
1382
+ ut.value = l;
1383
+ }, { immediate: !0 }), H(ye, (l) => {
1384
+ if (l != null)
1385
+ if (x.value === "number" && typeof l == "number")
1386
+ l !== Y.value && (Y.value = l);
1365
1387
  else {
1366
- const f = String(o);
1367
- f !== Q.value && (Q.value = f);
1388
+ const c = String(l);
1389
+ c !== Y.value && (Y.value = c);
1368
1390
  }
1369
1391
  else
1370
- Q.value !== "" && (Q.value = "");
1371
- }, { immediate: !0 }), U(Q, (o) => {
1372
- $e.value && typeof o == "string" && (o = o.trim()), C("changed", o);
1373
- }), U(pt, (o) => {
1374
- C(o ? "focused" : "blurred");
1375
- }), U(it, (o) => {
1376
- C("show-input-eye", o);
1377
- }, { immediate: !0 }), U(Q, (o) => {
1378
- $e.value && typeof o == "string" && (o = o.trim()), C("current-value", o);
1379
- }), U(x, (o) => {
1380
- o === "password" && nextTick(() => {
1381
- const f = document.getElementById(we.value);
1382
- f && (f.type = "password", f.removeAttribute("autocomplete"));
1392
+ Y.value !== "" && (Y.value = "");
1393
+ }, { immediate: !0 }), H(Y, (l) => {
1394
+ _e.value && typeof l == "string" && (l = l.trim()), C("changed", Lt(l));
1395
+ }), H(vt, (l) => {
1396
+ C(l ? "focused" : "blurred");
1397
+ }), H(rt, (l) => {
1398
+ C("show-input-eye", l);
1399
+ }, { immediate: !0 }), H(Y, (l) => {
1400
+ _e.value && typeof l == "string" && (l = l.trim()), C("current-value", Lt(l));
1401
+ }), H(x, (l) => {
1402
+ l === "password" && nextTick(() => {
1403
+ const c = document.getElementById(we.value);
1404
+ c && (c.type = "password", c.removeAttribute("autocomplete"));
1383
1405
  });
1384
- }), (o, f) => n(N) ? (O(), j("div", da({
1406
+ }), (l, c) => o(D) ? (F(), q("div", da({
1385
1407
  key: 0,
1386
- class: ["nb-wrapper", Mt.value],
1387
- style: [zt.value, Lt.value, mt.value],
1408
+ class: ["nb-wrapper", Rt.value],
1409
+ style: [Mt.value, Vt.value, yt.value],
1388
1410
  role: "input"
1389
- }, aa.value), [
1411
+ }, ta.value), [
1390
1412
  ve("div", {
1391
- id: n(N),
1392
- class: We(["nb-reset", "component", u.value, g.value, E.value, Nt.value]),
1393
- style: Ee([Ht.value, Lt.value, mt.value]),
1394
- onClick: xt
1413
+ id: o(D),
1414
+ class: We(["nb-reset", "component", u.value, g.value, W.value, Dt.value]),
1415
+ style: Ee([jt.value, Vt.value, yt.value]),
1416
+ onClick: ra
1395
1417
  }, [
1396
- n(k) ? (O(), j("label", {
1418
+ o(k) ? (F(), q("label", {
1397
1419
  key: 0,
1398
- for: ht.value,
1420
+ for: mt.value,
1399
1421
  class: "component__label",
1400
- style: Ee([Ot.value])
1401
- }, St(e.label), 13, hl)) : Be("", !0),
1402
- It.value ? (O(), j("div", {
1422
+ style: Ee([Ft.value])
1423
+ }, Ct(e.label), 13, xl)) : Be("", !0),
1424
+ Nt.value ? (F(), q("div", {
1403
1425
  key: 1,
1404
- class: We(["component__eye", ea.value]),
1405
- style: Ee([mt.value]),
1406
- onClick: Tt
1426
+ class: We(["component__eye", Zt.value]),
1427
+ style: Ee([yt.value]),
1428
+ onClick: kt
1407
1429
  }, [
1408
1430
  ve("label", {
1409
- for: ht.value,
1431
+ for: mt.value,
1410
1432
  class: We(["component__eye-icon", "fas"])
1411
1433
  }, [
1412
- e.inputEyeCustomIcon ? (O(), j("span", Sl, [
1413
- it.value ? ia(o.$slots, "eye-icon-show", { key: 0 }, () => [
1414
- f[4] || (f[4] = ga("show"))
1415
- ], !0) : ia(o.$slots, "eye-icon-hidden", { key: 1 }, () => [
1416
- f[5] || (f[5] = ga("hidden"))
1434
+ e.inputEyeCustomIcon ? (F(), q("span", kl, [
1435
+ rt.value ? ia(l.$slots, "eye-icon-show", { key: 0 }, () => [
1436
+ c[4] || (c[4] = ga("show"))
1437
+ ], !0) : ia(l.$slots, "eye-icon-hidden", { key: 1 }, () => [
1438
+ c[5] || (c[5] = ga("hidden"))
1417
1439
  ], !0)
1418
- ])) : (O(), j("span", xl, St(Xt.value), 1))
1419
- ], 8, Cl)
1440
+ ])) : (F(), q("span", Vl, Ct(Jt.value), 1))
1441
+ ], 8, Sl)
1420
1442
  ], 6)) : Be("", !0),
1421
1443
  pa(ve("input", {
1422
- "onUpdate:modelValue": f[0] || (f[0] = (w) => Q.value = w),
1423
- id: ht.value,
1424
- name: ht.value,
1425
- type: vt.value,
1444
+ "onUpdate:modelValue": c[0] || (c[0] = (Q) => Y.value = Q),
1445
+ id: mt.value,
1446
+ name: mt.value,
1447
+ type: ut.value,
1426
1448
  class: We(["component__input", [
1427
1449
  qe.value,
1428
- Zt.value,
1450
+ Xt.value,
1429
1451
  r.value
1430
1452
  ]]),
1431
- placeholder: Wt.value,
1432
- disabled: n(R) || n(_),
1453
+ placeholder: It.value,
1454
+ disabled: o(w) || o($),
1433
1455
  required: e.required,
1434
- readonly: n(_),
1456
+ readonly: o($),
1435
1457
  autocomplete: e.inputAutocomplete,
1436
- tabindex: n(R) || n(_) ? -1 : n(Xe),
1458
+ tabindex: o(w) || o($) ? -1 : o(Qe),
1459
+ min: it.value ? e.min : void 0,
1460
+ max: it.value ? e.max : void 0,
1461
+ step: it.value ? e.step : void 0,
1437
1462
  role: "input",
1438
- style: Ee([mt.value, Ft.value]),
1439
- onFocus: f[1] || (f[1] = (w) => pt.value = !0),
1440
- onBlur: f[2] || (f[2] = (w) => pt.value = !1),
1441
- onKeydown: f[3] || (f[3] = jt((w) => !n(R) && n(pe) && qt(), ["enter"]))
1442
- }, null, 46, Vl), [
1443
- [Ha, Q.value]
1463
+ style: Ee([yt.value, Pt.value]),
1464
+ onFocus: c[1] || (c[1] = (Q) => vt.value = !0),
1465
+ onBlur: c[2] || (c[2] = (Q) => vt.value = !1),
1466
+ onKeydown: c[3] || (c[3] = qt((Q) => !o(w) && o(pe) && Ot(), ["enter"]))
1467
+ }, null, 46, Ll), [
1468
+ [Ha, Y.value]
1444
1469
  ]),
1445
- n(re) ? (O(), j("label", {
1470
+ o(re) ? (F(), q("label", {
1446
1471
  key: 2,
1447
- for: ht.value,
1472
+ for: mt.value,
1448
1473
  class: We(["component__icon", $t.value])
1449
1474
  }, [
1450
- ia(o.$slots, "icon", {}, () => [
1451
- f[6] || (f[6] = ve("span", null, "♥", -1))
1475
+ ia(l.$slots, "icon", {}, () => [
1476
+ c[6] || (c[6] = ve("span", null, "♥", -1))
1452
1477
  ], !0)
1453
- ], 10, kl)) : Be("", !0)
1454
- ], 14, ml),
1455
- ta.value ? (O(), j("div", {
1478
+ ], 10, Tl)) : Be("", !0)
1479
+ ], 14, Cl),
1480
+ ea.value ? (F(), q("div", {
1456
1481
  key: 0,
1457
1482
  class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
1458
1483
  }, [
1459
- ia(o.$slots, "message", {}, () => [
1460
- ga(St(e.message), 1)
1484
+ ia(l.$slots, "message", {}, () => [
1485
+ ga(Ct(e.message), 1)
1461
1486
  ], !0)
1462
1487
  ], 2)) : Be("", !0)
1463
1488
  ], 16)) : Be("", !0);
1464
1489
  }
1465
- }), Tl = /* @__PURE__ */ ba(Ll, [["__scopeId", "data-v-6c16322b"]]);
1466
- const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"], wl = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], Rl = /* @__PURE__ */ Object.assign({
1490
+ }), Al = /* @__PURE__ */ ba(Bl, [["__scopeId", "data-v-d843b2db"]]);
1491
+ const $l = ["for"], _l = ["id"], wl = { class: "chip-text" }, Rl = ["onClick"], Ml = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], zl = /* @__PURE__ */ Object.assign({
1467
1492
  name: "NbInputChip",
1468
1493
  inheritAttrs: !1
1469
1494
  }, {
@@ -1788,37 +1813,37 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
1788
1813
  emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred"],
1789
1814
  setup(e, { emit: m }) {
1790
1815
  fa((u) => ({
1791
- "376e4d80": Q.value,
1792
- d807475a: it.value,
1793
- "2226ac9e": n(gt),
1794
- "19aa3459": n(je),
1795
- "0af60f52": n(at),
1796
- "4bbf74ed": n(Xe),
1797
- "1e97d576": n(Te),
1798
- "7a6f588e": n(Se),
1799
- "2c5ee94f": n(Ue),
1800
- "5743c377": n(nt),
1801
- 96524120: n(dt),
1802
- "14bf75ea": n(Ze),
1803
- b4bd543a: n(Ge),
1804
- ade22ca8: n(y),
1805
- f111ceb4: n(ye),
1806
- "2cc9ab48": n(ct),
1816
+ "376e4d80": Y.value,
1817
+ d807475a: rt.value,
1818
+ "2226ac9e": o(bt),
1819
+ "19aa3459": o(je),
1820
+ "0af60f52": o(et),
1821
+ "4bbf74ed": o(Qe),
1822
+ "1e97d576": o(Te),
1823
+ "7a6f588e": o(Se),
1824
+ "2c5ee94f": o(Ue),
1825
+ "5743c377": o(at),
1826
+ 96524120: o(dt),
1827
+ "14bf75ea": o(Je),
1828
+ b4bd543a: o(Ge),
1829
+ ade22ca8: o(y),
1830
+ f111ceb4: o(ye),
1831
+ "2cc9ab48": o(ct),
1807
1832
  14762890: le.value,
1808
1833
  fd7aaf40: B.value,
1809
- ea04a49c: Mt.value,
1810
- "594730ca": zt.value,
1834
+ ea04a49c: Rt.value,
1835
+ "594730ca": Mt.value,
1811
1836
  b5c8eede: u.styleButtonColor,
1812
- "2d3d8114": vt.value,
1813
- "87feb986": n(lt),
1814
- a61b2794: n(yt),
1815
- "2abf974a": n(He),
1816
- "71083e54": n(V)
1837
+ "2d3d8114": ut.value,
1838
+ "87feb986": o(tt),
1839
+ a61b2794: o(gt),
1840
+ "2abf974a": o(He),
1841
+ "71083e54": o(V)
1817
1842
  })), sa(() => {
1818
- G.value.length > 0 && (H.value = G.value);
1843
+ U.value.length > 0 && (j.value = U.value);
1819
1844
  });
1820
- const C = m, P = e, {
1821
- nbId: N,
1845
+ const C = m, E = e, {
1846
+ nbId: D,
1822
1847
  display: Ve,
1823
1848
  textColor: pe,
1824
1849
  paddingX: Ae,
@@ -1826,42 +1851,42 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
1826
1851
  borderRadius: se,
1827
1852
  disabled: X,
1828
1853
  fontFamily: Pe,
1829
- fontSize: _e,
1854
+ fontSize: $e,
1830
1855
  fontWeight: ne,
1831
- currentList: G,
1832
- allowDuplicates: R,
1856
+ currentList: U,
1857
+ allowDuplicates: w,
1833
1858
  minChips: oe,
1834
1859
  maxChips: de,
1835
- inputPosition: K,
1860
+ inputPosition: G,
1836
1861
  width: Le,
1837
1862
  inputName: ce,
1838
- inputPlaceholder: F,
1863
+ inputPlaceholder: P,
1839
1864
  inputUppercase: be,
1840
1865
  inputReadonly: Z,
1841
1866
  inputAutocomplete: Ce,
1842
1867
  required: ge,
1843
1868
  textAlign: xe,
1844
- hasBorderRadius: _,
1869
+ hasBorderRadius: $,
1845
1870
  activeTextStyle: L,
1846
1871
  theme: x,
1847
- inputStyle: $e,
1872
+ inputStyle: _e,
1848
1873
  lightBgColor: je,
1849
1874
  lightBgColorFocus: we,
1850
- lightBorderColor: at,
1875
+ lightBorderColor: et,
1851
1876
  lightBorderColorFocus: ye,
1852
- lightDisabledBgColor: lt,
1853
- lightTextColor: gt,
1854
- lightChipBgColor: Xe,
1877
+ lightDisabledBgColor: tt,
1878
+ lightTextColor: bt,
1879
+ lightChipBgColor: Qe,
1855
1880
  lightChipTextColor: Te,
1856
1881
  lightChipRemoveColor: Se,
1857
- lightDisabledBorderColor: yt,
1858
- darkBgColor: nt,
1882
+ lightDisabledBorderColor: gt,
1883
+ darkBgColor: at,
1859
1884
  darkBgColorFocus: st,
1860
1885
  darkBorderColor: dt,
1861
1886
  darkBorderColorFocus: ct,
1862
1887
  darkDisabledBgColor: He,
1863
1888
  darkTextColor: Ue,
1864
- darkChipBgColor: Ze,
1889
+ darkChipBgColor: Je,
1865
1890
  darkChipTextColor: Ge,
1866
1891
  darkChipRemoveColor: y,
1867
1892
  darkDisabledBorderColor: V,
@@ -1874,61 +1899,61 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
1874
1899
  selectionTextColor: d,
1875
1900
  showLabel: b,
1876
1901
  label: fe,
1877
- labelBackground: Y,
1902
+ labelBackground: K,
1878
1903
  labelPadding: te,
1879
1904
  labelBorderRadius: Me,
1880
1905
  labelLeft: ze,
1881
1906
  inputLabelMarginActive: Fe,
1882
1907
  labelActiveTop: Ye,
1883
- labelActiveLeft: et,
1884
- fontFamilyLabel: ot,
1885
- fontSizeLabel: ut,
1908
+ labelActiveLeft: Xe,
1909
+ fontFamilyLabel: lt,
1910
+ fontSizeLabel: nt,
1886
1911
  fontSizeLabelActive: ft,
1887
1912
  fontWeightLabel: h,
1888
- lightTextColorLabel: M,
1913
+ lightTextColorLabel: R,
1889
1914
  lightTextColorLabelActive: k,
1890
1915
  darkTextColorLabel: Oe,
1891
1916
  darkTextColorLabelActive: T
1892
- } = va(P), he = J(""), Vt = J(null), kt = J(null), rt = J(null), H = J([]), I = J(!1), ae = a(() => {
1893
- const u = X.value ? "component-disabled" : "", g = Ve.value !== "b" ? "inline-block" : "block", E = !Le.value || Le.value < 185 ? 185 : Le.value, qe = pe ? pe.value : "ffffff", It = Ke.value ? Ke.value : "", Xt = re.value ? re.value : "", ht = d.value ? d.value : "", Wt = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 1 : Ae.value, Et = ke.value !== 0 && !ke.value || ke.value < 0 ? 0.2 : ke.value, Zt = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, ea = Pe.value ? Pe.value : "'Lato', sans-serif", Ct = _e.value ? _e.value : "1.4em", ta = ne.value !== 0 && !ne.value || ne.value < 0 ? 100 : ne.value, aa = oe.value !== 0 && !oe.value || oe.value < 0 ? 0 : oe.value, la = de.value !== 0 && !de.value || de.value < 0 ? 10 : de.value, na = !K.value || !["top", "bottom"].includes(K.value) ? "bottom" : K.value, $t = !$e.value || !["background", "line", "border"].includes($e.value) ? "background" : $e.value, oa = x.value ? x.value : "light", ua = b.value ? b.value : !1, ra = ze.value !== 0 && !ze.value || ze.value < 0 ? 5 : ze.value, Pt = Y.value ? Y.value : "transparent", Ft = Fe.value !== 0 && !Fe.value || Fe.value < 0 ? 15 : Fe.value, Ot = te.value ? te.value : "1px 5px", bt = Me.value !== 0 && !Me.value || Me.value < 0 ? 0 : Me.value, Tt = Ye.value === null || Ye.value === void 0 ? 13 : Ye.value, xt = et.value === null || et.value === void 0 ? 5 : et.value, qt = ot.value ? ot.value : "'Lato', sans-serif", o = ut.value ? ut.value : "1em", f = ft.value ? ft.value : "0.8em", w = h.value ? h.value : 400, Qe = M.value ? M.value : "#333333", Je = Oe.value ? Oe.value : "#ffffff", t = k.value ? k.value : "#333333", l = T.value ? T.value : "#ffffff";
1917
+ } = va(E), he = J(""), xt = J(null), St = J(null), ot = J(null), j = J([]), N = J(!1), ae = a(() => {
1918
+ const u = X.value ? "component-disabled" : "", g = Ve.value !== "b" ? "inline-block" : "block", W = !Le.value || Le.value < 185 ? 185 : Le.value, qe = pe ? pe.value : "ffffff", Nt = Ke.value ? Ke.value : "", Jt = re.value ? re.value : "", mt = d.value ? d.value : "", It = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 1 : Ae.value, Wt = ke.value !== 0 && !ke.value || ke.value < 0 ? 0.2 : ke.value, Xt = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, Zt = Pe.value ? Pe.value : "'Lato', sans-serif", ht = $e.value ? $e.value : "1.4em", ea = ne.value !== 0 && !ne.value || ne.value < 0 ? 100 : ne.value, ta = oe.value !== 0 && !oe.value || oe.value < 0 ? 0 : oe.value, aa = de.value !== 0 && !de.value || de.value < 0 ? 10 : de.value, la = !G.value || !["top", "bottom"].includes(G.value) ? "bottom" : G.value, $t = !_e.value || !["background", "line", "border"].includes(_e.value) ? "background" : _e.value, na = x.value ? x.value : "light", oa = b.value ? b.value : !1, ua = ze.value !== 0 && !ze.value || ze.value < 0 ? 5 : ze.value, Et = K.value ? K.value : "transparent", Pt = Fe.value !== 0 && !Fe.value || Fe.value < 0 ? 15 : Fe.value, Ft = te.value ? te.value : "1px 5px", pt = Me.value !== 0 && !Me.value || Me.value < 0 ? 0 : Me.value, kt = Ye.value === null || Ye.value === void 0 ? 13 : Ye.value, it = Xe.value === null || Xe.value === void 0 ? 5 : Xe.value, Lt = lt.value ? lt.value : "'Lato', sans-serif", ra = nt.value ? nt.value : "1em", Ot = ft.value ? ft.value : "0.8em", l = h.value ? h.value : 400, c = R.value ? R.value : "#333333", Q = Oe.value ? Oe.value : "#ffffff", t = k.value ? k.value : "#333333", n = T.value ? T.value : "#ffffff";
1894
1919
  return {
1895
1920
  disabled: u,
1896
1921
  display: g,
1897
- width: E,
1898
- font: ea,
1899
- fontSize: Ct,
1900
- fontWeight: ta,
1922
+ width: W,
1923
+ font: Zt,
1924
+ fontSize: ht,
1925
+ fontWeight: ea,
1901
1926
  textColor: qe,
1902
- caretColor: It,
1903
- selectionBgColor: Xt,
1904
- selectionTextColor: ht,
1905
- paddingX: Wt,
1906
- paddingY: Et,
1907
- borderRadius: Zt,
1908
- minChips: aa,
1909
- maxChips: la,
1910
- inputPosition: na,
1927
+ caretColor: Nt,
1928
+ selectionBgColor: Jt,
1929
+ selectionTextColor: mt,
1930
+ paddingX: It,
1931
+ paddingY: Wt,
1932
+ borderRadius: Xt,
1933
+ minChips: ta,
1934
+ maxChips: aa,
1935
+ inputPosition: la,
1911
1936
  inputStyle: $t,
1912
- theme: oa,
1913
- showLabel: ua,
1914
- labelLeft: ra,
1915
- labelBackground: Pt,
1916
- inputLabelMarginActive: Ft,
1917
- labelPadding: Ot,
1918
- labelBorderRadius: bt,
1919
- labelActiveTop: Tt,
1920
- labelActiveLeft: xt,
1921
- fontFamilyLabel: qt,
1922
- fontSizeLabel: o,
1923
- fontSizeLabelActive: f,
1924
- fontWeightLabel: w,
1925
- lightTextColorLabel: Qe,
1926
- darkTextColorLabel: Je,
1937
+ theme: na,
1938
+ showLabel: oa,
1939
+ labelLeft: ua,
1940
+ labelBackground: Et,
1941
+ inputLabelMarginActive: Pt,
1942
+ labelPadding: Ft,
1943
+ labelBorderRadius: pt,
1944
+ labelActiveTop: kt,
1945
+ labelActiveLeft: it,
1946
+ fontFamilyLabel: Lt,
1947
+ fontSizeLabel: ra,
1948
+ fontSizeLabelActive: Ot,
1949
+ fontWeightLabel: l,
1950
+ lightTextColorLabel: c,
1951
+ darkTextColorLabel: Q,
1927
1952
  lightTextColorLabelActive: t,
1928
- darkTextColorLabelActive: l
1953
+ darkTextColorLabelActive: n
1929
1954
  };
1930
- }), $ = a(() => ae.value.disabled), z = a(() => {
1931
- const u = ae.value, g = _t.value;
1955
+ }), _ = a(() => ae.value.disabled), M = a(() => {
1956
+ const u = ae.value, g = At.value;
1932
1957
  return {
1933
1958
  display: u.display,
1934
1959
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
@@ -1937,8 +1962,8 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
1937
1962
  }), le = a(() => {
1938
1963
  const u = ae.value;
1939
1964
  return u.fontSize ? u.fontSize : "1.4em";
1940
- }), W = a(() => {
1941
- const u = ae.value, g = _t.value;
1965
+ }), I = a(() => {
1966
+ const u = ae.value, g = At.value;
1942
1967
  return {
1943
1968
  color: u.textColor,
1944
1969
  padding: `${u.paddingY}rem ${u.paddingX}rem`,
@@ -1946,7 +1971,7 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
1946
1971
  textAlign: xe.value,
1947
1972
  marginTop: g && b.value ? `${u.inputLabelMarginActive}px` : "0"
1948
1973
  };
1949
- }), wt = a(() => {
1974
+ }), _t = a(() => {
1950
1975
  switch (L.value) {
1951
1976
  case "italic":
1952
1977
  return "component__text--italic";
@@ -1955,10 +1980,10 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
1955
1980
  default:
1956
1981
  return "component__text--normal";
1957
1982
  }
1958
- }), Rt = a(() => {
1983
+ }), wt = a(() => {
1959
1984
  const u = ae.value;
1960
- return u.inputStyle !== "line" && _.value ? { borderRadius: `${u.borderRadius}rem` } : {};
1961
- }), Q = a(() => ae.value.font), vt = a(() => ae.value.textColor), it = a(() => ae.value.inputPosition === "top" ? "column" : "column-reverse"), pt = a(() => {
1985
+ return u.inputStyle !== "line" && $.value ? { borderRadius: `${u.borderRadius}rem` } : {};
1986
+ }), Y = a(() => ae.value.font), ut = a(() => ae.value.textColor), rt = a(() => ae.value.inputPosition === "top" ? "column" : "column-reverse"), vt = a(() => {
1962
1987
  const u = {};
1963
1988
  Re.value && Object.keys(Re.value).forEach((qe) => u[`aria-${qe}`] = Re.value[qe]);
1964
1989
  const g = {
@@ -1967,34 +1992,34 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
1967
1992
  ...u
1968
1993
  };
1969
1994
  return Object.fromEntries(
1970
- Object.entries(g).filter(([E, qe]) => qe != null)
1995
+ Object.entries(g).filter(([W, qe]) => qe != null)
1971
1996
  );
1972
1997
  }), B = a(() => {
1973
1998
  const u = ae.value;
1974
1999
  return u.caretColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
1975
- }), Mt = a(() => {
2000
+ }), Rt = a(() => {
1976
2001
  const u = ae.value;
1977
2002
  return u.selectionBgColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
1978
- }), zt = a(() => {
2003
+ }), Mt = a(() => {
1979
2004
  const u = ae.value;
1980
2005
  return u.selectionTextColor || (u.theme === "dark" ? "#000000" : "#ffffff");
1981
- }), Bt = a(() => ({
2006
+ }), Tt = a(() => ({
1982
2007
  caretColor: B.value
1983
- })), Ht = a(() => ({
1984
- "--selection-bg-color": Mt.value,
1985
- "--selection-text-color": zt.value
1986
- })), mt = a(() => {
2008
+ })), jt = a(() => ({
2009
+ "--selection-bg-color": Rt.value,
2010
+ "--selection-text-color": Mt.value
2011
+ })), yt = a(() => {
1987
2012
  const u = ae.value, g = {
1988
2013
  width: `${u.width}px`
1989
2014
  };
1990
2015
  return u.display === "block" ? { width: "auto" } : g;
1991
- }), At = a(() => ce.value ? ce.value : `${N.value}-name-label`), _t = a(() => I.value || H.value.length > 0 || he.value && he.value.trim().length > 0), Dt = a(() => b.value ? I.value || H.value.length > 0 ? F.value : "" : F.value), Ut = a(() => {
1992
- const u = ae.value, g = _t.value, E = g ? u.lightTextColorLabelActive : u.lightTextColorLabel, qe = g ? u.darkTextColorLabelActive : u.darkTextColorLabel;
2016
+ }), Bt = a(() => ce.value ? ce.value : `${D.value}-name-label`), At = a(() => N.value || j.value.length > 0 || he.value && he.value.trim().length > 0), zt = a(() => b.value ? N.value || j.value.length > 0 ? P.value : "" : P.value), Ht = a(() => {
2017
+ const u = ae.value, g = At.value, W = g ? u.lightTextColorLabelActive : u.lightTextColorLabel, qe = g ? u.darkTextColorLabelActive : u.darkTextColorLabel;
1993
2018
  return {
1994
2019
  fontFamily: u.fontFamilyLabel,
1995
2020
  fontSize: g ? u.fontSizeLabelActive : u.fontSizeLabel,
1996
2021
  fontWeight: u.fontWeightLabel,
1997
- color: u.theme === "dark" ? qe : E,
2022
+ color: u.theme === "dark" ? qe : W,
1998
2023
  top: g ? `${u.labelActiveTop}px` : "50%",
1999
2024
  left: g ? `${u.labelActiveLeft}px` : `${u.labelLeft}px`,
2000
2025
  transform: g ? "translateY(0)" : "translateY(-50%)",
@@ -2003,15 +2028,15 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
2003
2028
  padding: g ? u.labelPadding : "0",
2004
2029
  borderRadius: g ? `${u.labelBorderRadius}rem` : "0"
2005
2030
  };
2006
- }), Gt = a(() => {
2031
+ }), Ut = a(() => {
2007
2032
  switch (x.value) {
2008
2033
  case "dark":
2009
2034
  return "component__theme--dark";
2010
2035
  default:
2011
2036
  return "component__theme--light";
2012
2037
  }
2013
- }), Kt = a(() => {
2014
- switch ($e.value) {
2038
+ }), Gt = a(() => {
2039
+ switch (_e.value) {
2015
2040
  case "line":
2016
2041
  return "component__input--line";
2017
2042
  case "border":
@@ -2019,95 +2044,95 @@ const Bl = ["for"], Al = ["id"], _l = { class: "chip-text" }, $l = ["onClick"],
2019
2044
  default:
2020
2045
  return "component__input--background";
2021
2046
  }
2022
- }), Yt = () => {
2047
+ }), Kt = () => {
2023
2048
  C("clicked");
2049
+ }, Yt = () => {
2050
+ N.value = !0, C("focused");
2024
2051
  }, Qt = () => {
2025
- I.value = !0, C("focused");
2026
- }, Jt = () => {
2027
- I.value = !1, C("blurred");
2028
- }, Lt = (u) => {
2052
+ N.value = !1, C("blurred");
2053
+ }, Vt = (u) => {
2029
2054
  if (!(X.value || Z.value) && u.key === "Enter" && he.value.trim() !== "") {
2030
2055
  u.preventDefault();
2031
2056
  let g = he.value.trim();
2032
- be.value && (g = g.toUpperCase()), (R.value || !H.value.includes(g)) && Nt(g), he.value = "";
2057
+ be.value && (g = g.toUpperCase()), (w.value || !j.value.includes(g)) && Dt(g), he.value = "";
2033
2058
  }
2034
- }, Nt = (u) => {
2035
- H.value.push(u), C("added", u);
2059
+ }, Dt = (u) => {
2060
+ j.value.push(u), C("added", u);
2036
2061
  }, r = (u) => {
2037
- H.value = H.value.filter((g) => g !== u), C("removed", u);
2062
+ j.value = j.value.filter((g) => g !== u), C("removed", u);
2038
2063
  };
2039
- return U(G, (u) => {
2040
- H.value = u, C("changed", u);
2041
- }), U(he, (u) => {
2064
+ return H(U, (u) => {
2065
+ j.value = u, C("changed", u);
2066
+ }), H(he, (u) => {
2042
2067
  C("input-changed", u);
2043
- }), (u, g) => n(N) ? (O(), j("div", da({
2068
+ }), (u, g) => o(D) ? (F(), q("div", da({
2044
2069
  key: 0,
2045
- class: ["nb-wrapper", $.value],
2046
- style: [z.value],
2070
+ class: ["nb-wrapper", _.value],
2071
+ style: [M.value],
2047
2072
  role: "input"
2048
- }, pt.value, { onClick: Yt }), [
2049
- n(b) ? (O(), j("label", {
2073
+ }, vt.value, { onClick: Kt }), [
2074
+ o(b) ? (F(), q("label", {
2050
2075
  key: 0,
2051
- for: At.value,
2076
+ for: Bt.value,
2052
2077
  class: "component__label",
2053
- style: Ee([Ut.value])
2054
- }, St(n(fe)), 13, Bl)) : Be("", !0),
2078
+ style: Ee([Ht.value])
2079
+ }, Ct(o(fe)), 13, $l)) : Be("", !0),
2055
2080
  ve("div", {
2056
- id: n(N),
2081
+ id: o(D),
2057
2082
  ref_key: "chipsContainer",
2058
- ref: Vt,
2059
- class: We(["nb-reset", "component", Gt.value, Kt.value]),
2060
- style: Ee([W.value, mt.value, Rt.value])
2083
+ ref: xt,
2084
+ class: We(["nb-reset", "component", Ut.value, Gt.value]),
2085
+ style: Ee([I.value, yt.value, wt.value])
2061
2086
  }, [
2062
- H.value.length > 0 ? (O(), j("div", {
2087
+ j.value.length > 0 ? (F(), q("div", {
2063
2088
  key: 0,
2064
2089
  ref_key: "chips",
2065
- ref: rt,
2090
+ ref: ot,
2066
2091
  class: "chips"
2067
2092
  }, [
2068
- (O(!0), j(qa, null, ja(H.value, (E) => (O(), j("div", {
2069
- key: E,
2093
+ (F(!0), q(qa, null, ja(j.value, (W) => (F(), q("div", {
2094
+ key: W,
2070
2095
  class: "chip"
2071
2096
  }, [
2072
2097
  ia(u.$slots, "chip", {
2073
- chips: H.value,
2074
- chip: E,
2098
+ chips: j.value,
2099
+ chip: W,
2075
2100
  removeChip: r
2076
2101
  }, () => [
2077
- ve("span", _l, St(E), 1),
2078
- !n(X) && !n(Z) ? (O(), j("span", {
2102
+ ve("span", wl, Ct(W), 1),
2103
+ !o(X) && !o(Z) ? (F(), q("span", {
2079
2104
  key: 0,
2080
2105
  class: "chip-remove",
2081
- onClick: (qe) => r(E)
2082
- }, "×", 8, $l)) : Be("", !0)
2106
+ onClick: (qe) => r(W)
2107
+ }, "×", 8, Rl)) : Be("", !0)
2083
2108
  ], !0)
2084
2109
  ]))), 128))
2085
2110
  ], 512)) : Be("", !0),
2086
2111
  pa(ve("input", {
2087
2112
  ref_key: "chipInput",
2088
- ref: kt,
2113
+ ref: St,
2089
2114
  type: "text",
2090
- "onUpdate:modelValue": g[0] || (g[0] = (E) => he.value = E),
2091
- id: At.value,
2092
- name: At.value,
2093
- placeholder: Dt.value,
2094
- readonly: n(Z),
2095
- autocomplete: n(Ce),
2096
- required: n(ge),
2097
- tabindex: n(X) || n(Z) ? -1 : n(ue),
2098
- class: We(["chips-input", wt.value]),
2099
- style: Ee([Bt.value, Ht.value]),
2100
- onKeydown: g[1] || (g[1] = jt((E) => !n(X) && n(ee) && Lt(E), ["enter"])),
2101
- onFocus: Qt,
2102
- onBlur: Jt
2103
- }, null, 46, wl), [
2115
+ "onUpdate:modelValue": g[0] || (g[0] = (W) => he.value = W),
2116
+ id: Bt.value,
2117
+ name: Bt.value,
2118
+ placeholder: zt.value,
2119
+ readonly: o(Z),
2120
+ autocomplete: o(Ce),
2121
+ required: o(ge),
2122
+ tabindex: o(X) || o(Z) ? -1 : o(ue),
2123
+ class: We(["chips-input", _t.value]),
2124
+ style: Ee([Tt.value, jt.value]),
2125
+ onKeydown: g[1] || (g[1] = qt((W) => !o(X) && o(ee) && Vt(W), ["enter"])),
2126
+ onFocus: Yt,
2127
+ onBlur: Qt
2128
+ }, null, 46, Ml), [
2104
2129
  [Ua, he.value]
2105
2130
  ])
2106
- ], 14, Al)
2131
+ ], 14, _l)
2107
2132
  ], 16)) : Be("", !0);
2108
2133
  }
2109
- }), Ml = /* @__PURE__ */ ba(Rl, [["__scopeId", "data-v-3467aba9"]]);
2110
- const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], Il = /* @__PURE__ */ Object.assign({
2134
+ }), Dl = /* @__PURE__ */ ba(zl, [["__scopeId", "data-v-3467aba9"]]);
2135
+ const Nl = ["id"], Il = ["for"], Wl = ["id", "name", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], El = /* @__PURE__ */ Object.assign({
2111
2136
  name: "NbTextarea",
2112
2137
  inheritAttrs: !1
2113
2138
  }, {
@@ -2477,34 +2502,34 @@ const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled",
2477
2502
  ],
2478
2503
  setup(e, { emit: m }) {
2479
2504
  fa((r) => ({
2480
- "047a55d8": I.value,
2481
- ea886f76: n(Xe),
2482
- "5f575c4c": wt.value,
2483
- "49bec09e": Rt.value,
2484
- "6c0f38b6": Q.value,
2485
- "39a7a83b": n(nt),
2486
- f3bddb72: n(yt),
2487
- "57474d63": n(Te),
2488
- "2f3efd35": n(Se),
2489
- dec8fa5e: n(gt),
2490
- "1a17e7ed": n(ye),
2491
- "643b68eb": n(lt),
2492
- "21bee77c": kt.value,
2493
- "07928033": n(st),
2494
- "34a18ea8": At.value,
2505
+ "047a55d8": N.value,
2506
+ ea886f76: o(Qe),
2507
+ "5f575c4c": _t.value,
2508
+ "49bec09e": wt.value,
2509
+ "6c0f38b6": Y.value,
2510
+ "39a7a83b": o(at),
2511
+ f3bddb72: o(gt),
2512
+ "57474d63": o(Te),
2513
+ "2f3efd35": o(Se),
2514
+ dec8fa5e: o(bt),
2515
+ "1a17e7ed": o(ye),
2516
+ "643b68eb": o(tt),
2517
+ "21bee77c": St.value,
2518
+ "07928033": o(st),
2519
+ "34a18ea8": Bt.value,
2495
2520
  "780ea453": ae.value,
2496
- 56538312: $.value,
2497
- "788359bb": z.value,
2498
- dfd2f9d6: W.value,
2521
+ 56538312: _.value,
2522
+ "788359bb": M.value,
2523
+ dfd2f9d6: I.value,
2499
2524
  ecc55bb6: r.styleButtonColor,
2500
2525
  f59f43ec: le.value
2501
2526
  })), sa(() => {
2502
2527
  k.value = je.value;
2503
2528
  }), ma(() => {
2504
- Qt();
2529
+ Yt();
2505
2530
  });
2506
- const C = m, P = e, {
2507
- nbId: N,
2531
+ const C = m, E = e, {
2532
+ nbId: D,
2508
2533
  display: Ve,
2509
2534
  hasTabIndexEnter: pe,
2510
2535
  ariaLabel: Ae,
@@ -2512,42 +2537,42 @@ const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled",
2512
2537
  textColor: se,
2513
2538
  caretColor: X,
2514
2539
  selectionBgColor: Pe,
2515
- selectionTextColor: _e,
2540
+ selectionTextColor: $e,
2516
2541
  hasBorderRadius: ne,
2517
- borderRadius: G,
2518
- disabled: R,
2542
+ borderRadius: U,
2543
+ disabled: w,
2519
2544
  fontFamily: oe,
2520
2545
  fontSize: de,
2521
- fontWeight: K,
2546
+ fontWeight: G,
2522
2547
  fontFamilyMsg: Le,
2523
2548
  fontSizeMsg: ce,
2524
- fontWeightMsg: F,
2549
+ fontWeightMsg: P,
2525
2550
  textMessageColor: be,
2526
2551
  inputWidth: Z,
2527
2552
  inputStyle: Ce,
2528
2553
  activeTextStyle: ge,
2529
2554
  inputReadonly: xe,
2530
- hasTrim: _,
2555
+ hasTrim: $,
2531
2556
  inputUppercase: L,
2532
2557
  inputName: x,
2533
- inputPlaceholder: $e,
2558
+ inputPlaceholder: _e,
2534
2559
  inputText: je,
2535
2560
  theme: we,
2536
- tabindex: at,
2561
+ tabindex: et,
2537
2562
  lightBgColor: ye,
2538
- lightBgColorFocus: lt,
2539
- lightDisabledBgColor: gt,
2540
- lightTextColor: Xe,
2563
+ lightBgColorFocus: tt,
2564
+ lightDisabledBgColor: bt,
2565
+ lightTextColor: Qe,
2541
2566
  darkBgColor: Te,
2542
2567
  darkBgColorFocus: Se,
2543
- darkDisabledBgColor: yt,
2544
- darkTextColor: nt,
2568
+ darkDisabledBgColor: gt,
2569
+ darkTextColor: at,
2545
2570
  textAlign: st,
2546
2571
  showMsg: dt,
2547
2572
  hasMsg: ct,
2548
2573
  showLabel: He,
2549
2574
  labelBackground: Ue,
2550
- labelPadding: Ze,
2575
+ labelPadding: Je,
2551
2576
  labelBorderRadius: Ge,
2552
2577
  labelLeft: y,
2553
2578
  inputLabelMarginActive: V,
@@ -2560,100 +2585,100 @@ const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled",
2560
2585
  lightTextColorLabel: d,
2561
2586
  lightTextColorLabelActive: b,
2562
2587
  darkTextColorLabel: fe,
2563
- darkTextColorLabelActive: Y,
2588
+ darkTextColorLabelActive: K,
2564
2589
  rows: te,
2565
2590
  cols: Me,
2566
2591
  maxlength: ze,
2567
2592
  minlength: Fe,
2568
2593
  wrap: Ye,
2569
- spellcheck: et,
2570
- autofocus: ot,
2571
- resize: ut,
2594
+ spellcheck: Xe,
2595
+ autofocus: lt,
2596
+ resize: nt,
2572
2597
  autoResize: ft,
2573
2598
  minRows: h,
2574
- maxRows: M
2575
- } = va(P), k = J(""), Oe = J(!1), T = a(() => {
2576
- const r = R.value ? "component-disabled" : "", u = Ve.value !== "b" ? "inline-block" : "block", g = se ? se.value : "ffffff", E = X.value ? X.value : "", qe = Pe.value ? Pe.value : "", It = _e.value ? _e.value : "", Xt = ne.value ? ne.value : !1, ht = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, Wt = oe.value ? oe.value : "'Lato', sans-serif", Et = de.value ? de.value : "1.4em", Zt = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, ea = Le.value ? Le.value : "'Lato', sans-serif", Ct = ce.value ? ce.value : "1em", ta = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, aa = be.value ? be.value : "#f15574", la = Z.value ? Z.value : 200, na = ge.value ? ge.value : "normal", $t = xe.value ? xe.value : !1, oa = L.value ? L.value : !1, ua = we.value ? we.value : "normal", ra = st.value ? st.value : "left", Pt = Ce.value ? Ce.value : "background", Ft = He.value ? He.value : !1, Ot = y.value !== 0 && !y.value || y.value < 0 ? 5 : y.value, bt = Ue.value ? Ue.value : "transparent", Tt = V.value !== 0 && !V.value || V.value < 0 ? 15 : V.value, xt = Ze.value ? Ze.value : "1px 5px", qt = Ge.value !== 0 && !Ge.value || Ge.value < 0 ? 0 : Ge.value, o = ue.value === null || ue.value === void 0 ? -13 : ue.value, f = ee.value === null || ee.value === void 0 ? -10 : ee.value, w = me.value ? me.value : "'Lato', sans-serif", Qe = Re.value ? Re.value : "1em", Je = Ke.value ? Ke.value : "0.8em", t = re.value ? re.value : 400, l = d.value ? d.value : "#ffffff", s = fe.value ? fe.value : "#000000", i = b.value ? b.value : "#ffffff", v = Y.value ? Y.value : "#000000", c = te.value && te.value > 0 ? te.value : 2, p = Me.value && Me.value > 0 ? Me.value : 20, S = ze.value !== null && ze.value >= 0 ? ze.value : null, A = Fe.value !== null && Fe.value >= 0 ? Fe.value : null, D = Ye.value && ["soft", "hard", "off"].includes(Ye.value) ? Ye.value : "soft", q = et.value !== void 0 ? et.value : "default", ie = ot.value !== void 0 ? ot.value : !1, De = ut.value && ["none", "both", "vertical", "horizontal"].includes(ut.value) ? ut.value : "vertical", tt = ft.value !== void 0 ? ft.value : !1, Ne = h.value !== null && h.value > 0 ? h.value : null, Ie = M.value !== null && M.value > 0 ? M.value : null;
2599
+ maxRows: R
2600
+ } = va(E), k = J(""), Oe = J(!1), T = a(() => {
2601
+ const r = w.value ? "component-disabled" : "", u = Ve.value !== "b" ? "inline-block" : "block", g = se ? se.value : "ffffff", W = X.value ? X.value : "", qe = Pe.value ? Pe.value : "", Nt = $e.value ? $e.value : "", Jt = ne.value ? ne.value : !1, mt = U.value !== 0 && !U.value || U.value < 0 ? 0 : U.value, It = oe.value ? oe.value : "'Lato', sans-serif", Wt = de.value ? de.value : "1.4em", Xt = G.value !== 0 && !G.value || G.value < 0 ? 100 : G.value, Zt = Le.value ? Le.value : "'Lato', sans-serif", ht = ce.value ? ce.value : "1em", ea = P.value !== 0 && !P.value || P.value < 0 ? 100 : P.value, ta = be.value ? be.value : "#f15574", aa = Z.value ? Z.value : 200, la = ge.value ? ge.value : "normal", $t = xe.value ? xe.value : !1, na = L.value ? L.value : !1, oa = we.value ? we.value : "normal", ua = st.value ? st.value : "left", Et = Ce.value ? Ce.value : "background", Pt = He.value ? He.value : !1, Ft = y.value !== 0 && !y.value || y.value < 0 ? 5 : y.value, pt = Ue.value ? Ue.value : "transparent", kt = V.value !== 0 && !V.value || V.value < 0 ? 15 : V.value, it = Je.value ? Je.value : "1px 5px", Lt = Ge.value !== 0 && !Ge.value || Ge.value < 0 ? 0 : Ge.value, ra = ue.value === null || ue.value === void 0 ? -13 : ue.value, Ot = ee.value === null || ee.value === void 0 ? -10 : ee.value, l = me.value ? me.value : "'Lato', sans-serif", c = Re.value ? Re.value : "1em", Q = Ke.value ? Ke.value : "0.8em", t = re.value ? re.value : 400, n = d.value ? d.value : "#ffffff", s = fe.value ? fe.value : "#000000", i = b.value ? b.value : "#ffffff", v = K.value ? K.value : "#000000", f = te.value && te.value > 0 ? te.value : 2, p = Me.value && Me.value > 0 ? Me.value : 20, S = ze.value !== null && ze.value >= 0 ? ze.value : null, A = Fe.value !== null && Fe.value >= 0 ? Fe.value : null, z = Ye.value && ["soft", "hard", "off"].includes(Ye.value) ? Ye.value : "soft", O = Xe.value !== void 0 ? Xe.value : "default", ie = lt.value !== void 0 ? lt.value : !1, De = nt.value && ["none", "both", "vertical", "horizontal"].includes(nt.value) ? nt.value : "vertical", Ze = ft.value !== void 0 ? ft.value : !1, Ne = h.value !== null && h.value > 0 ? h.value : null, Ie = R.value !== null && R.value > 0 ? R.value : null;
2577
2602
  return {
2578
2603
  disabled: r,
2579
2604
  display: u,
2580
- font: Wt,
2581
- fontSize: Et,
2582
- fontWeight: Zt,
2583
- fontFamilyMsg: ea,
2584
- fontSizeMsg: Ct,
2585
- fontWeightMsg: ta,
2586
- textMessageColor: aa,
2605
+ font: It,
2606
+ fontSize: Wt,
2607
+ fontWeight: Xt,
2608
+ fontFamilyMsg: Zt,
2609
+ fontSizeMsg: ht,
2610
+ fontWeightMsg: ea,
2611
+ textMessageColor: ta,
2587
2612
  textColor: g,
2588
- caretColor: E,
2613
+ caretColor: W,
2589
2614
  selectionBgColor: qe,
2590
- selectionTextColor: It,
2591
- hasBorderRadius: Xt,
2592
- borderRadius: ht,
2593
- textAlign: ra,
2594
- inputWidth: la,
2595
- activeTextStyle: na,
2615
+ selectionTextColor: Nt,
2616
+ hasBorderRadius: Jt,
2617
+ borderRadius: mt,
2618
+ textAlign: ua,
2619
+ inputWidth: aa,
2620
+ activeTextStyle: la,
2596
2621
  inputReadonly: $t,
2597
- inputUppercase: oa,
2598
- theme: ua,
2599
- inputStyle: Pt,
2600
- showLabel: Ft,
2601
- labelBackground: bt,
2602
- labelPadding: xt,
2603
- labelBorderRadius: qt,
2604
- labelLeft: Ot,
2605
- inputLabelMarginActive: Tt,
2606
- labelActiveTop: o,
2607
- labelActiveLeft: f,
2608
- fontFamilyLabel: w,
2609
- fontSizeLabel: Qe,
2610
- fontSizeLabelActive: Je,
2622
+ inputUppercase: na,
2623
+ theme: oa,
2624
+ inputStyle: Et,
2625
+ showLabel: Pt,
2626
+ labelBackground: pt,
2627
+ labelPadding: it,
2628
+ labelBorderRadius: Lt,
2629
+ labelLeft: Ft,
2630
+ inputLabelMarginActive: kt,
2631
+ labelActiveTop: ra,
2632
+ labelActiveLeft: Ot,
2633
+ fontFamilyLabel: l,
2634
+ fontSizeLabel: c,
2635
+ fontSizeLabelActive: Q,
2611
2636
  fontWeightLabel: t,
2612
- lightTextColorLabel: l,
2637
+ lightTextColorLabel: n,
2613
2638
  darkTextColorLabel: s,
2614
2639
  lightTextColorLabelActive: i,
2615
2640
  darkTextColorLabelActive: v,
2616
- rows: c,
2641
+ rows: f,
2617
2642
  cols: p,
2618
2643
  maxlength: S,
2619
2644
  minlength: A,
2620
- wrap: D,
2621
- spellcheck: q,
2645
+ wrap: z,
2646
+ spellcheck: O,
2622
2647
  autofocus: ie,
2623
2648
  resize: De,
2624
- autoResize: tt,
2649
+ autoResize: Ze,
2625
2650
  minRows: Ne,
2626
2651
  maxRows: Ie
2627
2652
  };
2628
- }), he = a(() => T.value.disabled), Vt = a(() => ({
2653
+ }), he = a(() => T.value.disabled), xt = a(() => ({
2629
2654
  display: T.value.display
2630
- })), kt = a(() => {
2655
+ })), St = a(() => {
2631
2656
  const r = T.value;
2632
2657
  return r.fontSize ? r.fontSize : "1.4em";
2633
- }), rt = a(() => {
2634
- const r = T.value, u = mt.value;
2658
+ }), ot = a(() => {
2659
+ const r = T.value, u = yt.value;
2635
2660
  return {
2636
2661
  fontWeight: r.fontWeight,
2637
2662
  marginTop: u && He.value ? `${r.inputLabelMarginActive}px` : "0"
2638
2663
  };
2639
- }), H = a(() => {
2664
+ }), j = a(() => {
2640
2665
  const r = T.value;
2641
2666
  return r.inputStyle !== "line" && r.hasBorderRadius ? { borderRadius: `${r.borderRadius}rem` } : {};
2642
- }), I = a(() => T.value.font), ae = a(() => T.value.fontFamilyMsg), $ = a(() => T.value.fontSizeMsg), z = a(() => T.value.fontWeightMsg), le = a(() => T.value.textColor), W = a(() => T.value.textMessageColor), wt = a(() => {
2667
+ }), N = a(() => T.value.font), ae = a(() => T.value.fontFamilyMsg), _ = a(() => T.value.fontSizeMsg), M = a(() => T.value.fontWeightMsg), le = a(() => T.value.textColor), I = a(() => T.value.textMessageColor), _t = a(() => {
2643
2668
  const r = T.value;
2644
2669
  return r.caretColor || (r.theme === "dark" ? "#00d4ff" : "#007bff");
2645
- }), Rt = a(() => {
2670
+ }), wt = a(() => {
2646
2671
  const r = T.value;
2647
2672
  return r.selectionBgColor || (r.theme === "dark" ? "#00d4ff" : "#007bff");
2648
- }), Q = a(() => {
2673
+ }), Y = a(() => {
2649
2674
  const r = T.value;
2650
2675
  return r.selectionTextColor || (r.theme === "dark" ? "#000000" : "#ffffff");
2651
- }), vt = a(() => {
2676
+ }), ut = a(() => {
2652
2677
  const r = T.value;
2653
2678
  return r.display === "block" ? { width: "100%" } : {
2654
2679
  width: `${r.inputWidth}px`
2655
2680
  };
2656
- }), it = a(() => {
2681
+ }), rt = a(() => {
2657
2682
  switch (Ce.value) {
2658
2683
  case "line":
2659
2684
  return "component__input--line";
@@ -2662,7 +2687,7 @@ const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled",
2662
2687
  default:
2663
2688
  return "component__input--background";
2664
2689
  }
2665
- }), pt = a(() => {
2690
+ }), vt = a(() => {
2666
2691
  switch (T.value.activeTextStyle) {
2667
2692
  case "italic":
2668
2693
  return "component__input--active--italic";
@@ -2678,26 +2703,26 @@ const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled",
2678
2703
  default:
2679
2704
  return "component__theme--light";
2680
2705
  }
2681
- }), Mt = a(() => T.value.inputReadonly ? "component__input--read-only" : ""), zt = a(() => T.value.inputUppercase ? "component__input--uppercase" : ""), Bt = a(() => x.value ? x.value : `${N.value}-name-label`), Ht = a(() => He.value ? Oe.value ? $e.value : "" : $e.value), mt = a(() => Oe.value || k.value && k.value.trim().length > 0);
2706
+ }), Rt = a(() => T.value.inputReadonly ? "component__input--read-only" : ""), Mt = a(() => T.value.inputUppercase ? "component__input--uppercase" : ""), Tt = a(() => x.value ? x.value : `${D.value}-name-label`), jt = a(() => He.value ? Oe.value ? _e.value : "" : _e.value), yt = a(() => Oe.value || k.value && k.value.trim().length > 0);
2682
2707
  a(() => Oe.value ? "component__input--active" : "component__input--no-active");
2683
- const At = a(() => "6px 10px"), _t = a(() => !!(dt.value && ct.value)), Dt = a(() => {
2708
+ const Bt = a(() => "6px 10px"), At = a(() => !!(dt.value && ct.value)), zt = a(() => {
2684
2709
  const r = {};
2685
- ke.value && Object.keys(ke.value).forEach((E) => r[`aria-${E}`] = ke.value[E]);
2710
+ ke.value && Object.keys(ke.value).forEach((W) => r[`aria-${W}`] = ke.value[W]);
2686
2711
  const u = {
2687
2712
  "aria-label": Ae.value,
2688
- "aria-disabled": R.value,
2713
+ "aria-disabled": w.value,
2689
2714
  ...r
2690
2715
  };
2691
2716
  return Object.fromEntries(
2692
- Object.entries(u).filter(([g, E]) => E != null)
2717
+ Object.entries(u).filter(([g, W]) => W != null)
2693
2718
  );
2694
- }), Ut = a(() => {
2695
- const r = T.value, u = mt.value, g = u ? r.lightTextColorLabelActive : r.lightTextColorLabel, E = u ? r.darkTextColorLabelActive : r.darkTextColorLabel;
2719
+ }), Ht = a(() => {
2720
+ const r = T.value, u = yt.value, g = u ? r.lightTextColorLabelActive : r.lightTextColorLabel, W = u ? r.darkTextColorLabelActive : r.darkTextColorLabel;
2696
2721
  return {
2697
2722
  fontFamily: r.fontFamilyLabel,
2698
2723
  fontSize: u ? r.fontSizeLabelActive : r.fontSizeLabel,
2699
2724
  fontWeight: r.fontWeightLabel,
2700
- color: r.theme === "dark" ? E : g,
2725
+ color: r.theme === "dark" ? W : g,
2701
2726
  top: u ? `${r.labelActiveTop}px` : "50%",
2702
2727
  left: u ? `${r.labelActiveLeft}px` : `${r.labelLeft}px`,
2703
2728
  transform: u ? "translateY(0)" : "translateY(-50%)",
@@ -2711,7 +2736,7 @@ const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled",
2711
2736
  const r = T.value;
2712
2737
  return r.theme === "dark" ? r.darkTextColorLabelActive : r.lightTextColorLabelActive;
2713
2738
  });
2714
- const Gt = a(() => {
2739
+ const Ut = a(() => {
2715
2740
  const r = T.value, u = {
2716
2741
  rows: r.rows,
2717
2742
  cols: r.cols,
@@ -2720,84 +2745,84 @@ const zl = ["id"], Dl = ["for"], Nl = ["id", "name", "placeholder", "disabled",
2720
2745
  autofocus: r.autofocus || void 0
2721
2746
  };
2722
2747
  return r.maxlength !== null && (u.maxlength = r.maxlength), r.minlength !== null && (u.minlength = r.minlength), u;
2723
- }), Kt = a(() => ({
2748
+ }), Gt = a(() => ({
2724
2749
  resize: T.value.resize
2725
- })), Yt = a(() => T.value.wrap === "off" ? {
2750
+ })), Kt = a(() => T.value.wrap === "off" ? {
2726
2751
  whiteSpace: "nowrap",
2727
2752
  overflowX: "auto"
2728
- } : {}), Qt = () => {
2753
+ } : {}), Yt = () => {
2729
2754
  k.value = je.value;
2730
- }, Jt = () => {
2755
+ }, Qt = () => {
2731
2756
  C("clicked");
2732
- }, Lt = () => {
2733
- R.value || T.value.inputReadonly || !pe.value || C("entered", k.value);
2734
- }, Nt = () => {
2757
+ }, Vt = () => {
2758
+ w.value || T.value.inputReadonly || !pe.value || C("entered", k.value);
2759
+ }, Dt = () => {
2735
2760
  let r = k.value;
2736
- _.value && (r = r.trim()), C("current-value", r);
2761
+ $.value && (r = r.trim()), C("current-value", r);
2737
2762
  };
2738
- return U(je, (r) => {
2763
+ return H(je, (r) => {
2739
2764
  r !== k.value && (k.value = r);
2740
- }, { immediate: !0 }), U(k, (r) => {
2741
- _.value && (r = r.trim()), C("changed", r);
2742
- }), U(Oe, (r) => {
2765
+ }, { immediate: !0 }), H(k, (r) => {
2766
+ $.value && (r = r.trim()), C("changed", r);
2767
+ }), H(Oe, (r) => {
2743
2768
  C(r ? "focused" : "blurred");
2744
- }), U(k, () => {
2745
- Nt();
2746
- }, { immediate: !0 }), (r, u) => n(N) ? (O(), j("div", da({
2769
+ }), H(k, () => {
2770
+ Dt();
2771
+ }, { immediate: !0 }), (r, u) => o(D) ? (F(), q("div", da({
2747
2772
  key: 0,
2748
2773
  class: ["nb-wrapper", he.value],
2749
- style: [Vt.value, vt.value, H.value],
2774
+ style: [xt.value, ut.value, j.value],
2750
2775
  role: "input"
2751
- }, Dt.value), [
2776
+ }, zt.value), [
2752
2777
  ve("div", {
2753
- id: n(N),
2754
- class: We(["nb-reset", "component", B.value, Mt.value, it.value]),
2755
- style: Ee([rt.value, vt.value, H.value]),
2756
- onClick: Jt
2778
+ id: o(D),
2779
+ class: We(["nb-reset", "component", B.value, Rt.value, rt.value]),
2780
+ style: Ee([ot.value, ut.value, j.value]),
2781
+ onClick: Qt
2757
2782
  }, [
2758
- n(He) ? (O(), j("label", {
2783
+ o(He) ? (F(), q("label", {
2759
2784
  key: 0,
2760
- for: Bt.value,
2785
+ for: Tt.value,
2761
2786
  class: "component__label",
2762
- style: Ee([Ut.value])
2763
- }, St(e.label), 13, Dl)) : Be("", !0),
2787
+ style: Ee([Ht.value])
2788
+ }, Ct(e.label), 13, Il)) : Be("", !0),
2764
2789
  pa(ve("textarea", da({
2765
2790
  "onUpdate:modelValue": u[0] || (u[0] = (g) => k.value = g),
2766
- id: Bt.value,
2767
- name: Bt.value
2768
- }, Gt.value, {
2791
+ id: Tt.value,
2792
+ name: Tt.value
2793
+ }, Ut.value, {
2769
2794
  class: ["component__input", [
2770
- zt.value,
2771
- pt.value
2795
+ Mt.value,
2796
+ vt.value
2772
2797
  ]],
2773
- placeholder: Ht.value,
2774
- disabled: n(R) || n(xe),
2798
+ placeholder: jt.value,
2799
+ disabled: o(w) || o(xe),
2775
2800
  required: e.required,
2776
- readonly: n(xe),
2801
+ readonly: o(xe),
2777
2802
  autocomplete: e.inputAutocomplete,
2778
- tabindex: n(R) || n(xe) ? -1 : n(at),
2803
+ tabindex: o(w) || o(xe) ? -1 : o(et),
2779
2804
  role: "textbox",
2780
- style: [H.value, Kt.value, Yt.value],
2805
+ style: [j.value, Gt.value, Kt.value],
2781
2806
  onFocus: u[1] || (u[1] = (g) => Oe.value = !0),
2782
2807
  onBlur: u[2] || (u[2] = (g) => Oe.value = !1),
2783
- onInput: Nt,
2784
- onKeydown: u[3] || (u[3] = jt((g) => !n(R) && n(pe) && Lt(), ["enter"]))
2785
- }), null, 16, Nl), [
2808
+ onInput: Dt,
2809
+ onKeydown: u[3] || (u[3] = qt((g) => !o(w) && o(pe) && Vt(), ["enter"]))
2810
+ }), null, 16, Wl), [
2786
2811
  [Ua, k.value]
2787
2812
  ])
2788
- ], 14, zl),
2789
- _t.value ? (O(), j("div", {
2813
+ ], 14, Nl),
2814
+ At.value ? (F(), q("div", {
2790
2815
  key: 0,
2791
2816
  class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
2792
2817
  }, [
2793
2818
  ia(r.$slots, "message", {}, () => [
2794
- ga(St(e.message), 1)
2819
+ ga(Ct(e.message), 1)
2795
2820
  ], !0)
2796
2821
  ], 2)) : Be("", !0)
2797
2822
  ], 16)) : Be("", !0);
2798
2823
  }
2799
- }), Wl = /* @__PURE__ */ ba(Il, [["__scopeId", "data-v-c4b7eb6b"]]);
2800
- const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], Ol = /* @__PURE__ */ Object.assign({
2824
+ }), Pl = /* @__PURE__ */ ba(El, [["__scopeId", "data-v-c4b7eb6b"]]);
2825
+ const Fl = ["id"], Ol = ["for"], ql = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], jl = /* @__PURE__ */ Object.assign({
2801
2826
  name: "NbDatePicker",
2802
2827
  inheritAttrs: !1
2803
2828
  }, {
@@ -3139,39 +3164,39 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3139
3164
  ],
3140
3165
  setup(e, { emit: m }) {
3141
3166
  fa((t) => ({
3142
- "61b2bd67": pt.value,
3143
- "7d03ac89": Q.value,
3144
- cfe0b650: n(Ue),
3145
- "0701dbce": mt.value,
3146
- "51e828ab": At.value,
3147
- "0f7ed183": _t.value,
3148
- d6272570: n(V),
3149
- "39af1994": n(y),
3150
- "3723f1b0": n(Ze),
3151
- "66d8e666": Bt.value,
3152
- "370e0108": n(Ge),
3153
- "26ed153e": It.value,
3154
- "68d2e63a": Xt.value,
3155
- "4ece6524": n(He),
3156
- "35cfcd40": n(dt),
3157
- "564cdf78": n(ct),
3158
- "32f5d3c0": n(ue),
3167
+ "61b2bd67": vt.value,
3168
+ "7d03ac89": Y.value,
3169
+ cfe0b650: o(Ue),
3170
+ "0701dbce": yt.value,
3171
+ "51e828ab": Bt.value,
3172
+ "0f7ed183": At.value,
3173
+ d6272570: o(V),
3174
+ "39af1994": o(y),
3175
+ "3723f1b0": o(Je),
3176
+ "66d8e666": Tt.value,
3177
+ "370e0108": o(Ge),
3178
+ "26ed153e": Nt.value,
3179
+ "68d2e63a": Jt.value,
3180
+ "4ece6524": o(He),
3181
+ "35cfcd40": o(dt),
3182
+ "564cdf78": o(ct),
3183
+ "32f5d3c0": o(ue),
3159
3184
  "01671dff": g.value,
3160
3185
  "57eb48a0": B.value,
3161
- "19098e42": Mt.value,
3162
- "6a94d048": zt.value,
3163
- cf8029bc: Ht.value,
3186
+ "19098e42": Rt.value,
3187
+ "6a94d048": Mt.value,
3188
+ cf8029bc: jt.value,
3164
3189
  dd275410: t.styleButtonColor
3165
3190
  }));
3166
- const C = nl(
3191
+ const C = ul(
3167
3192
  () => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
3168
3193
  );
3169
3194
  sa(() => {
3170
3195
  h.value = we.value;
3171
3196
  }), ma(() => {
3172
- Wt();
3197
+ It();
3173
3198
  });
3174
- const P = m, N = e, {
3199
+ const E = m, D = e, {
3175
3200
  nbId: Ve,
3176
3201
  display: pe,
3177
3202
  hasTabIndexEnter: Ae,
@@ -3179,42 +3204,42 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3179
3204
  ariaAttrs: se,
3180
3205
  caretColor: X,
3181
3206
  selectionBgColor: Pe,
3182
- selectionTextColor: _e,
3207
+ selectionTextColor: $e,
3183
3208
  hasBorderRadius: ne,
3184
- borderRadius: G,
3185
- disabled: R,
3209
+ borderRadius: U,
3210
+ disabled: w,
3186
3211
  fontFamily: oe,
3187
3212
  fontSize: de,
3188
- fontWeight: K,
3213
+ fontWeight: G,
3189
3214
  fontFamilyMsg: Le,
3190
3215
  fontSizeMsg: ce,
3191
- fontWeightMsg: F,
3216
+ fontWeightMsg: P,
3192
3217
  textMessageColor: be,
3193
3218
  inputWidth: Z,
3194
3219
  inputStyle: Ce,
3195
3220
  activeTextStyle: ge,
3196
3221
  sizeMediaQuery: xe,
3197
- inputReadonly: _,
3222
+ inputReadonly: $,
3198
3223
  inputType: L,
3199
3224
  hasTrim: x,
3200
- inputUppercase: $e,
3225
+ inputUppercase: _e,
3201
3226
  inputName: je,
3202
3227
  inputText: we,
3203
- min: at,
3228
+ min: et,
3204
3229
  max: ye,
3205
- step: lt,
3206
- useCustomCalendar: gt,
3207
- locale: Xe,
3230
+ step: tt,
3231
+ useCustomCalendar: bt,
3232
+ locale: Qe,
3208
3233
  theme: Te,
3209
3234
  allowRange: Se,
3210
- calendarZIndex: yt,
3211
- calendarWidth: nt,
3235
+ calendarZIndex: gt,
3236
+ calendarWidth: at,
3212
3237
  tabindex: st,
3213
3238
  lightBgColor: dt,
3214
3239
  lightBgColorFocus: ct,
3215
3240
  lightDisabledBgColor: He,
3216
3241
  lightTextColor: Ue,
3217
- darkBgColor: Ze,
3242
+ darkBgColor: Je,
3218
3243
  darkBgColorFocus: Ge,
3219
3244
  darkDisabledBgColor: y,
3220
3245
  darkTextColor: V,
@@ -3227,62 +3252,62 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3227
3252
  labelBorderRadius: d,
3228
3253
  labelLeft: b,
3229
3254
  inputLabelMarginActive: fe,
3230
- labelActiveTop: Y,
3255
+ labelActiveTop: K,
3231
3256
  labelActiveLeft: te,
3232
3257
  fontFamilyLabel: Me,
3233
3258
  fontSizeLabel: ze,
3234
3259
  fontSizeLabelActive: Fe,
3235
3260
  fontWeightLabel: Ye,
3236
- lightTextColorLabel: et,
3237
- lightTextColorLabelActive: ot,
3238
- darkTextColorLabel: ut,
3261
+ lightTextColorLabel: Xe,
3262
+ lightTextColorLabelActive: lt,
3263
+ darkTextColorLabel: nt,
3239
3264
  darkTextColorLabelActive: ft
3240
- } = va(N), h = J(""), M = J(""), k = J(""), Oe = J(""), T = J(!1), he = J(!1), Vt = a(() => !nt.value || nt.value < 280 ? 280 : parseInt(nt.value, 10)), kt = a(() => {
3265
+ } = va(D), h = J(""), R = J(""), k = J(""), Oe = J(""), T = J(!1), he = J(!1), xt = a(() => !at.value || at.value < 280 ? 280 : parseInt(at.value, 10)), St = a(() => {
3241
3266
  if (!h.value)
3242
3267
  return null;
3243
3268
  if (Se.value && typeof h.value == "string" && h.value.startsWith("{"))
3244
3269
  try {
3245
3270
  const t = JSON.parse(h.value);
3246
3271
  if (t && (t.startDate || t.endDate)) {
3247
- const l = (s) => {
3272
+ const n = (s) => {
3248
3273
  if (!s)
3249
3274
  return null;
3250
3275
  if (/^\d{4}-\d{2}-\d{2}$/.test(s)) {
3251
- const [i, v, c] = s.split("-").map(Number);
3252
- return new Date(i, v - 1, c);
3276
+ const [i, v, f] = s.split("-").map(Number);
3277
+ return new Date(i, v - 1, f);
3253
3278
  }
3254
3279
  return new Date(s);
3255
3280
  };
3256
3281
  return {
3257
- startDate: t.startDate ? l(t.startDate) : null,
3258
- endDate: t.endDate ? l(t.endDate) : null
3282
+ startDate: t.startDate ? n(t.startDate) : null,
3283
+ endDate: t.endDate ? n(t.endDate) : null
3259
3284
  };
3260
3285
  }
3261
3286
  } catch {
3262
3287
  }
3263
3288
  if (L.value === "date" && typeof h.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(h.value)) {
3264
- const [t, l, s] = h.value.split("-").map(Number);
3265
- return new Date(t, l - 1, s);
3289
+ const [t, n, s] = h.value.split("-").map(Number);
3290
+ return new Date(t, n - 1, s);
3266
3291
  }
3267
3292
  return h.value;
3268
- }), rt = (t, l, s) => {
3293
+ }), ot = (t, n, s) => {
3269
3294
  if (!t)
3270
3295
  return "";
3271
- const i = s || Xe.value;
3272
- if (l === "date") {
3296
+ const i = s || Qe.value;
3297
+ if (n === "date") {
3273
3298
  if (Se.value && typeof t == "string" && t.startsWith("{"))
3274
3299
  try {
3275
3300
  const v = JSON.parse(t);
3276
3301
  if (v && (v.startDate || v.endDate)) {
3277
- const c = (A) => {
3302
+ const f = (A) => {
3278
3303
  if (!A)
3279
3304
  return "";
3280
3305
  if (/^\d{4}-\d{2}-\d{2}$/.test(A)) {
3281
- const [D, q, ie] = A.split("-");
3282
- return i === "pt-BR" ? `${ie}/${q}/${D}` : `${q}/${ie}/${D}`;
3306
+ const [z, O, ie] = A.split("-");
3307
+ return i === "pt-BR" ? `${ie}/${O}/${z}` : `${O}/${ie}/${z}`;
3283
3308
  }
3284
3309
  return A;
3285
- }, p = c(v.startDate), S = c(v.endDate);
3310
+ }, p = f(v.startDate), S = f(v.endDate);
3286
3311
  if (p && S)
3287
3312
  return `${p} - ${S}`;
3288
3313
  if (p)
@@ -3293,23 +3318,23 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3293
3318
  } catch {
3294
3319
  }
3295
3320
  if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}$/.test(t)) {
3296
- const [v, c, p] = t.split("-");
3297
- return i === "pt-BR" ? `${p}/${c}/${v}` : `${c}/${p}/${v}`;
3321
+ const [v, f, p] = t.split("-");
3322
+ return i === "pt-BR" ? `${p}/${f}/${v}` : `${f}/${p}/${v}`;
3298
3323
  }
3299
3324
  return t;
3300
- } else if (l === "datetime-local") {
3325
+ } else if (n === "datetime-local") {
3301
3326
  if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
3302
- const [v, c] = t.split("T"), [p, S, A] = v.split("-");
3303
- return i === "pt-BR" ? `${A}/${S}/${p} ${c}` : `${S}/${A}/${p} ${c}`;
3327
+ const [v, f] = t.split("T"), [p, S, A] = v.split("-");
3328
+ return i === "pt-BR" ? `${A}/${S}/${p} ${f}` : `${S}/${A}/${p} ${f}`;
3304
3329
  }
3305
3330
  return t;
3306
- } else if (l === "month") {
3331
+ } else if (n === "month") {
3307
3332
  if (typeof t == "string" && /^\d{4}-\d{2}$/.test(t)) {
3308
- const [v, c] = t.split("-");
3309
- return `${c}/${v}`;
3333
+ const [v, f] = t.split("-");
3334
+ return `${f}/${v}`;
3310
3335
  }
3311
3336
  return t;
3312
- } else if (l === "week") {
3337
+ } else if (n === "week") {
3313
3338
  if (typeof t == "string" && /^\d{4}-W\d{2}$/i.test(t)) {
3314
3339
  const v = t.match(/^(\d{4})-W(\d{2})$/i);
3315
3340
  if (v)
@@ -3318,34 +3343,34 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3318
3343
  return t;
3319
3344
  }
3320
3345
  return t;
3321
- }, H = (t, l, s) => {
3346
+ }, j = (t, n, s) => {
3322
3347
  if (!t || !t.trim())
3323
3348
  return "";
3324
- const i = t.trim(), v = s || Xe.value;
3325
- if (l === "date") {
3349
+ const i = t.trim(), v = s || Qe.value;
3350
+ if (n === "date") {
3326
3351
  if (Se.value && i.includes("-")) {
3327
- const c = i.split(/\s*-\s*/).map((D) => D.trim()), p = (D) => {
3328
- if (!D)
3352
+ const f = i.split(/\s*-\s*/).map((z) => z.trim()), p = (z) => {
3353
+ if (!z)
3329
3354
  return null;
3330
- if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(D)) {
3331
- const q = D.split("/");
3355
+ if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(z)) {
3356
+ const O = z.split("/");
3332
3357
  if (v === "pt-BR") {
3333
- const [ie, De, tt] = q, Ne = ie.padStart(2, "0"), Ie = De.padStart(2, "0");
3334
- return `${tt}-${Ie}-${Ne}`;
3358
+ const [ie, De, Ze] = O, Ne = ie.padStart(2, "0"), Ie = De.padStart(2, "0");
3359
+ return `${Ze}-${Ie}-${Ne}`;
3335
3360
  } else {
3336
- const [ie, De, tt] = q, Ne = De.padStart(2, "0"), Ie = ie.padStart(2, "0");
3337
- return `${tt}-${Ie}-${Ne}`;
3361
+ const [ie, De, Ze] = O, Ne = De.padStart(2, "0"), Ie = ie.padStart(2, "0");
3362
+ return `${Ze}-${Ie}-${Ne}`;
3338
3363
  }
3339
- } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(D)) {
3340
- const q = D.split("-"), [ie, De, tt] = q, Ne = tt.padStart(2, "0"), Ie = De.padStart(2, "0");
3364
+ } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(z)) {
3365
+ const O = z.split("-"), [ie, De, Ze] = O, Ne = Ze.padStart(2, "0"), Ie = De.padStart(2, "0");
3341
3366
  return `${ie}-${Ie}-${Ne}`;
3342
3367
  }
3343
3368
  return null;
3344
3369
  };
3345
- let S = p(c[0]), A = c[1] ? p(c[1]) : null;
3370
+ let S = p(f[0]), A = f[1] ? p(f[1]) : null;
3346
3371
  if (S && A) {
3347
- const D = new Date(S);
3348
- if (new Date(A) < D) {
3372
+ const z = new Date(S);
3373
+ if (new Date(A) < z) {
3349
3374
  const ie = S;
3350
3375
  S = A, A = ie;
3351
3376
  }
@@ -3355,69 +3380,69 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3355
3380
  return "";
3356
3381
  }
3357
3382
  if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(i)) {
3358
- const c = i.split("/");
3383
+ const f = i.split("/");
3359
3384
  if (v === "pt-BR") {
3360
- const [p, S, A] = c, D = p.padStart(2, "0"), q = S.padStart(2, "0");
3361
- return `${A}-${q}-${D}`;
3385
+ const [p, S, A] = f, z = p.padStart(2, "0"), O = S.padStart(2, "0");
3386
+ return `${A}-${O}-${z}`;
3362
3387
  } else {
3363
- const [p, S, A] = c, D = S.padStart(2, "0"), q = p.padStart(2, "0");
3364
- return `${A}-${q}-${D}`;
3388
+ const [p, S, A] = f, z = S.padStart(2, "0"), O = p.padStart(2, "0");
3389
+ return `${A}-${O}-${z}`;
3365
3390
  }
3366
3391
  } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(i)) {
3367
- const c = i.split("-"), [p, S, A] = c, D = A.padStart(2, "0"), q = S.padStart(2, "0");
3368
- return `${p}-${q}-${D}`;
3392
+ const f = i.split("-"), [p, S, A] = f, z = A.padStart(2, "0"), O = S.padStart(2, "0");
3393
+ return `${p}-${O}-${z}`;
3369
3394
  }
3370
3395
  return "";
3371
- } else if (l === "datetime-local") {
3396
+ } else if (n === "datetime-local") {
3372
3397
  if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
3373
- const [c, p] = i.split(" "), S = c.split("/");
3398
+ const [f, p] = i.split(" "), S = f.split("/");
3374
3399
  if (v === "pt-BR") {
3375
- const [A, D, q] = S, ie = A.padStart(2, "0"), De = D.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3376
- return `${q}-${De}-${ie}T${Ne}`;
3400
+ const [A, z, O] = S, ie = A.padStart(2, "0"), De = z.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3401
+ return `${O}-${De}-${ie}T${Ne}`;
3377
3402
  } else {
3378
- const [A, D, q] = S, ie = D.padStart(2, "0"), De = A.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3379
- return `${q}-${De}-${ie}T${Ne}`;
3403
+ const [A, z, O] = S, ie = z.padStart(2, "0"), De = A.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3404
+ return `${O}-${De}-${ie}T${Ne}`;
3380
3405
  }
3381
3406
  } else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
3382
- const [c, p] = i.split("T"), S = c.split("-"), [A, D, q] = S, ie = q.padStart(2, "0"), De = D.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3407
+ const [f, p] = i.split("T"), S = f.split("-"), [A, z, O] = S, ie = O.padStart(2, "0"), De = z.padStart(2, "0"), Ne = p.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3383
3408
  return `${A}-${De}-${ie}T${Ne}`;
3384
3409
  }
3385
3410
  return "";
3386
- } else if (l === "month") {
3411
+ } else if (n === "month") {
3387
3412
  if (/^\d{1,2}\/\d{4}$/.test(i)) {
3388
- const [c, p] = i.split("/"), S = c.padStart(2, "0");
3413
+ const [f, p] = i.split("/"), S = f.padStart(2, "0");
3389
3414
  return `${p}-${S}`;
3390
3415
  } else if (/^\d{4}-\d{1,2}$/.test(i)) {
3391
- const [c, p] = i.split("-"), S = p.padStart(2, "0");
3392
- return `${c}-${S}`;
3416
+ const [f, p] = i.split("-"), S = p.padStart(2, "0");
3417
+ return `${f}-${S}`;
3393
3418
  }
3394
3419
  return "";
3395
- } else if (l === "week") {
3420
+ } else if (n === "week") {
3396
3421
  if (/^\d{4}-W\d{2}$/i.test(i))
3397
3422
  return i.toUpperCase();
3398
- const c = i.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
3399
- if (c)
3400
- return `${c[2]}-W${c[1]}`;
3423
+ const f = i.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
3424
+ if (f)
3425
+ return `${f[2]}-W${f[1]}`;
3401
3426
  const p = i.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
3402
3427
  return p ? `${p[2]}-W${p[1]}` : "";
3403
3428
  }
3404
3429
  return i;
3405
- }, I = J(!1), ae = J({ top: 0, left: 0 }), $ = J(null), z = J(null), le = a(() => gt.value === !0), W = a(() => {
3406
- const t = R.value ? "component-disabled" : "", l = pe.value !== "b" ? "inline-block" : "block", s = X.value ? X.value : "", i = Pe.value ? Pe.value : "", v = _e.value ? _e.value : "", c = ne.value ? ne.value : !1, p = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, S = oe.value ? oe.value : "'Lato', sans-serif", A = de.value ? de.value : "1.4em", D = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, q = Le.value ? Le.value : "'Lato', sans-serif", ie = ce.value ? ce.value : "1em", De = F.value !== 0 && !F.value || F.value < 0 ? 100 : F.value, tt = be.value ? be.value : "#f15574", Ne = Z.value ? Z.value : 200, Ie = ge.value ? ge.value : "normal", ha = "sm", Ca = _.value ? _.value : !1, xa = L.value ? L.value : "date", Sa = $e.value ? $e.value : !1, Va = Te.value ? Te.value : "normal", ka = ue.value ? ue.value : "left", La = Ce.value ? Ce.value : "background", Ta = Re.value ? Re.value : !1, Ba = b.value !== 0 && !b.value || b.value < 0 ? 5 : b.value, Aa = Ke.value ? Ke.value : "transparent", _a = fe.value !== 0 && !fe.value || fe.value < 0 ? 15 : fe.value, $a = re.value ? re.value : "1px 5px", wa = d.value !== 0 && !d.value || d.value < 0 ? 0 : d.value, Ra = Y.value === null || Y.value === void 0 ? -13 : Y.value, Ma = te.value === null || te.value === void 0 ? -10 : te.value, za = Me.value ? Me.value : "'Lato', sans-serif", Da = ze.value ? ze.value : "1em", Na = Fe.value ? Fe.value : "0.8em", Ia = Ye.value ? Ye.value : 400, Wa = et.value ? et.value : "#ffffff", Ea = ut.value ? ut.value : "#000000", Pa = ot.value ? ot.value : "#ffffff", Fa = ft.value ? ft.value : "#000000";
3430
+ }, N = J(!1), ae = J({ top: 0, left: 0 }), _ = J(null), M = J(null), le = a(() => bt.value === !0), I = a(() => {
3431
+ const t = w.value ? "component-disabled" : "", n = pe.value !== "b" ? "inline-block" : "block", s = X.value ? X.value : "", i = Pe.value ? Pe.value : "", v = $e.value ? $e.value : "", f = ne.value ? ne.value : !1, p = U.value !== 0 && !U.value || U.value < 0 ? 0 : U.value, S = oe.value ? oe.value : "'Lato', sans-serif", A = de.value ? de.value : "1.4em", z = G.value !== 0 && !G.value || G.value < 0 ? 100 : G.value, O = Le.value ? Le.value : "'Lato', sans-serif", ie = ce.value ? ce.value : "1em", De = P.value !== 0 && !P.value || P.value < 0 ? 100 : P.value, Ze = be.value ? be.value : "#f15574", Ne = Z.value ? Z.value : 200, Ie = ge.value ? ge.value : "normal", ha = "sm", Ca = $.value ? $.value : !1, xa = L.value ? L.value : "date", Sa = _e.value ? _e.value : !1, Va = Te.value ? Te.value : "normal", ka = ue.value ? ue.value : "left", La = Ce.value ? Ce.value : "background", Ta = Re.value ? Re.value : !1, Ba = b.value !== 0 && !b.value || b.value < 0 ? 5 : b.value, Aa = Ke.value ? Ke.value : "transparent", $a = fe.value !== 0 && !fe.value || fe.value < 0 ? 15 : fe.value, _a = re.value ? re.value : "1px 5px", wa = d.value !== 0 && !d.value || d.value < 0 ? 0 : d.value, Ra = K.value === null || K.value === void 0 ? -13 : K.value, Ma = te.value === null || te.value === void 0 ? -10 : te.value, za = Me.value ? Me.value : "'Lato', sans-serif", Da = ze.value ? ze.value : "1em", Na = Fe.value ? Fe.value : "0.8em", Ia = Ye.value ? Ye.value : 400, Wa = Xe.value ? Xe.value : "#ffffff", Ea = nt.value ? nt.value : "#000000", Pa = lt.value ? lt.value : "#ffffff", Fa = ft.value ? ft.value : "#000000";
3407
3432
  return {
3408
3433
  disabled: t,
3409
- display: l,
3434
+ display: n,
3410
3435
  font: S,
3411
3436
  fontSize: A,
3412
- fontWeight: D,
3413
- fontFamilyMsg: q,
3437
+ fontWeight: z,
3438
+ fontFamilyMsg: O,
3414
3439
  fontSizeMsg: ie,
3415
3440
  fontWeightMsg: De,
3416
- textMessageColor: tt,
3441
+ textMessageColor: Ze,
3417
3442
  caretColor: s,
3418
3443
  selectionBgColor: i,
3419
3444
  selectionTextColor: v,
3420
- hasBorderRadius: c,
3445
+ hasBorderRadius: f,
3421
3446
  borderRadius: p,
3422
3447
  textAlign: ka,
3423
3448
  inputWidth: Ne,
@@ -3430,10 +3455,10 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3430
3455
  inputStyle: La,
3431
3456
  showLabel: Ta,
3432
3457
  labelBackground: Aa,
3433
- labelPadding: $a,
3458
+ labelPadding: _a,
3434
3459
  labelBorderRadius: wa,
3435
3460
  labelLeft: Ba,
3436
- inputLabelMarginActive: _a,
3461
+ inputLabelMarginActive: $a,
3437
3462
  labelActiveTop: Ra,
3438
3463
  labelActiveLeft: Ma,
3439
3464
  fontFamilyLabel: za,
@@ -3445,35 +3470,35 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3445
3470
  lightTextColorLabelActive: Pa,
3446
3471
  darkTextColorLabelActive: Fa
3447
3472
  };
3448
- }), wt = a(() => W.value.disabled), Rt = a(() => ({
3449
- display: W.value.display
3450
- })), Q = a(() => {
3451
- const t = W.value;
3473
+ }), _t = a(() => I.value.disabled), wt = a(() => ({
3474
+ display: I.value.display
3475
+ })), Y = a(() => {
3476
+ const t = I.value;
3452
3477
  return t.fontSize ? t.fontSize : "1.4em";
3453
- }), vt = a(() => {
3454
- const t = W.value, l = r.value;
3478
+ }), ut = a(() => {
3479
+ const t = I.value, n = r.value;
3455
3480
  return {
3456
3481
  fontWeight: t.fontWeight,
3457
- marginTop: l && Re.value ? `${t.inputLabelMarginActive}px` : "0"
3482
+ marginTop: n && Re.value ? `${t.inputLabelMarginActive}px` : "0"
3458
3483
  };
3459
- }), it = a(() => {
3460
- const t = W.value;
3484
+ }), rt = a(() => {
3485
+ const t = I.value;
3461
3486
  return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
3462
- }), pt = a(() => W.value.font), B = a(() => W.value.fontFamilyMsg), Mt = a(() => W.value.fontSizeMsg), zt = a(() => W.value.fontWeightMsg), Bt = a(() => Te.value === "dark" ? V.value : Ue.value), Ht = a(() => W.value.textMessageColor), mt = a(() => {
3463
- const t = W.value;
3487
+ }), vt = a(() => I.value.font), B = a(() => I.value.fontFamilyMsg), Rt = a(() => I.value.fontSizeMsg), Mt = a(() => I.value.fontWeightMsg), Tt = a(() => Te.value === "dark" ? V.value : Ue.value), jt = a(() => I.value.textMessageColor), yt = a(() => {
3488
+ const t = I.value;
3464
3489
  return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
3465
- }), At = a(() => {
3466
- const t = W.value;
3490
+ }), Bt = a(() => {
3491
+ const t = I.value;
3467
3492
  return t.selectionBgColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
3468
- }), _t = a(() => {
3469
- const t = W.value;
3493
+ }), At = a(() => {
3494
+ const t = I.value;
3470
3495
  return t.selectionTextColor || (t.theme === "dark" ? "#000000" : "#ffffff");
3471
- }), Dt = a(() => {
3472
- const t = W.value;
3496
+ }), zt = a(() => {
3497
+ const t = I.value;
3473
3498
  return t.display === "block" ? { width: "100%" } : {
3474
3499
  width: `${t.inputWidth}px`
3475
3500
  };
3476
- }), Ut = a(() => {
3501
+ }), Ht = a(() => {
3477
3502
  switch (Ce.value) {
3478
3503
  case "line":
3479
3504
  return "component__input--line";
@@ -3482,8 +3507,8 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3482
3507
  default:
3483
3508
  return "component__input--background";
3484
3509
  }
3485
- }), Gt = a(() => {
3486
- switch (W.value.activeTextStyle) {
3510
+ }), Ut = a(() => {
3511
+ switch (I.value.activeTextStyle) {
3487
3512
  case "italic":
3488
3513
  return "component__input--active--italic";
3489
3514
  case "oblique":
@@ -3491,111 +3516,111 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3491
3516
  default:
3492
3517
  return "component__input--active--normal";
3493
3518
  }
3494
- }), Kt = a(() => "component__sm"), Yt = a(() => {
3495
- switch (W.value.theme) {
3519
+ }), Gt = a(() => "component__sm"), Kt = a(() => {
3520
+ switch (I.value.theme) {
3496
3521
  case "dark":
3497
3522
  return "component__theme--dark";
3498
3523
  default:
3499
3524
  return "component__theme--light";
3500
3525
  }
3501
- }), Qt = a(() => W.value.inputReadonly ? "component__input--read-only" : ""), Jt = a(() => W.value.inputUppercase ? "component__input--uppercase" : ""), Lt = a(() => je.value ? je.value : `${Ve.value}-name-label`), Nt = a(() => ""), r = a(() => T.value || M.value && M.value.trim().length > 0), u = a(() => !M.value || M.value.trim().length === 0 ? "component__input--empty" : "");
3526
+ }), Yt = a(() => I.value.inputReadonly ? "component__input--read-only" : ""), Qt = a(() => I.value.inputUppercase ? "component__input--uppercase" : ""), Vt = a(() => je.value ? je.value : `${Ve.value}-name-label`), Dt = a(() => ""), r = a(() => T.value || R.value && R.value.trim().length > 0), u = a(() => !R.value || R.value.trim().length === 0 ? "component__input--empty" : "");
3502
3527
  a(() => T.value ? "component__input--active" : "component__input--no-active");
3503
- const g = a(() => "6px 10px"), E = a(() => !!(ee.value && me.value)), qe = a(() => {
3528
+ const g = a(() => "6px 10px"), W = a(() => !!(ee.value && me.value)), qe = a(() => {
3504
3529
  const t = {};
3505
3530
  se.value && Object.keys(se.value).forEach((i) => t[`aria-${i}`] = se.value[i]);
3506
- const l = {
3531
+ const n = {
3507
3532
  "aria-label": ke.value,
3508
- "aria-disabled": R.value,
3533
+ "aria-disabled": w.value,
3509
3534
  ...t
3510
3535
  };
3511
3536
  return Object.fromEntries(
3512
- Object.entries(l).filter(([s, i]) => i != null)
3537
+ Object.entries(n).filter(([s, i]) => i != null)
3513
3538
  );
3514
- }), It = a(() => {
3515
- const t = Te.value === "dark" ? Ze.value : dt.value, l = Te.value === "dark" ? V.value : Ue.value;
3516
- return t === "transparent" || t === "#transparent" || !t ? l : t;
3517
- }), Xt = a(() => {
3518
- const t = Te.value === "dark" ? Ge.value : ct.value, l = Te.value === "dark" ? V.value : Ue.value;
3519
- return t === "transparent" || t === "#transparent" || !t ? l : t;
3520
- }), ht = a(() => {
3521
- const t = W.value, l = r.value, s = l ? t.lightTextColorLabelActive : t.lightTextColorLabel, i = l ? t.darkTextColorLabelActive : t.darkTextColorLabel;
3539
+ }), Nt = a(() => {
3540
+ const t = Te.value === "dark" ? Je.value : dt.value, n = Te.value === "dark" ? V.value : Ue.value;
3541
+ return t === "transparent" || t === "#transparent" || !t ? n : t;
3542
+ }), Jt = a(() => {
3543
+ const t = Te.value === "dark" ? Ge.value : ct.value, n = Te.value === "dark" ? V.value : Ue.value;
3544
+ return t === "transparent" || t === "#transparent" || !t ? n : t;
3545
+ }), mt = a(() => {
3546
+ const t = I.value, n = r.value, s = n ? t.lightTextColorLabelActive : t.lightTextColorLabel, i = n ? t.darkTextColorLabelActive : t.darkTextColorLabel;
3522
3547
  return {
3523
3548
  fontFamily: t.fontFamilyLabel,
3524
- fontSize: l ? t.fontSizeLabelActive : t.fontSizeLabel,
3549
+ fontSize: n ? t.fontSizeLabelActive : t.fontSizeLabel,
3525
3550
  fontWeight: t.fontWeightLabel,
3526
3551
  color: t.theme === "dark" ? i : s,
3527
- top: l ? `${t.labelActiveTop}px` : "50%",
3528
- left: l ? `${t.labelActiveLeft}px` : `${t.labelLeft}px`,
3529
- transform: l ? "translateY(0)" : "translateY(-50%)",
3552
+ top: n ? `${t.labelActiveTop}px` : "50%",
3553
+ left: n ? `${t.labelActiveLeft}px` : `${t.labelLeft}px`,
3554
+ transform: n ? "translateY(0)" : "translateY(-50%)",
3530
3555
  transition: "all 0.2s ease",
3531
- backgroundColor: l ? t.labelBackground : "transparent",
3532
- padding: l ? t.labelPadding : "0",
3533
- borderRadius: l ? `${t.labelBorderRadius}rem` : "0"
3556
+ backgroundColor: n ? t.labelBackground : "transparent",
3557
+ padding: n ? t.labelPadding : "0",
3558
+ borderRadius: n ? `${t.labelBorderRadius}rem` : "0"
3534
3559
  };
3535
3560
  });
3536
3561
  a(() => {
3537
- const t = W.value;
3562
+ const t = I.value;
3538
3563
  return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
3539
3564
  });
3540
- const Wt = () => {
3565
+ const It = () => {
3541
3566
  h.value = we.value, Oe.value = L.value;
3542
- }, Et = () => {
3543
- P("clicked");
3544
- }, Zt = (t) => {
3545
- t.stopPropagation(), !(R.value || W.value.inputReadonly) && $.value && ($.value.focus(), le.value && (I.value = !1, requestAnimationFrame(() => {
3546
- Ct(), I.value = !0;
3567
+ }, Wt = () => {
3568
+ E("clicked");
3569
+ }, Xt = (t) => {
3570
+ t.stopPropagation(), !(w.value || I.value.inputReadonly) && _.value && (_.value.focus(), le.value && (N.value = !1, requestAnimationFrame(() => {
3571
+ ht(), N.value = !0;
3547
3572
  })));
3548
- }, ea = () => {
3549
- R.value || W.value.inputReadonly || !Ae.value || P("entered", h.value);
3550
- }, Ct = () => {
3551
- $.value && ya(() => {
3552
- const t = $.value.getBoundingClientRect(), l = 4;
3573
+ }, Zt = () => {
3574
+ w.value || I.value.inputReadonly || !Ae.value || E("entered", h.value);
3575
+ }, ht = () => {
3576
+ _.value && ya(() => {
3577
+ const t = _.value.getBoundingClientRect(), n = 4;
3553
3578
  ae.value = {
3554
- top: `${t.bottom + l}px`,
3579
+ top: `${t.bottom + n}px`,
3555
3580
  left: `${t.left}px`
3556
3581
  };
3557
3582
  });
3558
- }, ta = a(() => ({
3583
+ }, ea = a(() => ({
3559
3584
  position: "fixed",
3560
3585
  top: ae.value.top,
3561
3586
  left: ae.value.left,
3562
- zIndex: yt.value
3563
- })), aa = () => {
3564
- T.value = !0, P("focused"), le.value && (I.value = !1, requestAnimationFrame(() => {
3565
- Ct(), I.value = !0;
3587
+ zIndex: gt.value
3588
+ })), ta = () => {
3589
+ T.value = !0, E("focused"), le.value && (N.value = !1, requestAnimationFrame(() => {
3590
+ ht(), N.value = !0;
3566
3591
  }));
3567
- }, la = (t) => {
3568
- t.relatedTarget && z.value && z.value.contains(t.relatedTarget) || setTimeout(() => {
3592
+ }, aa = (t) => {
3593
+ t.relatedTarget && M.value && M.value.contains(t.relatedTarget) || setTimeout(() => {
3569
3594
  var i;
3570
- const l = document.activeElement;
3571
- if (I.value) {
3572
- if (z.value && z.value.contains(l) || t.relatedTarget && z.value && z.value.contains(t.relatedTarget))
3595
+ const n = document.activeElement;
3596
+ if (N.value) {
3597
+ if (M.value && M.value.contains(n) || t.relatedTarget && M.value && M.value.contains(t.relatedTarget))
3573
3598
  return;
3574
- if (l === document.body && z.value) {
3575
- const v = z.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
3599
+ if (n === document.body && M.value) {
3600
+ const v = M.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
3576
3601
  if (Array.from(v).some((p) => p === document.activeElement || p.contains(document.activeElement)))
3577
3602
  return;
3578
3603
  }
3579
3604
  }
3580
- const s = (i = $.value) == null ? void 0 : i.closest(".component");
3581
- s && s.contains(l) || $.value !== l && (T.value = !1, I.value = !1, P("blurred"));
3605
+ const s = (i = _.value) == null ? void 0 : i.closest(".component");
3606
+ s && s.contains(n) || _.value !== n && (T.value = !1, N.value = !1, E("blurred"));
3582
3607
  }, 200);
3583
- }, na = () => {
3584
- le.value && (I.value, I.value = !1, requestAnimationFrame(() => {
3585
- Ct(), I.value = !0;
3608
+ }, la = () => {
3609
+ le.value && (N.value, N.value = !1, requestAnimationFrame(() => {
3610
+ ht(), N.value = !0;
3586
3611
  }));
3587
3612
  }, $t = (t) => {
3588
3613
  if (!t || !(t instanceof Date))
3589
3614
  return null;
3590
- const l = t.getFullYear(), s = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0");
3591
- return `${l}-${s}-${i}`;
3592
- }, oa = (t) => {
3593
- let l = "";
3615
+ const n = t.getFullYear(), s = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0");
3616
+ return `${n}-${s}-${i}`;
3617
+ }, na = (t) => {
3618
+ let n = "";
3594
3619
  if (!t)
3595
- l = "";
3620
+ n = "";
3596
3621
  else if (Se.value && typeof t == "object" && !(t instanceof Date)) {
3597
3622
  if (t.startDate === null && t.endDate === null)
3598
- l = "";
3623
+ n = "";
3599
3624
  else if (t.startDate || t.endDate) {
3600
3625
  const i = {
3601
3626
  // Converter startDate para string ISO se existir
@@ -3603,60 +3628,60 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3603
3628
  // Converter endDate para string ISO se existir
3604
3629
  endDate: t.endDate ? $t(t.endDate) : null
3605
3630
  };
3606
- l = JSON.stringify(i);
3631
+ n = JSON.stringify(i);
3607
3632
  }
3608
3633
  } else
3609
- L.value === "date" ? t instanceof Date ? l = $t(t) : typeof t == "string" && (l = t) : (L.value === "month" || L.value === "time" || L.value === "datetime-local" || L.value === "week") && (l = typeof t == "string" ? t : "");
3610
- Je = !0, h.value = l;
3611
- const s = l ? rt(l, L.value) : "";
3612
- M.value = s, k.value = s;
3613
- }, ua = () => {
3634
+ L.value === "date" ? t instanceof Date ? n = $t(t) : typeof t == "string" && (n = t) : (L.value === "month" || L.value === "time" || L.value === "datetime-local" || L.value === "week") && (n = typeof t == "string" ? t : "");
3635
+ Q = !0, h.value = n;
3636
+ const s = n ? ot(n, L.value) : "";
3637
+ R.value = s, k.value = s;
3638
+ }, oa = () => {
3614
3639
  if (!le.value) {
3615
- h.value = M.value;
3640
+ h.value = R.value;
3616
3641
  return;
3617
3642
  }
3618
- w = !0;
3619
- const t = $.value ? {
3620
- start: $.value.selectionStart,
3621
- end: $.value.selectionEnd
3622
- } : null, l = M.value.trim();
3623
- if (!l || l.length === 0) {
3624
- Je = !0, h.value = "", M.value = "", k.value = "", setTimeout(() => {
3625
- w = !1;
3643
+ l = !0;
3644
+ const t = _.value ? {
3645
+ start: _.value.selectionStart,
3646
+ end: _.value.selectionEnd
3647
+ } : null, n = R.value.trim();
3648
+ if (!n || n.length === 0) {
3649
+ Q = !0, h.value = "", R.value = "", k.value = "", setTimeout(() => {
3650
+ l = !1;
3626
3651
  }, 50);
3627
3652
  return;
3628
3653
  }
3629
3654
  if (L.value === "date") {
3630
3655
  const i = Se.value ? /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$|^\d{1,2}\/\d{1,2}\/\d{4}\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})?$/ : /^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/;
3631
3656
  if (Se.value) {
3632
- if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), l.length > 23 && !i.test(l)) {
3633
- M.value = k.value, t && $.value && ya(() => {
3657
+ if (n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/), n.length > 23 && !i.test(n)) {
3658
+ R.value = k.value, t && _.value && ya(() => {
3634
3659
  const v = Math.min(t.start, k.value.length);
3635
- $.value.setSelectionRange(v, v);
3660
+ _.value.setSelectionRange(v, v);
3636
3661
  }), setTimeout(() => {
3637
- w = !1;
3662
+ l = !1;
3638
3663
  }, 50);
3639
3664
  return;
3640
3665
  }
3641
- if (!i.test(l) && l.length <= 23) {
3666
+ if (!i.test(n) && n.length <= 23) {
3642
3667
  setTimeout(() => {
3643
- w = !1;
3668
+ l = !1;
3644
3669
  }, 50);
3645
3670
  return;
3646
3671
  }
3647
3672
  } else {
3648
- if (l.length > 10 && !i.test(l)) {
3649
- M.value = k.value, t && $.value && ya(() => {
3673
+ if (n.length > 10 && !i.test(n)) {
3674
+ R.value = k.value, t && _.value && ya(() => {
3650
3675
  const v = Math.min(t.start, k.value.length);
3651
- $.value.setSelectionRange(v, v);
3676
+ _.value.setSelectionRange(v, v);
3652
3677
  }), setTimeout(() => {
3653
- w = !1;
3678
+ l = !1;
3654
3679
  }, 50);
3655
3680
  return;
3656
3681
  }
3657
- if (!i.test(l) && l.length <= 10) {
3682
+ if (!i.test(n) && n.length <= 10) {
3658
3683
  setTimeout(() => {
3659
- w = !1;
3684
+ l = !1;
3660
3685
  }, 50);
3661
3686
  return;
3662
3687
  }
@@ -3665,272 +3690,272 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3665
3690
  let s = null;
3666
3691
  if (L.value === "date")
3667
3692
  if (Se.value)
3668
- if (l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
3669
- if (s = H(l, L.value), s && s !== h.value)
3670
- Je = !0, h.value = s, k.value = l;
3693
+ if (n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
3694
+ if (s = j(n, L.value), s && s !== h.value)
3695
+ Q = !0, h.value = s, k.value = n;
3671
3696
  else {
3672
3697
  setTimeout(() => {
3673
- w = !1;
3698
+ l = !1;
3674
3699
  }, 50);
3675
3700
  return;
3676
3701
  }
3677
- else if (l.includes("-")) {
3678
- const v = l.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
3702
+ else if (n.includes("-")) {
3703
+ const v = n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
3679
3704
  if (v) {
3680
- const c = v[1], p = H(c, L.value);
3705
+ const f = v[1], p = j(f, L.value);
3681
3706
  if (p) {
3682
3707
  const S = JSON.stringify({ startDate: p, endDate: null });
3683
- S !== h.value && (Je = !0, h.value = S, k.value = l);
3708
+ S !== h.value && (Q = !0, h.value = S, k.value = n);
3684
3709
  } else {
3685
- k.value = l, setTimeout(() => {
3686
- w = !1;
3710
+ k.value = n, setTimeout(() => {
3711
+ l = !1;
3687
3712
  }, 50);
3688
3713
  return;
3689
3714
  }
3690
3715
  } else {
3691
- k.value = l, setTimeout(() => {
3692
- w = !1;
3716
+ k.value = n, setTimeout(() => {
3717
+ l = !1;
3693
3718
  }, 50);
3694
3719
  return;
3695
3720
  }
3696
- } else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
3697
- if (s = H(l, L.value), s) {
3698
- const c = JSON.stringify({ startDate: s, endDate: null });
3699
- c !== h.value && (Je = !0, h.value = c, k.value = l);
3721
+ } else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(n))
3722
+ if (s = j(n, L.value), s) {
3723
+ const f = JSON.stringify({ startDate: s, endDate: null });
3724
+ f !== h.value && (Q = !0, h.value = f, k.value = n);
3700
3725
  } else {
3701
- k.value = l, setTimeout(() => {
3702
- w = !1;
3726
+ k.value = n, setTimeout(() => {
3727
+ l = !1;
3703
3728
  }, 50);
3704
3729
  return;
3705
3730
  }
3706
3731
  else {
3707
- k.value = l, setTimeout(() => {
3708
- w = !1;
3732
+ k.value = n, setTimeout(() => {
3733
+ l = !1;
3709
3734
  }, 50);
3710
3735
  return;
3711
3736
  }
3712
- else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(l))
3713
- s = H(l, L.value), s && s !== h.value && (Je = !0, h.value = s, k.value = l);
3737
+ else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(n))
3738
+ s = j(n, L.value), s && s !== h.value && (Q = !0, h.value = s, k.value = n);
3714
3739
  else {
3715
3740
  setTimeout(() => {
3716
- w = !1;
3741
+ l = !1;
3717
3742
  }, 50);
3718
3743
  return;
3719
3744
  }
3720
3745
  else
3721
- s = H(l, L.value), s && s !== h.value && (Je = !0, h.value = s, k.value = l);
3746
+ s = j(n, L.value), s && s !== h.value && (Q = !0, h.value = s, k.value = n);
3722
3747
  setTimeout(() => {
3723
- w = !1;
3748
+ l = !1;
3724
3749
  }, 50);
3725
- }, ra = (t) => {
3726
- }, Pt = (t) => {
3750
+ }, ua = (t) => {
3751
+ }, Et = (t) => {
3727
3752
  var v;
3728
- if (!I.value || !z.value || !$.value)
3753
+ if (!N.value || !M.value || !_.value)
3729
3754
  return;
3730
- const l = t.target, s = (v = $.value) == null ? void 0 : v.closest(".nb-wrapper");
3731
- if (z.value && z.value.contains(l) || s && (l === s || s.contains(l)) || z.value && z.value.contains(l))
3755
+ const n = t.target, s = (v = _.value) == null ? void 0 : v.closest(".nb-wrapper");
3756
+ if (M.value && M.value.contains(n) || s && (n === s || s.contains(n)) || M.value && M.value.contains(n))
3732
3757
  return;
3733
- let i = l;
3758
+ let i = n;
3734
3759
  for (; i && i !== document.body; ) {
3735
- if (i === z.value || z.value && z.value.contains(i))
3760
+ if (i === M.value || M.value && M.value.contains(i))
3736
3761
  return;
3737
3762
  i = i.parentElement;
3738
3763
  }
3739
3764
  setTimeout(() => {
3740
- if (!I.value || !z.value || z.value && z.value.contains(l))
3765
+ if (!N.value || !M.value || M.value && M.value.contains(n))
3741
3766
  return;
3742
- for (i = l; i && i !== document.body; ) {
3743
- if (i === z.value || z.value && z.value.contains(i))
3767
+ for (i = n; i && i !== document.body; ) {
3768
+ if (i === M.value || M.value && M.value.contains(i))
3744
3769
  return;
3745
3770
  i = i.parentElement;
3746
3771
  }
3747
- if (!document.body.contains(l))
3772
+ if (!document.body.contains(n))
3748
3773
  return;
3749
- const c = $.value && (l === $.value || $.value.contains(l)), p = s && (l === s || s.contains(l));
3750
- !c && !p && (I.value = !1, (!M.value || M.value.trim().length === 0) && (T.value = !1));
3774
+ const f = _.value && (n === _.value || _.value.contains(n)), p = s && (n === s || s.contains(n));
3775
+ !f && !p && (N.value = !1, (!R.value || R.value.trim().length === 0) && (T.value = !1));
3751
3776
  }, 50);
3777
+ }, Pt = () => {
3778
+ N.value && le.value && ht();
3752
3779
  }, Ft = () => {
3753
- I.value && le.value && Ct();
3754
- }, Ot = () => {
3755
- I.value && le.value && (I.value = !1);
3780
+ N.value && le.value && (N.value = !1);
3756
3781
  };
3757
- let bt = null, Tt = null, xt = { top: 0, left: 0 };
3758
- const qt = () => {
3759
- if (!I.value || !le.value || !$.value)
3782
+ let pt = null, kt = null, it = { top: 0, left: 0 };
3783
+ const Lt = () => {
3784
+ if (!N.value || !le.value || !_.value)
3760
3785
  return;
3761
- const t = 4, l = $.value.getBoundingClientRect(), s = `${l.bottom + t}px`, i = `${l.left}px`;
3762
- (xt.top !== s || xt.left !== i) && (xt.top = s, xt.left = i, ae.value = {
3786
+ const t = 4, n = _.value.getBoundingClientRect(), s = `${n.bottom + t}px`, i = `${n.left}px`;
3787
+ (it.top !== s || it.left !== i) && (it.top = s, it.left = i, ae.value = {
3763
3788
  top: s,
3764
3789
  left: i
3765
- }), Tt = requestAnimationFrame(qt);
3766
- }, o = () => {
3767
- if (!$.value || !le.value)
3790
+ }), kt = requestAnimationFrame(Lt);
3791
+ }, ra = () => {
3792
+ if (!_.value || !le.value)
3768
3793
  return;
3769
- xt = { top: 0, left: 0 }, qt(), bt = new ResizeObserver(() => {
3770
- I.value && Ct();
3771
- }), bt.observe($.value);
3772
- const t = $.value.closest(".component");
3773
- t && bt.observe(t);
3774
- }, f = () => {
3775
- Tt !== null && (cancelAnimationFrame(Tt), Tt = null), bt && (bt.disconnect(), bt = null);
3794
+ it = { top: 0, left: 0 }, Lt(), pt = new ResizeObserver(() => {
3795
+ N.value && ht();
3796
+ }), pt.observe(_.value);
3797
+ const t = _.value.closest(".component");
3798
+ t && pt.observe(t);
3799
+ }, Ot = () => {
3800
+ kt !== null && (cancelAnimationFrame(kt), kt = null), pt && (pt.disconnect(), pt = null);
3776
3801
  };
3777
- U(I, (t) => {
3802
+ H(N, (t) => {
3778
3803
  t && le.value ? ya(() => {
3779
- o();
3780
- }) : f();
3804
+ ra();
3805
+ }) : Ot();
3781
3806
  }), sa(() => {
3782
- h.value = we.value, M.value = rt(we.value, L.value), document.addEventListener("click", Pt, !1), window.addEventListener("scroll", Ft, { capture: !0, passive: !0 }), window.addEventListener("resize", Ot);
3807
+ h.value = we.value, R.value = ot(we.value, L.value), document.addEventListener("click", Et, !1), window.addEventListener("scroll", Pt, { capture: !0, passive: !0 }), window.addEventListener("resize", Ft);
3783
3808
  }), ma(() => {
3784
- Wt(), f(), document.removeEventListener("click", Pt), window.removeEventListener("scroll", Ft, { capture: !0, passive: !0 }), window.removeEventListener("resize", Ot);
3785
- }), U(L, (t) => {
3809
+ It(), Ot(), document.removeEventListener("click", Et), window.removeEventListener("scroll", Pt, { capture: !0, passive: !0 }), window.removeEventListener("resize", Ft);
3810
+ }), H(L, (t) => {
3786
3811
  Oe.value = t;
3787
- }, { immediate: !0 }), U(Xe, () => {
3788
- h.value && le.value && (M.value = rt(h.value, L.value));
3789
- }), U(we, (t) => {
3812
+ }, { immediate: !0 }), H(Qe, () => {
3813
+ h.value && le.value && (R.value = ot(h.value, L.value));
3814
+ }), H(we, (t) => {
3790
3815
  if (t !== h.value) {
3791
3816
  h.value = t;
3792
- const l = rt(t, L.value);
3793
- M.value = l, k.value = l;
3817
+ const n = ot(t, L.value);
3818
+ R.value = n, k.value = n;
3794
3819
  }
3795
3820
  }, { immediate: !0 });
3796
- let w = !1;
3797
- const Qe = () => {
3798
- w = !0, setTimeout(() => {
3799
- w = !1;
3821
+ let l = !1;
3822
+ const c = () => {
3823
+ l = !0, setTimeout(() => {
3824
+ l = !1;
3800
3825
  }, 100);
3801
3826
  };
3802
- let Je = !1;
3803
- return U(() => h.value, (t) => {
3804
- if (le.value && !Je && !w) {
3805
- const l = rt(t, L.value);
3806
- l !== M.value && (M.value = l, k.value = l);
3827
+ let Q = !1;
3828
+ return H(() => h.value, (t) => {
3829
+ if (le.value && !Q && !l) {
3830
+ const n = ot(t, L.value);
3831
+ n !== R.value && (R.value = n, k.value = n);
3807
3832
  }
3808
- Je = !1;
3809
- }), U(h, (t) => {
3833
+ Q = !1;
3834
+ }), H(h, (t) => {
3810
3835
  if (x.value && (t = t.trim()), Se.value && typeof t == "string" && t.startsWith("{"))
3811
3836
  try {
3812
- const l = JSON.parse(t);
3813
- if (l && (l.startDate || l.endDate)) {
3814
- const s = (c) => {
3815
- if (!c)
3837
+ const n = JSON.parse(t);
3838
+ if (n && (n.startDate || n.endDate)) {
3839
+ const s = (f) => {
3840
+ if (!f)
3816
3841
  return null;
3817
- if (/^\d{4}-\d{2}-\d{2}$/.test(c)) {
3818
- const [p, S, A] = c.split("-").map(Number);
3842
+ if (/^\d{4}-\d{2}-\d{2}$/.test(f)) {
3843
+ const [p, S, A] = f.split("-").map(Number);
3819
3844
  return new Date(p, S - 1, A);
3820
3845
  }
3821
- return new Date(c);
3822
- }, i = l.startDate ? s(l.startDate) : null, v = l.endDate ? s(l.endDate) : null;
3823
- P("changed", { startDate: i, endDate: v });
3846
+ return new Date(f);
3847
+ }, i = n.startDate ? s(n.startDate) : null, v = n.endDate ? s(n.endDate) : null;
3848
+ E("changed", { startDate: i, endDate: v });
3824
3849
  return;
3825
3850
  }
3826
3851
  } catch {
3827
3852
  }
3828
- P("changed", t);
3829
- }), U(T, (t) => {
3830
- P(t ? "focused" : "blurred");
3831
- }), U(h, (t) => {
3832
- x.value && (t = t.trim()), P("current-value", t);
3833
- }), (t, l) => n(Ve) ? (O(), j("div", da({
3853
+ E("changed", t);
3854
+ }), H(T, (t) => {
3855
+ E(t ? "focused" : "blurred");
3856
+ }), H(h, (t) => {
3857
+ x.value && (t = t.trim()), E("current-value", t);
3858
+ }), (t, n) => o(Ve) ? (F(), q("div", da({
3834
3859
  key: 0,
3835
- class: ["nb-wrapper", wt.value],
3836
- style: [Rt.value, Dt.value, it.value],
3860
+ class: ["nb-wrapper", _t.value],
3861
+ style: [wt.value, zt.value, rt.value],
3837
3862
  role: "input"
3838
3863
  }, qe.value), [
3839
3864
  ve("div", {
3840
- id: n(Ve),
3841
- class: We(["nb-reset", "component", Kt.value, Yt.value, Qt.value, Ut.value]),
3842
- style: Ee([vt.value, Dt.value, it.value]),
3843
- onClick: Et
3865
+ id: o(Ve),
3866
+ class: We(["nb-reset", "component", Gt.value, Kt.value, Yt.value, Ht.value]),
3867
+ style: Ee([ut.value, zt.value, rt.value]),
3868
+ onClick: Wt
3844
3869
  }, [
3845
- n(Re) ? (O(), j("label", {
3870
+ o(Re) ? (F(), q("label", {
3846
3871
  key: 0,
3847
- for: Lt.value,
3872
+ for: Vt.value,
3848
3873
  class: "component__label",
3849
- style: Ee([ht.value]),
3850
- onClick: Zt
3851
- }, St(e.label), 13, Pl)) : Be("", !0),
3874
+ style: Ee([mt.value]),
3875
+ onClick: Xt
3876
+ }, Ct(e.label), 13, Ol)) : Be("", !0),
3852
3877
  pa(ve("input", {
3853
3878
  ref_key: "inputRef",
3854
- ref: $,
3855
- "onUpdate:modelValue": l[0] || (l[0] = (s) => M.value = s),
3856
- onInput: ua,
3879
+ ref: _,
3880
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => R.value = s),
3881
+ onInput: oa,
3857
3882
  onKeydown: [
3858
- Qe,
3859
- l[1] || (l[1] = jt((s) => !n(R) && n(Ae) && ea(), ["enter"]))
3883
+ c,
3884
+ n[1] || (n[1] = qt((s) => !o(w) && o(Ae) && Zt(), ["enter"]))
3860
3885
  ],
3861
- id: Lt.value,
3862
- name: Lt.value,
3886
+ id: Vt.value,
3887
+ name: Vt.value,
3863
3888
  type: le.value ? "text" : Oe.value,
3864
3889
  class: We(["component__input", [
3865
- Jt.value,
3866
- Gt.value,
3890
+ Qt.value,
3891
+ Ut.value,
3867
3892
  u.value
3868
3893
  ]]),
3869
- placeholder: Nt.value,
3870
- disabled: n(R) || n(_),
3894
+ placeholder: Dt.value,
3895
+ disabled: o(w) || o($),
3871
3896
  required: e.required,
3872
- readonly: n(_),
3897
+ readonly: o($),
3873
3898
  autocomplete: e.inputAutocomplete,
3874
- min: le.value ? void 0 : n(at),
3875
- max: le.value ? void 0 : n(ye),
3876
- step: le.value ? void 0 : n(lt),
3877
- tabindex: n(R) || n(_) ? -1 : n(st),
3899
+ min: le.value ? void 0 : o(et),
3900
+ max: le.value ? void 0 : o(ye),
3901
+ step: le.value ? void 0 : o(tt),
3902
+ tabindex: o(w) || o($) ? -1 : o(st),
3878
3903
  role: "input",
3879
- style: Ee([it.value]),
3880
- onFocus: aa,
3881
- onBlur: la,
3882
- onClick: na
3883
- }, null, 46, Fl), [
3884
- [Ha, M.value]
3904
+ style: Ee([rt.value]),
3905
+ onFocus: ta,
3906
+ onBlur: aa,
3907
+ onClick: la
3908
+ }, null, 46, ql), [
3909
+ [Ha, R.value]
3885
3910
  ])
3886
- ], 14, El),
3887
- E.value ? (O(), j("div", {
3911
+ ], 14, Fl),
3912
+ W.value ? (F(), q("div", {
3888
3913
  key: 0,
3889
3914
  class: We(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
3890
3915
  }, [
3891
3916
  ia(t.$slots, "message", {}, () => [
3892
- ga(St(e.message), 1)
3917
+ ga(Ct(e.message), 1)
3893
3918
  ], !0)
3894
3919
  ], 2)) : Be("", !0),
3895
- (O(), ol(ul, { to: "body" }, [
3896
- le.value && I.value ? (O(), j("div", {
3920
+ (F(), rl(il, { to: "body" }, [
3921
+ le.value && N.value ? (F(), q("div", {
3897
3922
  key: 0,
3898
3923
  ref_key: "calendarRef",
3899
- ref: z,
3924
+ ref: M,
3900
3925
  class: "datepicker__custom-calendar-wrapper",
3901
- style: Ee(ta.value),
3902
- onClick: l[4] || (l[4] = ca((s) => he.value = !0, ["stop"])),
3903
- onMousedown: l[5] || (l[5] = ca((s) => he.value = !0, ["stop"]))
3926
+ style: Ee(ea.value),
3927
+ onClick: n[4] || (n[4] = ca((s) => he.value = !0, ["stop"])),
3928
+ onMousedown: n[5] || (n[5] = ca((s) => he.value = !0, ["stop"]))
3904
3929
  }, [
3905
- rl(n(C), {
3906
- "nb-id": `${n(Ve)}-calendar`,
3907
- value: kt.value,
3908
- "input-type": n(L),
3909
- min: n(at),
3910
- max: n(ye),
3911
- step: n(lt),
3912
- disabled: n(R),
3913
- width: Vt.value,
3914
- locale: n(Xe),
3915
- theme: n(Te),
3916
- "allow-range": n(Se),
3917
- onChanged: oa,
3918
- onDateSelected: ra,
3919
- onMousedown: l[2] || (l[2] = (s) => he.value = !0),
3920
- onClick: l[3] || (l[3] = (s) => he.value = !0)
3930
+ sl(o(C), {
3931
+ "nb-id": `${o(Ve)}-calendar`,
3932
+ value: St.value,
3933
+ "input-type": o(L),
3934
+ min: o(et),
3935
+ max: o(ye),
3936
+ step: o(tt),
3937
+ disabled: o(w),
3938
+ width: xt.value,
3939
+ locale: o(Qe),
3940
+ theme: o(Te),
3941
+ "allow-range": o(Se),
3942
+ onChanged: na,
3943
+ onDateSelected: ua,
3944
+ onMousedown: n[2] || (n[2] = (s) => he.value = !0),
3945
+ onClick: n[3] || (n[3] = (s) => he.value = !0)
3921
3946
  }, null, 8, ["nb-id", "value", "input-type", "min", "max", "step", "disabled", "width", "locale", "theme", "allow-range"])
3922
3947
  ], 36)) : Be("", !0)
3923
3948
  ]))
3924
3949
  ], 16)) : Be("", !0);
3925
3950
  }
3926
- }), ql = /* @__PURE__ */ ba(Ol, [["__scopeId", "data-v-35736538"]]), Oa = {
3927
- NbInputRadio: fl,
3928
- NbInputCheckbox: yl,
3929
- NbInput: Tl,
3930
- NbInputChip: Ml,
3931
- NbTextarea: Wl,
3932
- NbDatePicker: ql
3933
- }, Hl = {
3951
+ }), Hl = /* @__PURE__ */ ba(jl, [["__scopeId", "data-v-35736538"]]), Oa = {
3952
+ NbInputRadio: pl,
3953
+ NbInputCheckbox: hl,
3954
+ NbInput: Al,
3955
+ NbInputChip: Dl,
3956
+ NbTextarea: Pl,
3957
+ NbDatePicker: Hl
3958
+ }, Gl = {
3934
3959
  install(e) {
3935
3960
  for (const m in Oa)
3936
3961
  if (Object.prototype.hasOwnProperty.call(Oa, m)) {
@@ -3940,5 +3965,5 @@ const El = ["id"], Pl = ["for"], Fl = ["id", "name", "type", "placeholder", "dis
3940
3965
  }
3941
3966
  };
3942
3967
  export {
3943
- Hl as default
3968
+ Gl as default
3944
3969
  };