@arkyn/components 3.0.1-beta.146 → 3.0.1-beta.147
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/bundle.css +1 -1
- package/dist/bundle.js +190 -151
- package/dist/components/fullCalendar/_fullCalendarProvider.d.ts +9 -1
- package/dist/components/fullCalendar/_fullCalendarProvider.d.ts.map +1 -1
- package/dist/components/fullCalendar/_fullCalendarProvider.js +2 -0
- package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts.map +1 -1
- package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +16 -12
- package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts.map +1 -1
- package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +16 -1
- package/dist/components/fullCalendar/fullCalendarHeader/index.js +3 -3
- package/dist/components/fullCalendar/index.d.ts +62 -48
- package/dist/components/fullCalendar/index.d.ts.map +1 -1
- package/dist/components/fullCalendar/index.js +26 -36
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts.map +1 -1
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +8 -4
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts.map +1 -1
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +17 -1
- package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts.map +1 -1
- package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +16 -12
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts.map +1 -1
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +17 -6
- package/dist/components/imageUpload/index.js +1 -1
- package/dist/components/input/index.d.ts.map +1 -1
- package/dist/components/multiSelect/index.js +1 -1
- package/dist/components/radio/radioGroup/index.js +1 -1
- package/dist/components/richText/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
|
@@ -694,7 +694,7 @@ function $e({ children: e }) {
|
|
|
694
694
|
}
|
|
695
695
|
//#endregion
|
|
696
696
|
//#region src/services/fieldTemplate.tsx
|
|
697
|
-
function
|
|
697
|
+
function et(e) {
|
|
698
698
|
let { name: t, label: n, showAsterisk: r, className: i, unShowFieldTemplate: a, errorMessage: o, children: s, orientation: c } = e;
|
|
699
699
|
return a ? s : /* @__PURE__ */ m(Ve, {
|
|
700
700
|
id: t,
|
|
@@ -712,7 +712,7 @@ function $(e) {
|
|
|
712
712
|
}
|
|
713
713
|
//#endregion
|
|
714
714
|
//#region src/components/select/selectChevron/index.tsx
|
|
715
|
-
function
|
|
715
|
+
function tt(e) {
|
|
716
716
|
let { iconSize: t, isLoading: n, disabled: r, readOnly: i, isFocused: a } = e;
|
|
717
717
|
return n ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(C, {
|
|
718
718
|
className: `arkynSelectChevron ${r || i ? "notAnimate" : ""} ${a ? "focused" : ""}`,
|
|
@@ -727,7 +727,7 @@ function et(e) {
|
|
|
727
727
|
}
|
|
728
728
|
//#endregion
|
|
729
729
|
//#region src/components/select/selectContainer/index.tsx
|
|
730
|
-
function
|
|
730
|
+
function nt(e) {
|
|
731
731
|
let { children: t, handleContainerFocus: n, disabled: r, isError: i, isLoading: a, isFocused: o, className: s, readOnly: c, variant: l, size: u, id: d, prefixExists: f } = e;
|
|
732
732
|
return /* @__PURE__ */ p("section", {
|
|
733
733
|
id: d,
|
|
@@ -738,7 +738,7 @@ function tt(e) {
|
|
|
738
738
|
}
|
|
739
739
|
//#endregion
|
|
740
740
|
//#region src/components/select/selectContent/index.tsx
|
|
741
|
-
function
|
|
741
|
+
function rt(e) {
|
|
742
742
|
let { children: t, size: n } = e;
|
|
743
743
|
return /* @__PURE__ */ p("div", {
|
|
744
744
|
className: `arkynSelectContent ${n}`,
|
|
@@ -747,7 +747,7 @@ function nt(e) {
|
|
|
747
747
|
}
|
|
748
748
|
//#endregion
|
|
749
749
|
//#region src/components/select/selectOption/index.tsx
|
|
750
|
-
function
|
|
750
|
+
function it(e) {
|
|
751
751
|
let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a } = e;
|
|
752
752
|
return /* @__PURE__ */ m("div", {
|
|
753
753
|
onClick: () => r(i),
|
|
@@ -761,13 +761,13 @@ function rt(e) {
|
|
|
761
761
|
}
|
|
762
762
|
//#endregion
|
|
763
763
|
//#region src/hooks/useScrollLock.ts
|
|
764
|
-
function
|
|
764
|
+
function at() {
|
|
765
765
|
return typeof window > "u" ? 0 : window.innerWidth - document.documentElement.clientWidth;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function ot(e) {
|
|
768
768
|
o(() => {
|
|
769
769
|
if (e) {
|
|
770
|
-
let e = document.body.style.overflow, t = document.body.style.paddingRight, n =
|
|
770
|
+
let e = document.body.style.overflow, t = document.body.style.paddingRight, n = at();
|
|
771
771
|
if (n > 0) {
|
|
772
772
|
let e = window.getComputedStyle(document.body), t = parseInt(e.paddingRight) || 0;
|
|
773
773
|
document.body.style.paddingRight = `${t + n}px`;
|
|
@@ -780,7 +780,7 @@ function at(e) {
|
|
|
780
780
|
}
|
|
781
781
|
//#endregion
|
|
782
782
|
//#region src/components/input/index.tsx
|
|
783
|
-
function
|
|
783
|
+
function st(e) {
|
|
784
784
|
let { name: t, disabled: n, title: r, style: i, variant: a = "solid", label: o, className: c = "", prefix: d, suffix: f, isLoading: h = !1, leftIcon: g, readOnly: _, onFocus: v, onBlur: y, unShowFieldTemplate: b = !1, errorMessage: x, showAsterisk: S, rightIcon: C, type: w = "text", size: T = "md", id: E, value: D, placeholder: O, orientation: k, ...A } = e, { fieldErrors: j } = X(), [M, N] = u(!1), P = l(null), F = E || s(), I = x || j?.[t], R = !!I, z = n || h, B = {
|
|
785
785
|
md: 20,
|
|
786
786
|
lg: 20
|
|
@@ -800,7 +800,7 @@ function ot(e) {
|
|
|
800
800
|
type: "text",
|
|
801
801
|
ref: P,
|
|
802
802
|
...A
|
|
803
|
-
}) : /* @__PURE__ */ p(
|
|
803
|
+
}) : /* @__PURE__ */ p(et, {
|
|
804
804
|
name: t,
|
|
805
805
|
label: o,
|
|
806
806
|
showAsterisk: S,
|
|
@@ -865,9 +865,9 @@ function ot(e) {
|
|
|
865
865
|
}
|
|
866
866
|
//#endregion
|
|
867
867
|
//#region src/components/select/selectOptionsContainer/index.tsx
|
|
868
|
-
function
|
|
868
|
+
function ct(e) {
|
|
869
869
|
let { children: t, isFocused: n, isSearchable: r, search: i, onSearch: a } = e, s = l(null), [c, d] = u("bottom");
|
|
870
|
-
|
|
870
|
+
ot(n), o(() => {
|
|
871
871
|
n && (() => {
|
|
872
872
|
if (!s.current) return;
|
|
873
873
|
let e = s.current.parentElement;
|
|
@@ -882,7 +882,7 @@ function st(e) {
|
|
|
882
882
|
return n ? /* @__PURE__ */ m("div", {
|
|
883
883
|
ref: s,
|
|
884
884
|
className: `arkynSelectOptionsContainer ${c}`,
|
|
885
|
-
children: [r && /* @__PURE__ */ p(
|
|
885
|
+
children: [r && /* @__PURE__ */ p(st, {
|
|
886
886
|
type: "search",
|
|
887
887
|
name: "search-select",
|
|
888
888
|
variant: "underline",
|
|
@@ -894,7 +894,7 @@ function st(e) {
|
|
|
894
894
|
}
|
|
895
895
|
//#endregion
|
|
896
896
|
//#region src/components/select/selectOverlay/index.tsx
|
|
897
|
-
function
|
|
897
|
+
function lt(e) {
|
|
898
898
|
let { isFocused: t, handleBlur: n } = e;
|
|
899
899
|
return t ? /* @__PURE__ */ p("aside", {
|
|
900
900
|
className: "arkynSelectOverlay",
|
|
@@ -903,7 +903,7 @@ function ct(e) {
|
|
|
903
903
|
}
|
|
904
904
|
//#endregion
|
|
905
905
|
//#region src/components/select/selectSpinner/index.tsx
|
|
906
|
-
function
|
|
906
|
+
function ut(e) {
|
|
907
907
|
let { iconSize: t, isLoading: n } = e;
|
|
908
908
|
return n ? /* @__PURE__ */ p(L, {
|
|
909
909
|
className: "arkynSelectSpinner",
|
|
@@ -913,8 +913,8 @@ function lt(e) {
|
|
|
913
913
|
}
|
|
914
914
|
//#endregion
|
|
915
915
|
//#region src/components/select/index.tsx
|
|
916
|
-
function
|
|
917
|
-
let { name: t, options: n, className: r = "", placeholder: i = "Selecione...", closeOnSelect: a = !0, defaultValue: o = "", errorMessage: c, isLoading: d = !1, readOnly: f = !1, isSearchable: h = !1, id: g, label: _, optionMaxHeight: v, showAsterisk: y, leftIcon: b, onSearch: x, onChange: S, onBlur: C, notFoundText: w = "Sem opções disponíveis", onFocus: T, disabled: E = !1, prefix: D, size: O = "md", value: k, variant: A = "solid", orientation: j = "
|
|
916
|
+
function dt(e) {
|
|
917
|
+
let { name: t, options: n, className: r = "", placeholder: i = "Selecione...", closeOnSelect: a = !0, defaultValue: o = "", errorMessage: c, isLoading: d = !1, readOnly: f = !1, isSearchable: h = !1, id: g, label: _, optionMaxHeight: v, showAsterisk: y, leftIcon: b, onSearch: x, onChange: S, onBlur: C, notFoundText: w = "Sem opções disponíveis", onFocus: T, disabled: E = !1, prefix: D, size: O = "md", value: k, variant: A = "solid", orientation: j = "vertical", unShowFieldTemplate: M = !1 } = e, { fieldErrors: N } = X(), P = l(null), F = g || s(), I = c || N?.[t], L = !!I, R = E || d || f, z = {
|
|
918
918
|
md: 20,
|
|
919
919
|
lg: 20
|
|
920
920
|
}[O], [B, V] = u(""), [H, U] = u(!1), [W, G] = u(o), K = k || W;
|
|
@@ -937,7 +937,7 @@ function ut(e) {
|
|
|
937
937
|
q(e) ? (G(""), S && S("")) : (G(e), S && S(e)), a && te();
|
|
938
938
|
}
|
|
939
939
|
let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
|
|
940
|
-
return /* @__PURE__ */ p(
|
|
940
|
+
return /* @__PURE__ */ p(et, {
|
|
941
941
|
name: t,
|
|
942
942
|
label: _,
|
|
943
943
|
showAsterisk: y,
|
|
@@ -945,7 +945,7 @@ function ut(e) {
|
|
|
945
945
|
errorMessage: I,
|
|
946
946
|
unShowFieldTemplate: M,
|
|
947
947
|
orientation: j,
|
|
948
|
-
children: /* @__PURE__ */ m(
|
|
948
|
+
children: /* @__PURE__ */ m(nt, {
|
|
949
949
|
handleContainerFocus: J,
|
|
950
950
|
disabled: R,
|
|
951
951
|
isError: L,
|
|
@@ -972,19 +972,19 @@ function ut(e) {
|
|
|
972
972
|
size: z,
|
|
973
973
|
strokeWidth: 2.5
|
|
974
974
|
}),
|
|
975
|
-
/* @__PURE__ */ m(
|
|
975
|
+
/* @__PURE__ */ m(rt, {
|
|
976
976
|
size: O,
|
|
977
977
|
children: [K !== "" && /* @__PURE__ */ p("p", {
|
|
978
978
|
className: "hasValue",
|
|
979
979
|
children: ee(K)
|
|
980
980
|
}), K === "" && /* @__PURE__ */ p("p", { children: i })]
|
|
981
981
|
}),
|
|
982
|
-
/* @__PURE__ */ m(
|
|
982
|
+
/* @__PURE__ */ m(ct, {
|
|
983
983
|
isFocused: H,
|
|
984
984
|
isSearchable: h,
|
|
985
985
|
search: B,
|
|
986
986
|
onSearch: ne,
|
|
987
|
-
children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(
|
|
987
|
+
children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(it, {
|
|
988
988
|
label: e,
|
|
989
989
|
value: t,
|
|
990
990
|
size: O,
|
|
@@ -992,18 +992,18 @@ function ut(e) {
|
|
|
992
992
|
optionHasSelected: q
|
|
993
993
|
}, t)), ie.length <= 0 && /* @__PURE__ */ p("p", { children: w })]
|
|
994
994
|
}),
|
|
995
|
-
/* @__PURE__ */ p(
|
|
995
|
+
/* @__PURE__ */ p(tt, {
|
|
996
996
|
disabled: R,
|
|
997
997
|
isFocused: H,
|
|
998
998
|
readOnly: f,
|
|
999
999
|
iconSize: z,
|
|
1000
1000
|
isLoading: d
|
|
1001
1001
|
}),
|
|
1002
|
-
/* @__PURE__ */ p(
|
|
1002
|
+
/* @__PURE__ */ p(ut, {
|
|
1003
1003
|
iconSize: z,
|
|
1004
1004
|
isLoading: d
|
|
1005
1005
|
}),
|
|
1006
|
-
/* @__PURE__ */ p(
|
|
1006
|
+
/* @__PURE__ */ p(lt, {
|
|
1007
1007
|
handleBlur: te,
|
|
1008
1008
|
isFocused: H
|
|
1009
1009
|
})
|
|
@@ -1013,7 +1013,7 @@ function ut(e) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
//#endregion
|
|
1015
1015
|
//#region src/components/calendar/calendarHeader/index.tsx
|
|
1016
|
-
function
|
|
1016
|
+
function ft({ basicMode: e }) {
|
|
1017
1017
|
let t = Ze();
|
|
1018
1018
|
return e ? /* @__PURE__ */ m("div", {
|
|
1019
1019
|
className: "arkynCalendarHeader",
|
|
@@ -1040,14 +1040,14 @@ function dt({ basicMode: e }) {
|
|
|
1040
1040
|
className: "arkynCalendarButton",
|
|
1041
1041
|
onClick: () => t.nextMonth(),
|
|
1042
1042
|
children: /* @__PURE__ */ p(T, {})
|
|
1043
|
-
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(
|
|
1043
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(dt, {
|
|
1044
1044
|
name: "calendarMonth",
|
|
1045
1045
|
variant: "underline",
|
|
1046
1046
|
className: "calendarMonthSelect",
|
|
1047
1047
|
value: t.currentMonth,
|
|
1048
1048
|
options: t.listMonths,
|
|
1049
1049
|
onChange: (e) => t.changeMonth(+e)
|
|
1050
|
-
}), /* @__PURE__ */ p(
|
|
1050
|
+
}), /* @__PURE__ */ p(dt, {
|
|
1051
1051
|
name: "calendarYear",
|
|
1052
1052
|
variant: "underline",
|
|
1053
1053
|
className: "calendarYearSelect",
|
|
@@ -1059,7 +1059,7 @@ function dt({ basicMode: e }) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
//#endregion
|
|
1061
1061
|
//#region src/components/calendar/calendarTableTd/index.tsx
|
|
1062
|
-
function
|
|
1062
|
+
function pt(e) {
|
|
1063
1063
|
let { day: t, month: n, year: r, dayOwner: i, dayType: a } = e, { changeDay: o } = Ze();
|
|
1064
1064
|
function s() {
|
|
1065
1065
|
let e = /* @__PURE__ */ new Date();
|
|
@@ -1076,15 +1076,15 @@ function ft(e) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
//#endregion
|
|
1078
1078
|
//#region src/components/calendar/calendarTableBody/index.tsx
|
|
1079
|
-
function
|
|
1079
|
+
function mt() {
|
|
1080
1080
|
return /* @__PURE__ */ p("tbody", {
|
|
1081
1081
|
className: "arkynCalendarTableBody",
|
|
1082
|
-
children: Ze().listMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p(
|
|
1082
|
+
children: Ze().listMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p(pt, { ...e }, t)) }, t))
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region src/components/calendar/calendarTableContainer/index.tsx
|
|
1087
|
-
function
|
|
1087
|
+
function ht({ children: e }) {
|
|
1088
1088
|
return /* @__PURE__ */ p("table", {
|
|
1089
1089
|
className: "arkynCalendarTableContainer",
|
|
1090
1090
|
children: e
|
|
@@ -1092,7 +1092,7 @@ function mt({ children: e }) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
//#endregion
|
|
1094
1094
|
//#region src/components/calendar/calendarTableHeader/index.tsx
|
|
1095
|
-
function
|
|
1095
|
+
function gt() {
|
|
1096
1096
|
let { listWeek: e } = Ze();
|
|
1097
1097
|
return /* @__PURE__ */ p("thead", {
|
|
1098
1098
|
className: "arkynCalendarTableHeader",
|
|
@@ -1101,38 +1101,38 @@ function ht() {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
//#endregion
|
|
1103
1103
|
//#region src/components/calendar/index.tsx
|
|
1104
|
-
function
|
|
1104
|
+
function _t(e) {
|
|
1105
1105
|
let t = e.variant || "complete";
|
|
1106
1106
|
return e.type === "range" ? /* @__PURE__ */ p(Qe, {
|
|
1107
1107
|
defaultValue: e.defaultValue,
|
|
1108
1108
|
calendarType: "range",
|
|
1109
1109
|
onChange: e.onChange,
|
|
1110
1110
|
onChangeView: e.onChangeView,
|
|
1111
|
-
children: /* @__PURE__ */ m($e, { children: [/* @__PURE__ */ p(
|
|
1111
|
+
children: /* @__PURE__ */ m($e, { children: [/* @__PURE__ */ p(ft, { basicMode: t.includes("basic") }), /* @__PURE__ */ m(ht, { children: [/* @__PURE__ */ p(gt, {}), /* @__PURE__ */ p(mt, {})] })] })
|
|
1112
1112
|
}) : /* @__PURE__ */ p(Qe, {
|
|
1113
1113
|
defaultValue: e.defaultValue,
|
|
1114
1114
|
calendarType: "single",
|
|
1115
1115
|
onChange: e.onChange,
|
|
1116
1116
|
onChangeView: e.onChangeView,
|
|
1117
|
-
children: /* @__PURE__ */ m($e, { children: [/* @__PURE__ */ p(
|
|
1117
|
+
children: /* @__PURE__ */ m($e, { children: [/* @__PURE__ */ p(ft, { basicMode: t.includes("basic") }), /* @__PURE__ */ m(ht, { children: [/* @__PURE__ */ p(gt, {}), /* @__PURE__ */ p(mt, {})] })] })
|
|
1118
1118
|
});
|
|
1119
1119
|
}
|
|
1120
1120
|
//#endregion
|
|
1121
1121
|
//#region src/components/cardTab/cardTabContext.tsx
|
|
1122
|
-
var
|
|
1123
|
-
function
|
|
1124
|
-
return a(
|
|
1122
|
+
var vt = n({});
|
|
1123
|
+
function yt() {
|
|
1124
|
+
return a(vt);
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return /* @__PURE__ */ p(
|
|
1126
|
+
function bt(e) {
|
|
1127
|
+
return /* @__PURE__ */ p(vt.Provider, {
|
|
1128
1128
|
value: e,
|
|
1129
1129
|
children: e.children
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
1132
|
//#endregion
|
|
1133
1133
|
//#region src/components/cardTab/cardTabButton/index.tsx
|
|
1134
|
-
function
|
|
1135
|
-
let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } =
|
|
1134
|
+
function xt(e) {
|
|
1135
|
+
let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } = yt(), u = s || n, d = `arkynCardTabButton ${u ? "isDisabled" : ""} ${c === a && a ? "isActive" : ""} ${r}`;
|
|
1136
1136
|
function f(e) {
|
|
1137
1137
|
l(a), i && i(e);
|
|
1138
1138
|
}
|
|
@@ -1147,12 +1147,12 @@ function bt(e) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
//#endregion
|
|
1149
1149
|
//#region src/components/cardTab/cardTabContainer/index.tsx
|
|
1150
|
-
function
|
|
1150
|
+
function St(e) {
|
|
1151
1151
|
let { children: t, onChange: n, defaultValue: r, disabled: i = !1, className: a, ...o } = e, [s, c] = u(r || ""), l = `arkynCardTabContainer ${a || ""}`;
|
|
1152
1152
|
function d(e) {
|
|
1153
1153
|
c(e), n && n(e);
|
|
1154
1154
|
}
|
|
1155
|
-
return /* @__PURE__ */ p(
|
|
1155
|
+
return /* @__PURE__ */ p(bt, {
|
|
1156
1156
|
disabled: i,
|
|
1157
1157
|
currentTab: s,
|
|
1158
1158
|
changeCurrentTab: d,
|
|
@@ -1165,13 +1165,13 @@ function xt(e) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
//#endregion
|
|
1167
1167
|
//#region src/components/checkbox/index.tsx
|
|
1168
|
-
function
|
|
1168
|
+
function Ct(e) {
|
|
1169
1169
|
let { id: t, name: n, className: r = "", size: i = "md", errorMessage: a, defaultChecked: o = !1, label: c, checked: d = null, onCheck: f, orientation: h = "horizontalReverse", showAsterisk: g, unShowFieldTemplate: _, value: v, ...y } = e, { fieldErrors: b } = X(), S = l(null), C = t || s(), w = a || b?.[n], T = !!w, [E, D] = u(o || !1), O = typeof d == "boolean" ? d : E, k = `arkynCheckbox ${i} ${T ? "errorTrue" : "errorFalse"} ${O ? "checkedTrue" : "checkedFalse"}`;
|
|
1170
1170
|
function A() {
|
|
1171
1171
|
let e = E;
|
|
1172
1172
|
D(!e), f && f(e ? "" : v || "checked");
|
|
1173
1173
|
}
|
|
1174
|
-
return /* @__PURE__ */ p(
|
|
1174
|
+
return /* @__PURE__ */ p(et, {
|
|
1175
1175
|
name: n,
|
|
1176
1176
|
label: c,
|
|
1177
1177
|
showAsterisk: g,
|
|
@@ -1196,32 +1196,32 @@ function St(e) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
//#endregion
|
|
1198
1198
|
//#region src/hooks/useHydrated.ts
|
|
1199
|
-
function
|
|
1199
|
+
function wt() {
|
|
1200
1200
|
return () => {};
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return d(
|
|
1202
|
+
function Tt() {
|
|
1203
|
+
return d(wt, () => !0, () => !1);
|
|
1204
1204
|
}
|
|
1205
1205
|
//#endregion
|
|
1206
1206
|
//#region src/components/clientOnly.tsx
|
|
1207
|
-
function
|
|
1207
|
+
function Et(e) {
|
|
1208
1208
|
let { children: t, fallback: n = null } = e;
|
|
1209
|
-
return
|
|
1209
|
+
return Tt() ? /* @__PURE__ */ p(f, { children: t() }) : /* @__PURE__ */ p(f, { children: n });
|
|
1210
1210
|
}
|
|
1211
1211
|
//#endregion
|
|
1212
1212
|
//#region src/services/maskCurrencyValues.ts
|
|
1213
|
-
function
|
|
1213
|
+
function Dt(e) {
|
|
1214
1214
|
let t = e;
|
|
1215
1215
|
return typeof e == "string" ? (t = +re(e), t % 1 != 0 && (t = t.toFixed(2))) : t = Number.isInteger(e) ? Number(e) * 10 ** 2 : e.toFixed(2), re(String(t)) / 10 ** 2;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Ot(e, t) {
|
|
1218
1218
|
if (!e) return [0, te(0, t)];
|
|
1219
|
-
let n =
|
|
1219
|
+
let n = Dt(e);
|
|
1220
1220
|
return [n, te(n, t)];
|
|
1221
1221
|
}
|
|
1222
1222
|
//#endregion
|
|
1223
1223
|
//#region src/components/currencyInput/index.tsx
|
|
1224
|
-
function
|
|
1224
|
+
function kt(e) {
|
|
1225
1225
|
let { name: t, disabled: n, title: r, style: i, variant: a = "solid", label: c, className: d = "", value: f, defaultValue: h, max: g = 1e9, locale: _, onChange: v, prefix: y, suffix: b, isLoading: x = !1, leftIcon: S, readOnly: C, onFocus: w, onBlur: T, errorMessage: E, unShowFieldTemplate: D, orientation: O, showAsterisk: k, rightIcon: A, size: j = "md", id: M, ...N } = e, { fieldErrors: P } = X(), [F, I] = u(!1), [R, z] = u("0"), B = l(null), V = M || s(), H = E || P?.[t], U = !!H, W = n || x, G = {
|
|
1226
1226
|
md: 20,
|
|
1227
1227
|
lg: 20
|
|
@@ -1236,21 +1236,21 @@ function Ot(e) {
|
|
|
1236
1236
|
I(!1), T && T(e);
|
|
1237
1237
|
}
|
|
1238
1238
|
let re = (e) => {
|
|
1239
|
-
let [t, n] =
|
|
1240
|
-
return !g || t <= g ? (z(n), [t, n]) :
|
|
1239
|
+
let [t, n] = Ot(e, _);
|
|
1240
|
+
return !g || t <= g ? (z(n), [t, n]) : Ot(e, _);
|
|
1241
1241
|
};
|
|
1242
1242
|
return o(() => {
|
|
1243
1243
|
function e() {
|
|
1244
1244
|
if (typeof f == "number") return f;
|
|
1245
1245
|
if (typeof h == "number") return h;
|
|
1246
1246
|
}
|
|
1247
|
-
let [, t] =
|
|
1247
|
+
let [, t] = Ot(e(), _);
|
|
1248
1248
|
z(t);
|
|
1249
1249
|
}, [
|
|
1250
1250
|
_,
|
|
1251
1251
|
h,
|
|
1252
1252
|
f
|
|
1253
|
-
]), /* @__PURE__ */ p(
|
|
1253
|
+
]), /* @__PURE__ */ p(et, {
|
|
1254
1254
|
name: t,
|
|
1255
1255
|
label: c,
|
|
1256
1256
|
showAsterisk: k,
|
|
@@ -1299,7 +1299,7 @@ function Ot(e) {
|
|
|
1299
1299
|
/* @__PURE__ */ p("input", {
|
|
1300
1300
|
type: "hidden",
|
|
1301
1301
|
name: t,
|
|
1302
|
-
value:
|
|
1302
|
+
value: Dt(R),
|
|
1303
1303
|
readOnly: !0
|
|
1304
1304
|
}),
|
|
1305
1305
|
/* @__PURE__ */ p(Z, {
|
|
@@ -1324,23 +1324,23 @@ function Ot(e) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
//#endregion
|
|
1326
1326
|
//#region src/components/drawer/drawerContext.tsx
|
|
1327
|
-
var
|
|
1328
|
-
function
|
|
1329
|
-
return /* @__PURE__ */ p(
|
|
1327
|
+
var At = n({});
|
|
1328
|
+
function jt(e) {
|
|
1329
|
+
return /* @__PURE__ */ p(At.Provider, {
|
|
1330
1330
|
value: { makeInvisible: e.makeInvisible },
|
|
1331
1331
|
children: e.children
|
|
1332
1332
|
});
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1335
|
-
return a(
|
|
1334
|
+
function Mt() {
|
|
1335
|
+
return a(At);
|
|
1336
1336
|
}
|
|
1337
1337
|
//#endregion
|
|
1338
1338
|
//#region src/components/drawer/drawerContainer/index.tsx
|
|
1339
|
-
function
|
|
1339
|
+
function Nt(e) {
|
|
1340
1340
|
let { isVisible: t, makeInvisible: n, orientation: r = "left", children: i, className: a, ...o } = e;
|
|
1341
|
-
|
|
1341
|
+
ot(t);
|
|
1342
1342
|
let s = r === "left" ? "-100%" : "100%", c = `arkynDrawerContainer ${r} ${t ? "visibleTrue" : "visibleFalse"} ${a}`;
|
|
1343
|
-
return /* @__PURE__ */ p(
|
|
1343
|
+
return /* @__PURE__ */ p(jt, {
|
|
1344
1344
|
makeInvisible: n,
|
|
1345
1345
|
children: /* @__PURE__ */ p(ie, { children: t && /* @__PURE__ */ m("aside", {
|
|
1346
1346
|
className: c.trim(),
|
|
@@ -1371,8 +1371,8 @@ function Mt(e) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
//#endregion
|
|
1373
1373
|
//#region src/components/drawer/drawerHeader/index.tsx
|
|
1374
|
-
function
|
|
1375
|
-
let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } =
|
|
1374
|
+
function Pt(e) {
|
|
1375
|
+
let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = Mt();
|
|
1376
1376
|
return /* @__PURE__ */ m("header", {
|
|
1377
1377
|
className: `arkynDrawerHeader ${n}`.trim(),
|
|
1378
1378
|
...i,
|
|
@@ -1387,7 +1387,7 @@ function Nt(e) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
//#endregion
|
|
1389
1389
|
//#region src/components/facebookPixel/pixel.ts
|
|
1390
|
-
var
|
|
1390
|
+
var Ft = class {
|
|
1391
1391
|
pixelId;
|
|
1392
1392
|
autoConfig;
|
|
1393
1393
|
initialized;
|
|
@@ -1434,18 +1434,18 @@ var Pt = class {
|
|
|
1434
1434
|
};
|
|
1435
1435
|
//#endregion
|
|
1436
1436
|
//#region src/components/facebookPixel/facebookPixel.client.tsx
|
|
1437
|
-
function
|
|
1438
|
-
let { pixelId: t, options: n, pageView: r, track: i, trackCustom: a, trackSingle: o, trackSingleCustom: s, grantConsent: c, revokeConsent: l } = e, u = new
|
|
1437
|
+
function It(e) {
|
|
1438
|
+
let { pixelId: t, options: n, pageView: r, track: i, trackCustom: a, trackSingle: o, trackSingleCustom: s, grantConsent: c, revokeConsent: l } = e, u = new Ft(t, n);
|
|
1439
1439
|
return u.init(), r && u.pageView(), c && u.grantConsent(), l && u.revokeConsent(), i && u.track(...i), a && u.trackCustom(...a), o && u.trackSingle(t, ...o), s && u.trackSingleCustom(t, ...s), /* @__PURE__ */ p(f, {});
|
|
1440
1440
|
}
|
|
1441
1441
|
//#endregion
|
|
1442
1442
|
//#region src/components/facebookPixel/index.tsx
|
|
1443
|
-
function
|
|
1444
|
-
return process.env.NODE_ENV !== "production" && !e.showInDevMode ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(
|
|
1443
|
+
function Lt(e) {
|
|
1444
|
+
return process.env.NODE_ENV !== "production" && !e.showInDevMode ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(Et, { children: () => /* @__PURE__ */ p(It, { ...e }) });
|
|
1445
1445
|
}
|
|
1446
1446
|
//#endregion
|
|
1447
1447
|
//#region src/components/fileUpload/hasFileContent/index.tsx
|
|
1448
|
-
function
|
|
1448
|
+
function Rt(e) {
|
|
1449
1449
|
let { disabled: t, file: n, isLoading: r, acceptFile: i, changeFileButtonText: a, handleSelectFile: o, reSendFile: s } = e;
|
|
1450
1450
|
function c() {
|
|
1451
1451
|
if (t) return;
|
|
@@ -1497,7 +1497,7 @@ function Lt(e) {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
//#endregion
|
|
1499
1499
|
//#region src/components/fileUpload/noFileContent/index.tsx
|
|
1500
|
-
function
|
|
1500
|
+
function zt(e) {
|
|
1501
1501
|
let { dropFileText: t, isLoading: n, acceptFile: r, handleSelectFile: i, selectFileButtonText: a, disabled: o } = e;
|
|
1502
1502
|
function s(e) {
|
|
1503
1503
|
if (o) return;
|
|
@@ -1529,7 +1529,7 @@ function Rt(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
//#endregion
|
|
1531
1531
|
//#region src/components/fileUpload/index.tsx
|
|
1532
|
-
function
|
|
1532
|
+
function Bt(e) {
|
|
1533
1533
|
let { name: t, label: n, showAsterisk: r = !1, action: i, fileName: a = "file", method: o = "POST", acceptFile: s = "*", fileResponseName: c = "url", changeFileButtonText: l = "Alterar arquivo", selectFileButtonText: d = "Selecionar arquivo", dropFileText: f = "Ou arraste e solte o arquivo aqui", onChange: h, disabled: g = !1 } = e, { fieldErrors: _ } = X(), v = _?.[t], [y, b] = u(""), [x, S] = u(""), [C, w] = u(null), [T, E] = u(!1);
|
|
1534
1534
|
async function D(e) {
|
|
1535
1535
|
if (g) return;
|
|
@@ -1561,7 +1561,7 @@ function zt(e) {
|
|
|
1561
1561
|
name: t,
|
|
1562
1562
|
value: y || ""
|
|
1563
1563
|
}),
|
|
1564
|
-
!C && /* @__PURE__ */ p(
|
|
1564
|
+
!C && /* @__PURE__ */ p(zt, {
|
|
1565
1565
|
disabled: g,
|
|
1566
1566
|
isLoading: T,
|
|
1567
1567
|
acceptFile: s,
|
|
@@ -1569,7 +1569,7 @@ function zt(e) {
|
|
|
1569
1569
|
handleSelectFile: O,
|
|
1570
1570
|
selectFileButtonText: d
|
|
1571
1571
|
}),
|
|
1572
|
-
C && /* @__PURE__ */ p(
|
|
1572
|
+
C && /* @__PURE__ */ p(Rt, {
|
|
1573
1573
|
disabled: g,
|
|
1574
1574
|
isLoading: T,
|
|
1575
1575
|
acceptFile: s,
|
|
@@ -1585,7 +1585,7 @@ function zt(e) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
//#endregion
|
|
1587
1587
|
//#region src/components/fullCalendar/_viewService.ts
|
|
1588
|
-
var
|
|
1588
|
+
var Vt = class {
|
|
1589
1589
|
capitalize(e) {
|
|
1590
1590
|
return J(e);
|
|
1591
1591
|
}
|
|
@@ -1681,18 +1681,19 @@ var Bt = class {
|
|
|
1681
1681
|
let n = new Date(e);
|
|
1682
1682
|
n.setDate(n.getDate() - 1), t(n);
|
|
1683
1683
|
}
|
|
1684
|
-
},
|
|
1685
|
-
function
|
|
1686
|
-
return a(
|
|
1684
|
+
}, Ht = n({});
|
|
1685
|
+
function $() {
|
|
1686
|
+
return a(Ht);
|
|
1687
1687
|
}
|
|
1688
1688
|
function Ut(e) {
|
|
1689
|
-
let t = e.language || "pt-BR", n = new
|
|
1689
|
+
let t = e.language || "pt-BR", n = new Vt(), r = n.listHours([8, 18]), [i, a] = u(e.defaultValue || /* @__PURE__ */ new Date());
|
|
1690
1690
|
function o(t) {
|
|
1691
1691
|
e.onChangeView && e.onChangeView(t), a(t);
|
|
1692
1692
|
}
|
|
1693
|
-
return /* @__PURE__ */ p(
|
|
1693
|
+
return /* @__PURE__ */ p(Ht.Provider, {
|
|
1694
1694
|
value: {
|
|
1695
1695
|
events: e.events,
|
|
1696
|
+
blockedTimestamps: e.blockedTimestamps,
|
|
1696
1697
|
viewDate: i,
|
|
1697
1698
|
listHours: r,
|
|
1698
1699
|
listWeek: n.listWeek(i, t),
|
|
@@ -1703,7 +1704,8 @@ function Ut(e) {
|
|
|
1703
1704
|
nextDay: () => n.nextDay(i, o),
|
|
1704
1705
|
previousMonth: () => n.previousMonth(i, o),
|
|
1705
1706
|
previousWeek: () => n.previousWeek(i, o),
|
|
1706
|
-
previousDay: () => n.previousDay(i, o)
|
|
1707
|
+
previousDay: () => n.previousDay(i, o),
|
|
1708
|
+
onClickDate: e.onClickDate
|
|
1707
1709
|
},
|
|
1708
1710
|
children: e.children
|
|
1709
1711
|
});
|
|
@@ -1720,23 +1722,23 @@ function Wt({ children: e }) {
|
|
|
1720
1722
|
//#region src/components/fullCalendar/dayCalendar/dayCalendarEvent/index.tsx
|
|
1721
1723
|
var Gt = 30, Kt = 205;
|
|
1722
1724
|
function qt(e) {
|
|
1723
|
-
let { events: t, viewDate: n } =
|
|
1725
|
+
let { events: t, viewDate: n } = $(), r = n.getDate(), i = n.getMonth(), a = n.getFullYear(), o = t.map((e, t) => ({
|
|
1724
1726
|
event: e,
|
|
1725
1727
|
sourceIndex: t
|
|
1726
|
-
})).filter(({ event: e }) => e.
|
|
1727
|
-
let n = e.event.
|
|
1728
|
+
})).filter(({ event: e }) => e.initialDate.getDate() === r && e.initialDate.getMonth() === i && e.initialDate.getFullYear() === a).sort((e, t) => {
|
|
1729
|
+
let n = e.event.initialDate.getTime(), r = t.event.initialDate.getTime();
|
|
1728
1730
|
if (n !== r) return n - r;
|
|
1729
1731
|
let i = e.event.endDate?.getTime() ?? n + Gt * 6e4, a = t.event.endDate?.getTime() ?? r + Gt * 6e4;
|
|
1730
1732
|
return i === a ? e.sourceIndex - t.sourceIndex : i - a;
|
|
1731
1733
|
}), s = new Map(o.map((e, t) => [e.sourceIndex, t])), c = o.filter(({ event: t }) => {
|
|
1732
1734
|
let n = Math.floor(e.timeInMinutes / 60), o = e.timeInMinutes % 60;
|
|
1733
1735
|
function s() {
|
|
1734
|
-
let e = t.
|
|
1736
|
+
let e = t.initialDate.getHours(), r = t.initialDate.getMinutes();
|
|
1735
1737
|
if (e !== n) return !1;
|
|
1736
1738
|
if (o === 0) return r < 30 && r >= 0;
|
|
1737
1739
|
if (o === 30) return r >= 30 && r < 60;
|
|
1738
1740
|
}
|
|
1739
|
-
return s() && t.
|
|
1741
|
+
return s() && t.initialDate.getDate() === r && t.initialDate.getMonth() === i && t.initialDate.getFullYear() === a;
|
|
1740
1742
|
});
|
|
1741
1743
|
if (c.length === 0) return /* @__PURE__ */ p(f, {});
|
|
1742
1744
|
function l(e, t) {
|
|
@@ -1747,7 +1749,7 @@ function qt(e) {
|
|
|
1747
1749
|
return n === 0 ? `${t}h` : `${t}h${n}`;
|
|
1748
1750
|
}
|
|
1749
1751
|
function d(e) {
|
|
1750
|
-
let t = e.
|
|
1752
|
+
let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + Gt;
|
|
1751
1753
|
return {
|
|
1752
1754
|
startMinutes: t,
|
|
1753
1755
|
endMinutes: Math.max(n, t + 1)
|
|
@@ -1769,12 +1771,15 @@ function qt(e) {
|
|
|
1769
1771
|
left: `${l}px`
|
|
1770
1772
|
};
|
|
1771
1773
|
}
|
|
1774
|
+
function _(e, t) {
|
|
1775
|
+
e.stopPropagation(), t.onClick?.(t.data);
|
|
1776
|
+
}
|
|
1772
1777
|
return c.map(({ event: e, sourceIndex: t }, n) => /* @__PURE__ */ m("div", {
|
|
1773
1778
|
className: `arkynDayCalendarEvent ${e?.scheme || "primary"}`,
|
|
1774
1779
|
style: g(e, t),
|
|
1775
|
-
onClick: () =>
|
|
1780
|
+
onClick: (t) => _(t, e),
|
|
1776
1781
|
children: [/* @__PURE__ */ m("strong", { children: [
|
|
1777
|
-
u(e.
|
|
1782
|
+
u(e.initialDate),
|
|
1778
1783
|
" ",
|
|
1779
1784
|
e?.endDate && `- ${u(e.endDate)}`
|
|
1780
1785
|
] }), /* @__PURE__ */ p("p", { children: e.title })]
|
|
@@ -1783,10 +1788,21 @@ function qt(e) {
|
|
|
1783
1788
|
//#endregion
|
|
1784
1789
|
//#region src/components/fullCalendar/dayCalendar/dayCalendarRow/index.tsx
|
|
1785
1790
|
function Jt({ hour: e, timeInMinutes: t }) {
|
|
1791
|
+
let n = new Vt(), { blockedTimestamps: r, viewDate: i, onClickDate: a } = $();
|
|
1792
|
+
function o() {
|
|
1793
|
+
return r.some((e) => i >= e.initialDate && i <= e.endDate);
|
|
1794
|
+
}
|
|
1795
|
+
function s(e) {
|
|
1796
|
+
if (e.stopPropagation(), !o() && a) {
|
|
1797
|
+
let e = new Date(i);
|
|
1798
|
+
e.setHours(0, t, 0, 0), a(e);
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1786
1801
|
return /* @__PURE__ */ m("div", {
|
|
1787
|
-
className:
|
|
1802
|
+
className: `arkynDayCalendarRow ${o() ? "blocked" : ""}`,
|
|
1788
1803
|
"data-time": t,
|
|
1789
|
-
|
|
1804
|
+
onClick: s,
|
|
1805
|
+
children: [/* @__PURE__ */ p("p", { children: n.formatHourLabel(e) }), /* @__PURE__ */ p("div", {
|
|
1790
1806
|
className: "arkynDayCalendarRowContent",
|
|
1791
1807
|
children: /* @__PURE__ */ p(qt, { timeInMinutes: t })
|
|
1792
1808
|
})]
|
|
@@ -1795,7 +1811,7 @@ function Jt({ hour: e, timeInMinutes: t }) {
|
|
|
1795
1811
|
//#endregion
|
|
1796
1812
|
//#region src/components/fullCalendar/dayCalendar/index.tsx
|
|
1797
1813
|
function Yt() {
|
|
1798
|
-
let { listHours: e } =
|
|
1814
|
+
let { listHours: e } = $();
|
|
1799
1815
|
return /* @__PURE__ */ p(Wt, { children: e.map((e) => /* @__PURE__ */ p(Jt, {
|
|
1800
1816
|
hour: e,
|
|
1801
1817
|
timeInMinutes: e
|
|
@@ -1812,7 +1828,7 @@ function Xt({ children: e }) {
|
|
|
1812
1828
|
//#endregion
|
|
1813
1829
|
//#region src/components/fullCalendar/fullCalendarHeader/index.tsx
|
|
1814
1830
|
function Zt(e) {
|
|
1815
|
-
let { setViewType: t, viewType: n } = e, r =
|
|
1831
|
+
let { setViewType: t, viewType: n } = e, r = $();
|
|
1816
1832
|
function i() {
|
|
1817
1833
|
switch (n) {
|
|
1818
1834
|
case "day": return r.previousDay();
|
|
@@ -1829,19 +1845,19 @@ function Zt(e) {
|
|
|
1829
1845
|
}
|
|
1830
1846
|
return /* @__PURE__ */ m("div", {
|
|
1831
1847
|
className: "arkynFullCalendarHeader",
|
|
1832
|
-
children: [/* @__PURE__ */ m(
|
|
1848
|
+
children: [/* @__PURE__ */ m(St, {
|
|
1833
1849
|
defaultValue: n,
|
|
1834
1850
|
onChange: (e) => t(e),
|
|
1835
1851
|
children: [
|
|
1836
|
-
/* @__PURE__ */ p(
|
|
1852
|
+
/* @__PURE__ */ p(xt, {
|
|
1837
1853
|
value: "day",
|
|
1838
1854
|
children: "Dia"
|
|
1839
1855
|
}),
|
|
1840
|
-
/* @__PURE__ */ p(
|
|
1856
|
+
/* @__PURE__ */ p(xt, {
|
|
1841
1857
|
value: "week",
|
|
1842
1858
|
children: "Semana"
|
|
1843
1859
|
}),
|
|
1844
|
-
/* @__PURE__ */ p(
|
|
1860
|
+
/* @__PURE__ */ p(xt, {
|
|
1845
1861
|
value: "month",
|
|
1846
1862
|
children: "Mês"
|
|
1847
1863
|
})
|
|
@@ -1873,7 +1889,7 @@ function Zt(e) {
|
|
|
1873
1889
|
//#endregion
|
|
1874
1890
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.tsx
|
|
1875
1891
|
function Qt(e) {
|
|
1876
|
-
let { events: t } =
|
|
1892
|
+
let { events: t } = $(), n = t.filter((t) => t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year);
|
|
1877
1893
|
if (n.length === 0) return /* @__PURE__ */ p(f, {});
|
|
1878
1894
|
function r(t) {
|
|
1879
1895
|
return `${e.day}-${e.month}-${e.year}-${t}`;
|
|
@@ -1882,11 +1898,14 @@ function Qt(e) {
|
|
|
1882
1898
|
let t = e.getHours(), n = e.getMinutes();
|
|
1883
1899
|
return n === 0 ? `${t}h` : `${t}h${n}`;
|
|
1884
1900
|
}
|
|
1901
|
+
function a(e, t) {
|
|
1902
|
+
e.stopPropagation(), t.onClick?.(t.data);
|
|
1903
|
+
}
|
|
1885
1904
|
return n.map((e, t) => /* @__PURE__ */ m("div", {
|
|
1886
1905
|
className: `arkynMonthlyCalendarEvent ${e?.scheme || "primary"}`,
|
|
1887
|
-
onClick: () =>
|
|
1906
|
+
onClick: (t) => a(t, e),
|
|
1888
1907
|
children: [/* @__PURE__ */ m("strong", { children: [
|
|
1889
|
-
i(e.
|
|
1908
|
+
i(e.initialDate),
|
|
1890
1909
|
" ",
|
|
1891
1910
|
e?.endDate && `- ${i(e.endDate)}`
|
|
1892
1911
|
] }), /* @__PURE__ */ p("p", { children: e.title })]
|
|
@@ -1895,15 +1914,23 @@ function Qt(e) {
|
|
|
1895
1914
|
//#endregion
|
|
1896
1915
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.tsx
|
|
1897
1916
|
function $t(e) {
|
|
1898
|
-
let { day: t, month: n, year: r, dayOwner: i } = e;
|
|
1899
|
-
function
|
|
1917
|
+
let { day: t, month: n, year: r, dayOwner: i } = e, { blockedTimestamps: a, onClickDate: o } = $();
|
|
1918
|
+
function s() {
|
|
1900
1919
|
let e = /* @__PURE__ */ new Date();
|
|
1901
1920
|
return t === e.getDate() && n === e.getMonth() && r === e.getFullYear();
|
|
1902
1921
|
}
|
|
1922
|
+
function c() {
|
|
1923
|
+
let e = new Date(r, n, t);
|
|
1924
|
+
return a.some((t) => e >= t.initialDate && e <= t.endDate);
|
|
1925
|
+
}
|
|
1926
|
+
function l(e) {
|
|
1927
|
+
e.stopPropagation(), !c() && o && o(new Date(r, n, t));
|
|
1928
|
+
}
|
|
1903
1929
|
return /* @__PURE__ */ m("td", {
|
|
1904
|
-
className: `arkynMonthlyCalendarTableTd ${i}`,
|
|
1930
|
+
className: `arkynMonthlyCalendarTableTd ${i} ${c() ? "blocked" : ""}`,
|
|
1931
|
+
onClick: l,
|
|
1905
1932
|
children: [/* @__PURE__ */ p("p", {
|
|
1906
|
-
className:
|
|
1933
|
+
className: s() ? "today" : "",
|
|
1907
1934
|
children: t
|
|
1908
1935
|
}), /* @__PURE__ */ p("div", {
|
|
1909
1936
|
className: "arkynMonthlyCalendarEventContainer",
|
|
@@ -1920,7 +1947,7 @@ function $t(e) {
|
|
|
1920
1947
|
function en() {
|
|
1921
1948
|
return /* @__PURE__ */ p("tbody", {
|
|
1922
1949
|
className: "arkynMonthlyCalendarTableBody",
|
|
1923
|
-
children:
|
|
1950
|
+
children: $().listMonthlyMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p($t, { ...e }, t)) }, t))
|
|
1924
1951
|
});
|
|
1925
1952
|
}
|
|
1926
1953
|
//#endregion
|
|
@@ -1934,7 +1961,7 @@ function tn({ children: e }) {
|
|
|
1934
1961
|
//#endregion
|
|
1935
1962
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.tsx
|
|
1936
1963
|
function nn() {
|
|
1937
|
-
let { listWeek: e } =
|
|
1964
|
+
let { listWeek: e } = $();
|
|
1938
1965
|
return /* @__PURE__ */ p("thead", {
|
|
1939
1966
|
className: "arkynMonthlyCalendarTableHeader",
|
|
1940
1967
|
children: /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p("th", { children: J(e) }, t)) })
|
|
@@ -1949,23 +1976,23 @@ function rn() {
|
|
|
1949
1976
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarEvent/index.tsx
|
|
1950
1977
|
var an = 30, on = 40;
|
|
1951
1978
|
function sn(e) {
|
|
1952
|
-
let { events: t } =
|
|
1979
|
+
let { events: t } = $(), n = t.map((e, t) => ({
|
|
1953
1980
|
event: e,
|
|
1954
1981
|
sourceIndex: t
|
|
1955
|
-
})).filter(({ event: t }) => t.
|
|
1956
|
-
let n = e.event.
|
|
1982
|
+
})).filter(({ event: t }) => t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year).sort((e, t) => {
|
|
1983
|
+
let n = e.event.initialDate.getTime(), r = t.event.initialDate.getTime();
|
|
1957
1984
|
if (n !== r) return n - r;
|
|
1958
1985
|
let i = e.event.endDate?.getTime() ?? n + an * 6e4, a = t.event.endDate?.getTime() ?? r + an * 6e4;
|
|
1959
1986
|
return i === a ? e.sourceIndex - t.sourceIndex : i - a;
|
|
1960
1987
|
}), r = new Map(n.map((e, t) => [e.sourceIndex, t])), i = n.filter(({ event: t }) => {
|
|
1961
1988
|
let n = Math.floor(e.timeInMinutes / 60), r = e.timeInMinutes % 60;
|
|
1962
1989
|
function i() {
|
|
1963
|
-
let e = t.
|
|
1990
|
+
let e = t.initialDate.getHours(), i = t.initialDate.getMinutes();
|
|
1964
1991
|
if (e !== n) return !1;
|
|
1965
1992
|
if (r === 0) return i < 30 && i >= 0;
|
|
1966
1993
|
if (r === 30) return i >= 30 && i < 60;
|
|
1967
1994
|
}
|
|
1968
|
-
return i() && t.
|
|
1995
|
+
return i() && t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year;
|
|
1969
1996
|
});
|
|
1970
1997
|
if (i.length === 0) return /* @__PURE__ */ p(f, {});
|
|
1971
1998
|
function a(t, n) {
|
|
@@ -1976,7 +2003,7 @@ function sn(e) {
|
|
|
1976
2003
|
return n === 0 ? `${t}h` : `${t}h${n}`;
|
|
1977
2004
|
}
|
|
1978
2005
|
function s(e) {
|
|
1979
|
-
let t = e.
|
|
2006
|
+
let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + an;
|
|
1980
2007
|
return {
|
|
1981
2008
|
startMinutes: t,
|
|
1982
2009
|
endMinutes: Math.max(n, t + 1)
|
|
@@ -1998,12 +2025,15 @@ function sn(e) {
|
|
|
1998
2025
|
left: `${d}px`
|
|
1999
2026
|
};
|
|
2000
2027
|
}
|
|
2028
|
+
function u(e, t) {
|
|
2029
|
+
e.stopPropagation(), t.onClick?.(t.data);
|
|
2030
|
+
}
|
|
2001
2031
|
return i.map(({ event: e, sourceIndex: t }, n) => /* @__PURE__ */ m("div", {
|
|
2002
2032
|
className: `arkynWeekCalendarEvent ${e?.scheme || "primary"}`,
|
|
2003
2033
|
style: l(e, t),
|
|
2004
|
-
onClick: () =>
|
|
2034
|
+
onClick: (t) => u(t, e),
|
|
2005
2035
|
children: [/* @__PURE__ */ m("strong", { children: [
|
|
2006
|
-
o(e.
|
|
2036
|
+
o(e.initialDate),
|
|
2007
2037
|
" ",
|
|
2008
2038
|
e?.endDate && `- ${o(e.endDate)}`
|
|
2009
2039
|
] }), /* @__PURE__ */ p("p", { children: e.title })]
|
|
@@ -2012,15 +2042,22 @@ function sn(e) {
|
|
|
2012
2042
|
//#endregion
|
|
2013
2043
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.tsx
|
|
2014
2044
|
function cn(e) {
|
|
2015
|
-
let { day: t, month: n, year: r, dayOwner: i, timeInMinutes: a } = e;
|
|
2016
|
-
function
|
|
2017
|
-
let e =
|
|
2018
|
-
return
|
|
2045
|
+
let { day: t, month: n, year: r, dayOwner: i, timeInMinutes: a } = e, { blockedTimestamps: o, onClickDate: s } = $();
|
|
2046
|
+
function c() {
|
|
2047
|
+
let e = new Date(r, n, t);
|
|
2048
|
+
return o.some((t) => e >= t.initialDate && e <= t.endDate);
|
|
2049
|
+
}
|
|
2050
|
+
function l(e) {
|
|
2051
|
+
if (e.stopPropagation(), !c() && s) {
|
|
2052
|
+
let e = new Date(r, n, t);
|
|
2053
|
+
e.setHours(0, a, 0, 0), s(e);
|
|
2054
|
+
}
|
|
2019
2055
|
}
|
|
2020
2056
|
return /* @__PURE__ */ p("td", {
|
|
2021
|
-
className: `arkynWeekCalendarTableTd ${i}
|
|
2057
|
+
className: `arkynWeekCalendarTableTd ${i} ${c() ? "blocked" : ""}`,
|
|
2022
2058
|
"data-day": t,
|
|
2023
2059
|
"data-time": a,
|
|
2060
|
+
onClick: l,
|
|
2024
2061
|
children: /* @__PURE__ */ p("div", {
|
|
2025
2062
|
className: "arkynWeekCalendarTableTdContent",
|
|
2026
2063
|
children: /* @__PURE__ */ p(sn, {
|
|
@@ -2035,7 +2072,7 @@ function cn(e) {
|
|
|
2035
2072
|
//#endregion
|
|
2036
2073
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.tsx
|
|
2037
2074
|
function ln() {
|
|
2038
|
-
let e =
|
|
2075
|
+
let e = $(), t = new Vt();
|
|
2039
2076
|
return /* @__PURE__ */ p("tbody", {
|
|
2040
2077
|
className: "arkynWeekCalendarTableBody",
|
|
2041
2078
|
children: e.listWeeklyMatrix.map((e) => /* @__PURE__ */ m("tr", { children: [/* @__PURE__ */ p("td", {
|
|
@@ -2055,7 +2092,7 @@ function un({ children: e }) {
|
|
|
2055
2092
|
//#endregion
|
|
2056
2093
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.tsx
|
|
2057
2094
|
function dn() {
|
|
2058
|
-
let { listWeek: e, listWeeklyMatrix: t } =
|
|
2095
|
+
let { listWeek: e, listWeeklyMatrix: t } = $(), n = t[0] || [];
|
|
2059
2096
|
return /* @__PURE__ */ p("thead", {
|
|
2060
2097
|
className: "arkynWeekCalendarTableHeader",
|
|
2061
2098
|
children: /* @__PURE__ */ m("tr", { children: [/* @__PURE__ */ p("th", {}), e.map((e, t) => /* @__PURE__ */ p("th", { children: /* @__PURE__ */ m("div", {
|
|
@@ -2072,11 +2109,13 @@ function fn() {
|
|
|
2072
2109
|
//#endregion
|
|
2073
2110
|
//#region src/components/fullCalendar/index.tsx
|
|
2074
2111
|
function pn(e) {
|
|
2075
|
-
let [t, n] = u(
|
|
2112
|
+
let [t, n] = u("month");
|
|
2076
2113
|
return /* @__PURE__ */ p(Ut, {
|
|
2077
2114
|
events: e.events || [],
|
|
2078
2115
|
defaultValue: e.defaultValue,
|
|
2079
2116
|
onChangeView: e.onChangeView,
|
|
2117
|
+
blockedTimestamps: e.blockedTimestamps || [],
|
|
2118
|
+
onClickDate: e.onClickDate,
|
|
2080
2119
|
children: /* @__PURE__ */ m(Xt, { children: [
|
|
2081
2120
|
/* @__PURE__ */ p(Zt, {
|
|
2082
2121
|
viewType: t,
|
|
@@ -2126,7 +2165,7 @@ function gn(e) {
|
|
|
2126
2165
|
//#region src/components/googleAnalytics/index.tsx
|
|
2127
2166
|
function _n(e) {
|
|
2128
2167
|
let { measurementId: t, showInDevMode: n = !1 } = e;
|
|
2129
|
-
return process.env.NODE_ENV !== "production" && !n ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(
|
|
2168
|
+
return process.env.NODE_ENV !== "production" && !n ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(Et, { children: () => /* @__PURE__ */ p(gn, { measurementId: t }) });
|
|
2130
2169
|
}
|
|
2131
2170
|
//#endregion
|
|
2132
2171
|
//#region src/components/googleTagManager/snippets/appendToDataLayer.ts
|
|
@@ -2208,7 +2247,7 @@ function xn(e) {
|
|
|
2208
2247
|
//#region src/components/googleTagManager/index.tsx
|
|
2209
2248
|
function Sn(e) {
|
|
2210
2249
|
let { gtmId: t, auth: n = "", preview: r = "", dataLayerName: i = "dataLayer", events: a = {}, dataLayer: o = {}, showInDevMode: s = !1 } = e;
|
|
2211
|
-
return process.env.NODE_ENV !== "production" && !s ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(
|
|
2250
|
+
return process.env.NODE_ENV !== "production" && !s ? /* @__PURE__ */ p(f, {}) : /* @__PURE__ */ p(Et, { children: () => /* @__PURE__ */ p(xn, {
|
|
2212
2251
|
auth: n,
|
|
2213
2252
|
dataLayer: o,
|
|
2214
2253
|
dataLayerName: i,
|
|
@@ -2292,7 +2331,7 @@ function wn(e) {
|
|
|
2292
2331
|
//#endregion
|
|
2293
2332
|
//#region src/components/imageUpload/index.tsx
|
|
2294
2333
|
function Tn(e) {
|
|
2295
|
-
let { name: t, defaultValue: n = "", label: r, showAsterisk: i = !1, action: a, fileName: o = "file", className: s = "", method: c = "POST", acceptImage: l = "image/*", fileResponseName: d = "url", changeImageButtonText: f = "Alterar imagem", selectImageButtonText: h = "Selecionar imagem", dropImageText: g = "Ou arraste e solte a imagem aqui", onChange: _, disabled: v = !1, unShowFieldTemplate: y = !1, orientation: b = "
|
|
2334
|
+
let { name: t, defaultValue: n = "", label: r, showAsterisk: i = !1, action: a, fileName: o = "file", className: s = "", method: c = "POST", acceptImage: l = "image/*", fileResponseName: d = "url", changeImageButtonText: f = "Alterar imagem", selectImageButtonText: h = "Selecionar imagem", dropImageText: g = "Ou arraste e solte a imagem aqui", onChange: _, disabled: v = !1, unShowFieldTemplate: y = !1, orientation: b = "vertical" } = e, { fieldErrors: x } = X(), S = x?.[t], [C, w] = u(n), [T, E] = u(""), [D, O] = u(null), [k, A] = u(n), [j, M] = u(!1);
|
|
2296
2335
|
async function N(e) {
|
|
2297
2336
|
if (v) return;
|
|
2298
2337
|
M(!0), O(e), E("");
|
|
@@ -2310,7 +2349,7 @@ function Tn(e) {
|
|
|
2310
2349
|
v || (A(URL.createObjectURL(e)), N(e));
|
|
2311
2350
|
}
|
|
2312
2351
|
let F = S || T;
|
|
2313
|
-
return /* @__PURE__ */ p(
|
|
2352
|
+
return /* @__PURE__ */ p(et, {
|
|
2314
2353
|
name: t,
|
|
2315
2354
|
label: r,
|
|
2316
2355
|
showAsterisk: i,
|
|
@@ -2403,7 +2442,7 @@ function On(e) {
|
|
|
2403
2442
|
let { coordinates: t, zoom: n = 18, accessToken: r, className: i, onMarkerClick: a, ...o } = e;
|
|
2404
2443
|
if (!t) return /* @__PURE__ */ p(Dn, { className: i });
|
|
2405
2444
|
let s = Array.isArray(t) ? t : [t];
|
|
2406
|
-
return s.length === 0 ? /* @__PURE__ */ p(Dn, { className: i }) : /* @__PURE__ */ p(
|
|
2445
|
+
return s.length === 0 ? /* @__PURE__ */ p(Dn, { className: i }) : /* @__PURE__ */ p(Et, {
|
|
2407
2446
|
fallback: /* @__PURE__ */ p(Dn, { className: i }),
|
|
2408
2447
|
children: () => /* @__PURE__ */ p(En, {
|
|
2409
2448
|
accessToken: r,
|
|
@@ -2521,7 +2560,7 @@ function Nn() {
|
|
|
2521
2560
|
//#region src/components/modal/modalContainer/index.tsx
|
|
2522
2561
|
function Pn(e) {
|
|
2523
2562
|
let { isVisible: t, makeInvisible: n, children: r, className: i = "", ...a } = e;
|
|
2524
|
-
|
|
2563
|
+
ot(t);
|
|
2525
2564
|
let o = `arkynModalContainer ${t ? "visibleTrue" : "visibleFalse"} ${i}`;
|
|
2526
2565
|
return /* @__PURE__ */ p(Mn, {
|
|
2527
2566
|
makeInvisible: n,
|
|
@@ -2655,7 +2694,7 @@ function Vn(e) {
|
|
|
2655
2694
|
//#region src/components/multiSelect/multiSelectOptionsContainer/index.tsx
|
|
2656
2695
|
function Hn(e) {
|
|
2657
2696
|
let { children: t, isFocused: n, isSearchable: r, search: i, onSearch: a } = e, s = l(null), [c, d] = u("bottom");
|
|
2658
|
-
|
|
2697
|
+
ot(n), o(() => {
|
|
2659
2698
|
n && (() => {
|
|
2660
2699
|
if (!s.current) return;
|
|
2661
2700
|
let e = s.current.parentElement;
|
|
@@ -2670,7 +2709,7 @@ function Hn(e) {
|
|
|
2670
2709
|
return n ? /* @__PURE__ */ m("div", {
|
|
2671
2710
|
ref: s,
|
|
2672
2711
|
className: `arkynMultiSelectOptionsContainer ${c}`,
|
|
2673
|
-
children: [r && /* @__PURE__ */ p(
|
|
2712
|
+
children: [r && /* @__PURE__ */ p(st, {
|
|
2674
2713
|
type: "search",
|
|
2675
2714
|
name: "search-select",
|
|
2676
2715
|
variant: "underline",
|
|
@@ -2702,7 +2741,7 @@ function Wn(e) {
|
|
|
2702
2741
|
//#endregion
|
|
2703
2742
|
//#region src/components/multiSelect/index.tsx
|
|
2704
2743
|
function Gn(e) {
|
|
2705
|
-
let { name: t, options: n, className: r = "", placeholder: i = "Selecione...", closeOnSelect: a = !1, defaultValue: o = [], errorMessage: c, isLoading: d = !1, readOnly: f = !1, isSearchable: h = !1, id: g, label: _, optionMaxHeight: v, showAsterisk: y, leftIcon: b, onSearch: x, onChange: S, onBlur: C, notFoundText: w = "Sem opções disponíveis", onFocus: T, disabled: E = !1, prefix: D, size: O = "md", value: k, variant: A = "solid", unShowFieldTemplate: j = !1, orientation: M = "
|
|
2744
|
+
let { name: t, options: n, className: r = "", placeholder: i = "Selecione...", closeOnSelect: a = !1, defaultValue: o = [], errorMessage: c, isLoading: d = !1, readOnly: f = !1, isSearchable: h = !1, id: g, label: _, optionMaxHeight: v, showAsterisk: y, leftIcon: b, onSearch: x, onChange: S, onBlur: C, notFoundText: w = "Sem opções disponíveis", onFocus: T, disabled: E = !1, prefix: D, size: O = "md", value: k, variant: A = "solid", unShowFieldTemplate: j = !1, orientation: M = "vertical" } = e, { fieldErrors: N } = X(), P = l(null), F = g || s(), I = c || N?.[t], L = !!I, R = E || d || f, z = {
|
|
2706
2745
|
md: 20,
|
|
2707
2746
|
lg: 20
|
|
2708
2747
|
}[O], [B, V] = u(""), [H, U] = u(!1), [W, G] = u(o), K = k || W;
|
|
@@ -2725,7 +2764,7 @@ function Gn(e) {
|
|
|
2725
2764
|
q(e) ? (G(W.filter((t) => t !== e)), S && S(W.filter((t) => t !== e))) : (G([...W, e]), S && S([...W, e])), a && te();
|
|
2726
2765
|
}
|
|
2727
2766
|
let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
|
|
2728
|
-
return /* @__PURE__ */ p(
|
|
2767
|
+
return /* @__PURE__ */ p(et, {
|
|
2729
2768
|
name: t,
|
|
2730
2769
|
label: _,
|
|
2731
2770
|
showAsterisk: y,
|
|
@@ -2965,7 +3004,7 @@ function tr(e) {
|
|
|
2965
3004
|
function h(e) {
|
|
2966
3005
|
r(e.target.value);
|
|
2967
3006
|
}
|
|
2968
|
-
return
|
|
3007
|
+
return ot(n), o(() => {
|
|
2969
3008
|
n && (() => {
|
|
2970
3009
|
if (!s.current) return;
|
|
2971
3010
|
let e = s.current.parentElement;
|
|
@@ -3092,7 +3131,7 @@ function ur(e) {
|
|
|
3092
3131
|
let t = L.code;
|
|
3093
3132
|
return t += re(e || I), t;
|
|
3094
3133
|
}
|
|
3095
|
-
return /* @__PURE__ */ p(
|
|
3134
|
+
return /* @__PURE__ */ p(et, {
|
|
3096
3135
|
name: v,
|
|
3097
3136
|
label: r,
|
|
3098
3137
|
showAsterisk: _,
|
|
@@ -3164,7 +3203,7 @@ function dr(e) {
|
|
|
3164
3203
|
function l() {
|
|
3165
3204
|
o || s(!0);
|
|
3166
3205
|
}
|
|
3167
|
-
return
|
|
3206
|
+
return ot(o), /* @__PURE__ */ m("div", {
|
|
3168
3207
|
className: c,
|
|
3169
3208
|
onClick: l,
|
|
3170
3209
|
children: [
|
|
@@ -3232,12 +3271,12 @@ function hr(e) {
|
|
|
3232
3271
|
//#endregion
|
|
3233
3272
|
//#region src/components/radio/radioGroup/index.tsx
|
|
3234
3273
|
function gr(e) {
|
|
3235
|
-
let { defaultValue: t = "", name: n, label: r, showAsterisk: i, errorMessage: a, value: o, onChange: s, size: c = "md", className: l = "", disabled: d = !1, unShowFieldTemplate: f = !1, orientation: h = "
|
|
3274
|
+
let { defaultValue: t = "", name: n, label: r, showAsterisk: i, errorMessage: a, value: o, onChange: s, size: c = "md", className: l = "", disabled: d = !1, unShowFieldTemplate: f = !1, orientation: h = "vertical", ...g } = e, [_, v] = u(t), { fieldErrors: y } = X();
|
|
3236
3275
|
function b(e) {
|
|
3237
3276
|
v(e), s && s(e);
|
|
3238
3277
|
}
|
|
3239
3278
|
let x = a || y?.[n], S = !!x, C = `arkynRadioGroup ${c}`;
|
|
3240
|
-
return /* @__PURE__ */ p(
|
|
3279
|
+
return /* @__PURE__ */ p(et, {
|
|
3241
3280
|
name: n,
|
|
3242
3281
|
label: r,
|
|
3243
3282
|
showAsterisk: i,
|
|
@@ -3483,7 +3522,7 @@ function Ar(e) {
|
|
|
3483
3522
|
children: n[1]
|
|
3484
3523
|
})]
|
|
3485
3524
|
}),
|
|
3486
|
-
_ === "url" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
3525
|
+
_ === "url" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(st, {
|
|
3487
3526
|
type: "text",
|
|
3488
3527
|
name: "richTextImageURL",
|
|
3489
3528
|
label: o,
|
|
@@ -3561,7 +3600,7 @@ function jr(e) {
|
|
|
3561
3600
|
/* @__PURE__ */ p(In, { children: i }),
|
|
3562
3601
|
/* @__PURE__ */ m("div", {
|
|
3563
3602
|
className: "arkynRichTextInsertVideoModalContent",
|
|
3564
|
-
children: [/* @__PURE__ */ p(
|
|
3603
|
+
children: [/* @__PURE__ */ p(st, {
|
|
3565
3604
|
type: "text",
|
|
3566
3605
|
name: "richTextVideoURL",
|
|
3567
3606
|
label: r,
|
|
@@ -3643,7 +3682,7 @@ function Lr(e) {
|
|
|
3643
3682
|
//#endregion
|
|
3644
3683
|
//#region src/components/richText/index.tsx
|
|
3645
3684
|
function Rr(e) {
|
|
3646
|
-
let { name: t, hiddenButtons: n, imageConfig: r, videoConfig: a, className: o = "", defaultValue: d = "[]", enforceCharacterLimit: f = !1, onChangeCharactersCount: h, baseErrorMessage: x, maxLimit: S = 1e4, onChange: C, isError: w, label: T, showAsterisk: D, id: O, orientation: k = "
|
|
3685
|
+
let { name: t, hiddenButtons: n, imageConfig: r, videoConfig: a, className: o = "", defaultValue: d = "[]", enforceCharacterLimit: f = !1, onChangeCharactersCount: h, baseErrorMessage: x, maxLimit: S = 1e4, onChange: C, isError: w, label: T, showAsterisk: D, id: O, orientation: k = "vertical", unShowFieldTemplate: A = !1 } = e, j = c(() => ge(be(he())), []), { fieldErrors: P } = X();
|
|
3647
3686
|
function F() {
|
|
3648
3687
|
try {
|
|
3649
3688
|
let e = JSON.parse(d);
|
|
@@ -3661,7 +3700,7 @@ function Rr(e) {
|
|
|
3661
3700
|
function Y(e) {
|
|
3662
3701
|
return !n?.includes(e);
|
|
3663
3702
|
}
|
|
3664
|
-
return /* @__PURE__ */ p(
|
|
3703
|
+
return /* @__PURE__ */ p(et, {
|
|
3665
3704
|
name: t,
|
|
3666
3705
|
label: T,
|
|
3667
3706
|
showAsterisk: D,
|
|
@@ -3808,7 +3847,7 @@ function zr(e) {
|
|
|
3808
3847
|
}
|
|
3809
3848
|
},
|
|
3810
3849
|
options: r,
|
|
3811
|
-
children: /* @__PURE__ */ p(
|
|
3850
|
+
children: /* @__PURE__ */ p(st, {
|
|
3812
3851
|
type: "text",
|
|
3813
3852
|
autoComplete: "off",
|
|
3814
3853
|
onChange: (e) => t && t(e.target.value),
|
|
@@ -3823,7 +3862,7 @@ function Br(e) {
|
|
|
3823
3862
|
function E() {
|
|
3824
3863
|
w(!C), f && f(T ? o : a || "checked");
|
|
3825
3864
|
}
|
|
3826
|
-
return /* @__PURE__ */ p(
|
|
3865
|
+
return /* @__PURE__ */ p(et, {
|
|
3827
3866
|
name: c,
|
|
3828
3867
|
label: t,
|
|
3829
3868
|
showAsterisk: _,
|
|
@@ -4309,4 +4348,4 @@ function fi(e) {
|
|
|
4309
4348
|
return Array.isArray(t) ? t.map((e) => typeof e == "string" ? { text: e } : ui(e)) : typeof t == "string" ? [{ text: t }] : [ui(t)];
|
|
4310
4349
|
}
|
|
4311
4350
|
//#endregion
|
|
4312
|
-
export { Ae as AlertContainer, je as AlertContent, Me as AlertDescription, Ne as AlertIcon, De as AlertTitle, Ie as AudioPlayer, qe as AudioUpload, Je as Badge, Q as Button,
|
|
4351
|
+
export { Ae as AlertContainer, je as AlertContent, Me as AlertDescription, Ne as AlertIcon, De as AlertTitle, Ie as AudioPlayer, qe as AudioUpload, Je as Badge, Q as Button, _t as Calendar, xt as CardTabButton, St as CardTabContainer, Ct as Checkbox, Et as ClientOnly, kt as CurrencyInput, He as Divider, Nt as DrawerContainer, Pt as DrawerHeader, ri as DrawerProvider, Lt as FacebookPixel, ze as FieldError, Be as FieldLabel, Ve as FieldWrapper, Bt as FileUpload, Re as FormProvider, pn as FullCalendar, _n as GoogleAnalytics, Sn as GoogleTagManager, Ue as IconButton, Tn as ImageUpload, st as Input, On as MapView, An as MaskedInput, Pn as ModalContainer, Fn as ModalFooter, In as ModalHeader, Jr as ModalProvider, Gn as MultiSelect, Zn as Pagination, ur as PhoneInput, ci as PlacesProvider, dr as Popover, hr as RadioBox, gr as RadioGroup, Rr as RichText, zr as SearchPlaces, dt as Select, Fe as Slider, Br as Switch, Or as TabButton, kr as TabContainer, Vr as TableBody, Hr as TableCaption, Ur as TableContainer, Wr as TableFooter, Gr as TableHeader, Kr as Textarea, Zr as ToastProvider, We as Tooltip, di as toHtml, fi as toRichTextValue, ti as useAutomation, ii as useDrawer, X as useForm, Tt as useHydrated, Yr as useModal, ai as useScopedParams, ot as useScrollLock, oi as useSearchAutomation, Pe as useSlider, Qr as useToast };
|