@stencitecnologia/front-kit 0.1.24 → 0.1.26
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 +177 -188
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as M, openBlock as R, createElementBlock as P, normalizeClass as So, toDisplayString as oo, createCommentVNode as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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, withCtx as X, renderSlot as G, createElementVNode as io, createVNode as mo, ref as po, onMounted as er, onBeforeUnmount as tr, normalizeStyle as Io, watch as sr, createTextVNode as Po, createSlots as Ho, Fragment as ur, Teleport as fr, withModifiers as gr } from "vue";
|
|
2
|
+
import mr from "primevue/autocomplete";
|
|
3
|
+
import pr from "primevue/button";
|
|
4
4
|
import { FontAwesomeIcon as br } from "@fortawesome/vue-fontawesome";
|
|
5
5
|
import hr from "primevue/chart";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import ar from "primevue/inputtext";
|
|
7
|
+
import nr from "primevue/datepicker";
|
|
8
8
|
import vr from "primevue/inputgroup";
|
|
9
9
|
import kr from "primevue/inputgroupaddon";
|
|
10
10
|
import yr from "primevue/popover";
|
|
11
11
|
import $r from "primevue/inputmask";
|
|
12
|
-
import
|
|
12
|
+
import ir from "primevue/dialog";
|
|
13
13
|
import Cr from "primevue/drawer";
|
|
14
14
|
import xr from "primevue/multiselect";
|
|
15
15
|
import wr from "primevue/panel";
|
|
@@ -43,7 +43,7 @@ const Vr = {
|
|
|
43
43
|
key: 0,
|
|
44
44
|
class: So(["ui-alert", e.value]),
|
|
45
45
|
role: "alert"
|
|
46
|
-
}, oo(o.message), 3)) :
|
|
46
|
+
}, oo(o.message), 3)) : E("", !0);
|
|
47
47
|
}
|
|
48
48
|
}, Kf = {
|
|
49
49
|
__name: "BaseAutoComplete",
|
|
@@ -80,7 +80,7 @@ const Vr = {
|
|
|
80
80
|
get: () => e.modelValue,
|
|
81
81
|
set: (l) => t("update:modelValue", l)
|
|
82
82
|
}), c = (l) => t("complete", l), i = (l) => t("item-select", l), m = () => t("clear");
|
|
83
|
-
return (l, b) => (R(), H(T(
|
|
83
|
+
return (l, b) => (R(), H(T(mr), Q({
|
|
84
84
|
modelValue: a.value,
|
|
85
85
|
"onUpdate:modelValue": b[0] || (b[0] = ($) => a.value = $),
|
|
86
86
|
suggestions: o.suggestions,
|
|
@@ -108,7 +108,7 @@ const Vr = {
|
|
|
108
108
|
return (r, e) => (R(), H(T(br), Q({ icon: o.icon }, r.$attrs), null, 16, ["icon"]));
|
|
109
109
|
}
|
|
110
110
|
}, Or = {
|
|
111
|
-
key:
|
|
111
|
+
key: 0,
|
|
112
112
|
class: "pi pi-spin pi-spinner"
|
|
113
113
|
}, Lr = { key: 2 }, Fo = {
|
|
114
114
|
__name: "BaseButton",
|
|
@@ -162,32 +162,21 @@ const Vr = {
|
|
|
162
162
|
"ui-btn-sm": r.size === "sm"
|
|
163
163
|
}
|
|
164
164
|
]), t = M(() => r.disabled || r.loading);
|
|
165
|
-
return (a, c) => (R(), H(T(
|
|
166
|
-
loading: o.loading,
|
|
165
|
+
return (a, c) => (R(), H(T(pr), Q(a.$attrs, {
|
|
167
166
|
disabled: t.value,
|
|
168
167
|
class: e.value,
|
|
169
168
|
type: o.type
|
|
170
169
|
}), {
|
|
171
|
-
default:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
o.icon && !o.loading ? (R(), H(Mo, {
|
|
179
|
-
key: 0,
|
|
180
|
-
icon: o.icon
|
|
181
|
-
}, null, 8, ["icon"])) : q("", !0),
|
|
182
|
-
o.loading ? (R(), P("span", Or)) : q("", !0),
|
|
183
|
-
o.label ? (R(), P("span", Lr, oo(o.label), 1)) : q("", !0),
|
|
184
|
-
G(a.$slots, "default")
|
|
185
|
-
]),
|
|
186
|
-
_: 3
|
|
187
|
-
}, 16, ["disabled", "class", "type"])
|
|
170
|
+
default: X(() => [
|
|
171
|
+
o.loading ? (R(), P("span", Or)) : o.icon ? (R(), H(Mo, {
|
|
172
|
+
key: 1,
|
|
173
|
+
icon: o.icon
|
|
174
|
+
}, null, 8, ["icon"])) : E("", !0),
|
|
175
|
+
o.label ? (R(), P("span", Lr, oo(o.label), 1)) : E("", !0),
|
|
176
|
+
G(a.$slots, "default")
|
|
188
177
|
]),
|
|
189
178
|
_: 3
|
|
190
|
-
}, 16, ["
|
|
179
|
+
}, 16, ["disabled", "class", "type"]));
|
|
191
180
|
}
|
|
192
181
|
}, Tr = {
|
|
193
182
|
key: 0,
|
|
@@ -239,11 +228,11 @@ const Vr = {
|
|
|
239
228
|
class: So(t.value)
|
|
240
229
|
}, [
|
|
241
230
|
e.value ? (R(), P("header", Tr, [
|
|
242
|
-
o.title ? (R(), P("div", Wr, oo(o.title), 1)) :
|
|
243
|
-
o.subtitle ? (R(), P("div", Fr, oo(o.subtitle), 1)) :
|
|
244
|
-
])) :
|
|
231
|
+
o.title ? (R(), P("div", Wr, oo(o.title), 1)) : E("", !0),
|
|
232
|
+
o.subtitle ? (R(), P("div", Fr, oo(o.subtitle), 1)) : E("", !0)
|
|
233
|
+
])) : E("", !0),
|
|
245
234
|
io("div", jr, [
|
|
246
|
-
|
|
235
|
+
mo(Vr, {
|
|
247
236
|
message: o.alertMessage,
|
|
248
237
|
variant: o.alertVariant
|
|
249
238
|
}, null, 8, ["message", "variant"]),
|
|
@@ -253,7 +242,7 @@ const Vr = {
|
|
|
253
242
|
io("div", Hr, [
|
|
254
243
|
G(a.$slots, "footer")
|
|
255
244
|
])
|
|
256
|
-
])) :
|
|
245
|
+
])) : E("", !0)
|
|
257
246
|
], 2));
|
|
258
247
|
}
|
|
259
248
|
}, r0 = {
|
|
@@ -343,9 +332,9 @@ const Vr = {
|
|
|
343
332
|
}
|
|
344
333
|
} : void 0
|
|
345
334
|
})), $ = M(() => c(b.value, e.options));
|
|
346
|
-
return
|
|
335
|
+
return er(() => {
|
|
347
336
|
a.value = !0;
|
|
348
|
-
}),
|
|
337
|
+
}), tr(() => {
|
|
349
338
|
a.value = !1, t.value?.chart && t.value.chart.destroy();
|
|
350
339
|
}), (B, k) => a.value ? (R(), H(T(hr), {
|
|
351
340
|
key: 0,
|
|
@@ -355,7 +344,7 @@ const Vr = {
|
|
|
355
344
|
data: l.value,
|
|
356
345
|
options: $.value,
|
|
357
346
|
style: Io({ height: m.value, width: "100%" })
|
|
358
|
-
}, null, 8, ["type", "data", "options", "style"])) :
|
|
347
|
+
}, null, 8, ["type", "data", "options", "style"])) : E("", !0);
|
|
359
348
|
}
|
|
360
349
|
}, Ar = { class: "ui-currency" }, e0 = {
|
|
361
350
|
__name: "BaseCurrency",
|
|
@@ -395,7 +384,7 @@ const Vr = {
|
|
|
395
384
|
t("update:modelValue", b), l.target.value = a(b);
|
|
396
385
|
};
|
|
397
386
|
return (l, b) => (R(), P("div", Ar, [
|
|
398
|
-
|
|
387
|
+
mo(T(ar), Q({
|
|
399
388
|
value: i.value,
|
|
400
389
|
placeholder: o.placeholder,
|
|
401
390
|
disabled: o.disabled,
|
|
@@ -570,7 +559,7 @@ const Vr = {
|
|
|
570
559
|
C(u), a("update:modelValue", u), c.value && c.value.hide();
|
|
571
560
|
}
|
|
572
561
|
}, A = () => {
|
|
573
|
-
b.value &&
|
|
562
|
+
b.value && U.value && V(), a("blur");
|
|
574
563
|
}, j = (u) => {
|
|
575
564
|
c.value && c.value.toggle(u);
|
|
576
565
|
}, O = () => {
|
|
@@ -586,10 +575,10 @@ const Vr = {
|
|
|
586
575
|
}, S = M({
|
|
587
576
|
get: () => i.value,
|
|
588
577
|
set: (u) => W(u)
|
|
589
|
-
}),
|
|
578
|
+
}), U = M(
|
|
590
579
|
() => b.value && !!i.value && !f(i.value)
|
|
591
580
|
);
|
|
592
|
-
return r({ hasPartialInput:
|
|
581
|
+
return r({ hasPartialInput: U }), sr(
|
|
593
582
|
() => t.modelValue,
|
|
594
583
|
(u) => {
|
|
595
584
|
if (u === null) {
|
|
@@ -604,7 +593,7 @@ const Vr = {
|
|
|
604
593
|
},
|
|
605
594
|
{ immediate: !0 }
|
|
606
595
|
), (u, s) => (R(), H(T(vr), { class: "ui-inputgroup" }, {
|
|
607
|
-
default:
|
|
596
|
+
default: X(() => [
|
|
608
597
|
(R(), H(Nr, Q({
|
|
609
598
|
key: l.value,
|
|
610
599
|
modelValue: S.value,
|
|
@@ -614,8 +603,8 @@ const Vr = {
|
|
|
614
603
|
disabled: o.disabled,
|
|
615
604
|
invalid: o.invalid
|
|
616
605
|
}, u.$attrs, { onBlur: A }), null, 16, ["modelValue", "mask", "placeholder", "disabled", "invalid"])),
|
|
617
|
-
|
|
618
|
-
default:
|
|
606
|
+
mo(T(kr), { class: "ui-inputgroup-addon" }, {
|
|
607
|
+
default: X(() => [
|
|
619
608
|
o.showClear ? (R(), H(Fo, {
|
|
620
609
|
key: 0,
|
|
621
610
|
type: "button",
|
|
@@ -624,11 +613,11 @@ const Vr = {
|
|
|
624
613
|
"aria-label": "Limpar data",
|
|
625
614
|
onClick: V
|
|
626
615
|
}, {
|
|
627
|
-
default:
|
|
616
|
+
default: X(() => [...s[2] || (s[2] = [
|
|
628
617
|
Po(" Limpar ", -1)
|
|
629
618
|
])]),
|
|
630
619
|
_: 1
|
|
631
|
-
}, 8, ["disabled"])) :
|
|
620
|
+
}, 8, ["disabled"])) : E("", !0),
|
|
632
621
|
o.showToday ? (R(), H(Fo, {
|
|
633
622
|
key: 1,
|
|
634
623
|
type: "button",
|
|
@@ -637,36 +626,36 @@ const Vr = {
|
|
|
637
626
|
"aria-label": "Selecionar hoje",
|
|
638
627
|
onClick: O
|
|
639
628
|
}, {
|
|
640
|
-
default:
|
|
629
|
+
default: X(() => [...s[3] || (s[3] = [
|
|
641
630
|
Po(" Hoje ", -1)
|
|
642
631
|
])]),
|
|
643
632
|
_: 1
|
|
644
|
-
}, 8, ["disabled"])) :
|
|
645
|
-
|
|
633
|
+
}, 8, ["disabled"])) : E("", !0),
|
|
634
|
+
mo(Fo, {
|
|
646
635
|
type: "button",
|
|
647
636
|
variant: "ghost",
|
|
648
637
|
disabled: o.disabled,
|
|
649
638
|
"aria-label": "Abrir calendário",
|
|
650
639
|
onClick: j
|
|
651
640
|
}, {
|
|
652
|
-
default:
|
|
641
|
+
default: X(() => [
|
|
653
642
|
o.calendarIcon ? (R(), H(Mo, {
|
|
654
643
|
key: 0,
|
|
655
644
|
class: "text-lg",
|
|
656
645
|
icon: o.calendarIcon
|
|
657
|
-
}, null, 8, ["icon"])) :
|
|
646
|
+
}, null, 8, ["icon"])) : E("", !0)
|
|
658
647
|
]),
|
|
659
648
|
_: 1
|
|
660
649
|
}, 8, ["disabled"])
|
|
661
650
|
]),
|
|
662
651
|
_: 1
|
|
663
652
|
}),
|
|
664
|
-
|
|
653
|
+
mo(T(yr), {
|
|
665
654
|
ref_key: "popoverRef",
|
|
666
655
|
ref: c
|
|
667
656
|
}, {
|
|
668
|
-
default:
|
|
669
|
-
|
|
657
|
+
default: X(() => [
|
|
658
|
+
mo(T(nr), {
|
|
670
659
|
modelValue: m.value,
|
|
671
660
|
"onUpdate:modelValue": [
|
|
672
661
|
s[1] || (s[1] = (n) => m.value = n),
|
|
@@ -706,7 +695,7 @@ const Vr = {
|
|
|
706
695
|
get: () => e.modelValue,
|
|
707
696
|
set: (c) => t("update:modelValue", c)
|
|
708
697
|
});
|
|
709
|
-
return (c, i) => (R(), H(T(
|
|
698
|
+
return (c, i) => (R(), H(T(nr), Q({
|
|
710
699
|
modelValue: a.value,
|
|
711
700
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
|
|
712
701
|
disabled: o.disabled,
|
|
@@ -777,7 +766,7 @@ const Vr = {
|
|
|
777
766
|
}, i = M(() => ({
|
|
778
767
|
width: `min(92vw, ${c[e.size]})`
|
|
779
768
|
})), m = M(() => !!(e.icon || e.content)), l = () => t("hide"), b = () => t("show");
|
|
780
|
-
return ($, B) => (R(), H(T(
|
|
769
|
+
return ($, B) => (R(), H(T(ir), {
|
|
781
770
|
visible: a.value,
|
|
782
771
|
"onUpdate:visible": B[0] || (B[0] = (k) => a.value = k),
|
|
783
772
|
modal: "",
|
|
@@ -790,29 +779,29 @@ const Vr = {
|
|
|
790
779
|
onHide: l,
|
|
791
780
|
onShow: b
|
|
792
781
|
}, Ho({
|
|
793
|
-
default:
|
|
782
|
+
default: X(() => [
|
|
794
783
|
m.value && !$.$slots.default ? (R(), P("div", Pr, [
|
|
795
784
|
o.icon ? (R(), H(Mo, {
|
|
796
785
|
key: 0,
|
|
797
786
|
icon: o.icon,
|
|
798
787
|
class: "ui-dialog-icon"
|
|
799
|
-
}, null, 8, ["icon"])) :
|
|
800
|
-
o.content ? (R(), P("p", qr, oo(o.content), 1)) :
|
|
801
|
-
])) :
|
|
788
|
+
}, null, 8, ["icon"])) : E("", !0),
|
|
789
|
+
o.content ? (R(), P("p", qr, oo(o.content), 1)) : E("", !0)
|
|
790
|
+
])) : E("", !0),
|
|
802
791
|
G($.$slots, "default", {}, void 0, !0)
|
|
803
792
|
]),
|
|
804
793
|
_: 2
|
|
805
794
|
}, [
|
|
806
795
|
$.$slots.header ? {
|
|
807
796
|
name: "header",
|
|
808
|
-
fn:
|
|
797
|
+
fn: X(() => [
|
|
809
798
|
G($.$slots, "header", {}, void 0, !0)
|
|
810
799
|
]),
|
|
811
800
|
key: "0"
|
|
812
801
|
} : void 0,
|
|
813
802
|
$.$slots.footer ? {
|
|
814
803
|
name: "footer",
|
|
815
|
-
fn:
|
|
804
|
+
fn: X(() => [
|
|
816
805
|
G($.$slots, "footer", {}, void 0, !0)
|
|
817
806
|
]),
|
|
818
807
|
key: "1"
|
|
@@ -852,16 +841,16 @@ const Vr = {
|
|
|
852
841
|
}, m = (l) => {
|
|
853
842
|
t("update:visible", l);
|
|
854
843
|
};
|
|
855
|
-
return (l, b) => (R(), P(
|
|
856
|
-
(R(), H(
|
|
844
|
+
return (l, b) => (R(), P(ur, null, [
|
|
845
|
+
(R(), H(fr, { to: "body" }, [
|
|
857
846
|
a.value ? (R(), P("div", {
|
|
858
847
|
key: 0,
|
|
859
848
|
class: "ui-drawer-backdrop",
|
|
860
849
|
role: "presentation",
|
|
861
850
|
onClick: i
|
|
862
|
-
})) :
|
|
851
|
+
})) : E("", !0)
|
|
863
852
|
])),
|
|
864
|
-
|
|
853
|
+
mo(T(Cr), Q(l.$attrs, {
|
|
865
854
|
modal: o.modal,
|
|
866
855
|
dismissable: o.dismissable,
|
|
867
856
|
header: o.title,
|
|
@@ -871,7 +860,7 @@ const Vr = {
|
|
|
871
860
|
class: "ui-drawer",
|
|
872
861
|
"onUpdate:visible": m
|
|
873
862
|
}), {
|
|
874
|
-
default:
|
|
863
|
+
default: X(() => [
|
|
875
864
|
io("div", Ur, [
|
|
876
865
|
G(l.$slots, "default")
|
|
877
866
|
])
|
|
@@ -920,7 +909,7 @@ const Vr = {
|
|
|
920
909
|
]),
|
|
921
910
|
io("div", Gr, [
|
|
922
911
|
io("h3", Jr, oo(o.title), 1),
|
|
923
|
-
t.value ? (R(), P("p", Qr, oo(o.description), 1)) :
|
|
912
|
+
t.value ? (R(), P("p", Qr, oo(o.description), 1)) : E("", !0),
|
|
924
913
|
io("div", Kr, [
|
|
925
914
|
G(a.$slots, "default", {}, void 0, !0)
|
|
926
915
|
])
|
|
@@ -961,11 +950,11 @@ const Vr = {
|
|
|
961
950
|
key: 0,
|
|
962
951
|
class: "ui-label",
|
|
963
952
|
for: o.forId
|
|
964
|
-
}, oo(o.label), 9, ee)) :
|
|
953
|
+
}, oo(o.label), 9, ee)) : E("", !0),
|
|
965
954
|
io("div", te, [
|
|
966
955
|
G(c.$slots, "default")
|
|
967
956
|
]),
|
|
968
|
-
t.value ? (R(), P("small", ae, oo(o.error), 1)) : a.value ? (R(), P("small", ne, oo(o.help), 1)) :
|
|
957
|
+
t.value ? (R(), P("small", ae, oo(o.error), 1)) : a.value ? (R(), P("small", ne, oo(o.help), 1)) : E("", !0)
|
|
969
958
|
]));
|
|
970
959
|
}
|
|
971
960
|
}, c0 = {
|
|
@@ -994,7 +983,7 @@ const Vr = {
|
|
|
994
983
|
get: () => e.modelValue,
|
|
995
984
|
set: (c) => t("update:modelValue", c)
|
|
996
985
|
});
|
|
997
|
-
return (c, i) => (R(), H(T(
|
|
986
|
+
return (c, i) => (R(), H(T(ar), Q({
|
|
998
987
|
modelValue: a.value,
|
|
999
988
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => a.value = m),
|
|
1000
989
|
disabled: o.disabled,
|
|
@@ -1047,7 +1036,7 @@ const Vr = {
|
|
|
1047
1036
|
}, i = M(() => ({
|
|
1048
1037
|
width: `min(92vw, ${c[e.size]})`
|
|
1049
1038
|
})), m = () => t("hide"), l = () => t("show");
|
|
1050
|
-
return (b, $) => (R(), H(T(
|
|
1039
|
+
return (b, $) => (R(), H(T(ir), {
|
|
1051
1040
|
visible: a.value,
|
|
1052
1041
|
"onUpdate:visible": $[0] || ($[0] = (B) => a.value = B),
|
|
1053
1042
|
modal: "",
|
|
@@ -1060,21 +1049,21 @@ const Vr = {
|
|
|
1060
1049
|
onHide: m,
|
|
1061
1050
|
onShow: l
|
|
1062
1051
|
}, Ho({
|
|
1063
|
-
default:
|
|
1052
|
+
default: X(() => [
|
|
1064
1053
|
G(b.$slots, "default")
|
|
1065
1054
|
]),
|
|
1066
1055
|
_: 2
|
|
1067
1056
|
}, [
|
|
1068
1057
|
b.$slots.header ? {
|
|
1069
1058
|
name: "header",
|
|
1070
|
-
fn:
|
|
1059
|
+
fn: X(() => [
|
|
1071
1060
|
G(b.$slots, "header")
|
|
1072
1061
|
]),
|
|
1073
1062
|
key: "0"
|
|
1074
1063
|
} : void 0,
|
|
1075
1064
|
b.$slots.footer ? {
|
|
1076
1065
|
name: "footer",
|
|
1077
|
-
fn:
|
|
1066
|
+
fn: X(() => [
|
|
1078
1067
|
G(b.$slots, "footer")
|
|
1079
1068
|
]),
|
|
1080
1069
|
key: "1"
|
|
@@ -1173,21 +1162,21 @@ const Vr = {
|
|
|
1173
1162
|
collapsed: o.collapsed,
|
|
1174
1163
|
class: So(e.value)
|
|
1175
1164
|
}, Ho({
|
|
1176
|
-
default:
|
|
1165
|
+
default: X(() => [
|
|
1177
1166
|
G(t.$slots, "default", {}, void 0, !0)
|
|
1178
1167
|
]),
|
|
1179
1168
|
_: 2
|
|
1180
1169
|
}, [
|
|
1181
1170
|
t.$slots.header ? {
|
|
1182
1171
|
name: "header",
|
|
1183
|
-
fn:
|
|
1172
|
+
fn: X(() => [
|
|
1184
1173
|
G(t.$slots, "header", {}, void 0, !0)
|
|
1185
1174
|
]),
|
|
1186
1175
|
key: "0"
|
|
1187
1176
|
} : void 0,
|
|
1188
1177
|
t.$slots.icons ? {
|
|
1189
1178
|
name: "icons",
|
|
1190
|
-
fn:
|
|
1179
|
+
fn: X(() => [
|
|
1191
1180
|
G(t.$slots, "icons", {}, void 0, !0)
|
|
1192
1181
|
]),
|
|
1193
1182
|
key: "1"
|
|
@@ -1273,9 +1262,9 @@ const Vr = {
|
|
|
1273
1262
|
to: e.value ? void 0 : o.to,
|
|
1274
1263
|
class: So(t.value),
|
|
1275
1264
|
"aria-disabled": e.value,
|
|
1276
|
-
onClick: c[0] || (c[0] =
|
|
1265
|
+
onClick: c[0] || (c[0] = gr((i) => e.value && i.preventDefault(), ["prevent"]))
|
|
1277
1266
|
}, {
|
|
1278
|
-
default:
|
|
1267
|
+
default: X(() => [
|
|
1279
1268
|
G(a.$slots, "default")
|
|
1280
1269
|
]),
|
|
1281
1270
|
_: 3
|
|
@@ -1295,7 +1284,7 @@ const Vr = {
|
|
|
1295
1284
|
setup(o) {
|
|
1296
1285
|
const r = o, e = M(() => !!r.label);
|
|
1297
1286
|
return (t, a) => (R(), P("div", de, [
|
|
1298
|
-
e.value ? (R(), P("span", le, oo(o.label), 1)) :
|
|
1287
|
+
e.value ? (R(), P("span", le, oo(o.label), 1)) : E("", !0),
|
|
1299
1288
|
a[0] || (a[0] = io("div", { class: "ui-section-divider__line" }, null, -1))
|
|
1300
1289
|
]));
|
|
1301
1290
|
}
|
|
@@ -1494,11 +1483,11 @@ var ce = { transitionDuration: "{transition.duration}" }, se = { borderWidth: "0
|
|
|
1494
1483
|
.p-treetable-mask.p-overlay-mask {
|
|
1495
1484
|
--px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
|
|
1496
1485
|
}
|
|
1497
|
-
`, xu = { root: nu, header: iu, headerCell: du, columnTitle: lu, row: cu, bodyCell: su, footerCell: uu, columnFooter: fu, footer: gu, columnResizer: mu, resizeIndicator: pu, sortIcon: bu, loadingIcon: hu, nodeToggleButton: vu, paginatorTop: ku, paginatorBottom: yu, colorScheme: $u, css: Cu }, wu = { mask: { background: "{content.background}", color: "{text.muted.color}" }, icon: { size: "2rem" } }, Bu = { loader: wu }, Ru = Object.defineProperty, Du = Object.defineProperties, Su = Object.getOwnPropertyDescriptors,
|
|
1498
|
-
for (var e in r || (r = {})) Mu.call(r, e) &&
|
|
1499
|
-
if (
|
|
1486
|
+
`, xu = { root: nu, header: iu, headerCell: du, columnTitle: lu, row: cu, bodyCell: su, footerCell: uu, columnFooter: fu, footer: gu, columnResizer: mu, resizeIndicator: pu, sortIcon: bu, loadingIcon: hu, nodeToggleButton: vu, paginatorTop: ku, paginatorBottom: yu, colorScheme: $u, css: Cu }, wu = { mask: { background: "{content.background}", color: "{text.muted.color}" }, icon: { size: "2rem" } }, Bu = { loader: wu }, Ru = Object.defineProperty, Du = Object.defineProperties, Su = Object.getOwnPropertyDescriptors, qo = Object.getOwnPropertySymbols, Mu = Object.prototype.hasOwnProperty, zu = Object.prototype.propertyIsEnumerable, Eo = (o, r, e) => r in o ? Ru(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e, Uo, Yu = (Uo = ((o, r) => {
|
|
1487
|
+
for (var e in r || (r = {})) Mu.call(r, e) && Eo(o, e, r[e]);
|
|
1488
|
+
if (qo) for (var e of qo(r)) zu.call(r, e) && Eo(o, e, r[e]);
|
|
1500
1489
|
return o;
|
|
1501
|
-
})({}, Ie), Du(
|
|
1490
|
+
})({}, Ie), Du(Uo, Su({ components: { accordion: ge, autocomplete: xe, avatar: Me, badge: We, blockui: Ae, breadcrumb: Ee, button: Xe, card: ot, carousel: it, cascadeselect: gt, checkbox: bt, chip: Ct, colorpicker: Dt, confirmdialog: zt, confirmpopup: Tt, contextmenu: Nt, datatable: sa, dataview: ha, datepicker: Fa, dialog: Pa, divider: Xa, dock: Ja, drawer: tn, editor: sn, fieldset: pn, fileupload: xn, floatlabel: Sn, galleria: Pn, iconfield: En, iftalabel: Xn, image: Kn, imagecompare: ri, inlinemessage: ii, inplace: ci, inputchips: gi, inputgroup: pi, inputnumber: ki, inputotp: Ci, inputtext: wi, knob: Mi, listbox: Fi, megamenu: _i, menu: Ki, menubar: id, message: bd, metergroup: xd, multiselect: Od, orderlist: Wd, organizationchart: Ad, overlaybadge: Pd, paginator: Xd, panel: rl, panelmenu: dl, password: gl, picklist: bl, popover: kl, progressbar: xl, progressspinner: Bl, radiobutton: Sl, rating: Yl, ripple: Ol, scrollpanel: Fl, select: _l, selectbutton: Gl, skeleton: Kl, slider: nc, speeddial: dc, splitbutton: cc, splitter: gc, stepper: Cc, steps: Sc, tabmenu: Lc, tabs: Nc, tabview: Zc, tag: Kc, terminal: ts, textarea: ns, tieredmenu: fs, timeline: vs, toast: Ss, togglebutton: Os, toggleswitch: Fs, toolbar: Is, tooltip: Ns, tree: Gs, treeselect: au, treetable: xu, virtualscroller: Bu }, css: Pt })));
|
|
1502
1491
|
const Vu = {
|
|
1503
1492
|
startsWith: "Começa com",
|
|
1504
1493
|
contains: "Contém",
|
|
@@ -1602,18 +1591,18 @@ function C0(o, r) {
|
|
|
1602
1591
|
function e(t) {
|
|
1603
1592
|
o.value && (o.value.contains(t.target) || r(t));
|
|
1604
1593
|
}
|
|
1605
|
-
|
|
1594
|
+
er(() => {
|
|
1606
1595
|
document.addEventListener("pointerdown", e);
|
|
1607
|
-
}),
|
|
1596
|
+
}), tr(() => {
|
|
1608
1597
|
document.removeEventListener("pointerdown", e);
|
|
1609
1598
|
});
|
|
1610
1599
|
}
|
|
1611
1600
|
function vo(o) {
|
|
1612
1601
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
1613
1602
|
}
|
|
1614
|
-
var $o = { exports: {} }, Ou = $o.exports,
|
|
1615
|
-
function
|
|
1616
|
-
return
|
|
1603
|
+
var $o = { exports: {} }, Ou = $o.exports, _o;
|
|
1604
|
+
function dr() {
|
|
1605
|
+
return _o || (_o = 1, (function(o, r) {
|
|
1617
1606
|
(function(e, t) {
|
|
1618
1607
|
o.exports = t();
|
|
1619
1608
|
})(Ou, (function() {
|
|
@@ -1639,7 +1628,7 @@ function lr() {
|
|
|
1639
1628
|
} }, V = "en", W = {};
|
|
1640
1629
|
W[V] = C;
|
|
1641
1630
|
var F = "$isDayjsObject", A = function(s) {
|
|
1642
|
-
return s instanceof
|
|
1631
|
+
return s instanceof U || !(!s || !s[F]);
|
|
1643
1632
|
}, j = function s(n, d, h) {
|
|
1644
1633
|
var g;
|
|
1645
1634
|
if (!n) return V;
|
|
@@ -1656,12 +1645,12 @@ function lr() {
|
|
|
1656
1645
|
}, O = function(s, n) {
|
|
1657
1646
|
if (A(s)) return s.clone();
|
|
1658
1647
|
var d = typeof n == "object" ? n : {};
|
|
1659
|
-
return d.date = s, d.args = arguments, new
|
|
1648
|
+
return d.date = s, d.args = arguments, new U(d);
|
|
1660
1649
|
}, S = L;
|
|
1661
1650
|
S.l = j, S.i = A, S.w = function(s, n) {
|
|
1662
1651
|
return O(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
1663
1652
|
};
|
|
1664
|
-
var
|
|
1653
|
+
var U = (function() {
|
|
1665
1654
|
function s(d) {
|
|
1666
1655
|
this.$L = j(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[F] = !0;
|
|
1667
1656
|
}
|
|
@@ -1707,15 +1696,15 @@ function lr() {
|
|
|
1707
1696
|
return w ? K : K.endOf(b);
|
|
1708
1697
|
}, I = function(ro, Z) {
|
|
1709
1698
|
return S.w(g.toDate()[ro].apply(g.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), g);
|
|
1710
|
-
}, N = this.$W,
|
|
1699
|
+
}, N = this.$W, _ = this.$M, J = this.$D, lo = "set" + (this.$u ? "UTC" : "");
|
|
1711
1700
|
switch (D) {
|
|
1712
1701
|
case z:
|
|
1713
1702
|
return w ? Y(1, 0) : Y(31, 11);
|
|
1714
1703
|
case B:
|
|
1715
|
-
return w ? Y(1,
|
|
1704
|
+
return w ? Y(1, _) : Y(0, _ + 1);
|
|
1716
1705
|
case $:
|
|
1717
|
-
var ao = this.$locale().weekStart || 0,
|
|
1718
|
-
return Y(w ? J -
|
|
1706
|
+
var ao = this.$locale().weekStart || 0, go = (N < ao ? N + 7 : N) - ao;
|
|
1707
|
+
return Y(w ? J - go : J + (6 - go), _);
|
|
1719
1708
|
case b:
|
|
1720
1709
|
case y:
|
|
1721
1710
|
return I(lo + "Hours", 0);
|
|
@@ -1744,9 +1733,9 @@ function lr() {
|
|
|
1744
1733
|
}, n.add = function(d, h) {
|
|
1745
1734
|
var g, w = this;
|
|
1746
1735
|
d = Number(d);
|
|
1747
|
-
var D = S.p(h), Y = function(
|
|
1736
|
+
var D = S.p(h), Y = function(_) {
|
|
1748
1737
|
var J = O(w);
|
|
1749
|
-
return S.w(J.date(J.date() + Math.round(
|
|
1738
|
+
return S.w(J.date(J.date() + Math.round(_ * d)), w);
|
|
1750
1739
|
};
|
|
1751
1740
|
if (D === B) return this.set(B, this.$M + d);
|
|
1752
1741
|
if (D === z) return this.set(z, this.$y + d);
|
|
@@ -1759,9 +1748,9 @@ function lr() {
|
|
|
1759
1748
|
}, n.format = function(d) {
|
|
1760
1749
|
var h = this, g = this.$locale();
|
|
1761
1750
|
if (!this.isValid()) return g.invalidDate || p;
|
|
1762
|
-
var w = d || "YYYY-MM-DDTHH:mm:ssZ", D = S.z(this), Y = this.$H, I = this.$m, N = this.$M,
|
|
1751
|
+
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(Z, K, no, co) {
|
|
1763
1752
|
return Z && (Z[K] || Z(h, w)) || no[K].slice(0, co);
|
|
1764
|
-
},
|
|
1753
|
+
}, go = function(Z) {
|
|
1765
1754
|
return S.s(Y % 12 || 12, Z, "0");
|
|
1766
1755
|
}, ro = lo || function(Z, K, no) {
|
|
1767
1756
|
var co = Z < 12 ? "AM" : "PM";
|
|
@@ -1789,19 +1778,19 @@ function lr() {
|
|
|
1789
1778
|
case "d":
|
|
1790
1779
|
return String(h.$W);
|
|
1791
1780
|
case "dd":
|
|
1792
|
-
return ao(g.weekdaysMin, h.$W,
|
|
1781
|
+
return ao(g.weekdaysMin, h.$W, _, 2);
|
|
1793
1782
|
case "ddd":
|
|
1794
|
-
return ao(g.weekdaysShort, h.$W,
|
|
1783
|
+
return ao(g.weekdaysShort, h.$W, _, 3);
|
|
1795
1784
|
case "dddd":
|
|
1796
|
-
return
|
|
1785
|
+
return _[h.$W];
|
|
1797
1786
|
case "H":
|
|
1798
1787
|
return String(Y);
|
|
1799
1788
|
case "HH":
|
|
1800
1789
|
return S.s(Y, 2, "0");
|
|
1801
1790
|
case "h":
|
|
1802
|
-
return
|
|
1791
|
+
return go(1);
|
|
1803
1792
|
case "hh":
|
|
1804
|
-
return
|
|
1793
|
+
return go(2);
|
|
1805
1794
|
case "a":
|
|
1806
1795
|
return ro(Y, I, !0);
|
|
1807
1796
|
case "A":
|
|
@@ -1825,7 +1814,7 @@ function lr() {
|
|
|
1825
1814
|
}, n.utcOffset = function() {
|
|
1826
1815
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1827
1816
|
}, n.diff = function(d, h, g) {
|
|
1828
|
-
var w, D = this, Y = S.p(h), I = O(d), N = (I.utcOffset() - this.utcOffset()) * t,
|
|
1817
|
+
var w, D = this, Y = S.p(h), I = O(d), N = (I.utcOffset() - this.utcOffset()) * t, _ = this - I, J = function() {
|
|
1829
1818
|
return S.m(D, I);
|
|
1830
1819
|
};
|
|
1831
1820
|
switch (Y) {
|
|
@@ -1839,22 +1828,22 @@ function lr() {
|
|
|
1839
1828
|
w = J() / 3;
|
|
1840
1829
|
break;
|
|
1841
1830
|
case $:
|
|
1842
|
-
w = (
|
|
1831
|
+
w = (_ - N) / 6048e5;
|
|
1843
1832
|
break;
|
|
1844
1833
|
case b:
|
|
1845
|
-
w = (
|
|
1834
|
+
w = (_ - N) / 864e5;
|
|
1846
1835
|
break;
|
|
1847
1836
|
case l:
|
|
1848
|
-
w =
|
|
1837
|
+
w = _ / a;
|
|
1849
1838
|
break;
|
|
1850
1839
|
case m:
|
|
1851
|
-
w =
|
|
1840
|
+
w = _ / t;
|
|
1852
1841
|
break;
|
|
1853
1842
|
case i:
|
|
1854
|
-
w =
|
|
1843
|
+
w = _ / e;
|
|
1855
1844
|
break;
|
|
1856
1845
|
default:
|
|
1857
|
-
w =
|
|
1846
|
+
w = _;
|
|
1858
1847
|
}
|
|
1859
1848
|
return g ? w : S.a(w);
|
|
1860
1849
|
}, n.daysInMonth = function() {
|
|
@@ -1876,26 +1865,26 @@ function lr() {
|
|
|
1876
1865
|
}, n.toString = function() {
|
|
1877
1866
|
return this.$d.toUTCString();
|
|
1878
1867
|
}, s;
|
|
1879
|
-
})(), u =
|
|
1868
|
+
})(), u = U.prototype;
|
|
1880
1869
|
return O.prototype = u, [["$ms", c], ["$s", i], ["$m", m], ["$H", l], ["$W", b], ["$M", B], ["$y", z], ["$D", y]].forEach((function(s) {
|
|
1881
1870
|
u[s[1]] = function(n) {
|
|
1882
1871
|
return this.$g(n, s[0], s[1]);
|
|
1883
1872
|
};
|
|
1884
1873
|
})), O.extend = function(s, n) {
|
|
1885
|
-
return s.$i || (s(n,
|
|
1874
|
+
return s.$i || (s(n, U, O), s.$i = !0), O;
|
|
1886
1875
|
}, O.locale = j, O.isDayjs = A, O.unix = function(s) {
|
|
1887
1876
|
return O(1e3 * s);
|
|
1888
1877
|
}, O.en = W[V], O.Ls = W, O.p = {}, O;
|
|
1889
1878
|
}));
|
|
1890
1879
|
})($o)), $o.exports;
|
|
1891
1880
|
}
|
|
1892
|
-
var Lu =
|
|
1881
|
+
var Lu = dr();
|
|
1893
1882
|
const eo = /* @__PURE__ */ vo(Lu);
|
|
1894
|
-
var Co = { exports: {} }, Tu = Co.exports,
|
|
1883
|
+
var Co = { exports: {} }, Tu = Co.exports, Xo;
|
|
1895
1884
|
function Wu() {
|
|
1896
|
-
return
|
|
1885
|
+
return Xo || (Xo = 1, (function(o, r) {
|
|
1897
1886
|
(function(e, t) {
|
|
1898
|
-
o.exports = t(
|
|
1887
|
+
o.exports = t(dr());
|
|
1899
1888
|
})(Tu, (function(e) {
|
|
1900
1889
|
function t(i) {
|
|
1901
1890
|
return i && typeof i == "object" && "default" in i ? i : { default: i };
|
|
@@ -1908,9 +1897,9 @@ function Wu() {
|
|
|
1908
1897
|
})(Co)), Co.exports;
|
|
1909
1898
|
}
|
|
1910
1899
|
Wu();
|
|
1911
|
-
var xo = { exports: {} }, Fu = xo.exports,
|
|
1900
|
+
var xo = { exports: {} }, Fu = xo.exports, Zo;
|
|
1912
1901
|
function ju() {
|
|
1913
|
-
return
|
|
1902
|
+
return Zo || (Zo = 1, (function(o, r) {
|
|
1914
1903
|
(function(e, t) {
|
|
1915
1904
|
o.exports = t();
|
|
1916
1905
|
})(Fu, (function() {
|
|
@@ -1969,9 +1958,9 @@ function ju() {
|
|
|
1969
1958
|
function p(f) {
|
|
1970
1959
|
var v, C;
|
|
1971
1960
|
v = f, C = l && l.formats;
|
|
1972
|
-
for (var x = (f = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(O, S,
|
|
1973
|
-
var u =
|
|
1974
|
-
return S || C[
|
|
1961
|
+
for (var x = (f = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(O, S, U) {
|
|
1962
|
+
var u = U && U.toUpperCase();
|
|
1963
|
+
return S || C[U] || e[U] || C[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(s, n, d) {
|
|
1975
1964
|
return n || d.slice(1);
|
|
1976
1965
|
}));
|
|
1977
1966
|
}))).match(t), L = x.length, V = 0; V < L; V += 1) {
|
|
@@ -1979,8 +1968,8 @@ function ju() {
|
|
|
1979
1968
|
x[V] = j ? { regex: A, parser: j } : W.replace(/^\[|\]$/g, "");
|
|
1980
1969
|
}
|
|
1981
1970
|
return function(O) {
|
|
1982
|
-
for (var S = {},
|
|
1983
|
-
var s = x[
|
|
1971
|
+
for (var S = {}, U = 0, u = 0; U < L; U += 1) {
|
|
1972
|
+
var s = x[U];
|
|
1984
1973
|
if (typeof s == "string") u += s.length;
|
|
1985
1974
|
else {
|
|
1986
1975
|
var n = s.regex, d = s.parser, h = O.slice(u), g = n.exec(h)[0];
|
|
@@ -2004,18 +1993,18 @@ function ju() {
|
|
|
2004
1993
|
this.$u = F;
|
|
2005
1994
|
var j = A[1];
|
|
2006
1995
|
if (typeof j == "string") {
|
|
2007
|
-
var O = A[2] === !0, S = A[3] === !0,
|
|
1996
|
+
var O = A[2] === !0, S = A[3] === !0, U = O || S, u = A[2];
|
|
2008
1997
|
S && (u = A[2]), l = this.$locale(), !O && u && (l = C.Ls[u]), this.$d = (function(h, g, w, D) {
|
|
2009
1998
|
try {
|
|
2010
1999
|
if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * h);
|
|
2011
|
-
var Y = p(g)(h), I = Y.year, N = Y.month,
|
|
2000
|
+
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, Z = Y.week, K = /* @__PURE__ */ new Date(), no = _ || (I || N ? 1 : K.getDate()), co = I || K.getFullYear(), ko = 0;
|
|
2012
2001
|
I && !N || (ko = N > 0 ? N - 1 : K.getMonth());
|
|
2013
|
-
var yo, Oo = J || 0, Lo = lo || 0, To = ao || 0, Wo =
|
|
2002
|
+
var yo, Oo = J || 0, Lo = lo || 0, To = ao || 0, Wo = go || 0;
|
|
2014
2003
|
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), Z && (yo = D(yo).week(Z).toDate()), yo);
|
|
2015
2004
|
} catch {
|
|
2016
2005
|
return /* @__PURE__ */ new Date("");
|
|
2017
2006
|
}
|
|
2018
|
-
})(W, j, F, C), this.init(), u && u !== !0 && (this.$L = this.locale(u).$L),
|
|
2007
|
+
})(W, j, F, C), this.init(), u && u !== !0 && (this.$L = this.locale(u).$L), U && W != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
2019
2008
|
} else if (j instanceof Array) for (var s = j.length, n = 1; n <= s; n += 1) {
|
|
2020
2009
|
A[1] = j[n - 1];
|
|
2021
2010
|
var d = C.apply(this, A);
|
|
@@ -2033,9 +2022,9 @@ function ju() {
|
|
|
2033
2022
|
}
|
|
2034
2023
|
var Iu = ju();
|
|
2035
2024
|
const Hu = /* @__PURE__ */ vo(Iu);
|
|
2036
|
-
var wo = { exports: {} }, Au = wo.exports,
|
|
2025
|
+
var wo = { exports: {} }, Au = wo.exports, Go;
|
|
2037
2026
|
function Nu() {
|
|
2038
|
-
return
|
|
2027
|
+
return Go || (Go = 1, (function(o, r) {
|
|
2039
2028
|
(function(e, t) {
|
|
2040
2029
|
o.exports = t();
|
|
2041
2030
|
})(Au, (function() {
|
|
@@ -2060,9 +2049,9 @@ function Nu() {
|
|
|
2060
2049
|
}
|
|
2061
2050
|
var Pu = Nu();
|
|
2062
2051
|
const qu = /* @__PURE__ */ vo(Pu);
|
|
2063
|
-
var Bo = { exports: {} }, Eu = Bo.exports,
|
|
2052
|
+
var Bo = { exports: {} }, Eu = Bo.exports, Jo;
|
|
2064
2053
|
function Uu() {
|
|
2065
|
-
return
|
|
2054
|
+
return Jo || (Jo = 1, (function(o, r) {
|
|
2066
2055
|
(function(e, t) {
|
|
2067
2056
|
o.exports = t();
|
|
2068
2057
|
})(Eu, (function() {
|
|
@@ -2137,9 +2126,9 @@ function Uu() {
|
|
|
2137
2126
|
}
|
|
2138
2127
|
var _u = Uu();
|
|
2139
2128
|
const Xu = /* @__PURE__ */ vo(_u);
|
|
2140
|
-
var Ro = { exports: {} }, Zu = Ro.exports,
|
|
2129
|
+
var Ro = { exports: {} }, Zu = Ro.exports, Qo;
|
|
2141
2130
|
function Gu() {
|
|
2142
|
-
return
|
|
2131
|
+
return Qo || (Qo = 1, (function(o, r) {
|
|
2143
2132
|
(function(e, t) {
|
|
2144
2133
|
o.exports = t();
|
|
2145
2134
|
})(Zu, (function() {
|
|
@@ -2227,7 +2216,7 @@ const Ku = [
|
|
|
2227
2216
|
const r = eo(o);
|
|
2228
2217
|
return r.isValid() ? r : null;
|
|
2229
2218
|
};
|
|
2230
|
-
function
|
|
2219
|
+
function Ko(o) {
|
|
2231
2220
|
const r = to(o);
|
|
2232
2221
|
return r ? r.startOf("day").toDate() : null;
|
|
2233
2222
|
}
|
|
@@ -2285,7 +2274,7 @@ function L0(o, r) {
|
|
|
2285
2274
|
function T0(o) {
|
|
2286
2275
|
return o == null ? "" : String(o).toLowerCase().trim().split(/\s+/).map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" ");
|
|
2287
2276
|
}
|
|
2288
|
-
function
|
|
2277
|
+
function so(o) {
|
|
2289
2278
|
return o == null ? "" : String(o).replace(/\D/g, "");
|
|
2290
2279
|
}
|
|
2291
2280
|
const W0 = (o) => {
|
|
@@ -2297,7 +2286,7 @@ const W0 = (o) => {
|
|
|
2297
2286
|
maximumFractionDigits: r
|
|
2298
2287
|
});
|
|
2299
2288
|
function of(o) {
|
|
2300
|
-
const r =
|
|
2289
|
+
const r = so(o);
|
|
2301
2290
|
return r.length !== 8 ? o : r.replace(/(\d{5})(\d{3})/, "$1-$2");
|
|
2302
2291
|
}
|
|
2303
2292
|
function j0(o) {
|
|
@@ -2318,7 +2307,7 @@ function I0(o) {
|
|
|
2318
2307
|
return [r, e, t].filter(Boolean).join(" ");
|
|
2319
2308
|
}
|
|
2320
2309
|
function H0(o) {
|
|
2321
|
-
const r =
|
|
2310
|
+
const r = so(o);
|
|
2322
2311
|
if (!r) return "";
|
|
2323
2312
|
const e = r.startsWith("55") && r.length > 11 ? r.slice(2) : r;
|
|
2324
2313
|
return e.length === 11 ? e.replace(
|
|
@@ -2329,7 +2318,7 @@ function H0(o) {
|
|
|
2329
2318
|
"($1) $2-$3"
|
|
2330
2319
|
) : o;
|
|
2331
2320
|
}
|
|
2332
|
-
function
|
|
2321
|
+
function or(o, r) {
|
|
2333
2322
|
var e = Object.keys(o);
|
|
2334
2323
|
if (Object.getOwnPropertySymbols) {
|
|
2335
2324
|
var t = Object.getOwnPropertySymbols(o);
|
|
@@ -2342,9 +2331,9 @@ function rr(o, r) {
|
|
|
2342
2331
|
function ho(o) {
|
|
2343
2332
|
for (var r = 1; r < arguments.length; r++) {
|
|
2344
2333
|
var e = arguments[r] != null ? arguments[r] : {};
|
|
2345
|
-
r % 2 ?
|
|
2334
|
+
r % 2 ? or(Object(e), !0).forEach(function(t) {
|
|
2346
2335
|
rf(o, t, e[t]);
|
|
2347
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(e)) :
|
|
2336
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(e)) : or(Object(e)).forEach(function(t) {
|
|
2348
2337
|
Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(e, t));
|
|
2349
2338
|
});
|
|
2350
2339
|
}
|
|
@@ -2369,10 +2358,10 @@ function Vo(o) {
|
|
|
2369
2358
|
$validator: o
|
|
2370
2359
|
};
|
|
2371
2360
|
}
|
|
2372
|
-
function
|
|
2361
|
+
function lr(o) {
|
|
2373
2362
|
return typeof o == "object" ? o.$valid : o;
|
|
2374
2363
|
}
|
|
2375
|
-
function
|
|
2364
|
+
function cr(o) {
|
|
2376
2365
|
return o.$validator || o;
|
|
2377
2366
|
}
|
|
2378
2367
|
function ef(o, r) {
|
|
@@ -2405,7 +2394,7 @@ function nf(o) {
|
|
|
2405
2394
|
let [B, k] = $;
|
|
2406
2395
|
const z = o[B] || {}, y = Object.entries(z).reduce((p, f) => {
|
|
2407
2396
|
let [v, C] = f;
|
|
2408
|
-
const L =
|
|
2397
|
+
const L = cr(C).call(this, k, i, m, ...t), V = lr(L);
|
|
2409
2398
|
if (p.$data[v] = L, p.$data.$invalid = !V || !!p.$data.$invalid, p.$data.$error = p.$data.$invalid, !V) {
|
|
2410
2399
|
let W = C.$message || "";
|
|
2411
2400
|
const F = C.$params || {};
|
|
@@ -2478,30 +2467,30 @@ const bo = (o) => {
|
|
|
2478
2467
|
}
|
|
2479
2468
|
return !!String(o).length;
|
|
2480
2469
|
}, No = (o) => (o = T(o), Array.isArray(o) ? o.length : typeof o == "object" ? Object.keys(o).length : String(o).length);
|
|
2481
|
-
function
|
|
2470
|
+
function uo() {
|
|
2482
2471
|
for (var o = arguments.length, r = new Array(o), e = 0; e < o; e++)
|
|
2483
2472
|
r[e] = arguments[e];
|
|
2484
2473
|
return (t) => (t = T(t), !bo(t) || r.every((a) => (a.lastIndex = 0, a.test(t))));
|
|
2485
2474
|
}
|
|
2486
|
-
var
|
|
2475
|
+
var q = /* @__PURE__ */ Object.freeze({
|
|
2487
2476
|
__proto__: null,
|
|
2488
2477
|
forEach: nf,
|
|
2489
2478
|
len: No,
|
|
2490
2479
|
normalizeValidatorObject: Vo,
|
|
2491
|
-
regex:
|
|
2480
|
+
regex: uo,
|
|
2492
2481
|
req: bo,
|
|
2493
2482
|
unwrap: T,
|
|
2494
|
-
unwrapNormalizedValidator:
|
|
2495
|
-
unwrapValidatorResponse:
|
|
2483
|
+
unwrapNormalizedValidator: cr,
|
|
2484
|
+
unwrapValidatorResponse: lr,
|
|
2496
2485
|
withAsync: af,
|
|
2497
2486
|
withMessage: tf,
|
|
2498
2487
|
withParams: ef
|
|
2499
2488
|
});
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2489
|
+
uo(/^[a-zA-Z]*$/);
|
|
2490
|
+
uo(/^[a-zA-Z0-9]*$/);
|
|
2491
|
+
uo(/^\d*(\.\d+)?$/);
|
|
2503
2492
|
const df = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
|
2504
|
-
var lf =
|
|
2493
|
+
var lf = uo(df), cf = {
|
|
2505
2494
|
$validator: lf,
|
|
2506
2495
|
$message: "Value is not a valid email address",
|
|
2507
2496
|
$params: {
|
|
@@ -2555,7 +2544,7 @@ var pf = {
|
|
|
2555
2544
|
}
|
|
2556
2545
|
};
|
|
2557
2546
|
const bf = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
|
|
2558
|
-
|
|
2547
|
+
uo(bf);
|
|
2559
2548
|
function hf(o) {
|
|
2560
2549
|
return (r) => !bo(r) || (!/\s/.test(r) || r instanceof Date) && +r >= +T(o);
|
|
2561
2550
|
}
|
|
@@ -2574,10 +2563,10 @@ function vf(o) {
|
|
|
2574
2563
|
}
|
|
2575
2564
|
};
|
|
2576
2565
|
}
|
|
2577
|
-
|
|
2578
|
-
|
|
2566
|
+
uo(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
2567
|
+
uo(/^[-]?\d*(\.\d+)?$/);
|
|
2579
2568
|
function kf(o) {
|
|
2580
|
-
const r =
|
|
2569
|
+
const r = so(o);
|
|
2581
2570
|
if (!r || r.length !== 14 || /^(\d)\1+$/.test(r)) return !1;
|
|
2582
2571
|
const e = (m, l) => {
|
|
2583
2572
|
let b = 0;
|
|
@@ -2589,7 +2578,7 @@ function kf(o) {
|
|
|
2589
2578
|
return c === Number(r[12]) && i === Number(r[13]);
|
|
2590
2579
|
}
|
|
2591
2580
|
function yf(o) {
|
|
2592
|
-
const r =
|
|
2581
|
+
const r = so(o);
|
|
2593
2582
|
if (!r || r.length !== 11 || /^(\d)\1+$/.test(r)) return !1;
|
|
2594
2583
|
const e = (c, i) => {
|
|
2595
2584
|
let m = 0;
|
|
@@ -2603,10 +2592,10 @@ function yf(o) {
|
|
|
2603
2592
|
function $f(o, r = /* @__PURE__ */ new Date()) {
|
|
2604
2593
|
const e = zo(o);
|
|
2605
2594
|
if (!e) return !1;
|
|
2606
|
-
const t =
|
|
2607
|
-
return
|
|
2595
|
+
const t = Ko(r);
|
|
2596
|
+
return Ko(e) > t;
|
|
2608
2597
|
}
|
|
2609
|
-
function
|
|
2598
|
+
function rr(o) {
|
|
2610
2599
|
const r = zo(o);
|
|
2611
2600
|
return !!r && eo(r).isValid();
|
|
2612
2601
|
}
|
|
@@ -2616,11 +2605,11 @@ function Cf(o) {
|
|
|
2616
2605
|
return !(r instanceof Date) || !(e instanceof Date) ? !1 : e >= r;
|
|
2617
2606
|
}
|
|
2618
2607
|
function xf(o) {
|
|
2619
|
-
const r =
|
|
2608
|
+
const r = so(o || "");
|
|
2620
2609
|
return r ? r.length === 11 : !0;
|
|
2621
2610
|
}
|
|
2622
2611
|
function wf(o) {
|
|
2623
|
-
const r =
|
|
2612
|
+
const r = so(o || "");
|
|
2624
2613
|
return r ? r.length === 10 : !0;
|
|
2625
2614
|
}
|
|
2626
2615
|
function Bf(o) {
|
|
@@ -2648,47 +2637,47 @@ function Mf(o) {
|
|
|
2648
2637
|
return !c || Sf(c) ? !1 : t.test(a);
|
|
2649
2638
|
});
|
|
2650
2639
|
}
|
|
2651
|
-
const
|
|
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(
|
|
2652
2641
|
"Informe nome e sobrenome.",
|
|
2653
|
-
|
|
2654
|
-
), q0 =
|
|
2642
|
+
fo(Mf)
|
|
2643
|
+
), q0 = q.withMessage(
|
|
2655
2644
|
"Informe apenas números.",
|
|
2656
|
-
|
|
2657
|
-
), E0 =
|
|
2645
|
+
fo(Rf)
|
|
2646
|
+
), E0 = q.withMessage(
|
|
2658
2647
|
"CEP inválido.",
|
|
2659
|
-
|
|
2660
|
-
), U0 =
|
|
2648
|
+
fo(Bf)
|
|
2649
|
+
), U0 = q.withMessage("CNPJ inválido.", fo(kf)), _0 = q.withMessage("CPF inválido.", fo(yf)), X0 = q.withMessage(
|
|
2661
2650
|
"Nº celular inválido.",
|
|
2662
|
-
|
|
2663
|
-
), Z0 =
|
|
2651
|
+
fo((o) => xf(so(o)))
|
|
2652
|
+
), Z0 = q.withMessage(
|
|
2664
2653
|
"Nº telefone inválido.",
|
|
2665
|
-
|
|
2666
|
-
), G0 =
|
|
2654
|
+
fo((o) => wf(so(o)))
|
|
2655
|
+
), G0 = q.withMessage(
|
|
2667
2656
|
"Data inválida.",
|
|
2668
|
-
(o) => o == null || o === "" ? !0 : o instanceof Date ?
|
|
2669
|
-
), J0 =
|
|
2657
|
+
(o) => o == null || o === "" ? !0 : o instanceof Date ? rr(o) : rr(zo(o))
|
|
2658
|
+
), J0 = q.withMessage(
|
|
2670
2659
|
"Data não pode ser maior que hoje.",
|
|
2671
|
-
|
|
2672
|
-
), Q0 =
|
|
2660
|
+
fo((o) => !$f(zo(o)))
|
|
2661
|
+
), Q0 = q.withMessage(
|
|
2673
2662
|
"Intervalo de datas inválido.",
|
|
2674
2663
|
(o) => o == null ? !0 : Cf(o)
|
|
2675
2664
|
);
|
|
2676
2665
|
function K0(o, r) {
|
|
2677
|
-
return
|
|
2666
|
+
return q.withMessage(
|
|
2678
2667
|
r || `Informe no máximo ${o} caracteres.`,
|
|
2679
|
-
(e) =>
|
|
2668
|
+
(e) => q.req(e) ? uf(o).$validator(String(e)) : !0
|
|
2680
2669
|
);
|
|
2681
2670
|
}
|
|
2682
2671
|
function og(o, r) {
|
|
2683
|
-
return
|
|
2672
|
+
return q.withMessage(
|
|
2684
2673
|
r || `Informe no mínimo ${o} caracteres.`,
|
|
2685
|
-
(e) =>
|
|
2674
|
+
(e) => q.req(e) ? gf(o).$validator(String(e)) : !0
|
|
2686
2675
|
);
|
|
2687
2676
|
}
|
|
2688
2677
|
function rg(o, r) {
|
|
2689
|
-
return
|
|
2678
|
+
return q.withMessage(
|
|
2690
2679
|
r || `Valor mínimo é ${o}.`,
|
|
2691
|
-
(e) =>
|
|
2680
|
+
(e) => q.req(e) ? vf(o).$validator(Number(e)) : !0
|
|
2692
2681
|
);
|
|
2693
2682
|
}
|
|
2694
2683
|
export {
|
|
@@ -2733,9 +2722,9 @@ export {
|
|
|
2733
2722
|
H0 as formatPhone,
|
|
2734
2723
|
S0 as formatTime,
|
|
2735
2724
|
M0 as formatWeekday,
|
|
2736
|
-
|
|
2725
|
+
so as onlyNumber,
|
|
2737
2726
|
y0 as setupPrimeVue,
|
|
2738
|
-
|
|
2727
|
+
Ko as startOfDay,
|
|
2739
2728
|
T0 as toCamelCaseWords,
|
|
2740
2729
|
zo as toDate,
|
|
2741
2730
|
x0 as today,
|