@vlalg-nimbus/nb-inputs 8.0.5 → 8.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nb-inputs.js CHANGED
@@ -1,8 +1,8 @@
1
- import { useCssVars as sa, onMounted as ua, ref as X, toRefs as da, computed as a, watch as G, openBlock as O, createElementBlock as F, normalizeClass as Ne, normalizeStyle as We, createElementVNode as be, mergeProps as ra, Fragment as Oa, renderList as Fa, unref as o, withDirectives as ca, vModelRadio as al, withKeys as Et, withModifiers as ia, toDisplayString as ht, createCommentVNode as Be, vModelCheckbox as ll, onUnmounted as ma, renderSlot as oa, createTextVNode as ga, vModelDynamic as qa, vModelText as ja, defineAsyncComponent as nl, nextTick as ya, createVNode as ol } from "vue";
2
- const fa = (e, m) => {
1
+ import { useCssVars as ia, onMounted as oa, ref as X, toRefs as sa, computed as a, watch as H, openBlock as F, createElementBlock as q, normalizeClass as Ne, normalizeStyle as We, createElementVNode as fe, mergeProps as ua, Fragment as Ea, renderList as Pa, unref as o, withDirectives as da, vModelRadio as al, withKeys as Et, withModifiers as ra, toDisplayString as yt, createCommentVNode as Ve, vModelCheckbox as ll, onUnmounted as ma, renderSlot as na, createTextVNode as ga, vModelDynamic as Oa, vModelText as Fa, defineAsyncComponent as nl, nextTick as ya, createVNode as ol } from "vue";
2
+ const ca = (e, y) => {
3
3
  const h = e.__vccOpts || e;
4
- for (const [z, _] of m)
5
- h[z] = _;
4
+ for (const [W, w] of y)
5
+ h[W] = w;
6
6
  return h;
7
7
  }, ul = ["id"], rl = ["id", "disabled", "value", "name"], il = ["for", "tabindex"], sl = /* @__PURE__ */ Object.assign({
8
8
  name: "NbInputRadio",
@@ -18,14 +18,14 @@ const fa = (e, m) => {
18
18
  type: String,
19
19
  default: "b",
20
20
  validator: (e = "b") => {
21
- const m = e ? e.toLowerCase() : "";
22
- return ["b", "ib"].includes(m);
21
+ const y = e ? e.toLowerCase() : "";
22
+ return ["b", "ib"].includes(y);
23
23
  }
24
24
  },
25
25
  tabIndex: {
26
26
  type: [Number, Array],
27
27
  default: 0,
28
- validator: (e, m) => Array.isArray(e) ? e.length === m.options.length : !0
28
+ validator: (e, y) => Array.isArray(e) ? e.length === y.options.length : !0
29
29
  },
30
30
  hasTabIndexEnter: {
31
31
  type: Boolean,
@@ -56,12 +56,12 @@ const fa = (e, m) => {
56
56
  validator: (e) => {
57
57
  if (!e.length)
58
58
  return !1;
59
- let m = !1;
59
+ let y = !1;
60
60
  for (const h of e) {
61
- const z = Object.keys(h);
62
- z.length !== 2 && (m = !0), z.every((Se) => ["value", "text"].includes(Se)) || (m = !0);
61
+ const W = Object.keys(h);
62
+ W.length !== 2 && (y = !0), W.every((he) => ["value", "text"].includes(he)) || (y = !0);
63
63
  }
64
- if (!m)
64
+ if (!y)
65
65
  return e;
66
66
  }
67
67
  },
@@ -78,8 +78,8 @@ const fa = (e, m) => {
78
78
  type: String,
79
79
  default: "light",
80
80
  validator: (e) => {
81
- const m = e ? e.toLowerCase() : "";
82
- return ["light", "dark"].includes(m);
81
+ const y = e ? e.toLowerCase() : "";
82
+ return ["light", "dark"].includes(y);
83
83
  }
84
84
  },
85
85
  // Cores do tema light
@@ -151,142 +151,142 @@ const fa = (e, m) => {
151
151
  }
152
152
  },
153
153
  emits: ["current-value", "changed", "clicked"],
154
- setup(e, { emit: m }) {
155
- sa((b) => ({
156
- "0fd48d29": Ke.value,
157
- "50426c15": bt.value,
158
- "5fa7628c": st.value,
159
- "5949c3d2": Ye.value,
160
- 91322790: vt.value,
154
+ setup(e, { emit: y }) {
155
+ ia((p) => ({
156
+ "0fd48d29": Ue.value,
157
+ "50426c15": Ke.value,
158
+ "5fa7628c": ft.value,
159
+ "5949c3d2": Se.value,
160
+ 91322790: Ge.value,
161
161
  "6750fc92": tt.value,
162
- "8c592938": it.value,
162
+ "8c592938": dt.value,
163
163
  c11d4680: at.value,
164
- "35b74fa6": pt.value,
165
- "7dd5f889": Le.value,
166
- "5cb21b36": he.value
167
- })), ua(() => {
168
- Qe();
164
+ "35b74fa6": rt.value,
165
+ "7dd5f889": me.value,
166
+ "5cb21b36": ct.value
167
+ })), oa(() => {
168
+ nt();
169
169
  });
170
- const h = m, z = e, _ = X(null), {
171
- ariaLabel: Se,
172
- ariaAttrs: ge,
173
- currentOption: Ae,
174
- valueType: Ve,
175
- display: se,
176
- options: N,
170
+ const h = y, W = e, w = X(null), {
171
+ ariaLabel: he,
172
+ ariaAttrs: ve,
173
+ currentOption: ke,
174
+ valueType: Ce,
175
+ display: ue,
176
+ options: J,
177
177
  theme: Ee,
178
- lightTextColor: $e,
179
- lightColor: ae,
180
- lightColorHover: le,
181
- darkTextColor: W,
182
- darkColor: D,
183
- darkColorHover: J,
184
- hoverEffect: Z,
185
- activeHoverEffect: ye,
186
- itemGap: de,
187
- internalGap: q,
188
- scale: ne,
189
- disabled: ee,
190
- fontFamily: ke,
191
- fontSize: ce,
192
- fontWeight: fe
193
- } = da(z), I = a(() => {
194
- const b = ee.value ? "component-disabled" : "", V = se.value !== "b" ? "inline-block" : "block", ve = ke.value ? ke.value : "'Lato', sans-serif", K = ce.value ? ce.value : "1.6em", te = fe.value !== 0 && !fe.value || fe.value < 0 ? 200 : fe.value, je = [!1, !0].includes(Z.value) ? Z.value : !1, He = [!1, !0].includes(ye.value) ? ye.value : !1, Y = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, c = q.value !== 0 && !q.value || q.value < 0 ? 6 : q.value, y = ne.value !== 0 && !ne.value || ne.value < 0 ? 1 : ne.value;
178
+ lightTextColor: Le,
179
+ lightColor: te,
180
+ lightColorHover: U,
181
+ darkTextColor: R,
182
+ darkColor: ae,
183
+ darkColorHover: G,
184
+ hoverEffect: K,
185
+ activeHoverEffect: xe,
186
+ itemGap: re,
187
+ internalGap: E,
188
+ scale: pe,
189
+ disabled: Z,
190
+ fontFamily: ge,
191
+ fontSize: be,
192
+ fontWeight: ye
193
+ } = sa(W), $ = a(() => {
194
+ const p = Z.value ? "component-disabled" : "", k = ue.value !== "b" ? "inline-block" : "block", ie = ge.value ? ge.value : "'Lato', sans-serif", P = be.value ? be.value : "1.6em", se = ye.value !== 0 && !ye.value || ye.value < 0 ? 200 : ye.value, je = [!1, !0].includes(K.value) ? K.value : !1, $e = [!1, !0].includes(xe.value) ? xe.value : !1, Y = re.value !== 0 && !re.value || re.value < 0 ? 15 : re.value, c = E.value !== 0 && !E.value || E.value < 0 ? 6 : E.value, g = pe.value !== 0 && !pe.value || pe.value < 0 ? 1 : pe.value;
195
195
  return {
196
- disabled: b,
197
- display: V,
196
+ disabled: p,
197
+ display: k,
198
198
  hoverEffect: je,
199
- activeHoverEffect: He,
199
+ activeHoverEffect: $e,
200
200
  itemGap: Y,
201
201
  internalGap: c,
202
- scale: y,
203
- font: ve,
204
- fontSize: K,
205
- fontWeight: te
202
+ scale: g,
203
+ font: ie,
204
+ fontSize: P,
205
+ fontWeight: se
206
206
  };
207
- }), me = a(() => I.value.disabled), d = a(() => ({
208
- display: I.value.display
209
- })), _e = a(() => I.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), qe = a(() => {
210
- const b = I.value;
207
+ }), x = a(() => $.value.disabled), S = a(() => ({
208
+ display: $.value.display
209
+ })), Te = a(() => $.value.display === "inline-block" ? "component-radio__item--display-inline" : "component-radio__item--display-block"), qe = a(() => {
210
+ const p = $.value;
211
211
  return {
212
- fontSize: b.fontSize,
213
- fontWeight: b.fontWeight
212
+ fontSize: p.fontSize,
213
+ fontWeight: p.fontWeight
214
214
  };
215
- }), Ge = a(() => Array.isArray(N.value) && N.value.constructor === Array && N.value.length > 0), Pe = a(() => Ee.value === "dark" ? "component__theme--dark" : "component__theme--light"), Ke = a(() => I.value.font), tt = a(() => $e.value), it = a(() => ae.value), vt = a(() => I.value.hoverEffect ? le.value : ae.value), Ye = a(() => I.value.activeHoverEffect ? le.value : ae.value), Le = a(() => W.value), he = a(() => D.value), pt = a(() => I.value.hoverEffect ? J.value : D.value), at = a(() => I.value.activeHoverEffect ? J.value : D.value), st = a(() => {
216
- const V = I.value.internalGap;
217
- return !V || V < 0 ? 0 : `${V}px`;
218
- }), bt = a(() => {
219
- const V = I.value.itemGap;
220
- return !V || V < 0 ? 0 : `${V}px`;
221
- }), Te = a(() => ({
222
- zoom: I.value.scale
215
+ }), Be = a(() => Array.isArray(J.value) && J.value.constructor === Array && J.value.length > 0), et = a(() => Ee.value === "dark" ? "component__theme--dark" : "component__theme--light"), Ue = a(() => $.value.font), tt = a(() => Le.value), dt = a(() => te.value), Ge = a(() => $.value.hoverEffect ? U.value : te.value), Se = a(() => $.value.activeHoverEffect ? U.value : te.value), me = a(() => R.value), ct = a(() => ae.value), rt = a(() => $.value.hoverEffect ? G.value : ae.value), at = a(() => $.value.activeHoverEffect ? G.value : ae.value), ft = a(() => {
216
+ const k = $.value.internalGap;
217
+ return !k || k < 0 ? 0 : `${k}px`;
218
+ }), Ke = a(() => {
219
+ const k = $.value.itemGap;
220
+ return !k || k < 0 ? 0 : `${k}px`;
221
+ }), Pe = a(() => ({
222
+ zoom: $.value.scale
223
223
  })), lt = a(() => {
224
- const b = {};
225
- ge.value && Object.keys(ge.value).forEach((K) => b[`aria-${K}`] = ge.value[K]);
226
- const V = {
227
- "aria-label": Se.value,
228
- "aria-disabled": ee.value,
229
- ...b
224
+ const p = {};
225
+ ve.value && Object.keys(ve.value).forEach((P) => p[`aria-${P}`] = ve.value[P]);
226
+ const k = {
227
+ "aria-label": he.value,
228
+ "aria-disabled": Z.value,
229
+ ...p
230
230
  };
231
231
  return Object.fromEntries(
232
- Object.entries(V).filter(([ve, K]) => K != null)
232
+ Object.entries(k).filter(([ie, P]) => P != null)
233
233
  );
234
- }), Qe = () => {
235
- const b = Ae.value;
236
- b && ["string"].includes(Ve.value) ? _.value = b.toString().toLowerCase() : _.value = b;
237
- }, Xe = () => {
234
+ }), nt = () => {
235
+ const p = ke.value;
236
+ p && ["string"].includes(Ce.value) ? w.value = p.toString().toLowerCase() : w.value = p;
237
+ }, Ae = () => {
238
238
  h("clicked");
239
239
  };
240
- return G(Ae, (b, V) => {
241
- b !== V && Qe();
242
- }), G(_, (b, V) => {
243
- b !== V && (h("current-value", b), h("changed", b));
244
- }), (b, V) => e.nbId && Ge.value ? (O(), F("div", {
240
+ return H(ke, (p, k) => {
241
+ p !== k && nt();
242
+ }), H(w, (p, k) => {
243
+ p !== k && (h("current-value", p), h("changed", p));
244
+ }), (p, k) => e.nbId && Be.value ? (F(), q("div", {
245
245
  key: 0,
246
- class: Ne(["nb-wrapper", me.value]),
247
- style: We([d.value, Te.value])
246
+ class: Ne(["nb-wrapper", x.value]),
247
+ style: We([S.value, Pe.value])
248
248
  }, [
249
- be("div", ra({
249
+ fe("div", ua({
250
250
  id: e.nbId,
251
251
  role: "radiogroup"
252
252
  }, lt.value, {
253
- class: ["nb-reset", "component", _e.value, Pe.value]
253
+ class: ["nb-reset", "component", Te.value, et.value]
254
254
  }), [
255
- (O(!0), F(Oa, null, Fa(o(N), (ve, K) => (O(), F("div", {
256
- key: K,
255
+ (F(!0), q(Ea, null, Pa(o(J), (ie, P) => (F(), q("div", {
256
+ key: P,
257
257
  class: "component-radio__item"
258
258
  }, [
259
- ca(be("input", {
260
- id: `${e.nbId}-${ve.value}`,
261
- "onUpdate:modelValue": V[0] || (V[0] = (te) => _.value = te),
259
+ da(fe("input", {
260
+ id: `${e.nbId}-${ie.value}`,
261
+ "onUpdate:modelValue": k[0] || (k[0] = (se) => w.value = se),
262
262
  type: "radio",
263
263
  class: "component-radio__item--input",
264
- disabled: o(ee),
265
- value: ve.value,
264
+ disabled: o(Z),
265
+ value: ie.value,
266
266
  name: e.groupName,
267
- onClick: Xe
267
+ onClick: Ae
268
268
  }, null, 8, rl), [
269
- [al, _.value]
269
+ [al, w.value]
270
270
  ]),
271
- be("label", {
272
- for: `${e.nbId}-${ve.value}`,
273
- tabindex: o(ee) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[K] : e.tabIndex >= 0 ? e.tabIndex : K + 1,
271
+ fe("label", {
272
+ for: `${e.nbId}-${ie.value}`,
273
+ tabindex: o(Z) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[P] : e.tabIndex >= 0 ? e.tabIndex : P + 1,
274
274
  class: "component-radio__item--label",
275
275
  onKeydown: [
276
- V[1] || (V[1] = Et(ia((te) => !o(ee) && e.hasTabIndexEnter && te.target.click(), ["prevent"]), ["enter"])),
277
- V[2] || (V[2] = Et(ia((te) => !o(ee) && e.hasTabIndexSpace && te.target.click(), ["prevent"]), ["space"]))
276
+ k[1] || (k[1] = Et(ra((se) => !o(Z) && e.hasTabIndexEnter && se.target.click(), ["prevent"]), ["enter"])),
277
+ k[2] || (k[2] = Et(ra((se) => !o(Z) && e.hasTabIndexSpace && se.target.click(), ["prevent"]), ["space"]))
278
278
  ]
279
279
  }, [
280
- V[3] || (V[3] = be("div", null, null, -1)),
281
- be("span", {
280
+ k[3] || (k[3] = fe("div", null, null, -1)),
281
+ fe("span", {
282
282
  style: We([qe.value])
283
- }, ht(ve.text), 5)
283
+ }, yt(ie.text), 5)
284
284
  ], 40, il)
285
285
  ]))), 128))
286
286
  ], 16, ul)
287
- ], 6)) : Be("", !0);
287
+ ], 6)) : Ve("", !0);
288
288
  }
289
- }), dl = /* @__PURE__ */ fa(sl, [["__scopeId", "data-v-a95f65ea"]]);
289
+ }), dl = /* @__PURE__ */ ca(sl, [["__scopeId", "data-v-a95f65ea"]]);
290
290
  const cl = ["id"], fl = ["id", "disabled", "value", "name"], vl = ["for", "tabindex"], pl = /* @__PURE__ */ Object.assign({
291
291
  name: "NbInputCheckbox",
292
292
  inheritAttrs: !1
@@ -301,14 +301,14 @@ const cl = ["id"], fl = ["id", "disabled", "value", "name"], vl = ["for", "tabin
301
301
  type: String,
302
302
  default: "b",
303
303
  validator: (e = "b") => {
304
- const m = e ? e.toLowerCase() : "";
305
- return ["b", "ib"].includes(m);
304
+ const y = e ? e.toLowerCase() : "";
305
+ return ["b", "ib"].includes(y);
306
306
  }
307
307
  },
308
308
  tabIndex: {
309
309
  type: [Number, Array],
310
310
  default: 0,
311
- validator: (e, m) => Array.isArray(e) ? e.length === m.options.length : !0
311
+ validator: (e, y) => Array.isArray(e) ? e.length === y.options.length : !0
312
312
  },
313
313
  hasTabIndexEnter: {
314
314
  type: Boolean,
@@ -339,12 +339,12 @@ const cl = ["id"], fl = ["id", "disabled", "value", "name"], vl = ["for", "tabin
339
339
  validator: (e) => {
340
340
  if (!e.length)
341
341
  return !1;
342
- let m = !1;
342
+ let y = !1;
343
343
  for (const h of e) {
344
- const z = Object.keys(h);
345
- z.length !== 2 && (m = !0), z.every((Se) => ["value", "text"].includes(Se)) || (m = !0);
344
+ const W = Object.keys(h);
345
+ W.length !== 2 && (y = !0), W.every((he) => ["value", "text"].includes(he)) || (y = !0);
346
346
  }
347
- if (!m)
347
+ if (!y)
348
348
  return e;
349
349
  }
350
350
  },
@@ -356,8 +356,8 @@ const cl = ["id"], fl = ["id", "disabled", "value", "name"], vl = ["for", "tabin
356
356
  type: String,
357
357
  default: "light",
358
358
  validator: (e) => {
359
- const m = e ? e.toLowerCase() : "";
360
- return ["light", "dark"].includes(m);
359
+ const y = e ? e.toLowerCase() : "";
360
+ return ["light", "dark"].includes(y);
361
361
  }
362
362
  },
363
363
  // Cores do tema light
@@ -447,166 +447,166 @@ const cl = ["id"], fl = ["id", "disabled", "value", "name"], vl = ["for", "tabin
447
447
  }
448
448
  },
449
449
  emits: ["current-value", "changed", "clicked"],
450
- setup(e, { emit: m }) {
451
- sa((c) => ({
452
- "49e2c63f": it.value,
453
- "107babaa": ve.value,
454
- "3c7cc5ce": V.value,
455
- "16d311d0": b.value,
456
- "3f8b2f30": he.value,
457
- "53078d64": Le.value,
458
- "537834e6": pt.value,
459
- fbc86ee4: Ye.value,
460
- "517939e1": vt.value,
461
- "3faff29d": Xe.value,
462
- "302ecd6a": Te.value,
463
- "8a4df060": bt.value,
450
+ setup(e, { emit: y }) {
451
+ ia((c) => ({
452
+ "49e2c63f": dt.value,
453
+ "107babaa": ie.value,
454
+ "3c7cc5ce": k.value,
455
+ "16d311d0": p.value,
456
+ "3f8b2f30": ct.value,
457
+ "53078d64": me.value,
458
+ "537834e6": rt.value,
459
+ fbc86ee4: Se.value,
460
+ "517939e1": Ge.value,
461
+ "3faff29d": Ae.value,
462
+ "302ecd6a": Pe.value,
463
+ "8a4df060": Ke.value,
464
464
  "0a99dbe2": lt.value,
465
- d6971e68: st.value,
465
+ d6971e68: ft.value,
466
466
  ca30d9c2: at.value
467
- })), ua(() => {
468
- He();
467
+ })), oa(() => {
468
+ $e();
469
469
  });
470
- const h = m, z = e, _ = X(null), {
471
- ariaLabel: Se,
472
- ariaAttrs: ge,
473
- currentOption: Ae,
474
- display: Ve,
475
- options: se,
476
- theme: N,
470
+ const h = y, W = e, w = X(null), {
471
+ ariaLabel: he,
472
+ ariaAttrs: ve,
473
+ currentOption: ke,
474
+ display: Ce,
475
+ options: ue,
476
+ theme: J,
477
477
  lightTextColor: Ee,
478
- lightColor: $e,
479
- lightColorHover: ae,
480
- darkTextColor: le,
481
- darkColor: W,
482
- darkColorHover: D,
483
- boxRadius: J,
484
- hoverEffect: Z,
485
- activeHoverEffect: ye,
486
- itemGap: de,
487
- internalGap: q,
488
- scale: ne,
489
- type: ee,
490
- background: ke,
491
- disabled: ce,
492
- fontFamily: fe,
493
- fontSize: I,
494
- fontWeight: me
495
- } = da(z), d = a(() => {
496
- const c = ce.value ? "component-disabled" : "", y = Ve.value !== "b" ? "inline-block" : "block", pe = fe.value ? fe.value : "'Lato', sans-serif", j = I.value ? I.value : "1.6em", oe = me.value !== 0 && !me.value || me.value < 0 ? 200 : me.value, we = J.value !== 0 && !J.value || J.value < 0 ? 0 : J.value, Re = [!1, !0].includes(Z.value) ? Z.value : !1, Oe = [!1, !0].includes(ye.value) ? ye.value : !1, Fe = de.value !== 0 && !de.value || de.value < 0 ? 15 : de.value, Ue = q.value !== 0 && !q.value || q.value < 0 ? 6 : q.value, nt = ["box", "circle"].includes(ee.value) ? ee.value : "box", ot = ne.value !== 0 && !ne.value || ne.value < 0 ? 1 : ne.value, C = [!1, !0].includes(ke.value) ? ke.value : !1;
478
+ lightColor: Le,
479
+ lightColorHover: te,
480
+ darkTextColor: U,
481
+ darkColor: R,
482
+ darkColorHover: ae,
483
+ boxRadius: G,
484
+ hoverEffect: K,
485
+ activeHoverEffect: xe,
486
+ itemGap: re,
487
+ internalGap: E,
488
+ scale: pe,
489
+ type: Z,
490
+ background: ge,
491
+ disabled: be,
492
+ fontFamily: ye,
493
+ fontSize: $,
494
+ fontWeight: x
495
+ } = sa(W), S = a(() => {
496
+ const c = be.value ? "component-disabled" : "", g = Ce.value !== "b" ? "inline-block" : "block", de = ye.value ? ye.value : "'Lato', sans-serif", ee = $.value ? $.value : "1.6em", le = x.value !== 0 && !x.value || x.value < 0 ? 200 : x.value, _e = G.value !== 0 && !G.value || G.value < 0 ? 0 : G.value, we = [!1, !0].includes(K.value) ? K.value : !1, Oe = [!1, !0].includes(xe.value) ? xe.value : !1, Fe = re.value !== 0 && !re.value || re.value < 0 ? 15 : re.value, He = E.value !== 0 && !E.value || E.value < 0 ? 6 : E.value, ot = ["box", "circle"].includes(Z.value) ? Z.value : "box", m = pe.value !== 0 && !pe.value || pe.value < 0 ? 1 : pe.value, M = [!1, !0].includes(ge.value) ? ge.value : !1;
497
497
  return {
498
498
  disabled: c,
499
- display: y,
500
- boxRadius: we,
501
- hoverEffect: Re,
499
+ display: g,
500
+ boxRadius: _e,
501
+ hoverEffect: we,
502
502
  activeHoverEffect: Oe,
503
503
  itemGap: Fe,
504
- internalGap: Ue,
505
- scale: ot,
506
- type: nt,
507
- font: pe,
508
- background: C,
509
- fontSize: j,
510
- fontWeight: oe
504
+ internalGap: He,
505
+ scale: m,
506
+ type: ot,
507
+ font: de,
508
+ background: M,
509
+ fontSize: ee,
510
+ fontWeight: le
511
511
  };
512
- }), _e = a(() => d.value.disabled), qe = a(() => ({
513
- display: d.value.display
514
- })), Ge = a(() => d.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), Pe = a(() => {
515
- const c = d.value;
512
+ }), Te = a(() => S.value.disabled), qe = a(() => ({
513
+ display: S.value.display
514
+ })), Be = a(() => S.value.display === "inline-block" ? "component-checkbox__item--display-inline" : "component-checkbox__item--display-block"), et = a(() => {
515
+ const c = S.value;
516
516
  return {
517
517
  fontSize: c.fontSize,
518
518
  fontWeight: c.fontWeight
519
519
  };
520
- }), Ke = a(() => Array.isArray(se.value) && se.value.constructor === Array && se.value.length > 0), tt = a(() => N.value === "dark" ? "component__theme--dark" : "component__theme--light"), it = a(() => d.value.font), vt = a(() => Ee.value), Ye = a(() => $e.value), Le = a(() => d.value.hoverEffect ? ae.value : $e.value), he = a(() => d.value.activeHoverEffect ? ae.value : $e.value), pt = a(() => {
521
- const c = d.value;
520
+ }), Ue = a(() => Array.isArray(ue.value) && ue.value.constructor === Array && ue.value.length > 0), tt = a(() => J.value === "dark" ? "component__theme--dark" : "component__theme--light"), dt = a(() => S.value.font), Ge = a(() => Ee.value), Se = a(() => Le.value), me = a(() => S.value.hoverEffect ? te.value : Le.value), ct = a(() => S.value.activeHoverEffect ? te.value : Le.value), rt = a(() => {
521
+ const c = S.value;
522
+ return c.activeHoverEffect && c.background ? `${te.value}80` : te.value;
523
+ }), at = a(() => U.value), ft = a(() => R.value), Ke = a(() => S.value.hoverEffect ? ae.value : R.value), Pe = a(() => S.value.activeHoverEffect ? ae.value : R.value), lt = a(() => {
524
+ const c = S.value;
522
525
  return c.activeHoverEffect && c.background ? `${ae.value}80` : ae.value;
523
- }), at = a(() => le.value), st = a(() => W.value), bt = a(() => d.value.hoverEffect ? D.value : W.value), Te = a(() => d.value.activeHoverEffect ? D.value : W.value), lt = a(() => {
524
- const c = d.value;
525
- return c.activeHoverEffect && c.background ? `${D.value}80` : D.value;
526
- }), Qe = a(() => d.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Xe = a(() => {
527
- const c = d.value, y = N.value === "dark" ? le.value : Ee.value;
528
- return c.background ? "#ffffff" : y;
526
+ }), nt = a(() => S.value.background ? "component-checkbox__item--with-background" : "component-checkbox__item--without-background"), Ae = a(() => {
527
+ const c = S.value, g = J.value === "dark" ? U.value : Ee.value;
528
+ return c.background ? "#ffffff" : g;
529
529
  });
530
- a(() => d.value.background ? "19px" : "auto");
531
- const b = a(() => {
532
- const y = d.value.internalGap;
533
- return !y || y < 0 ? 0 : `${y}px`;
534
- }), V = a(() => {
535
- const c = d.value;
530
+ a(() => S.value.background ? "19px" : "auto");
531
+ const p = a(() => {
532
+ const g = S.value.internalGap;
533
+ return !g || g < 0 ? 0 : `${g}px`;
534
+ }), k = a(() => {
535
+ const c = S.value;
536
536
  return `${c.boxRadius > 7 ? 7 : c.boxRadius}px`;
537
- }), ve = a(() => {
538
- const y = d.value.itemGap;
539
- return !y || y < 0 ? 0 : `${y}px`;
540
- }), K = a(() => d.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), te = a(() => ({
541
- zoom: d.value.scale
537
+ }), ie = a(() => {
538
+ const g = S.value.itemGap;
539
+ return !g || g < 0 ? 0 : `${g}px`;
540
+ }), P = a(() => S.value.type === "circle" ? "custom-checkbox__input--type-circle" : ""), se = a(() => ({
541
+ zoom: S.value.scale
542
542
  })), je = a(() => {
543
543
  const c = {};
544
- ge.value && Object.keys(ge.value).forEach((j) => c[`aria-${j}`] = ge.value[j]);
545
- const y = {
546
- "aria-label": Se.value,
547
- "aria-disabled": ce.value,
544
+ ve.value && Object.keys(ve.value).forEach((ee) => c[`aria-${ee}`] = ve.value[ee]);
545
+ const g = {
546
+ "aria-label": he.value,
547
+ "aria-disabled": be.value,
548
548
  ...c
549
549
  };
550
550
  return Object.fromEntries(
551
- Object.entries(y).filter(([pe, j]) => j != null)
551
+ Object.entries(g).filter(([de, ee]) => ee != null)
552
552
  );
553
- }), He = () => {
554
- _.value = Ae.value;
553
+ }), $e = () => {
554
+ w.value = ke.value;
555
555
  }, Y = () => {
556
556
  h("clicked");
557
557
  };
558
- return G(Ae, (c, y) => {
559
- c !== y && He();
560
- }), G(_, (c, y) => {
561
- c !== y && (h("current-value", c), h("changed", c));
562
- }), (c, y) => e.nbId && Ke.value ? (O(), F("div", {
558
+ return H(ke, (c, g) => {
559
+ c !== g && $e();
560
+ }), H(w, (c, g) => {
561
+ c !== g && (h("current-value", c), h("changed", c));
562
+ }), (c, g) => e.nbId && Ue.value ? (F(), q("div", {
563
563
  key: 0,
564
- class: Ne(["nb-wrapper", _e.value]),
565
- style: We([qe.value, te.value])
564
+ class: Ne(["nb-wrapper", Te.value]),
565
+ style: We([qe.value, se.value])
566
566
  }, [
567
- be("div", ra({
567
+ fe("div", ua({
568
568
  id: e.nbId,
569
569
  role: "group"
570
570
  }, je.value, {
571
- class: ["nb-reset", "component", Ge.value, tt.value]
571
+ class: ["nb-reset", "component", Be.value, tt.value]
572
572
  }), [
573
- (O(!0), F(Oa, null, Fa(o(se), (pe, j) => (O(), F("div", {
574
- key: j,
573
+ (F(!0), q(Ea, null, Pa(o(ue), (de, ee) => (F(), q("div", {
574
+ key: ee,
575
575
  class: "component-checkbox__item"
576
576
  }, [
577
- ca(be("input", {
578
- id: `${e.nbId}-${pe.value}`,
579
- "onUpdate:modelValue": y[0] || (y[0] = (oe) => _.value = oe),
577
+ da(fe("input", {
578
+ id: `${e.nbId}-${de.value}`,
579
+ "onUpdate:modelValue": g[0] || (g[0] = (le) => w.value = le),
580
580
  type: "checkbox",
581
581
  class: "component-checkbox__item--input",
582
- disabled: o(ce),
583
- value: pe.value,
582
+ disabled: o(be),
583
+ value: de.value,
584
584
  name: e.groupName,
585
585
  onClick: Y
586
586
  }, null, 8, fl), [
587
- [ll, _.value]
587
+ [ll, w.value]
588
588
  ]),
589
- be("label", {
590
- for: `${e.nbId}-${pe.value}`,
591
- class: Ne([[K.value], "component-checkbox__item--label"]),
592
- tabindex: o(ce) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[j] : e.tabIndex >= 0 ? e.tabIndex : j + 1,
589
+ fe("label", {
590
+ for: `${e.nbId}-${de.value}`,
591
+ class: Ne([[P.value], "component-checkbox__item--label"]),
592
+ tabindex: o(be) ? -1 : Array.isArray(e.tabIndex) ? e.tabIndex[ee] : e.tabIndex >= 0 ? e.tabIndex : ee + 1,
593
593
  onKeydown: [
594
- y[1] || (y[1] = Et(ia((oe) => !o(ce) && e.hasTabIndexEnter && oe.target.click(), ["prevent"]), ["enter"])),
595
- y[2] || (y[2] = Et(ia((oe) => !o(ce) && e.hasTabIndexSpace && oe.target.click(), ["prevent"]), ["space"]))
594
+ g[1] || (g[1] = Et(ra((le) => !o(be) && e.hasTabIndexEnter && le.target.click(), ["prevent"]), ["enter"])),
595
+ g[2] || (g[2] = Et(ra((le) => !o(be) && e.hasTabIndexSpace && le.target.click(), ["prevent"]), ["space"]))
596
596
  ]
597
597
  }, [
598
- be("div", {
599
- class: Ne([Qe.value])
598
+ fe("div", {
599
+ class: Ne([nt.value])
600
600
  }, null, 2),
601
- be("span", {
602
- style: We([Pe.value])
603
- }, ht(pe.text), 5)
601
+ fe("span", {
602
+ style: We([et.value])
603
+ }, yt(de.text), 5)
604
604
  ], 42, vl)
605
605
  ]))), 128))
606
606
  ], 16, cl)
607
- ], 6)) : Be("", !0);
607
+ ], 6)) : Ve("", !0);
608
608
  }
609
- }), bl = /* @__PURE__ */ fa(pl, [["__scopeId", "data-v-1c6afddc"]]);
609
+ }), bl = /* @__PURE__ */ ca(pl, [["__scopeId", "data-v-1c6afddc"]]);
610
610
  const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 }, xl = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], Sl = ["for"], Vl = /* @__PURE__ */ Object.assign({
611
611
  name: "NbInput",
612
612
  inheritAttrs: !1
@@ -621,8 +621,8 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
621
621
  type: String,
622
622
  default: "b",
623
623
  validator: (e = "b") => {
624
- const m = e.toLowerCase();
625
- return ["b", "ib"].includes(m);
624
+ const y = e.toLowerCase();
625
+ return ["b", "ib"].includes(y);
626
626
  }
627
627
  },
628
628
  tabIndex: {
@@ -1028,157 +1028,157 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
1028
1028
  "clicked",
1029
1029
  "entered"
1030
1030
  ],
1031
- setup(e, { emit: m }) {
1032
- sa((u) => ({
1033
- "54d471e0": xt.value,
1034
- cd7a1fa0: Ct.value,
1035
- "03b8d611": o(bt),
1036
- "05fc0800": Gt.value,
1037
- "60d8d552": kt.value,
1038
- "24f6f06a": Kt.value,
1039
- "9da89e22": o(V),
1040
- "017fdd14": o(Re),
1041
- "4cde23b0": o(ve),
1042
- 59166342: o(C),
1043
- a33e780a: o(b),
1044
- "2ca961d8": o(Qe),
1045
- "60451b3a": o(Xe),
1046
- "20c505f6": It.value,
1047
- "19ddf317": o(Te),
1031
+ setup(e, { emit: y }) {
1032
+ ia((u) => ({
1033
+ "54d471e0": St.value,
1034
+ cd7a1fa0: ht.value,
1035
+ "03b8d611": o(Ke),
1036
+ "05fc0800": Vt.value,
1037
+ "60d8d552": Gt.value,
1038
+ "24f6f06a": wt.value,
1039
+ "9da89e22": o(k),
1040
+ "017fdd14": o(we),
1041
+ "4cde23b0": o(ie),
1042
+ 59166342: o(M),
1043
+ a33e780a: o(p),
1044
+ "2ca961d8": o(nt),
1045
+ "60451b3a": o(Ae),
1046
+ "20c505f6": st.value,
1047
+ "19ddf317": o(Pe),
1048
1048
  "5d2fc801": o(lt),
1049
- "7830866a": o(we),
1050
- cfe8b664: o(K),
1051
- "1c505136": o(ot),
1052
- "7052079d": o(st),
1053
- "2e7a639c": o(pt),
1049
+ "7830866a": o(_e),
1050
+ cfe8b664: o(P),
1051
+ "1c505136": o(m),
1052
+ "7052079d": o(ft),
1053
+ "2e7a639c": o(rt),
1054
1054
  47076850: o(at),
1055
- ab540e8e: o(Le),
1056
- "173810c2": o(he),
1057
- "2b87bb26": aa.value,
1058
- "6878ba10": zt.value,
1059
- "4bcd25e7": Dt.value,
1060
- "58f6cd57": ft.value,
1061
- "62633a7a": ta.value,
1062
- "033f02e7": o(te),
1063
- "75ed4978": Zt.value,
1055
+ ab540e8e: o(me),
1056
+ "173810c2": o(ct),
1057
+ "2b87bb26": ta.value,
1058
+ "6878ba10": Dt.value,
1059
+ "4bcd25e7": It.value,
1060
+ "58f6cd57": Ct.value,
1061
+ "62633a7a": ea.value,
1062
+ "033f02e7": o(se),
1063
+ "75ed4978": Jt.value,
1064
1064
  "3aa54a07": Ft.value,
1065
1065
  "060fa274": qt.value,
1066
1066
  "08abe86f": jt.value,
1067
1067
  b19ed06e: Ut.value,
1068
1068
  "90e3c61e": u.styleButtonColor,
1069
1069
  "03a52854": Ht.value
1070
- })), ua(() => {
1071
- xe.value = Ke.value;
1070
+ })), oa(() => {
1071
+ Me.value = Ue.value;
1072
1072
  }), ma(() => {
1073
- Nt();
1073
+ aa();
1074
1074
  });
1075
- const h = m, z = e, {
1076
- nbId: _,
1077
- display: Se,
1078
- hasTabIndexEnter: ge,
1079
- ariaLabel: Ae,
1080
- ariaAttrs: Ve,
1081
- textColor: se,
1082
- caretColor: N,
1075
+ const h = y, W = e, {
1076
+ nbId: w,
1077
+ display: he,
1078
+ hasTabIndexEnter: ve,
1079
+ ariaLabel: ke,
1080
+ ariaAttrs: Ce,
1081
+ textColor: ue,
1082
+ caretColor: J,
1083
1083
  selectionBgColor: Ee,
1084
- selectionTextColor: $e,
1085
- hasBorderRadius: ae,
1086
- borderRadius: le,
1087
- disabled: W,
1088
- fontFamily: D,
1089
- fontSize: J,
1090
- fontWeight: Z,
1091
- fontFamilyMsg: ye,
1092
- fontSizeMsg: de,
1093
- fontWeightMsg: q,
1094
- textMessageColor: ne,
1095
- inputWidth: ee,
1096
- inputStyle: ke,
1097
- activeTextStyle: ce,
1098
- sizeMediaQuery: fe,
1099
- inputReadonly: I,
1100
- showInputEye: me,
1101
- inputType: d,
1102
- hasTrim: _e,
1084
+ selectionTextColor: Le,
1085
+ hasBorderRadius: te,
1086
+ borderRadius: U,
1087
+ disabled: R,
1088
+ fontFamily: ae,
1089
+ fontSize: G,
1090
+ fontWeight: K,
1091
+ fontFamilyMsg: xe,
1092
+ fontSizeMsg: re,
1093
+ fontWeightMsg: E,
1094
+ textMessageColor: pe,
1095
+ inputWidth: Z,
1096
+ inputStyle: ge,
1097
+ activeTextStyle: be,
1098
+ sizeMediaQuery: ye,
1099
+ inputReadonly: $,
1100
+ showInputEye: x,
1101
+ inputType: S,
1102
+ hasTrim: Te,
1103
1103
  inputUppercase: qe,
1104
- inputName: Ge,
1105
- inputPlaceholder: Pe,
1106
- inputText: Ke,
1104
+ inputName: Be,
1105
+ inputPlaceholder: et,
1106
+ inputText: Ue,
1107
1107
  theme: tt,
1108
- inputEyeIcon: it,
1109
- tabindex: vt,
1110
- inputEyeIconHidden: Ye,
1111
- lightBgColor: Le,
1112
- lightBgColorFocus: he,
1113
- lightEyeBgColor: pt,
1108
+ inputEyeIcon: dt,
1109
+ tabindex: Ge,
1110
+ inputEyeIconHidden: Se,
1111
+ lightBgColor: me,
1112
+ lightBgColorFocus: ct,
1113
+ lightEyeBgColor: rt,
1114
1114
  lightEyeBgColorActive: at,
1115
- lightDisabledBgColor: st,
1116
- lightTextColor: bt,
1117
- darkBgColor: Te,
1115
+ lightDisabledBgColor: ft,
1116
+ lightTextColor: Ke,
1117
+ darkBgColor: Pe,
1118
1118
  darkBgColorFocus: lt,
1119
- darkEyeBgColor: Qe,
1120
- darkEyeBgColorActive: Xe,
1121
- darkDisabledBgColor: b,
1122
- darkTextColor: V,
1123
- darkDisabledEyeBgColor: ve,
1124
- lightDisabledEyeBgColor: K,
1125
- textAlign: te,
1119
+ darkEyeBgColor: nt,
1120
+ darkEyeBgColorActive: Ae,
1121
+ darkDisabledBgColor: p,
1122
+ darkTextColor: k,
1123
+ darkDisabledEyeBgColor: ie,
1124
+ lightDisabledEyeBgColor: P,
1125
+ textAlign: se,
1126
1126
  showMsg: je,
1127
- hasMsg: He,
1127
+ hasMsg: $e,
1128
1128
  hasIcon: Y,
1129
1129
  iconDirection: c,
1130
- iconPadding: y,
1131
- iconPaddingInput: pe,
1132
- iconMargin: j,
1133
- iconBorderRadius: oe,
1134
- iconLightTextColor: we,
1135
- iconDarkTextColor: Re,
1130
+ iconPadding: g,
1131
+ iconPaddingInput: de,
1132
+ iconMargin: ee,
1133
+ iconBorderRadius: le,
1134
+ iconLightTextColor: _e,
1135
+ iconDarkTextColor: we,
1136
1136
  iconLightBgColor: Oe,
1137
1137
  iconDarkBgColor: Fe,
1138
- iconLightBgColorActive: Ue,
1139
- iconDarkBgColorActive: nt,
1140
- iconLightDisabledBgColor: ot,
1141
- iconDarkDisabledBgColor: C,
1142
- iconWidth: A,
1143
- iconSize: R,
1144
- showLabel: H,
1145
- labelBackground: Ce,
1138
+ iconLightBgColorActive: He,
1139
+ iconDarkBgColorActive: ot,
1140
+ iconLightDisabledBgColor: m,
1141
+ iconDarkDisabledBgColor: M,
1142
+ iconWidth: D,
1143
+ iconSize: Ye,
1144
+ showLabel: I,
1145
+ labelBackground: Re,
1146
1146
  labelPadding: L,
1147
- labelBorderRadius: Me,
1148
- labelLeft: Je,
1149
- inputLabelMarginActive: Ze,
1150
- labelActiveTop: U,
1151
- labelActiveLeft: E,
1147
+ labelBorderRadius: ce,
1148
+ labelLeft: Qe,
1149
+ inputLabelMarginActive: j,
1150
+ labelActiveTop: Xe,
1151
+ labelActiveLeft: b,
1152
1152
  fontFamilyLabel: T,
1153
- fontSizeLabel: x,
1154
- fontSizeLabelActive: ue,
1155
- fontWeightLabel: M,
1153
+ fontSizeLabel: B,
1154
+ fontSizeLabelActive: N,
1155
+ fontWeightLabel: Bt,
1156
1156
  lightTextColorLabel: At,
1157
- lightTextColorLabelActive: $t,
1158
- darkTextColorLabel: Vt,
1159
- darkTextColorLabelActive: _t
1160
- } = da(z), xe = X(""), dt = X(""), gt = X(!1), ut = X(!1), k = a(() => {
1161
- const u = W.value ? "component-disabled" : "", p = Se.value !== "b" ? "inline-block" : "block", t = se ? se.value : "ffffff", n = N.value ? N.value : "", r = Ee.value ? Ee.value : "", i = $e.value ? $e.value : "", v = ae.value ? ae.value : !1, f = le.value !== 0 && !le.value || le.value < 0 ? 0 : le.value, g = D.value ? D.value : "'Lato', sans-serif", S = J.value && J.value >= 0 ? J.value : null, B = Z.value !== 0 && !Z.value || Z.value < 0 ? 100 : Z.value, $ = ye.value ? ye.value : "'Lato', sans-serif", P = de.value ? de.value : "1em", ie = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, ze = ne.value ? ne.value : "#f15574", et = ee.value ? ee.value : 200, De = ce.value ? ce.value : "normal", Ie = fe.value ? fe.value : "xs", va = I.value ? I.value : !1, pa = me.value ? me.value : !1, ba = d.value ? d.value : "text", ha = qe.value ? qe.value : !1, Ca = tt.value ? tt.value : "normal", xa = te.value ? te.value : "left", Sa = ke.value ? ke.value : "background", Va = y.value ? y.value : "5px 10px", ka = j.value ? j.value : "0", La = pe.value ? pe.value : 10, Ta = we.value ? we.value : "#000000", Ba = Re.value ? Re.value : "#000000", Aa = Oe.value ? Oe.value : "transparent", $a = Fe.value ? Fe.value : "transparent", _a = oe.value !== 0 && !oe.value || oe.value < 0 ? 0 : oe.value, wa = Ue.value ? Ue.value : "transparent", Ra = nt.value ? nt.value : "transparent", Ma = A.value ? A.value : 32, za = R.value ? R.value : 1, Da = H.value ? H.value : !1, Ia = Je.value !== 0 && !Je.value || Je.value < 0 ? 5 : Je.value, Na = Ce.value ? Ce.value : "transparent", Wa = Ze.value !== 0 && !Ze.value || Ze.value < 0 ? 15 : Ze.value, Ea = L.value ? L.value : "1px 5px", Ha = Me.value !== 0 && !Me.value || Me.value < 0 ? 0 : Me.value, Ua = U.value !== 0 && !U.value || U.value < 0 ? -13 : U.value, Ga = E.value !== 0 && !E.value || E.value < 0 ? -10 : E.value, Ka = T.value ? T.value : "'Lato', sans-serif", Ya = x.value ? x.value : "1em", Qa = ue.value ? ue.value : "0.8em", Xa = M.value ? M.value : 400, Ja = At.value ? At.value : "#ffffff", Za = Vt.value ? Vt.value : "#000000", el = $t.value ? $t.value : "#ffffff", tl = _t.value ? _t.value : "#000000";
1157
+ lightTextColorLabelActive: xt,
1158
+ darkTextColorLabel: $t,
1159
+ darkTextColorLabelActive: mt
1160
+ } = sa(W), Me = X(""), it = X(""), vt = X(!1), ut = X(!1), V = a(() => {
1161
+ const u = R.value ? "component-disabled" : "", t = he.value !== "b" ? "inline-block" : "block", n = ue ? ue.value : "ffffff", r = J.value ? J.value : "", i = Ee.value ? Ee.value : "", d = Le.value ? Le.value : "", f = te.value ? te.value : !1, v = U.value !== 0 && !U.value || U.value < 0 ? 0 : U.value, C = ae.value ? ae.value : "'Lato', sans-serif", A = G.value && G.value >= 0 ? G.value : null, _ = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, O = xe.value ? xe.value : "'Lato', sans-serif", oe = re.value ? re.value : "1em", ze = E.value !== 0 && !E.value || E.value < 0 ? 100 : E.value, Ze = pe.value ? pe.value : "#f15574", De = Z.value ? Z.value : 200, Ie = be.value ? be.value : "normal", fa = ye.value ? ye.value : "xs", va = $.value ? $.value : !1, pa = x.value ? x.value : !1, ba = S.value ? S.value : "text", ha = qe.value ? qe.value : !1, Ca = tt.value ? tt.value : "normal", xa = se.value ? se.value : "left", Sa = ge.value ? ge.value : "background", Va = g.value ? g.value : "5px 10px", ka = ee.value ? ee.value : "0", La = de.value ? de.value : 10, Ta = _e.value ? _e.value : "#000000", Ba = we.value ? we.value : "#000000", Aa = Oe.value ? Oe.value : "transparent", $a = Fe.value ? Fe.value : "transparent", _a = le.value !== 0 && !le.value || le.value < 0 ? 0 : le.value, wa = He.value ? He.value : "transparent", Ra = ot.value ? ot.value : "transparent", Ma = D.value ? D.value : 32, za = Ye.value ? Ye.value : 1, Da = I.value ? I.value : !1, Ia = Qe.value !== 0 && !Qe.value || Qe.value < 0 ? 5 : Qe.value, Na = Re.value ? Re.value : "transparent", qa = j.value !== 0 && !j.value || j.value < 0 ? 15 : j.value, ja = L.value ? L.value : "1px 5px", Ha = ce.value !== 0 && !ce.value || ce.value < 0 ? 0 : ce.value, Ua = Xe.value !== 0 && !Xe.value || Xe.value < 0 ? -13 : Xe.value, Ga = b.value !== 0 && !b.value || b.value < 0 ? -10 : b.value, Ka = T.value ? T.value : "'Lato', sans-serif", Ya = B.value ? B.value : "1em", Qa = N.value ? N.value : "0.8em", Xa = Bt.value ? Bt.value : 400, Ja = At.value ? At.value : "#ffffff", Za = $t.value ? $t.value : "#000000", el = xt.value ? xt.value : "#ffffff", tl = mt.value ? mt.value : "#000000";
1162
1162
  return {
1163
1163
  disabled: u,
1164
- display: p,
1165
- font: g,
1166
- fontSize: S,
1167
- fontWeight: B,
1168
- fontFamilyMsg: $,
1169
- fontSizeMsg: P,
1170
- fontWeightMsg: ie,
1171
- textMessageColor: ze,
1172
- textColor: t,
1173
- caretColor: n,
1174
- selectionBgColor: r,
1175
- selectionTextColor: i,
1176
- hasBorderRadius: v,
1177
- borderRadius: f,
1164
+ display: t,
1165
+ font: C,
1166
+ fontSize: A,
1167
+ fontWeight: _,
1168
+ fontFamilyMsg: O,
1169
+ fontSizeMsg: oe,
1170
+ fontWeightMsg: ze,
1171
+ textMessageColor: Ze,
1172
+ textColor: n,
1173
+ caretColor: r,
1174
+ selectionBgColor: i,
1175
+ selectionTextColor: d,
1176
+ hasBorderRadius: f,
1177
+ borderRadius: v,
1178
1178
  textAlign: xa,
1179
- inputWidth: et,
1180
- activeTextStyle: De,
1181
- sizeMediaQuery: Ie,
1179
+ inputWidth: De,
1180
+ activeTextStyle: Ie,
1181
+ sizeMediaQuery: fa,
1182
1182
  inputReadonly: va,
1183
1183
  showInputEye: pa,
1184
1184
  inputType: ba,
@@ -1199,10 +1199,10 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
1199
1199
  iconSize: za,
1200
1200
  showLabel: Da,
1201
1201
  labelBackground: Na,
1202
- labelPadding: Ea,
1202
+ labelPadding: ja,
1203
1203
  labelBorderRadius: Ha,
1204
1204
  labelLeft: Ia,
1205
- inputLabelMarginActive: Wa,
1205
+ inputLabelMarginActive: qa,
1206
1206
  labelActiveTop: Ua,
1207
1207
  labelActiveLeft: Ga,
1208
1208
  fontFamilyLabel: Ka,
@@ -1214,13 +1214,13 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
1214
1214
  lightTextColorLabelActive: el,
1215
1215
  darkTextColorLabelActive: tl
1216
1216
  };
1217
- }), wt = a(() => k.value.disabled), Pt = a(() => ({
1218
- display: k.value.display
1219
- })), Ct = a(() => {
1220
- const u = k.value;
1217
+ }), _t = a(() => V.value.disabled), Pt = a(() => ({
1218
+ display: V.value.display
1219
+ })), ht = a(() => {
1220
+ const u = V.value;
1221
1221
  if (u.fontSize)
1222
1222
  return `${u.fontSize}em`;
1223
- let p = "";
1223
+ let t = "";
1224
1224
  switch (u.sizeMediaQuery) {
1225
1225
  case "sm":
1226
1226
  return "1.2em";
@@ -1229,35 +1229,35 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
1229
1229
  case "lg":
1230
1230
  return "2em";
1231
1231
  default:
1232
- p = "1.2em";
1232
+ t = "1.2em";
1233
1233
  }
1234
- return p;
1234
+ return t;
1235
1235
  }), Ot = a(() => {
1236
- const u = k.value, p = ct.value;
1236
+ const u = V.value, t = Mt.value;
1237
1237
  return {
1238
- fontSize: Ct.value,
1238
+ fontSize: ht.value,
1239
1239
  fontWeight: u.fontWeight,
1240
- marginTop: p && H.value ? `${u.inputLabelMarginActive}px` : "0"
1240
+ marginTop: t && I.value ? `${u.inputLabelMarginActive}px` : "0"
1241
1241
  };
1242
- }), rt = a(() => {
1243
- const u = k.value;
1242
+ }), Je = a(() => {
1243
+ const u = V.value;
1244
1244
  return u.inputStyle !== "line" && u.hasBorderRadius ? { borderRadius: `${u.borderRadius}rem` } : {};
1245
- }), xt = a(() => k.value.font), Ft = a(() => k.value.fontFamilyMsg), qt = a(() => k.value.fontSizeMsg), jt = a(() => k.value.fontWeightMsg), Ht = a(() => k.value.textColor), Ut = a(() => k.value.textMessageColor), Gt = a(() => {
1246
- const u = k.value;
1245
+ }), St = a(() => V.value.font), Ft = a(() => V.value.fontFamilyMsg), qt = a(() => V.value.fontSizeMsg), jt = a(() => V.value.fontWeightMsg), Ht = a(() => V.value.textColor), Ut = a(() => V.value.textMessageColor), Vt = a(() => {
1246
+ const u = V.value;
1247
1247
  return u.caretColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
1248
- }), kt = a(() => {
1249
- const u = k.value;
1248
+ }), Gt = a(() => {
1249
+ const u = V.value;
1250
1250
  return u.selectionBgColor || (u.theme === "dark" ? "#00d4ff" : "#007bff");
1251
- }), Kt = a(() => {
1252
- const u = k.value;
1251
+ }), wt = a(() => {
1252
+ const u = V.value;
1253
1253
  return u.selectionTextColor || (u.theme === "dark" ? "#000000" : "#ffffff");
1254
- }), Lt = a(() => {
1255
- const u = k.value;
1254
+ }), Rt = a(() => {
1255
+ const u = V.value;
1256
1256
  return u.display === "block" ? { width: "100%" } : {
1257
1257
  width: `${u.inputWidth}px`
1258
1258
  };
1259
- }), Tt = a(() => {
1260
- switch (ke.value) {
1259
+ }), kt = a(() => {
1260
+ switch (ge.value) {
1261
1261
  case "line":
1262
1262
  return "component__input--line";
1263
1263
  case "border":
@@ -1266,7 +1266,7 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
1266
1266
  return "component__input--background";
1267
1267
  }
1268
1268
  }), l = a(() => {
1269
- switch (k.value.activeTextStyle) {
1269
+ switch (V.value.activeTextStyle) {
1270
1270
  case "italic":
1271
1271
  return "component__input--active--italic";
1272
1272
  case "oblique":
@@ -1275,7 +1275,7 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
1275
1275
  return "component__input--active--normal";
1276
1276
  }
1277
1277
  }), s = a(() => {
1278
- switch (k.value.sizeMediaQuery) {
1278
+ switch (V.value.sizeMediaQuery) {
1279
1279
  case "sm":
1280
1280
  return "component__sm";
1281
1281
  case "md":
@@ -1285,174 +1285,174 @@ const gl = ["id"], yl = ["for"], ml = ["for"], hl = { key: 0 }, Cl = { key: 1 },
1285
1285
  default:
1286
1286
  return "";
1287
1287
  }
1288
- }), w = a(() => {
1289
- switch (k.value.theme) {
1288
+ }), z = a(() => {
1289
+ switch (V.value.theme) {
1290
1290
  case "dark":
1291
1291
  return "component__theme--dark";
1292
1292
  default:
1293
1293
  return "component__theme--light";
1294
1294
  }
1295
- }), Q = a(() => k.value.inputReadonly ? "component__input--read-only" : ""), Yt = a(() => k.value.inputUppercase ? "component__input--uppercase" : ""), Rt = a(() => {
1296
- const u = k.value;
1295
+ }), Q = a(() => V.value.inputReadonly ? "component__input--read-only" : ""), Kt = a(() => V.value.inputUppercase ? "component__input--uppercase" : ""), Lt = a(() => {
1296
+ const u = V.value;
1297
1297
  return !!(u.showInputEye && u.inputType === "password");
1298
- }), Mt = a(() => gt.value ? it.value : Ye.value), yt = a(() => Ge.value ? Ge.value : `${_.value}-name-label`), Qt = a(() => H.value ? ut.value ? Pe.value : "" : Pe.value), ct = a(() => ut.value || xe.value && xe.value.trim().length > 0), Xt = a(() => k.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Jt = a(() => ut.value ? "component__input--active" : "component__input--no-active"), Zt = a(() => Rt.value ? "6px 50px 6px 10px" : "6px 10px"), ea = a(() => !!(je.value && He.value)), Bt = a(() => {
1298
+ }), Yt = a(() => vt.value ? dt.value : Se.value), pt = a(() => Be.value ? Be.value : `${w.value}-name-label`), bt = a(() => I.value ? ut.value ? et.value : "" : et.value), Mt = a(() => ut.value || Me.value && Me.value.trim().length > 0), Qt = a(() => V.value.inputType === "password" ? "component__input__eye-default--hidden" : ""), Xt = a(() => ut.value ? "component__input--active" : "component__input--no-active"), Jt = a(() => Lt.value ? "6px 50px 6px 10px" : "6px 10px"), Tt = a(() => !!(je.value && $e.value)), Zt = a(() => {
1299
1299
  const u = {};
1300
- Ve.value && Object.keys(Ve.value).forEach((n) => u[`aria-${n}`] = Ve.value[n]);
1301
- const p = {
1302
- "aria-label": Ae.value,
1303
- "aria-disabled": W.value,
1300
+ Ce.value && Object.keys(Ce.value).forEach((r) => u[`aria-${r}`] = Ce.value[r]);
1301
+ const t = {
1302
+ "aria-label": ke.value,
1303
+ "aria-disabled": R.value,
1304
1304
  ...u
1305
1305
  };
1306
1306
  return Object.fromEntries(
1307
- Object.entries(p).filter(([t, n]) => n != null)
1307
+ Object.entries(t).filter(([n, r]) => r != null)
1308
1308
  );
1309
- }), ta = a(() => Y.value ? `${R.value}rem` : "0"), aa = a(() => Y.value ? `${A.value}px` : "0"), la = a(() => Y.value ? `component__icon--${c.value}` : ""), zt = a(() => {
1310
- const u = k.value;
1309
+ }), ea = a(() => Y.value ? `${Ye.value}rem` : "0"), ta = a(() => Y.value ? `${D.value}px` : "0"), zt = a(() => Y.value ? `component__icon--${c.value}` : ""), Dt = a(() => {
1310
+ const u = V.value;
1311
1311
  return Y.value ? u.iconPadding : "0";
1312
- }), Dt = a(() => {
1313
- const u = k.value;
1314
- return Y.value ? u.iconMargin : "0";
1315
1312
  }), It = a(() => {
1316
- const u = k.value;
1313
+ const u = V.value;
1314
+ return Y.value ? u.iconMargin : "0";
1315
+ }), st = a(() => {
1316
+ const u = V.value;
1317
1317
  return Y.value ? u.theme === "dark" ? u.iconDarkBgColor : u.iconLightBgColor : "transparent";
1318
- }), ft = a(() => {
1319
- const u = k.value;
1318
+ }), Ct = a(() => {
1319
+ const u = V.value;
1320
1320
  return Y.value ? `${u.iconBorderRadius}rem` : "0";
1321
- }), St = a(() => {
1322
- const u = k.value;
1321
+ }), gt = a(() => {
1322
+ const u = V.value;
1323
1323
  return Y.value ? c.value === "left" ? { paddingLeft: `${u.iconPaddingInput}px` } : { paddingRight: `${u.iconPaddingInput}px` } : {};
1324
- }), mt = a(() => {
1325
- const u = k.value, p = ct.value, t = p ? u.lightTextColorLabelActive : u.lightTextColorLabel, n = p ? u.darkTextColorLabelActive : u.darkTextColorLabel;
1324
+ }), Nt = a(() => {
1325
+ const u = V.value, t = Mt.value, n = t ? u.lightTextColorLabelActive : u.lightTextColorLabel, r = t ? u.darkTextColorLabelActive : u.darkTextColorLabel;
1326
1326
  return {
1327
1327
  fontFamily: u.fontFamilyLabel,
1328
- fontSize: p ? u.fontSizeLabelActive : u.fontSizeLabel,
1328
+ fontSize: t ? u.fontSizeLabelActive : u.fontSizeLabel,
1329
1329
  fontWeight: u.fontWeightLabel,
1330
- color: u.theme === "dark" ? n : t,
1331
- top: p ? `${u.labelActiveTop}px` : "50%",
1332
- left: p ? `${u.labelActiveLeft}px` : `${u.labelLeft}px`,
1333
- transform: p ? "translateY(0)" : "translateY(-50%)",
1330
+ color: u.theme === "dark" ? r : n,
1331
+ top: t ? `${u.labelActiveTop}px` : "50%",
1332
+ left: t ? `${u.labelActiveLeft}px` : `${u.labelLeft}px`,
1333
+ transform: t ? "translateY(0)" : "translateY(-50%)",
1334
1334
  transition: "all 0.2s ease",
1335
- backgroundColor: p ? u.labelBackground : "transparent",
1336
- padding: p ? u.labelPadding : "0",
1337
- borderRadius: p ? `${u.labelBorderRadius}rem` : "0"
1335
+ backgroundColor: t ? u.labelBackground : "transparent",
1336
+ padding: t ? u.labelPadding : "0",
1337
+ borderRadius: t ? `${u.labelBorderRadius}rem` : "0"
1338
1338
  };
1339
1339
  });
1340
1340
  a(() => {
1341
- const u = k.value;
1341
+ const u = V.value;
1342
1342
  return u.theme === "dark" ? u.darkTextColorLabelActive : u.lightTextColorLabelActive;
1343
1343
  });
1344
- const Nt = () => {
1345
- xe.value = Ke.value, dt.value = d.value;
1346
- }, na = () => {
1347
- const u = k.value;
1344
+ const aa = () => {
1345
+ Me.value = Ue.value, it.value = S.value;
1346
+ }, Wt = () => {
1347
+ const u = V.value;
1348
1348
  if (u.inputReadonly || u.disabled)
1349
1349
  return;
1350
- const p = !gt.value;
1351
- p ? dt.value = "text" : dt.value = d.value, gt.value = p;
1352
- }, Wt = () => {
1350
+ const t = !vt.value;
1351
+ t ? it.value = "text" : it.value = S.value, vt.value = t;
1352
+ }, ne = () => {
1353
1353
  h("clicked");
1354
- }, re = () => {
1355
- W.value || k.value.inputReadonly || !ge.value || h("entered", xe.value);
1354
+ }, la = () => {
1355
+ R.value || V.value.inputReadonly || !ve.value || h("entered", Me.value);
1356
1356
  };
1357
- return G(d, (u) => {
1358
- dt.value = u;
1359
- }, { immediate: !0 }), G(Ke, (u) => {
1360
- u !== xe.value && (xe.value = u);
1361
- }, { immediate: !0 }), G(xe, (u) => {
1362
- _e.value && (u = u.trim()), h("changed", u);
1363
- }), G(ut, (u) => {
1357
+ return H(S, (u) => {
1358
+ it.value = u;
1359
+ }, { immediate: !0 }), H(Ue, (u) => {
1360
+ u !== Me.value && (Me.value = u);
1361
+ }, { immediate: !0 }), H(Me, (u) => {
1362
+ Te.value && (u = u.trim()), h("changed", u);
1363
+ }), H(ut, (u) => {
1364
1364
  h(u ? "focused" : "blurred");
1365
- }), G(gt, (u) => {
1365
+ }), H(vt, (u) => {
1366
1366
  h("show-input-eye", u);
1367
- }, { immediate: !0 }), G(xe, (u) => {
1368
- _e.value && (u = u.trim()), h("current-value", u);
1369
- }), G(d, (u) => {
1367
+ }, { immediate: !0 }), H(Me, (u) => {
1368
+ Te.value && (u = u.trim()), h("current-value", u);
1369
+ }), H(S, (u) => {
1370
1370
  u === "password" && nextTick(() => {
1371
- const p = document.getElementById(Ge.value);
1372
- p && (p.type = "password", p.removeAttribute("autocomplete"));
1371
+ const t = document.getElementById(Be.value);
1372
+ t && (t.type = "password", t.removeAttribute("autocomplete"));
1373
1373
  });
1374
- }), (u, p) => o(_) ? (O(), F("div", ra({
1374
+ }), (u, t) => o(w) ? (F(), q("div", ua({
1375
1375
  key: 0,
1376
- class: ["nb-wrapper", wt.value],
1377
- style: [Pt.value, Lt.value, rt.value],
1376
+ class: ["nb-wrapper", _t.value],
1377
+ style: [Pt.value, Rt.value, Je.value],
1378
1378
  role: "input"
1379
- }, Bt.value), [
1380
- be("div", {
1381
- id: o(_),
1382
- class: Ne(["nb-reset", "component", s.value, w.value, Q.value, Tt.value]),
1383
- style: We([Ot.value, Lt.value, rt.value]),
1384
- onClick: Wt
1379
+ }, Zt.value), [
1380
+ fe("div", {
1381
+ id: o(w),
1382
+ class: Ne(["nb-reset", "component", s.value, z.value, Q.value, kt.value]),
1383
+ style: We([Ot.value, Rt.value, Je.value]),
1384
+ onClick: ne
1385
1385
  }, [
1386
- o(H) ? (O(), F("label", {
1386
+ o(I) ? (F(), q("label", {
1387
1387
  key: 0,
1388
- for: yt.value,
1388
+ for: pt.value,
1389
1389
  class: "component__label",
1390
- style: We([mt.value])
1391
- }, ht(e.label), 13, yl)) : Be("", !0),
1392
- Rt.value ? (O(), F("div", {
1390
+ style: We([Nt.value])
1391
+ }, yt(e.label), 13, yl)) : Ve("", !0),
1392
+ Lt.value ? (F(), q("div", {
1393
1393
  key: 1,
1394
- class: Ne(["component__eye", Jt.value]),
1395
- style: We([rt.value]),
1396
- onClick: na
1394
+ class: Ne(["component__eye", Xt.value]),
1395
+ style: We([Je.value]),
1396
+ onClick: Wt
1397
1397
  }, [
1398
- be("label", {
1399
- for: yt.value,
1398
+ fe("label", {
1399
+ for: pt.value,
1400
1400
  class: Ne(["component__eye-icon", "fas"])
1401
1401
  }, [
1402
- e.inputEyeCustomIcon ? (O(), F("span", Cl, [
1403
- gt.value ? oa(u.$slots, "eye-icon-show", { key: 0 }, () => [
1404
- p[4] || (p[4] = ga("show"))
1405
- ], !0) : oa(u.$slots, "eye-icon-hidden", { key: 1 }, () => [
1406
- p[5] || (p[5] = ga("hidden"))
1402
+ e.inputEyeCustomIcon ? (F(), q("span", Cl, [
1403
+ vt.value ? na(u.$slots, "eye-icon-show", { key: 0 }, () => [
1404
+ t[4] || (t[4] = ga("show"))
1405
+ ], !0) : na(u.$slots, "eye-icon-hidden", { key: 1 }, () => [
1406
+ t[5] || (t[5] = ga("hidden"))
1407
1407
  ], !0)
1408
- ])) : (O(), F("span", hl, ht(Mt.value), 1))
1408
+ ])) : (F(), q("span", hl, yt(Yt.value), 1))
1409
1409
  ], 8, ml)
1410
- ], 6)) : Be("", !0),
1411
- ca(be("input", {
1412
- "onUpdate:modelValue": p[0] || (p[0] = (t) => xe.value = t),
1413
- id: yt.value,
1414
- name: yt.value,
1415
- type: dt.value,
1410
+ ], 6)) : Ve("", !0),
1411
+ da(fe("input", {
1412
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => Me.value = n),
1413
+ id: pt.value,
1414
+ name: pt.value,
1415
+ type: it.value,
1416
1416
  class: Ne(["component__input", [
1417
- Yt.value,
1418
- Xt.value,
1417
+ Kt.value,
1418
+ Qt.value,
1419
1419
  l.value
1420
1420
  ]]),
1421
- placeholder: Qt.value,
1422
- disabled: o(W) || o(I),
1421
+ placeholder: bt.value,
1422
+ disabled: o(R) || o($),
1423
1423
  required: e.required,
1424
- readonly: o(I),
1424
+ readonly: o($),
1425
1425
  autocomplete: e.inputAutocomplete,
1426
- tabindex: o(W) || o(I) ? -1 : o(vt),
1426
+ tabindex: o(R) || o($) ? -1 : o(Ge),
1427
1427
  role: "input",
1428
- style: We([rt.value, St.value]),
1429
- onFocus: p[1] || (p[1] = (t) => ut.value = !0),
1430
- onBlur: p[2] || (p[2] = (t) => ut.value = !1),
1431
- onKeydown: p[3] || (p[3] = Et((t) => !o(W) && o(ge) && re(), ["enter"]))
1428
+ style: We([Je.value, gt.value]),
1429
+ onFocus: t[1] || (t[1] = (n) => ut.value = !0),
1430
+ onBlur: t[2] || (t[2] = (n) => ut.value = !1),
1431
+ onKeydown: t[3] || (t[3] = Et((n) => !o(R) && o(ve) && la(), ["enter"]))
1432
1432
  }, null, 46, xl), [
1433
- [qa, xe.value]
1433
+ [Oa, Me.value]
1434
1434
  ]),
1435
- o(Y) ? (O(), F("label", {
1435
+ o(Y) ? (F(), q("label", {
1436
1436
  key: 2,
1437
- for: yt.value,
1438
- class: Ne(["component__icon", la.value])
1437
+ for: pt.value,
1438
+ class: Ne(["component__icon", zt.value])
1439
1439
  }, [
1440
- oa(u.$slots, "icon", {}, () => [
1441
- p[6] || (p[6] = be("span", null, "♥", -1))
1440
+ na(u.$slots, "icon", {}, () => [
1441
+ t[6] || (t[6] = fe("span", null, "♥", -1))
1442
1442
  ], !0)
1443
- ], 10, Sl)) : Be("", !0)
1443
+ ], 10, Sl)) : Ve("", !0)
1444
1444
  ], 14, gl),
1445
- ea.value ? (O(), F("div", {
1445
+ Tt.value ? (F(), q("div", {
1446
1446
  key: 0,
1447
1447
  class: Ne(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
1448
1448
  }, [
1449
- oa(u.$slots, "message", {}, () => [
1450
- ga(ht(e.message), 1)
1449
+ na(u.$slots, "message", {}, () => [
1450
+ ga(yt(e.message), 1)
1451
1451
  ], !0)
1452
- ], 2)) : Be("", !0)
1453
- ], 16)) : Be("", !0);
1452
+ ], 2)) : Ve("", !0)
1453
+ ], 16)) : Ve("", !0);
1454
1454
  }
1455
- }), kl = /* @__PURE__ */ fa(Vl, [["__scopeId", "data-v-d2aa24e0"]]);
1455
+ }), kl = /* @__PURE__ */ ca(Vl, [["__scopeId", "data-v-d2aa24e0"]]);
1456
1456
  const Ll = ["for"], Tl = ["id"], Bl = { class: "chip-text" }, Al = ["onClick"], $l = ["id", "name", "placeholder", "readonly", "autocomplete", "required", "tabindex"], _l = /* @__PURE__ */ Object.assign({
1457
1457
  name: "NbInputChip",
1458
1458
  inheritAttrs: !1
@@ -1467,8 +1467,8 @@ const Ll = ["for"], Tl = ["id"], Bl = { class: "chip-text" }, Al = ["onClick"],
1467
1467
  type: String,
1468
1468
  default: "b",
1469
1469
  validator: (e = "b") => {
1470
- const m = e.toLowerCase();
1471
- return ["b", "ib"].includes(m);
1470
+ const y = e.toLowerCase();
1471
+ return ["b", "ib"].includes(y);
1472
1472
  }
1473
1473
  },
1474
1474
  tabIndex: {
@@ -1777,165 +1777,165 @@ const Ll = ["for"], Tl = ["id"], Bl = { class: "chip-text" }, Al = ["onClick"],
1777
1777
  }
1778
1778
  },
1779
1779
  emits: ["clicked", "changed", "removed", "added", "input-changed", "focused", "blurred"],
1780
- setup(e, { emit: m }) {
1781
- sa((l) => ({
1782
- "1f44fc40": _t.value,
1783
- "7aef2e9a": dt.value,
1784
- "59a433de": o(it),
1780
+ setup(e, { emit: y }) {
1781
+ ia((l) => ({
1782
+ "1f44fc40": mt.value,
1783
+ "7aef2e9a": it.value,
1784
+ "59a433de": o(dt),
1785
1785
  "1861ee8e": o(qe),
1786
- "384c989c": o(Pe),
1787
- "24a3194d": o(vt),
1788
- "1f4021a5": o(Ye),
1789
- "3629ccee": o(Le),
1786
+ "384c989c": o(et),
1787
+ "24a3194d": o(Ge),
1788
+ "1f4021a5": o(Se),
1789
+ "3629ccee": o(me),
1790
1790
  d256be22: o(lt),
1791
- "3502e317": o(pt),
1792
- "58bd2f10": o(st),
1793
- ccf2d6aa: o(Qe),
1794
- "2d9b84fa": o(Xe),
1795
- "4c04694c": o(b),
1796
- "430b3046": o(Ke),
1797
- "2ef7c0b0": o(bt),
1791
+ "3502e317": o(rt),
1792
+ "58bd2f10": o(ft),
1793
+ ccf2d6aa: o(nt),
1794
+ "2d9b84fa": o(Ae),
1795
+ "4c04694c": o(p),
1796
+ "430b3046": o(Ue),
1797
+ "2ef7c0b0": o(Ke),
1798
1798
  "2528f800": ut.value,
1799
- "4691c552": k.value,
1800
- ff983f2c: wt.value,
1799
+ "4691c552": V.value,
1800
+ ff983f2c: _t.value,
1801
1801
  "7dff2cf1": l.styleButtonColor,
1802
- "64bb0854": xe.value,
1802
+ "64bb0854": Me.value,
1803
1803
  "77bb179d": o(tt),
1804
- "639bb096": o(he),
1805
- e4d4980a: o(Te),
1806
- d0162418: o(V)
1807
- })), ua(() => {
1808
- le.value.length > 0 && (E.value = le.value);
1804
+ "639bb096": o(ct),
1805
+ e4d4980a: o(Pe),
1806
+ d0162418: o(k)
1807
+ })), oa(() => {
1808
+ U.value.length > 0 && (b.value = U.value);
1809
1809
  });
1810
- const h = m, z = e, {
1811
- nbId: _,
1812
- display: Se,
1813
- textColor: ge,
1814
- paddingX: Ae,
1815
- paddingY: Ve,
1816
- borderRadius: se,
1817
- disabled: N,
1810
+ const h = y, W = e, {
1811
+ nbId: w,
1812
+ display: he,
1813
+ textColor: ve,
1814
+ paddingX: ke,
1815
+ paddingY: Ce,
1816
+ borderRadius: ue,
1817
+ disabled: J,
1818
1818
  fontFamily: Ee,
1819
- fontSize: $e,
1820
- fontWeight: ae,
1821
- currentList: le,
1822
- allowDuplicates: W,
1823
- minChips: D,
1824
- maxChips: J,
1825
- inputPosition: Z,
1826
- width: ye,
1827
- inputName: de,
1828
- inputPlaceholder: q,
1829
- inputUppercase: ne,
1830
- inputReadonly: ee,
1831
- inputAutocomplete: ke,
1832
- required: ce,
1833
- textAlign: fe,
1834
- hasBorderRadius: I,
1835
- activeTextStyle: me,
1836
- theme: d,
1837
- inputStyle: _e,
1819
+ fontSize: Le,
1820
+ fontWeight: te,
1821
+ currentList: U,
1822
+ allowDuplicates: R,
1823
+ minChips: ae,
1824
+ maxChips: G,
1825
+ inputPosition: K,
1826
+ width: xe,
1827
+ inputName: re,
1828
+ inputPlaceholder: E,
1829
+ inputUppercase: pe,
1830
+ inputReadonly: Z,
1831
+ inputAutocomplete: ge,
1832
+ required: be,
1833
+ textAlign: ye,
1834
+ hasBorderRadius: $,
1835
+ activeTextStyle: x,
1836
+ theme: S,
1837
+ inputStyle: Te,
1838
1838
  lightBgColor: qe,
1839
- lightBgColorFocus: Ge,
1840
- lightBorderColor: Pe,
1841
- lightBorderColorFocus: Ke,
1839
+ lightBgColorFocus: Be,
1840
+ lightBorderColor: et,
1841
+ lightBorderColorFocus: Ue,
1842
1842
  lightDisabledBgColor: tt,
1843
- lightTextColor: it,
1844
- lightChipBgColor: vt,
1845
- lightChipTextColor: Ye,
1846
- lightChipRemoveColor: Le,
1847
- lightDisabledBorderColor: he,
1848
- darkBgColor: pt,
1843
+ lightTextColor: dt,
1844
+ lightChipBgColor: Ge,
1845
+ lightChipTextColor: Se,
1846
+ lightChipRemoveColor: me,
1847
+ lightDisabledBorderColor: ct,
1848
+ darkBgColor: rt,
1849
1849
  darkBgColorFocus: at,
1850
- darkBorderColor: st,
1851
- darkBorderColorFocus: bt,
1852
- darkDisabledBgColor: Te,
1850
+ darkBorderColor: ft,
1851
+ darkBorderColorFocus: Ke,
1852
+ darkDisabledBgColor: Pe,
1853
1853
  darkTextColor: lt,
1854
- darkChipBgColor: Qe,
1855
- darkChipTextColor: Xe,
1856
- darkChipRemoveColor: b,
1857
- darkDisabledBorderColor: V,
1858
- tabIndex: ve,
1859
- hasTabIndexEnter: K,
1860
- ariaLabel: te,
1854
+ darkChipBgColor: nt,
1855
+ darkChipTextColor: Ae,
1856
+ darkChipRemoveColor: p,
1857
+ darkDisabledBorderColor: k,
1858
+ tabIndex: ie,
1859
+ hasTabIndexEnter: P,
1860
+ ariaLabel: se,
1861
1861
  ariaAttrs: je,
1862
- caretColor: He,
1862
+ caretColor: $e,
1863
1863
  selectionBgColor: Y,
1864
1864
  selectionTextColor: c,
1865
- showLabel: y,
1866
- label: pe,
1867
- labelBackground: j,
1868
- labelPadding: oe,
1869
- labelBorderRadius: we,
1870
- labelLeft: Re,
1865
+ showLabel: g,
1866
+ label: de,
1867
+ labelBackground: ee,
1868
+ labelPadding: le,
1869
+ labelBorderRadius: _e,
1870
+ labelLeft: we,
1871
1871
  inputLabelMarginActive: Oe,
1872
1872
  labelActiveTop: Fe,
1873
- labelActiveLeft: Ue,
1874
- fontFamilyLabel: nt,
1875
- fontSizeLabel: ot,
1876
- fontSizeLabelActive: C,
1877
- fontWeightLabel: A,
1878
- lightTextColorLabel: R,
1879
- lightTextColorLabelActive: H,
1880
- darkTextColorLabel: Ce,
1873
+ labelActiveLeft: He,
1874
+ fontFamilyLabel: ot,
1875
+ fontSizeLabel: m,
1876
+ fontSizeLabelActive: M,
1877
+ fontWeightLabel: D,
1878
+ lightTextColorLabel: Ye,
1879
+ lightTextColorLabelActive: I,
1880
+ darkTextColorLabel: Re,
1881
1881
  darkTextColorLabelActive: L
1882
- } = da(z), Me = X(""), Je = X(null), Ze = X(null), U = X(null), E = X([]), T = X(!1), x = a(() => {
1883
- const l = N.value ? "component-disabled" : "", s = Se.value !== "b" ? "inline-block" : "block", w = !ye.value || ye.value < 185 ? 185 : ye.value, Q = ge ? ge.value : "ffffff", Yt = He.value ? He.value : "", Rt = Y.value ? Y.value : "", Mt = c.value ? c.value : "", yt = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 1 : Ae.value, Qt = Ve.value !== 0 && !Ve.value || Ve.value < 0 ? 0.2 : Ve.value, ct = se.value !== 0 && !se.value || se.value < 0 ? 0 : se.value, Xt = Ee.value ? Ee.value : "'Lato', sans-serif", Jt = $e.value ? $e.value : "1.6rem", Zt = ae.value !== 0 && !ae.value || ae.value < 0 ? 100 : ae.value, ea = D.value !== 0 && !D.value || D.value < 0 ? 0 : D.value, Bt = J.value !== 0 && !J.value || J.value < 0 ? 10 : J.value, ta = !Z.value || !["top", "bottom"].includes(Z.value) ? "bottom" : Z.value, aa = !_e.value || !["background", "line", "border"].includes(_e.value) ? "background" : _e.value, la = d.value ? d.value : "light", zt = y.value ? y.value : !1, Dt = Re.value !== 0 && !Re.value || Re.value < 0 ? 5 : Re.value, It = j.value ? j.value : "transparent", ft = Oe.value !== 0 && !Oe.value || Oe.value < 0 ? 15 : Oe.value, St = oe.value ? oe.value : "1px 5px", mt = we.value !== 0 && !we.value || we.value < 0 ? 0 : we.value, Nt = Fe.value !== 0 && !Fe.value || Fe.value < 0 ? 13 : Fe.value, na = Ue.value !== 0 && !Ue.value || Ue.value < 0 ? 5 : Ue.value, Wt = nt.value ? nt.value : "'Lato', sans-serif", re = ot.value ? ot.value : "1em", u = C.value ? C.value : "0.8em", p = A.value ? A.value : 400, t = R.value ? R.value : "#333333", n = Ce.value ? Ce.value : "#ffffff", r = H.value ? H.value : "#333333", i = L.value ? L.value : "#ffffff";
1882
+ } = sa(W), ce = X(""), Qe = X(null), j = X(null), Xe = X(null), b = X([]), T = X(!1), B = a(() => {
1883
+ const l = J.value ? "component-disabled" : "", s = he.value !== "b" ? "inline-block" : "block", z = !xe.value || xe.value < 185 ? 185 : xe.value, Q = ve ? ve.value : "ffffff", Kt = $e.value ? $e.value : "", Lt = Y.value ? Y.value : "", Yt = c.value ? c.value : "", pt = ke.value !== 0 && !ke.value || ke.value < 0 ? 1 : ke.value, bt = Ce.value !== 0 && !Ce.value || Ce.value < 0 ? 0.2 : Ce.value, Mt = ue.value !== 0 && !ue.value || ue.value < 0 ? 0 : ue.value, Qt = Ee.value ? Ee.value : "'Lato', sans-serif", Xt = Le.value ? Le.value : "1.6rem", Jt = te.value !== 0 && !te.value || te.value < 0 ? 100 : te.value, Tt = ae.value !== 0 && !ae.value || ae.value < 0 ? 0 : ae.value, Zt = G.value !== 0 && !G.value || G.value < 0 ? 10 : G.value, ea = !K.value || !["top", "bottom"].includes(K.value) ? "bottom" : K.value, ta = !Te.value || !["background", "line", "border"].includes(Te.value) ? "background" : Te.value, zt = S.value ? S.value : "light", Dt = g.value ? g.value : !1, It = we.value !== 0 && !we.value || we.value < 0 ? 5 : we.value, st = ee.value ? ee.value : "transparent", Ct = Oe.value !== 0 && !Oe.value || Oe.value < 0 ? 15 : Oe.value, gt = le.value ? le.value : "1px 5px", Nt = _e.value !== 0 && !_e.value || _e.value < 0 ? 0 : _e.value, aa = Fe.value !== 0 && !Fe.value || Fe.value < 0 ? 13 : Fe.value, Wt = He.value !== 0 && !He.value || He.value < 0 ? 5 : He.value, ne = ot.value ? ot.value : "'Lato', sans-serif", la = m.value ? m.value : "1em", u = M.value ? M.value : "0.8em", t = D.value ? D.value : 400, n = Ye.value ? Ye.value : "#333333", r = Re.value ? Re.value : "#ffffff", i = I.value ? I.value : "#333333", d = L.value ? L.value : "#ffffff";
1884
1884
  return {
1885
1885
  disabled: l,
1886
1886
  display: s,
1887
- width: w,
1888
- font: Xt,
1889
- fontSize: Jt,
1890
- fontWeight: Zt,
1887
+ width: z,
1888
+ font: Qt,
1889
+ fontSize: Xt,
1890
+ fontWeight: Jt,
1891
1891
  textColor: Q,
1892
- caretColor: Yt,
1893
- selectionBgColor: Rt,
1894
- selectionTextColor: Mt,
1895
- paddingX: yt,
1896
- paddingY: Qt,
1897
- borderRadius: ct,
1898
- minChips: ea,
1899
- maxChips: Bt,
1900
- inputPosition: ta,
1901
- inputStyle: aa,
1902
- theme: la,
1903
- showLabel: zt,
1904
- labelLeft: Dt,
1905
- labelBackground: It,
1906
- inputLabelMarginActive: ft,
1907
- labelPadding: St,
1908
- labelBorderRadius: mt,
1909
- labelActiveTop: Nt,
1910
- labelActiveLeft: na,
1911
- fontFamilyLabel: Wt,
1912
- fontSizeLabel: re,
1892
+ caretColor: Kt,
1893
+ selectionBgColor: Lt,
1894
+ selectionTextColor: Yt,
1895
+ paddingX: pt,
1896
+ paddingY: bt,
1897
+ borderRadius: Mt,
1898
+ minChips: Tt,
1899
+ maxChips: Zt,
1900
+ inputPosition: ea,
1901
+ inputStyle: ta,
1902
+ theme: zt,
1903
+ showLabel: Dt,
1904
+ labelLeft: It,
1905
+ labelBackground: st,
1906
+ inputLabelMarginActive: Ct,
1907
+ labelPadding: gt,
1908
+ labelBorderRadius: Nt,
1909
+ labelActiveTop: aa,
1910
+ labelActiveLeft: Wt,
1911
+ fontFamilyLabel: ne,
1912
+ fontSizeLabel: la,
1913
1913
  fontSizeLabelActive: u,
1914
- fontWeightLabel: p,
1915
- lightTextColorLabel: t,
1916
- darkTextColorLabel: n,
1917
- lightTextColorLabelActive: r,
1918
- darkTextColorLabelActive: i
1914
+ fontWeightLabel: t,
1915
+ lightTextColorLabel: n,
1916
+ darkTextColorLabel: r,
1917
+ lightTextColorLabelActive: i,
1918
+ darkTextColorLabelActive: d
1919
1919
  };
1920
- }), ue = a(() => x.value.disabled), M = a(() => {
1921
- const l = x.value, s = xt.value;
1920
+ }), N = a(() => B.value.disabled), Bt = a(() => {
1921
+ const l = B.value, s = St.value;
1922
1922
  return {
1923
1923
  display: l.display,
1924
1924
  // Adiciona padding-top quando o label está ativo para evitar que seja cortado
1925
- paddingTop: s && y.value ? `${Math.abs(l.labelActiveTop)}px` : "0"
1925
+ paddingTop: s && g.value ? `${Math.abs(l.labelActiveTop)}px` : "0"
1926
1926
  };
1927
1927
  }), At = a(() => {
1928
- const l = x.value, s = xt.value;
1928
+ const l = B.value, s = St.value;
1929
1929
  return {
1930
1930
  color: l.textColor,
1931
1931
  padding: `${l.paddingY}rem ${l.paddingX}rem`,
1932
1932
  fontSize: l.fontSize,
1933
1933
  fontWeight: l.fontWeight,
1934
- textAlign: fe.value,
1935
- marginTop: s && y.value ? `${l.inputLabelMarginActive}px` : "0"
1934
+ textAlign: ye.value,
1935
+ marginTop: s && g.value ? `${l.inputLabelMarginActive}px` : "0"
1936
1936
  };
1937
- }), $t = a(() => {
1938
- switch (me.value) {
1937
+ }), xt = a(() => {
1938
+ switch (x.value) {
1939
1939
  case "italic":
1940
1940
  return "component__text--italic";
1941
1941
  case "oblique":
@@ -1943,46 +1943,46 @@ const Ll = ["for"], Tl = ["id"], Bl = { class: "chip-text" }, Al = ["onClick"],
1943
1943
  default:
1944
1944
  return "component__text--normal";
1945
1945
  }
1946
- }), Vt = a(() => {
1947
- const l = x.value;
1948
- return l.inputStyle !== "line" && I.value ? { borderRadius: `${l.borderRadius}rem` } : {};
1949
- }), _t = a(() => x.value.font), xe = a(() => x.value.textColor), dt = a(() => x.value.inputPosition === "top" ? "column" : "column-reverse"), gt = a(() => {
1946
+ }), $t = a(() => {
1947
+ const l = B.value;
1948
+ return l.inputStyle !== "line" && $.value ? { borderRadius: `${l.borderRadius}rem` } : {};
1949
+ }), mt = a(() => B.value.font), Me = a(() => B.value.textColor), it = a(() => B.value.inputPosition === "top" ? "column" : "column-reverse"), vt = a(() => {
1950
1950
  const l = {};
1951
1951
  je.value && Object.keys(je.value).forEach((Q) => l[`aria-${Q}`] = je.value[Q]);
1952
1952
  const s = {
1953
- "aria-label": te.value,
1954
- "aria-disabled": N.value,
1953
+ "aria-label": se.value,
1954
+ "aria-disabled": J.value,
1955
1955
  ...l
1956
1956
  };
1957
1957
  return Object.fromEntries(
1958
- Object.entries(s).filter(([w, Q]) => Q != null)
1958
+ Object.entries(s).filter(([z, Q]) => Q != null)
1959
1959
  );
1960
1960
  }), ut = a(() => {
1961
- const l = x.value;
1961
+ const l = B.value;
1962
1962
  return l.caretColor || (l.theme === "dark" ? "#00d4ff" : "#007bff");
1963
- }), k = a(() => {
1964
- const l = x.value;
1963
+ }), V = a(() => {
1964
+ const l = B.value;
1965
1965
  return l.selectionBgColor || (l.theme === "dark" ? "#00d4ff" : "#007bff");
1966
- }), wt = a(() => {
1967
- const l = x.value;
1966
+ }), _t = a(() => {
1967
+ const l = B.value;
1968
1968
  return l.selectionTextColor || (l.theme === "dark" ? "#000000" : "#ffffff");
1969
1969
  }), Pt = a(() => ({
1970
1970
  caretColor: ut.value
1971
- })), Ct = a(() => ({
1972
- "--selection-bg-color": k.value,
1973
- "--selection-text-color": wt.value
1971
+ })), ht = a(() => ({
1972
+ "--selection-bg-color": V.value,
1973
+ "--selection-text-color": _t.value
1974
1974
  })), Ot = a(() => {
1975
- const l = x.value, s = {
1975
+ const l = B.value, s = {
1976
1976
  width: `${l.width}px`
1977
1977
  };
1978
1978
  return l.display === "block" ? { width: "auto" } : s;
1979
- }), rt = a(() => de.value ? de.value : `${_.value}-name-label`), xt = a(() => T.value || E.value.length > 0 || Me.value && Me.value.trim().length > 0), Ft = a(() => y.value ? T.value || E.value.length > 0 ? q.value : "" : q.value), qt = a(() => {
1980
- const l = x.value, s = xt.value, w = s ? l.lightTextColorLabelActive : l.lightTextColorLabel, Q = s ? l.darkTextColorLabelActive : l.darkTextColorLabel;
1979
+ }), Je = a(() => re.value ? re.value : `${w.value}-name-label`), St = a(() => T.value || b.value.length > 0 || ce.value && ce.value.trim().length > 0), Ft = a(() => g.value ? T.value || b.value.length > 0 ? E.value : "" : E.value), qt = a(() => {
1980
+ const l = B.value, s = St.value, z = s ? l.lightTextColorLabelActive : l.lightTextColorLabel, Q = s ? l.darkTextColorLabelActive : l.darkTextColorLabel;
1981
1981
  return {
1982
1982
  fontFamily: l.fontFamilyLabel,
1983
1983
  fontSize: s ? l.fontSizeLabelActive : l.fontSizeLabel,
1984
1984
  fontWeight: l.fontWeightLabel,
1985
- color: l.theme === "dark" ? Q : w,
1985
+ color: l.theme === "dark" ? Q : z,
1986
1986
  top: s ? `${l.labelActiveTop}px` : "50%",
1987
1987
  left: s ? `${l.labelActiveLeft}px` : `${l.labelLeft}px`,
1988
1988
  transform: s ? "translateY(0)" : "translateY(-50%)",
@@ -1992,14 +1992,14 @@ const Ll = ["for"], Tl = ["id"], Bl = { class: "chip-text" }, Al = ["onClick"],
1992
1992
  borderRadius: s ? `${l.labelBorderRadius}rem` : "0"
1993
1993
  };
1994
1994
  }), jt = a(() => {
1995
- switch (d.value) {
1995
+ switch (S.value) {
1996
1996
  case "dark":
1997
1997
  return "component__theme--dark";
1998
1998
  default:
1999
1999
  return "component__theme--light";
2000
2000
  }
2001
2001
  }), Ht = a(() => {
2002
- switch (_e.value) {
2002
+ switch (Te.value) {
2003
2003
  case "line":
2004
2004
  return "component__input--line";
2005
2005
  case "border":
@@ -2009,92 +2009,92 @@ const Ll = ["for"], Tl = ["id"], Bl = { class: "chip-text" }, Al = ["onClick"],
2009
2009
  }
2010
2010
  }), Ut = () => {
2011
2011
  h("clicked");
2012
- }, Gt = () => {
2012
+ }, Vt = () => {
2013
2013
  T.value = !0, h("focused");
2014
- }, kt = () => {
2014
+ }, Gt = () => {
2015
2015
  T.value = !1, h("blurred");
2016
- }, Kt = (l) => {
2017
- if (!(N.value || ee.value) && l.key === "Enter" && Me.value.trim() !== "") {
2016
+ }, wt = (l) => {
2017
+ if (!(J.value || Z.value) && l.key === "Enter" && ce.value.trim() !== "") {
2018
2018
  l.preventDefault();
2019
- let s = Me.value.trim();
2020
- ne.value && (s = s.toUpperCase()), (W.value || !E.value.includes(s)) && Lt(s), Me.value = "";
2019
+ let s = ce.value.trim();
2020
+ pe.value && (s = s.toUpperCase()), (R.value || !b.value.includes(s)) && Rt(s), ce.value = "";
2021
2021
  }
2022
- }, Lt = (l) => {
2023
- E.value.push(l), h("added", l);
2024
- }, Tt = (l) => {
2025
- E.value = E.value.filter((s) => s !== l), h("removed", l);
2022
+ }, Rt = (l) => {
2023
+ b.value.push(l), h("added", l);
2024
+ }, kt = (l) => {
2025
+ b.value = b.value.filter((s) => s !== l), h("removed", l);
2026
2026
  };
2027
- return G(le, (l) => {
2028
- E.value = l, h("changed", l);
2029
- }), G(Me, (l) => {
2027
+ return H(U, (l) => {
2028
+ b.value = l, h("changed", l);
2029
+ }), H(ce, (l) => {
2030
2030
  h("input-changed", l);
2031
- }), (l, s) => o(_) ? (O(), F("div", ra({
2031
+ }), (l, s) => o(w) ? (F(), q("div", ua({
2032
2032
  key: 0,
2033
- class: ["nb-wrapper", ue.value],
2034
- style: [M.value],
2033
+ class: ["nb-wrapper", N.value],
2034
+ style: [Bt.value],
2035
2035
  role: "input"
2036
- }, gt.value, { onClick: Ut }), [
2037
- o(y) ? (O(), F("label", {
2036
+ }, vt.value, { onClick: Ut }), [
2037
+ o(g) ? (F(), q("label", {
2038
2038
  key: 0,
2039
- for: rt.value,
2039
+ for: Je.value,
2040
2040
  class: "component__label",
2041
2041
  style: We([qt.value])
2042
- }, ht(o(pe)), 13, Ll)) : Be("", !0),
2043
- be("div", {
2044
- id: o(_),
2042
+ }, yt(o(de)), 13, Ll)) : Ve("", !0),
2043
+ fe("div", {
2044
+ id: o(w),
2045
2045
  ref_key: "chipsContainer",
2046
- ref: Je,
2046
+ ref: Qe,
2047
2047
  class: Ne(["nb-reset", "component", jt.value, Ht.value]),
2048
- style: We([At.value, Ot.value, Vt.value])
2048
+ style: We([At.value, Ot.value, $t.value])
2049
2049
  }, [
2050
- E.value.length > 0 ? (O(), F("div", {
2050
+ b.value.length > 0 ? (F(), q("div", {
2051
2051
  key: 0,
2052
2052
  ref_key: "chips",
2053
- ref: U,
2053
+ ref: Xe,
2054
2054
  class: "chips"
2055
2055
  }, [
2056
- (O(!0), F(Oa, null, Fa(E.value, (w) => (O(), F("div", {
2057
- key: w,
2056
+ (F(!0), q(Ea, null, Pa(b.value, (z) => (F(), q("div", {
2057
+ key: z,
2058
2058
  class: "chip"
2059
2059
  }, [
2060
- oa(l.$slots, "chip", {
2061
- chips: E.value,
2062
- chip: w,
2063
- removeChip: Tt
2060
+ na(l.$slots, "chip", {
2061
+ chips: b.value,
2062
+ chip: z,
2063
+ removeChip: kt
2064
2064
  }, () => [
2065
- be("span", Bl, ht(w), 1),
2066
- !o(N) && !o(ee) ? (O(), F("span", {
2065
+ fe("span", Bl, yt(z), 1),
2066
+ !o(J) && !o(Z) ? (F(), q("span", {
2067
2067
  key: 0,
2068
2068
  class: "chip-remove",
2069
- onClick: (Q) => Tt(w)
2070
- }, "×", 8, Al)) : Be("", !0)
2069
+ onClick: (Q) => kt(z)
2070
+ }, "×", 8, Al)) : Ve("", !0)
2071
2071
  ], !0)
2072
2072
  ]))), 128))
2073
- ], 512)) : Be("", !0),
2074
- ca(be("input", {
2073
+ ], 512)) : Ve("", !0),
2074
+ da(fe("input", {
2075
2075
  ref_key: "chipInput",
2076
- ref: Ze,
2076
+ ref: j,
2077
2077
  type: "text",
2078
- "onUpdate:modelValue": s[0] || (s[0] = (w) => Me.value = w),
2079
- id: rt.value,
2080
- name: rt.value,
2078
+ "onUpdate:modelValue": s[0] || (s[0] = (z) => ce.value = z),
2079
+ id: Je.value,
2080
+ name: Je.value,
2081
2081
  placeholder: Ft.value,
2082
- readonly: o(ee),
2083
- autocomplete: o(ke),
2084
- required: o(ce),
2085
- tabindex: o(N) || o(ee) ? -1 : o(ve),
2086
- class: Ne(["chips-input", $t.value]),
2087
- style: We([Pt.value, Ct.value]),
2088
- onKeydown: s[1] || (s[1] = Et((w) => !o(N) && o(K) && Kt(w), ["enter"])),
2089
- onFocus: Gt,
2090
- onBlur: kt
2082
+ readonly: o(Z),
2083
+ autocomplete: o(ge),
2084
+ required: o(be),
2085
+ tabindex: o(J) || o(Z) ? -1 : o(ie),
2086
+ class: Ne(["chips-input", xt.value]),
2087
+ style: We([Pt.value, ht.value]),
2088
+ onKeydown: s[1] || (s[1] = Et((z) => !o(J) && o(P) && wt(z), ["enter"])),
2089
+ onFocus: Vt,
2090
+ onBlur: Gt
2091
2091
  }, null, 46, $l), [
2092
- [ja, Me.value]
2092
+ [Fa, ce.value]
2093
2093
  ])
2094
2094
  ], 14, Tl)
2095
- ], 16)) : Be("", !0);
2095
+ ], 16)) : Ve("", !0);
2096
2096
  }
2097
- }), wl = /* @__PURE__ */ fa(_l, [["__scopeId", "data-v-f0e7f67f"]]);
2097
+ }), wl = /* @__PURE__ */ ca(_l, [["__scopeId", "data-v-f0e7f67f"]]);
2098
2098
  const Rl = ["id"], Ml = ["for"], zl = ["id", "name", "placeholder", "disabled", "required", "readonly", "autocomplete", "tabindex"], Dl = /* @__PURE__ */ Object.assign({
2099
2099
  name: "NbTextarea",
2100
2100
  inheritAttrs: !1
@@ -2109,8 +2109,8 @@ const Rl = ["id"], Ml = ["for"], zl = ["id", "name", "placeholder", "disabled",
2109
2109
  type: String,
2110
2110
  default: "b",
2111
2111
  validator: (e = "b") => {
2112
- const m = e.toLowerCase();
2113
- return ["b", "ib"].includes(m);
2112
+ const y = e.toLowerCase();
2113
+ return ["b", "ib"].includes(y);
2114
2114
  }
2115
2115
  },
2116
2116
  tabIndex: {
@@ -2463,186 +2463,186 @@ const Rl = ["id"], Ml = ["for"], zl = ["id", "name", "placeholder", "disabled",
2463
2463
  "clicked",
2464
2464
  "entered"
2465
2465
  ],
2466
- setup(e, { emit: m }) {
2467
- sa((l) => ({
2466
+ setup(e, { emit: y }) {
2467
+ ia((l) => ({
2468
2468
  "4960d069": T.value,
2469
- "614b5d5a": o(vt),
2470
- "5aba69d7": Vt.value,
2471
- "58e639e9": _t.value,
2472
- "4f3d8b41": xe.value,
2473
- "6612c6f4": o(pt),
2474
- "52473b5c": o(he),
2475
- "75ccd86e": o(Ye),
2476
- bf84bdec: o(Le),
2477
- "574a3426": o(it),
2478
- "6778837c": o(Ke),
2469
+ "614b5d5a": o(Ge),
2470
+ "5aba69d7": $t.value,
2471
+ "58e639e9": mt.value,
2472
+ "4f3d8b41": Me.value,
2473
+ "6612c6f4": o(rt),
2474
+ "52473b5c": o(ct),
2475
+ "75ccd86e": o(Se),
2476
+ bf84bdec: o(me),
2477
+ "574a3426": o(dt),
2478
+ "6778837c": o(Ue),
2479
2479
  "13113fb6": o(tt),
2480
2480
  "578551fe": o(at),
2481
- d049e1fe: xt.value,
2482
- d2d7a144: x.value,
2483
- "51b6909d": ue.value,
2484
- 27593086: M.value,
2485
- c1840740: $t.value,
2481
+ d049e1fe: St.value,
2482
+ d2d7a144: B.value,
2483
+ "51b6909d": N.value,
2484
+ 27593086: Bt.value,
2485
+ c1840740: xt.value,
2486
2486
  "0ac8140c": l.styleButtonColor,
2487
2487
  "5bbff31f": At.value
2488
- })), ua(() => {
2489
- H.value = qe.value;
2488
+ })), oa(() => {
2489
+ I.value = qe.value;
2490
2490
  }), ma(() => {
2491
- kt();
2491
+ Gt();
2492
2492
  });
2493
- const h = m, z = e, {
2494
- nbId: _,
2495
- display: Se,
2496
- hasTabIndexEnter: ge,
2497
- ariaLabel: Ae,
2498
- ariaAttrs: Ve,
2499
- textColor: se,
2500
- caretColor: N,
2493
+ const h = y, W = e, {
2494
+ nbId: w,
2495
+ display: he,
2496
+ hasTabIndexEnter: ve,
2497
+ ariaLabel: ke,
2498
+ ariaAttrs: Ce,
2499
+ textColor: ue,
2500
+ caretColor: J,
2501
2501
  selectionBgColor: Ee,
2502
- selectionTextColor: $e,
2503
- hasBorderRadius: ae,
2504
- borderRadius: le,
2505
- disabled: W,
2506
- fontFamily: D,
2507
- fontSize: J,
2508
- fontWeight: Z,
2509
- fontFamilyMsg: ye,
2510
- fontSizeMsg: de,
2511
- fontWeightMsg: q,
2512
- textMessageColor: ne,
2513
- inputWidth: ee,
2514
- inputStyle: ke,
2515
- activeTextStyle: ce,
2516
- inputReadonly: fe,
2517
- hasTrim: I,
2518
- inputUppercase: me,
2519
- inputName: d,
2520
- inputPlaceholder: _e,
2502
+ selectionTextColor: Le,
2503
+ hasBorderRadius: te,
2504
+ borderRadius: U,
2505
+ disabled: R,
2506
+ fontFamily: ae,
2507
+ fontSize: G,
2508
+ fontWeight: K,
2509
+ fontFamilyMsg: xe,
2510
+ fontSizeMsg: re,
2511
+ fontWeightMsg: E,
2512
+ textMessageColor: pe,
2513
+ inputWidth: Z,
2514
+ inputStyle: ge,
2515
+ activeTextStyle: be,
2516
+ inputReadonly: ye,
2517
+ hasTrim: $,
2518
+ inputUppercase: x,
2519
+ inputName: S,
2520
+ inputPlaceholder: Te,
2521
2521
  inputText: qe,
2522
- theme: Ge,
2523
- tabindex: Pe,
2524
- lightBgColor: Ke,
2522
+ theme: Be,
2523
+ tabindex: et,
2524
+ lightBgColor: Ue,
2525
2525
  lightBgColorFocus: tt,
2526
- lightDisabledBgColor: it,
2527
- lightTextColor: vt,
2528
- darkBgColor: Ye,
2529
- darkBgColorFocus: Le,
2530
- darkDisabledBgColor: he,
2531
- darkTextColor: pt,
2526
+ lightDisabledBgColor: dt,
2527
+ lightTextColor: Ge,
2528
+ darkBgColor: Se,
2529
+ darkBgColorFocus: me,
2530
+ darkDisabledBgColor: ct,
2531
+ darkTextColor: rt,
2532
2532
  textAlign: at,
2533
- showMsg: st,
2534
- hasMsg: bt,
2535
- showLabel: Te,
2533
+ showMsg: ft,
2534
+ hasMsg: Ke,
2535
+ showLabel: Pe,
2536
2536
  labelBackground: lt,
2537
- labelPadding: Qe,
2538
- labelBorderRadius: Xe,
2539
- labelLeft: b,
2540
- inputLabelMarginActive: V,
2541
- labelActiveTop: ve,
2542
- labelActiveLeft: K,
2543
- fontFamilyLabel: te,
2537
+ labelPadding: nt,
2538
+ labelBorderRadius: Ae,
2539
+ labelLeft: p,
2540
+ inputLabelMarginActive: k,
2541
+ labelActiveTop: ie,
2542
+ labelActiveLeft: P,
2543
+ fontFamilyLabel: se,
2544
2544
  fontSizeLabel: je,
2545
- fontSizeLabelActive: He,
2545
+ fontSizeLabelActive: $e,
2546
2546
  fontWeightLabel: Y,
2547
2547
  lightTextColorLabel: c,
2548
- lightTextColorLabelActive: y,
2549
- darkTextColorLabel: pe,
2550
- darkTextColorLabelActive: j,
2551
- rows: oe,
2552
- cols: we,
2553
- maxlength: Re,
2548
+ lightTextColorLabelActive: g,
2549
+ darkTextColorLabel: de,
2550
+ darkTextColorLabelActive: ee,
2551
+ rows: le,
2552
+ cols: _e,
2553
+ maxlength: we,
2554
2554
  minlength: Oe,
2555
2555
  wrap: Fe,
2556
- spellcheck: Ue,
2557
- autofocus: nt,
2558
- resize: ot,
2559
- autoResize: C,
2560
- minRows: A,
2561
- maxRows: R
2562
- } = da(z), H = X(""), Ce = X(!1), L = a(() => {
2563
- const l = W.value ? "component-disabled" : "", s = Se.value !== "b" ? "inline-block" : "block", w = se ? se.value : "ffffff", Q = N.value ? N.value : "", Yt = Ee.value ? Ee.value : "", Rt = $e.value ? $e.value : "", Mt = ae.value ? ae.value : !1, yt = le.value !== 0 && !le.value || le.value < 0 ? 0 : le.value, Qt = D.value ? D.value : "'Lato', sans-serif", ct = J.value && J.value >= 0 ? J.value : null, Xt = Z.value !== 0 && !Z.value || Z.value < 0 ? 100 : Z.value, Jt = ye.value ? ye.value : "'Lato', sans-serif", Zt = de.value ? de.value : "1em", ea = q.value !== 0 && !q.value || q.value < 0 ? 100 : q.value, Bt = ne.value ? ne.value : "#f15574", ta = ee.value ? ee.value : 200, aa = ce.value ? ce.value : "normal", la = fe.value ? fe.value : !1, zt = me.value ? me.value : !1, Dt = Ge.value ? Ge.value : "normal", It = at.value ? at.value : "left", ft = ke.value ? ke.value : "background", St = Te.value ? Te.value : !1, mt = b.value !== 0 && !b.value || b.value < 0 ? 5 : b.value, Nt = lt.value ? lt.value : "transparent", na = V.value !== 0 && !V.value || V.value < 0 ? 15 : V.value, Wt = Qe.value ? Qe.value : "1px 5px", re = Xe.value !== 0 && !Xe.value || Xe.value < 0 ? 0 : Xe.value, u = ve.value !== 0 && !ve.value || ve.value < 0 ? -13 : ve.value, p = K.value !== 0 && !K.value || K.value < 0 ? -10 : K.value, t = te.value ? te.value : "'Lato', sans-serif", n = je.value ? je.value : "1em", r = He.value ? He.value : "0.8em", i = Y.value ? Y.value : 400, v = c.value ? c.value : "#ffffff", f = pe.value ? pe.value : "#000000", g = y.value ? y.value : "#ffffff", S = j.value ? j.value : "#000000", B = oe.value && oe.value > 0 ? oe.value : 2, $ = we.value && we.value > 0 ? we.value : 20, P = Re.value !== null && Re.value >= 0 ? Re.value : null, ie = Oe.value !== null && Oe.value >= 0 ? Oe.value : null, ze = Fe.value && ["soft", "hard", "off"].includes(Fe.value) ? Fe.value : "soft", et = Ue.value !== void 0 ? Ue.value : "default", De = nt.value !== void 0 ? nt.value : !1, Ie = ot.value && ["none", "both", "vertical", "horizontal"].includes(ot.value) ? ot.value : "vertical", va = C.value !== void 0 ? C.value : !1, pa = A.value !== null && A.value > 0 ? A.value : null, ba = R.value !== null && R.value > 0 ? R.value : null;
2556
+ spellcheck: He,
2557
+ autofocus: ot,
2558
+ resize: m,
2559
+ autoResize: M,
2560
+ minRows: D,
2561
+ maxRows: Ye
2562
+ } = sa(W), I = X(""), Re = X(!1), L = a(() => {
2563
+ const l = R.value ? "component-disabled" : "", s = he.value !== "b" ? "inline-block" : "block", z = ue ? ue.value : "ffffff", Q = J.value ? J.value : "", Kt = Ee.value ? Ee.value : "", Lt = Le.value ? Le.value : "", Yt = te.value ? te.value : !1, pt = U.value !== 0 && !U.value || U.value < 0 ? 0 : U.value, bt = ae.value ? ae.value : "'Lato', sans-serif", Mt = G.value && G.value >= 0 ? G.value : null, Qt = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, Xt = xe.value ? xe.value : "'Lato', sans-serif", Jt = re.value ? re.value : "1em", Tt = E.value !== 0 && !E.value || E.value < 0 ? 100 : E.value, Zt = pe.value ? pe.value : "#f15574", ea = Z.value ? Z.value : 200, ta = be.value ? be.value : "normal", zt = ye.value ? ye.value : !1, Dt = x.value ? x.value : !1, It = Be.value ? Be.value : "normal", st = at.value ? at.value : "left", Ct = ge.value ? ge.value : "background", gt = Pe.value ? Pe.value : !1, Nt = p.value !== 0 && !p.value || p.value < 0 ? 5 : p.value, aa = lt.value ? lt.value : "transparent", Wt = k.value !== 0 && !k.value || k.value < 0 ? 15 : k.value, ne = nt.value ? nt.value : "1px 5px", la = Ae.value !== 0 && !Ae.value || Ae.value < 0 ? 0 : Ae.value, u = ie.value !== 0 && !ie.value || ie.value < 0 ? -13 : ie.value, t = P.value !== 0 && !P.value || P.value < 0 ? -10 : P.value, n = se.value ? se.value : "'Lato', sans-serif", r = je.value ? je.value : "1em", i = $e.value ? $e.value : "0.8em", d = Y.value ? Y.value : 400, f = c.value ? c.value : "#ffffff", v = de.value ? de.value : "#000000", C = g.value ? g.value : "#ffffff", A = ee.value ? ee.value : "#000000", _ = le.value && le.value > 0 ? le.value : 2, O = _e.value && _e.value > 0 ? _e.value : 20, oe = we.value !== null && we.value >= 0 ? we.value : null, ze = Oe.value !== null && Oe.value >= 0 ? Oe.value : null, Ze = Fe.value && ["soft", "hard", "off"].includes(Fe.value) ? Fe.value : "soft", De = He.value !== void 0 ? He.value : "default", Ie = ot.value !== void 0 ? ot.value : !1, fa = m.value && ["none", "both", "vertical", "horizontal"].includes(m.value) ? m.value : "vertical", va = M.value !== void 0 ? M.value : !1, pa = D.value !== null && D.value > 0 ? D.value : null, ba = Ye.value !== null && Ye.value > 0 ? Ye.value : null;
2564
2564
  return {
2565
2565
  disabled: l,
2566
2566
  display: s,
2567
- font: Qt,
2568
- fontSize: ct,
2569
- fontWeight: Xt,
2570
- fontFamilyMsg: Jt,
2571
- fontSizeMsg: Zt,
2572
- fontWeightMsg: ea,
2573
- textMessageColor: Bt,
2574
- textColor: w,
2567
+ font: bt,
2568
+ fontSize: Mt,
2569
+ fontWeight: Qt,
2570
+ fontFamilyMsg: Xt,
2571
+ fontSizeMsg: Jt,
2572
+ fontWeightMsg: Tt,
2573
+ textMessageColor: Zt,
2574
+ textColor: z,
2575
2575
  caretColor: Q,
2576
- selectionBgColor: Yt,
2577
- selectionTextColor: Rt,
2578
- hasBorderRadius: Mt,
2579
- borderRadius: yt,
2580
- textAlign: It,
2581
- inputWidth: ta,
2582
- activeTextStyle: aa,
2583
- inputReadonly: la,
2584
- inputUppercase: zt,
2585
- theme: Dt,
2586
- inputStyle: ft,
2587
- showLabel: St,
2588
- labelBackground: Nt,
2589
- labelPadding: Wt,
2590
- labelBorderRadius: re,
2591
- labelLeft: mt,
2592
- inputLabelMarginActive: na,
2576
+ selectionBgColor: Kt,
2577
+ selectionTextColor: Lt,
2578
+ hasBorderRadius: Yt,
2579
+ borderRadius: pt,
2580
+ textAlign: st,
2581
+ inputWidth: ea,
2582
+ activeTextStyle: ta,
2583
+ inputReadonly: zt,
2584
+ inputUppercase: Dt,
2585
+ theme: It,
2586
+ inputStyle: Ct,
2587
+ showLabel: gt,
2588
+ labelBackground: aa,
2589
+ labelPadding: ne,
2590
+ labelBorderRadius: la,
2591
+ labelLeft: Nt,
2592
+ inputLabelMarginActive: Wt,
2593
2593
  labelActiveTop: u,
2594
- labelActiveLeft: p,
2595
- fontFamilyLabel: t,
2596
- fontSizeLabel: n,
2597
- fontSizeLabelActive: r,
2598
- fontWeightLabel: i,
2599
- lightTextColorLabel: v,
2600
- darkTextColorLabel: f,
2601
- lightTextColorLabelActive: g,
2602
- darkTextColorLabelActive: S,
2603
- rows: B,
2604
- cols: $,
2605
- maxlength: P,
2606
- minlength: ie,
2607
- wrap: ze,
2608
- spellcheck: et,
2609
- autofocus: De,
2610
- resize: Ie,
2594
+ labelActiveLeft: t,
2595
+ fontFamilyLabel: n,
2596
+ fontSizeLabel: r,
2597
+ fontSizeLabelActive: i,
2598
+ fontWeightLabel: d,
2599
+ lightTextColorLabel: f,
2600
+ darkTextColorLabel: v,
2601
+ lightTextColorLabelActive: C,
2602
+ darkTextColorLabelActive: A,
2603
+ rows: _,
2604
+ cols: O,
2605
+ maxlength: oe,
2606
+ minlength: ze,
2607
+ wrap: Ze,
2608
+ spellcheck: De,
2609
+ autofocus: Ie,
2610
+ resize: fa,
2611
2611
  autoResize: va,
2612
2612
  minRows: pa,
2613
2613
  maxRows: ba
2614
2614
  };
2615
- }), Me = a(() => L.value.disabled), Je = a(() => ({
2615
+ }), ce = a(() => L.value.disabled), Qe = a(() => ({
2616
2616
  display: L.value.display
2617
- })), Ze = a(() => {
2617
+ })), j = a(() => {
2618
2618
  const l = L.value;
2619
2619
  return l.fontSize ? `${l.fontSize}em` : "1.2em";
2620
- }), U = a(() => {
2621
- const l = L.value, s = rt.value;
2620
+ }), Xe = a(() => {
2621
+ const l = L.value, s = Je.value;
2622
2622
  return {
2623
- fontSize: Ze.value,
2623
+ fontSize: j.value,
2624
2624
  fontWeight: l.fontWeight,
2625
- marginTop: s && Te.value ? `${l.inputLabelMarginActive}px` : "0"
2625
+ marginTop: s && Pe.value ? `${l.inputLabelMarginActive}px` : "0"
2626
2626
  };
2627
- }), E = a(() => {
2627
+ }), b = a(() => {
2628
2628
  const l = L.value;
2629
2629
  return l.inputStyle !== "line" && l.hasBorderRadius ? { borderRadius: `${l.borderRadius}rem` } : {};
2630
- }), T = a(() => L.value.font), x = a(() => L.value.fontFamilyMsg), ue = a(() => L.value.fontSizeMsg), M = a(() => L.value.fontWeightMsg), At = a(() => L.value.textColor), $t = a(() => L.value.textMessageColor), Vt = a(() => {
2630
+ }), T = a(() => L.value.font), B = a(() => L.value.fontFamilyMsg), N = a(() => L.value.fontSizeMsg), Bt = a(() => L.value.fontWeightMsg), At = a(() => L.value.textColor), xt = a(() => L.value.textMessageColor), $t = a(() => {
2631
2631
  const l = L.value;
2632
2632
  return l.caretColor || (l.theme === "dark" ? "#00d4ff" : "#007bff");
2633
- }), _t = a(() => {
2633
+ }), mt = a(() => {
2634
2634
  const l = L.value;
2635
2635
  return l.selectionBgColor || (l.theme === "dark" ? "#00d4ff" : "#007bff");
2636
- }), xe = a(() => {
2636
+ }), Me = a(() => {
2637
2637
  const l = L.value;
2638
2638
  return l.selectionTextColor || (l.theme === "dark" ? "#000000" : "#ffffff");
2639
- }), dt = a(() => {
2639
+ }), it = a(() => {
2640
2640
  const l = L.value;
2641
2641
  return l.display === "block" ? { width: "100%" } : {
2642
2642
  width: `${l.inputWidth}px`
2643
2643
  };
2644
- }), gt = a(() => {
2645
- switch (ke.value) {
2644
+ }), vt = a(() => {
2645
+ switch (ge.value) {
2646
2646
  case "line":
2647
2647
  return "component__input--line";
2648
2648
  case "border":
@@ -2659,33 +2659,33 @@ const Rl = ["id"], Ml = ["for"], zl = ["id", "name", "placeholder", "disabled",
2659
2659
  default:
2660
2660
  return "component__input--active--normal";
2661
2661
  }
2662
- }), k = a(() => {
2662
+ }), V = a(() => {
2663
2663
  switch (L.value.theme) {
2664
2664
  case "dark":
2665
2665
  return "component__theme--dark";
2666
2666
  default:
2667
2667
  return "component__theme--light";
2668
2668
  }
2669
- }), wt = a(() => L.value.inputReadonly ? "component__input--read-only" : ""), Pt = a(() => L.value.inputUppercase ? "component__input--uppercase" : ""), Ct = a(() => d.value ? d.value : `${_.value}-name-label`), Ot = a(() => Te.value ? Ce.value ? _e.value : "" : _e.value), rt = a(() => Ce.value || H.value && H.value.trim().length > 0);
2670
- a(() => Ce.value ? "component__input--active" : "component__input--no-active");
2671
- const xt = a(() => "6px 10px"), Ft = a(() => !!(st.value && bt.value)), qt = a(() => {
2669
+ }), _t = a(() => L.value.inputReadonly ? "component__input--read-only" : ""), Pt = a(() => L.value.inputUppercase ? "component__input--uppercase" : ""), ht = a(() => S.value ? S.value : `${w.value}-name-label`), Ot = a(() => Pe.value ? Re.value ? Te.value : "" : Te.value), Je = a(() => Re.value || I.value && I.value.trim().length > 0);
2670
+ a(() => Re.value ? "component__input--active" : "component__input--no-active");
2671
+ const St = a(() => "6px 10px"), Ft = a(() => !!(ft.value && Ke.value)), qt = a(() => {
2672
2672
  const l = {};
2673
- Ve.value && Object.keys(Ve.value).forEach((Q) => l[`aria-${Q}`] = Ve.value[Q]);
2673
+ Ce.value && Object.keys(Ce.value).forEach((Q) => l[`aria-${Q}`] = Ce.value[Q]);
2674
2674
  const s = {
2675
- "aria-label": Ae.value,
2676
- "aria-disabled": W.value,
2675
+ "aria-label": ke.value,
2676
+ "aria-disabled": R.value,
2677
2677
  ...l
2678
2678
  };
2679
2679
  return Object.fromEntries(
2680
- Object.entries(s).filter(([w, Q]) => Q != null)
2680
+ Object.entries(s).filter(([z, Q]) => Q != null)
2681
2681
  );
2682
2682
  }), jt = a(() => {
2683
- const l = L.value, s = rt.value, w = s ? l.lightTextColorLabelActive : l.lightTextColorLabel, Q = s ? l.darkTextColorLabelActive : l.darkTextColorLabel;
2683
+ const l = L.value, s = Je.value, z = s ? l.lightTextColorLabelActive : l.lightTextColorLabel, Q = s ? l.darkTextColorLabelActive : l.darkTextColorLabel;
2684
2684
  return {
2685
2685
  fontFamily: l.fontFamilyLabel,
2686
2686
  fontSize: s ? l.fontSizeLabelActive : l.fontSizeLabel,
2687
2687
  fontWeight: l.fontWeightLabel,
2688
- color: l.theme === "dark" ? Q : w,
2688
+ color: l.theme === "dark" ? Q : z,
2689
2689
  top: s ? `${l.labelActiveTop}px` : "50%",
2690
2690
  left: s ? `${l.labelActiveLeft}px` : `${l.labelLeft}px`,
2691
2691
  transform: s ? "translateY(0)" : "translateY(-50%)",
@@ -2710,81 +2710,81 @@ const Rl = ["id"], Ml = ["for"], zl = ["id", "name", "placeholder", "disabled",
2710
2710
  return l.maxlength !== null && (s.maxlength = l.maxlength), l.minlength !== null && (s.minlength = l.minlength), s;
2711
2711
  }), Ut = a(() => ({
2712
2712
  resize: L.value.resize
2713
- })), Gt = a(() => L.value.wrap === "off" ? {
2713
+ })), Vt = a(() => L.value.wrap === "off" ? {
2714
2714
  whiteSpace: "nowrap",
2715
2715
  overflowX: "auto"
2716
- } : {}), kt = () => {
2717
- H.value = qe.value;
2718
- }, Kt = () => {
2716
+ } : {}), Gt = () => {
2717
+ I.value = qe.value;
2718
+ }, wt = () => {
2719
2719
  h("clicked");
2720
- }, Lt = () => {
2721
- W.value || L.value.inputReadonly || !ge.value || h("entered", H.value);
2722
- }, Tt = () => {
2723
- let l = H.value;
2724
- I.value && (l = l.trim()), h("current-value", l);
2720
+ }, Rt = () => {
2721
+ R.value || L.value.inputReadonly || !ve.value || h("entered", I.value);
2722
+ }, kt = () => {
2723
+ let l = I.value;
2724
+ $.value && (l = l.trim()), h("current-value", l);
2725
2725
  };
2726
- return G(qe, (l) => {
2727
- l !== H.value && (H.value = l);
2728
- }, { immediate: !0 }), G(H, (l) => {
2729
- I.value && (l = l.trim()), h("changed", l);
2730
- }), G(Ce, (l) => {
2726
+ return H(qe, (l) => {
2727
+ l !== I.value && (I.value = l);
2728
+ }, { immediate: !0 }), H(I, (l) => {
2729
+ $.value && (l = l.trim()), h("changed", l);
2730
+ }), H(Re, (l) => {
2731
2731
  h(l ? "focused" : "blurred");
2732
- }), G(H, () => {
2733
- Tt();
2734
- }, { immediate: !0 }), (l, s) => o(_) ? (O(), F("div", ra({
2732
+ }), H(I, () => {
2733
+ kt();
2734
+ }, { immediate: !0 }), (l, s) => o(w) ? (F(), q("div", ua({
2735
2735
  key: 0,
2736
- class: ["nb-wrapper", Me.value],
2737
- style: [Je.value, dt.value, E.value],
2736
+ class: ["nb-wrapper", ce.value],
2737
+ style: [Qe.value, it.value, b.value],
2738
2738
  role: "input"
2739
2739
  }, qt.value), [
2740
- be("div", {
2741
- id: o(_),
2742
- class: Ne(["nb-reset", "component", k.value, wt.value, gt.value]),
2743
- style: We([U.value, dt.value, E.value]),
2744
- onClick: Kt
2740
+ fe("div", {
2741
+ id: o(w),
2742
+ class: Ne(["nb-reset", "component", V.value, _t.value, vt.value]),
2743
+ style: We([Xe.value, it.value, b.value]),
2744
+ onClick: wt
2745
2745
  }, [
2746
- o(Te) ? (O(), F("label", {
2746
+ o(Pe) ? (F(), q("label", {
2747
2747
  key: 0,
2748
- for: Ct.value,
2748
+ for: ht.value,
2749
2749
  class: "component__label",
2750
2750
  style: We([jt.value])
2751
- }, ht(e.label), 13, Ml)) : Be("", !0),
2752
- ca(be("textarea", ra({
2753
- "onUpdate:modelValue": s[0] || (s[0] = (w) => H.value = w),
2754
- id: Ct.value,
2755
- name: Ct.value
2751
+ }, yt(e.label), 13, Ml)) : Ve("", !0),
2752
+ da(fe("textarea", ua({
2753
+ "onUpdate:modelValue": s[0] || (s[0] = (z) => I.value = z),
2754
+ id: ht.value,
2755
+ name: ht.value
2756
2756
  }, Ht.value, {
2757
2757
  class: ["component__input", [
2758
2758
  Pt.value,
2759
2759
  ut.value
2760
2760
  ]],
2761
2761
  placeholder: Ot.value,
2762
- disabled: o(W) || o(fe),
2762
+ disabled: o(R) || o(ye),
2763
2763
  required: e.required,
2764
- readonly: o(fe),
2764
+ readonly: o(ye),
2765
2765
  autocomplete: e.inputAutocomplete,
2766
- tabindex: o(W) || o(fe) ? -1 : o(Pe),
2766
+ tabindex: o(R) || o(ye) ? -1 : o(et),
2767
2767
  role: "textbox",
2768
- style: [E.value, Ut.value, Gt.value],
2769
- onFocus: s[1] || (s[1] = (w) => Ce.value = !0),
2770
- onBlur: s[2] || (s[2] = (w) => Ce.value = !1),
2771
- onInput: Tt,
2772
- onKeydown: s[3] || (s[3] = Et((w) => !o(W) && o(ge) && Lt(), ["enter"]))
2768
+ style: [b.value, Ut.value, Vt.value],
2769
+ onFocus: s[1] || (s[1] = (z) => Re.value = !0),
2770
+ onBlur: s[2] || (s[2] = (z) => Re.value = !1),
2771
+ onInput: kt,
2772
+ onKeydown: s[3] || (s[3] = Et((z) => !o(R) && o(ve) && Rt(), ["enter"]))
2773
2773
  }), null, 16, zl), [
2774
- [ja, H.value]
2774
+ [Fa, I.value]
2775
2775
  ])
2776
2776
  ], 14, Rl),
2777
- Ft.value ? (O(), F("div", {
2777
+ Ft.value ? (F(), q("div", {
2778
2778
  key: 0,
2779
2779
  class: Ne(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
2780
2780
  }, [
2781
- oa(l.$slots, "message", {}, () => [
2782
- ga(ht(e.message), 1)
2781
+ na(l.$slots, "message", {}, () => [
2782
+ ga(yt(e.message), 1)
2783
2783
  ], !0)
2784
- ], 2)) : Be("", !0)
2785
- ], 16)) : Be("", !0);
2784
+ ], 2)) : Ve("", !0)
2785
+ ], 16)) : Ve("", !0);
2786
2786
  }
2787
- }), Il = /* @__PURE__ */ fa(Dl, [["__scopeId", "data-v-23147953"]]);
2787
+ }), Il = /* @__PURE__ */ ca(Dl, [["__scopeId", "data-v-23147953"]]);
2788
2788
  const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "disabled", "required", "readonly", "autocomplete", "min", "max", "step", "tabindex"], Pl = /* @__PURE__ */ Object.assign({
2789
2789
  name: "NbDatePicker",
2790
2790
  inheritAttrs: !1
@@ -2799,8 +2799,8 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
2799
2799
  type: String,
2800
2800
  default: "b",
2801
2801
  validator: (e = "b") => {
2802
- const m = e.toLowerCase();
2803
- return ["b", "ib"].includes(m);
2802
+ const y = e.toLowerCase();
2803
+ return ["b", "ib"].includes(y);
2804
2804
  }
2805
2805
  },
2806
2806
  tabIndex: {
@@ -2819,12 +2819,6 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
2819
2819
  type: Object,
2820
2820
  default: () => ({})
2821
2821
  },
2822
- textColor: {
2823
- type: String,
2824
- default: "#ffffff"
2825
- // Opcional: permite sobrescrever a cor do texto do tema
2826
- // Se não fornecido, usa automaticamente a cor do tema (lightTextColor ou darkTextColor)
2827
- },
2828
2822
  caretColor: {
2829
2823
  type: String,
2830
2824
  default: "",
@@ -3013,7 +3007,7 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3013
3007
  },
3014
3008
  darkTextColor: {
3015
3009
  type: String,
3016
- default: "#000000"
3010
+ default: "#ffffff"
3017
3011
  },
3018
3012
  tabindex: {
3019
3013
  type: [String, Number],
@@ -3121,118 +3115,117 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3121
3115
  "clicked",
3122
3116
  "entered"
3123
3117
  ],
3124
- setup(e, { emit: m }) {
3125
- sa((t) => ({
3126
- "55e6f814": dt.value,
3127
- "86dbb708": Vt.value,
3128
- "4a502b45": o(Te),
3129
- db614d68: Ct.value,
3130
- "9ff604c4": Ot.value,
3131
- "59ba35b6": rt.value,
3132
- "570a358a": o(b),
3133
- "52d28f47": o(Xe),
3134
- "17c5ca63": o(lt),
3135
- "5b46a035": o(Qe),
3136
- "4b25b46b": Q.value,
3137
- "722089a6": Yt.value,
3138
- "5a19a5d1": o(bt),
3139
- "69690aed": o(at),
3140
- "8dafb42a": o(st),
3141
- "40e7859a": o(V),
3142
- "35005bac": l.value,
3143
- "7ffc5c19": wt.value,
3144
- "388d2153": gt.value,
3145
- ed68ffdc: ut.value,
3146
- "651fd28a": k.value,
3147
- "13467fd6": Pt.value,
3148
- "94b615b6": t.styleButtonColor
3118
+ setup(e, { emit: y }) {
3119
+ ia((t) => ({
3120
+ d1380992: Me.value,
3121
+ "1a12f8b9": xt.value,
3122
+ c62c42b0: o(Ke),
3123
+ da27db6e: Pt.value,
3124
+ e47f764a: ht.value,
3125
+ "947ebc9a": Ot.value,
3126
+ "31fbb978": o(Ae),
3127
+ "577efc78": o(nt),
3128
+ "76f889e0": o(Pe),
3129
+ "016a4e96": V.value,
3130
+ "6e4106d8": o(lt),
3131
+ "5e201b0e": z.value,
3132
+ b6a9fb2c: Q.value,
3133
+ "066a02f4": o(ft),
3134
+ "1ee389e0": o(rt),
3135
+ "057a93a8": o(at),
3136
+ "5e72b7f0": o(p),
3137
+ "87b4e862": kt.value,
3138
+ d0803e60: it.value,
3139
+ ec2f8de2: vt.value,
3140
+ "19c28478": ut.value,
3141
+ "57cff15c": _t.value,
3142
+ "6ec14870": t.styleButtonColor
3149
3143
  }));
3150
3144
  const h = nl(
3151
3145
  () => import("@vlalg-nimbus/nb-calendar").then((t) => t.Calendar ? t.Calendar : t.default && t.default.Calendar ? t.default.Calendar : t.default)
3152
3146
  );
3153
- ua(() => {
3154
- C.value = Pe.value;
3147
+ oa(() => {
3148
+ m.value = Be.value;
3155
3149
  }), ma(() => {
3156
- Mt();
3150
+ Lt();
3157
3151
  });
3158
- const z = m, _ = e, {
3159
- nbId: Se,
3160
- display: ge,
3161
- hasTabIndexEnter: Ae,
3162
- ariaLabel: Ve,
3163
- ariaAttrs: se,
3164
- textColor: N,
3165
- caretColor: Ee,
3166
- selectionBgColor: $e,
3167
- selectionTextColor: ae,
3168
- hasBorderRadius: le,
3169
- borderRadius: W,
3170
- disabled: D,
3171
- fontFamily: J,
3172
- fontSize: Z,
3173
- fontWeight: ye,
3174
- fontFamilyMsg: de,
3175
- fontSizeMsg: q,
3176
- fontWeightMsg: ne,
3177
- textMessageColor: ee,
3178
- inputWidth: ke,
3179
- inputStyle: ce,
3180
- activeTextStyle: fe,
3181
- sizeMediaQuery: I,
3182
- inputReadonly: me,
3183
- inputType: d,
3184
- hasTrim: _e,
3185
- inputUppercase: qe,
3186
- inputName: Ge,
3187
- inputText: Pe,
3188
- min: Ke,
3189
- max: tt,
3190
- step: it,
3191
- useCustomCalendar: vt,
3192
- locale: Ye,
3193
- theme: Le,
3194
- allowRange: he,
3195
- tabindex: pt,
3196
- lightBgColor: at,
3197
- lightBgColorFocus: st,
3198
- lightDisabledBgColor: bt,
3199
- lightTextColor: Te,
3200
- darkBgColor: lt,
3201
- darkBgColorFocus: Qe,
3202
- darkDisabledBgColor: Xe,
3203
- darkTextColor: b,
3204
- textAlign: V,
3205
- showMsg: ve,
3206
- hasMsg: K,
3207
- showLabel: te,
3208
- labelBackground: je,
3209
- labelPadding: He,
3210
- labelBorderRadius: Y,
3211
- labelLeft: c,
3212
- inputLabelMarginActive: y,
3213
- labelActiveTop: pe,
3214
- labelActiveLeft: j,
3215
- fontFamilyLabel: oe,
3216
- fontSizeLabel: we,
3217
- fontSizeLabelActive: Re,
3218
- fontWeightLabel: Oe,
3219
- lightTextColorLabel: Fe,
3220
- lightTextColorLabelActive: Ue,
3221
- darkTextColorLabel: nt,
3152
+ const W = y, w = e, {
3153
+ nbId: he,
3154
+ display: ve,
3155
+ hasTabIndexEnter: ke,
3156
+ ariaLabel: Ce,
3157
+ ariaAttrs: ue,
3158
+ caretColor: J,
3159
+ selectionBgColor: Ee,
3160
+ selectionTextColor: Le,
3161
+ hasBorderRadius: te,
3162
+ borderRadius: U,
3163
+ disabled: R,
3164
+ fontFamily: ae,
3165
+ fontSize: G,
3166
+ fontWeight: K,
3167
+ fontFamilyMsg: xe,
3168
+ fontSizeMsg: re,
3169
+ fontWeightMsg: E,
3170
+ textMessageColor: pe,
3171
+ inputWidth: Z,
3172
+ inputStyle: ge,
3173
+ activeTextStyle: be,
3174
+ sizeMediaQuery: ye,
3175
+ inputReadonly: $,
3176
+ inputType: x,
3177
+ hasTrim: S,
3178
+ inputUppercase: Te,
3179
+ inputName: qe,
3180
+ inputText: Be,
3181
+ min: et,
3182
+ max: Ue,
3183
+ step: tt,
3184
+ useCustomCalendar: dt,
3185
+ locale: Ge,
3186
+ theme: Se,
3187
+ allowRange: me,
3188
+ tabindex: ct,
3189
+ lightBgColor: rt,
3190
+ lightBgColorFocus: at,
3191
+ lightDisabledBgColor: ft,
3192
+ lightTextColor: Ke,
3193
+ darkBgColor: Pe,
3194
+ darkBgColorFocus: lt,
3195
+ darkDisabledBgColor: nt,
3196
+ darkTextColor: Ae,
3197
+ textAlign: p,
3198
+ showMsg: k,
3199
+ hasMsg: ie,
3200
+ showLabel: P,
3201
+ labelBackground: se,
3202
+ labelPadding: je,
3203
+ labelBorderRadius: $e,
3204
+ labelLeft: Y,
3205
+ inputLabelMarginActive: c,
3206
+ labelActiveTop: g,
3207
+ labelActiveLeft: de,
3208
+ fontFamilyLabel: ee,
3209
+ fontSizeLabel: le,
3210
+ fontSizeLabelActive: _e,
3211
+ fontWeightLabel: we,
3212
+ lightTextColorLabel: Oe,
3213
+ lightTextColorLabelActive: Fe,
3214
+ darkTextColorLabel: He,
3222
3215
  darkTextColorLabelActive: ot
3223
- } = da(_), C = X(""), A = X(""), R = X(""), H = X(""), Ce = X(!1), L = X(!1), Me = a(() => {
3224
- if (!C.value)
3216
+ } = sa(w), m = X(""), M = X(""), D = X(""), Ye = X(""), I = X(!1), Re = X(!1), L = a(() => {
3217
+ if (!m.value)
3225
3218
  return null;
3226
- if (he.value && typeof C.value == "string" && C.value.startsWith("{"))
3219
+ if (me.value && typeof m.value == "string" && m.value.startsWith("{"))
3227
3220
  try {
3228
- const t = JSON.parse(C.value);
3221
+ const t = JSON.parse(m.value);
3229
3222
  if (t && (t.startDate || t.endDate)) {
3230
3223
  const n = (r) => {
3231
3224
  if (!r)
3232
3225
  return null;
3233
3226
  if (/^\d{4}-\d{2}-\d{2}$/.test(r)) {
3234
- const [i, v, f] = r.split("-").map(Number);
3235
- return new Date(i, v - 1, f);
3227
+ const [i, d, f] = r.split("-").map(Number);
3228
+ return new Date(i, d - 1, f);
3236
3229
  }
3237
3230
  return new Date(r);
3238
3231
  };
@@ -3243,136 +3236,136 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3243
3236
  }
3244
3237
  } catch {
3245
3238
  }
3246
- if (d.value === "date" && typeof C.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(C.value)) {
3247
- const [t, n, r] = C.value.split("-").map(Number);
3239
+ if (x.value === "date" && typeof m.value == "string" && /^\d{4}-\d{2}-\d{2}$/.test(m.value)) {
3240
+ const [t, n, r] = m.value.split("-").map(Number);
3248
3241
  return new Date(t, n - 1, r);
3249
3242
  }
3250
- return C.value;
3251
- }), Je = (t, n, r) => {
3243
+ return m.value;
3244
+ }), ce = (t, n, r) => {
3252
3245
  if (!t)
3253
3246
  return "";
3254
- const i = r || Ye.value;
3247
+ const i = r || Ge.value;
3255
3248
  if (n === "date") {
3256
- if (he.value && typeof t == "string" && t.startsWith("{"))
3249
+ if (me.value && typeof t == "string" && t.startsWith("{"))
3257
3250
  try {
3258
- const v = JSON.parse(t);
3259
- if (v && (v.startDate || v.endDate)) {
3260
- const f = (B) => {
3261
- if (!B)
3251
+ const d = JSON.parse(t);
3252
+ if (d && (d.startDate || d.endDate)) {
3253
+ const f = (A) => {
3254
+ if (!A)
3262
3255
  return "";
3263
- if (/^\d{4}-\d{2}-\d{2}$/.test(B)) {
3264
- const [$, P, ie] = B.split("-");
3265
- return i === "pt-BR" ? `${ie}/${P}/${$}` : `${P}/${ie}/${$}`;
3256
+ if (/^\d{4}-\d{2}-\d{2}$/.test(A)) {
3257
+ const [_, O, oe] = A.split("-");
3258
+ return i === "pt-BR" ? `${oe}/${O}/${_}` : `${O}/${oe}/${_}`;
3266
3259
  }
3267
- return B;
3268
- }, g = f(v.startDate), S = f(v.endDate);
3269
- if (g && S)
3270
- return `${g} - ${S}`;
3271
- if (g)
3272
- return g;
3273
- if (S)
3274
- return S;
3260
+ return A;
3261
+ }, v = f(d.startDate), C = f(d.endDate);
3262
+ if (v && C)
3263
+ return `${v} - ${C}`;
3264
+ if (v)
3265
+ return v;
3266
+ if (C)
3267
+ return C;
3275
3268
  }
3276
3269
  } catch {
3277
3270
  }
3278
3271
  if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}$/.test(t)) {
3279
- const [v, f, g] = t.split("-");
3280
- return i === "pt-BR" ? `${g}/${f}/${v}` : `${f}/${g}/${v}`;
3272
+ const [d, f, v] = t.split("-");
3273
+ return i === "pt-BR" ? `${v}/${f}/${d}` : `${f}/${v}/${d}`;
3281
3274
  }
3282
3275
  return t;
3283
3276
  } else if (n === "datetime-local") {
3284
3277
  if (typeof t == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/.test(t)) {
3285
- const [v, f] = t.split("T"), [g, S, B] = v.split("-");
3286
- return i === "pt-BR" ? `${B}/${S}/${g} ${f}` : `${S}/${B}/${g} ${f}`;
3278
+ const [d, f] = t.split("T"), [v, C, A] = d.split("-");
3279
+ return i === "pt-BR" ? `${A}/${C}/${v} ${f}` : `${C}/${A}/${v} ${f}`;
3287
3280
  }
3288
3281
  return t;
3289
3282
  } else if (n === "month") {
3290
3283
  if (typeof t == "string" && /^\d{4}-\d{2}$/.test(t)) {
3291
- const [v, f] = t.split("-");
3292
- return `${f}/${v}`;
3284
+ const [d, f] = t.split("-");
3285
+ return `${f}/${d}`;
3293
3286
  }
3294
3287
  return t;
3295
3288
  } else if (n === "week") {
3296
3289
  if (typeof t == "string" && /^\d{4}-W\d{2}$/i.test(t)) {
3297
- const v = t.match(/^(\d{4})-W(\d{2})$/i);
3298
- if (v)
3299
- return i === "pt-BR" ? `Semana ${v[2]} de ${v[1]}` : `Week ${v[2]} of ${v[1]}`;
3290
+ const d = t.match(/^(\d{4})-W(\d{2})$/i);
3291
+ if (d)
3292
+ return i === "pt-BR" ? `Semana ${d[2]} de ${d[1]}` : `Week ${d[2]} of ${d[1]}`;
3300
3293
  }
3301
3294
  return t;
3302
3295
  }
3303
3296
  return t;
3304
- }, Ze = (t, n, r) => {
3297
+ }, Qe = (t, n, r) => {
3305
3298
  if (!t || !t.trim())
3306
3299
  return "";
3307
- const i = t.trim(), v = r || Ye.value;
3300
+ const i = t.trim(), d = r || Ge.value;
3308
3301
  if (n === "date") {
3309
- if (he.value && i.includes("-")) {
3310
- const f = i.split(/\s*-\s*/).map(($) => $.trim()), g = ($) => {
3311
- if (!$)
3302
+ if (me.value && i.includes("-")) {
3303
+ const f = i.split(/\s*-\s*/).map((_) => _.trim()), v = (_) => {
3304
+ if (!_)
3312
3305
  return null;
3313
- if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test($)) {
3314
- const P = $.split("/");
3315
- if (v === "pt-BR") {
3316
- const [ie, ze, et] = P, De = ie.padStart(2, "0"), Ie = ze.padStart(2, "0");
3317
- return `${et}-${Ie}-${De}`;
3306
+ if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(_)) {
3307
+ const O = _.split("/");
3308
+ if (d === "pt-BR") {
3309
+ const [oe, ze, Ze] = O, De = oe.padStart(2, "0"), Ie = ze.padStart(2, "0");
3310
+ return `${Ze}-${Ie}-${De}`;
3318
3311
  } else {
3319
- const [ie, ze, et] = P, De = ze.padStart(2, "0"), Ie = ie.padStart(2, "0");
3320
- return `${et}-${Ie}-${De}`;
3312
+ const [oe, ze, Ze] = O, De = ze.padStart(2, "0"), Ie = oe.padStart(2, "0");
3313
+ return `${Ze}-${Ie}-${De}`;
3321
3314
  }
3322
- } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test($)) {
3323
- const P = $.split("-"), [ie, ze, et] = P, De = et.padStart(2, "0"), Ie = ze.padStart(2, "0");
3324
- return `${ie}-${Ie}-${De}`;
3315
+ } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(_)) {
3316
+ const O = _.split("-"), [oe, ze, Ze] = O, De = Ze.padStart(2, "0"), Ie = ze.padStart(2, "0");
3317
+ return `${oe}-${Ie}-${De}`;
3325
3318
  }
3326
3319
  return null;
3327
3320
  };
3328
- let S = g(f[0]), B = f[1] ? g(f[1]) : null;
3329
- if (S && B) {
3330
- const $ = new Date(S);
3331
- if (new Date(B) < $) {
3332
- const ie = S;
3333
- S = B, B = ie;
3321
+ let C = v(f[0]), A = f[1] ? v(f[1]) : null;
3322
+ if (C && A) {
3323
+ const _ = new Date(C);
3324
+ if (new Date(A) < _) {
3325
+ const oe = C;
3326
+ C = A, A = oe;
3334
3327
  }
3335
- return JSON.stringify({ startDate: S, endDate: B });
3336
- } else if (S)
3337
- return JSON.stringify({ startDate: S, endDate: null });
3328
+ return JSON.stringify({ startDate: C, endDate: A });
3329
+ } else if (C)
3330
+ return JSON.stringify({ startDate: C, endDate: null });
3338
3331
  return "";
3339
3332
  }
3340
3333
  if (/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(i)) {
3341
3334
  const f = i.split("/");
3342
- if (v === "pt-BR") {
3343
- const [g, S, B] = f, $ = g.padStart(2, "0"), P = S.padStart(2, "0");
3344
- return `${B}-${P}-${$}`;
3335
+ if (d === "pt-BR") {
3336
+ const [v, C, A] = f, _ = v.padStart(2, "0"), O = C.padStart(2, "0");
3337
+ return `${A}-${O}-${_}`;
3345
3338
  } else {
3346
- const [g, S, B] = f, $ = S.padStart(2, "0"), P = g.padStart(2, "0");
3347
- return `${B}-${P}-${$}`;
3339
+ const [v, C, A] = f, _ = C.padStart(2, "0"), O = v.padStart(2, "0");
3340
+ return `${A}-${O}-${_}`;
3348
3341
  }
3349
3342
  } else if (/^\d{4}-\d{1,2}-\d{1,2}$/.test(i)) {
3350
- const f = i.split("-"), [g, S, B] = f, $ = B.padStart(2, "0"), P = S.padStart(2, "0");
3351
- return `${g}-${P}-${$}`;
3343
+ const f = i.split("-"), [v, C, A] = f, _ = A.padStart(2, "0"), O = C.padStart(2, "0");
3344
+ return `${v}-${O}-${_}`;
3352
3345
  }
3353
3346
  return "";
3354
3347
  } else if (n === "datetime-local") {
3355
3348
  if (/^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
3356
- const [f, g] = i.split(" "), S = f.split("/");
3357
- if (v === "pt-BR") {
3358
- const [B, $, P] = S, ie = B.padStart(2, "0"), ze = $.padStart(2, "0"), De = g.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3359
- return `${P}-${ze}-${ie}T${De}`;
3349
+ const [f, v] = i.split(" "), C = f.split("/");
3350
+ if (d === "pt-BR") {
3351
+ const [A, _, O] = C, oe = A.padStart(2, "0"), ze = _.padStart(2, "0"), De = v.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3352
+ return `${O}-${ze}-${oe}T${De}`;
3360
3353
  } else {
3361
- const [B, $, P] = S, ie = $.padStart(2, "0"), ze = B.padStart(2, "0"), De = g.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3362
- return `${P}-${ze}-${ie}T${De}`;
3354
+ const [A, _, O] = C, oe = _.padStart(2, "0"), ze = A.padStart(2, "0"), De = v.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3355
+ return `${O}-${ze}-${oe}T${De}`;
3363
3356
  }
3364
3357
  } else if (/^\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{1,2}(:\d{1,2})?$/.test(i)) {
3365
- const [f, g] = i.split("T"), S = f.split("-"), [B, $, P] = S, ie = P.padStart(2, "0"), ze = $.padStart(2, "0"), De = g.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3366
- return `${B}-${ze}-${ie}T${De}`;
3358
+ const [f, v] = i.split("T"), C = f.split("-"), [A, _, O] = C, oe = O.padStart(2, "0"), ze = _.padStart(2, "0"), De = v.split(":").map((Ie) => Ie.padStart(2, "0")).join(":");
3359
+ return `${A}-${ze}-${oe}T${De}`;
3367
3360
  }
3368
3361
  return "";
3369
3362
  } else if (n === "month") {
3370
3363
  if (/^\d{1,2}\/\d{4}$/.test(i)) {
3371
- const [f, g] = i.split("/"), S = f.padStart(2, "0");
3372
- return `${g}-${S}`;
3364
+ const [f, v] = i.split("/"), C = f.padStart(2, "0");
3365
+ return `${v}-${C}`;
3373
3366
  } else if (/^\d{4}-\d{1,2}$/.test(i)) {
3374
- const [f, g] = i.split("-"), S = g.padStart(2, "0");
3375
- return `${f}-${S}`;
3367
+ const [f, v] = i.split("-"), C = v.padStart(2, "0");
3368
+ return `${f}-${C}`;
3376
3369
  }
3377
3370
  return "";
3378
3371
  } else if (n === "week") {
@@ -3381,85 +3374,84 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3381
3374
  const f = i.match(/semana\s+W?(\d{2})\s+de\s+(\d{4})/i);
3382
3375
  if (f)
3383
3376
  return `${f[2]}-W${f[1]}`;
3384
- const g = i.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
3385
- return g ? `${g[2]}-W${g[1]}` : "";
3377
+ const v = i.match(/week\s+W?(\d{2})\s+of\s+(\d{4})/i);
3378
+ return v ? `${v[2]}-W${v[1]}` : "";
3386
3379
  }
3387
3380
  return i;
3388
- }, U = X(!1), E = X({ top: 0, left: 0 }), T = X(null), x = X(null), ue = a(() => vt.value === !0), M = a(() => {
3389
- const t = D.value ? "component-disabled" : "", n = ge.value !== "b" ? "inline-block" : "block", r = N ? N.value : "ffffff", i = Ee.value ? Ee.value : "", v = $e.value ? $e.value : "", f = ae.value ? ae.value : "", g = le.value ? le.value : !1, S = W.value !== 0 && !W.value || W.value < 0 ? 0 : W.value, B = J.value ? J.value : "'Lato', sans-serif", $ = Z.value && Z.value >= 0 ? Z.value : null, P = ye.value !== 0 && !ye.value || ye.value < 0 ? 100 : ye.value, ie = de.value ? de.value : "'Lato', sans-serif", ze = q.value ? q.value : "1em", et = ne.value !== 0 && !ne.value || ne.value < 0 ? 100 : ne.value, De = ee.value ? ee.value : "#f15574", Ie = ke.value ? ke.value : 200, va = fe.value ? fe.value : "normal", pa = "sm", ba = me.value ? me.value : !1, ha = d.value ? d.value : "date", Ca = qe.value ? qe.value : !1, xa = Le.value ? Le.value : "normal", Sa = V.value ? V.value : "left", Va = ce.value ? ce.value : "background", ka = te.value ? te.value : !1, La = c.value !== 0 && !c.value || c.value < 0 ? 5 : c.value, Ta = je.value ? je.value : "transparent", Ba = y.value !== 0 && !y.value || y.value < 0 ? 15 : y.value, Aa = He.value ? He.value : "1px 5px", $a = Y.value !== 0 && !Y.value || Y.value < 0 ? 0 : Y.value, _a = pe.value !== 0 && !pe.value || pe.value < 0 ? -13 : pe.value, wa = j.value !== 0 && !j.value || j.value < 0 ? -10 : j.value, Ra = oe.value ? oe.value : "'Lato', sans-serif", Ma = we.value ? we.value : "1em", za = Re.value ? Re.value : "0.8em", Da = Oe.value ? Oe.value : 400, Ia = Fe.value ? Fe.value : "#ffffff", Na = nt.value ? nt.value : "#000000", Wa = Ue.value ? Ue.value : "#ffffff", Ea = ot.value ? ot.value : "#000000";
3381
+ }, j = X(!1), Xe = X({ top: 0, left: 0 }), b = X(null), T = X(null), B = a(() => dt.value === !0), N = a(() => {
3382
+ const t = R.value ? "component-disabled" : "", n = ve.value !== "b" ? "inline-block" : "block", r = J.value ? J.value : "", i = Ee.value ? Ee.value : "", d = Le.value ? Le.value : "", f = te.value ? te.value : !1, v = U.value !== 0 && !U.value || U.value < 0 ? 0 : U.value, C = ae.value ? ae.value : "'Lato', sans-serif", A = G.value && G.value >= 0 ? G.value : null, _ = K.value !== 0 && !K.value || K.value < 0 ? 100 : K.value, O = xe.value ? xe.value : "'Lato', sans-serif", oe = re.value ? re.value : "1em", ze = E.value !== 0 && !E.value || E.value < 0 ? 100 : E.value, Ze = pe.value ? pe.value : "#f15574", De = Z.value ? Z.value : 200, Ie = be.value ? be.value : "normal", fa = "sm", va = $.value ? $.value : !1, pa = x.value ? x.value : "date", ba = Te.value ? Te.value : !1, ha = Se.value ? Se.value : "normal", Ca = p.value ? p.value : "left", xa = ge.value ? ge.value : "background", Sa = P.value ? P.value : !1, Va = Y.value !== 0 && !Y.value || Y.value < 0 ? 5 : Y.value, ka = se.value ? se.value : "transparent", La = c.value !== 0 && !c.value || c.value < 0 ? 15 : c.value, Ta = je.value ? je.value : "1px 5px", Ba = $e.value !== 0 && !$e.value || $e.value < 0 ? 0 : $e.value, Aa = g.value !== 0 && !g.value || g.value < 0 ? -13 : g.value, $a = de.value !== 0 && !de.value || de.value < 0 ? -10 : de.value, _a = ee.value ? ee.value : "'Lato', sans-serif", wa = le.value ? le.value : "1em", Ra = _e.value ? _e.value : "0.8em", Ma = we.value ? we.value : 400, za = Oe.value ? Oe.value : "#ffffff", Da = He.value ? He.value : "#000000", Ia = Fe.value ? Fe.value : "#ffffff", Na = ot.value ? ot.value : "#000000";
3390
3383
  return {
3391
3384
  disabled: t,
3392
3385
  display: n,
3393
- font: B,
3394
- fontSize: $,
3395
- fontWeight: P,
3396
- fontFamilyMsg: ie,
3397
- fontSizeMsg: ze,
3398
- fontWeightMsg: et,
3399
- textMessageColor: De,
3400
- textColor: r,
3401
- caretColor: i,
3402
- selectionBgColor: v,
3403
- selectionTextColor: f,
3404
- hasBorderRadius: g,
3405
- borderRadius: S,
3406
- textAlign: Sa,
3407
- inputWidth: Ie,
3408
- activeTextStyle: va,
3409
- sizeMediaQuery: pa,
3410
- inputReadonly: ba,
3411
- inputType: ha,
3412
- inputUppercase: Ca,
3413
- theme: xa,
3414
- inputStyle: Va,
3415
- showLabel: ka,
3416
- labelBackground: Ta,
3417
- labelPadding: Aa,
3418
- labelBorderRadius: $a,
3419
- labelLeft: La,
3420
- inputLabelMarginActive: Ba,
3421
- labelActiveTop: _a,
3422
- labelActiveLeft: wa,
3423
- fontFamilyLabel: Ra,
3424
- fontSizeLabel: Ma,
3425
- fontSizeLabelActive: za,
3426
- fontWeightLabel: Da,
3427
- lightTextColorLabel: Ia,
3428
- darkTextColorLabel: Na,
3429
- lightTextColorLabelActive: Wa,
3430
- darkTextColorLabelActive: Ea
3386
+ font: C,
3387
+ fontSize: A,
3388
+ fontWeight: _,
3389
+ fontFamilyMsg: O,
3390
+ fontSizeMsg: oe,
3391
+ fontWeightMsg: ze,
3392
+ textMessageColor: Ze,
3393
+ caretColor: r,
3394
+ selectionBgColor: i,
3395
+ selectionTextColor: d,
3396
+ hasBorderRadius: f,
3397
+ borderRadius: v,
3398
+ textAlign: Ca,
3399
+ inputWidth: De,
3400
+ activeTextStyle: Ie,
3401
+ sizeMediaQuery: fa,
3402
+ inputReadonly: va,
3403
+ inputType: pa,
3404
+ inputUppercase: ba,
3405
+ theme: ha,
3406
+ inputStyle: xa,
3407
+ showLabel: Sa,
3408
+ labelBackground: ka,
3409
+ labelPadding: Ta,
3410
+ labelBorderRadius: Ba,
3411
+ labelLeft: Va,
3412
+ inputLabelMarginActive: La,
3413
+ labelActiveTop: Aa,
3414
+ labelActiveLeft: $a,
3415
+ fontFamilyLabel: _a,
3416
+ fontSizeLabel: wa,
3417
+ fontSizeLabelActive: Ra,
3418
+ fontWeightLabel: Ma,
3419
+ lightTextColorLabel: za,
3420
+ darkTextColorLabel: Da,
3421
+ lightTextColorLabelActive: Ia,
3422
+ darkTextColorLabelActive: Na
3431
3423
  };
3432
- }), At = a(() => M.value.disabled), $t = a(() => ({
3433
- display: M.value.display
3434
- })), Vt = a(() => {
3435
- const t = M.value;
3424
+ }), Bt = a(() => N.value.disabled), At = a(() => ({
3425
+ display: N.value.display
3426
+ })), xt = a(() => {
3427
+ const t = N.value;
3436
3428
  return t.fontSize ? `${t.fontSize}em` : "1.2em";
3437
- }), _t = a(() => {
3438
- const t = M.value, n = Lt.value;
3429
+ }), $t = a(() => {
3430
+ const t = N.value, n = wt.value;
3439
3431
  return {
3440
- fontSize: Vt.value,
3432
+ fontSize: xt.value,
3441
3433
  fontWeight: t.fontWeight,
3442
- marginTop: n && te.value ? `${t.inputLabelMarginActive}px` : "0"
3434
+ marginTop: n && P.value ? `${t.inputLabelMarginActive}px` : "0"
3443
3435
  };
3444
- }), xe = a(() => {
3445
- const t = M.value;
3436
+ }), mt = a(() => {
3437
+ const t = N.value;
3446
3438
  return t.inputStyle !== "line" && t.hasBorderRadius ? { borderRadius: `${t.borderRadius}rem` } : {};
3447
- }), dt = a(() => M.value.font), gt = a(() => M.value.fontFamilyMsg), ut = a(() => M.value.fontSizeMsg), k = a(() => M.value.fontWeightMsg), wt = a(() => N.value && N.value !== "#ffffff" ? N.value : Le.value === "dark" ? b.value : Te.value), Pt = a(() => M.value.textMessageColor), Ct = a(() => {
3448
- const t = M.value;
3439
+ }), Me = a(() => N.value.font), it = a(() => N.value.fontFamilyMsg), vt = a(() => N.value.fontSizeMsg), ut = a(() => N.value.fontWeightMsg), V = a(() => Se.value === "dark" ? Ae.value : Ke.value), _t = a(() => N.value.textMessageColor), Pt = a(() => {
3440
+ const t = N.value;
3449
3441
  return t.caretColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
3450
- }), Ot = a(() => {
3451
- const t = M.value;
3442
+ }), ht = a(() => {
3443
+ const t = N.value;
3452
3444
  return t.selectionBgColor || (t.theme === "dark" ? "#00d4ff" : "#007bff");
3453
- }), rt = a(() => {
3454
- const t = M.value;
3445
+ }), Ot = a(() => {
3446
+ const t = N.value;
3455
3447
  return t.selectionTextColor || (t.theme === "dark" ? "#000000" : "#ffffff");
3456
- }), xt = a(() => {
3457
- const t = M.value;
3448
+ }), Je = a(() => {
3449
+ const t = N.value;
3458
3450
  return t.display === "block" ? { width: "100%" } : {
3459
3451
  width: `${t.inputWidth}px`
3460
3452
  };
3461
- }), Ft = a(() => {
3462
- switch (ce.value) {
3453
+ }), St = a(() => {
3454
+ switch (ge.value) {
3463
3455
  case "line":
3464
3456
  return "component__input--line";
3465
3457
  case "border":
@@ -3467,8 +3459,8 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3467
3459
  default:
3468
3460
  return "component__input--background";
3469
3461
  }
3470
- }), qt = a(() => {
3471
- switch (M.value.activeTextStyle) {
3462
+ }), Ft = a(() => {
3463
+ switch (N.value.activeTextStyle) {
3472
3464
  case "italic":
3473
3465
  return "component__input--active--italic";
3474
3466
  case "oblique":
@@ -3476,34 +3468,34 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3476
3468
  default:
3477
3469
  return "component__input--active--normal";
3478
3470
  }
3479
- }), jt = a(() => "component__sm"), Ht = a(() => {
3480
- switch (M.value.theme) {
3471
+ }), qt = a(() => "component__sm"), jt = a(() => {
3472
+ switch (N.value.theme) {
3481
3473
  case "dark":
3482
3474
  return "component__theme--dark";
3483
3475
  default:
3484
3476
  return "component__theme--light";
3485
3477
  }
3486
- }), Ut = a(() => M.value.inputReadonly ? "component__input--read-only" : ""), Gt = a(() => M.value.inputUppercase ? "component__input--uppercase" : ""), kt = a(() => Ge.value ? Ge.value : `${Se.value}-name-label`), Kt = a(() => ""), Lt = a(() => Ce.value || A.value && A.value.trim().length > 0), Tt = a(() => !A.value || A.value.trim().length === 0 ? "component__input--empty" : "");
3487
- a(() => Ce.value ? "component__input--active" : "component__input--no-active");
3488
- const l = a(() => "6px 10px"), s = a(() => !!(ve.value && K.value)), w = a(() => {
3478
+ }), Ht = a(() => N.value.inputReadonly ? "component__input--read-only" : ""), Ut = a(() => N.value.inputUppercase ? "component__input--uppercase" : ""), Vt = a(() => qe.value ? qe.value : `${he.value}-name-label`), Gt = a(() => ""), wt = a(() => I.value || M.value && M.value.trim().length > 0), Rt = a(() => !M.value || M.value.trim().length === 0 ? "component__input--empty" : "");
3479
+ a(() => I.value ? "component__input--active" : "component__input--no-active");
3480
+ const kt = a(() => "6px 10px"), l = a(() => !!(k.value && ie.value)), s = a(() => {
3489
3481
  const t = {};
3490
- se.value && Object.keys(se.value).forEach((i) => t[`aria-${i}`] = se.value[i]);
3482
+ ue.value && Object.keys(ue.value).forEach((i) => t[`aria-${i}`] = ue.value[i]);
3491
3483
  const n = {
3492
- "aria-label": Ve.value,
3493
- "aria-disabled": D.value,
3484
+ "aria-label": Ce.value,
3485
+ "aria-disabled": R.value,
3494
3486
  ...t
3495
3487
  };
3496
3488
  return Object.fromEntries(
3497
3489
  Object.entries(n).filter(([r, i]) => i != null)
3498
3490
  );
3499
- }), Q = a(() => {
3500
- const t = Le.value === "dark" ? lt.value : at.value, n = Le.value === "dark" ? b.value : Te.value;
3491
+ }), z = a(() => {
3492
+ const t = Se.value === "dark" ? Pe.value : rt.value, n = Se.value === "dark" ? Ae.value : Ke.value;
3501
3493
  return t === "transparent" || t === "#transparent" || !t ? n : t;
3502
- }), Yt = a(() => {
3503
- const t = Le.value === "dark" ? Qe.value : st.value, n = Le.value === "dark" ? b.value : Te.value;
3494
+ }), Q = a(() => {
3495
+ const t = Se.value === "dark" ? lt.value : at.value, n = Se.value === "dark" ? Ae.value : Ke.value;
3504
3496
  return t === "transparent" || t === "#transparent" || !t ? n : t;
3505
- }), Rt = a(() => {
3506
- const t = M.value, n = Lt.value, r = n ? t.lightTextColorLabelActive : t.lightTextColorLabel, i = n ? t.darkTextColorLabelActive : t.darkTextColorLabel;
3497
+ }), Kt = a(() => {
3498
+ const t = N.value, n = wt.value, r = n ? t.lightTextColorLabelActive : t.lightTextColorLabel, i = n ? t.darkTextColorLabelActive : t.darkTextColorLabel;
3507
3499
  return {
3508
3500
  fontFamily: t.fontFamilyLabel,
3509
3501
  fontSize: n ? t.fontSizeLabelActive : t.fontSizeLabel,
@@ -3519,292 +3511,292 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3519
3511
  };
3520
3512
  });
3521
3513
  a(() => {
3522
- const t = M.value;
3514
+ const t = N.value;
3523
3515
  return t.theme === "dark" ? t.darkTextColorLabelActive : t.lightTextColorLabelActive;
3524
3516
  });
3525
- const Mt = () => {
3526
- C.value = Pe.value, H.value = d.value;
3527
- }, yt = () => {
3528
- z("clicked");
3529
- }, Qt = () => {
3530
- D.value || M.value.inputReadonly || !Ae.value || z("entered", C.value);
3531
- }, ct = () => {
3532
- T.value && ya(() => {
3533
- const t = T.value.closest(".nb-wrapper"), n = 4;
3517
+ const Lt = () => {
3518
+ m.value = Be.value, Ye.value = x.value;
3519
+ }, Yt = () => {
3520
+ W("clicked");
3521
+ }, pt = () => {
3522
+ R.value || N.value.inputReadonly || !ke.value || W("entered", m.value);
3523
+ }, bt = () => {
3524
+ b.value && ya(() => {
3525
+ const t = b.value.closest(".nb-wrapper"), n = 4;
3534
3526
  if (t) {
3535
- const r = t.getBoundingClientRect(), i = T.value.getBoundingClientRect(), v = i.bottom - r.top + n, f = i.left - r.left;
3536
- E.value = {
3537
- top: `${v}px`,
3527
+ const r = t.getBoundingClientRect(), i = b.value.getBoundingClientRect(), d = i.bottom - r.top + n, f = i.left - r.left;
3528
+ Xe.value = {
3529
+ top: `${d}px`,
3538
3530
  left: `${f}px`
3539
3531
  };
3540
3532
  } else {
3541
- const r = T.value.getBoundingClientRect(), i = window.scrollY || window.pageYOffset, v = window.scrollX || window.pageXOffset;
3542
- E.value = {
3533
+ const r = b.value.getBoundingClientRect(), i = window.scrollY || window.pageYOffset, d = window.scrollX || window.pageXOffset;
3534
+ Xe.value = {
3543
3535
  top: `${r.bottom + i + n}px`,
3544
- left: `${r.left + v}px`
3536
+ left: `${r.left + d}px`
3545
3537
  };
3546
3538
  }
3547
3539
  });
3548
- }, Xt = a(() => ({
3540
+ }, Mt = a(() => ({
3549
3541
  position: "absolute",
3550
- top: E.value.top,
3551
- left: E.value.left,
3542
+ top: Xe.value.top,
3543
+ left: Xe.value.left,
3552
3544
  zIndex: 1e3
3553
- })), Jt = () => {
3554
- Ce.value = !0, z("focused"), ue.value && (U.value = !1, requestAnimationFrame(() => {
3555
- ct(), U.value = !0;
3545
+ })), Qt = () => {
3546
+ I.value = !0, W("focused"), B.value && (j.value = !1, requestAnimationFrame(() => {
3547
+ bt(), j.value = !0;
3556
3548
  }));
3557
- }, Zt = (t) => {
3558
- t.relatedTarget && x.value && x.value.contains(t.relatedTarget) || setTimeout(() => {
3549
+ }, Xt = (t) => {
3550
+ t.relatedTarget && T.value && T.value.contains(t.relatedTarget) || setTimeout(() => {
3559
3551
  var i;
3560
3552
  const n = document.activeElement;
3561
- if (U.value) {
3562
- if (x.value && x.value.contains(n) || t.relatedTarget && x.value && x.value.contains(t.relatedTarget))
3553
+ if (j.value) {
3554
+ if (T.value && T.value.contains(n) || t.relatedTarget && T.value && T.value.contains(t.relatedTarget))
3563
3555
  return;
3564
- if (n === document.body && x.value) {
3565
- const v = x.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
3566
- if (Array.from(v).some((g) => g === document.activeElement || g.contains(document.activeElement)))
3556
+ if (n === document.body && T.value) {
3557
+ const d = T.value.querySelectorAll('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');
3558
+ if (Array.from(d).some((v) => v === document.activeElement || v.contains(document.activeElement)))
3567
3559
  return;
3568
3560
  }
3569
3561
  }
3570
- const r = (i = T.value) == null ? void 0 : i.closest(".component");
3571
- r && r.contains(n) || T.value !== n && (Ce.value = !1, U.value = !1, z("blurred"));
3562
+ const r = (i = b.value) == null ? void 0 : i.closest(".component");
3563
+ r && r.contains(n) || b.value !== n && (I.value = !1, j.value = !1, W("blurred"));
3572
3564
  }, 200);
3573
- }, ea = () => {
3574
- ue.value && (U.value, U.value = !1, requestAnimationFrame(() => {
3575
- ct(), U.value = !0;
3565
+ }, Jt = () => {
3566
+ B.value && (j.value, j.value = !1, requestAnimationFrame(() => {
3567
+ bt(), j.value = !0;
3576
3568
  }));
3577
- }, Bt = (t) => {
3569
+ }, Tt = (t) => {
3578
3570
  if (!t || !(t instanceof Date))
3579
3571
  return null;
3580
3572
  const n = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0");
3581
3573
  return `${n}-${r}-${i}`;
3582
- }, ta = (t) => {
3574
+ }, Zt = (t) => {
3583
3575
  let n = "";
3584
3576
  if (!t)
3585
3577
  n = "";
3586
- else if (he.value && typeof t == "object" && !(t instanceof Date)) {
3578
+ else if (me.value && typeof t == "object" && !(t instanceof Date)) {
3587
3579
  if (t.startDate === null && t.endDate === null)
3588
3580
  n = "";
3589
3581
  else if (t.startDate || t.endDate) {
3590
3582
  const i = {
3591
3583
  // Converter startDate para string ISO se existir
3592
- startDate: t.startDate ? Bt(t.startDate) : null,
3584
+ startDate: t.startDate ? Tt(t.startDate) : null,
3593
3585
  // Converter endDate para string ISO se existir
3594
- endDate: t.endDate ? Bt(t.endDate) : null
3586
+ endDate: t.endDate ? Tt(t.endDate) : null
3595
3587
  };
3596
3588
  n = JSON.stringify(i);
3597
3589
  }
3598
3590
  } else
3599
- d.value === "date" ? t instanceof Date ? n = Bt(t) : typeof t == "string" && (n = t) : (d.value === "month" || d.value === "time" || d.value === "datetime-local" || d.value === "week") && (n = typeof t == "string" ? t : "");
3600
- p = !0, C.value = n;
3601
- const r = n ? Je(n, d.value) : "";
3602
- A.value = r, R.value = r;
3603
- }, aa = () => {
3604
- if (!ue.value) {
3605
- C.value = A.value;
3591
+ x.value === "date" ? t instanceof Date ? n = Tt(t) : typeof t == "string" && (n = t) : (x.value === "month" || x.value === "time" || x.value === "datetime-local" || x.value === "week") && (n = typeof t == "string" ? t : "");
3592
+ u = !0, m.value = n;
3593
+ const r = n ? ce(n, x.value) : "";
3594
+ M.value = r, D.value = r;
3595
+ }, ea = () => {
3596
+ if (!B.value) {
3597
+ m.value = M.value;
3606
3598
  return;
3607
3599
  }
3608
- re = !0;
3609
- const t = T.value ? {
3610
- start: T.value.selectionStart,
3611
- end: T.value.selectionEnd
3612
- } : null, n = A.value.trim();
3600
+ ne = !0;
3601
+ const t = b.value ? {
3602
+ start: b.value.selectionStart,
3603
+ end: b.value.selectionEnd
3604
+ } : null, n = M.value.trim();
3613
3605
  if (!n || n.length === 0) {
3614
- p = !0, C.value = "", A.value = "", R.value = "", setTimeout(() => {
3615
- re = !1;
3606
+ u = !0, m.value = "", M.value = "", D.value = "", setTimeout(() => {
3607
+ ne = !1;
3616
3608
  }, 50);
3617
3609
  return;
3618
3610
  }
3619
- if (d.value === "date") {
3620
- const i = he.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}$/;
3621
- if (he.value) {
3611
+ if (x.value === "date") {
3612
+ const i = me.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}$/;
3613
+ if (me.value) {
3622
3614
  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)) {
3623
- A.value = R.value, t && T.value && ya(() => {
3624
- const v = Math.min(t.start, R.value.length);
3625
- T.value.setSelectionRange(v, v);
3615
+ M.value = D.value, t && b.value && ya(() => {
3616
+ const d = Math.min(t.start, D.value.length);
3617
+ b.value.setSelectionRange(d, d);
3626
3618
  }), setTimeout(() => {
3627
- re = !1;
3619
+ ne = !1;
3628
3620
  }, 50);
3629
3621
  return;
3630
3622
  }
3631
3623
  if (!i.test(n) && n.length <= 23) {
3632
3624
  setTimeout(() => {
3633
- re = !1;
3625
+ ne = !1;
3634
3626
  }, 50);
3635
3627
  return;
3636
3628
  }
3637
3629
  } else {
3638
3630
  if (n.length > 10 && !i.test(n)) {
3639
- A.value = R.value, t && T.value && ya(() => {
3640
- const v = Math.min(t.start, R.value.length);
3641
- T.value.setSelectionRange(v, v);
3631
+ M.value = D.value, t && b.value && ya(() => {
3632
+ const d = Math.min(t.start, D.value.length);
3633
+ b.value.setSelectionRange(d, d);
3642
3634
  }), setTimeout(() => {
3643
- re = !1;
3635
+ ne = !1;
3644
3636
  }, 50);
3645
3637
  return;
3646
3638
  }
3647
3639
  if (!i.test(n) && n.length <= 10) {
3648
3640
  setTimeout(() => {
3649
- re = !1;
3641
+ ne = !1;
3650
3642
  }, 50);
3651
3643
  return;
3652
3644
  }
3653
3645
  }
3654
3646
  }
3655
3647
  let r = null;
3656
- if (d.value === "date")
3657
- if (he.value)
3648
+ if (x.value === "date")
3649
+ if (me.value)
3658
3650
  if (n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*(\d{1,2}\/\d{1,2}\/\d{4})$/))
3659
- if (r = Ze(n, d.value), r && r !== C.value)
3660
- p = !0, C.value = r, R.value = n;
3651
+ if (r = Qe(n, x.value), r && r !== m.value)
3652
+ u = !0, m.value = r, D.value = n;
3661
3653
  else {
3662
3654
  setTimeout(() => {
3663
- re = !1;
3655
+ ne = !1;
3664
3656
  }, 50);
3665
3657
  return;
3666
3658
  }
3667
3659
  else if (n.includes("-")) {
3668
- const v = n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
3669
- if (v) {
3670
- const f = v[1], g = Ze(f, d.value);
3671
- if (g) {
3672
- const S = JSON.stringify({ startDate: g, endDate: null });
3673
- S !== C.value && (p = !0, C.value = S, R.value = n);
3660
+ const d = n.match(/^(\d{1,2}\/\d{1,2}\/\d{4})\s*-\s*$/);
3661
+ if (d) {
3662
+ const f = d[1], v = Qe(f, x.value);
3663
+ if (v) {
3664
+ const C = JSON.stringify({ startDate: v, endDate: null });
3665
+ C !== m.value && (u = !0, m.value = C, D.value = n);
3674
3666
  } else {
3675
- R.value = n, setTimeout(() => {
3676
- re = !1;
3667
+ D.value = n, setTimeout(() => {
3668
+ ne = !1;
3677
3669
  }, 50);
3678
3670
  return;
3679
3671
  }
3680
3672
  } else {
3681
- R.value = n, setTimeout(() => {
3682
- re = !1;
3673
+ D.value = n, setTimeout(() => {
3674
+ ne = !1;
3683
3675
  }, 50);
3684
3676
  return;
3685
3677
  }
3686
3678
  } else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(n))
3687
- if (r = Ze(n, d.value), r) {
3679
+ if (r = Qe(n, x.value), r) {
3688
3680
  const f = JSON.stringify({ startDate: r, endDate: null });
3689
- f !== C.value && (p = !0, C.value = f, R.value = n);
3681
+ f !== m.value && (u = !0, m.value = f, D.value = n);
3690
3682
  } else {
3691
- R.value = n, setTimeout(() => {
3692
- re = !1;
3683
+ D.value = n, setTimeout(() => {
3684
+ ne = !1;
3693
3685
  }, 50);
3694
3686
  return;
3695
3687
  }
3696
3688
  else {
3697
- R.value = n, setTimeout(() => {
3698
- re = !1;
3689
+ D.value = n, setTimeout(() => {
3690
+ ne = !1;
3699
3691
  }, 50);
3700
3692
  return;
3701
3693
  }
3702
3694
  else if (/^\d{1,2}\/\d{1,2}\/\d{4}$|^\d{4}-\d{1,2}-\d{1,2}$/.test(n))
3703
- r = Ze(n, d.value), r && r !== C.value && (p = !0, C.value = r, R.value = n);
3695
+ r = Qe(n, x.value), r && r !== m.value && (u = !0, m.value = r, D.value = n);
3704
3696
  else {
3705
3697
  setTimeout(() => {
3706
- re = !1;
3698
+ ne = !1;
3707
3699
  }, 50);
3708
3700
  return;
3709
3701
  }
3710
3702
  else
3711
- r = Ze(n, d.value), r && r !== C.value && (p = !0, C.value = r, R.value = n);
3703
+ r = Qe(n, x.value), r && r !== m.value && (u = !0, m.value = r, D.value = n);
3712
3704
  setTimeout(() => {
3713
- re = !1;
3705
+ ne = !1;
3714
3706
  }, 50);
3715
- }, la = (t) => {
3707
+ }, ta = (t) => {
3716
3708
  }, zt = (t) => {
3717
3709
  var i;
3718
- if (!U.value || !x.value || !T.value)
3710
+ if (!j.value || !T.value || !b.value)
3719
3711
  return;
3720
3712
  const n = t.target;
3721
- if ((i = T.value) == null || i.closest(".nb-wrapper"), x.value && x.value.contains(n) || t.defaultPrevented || t.cancelBubble || x.value && x.value.contains(n))
3713
+ if ((i = b.value) == null || i.closest(".nb-wrapper"), T.value && T.value.contains(n) || t.defaultPrevented || t.cancelBubble || T.value && T.value.contains(n))
3722
3714
  return;
3723
3715
  let r = n;
3724
3716
  for (; r && r !== document.body; ) {
3725
- if (r === x.value || x.value && x.value.contains(r))
3717
+ if (r === T.value || T.value && T.value.contains(r))
3726
3718
  return;
3727
3719
  r = r.parentElement;
3728
3720
  }
3729
3721
  setTimeout(() => {
3730
- if (!U.value || !x.value || x.value && x.value.contains(n))
3722
+ if (!j.value || !T.value || T.value && T.value.contains(n))
3731
3723
  return;
3732
3724
  for (r = n; r && r !== document.body; ) {
3733
- if (r === x.value || x.value && x.value.contains(r))
3725
+ if (r === T.value || T.value && T.value.contains(r))
3734
3726
  return;
3735
3727
  r = r.parentElement;
3736
3728
  }
3737
3729
  if (!document.body.contains(n))
3738
3730
  return;
3739
- T.value && (n === T.value || T.value.contains(n)) || (U.value = !1, (!A.value || A.value.trim().length === 0) && (Ce.value = !1));
3731
+ b.value && (n === b.value || b.value.contains(n)) || (j.value = !1, (!M.value || M.value.trim().length === 0) && (I.value = !1));
3740
3732
  }, 50);
3741
3733
  }, Dt = () => {
3742
- U.value && ue.value && ct();
3734
+ j.value && B.value && bt();
3743
3735
  }, It = () => {
3744
- U.value && ue.value && ct();
3736
+ j.value && B.value && bt();
3745
3737
  };
3746
- let ft = null, St = null, mt = { top: 0, left: 0 };
3738
+ let st = null, Ct = null, gt = { top: 0, left: 0 };
3747
3739
  const Nt = () => {
3748
- if (!U.value || !ue.value || !T.value)
3740
+ if (!j.value || !B.value || !b.value)
3749
3741
  return;
3750
- const t = T.value.closest(".nb-wrapper"), n = 4;
3742
+ const t = b.value.closest(".nb-wrapper"), n = 4;
3751
3743
  let r, i;
3752
3744
  if (t) {
3753
- const v = t.getBoundingClientRect(), f = T.value.getBoundingClientRect();
3754
- r = f.bottom - v.top + n, i = f.left - v.left;
3745
+ const d = t.getBoundingClientRect(), f = b.value.getBoundingClientRect();
3746
+ r = f.bottom - d.top + n, i = f.left - d.left;
3755
3747
  } else {
3756
- const v = T.value.getBoundingClientRect(), f = window.scrollY || window.pageYOffset, g = window.scrollX || window.pageXOffset;
3757
- r = v.bottom + f + n, i = v.left + g;
3748
+ const d = b.value.getBoundingClientRect(), f = window.scrollY || window.pageYOffset, v = window.scrollX || window.pageXOffset;
3749
+ r = d.bottom + f + n, i = d.left + v;
3758
3750
  }
3759
- (mt.top !== r || mt.left !== i) && (mt.top = r, mt.left = i, E.value = {
3751
+ (gt.top !== r || gt.left !== i) && (gt.top = r, gt.left = i, Xe.value = {
3760
3752
  top: `${r}px`,
3761
3753
  left: `${i}px`
3762
- }), St = requestAnimationFrame(Nt);
3763
- }, na = () => {
3764
- if (!T.value || !ue.value)
3754
+ }), Ct = requestAnimationFrame(Nt);
3755
+ }, aa = () => {
3756
+ if (!b.value || !B.value)
3765
3757
  return;
3766
- mt = { top: 0, left: 0 }, Nt(), ft = new ResizeObserver(() => {
3767
- U.value && ct();
3768
- }), ft.observe(T.value);
3769
- const t = T.value.closest(".component");
3770
- t && ft.observe(t);
3758
+ gt = { top: 0, left: 0 }, Nt(), st = new ResizeObserver(() => {
3759
+ j.value && bt();
3760
+ }), st.observe(b.value);
3761
+ const t = b.value.closest(".component");
3762
+ t && st.observe(t);
3771
3763
  }, Wt = () => {
3772
- St !== null && (cancelAnimationFrame(St), St = null), ft && (ft.disconnect(), ft = null);
3764
+ Ct !== null && (cancelAnimationFrame(Ct), Ct = null), st && (st.disconnect(), st = null);
3773
3765
  };
3774
- G(U, (t) => {
3775
- t && ue.value ? ya(() => {
3776
- na();
3766
+ H(j, (t) => {
3767
+ t && B.value ? ya(() => {
3768
+ aa();
3777
3769
  }) : Wt();
3778
- }), ua(() => {
3779
- C.value = Pe.value, A.value = Je(Pe.value, d.value), document.addEventListener("click", zt, !1), window.addEventListener("scroll", Dt, { capture: !0, passive: !0 }), window.addEventListener("resize", It);
3770
+ }), oa(() => {
3771
+ m.value = Be.value, M.value = ce(Be.value, x.value), document.addEventListener("click", zt, !1), window.addEventListener("scroll", Dt, { capture: !0, passive: !0 }), window.addEventListener("resize", It);
3780
3772
  }), ma(() => {
3781
- Mt(), Wt(), document.removeEventListener("click", zt), window.removeEventListener("scroll", Dt, { capture: !0, passive: !0 }), window.removeEventListener("resize", It);
3782
- }), G(d, (t) => {
3783
- H.value = t;
3784
- }, { immediate: !0 }), G(Ye, () => {
3785
- C.value && ue.value && (A.value = Je(C.value, d.value));
3786
- }), G(Pe, (t) => {
3787
- if (t !== C.value) {
3788
- C.value = t;
3789
- const n = Je(t, d.value);
3790
- A.value = n, R.value = n;
3773
+ Lt(), Wt(), document.removeEventListener("click", zt), window.removeEventListener("scroll", Dt, { capture: !0, passive: !0 }), window.removeEventListener("resize", It);
3774
+ }), H(x, (t) => {
3775
+ Ye.value = t;
3776
+ }, { immediate: !0 }), H(Ge, () => {
3777
+ m.value && B.value && (M.value = ce(m.value, x.value));
3778
+ }), H(Be, (t) => {
3779
+ if (t !== m.value) {
3780
+ m.value = t;
3781
+ const n = ce(t, x.value);
3782
+ M.value = n, D.value = n;
3791
3783
  }
3792
3784
  }, { immediate: !0 });
3793
- let re = !1;
3794
- const u = () => {
3795
- re = !0, setTimeout(() => {
3796
- re = !1;
3785
+ let ne = !1;
3786
+ const la = () => {
3787
+ ne = !0, setTimeout(() => {
3788
+ ne = !1;
3797
3789
  }, 100);
3798
3790
  };
3799
- let p = !1;
3800
- return G(() => C.value, (t) => {
3801
- if (ue.value && !p && !re) {
3802
- const n = Je(t, d.value);
3803
- n !== A.value && (A.value = n, R.value = n);
3791
+ let u = !1;
3792
+ return H(() => m.value, (t) => {
3793
+ if (B.value && !u && !ne) {
3794
+ const n = ce(t, x.value);
3795
+ n !== M.value && (M.value = n, D.value = n);
3804
3796
  }
3805
- p = !1;
3806
- }), G(C, (t) => {
3807
- if (_e.value && (t = t.trim()), he.value && typeof t == "string" && t.startsWith("{"))
3797
+ u = !1;
3798
+ }), H(m, (t) => {
3799
+ if (S.value && (t = t.trim()), me.value && typeof t == "string" && t.startsWith("{"))
3808
3800
  try {
3809
3801
  const n = JSON.parse(t);
3810
3802
  if (n && (n.startDate || n.endDate)) {
@@ -3812,112 +3804,112 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3812
3804
  if (!f)
3813
3805
  return null;
3814
3806
  if (/^\d{4}-\d{2}-\d{2}$/.test(f)) {
3815
- const [g, S, B] = f.split("-").map(Number);
3816
- return new Date(g, S - 1, B);
3807
+ const [v, C, A] = f.split("-").map(Number);
3808
+ return new Date(v, C - 1, A);
3817
3809
  }
3818
3810
  return new Date(f);
3819
- }, i = n.startDate ? r(n.startDate) : null, v = n.endDate ? r(n.endDate) : null;
3820
- z("changed", { startDate: i, endDate: v });
3811
+ }, i = n.startDate ? r(n.startDate) : null, d = n.endDate ? r(n.endDate) : null;
3812
+ W("changed", { startDate: i, endDate: d });
3821
3813
  return;
3822
3814
  }
3823
3815
  } catch {
3824
3816
  }
3825
- z("changed", t);
3826
- }), G(Ce, (t) => {
3827
- z(t ? "focused" : "blurred");
3828
- }), G(C, (t) => {
3829
- _e.value && (t = t.trim()), z("current-value", t);
3830
- }), (t, n) => o(Se) ? (O(), F("div", ra({
3817
+ W("changed", t);
3818
+ }), H(I, (t) => {
3819
+ W(t ? "focused" : "blurred");
3820
+ }), H(m, (t) => {
3821
+ S.value && (t = t.trim()), W("current-value", t);
3822
+ }), (t, n) => o(he) ? (F(), q("div", ua({
3831
3823
  key: 0,
3832
- class: ["nb-wrapper", At.value],
3833
- style: [$t.value, xt.value, xe.value],
3824
+ class: ["nb-wrapper", Bt.value],
3825
+ style: [At.value, Je.value, mt.value],
3834
3826
  role: "input"
3835
- }, w.value), [
3836
- be("div", {
3837
- id: o(Se),
3838
- class: Ne(["nb-reset", "component", jt.value, Ht.value, Ut.value, Ft.value]),
3839
- style: We([_t.value, xt.value, xe.value]),
3840
- onClick: yt
3827
+ }, s.value), [
3828
+ fe("div", {
3829
+ id: o(he),
3830
+ class: Ne(["nb-reset", "component", qt.value, jt.value, Ht.value, St.value]),
3831
+ style: We([$t.value, Je.value, mt.value]),
3832
+ onClick: Yt
3841
3833
  }, [
3842
- o(te) ? (O(), F("label", {
3834
+ o(P) ? (F(), q("label", {
3843
3835
  key: 0,
3844
- for: kt.value,
3836
+ for: Vt.value,
3845
3837
  class: "component__label",
3846
- style: We([Rt.value])
3847
- }, ht(e.label), 13, Wl)) : Be("", !0),
3848
- ca(be("input", {
3838
+ style: We([Kt.value])
3839
+ }, yt(e.label), 13, Wl)) : Ve("", !0),
3840
+ da(fe("input", {
3849
3841
  ref_key: "inputRef",
3850
- ref: T,
3851
- "onUpdate:modelValue": n[0] || (n[0] = (r) => A.value = r),
3852
- onInput: aa,
3842
+ ref: b,
3843
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => M.value = r),
3844
+ onInput: ea,
3853
3845
  onKeydown: [
3854
- u,
3855
- n[1] || (n[1] = Et((r) => !o(D) && o(Ae) && Qt(), ["enter"]))
3846
+ la,
3847
+ n[1] || (n[1] = Et((r) => !o(R) && o(ke) && pt(), ["enter"]))
3856
3848
  ],
3857
- id: kt.value,
3858
- name: kt.value,
3859
- type: ue.value ? "text" : H.value,
3849
+ id: Vt.value,
3850
+ name: Vt.value,
3851
+ type: B.value ? "text" : Ye.value,
3860
3852
  class: Ne(["component__input", [
3861
- Gt.value,
3862
- qt.value,
3863
- Tt.value
3853
+ Ut.value,
3854
+ Ft.value,
3855
+ Rt.value
3864
3856
  ]]),
3865
- placeholder: Kt.value,
3866
- disabled: o(D) || o(me),
3857
+ placeholder: Gt.value,
3858
+ disabled: o(R) || o($),
3867
3859
  required: e.required,
3868
- readonly: o(me),
3860
+ readonly: o($),
3869
3861
  autocomplete: e.inputAutocomplete,
3870
- min: ue.value ? void 0 : o(Ke),
3871
- max: ue.value ? void 0 : o(tt),
3872
- step: ue.value ? void 0 : o(it),
3873
- tabindex: o(D) || o(me) ? -1 : o(pt),
3862
+ min: B.value ? void 0 : o(et),
3863
+ max: B.value ? void 0 : o(Ue),
3864
+ step: B.value ? void 0 : o(tt),
3865
+ tabindex: o(R) || o($) ? -1 : o(ct),
3874
3866
  role: "input",
3875
- style: We([xe.value]),
3876
- onFocus: Jt,
3877
- onBlur: Zt,
3878
- onClick: ea
3867
+ style: We([mt.value]),
3868
+ onFocus: Qt,
3869
+ onBlur: Xt,
3870
+ onClick: Jt
3879
3871
  }, null, 46, El), [
3880
- [qa, A.value]
3872
+ [Oa, M.value]
3881
3873
  ])
3882
3874
  ], 14, Nl),
3883
- s.value ? (O(), F("div", {
3875
+ l.value ? (F(), q("div", {
3884
3876
  key: 0,
3885
3877
  class: Ne(["component__message", e.hasCustomMsg ? "component__message--custom" : "component__message--default"])
3886
3878
  }, [
3887
- oa(t.$slots, "message", {}, () => [
3888
- ga(ht(e.message), 1)
3879
+ na(t.$slots, "message", {}, () => [
3880
+ ga(yt(e.message), 1)
3889
3881
  ], !0)
3890
- ], 2)) : Be("", !0),
3891
- ue.value && U.value ? (O(), F("div", {
3882
+ ], 2)) : Ve("", !0),
3883
+ B.value && j.value ? (F(), q("div", {
3892
3884
  key: 1,
3893
3885
  ref_key: "calendarRef",
3894
- ref: x,
3886
+ ref: T,
3895
3887
  class: "datepicker__custom-calendar-wrapper",
3896
- style: We(Xt.value),
3897
- onClick: n[4] || (n[4] = ia((r) => L.value = !0, ["stop"])),
3898
- onMousedown: n[5] || (n[5] = ia((r) => L.value = !0, ["stop"]))
3888
+ style: We(Mt.value),
3889
+ onClick: n[4] || (n[4] = ra((r) => Re.value = !0, ["stop"])),
3890
+ onMousedown: n[5] || (n[5] = ra((r) => Re.value = !0, ["stop"]))
3899
3891
  }, [
3900
3892
  ol(o(h), {
3901
- "nb-id": `${o(Se)}-calendar`,
3902
- value: Me.value,
3903
- "input-type": o(d),
3904
- min: o(Ke),
3905
- max: o(tt),
3906
- step: o(it),
3907
- disabled: o(D),
3893
+ "nb-id": `${o(he)}-calendar`,
3894
+ value: L.value,
3895
+ "input-type": o(x),
3896
+ min: o(et),
3897
+ max: o(Ue),
3898
+ step: o(tt),
3899
+ disabled: o(R),
3908
3900
  width: 350,
3909
- locale: o(Ye),
3910
- theme: o(Le),
3911
- "allow-range": o(he),
3912
- onChanged: ta,
3913
- onDateSelected: la,
3914
- onMousedown: n[2] || (n[2] = (r) => L.value = !0),
3915
- onClick: n[3] || (n[3] = (r) => L.value = !0)
3901
+ locale: o(Ge),
3902
+ theme: o(Se),
3903
+ "allow-range": o(me),
3904
+ onChanged: Zt,
3905
+ onDateSelected: ta,
3906
+ onMousedown: n[2] || (n[2] = (r) => Re.value = !0),
3907
+ onClick: n[3] || (n[3] = (r) => Re.value = !0)
3916
3908
  }, null, 8, ["nb-id", "value", "input-type", "min", "max", "step", "disabled", "locale", "theme", "allow-range"])
3917
- ], 36)) : Be("", !0)
3918
- ], 16)) : Be("", !0);
3909
+ ], 36)) : Ve("", !0)
3910
+ ], 16)) : Ve("", !0);
3919
3911
  }
3920
- }), Ol = /* @__PURE__ */ fa(Pl, [["__scopeId", "data-v-a3bc5b3b"]]), Pa = {
3912
+ }), Ol = /* @__PURE__ */ ca(Pl, [["__scopeId", "data-v-037a727a"]]), Wa = {
3921
3913
  NbInputRadio: dl,
3922
3914
  NbInputCheckbox: bl,
3923
3915
  NbInput: kl,
@@ -3926,9 +3918,9 @@ const Nl = ["id"], Wl = ["for"], El = ["id", "name", "type", "placeholder", "dis
3926
3918
  NbDatePicker: Ol
3927
3919
  }, ql = {
3928
3920
  install(e) {
3929
- for (const m in Pa)
3930
- if (Object.prototype.hasOwnProperty.call(Pa, m)) {
3931
- const h = Pa[m];
3921
+ for (const y in Wa)
3922
+ if (Object.prototype.hasOwnProperty.call(Wa, y)) {
3923
+ const h = Wa[y];
3932
3924
  e.component(h.name, h);
3933
3925
  }
3934
3926
  }