@arkyn/components 3.0.1-beta.198 → 3.0.1-beta.199
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/README.md +0 -1
- package/dist/components/__test__/alertContainer.spec.d.ts +2 -0
- package/dist/components/__test__/alertContainer.spec.d.ts.map +1 -0
- package/dist/components/__test__/alertContent.spec.d.ts +2 -0
- package/dist/components/__test__/alertContent.spec.d.ts.map +1 -0
- package/dist/components/__test__/alertDescription.spec.d.ts +2 -0
- package/dist/components/__test__/alertDescription.spec.d.ts.map +1 -0
- package/dist/components/__test__/alertIcon.spec.d.ts +2 -0
- package/dist/components/__test__/alertIcon.spec.d.ts.map +1 -0
- package/dist/components/__test__/alertTitle.spec.d.ts +2 -0
- package/dist/components/__test__/alertTitle.spec.d.ts.map +1 -0
- package/dist/components/__test__/audioPlayer.spec.d.ts +2 -0
- package/dist/components/__test__/audioPlayer.spec.d.ts.map +1 -0
- package/dist/components/__test__/audioUpload.spec.d.ts +2 -0
- package/dist/components/__test__/audioUpload.spec.d.ts.map +1 -0
- package/dist/components/__test__/badge.spec.d.ts +2 -0
- package/dist/components/__test__/badge.spec.d.ts.map +1 -0
- package/dist/components/__test__/button.spec.d.ts +2 -0
- package/dist/components/__test__/button.spec.d.ts.map +1 -0
- package/dist/components/__test__/calendar.spec.d.ts +2 -0
- package/dist/components/__test__/calendar.spec.d.ts.map +1 -0
- package/dist/components/__test__/cardTabButton.spec.d.ts +2 -0
- package/dist/components/__test__/cardTabButton.spec.d.ts.map +1 -0
- package/dist/components/__test__/cardTabContainer.spec.d.ts +2 -0
- package/dist/components/__test__/cardTabContainer.spec.d.ts.map +1 -0
- package/dist/components/__test__/checkbox.spec.d.ts +2 -0
- package/dist/components/__test__/checkbox.spec.d.ts.map +1 -0
- package/dist/components/__test__/clientOnly.spec.d.ts +2 -0
- package/dist/components/__test__/clientOnly.spec.d.ts.map +1 -0
- package/dist/components/__test__/currencyInput.spec.d.ts +2 -0
- package/dist/components/__test__/currencyInput.spec.d.ts.map +1 -0
- package/dist/components/__test__/divider.spec.d.ts +2 -0
- package/dist/components/__test__/divider.spec.d.ts.map +1 -0
- package/dist/components/__test__/drawerContainer.spec.d.ts +2 -0
- package/dist/components/__test__/drawerContainer.spec.d.ts.map +1 -0
- package/dist/components/__test__/drawerHeader.spec.d.ts +2 -0
- package/dist/components/__test__/drawerHeader.spec.d.ts.map +1 -0
- package/dist/components/__test__/facebookPixel.spec.d.ts +2 -0
- package/dist/components/__test__/facebookPixel.spec.d.ts.map +1 -0
- package/dist/components/__test__/fieldError.spec.d.ts +2 -0
- package/dist/components/__test__/fieldError.spec.d.ts.map +1 -0
- package/dist/components/__test__/fieldLabel.spec.d.ts +2 -0
- package/dist/components/__test__/fieldLabel.spec.d.ts.map +1 -0
- package/dist/components/__test__/fieldWrapper.spec.d.ts +2 -0
- package/dist/components/__test__/fieldWrapper.spec.d.ts.map +1 -0
- package/dist/components/__test__/fileUpload.spec.d.ts +2 -0
- package/dist/components/__test__/fileUpload.spec.d.ts.map +1 -0
- package/dist/components/__test__/fullCalendar.spec.d.ts +2 -0
- package/dist/components/__test__/fullCalendar.spec.d.ts.map +1 -0
- package/dist/components/__test__/googleAnalytics.spec.d.ts +2 -0
- package/dist/components/__test__/googleAnalytics.spec.d.ts.map +1 -0
- package/dist/components/__test__/googleTagManager.spec.d.ts +2 -0
- package/dist/components/__test__/googleTagManager.spec.d.ts.map +1 -0
- package/dist/components/__test__/iconButton.spec.d.ts +2 -0
- package/dist/components/__test__/iconButton.spec.d.ts.map +1 -0
- package/dist/components/__test__/imageUpload.spec.d.ts +2 -0
- package/dist/components/__test__/imageUpload.spec.d.ts.map +1 -0
- package/dist/components/__test__/input.spec.d.ts +2 -0
- package/dist/components/__test__/input.spec.d.ts.map +1 -0
- package/dist/components/__test__/mapView.spec.d.ts +2 -0
- package/dist/components/__test__/mapView.spec.d.ts.map +1 -0
- package/dist/components/__test__/maskedInput.spec.d.ts +2 -0
- package/dist/components/__test__/maskedInput.spec.d.ts.map +1 -0
- package/dist/components/__test__/modalContainer.spec.d.ts +2 -0
- package/dist/components/__test__/modalContainer.spec.d.ts.map +1 -0
- package/dist/components/__test__/modalFooter.spec.d.ts +2 -0
- package/dist/components/__test__/modalFooter.spec.d.ts.map +1 -0
- package/dist/components/__test__/modalHeader.spec.d.ts +2 -0
- package/dist/components/__test__/modalHeader.spec.d.ts.map +1 -0
- package/dist/components/__test__/multiSelect.spec.d.ts +2 -0
- package/dist/components/__test__/multiSelect.spec.d.ts.map +1 -0
- package/dist/components/__test__/pagination.spec.d.ts +2 -0
- package/dist/components/__test__/pagination.spec.d.ts.map +1 -0
- package/dist/components/__test__/phoneInput.spec.d.ts +2 -0
- package/dist/components/__test__/phoneInput.spec.d.ts.map +1 -0
- package/dist/components/__test__/popover.spec.d.ts +2 -0
- package/dist/components/__test__/popover.spec.d.ts.map +1 -0
- package/dist/components/__test__/radioBox.spec.d.ts +2 -0
- package/dist/components/__test__/radioBox.spec.d.ts.map +1 -0
- package/dist/components/__test__/radioGroup.spec.d.ts +2 -0
- package/dist/components/__test__/radioGroup.spec.d.ts.map +1 -0
- package/dist/components/__test__/richText.spec.d.ts +2 -0
- package/dist/components/__test__/richText.spec.d.ts.map +1 -0
- package/dist/components/__test__/select.spec.d.ts +2 -0
- package/dist/components/__test__/select.spec.d.ts.map +1 -0
- package/dist/components/__test__/slider.spec.d.ts +2 -0
- package/dist/components/__test__/slider.spec.d.ts.map +1 -0
- package/dist/components/__test__/switch.spec.d.ts +2 -0
- package/dist/components/__test__/switch.spec.d.ts.map +1 -0
- package/dist/components/__test__/tabButton.spec.d.ts +2 -0
- package/dist/components/__test__/tabButton.spec.d.ts.map +1 -0
- package/dist/components/__test__/tabContainer.spec.d.ts +2 -0
- package/dist/components/__test__/tabContainer.spec.d.ts.map +1 -0
- package/dist/components/__test__/tableBody.spec.d.ts +2 -0
- package/dist/components/__test__/tableBody.spec.d.ts.map +1 -0
- package/dist/components/__test__/tableCaption.spec.d.ts +2 -0
- package/dist/components/__test__/tableCaption.spec.d.ts.map +1 -0
- package/dist/components/__test__/tableContainer.spec.d.ts +2 -0
- package/dist/components/__test__/tableContainer.spec.d.ts.map +1 -0
- package/dist/components/__test__/tableFooter.spec.d.ts +2 -0
- package/dist/components/__test__/tableFooter.spec.d.ts.map +1 -0
- package/dist/components/__test__/tableHeader.spec.d.ts +2 -0
- package/dist/components/__test__/tableHeader.spec.d.ts.map +1 -0
- package/dist/components/__test__/textarea.spec.d.ts +2 -0
- package/dist/components/__test__/textarea.spec.d.ts.map +1 -0
- package/dist/components/__test__/tooltip.spec.d.ts +2 -0
- package/dist/components/__test__/tooltip.spec.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts.map +1 -1
- package/dist/components/table/tableBody/index.d.ts.map +1 -1
- package/dist/components/textarea/index.d.ts.map +1 -1
- package/dist/hooks/__test__/useAutomation.spec.d.ts +2 -0
- package/dist/hooks/__test__/useAutomation.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useDrawer.spec.d.ts +2 -0
- package/dist/hooks/__test__/useDrawer.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useForm.spec.d.ts +2 -0
- package/dist/hooks/__test__/useForm.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useHydrated.spec.d.ts +2 -0
- package/dist/hooks/__test__/useHydrated.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useModal.spec.d.ts +2 -0
- package/dist/hooks/__test__/useModal.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useScopedParams.spec.d.ts +2 -0
- package/dist/hooks/__test__/useScopedParams.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useScrollLock.spec.d.ts +2 -0
- package/dist/hooks/__test__/useScrollLock.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useSearchAutomation.spec.d.ts +2 -0
- package/dist/hooks/__test__/useSearchAutomation.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useSlider.spec.d.ts +2 -0
- package/dist/hooks/__test__/useSlider.spec.d.ts.map +1 -0
- package/dist/hooks/__test__/useToast.spec.d.ts +2 -0
- package/dist/hooks/__test__/useToast.spec.d.ts.map +1 -0
- package/dist/index.js +484 -492
- package/dist/modules/components/audioPlayer/index.js +1 -1
- package/dist/modules/components/popover/index.js +15 -23
- package/dist/modules/components/table/tableBody/index.js +3 -3
- package/dist/modules/components/textarea/index.js +9 -9
- package/dist/modules/style.css +1 -1
- package/dist/providers/__test__/drawerProvider.spec.d.ts +2 -0
- package/dist/providers/__test__/drawerProvider.spec.d.ts.map +1 -0
- package/dist/providers/__test__/formProvider.spec.d.ts +2 -0
- package/dist/providers/__test__/formProvider.spec.d.ts.map +1 -0
- package/dist/providers/__test__/modalProvider.spec.d.ts +2 -0
- package/dist/providers/__test__/modalProvider.spec.d.ts.map +1 -0
- package/dist/providers/__test__/placesProvider.spec.d.ts +2 -0
- package/dist/providers/__test__/placesProvider.spec.d.ts.map +1 -0
- package/dist/providers/__test__/toastProvider.spec.d.ts +2 -0
- package/dist/providers/__test__/toastProvider.spec.d.ts.map +1 -0
- package/dist/services/__test__/extractTextFromNode.spec.d.ts +2 -0
- package/dist/services/__test__/extractTextFromNode.spec.d.ts.map +1 -0
- package/dist/services/__test__/isBlockActive.spec.d.ts +2 -0
- package/dist/services/__test__/isBlockActive.spec.d.ts.map +1 -0
- package/dist/services/__test__/isMarkActive.spec.d.ts +2 -0
- package/dist/services/__test__/isMarkActive.spec.d.ts.map +1 -0
- package/dist/services/__test__/maskCurrencyValues.spec.d.ts +2 -0
- package/dist/services/__test__/maskCurrencyValues.spec.d.ts.map +1 -0
- package/dist/services/__test__/toHtml.spec.d.ts +2 -0
- package/dist/services/__test__/toHtml.spec.d.ts.map +1 -0
- package/dist/services/__test__/toRichTextValue.spec.d.ts +2 -0
- package/dist/services/__test__/toRichTextValue.spec.d.ts.map +1 -0
- package/dist/services/__test__/toggleBlock.spec.d.ts +2 -0
- package/dist/services/__test__/toggleBlock.spec.d.ts.map +1 -0
- package/dist/services/__test__/toggleMark.spec.d.ts +2 -0
- package/dist/services/__test__/toggleMark.spec.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/templates/__test__/badResponses.spec.d.ts +2 -0
- package/dist/templates/__test__/badResponses.spec.d.ts.map +1 -0
- package/dist/templates/__test__/richTextTemplates.spec.d.ts +2 -0
- package/dist/templates/__test__/richTextTemplates.spec.d.ts.map +1 -0
- package/dist/templates/__test__/successResponses.spec.d.ts +2 -0
- package/dist/templates/__test__/successResponses.spec.d.ts.map +1 -0
- package/dist/utils/__test__/phoneInputUtilities.spec.d.ts +2 -0
- package/dist/utils/__test__/phoneInputUtilities.spec.d.ts.map +1 -0
- package/dist/utils/__test__/richTextUtilities.spec.d.ts +2 -0
- package/dist/utils/__test__/richTextUtilities.spec.d.ts.map +1 -0
- package/package.json +3 -4
package/dist/index.js
CHANGED
|
@@ -2,11 +2,10 @@ import { Children as e, cloneElement as t, createContext as n, forwardRef as r,
|
|
|
2
2
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
3
3
|
import { AlertTriangle as h, AlignCenter as g, AlignJustify as _, AlignLeft as v, AlignRight as y, Bold as b, Check as x, CheckCircle2 as S, ChevronDown as C, ChevronLeft as w, ChevronRight as T, Code as E, Ellipsis as D, File as O, FileArchive as k, FileAudio as A, FileImage as j, Heading1 as M, Heading2 as N, Image as P, Info as F, Italic as I, Loader2 as L, MapPinned as R, Pause as z, Play as B, Quote as V, RefreshCw as H, Search as U, Underline as W, Video as G, X as K, XCircle as q } from "lucide-react";
|
|
4
4
|
import { findCountryMask as ee, formatToCapitalizeFirstWordLetter as J, formatToCurrency as te, formatToPhone as ne, removeNonNumeric as re } from "@arkyn/shared";
|
|
5
|
-
import
|
|
6
|
-
import { createRoot as
|
|
7
|
-
import { InputMask as
|
|
8
|
-
import { countries as
|
|
9
|
-
import { motion as oe } from "framer-motion";
|
|
5
|
+
import ie from "mapbox-gl";
|
|
6
|
+
import { createRoot as ae } from "react-dom/client";
|
|
7
|
+
import { InputMask as Y } from "@react-input/mask";
|
|
8
|
+
import { countries as oe } from "@arkyn/templates";
|
|
10
9
|
import se from "is-hotkey";
|
|
11
10
|
import { Editor as ce, Element as le, Node as ue, Text as de, Transforms as fe, createEditor as pe } from "slate";
|
|
12
11
|
import { withHistory as me } from "slate-history";
|
|
@@ -186,7 +185,7 @@ function Pe(e) {
|
|
|
186
185
|
/* @__PURE__ */ p("audio", {
|
|
187
186
|
...a,
|
|
188
187
|
ref: _,
|
|
189
|
-
src: e.src,
|
|
188
|
+
src: e.src || void 0,
|
|
190
189
|
onEnded: T
|
|
191
190
|
}),
|
|
192
191
|
/* @__PURE__ */ m("button", {
|
|
@@ -218,7 +217,7 @@ function Ie(e) {
|
|
|
218
217
|
}
|
|
219
218
|
//#endregion
|
|
220
219
|
//#region src/hooks/useForm.ts
|
|
221
|
-
function
|
|
220
|
+
function X() {
|
|
222
221
|
return a(Fe);
|
|
223
222
|
}
|
|
224
223
|
//#endregion
|
|
@@ -252,7 +251,7 @@ function ze(e) {
|
|
|
252
251
|
}
|
|
253
252
|
//#endregion
|
|
254
253
|
//#region src/services/iconRenderer.tsx
|
|
255
|
-
function
|
|
254
|
+
function Z(e) {
|
|
256
255
|
let { iconSize: t, icon: n, className: r, show: i = !0 } = e;
|
|
257
256
|
return !i || !n ? null : typeof n == "string" ? /* @__PURE__ */ p("p", {
|
|
258
257
|
className: r,
|
|
@@ -265,7 +264,7 @@ function Q(e) {
|
|
|
265
264
|
}
|
|
266
265
|
//#endregion
|
|
267
266
|
//#region src/components/button/index.tsx
|
|
268
|
-
function
|
|
267
|
+
function Q(e) {
|
|
269
268
|
let { isLoading: t = !1, scheme: n = "primary", variant: r = "solid", loadingText: i, size: a = "md", leftIcon: o, rightIcon: s, disabled: c, className: l = "", children: u, ...d } = e, f = {
|
|
270
269
|
xs: 12,
|
|
271
270
|
sm: 16,
|
|
@@ -285,12 +284,12 @@ function Be(e) {
|
|
|
285
284
|
}), /* @__PURE__ */ m("div", {
|
|
286
285
|
className: "arkynButtonContent",
|
|
287
286
|
children: [
|
|
288
|
-
/* @__PURE__ */ p(
|
|
287
|
+
/* @__PURE__ */ p(Z, {
|
|
289
288
|
iconSize: f,
|
|
290
289
|
icon: o
|
|
291
290
|
}),
|
|
292
291
|
u,
|
|
293
|
-
/* @__PURE__ */ p(
|
|
292
|
+
/* @__PURE__ */ p(Z, {
|
|
294
293
|
iconSize: f,
|
|
295
294
|
icon: s
|
|
296
295
|
})
|
|
@@ -300,7 +299,7 @@ function Be(e) {
|
|
|
300
299
|
}
|
|
301
300
|
//#endregion
|
|
302
301
|
//#region src/components/divider/index.tsx
|
|
303
|
-
function
|
|
302
|
+
function Be(e) {
|
|
304
303
|
let { className: t, orientation: n = "horizontal", ...r } = e;
|
|
305
304
|
return /* @__PURE__ */ p("div", {
|
|
306
305
|
className: `arkynDivider ${n} ${t}`.trim(),
|
|
@@ -309,7 +308,7 @@ function Ve(e) {
|
|
|
309
308
|
}
|
|
310
309
|
//#endregion
|
|
311
310
|
//#region src/components/iconButton/index.tsx
|
|
312
|
-
function
|
|
311
|
+
function Ve(e) {
|
|
313
312
|
let { isLoading: t = !1, scheme: n = "primary", variant: r = "solid", size: i = "md", icon: a, disabled: o, className: s = "", ...c } = e, l = {
|
|
314
313
|
xs: 12,
|
|
315
314
|
sm: 16,
|
|
@@ -337,7 +336,7 @@ function He(e) {
|
|
|
337
336
|
}
|
|
338
337
|
//#endregion
|
|
339
338
|
//#region src/components/tooltip/index.tsx
|
|
340
|
-
function
|
|
339
|
+
function He(e) {
|
|
341
340
|
let { text: t, size: n = "lg", children: r, orientation: i = "top", className: a = "", ...c } = e, d = s(), f = l(null), [h, g] = u(i);
|
|
342
341
|
return o(() => {
|
|
343
342
|
let e = () => {
|
|
@@ -368,7 +367,7 @@ function Ue(e) {
|
|
|
368
367
|
}
|
|
369
368
|
//#endregion
|
|
370
369
|
//#region src/components/audioUpload/hasFileContent/index.tsx
|
|
371
|
-
function
|
|
370
|
+
function Ue(e) {
|
|
372
371
|
let { filePath: t, disabled: n, acceptAudio: r, handleSelectFile: i, isLoading: a, reSendAudio: o, changeAudioButtonText: s } = e;
|
|
373
372
|
function c() {
|
|
374
373
|
if (n) return;
|
|
@@ -382,13 +381,13 @@ function We(e) {
|
|
|
382
381
|
className: "arkynAudioUploadHasFileContentContainer",
|
|
383
382
|
children: [
|
|
384
383
|
/* @__PURE__ */ p(Pe, { src: t }),
|
|
385
|
-
/* @__PURE__ */ p(
|
|
384
|
+
/* @__PURE__ */ p(Be, {}),
|
|
386
385
|
/* @__PURE__ */ m("div", {
|
|
387
386
|
className: "arkynAudioUploadButtonsContainer",
|
|
388
|
-
children: [!!o && /* @__PURE__ */ p(
|
|
387
|
+
children: [!!o && /* @__PURE__ */ p(He, {
|
|
389
388
|
orientation: "bottom",
|
|
390
389
|
text: "Reenviar áudio",
|
|
391
|
-
children: /* @__PURE__ */ p(
|
|
390
|
+
children: /* @__PURE__ */ p(Ve, {
|
|
392
391
|
type: "button",
|
|
393
392
|
"aria-label": "resend image",
|
|
394
393
|
variant: "outline",
|
|
@@ -399,7 +398,7 @@ function We(e) {
|
|
|
399
398
|
icon: H,
|
|
400
399
|
disabled: n
|
|
401
400
|
})
|
|
402
|
-
}), /* @__PURE__ */ p(
|
|
401
|
+
}), /* @__PURE__ */ p(Q, {
|
|
403
402
|
isLoading: a,
|
|
404
403
|
onClick: c,
|
|
405
404
|
variant: "outline",
|
|
@@ -414,7 +413,7 @@ function We(e) {
|
|
|
414
413
|
}
|
|
415
414
|
//#endregion
|
|
416
415
|
//#region src/components/audioUpload/noFileContent/index.tsx
|
|
417
|
-
function
|
|
416
|
+
function We(e) {
|
|
418
417
|
let { dropAudioText: t, isLoading: n, acceptAudio: r, handleSelectFile: i, selectAudioButtonText: a, disabled: o } = e;
|
|
419
418
|
function s(e) {
|
|
420
419
|
if (o) return;
|
|
@@ -433,7 +432,7 @@ function Ge(e) {
|
|
|
433
432
|
return /* @__PURE__ */ m("div", {
|
|
434
433
|
onDrop: s,
|
|
435
434
|
className: "arkynAudioUploadNoFileContent",
|
|
436
|
-
children: [/* @__PURE__ */ p(
|
|
435
|
+
children: [/* @__PURE__ */ p(Q, {
|
|
437
436
|
isLoading: n,
|
|
438
437
|
onClick: c,
|
|
439
438
|
variant: "ghost",
|
|
@@ -446,8 +445,8 @@ function Ge(e) {
|
|
|
446
445
|
}
|
|
447
446
|
//#endregion
|
|
448
447
|
//#region src/components/audioUpload/index.tsx
|
|
449
|
-
function
|
|
450
|
-
let { name: t, label: n, fileName: r = "file", method: i = "POST", onChange: a, fileResponseName: o = "url", selectAudioButtonText: s = "Selecionar arquivo de áudio", dropAudioText: c = "Ou arraste e solte um arquivo de áudio aqui", changeAudioButtonText: l = "Trocar arquivo de áudio", acceptAudio: d = "audio/*", action: f, defaultValue: h = "", showAsterisk: g = !1, disabled: _ = !1 } = e, { fieldErrors: v } =
|
|
448
|
+
function Ge(e) {
|
|
449
|
+
let { name: t, label: n, fileName: r = "file", method: i = "POST", onChange: a, fileResponseName: o = "url", selectAudioButtonText: s = "Selecionar arquivo de áudio", dropAudioText: c = "Ou arraste e solte um arquivo de áudio aqui", changeAudioButtonText: l = "Trocar arquivo de áudio", acceptAudio: d = "audio/*", action: f, defaultValue: h = "", showAsterisk: g = !1, disabled: _ = !1 } = e, { fieldErrors: v } = X(), y = v?.[t], [b, x] = u(h), [S, C] = u(""), [w, T] = u(null), [E, D] = u(h), [O, k] = u(!1);
|
|
451
450
|
async function A(e) {
|
|
452
451
|
if (_) return;
|
|
453
452
|
k(!0), T(e), C("");
|
|
@@ -484,7 +483,7 @@ function Ke(e) {
|
|
|
484
483
|
name: t,
|
|
485
484
|
value: b || ""
|
|
486
485
|
}),
|
|
487
|
-
!E && /* @__PURE__ */ p(
|
|
486
|
+
!E && /* @__PURE__ */ p(We, {
|
|
488
487
|
disabled: _,
|
|
489
488
|
isLoading: O,
|
|
490
489
|
acceptAudio: d,
|
|
@@ -492,7 +491,7 @@ function Ke(e) {
|
|
|
492
491
|
handleSelectFile: j,
|
|
493
492
|
selectAudioButtonText: s
|
|
494
493
|
}),
|
|
495
|
-
E && /* @__PURE__ */ p(
|
|
494
|
+
E && /* @__PURE__ */ p(Ue, {
|
|
496
495
|
filePath: E,
|
|
497
496
|
acceptAudio: d,
|
|
498
497
|
changeAudioButtonText: l,
|
|
@@ -508,7 +507,7 @@ function Ke(e) {
|
|
|
508
507
|
}
|
|
509
508
|
//#endregion
|
|
510
509
|
//#region src/components/badge/index.tsx
|
|
511
|
-
function
|
|
510
|
+
function Ke(e) {
|
|
512
511
|
let { variant: t = "ghost", scheme: n = "primary", size: r = "lg", leftIcon: i, rightIcon: a, className: o = "", children: s, ...c } = e, l = {
|
|
513
512
|
md: 12,
|
|
514
513
|
lg: 14
|
|
@@ -517,12 +516,12 @@ function qe(e) {
|
|
|
517
516
|
className: `arkynBadge ${t} ${n} ${r} ${o}`.trim(),
|
|
518
517
|
...c,
|
|
519
518
|
children: [
|
|
520
|
-
/* @__PURE__ */ p(
|
|
519
|
+
/* @__PURE__ */ p(Z, {
|
|
521
520
|
iconSize: l,
|
|
522
521
|
icon: i
|
|
523
522
|
}),
|
|
524
523
|
/* @__PURE__ */ p("p", { children: s }),
|
|
525
|
-
/* @__PURE__ */ p(
|
|
524
|
+
/* @__PURE__ */ p(Z, {
|
|
526
525
|
iconSize: l,
|
|
527
526
|
icon: a
|
|
528
527
|
})
|
|
@@ -531,7 +530,7 @@ function qe(e) {
|
|
|
531
530
|
}
|
|
532
531
|
//#endregion
|
|
533
532
|
//#region src/components/calendar/_viewService.ts
|
|
534
|
-
var
|
|
533
|
+
var qe = class {
|
|
535
534
|
currentDay(e) {
|
|
536
535
|
return String(e.getDate()).padStart(2, "0");
|
|
537
536
|
}
|
|
@@ -659,12 +658,12 @@ var Je = class {
|
|
|
659
658
|
let n = new Date(e);
|
|
660
659
|
n.setDate(1), n.setMonth(n.getMonth() - 1), t(n);
|
|
661
660
|
}
|
|
662
|
-
},
|
|
663
|
-
function
|
|
664
|
-
return a(
|
|
661
|
+
}, Je = n({});
|
|
662
|
+
function Ye() {
|
|
663
|
+
return a(Je);
|
|
665
664
|
}
|
|
666
|
-
function
|
|
667
|
-
let { calendarType: t, children: n, defaultValue: r, defaultViewValue: i = /* @__PURE__ */ new Date(), language: a = "pt-BR", onChange: o, onChangeView: s, value: c, viewValue: l } = e, d = t === "single" ? [r || /* @__PURE__ */ new Date(), r || /* @__PURE__ */ new Date()] : r || [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()], [f, m] = u(i), [h, g] = u(d), _ = l || f, v = c ? t === "single" ? [c, c] : c : h, y = new
|
|
665
|
+
function Xe(e) {
|
|
666
|
+
let { calendarType: t, children: n, defaultValue: r, defaultViewValue: i = /* @__PURE__ */ new Date(), language: a = "pt-BR", onChange: o, onChangeView: s, value: c, viewValue: l } = e, d = t === "single" ? [r || /* @__PURE__ */ new Date(), r || /* @__PURE__ */ new Date()] : r || [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()], [f, m] = u(i), [h, g] = u(d), _ = l || f, v = c ? t === "single" ? [c, c] : c : h, y = new qe();
|
|
668
667
|
function b(e) {
|
|
669
668
|
let n = [new Date(e[0]), new Date(e[1])];
|
|
670
669
|
o && t === "range" && o(n), o && t === "single" && o(n[0]), g(n);
|
|
@@ -672,7 +671,7 @@ function Ze(e) {
|
|
|
672
671
|
function x(e) {
|
|
673
672
|
s && s(e), m(e);
|
|
674
673
|
}
|
|
675
|
-
return /* @__PURE__ */ p(
|
|
674
|
+
return /* @__PURE__ */ p(Je.Provider, {
|
|
676
675
|
value: {
|
|
677
676
|
valueDate: v,
|
|
678
677
|
viewDate: _,
|
|
@@ -695,7 +694,7 @@ function Ze(e) {
|
|
|
695
694
|
}
|
|
696
695
|
//#endregion
|
|
697
696
|
//#region src/components/calendar/calendarContainer/index.tsx
|
|
698
|
-
function
|
|
697
|
+
function Ze({ children: e }) {
|
|
699
698
|
return /* @__PURE__ */ p("div", {
|
|
700
699
|
className: "arkynCalendarContainer",
|
|
701
700
|
children: e
|
|
@@ -703,7 +702,7 @@ function Qe({ children: e }) {
|
|
|
703
702
|
}
|
|
704
703
|
//#endregion
|
|
705
704
|
//#region src/services/fieldTemplate.tsx
|
|
706
|
-
function
|
|
705
|
+
function Qe(e) {
|
|
707
706
|
let { name: t, label: n, showAsterisk: r, className: i, unShowFieldTemplate: a, errorMessage: o, children: s, orientation: c } = e;
|
|
708
707
|
return a ? s : /* @__PURE__ */ m(ze, {
|
|
709
708
|
id: t,
|
|
@@ -721,7 +720,7 @@ function $e(e) {
|
|
|
721
720
|
}
|
|
722
721
|
//#endregion
|
|
723
722
|
//#region src/components/select/selectChevron/index.tsx
|
|
724
|
-
function
|
|
723
|
+
function $e(e) {
|
|
725
724
|
let { iconSize: t, isLoading: n, disabled: r, readOnly: i, isFocused: a } = e;
|
|
726
725
|
return n ? null : /* @__PURE__ */ p(C, {
|
|
727
726
|
className: `arkynSelectChevron ${r || i ? "notAnimate" : ""} ${a ? "focused" : ""}`,
|
|
@@ -736,7 +735,7 @@ function et(e) {
|
|
|
736
735
|
}
|
|
737
736
|
//#endregion
|
|
738
737
|
//#region src/components/select/selectContainer/index.tsx
|
|
739
|
-
function
|
|
738
|
+
function et(e) {
|
|
740
739
|
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;
|
|
741
740
|
return /* @__PURE__ */ p("section", {
|
|
742
741
|
id: d,
|
|
@@ -747,7 +746,7 @@ function tt(e) {
|
|
|
747
746
|
}
|
|
748
747
|
//#endregion
|
|
749
748
|
//#region src/components/select/selectContent/index.tsx
|
|
750
|
-
function
|
|
749
|
+
function tt(e) {
|
|
751
750
|
let { children: t, size: n } = e;
|
|
752
751
|
return /* @__PURE__ */ p("div", {
|
|
753
752
|
className: `arkynSelectContent ${n}`,
|
|
@@ -756,7 +755,7 @@ function nt(e) {
|
|
|
756
755
|
}
|
|
757
756
|
//#endregion
|
|
758
757
|
//#region src/components/select/selectOption/index.tsx
|
|
759
|
-
function
|
|
758
|
+
function nt(e) {
|
|
760
759
|
let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a } = e;
|
|
761
760
|
return /* @__PURE__ */ m("div", {
|
|
762
761
|
onClick: () => r(i),
|
|
@@ -770,13 +769,13 @@ function rt(e) {
|
|
|
770
769
|
}
|
|
771
770
|
//#endregion
|
|
772
771
|
//#region src/hooks/useScrollLock.ts
|
|
773
|
-
function
|
|
772
|
+
function rt() {
|
|
774
773
|
return typeof window > "u" ? 0 : window.innerWidth - document.documentElement.clientWidth;
|
|
775
774
|
}
|
|
776
|
-
function
|
|
775
|
+
function it(e) {
|
|
777
776
|
o(() => {
|
|
778
777
|
if (e) {
|
|
779
|
-
let e = document.body.style.overflow, t = document.body.style.paddingRight, n =
|
|
778
|
+
let e = document.body.style.overflow, t = document.body.style.paddingRight, n = rt();
|
|
780
779
|
if (n > 0) {
|
|
781
780
|
let e = window.getComputedStyle(document.body), t = parseInt(e.paddingRight, 10) || 0;
|
|
782
781
|
document.body.style.paddingRight = `${t + n}px`;
|
|
@@ -789,8 +788,8 @@ function at(e) {
|
|
|
789
788
|
}
|
|
790
789
|
//#endregion
|
|
791
790
|
//#region src/components/input/index.tsx
|
|
792
|
-
function
|
|
793
|
-
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 } =
|
|
791
|
+
function at(e) {
|
|
792
|
+
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 = s(), I = E || F, R = x || j?.[t], z = !!R, B = n || h, V = {
|
|
794
793
|
md: 20,
|
|
795
794
|
lg: 20
|
|
796
795
|
}[T], H = C ? "right" : "left", U = H === "left" && h, W = H === "right" && h;
|
|
@@ -809,7 +808,7 @@ function ot(e) {
|
|
|
809
808
|
type: "text",
|
|
810
809
|
ref: P,
|
|
811
810
|
...A
|
|
812
|
-
}) : /* @__PURE__ */ p(
|
|
811
|
+
}) : /* @__PURE__ */ p(Qe, {
|
|
813
812
|
name: t,
|
|
814
813
|
label: o,
|
|
815
814
|
showAsterisk: S,
|
|
@@ -823,18 +822,18 @@ function ot(e) {
|
|
|
823
822
|
onClick: G,
|
|
824
823
|
className: `arkynInput ${d ? "hasPrefix" : ""} ${n ? "disabled" : ""} ${f ? "hasSuffix" : ""} ${a} ${T} ${B || _ || h ? "opacity" : ""} ${z ? "errored" : ""} ${M ? "focused" : ""}`,
|
|
825
824
|
children: [
|
|
826
|
-
/* @__PURE__ */ p(
|
|
825
|
+
/* @__PURE__ */ p(Z, {
|
|
827
826
|
iconSize: V,
|
|
828
827
|
icon: d,
|
|
829
828
|
className: "prefix"
|
|
830
829
|
}),
|
|
831
|
-
/* @__PURE__ */ p(
|
|
830
|
+
/* @__PURE__ */ p(Z, {
|
|
832
831
|
show: U,
|
|
833
832
|
iconSize: V,
|
|
834
833
|
className: "spinner",
|
|
835
834
|
icon: L
|
|
836
835
|
}),
|
|
837
|
-
/* @__PURE__ */ p(
|
|
836
|
+
/* @__PURE__ */ p(Z, {
|
|
838
837
|
show: !h,
|
|
839
838
|
icon: g,
|
|
840
839
|
iconSize: V
|
|
@@ -852,18 +851,18 @@ function ot(e) {
|
|
|
852
851
|
value: B ? void 0 : D,
|
|
853
852
|
...A
|
|
854
853
|
}),
|
|
855
|
-
/* @__PURE__ */ p(
|
|
854
|
+
/* @__PURE__ */ p(Z, {
|
|
856
855
|
show: !h,
|
|
857
856
|
icon: C,
|
|
858
857
|
iconSize: V
|
|
859
858
|
}),
|
|
860
|
-
/* @__PURE__ */ p(
|
|
859
|
+
/* @__PURE__ */ p(Z, {
|
|
861
860
|
show: W,
|
|
862
861
|
iconSize: V,
|
|
863
862
|
className: "spinner",
|
|
864
863
|
icon: L
|
|
865
864
|
}),
|
|
866
|
-
/* @__PURE__ */ p(
|
|
865
|
+
/* @__PURE__ */ p(Z, {
|
|
867
866
|
iconSize: V,
|
|
868
867
|
icon: f,
|
|
869
868
|
className: "suffix"
|
|
@@ -874,9 +873,9 @@ function ot(e) {
|
|
|
874
873
|
}
|
|
875
874
|
//#endregion
|
|
876
875
|
//#region src/components/select/selectOptionsContainer/index.tsx
|
|
877
|
-
function
|
|
876
|
+
function ot(e) {
|
|
878
877
|
let { children: t, isFocused: n, isSearchable: r, search: i, onSearch: a } = e, s = l(null), [c, d] = u("bottom");
|
|
879
|
-
|
|
878
|
+
it(n), o(() => {
|
|
880
879
|
n && (() => {
|
|
881
880
|
if (!s.current) return;
|
|
882
881
|
let e = s.current.parentElement;
|
|
@@ -891,7 +890,7 @@ function st(e) {
|
|
|
891
890
|
return n ? /* @__PURE__ */ m("div", {
|
|
892
891
|
ref: s,
|
|
893
892
|
className: `arkynSelectOptionsContainer ${c}`,
|
|
894
|
-
children: [r && /* @__PURE__ */ p(
|
|
893
|
+
children: [r && /* @__PURE__ */ p(at, {
|
|
895
894
|
type: "search",
|
|
896
895
|
name: "search-select",
|
|
897
896
|
variant: "underline",
|
|
@@ -903,7 +902,7 @@ function st(e) {
|
|
|
903
902
|
}
|
|
904
903
|
//#endregion
|
|
905
904
|
//#region src/components/select/selectOverlay/index.tsx
|
|
906
|
-
function
|
|
905
|
+
function st(e) {
|
|
907
906
|
let { isFocused: t, handleBlur: n } = e;
|
|
908
907
|
return t ? /* @__PURE__ */ p("aside", {
|
|
909
908
|
className: "arkynSelectOverlay",
|
|
@@ -912,7 +911,7 @@ function ct(e) {
|
|
|
912
911
|
}
|
|
913
912
|
//#endregion
|
|
914
913
|
//#region src/components/select/selectSpinner/index.tsx
|
|
915
|
-
function
|
|
914
|
+
function ct(e) {
|
|
916
915
|
let { iconSize: t, isLoading: n } = e;
|
|
917
916
|
return n ? /* @__PURE__ */ p(L, {
|
|
918
917
|
className: "arkynSelectSpinner",
|
|
@@ -922,8 +921,8 @@ function lt(e) {
|
|
|
922
921
|
}
|
|
923
922
|
//#endregion
|
|
924
923
|
//#region src/components/select/index.tsx
|
|
925
|
-
function
|
|
926
|
-
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: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", orientation: A = "vertical", unShowFieldTemplate: j = !1 } = e, { fieldErrors: M } =
|
|
924
|
+
function lt(e) {
|
|
925
|
+
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: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", orientation: A = "vertical", unShowFieldTemplate: j = !1 } = e, { fieldErrors: M } = X(), N = l(null), P = s(), F = g || P, I = c || M?.[t], L = !!I, R = T || d || f, z = {
|
|
927
926
|
md: 20,
|
|
928
927
|
lg: 20
|
|
929
928
|
}[D], [B, V] = u(""), [H, U] = u(!1), [W, G] = u(o), K = O || W;
|
|
@@ -945,8 +944,8 @@ function ut(e) {
|
|
|
945
944
|
function re(e) {
|
|
946
945
|
q(e) ? (G(""), x && x("")) : (G(e), x && x(e)), a && te();
|
|
947
946
|
}
|
|
948
|
-
let
|
|
949
|
-
return /* @__PURE__ */ p(
|
|
947
|
+
let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
|
|
948
|
+
return /* @__PURE__ */ p(Qe, {
|
|
950
949
|
name: t,
|
|
951
950
|
label: _,
|
|
952
951
|
showAsterisk: v,
|
|
@@ -954,7 +953,7 @@ function ut(e) {
|
|
|
954
953
|
errorMessage: I,
|
|
955
954
|
unShowFieldTemplate: j,
|
|
956
955
|
orientation: A,
|
|
957
|
-
children: /* @__PURE__ */ m(
|
|
956
|
+
children: /* @__PURE__ */ m(et, {
|
|
958
957
|
handleContainerFocus: J,
|
|
959
958
|
disabled: R,
|
|
960
959
|
isError: L,
|
|
@@ -972,7 +971,7 @@ function ut(e) {
|
|
|
972
971
|
value: K,
|
|
973
972
|
type: "hidden"
|
|
974
973
|
}),
|
|
975
|
-
/* @__PURE__ */ p(
|
|
974
|
+
/* @__PURE__ */ p(Z, {
|
|
976
975
|
iconSize: z,
|
|
977
976
|
icon: E,
|
|
978
977
|
className: "prefix"
|
|
@@ -981,38 +980,38 @@ function ut(e) {
|
|
|
981
980
|
size: z,
|
|
982
981
|
strokeWidth: 2.5
|
|
983
982
|
}),
|
|
984
|
-
/* @__PURE__ */ m(
|
|
983
|
+
/* @__PURE__ */ m(tt, {
|
|
985
984
|
size: D,
|
|
986
985
|
children: [K !== "" && /* @__PURE__ */ p("p", {
|
|
987
986
|
className: "hasValue",
|
|
988
987
|
children: ee(K)
|
|
989
988
|
}), K === "" && /* @__PURE__ */ p("p", { children: i })]
|
|
990
989
|
}),
|
|
991
|
-
/* @__PURE__ */ m(
|
|
990
|
+
/* @__PURE__ */ m(ot, {
|
|
992
991
|
isFocused: H,
|
|
993
992
|
isSearchable: h,
|
|
994
993
|
search: B,
|
|
995
994
|
onSearch: ne,
|
|
996
|
-
children: [
|
|
995
|
+
children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(nt, {
|
|
997
996
|
label: e,
|
|
998
997
|
value: t,
|
|
999
998
|
size: D,
|
|
1000
999
|
handleChangeValue: re,
|
|
1001
1000
|
optionHasSelected: q
|
|
1002
|
-
}, t)),
|
|
1001
|
+
}, t)), ie.length <= 0 && /* @__PURE__ */ p("p", { children: C })]
|
|
1003
1002
|
}),
|
|
1004
|
-
/* @__PURE__ */ p(
|
|
1003
|
+
/* @__PURE__ */ p($e, {
|
|
1005
1004
|
disabled: R,
|
|
1006
1005
|
isFocused: H,
|
|
1007
1006
|
readOnly: f,
|
|
1008
1007
|
iconSize: z,
|
|
1009
1008
|
isLoading: d
|
|
1010
1009
|
}),
|
|
1011
|
-
/* @__PURE__ */ p(
|
|
1010
|
+
/* @__PURE__ */ p(ct, {
|
|
1012
1011
|
iconSize: z,
|
|
1013
1012
|
isLoading: d
|
|
1014
1013
|
}),
|
|
1015
|
-
/* @__PURE__ */ p(
|
|
1014
|
+
/* @__PURE__ */ p(st, {
|
|
1016
1015
|
handleBlur: te,
|
|
1017
1016
|
isFocused: H
|
|
1018
1017
|
})
|
|
@@ -1022,8 +1021,8 @@ function ut(e) {
|
|
|
1022
1021
|
}
|
|
1023
1022
|
//#endregion
|
|
1024
1023
|
//#region src/components/calendar/calendarHeader/index.tsx
|
|
1025
|
-
function
|
|
1026
|
-
let t =
|
|
1024
|
+
function ut({ basicMode: e }) {
|
|
1025
|
+
let t = Ye();
|
|
1027
1026
|
return e ? /* @__PURE__ */ m("div", {
|
|
1028
1027
|
className: "arkynCalendarHeader",
|
|
1029
1028
|
children: [
|
|
@@ -1053,14 +1052,14 @@ function dt({ basicMode: e }) {
|
|
|
1053
1052
|
className: "arkynCalendarButton",
|
|
1054
1053
|
onClick: () => t.nextMonth(),
|
|
1055
1054
|
children: /* @__PURE__ */ p(T, {})
|
|
1056
|
-
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(
|
|
1055
|
+
})] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p(lt, {
|
|
1057
1056
|
name: "calendarMonth",
|
|
1058
1057
|
variant: "underline",
|
|
1059
1058
|
className: "calendarMonthSelect",
|
|
1060
1059
|
value: t.currentMonth,
|
|
1061
1060
|
options: t.listMonths,
|
|
1062
1061
|
onChange: (e) => t.changeMonth(+e)
|
|
1063
|
-
}), /* @__PURE__ */ p(
|
|
1062
|
+
}), /* @__PURE__ */ p(lt, {
|
|
1064
1063
|
name: "calendarYear",
|
|
1065
1064
|
variant: "underline",
|
|
1066
1065
|
className: "calendarYearSelect",
|
|
@@ -1072,8 +1071,8 @@ function dt({ basicMode: e }) {
|
|
|
1072
1071
|
}
|
|
1073
1072
|
//#endregion
|
|
1074
1073
|
//#region src/components/calendar/calendarTableTd/index.tsx
|
|
1075
|
-
function
|
|
1076
|
-
let { day: t, month: n, year: r, dayOwner: i, dayType: a } = e, { changeDay: o } =
|
|
1074
|
+
function dt(e) {
|
|
1075
|
+
let { day: t, month: n, year: r, dayOwner: i, dayType: a } = e, { changeDay: o } = Ye();
|
|
1077
1076
|
function s() {
|
|
1078
1077
|
let e = /* @__PURE__ */ new Date();
|
|
1079
1078
|
return t === e.getDate() && n === e.getMonth() && r === e.getFullYear();
|
|
@@ -1089,15 +1088,15 @@ function ft(e) {
|
|
|
1089
1088
|
}
|
|
1090
1089
|
//#endregion
|
|
1091
1090
|
//#region src/components/calendar/calendarTableBody/index.tsx
|
|
1092
|
-
function
|
|
1091
|
+
function ft() {
|
|
1093
1092
|
return /* @__PURE__ */ p("tbody", {
|
|
1094
1093
|
className: "arkynCalendarTableBody",
|
|
1095
|
-
children:
|
|
1094
|
+
children: Ye().listMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, n) => /* @__PURE__ */ p(dt, { ...e }, `day-${t}-${n}`)) }, `week-${t}`))
|
|
1096
1095
|
});
|
|
1097
1096
|
}
|
|
1098
1097
|
//#endregion
|
|
1099
1098
|
//#region src/components/calendar/calendarTableContainer/index.tsx
|
|
1100
|
-
function
|
|
1099
|
+
function pt({ children: e }) {
|
|
1101
1100
|
return /* @__PURE__ */ p("table", {
|
|
1102
1101
|
className: "arkynCalendarTableContainer",
|
|
1103
1102
|
children: e
|
|
@@ -1105,8 +1104,8 @@ function mt({ children: e }) {
|
|
|
1105
1104
|
}
|
|
1106
1105
|
//#endregion
|
|
1107
1106
|
//#region src/components/calendar/calendarTableHeader/index.tsx
|
|
1108
|
-
function
|
|
1109
|
-
let { listWeek: e } =
|
|
1107
|
+
function mt() {
|
|
1108
|
+
let { listWeek: e } = Ye();
|
|
1110
1109
|
return /* @__PURE__ */ p("thead", {
|
|
1111
1110
|
className: "arkynCalendarTableHeader",
|
|
1112
1111
|
children: /* @__PURE__ */ p("tr", { children: e.map((e) => /* @__PURE__ */ p("th", { children: J(e) }, e)) })
|
|
@@ -1114,9 +1113,9 @@ function ht() {
|
|
|
1114
1113
|
}
|
|
1115
1114
|
//#endregion
|
|
1116
1115
|
//#region src/components/calendar/index.tsx
|
|
1117
|
-
function
|
|
1116
|
+
function ht(e) {
|
|
1118
1117
|
let t = e.variant || "complete";
|
|
1119
|
-
return e.type === "range" ? /* @__PURE__ */ p(
|
|
1118
|
+
return e.type === "range" ? /* @__PURE__ */ p(Xe, {
|
|
1120
1119
|
value: e.value,
|
|
1121
1120
|
viewValue: e.viewValue,
|
|
1122
1121
|
defaultViewValue: e.defaultViewValue,
|
|
@@ -1124,8 +1123,8 @@ function gt(e) {
|
|
|
1124
1123
|
calendarType: "range",
|
|
1125
1124
|
onChange: e.onChange,
|
|
1126
1125
|
onChangeView: e.onChangeView,
|
|
1127
|
-
children: /* @__PURE__ */ m(
|
|
1128
|
-
}) : /* @__PURE__ */ p(
|
|
1126
|
+
children: /* @__PURE__ */ m(Ze, { children: [/* @__PURE__ */ p(ut, { basicMode: t.includes("basic") }), /* @__PURE__ */ m(pt, { children: [/* @__PURE__ */ p(mt, {}), /* @__PURE__ */ p(ft, {})] })] })
|
|
1127
|
+
}) : /* @__PURE__ */ p(Xe, {
|
|
1129
1128
|
value: e.value,
|
|
1130
1129
|
viewValue: e.viewValue,
|
|
1131
1130
|
defaultViewValue: e.defaultViewValue,
|
|
@@ -1133,25 +1132,25 @@ function gt(e) {
|
|
|
1133
1132
|
calendarType: "single",
|
|
1134
1133
|
onChange: e.onChange,
|
|
1135
1134
|
onChangeView: e.onChangeView,
|
|
1136
|
-
children: /* @__PURE__ */ m(
|
|
1135
|
+
children: /* @__PURE__ */ m(Ze, { children: [/* @__PURE__ */ p(ut, { basicMode: t.includes("basic") }), /* @__PURE__ */ m(pt, { children: [/* @__PURE__ */ p(mt, {}), /* @__PURE__ */ p(ft, {})] })] })
|
|
1137
1136
|
});
|
|
1138
1137
|
}
|
|
1139
1138
|
//#endregion
|
|
1140
1139
|
//#region src/components/cardTab/cardTabContext.tsx
|
|
1141
|
-
var
|
|
1142
|
-
function
|
|
1143
|
-
return a(
|
|
1140
|
+
var gt = n({});
|
|
1141
|
+
function _t() {
|
|
1142
|
+
return a(gt);
|
|
1144
1143
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return /* @__PURE__ */ p(
|
|
1144
|
+
function vt(e) {
|
|
1145
|
+
return /* @__PURE__ */ p(gt.Provider, {
|
|
1147
1146
|
value: e,
|
|
1148
1147
|
children: e.children
|
|
1149
1148
|
});
|
|
1150
1149
|
}
|
|
1151
1150
|
//#endregion
|
|
1152
1151
|
//#region src/components/cardTab/cardTabButton/index.tsx
|
|
1153
|
-
function
|
|
1154
|
-
let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } =
|
|
1152
|
+
function yt(e) {
|
|
1153
|
+
let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } = _t(), u = s || n, d = `arkynCardTabButton ${u ? "isDisabled" : ""} ${c === a && a ? "isActive" : ""} ${r}`;
|
|
1155
1154
|
function f(e) {
|
|
1156
1155
|
l(a), i?.(e);
|
|
1157
1156
|
}
|
|
@@ -1166,12 +1165,12 @@ function bt(e) {
|
|
|
1166
1165
|
}
|
|
1167
1166
|
//#endregion
|
|
1168
1167
|
//#region src/components/cardTab/cardTabContainer/index.tsx
|
|
1169
|
-
function
|
|
1168
|
+
function bt(e) {
|
|
1170
1169
|
let { children: t, onChange: n, defaultValue: r, disabled: i = !1, className: a, ...o } = e, [s, c] = u(r || ""), l = `arkynCardTabContainer ${a || ""}`;
|
|
1171
1170
|
function d(e) {
|
|
1172
1171
|
c(e), n && n(e);
|
|
1173
1172
|
}
|
|
1174
|
-
return /* @__PURE__ */ p(
|
|
1173
|
+
return /* @__PURE__ */ p(vt, {
|
|
1175
1174
|
disabled: i,
|
|
1176
1175
|
currentTab: s,
|
|
1177
1176
|
changeCurrentTab: d,
|
|
@@ -1184,13 +1183,13 @@ function xt(e) {
|
|
|
1184
1183
|
}
|
|
1185
1184
|
//#endregion
|
|
1186
1185
|
//#region src/components/checkbox/index.tsx
|
|
1187
|
-
function
|
|
1188
|
-
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 } =
|
|
1186
|
+
function xt(e) {
|
|
1187
|
+
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 = s(), w = t || C, T = a || b?.[n], E = !!T, [D, O] = u(o || !1), k = typeof d == "boolean" ? d : D, A = `arkynCheckbox ${i} ${E ? "errorTrue" : "errorFalse"} ${k ? "checkedTrue" : "checkedFalse"}`;
|
|
1189
1188
|
function j() {
|
|
1190
1189
|
let e = D;
|
|
1191
1190
|
O(!e), f?.(e ? "" : v || "checked");
|
|
1192
1191
|
}
|
|
1193
|
-
return /* @__PURE__ */ p(
|
|
1192
|
+
return /* @__PURE__ */ p(Qe, {
|
|
1194
1193
|
name: n,
|
|
1195
1194
|
label: c,
|
|
1196
1195
|
showAsterisk: g,
|
|
@@ -1215,33 +1214,33 @@ function St(e) {
|
|
|
1215
1214
|
}
|
|
1216
1215
|
//#endregion
|
|
1217
1216
|
//#region src/hooks/useHydrated.ts
|
|
1218
|
-
function
|
|
1217
|
+
function St() {
|
|
1219
1218
|
return () => {};
|
|
1220
1219
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return d(
|
|
1220
|
+
function Ct() {
|
|
1221
|
+
return d(St, () => !0, () => !1);
|
|
1223
1222
|
}
|
|
1224
1223
|
//#endregion
|
|
1225
1224
|
//#region src/components/clientOnly.tsx
|
|
1226
|
-
function
|
|
1225
|
+
function wt(e) {
|
|
1227
1226
|
let { children: t, fallback: n = null } = e;
|
|
1228
|
-
return
|
|
1227
|
+
return Ct() ? t() : n;
|
|
1229
1228
|
}
|
|
1230
1229
|
//#endregion
|
|
1231
1230
|
//#region src/services/maskCurrencyValues.ts
|
|
1232
|
-
function
|
|
1231
|
+
function Tt(e) {
|
|
1233
1232
|
let t = e;
|
|
1234
1233
|
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;
|
|
1235
1234
|
}
|
|
1236
|
-
function
|
|
1235
|
+
function Et(e, t) {
|
|
1237
1236
|
if (!e) return [0, te(0, t)];
|
|
1238
|
-
let n =
|
|
1237
|
+
let n = Tt(e);
|
|
1239
1238
|
return [n, te(n, t)];
|
|
1240
1239
|
}
|
|
1241
1240
|
//#endregion
|
|
1242
1241
|
//#region src/components/currencyInput/index.tsx
|
|
1243
|
-
function
|
|
1244
|
-
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 } =
|
|
1242
|
+
function Dt(e) {
|
|
1243
|
+
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 = s(), H = M || V, U = E || P?.[t], W = !!U, G = n || x, K = {
|
|
1245
1244
|
md: 20,
|
|
1246
1245
|
lg: 20
|
|
1247
1246
|
}[j], q = A ? "right" : "left", ee = q === "left" && x, J = q === "right" && x;
|
|
@@ -1254,22 +1253,22 @@ function Ot(e) {
|
|
|
1254
1253
|
function re(e) {
|
|
1255
1254
|
I(!1), T && T(e);
|
|
1256
1255
|
}
|
|
1257
|
-
let
|
|
1258
|
-
let [t, n] =
|
|
1259
|
-
return !g || t <= g ? (z(n), [t, n]) :
|
|
1256
|
+
let ie = (e) => {
|
|
1257
|
+
let [t, n] = Et(e, _);
|
|
1258
|
+
return !g || t <= g ? (z(n), [t, n]) : Et(e, _);
|
|
1260
1259
|
};
|
|
1261
1260
|
return o(() => {
|
|
1262
1261
|
function e() {
|
|
1263
1262
|
if (typeof f == "number") return f;
|
|
1264
1263
|
if (typeof h == "number") return h;
|
|
1265
1264
|
}
|
|
1266
|
-
let [, t] =
|
|
1265
|
+
let [, t] = Et(e(), _);
|
|
1267
1266
|
z(t);
|
|
1268
1267
|
}, [
|
|
1269
1268
|
_,
|
|
1270
1269
|
h,
|
|
1271
1270
|
f
|
|
1272
|
-
]), /* @__PURE__ */ p(
|
|
1271
|
+
]), /* @__PURE__ */ p(Qe, {
|
|
1273
1272
|
name: t,
|
|
1274
1273
|
label: c,
|
|
1275
1274
|
showAsterisk: k,
|
|
@@ -1283,18 +1282,18 @@ function Ot(e) {
|
|
|
1283
1282
|
className: `arkynCurrencyInput ${y ? "hasPrefix" : ""} ${b ? "hasSuffix" : ""} ${a} ${j} ${G || C || x ? "opacity" : ""} ${W ? "errored" : ""} ${F ? "focused" : ""}`,
|
|
1284
1283
|
onClick: te,
|
|
1285
1284
|
children: [
|
|
1286
|
-
/* @__PURE__ */ p(
|
|
1285
|
+
/* @__PURE__ */ p(Z, {
|
|
1287
1286
|
iconSize: K,
|
|
1288
1287
|
icon: y,
|
|
1289
1288
|
className: "prefix"
|
|
1290
1289
|
}),
|
|
1291
|
-
/* @__PURE__ */ p(
|
|
1290
|
+
/* @__PURE__ */ p(Z, {
|
|
1292
1291
|
show: ee,
|
|
1293
1292
|
iconSize: K,
|
|
1294
1293
|
className: "spinner",
|
|
1295
1294
|
icon: L
|
|
1296
1295
|
}),
|
|
1297
|
-
/* @__PURE__ */ p(
|
|
1296
|
+
/* @__PURE__ */ p(Z, {
|
|
1298
1297
|
show: !x,
|
|
1299
1298
|
icon: S,
|
|
1300
1299
|
iconSize: K
|
|
@@ -1307,7 +1306,7 @@ function Ot(e) {
|
|
|
1307
1306
|
onBlur: re,
|
|
1308
1307
|
onChange: (e) => {
|
|
1309
1308
|
e.preventDefault();
|
|
1310
|
-
let [t, n] =
|
|
1309
|
+
let [t, n] = ie(e.target.value);
|
|
1311
1310
|
v?.(e, String(t), String(n));
|
|
1312
1311
|
},
|
|
1313
1312
|
id: H,
|
|
@@ -1318,21 +1317,21 @@ function Ot(e) {
|
|
|
1318
1317
|
/* @__PURE__ */ p("input", {
|
|
1319
1318
|
type: "hidden",
|
|
1320
1319
|
name: t,
|
|
1321
|
-
value:
|
|
1320
|
+
value: Tt(R),
|
|
1322
1321
|
readOnly: !0
|
|
1323
1322
|
}),
|
|
1324
|
-
/* @__PURE__ */ p(
|
|
1323
|
+
/* @__PURE__ */ p(Z, {
|
|
1325
1324
|
show: !x,
|
|
1326
1325
|
icon: A,
|
|
1327
1326
|
iconSize: K
|
|
1328
1327
|
}),
|
|
1329
|
-
/* @__PURE__ */ p(
|
|
1328
|
+
/* @__PURE__ */ p(Z, {
|
|
1330
1329
|
show: J,
|
|
1331
1330
|
iconSize: K,
|
|
1332
1331
|
className: "spinner",
|
|
1333
1332
|
icon: L
|
|
1334
1333
|
}),
|
|
1335
|
-
/* @__PURE__ */ p(
|
|
1334
|
+
/* @__PURE__ */ p(Z, {
|
|
1336
1335
|
iconSize: K,
|
|
1337
1336
|
icon: b,
|
|
1338
1337
|
className: "suffix"
|
|
@@ -1343,27 +1342,27 @@ function Ot(e) {
|
|
|
1343
1342
|
}
|
|
1344
1343
|
//#endregion
|
|
1345
1344
|
//#region src/components/drawer/drawerContext.tsx
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1348
|
-
return /* @__PURE__ */ p(
|
|
1345
|
+
var Ot = n({});
|
|
1346
|
+
function kt(e) {
|
|
1347
|
+
return /* @__PURE__ */ p(Ot.Provider, {
|
|
1349
1348
|
value: { makeInvisible: e.makeInvisible },
|
|
1350
1349
|
children: e.children
|
|
1351
1350
|
});
|
|
1352
1351
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return a(
|
|
1352
|
+
function At() {
|
|
1353
|
+
return a(Ot);
|
|
1355
1354
|
}
|
|
1356
1355
|
//#endregion
|
|
1357
1356
|
//#region src/components/drawer/drawerContainer/index.tsx
|
|
1358
|
-
function
|
|
1357
|
+
function jt(e) {
|
|
1359
1358
|
let { isVisible: t, makeInvisible: n, orientation: r = "left", children: i, className: a, ...s } = e, [c, l] = u(t), [d, f] = u(!1);
|
|
1360
1359
|
o(() => {
|
|
1361
1360
|
t ? (l(!0), f(!1)) : c && f(!0);
|
|
1362
|
-
}, [t, c]),
|
|
1361
|
+
}, [t, c]), it(t);
|
|
1363
1362
|
function h(e) {
|
|
1364
1363
|
e.target === e.currentTarget && d && (f(!1), l(!1), n());
|
|
1365
1364
|
}
|
|
1366
|
-
return c ? /* @__PURE__ */ p(
|
|
1365
|
+
return c ? /* @__PURE__ */ p(kt, {
|
|
1367
1366
|
makeInvisible: () => f(!0),
|
|
1368
1367
|
children: /* @__PURE__ */ m("aside", {
|
|
1369
1368
|
className: [
|
|
@@ -1386,8 +1385,8 @@ function Mt(e) {
|
|
|
1386
1385
|
}
|
|
1387
1386
|
//#endregion
|
|
1388
1387
|
//#region src/components/drawer/drawerHeader/index.tsx
|
|
1389
|
-
function
|
|
1390
|
-
let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } =
|
|
1388
|
+
function Mt(e) {
|
|
1389
|
+
let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = At();
|
|
1391
1390
|
return /* @__PURE__ */ m("header", {
|
|
1392
1391
|
className: `arkynDrawerHeader ${n}`.trim(),
|
|
1393
1392
|
...i,
|
|
@@ -1402,7 +1401,7 @@ function Nt(e) {
|
|
|
1402
1401
|
}
|
|
1403
1402
|
//#endregion
|
|
1404
1403
|
//#region src/components/facebookPixel/pixel.ts
|
|
1405
|
-
var
|
|
1404
|
+
var Nt = class {
|
|
1406
1405
|
pixelId;
|
|
1407
1406
|
autoConfig;
|
|
1408
1407
|
initialized;
|
|
@@ -1449,18 +1448,18 @@ var Pt = class {
|
|
|
1449
1448
|
};
|
|
1450
1449
|
//#endregion
|
|
1451
1450
|
//#region src/components/facebookPixel/facebookPixel.client.tsx
|
|
1452
|
-
function
|
|
1453
|
-
let { pixelId: t, options: n, pageView: r, track: i, trackCustom: a, trackSingle: o, trackSingleCustom: s, grantConsent: c, revokeConsent: l } = e, u = new
|
|
1451
|
+
function Pt(e) {
|
|
1452
|
+
let { pixelId: t, options: n, pageView: r, track: i, trackCustom: a, trackSingle: o, trackSingleCustom: s, grantConsent: c, revokeConsent: l } = e, u = new Nt(t, n);
|
|
1454
1453
|
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), null;
|
|
1455
1454
|
}
|
|
1456
1455
|
//#endregion
|
|
1457
1456
|
//#region src/components/facebookPixel/index.tsx
|
|
1458
|
-
function
|
|
1459
|
-
return process.env.NODE_ENV !== "production" && !e.showInDevMode ? null : /* @__PURE__ */ p(
|
|
1457
|
+
function Ft(e) {
|
|
1458
|
+
return process.env.NODE_ENV !== "production" && !e.showInDevMode ? null : /* @__PURE__ */ p(wt, { children: () => /* @__PURE__ */ p(Pt, { ...e }) });
|
|
1460
1459
|
}
|
|
1461
1460
|
//#endregion
|
|
1462
1461
|
//#region src/components/fileUpload/hasFileContent/index.tsx
|
|
1463
|
-
function
|
|
1462
|
+
function It(e) {
|
|
1464
1463
|
let { disabled: t, file: n, isLoading: r, acceptFile: i, changeFileButtonText: a, handleSelectFile: o, reSendFile: s } = e;
|
|
1465
1464
|
function c() {
|
|
1466
1465
|
if (t) return;
|
|
@@ -1480,13 +1479,13 @@ function Lt(e) {
|
|
|
1480
1479
|
className: "arkynFileUploadFileContainer",
|
|
1481
1480
|
children: [/* @__PURE__ */ p(l, {}), /* @__PURE__ */ p("p", { children: n.name })]
|
|
1482
1481
|
}),
|
|
1483
|
-
/* @__PURE__ */ p(
|
|
1482
|
+
/* @__PURE__ */ p(Be, {}),
|
|
1484
1483
|
/* @__PURE__ */ m("div", {
|
|
1485
1484
|
className: "arkynFileUploadButtonsContainer",
|
|
1486
|
-
children: [!!s && /* @__PURE__ */ p(
|
|
1485
|
+
children: [!!s && /* @__PURE__ */ p(He, {
|
|
1487
1486
|
orientation: "bottom",
|
|
1488
1487
|
text: "Reenviar arquivo",
|
|
1489
|
-
children: /* @__PURE__ */ p(
|
|
1488
|
+
children: /* @__PURE__ */ p(Ve, {
|
|
1490
1489
|
type: "button",
|
|
1491
1490
|
"aria-label": "resend file",
|
|
1492
1491
|
variant: "outline",
|
|
@@ -1497,7 +1496,7 @@ function Lt(e) {
|
|
|
1497
1496
|
icon: H,
|
|
1498
1497
|
disabled: t
|
|
1499
1498
|
})
|
|
1500
|
-
}), /* @__PURE__ */ p(
|
|
1499
|
+
}), /* @__PURE__ */ p(Q, {
|
|
1501
1500
|
isLoading: r,
|
|
1502
1501
|
onClick: c,
|
|
1503
1502
|
variant: "outline",
|
|
@@ -1512,7 +1511,7 @@ function Lt(e) {
|
|
|
1512
1511
|
}
|
|
1513
1512
|
//#endregion
|
|
1514
1513
|
//#region src/components/fileUpload/noFileContent/index.tsx
|
|
1515
|
-
function
|
|
1514
|
+
function Lt(e) {
|
|
1516
1515
|
let { dropFileText: t, isLoading: n, acceptFile: r, handleSelectFile: i, selectFileButtonText: a, disabled: o } = e;
|
|
1517
1516
|
function s(e) {
|
|
1518
1517
|
if (o) return;
|
|
@@ -1531,7 +1530,7 @@ function Rt(e) {
|
|
|
1531
1530
|
return /* @__PURE__ */ m("div", {
|
|
1532
1531
|
onDrop: s,
|
|
1533
1532
|
className: "arkynFileUploadNoFileContent",
|
|
1534
|
-
children: [/* @__PURE__ */ p(
|
|
1533
|
+
children: [/* @__PURE__ */ p(Q, {
|
|
1535
1534
|
isLoading: n,
|
|
1536
1535
|
onClick: c,
|
|
1537
1536
|
variant: "ghost",
|
|
@@ -1544,8 +1543,8 @@ function Rt(e) {
|
|
|
1544
1543
|
}
|
|
1545
1544
|
//#endregion
|
|
1546
1545
|
//#region src/components/fileUpload/index.tsx
|
|
1547
|
-
function
|
|
1548
|
-
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: _ } =
|
|
1546
|
+
function Rt(e) {
|
|
1547
|
+
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);
|
|
1549
1548
|
async function D(e) {
|
|
1550
1549
|
if (g) return;
|
|
1551
1550
|
E(!0), w(e), S("");
|
|
@@ -1576,7 +1575,7 @@ function zt(e) {
|
|
|
1576
1575
|
name: t,
|
|
1577
1576
|
value: y || ""
|
|
1578
1577
|
}),
|
|
1579
|
-
!C && /* @__PURE__ */ p(
|
|
1578
|
+
!C && /* @__PURE__ */ p(Lt, {
|
|
1580
1579
|
disabled: g,
|
|
1581
1580
|
isLoading: T,
|
|
1582
1581
|
acceptFile: s,
|
|
@@ -1584,7 +1583,7 @@ function zt(e) {
|
|
|
1584
1583
|
handleSelectFile: O,
|
|
1585
1584
|
selectFileButtonText: d
|
|
1586
1585
|
}),
|
|
1587
|
-
C && /* @__PURE__ */ p(
|
|
1586
|
+
C && /* @__PURE__ */ p(It, {
|
|
1588
1587
|
disabled: g,
|
|
1589
1588
|
isLoading: T,
|
|
1590
1589
|
acceptFile: s,
|
|
@@ -1600,7 +1599,7 @@ function zt(e) {
|
|
|
1600
1599
|
}
|
|
1601
1600
|
//#endregion
|
|
1602
1601
|
//#region src/components/fullCalendar/_viewService.ts
|
|
1603
|
-
var
|
|
1602
|
+
var zt = class {
|
|
1604
1603
|
capitalize(e) {
|
|
1605
1604
|
return J(e);
|
|
1606
1605
|
}
|
|
@@ -1696,16 +1695,16 @@ var Bt = class {
|
|
|
1696
1695
|
let n = new Date(e);
|
|
1697
1696
|
n.setDate(n.getDate() - 1), t(n);
|
|
1698
1697
|
}
|
|
1699
|
-
},
|
|
1698
|
+
}, Bt = n({});
|
|
1700
1699
|
function $() {
|
|
1701
|
-
return a(
|
|
1700
|
+
return a(Bt);
|
|
1702
1701
|
}
|
|
1703
|
-
function
|
|
1704
|
-
let { blockedTimestamps: t, children: n, events: r, defaultViewValue: i = /* @__PURE__ */ new Date(), language: a = "pt-BR", onChangeView: o, onClickDate: s, viewValue: c } = e, l = new
|
|
1702
|
+
function Vt(e) {
|
|
1703
|
+
let { blockedTimestamps: t, children: n, events: r, defaultViewValue: i = /* @__PURE__ */ new Date(), language: a = "pt-BR", onChangeView: o, onClickDate: s, viewValue: c } = e, l = new zt(), d = l.listHours([8, 18]), [f, m] = u(i), h = c || f;
|
|
1705
1704
|
function g(e) {
|
|
1706
1705
|
o && o(e), m(e);
|
|
1707
1706
|
}
|
|
1708
|
-
return /* @__PURE__ */ p(
|
|
1707
|
+
return /* @__PURE__ */ p(Bt.Provider, {
|
|
1709
1708
|
value: {
|
|
1710
1709
|
events: r,
|
|
1711
1710
|
blockedTimestamps: t,
|
|
@@ -1727,7 +1726,7 @@ function Ht(e) {
|
|
|
1727
1726
|
}
|
|
1728
1727
|
//#endregion
|
|
1729
1728
|
//#region src/components/fullCalendar/dayCalendar/dayCalendarContainer/index.tsx
|
|
1730
|
-
function
|
|
1729
|
+
function Ht({ children: e }) {
|
|
1731
1730
|
return /* @__PURE__ */ p("div", {
|
|
1732
1731
|
className: "arkynDayCalendarContainer",
|
|
1733
1732
|
children: e
|
|
@@ -1735,15 +1734,15 @@ function Ut({ children: e }) {
|
|
|
1735
1734
|
}
|
|
1736
1735
|
//#endregion
|
|
1737
1736
|
//#region src/components/fullCalendar/dayCalendar/dayCalendarEvent/index.tsx
|
|
1738
|
-
var
|
|
1739
|
-
function
|
|
1737
|
+
var Ut = 30, Wt = 205;
|
|
1738
|
+
function Gt(e) {
|
|
1740
1739
|
let { events: t, viewDate: n } = $(), r = n.getDate(), i = n.getMonth(), a = n.getFullYear(), o = t.map((e, t) => ({
|
|
1741
1740
|
event: e,
|
|
1742
1741
|
sourceIndex: t
|
|
1743
1742
|
})).filter(({ event: e }) => e.initialDate.getDate() === r && e.initialDate.getMonth() === i && e.initialDate.getFullYear() === a).sort((e, t) => {
|
|
1744
1743
|
let n = e.event.initialDate.getTime(), r = t.event.initialDate.getTime();
|
|
1745
1744
|
if (n !== r) return n - r;
|
|
1746
|
-
let i = e.event.endDate?.getTime() ?? n +
|
|
1745
|
+
let i = e.event.endDate?.getTime() ?? n + Ut * 6e4, a = t.event.endDate?.getTime() ?? r + Ut * 6e4;
|
|
1747
1746
|
return i === a ? e.sourceIndex - t.sourceIndex : i - a;
|
|
1748
1747
|
}), s = new Map(o.map((e, t) => [e.sourceIndex, t])), c = o.filter(({ event: t }) => {
|
|
1749
1748
|
let n = Math.floor(e.timeInMinutes / 60), o = e.timeInMinutes % 60;
|
|
@@ -1764,7 +1763,7 @@ function Kt(e) {
|
|
|
1764
1763
|
return n === 0 ? `${t}h` : `${t}h${n}`;
|
|
1765
1764
|
}
|
|
1766
1765
|
function d(e) {
|
|
1767
|
-
let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t +
|
|
1766
|
+
let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + Ut;
|
|
1768
1767
|
return {
|
|
1769
1768
|
startMinutes: t,
|
|
1770
1769
|
endMinutes: Math.max(n, t + 1)
|
|
@@ -1779,7 +1778,7 @@ function Kt(e) {
|
|
|
1779
1778
|
}, 0);
|
|
1780
1779
|
}
|
|
1781
1780
|
function h(t, n) {
|
|
1782
|
-
let { startMinutes: r, endMinutes: i } = d(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), s = a /
|
|
1781
|
+
let { startMinutes: r, endMinutes: i } = d(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), s = a / Ut * 100, c = o / Ut * 100, l = f(t, n) * Wt;
|
|
1783
1782
|
return {
|
|
1784
1783
|
top: `${s}%`,
|
|
1785
1784
|
height: `${c}%`,
|
|
@@ -1802,8 +1801,8 @@ function Kt(e) {
|
|
|
1802
1801
|
}
|
|
1803
1802
|
//#endregion
|
|
1804
1803
|
//#region src/components/fullCalendar/dayCalendar/dayCalendarRow/index.tsx
|
|
1805
|
-
function
|
|
1806
|
-
let n = new
|
|
1804
|
+
function Kt({ hour: e, timeInMinutes: t }) {
|
|
1805
|
+
let n = new zt(), { blockedTimestamps: r, viewDate: i, onClickDate: a } = $();
|
|
1807
1806
|
function o() {
|
|
1808
1807
|
return r.some((e) => i >= e.initialDate && i <= e.endDate);
|
|
1809
1808
|
}
|
|
@@ -1819,22 +1818,22 @@ function qt({ hour: e, timeInMinutes: t }) {
|
|
|
1819
1818
|
onClick: s,
|
|
1820
1819
|
children: [/* @__PURE__ */ p("p", { children: n.formatHourLabel(e) }), /* @__PURE__ */ p("div", {
|
|
1821
1820
|
className: "arkynDayCalendarRowContent",
|
|
1822
|
-
children: /* @__PURE__ */ p(
|
|
1821
|
+
children: /* @__PURE__ */ p(Gt, { timeInMinutes: t })
|
|
1823
1822
|
})]
|
|
1824
1823
|
});
|
|
1825
1824
|
}
|
|
1826
1825
|
//#endregion
|
|
1827
1826
|
//#region src/components/fullCalendar/dayCalendar/index.tsx
|
|
1828
|
-
function
|
|
1827
|
+
function qt() {
|
|
1829
1828
|
let { listHours: e } = $();
|
|
1830
|
-
return /* @__PURE__ */ p(
|
|
1829
|
+
return /* @__PURE__ */ p(Ht, { children: e.map((e) => /* @__PURE__ */ p(Kt, {
|
|
1831
1830
|
hour: e,
|
|
1832
1831
|
timeInMinutes: e
|
|
1833
1832
|
}, e)) });
|
|
1834
1833
|
}
|
|
1835
1834
|
//#endregion
|
|
1836
1835
|
//#region src/components/fullCalendar/fullCalendarContainer/index.tsx
|
|
1837
|
-
function
|
|
1836
|
+
function Jt({ children: e }) {
|
|
1838
1837
|
return /* @__PURE__ */ p("div", {
|
|
1839
1838
|
className: "arkynFullCalendarContainer",
|
|
1840
1839
|
children: e
|
|
@@ -1842,7 +1841,7 @@ function Yt({ children: e }) {
|
|
|
1842
1841
|
}
|
|
1843
1842
|
//#endregion
|
|
1844
1843
|
//#region src/components/fullCalendar/fullCalendarHeader/index.tsx
|
|
1845
|
-
function
|
|
1844
|
+
function Yt(e) {
|
|
1846
1845
|
let { setViewType: t, viewType: n } = e, r = $();
|
|
1847
1846
|
function i() {
|
|
1848
1847
|
switch (n) {
|
|
@@ -1860,19 +1859,19 @@ function Xt(e) {
|
|
|
1860
1859
|
}
|
|
1861
1860
|
return /* @__PURE__ */ m("div", {
|
|
1862
1861
|
className: "arkynFullCalendarHeader",
|
|
1863
|
-
children: [/* @__PURE__ */ m(
|
|
1862
|
+
children: [/* @__PURE__ */ m(bt, {
|
|
1864
1863
|
defaultValue: n,
|
|
1865
1864
|
onChange: (e) => t(e),
|
|
1866
1865
|
children: [
|
|
1867
|
-
/* @__PURE__ */ p(
|
|
1866
|
+
/* @__PURE__ */ p(yt, {
|
|
1868
1867
|
value: "day",
|
|
1869
1868
|
children: "Dia"
|
|
1870
1869
|
}),
|
|
1871
|
-
/* @__PURE__ */ p(
|
|
1870
|
+
/* @__PURE__ */ p(yt, {
|
|
1872
1871
|
value: "week",
|
|
1873
1872
|
children: "Semana"
|
|
1874
1873
|
}),
|
|
1875
|
-
/* @__PURE__ */ p(
|
|
1874
|
+
/* @__PURE__ */ p(yt, {
|
|
1876
1875
|
value: "month",
|
|
1877
1876
|
children: "Mês"
|
|
1878
1877
|
})
|
|
@@ -1880,7 +1879,7 @@ function Xt(e) {
|
|
|
1880
1879
|
}), /* @__PURE__ */ m("div", {
|
|
1881
1880
|
className: "arkynFullCalendarHeaderActions",
|
|
1882
1881
|
children: [
|
|
1883
|
-
/* @__PURE__ */ p(
|
|
1882
|
+
/* @__PURE__ */ p(Ve, {
|
|
1884
1883
|
variant: "outline",
|
|
1885
1884
|
icon: w,
|
|
1886
1885
|
"aria-label": "Handle previous",
|
|
@@ -1891,7 +1890,7 @@ function Xt(e) {
|
|
|
1891
1890
|
month: "long",
|
|
1892
1891
|
year: "numeric"
|
|
1893
1892
|
}) }),
|
|
1894
|
-
/* @__PURE__ */ p(
|
|
1893
|
+
/* @__PURE__ */ p(Ve, {
|
|
1895
1894
|
variant: "outline",
|
|
1896
1895
|
icon: T,
|
|
1897
1896
|
"aria-label": "Handle next",
|
|
@@ -1903,7 +1902,7 @@ function Xt(e) {
|
|
|
1903
1902
|
}
|
|
1904
1903
|
//#endregion
|
|
1905
1904
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.tsx
|
|
1906
|
-
function
|
|
1905
|
+
function Xt(e) {
|
|
1907
1906
|
let { events: t } = $(), n = t.filter((t) => t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year);
|
|
1908
1907
|
if (n.length === 0) return null;
|
|
1909
1908
|
function r(t) {
|
|
@@ -1928,7 +1927,7 @@ function Zt(e) {
|
|
|
1928
1927
|
}
|
|
1929
1928
|
//#endregion
|
|
1930
1929
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.tsx
|
|
1931
|
-
function
|
|
1930
|
+
function Zt(e) {
|
|
1932
1931
|
let { day: t, month: n, year: r, dayOwner: i } = e, { blockedTimestamps: a, onClickDate: o } = $();
|
|
1933
1932
|
function s() {
|
|
1934
1933
|
let e = /* @__PURE__ */ new Date();
|
|
@@ -1949,7 +1948,7 @@ function Qt(e) {
|
|
|
1949
1948
|
children: t
|
|
1950
1949
|
}), /* @__PURE__ */ p("div", {
|
|
1951
1950
|
className: "arkynMonthlyCalendarEventContainer",
|
|
1952
|
-
children: /* @__PURE__ */ p(
|
|
1951
|
+
children: /* @__PURE__ */ p(Xt, {
|
|
1953
1952
|
day: t,
|
|
1954
1953
|
month: n,
|
|
1955
1954
|
year: r
|
|
@@ -1959,15 +1958,15 @@ function Qt(e) {
|
|
|
1959
1958
|
}
|
|
1960
1959
|
//#endregion
|
|
1961
1960
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.tsx
|
|
1962
|
-
function
|
|
1961
|
+
function Qt() {
|
|
1963
1962
|
return /* @__PURE__ */ p("tbody", {
|
|
1964
1963
|
className: "arkynMonthlyCalendarTableBody",
|
|
1965
|
-
children: $().listMonthlyMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p(
|
|
1964
|
+
children: $().listMonthlyMatrix.map((e, t) => /* @__PURE__ */ p("tr", { children: e.map((e, t) => /* @__PURE__ */ p(Zt, { ...e }, t)) }, t))
|
|
1966
1965
|
});
|
|
1967
1966
|
}
|
|
1968
1967
|
//#endregion
|
|
1969
1968
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.tsx
|
|
1970
|
-
function
|
|
1969
|
+
function $t({ children: e }) {
|
|
1971
1970
|
return /* @__PURE__ */ p("div", {
|
|
1972
1971
|
className: "arkynMonthlyCalendarTableContainer",
|
|
1973
1972
|
children: /* @__PURE__ */ p("table", { children: e })
|
|
@@ -1975,7 +1974,7 @@ function en({ children: e }) {
|
|
|
1975
1974
|
}
|
|
1976
1975
|
//#endregion
|
|
1977
1976
|
//#region src/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.tsx
|
|
1978
|
-
function
|
|
1977
|
+
function en() {
|
|
1979
1978
|
let { listWeek: e } = $();
|
|
1980
1979
|
return /* @__PURE__ */ p("thead", {
|
|
1981
1980
|
className: "arkynMonthlyCalendarTableHeader",
|
|
@@ -1984,20 +1983,20 @@ function tn() {
|
|
|
1984
1983
|
}
|
|
1985
1984
|
//#endregion
|
|
1986
1985
|
//#region src/components/fullCalendar/monthlyCalendar/index.tsx
|
|
1987
|
-
function
|
|
1988
|
-
return /* @__PURE__ */ m(
|
|
1986
|
+
function tn() {
|
|
1987
|
+
return /* @__PURE__ */ m($t, { children: [/* @__PURE__ */ p(en, {}), /* @__PURE__ */ p(Qt, {})] });
|
|
1989
1988
|
}
|
|
1990
1989
|
//#endregion
|
|
1991
1990
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarEvent/index.tsx
|
|
1992
|
-
var
|
|
1993
|
-
function
|
|
1991
|
+
var nn = 30, rn = 40;
|
|
1992
|
+
function an(e) {
|
|
1994
1993
|
let { events: t } = $(), n = t.map((e, t) => ({
|
|
1995
1994
|
event: e,
|
|
1996
1995
|
sourceIndex: t
|
|
1997
1996
|
})).filter(({ event: t }) => t.initialDate.getDate() === e.day && t.initialDate.getMonth() === e.month && t.initialDate.getFullYear() === e.year).sort((e, t) => {
|
|
1998
1997
|
let n = e.event.initialDate.getTime(), r = t.event.initialDate.getTime();
|
|
1999
1998
|
if (n !== r) return n - r;
|
|
2000
|
-
let i = e.event.endDate?.getTime() ?? n +
|
|
1999
|
+
let i = e.event.endDate?.getTime() ?? n + nn * 6e4, a = t.event.endDate?.getTime() ?? r + nn * 6e4;
|
|
2001
2000
|
return i === a ? e.sourceIndex - t.sourceIndex : i - a;
|
|
2002
2001
|
}), r = new Map(n.map((e, t) => [e.sourceIndex, t])), i = n.filter(({ event: t }) => {
|
|
2003
2002
|
let n = Math.floor(e.timeInMinutes / 60), r = e.timeInMinutes % 60;
|
|
@@ -2018,7 +2017,7 @@ function on(e) {
|
|
|
2018
2017
|
return n === 0 ? `${t}h` : `${t}h${n}`;
|
|
2019
2018
|
}
|
|
2020
2019
|
function s(e) {
|
|
2021
|
-
let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t +
|
|
2020
|
+
let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + nn;
|
|
2022
2021
|
return {
|
|
2023
2022
|
startMinutes: t,
|
|
2024
2023
|
endMinutes: Math.max(n, t + 1)
|
|
@@ -2033,7 +2032,7 @@ function on(e) {
|
|
|
2033
2032
|
}, 0);
|
|
2034
2033
|
}
|
|
2035
2034
|
function l(t, n) {
|
|
2036
|
-
let { startMinutes: r, endMinutes: i } = s(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), l = a /
|
|
2035
|
+
let { startMinutes: r, endMinutes: i } = s(t), a = r - e.timeInMinutes, o = Math.max(i - r, 1), l = a / nn * 100, u = o / nn * 100, d = c(t, n) * rn;
|
|
2037
2036
|
return {
|
|
2038
2037
|
top: `${l}%`,
|
|
2039
2038
|
height: `${u}%`,
|
|
@@ -2056,7 +2055,7 @@ function on(e) {
|
|
|
2056
2055
|
}
|
|
2057
2056
|
//#endregion
|
|
2058
2057
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.tsx
|
|
2059
|
-
function
|
|
2058
|
+
function on(e) {
|
|
2060
2059
|
let { day: t, month: n, year: r, dayOwner: i, timeInMinutes: a } = e, { blockedTimestamps: o, onClickDate: s } = $();
|
|
2061
2060
|
function c() {
|
|
2062
2061
|
let e = new Date(r, n, t);
|
|
@@ -2075,7 +2074,7 @@ function sn(e) {
|
|
|
2075
2074
|
onClick: l,
|
|
2076
2075
|
children: /* @__PURE__ */ p("div", {
|
|
2077
2076
|
className: "arkynWeekCalendarTableTdContent",
|
|
2078
|
-
children: /* @__PURE__ */ p(
|
|
2077
|
+
children: /* @__PURE__ */ p(an, {
|
|
2079
2078
|
day: t,
|
|
2080
2079
|
month: n,
|
|
2081
2080
|
year: r,
|
|
@@ -2086,19 +2085,19 @@ function sn(e) {
|
|
|
2086
2085
|
}
|
|
2087
2086
|
//#endregion
|
|
2088
2087
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.tsx
|
|
2089
|
-
function
|
|
2090
|
-
let e = $(), t = new
|
|
2088
|
+
function sn() {
|
|
2089
|
+
let e = $(), t = new zt();
|
|
2091
2090
|
return /* @__PURE__ */ p("tbody", {
|
|
2092
2091
|
className: "arkynWeekCalendarTableBody",
|
|
2093
2092
|
children: e.listWeeklyMatrix.map((e) => /* @__PURE__ */ m("tr", { children: [/* @__PURE__ */ p("td", {
|
|
2094
2093
|
className: "hourTd",
|
|
2095
2094
|
children: /* @__PURE__ */ p("p", { children: t.formatHourLabel(e[0].timeInMinutes) })
|
|
2096
|
-
}), e.map((e) => /* @__PURE__ */ p(
|
|
2095
|
+
}), e.map((e) => /* @__PURE__ */ p(on, { ...e }, `${e.year}-${e.month}-${e.day}-${e.timeInMinutes}`))] }, e[0].timeInMinutes))
|
|
2097
2096
|
});
|
|
2098
2097
|
}
|
|
2099
2098
|
//#endregion
|
|
2100
2099
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.tsx
|
|
2101
|
-
function
|
|
2100
|
+
function cn({ children: e }) {
|
|
2102
2101
|
return /* @__PURE__ */ p("div", {
|
|
2103
2102
|
className: "arkynWeekCalendarTableContainer",
|
|
2104
2103
|
children: /* @__PURE__ */ p("table", { children: e })
|
|
@@ -2106,7 +2105,7 @@ function ln({ children: e }) {
|
|
|
2106
2105
|
}
|
|
2107
2106
|
//#endregion
|
|
2108
2107
|
//#region src/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.tsx
|
|
2109
|
-
function
|
|
2108
|
+
function ln() {
|
|
2110
2109
|
let { listWeek: e, listWeeklyMatrix: t } = $(), n = t[0] || [];
|
|
2111
2110
|
return /* @__PURE__ */ p("thead", {
|
|
2112
2111
|
className: "arkynWeekCalendarTableHeader",
|
|
@@ -2118,34 +2117,34 @@ function un() {
|
|
|
2118
2117
|
}
|
|
2119
2118
|
//#endregion
|
|
2120
2119
|
//#region src/components/fullCalendar/weekCalendar/index.tsx
|
|
2121
|
-
function
|
|
2122
|
-
return /* @__PURE__ */ m(
|
|
2120
|
+
function un() {
|
|
2121
|
+
return /* @__PURE__ */ m(cn, { children: [/* @__PURE__ */ p(ln, {}), /* @__PURE__ */ p(sn, {})] });
|
|
2123
2122
|
}
|
|
2124
2123
|
//#endregion
|
|
2125
2124
|
//#region src/components/fullCalendar/index.tsx
|
|
2126
|
-
function
|
|
2125
|
+
function dn(e) {
|
|
2127
2126
|
let [t, n] = u("month");
|
|
2128
|
-
return /* @__PURE__ */ p(
|
|
2127
|
+
return /* @__PURE__ */ p(Vt, {
|
|
2129
2128
|
events: e.events || [],
|
|
2130
2129
|
viewValue: e.viewValue,
|
|
2131
2130
|
defaultViewValue: e.defaultViewValue,
|
|
2132
2131
|
onChangeView: e.onChangeView,
|
|
2133
2132
|
blockedTimestamps: e.blockedTimestamps || [],
|
|
2134
2133
|
onClickDate: e.onClickDate,
|
|
2135
|
-
children: /* @__PURE__ */ m(
|
|
2136
|
-
/* @__PURE__ */ p(
|
|
2134
|
+
children: /* @__PURE__ */ m(Jt, { children: [
|
|
2135
|
+
/* @__PURE__ */ p(Yt, {
|
|
2137
2136
|
viewType: t,
|
|
2138
2137
|
setViewType: n
|
|
2139
2138
|
}),
|
|
2140
|
-
t === "day" && /* @__PURE__ */ p(
|
|
2141
|
-
t === "month" && /* @__PURE__ */ p(
|
|
2142
|
-
t === "week" && /* @__PURE__ */ p(
|
|
2139
|
+
t === "day" && /* @__PURE__ */ p(qt, {}),
|
|
2140
|
+
t === "month" && /* @__PURE__ */ p(tn, {}),
|
|
2141
|
+
t === "week" && /* @__PURE__ */ p(un, {})
|
|
2143
2142
|
] })
|
|
2144
2143
|
});
|
|
2145
2144
|
}
|
|
2146
2145
|
//#endregion
|
|
2147
2146
|
//#region src/components/googleAnalytics/snippets/generateGAElements.ts
|
|
2148
|
-
function
|
|
2147
|
+
function fn(e) {
|
|
2149
2148
|
let { measurementId: t } = e;
|
|
2150
2149
|
return t || console.warn("Google Analytics Measurement ID is required"), {
|
|
2151
2150
|
src: `https://www.googletagmanager.com/gtag/js?id=${t}`,
|
|
@@ -2158,7 +2157,7 @@ function pn(e) {
|
|
|
2158
2157
|
}
|
|
2159
2158
|
//#endregion
|
|
2160
2159
|
//#region src/components/googleAnalytics/googleAnalytics.tsx
|
|
2161
|
-
var
|
|
2160
|
+
var pn = class {
|
|
2162
2161
|
initializeAsyncScript(e) {
|
|
2163
2162
|
let t = document.createElement("script");
|
|
2164
2163
|
return t.async = !0, t.src = e, t;
|
|
@@ -2168,24 +2167,24 @@ var mn = class {
|
|
|
2168
2167
|
return t.innerHTML = e, t;
|
|
2169
2168
|
}
|
|
2170
2169
|
initialize(e) {
|
|
2171
|
-
let { measurementId: t } = e, n =
|
|
2170
|
+
let { measurementId: t } = e, n = fn({ measurementId: t }), r = this.initializeAsyncScript(n.src), i = this.initializeInlineScript(n.script);
|
|
2172
2171
|
document.head.appendChild(r), document.head.appendChild(i);
|
|
2173
2172
|
}
|
|
2174
2173
|
};
|
|
2175
2174
|
//#endregion
|
|
2176
2175
|
//#region src/components/googleAnalytics/googleAnalytics.client.tsx
|
|
2177
|
-
function
|
|
2178
|
-
return new
|
|
2176
|
+
function mn(e) {
|
|
2177
|
+
return new pn().initialize(e), null;
|
|
2179
2178
|
}
|
|
2180
2179
|
//#endregion
|
|
2181
2180
|
//#region src/components/googleAnalytics/index.tsx
|
|
2182
|
-
function
|
|
2181
|
+
function hn(e) {
|
|
2183
2182
|
let { measurementId: t, showInDevMode: n = !1 } = e;
|
|
2184
|
-
return process.env.NODE_ENV !== "production" && !n ? null : /* @__PURE__ */ p(
|
|
2183
|
+
return process.env.NODE_ENV !== "production" && !n ? null : /* @__PURE__ */ p(wt, { children: () => /* @__PURE__ */ p(mn, { measurementId: t }) });
|
|
2185
2184
|
}
|
|
2186
2185
|
//#endregion
|
|
2187
2186
|
//#region src/components/googleTagManager/snippets/appendToDataLayer.ts
|
|
2188
|
-
function
|
|
2187
|
+
function gn(e) {
|
|
2189
2188
|
let { dataLayer: t, dataLayerName: n } = e;
|
|
2190
2189
|
return `
|
|
2191
2190
|
window.${n} = window.${n} || [];
|
|
@@ -2193,7 +2192,7 @@ function _n(e) {
|
|
|
2193
2192
|
}
|
|
2194
2193
|
//#endregion
|
|
2195
2194
|
//#region src/components/googleTagManager/snippets/generateGTMElements.ts
|
|
2196
|
-
function
|
|
2195
|
+
function _n(e) {
|
|
2197
2196
|
let { id: t, events: n, dataLayer: r, dataLayerName: i, preview: a, auth: o } = e, s = `>m_auth=${o}`, c = `>m_preview=${a}`;
|
|
2198
2197
|
return t || console.warn("GTM Id is required"), {
|
|
2199
2198
|
iframe: `
|
|
@@ -2206,7 +2205,7 @@ function vn(e) {
|
|
|
2206
2205
|
j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'${s}${c}>m_cookies_win=x';
|
|
2207
2206
|
f.parentNode.insertBefore(j,f);
|
|
2208
2207
|
})(window,document,'script','${i}','${t}');`,
|
|
2209
|
-
dataLayerVar:
|
|
2208
|
+
dataLayerVar: gn({
|
|
2210
2209
|
dataLayer: r,
|
|
2211
2210
|
dataLayerName: i
|
|
2212
2211
|
})
|
|
@@ -2214,13 +2213,13 @@ function vn(e) {
|
|
|
2214
2213
|
}
|
|
2215
2214
|
//#endregion
|
|
2216
2215
|
//#region src/components/googleTagManager/googleTagManager.tsx
|
|
2217
|
-
var
|
|
2216
|
+
var vn = class {
|
|
2218
2217
|
initializeDataScript(e) {
|
|
2219
2218
|
let t = document.createElement("script");
|
|
2220
2219
|
return t.innerHTML = e, t;
|
|
2221
2220
|
}
|
|
2222
2221
|
initializeGTMElements(e) {
|
|
2223
|
-
let t =
|
|
2222
|
+
let t = _n(e);
|
|
2224
2223
|
return {
|
|
2225
2224
|
noScript: () => {
|
|
2226
2225
|
let e = document.createElement("noscript");
|
|
@@ -2236,7 +2235,7 @@ var yn = class {
|
|
|
2236
2235
|
initializeDataLayer(e) {
|
|
2237
2236
|
let { dataLayer: t, dataLayerName: n } = e;
|
|
2238
2237
|
if (window[n]) return window[n].push(t);
|
|
2239
|
-
let r =
|
|
2238
|
+
let r = gn({
|
|
2240
2239
|
dataLayer: t,
|
|
2241
2240
|
dataLayerName: n
|
|
2242
2241
|
}), i = this.initializeDataScript(r);
|
|
@@ -2256,14 +2255,14 @@ var yn = class {
|
|
|
2256
2255
|
};
|
|
2257
2256
|
//#endregion
|
|
2258
2257
|
//#region src/components/googleTagManager/googleTagManager.client.tsx
|
|
2259
|
-
function
|
|
2260
|
-
return new
|
|
2258
|
+
function yn(e) {
|
|
2259
|
+
return new vn().initialize(e), null;
|
|
2261
2260
|
}
|
|
2262
2261
|
//#endregion
|
|
2263
2262
|
//#region src/components/googleTagManager/index.tsx
|
|
2264
|
-
function
|
|
2263
|
+
function bn(e) {
|
|
2265
2264
|
let { gtmId: t, auth: n = "", preview: r = "", dataLayerName: i = "dataLayer", events: a = {}, dataLayer: o = {}, showInDevMode: s = !1 } = e;
|
|
2266
|
-
return process.env.NODE_ENV !== "production" && !s ? null : /* @__PURE__ */ p(
|
|
2265
|
+
return process.env.NODE_ENV !== "production" && !s ? null : /* @__PURE__ */ p(wt, { children: () => /* @__PURE__ */ p(yn, {
|
|
2267
2266
|
auth: n,
|
|
2268
2267
|
dataLayer: o,
|
|
2269
2268
|
dataLayerName: i,
|
|
@@ -2274,7 +2273,7 @@ function xn(e) {
|
|
|
2274
2273
|
}
|
|
2275
2274
|
//#endregion
|
|
2276
2275
|
//#region src/components/imageUpload/hasFileContent/index.tsx
|
|
2277
|
-
function
|
|
2276
|
+
function xn(e) {
|
|
2278
2277
|
let { disabled: t, filePath: n, isLoading: r, acceptImage: i, changeImageButtonText: a, handleSelectFile: o, reSendImage: s } = e;
|
|
2279
2278
|
function c() {
|
|
2280
2279
|
if (t) return;
|
|
@@ -2287,10 +2286,10 @@ function Sn(e) {
|
|
|
2287
2286
|
return /* @__PURE__ */ m("div", {
|
|
2288
2287
|
className: "arkynImageUploadHasFileContent",
|
|
2289
2288
|
style: { backgroundImage: `url("${n}")` },
|
|
2290
|
-
children: [s && /* @__PURE__ */ p(
|
|
2289
|
+
children: [s && /* @__PURE__ */ p(He, {
|
|
2291
2290
|
orientation: "bottom",
|
|
2292
2291
|
text: "Reenviar imagem",
|
|
2293
|
-
children: /* @__PURE__ */ p(
|
|
2292
|
+
children: /* @__PURE__ */ p(Ve, {
|
|
2294
2293
|
type: "button",
|
|
2295
2294
|
"aria-label": "resend image",
|
|
2296
2295
|
variant: "outline",
|
|
@@ -2301,7 +2300,7 @@ function Sn(e) {
|
|
|
2301
2300
|
icon: H,
|
|
2302
2301
|
disabled: t
|
|
2303
2302
|
})
|
|
2304
|
-
}), /* @__PURE__ */ p(
|
|
2303
|
+
}), /* @__PURE__ */ p(Q, {
|
|
2305
2304
|
isLoading: r,
|
|
2306
2305
|
onClick: c,
|
|
2307
2306
|
variant: "outline",
|
|
@@ -2314,7 +2313,7 @@ function Sn(e) {
|
|
|
2314
2313
|
}
|
|
2315
2314
|
//#endregion
|
|
2316
2315
|
//#region src/components/imageUpload/noFileContent/index.tsx
|
|
2317
|
-
function
|
|
2316
|
+
function Sn(e) {
|
|
2318
2317
|
let { dropImageText: t, isLoading: n, acceptImage: r, handleSelectFile: i, selectImageButtonText: a, disabled: o } = e;
|
|
2319
2318
|
function s(e) {
|
|
2320
2319
|
if (o) return;
|
|
@@ -2333,7 +2332,7 @@ function Cn(e) {
|
|
|
2333
2332
|
return /* @__PURE__ */ m("div", {
|
|
2334
2333
|
onDrop: s,
|
|
2335
2334
|
className: "arkynImageUploadNoFileContent",
|
|
2336
|
-
children: [/* @__PURE__ */ p(
|
|
2335
|
+
children: [/* @__PURE__ */ p(Q, {
|
|
2337
2336
|
isLoading: n,
|
|
2338
2337
|
onClick: c,
|
|
2339
2338
|
variant: "ghost",
|
|
@@ -2346,8 +2345,8 @@ function Cn(e) {
|
|
|
2346
2345
|
}
|
|
2347
2346
|
//#endregion
|
|
2348
2347
|
//#region src/components/imageUpload/index.tsx
|
|
2349
|
-
function
|
|
2350
|
-
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 } =
|
|
2348
|
+
function Cn(e) {
|
|
2349
|
+
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);
|
|
2351
2350
|
async function N(e) {
|
|
2352
2351
|
if (v) return;
|
|
2353
2352
|
M(!0), O(e), E("");
|
|
@@ -2365,7 +2364,7 @@ function wn(e) {
|
|
|
2365
2364
|
v || (A(URL.createObjectURL(e)), N(e));
|
|
2366
2365
|
}
|
|
2367
2366
|
let F = S || T;
|
|
2368
|
-
return /* @__PURE__ */ p(
|
|
2367
|
+
return /* @__PURE__ */ p(Qe, {
|
|
2369
2368
|
name: t,
|
|
2370
2369
|
label: r,
|
|
2371
2370
|
showAsterisk: i,
|
|
@@ -2381,7 +2380,7 @@ function wn(e) {
|
|
|
2381
2380
|
name: t,
|
|
2382
2381
|
value: C || ""
|
|
2383
2382
|
}),
|
|
2384
|
-
!k && /* @__PURE__ */ p(
|
|
2383
|
+
!k && /* @__PURE__ */ p(Sn, {
|
|
2385
2384
|
disabled: v,
|
|
2386
2385
|
isLoading: j,
|
|
2387
2386
|
acceptImage: l,
|
|
@@ -2389,7 +2388,7 @@ function wn(e) {
|
|
|
2389
2388
|
handleSelectFile: P,
|
|
2390
2389
|
selectImageButtonText: h
|
|
2391
2390
|
}),
|
|
2392
|
-
k && /* @__PURE__ */ p(
|
|
2391
|
+
k && /* @__PURE__ */ p(xn, {
|
|
2393
2392
|
disabled: v,
|
|
2394
2393
|
isLoading: j,
|
|
2395
2394
|
acceptImage: l,
|
|
@@ -2404,9 +2403,9 @@ function wn(e) {
|
|
|
2404
2403
|
}
|
|
2405
2404
|
//#endregion
|
|
2406
2405
|
//#region src/components/mapView/mapView.client.tsx
|
|
2407
|
-
function
|
|
2406
|
+
function wn({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i }) {
|
|
2408
2407
|
let a = l(null), s = l(null), c = e || t[0];
|
|
2409
|
-
return o(() => (
|
|
2408
|
+
return o(() => (ie.accessToken = r, a.current = new ie.Map({
|
|
2410
2409
|
container: s.current,
|
|
2411
2410
|
style: "mapbox://styles/mapbox/light-v11",
|
|
2412
2411
|
center: [c.lng, c.lat],
|
|
@@ -2415,11 +2414,11 @@ function Tn({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i
|
|
|
2415
2414
|
}), t.forEach((e) => {
|
|
2416
2415
|
let { lat: t, lng: r, popUp: i } = e, o = document.createElement("img");
|
|
2417
2416
|
o.className = "arkynMarker", o.src = "https://i.postimg.cc/mgKggjk7/Pin.png";
|
|
2418
|
-
let s = new
|
|
2417
|
+
let s = new ie.Marker(o).setLngLat([r, t]).addTo(a.current);
|
|
2419
2418
|
if (i) {
|
|
2420
2419
|
let e = document.createElement("div");
|
|
2421
|
-
|
|
2422
|
-
let t = new
|
|
2420
|
+
ae(e).render(i);
|
|
2421
|
+
let t = new ie.Popup({
|
|
2423
2422
|
offset: 25,
|
|
2424
2423
|
closeButton: !1,
|
|
2425
2424
|
className: "arkynMapViewPopup"
|
|
@@ -2454,19 +2453,19 @@ function Tn({ center: e, coordinates: t, onMarkerClick: n, accessToken: r, ...i
|
|
|
2454
2453
|
}
|
|
2455
2454
|
//#endregion
|
|
2456
2455
|
//#region src/components/mapView/index.tsx
|
|
2457
|
-
function
|
|
2456
|
+
function Tn({ className: e }) {
|
|
2458
2457
|
return /* @__PURE__ */ p("div", {
|
|
2459
2458
|
className: `arkynMapViewPinnedEmpty ${e}`,
|
|
2460
2459
|
children: /* @__PURE__ */ p(R, {})
|
|
2461
2460
|
});
|
|
2462
2461
|
}
|
|
2463
|
-
function
|
|
2462
|
+
function En(e) {
|
|
2464
2463
|
let { coordinates: t, zoom: n = 18, accessToken: r, className: i, onMarkerClick: a, ...o } = e;
|
|
2465
|
-
if (!t) return /* @__PURE__ */ p(
|
|
2464
|
+
if (!t) return /* @__PURE__ */ p(Tn, { className: i });
|
|
2466
2465
|
let s = Array.isArray(t) ? t : [t];
|
|
2467
|
-
return s.length === 0 ? /* @__PURE__ */ p(
|
|
2468
|
-
fallback: /* @__PURE__ */ p(
|
|
2469
|
-
children: () => /* @__PURE__ */ p(
|
|
2466
|
+
return s.length === 0 ? /* @__PURE__ */ p(Tn, { className: i }) : /* @__PURE__ */ p(wt, {
|
|
2467
|
+
fallback: /* @__PURE__ */ p(Tn, { className: i }),
|
|
2468
|
+
children: () => /* @__PURE__ */ p(wn, {
|
|
2470
2469
|
accessToken: r,
|
|
2471
2470
|
coordinates: s,
|
|
2472
2471
|
center: s[0],
|
|
@@ -2477,12 +2476,12 @@ function Dn(e) {
|
|
|
2477
2476
|
}
|
|
2478
2477
|
//#endregion
|
|
2479
2478
|
//#region src/components/maskedInput/index.tsx
|
|
2480
|
-
var
|
|
2479
|
+
var Dn = r((e, t) => /* @__PURE__ */ p("input", {
|
|
2481
2480
|
ref: t,
|
|
2482
2481
|
...e
|
|
2483
2482
|
}));
|
|
2484
|
-
function
|
|
2485
|
-
let { name: t, disabled: n, title: r, style: i, variant: a = "solid", separate: o, mask: c, showMask: d, replacement: f, label: h, className: g = "", prefix: _, suffix: v, isLoading: y = !1, leftIcon: b, readOnly: x, onFocus: S, onBlur: C, errorMessage: w, defaultValue: T, showAsterisk: E, rightIcon: D, size: O = "md", id: k, value: A, placeholder: j, ...M } = e, { fieldErrors: N } =
|
|
2483
|
+
function On(e) {
|
|
2484
|
+
let { name: t, disabled: n, title: r, style: i, variant: a = "solid", separate: o, mask: c, showMask: d, replacement: f, label: h, className: g = "", prefix: _, suffix: v, isLoading: y = !1, leftIcon: b, readOnly: x, onFocus: S, onBlur: C, errorMessage: w, defaultValue: T, showAsterisk: E, rightIcon: D, size: O = "md", id: k, value: A, placeholder: j, ...M } = e, { fieldErrors: N } = X(), [P, F] = u(!1), I = l(null), R = s(), z = k || R, B = w || N?.[t], V = !!B, H = n || y, U = {
|
|
2486
2485
|
md: 20,
|
|
2487
2486
|
lg: 20
|
|
2488
2487
|
}[O], W = D ? "right" : "left", G = W === "left" && y, K = W === "right" && y;
|
|
@@ -2510,24 +2509,24 @@ function kn(e) {
|
|
|
2510
2509
|
onClick: q,
|
|
2511
2510
|
className: te,
|
|
2512
2511
|
children: [
|
|
2513
|
-
/* @__PURE__ */ p(
|
|
2512
|
+
/* @__PURE__ */ p(Z, {
|
|
2514
2513
|
iconSize: U,
|
|
2515
2514
|
icon: _,
|
|
2516
2515
|
className: "prefix"
|
|
2517
2516
|
}),
|
|
2518
|
-
/* @__PURE__ */ p(
|
|
2517
|
+
/* @__PURE__ */ p(Z, {
|
|
2519
2518
|
show: G,
|
|
2520
2519
|
iconSize: U,
|
|
2521
2520
|
className: "spinner",
|
|
2522
2521
|
icon: L
|
|
2523
2522
|
}),
|
|
2524
|
-
/* @__PURE__ */ p(
|
|
2523
|
+
/* @__PURE__ */ p(Z, {
|
|
2525
2524
|
show: !y,
|
|
2526
2525
|
icon: b,
|
|
2527
2526
|
iconSize: U
|
|
2528
2527
|
}),
|
|
2529
|
-
/* @__PURE__ */ p(
|
|
2530
|
-
component:
|
|
2528
|
+
/* @__PURE__ */ p(Y, {
|
|
2529
|
+
component: Dn,
|
|
2531
2530
|
mask: c,
|
|
2532
2531
|
replacement: f,
|
|
2533
2532
|
separate: o,
|
|
@@ -2544,18 +2543,18 @@ function kn(e) {
|
|
|
2544
2543
|
value: H ? void 0 : A,
|
|
2545
2544
|
...M
|
|
2546
2545
|
}),
|
|
2547
|
-
/* @__PURE__ */ p(
|
|
2546
|
+
/* @__PURE__ */ p(Z, {
|
|
2548
2547
|
show: !y,
|
|
2549
2548
|
icon: D,
|
|
2550
2549
|
iconSize: U
|
|
2551
2550
|
}),
|
|
2552
|
-
/* @__PURE__ */ p(
|
|
2551
|
+
/* @__PURE__ */ p(Z, {
|
|
2553
2552
|
show: K,
|
|
2554
2553
|
iconSize: U,
|
|
2555
2554
|
className: "spinner",
|
|
2556
2555
|
icon: L
|
|
2557
2556
|
}),
|
|
2558
|
-
/* @__PURE__ */ p(
|
|
2557
|
+
/* @__PURE__ */ p(Z, {
|
|
2559
2558
|
iconSize: U,
|
|
2560
2559
|
icon: v,
|
|
2561
2560
|
className: "suffix"
|
|
@@ -2568,27 +2567,27 @@ function kn(e) {
|
|
|
2568
2567
|
}
|
|
2569
2568
|
//#endregion
|
|
2570
2569
|
//#region src/components/modal/modalContext.tsx
|
|
2571
|
-
var
|
|
2572
|
-
function
|
|
2573
|
-
return /* @__PURE__ */ p(
|
|
2570
|
+
var kn = n({});
|
|
2571
|
+
function An(e) {
|
|
2572
|
+
return /* @__PURE__ */ p(kn.Provider, {
|
|
2574
2573
|
value: { makeInvisible: e.makeInvisible },
|
|
2575
2574
|
children: e.children
|
|
2576
2575
|
});
|
|
2577
2576
|
}
|
|
2578
|
-
function
|
|
2579
|
-
return a(
|
|
2577
|
+
function jn() {
|
|
2578
|
+
return a(kn);
|
|
2580
2579
|
}
|
|
2581
2580
|
//#endregion
|
|
2582
2581
|
//#region src/components/modal/modalContainer/index.tsx
|
|
2583
|
-
function
|
|
2582
|
+
function Mn(e) {
|
|
2584
2583
|
let { isVisible: t, makeInvisible: n, children: r, className: i = "", ...a } = e, [s, c] = u(t), [l, d] = u(!1);
|
|
2585
2584
|
o(() => {
|
|
2586
2585
|
t ? (c(!0), d(!1)) : s && d(!0);
|
|
2587
|
-
}, [t, s]),
|
|
2586
|
+
}, [t, s]), it(t);
|
|
2588
2587
|
function f(e) {
|
|
2589
2588
|
e.target === e.currentTarget && l && (d(!1), c(!1), n());
|
|
2590
2589
|
}
|
|
2591
|
-
return s ? /* @__PURE__ */ p(
|
|
2590
|
+
return s ? /* @__PURE__ */ p(An, {
|
|
2592
2591
|
makeInvisible: () => d(!0),
|
|
2593
2592
|
children: /* @__PURE__ */ m("aside", {
|
|
2594
2593
|
className: [
|
|
@@ -2610,7 +2609,7 @@ function Nn(e) {
|
|
|
2610
2609
|
}
|
|
2611
2610
|
//#endregion
|
|
2612
2611
|
//#region src/components/modal/modalFooter/index.tsx
|
|
2613
|
-
function
|
|
2612
|
+
function Nn(e) {
|
|
2614
2613
|
let { alignment: t = "right", className: n, ...r } = e;
|
|
2615
2614
|
return /* @__PURE__ */ p("footer", {
|
|
2616
2615
|
className: `arkynModalFooter ${t} ${n}`.trim(),
|
|
@@ -2619,8 +2618,8 @@ function Pn(e) {
|
|
|
2619
2618
|
}
|
|
2620
2619
|
//#endregion
|
|
2621
2620
|
//#region src/components/modal/modalHeader/index.tsx
|
|
2622
|
-
function
|
|
2623
|
-
let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } =
|
|
2621
|
+
function Pn(e) {
|
|
2622
|
+
let { showCloseButton: t = !0, className: n, children: r, ...i } = e, { makeInvisible: a } = jn();
|
|
2624
2623
|
return /* @__PURE__ */ m("header", {
|
|
2625
2624
|
className: `arkynModalHeader ${n}`.trim(),
|
|
2626
2625
|
...i,
|
|
@@ -2635,7 +2634,7 @@ function Fn(e) {
|
|
|
2635
2634
|
}
|
|
2636
2635
|
//#endregion
|
|
2637
2636
|
//#region src/components/multiSelect/multiSelectChevron/index.tsx
|
|
2638
|
-
function
|
|
2637
|
+
function Fn(e) {
|
|
2639
2638
|
let { iconSize: t, isLoading: n, disabled: r, readOnly: i, isFocused: a } = e;
|
|
2640
2639
|
return n ? null : /* @__PURE__ */ p(C, {
|
|
2641
2640
|
className: `arkynMultiSelectChevron ${r || i ? "notAnimate" : ""} ${a ? "focused" : ""}`,
|
|
@@ -2650,7 +2649,7 @@ function In(e) {
|
|
|
2650
2649
|
}
|
|
2651
2650
|
//#endregion
|
|
2652
2651
|
//#region src/components/multiSelect/multiSelectContainer/index.tsx
|
|
2653
|
-
function
|
|
2652
|
+
function In(e) {
|
|
2654
2653
|
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;
|
|
2655
2654
|
return /* @__PURE__ */ p("section", {
|
|
2656
2655
|
id: d,
|
|
@@ -2661,7 +2660,7 @@ function Ln(e) {
|
|
|
2661
2660
|
}
|
|
2662
2661
|
//#endregion
|
|
2663
2662
|
//#region src/components/multiSelect/multiSelectContent/index.tsx
|
|
2664
|
-
function
|
|
2663
|
+
function Ln(e) {
|
|
2665
2664
|
let { children: t, size: n } = e;
|
|
2666
2665
|
return /* @__PURE__ */ p("div", {
|
|
2667
2666
|
className: `arkynMultiSelectContent ${n}`,
|
|
@@ -2670,7 +2669,7 @@ function Rn(e) {
|
|
|
2670
2669
|
}
|
|
2671
2670
|
//#endregion
|
|
2672
2671
|
//#region src/components/multiSelect/multiSelectMark/index.tsx
|
|
2673
|
-
function
|
|
2672
|
+
function Rn(e) {
|
|
2674
2673
|
let { label: t, value: n, disabled: r, handleChangeValue: i } = e;
|
|
2675
2674
|
return /* @__PURE__ */ m("div", {
|
|
2676
2675
|
className: "arkynMultiSelectMark",
|
|
@@ -2686,7 +2685,7 @@ function zn(e) {
|
|
|
2686
2685
|
}
|
|
2687
2686
|
//#endregion
|
|
2688
2687
|
//#region src/components/multiSelect/multiSelectOption/index.tsx
|
|
2689
|
-
function
|
|
2688
|
+
function zn(e) {
|
|
2690
2689
|
let { label: t, optionHasSelected: n, handleChangeValue: r, value: i, size: a } = e;
|
|
2691
2690
|
return /* @__PURE__ */ m("div", {
|
|
2692
2691
|
onClick: () => r(i),
|
|
@@ -2700,9 +2699,9 @@ function Bn(e) {
|
|
|
2700
2699
|
}
|
|
2701
2700
|
//#endregion
|
|
2702
2701
|
//#region src/components/multiSelect/multiSelectOptionsContainer/index.tsx
|
|
2703
|
-
function
|
|
2702
|
+
function Bn(e) {
|
|
2704
2703
|
let { children: t, isFocused: n, isSearchable: r, search: i, onSearch: a } = e, s = l(null), [c, d] = u("bottom");
|
|
2705
|
-
|
|
2704
|
+
it(n), o(() => {
|
|
2706
2705
|
n && (() => {
|
|
2707
2706
|
if (!s.current) return;
|
|
2708
2707
|
let e = s.current.parentElement;
|
|
@@ -2717,7 +2716,7 @@ function Vn(e) {
|
|
|
2717
2716
|
return n ? /* @__PURE__ */ m("div", {
|
|
2718
2717
|
ref: s,
|
|
2719
2718
|
className: `arkynMultiSelectOptionsContainer ${c}`,
|
|
2720
|
-
children: [r && /* @__PURE__ */ p(
|
|
2719
|
+
children: [r && /* @__PURE__ */ p(at, {
|
|
2721
2720
|
type: "search",
|
|
2722
2721
|
name: "search-select",
|
|
2723
2722
|
variant: "underline",
|
|
@@ -2729,7 +2728,7 @@ function Vn(e) {
|
|
|
2729
2728
|
}
|
|
2730
2729
|
//#endregion
|
|
2731
2730
|
//#region src/components/multiSelect/multiSelectOverlay/index.tsx
|
|
2732
|
-
function
|
|
2731
|
+
function Vn(e) {
|
|
2733
2732
|
let { isFocused: t, handleBlur: n } = e;
|
|
2734
2733
|
return t ? /* @__PURE__ */ p("aside", {
|
|
2735
2734
|
className: "arkynMultiSelectOverlay",
|
|
@@ -2738,7 +2737,7 @@ function Hn(e) {
|
|
|
2738
2737
|
}
|
|
2739
2738
|
//#endregion
|
|
2740
2739
|
//#region src/components/multiSelect/multiSelectSpinner/index.tsx
|
|
2741
|
-
function
|
|
2740
|
+
function Hn(e) {
|
|
2742
2741
|
let { iconSize: t, isLoading: n } = e;
|
|
2743
2742
|
return n ? /* @__PURE__ */ p(L, {
|
|
2744
2743
|
className: "arkynMultiSelectSpinner",
|
|
@@ -2748,8 +2747,8 @@ function Un(e) {
|
|
|
2748
2747
|
}
|
|
2749
2748
|
//#endregion
|
|
2750
2749
|
//#region src/components/multiSelect/index.tsx
|
|
2751
|
-
function
|
|
2752
|
-
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: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", unShowFieldTemplate: A = !1, orientation: j = "vertical" } = e, { fieldErrors: M } =
|
|
2750
|
+
function Un(e) {
|
|
2751
|
+
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: _, showAsterisk: v, leftIcon: y, onSearch: b, onChange: x, onBlur: S, notFoundText: C = "Sem opções disponíveis", onFocus: w, disabled: T = !1, prefix: E, size: D = "md", value: O, variant: k = "solid", unShowFieldTemplate: A = !1, orientation: j = "vertical" } = e, { fieldErrors: M } = X(), N = l(null), P = s(), F = g || P, I = c || M?.[t], L = !!I, R = T || d || f, z = {
|
|
2753
2752
|
md: 20,
|
|
2754
2753
|
lg: 20
|
|
2755
2754
|
}[D], [B, V] = u(""), [H, U] = u(!1), [W, G] = u(o), K = O || W;
|
|
@@ -2771,8 +2770,8 @@ function Wn(e) {
|
|
|
2771
2770
|
function re(e) {
|
|
2772
2771
|
q(e) ? (G(W.filter((t) => t !== e)), x && x(W.filter((t) => t !== e))) : (G([...W, e]), x && x([...W, e])), a && te();
|
|
2773
2772
|
}
|
|
2774
|
-
let
|
|
2775
|
-
return /* @__PURE__ */ p(
|
|
2773
|
+
let ie = n.filter((t) => !!(e.onSearch || !e.isSearchable || t.label.toLowerCase().includes(B.toLowerCase())));
|
|
2774
|
+
return /* @__PURE__ */ p(Qe, {
|
|
2776
2775
|
name: t,
|
|
2777
2776
|
label: _,
|
|
2778
2777
|
showAsterisk: v,
|
|
@@ -2780,7 +2779,7 @@ function Wn(e) {
|
|
|
2780
2779
|
errorMessage: I,
|
|
2781
2780
|
unShowFieldTemplate: A,
|
|
2782
2781
|
orientation: j,
|
|
2783
|
-
children: /* @__PURE__ */ m(
|
|
2782
|
+
children: /* @__PURE__ */ m(In, {
|
|
2784
2783
|
handleContainerFocus: J,
|
|
2785
2784
|
disabled: R,
|
|
2786
2785
|
isError: L,
|
|
@@ -2798,7 +2797,7 @@ function Wn(e) {
|
|
|
2798
2797
|
value: JSON.stringify(K),
|
|
2799
2798
|
type: "hidden"
|
|
2800
2799
|
}),
|
|
2801
|
-
/* @__PURE__ */ p(
|
|
2800
|
+
/* @__PURE__ */ p(Z, {
|
|
2802
2801
|
iconSize: z,
|
|
2803
2802
|
icon: E,
|
|
2804
2803
|
className: "prefix"
|
|
@@ -2807,40 +2806,40 @@ function Wn(e) {
|
|
|
2807
2806
|
size: z,
|
|
2808
2807
|
strokeWidth: 2.5
|
|
2809
2808
|
}),
|
|
2810
|
-
/* @__PURE__ */ m(
|
|
2809
|
+
/* @__PURE__ */ m(Ln, {
|
|
2811
2810
|
size: D,
|
|
2812
|
-
children: [K.map((e) => /* @__PURE__ */ p(
|
|
2811
|
+
children: [K.map((e) => /* @__PURE__ */ p(Rn, {
|
|
2813
2812
|
label: ee(e),
|
|
2814
2813
|
value: e,
|
|
2815
2814
|
handleChangeValue: re,
|
|
2816
2815
|
disabled: R
|
|
2817
2816
|
}, e)), K.length <= 0 && /* @__PURE__ */ p("p", { children: i })]
|
|
2818
2817
|
}),
|
|
2819
|
-
/* @__PURE__ */ m(
|
|
2818
|
+
/* @__PURE__ */ m(Bn, {
|
|
2820
2819
|
isFocused: H,
|
|
2821
2820
|
isSearchable: h,
|
|
2822
2821
|
search: B,
|
|
2823
2822
|
onSearch: ne,
|
|
2824
|
-
children: [
|
|
2823
|
+
children: [ie.map(({ label: e, value: t }) => /* @__PURE__ */ p(zn, {
|
|
2825
2824
|
label: e,
|
|
2826
2825
|
value: t,
|
|
2827
2826
|
size: D,
|
|
2828
2827
|
handleChangeValue: re,
|
|
2829
2828
|
optionHasSelected: q
|
|
2830
|
-
}, t)),
|
|
2829
|
+
}, t)), ie.length <= 0 && /* @__PURE__ */ p("p", { children: C })]
|
|
2831
2830
|
}),
|
|
2832
|
-
/* @__PURE__ */ p(
|
|
2831
|
+
/* @__PURE__ */ p(Fn, {
|
|
2833
2832
|
disabled: R,
|
|
2834
2833
|
isFocused: H,
|
|
2835
2834
|
readOnly: f,
|
|
2836
2835
|
iconSize: z,
|
|
2837
2836
|
isLoading: d
|
|
2838
2837
|
}),
|
|
2839
|
-
/* @__PURE__ */ p(
|
|
2838
|
+
/* @__PURE__ */ p(Hn, {
|
|
2840
2839
|
iconSize: z,
|
|
2841
2840
|
isLoading: d
|
|
2842
2841
|
}),
|
|
2843
|
-
/* @__PURE__ */ p(
|
|
2842
|
+
/* @__PURE__ */ p(Vn, {
|
|
2844
2843
|
handleBlur: te,
|
|
2845
2844
|
isFocused: H
|
|
2846
2845
|
})
|
|
@@ -2850,7 +2849,7 @@ function Wn(e) {
|
|
|
2850
2849
|
}
|
|
2851
2850
|
//#endregion
|
|
2852
2851
|
//#region src/components/pagination/chevronButton/index.tsx
|
|
2853
|
-
function
|
|
2852
|
+
function Wn(e) {
|
|
2854
2853
|
let { orientation: t, handlePageChange: n, disabled: r } = e;
|
|
2855
2854
|
return /* @__PURE__ */ p("button", {
|
|
2856
2855
|
type: "button",
|
|
@@ -2865,7 +2864,7 @@ function Gn(e) {
|
|
|
2865
2864
|
}
|
|
2866
2865
|
//#endregion
|
|
2867
2866
|
//#region src/components/pagination/currentButton/index.tsx
|
|
2868
|
-
function
|
|
2867
|
+
function Gn({ currentPage: e }) {
|
|
2869
2868
|
return /* @__PURE__ */ p("button", {
|
|
2870
2869
|
type: "button",
|
|
2871
2870
|
className: "arkynPaginationCurrentButton",
|
|
@@ -2875,7 +2874,7 @@ function Kn({ currentPage: e }) {
|
|
|
2875
2874
|
}
|
|
2876
2875
|
//#endregion
|
|
2877
2876
|
//#region src/components/pagination/pageButton/index.tsx
|
|
2878
|
-
function
|
|
2877
|
+
function Kn(e) {
|
|
2879
2878
|
let { page: t, handlePageChange: n } = e;
|
|
2880
2879
|
return /* @__PURE__ */ p("button", {
|
|
2881
2880
|
type: "button",
|
|
@@ -2886,7 +2885,7 @@ function qn(e) {
|
|
|
2886
2885
|
}
|
|
2887
2886
|
//#endregion
|
|
2888
2887
|
//#region src/components/pagination/paginationService.ts
|
|
2889
|
-
var
|
|
2888
|
+
var qn = class {
|
|
2890
2889
|
currentPage;
|
|
2891
2890
|
totalCountRegisters;
|
|
2892
2891
|
registerPerPage;
|
|
@@ -2919,7 +2918,7 @@ var Jn = class {
|
|
|
2919
2918
|
};
|
|
2920
2919
|
//#endregion
|
|
2921
2920
|
//#region src/components/pagination/spread/index.tsx
|
|
2922
|
-
function
|
|
2921
|
+
function Jn() {
|
|
2923
2922
|
return /* @__PURE__ */ p("p", {
|
|
2924
2923
|
className: "arkynPaginationSpread",
|
|
2925
2924
|
children: /* @__PURE__ */ p(D, {})
|
|
@@ -2927,8 +2926,8 @@ function Yn() {
|
|
|
2927
2926
|
}
|
|
2928
2927
|
//#endregion
|
|
2929
2928
|
//#region src/components/pagination/index.tsx
|
|
2930
|
-
function
|
|
2931
|
-
let { totalCountRegisters: t, siblingsCount: n, currentPage: r, registerPerPage: i, onChange: a, ...o } = e, { currentPage: s, siblingsCount: c, previousPages: l, nextPages: u, lastPage: d, handlePageChange: h, handleMinusChange: g, handlePlusChange: _ } = new
|
|
2929
|
+
function Yn(e) {
|
|
2930
|
+
let { totalCountRegisters: t, siblingsCount: n, currentPage: r, registerPerPage: i, onChange: a, ...o } = e, { currentPage: s, siblingsCount: c, previousPages: l, nextPages: u, lastPage: d, handlePageChange: h, handleMinusChange: g, handlePlusChange: _ } = new qn({
|
|
2932
2931
|
totalCountRegisters: t,
|
|
2933
2932
|
currentPage: r,
|
|
2934
2933
|
registerPerPage: i,
|
|
@@ -2939,29 +2938,29 @@ function Xn(e) {
|
|
|
2939
2938
|
className: "arkynPagination",
|
|
2940
2939
|
...o,
|
|
2941
2940
|
children: [
|
|
2942
|
-
/* @__PURE__ */ p(
|
|
2941
|
+
/* @__PURE__ */ p(Wn, {
|
|
2943
2942
|
orientation: "left",
|
|
2944
2943
|
handlePageChange: g,
|
|
2945
2944
|
disabled: s <= 1
|
|
2946
2945
|
}),
|
|
2947
|
-
s > 1 + c && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
2946
|
+
s > 1 + c && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(Kn, {
|
|
2948
2947
|
page: 1,
|
|
2949
2948
|
handlePageChange: () => h(1)
|
|
2950
|
-
}), s > 2 + c && /* @__PURE__ */ p(
|
|
2951
|
-
l.map((e) => /* @__PURE__ */ p(
|
|
2949
|
+
}), s > 2 + c && /* @__PURE__ */ p(Jn, {})] }),
|
|
2950
|
+
l.map((e) => /* @__PURE__ */ p(Kn, {
|
|
2952
2951
|
page: e,
|
|
2953
2952
|
handlePageChange: g
|
|
2954
2953
|
}, e)),
|
|
2955
|
-
/* @__PURE__ */ p(
|
|
2956
|
-
u.map((e) => /* @__PURE__ */ p(
|
|
2954
|
+
/* @__PURE__ */ p(Gn, { currentPage: s }),
|
|
2955
|
+
u.map((e) => /* @__PURE__ */ p(Kn, {
|
|
2957
2956
|
page: e,
|
|
2958
2957
|
handlePageChange: _
|
|
2959
2958
|
}, e)),
|
|
2960
|
-
s + c < d && /* @__PURE__ */ m(f, { children: [s + 1 + c < d && /* @__PURE__ */ p(
|
|
2959
|
+
s + c < d && /* @__PURE__ */ m(f, { children: [s + 1 + c < d && /* @__PURE__ */ p(Jn, {}), /* @__PURE__ */ p(Kn, {
|
|
2961
2960
|
page: d,
|
|
2962
2961
|
handlePageChange: () => h(d)
|
|
2963
2962
|
})] }),
|
|
2964
|
-
/* @__PURE__ */ p(
|
|
2963
|
+
/* @__PURE__ */ p(Wn, {
|
|
2965
2964
|
orientation: "right",
|
|
2966
2965
|
handlePageChange: _,
|
|
2967
2966
|
disabled: s >= d
|
|
@@ -2971,7 +2970,7 @@ function Xn(e) {
|
|
|
2971
2970
|
}
|
|
2972
2971
|
//#endregion
|
|
2973
2972
|
//#region src/components/phoneInput/phoneInputContainer/index.tsx
|
|
2974
|
-
function
|
|
2973
|
+
function Xn(e) {
|
|
2975
2974
|
let { children: t, onFocus: n, disabled: r, isError: i, isLoading: a, isFocused: o, className: s = "", readOnly: c, variant: l, size: u } = e;
|
|
2976
2975
|
return /* @__PURE__ */ p("section", {
|
|
2977
2976
|
className: `arkynPhoneInputContainer ${l} ${u} ${r || c || a ? "opacity" : ""} ${i ? "errored" : ""} ${o ? "focused" : ""} ${s}`.trim(),
|
|
@@ -2981,7 +2980,7 @@ function Zn(e) {
|
|
|
2981
2980
|
}
|
|
2982
2981
|
//#endregion
|
|
2983
2982
|
//#region src/components/phoneInput/phoneInputCountriesOverlay/index.tsx
|
|
2984
|
-
function
|
|
2983
|
+
function Zn(e) {
|
|
2985
2984
|
let { isOpen: t, onClick: n } = e;
|
|
2986
2985
|
return t ? /* @__PURE__ */ p("aside", {
|
|
2987
2986
|
className: "arkynPhoneInputCountriesOverlay",
|
|
@@ -2990,7 +2989,7 @@ function Qn(e) {
|
|
|
2990
2989
|
}
|
|
2991
2990
|
//#endregion
|
|
2992
2991
|
//#region src/components/phoneInput/phoneInputCountryOption/index.tsx
|
|
2993
|
-
function
|
|
2992
|
+
function Qn(e) {
|
|
2994
2993
|
let { country: t, isActive: n, handleChangeValue: r, size: i } = e;
|
|
2995
2994
|
return /* @__PURE__ */ m("div", {
|
|
2996
2995
|
onClick: () => r(t),
|
|
@@ -3010,12 +3009,12 @@ function $n(e) {
|
|
|
3010
3009
|
}
|
|
3011
3010
|
//#endregion
|
|
3012
3011
|
//#region src/components/phoneInput/phoneInputCountryOptionsContainer/index.tsx
|
|
3013
|
-
function
|
|
3012
|
+
function $n(e) {
|
|
3014
3013
|
let { children: t, isOpen: n, onSearch: r, search: i, placeholder: a } = e, s = l(null), [c, d] = u("bottom");
|
|
3015
3014
|
function f(e) {
|
|
3016
3015
|
r(e.target.value);
|
|
3017
3016
|
}
|
|
3018
|
-
return
|
|
3017
|
+
return it(n), o(() => {
|
|
3019
3018
|
n && (() => {
|
|
3020
3019
|
if (!s.current) return;
|
|
3021
3020
|
let e = s.current.parentElement;
|
|
@@ -3039,7 +3038,7 @@ function er(e) {
|
|
|
3039
3038
|
}
|
|
3040
3039
|
//#endregion
|
|
3041
3040
|
//#region src/components/phoneInput/phoneInputCountrySelector/index.tsx
|
|
3042
|
-
function
|
|
3041
|
+
function er(e) {
|
|
3043
3042
|
let { currentCountry: t, onClick: n } = e;
|
|
3044
3043
|
return /* @__PURE__ */ m("div", {
|
|
3045
3044
|
className: "phoneInputSelectCountry",
|
|
@@ -3054,20 +3053,20 @@ function tr(e) {
|
|
|
3054
3053
|
className: "chevronDown",
|
|
3055
3054
|
strokeWidth: 2.5
|
|
3056
3055
|
}),
|
|
3057
|
-
/* @__PURE__ */ p(
|
|
3056
|
+
/* @__PURE__ */ p(Be, { orientation: "vertical" })
|
|
3058
3057
|
]
|
|
3059
3058
|
});
|
|
3060
3059
|
}
|
|
3061
3060
|
//#endregion
|
|
3062
3061
|
//#region src/utils/phoneInputUtilities.ts
|
|
3063
|
-
function
|
|
3062
|
+
function tr(e) {
|
|
3064
3063
|
return e?.replace(/[^0-9]/g, "");
|
|
3065
3064
|
}
|
|
3066
|
-
var
|
|
3065
|
+
var nr = {
|
|
3067
3066
|
EIGHT: "(99) 9999-9999",
|
|
3068
3067
|
NINE: "(99) 99999-9999"
|
|
3069
3068
|
};
|
|
3070
|
-
function
|
|
3069
|
+
function rr(e, t) {
|
|
3071
3070
|
let n = "", r = 0;
|
|
3072
3071
|
for (let i = 0; i < t.length; i++) if (t[i] === "9") if (r < e.length) n += e[r], r++;
|
|
3073
3072
|
else break;
|
|
@@ -3075,13 +3074,13 @@ function ir(e, t) {
|
|
|
3075
3074
|
else break;
|
|
3076
3075
|
return n;
|
|
3077
3076
|
}
|
|
3078
|
-
function
|
|
3077
|
+
function ir(e) {
|
|
3079
3078
|
return e.length > 10 ? "NINE" : "EIGHT";
|
|
3080
3079
|
}
|
|
3081
|
-
var
|
|
3080
|
+
var ar = tr(nr.NINE).length, or = r((e, t) => /* @__PURE__ */ p("input", {
|
|
3082
3081
|
ref: t,
|
|
3083
3082
|
...e
|
|
3084
|
-
})),
|
|
3083
|
+
})), sr = r((e, t) => {
|
|
3085
3084
|
let { onFocus: n, readonly: r, onBlur: i, size: a, onChange: s, value: c, currentCountry: u, disabled: d, id: f } = e, m = l(!0), h = l(s);
|
|
3086
3085
|
h.current = s;
|
|
3087
3086
|
let g = typeof u.mask == "string" ? u.mask : u.mask[0];
|
|
@@ -3094,8 +3093,8 @@ var or = nr(rr.NINE).length, sr = r((e, t) => /* @__PURE__ */ p("input", {
|
|
|
3094
3093
|
}, [g]);
|
|
3095
3094
|
let _ = `phoneInputMask ${a}`;
|
|
3096
3095
|
function v(e) {
|
|
3097
|
-
let t =
|
|
3098
|
-
t.length >
|
|
3096
|
+
let t = tr(e.target.value), n = ir(t);
|
|
3097
|
+
t.length > ar || (t = rr(t, nr[n]), e.target.value = t, s(t));
|
|
3099
3098
|
}
|
|
3100
3099
|
return u.code === "+55" ? /* @__PURE__ */ p("input", {
|
|
3101
3100
|
id: f,
|
|
@@ -3107,13 +3106,13 @@ var or = nr(rr.NINE).length, sr = r((e, t) => /* @__PURE__ */ p("input", {
|
|
|
3107
3106
|
disabled: d,
|
|
3108
3107
|
readOnly: r,
|
|
3109
3108
|
ref: t
|
|
3110
|
-
}) : /* @__PURE__ */ p(
|
|
3109
|
+
}) : /* @__PURE__ */ p(Y, {
|
|
3111
3110
|
id: f,
|
|
3112
3111
|
value: c,
|
|
3113
3112
|
readOnly: r,
|
|
3114
3113
|
onChange: (e) => s(e.target.value),
|
|
3115
3114
|
className: _,
|
|
3116
|
-
component:
|
|
3115
|
+
component: or,
|
|
3117
3116
|
onFocus: n,
|
|
3118
3117
|
onBlur: i,
|
|
3119
3118
|
disabled: d,
|
|
@@ -3125,8 +3124,8 @@ var or = nr(rr.NINE).length, sr = r((e, t) => /* @__PURE__ */ p("input", {
|
|
|
3125
3124
|
});
|
|
3126
3125
|
//#endregion
|
|
3127
3126
|
//#region src/components/phoneInput/index.tsx
|
|
3128
|
-
function
|
|
3129
|
-
let { value: t, label: n, className: r = "", disabled: i = !1, errorMessage: a, isLoading: o = !1, readOnly: c = !1, size: d = "md", defaultValue: f = "", variant: h = "solid", showAsterisk: g, name: _, onChange: v, searchCountryPlaceholder: y = "Pesquisar país", notFoundCountryText: b = "Nenhum país encontrado", id: x, unShowFieldTemplate: S = !1, orientation: C = "vertical" } = e, w =
|
|
3127
|
+
function cr(e) {
|
|
3128
|
+
let { value: t, label: n, className: r = "", disabled: i = !1, errorMessage: a, isLoading: o = !1, readOnly: c = !1, size: d = "md", defaultValue: f = "", variant: h = "solid", showAsterisk: g, name: _, onChange: v, searchCountryPlaceholder: y = "Pesquisar país", notFoundCountryText: b = "Nenhum país encontrado", id: x, unShowFieldTemplate: S = !1, orientation: C = "vertical" } = e, w = oe.find((e) => e.iso === "BR"), T = f ? ne(f) : "", E = f ? ee(f)[1] : w, [D, O] = u(!1), [k, A] = u(""), [j, M] = u(!1), [N, P] = u(T), F = t === void 0 ? N : t, [I, L] = u(E), { fieldErrors: R } = X(), z = l(null), B = s(), V = x || B, H = a || R?.[_], U = !!H, W = i || o, G = l(null);
|
|
3130
3129
|
function K() {
|
|
3131
3130
|
W || D || j || (O(!0), G.current && G.current.focus());
|
|
3132
3131
|
}
|
|
@@ -3139,17 +3138,17 @@ function lr(e) {
|
|
|
3139
3138
|
function te() {
|
|
3140
3139
|
O(!0);
|
|
3141
3140
|
}
|
|
3142
|
-
function
|
|
3141
|
+
function ie() {
|
|
3143
3142
|
O(!1);
|
|
3144
3143
|
}
|
|
3145
|
-
function
|
|
3144
|
+
function ae(e) {
|
|
3146
3145
|
return e.name.toLowerCase().includes(k.toLowerCase());
|
|
3147
3146
|
}
|
|
3148
|
-
function
|
|
3147
|
+
function Y(e) {
|
|
3149
3148
|
let t = I.code;
|
|
3150
3149
|
return t += re(e || F), t;
|
|
3151
3150
|
}
|
|
3152
|
-
return /* @__PURE__ */ p(
|
|
3151
|
+
return /* @__PURE__ */ p(Qe, {
|
|
3153
3152
|
name: _,
|
|
3154
3153
|
label: n,
|
|
3155
3154
|
showAsterisk: g,
|
|
@@ -3157,7 +3156,7 @@ function lr(e) {
|
|
|
3157
3156
|
errorMessage: H,
|
|
3158
3157
|
unShowFieldTemplate: S,
|
|
3159
3158
|
orientation: C,
|
|
3160
|
-
children: /* @__PURE__ */ m(
|
|
3159
|
+
children: /* @__PURE__ */ m(Xn, {
|
|
3161
3160
|
disabled: W,
|
|
3162
3161
|
isError: U,
|
|
3163
3162
|
isLoading: o,
|
|
@@ -3167,48 +3166,48 @@ function lr(e) {
|
|
|
3167
3166
|
variant: h,
|
|
3168
3167
|
onFocus: K,
|
|
3169
3168
|
children: [
|
|
3170
|
-
/* @__PURE__ */ p(
|
|
3169
|
+
/* @__PURE__ */ p(er, {
|
|
3171
3170
|
currentCountry: I,
|
|
3172
3171
|
onClick: q,
|
|
3173
3172
|
size: d
|
|
3174
3173
|
}),
|
|
3175
|
-
/* @__PURE__ */ m(
|
|
3174
|
+
/* @__PURE__ */ m($n, {
|
|
3176
3175
|
isOpen: W || c ? !1 : j,
|
|
3177
3176
|
search: k,
|
|
3178
3177
|
placeholder: y,
|
|
3179
3178
|
onSearch: A,
|
|
3180
|
-
children: [
|
|
3179
|
+
children: [oe.filter((e) => ae(e)).map((e) => /* @__PURE__ */ p(Qn, {
|
|
3181
3180
|
country: e,
|
|
3182
3181
|
handleChangeValue: () => {
|
|
3183
3182
|
L(e), M(!1), P("");
|
|
3184
3183
|
},
|
|
3185
3184
|
isActive: e.iso === I.iso,
|
|
3186
3185
|
size: d
|
|
3187
|
-
}, e.iso)),
|
|
3186
|
+
}, e.iso)), oe.filter((e) => ae(e)).length === 0 && /* @__PURE__ */ p("p", { children: b })]
|
|
3188
3187
|
}),
|
|
3189
|
-
/* @__PURE__ */ p(
|
|
3188
|
+
/* @__PURE__ */ p(Zn, {
|
|
3190
3189
|
isOpen: W || c ? !1 : j,
|
|
3191
3190
|
onClick: J
|
|
3192
3191
|
}),
|
|
3193
|
-
/* @__PURE__ */ p(
|
|
3192
|
+
/* @__PURE__ */ p(sr, {
|
|
3194
3193
|
id: V,
|
|
3195
3194
|
ref: G,
|
|
3196
3195
|
readonly: c,
|
|
3197
3196
|
currentCountry: I,
|
|
3198
3197
|
value: F,
|
|
3199
3198
|
disabled: W,
|
|
3200
|
-
onBlur:
|
|
3199
|
+
onBlur: ie,
|
|
3201
3200
|
onFocus: te,
|
|
3202
3201
|
size: d,
|
|
3203
3202
|
onChange: (e) => {
|
|
3204
|
-
P(e), v?.(
|
|
3203
|
+
P(e), v?.(Y(e));
|
|
3205
3204
|
}
|
|
3206
3205
|
}),
|
|
3207
3206
|
/* @__PURE__ */ p("input", {
|
|
3208
3207
|
ref: z,
|
|
3209
3208
|
type: "hidden",
|
|
3210
3209
|
name: _,
|
|
3211
|
-
value:
|
|
3210
|
+
value: Y()
|
|
3212
3211
|
})
|
|
3213
3212
|
]
|
|
3214
3213
|
})
|
|
@@ -3216,25 +3215,18 @@ function lr(e) {
|
|
|
3216
3215
|
}
|
|
3217
3216
|
//#endregion
|
|
3218
3217
|
//#region src/components/popover/index.tsx
|
|
3219
|
-
function
|
|
3218
|
+
function lr(e) {
|
|
3220
3219
|
let { children: t, button: n, closeOnClick: r, className: i = "", orientation: a = "bottomLeft" } = e, [o, s] = u(!1), c = `arkynPopover ${a} ${o ? "visibleTrue" : "visibleFalse"} ${i}`;
|
|
3221
3220
|
function l() {
|
|
3222
3221
|
o || s(!0);
|
|
3223
3222
|
}
|
|
3224
|
-
return
|
|
3223
|
+
return it(o), /* @__PURE__ */ m("div", {
|
|
3225
3224
|
className: c,
|
|
3226
3225
|
onClick: l,
|
|
3227
3226
|
children: [
|
|
3228
3227
|
n,
|
|
3229
|
-
/* @__PURE__ */ p(
|
|
3228
|
+
/* @__PURE__ */ p("div", {
|
|
3230
3229
|
style: { visibility: o ? "visible" : "hidden" },
|
|
3231
|
-
transition: {
|
|
3232
|
-
ease: "easeOut",
|
|
3233
|
-
duration: 0
|
|
3234
|
-
},
|
|
3235
|
-
initial: { opacity: 0 },
|
|
3236
|
-
animate: { opacity: +!!o },
|
|
3237
|
-
exit: { opacity: 0 },
|
|
3238
3230
|
onClick: () => r && s(!1),
|
|
3239
3231
|
className: "arkynPopoverContent",
|
|
3240
3232
|
children: t
|
|
@@ -3248,10 +3240,10 @@ function ur(e) {
|
|
|
3248
3240
|
}
|
|
3249
3241
|
//#endregion
|
|
3250
3242
|
//#region src/components/radio/radioContext.tsx
|
|
3251
|
-
var
|
|
3252
|
-
function
|
|
3243
|
+
var ur = n({});
|
|
3244
|
+
function dr(e) {
|
|
3253
3245
|
let { children: t, size: n, isError: r, handleChange: i, value: a, disabled: o } = e;
|
|
3254
|
-
return /* @__PURE__ */ p(
|
|
3246
|
+
return /* @__PURE__ */ p(ur.Provider, {
|
|
3255
3247
|
value: {
|
|
3256
3248
|
handleChange: i,
|
|
3257
3249
|
value: a,
|
|
@@ -3262,13 +3254,13 @@ function fr(e) {
|
|
|
3262
3254
|
children: t
|
|
3263
3255
|
});
|
|
3264
3256
|
}
|
|
3265
|
-
function
|
|
3266
|
-
return a(
|
|
3257
|
+
function fr() {
|
|
3258
|
+
return a(ur);
|
|
3267
3259
|
}
|
|
3268
3260
|
//#endregion
|
|
3269
3261
|
//#region src/components/radio/radioBox/index.tsx
|
|
3270
|
-
function
|
|
3271
|
-
let { value: t, size: n, disabled: r, children: i, className: a = "", onClick: o, onFocus: s, ...c } = e, { handleChange: l, size: u, value: d, isError: f, disabled: h } =
|
|
3262
|
+
function pr(e) {
|
|
3263
|
+
let { value: t, size: n, disabled: r, children: i, className: a = "", onClick: o, onFocus: s, ...c } = e, { handleChange: l, size: u, value: d, isError: f, disabled: h } = fr(), g = d === t, _ = n || u, v = r || h, y = `arkynRadioBox ${_} ${g ? "checkedTrue" : "checkedFalse"} ${f ? "errorTrue" : "errorFalse"} ${v ? "disabledTrue" : "disabledFalse"} ${a}`;
|
|
3272
3264
|
function b(e) {
|
|
3273
3265
|
o?.(e), l(t);
|
|
3274
3266
|
}
|
|
@@ -3288,13 +3280,13 @@ function mr(e) {
|
|
|
3288
3280
|
}
|
|
3289
3281
|
//#endregion
|
|
3290
3282
|
//#region src/components/radio/radioGroup/index.tsx
|
|
3291
|
-
function
|
|
3292
|
-
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 } =
|
|
3283
|
+
function mr(e) {
|
|
3284
|
+
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();
|
|
3293
3285
|
function b(e) {
|
|
3294
3286
|
v(e), s && s(e);
|
|
3295
3287
|
}
|
|
3296
3288
|
let x = a || y?.[n], S = !!x, C = `arkynRadioGroup ${c}`;
|
|
3297
|
-
return /* @__PURE__ */ p(
|
|
3289
|
+
return /* @__PURE__ */ p(Qe, {
|
|
3298
3290
|
name: n,
|
|
3299
3291
|
label: r,
|
|
3300
3292
|
showAsterisk: i,
|
|
@@ -3302,7 +3294,7 @@ function hr(e) {
|
|
|
3302
3294
|
errorMessage: x,
|
|
3303
3295
|
unShowFieldTemplate: f,
|
|
3304
3296
|
orientation: h,
|
|
3305
|
-
children: /* @__PURE__ */ m(
|
|
3297
|
+
children: /* @__PURE__ */ m(dr, {
|
|
3306
3298
|
isError: S,
|
|
3307
3299
|
size: c,
|
|
3308
3300
|
value: o || _,
|
|
@@ -3323,31 +3315,31 @@ function hr(e) {
|
|
|
3323
3315
|
}
|
|
3324
3316
|
//#endregion
|
|
3325
3317
|
//#region src/services/extractTextFromNode.ts
|
|
3326
|
-
function
|
|
3318
|
+
function hr(e) {
|
|
3327
3319
|
return e.map((e) => ue.string(e)).join("");
|
|
3328
3320
|
}
|
|
3329
3321
|
//#endregion
|
|
3330
3322
|
//#region src/services/isMarkActive.ts
|
|
3331
|
-
function
|
|
3323
|
+
function gr(e, t) {
|
|
3332
3324
|
let n = ce.marks(e);
|
|
3333
3325
|
return n ? n[t] === !0 : !1;
|
|
3334
3326
|
}
|
|
3335
3327
|
//#endregion
|
|
3336
3328
|
//#region src/services/toggleMark.ts
|
|
3337
|
-
function
|
|
3338
|
-
|
|
3329
|
+
function _r(e, t) {
|
|
3330
|
+
gr(e, t) ? ce.removeMark(e, t) : ce.addMark(e, t, !0);
|
|
3339
3331
|
}
|
|
3340
3332
|
//#endregion
|
|
3341
3333
|
//#region src/templates/richTextTemplates.ts
|
|
3342
|
-
var
|
|
3334
|
+
var vr = {
|
|
3343
3335
|
"mod+b": "bold",
|
|
3344
3336
|
"mod+i": "italic",
|
|
3345
3337
|
"mod+u": "underline",
|
|
3346
3338
|
"mod+`": "code"
|
|
3347
|
-
},
|
|
3339
|
+
}, yr = [{
|
|
3348
3340
|
type: "paragraph",
|
|
3349
3341
|
children: [{ text: "" }]
|
|
3350
|
-
}],
|
|
3342
|
+
}], br = ["listItem", "numberedList"], xr = [
|
|
3351
3343
|
"left",
|
|
3352
3344
|
"center",
|
|
3353
3345
|
"right",
|
|
@@ -3355,7 +3347,7 @@ var yr = {
|
|
|
3355
3347
|
];
|
|
3356
3348
|
//#endregion
|
|
3357
3349
|
//#region src/services/isBlockActive.ts
|
|
3358
|
-
function
|
|
3350
|
+
function Sr(e, t, n = "type") {
|
|
3359
3351
|
let { selection: r } = e;
|
|
3360
3352
|
if (!r) return !1;
|
|
3361
3353
|
let [i] = Array.from(ce.nodes(e, {
|
|
@@ -3366,14 +3358,14 @@ function Cr(e, t, n = "type") {
|
|
|
3366
3358
|
}
|
|
3367
3359
|
//#endregion
|
|
3368
3360
|
//#region src/services/toggleBlock.ts
|
|
3369
|
-
function
|
|
3370
|
-
let n =
|
|
3361
|
+
function Cr(e, t) {
|
|
3362
|
+
let n = Sr(e, t, xr.includes(t) ? "align" : "type"), r = br.includes(t);
|
|
3371
3363
|
fe.unwrapNodes(e, {
|
|
3372
|
-
match: (e) => !ce.isEditor(e) && le.isElement(e) &&
|
|
3364
|
+
match: (e) => !ce.isEditor(e) && le.isElement(e) && br.includes(e.type) && !xr.includes(t),
|
|
3373
3365
|
split: !0
|
|
3374
3366
|
});
|
|
3375
3367
|
let i;
|
|
3376
|
-
if (i =
|
|
3368
|
+
if (i = xr.includes(t) ? { align: n ? void 0 : t } : { type: n ? "paragraph" : r ? "listItem" : t }, fe.setNodes(e, i), !n && r) {
|
|
3377
3369
|
let n = {
|
|
3378
3370
|
type: t,
|
|
3379
3371
|
children: []
|
|
@@ -3383,10 +3375,10 @@ function wr(e, t) {
|
|
|
3383
3375
|
}
|
|
3384
3376
|
//#endregion
|
|
3385
3377
|
//#region src/components/richText/blockButton/index.tsx
|
|
3386
|
-
function
|
|
3387
|
-
let n = _e(), r =
|
|
3378
|
+
function wr({ format: e, icon: t }) {
|
|
3379
|
+
let n = _e(), r = Sr(n, e, xr.includes(e) ? "align" : "type") ? "activeTrue" : "activeFalse";
|
|
3388
3380
|
function i(t) {
|
|
3389
|
-
t.preventDefault(),
|
|
3381
|
+
t.preventDefault(), Cr(n, e);
|
|
3390
3382
|
}
|
|
3391
3383
|
return /* @__PURE__ */ p("button", {
|
|
3392
3384
|
type: "button",
|
|
@@ -3397,7 +3389,7 @@ function Tr({ format: e, icon: t }) {
|
|
|
3397
3389
|
}
|
|
3398
3390
|
//#endregion
|
|
3399
3391
|
//#region src/components/richText/element/index.tsx
|
|
3400
|
-
function
|
|
3392
|
+
function Tr({ attributes: e, children: t, element: n }) {
|
|
3401
3393
|
let r = { textAlign: n.align };
|
|
3402
3394
|
switch (n.type) {
|
|
3403
3395
|
case "blockQuote": return /* @__PURE__ */ p("blockquote", {
|
|
@@ -3467,20 +3459,20 @@ function Er({ attributes: e, children: t, element: n }) {
|
|
|
3467
3459
|
}
|
|
3468
3460
|
//#endregion
|
|
3469
3461
|
//#region src/components/tab/tabContext.tsx
|
|
3470
|
-
var
|
|
3471
|
-
function
|
|
3472
|
-
return a(
|
|
3462
|
+
var Er = n({});
|
|
3463
|
+
function Dr() {
|
|
3464
|
+
return a(Er);
|
|
3473
3465
|
}
|
|
3474
|
-
function
|
|
3475
|
-
return /* @__PURE__ */ p(
|
|
3466
|
+
function Or(e) {
|
|
3467
|
+
return /* @__PURE__ */ p(Er.Provider, {
|
|
3476
3468
|
value: e,
|
|
3477
3469
|
children: e.children
|
|
3478
3470
|
});
|
|
3479
3471
|
}
|
|
3480
3472
|
//#endregion
|
|
3481
3473
|
//#region src/components/tab/tabButton/index.tsx
|
|
3482
|
-
function
|
|
3483
|
-
let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } =
|
|
3474
|
+
function kr(e) {
|
|
3475
|
+
let { children: t, disabled: n = !1, className: r = "", onClick: i, value: a, ...o } = e, { disabled: s, currentTab: c, changeCurrentTab: l } = Dr(), u = s || n, d = `arkynTabButton ${u ? "isDisabled" : ""} ${c === a && a ? "isActive" : ""} ${r}`;
|
|
3484
3476
|
function f(e) {
|
|
3485
3477
|
l(a), i?.(e);
|
|
3486
3478
|
}
|
|
@@ -3495,12 +3487,12 @@ function Ar(e) {
|
|
|
3495
3487
|
}
|
|
3496
3488
|
//#endregion
|
|
3497
3489
|
//#region src/components/tab/tabContainer/index.tsx
|
|
3498
|
-
function
|
|
3490
|
+
function Ar(e) {
|
|
3499
3491
|
let { children: t, onChange: n, defaultValue: r, disabled: i = !1, className: a, ...o } = e, [s, c] = u(r || ""), l = `arkynTabContainer ${a || ""}`;
|
|
3500
3492
|
function d(e) {
|
|
3501
3493
|
c(e), n && n(e);
|
|
3502
3494
|
}
|
|
3503
|
-
return /* @__PURE__ */ p(
|
|
3495
|
+
return /* @__PURE__ */ p(Or, {
|
|
3504
3496
|
disabled: i,
|
|
3505
3497
|
currentTab: s,
|
|
3506
3498
|
changeCurrentTab: d,
|
|
@@ -3513,7 +3505,7 @@ function jr(e) {
|
|
|
3513
3505
|
}
|
|
3514
3506
|
//#endregion
|
|
3515
3507
|
//#region src/components/richText/insertImage/index.tsx
|
|
3516
|
-
function
|
|
3508
|
+
function jr(e) {
|
|
3517
3509
|
let { action: t, tabLabels: n = ["Adicionar URL", "Upload de arquivo"], modalCancelButton: r = "Cancelar", modalConfirmButton: i = "Confirmar", modalInputImageLabel: a = "Imagem:", modalInputUrlLabel: o = "URL da imagem:", modalTitle: s = "Inserir imagem" } = e, c = _e(), [l, d] = u(!1), [h, g] = u(""), [_, v] = u("url");
|
|
3518
3510
|
function y(e) {
|
|
3519
3511
|
e.preventDefault(), !(!h || h === "") && (c.insertNodes([
|
|
@@ -3537,26 +3529,26 @@ function Mr(e) {
|
|
|
3537
3529
|
className: "arkynRichTextInsertImage",
|
|
3538
3530
|
onMouseDown: () => d(!0),
|
|
3539
3531
|
children: /* @__PURE__ */ p(P, {})
|
|
3540
|
-
}), /* @__PURE__ */ m(
|
|
3532
|
+
}), /* @__PURE__ */ m(Mn, {
|
|
3541
3533
|
isVisible: l,
|
|
3542
3534
|
makeInvisible: () => d(!1),
|
|
3543
3535
|
children: [
|
|
3544
|
-
/* @__PURE__ */ p(
|
|
3536
|
+
/* @__PURE__ */ p(Pn, { children: s }),
|
|
3545
3537
|
/* @__PURE__ */ m("div", {
|
|
3546
3538
|
className: "arkynRichTextInsertImageModalContent",
|
|
3547
3539
|
children: [
|
|
3548
|
-
/* @__PURE__ */ m(
|
|
3540
|
+
/* @__PURE__ */ m(Ar, {
|
|
3549
3541
|
defaultValue: _,
|
|
3550
3542
|
onChange: v,
|
|
3551
|
-
children: [/* @__PURE__ */ p(
|
|
3543
|
+
children: [/* @__PURE__ */ p(kr, {
|
|
3552
3544
|
value: "url",
|
|
3553
3545
|
children: n[0]
|
|
3554
|
-
}), /* @__PURE__ */ p(
|
|
3546
|
+
}), /* @__PURE__ */ p(kr, {
|
|
3555
3547
|
value: "file",
|
|
3556
3548
|
children: n[1]
|
|
3557
3549
|
})]
|
|
3558
3550
|
}),
|
|
3559
|
-
_ === "url" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(
|
|
3551
|
+
_ === "url" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(at, {
|
|
3560
3552
|
type: "text",
|
|
3561
3553
|
name: "richTextImageURL",
|
|
3562
3554
|
label: o,
|
|
@@ -3568,7 +3560,7 @@ function Mr(e) {
|
|
|
3568
3560
|
src: h,
|
|
3569
3561
|
alt: "preview"
|
|
3570
3562
|
})] }),
|
|
3571
|
-
_ === "file" && /* @__PURE__ */ p(
|
|
3563
|
+
_ === "file" && /* @__PURE__ */ p(Cn, {
|
|
3572
3564
|
name: "richTextImageURL",
|
|
3573
3565
|
action: t,
|
|
3574
3566
|
label: a,
|
|
@@ -3578,13 +3570,13 @@ function Mr(e) {
|
|
|
3578
3570
|
})
|
|
3579
3571
|
]
|
|
3580
3572
|
}),
|
|
3581
|
-
/* @__PURE__ */ m(
|
|
3573
|
+
/* @__PURE__ */ m(Nn, { children: [/* @__PURE__ */ p(Q, {
|
|
3582
3574
|
type: "button",
|
|
3583
3575
|
scheme: "danger",
|
|
3584
3576
|
variant: "outline",
|
|
3585
3577
|
onClick: () => d(!1),
|
|
3586
3578
|
children: r
|
|
3587
|
-
}), /* @__PURE__ */ p(
|
|
3579
|
+
}), /* @__PURE__ */ p(Q, {
|
|
3588
3580
|
type: "button",
|
|
3589
3581
|
onClick: y,
|
|
3590
3582
|
children: i
|
|
@@ -3594,7 +3586,7 @@ function Mr(e) {
|
|
|
3594
3586
|
}
|
|
3595
3587
|
//#endregion
|
|
3596
3588
|
//#region src/components/richText/insertVideo/index.tsx
|
|
3597
|
-
function
|
|
3589
|
+
function Mr(e) {
|
|
3598
3590
|
let { modalCancelButton: t = "Cancelar", modalConfirmButton: n = "Confirmar", modalInputUrlLabel: r = "URL do vídeo:", modalTitle: i = "Inserir vídeo", invalidUrlMessage: a = "URL inválida" } = e, s = _e(), [c, l] = u(!1), [d, h] = u(""), [g, _] = u(""), [v, y] = u("");
|
|
3599
3591
|
function b(e) {
|
|
3600
3592
|
if (e.preventDefault(), !d || d === "") return;
|
|
@@ -3627,14 +3619,14 @@ function Nr(e) {
|
|
|
3627
3619
|
className: "arkynRichTextInsertVideo",
|
|
3628
3620
|
onMouseDown: () => l(!0),
|
|
3629
3621
|
children: /* @__PURE__ */ p(G, {})
|
|
3630
|
-
}), /* @__PURE__ */ m(
|
|
3622
|
+
}), /* @__PURE__ */ m(Mn, {
|
|
3631
3623
|
isVisible: c,
|
|
3632
3624
|
makeInvisible: () => l(!1),
|
|
3633
3625
|
children: [
|
|
3634
|
-
/* @__PURE__ */ p(
|
|
3626
|
+
/* @__PURE__ */ p(Pn, { children: i }),
|
|
3635
3627
|
/* @__PURE__ */ m("div", {
|
|
3636
3628
|
className: "arkynRichTextInsertVideoModalContent",
|
|
3637
|
-
children: [/* @__PURE__ */ p(
|
|
3629
|
+
children: [/* @__PURE__ */ p(at, {
|
|
3638
3630
|
type: "text",
|
|
3639
3631
|
name: "richTextVideoURL",
|
|
3640
3632
|
label: r,
|
|
@@ -3652,13 +3644,13 @@ function Nr(e) {
|
|
|
3652
3644
|
allowFullScreen: !0
|
|
3653
3645
|
})]
|
|
3654
3646
|
}),
|
|
3655
|
-
/* @__PURE__ */ m(
|
|
3647
|
+
/* @__PURE__ */ m(Nn, { children: [/* @__PURE__ */ p(Q, {
|
|
3656
3648
|
type: "button",
|
|
3657
3649
|
scheme: "danger",
|
|
3658
3650
|
variant: "outline",
|
|
3659
3651
|
onClick: () => l(!1),
|
|
3660
3652
|
children: t
|
|
3661
|
-
}), /* @__PURE__ */ p(
|
|
3653
|
+
}), /* @__PURE__ */ p(Q, {
|
|
3662
3654
|
disabled: !d,
|
|
3663
3655
|
type: "button",
|
|
3664
3656
|
onClick: b,
|
|
@@ -3669,7 +3661,7 @@ function Nr(e) {
|
|
|
3669
3661
|
}
|
|
3670
3662
|
//#endregion
|
|
3671
3663
|
//#region src/components/richText/leaf/index.tsx
|
|
3672
|
-
function
|
|
3664
|
+
function Nr({ attributes: e, children: t, leaf: n }) {
|
|
3673
3665
|
return n.bold && (t = /* @__PURE__ */ p("strong", { children: t })), n.code && (t = /* @__PURE__ */ p("code", { children: t })), n.italic && (t = /* @__PURE__ */ p("em", { children: t })), n.underline && (t = /* @__PURE__ */ p("u", { children: t })), /* @__PURE__ */ p("span", {
|
|
3674
3666
|
...e,
|
|
3675
3667
|
children: t
|
|
@@ -3677,10 +3669,10 @@ function Pr({ attributes: e, children: t, leaf: n }) {
|
|
|
3677
3669
|
}
|
|
3678
3670
|
//#endregion
|
|
3679
3671
|
//#region src/components/richText/markButton/index.tsx
|
|
3680
|
-
function
|
|
3681
|
-
let n = _e(), r =
|
|
3672
|
+
function Pr({ format: e, icon: t }) {
|
|
3673
|
+
let n = _e(), r = gr(n, e) ? "activeTrue" : "activeFalse";
|
|
3682
3674
|
function i(t) {
|
|
3683
|
-
t.preventDefault(),
|
|
3675
|
+
t.preventDefault(), _r(n, e);
|
|
3684
3676
|
}
|
|
3685
3677
|
return /* @__PURE__ */ p("button", {
|
|
3686
3678
|
type: "button",
|
|
@@ -3691,7 +3683,7 @@ function Fr({ format: e, icon: t }) {
|
|
|
3691
3683
|
}
|
|
3692
3684
|
//#endregion
|
|
3693
3685
|
//#region src/components/richText/toolbar/index.tsx
|
|
3694
|
-
function
|
|
3686
|
+
function Fr({ children: e }) {
|
|
3695
3687
|
return /* @__PURE__ */ p("div", {
|
|
3696
3688
|
className: "arkynRichTextToolbar",
|
|
3697
3689
|
children: e
|
|
@@ -3699,24 +3691,24 @@ function Ir({ children: e }) {
|
|
|
3699
3691
|
}
|
|
3700
3692
|
//#endregion
|
|
3701
3693
|
//#region src/components/richText/index.tsx
|
|
3702
|
-
function
|
|
3703
|
-
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(() => me(ve(pe())), []), { fieldErrors: P } =
|
|
3694
|
+
function Ir(e) {
|
|
3695
|
+
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(() => me(ve(pe())), []), { fieldErrors: P } = X(), F = c(() => {
|
|
3704
3696
|
try {
|
|
3705
3697
|
let e = JSON.parse(d);
|
|
3706
|
-
return !Array.isArray(e) || e.length === 0 ? structuredClone(
|
|
3698
|
+
return !Array.isArray(e) || e.length === 0 ? structuredClone(yr) : e.every((e) => typeof e == "object" && !!e && "type" in e && "children" in e) ? e : structuredClone(yr);
|
|
3707
3699
|
} catch {
|
|
3708
|
-
return structuredClone(
|
|
3700
|
+
return structuredClone(yr);
|
|
3709
3701
|
}
|
|
3710
|
-
}, [d]), [L, R] = u(
|
|
3702
|
+
}, [d]), [L, R] = u(hr(F).length), [z, B] = u(JSON.stringify(F) || "[]"), [H, U] = u(!1), G = l(null), K = s(), q = O || K, ee = x || P?.[t], J = w || !!ee, te = i(Nr, []), ne = i(Tr, []);
|
|
3711
3703
|
function re(e) {
|
|
3712
|
-
let t =
|
|
3704
|
+
let t = hr(e);
|
|
3713
3705
|
R(t.length), h?.(t.length), !(f && t.length >= S) && (B(JSON.stringify(e)), C?.(e));
|
|
3714
3706
|
}
|
|
3715
|
-
let
|
|
3716
|
-
function
|
|
3707
|
+
let ie = `arkynRichText ${J || S < L ? "errorTrue" : "errorFalse"} ${H ? "focusTrue" : "focusFalse"}`, ae = S - L;
|
|
3708
|
+
function Y(e) {
|
|
3717
3709
|
return !n?.includes(e);
|
|
3718
3710
|
}
|
|
3719
|
-
return /* @__PURE__ */ p(
|
|
3711
|
+
return /* @__PURE__ */ p(Qe, {
|
|
3720
3712
|
name: t,
|
|
3721
3713
|
label: T,
|
|
3722
3714
|
showAsterisk: D,
|
|
@@ -3731,55 +3723,55 @@ function Lr(e) {
|
|
|
3731
3723
|
onValueChange: re,
|
|
3732
3724
|
children: [
|
|
3733
3725
|
/* @__PURE__ */ m("div", {
|
|
3734
|
-
className:
|
|
3726
|
+
className: ie,
|
|
3735
3727
|
children: [
|
|
3736
|
-
/* @__PURE__ */ m(
|
|
3737
|
-
|
|
3728
|
+
/* @__PURE__ */ m(Fr, { children: [
|
|
3729
|
+
Y("headingOne") && /* @__PURE__ */ p(wr, {
|
|
3738
3730
|
format: "headingOne",
|
|
3739
3731
|
icon: M
|
|
3740
3732
|
}),
|
|
3741
|
-
|
|
3733
|
+
Y("headingTwo") && /* @__PURE__ */ p(wr, {
|
|
3742
3734
|
format: "headingTwo",
|
|
3743
3735
|
icon: N
|
|
3744
3736
|
}),
|
|
3745
|
-
|
|
3737
|
+
Y("blockQuote") && /* @__PURE__ */ p(wr, {
|
|
3746
3738
|
format: "blockQuote",
|
|
3747
3739
|
icon: V
|
|
3748
3740
|
}),
|
|
3749
|
-
|
|
3741
|
+
Y("bold") && /* @__PURE__ */ p(Pr, {
|
|
3750
3742
|
format: "bold",
|
|
3751
3743
|
icon: b
|
|
3752
3744
|
}),
|
|
3753
|
-
|
|
3745
|
+
Y("italic") && /* @__PURE__ */ p(Pr, {
|
|
3754
3746
|
format: "italic",
|
|
3755
3747
|
icon: I
|
|
3756
3748
|
}),
|
|
3757
|
-
|
|
3749
|
+
Y("underline") && /* @__PURE__ */ p(Pr, {
|
|
3758
3750
|
format: "underline",
|
|
3759
3751
|
icon: W
|
|
3760
3752
|
}),
|
|
3761
|
-
|
|
3753
|
+
Y("code") && /* @__PURE__ */ p(Pr, {
|
|
3762
3754
|
format: "code",
|
|
3763
3755
|
icon: E
|
|
3764
3756
|
}),
|
|
3765
|
-
|
|
3757
|
+
Y("left") && /* @__PURE__ */ p(wr, {
|
|
3766
3758
|
format: "left",
|
|
3767
3759
|
icon: v
|
|
3768
3760
|
}),
|
|
3769
|
-
|
|
3761
|
+
Y("right") && /* @__PURE__ */ p(wr, {
|
|
3770
3762
|
format: "right",
|
|
3771
3763
|
icon: y
|
|
3772
3764
|
}),
|
|
3773
|
-
|
|
3765
|
+
Y("center") && /* @__PURE__ */ p(wr, {
|
|
3774
3766
|
format: "center",
|
|
3775
3767
|
icon: g
|
|
3776
3768
|
}),
|
|
3777
|
-
|
|
3769
|
+
Y("justify") && /* @__PURE__ */ p(wr, {
|
|
3778
3770
|
format: "justify",
|
|
3779
3771
|
icon: _
|
|
3780
3772
|
}),
|
|
3781
|
-
r &&
|
|
3782
|
-
|
|
3773
|
+
r && Y("image") && /* @__PURE__ */ p(jr, { ...r }),
|
|
3774
|
+
Y("video") && /* @__PURE__ */ p(Mr, { ...a })
|
|
3783
3775
|
] }),
|
|
3784
3776
|
/* @__PURE__ */ p(he, {
|
|
3785
3777
|
className: "editorContainer",
|
|
@@ -3791,16 +3783,16 @@ function Lr(e) {
|
|
|
3791
3783
|
onFocus: () => U(!0),
|
|
3792
3784
|
onBlur: () => U(!1),
|
|
3793
3785
|
onKeyDown: (e) => {
|
|
3794
|
-
for (let t in
|
|
3786
|
+
for (let t in vr) if (se(t, e)) {
|
|
3795
3787
|
e.preventDefault();
|
|
3796
|
-
let n =
|
|
3797
|
-
|
|
3788
|
+
let n = vr[t];
|
|
3789
|
+
_r(j, n);
|
|
3798
3790
|
}
|
|
3799
3791
|
}
|
|
3800
3792
|
}),
|
|
3801
|
-
|
|
3793
|
+
ae < 0 && /* @__PURE__ */ p("div", {
|
|
3802
3794
|
className: "restatesCharacters",
|
|
3803
|
-
children:
|
|
3795
|
+
children: ae
|
|
3804
3796
|
})
|
|
3805
3797
|
]
|
|
3806
3798
|
}),
|
|
@@ -3820,7 +3812,7 @@ function Lr(e) {
|
|
|
3820
3812
|
}
|
|
3821
3813
|
//#endregion
|
|
3822
3814
|
//#region src/components/searchPlaces.tsx
|
|
3823
|
-
function
|
|
3815
|
+
function Lr(e) {
|
|
3824
3816
|
let { onChange: t, onPlaceChanged: n, options: r, ...i } = e, [a, o] = u(null);
|
|
3825
3817
|
return /* @__PURE__ */ p(ye, {
|
|
3826
3818
|
onLoad: (e) => o(e),
|
|
@@ -3863,7 +3855,7 @@ function Rr(e) {
|
|
|
3863
3855
|
}
|
|
3864
3856
|
},
|
|
3865
3857
|
options: r,
|
|
3866
|
-
children: /* @__PURE__ */ p(
|
|
3858
|
+
children: /* @__PURE__ */ p(at, {
|
|
3867
3859
|
type: "text",
|
|
3868
3860
|
autoComplete: "off",
|
|
3869
3861
|
onChange: (e) => t?.(e.target.value),
|
|
@@ -3873,12 +3865,12 @@ function Rr(e) {
|
|
|
3873
3865
|
}
|
|
3874
3866
|
//#endregion
|
|
3875
3867
|
//#region src/components/switch/index.tsx
|
|
3876
|
-
function
|
|
3868
|
+
function Rr(e) {
|
|
3877
3869
|
let { label: t, size: n = "lg", defaultChecked: r = !1, checked: i = null, value: a, unCheckedValue: o = "", name: c, className: d = "", onCheck: f, id: m, orientation: h = "horizontalReverse", className: g = "", showAsterisk: _, errorMessage: v, unShowFieldTemplate: y = !1, ...b } = e, x = l(null), S = s(), C = m || S, [w, T] = u(r), E = typeof i == "boolean" ? i : w;
|
|
3878
3870
|
function D() {
|
|
3879
3871
|
T(!w), f?.(E ? o : a || "checked");
|
|
3880
3872
|
}
|
|
3881
|
-
return /* @__PURE__ */ p(
|
|
3873
|
+
return /* @__PURE__ */ p(Qe, {
|
|
3882
3874
|
name: c,
|
|
3883
3875
|
label: t,
|
|
3884
3876
|
showAsterisk: _,
|
|
@@ -3904,23 +3896,23 @@ function zr(e) {
|
|
|
3904
3896
|
}
|
|
3905
3897
|
//#endregion
|
|
3906
3898
|
//#region src/components/table/tableBody/index.tsx
|
|
3907
|
-
function
|
|
3908
|
-
let { emptyMessage: n = "Nenhum dado adicionado.", className: r, children: i, ...a } = t, o = `arkynTableBody ${r}`, s = e.
|
|
3899
|
+
function zr(t) {
|
|
3900
|
+
let { emptyMessage: n = "Nenhum dado adicionado.", className: r, children: i, ...a } = t, o = `arkynTableBody ${r}`, s = e.toArray(i).filter(Boolean), c = s.length === 0;
|
|
3909
3901
|
return /* @__PURE__ */ p("tbody", {
|
|
3910
3902
|
className: o.trim(),
|
|
3911
3903
|
...a,
|
|
3912
|
-
children:
|
|
3904
|
+
children: c ? /* @__PURE__ */ p("tr", {
|
|
3913
3905
|
className: "arkynTableBodyEmptyLine",
|
|
3914
3906
|
children: /* @__PURE__ */ p("td", {
|
|
3915
3907
|
colSpan: 100,
|
|
3916
3908
|
children: /* @__PURE__ */ p("div", { children: n })
|
|
3917
3909
|
})
|
|
3918
|
-
}) :
|
|
3910
|
+
}) : s
|
|
3919
3911
|
});
|
|
3920
3912
|
}
|
|
3921
3913
|
//#endregion
|
|
3922
3914
|
//#region src/components/table/tableCaption/index.tsx
|
|
3923
|
-
function
|
|
3915
|
+
function Br(e) {
|
|
3924
3916
|
let { className: t, children: n, ...r } = e;
|
|
3925
3917
|
return /* @__PURE__ */ p("caption", {
|
|
3926
3918
|
className: `arkynTableCaption ${t}`.trim(),
|
|
@@ -3933,7 +3925,7 @@ function Vr(e) {
|
|
|
3933
3925
|
}
|
|
3934
3926
|
//#endregion
|
|
3935
3927
|
//#region src/components/table/tableContainer/index.tsx
|
|
3936
|
-
function
|
|
3928
|
+
function Vr(e) {
|
|
3937
3929
|
let { children: t, className: n, ...r } = e;
|
|
3938
3930
|
return /* @__PURE__ */ p("div", {
|
|
3939
3931
|
className: `arkynTableContainer ${n}`.trim(),
|
|
@@ -3943,7 +3935,7 @@ function Hr(e) {
|
|
|
3943
3935
|
}
|
|
3944
3936
|
//#endregion
|
|
3945
3937
|
//#region src/components/table/tableFooter/index.tsx
|
|
3946
|
-
function
|
|
3938
|
+
function Hr(e) {
|
|
3947
3939
|
let { className: t, children: n, ...r } = e;
|
|
3948
3940
|
return /* @__PURE__ */ m("tfoot", {
|
|
3949
3941
|
className: `arkynTableFooter ${t}`.trim(),
|
|
@@ -3959,7 +3951,7 @@ function Ur(e) {
|
|
|
3959
3951
|
}
|
|
3960
3952
|
//#endregion
|
|
3961
3953
|
//#region src/components/table/tableHeader/index.tsx
|
|
3962
|
-
function
|
|
3954
|
+
function Ur(e) {
|
|
3963
3955
|
let { className: t, children: n, ...r } = e;
|
|
3964
3956
|
return /* @__PURE__ */ m("thead", {
|
|
3965
3957
|
className: `arkynTableHeader ${t}`.trim(),
|
|
@@ -3969,15 +3961,15 @@ function Wr(e) {
|
|
|
3969
3961
|
}
|
|
3970
3962
|
//#endregion
|
|
3971
3963
|
//#region src/components/textarea/index.tsx
|
|
3972
|
-
function
|
|
3973
|
-
let { variant: t = "solid", size: n = "md", className: r, errorMessage: i, disabled: a = !1, readOnly: o = !1, label: c, showAsterisk: d, name: f, onFocus: h, onBlur: g, title: _, style: v, value: y, defaultValue: b, placeholder: x, id: S, ...C } = e, { fieldErrors: w } =
|
|
3974
|
-
function
|
|
3964
|
+
function Wr(e) {
|
|
3965
|
+
let { variant: t = "solid", size: n = "md", className: r, errorMessage: i, disabled: a = !1, readOnly: o = !1, label: c, showAsterisk: d, name: f, onFocus: h, onBlur: g, title: _, style: v, value: y, defaultValue: b, placeholder: x, id: S, ...C } = e, { fieldErrors: w } = X(), [T, E] = u(!1), D = l(null), O = s(), k = S || O, A = i || w?.[f], j = `arkynTextarea ${t} ${n} ${a || o ? "opacityTrue" : "opacityFalse"} ${A ? "errorTrue" : "errorFalse"} ${T ? "focusedTrue" : "focusedFalse"}`, M = a ? void 0 : y;
|
|
3966
|
+
function N() {
|
|
3975
3967
|
a || !D?.current || (E(!0), D.current.focus());
|
|
3976
3968
|
}
|
|
3977
|
-
function
|
|
3969
|
+
function P(e) {
|
|
3978
3970
|
E(!0), h && h(e);
|
|
3979
3971
|
}
|
|
3980
|
-
function
|
|
3972
|
+
function F(e) {
|
|
3981
3973
|
E(!1), g && g(e);
|
|
3982
3974
|
}
|
|
3983
3975
|
return /* @__PURE__ */ m(ze, {
|
|
@@ -3991,7 +3983,7 @@ function Gr(e) {
|
|
|
3991
3983
|
/* @__PURE__ */ p("section", {
|
|
3992
3984
|
title: _,
|
|
3993
3985
|
style: v,
|
|
3994
|
-
onClick:
|
|
3986
|
+
onClick: N,
|
|
3995
3987
|
className: j,
|
|
3996
3988
|
children: /* @__PURE__ */ p("textarea", {
|
|
3997
3989
|
id: k,
|
|
@@ -3999,11 +3991,11 @@ function Gr(e) {
|
|
|
3999
3991
|
readOnly: o,
|
|
4000
3992
|
ref: D,
|
|
4001
3993
|
name: f,
|
|
4002
|
-
onFocus:
|
|
4003
|
-
onBlur:
|
|
4004
|
-
defaultValue: b || "",
|
|
3994
|
+
onFocus: P,
|
|
3995
|
+
onBlur: F,
|
|
3996
|
+
defaultValue: M === void 0 ? b || "" : void 0,
|
|
4005
3997
|
placeholder: a && y || x,
|
|
4006
|
-
value:
|
|
3998
|
+
value: M,
|
|
4007
3999
|
...C
|
|
4008
4000
|
})
|
|
4009
4001
|
}),
|
|
@@ -4013,7 +4005,7 @@ function Gr(e) {
|
|
|
4013
4005
|
}
|
|
4014
4006
|
//#endregion
|
|
4015
4007
|
//#region src/templates/badResponses.ts
|
|
4016
|
-
var
|
|
4008
|
+
var Gr = [
|
|
4017
4009
|
"BadGateway",
|
|
4018
4010
|
"BadRequest",
|
|
4019
4011
|
"Conflict",
|
|
@@ -4023,13 +4015,13 @@ var Kr = [
|
|
|
4023
4015
|
"ServerError",
|
|
4024
4016
|
"Unauthorized",
|
|
4025
4017
|
"UnprocessableEntity"
|
|
4026
|
-
],
|
|
4018
|
+
], Kr = [
|
|
4027
4019
|
"Created",
|
|
4028
4020
|
"Found",
|
|
4029
4021
|
"Success",
|
|
4030
4022
|
"Updated"
|
|
4031
|
-
],
|
|
4032
|
-
function
|
|
4023
|
+
], qr = n({});
|
|
4024
|
+
function Jr(e) {
|
|
4033
4025
|
let { children: t = !1 } = e, [n, r] = u([]);
|
|
4034
4026
|
function i(e) {
|
|
4035
4027
|
return !!n.some((t) => t.key === e);
|
|
@@ -4052,7 +4044,7 @@ function Yr(e) {
|
|
|
4052
4044
|
function c() {
|
|
4053
4045
|
r([]);
|
|
4054
4046
|
}
|
|
4055
|
-
return /* @__PURE__ */ p(
|
|
4047
|
+
return /* @__PURE__ */ p(qr.Provider, {
|
|
4056
4048
|
value: {
|
|
4057
4049
|
modalIsOpen: i,
|
|
4058
4050
|
modalData: a,
|
|
@@ -4065,8 +4057,8 @@ function Yr(e) {
|
|
|
4065
4057
|
}
|
|
4066
4058
|
//#endregion
|
|
4067
4059
|
//#region src/hooks/useModal.ts
|
|
4068
|
-
function
|
|
4069
|
-
let t = a(
|
|
4060
|
+
function Yr(e) {
|
|
4061
|
+
let t = a(qr);
|
|
4070
4062
|
if (Object.entries(t).length === 0) throw Error("useModal must be used within a Provider");
|
|
4071
4063
|
if (e) {
|
|
4072
4064
|
let { modalData: n, modalIsOpen: r, openModal: i, closeModal: a } = t;
|
|
@@ -4080,8 +4072,8 @@ function Xr(e) {
|
|
|
4080
4072
|
}
|
|
4081
4073
|
//#endregion
|
|
4082
4074
|
//#region src/providers/toastProvider.tsx
|
|
4083
|
-
var
|
|
4084
|
-
function
|
|
4075
|
+
var Xr = n({});
|
|
4076
|
+
function Zr({ children: e }) {
|
|
4085
4077
|
function t(e) {
|
|
4086
4078
|
switch (e.type) {
|
|
4087
4079
|
case "success": return Se.success(e.message, {
|
|
@@ -4112,7 +4104,7 @@ function Qr({ children: e }) {
|
|
|
4112
4104
|
});
|
|
4113
4105
|
}
|
|
4114
4106
|
}
|
|
4115
|
-
return /* @__PURE__ */ m(
|
|
4107
|
+
return /* @__PURE__ */ m(Xr.Provider, {
|
|
4116
4108
|
value: { showToast: t },
|
|
4117
4109
|
children: [/* @__PURE__ */ p(Ce, {
|
|
4118
4110
|
position: "top-right",
|
|
@@ -4122,21 +4114,21 @@ function Qr({ children: e }) {
|
|
|
4122
4114
|
}
|
|
4123
4115
|
//#endregion
|
|
4124
4116
|
//#region src/hooks/useToast.ts
|
|
4125
|
-
function
|
|
4126
|
-
let e = a(
|
|
4117
|
+
function Qr() {
|
|
4118
|
+
let e = a(Xr);
|
|
4127
4119
|
if (Object.entries(e).length === 0) throw Error("useToast must be used within a Provider");
|
|
4128
4120
|
return e;
|
|
4129
4121
|
}
|
|
4130
4122
|
//#endregion
|
|
4131
4123
|
//#region src/hooks/useAutomation.ts
|
|
4132
|
-
function
|
|
4133
|
-
let { closeAll: t } =
|
|
4124
|
+
function $r(e) {
|
|
4125
|
+
let { closeAll: t } = Yr(), { showToast: n } = Qr(), r = e?.closeModal, a = e?.message, s = e?.name, c = e?.cause?.data?.scrollTo, l = e?.cause?.fieldErrors ? Object.values(e?.cause?.fieldErrors)[0] : null, u = i(() => {
|
|
4134
4126
|
if (!(!a && !l)) {
|
|
4135
|
-
if (
|
|
4127
|
+
if (Kr.includes(s)) return n({
|
|
4136
4128
|
message: a,
|
|
4137
4129
|
type: "success"
|
|
4138
4130
|
});
|
|
4139
|
-
if (
|
|
4131
|
+
if (Gr.includes(s)) {
|
|
4140
4132
|
if (l) return n({
|
|
4141
4133
|
message: l,
|
|
4142
4134
|
type: "danger"
|
|
@@ -4167,8 +4159,8 @@ function ei(e) {
|
|
|
4167
4159
|
}
|
|
4168
4160
|
//#endregion
|
|
4169
4161
|
//#region src/providers/drawerProvider.tsx
|
|
4170
|
-
var
|
|
4171
|
-
function
|
|
4162
|
+
var ei = n({});
|
|
4163
|
+
function ti(e) {
|
|
4172
4164
|
let { children: t = !1 } = e, [n, r] = u([]);
|
|
4173
4165
|
function i(e) {
|
|
4174
4166
|
return !!n.some((t) => t.key === e);
|
|
@@ -4188,7 +4180,7 @@ function ni(e) {
|
|
|
4188
4180
|
function s(e) {
|
|
4189
4181
|
r(n.filter((t) => t.key !== e));
|
|
4190
4182
|
}
|
|
4191
|
-
return /* @__PURE__ */ p(
|
|
4183
|
+
return /* @__PURE__ */ p(ei.Provider, {
|
|
4192
4184
|
value: {
|
|
4193
4185
|
drawerIsOpen: i,
|
|
4194
4186
|
drawerData: a,
|
|
@@ -4200,8 +4192,8 @@ function ni(e) {
|
|
|
4200
4192
|
}
|
|
4201
4193
|
//#endregion
|
|
4202
4194
|
//#region src/hooks/useDrawer.ts
|
|
4203
|
-
function
|
|
4204
|
-
let t = a(
|
|
4195
|
+
function ni(e) {
|
|
4196
|
+
let t = a(ei);
|
|
4205
4197
|
if (Object.entries(t).length === 0) throw Error("useDrawer must be used within a Provider");
|
|
4206
4198
|
if (e) {
|
|
4207
4199
|
let { drawerData: n, drawerIsOpen: r, openDrawer: i, closeDrawer: a } = t;
|
|
@@ -4215,7 +4207,7 @@ function ri(e) {
|
|
|
4215
4207
|
}
|
|
4216
4208
|
//#endregion
|
|
4217
4209
|
//#region src/hooks/useScopedParams.ts
|
|
4218
|
-
function
|
|
4210
|
+
function ri(e, t = "") {
|
|
4219
4211
|
let n = new URLSearchParams(e), r = t ? `${t}:` : "", i = (e) => {
|
|
4220
4212
|
Object.entries(e).forEach(([e, t]) => {
|
|
4221
4213
|
t === void 0 ? n.delete(`${r}${e}`) : n.set(`${r}${e}`, String(t));
|
|
@@ -4232,8 +4224,8 @@ function ii(e, t = "") {
|
|
|
4232
4224
|
}
|
|
4233
4225
|
//#endregion
|
|
4234
4226
|
//#region src/hooks/useSearchAutomation.ts
|
|
4235
|
-
function
|
|
4236
|
-
let { closeAll: n } =
|
|
4227
|
+
function ii(e, t = "") {
|
|
4228
|
+
let { closeAll: n } = Yr(), { showToast: r } = Qr(), { getParam: i } = ri(e, t), a = i("closeModal") === "true", s = i("message"), c = i("name"), l = i("type");
|
|
4237
4229
|
o(() => {
|
|
4238
4230
|
a && n(), s && (l === "success" && r({
|
|
4239
4231
|
message: s,
|
|
@@ -4241,10 +4233,10 @@ function ai(e, t = "") {
|
|
|
4241
4233
|
}), l === "danger" && r({
|
|
4242
4234
|
message: s,
|
|
4243
4235
|
type: "danger"
|
|
4244
|
-
}), c &&
|
|
4236
|
+
}), c && Gr.includes(c) && !Gr.includes(s) && r({
|
|
4245
4237
|
message: s,
|
|
4246
4238
|
type: "danger"
|
|
4247
|
-
}), c &&
|
|
4239
|
+
}), c && Kr.includes(c) && !Kr.includes(s) && r({
|
|
4248
4240
|
message: s,
|
|
4249
4241
|
type: "success"
|
|
4250
4242
|
}));
|
|
@@ -4259,28 +4251,28 @@ function ai(e, t = "") {
|
|
|
4259
4251
|
}
|
|
4260
4252
|
//#endregion
|
|
4261
4253
|
//#region src/providers/placesProvider.tsx
|
|
4262
|
-
var
|
|
4254
|
+
var ai = [
|
|
4263
4255
|
"places",
|
|
4264
4256
|
"marker",
|
|
4265
4257
|
"maps"
|
|
4266
4258
|
];
|
|
4267
|
-
function
|
|
4259
|
+
function oi(e) {
|
|
4268
4260
|
let { apiKey: t, children: n, preventFontsLoading: r = !0 } = e, { isLoaded: i } = be({
|
|
4269
4261
|
googleMapsApiKey: t,
|
|
4270
|
-
libraries:
|
|
4262
|
+
libraries: ai,
|
|
4271
4263
|
preventGoogleFontsLoading: r
|
|
4272
4264
|
});
|
|
4273
4265
|
return /* @__PURE__ */ p(f, { children: n(i) });
|
|
4274
4266
|
}
|
|
4275
4267
|
//#endregion
|
|
4276
4268
|
//#region src/utils/richTextUtilities.ts
|
|
4277
|
-
function
|
|
4269
|
+
function si(e) {
|
|
4278
4270
|
if (de.isText(e)) {
|
|
4279
4271
|
let t = e?.text;
|
|
4280
4272
|
return e?.bold && (t = `<strong>${t}</strong>`), e?.code && (t = `<code>${t}</code>`), e?.italic && (t = `<em>${t}</em>`), e?.underline && (t = `<u>${t}</u>`), t;
|
|
4281
4273
|
}
|
|
4282
4274
|
if (le.isElement(e)) {
|
|
4283
|
-
let t = e.children?.map((e) =>
|
|
4275
|
+
let t = e.children?.map((e) => si(e)).join(""), n = e.align || "left";
|
|
4284
4276
|
switch (e.type) {
|
|
4285
4277
|
case "video": return `<iframe src="${e.src}" class="align_${n}" />`;
|
|
4286
4278
|
case "image": return `<img src="${e.src}" class="align_${n}" />`;
|
|
@@ -4296,9 +4288,9 @@ function ci(e) {
|
|
|
4296
4288
|
}
|
|
4297
4289
|
return "";
|
|
4298
4290
|
}
|
|
4299
|
-
function
|
|
4291
|
+
function ci(e) {
|
|
4300
4292
|
if (typeof e == "string") return { text: e };
|
|
4301
|
-
let t = Array.isArray(e.props.children) ? e.props.children.map((e) =>
|
|
4293
|
+
let t = Array.isArray(e.props.children) ? e.props.children.map((e) => ci(e)) : [{ text: e.props.children || "" }], n = e.props.className?.replace("align_", "");
|
|
4302
4294
|
switch (e.type) {
|
|
4303
4295
|
case "img": return {
|
|
4304
4296
|
type: "image",
|
|
@@ -4362,14 +4354,14 @@ function li(e) {
|
|
|
4362
4354
|
}
|
|
4363
4355
|
//#endregion
|
|
4364
4356
|
//#region src/services/toHtml.ts
|
|
4365
|
-
function
|
|
4366
|
-
return e.map((e) =>
|
|
4357
|
+
function li(e) {
|
|
4358
|
+
return e.map((e) => si(e)).join("");
|
|
4367
4359
|
}
|
|
4368
4360
|
//#endregion
|
|
4369
4361
|
//#region src/services/toRichTextValue.ts
|
|
4370
|
-
function
|
|
4362
|
+
function ui(e) {
|
|
4371
4363
|
let t = we(e);
|
|
4372
|
-
return Array.isArray(t) ? t.map((e) => typeof e == "string" ? { text: e } :
|
|
4364
|
+
return Array.isArray(t) ? t.map((e) => typeof e == "string" ? { text: e } : ci(e)) : typeof t == "string" ? [{ text: t }] : [ci(t)];
|
|
4373
4365
|
}
|
|
4374
4366
|
//#endregion
|
|
4375
|
-
export { Oe as AlertContainer, ke as AlertContent, Ae as AlertDescription, je as AlertIcon, Te as AlertTitle, Pe as AudioPlayer,
|
|
4367
|
+
export { Oe as AlertContainer, ke as AlertContent, Ae as AlertDescription, je as AlertIcon, Te as AlertTitle, Pe as AudioPlayer, Ge as AudioUpload, Ke as Badge, Q as Button, ht as Calendar, yt as CardTabButton, bt as CardTabContainer, xt as Checkbox, wt as ClientOnly, Dt as CurrencyInput, Be as Divider, jt as DrawerContainer, Mt as DrawerHeader, ti as DrawerProvider, Ft as FacebookPixel, Le as FieldError, Re as FieldLabel, ze as FieldWrapper, Rt as FileUpload, Ie as FormProvider, dn as FullCalendar, hn as GoogleAnalytics, bn as GoogleTagManager, Ve as IconButton, Cn as ImageUpload, at as Input, En as MapView, On as MaskedInput, Mn as ModalContainer, Nn as ModalFooter, Pn as ModalHeader, Jr as ModalProvider, Un as MultiSelect, Yn as Pagination, cr as PhoneInput, oi as PlacesProvider, lr as Popover, pr as RadioBox, mr as RadioGroup, Ir as RichText, Lr as SearchPlaces, lt as Select, Ne as Slider, Rr as Switch, kr as TabButton, Ar as TabContainer, zr as TableBody, Br as TableCaption, Vr as TableContainer, Hr as TableFooter, Ur as TableHeader, Wr as Textarea, Zr as ToastProvider, He as Tooltip, li as toHtml, ui as toRichTextValue, $r as useAutomation, ni as useDrawer, X as useForm, Ct as useHydrated, Yr as useModal, ri as useScopedParams, it as useScrollLock, ii as useSearchAutomation, Me as useSlider, Qr as useToast };
|