@stencitecnologia/front-kit 0.1.31 → 0.1.33
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/index.cjs +2 -2
- package/dist/index.es.js +156 -155
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as M, openBlock as R, createElementBlock as P, normalizeClass as So, toDisplayString as oo, createCommentVNode as E, createBlock as H, unref as T, mergeProps as Q, renderSlot as G, createElementVNode as io, createVNode as mo, ref as po, onMounted as er, onBeforeUnmount as tr, normalizeStyle as Io, watch as sr, withCtx as Z, createTextVNode as Po, createSlots as Ho, Fragment as ur, Teleport as fr, withModifiers as gr } from "vue";
|
|
2
2
|
import mr from "primevue/autocomplete";
|
|
3
3
|
import { FontAwesomeIcon as pr } from "@fortawesome/vue-fontawesome";
|
|
4
4
|
import br from "primevue/chart";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import ar from "primevue/inputtext";
|
|
6
|
+
import nr from "primevue/datepicker";
|
|
7
7
|
import hr from "primevue/inputgroup";
|
|
8
8
|
import vr from "primevue/inputgroupaddon";
|
|
9
9
|
import kr from "primevue/popover";
|
|
10
10
|
import yr from "primevue/inputmask";
|
|
11
|
-
import
|
|
11
|
+
import ir from "primevue/dialog";
|
|
12
12
|
import $r from "primevue/drawer";
|
|
13
13
|
import Cr from "primevue/multiselect";
|
|
14
14
|
import xr from "primevue/panel";
|
|
@@ -32,7 +32,7 @@ const Yr = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(o) {
|
|
35
|
-
const r = o, e =
|
|
35
|
+
const r = o, e = M(() => ({
|
|
36
36
|
"ui-alert-success": r.variant === "success",
|
|
37
37
|
"ui-alert-warning": r.variant === "warning",
|
|
38
38
|
"ui-alert-error": r.variant === "error",
|
|
@@ -75,7 +75,7 @@ const Yr = {
|
|
|
75
75
|
"clear"
|
|
76
76
|
],
|
|
77
77
|
setup(o, { emit: r }) {
|
|
78
|
-
const e = o, t = r, a =
|
|
78
|
+
const e = o, t = r, a = M({
|
|
79
79
|
get: () => e.modelValue,
|
|
80
80
|
set: (l) => t("update:modelValue", l)
|
|
81
81
|
}), c = (l) => t("complete", l), i = (l) => t("item-select", l), m = () => t("clear");
|
|
@@ -149,7 +149,7 @@ const Yr = {
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
setup(o) {
|
|
152
|
-
const r = o, e =
|
|
152
|
+
const r = o, e = M(() => [
|
|
153
153
|
"ui-btn",
|
|
154
154
|
{
|
|
155
155
|
"ui-btn-primary": r.variant === "primary",
|
|
@@ -161,7 +161,7 @@ const Yr = {
|
|
|
161
161
|
"ui-btn-danger": r.variant === "danger",
|
|
162
162
|
"ui-btn-sm": r.size === "sm"
|
|
163
163
|
}
|
|
164
|
-
]), t =
|
|
164
|
+
]), t = M(() => r.disabled || r.loading);
|
|
165
165
|
return (a, c) => (R(), P("button", Q(a.$attrs, {
|
|
166
166
|
disabled: t.value,
|
|
167
167
|
class: e.value,
|
|
@@ -216,7 +216,7 @@ const Yr = {
|
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
setup(o) {
|
|
219
|
-
const r = o, e =
|
|
219
|
+
const r = o, e = M(() => !!(r.title || r.subtitle)), t = M(() => [
|
|
220
220
|
"ui-card",
|
|
221
221
|
r.className,
|
|
222
222
|
{ "ui-card-has-footer": r.hasFooter }
|
|
@@ -273,15 +273,15 @@ const Yr = {
|
|
|
273
273
|
{ borderColor: "#a855f7", backgroundColor: "rgba(168, 85, 247, 0.60)" }
|
|
274
274
|
]), e = o, t = po(null), a = po(!1);
|
|
275
275
|
function c(B, k) {
|
|
276
|
-
const
|
|
276
|
+
const z = { ...B };
|
|
277
277
|
for (const y of Object.keys(k))
|
|
278
|
-
k[y] !== null && typeof k[y] == "object" && !Array.isArray(k[y]) && typeof B[y] == "object" ?
|
|
279
|
-
return
|
|
278
|
+
k[y] !== null && typeof k[y] == "object" && !Array.isArray(k[y]) && typeof B[y] == "object" ? z[y] = c(B[y] ?? {}, k[y]) : z[y] = k[y];
|
|
279
|
+
return z;
|
|
280
280
|
}
|
|
281
|
-
const i =
|
|
281
|
+
const i = M(() => !["pie", "doughnut"].includes(e.type)), m = M(() => e.height ? e.height : i.value ? "300px" : "400px"), l = M(() => {
|
|
282
282
|
if (!e.data?.datasets) return e.data;
|
|
283
|
-
const B = e.data.datasets.map((k,
|
|
284
|
-
const y = r[
|
|
283
|
+
const B = e.data.datasets.map((k, z) => {
|
|
284
|
+
const y = r[z % r.length];
|
|
285
285
|
return ["pie", "doughnut"].includes(e.type) ? {
|
|
286
286
|
...k,
|
|
287
287
|
backgroundColor: r.map((f) => f.backgroundColor),
|
|
@@ -296,7 +296,7 @@ const Yr = {
|
|
|
296
296
|
};
|
|
297
297
|
});
|
|
298
298
|
return { ...e.data, datasets: B };
|
|
299
|
-
}), b =
|
|
299
|
+
}), b = M(() => ({
|
|
300
300
|
responsive: !0,
|
|
301
301
|
maintainAspectRatio: !1,
|
|
302
302
|
plugins: {
|
|
@@ -328,7 +328,7 @@ const Yr = {
|
|
|
328
328
|
border: { display: !1 }
|
|
329
329
|
}
|
|
330
330
|
} : void 0
|
|
331
|
-
})), $ =
|
|
331
|
+
})), $ = M(() => c(b.value, e.options));
|
|
332
332
|
return er(() => {
|
|
333
333
|
a.value = !0;
|
|
334
334
|
}), tr(() => {
|
|
@@ -376,12 +376,12 @@ const Yr = {
|
|
|
376
376
|
if (!l) return null;
|
|
377
377
|
const b = l.replace(/\D/g, "");
|
|
378
378
|
return b ? Number(b) / 100 : null;
|
|
379
|
-
}, i =
|
|
379
|
+
}, i = M(() => a(e.modelValue)), m = (l) => {
|
|
380
380
|
const b = c(l.target.value);
|
|
381
381
|
t("update:modelValue", b), l.target.value = a(b);
|
|
382
382
|
};
|
|
383
383
|
return (l, b) => (R(), P("div", Ar, [
|
|
384
|
-
mo(T(
|
|
384
|
+
mo(T(ar), Q({
|
|
385
385
|
value: i.value,
|
|
386
386
|
placeholder: o.placeholder,
|
|
387
387
|
disabled: o.disabled,
|
|
@@ -427,7 +427,7 @@ const Yr = {
|
|
|
427
427
|
},
|
|
428
428
|
emits: ["update:modelValue"],
|
|
429
429
|
setup(o, { emit: r }) {
|
|
430
|
-
const e = o, t = r, a =
|
|
430
|
+
const e = o, t = r, a = M({
|
|
431
431
|
get: () => e.modelValue,
|
|
432
432
|
set: (c) => t("update:modelValue", c)
|
|
433
433
|
});
|
|
@@ -495,7 +495,7 @@ const Yr = {
|
|
|
495
495
|
},
|
|
496
496
|
emits: ["update:modelValue", "update:textValue", "blur"],
|
|
497
497
|
setup(o, { expose: r, emit: e }) {
|
|
498
|
-
const t = o, a = e, c = po(null), i = po(""), m = po(null), l = po(0), b =
|
|
498
|
+
const t = o, a = e, c = po(null), i = po(""), m = po(null), l = po(0), b = M(() => t.selectionMode === "range"), $ = (u) => String(u).padStart(2, "0"), B = (u) => {
|
|
499
499
|
if (!(u instanceof Date) || Number.isNaN(u.getTime())) return "";
|
|
500
500
|
const s = $(u.getDate()), n = $(u.getMonth() + 1), d = String(u.getFullYear());
|
|
501
501
|
return `${s}/${n}/${d}`;
|
|
@@ -507,7 +507,7 @@ const Yr = {
|
|
|
507
507
|
if (d < 1 || d > 12 || n < 1 || n > 31 || h < 1e3 || h > 9999) return null;
|
|
508
508
|
const g = new Date(h, d - 1, n);
|
|
509
509
|
return g.getFullYear() !== h || g.getMonth() !== d - 1 || g.getDate() !== n ? null : g;
|
|
510
|
-
},
|
|
510
|
+
}, z = (u) => !(!(u instanceof Date) || Number.isNaN(u.getTime()) || t.minDate && u < t.minDate || t.maxDate && u > t.maxDate), y = (u) => {
|
|
511
511
|
const [s, n] = u || [], d = s ? B(s) : "", h = n ? B(n) : "";
|
|
512
512
|
return !d && !h ? "" : d && !h ? `${d} - ` : `${d} - ${h}`;
|
|
513
513
|
}, p = (u) => {
|
|
@@ -561,7 +561,7 @@ const Yr = {
|
|
|
561
561
|
c.value && c.value.toggle(u);
|
|
562
562
|
}, O = () => {
|
|
563
563
|
const u = /* @__PURE__ */ new Date(), s = new Date(u.getFullYear(), u.getMonth(), u.getDate());
|
|
564
|
-
if (
|
|
564
|
+
if (z(s)) {
|
|
565
565
|
if (b.value) {
|
|
566
566
|
const n = [s, s];
|
|
567
567
|
x(n), a("update:modelValue", n);
|
|
@@ -569,13 +569,13 @@ const Yr = {
|
|
|
569
569
|
}
|
|
570
570
|
C(s), a("update:modelValue", s);
|
|
571
571
|
}
|
|
572
|
-
}, S =
|
|
572
|
+
}, S = M({
|
|
573
573
|
get: () => i.value,
|
|
574
574
|
set: (u) => W(u)
|
|
575
|
-
}), U =
|
|
575
|
+
}), U = M(
|
|
576
576
|
() => b.value && !!i.value && !f(i.value)
|
|
577
577
|
);
|
|
578
|
-
return r({ hasPartialInput: U }),
|
|
578
|
+
return r({ hasPartialInput: U }), sr(
|
|
579
579
|
() => t.modelValue,
|
|
580
580
|
(u) => {
|
|
581
581
|
if (u === null) {
|
|
@@ -652,7 +652,7 @@ const Yr = {
|
|
|
652
652
|
ref: c
|
|
653
653
|
}, {
|
|
654
654
|
default: Z(() => [
|
|
655
|
-
mo(T(
|
|
655
|
+
mo(T(nr), {
|
|
656
656
|
modelValue: m.value,
|
|
657
657
|
"onUpdate:modelValue": [
|
|
658
658
|
s[1] || (s[1] = (n) => m.value = n),
|
|
@@ -688,11 +688,11 @@ const Yr = {
|
|
|
688
688
|
},
|
|
689
689
|
emits: ["update:modelValue"],
|
|
690
690
|
setup(o, { emit: r }) {
|
|
691
|
-
const e = o, t = r, a =
|
|
691
|
+
const e = o, t = r, a = M({
|
|
692
692
|
get: () => e.modelValue,
|
|
693
693
|
set: (c) => t("update:modelValue", c)
|
|
694
694
|
});
|
|
695
|
-
return (c, i) => (R(), H(T(
|
|
695
|
+
return (c, i) => (R(), H(T(nr), Q({
|
|
696
696
|
modelValue: a.value,
|
|
697
697
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
|
|
698
698
|
disabled: o.disabled,
|
|
@@ -752,7 +752,7 @@ const Yr = {
|
|
|
752
752
|
},
|
|
753
753
|
emits: ["update:modelValue", "hide", "show"],
|
|
754
754
|
setup(o, { emit: r }) {
|
|
755
|
-
const e = o, t = r, a =
|
|
755
|
+
const e = o, t = r, a = M({
|
|
756
756
|
get: () => e.modelValue,
|
|
757
757
|
set: ($) => t("update:modelValue", $)
|
|
758
758
|
}), c = {
|
|
@@ -760,10 +760,10 @@ const Yr = {
|
|
|
760
760
|
md: "32rem",
|
|
761
761
|
lg: "48rem",
|
|
762
762
|
full: "64rem"
|
|
763
|
-
}, i =
|
|
763
|
+
}, i = M(() => ({
|
|
764
764
|
width: `min(92vw, ${c[e.size]})`
|
|
765
|
-
})), m =
|
|
766
|
-
return ($, B) => (R(), H(T(
|
|
765
|
+
})), m = M(() => !!(e.icon || e.content)), l = () => t("hide"), b = () => t("show");
|
|
766
|
+
return ($, B) => (R(), H(T(ir), {
|
|
767
767
|
visible: a.value,
|
|
768
768
|
"onUpdate:visible": B[0] || (B[0] = (k) => a.value = k),
|
|
769
769
|
modal: "",
|
|
@@ -833,7 +833,7 @@ const Yr = {
|
|
|
833
833
|
},
|
|
834
834
|
emits: ["update:visible"],
|
|
835
835
|
setup(o, { emit: r }) {
|
|
836
|
-
const e = o, t = r, a =
|
|
836
|
+
const e = o, t = r, a = M(() => e.visible), c = () => t("update:visible", !1), i = (l) => {
|
|
837
837
|
l.target === l.currentTarget && c();
|
|
838
838
|
}, m = (l) => {
|
|
839
839
|
t("update:visible", l);
|
|
@@ -890,7 +890,7 @@ const Yr = {
|
|
|
890
890
|
}
|
|
891
891
|
},
|
|
892
892
|
setup(o) {
|
|
893
|
-
const r = o, e =
|
|
893
|
+
const r = o, e = M(() => !!r.image), t = M(() => !!r.description);
|
|
894
894
|
return (a, c) => (R(), P("div", _r, [
|
|
895
895
|
io("div", Xr, [
|
|
896
896
|
e.value ? (R(), P("img", {
|
|
@@ -941,7 +941,7 @@ const Yr = {
|
|
|
941
941
|
}
|
|
942
942
|
},
|
|
943
943
|
setup(o) {
|
|
944
|
-
const r = o, e =
|
|
944
|
+
const r = o, e = M(() => !!r.label), t = M(() => !!r.error), a = M(() => !!r.help);
|
|
945
945
|
return (c, i) => (R(), P("div", re, [
|
|
946
946
|
e.value ? (R(), P("label", {
|
|
947
947
|
key: 0,
|
|
@@ -976,11 +976,11 @@ const Yr = {
|
|
|
976
976
|
},
|
|
977
977
|
emits: ["update:modelValue"],
|
|
978
978
|
setup(o, { emit: r }) {
|
|
979
|
-
const e = o, t = r, a =
|
|
979
|
+
const e = o, t = r, a = M({
|
|
980
980
|
get: () => e.modelValue,
|
|
981
981
|
set: (c) => t("update:modelValue", c)
|
|
982
982
|
});
|
|
983
|
-
return (c, i) => (R(), H(T(
|
|
983
|
+
return (c, i) => (R(), H(T(ar), Q({
|
|
984
984
|
modelValue: a.value,
|
|
985
985
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
|
|
986
986
|
disabled: o.disabled,
|
|
@@ -1022,21 +1022,18 @@ const Yr = {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
emits: ["update:modelValue", "hide", "show"],
|
|
1024
1024
|
setup(o, { emit: r }) {
|
|
1025
|
-
const e = o, t = r, a =
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
})
|
|
1029
|
-
const c = {
|
|
1025
|
+
const e = o, t = r, a = M({
|
|
1026
|
+
get: () => e.modelValue,
|
|
1027
|
+
set: (b) => t("update:modelValue", b)
|
|
1028
|
+
}), c = {
|
|
1030
1029
|
sm: "24rem",
|
|
1031
1030
|
md: "38rem",
|
|
1032
1031
|
lg: "56rem",
|
|
1033
1032
|
full: "72rem"
|
|
1034
|
-
}, i =
|
|
1033
|
+
}, i = M(() => ({
|
|
1035
1034
|
width: `min(92vw, ${c[e.size]})`
|
|
1036
|
-
})), m = () =>
|
|
1037
|
-
|
|
1038
|
-
}, l = () => t("show");
|
|
1039
|
-
return (b, $) => (R(), H(T(dr), {
|
|
1035
|
+
})), m = () => t("hide"), l = () => t("show");
|
|
1036
|
+
return (b, $) => (R(), H(T(ir), {
|
|
1040
1037
|
visible: a.value,
|
|
1041
1038
|
"onUpdate:visible": $[0] || ($[0] = (B) => a.value = B),
|
|
1042
1039
|
modal: "",
|
|
@@ -1112,7 +1109,7 @@ const Yr = {
|
|
|
1112
1109
|
},
|
|
1113
1110
|
emits: ["update:modelValue"],
|
|
1114
1111
|
setup(o, { emit: r }) {
|
|
1115
|
-
const e = o, t = r, a =
|
|
1112
|
+
const e = o, t = r, a = M({
|
|
1116
1113
|
get: () => e.modelValue,
|
|
1117
1114
|
set: (c) => t("update:modelValue", c)
|
|
1118
1115
|
});
|
|
@@ -1152,7 +1149,7 @@ const Yr = {
|
|
|
1152
1149
|
}
|
|
1153
1150
|
},
|
|
1154
1151
|
setup(o) {
|
|
1155
|
-
const r = o, e =
|
|
1152
|
+
const r = o, e = M(() => ({
|
|
1156
1153
|
"ui-panel": !0,
|
|
1157
1154
|
[`ui-panel--${r.variant}`]: !!r.variant
|
|
1158
1155
|
}));
|
|
@@ -1213,7 +1210,7 @@ const Yr = {
|
|
|
1213
1210
|
},
|
|
1214
1211
|
emits: ["update:modelValue"],
|
|
1215
1212
|
setup(o, { emit: r }) {
|
|
1216
|
-
const e = o, t = r, a =
|
|
1213
|
+
const e = o, t = r, a = M({
|
|
1217
1214
|
get: () => e.modelValue,
|
|
1218
1215
|
set: (c) => t("update:modelValue", c)
|
|
1219
1216
|
});
|
|
@@ -1248,7 +1245,7 @@ const Yr = {
|
|
|
1248
1245
|
}
|
|
1249
1246
|
},
|
|
1250
1247
|
setup(o) {
|
|
1251
|
-
const r = o, e =
|
|
1248
|
+
const r = o, e = M(() => r.disabled || r.loading), t = M(() => [
|
|
1252
1249
|
"ui-btn",
|
|
1253
1250
|
{
|
|
1254
1251
|
"ui-btn-primary": r.variant === "primary",
|
|
@@ -1282,7 +1279,7 @@ const Yr = {
|
|
|
1282
1279
|
}
|
|
1283
1280
|
},
|
|
1284
1281
|
setup(o) {
|
|
1285
|
-
const r = o, e =
|
|
1282
|
+
const r = o, e = M(() => !!r.label);
|
|
1286
1283
|
return (t, a) => (R(), P("div", de, [
|
|
1287
1284
|
e.value ? (R(), P("span", le, oo(o.label), 1)) : E("", !0),
|
|
1288
1285
|
a[0] || (a[0] = io("div", { class: "ui-section-divider__line" }, null, -1))
|
|
@@ -1330,10 +1327,10 @@ const Yr = {
|
|
|
1330
1327
|
},
|
|
1331
1328
|
emits: ["update:modelValue"],
|
|
1332
1329
|
setup(o, { emit: r }) {
|
|
1333
|
-
const e = o, t = r, a =
|
|
1330
|
+
const e = o, t = r, a = M({
|
|
1334
1331
|
get: () => e.modelValue,
|
|
1335
1332
|
set: (i) => t("update:modelValue", i)
|
|
1336
|
-
}), c =
|
|
1333
|
+
}), c = M(() => e.optionEmpty ? [
|
|
1337
1334
|
e.optionEmpty,
|
|
1338
1335
|
...e.options
|
|
1339
1336
|
] : e.options);
|
|
@@ -1374,12 +1371,12 @@ const Yr = {
|
|
|
1374
1371
|
},
|
|
1375
1372
|
emits: ["update:modelValue"],
|
|
1376
1373
|
setup(o, { emit: r }) {
|
|
1377
|
-
const e = o, t = r, a =
|
|
1374
|
+
const e = o, t = r, a = M({
|
|
1378
1375
|
get: () => e.modelValue,
|
|
1379
1376
|
set: (i) => {
|
|
1380
1377
|
e.disabled || e.loading || t("update:modelValue", i);
|
|
1381
1378
|
}
|
|
1382
|
-
}), c =
|
|
1379
|
+
}), c = M(() => e.disabled || e.loading);
|
|
1383
1380
|
return (i, m) => (R(), H(T(Dr), {
|
|
1384
1381
|
modelValue: a.value,
|
|
1385
1382
|
"onUpdate:modelValue": m[0] || (m[0] = (l) => a.value = l),
|
|
@@ -1418,7 +1415,7 @@ const Yr = {
|
|
|
1418
1415
|
},
|
|
1419
1416
|
emits: ["update:modelValue"],
|
|
1420
1417
|
setup(o, { emit: r }) {
|
|
1421
|
-
const e = o, t = r, a =
|
|
1418
|
+
const e = o, t = r, a = M({
|
|
1422
1419
|
get: () => e.modelValue,
|
|
1423
1420
|
set: (c) => t("update:modelValue", c)
|
|
1424
1421
|
});
|
|
@@ -1601,12 +1598,12 @@ function vo(o) {
|
|
|
1601
1598
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
1602
1599
|
}
|
|
1603
1600
|
var $o = { exports: {} }, Ou = $o.exports, _o;
|
|
1604
|
-
function
|
|
1601
|
+
function dr() {
|
|
1605
1602
|
return _o || (_o = 1, (function(o, r) {
|
|
1606
1603
|
(function(e, t) {
|
|
1607
1604
|
o.exports = t();
|
|
1608
1605
|
})(Ou, (function() {
|
|
1609
|
-
var e = 1e3, t = 6e4, a = 36e5, c = "millisecond", i = "second", m = "minute", l = "hour", b = "day", $ = "week", B = "month", k = "quarter",
|
|
1606
|
+
var e = 1e3, t = 6e4, a = 36e5, c = "millisecond", i = "second", m = "minute", l = "hour", b = "day", $ = "week", B = "month", k = "quarter", z = "year", y = "date", p = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
|
|
1610
1607
|
var n = ["th", "st", "nd", "rd"], d = s % 100;
|
|
1611
1608
|
return "[" + s + (n[(d - 20) % 10] || n[d] || n[0]) + "]";
|
|
1612
1609
|
} }, x = function(s, n, d) {
|
|
@@ -1622,7 +1619,7 @@ function lr() {
|
|
|
1622
1619
|
}, a: function(s) {
|
|
1623
1620
|
return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
|
|
1624
1621
|
}, p: function(s) {
|
|
1625
|
-
return { M: B, y:
|
|
1622
|
+
return { M: B, y: z, w: $, d: b, D: y, h: l, m, s: i, ms: c, Q: k }[s] || String(s || "").toLowerCase().replace(/s$/, "");
|
|
1626
1623
|
}, u: function(s) {
|
|
1627
1624
|
return s === void 0;
|
|
1628
1625
|
} }, V = "en", W = {};
|
|
@@ -1638,8 +1635,8 @@ function lr() {
|
|
|
1638
1635
|
var D = n.split("-");
|
|
1639
1636
|
if (!g && D.length > 1) return s(D[0]);
|
|
1640
1637
|
} else {
|
|
1641
|
-
var
|
|
1642
|
-
W[
|
|
1638
|
+
var Y = n.name;
|
|
1639
|
+
W[Y] = n, g = Y;
|
|
1643
1640
|
}
|
|
1644
1641
|
return !h && g && (V = g), g || !h && V;
|
|
1645
1642
|
}, O = function(s, n) {
|
|
@@ -1664,8 +1661,8 @@ function lr() {
|
|
|
1664
1661
|
if (typeof g == "string" && !/Z$/i.test(g)) {
|
|
1665
1662
|
var D = g.match(f);
|
|
1666
1663
|
if (D) {
|
|
1667
|
-
var
|
|
1668
|
-
return w ? new Date(Date.UTC(D[1],
|
|
1664
|
+
var Y = D[2] - 1 || 0, I = (D[7] || "0").substring(0, 3);
|
|
1665
|
+
return w ? new Date(Date.UTC(D[1], Y, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, I)) : new Date(D[1], Y, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, I);
|
|
1669
1666
|
}
|
|
1670
1667
|
}
|
|
1671
1668
|
return new Date(g);
|
|
@@ -1691,20 +1688,20 @@ function lr() {
|
|
|
1691
1688
|
}, n.valueOf = function() {
|
|
1692
1689
|
return this.$d.getTime();
|
|
1693
1690
|
}, n.startOf = function(d, h) {
|
|
1694
|
-
var g = this, w = !!S.u(h) || h, D = S.p(d),
|
|
1691
|
+
var g = this, w = !!S.u(h) || h, D = S.p(d), Y = function(ro, X) {
|
|
1695
1692
|
var K = S.w(g.$u ? Date.UTC(g.$y, X, ro) : new Date(g.$y, X, ro), g);
|
|
1696
1693
|
return w ? K : K.endOf(b);
|
|
1697
1694
|
}, I = function(ro, X) {
|
|
1698
1695
|
return S.w(g.toDate()[ro].apply(g.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), g);
|
|
1699
1696
|
}, N = this.$W, _ = this.$M, J = this.$D, lo = "set" + (this.$u ? "UTC" : "");
|
|
1700
1697
|
switch (D) {
|
|
1701
|
-
case
|
|
1702
|
-
return w ?
|
|
1698
|
+
case z:
|
|
1699
|
+
return w ? Y(1, 0) : Y(31, 11);
|
|
1703
1700
|
case B:
|
|
1704
|
-
return w ?
|
|
1701
|
+
return w ? Y(1, _) : Y(0, _ + 1);
|
|
1705
1702
|
case $:
|
|
1706
1703
|
var ao = this.$locale().weekStart || 0, go = (N < ao ? N + 7 : N) - ao;
|
|
1707
|
-
return
|
|
1704
|
+
return Y(w ? J - go : J + (6 - go), _);
|
|
1708
1705
|
case b:
|
|
1709
1706
|
case y:
|
|
1710
1707
|
return I(lo + "Hours", 0);
|
|
@@ -1720,11 +1717,11 @@ function lr() {
|
|
|
1720
1717
|
}, n.endOf = function(d) {
|
|
1721
1718
|
return this.startOf(d, !1);
|
|
1722
1719
|
}, n.$set = function(d, h) {
|
|
1723
|
-
var g, w = S.p(d), D = "set" + (this.$u ? "UTC" : ""),
|
|
1724
|
-
if (w === B || w ===
|
|
1720
|
+
var g, w = S.p(d), D = "set" + (this.$u ? "UTC" : ""), Y = (g = {}, g[b] = D + "Date", g[y] = D + "Date", g[B] = D + "Month", g[z] = D + "FullYear", g[l] = D + "Hours", g[m] = D + "Minutes", g[i] = D + "Seconds", g[c] = D + "Milliseconds", g)[w], I = w === b ? this.$D + (h - this.$W) : h;
|
|
1721
|
+
if (w === B || w === z) {
|
|
1725
1722
|
var N = this.clone().set(y, 1);
|
|
1726
|
-
N.$d[
|
|
1727
|
-
} else
|
|
1723
|
+
N.$d[Y](I), N.init(), this.$d = N.set(y, Math.min(this.$D, N.daysInMonth())).$d;
|
|
1724
|
+
} else Y && this.$d[Y](I);
|
|
1728
1725
|
return this.init(), this;
|
|
1729
1726
|
}, n.set = function(d, h) {
|
|
1730
1727
|
return this.clone().$set(d, h);
|
|
@@ -1733,14 +1730,14 @@ function lr() {
|
|
|
1733
1730
|
}, n.add = function(d, h) {
|
|
1734
1731
|
var g, w = this;
|
|
1735
1732
|
d = Number(d);
|
|
1736
|
-
var D = S.p(h),
|
|
1733
|
+
var D = S.p(h), Y = function(_) {
|
|
1737
1734
|
var J = O(w);
|
|
1738
1735
|
return S.w(J.date(J.date() + Math.round(_ * d)), w);
|
|
1739
1736
|
};
|
|
1740
1737
|
if (D === B) return this.set(B, this.$M + d);
|
|
1741
|
-
if (D ===
|
|
1742
|
-
if (D === b) return
|
|
1743
|
-
if (D === $) return
|
|
1738
|
+
if (D === z) return this.set(z, this.$y + d);
|
|
1739
|
+
if (D === b) return Y(1);
|
|
1740
|
+
if (D === $) return Y(7);
|
|
1744
1741
|
var I = (g = {}, g[m] = t, g[l] = a, g[i] = e, g)[D] || 1, N = this.$d.getTime() + d * I;
|
|
1745
1742
|
return S.w(N, this);
|
|
1746
1743
|
}, n.subtract = function(d, h) {
|
|
@@ -1748,10 +1745,10 @@ function lr() {
|
|
|
1748
1745
|
}, n.format = function(d) {
|
|
1749
1746
|
var h = this, g = this.$locale();
|
|
1750
1747
|
if (!this.isValid()) return g.invalidDate || p;
|
|
1751
|
-
var w = d || "YYYY-MM-DDTHH:mm:ssZ", D = S.z(this),
|
|
1748
|
+
var w = d || "YYYY-MM-DDTHH:mm:ssZ", D = S.z(this), Y = this.$H, I = this.$m, N = this.$M, _ = g.weekdays, J = g.months, lo = g.meridiem, ao = function(X, K, no, co) {
|
|
1752
1749
|
return X && (X[K] || X(h, w)) || no[K].slice(0, co);
|
|
1753
1750
|
}, go = function(X) {
|
|
1754
|
-
return S.s(
|
|
1751
|
+
return S.s(Y % 12 || 12, X, "0");
|
|
1755
1752
|
}, ro = lo || function(X, K, no) {
|
|
1756
1753
|
var co = X < 12 ? "AM" : "PM";
|
|
1757
1754
|
return no ? co.toLowerCase() : co;
|
|
@@ -1784,17 +1781,17 @@ function lr() {
|
|
|
1784
1781
|
case "dddd":
|
|
1785
1782
|
return _[h.$W];
|
|
1786
1783
|
case "H":
|
|
1787
|
-
return String(
|
|
1784
|
+
return String(Y);
|
|
1788
1785
|
case "HH":
|
|
1789
|
-
return S.s(
|
|
1786
|
+
return S.s(Y, 2, "0");
|
|
1790
1787
|
case "h":
|
|
1791
1788
|
return go(1);
|
|
1792
1789
|
case "hh":
|
|
1793
1790
|
return go(2);
|
|
1794
1791
|
case "a":
|
|
1795
|
-
return ro(
|
|
1792
|
+
return ro(Y, I, !0);
|
|
1796
1793
|
case "A":
|
|
1797
|
-
return ro(
|
|
1794
|
+
return ro(Y, I, !1);
|
|
1798
1795
|
case "m":
|
|
1799
1796
|
return String(I);
|
|
1800
1797
|
case "mm":
|
|
@@ -1814,11 +1811,11 @@ function lr() {
|
|
|
1814
1811
|
}, n.utcOffset = function() {
|
|
1815
1812
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1816
1813
|
}, n.diff = function(d, h, g) {
|
|
1817
|
-
var w, D = this,
|
|
1814
|
+
var w, D = this, Y = S.p(h), I = O(d), N = (I.utcOffset() - this.utcOffset()) * t, _ = this - I, J = function() {
|
|
1818
1815
|
return S.m(D, I);
|
|
1819
1816
|
};
|
|
1820
|
-
switch (
|
|
1821
|
-
case
|
|
1817
|
+
switch (Y) {
|
|
1818
|
+
case z:
|
|
1822
1819
|
w = J() / 12;
|
|
1823
1820
|
break;
|
|
1824
1821
|
case B:
|
|
@@ -1866,7 +1863,7 @@ function lr() {
|
|
|
1866
1863
|
return this.$d.toUTCString();
|
|
1867
1864
|
}, s;
|
|
1868
1865
|
})(), u = U.prototype;
|
|
1869
|
-
return O.prototype = u, [["$ms", c], ["$s", i], ["$m", m], ["$H", l], ["$W", b], ["$M", B], ["$y",
|
|
1866
|
+
return O.prototype = u, [["$ms", c], ["$s", i], ["$m", m], ["$H", l], ["$W", b], ["$M", B], ["$y", z], ["$D", y]].forEach((function(s) {
|
|
1870
1867
|
u[s[1]] = function(n) {
|
|
1871
1868
|
return this.$g(n, s[0], s[1]);
|
|
1872
1869
|
};
|
|
@@ -1878,13 +1875,13 @@ function lr() {
|
|
|
1878
1875
|
}));
|
|
1879
1876
|
})($o)), $o.exports;
|
|
1880
1877
|
}
|
|
1881
|
-
var Lu =
|
|
1878
|
+
var Lu = dr();
|
|
1882
1879
|
const eo = /* @__PURE__ */ vo(Lu);
|
|
1883
1880
|
var Co = { exports: {} }, Tu = Co.exports, Xo;
|
|
1884
1881
|
function Wu() {
|
|
1885
1882
|
return Xo || (Xo = 1, (function(o, r) {
|
|
1886
1883
|
(function(e, t) {
|
|
1887
|
-
o.exports = t(
|
|
1884
|
+
o.exports = t(dr());
|
|
1888
1885
|
})(Tu, (function(e) {
|
|
1889
1886
|
function t(i) {
|
|
1890
1887
|
return i && typeof i == "object" && "default" in i ? i : { default: i };
|
|
@@ -1918,7 +1915,7 @@ function ju() {
|
|
|
1918
1915
|
}], k = function(f) {
|
|
1919
1916
|
var v = l[f];
|
|
1920
1917
|
return v && (v.indexOf ? v : v.s.concat(v.f));
|
|
1921
|
-
},
|
|
1918
|
+
}, z = function(f, v) {
|
|
1922
1919
|
var C, x = l.meridiem;
|
|
1923
1920
|
if (x) {
|
|
1924
1921
|
for (var L = 1; L <= 24; L += 1) if (f.indexOf(x(L, 0, v)) > -1) {
|
|
@@ -1928,9 +1925,9 @@ function ju() {
|
|
|
1928
1925
|
} else C = f === (v ? "pm" : "PM");
|
|
1929
1926
|
return C;
|
|
1930
1927
|
}, y = { A: [m, function(f) {
|
|
1931
|
-
this.afternoon =
|
|
1928
|
+
this.afternoon = z(f, !1);
|
|
1932
1929
|
}], a: [m, function(f) {
|
|
1933
|
-
this.afternoon =
|
|
1930
|
+
this.afternoon = z(f, !0);
|
|
1934
1931
|
}], Q: [a, function(f) {
|
|
1935
1932
|
this.month = 3 * (f - 1) + 1;
|
|
1936
1933
|
}], S: [a, function(f) {
|
|
@@ -1979,8 +1976,8 @@ function ju() {
|
|
|
1979
1976
|
return (function(w) {
|
|
1980
1977
|
var D = w.afternoon;
|
|
1981
1978
|
if (D !== void 0) {
|
|
1982
|
-
var
|
|
1983
|
-
D ?
|
|
1979
|
+
var Y = w.hours;
|
|
1980
|
+
D ? Y < 12 && (w.hours += 12) : Y === 12 && (w.hours = 0), delete w.afternoon;
|
|
1984
1981
|
}
|
|
1985
1982
|
})(S), S;
|
|
1986
1983
|
};
|
|
@@ -1997,7 +1994,7 @@ function ju() {
|
|
|
1997
1994
|
S && (u = A[2]), l = this.$locale(), !O && u && (l = C.Ls[u]), this.$d = (function(h, g, w, D) {
|
|
1998
1995
|
try {
|
|
1999
1996
|
if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * h);
|
|
2000
|
-
var
|
|
1997
|
+
var Y = p(g)(h), I = Y.year, N = Y.month, _ = Y.day, J = Y.hours, lo = Y.minutes, ao = Y.seconds, go = Y.milliseconds, ro = Y.zone, X = Y.week, K = /* @__PURE__ */ new Date(), no = _ || (I || N ? 1 : K.getDate()), co = I || K.getFullYear(), ko = 0;
|
|
2001
1998
|
I && !N || (ko = N > 0 ? N - 1 : K.getMonth());
|
|
2002
1999
|
var yo, Oo = J || 0, Lo = lo || 0, To = ao || 0, Wo = go || 0;
|
|
2003
2000
|
return ro ? new Date(Date.UTC(co, ko, no, Oo, Lo, To, Wo + 60 * ro.offset * 1e3)) : w ? new Date(Date.UTC(co, ko, no, Oo, Lo, To, Wo)) : (yo = new Date(co, ko, no, Oo, Lo, To, Wo), X && (yo = D(yo).week(X).toDate()), yo);
|
|
@@ -2034,7 +2031,7 @@ function Nu() {
|
|
|
2034
2031
|
c.en.formats = e, i.format = function(l) {
|
|
2035
2032
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
2036
2033
|
var b = this.$locale().formats, $ = (function(B, k) {
|
|
2037
|
-
return B.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(
|
|
2034
|
+
return B.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(z, y, p) {
|
|
2038
2035
|
var f = p && p.toUpperCase();
|
|
2039
2036
|
return y || k[p] || e[p] || k[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(v, C, x) {
|
|
2040
2037
|
return C || x.slice(1);
|
|
@@ -2110,9 +2107,9 @@ function Uu() {
|
|
|
2110
2107
|
}, l.toString = function() {
|
|
2111
2108
|
return this.toDate().toUTCString();
|
|
2112
2109
|
};
|
|
2113
|
-
var
|
|
2110
|
+
var z = l.toDate;
|
|
2114
2111
|
l.toDate = function(p) {
|
|
2115
|
-
return p === "s" && this.$offset ? m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
2112
|
+
return p === "s" && this.$offset ? m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : z.call(this);
|
|
2116
2113
|
};
|
|
2117
2114
|
var y = l.diff;
|
|
2118
2115
|
l.diff = function(p, f, v) {
|
|
@@ -2134,44 +2131,44 @@ function Gu() {
|
|
|
2134
2131
|
})(Zu, (function() {
|
|
2135
2132
|
var e = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, t = {};
|
|
2136
2133
|
return function(a, c, i) {
|
|
2137
|
-
var m, l = function(k,
|
|
2134
|
+
var m, l = function(k, z, y) {
|
|
2138
2135
|
y === void 0 && (y = {});
|
|
2139
2136
|
var p = new Date(k), f = (function(v, C) {
|
|
2140
2137
|
C === void 0 && (C = {});
|
|
2141
2138
|
var x = C.timeZoneName || "short", L = v + "|" + x, V = t[L];
|
|
2142
2139
|
return V || (V = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: v, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: x }), t[L] = V), V;
|
|
2143
|
-
})(
|
|
2140
|
+
})(z, y);
|
|
2144
2141
|
return f.formatToParts(p);
|
|
2145
|
-
}, b = function(k,
|
|
2146
|
-
for (var y = l(k,
|
|
2142
|
+
}, b = function(k, z) {
|
|
2143
|
+
for (var y = l(k, z), p = [], f = 0; f < y.length; f += 1) {
|
|
2147
2144
|
var v = y[f], C = v.type, x = v.value, L = e[C];
|
|
2148
2145
|
L >= 0 && (p[L] = parseInt(x, 10));
|
|
2149
2146
|
}
|
|
2150
2147
|
var V = p[3], W = V === 24 ? 0 : V, F = p[0] + "-" + p[1] + "-" + p[2] + " " + W + ":" + p[4] + ":" + p[5] + ":000", A = +k;
|
|
2151
2148
|
return (i.utc(F).valueOf() - (A -= A % 1e3)) / 6e4;
|
|
2152
2149
|
}, $ = c.prototype;
|
|
2153
|
-
$.tz = function(k,
|
|
2150
|
+
$.tz = function(k, z) {
|
|
2154
2151
|
k === void 0 && (k = m);
|
|
2155
2152
|
var y, p = this.utcOffset(), f = this.toDate(), v = f.toLocaleString("en-US", { timeZone: k }), C = Math.round((f - new Date(v)) / 1e3 / 60), x = 15 * -Math.round(f.getTimezoneOffset() / 15) - C;
|
|
2156
|
-
if (!Number(x)) y = this.utcOffset(0,
|
|
2157
|
-
else if (y = i(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(x, !0),
|
|
2153
|
+
if (!Number(x)) y = this.utcOffset(0, z);
|
|
2154
|
+
else if (y = i(v, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(x, !0), z) {
|
|
2158
2155
|
var L = y.utcOffset();
|
|
2159
2156
|
y = y.add(p - L, "minute");
|
|
2160
2157
|
}
|
|
2161
2158
|
return y.$x.$timezone = k, y;
|
|
2162
2159
|
}, $.offsetName = function(k) {
|
|
2163
|
-
var
|
|
2160
|
+
var z = this.$x.$timezone || i.tz.guess(), y = l(this.valueOf(), z, { timeZoneName: k }).find((function(p) {
|
|
2164
2161
|
return p.type.toLowerCase() === "timezonename";
|
|
2165
2162
|
}));
|
|
2166
2163
|
return y && y.value;
|
|
2167
2164
|
};
|
|
2168
2165
|
var B = $.startOf;
|
|
2169
|
-
$.startOf = function(k,
|
|
2170
|
-
if (!this.$x || !this.$x.$timezone) return B.call(this, k,
|
|
2166
|
+
$.startOf = function(k, z) {
|
|
2167
|
+
if (!this.$x || !this.$x.$timezone) return B.call(this, k, z);
|
|
2171
2168
|
var y = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
2172
|
-
return B.call(y, k,
|
|
2173
|
-
}, i.tz = function(k,
|
|
2174
|
-
var p = y &&
|
|
2169
|
+
return B.call(y, k, z).tz(this.$x.$timezone, !0);
|
|
2170
|
+
}, i.tz = function(k, z, y) {
|
|
2171
|
+
var p = y && z, f = y || z || m, v = b(+i(), f);
|
|
2175
2172
|
if (typeof k != "string") return i(k).tz(f);
|
|
2176
2173
|
var C = (function(W, F, A) {
|
|
2177
2174
|
var j = W - 60 * F * 1e3, O = b(j, A);
|
|
@@ -2272,16 +2269,19 @@ function O0(o, r) {
|
|
|
2272
2269
|
return Yo(o, r, "minute");
|
|
2273
2270
|
}
|
|
2274
2271
|
function L0(o) {
|
|
2272
|
+
return o ? o.trim().split(/\s+/).slice(0, 2).map((r) => r[0].toUpperCase()).join("") : "";
|
|
2273
|
+
}
|
|
2274
|
+
function T0(o) {
|
|
2275
2275
|
return o == null ? "" : String(o).toLowerCase().trim().split(/\s+/).map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" ");
|
|
2276
2276
|
}
|
|
2277
2277
|
function so(o) {
|
|
2278
2278
|
return o == null ? "" : String(o).replace(/\D/g, "");
|
|
2279
2279
|
}
|
|
2280
|
-
const
|
|
2280
|
+
const W0 = (o) => {
|
|
2281
2281
|
if (!o) return "-";
|
|
2282
2282
|
const r = o.replace(/\D/g, "");
|
|
2283
2283
|
return r.length === 11 ? r.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, "$1.$2.$3-$4") : r.length === 14 ? r.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, "$1.$2.$3/$4-$5") : o;
|
|
2284
|
-
},
|
|
2284
|
+
}, F0 = (o, r = 2) => o == null ? "-" : Number(o).toLocaleString("pt-BR", {
|
|
2285
2285
|
minimumFractionDigits: r,
|
|
2286
2286
|
maximumFractionDigits: r
|
|
2287
2287
|
});
|
|
@@ -2289,7 +2289,7 @@ function of(o) {
|
|
|
2289
2289
|
const r = so(o);
|
|
2290
2290
|
return r.length !== 8 ? o : r.replace(/(\d{5})(\d{3})/, "$1-$2");
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2292
|
+
function j0(o) {
|
|
2293
2293
|
if (o == null) return "";
|
|
2294
2294
|
const {
|
|
2295
2295
|
postalCode: r,
|
|
@@ -2301,12 +2301,12 @@ function F0(o) {
|
|
|
2301
2301
|
} = o, m = [c, i].filter(Boolean).join(" "), l = [a, " - ", t, e].filter(Boolean).join(" "), b = r ? of(r) : null;
|
|
2302
2302
|
return [m, " - ", l, " - ", b].filter(Boolean).join(" ").replace(/\s-\s$/, "");
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2304
|
+
function I0(o) {
|
|
2305
2305
|
if (o == null) return "";
|
|
2306
2306
|
const { name: r, state: e, record: t } = o;
|
|
2307
2307
|
return [r, e, t].filter(Boolean).join(" ");
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2309
|
+
function H0(o) {
|
|
2310
2310
|
const r = so(o);
|
|
2311
2311
|
if (!r) return "";
|
|
2312
2312
|
const e = r.startsWith("55") && r.length > 11 ? r.slice(2) : r;
|
|
@@ -2358,10 +2358,10 @@ function Vo(o) {
|
|
|
2358
2358
|
$validator: o
|
|
2359
2359
|
};
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function lr(o) {
|
|
2362
2362
|
return typeof o == "object" ? o.$valid : o;
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2364
|
+
function cr(o) {
|
|
2365
2365
|
return o.$validator || o;
|
|
2366
2366
|
}
|
|
2367
2367
|
function ef(o, r) {
|
|
@@ -2392,9 +2392,9 @@ function nf(o) {
|
|
|
2392
2392
|
return T(r).reduce((c, i, m) => {
|
|
2393
2393
|
const l = Object.entries(i).reduce((b, $) => {
|
|
2394
2394
|
let [B, k] = $;
|
|
2395
|
-
const
|
|
2395
|
+
const z = o[B] || {}, y = Object.entries(z).reduce((p, f) => {
|
|
2396
2396
|
let [v, C] = f;
|
|
2397
|
-
const L =
|
|
2397
|
+
const L = cr(C).call(this, k, i, m, ...t), V = lr(L);
|
|
2398
2398
|
if (p.$data[v] = L, p.$data.$invalid = !V || !!p.$data.$invalid, p.$data.$error = p.$data.$invalid, !V) {
|
|
2399
2399
|
let W = C.$message || "";
|
|
2400
2400
|
const F = C.$params || {};
|
|
@@ -2480,8 +2480,8 @@ var q = /* @__PURE__ */ Object.freeze({
|
|
|
2480
2480
|
regex: uo,
|
|
2481
2481
|
req: bo,
|
|
2482
2482
|
unwrap: T,
|
|
2483
|
-
unwrapNormalizedValidator:
|
|
2484
|
-
unwrapValidatorResponse:
|
|
2483
|
+
unwrapNormalizedValidator: cr,
|
|
2484
|
+
unwrapValidatorResponse: lr,
|
|
2485
2485
|
withAsync: af,
|
|
2486
2486
|
withMessage: tf,
|
|
2487
2487
|
withParams: ef
|
|
@@ -2637,44 +2637,44 @@ function Mf(o) {
|
|
|
2637
2637
|
return !c || Sf(c) ? !1 : t.test(a);
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
2640
|
-
const fo = (o) => (r) => !q.req(r) || o(r),
|
|
2640
|
+
const fo = (o) => (r) => !q.req(r) || o(r), A0 = q.withMessage("Campo obrigatório.", pf), N0 = q.withMessage("E-mail inválido.", (o) => q.req(o) ? cf.$validator(String(o).trim()) : !0), P0 = q.withMessage(
|
|
2641
2641
|
"Informe nome e sobrenome.",
|
|
2642
2642
|
fo(Mf)
|
|
2643
|
-
),
|
|
2643
|
+
), q0 = q.withMessage(
|
|
2644
2644
|
"Informe apenas números.",
|
|
2645
2645
|
fo(Rf)
|
|
2646
|
-
),
|
|
2646
|
+
), E0 = q.withMessage(
|
|
2647
2647
|
"CEP inválido.",
|
|
2648
2648
|
fo(Bf)
|
|
2649
|
-
),
|
|
2649
|
+
), U0 = q.withMessage("CNPJ inválido.", fo(kf)), _0 = q.withMessage("CPF inválido.", fo(yf)), X0 = q.withMessage(
|
|
2650
2650
|
"Nº celular inválido.",
|
|
2651
2651
|
fo((o) => xf(so(o)))
|
|
2652
|
-
),
|
|
2652
|
+
), Z0 = q.withMessage(
|
|
2653
2653
|
"Nº telefone inválido.",
|
|
2654
2654
|
fo((o) => wf(so(o)))
|
|
2655
|
-
),
|
|
2655
|
+
), G0 = q.withMessage(
|
|
2656
2656
|
"Data inválida.",
|
|
2657
2657
|
(o) => o == null || o === "" ? !0 : o instanceof Date ? rr(o) : rr(zo(o))
|
|
2658
|
-
),
|
|
2658
|
+
), J0 = q.withMessage(
|
|
2659
2659
|
"Data não pode ser maior que hoje.",
|
|
2660
2660
|
fo((o) => !$f(zo(o)))
|
|
2661
|
-
),
|
|
2661
|
+
), Q0 = q.withMessage(
|
|
2662
2662
|
"Intervalo de datas inválido.",
|
|
2663
2663
|
(o) => o == null ? !0 : Cf(o)
|
|
2664
2664
|
);
|
|
2665
|
-
function
|
|
2665
|
+
function K0(o, r) {
|
|
2666
2666
|
return q.withMessage(
|
|
2667
2667
|
r || `Informe no máximo ${o} caracteres.`,
|
|
2668
2668
|
(e) => q.req(e) ? uf(o).$validator(String(e)) : !0
|
|
2669
2669
|
);
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function og(o, r) {
|
|
2672
2672
|
return q.withMessage(
|
|
2673
2673
|
r || `Informe no mínimo ${o} caracteres.`,
|
|
2674
2674
|
(e) => q.req(e) ? gf(o).$validator(String(e)) : !0
|
|
2675
2675
|
);
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function rg(o, r) {
|
|
2678
2678
|
return q.withMessage(
|
|
2679
2679
|
r || `Valor mínimo é ${o}.`,
|
|
2680
2680
|
(e) => q.req(e) ? vf(o).$validator(Number(e)) : !0
|
|
@@ -2710,40 +2710,41 @@ export {
|
|
|
2710
2710
|
O0 as addMinutes,
|
|
2711
2711
|
Y0 as addMonths,
|
|
2712
2712
|
V0 as addYears,
|
|
2713
|
-
|
|
2714
|
-
|
|
2713
|
+
j0 as formatAddress,
|
|
2714
|
+
I0 as formatCouncil,
|
|
2715
2715
|
B0 as formatDate,
|
|
2716
2716
|
R0 as formatDateTime,
|
|
2717
2717
|
w0 as formatDateTimeToApi,
|
|
2718
2718
|
x0 as formatDateToApi,
|
|
2719
|
-
|
|
2719
|
+
W0 as formatDocument,
|
|
2720
2720
|
M0 as formatFullDate,
|
|
2721
|
-
|
|
2722
|
-
|
|
2721
|
+
F0 as formatNumber,
|
|
2722
|
+
H0 as formatPhone,
|
|
2723
2723
|
D0 as formatTime,
|
|
2724
2724
|
S0 as formatWeekday,
|
|
2725
|
+
L0 as getInitials,
|
|
2725
2726
|
so as onlyNumber,
|
|
2726
2727
|
k0 as setupPrimeVue,
|
|
2727
2728
|
Ko as startOfDay,
|
|
2728
|
-
|
|
2729
|
+
T0 as toCamelCaseWords,
|
|
2729
2730
|
zo as toDate,
|
|
2730
2731
|
C0 as today,
|
|
2731
2732
|
y0 as useAppToast,
|
|
2732
2733
|
$0 as useClickOutside,
|
|
2733
2734
|
v0 as vFocus,
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2735
|
+
X0 as validCellphone,
|
|
2736
|
+
U0 as validCnpj,
|
|
2737
|
+
_0 as validCpf,
|
|
2738
|
+
G0 as validDate,
|
|
2739
|
+
Q0 as validDateRange,
|
|
2740
|
+
N0 as validEmail,
|
|
2741
|
+
P0 as validFullName,
|
|
2742
|
+
K0 as validMaxLength,
|
|
2743
|
+
og as validMinLength,
|
|
2744
|
+
rg as validMinValue,
|
|
2745
|
+
J0 as validNotFutureDate,
|
|
2746
|
+
q0 as validOnlyNumbers,
|
|
2747
|
+
Z0 as validPhone,
|
|
2748
|
+
E0 as validPostalCode,
|
|
2749
|
+
A0 as validRequired
|
|
2749
2750
|
};
|