@ynput/ayon-frontend-shared 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/EmptyPlaceholderFlex.styled-C3tjIk5V.mjs +121 -0
- package/dist/EmptyPlaceholderFlex.styled-C3tjIk5V.mjs.map +1 -0
- package/dist/EmptyPlaceholderFlex.styled-D_9k5mMH.js +78 -0
- package/dist/EmptyPlaceholderFlex.styled-D_9k5mMH.js.map +1 -0
- package/dist/ThumbnailSimple-DbSmXCNa.js +34 -0
- package/dist/ThumbnailSimple-DbSmXCNa.js.map +1 -0
- package/dist/ThumbnailSimple-DotCInch.mjs +78 -0
- package/dist/ThumbnailSimple-DotCInch.mjs.map +1 -0
- package/dist/ayon-frontend-shared.css +1 -0
- package/dist/confirmDelete-BSaFL2RH.mjs +6279 -0
- package/dist/confirmDelete-BSaFL2RH.mjs.map +1 -0
- package/dist/confirmDelete-BoRH88hw.js +43 -0
- package/dist/confirmDelete-BoRH88hw.js.map +1 -0
- package/dist/csstransition.esm-CzUZfsIt.mjs +3101 -0
- package/dist/csstransition.esm-CzUZfsIt.mjs.map +1 -0
- package/dist/csstransition.esm-Riwtyc4r.js +32 -0
- package/dist/csstransition.esm-Riwtyc4r.js.map +1 -0
- package/dist/format-DUCu0Y-3.mjs +1289 -0
- package/dist/format-DUCu0Y-3.mjs.map +1 -0
- package/dist/format-v4Hpvya-.js +2 -0
- package/dist/format-v4Hpvya-.js.map +1 -0
- package/dist/getEntityTypeIcon-BvwosBHR.js +2 -0
- package/dist/getEntityTypeIcon-BvwosBHR.js.map +1 -0
- package/dist/getEntityTypeIcon-BxTCKGSi.mjs +50 -0
- package/dist/getEntityTypeIcon-BxTCKGSi.mjs.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.cjs2.js +2 -0
- package/dist/index.cjs2.js.map +1 -0
- package/dist/index.cjs3.js +2 -0
- package/dist/index.cjs3.js.map +1 -0
- package/dist/index.cjs4.js +2 -0
- package/dist/index.cjs4.js.map +1 -0
- package/dist/index.cjs5.js +2 -0
- package/dist/index.cjs5.js.map +1 -0
- package/dist/index.cjs6.js +2 -0
- package/dist/index.cjs6.js.map +1 -0
- package/dist/index.cjs7.js +29 -0
- package/dist/index.cjs7.js.map +1 -0
- package/dist/index.cjs8.js +549 -0
- package/dist/index.cjs8.js.map +1 -0
- package/dist/index.cjs9.js +1753 -0
- package/dist/index.cjs9.js.map +1 -0
- package/dist/index.es.js +8 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.es2.js +11 -0
- package/dist/index.es2.js.map +1 -0
- package/dist/index.es3.js +12 -0
- package/dist/index.es3.js.map +1 -0
- package/dist/index.es4.js +5 -0
- package/dist/index.es4.js.map +1 -0
- package/dist/index.es5.js +5 -0
- package/dist/index.es5.js.map +1 -0
- package/dist/index.es6.js +37 -0
- package/dist/index.es6.js.map +1 -0
- package/dist/index.es7.js +361 -0
- package/dist/index.es7.js.map +1 -0
- package/dist/index.es8.js +4340 -0
- package/dist/index.es8.js.map +1 -0
- package/dist/index.es9.js +56950 -0
- package/dist/index.es9.js.map +1 -0
- package/dist/jsx-runtime-Drh4NO5G.mjs +634 -0
- package/dist/jsx-runtime-Drh4NO5G.mjs.map +1 -0
- package/dist/jsx-runtime-qcKc-DpB.js +31 -0
- package/dist/jsx-runtime-qcKc-DpB.js.map +1 -0
- package/dist/platform-C5rgawOb.js +2 -0
- package/dist/platform-C5rgawOb.js.map +1 -0
- package/dist/platform-DNAvZtra.mjs +36 -0
- package/dist/platform-DNAvZtra.mjs.map +1 -0
- package/dist/types/ContextMenu.d.ts +1 -0
- package/dist/types/Feed.d.ts +1 -0
- package/dist/types/ProjectTreeTable.d.ts +1 -0
- package/dist/types/Slicer.d.ts +1 -0
- package/dist/types/api/activities/index.d.ts +1 -0
- package/dist/types/api/activities/transformations.d.ts +0 -0
- package/dist/types/api/activities/types.d.ts +10 -0
- package/dist/types/api/graphql.d.ts +2096 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api.d.ts +1 -0
- package/dist/types/components/EmptyPlaceholder/EmptyPlaceholder.d.ts +11 -0
- package/dist/types/components/EmptyPlaceholder/EmptyPlaceholderFlex.styled.d.ts +2 -0
- package/dist/types/components/EmptyPlaceholder/index.d.ts +4 -0
- package/dist/types/components/ThumbnailSimple/ThumbnailSimple.d.ts +15 -0
- package/dist/types/components/ThumbnailSimple/index.d.ts +3 -0
- package/dist/types/components/UserImage/UserImage.d.ts +11 -0
- package/dist/types/components/UserImage/index.d.ts +3 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components.d.ts +1 -0
- package/dist/types/containers/ContextMenu/ContextMenuContext.d.ts +21 -0
- package/dist/types/containers/ContextMenu/ContextMenuItem.d.ts +27 -0
- package/dist/types/containers/ContextMenu/GlobalContextMenu.d.ts +1 -0
- package/dist/types/containers/ContextMenu/index.d.ts +4 -0
- package/dist/types/containers/ContextMenu/useCreateContextMenu.d.ts +17 -0
- package/dist/types/containers/Feed/Feed.d.ts +10 -0
- package/dist/types/containers/Feed/Feed.styled.d.ts +5 -0
- package/dist/types/containers/Feed/components/ActivityAssigneeChange/ActivityAssigneeChange.d.ts +15 -0
- package/dist/types/containers/Feed/components/ActivityAssigneeChange/ActivityAssigneeChange.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityAssigneeChange/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.d.ts +6 -0
- package/dist/types/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.styled.d.ts +1 -0
- package/dist/types/containers/Feed/components/ActivityCheckbox/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityComment/ActivityComment.d.ts +24 -0
- package/dist/types/containers/Feed/components/ActivityComment/ActivityComment.styled.d.ts +14 -0
- package/dist/types/containers/Feed/components/ActivityComment/ActivityMarkdownComponents.d.ts +43 -0
- package/dist/types/containers/Feed/components/ActivityComment/CommentWrapper.d.ts +5 -0
- package/dist/types/containers/Feed/components/ActivityComment/mappers.d.ts +9 -0
- package/dist/types/containers/Feed/components/ActivityDate.d.ts +7 -0
- package/dist/types/containers/Feed/components/ActivityGroup/ActivityGroup.d.ts +9 -0
- package/dist/types/containers/Feed/components/ActivityGroup/ActivityGroup.styled.d.ts +2 -0
- package/dist/types/containers/Feed/components/ActivityHeader/ActivityHeader.d.ts +40 -0
- package/dist/types/containers/Feed/components/ActivityHeader/ActivityHeader.styled.d.ts +4 -0
- package/dist/types/containers/Feed/components/ActivityItem.d.ts +27 -0
- package/dist/types/containers/Feed/components/ActivityReference/ActivityReference.d.ts +14 -0
- package/dist/types/containers/Feed/components/ActivityReference/ActivityReference.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityReferenceTooltip/ActivityReferenceTooltip.d.ts +4 -0
- package/dist/types/containers/Feed/components/ActivityReferenceTooltip/index.d.ts +2 -0
- package/dist/types/containers/Feed/components/ActivityStatus/ActivityStatus.d.ts +9 -0
- package/dist/types/containers/Feed/components/ActivityStatusChange/ActivityStatusChange.d.ts +18 -0
- package/dist/types/containers/Feed/components/ActivityStatusChange/ActivityStatusChange.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/ActivityStatusChange/hooks/getContextParents.d.ts +2 -0
- package/dist/types/containers/Feed/components/ActivityVersions/ActivityVersions.d.ts +24 -0
- package/dist/types/containers/Feed/components/ActivityVersions/ActivityVersions.styled.d.ts +6 -0
- package/dist/types/containers/Feed/components/CommentInput/CommentInput.d.ts +26 -0
- package/dist/types/containers/Feed/components/CommentInput/CommentInput.styled.d.ts +7 -0
- package/dist/types/containers/Feed/components/CommentInput/InputMarkdownConvert.d.ts +11 -0
- package/dist/types/containers/Feed/components/CommentInput/helpers.d.ts +4 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useAnnotationsSync.d.ts +14 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useAnnotationsUpload.d.ts +6 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useInitialValue.d.ts +11 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useMentionLink.d.ts +7 -0
- package/dist/types/containers/Feed/components/CommentInput/hooks/useSetCursorEnd.d.ts +7 -0
- package/dist/types/containers/Feed/components/CommentInput/index.d.ts +0 -0
- package/dist/types/containers/Feed/components/CommentInput/modules/ImageUploader.d.ts +8 -0
- package/dist/types/containers/Feed/components/CommentInput/modules/index.d.ts +12 -0
- package/dist/types/containers/Feed/components/CommentInput/quillToMarkdown.d.ts +5 -0
- package/dist/types/containers/Feed/components/CommentMentionSelect/CommentMentionSelect.d.ts +28 -0
- package/dist/types/containers/Feed/components/CommentMentionSelect/CommentMentionSelect.styled.d.ts +6 -0
- package/dist/types/containers/Feed/components/FileUploadCard/FileUploadCard.d.ts +14 -0
- package/dist/types/containers/Feed/components/FileUploadCard/FileUploadCard.styled.d.ts +4 -0
- package/dist/types/containers/Feed/components/FileUploadCard/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/FileUploadPreview.d.ts +22 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/FileUploadPreview.styled.d.ts +4 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/Mimes/ImageMime.d.ts +9 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/Mimes/TextMime.d.ts +10 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/hooks/useAttachmentNavigation.d.ts +19 -0
- package/dist/types/containers/Feed/components/FileUploadPreview/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/FilesGrid/FilesGrid.d.ts +17 -0
- package/dist/types/containers/Feed/components/FilesGrid/FilesGrid.styled.d.ts +1 -0
- package/dist/types/containers/Feed/components/FilesGrid/index.d.ts +3 -0
- package/dist/types/containers/Feed/components/ReactionContainer/ExistingReactions.d.ts +7 -0
- package/dist/types/containers/Feed/components/ReactionContainer/Reaction.d.ts +10 -0
- package/dist/types/containers/Feed/components/ReactionContainer/ReactionPanelOpener.d.ts +7 -0
- package/dist/types/containers/Feed/components/ReactionContainer/Reactions.d.ts +8 -0
- package/dist/types/containers/Feed/components/ReactionContainer/Reactions.styled.d.ts +7 -0
- package/dist/types/containers/Feed/components/ReactionContainer/helpers.d.ts +11 -0
- package/dist/types/containers/Feed/components/ReactionContainer/types.d.ts +8 -0
- package/dist/types/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.d.ts +12 -0
- package/dist/types/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.styled.d.ts +3 -0
- package/dist/types/containers/Feed/components/Tooltips/UserTooltip/UserTooltip.d.ts +10 -0
- package/dist/types/containers/Feed/components/Tooltips/UserTooltip/UserTooltip.styled.d.ts +2 -0
- package/dist/types/containers/Feed/context/FeedContext.d.ts +58 -0
- package/dist/types/containers/Feed/feedHelpers.d.ts +1 -0
- package/dist/types/containers/Feed/helpers/groupActivityVersions.d.ts +2 -0
- package/dist/types/containers/Feed/helpers/groupMinorActivities.d.ts +2 -0
- package/dist/types/containers/Feed/helpers/mergeSimilarActivities.d.ts +2 -0
- package/dist/types/containers/Feed/hooks/useCommentMutations.d.ts +30 -0
- package/dist/types/containers/Feed/hooks/useReferenceTooltip.d.ts +3 -0
- package/dist/types/containers/Feed/hooks/useSaveScrollPos.d.ts +13 -0
- package/dist/types/containers/Feed/hooks/useScrollOnInputOpen.d.ts +8 -0
- package/dist/types/containers/Feed/hooks/useScrollToHighlighted.d.ts +10 -0
- package/dist/types/containers/Feed/hooks/useTableKeyboardNavigation.d.ts +22 -0
- package/dist/types/containers/Feed/hooks/useTransformActivities.d.ts +4 -0
- package/dist/types/containers/Feed/index.d.ts +7 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionOptions.d.ts +2 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionTasks.d.ts +10 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionUsers.d.ts +8 -0
- package/dist/types/containers/Feed/mentionHelpers/getMentionVersions.d.ts +12 -0
- package/dist/types/containers/ProjectTreeTable/ProjectTreeTable.d.ts +15 -0
- package/dist/types/containers/ProjectTreeTable/ProjectTreeTable.styled.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/ProjectTreeTableColumns.d.ts +16 -0
- package/dist/types/containers/ProjectTreeTable/components/HeaderActionButton.d.ts +6 -0
- package/dist/types/containers/ProjectTreeTable/components/RowSelectionHeader.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/components/SelectionCell.d.ts +5 -0
- package/dist/types/containers/ProjectTreeTable/context/CellEditingContext.d.ts +18 -0
- package/dist/types/containers/ProjectTreeTable/context/ClipboardContext.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +30 -0
- package/dist/types/containers/ProjectTreeTable/context/ProjectTableContext.d.ts +76 -0
- package/dist/types/containers/ProjectTreeTable/context/ProjectTableQueriesContext.d.ts +21 -0
- package/dist/types/containers/ProjectTreeTable/context/SelectedRowsContext.d.ts +15 -0
- package/dist/types/containers/ProjectTreeTable/context/SelectionContext.d.ts +35 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardTypes.d.ts +27 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardUtils.d.ts +6 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardValidation.d.ts +12 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/index.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/context/index.d.ts +8 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useCellContextMenu.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useColumnVirtualization.d.ts +17 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useCustomColumnWidthVars.d.ts +6 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useDeleteEntities.d.ts +5 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useFolderRelationships.d.ts +29 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useHistory.d.ts +17 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useKeyboardNavigation.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useOverviewTable.d.ts +32 -0
- package/dist/types/containers/ProjectTreeTable/hooks/usePrefetchFolderTasks.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useUpdateOverview.d.ts +30 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useValidateUpdates.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/index.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/types/folders.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/types/index.d.ts +62 -0
- package/dist/types/containers/ProjectTreeTable/types/operations.d.ts +99 -0
- package/dist/types/containers/ProjectTreeTable/types/project.d.ts +223 -0
- package/dist/types/containers/ProjectTreeTable/types/table.d.ts +83 -0
- package/dist/types/containers/ProjectTreeTable/utils/cellUtils.d.ts +42 -0
- package/dist/types/containers/ProjectTreeTable/utils/clientFilterToQueryFilter.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/utils/index.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/utils/loadingUtils.d.ts +36 -0
- package/dist/types/containers/ProjectTreeTable/widgets/BooleanWidget.d.ts +7 -0
- package/dist/types/containers/ProjectTreeTable/widgets/CellWidget.d.ts +24 -0
- package/dist/types/containers/ProjectTreeTable/widgets/CollapsedWidget.d.ts +5 -0
- package/dist/types/containers/ProjectTreeTable/widgets/DateWidget.d.ts +8 -0
- package/dist/types/containers/ProjectTreeTable/widgets/DateWidgetInput.d.ts +8 -0
- package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +14 -0
- package/dist/types/containers/ProjectTreeTable/widgets/EnumWidget.d.ts +28 -0
- package/dist/types/containers/ProjectTreeTable/widgets/TextWidget.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/widgets/TextWidgetInput.d.ts +9 -0
- package/dist/types/containers/ProjectTreeTable/widgets/index.d.ts +7 -0
- package/dist/types/containers/Slicer/createFilterFromSlicer.d.ts +6 -0
- package/dist/types/containers/Slicer/index.d.ts +2 -0
- package/dist/types/containers/Slicer/types.d.ts +18 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useLocalStorage.d.ts +1 -0
- package/dist/types/hooks.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/util/confirmDelete.d.ts +13 -0
- package/dist/types/util/getEntityTypeIcon.d.ts +1 -0
- package/dist/types/util/index.d.ts +5 -0
- package/dist/types/util/platform.d.ts +8 -0
- package/dist/types/util/productTypes.d.ts +8 -0
- package/dist/types/util.d.ts +1 -0
- package/dist/useCreateContextMenu-CDRv1ybg.js +2 -0
- package/dist/useCreateContextMenu-CDRv1ybg.js.map +1 -0
- package/dist/useCreateContextMenu-DvOhPycB.mjs +118 -0
- package/dist/useCreateContextMenu-DvOhPycB.mjs.map +1 -0
- package/dist/useLocalStorage-BQSzWJ4Q.mjs +39 -0
- package/dist/useLocalStorage-BQSzWJ4Q.mjs.map +1 -0
- package/dist/useLocalStorage-BRHTBlxR.js +2 -0
- package/dist/useLocalStorage-BRHTBlxR.js.map +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,3101 @@
|
|
|
1
|
+
import * as A from "react";
|
|
2
|
+
import X from "react";
|
|
3
|
+
import re from "react-dom";
|
|
4
|
+
var xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
+
function Tt(r) {
|
|
6
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
7
|
+
}
|
|
8
|
+
function Sr(r) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
10
|
+
var n = r.default;
|
|
11
|
+
if (typeof n == "function") {
|
|
12
|
+
var e = function t() {
|
|
13
|
+
return this instanceof t ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
|
|
14
|
+
};
|
|
15
|
+
e.prototype = n.prototype;
|
|
16
|
+
} else e = {};
|
|
17
|
+
return Object.defineProperty(e, "__esModule", { value: !0 }), Object.keys(r).forEach(function(t) {
|
|
18
|
+
var o = Object.getOwnPropertyDescriptor(r, t);
|
|
19
|
+
Object.defineProperty(e, t, o.get ? o : {
|
|
20
|
+
enumerable: !0,
|
|
21
|
+
get: function() {
|
|
22
|
+
return r[t];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}), e;
|
|
26
|
+
}
|
|
27
|
+
function xt(r) {
|
|
28
|
+
if (Array.isArray(r)) return r;
|
|
29
|
+
}
|
|
30
|
+
function St(r, n) {
|
|
31
|
+
var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
32
|
+
if (e != null) {
|
|
33
|
+
var t, o, i, s, a = [], u = !0, l = !1;
|
|
34
|
+
try {
|
|
35
|
+
if (i = (e = e.call(r)).next, n !== 0) for (; !(u = (t = i.call(e)).done) && (a.push(t.value), a.length !== n); u = !0) ;
|
|
36
|
+
} catch (f) {
|
|
37
|
+
l = !0, o = f;
|
|
38
|
+
} finally {
|
|
39
|
+
try {
|
|
40
|
+
if (!u && e.return != null && (s = e.return(), Object(s) !== s)) return;
|
|
41
|
+
} finally {
|
|
42
|
+
if (l) throw o;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return a;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function Le(r, n) {
|
|
49
|
+
(n == null || n > r.length) && (n = r.length);
|
|
50
|
+
for (var e = 0, t = new Array(n); e < n; e++) t[e] = r[e];
|
|
51
|
+
return t;
|
|
52
|
+
}
|
|
53
|
+
function dt(r, n) {
|
|
54
|
+
if (r) {
|
|
55
|
+
if (typeof r == "string") return Le(r, n);
|
|
56
|
+
var e = Object.prototype.toString.call(r).slice(8, -1);
|
|
57
|
+
if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set") return Array.from(r);
|
|
58
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Le(r, n);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function Ot() {
|
|
62
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
64
|
+
}
|
|
65
|
+
function wt(r, n) {
|
|
66
|
+
return xt(r) || St(r, n) || dt(r, n) || Ot();
|
|
67
|
+
}
|
|
68
|
+
function W(r) {
|
|
69
|
+
"@babel/helpers - typeof";
|
|
70
|
+
return W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
71
|
+
return typeof n;
|
|
72
|
+
} : function(n) {
|
|
73
|
+
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
74
|
+
}, W(r);
|
|
75
|
+
}
|
|
76
|
+
function Ct() {
|
|
77
|
+
for (var r = arguments.length, n = new Array(r), e = 0; e < r; e++)
|
|
78
|
+
n[e] = arguments[e];
|
|
79
|
+
if (n) {
|
|
80
|
+
for (var t = [], o = 0; o < n.length; o++) {
|
|
81
|
+
var i = n[o];
|
|
82
|
+
if (i) {
|
|
83
|
+
var s = W(i);
|
|
84
|
+
if (s === "string" || s === "number")
|
|
85
|
+
t.push(i);
|
|
86
|
+
else if (s === "object") {
|
|
87
|
+
var a = Array.isArray(i) ? i : Object.entries(i).map(function(u) {
|
|
88
|
+
var l = wt(u, 2), f = l[0], c = l[1];
|
|
89
|
+
return c ? f : null;
|
|
90
|
+
});
|
|
91
|
+
t = a.length ? t.concat(a.filter(function(u) {
|
|
92
|
+
return !!u;
|
|
93
|
+
})) : t;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return t.join(" ").trim();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function We(r, n) {
|
|
101
|
+
if (!(r instanceof n))
|
|
102
|
+
throw new TypeError("Cannot call a class as a function");
|
|
103
|
+
}
|
|
104
|
+
function Pt(r, n) {
|
|
105
|
+
if (W(r) !== "object" || r === null) return r;
|
|
106
|
+
var e = r[Symbol.toPrimitive];
|
|
107
|
+
if (e !== void 0) {
|
|
108
|
+
var t = e.call(r, n);
|
|
109
|
+
if (W(t) !== "object") return t;
|
|
110
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
111
|
+
}
|
|
112
|
+
return String(r);
|
|
113
|
+
}
|
|
114
|
+
function pt(r) {
|
|
115
|
+
var n = Pt(r, "string");
|
|
116
|
+
return W(n) === "symbol" ? n : String(n);
|
|
117
|
+
}
|
|
118
|
+
function At(r, n) {
|
|
119
|
+
for (var e = 0; e < n.length; e++) {
|
|
120
|
+
var t = n[e];
|
|
121
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(r, pt(t.key), t);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function He(r, n, e) {
|
|
125
|
+
return e && At(r, e), Object.defineProperty(r, "prototype", {
|
|
126
|
+
writable: !1
|
|
127
|
+
}), r;
|
|
128
|
+
}
|
|
129
|
+
function de(r, n, e) {
|
|
130
|
+
return n = pt(n), n in r ? Object.defineProperty(r, n, {
|
|
131
|
+
value: e,
|
|
132
|
+
enumerable: !0,
|
|
133
|
+
configurable: !0,
|
|
134
|
+
writable: !0
|
|
135
|
+
}) : r[n] = e, r;
|
|
136
|
+
}
|
|
137
|
+
function Oe(r, n) {
|
|
138
|
+
var e = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
139
|
+
if (!e) {
|
|
140
|
+
if (Array.isArray(r) || (e = Rt(r)) || n) {
|
|
141
|
+
e && (r = e);
|
|
142
|
+
var t = 0, o = function() {
|
|
143
|
+
};
|
|
144
|
+
return { s: o, n: function() {
|
|
145
|
+
return t >= r.length ? { done: !0 } : { done: !1, value: r[t++] };
|
|
146
|
+
}, e: function(l) {
|
|
147
|
+
throw l;
|
|
148
|
+
}, f: o };
|
|
149
|
+
}
|
|
150
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
151
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
152
|
+
}
|
|
153
|
+
var i = !0, s = !1, a;
|
|
154
|
+
return { s: function() {
|
|
155
|
+
e = e.call(r);
|
|
156
|
+
}, n: function() {
|
|
157
|
+
var l = e.next();
|
|
158
|
+
return i = l.done, l;
|
|
159
|
+
}, e: function(l) {
|
|
160
|
+
s = !0, a = l;
|
|
161
|
+
}, f: function() {
|
|
162
|
+
try {
|
|
163
|
+
!i && e.return != null && e.return();
|
|
164
|
+
} finally {
|
|
165
|
+
if (s) throw a;
|
|
166
|
+
}
|
|
167
|
+
} };
|
|
168
|
+
}
|
|
169
|
+
function Rt(r, n) {
|
|
170
|
+
if (r) {
|
|
171
|
+
if (typeof r == "string") return Ve(r, n);
|
|
172
|
+
var e = Object.prototype.toString.call(r).slice(8, -1);
|
|
173
|
+
if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set") return Array.from(r);
|
|
174
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Ve(r, n);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function Ve(r, n) {
|
|
178
|
+
(n == null || n > r.length) && (n = r.length);
|
|
179
|
+
for (var e = 0, t = new Array(n); e < n; e++) t[e] = r[e];
|
|
180
|
+
return t;
|
|
181
|
+
}
|
|
182
|
+
var F = /* @__PURE__ */ function() {
|
|
183
|
+
function r() {
|
|
184
|
+
We(this, r);
|
|
185
|
+
}
|
|
186
|
+
return He(r, null, [{
|
|
187
|
+
key: "innerWidth",
|
|
188
|
+
value: function(e) {
|
|
189
|
+
if (e) {
|
|
190
|
+
var t = e.offsetWidth, o = getComputedStyle(e);
|
|
191
|
+
return t += parseFloat(o.paddingLeft) + parseFloat(o.paddingRight), t;
|
|
192
|
+
}
|
|
193
|
+
return 0;
|
|
194
|
+
}
|
|
195
|
+
}, {
|
|
196
|
+
key: "width",
|
|
197
|
+
value: function(e) {
|
|
198
|
+
if (e) {
|
|
199
|
+
var t = e.offsetWidth, o = getComputedStyle(e);
|
|
200
|
+
return t -= parseFloat(o.paddingLeft) + parseFloat(o.paddingRight), t;
|
|
201
|
+
}
|
|
202
|
+
return 0;
|
|
203
|
+
}
|
|
204
|
+
}, {
|
|
205
|
+
key: "getBrowserLanguage",
|
|
206
|
+
value: function() {
|
|
207
|
+
return navigator.userLanguage || navigator.languages && navigator.languages.length && navigator.languages[0] || navigator.language || navigator.browserLanguage || navigator.systemLanguage || "en";
|
|
208
|
+
}
|
|
209
|
+
}, {
|
|
210
|
+
key: "getWindowScrollTop",
|
|
211
|
+
value: function() {
|
|
212
|
+
var e = document.documentElement;
|
|
213
|
+
return (window.pageYOffset || e.scrollTop) - (e.clientTop || 0);
|
|
214
|
+
}
|
|
215
|
+
}, {
|
|
216
|
+
key: "getWindowScrollLeft",
|
|
217
|
+
value: function() {
|
|
218
|
+
var e = document.documentElement;
|
|
219
|
+
return (window.pageXOffset || e.scrollLeft) - (e.clientLeft || 0);
|
|
220
|
+
}
|
|
221
|
+
}, {
|
|
222
|
+
key: "getOuterWidth",
|
|
223
|
+
value: function(e, t) {
|
|
224
|
+
if (e) {
|
|
225
|
+
var o = e.getBoundingClientRect().width || e.offsetWidth;
|
|
226
|
+
if (t) {
|
|
227
|
+
var i = getComputedStyle(e);
|
|
228
|
+
o += parseFloat(i.marginLeft) + parseFloat(i.marginRight);
|
|
229
|
+
}
|
|
230
|
+
return o;
|
|
231
|
+
}
|
|
232
|
+
return 0;
|
|
233
|
+
}
|
|
234
|
+
}, {
|
|
235
|
+
key: "getOuterHeight",
|
|
236
|
+
value: function(e, t) {
|
|
237
|
+
if (e) {
|
|
238
|
+
var o = e.getBoundingClientRect().height || e.offsetHeight;
|
|
239
|
+
if (t) {
|
|
240
|
+
var i = getComputedStyle(e);
|
|
241
|
+
o += parseFloat(i.marginTop) + parseFloat(i.marginBottom);
|
|
242
|
+
}
|
|
243
|
+
return o;
|
|
244
|
+
}
|
|
245
|
+
return 0;
|
|
246
|
+
}
|
|
247
|
+
}, {
|
|
248
|
+
key: "getClientHeight",
|
|
249
|
+
value: function(e, t) {
|
|
250
|
+
if (e) {
|
|
251
|
+
var o = e.clientHeight;
|
|
252
|
+
if (t) {
|
|
253
|
+
var i = getComputedStyle(e);
|
|
254
|
+
o += parseFloat(i.marginTop) + parseFloat(i.marginBottom);
|
|
255
|
+
}
|
|
256
|
+
return o;
|
|
257
|
+
}
|
|
258
|
+
return 0;
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
key: "getClientWidth",
|
|
262
|
+
value: function(e, t) {
|
|
263
|
+
if (e) {
|
|
264
|
+
var o = e.clientWidth;
|
|
265
|
+
if (t) {
|
|
266
|
+
var i = getComputedStyle(e);
|
|
267
|
+
o += parseFloat(i.marginLeft) + parseFloat(i.marginRight);
|
|
268
|
+
}
|
|
269
|
+
return o;
|
|
270
|
+
}
|
|
271
|
+
return 0;
|
|
272
|
+
}
|
|
273
|
+
}, {
|
|
274
|
+
key: "getViewport",
|
|
275
|
+
value: function() {
|
|
276
|
+
var e = window, t = document, o = t.documentElement, i = t.getElementsByTagName("body")[0], s = e.innerWidth || o.clientWidth || i.clientWidth, a = e.innerHeight || o.clientHeight || i.clientHeight;
|
|
277
|
+
return {
|
|
278
|
+
width: s,
|
|
279
|
+
height: a
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
}, {
|
|
283
|
+
key: "getOffset",
|
|
284
|
+
value: function(e) {
|
|
285
|
+
if (e) {
|
|
286
|
+
var t = e.getBoundingClientRect();
|
|
287
|
+
return {
|
|
288
|
+
top: t.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
|
|
289
|
+
left: t.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
return {
|
|
293
|
+
top: "auto",
|
|
294
|
+
left: "auto"
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
key: "index",
|
|
299
|
+
value: function(e) {
|
|
300
|
+
if (e)
|
|
301
|
+
for (var t = e.parentNode.childNodes, o = 0, i = 0; i < t.length; i++) {
|
|
302
|
+
if (t[i] === e) return o;
|
|
303
|
+
t[i].nodeType === 1 && o++;
|
|
304
|
+
}
|
|
305
|
+
return -1;
|
|
306
|
+
}
|
|
307
|
+
}, {
|
|
308
|
+
key: "addMultipleClasses",
|
|
309
|
+
value: function(e, t) {
|
|
310
|
+
if (e && t)
|
|
311
|
+
if (e.classList)
|
|
312
|
+
for (var o = t.split(" "), i = 0; i < o.length; i++)
|
|
313
|
+
e.classList.add(o[i]);
|
|
314
|
+
else
|
|
315
|
+
for (var s = t.split(" "), a = 0; a < s.length; a++)
|
|
316
|
+
e.className += " " + s[a];
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
key: "removeMultipleClasses",
|
|
320
|
+
value: function(e, t) {
|
|
321
|
+
if (e && t)
|
|
322
|
+
if (e.classList)
|
|
323
|
+
for (var o = t.split(" "), i = 0; i < o.length; i++)
|
|
324
|
+
e.classList.remove(o[i]);
|
|
325
|
+
else
|
|
326
|
+
for (var s = t.split(" "), a = 0; a < s.length; a++)
|
|
327
|
+
e.className = e.className.replace(new RegExp("(^|\\b)" + s[a].split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
key: "addClass",
|
|
331
|
+
value: function(e, t) {
|
|
332
|
+
e && t && (e.classList ? e.classList.add(t) : e.className += " " + t);
|
|
333
|
+
}
|
|
334
|
+
}, {
|
|
335
|
+
key: "removeClass",
|
|
336
|
+
value: function(e, t) {
|
|
337
|
+
e && t && (e.classList ? e.classList.remove(t) : e.className = e.className.replace(new RegExp("(^|\\b)" + t.split(" ").join("|") + "(\\b|$)", "gi"), " "));
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
key: "hasClass",
|
|
341
|
+
value: function(e, t) {
|
|
342
|
+
return e ? e.classList ? e.classList.contains(t) : new RegExp("(^| )" + t + "( |$)", "gi").test(e.className) : !1;
|
|
343
|
+
}
|
|
344
|
+
}, {
|
|
345
|
+
key: "find",
|
|
346
|
+
value: function(e, t) {
|
|
347
|
+
return e ? Array.from(e.querySelectorAll(t)) : [];
|
|
348
|
+
}
|
|
349
|
+
}, {
|
|
350
|
+
key: "findSingle",
|
|
351
|
+
value: function(e, t) {
|
|
352
|
+
return e ? e.querySelector(t) : null;
|
|
353
|
+
}
|
|
354
|
+
}, {
|
|
355
|
+
key: "getHeight",
|
|
356
|
+
value: function(e) {
|
|
357
|
+
if (e) {
|
|
358
|
+
var t = e.offsetHeight, o = getComputedStyle(e);
|
|
359
|
+
return t -= parseFloat(o.paddingTop) + parseFloat(o.paddingBottom) + parseFloat(o.borderTopWidth) + parseFloat(o.borderBottomWidth), t;
|
|
360
|
+
}
|
|
361
|
+
return 0;
|
|
362
|
+
}
|
|
363
|
+
}, {
|
|
364
|
+
key: "getWidth",
|
|
365
|
+
value: function(e) {
|
|
366
|
+
if (e) {
|
|
367
|
+
var t = e.offsetWidth, o = getComputedStyle(e);
|
|
368
|
+
return t -= parseFloat(o.paddingLeft) + parseFloat(o.paddingRight) + parseFloat(o.borderLeftWidth) + parseFloat(o.borderRightWidth), t;
|
|
369
|
+
}
|
|
370
|
+
return 0;
|
|
371
|
+
}
|
|
372
|
+
}, {
|
|
373
|
+
key: "alignOverlay",
|
|
374
|
+
value: function(e, t, o) {
|
|
375
|
+
var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0;
|
|
376
|
+
e && t && (o === "self" ? this.relativePosition(e, t) : (i && (e.style.minWidth = r.getOuterWidth(t) + "px"), this.absolutePosition(e, t)));
|
|
377
|
+
}
|
|
378
|
+
}, {
|
|
379
|
+
key: "absolutePosition",
|
|
380
|
+
value: function(e, t) {
|
|
381
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "left";
|
|
382
|
+
if (e && t) {
|
|
383
|
+
var i = e.offsetParent ? {
|
|
384
|
+
width: e.offsetWidth,
|
|
385
|
+
height: e.offsetHeight
|
|
386
|
+
} : this.getHiddenElementDimensions(e), s = i.height, a = i.width, u = t.offsetHeight, l = t.offsetWidth, f = t.getBoundingClientRect(), c = this.getWindowScrollTop(), v = this.getWindowScrollLeft(), p = this.getViewport(), E, g;
|
|
387
|
+
f.top + u + s > p.height ? (E = f.top + c - s, E < 0 && (E = c), e.style.transformOrigin = "bottom") : (E = u + f.top + c, e.style.transformOrigin = "top");
|
|
388
|
+
var T = f.left, b = o === "left" ? 0 : a - l;
|
|
389
|
+
T + l + a > p.width ? g = Math.max(0, T + v + l - a) : g = T - b + v, e.style.top = E + "px", e.style.left = g + "px";
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}, {
|
|
393
|
+
key: "relativePosition",
|
|
394
|
+
value: function(e, t) {
|
|
395
|
+
if (e && t) {
|
|
396
|
+
var o = e.offsetParent ? {
|
|
397
|
+
width: e.offsetWidth,
|
|
398
|
+
height: e.offsetHeight
|
|
399
|
+
} : this.getHiddenElementDimensions(e), i = t.offsetHeight, s = t.getBoundingClientRect(), a = this.getViewport(), u, l;
|
|
400
|
+
s.top + i + o.height > a.height ? (u = -1 * o.height, s.top + u < 0 && (u = -1 * s.top), e.style.transformOrigin = "bottom") : (u = i, e.style.transformOrigin = "top"), o.width > a.width ? l = s.left * -1 : s.left + o.width > a.width ? l = (s.left + o.width - a.width) * -1 : l = 0, e.style.top = u + "px", e.style.left = l + "px";
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}, {
|
|
404
|
+
key: "flipfitCollision",
|
|
405
|
+
value: function(e, t) {
|
|
406
|
+
var o = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "left top", s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "left bottom", a = arguments.length > 4 ? arguments[4] : void 0;
|
|
407
|
+
if (e && t) {
|
|
408
|
+
var u = t.getBoundingClientRect(), l = this.getViewport(), f = i.split(" "), c = s.split(" "), v = function(b, k) {
|
|
409
|
+
return k ? +b.substring(b.search(/(\+|-)/g)) || 0 : b.substring(0, b.search(/(\+|-)/g)) || b;
|
|
410
|
+
}, p = {
|
|
411
|
+
my: {
|
|
412
|
+
x: v(f[0]),
|
|
413
|
+
y: v(f[1] || f[0]),
|
|
414
|
+
offsetX: v(f[0], !0),
|
|
415
|
+
offsetY: v(f[1] || f[0], !0)
|
|
416
|
+
},
|
|
417
|
+
at: {
|
|
418
|
+
x: v(c[0]),
|
|
419
|
+
y: v(c[1] || c[0]),
|
|
420
|
+
offsetX: v(c[0], !0),
|
|
421
|
+
offsetY: v(c[1] || c[0], !0)
|
|
422
|
+
}
|
|
423
|
+
}, E = {
|
|
424
|
+
left: function() {
|
|
425
|
+
var b = p.my.offsetX + p.at.offsetX;
|
|
426
|
+
return b + u.left + (p.my.x === "left" ? 0 : -1 * (p.my.x === "center" ? o.getOuterWidth(e) / 2 : o.getOuterWidth(e)));
|
|
427
|
+
},
|
|
428
|
+
top: function() {
|
|
429
|
+
var b = p.my.offsetY + p.at.offsetY;
|
|
430
|
+
return b + u.top + (p.my.y === "top" ? 0 : -1 * (p.my.y === "center" ? o.getOuterHeight(e) / 2 : o.getOuterHeight(e)));
|
|
431
|
+
}
|
|
432
|
+
}, g = {
|
|
433
|
+
count: {
|
|
434
|
+
x: 0,
|
|
435
|
+
y: 0
|
|
436
|
+
},
|
|
437
|
+
left: function() {
|
|
438
|
+
var b = E.left(), k = r.getWindowScrollLeft();
|
|
439
|
+
e.style.left = b + k + "px", this.count.x === 2 ? (e.style.left = k + "px", this.count.x = 0) : b < 0 && (this.count.x++, p.my.x = "left", p.at.x = "right", p.my.offsetX *= -1, p.at.offsetX *= -1, this.right());
|
|
440
|
+
},
|
|
441
|
+
right: function() {
|
|
442
|
+
var b = E.left() + r.getOuterWidth(t), k = r.getWindowScrollLeft();
|
|
443
|
+
e.style.left = b + k + "px", this.count.x === 2 ? (e.style.left = l.width - r.getOuterWidth(e) + k + "px", this.count.x = 0) : b + r.getOuterWidth(e) > l.width && (this.count.x++, p.my.x = "right", p.at.x = "left", p.my.offsetX *= -1, p.at.offsetX *= -1, this.left());
|
|
444
|
+
},
|
|
445
|
+
top: function() {
|
|
446
|
+
var b = E.top(), k = r.getWindowScrollTop();
|
|
447
|
+
e.style.top = b + k + "px", this.count.y === 2 ? (e.style.left = k + "px", this.count.y = 0) : b < 0 && (this.count.y++, p.my.y = "top", p.at.y = "bottom", p.my.offsetY *= -1, p.at.offsetY *= -1, this.bottom());
|
|
448
|
+
},
|
|
449
|
+
bottom: function() {
|
|
450
|
+
var b = E.top() + r.getOuterHeight(t), k = r.getWindowScrollTop();
|
|
451
|
+
e.style.top = b + k + "px", this.count.y === 2 ? (e.style.left = l.height - r.getOuterHeight(e) + k + "px", this.count.y = 0) : b + r.getOuterHeight(t) > l.height && (this.count.y++, p.my.y = "bottom", p.at.y = "top", p.my.offsetY *= -1, p.at.offsetY *= -1, this.top());
|
|
452
|
+
},
|
|
453
|
+
center: function(b) {
|
|
454
|
+
if (b === "y") {
|
|
455
|
+
var k = E.top() + r.getOuterHeight(t) / 2;
|
|
456
|
+
e.style.top = k + r.getWindowScrollTop() + "px", k < 0 ? this.bottom() : k + r.getOuterHeight(t) > l.height && this.top();
|
|
457
|
+
} else {
|
|
458
|
+
var I = E.left() + r.getOuterWidth(t) / 2;
|
|
459
|
+
e.style.left = I + r.getWindowScrollLeft() + "px", I < 0 ? this.left() : I + r.getOuterWidth(e) > l.width && this.right();
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
g[p.at.x]("x"), g[p.at.y]("y"), this.isFunction(a) && a(p);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}, {
|
|
467
|
+
key: "findCollisionPosition",
|
|
468
|
+
value: function(e) {
|
|
469
|
+
if (e) {
|
|
470
|
+
var t = e === "top" || e === "bottom", o = e === "left" ? "right" : "left", i = e === "top" ? "bottom" : "top";
|
|
471
|
+
return t ? {
|
|
472
|
+
axis: "y",
|
|
473
|
+
my: "center ".concat(i),
|
|
474
|
+
at: "center ".concat(e)
|
|
475
|
+
} : {
|
|
476
|
+
axis: "x",
|
|
477
|
+
my: "".concat(o, " center"),
|
|
478
|
+
at: "".concat(e, " center")
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}, {
|
|
483
|
+
key: "getParents",
|
|
484
|
+
value: function(e) {
|
|
485
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
486
|
+
return e.parentNode === null ? t : this.getParents(e.parentNode, t.concat([e.parentNode]));
|
|
487
|
+
}
|
|
488
|
+
}, {
|
|
489
|
+
key: "getScrollableParents",
|
|
490
|
+
value: function(e) {
|
|
491
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, o = [];
|
|
492
|
+
if (e) {
|
|
493
|
+
var i = this.getParents(e), s = /(auto|scroll)/, a = function(I) {
|
|
494
|
+
var j = I ? getComputedStyle(I) : null;
|
|
495
|
+
return j && (s.test(j.getPropertyValue("overflow")) || s.test(j.getPropertyValue("overflowX")) || s.test(j.getPropertyValue("overflowY")));
|
|
496
|
+
}, u = function(I) {
|
|
497
|
+
t ? o.push(I.nodeName === "BODY" || I.nodeName === "HTML" || I.nodeType === 9 ? window : I) : o.push(I);
|
|
498
|
+
}, l = Oe(i), f;
|
|
499
|
+
try {
|
|
500
|
+
for (l.s(); !(f = l.n()).done; ) {
|
|
501
|
+
var c = f.value, v = c.nodeType === 1 && c.dataset.scrollselectors;
|
|
502
|
+
if (v) {
|
|
503
|
+
var p = v.split(","), E = Oe(p), g;
|
|
504
|
+
try {
|
|
505
|
+
for (E.s(); !(g = E.n()).done; ) {
|
|
506
|
+
var T = g.value, b = this.findSingle(c, T);
|
|
507
|
+
b && a(b) && u(b);
|
|
508
|
+
}
|
|
509
|
+
} catch (k) {
|
|
510
|
+
E.e(k);
|
|
511
|
+
} finally {
|
|
512
|
+
E.f();
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
c.nodeType === 1 && a(c) && u(c);
|
|
516
|
+
}
|
|
517
|
+
} catch (k) {
|
|
518
|
+
l.e(k);
|
|
519
|
+
} finally {
|
|
520
|
+
l.f();
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
return o.length === 0 && o.push(window), o;
|
|
524
|
+
}
|
|
525
|
+
}, {
|
|
526
|
+
key: "getHiddenElementOuterHeight",
|
|
527
|
+
value: function(e) {
|
|
528
|
+
if (e) {
|
|
529
|
+
e.style.visibility = "hidden", e.style.display = "block";
|
|
530
|
+
var t = e.offsetHeight;
|
|
531
|
+
return e.style.display = "none", e.style.visibility = "visible", t;
|
|
532
|
+
}
|
|
533
|
+
return 0;
|
|
534
|
+
}
|
|
535
|
+
}, {
|
|
536
|
+
key: "getHiddenElementOuterWidth",
|
|
537
|
+
value: function(e) {
|
|
538
|
+
if (e) {
|
|
539
|
+
e.style.visibility = "hidden", e.style.display = "block";
|
|
540
|
+
var t = e.offsetWidth;
|
|
541
|
+
return e.style.display = "none", e.style.visibility = "visible", t;
|
|
542
|
+
}
|
|
543
|
+
return 0;
|
|
544
|
+
}
|
|
545
|
+
}, {
|
|
546
|
+
key: "getHiddenElementDimensions",
|
|
547
|
+
value: function(e) {
|
|
548
|
+
var t = {};
|
|
549
|
+
return e && (e.style.visibility = "hidden", e.style.display = "block", t.width = e.offsetWidth, t.height = e.offsetHeight, e.style.display = "none", e.style.visibility = "visible"), t;
|
|
550
|
+
}
|
|
551
|
+
}, {
|
|
552
|
+
key: "fadeIn",
|
|
553
|
+
value: function(e, t) {
|
|
554
|
+
if (e) {
|
|
555
|
+
e.style.opacity = 0;
|
|
556
|
+
var o = +/* @__PURE__ */ new Date(), i = 0, s = function a() {
|
|
557
|
+
i = +e.style.opacity + ((/* @__PURE__ */ new Date()).getTime() - o) / t, e.style.opacity = i, o = +/* @__PURE__ */ new Date(), +i < 1 && (window.requestAnimationFrame && requestAnimationFrame(a) || setTimeout(a, 16));
|
|
558
|
+
};
|
|
559
|
+
s();
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}, {
|
|
563
|
+
key: "fadeOut",
|
|
564
|
+
value: function(e, t) {
|
|
565
|
+
if (e)
|
|
566
|
+
var o = 1, i = 50, s = i / t, a = setInterval(function() {
|
|
567
|
+
o -= s, o <= 0 && (o = 0, clearInterval(a)), e.style.opacity = o;
|
|
568
|
+
}, i);
|
|
569
|
+
}
|
|
570
|
+
}, {
|
|
571
|
+
key: "getUserAgent",
|
|
572
|
+
value: function() {
|
|
573
|
+
return navigator.userAgent;
|
|
574
|
+
}
|
|
575
|
+
}, {
|
|
576
|
+
key: "isIOS",
|
|
577
|
+
value: function() {
|
|
578
|
+
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
579
|
+
}
|
|
580
|
+
}, {
|
|
581
|
+
key: "isAndroid",
|
|
582
|
+
value: function() {
|
|
583
|
+
return /(android)/i.test(navigator.userAgent);
|
|
584
|
+
}
|
|
585
|
+
}, {
|
|
586
|
+
key: "isChrome",
|
|
587
|
+
value: function() {
|
|
588
|
+
return /(chrome)/i.test(navigator.userAgent);
|
|
589
|
+
}
|
|
590
|
+
}, {
|
|
591
|
+
key: "isTouchDevice",
|
|
592
|
+
value: function() {
|
|
593
|
+
return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
594
|
+
}
|
|
595
|
+
}, {
|
|
596
|
+
key: "isFunction",
|
|
597
|
+
value: function(e) {
|
|
598
|
+
return !!(e && e.constructor && e.call && e.apply);
|
|
599
|
+
}
|
|
600
|
+
}, {
|
|
601
|
+
key: "appendChild",
|
|
602
|
+
value: function(e, t) {
|
|
603
|
+
if (this.isElement(t)) t.appendChild(e);
|
|
604
|
+
else if (t.el && t.el.nativeElement) t.el.nativeElement.appendChild(e);
|
|
605
|
+
else throw new Error("Cannot append " + t + " to " + e);
|
|
606
|
+
}
|
|
607
|
+
}, {
|
|
608
|
+
key: "removeChild",
|
|
609
|
+
value: function(e, t) {
|
|
610
|
+
if (this.isElement(t)) t.removeChild(e);
|
|
611
|
+
else if (t.el && t.el.nativeElement) t.el.nativeElement.removeChild(e);
|
|
612
|
+
else throw new Error("Cannot remove " + e + " from " + t);
|
|
613
|
+
}
|
|
614
|
+
}, {
|
|
615
|
+
key: "isElement",
|
|
616
|
+
value: function(e) {
|
|
617
|
+
return (typeof HTMLElement > "u" ? "undefined" : W(HTMLElement)) === "object" ? e instanceof HTMLElement : e && W(e) === "object" && e !== null && e.nodeType === 1 && typeof e.nodeName == "string";
|
|
618
|
+
}
|
|
619
|
+
}, {
|
|
620
|
+
key: "scrollInView",
|
|
621
|
+
value: function(e, t) {
|
|
622
|
+
var o = getComputedStyle(e).getPropertyValue("borderTopWidth"), i = o ? parseFloat(o) : 0, s = getComputedStyle(e).getPropertyValue("paddingTop"), a = s ? parseFloat(s) : 0, u = e.getBoundingClientRect(), l = t.getBoundingClientRect(), f = l.top + document.body.scrollTop - (u.top + document.body.scrollTop) - i - a, c = e.scrollTop, v = e.clientHeight, p = this.getOuterHeight(t);
|
|
623
|
+
f < 0 ? e.scrollTop = c + f : f + p > v && (e.scrollTop = c + f - v + p);
|
|
624
|
+
}
|
|
625
|
+
}, {
|
|
626
|
+
key: "clearSelection",
|
|
627
|
+
value: function() {
|
|
628
|
+
if (window.getSelection)
|
|
629
|
+
window.getSelection().empty ? window.getSelection().empty() : window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0 && window.getSelection().removeAllRanges();
|
|
630
|
+
else if (document.selection && document.selection.empty)
|
|
631
|
+
try {
|
|
632
|
+
document.selection.empty();
|
|
633
|
+
} catch {
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}, {
|
|
637
|
+
key: "calculateScrollbarWidth",
|
|
638
|
+
value: function(e) {
|
|
639
|
+
if (e) {
|
|
640
|
+
var t = getComputedStyle(e);
|
|
641
|
+
return e.offsetWidth - e.clientWidth - parseFloat(t.borderLeftWidth) - parseFloat(t.borderRightWidth);
|
|
642
|
+
} else {
|
|
643
|
+
if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
|
|
644
|
+
var o = document.createElement("div");
|
|
645
|
+
o.className = "p-scrollbar-measure", document.body.appendChild(o);
|
|
646
|
+
var i = o.offsetWidth - o.clientWidth;
|
|
647
|
+
return document.body.removeChild(o), this.calculatedScrollbarWidth = i, i;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}, {
|
|
651
|
+
key: "getBrowser",
|
|
652
|
+
value: function() {
|
|
653
|
+
if (!this.browser) {
|
|
654
|
+
var e = this.resolveUserAgent();
|
|
655
|
+
this.browser = {}, e.browser && (this.browser[e.browser] = !0, this.browser.version = e.version), this.browser.chrome ? this.browser.webkit = !0 : this.browser.webkit && (this.browser.safari = !0);
|
|
656
|
+
}
|
|
657
|
+
return this.browser;
|
|
658
|
+
}
|
|
659
|
+
}, {
|
|
660
|
+
key: "resolveUserAgent",
|
|
661
|
+
value: function() {
|
|
662
|
+
var e = navigator.userAgent.toLowerCase(), t = /(chrome)[ ]([\w.]+)/.exec(e) || /(webkit)[ ]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e) || [];
|
|
663
|
+
return {
|
|
664
|
+
browser: t[1] || "",
|
|
665
|
+
version: t[2] || "0"
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
}, {
|
|
669
|
+
key: "isVisible",
|
|
670
|
+
value: function(e) {
|
|
671
|
+
return e && (e.clientHeight !== 0 || e.getClientRects().length !== 0 || getComputedStyle(e).display !== "none");
|
|
672
|
+
}
|
|
673
|
+
}, {
|
|
674
|
+
key: "isExist",
|
|
675
|
+
value: function(e) {
|
|
676
|
+
return !!(e !== null && typeof e < "u" && e.nodeName && e.parentNode);
|
|
677
|
+
}
|
|
678
|
+
}, {
|
|
679
|
+
key: "hasDOM",
|
|
680
|
+
value: function() {
|
|
681
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
682
|
+
}
|
|
683
|
+
}, {
|
|
684
|
+
key: "getFocusableElements",
|
|
685
|
+
value: function(e) {
|
|
686
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = r.find(e, 'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(t, `,
|
|
687
|
+
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(t, `,
|
|
688
|
+
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(t, `,
|
|
689
|
+
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(t, `,
|
|
690
|
+
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(t, `,
|
|
691
|
+
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(t, `,
|
|
692
|
+
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(t)), i = [], s = Oe(o), a;
|
|
693
|
+
try {
|
|
694
|
+
for (s.s(); !(a = s.n()).done; ) {
|
|
695
|
+
var u = a.value;
|
|
696
|
+
getComputedStyle(u).display !== "none" && getComputedStyle(u).visibility !== "hidden" && i.push(u);
|
|
697
|
+
}
|
|
698
|
+
} catch (l) {
|
|
699
|
+
s.e(l);
|
|
700
|
+
} finally {
|
|
701
|
+
s.f();
|
|
702
|
+
}
|
|
703
|
+
return i;
|
|
704
|
+
}
|
|
705
|
+
}, {
|
|
706
|
+
key: "getFirstFocusableElement",
|
|
707
|
+
value: function(e, t) {
|
|
708
|
+
var o = r.getFocusableElements(e, t);
|
|
709
|
+
return o.length > 0 ? o[0] : null;
|
|
710
|
+
}
|
|
711
|
+
}, {
|
|
712
|
+
key: "getLastFocusableElement",
|
|
713
|
+
value: function(e, t) {
|
|
714
|
+
var o = r.getFocusableElements(e, t);
|
|
715
|
+
return o.length > 0 ? o[o.length - 1] : null;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Focus an input element if it does not already have focus.
|
|
719
|
+
*
|
|
720
|
+
* @param {HTMLElement} el a HTML element
|
|
721
|
+
* @param {boolean} scrollTo flag to control whether to scroll to the element, false by default
|
|
722
|
+
*/
|
|
723
|
+
}, {
|
|
724
|
+
key: "focus",
|
|
725
|
+
value: function(e, t) {
|
|
726
|
+
var o = t === void 0 ? !0 : !t;
|
|
727
|
+
e && document.activeElement !== e && e.focus({
|
|
728
|
+
preventScroll: o
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Focus the first focusable element if it does not already have focus.
|
|
733
|
+
*
|
|
734
|
+
* @param {HTMLElement} el a HTML element
|
|
735
|
+
* @param {boolean} scrollTo flag to control whether to scroll to the element, false by default
|
|
736
|
+
* @return {HTMLElement | undefined} the first focusable HTML element found
|
|
737
|
+
*/
|
|
738
|
+
}, {
|
|
739
|
+
key: "focusFirstElement",
|
|
740
|
+
value: function(e, t) {
|
|
741
|
+
if (e) {
|
|
742
|
+
var o = r.getFirstFocusableElement(e);
|
|
743
|
+
return o && r.focus(o, t), o;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}, {
|
|
747
|
+
key: "getCursorOffset",
|
|
748
|
+
value: function(e, t, o, i) {
|
|
749
|
+
if (e) {
|
|
750
|
+
var s = getComputedStyle(e), a = document.createElement("div");
|
|
751
|
+
a.style.position = "absolute", a.style.top = "0px", a.style.left = "0px", a.style.visibility = "hidden", a.style.pointerEvents = "none", a.style.overflow = s.overflow, a.style.width = s.width, a.style.height = s.height, a.style.padding = s.padding, a.style.border = s.border, a.style.overflowWrap = s.overflowWrap, a.style.whiteSpace = s.whiteSpace, a.style.lineHeight = s.lineHeight, a.innerHTML = t.replace(/\r\n|\r|\n/g, "<br />");
|
|
752
|
+
var u = document.createElement("span");
|
|
753
|
+
u.textContent = i, a.appendChild(u);
|
|
754
|
+
var l = document.createTextNode(o);
|
|
755
|
+
a.appendChild(l), document.body.appendChild(a);
|
|
756
|
+
var f = u.offsetLeft, c = u.offsetTop, v = u.clientHeight;
|
|
757
|
+
return document.body.removeChild(a), {
|
|
758
|
+
left: Math.abs(f - e.scrollLeft),
|
|
759
|
+
top: Math.abs(c - e.scrollTop) + v
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
return {
|
|
763
|
+
top: "auto",
|
|
764
|
+
left: "auto"
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
}, {
|
|
768
|
+
key: "invokeElementMethod",
|
|
769
|
+
value: function(e, t, o) {
|
|
770
|
+
e[t].apply(e, o);
|
|
771
|
+
}
|
|
772
|
+
}, {
|
|
773
|
+
key: "isClickable",
|
|
774
|
+
value: function(e) {
|
|
775
|
+
var t = e.nodeName, o = e.parentElement && e.parentElement.nodeName;
|
|
776
|
+
return t === "INPUT" || t === "TEXTAREA" || t === "BUTTON" || t === "A" || o === "INPUT" || o === "TEXTAREA" || o === "BUTTON" || o === "A" || this.hasClass(e, "p-button") || this.hasClass(e.parentElement, "p-button") || this.hasClass(e.parentElement, "p-checkbox") || this.hasClass(e.parentElement, "p-radiobutton");
|
|
777
|
+
}
|
|
778
|
+
}, {
|
|
779
|
+
key: "applyStyle",
|
|
780
|
+
value: function(e, t) {
|
|
781
|
+
if (typeof t == "string")
|
|
782
|
+
e.style.cssText = this.style;
|
|
783
|
+
else
|
|
784
|
+
for (var o in this.style)
|
|
785
|
+
e.style[o] = t[o];
|
|
786
|
+
}
|
|
787
|
+
}, {
|
|
788
|
+
key: "exportCSV",
|
|
789
|
+
value: function(e, t) {
|
|
790
|
+
var o = new Blob([e], {
|
|
791
|
+
type: "application/csv;charset=utf-8;"
|
|
792
|
+
});
|
|
793
|
+
if (window.navigator.msSaveOrOpenBlob)
|
|
794
|
+
navigator.msSaveOrOpenBlob(o, t + ".csv");
|
|
795
|
+
else {
|
|
796
|
+
var i = r.saveAs({
|
|
797
|
+
name: t + ".csv",
|
|
798
|
+
src: URL.createObjectURL(o)
|
|
799
|
+
});
|
|
800
|
+
i || (e = "data:text/csv;charset=utf-8," + e, window.open(encodeURI(e)));
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}, {
|
|
804
|
+
key: "saveAs",
|
|
805
|
+
value: function(e) {
|
|
806
|
+
if (e) {
|
|
807
|
+
var t = document.createElement("a");
|
|
808
|
+
if (t.download !== void 0) {
|
|
809
|
+
var o = e.name, i = e.src;
|
|
810
|
+
return t.setAttribute("href", i), t.setAttribute("download", o), t.style.display = "none", document.body.appendChild(t), t.click(), document.body.removeChild(t), !0;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return !1;
|
|
814
|
+
}
|
|
815
|
+
}, {
|
|
816
|
+
key: "createInlineStyle",
|
|
817
|
+
value: function(e) {
|
|
818
|
+
var t = document.createElement("style");
|
|
819
|
+
try {
|
|
820
|
+
e || (e = process.env.REACT_APP_CSS_NONCE);
|
|
821
|
+
} catch {
|
|
822
|
+
}
|
|
823
|
+
return e && t.setAttribute("nonce", e), document.head.appendChild(t), t;
|
|
824
|
+
}
|
|
825
|
+
}, {
|
|
826
|
+
key: "removeInlineStyle",
|
|
827
|
+
value: function(e) {
|
|
828
|
+
if (this.isExist(e)) {
|
|
829
|
+
try {
|
|
830
|
+
document.head.removeChild(e);
|
|
831
|
+
} catch {
|
|
832
|
+
}
|
|
833
|
+
e = null;
|
|
834
|
+
}
|
|
835
|
+
return e;
|
|
836
|
+
}
|
|
837
|
+
}, {
|
|
838
|
+
key: "getTargetElement",
|
|
839
|
+
value: function(e) {
|
|
840
|
+
if (!e) return null;
|
|
841
|
+
if (e === "document")
|
|
842
|
+
return document;
|
|
843
|
+
if (e === "window")
|
|
844
|
+
return window;
|
|
845
|
+
if (W(e) === "object" && e.hasOwnProperty("current"))
|
|
846
|
+
return this.isExist(e.current) ? e.current : null;
|
|
847
|
+
var t = function(s) {
|
|
848
|
+
return !!(s && s.constructor && s.call && s.apply);
|
|
849
|
+
}, o = t(e) ? e() : e;
|
|
850
|
+
return o && o.nodeType === 9 || this.isExist(o) ? o : null;
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* Get the attribute names for an element and sorts them alpha for comparison
|
|
854
|
+
*/
|
|
855
|
+
}, {
|
|
856
|
+
key: "getAttributeNames",
|
|
857
|
+
value: function(e) {
|
|
858
|
+
var t, o, i;
|
|
859
|
+
for (o = [], i = e.attributes, t = 0; t < i.length; ++t)
|
|
860
|
+
o.push(i[t].nodeName);
|
|
861
|
+
return o.sort(), o;
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Compare two elements for equality. Even will compare if the style element
|
|
865
|
+
* is out of order for example:
|
|
866
|
+
*
|
|
867
|
+
* elem1 = style="color: red; font-size: 28px"
|
|
868
|
+
* elem2 = style="font-size: 28px; color: red"
|
|
869
|
+
*/
|
|
870
|
+
}, {
|
|
871
|
+
key: "isEqualElement",
|
|
872
|
+
value: function(e, t) {
|
|
873
|
+
var o, i, s, a, u;
|
|
874
|
+
if (o = r.getAttributeNames(e), i = r.getAttributeNames(t), o.join(",") !== i.join(","))
|
|
875
|
+
return !1;
|
|
876
|
+
for (var l = 0; l < o.length; ++l)
|
|
877
|
+
if (s = o[l], s === "style")
|
|
878
|
+
for (var f = e.style, c = t.style, v = /^\d+$/, p = 0, E = Object.keys(f); p < E.length; p++) {
|
|
879
|
+
var g = E[p];
|
|
880
|
+
if (!v.test(g) && f[g] !== c[g])
|
|
881
|
+
return !1;
|
|
882
|
+
}
|
|
883
|
+
else if (e.getAttribute(s) !== t.getAttribute(s))
|
|
884
|
+
return !1;
|
|
885
|
+
for (a = e.firstChild, u = t.firstChild; a && u; a = a.nextSibling, u = u.nextSibling) {
|
|
886
|
+
if (a.nodeType !== u.nodeType)
|
|
887
|
+
return !1;
|
|
888
|
+
if (a.nodeType === 1) {
|
|
889
|
+
if (!r.isEqualElement(a, u))
|
|
890
|
+
return !1;
|
|
891
|
+
} else if (a.nodeValue !== u.nodeValue)
|
|
892
|
+
return !1;
|
|
893
|
+
}
|
|
894
|
+
return !(a || u);
|
|
895
|
+
}
|
|
896
|
+
}]), r;
|
|
897
|
+
}();
|
|
898
|
+
de(F, "DATA_PROPS", ["data-"]);
|
|
899
|
+
de(F, "ARIA_PROPS", ["aria", "focus-target"]);
|
|
900
|
+
function Or() {
|
|
901
|
+
var r = /* @__PURE__ */ new Map();
|
|
902
|
+
return {
|
|
903
|
+
on: function(e, t) {
|
|
904
|
+
var o = r.get(e);
|
|
905
|
+
o ? o.push(t) : o = [t], r.set(e, o);
|
|
906
|
+
},
|
|
907
|
+
off: function(e, t) {
|
|
908
|
+
var o = r.get(e);
|
|
909
|
+
o && o.splice(o.indexOf(t) >>> 0, 1);
|
|
910
|
+
},
|
|
911
|
+
emit: function(e, t) {
|
|
912
|
+
var o = r.get(e);
|
|
913
|
+
o && o.slice().forEach(function(i) {
|
|
914
|
+
return i(t);
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
function Me() {
|
|
920
|
+
return Me = Object.assign ? Object.assign.bind() : function(r) {
|
|
921
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
922
|
+
var e = arguments[n];
|
|
923
|
+
for (var t in e)
|
|
924
|
+
Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
925
|
+
}
|
|
926
|
+
return r;
|
|
927
|
+
}, Me.apply(this, arguments);
|
|
928
|
+
}
|
|
929
|
+
var z = /* @__PURE__ */ function() {
|
|
930
|
+
function r() {
|
|
931
|
+
We(this, r);
|
|
932
|
+
}
|
|
933
|
+
return He(r, null, [{
|
|
934
|
+
key: "equals",
|
|
935
|
+
value: function(e, t, o) {
|
|
936
|
+
return o && e && W(e) === "object" && t && W(t) === "object" ? this.resolveFieldData(e, o) === this.resolveFieldData(t, o) : this.deepEquals(e, t);
|
|
937
|
+
}
|
|
938
|
+
}, {
|
|
939
|
+
key: "deepEquals",
|
|
940
|
+
value: function(e, t) {
|
|
941
|
+
if (e === t) return !0;
|
|
942
|
+
if (e && t && W(e) == "object" && W(t) == "object") {
|
|
943
|
+
var o = Array.isArray(e), i = Array.isArray(t), s, a, u;
|
|
944
|
+
if (o && i) {
|
|
945
|
+
if (a = e.length, a !== t.length) return !1;
|
|
946
|
+
for (s = a; s-- !== 0; ) if (!this.deepEquals(e[s], t[s])) return !1;
|
|
947
|
+
return !0;
|
|
948
|
+
}
|
|
949
|
+
if (o !== i) return !1;
|
|
950
|
+
var l = e instanceof Date, f = t instanceof Date;
|
|
951
|
+
if (l !== f) return !1;
|
|
952
|
+
if (l && f) return e.getTime() === t.getTime();
|
|
953
|
+
var c = e instanceof RegExp, v = t instanceof RegExp;
|
|
954
|
+
if (c !== v) return !1;
|
|
955
|
+
if (c && v) return e.toString() === t.toString();
|
|
956
|
+
var p = Object.keys(e);
|
|
957
|
+
if (a = p.length, a !== Object.keys(t).length) return !1;
|
|
958
|
+
for (s = a; s-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t, p[s])) return !1;
|
|
959
|
+
for (s = a; s-- !== 0; )
|
|
960
|
+
if (u = p[s], !this.deepEquals(e[u], t[u])) return !1;
|
|
961
|
+
return !0;
|
|
962
|
+
}
|
|
963
|
+
return e !== e && t !== t;
|
|
964
|
+
}
|
|
965
|
+
}, {
|
|
966
|
+
key: "resolveFieldData",
|
|
967
|
+
value: function(e, t) {
|
|
968
|
+
if (e && Object.keys(e).length && t) {
|
|
969
|
+
if (this.isFunction(t))
|
|
970
|
+
return t(e);
|
|
971
|
+
if (r.isNotEmpty(e[t]))
|
|
972
|
+
return e[t];
|
|
973
|
+
if (t.indexOf(".") === -1)
|
|
974
|
+
return e[t];
|
|
975
|
+
for (var o = t.split("."), i = e, s = 0, a = o.length; s < a; ++s) {
|
|
976
|
+
if (i == null)
|
|
977
|
+
return null;
|
|
978
|
+
i = i[o[s]];
|
|
979
|
+
}
|
|
980
|
+
return i;
|
|
981
|
+
} else
|
|
982
|
+
return null;
|
|
983
|
+
}
|
|
984
|
+
}, {
|
|
985
|
+
key: "isFunction",
|
|
986
|
+
value: function(e) {
|
|
987
|
+
return !!(e && e.constructor && e.call && e.apply);
|
|
988
|
+
}
|
|
989
|
+
}, {
|
|
990
|
+
key: "isObject",
|
|
991
|
+
value: function(e) {
|
|
992
|
+
return e !== null && e instanceof Object && e.constructor === Object;
|
|
993
|
+
}
|
|
994
|
+
}, {
|
|
995
|
+
key: "isLetter",
|
|
996
|
+
value: function(e) {
|
|
997
|
+
return e && (e.toUpperCase() != e.toLowerCase() || e.codePointAt(0) > 127);
|
|
998
|
+
}
|
|
999
|
+
}, {
|
|
1000
|
+
key: "findDiffKeys",
|
|
1001
|
+
value: function(e, t) {
|
|
1002
|
+
return !e || !t ? {} : Object.keys(e).filter(function(o) {
|
|
1003
|
+
return !t.hasOwnProperty(o);
|
|
1004
|
+
}).reduce(function(o, i) {
|
|
1005
|
+
return o[i] = e[i], o;
|
|
1006
|
+
}, {});
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Removes keys from a JSON object that start with a string such as "data" to get all "data-id" type properties.
|
|
1010
|
+
*
|
|
1011
|
+
* @param {any} obj the JSON object to reduce
|
|
1012
|
+
* @param {string[]} startsWiths the string(s) to check if the property starts with this key
|
|
1013
|
+
* @returns the JSON object containing only the key/values that match the startsWith string
|
|
1014
|
+
*/
|
|
1015
|
+
}, {
|
|
1016
|
+
key: "reduceKeys",
|
|
1017
|
+
value: function(e, t) {
|
|
1018
|
+
var o = {};
|
|
1019
|
+
return !e || !t || t.length === 0 || Object.keys(e).filter(function(i) {
|
|
1020
|
+
return t.some(function(s) {
|
|
1021
|
+
return i.startsWith(s);
|
|
1022
|
+
});
|
|
1023
|
+
}).forEach(function(i) {
|
|
1024
|
+
o[i] = e[i], delete e[i];
|
|
1025
|
+
}), o;
|
|
1026
|
+
}
|
|
1027
|
+
}, {
|
|
1028
|
+
key: "reorderArray",
|
|
1029
|
+
value: function(e, t, o) {
|
|
1030
|
+
e && t !== o && (o >= e.length && (o %= e.length, t %= e.length), e.splice(o, 0, e.splice(t, 1)[0]));
|
|
1031
|
+
}
|
|
1032
|
+
}, {
|
|
1033
|
+
key: "findIndexInList",
|
|
1034
|
+
value: function(e, t, o) {
|
|
1035
|
+
var i = this;
|
|
1036
|
+
return t ? o ? t.findIndex(function(s) {
|
|
1037
|
+
return i.equals(s, e, o);
|
|
1038
|
+
}) : t.findIndex(function(s) {
|
|
1039
|
+
return s === e;
|
|
1040
|
+
}) : -1;
|
|
1041
|
+
}
|
|
1042
|
+
}, {
|
|
1043
|
+
key: "getJSXElement",
|
|
1044
|
+
value: function(e) {
|
|
1045
|
+
for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1046
|
+
o[i - 1] = arguments[i];
|
|
1047
|
+
return this.isFunction(e) ? e.apply(void 0, o) : e;
|
|
1048
|
+
}
|
|
1049
|
+
}, {
|
|
1050
|
+
key: "getProp",
|
|
1051
|
+
value: function(e) {
|
|
1052
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = e ? e[t] : void 0;
|
|
1053
|
+
return i === void 0 ? o[t] : i;
|
|
1054
|
+
}
|
|
1055
|
+
}, {
|
|
1056
|
+
key: "getMergedProps",
|
|
1057
|
+
value: function(e, t) {
|
|
1058
|
+
return Object.assign({}, t, e);
|
|
1059
|
+
}
|
|
1060
|
+
}, {
|
|
1061
|
+
key: "getDiffProps",
|
|
1062
|
+
value: function(e, t) {
|
|
1063
|
+
return this.findDiffKeys(e, t);
|
|
1064
|
+
}
|
|
1065
|
+
}, {
|
|
1066
|
+
key: "getPropValue",
|
|
1067
|
+
value: function(e) {
|
|
1068
|
+
for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1069
|
+
o[i - 1] = arguments[i];
|
|
1070
|
+
return this.isFunction(e) ? e.apply(void 0, o) : e;
|
|
1071
|
+
}
|
|
1072
|
+
}, {
|
|
1073
|
+
key: "getComponentProp",
|
|
1074
|
+
value: function(e) {
|
|
1075
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1076
|
+
return this.isNotEmpty(e) ? this.getProp(e.props, t, o) : void 0;
|
|
1077
|
+
}
|
|
1078
|
+
}, {
|
|
1079
|
+
key: "getComponentProps",
|
|
1080
|
+
value: function(e, t) {
|
|
1081
|
+
return this.isNotEmpty(e) ? this.getMergedProps(e.props, t) : void 0;
|
|
1082
|
+
}
|
|
1083
|
+
}, {
|
|
1084
|
+
key: "getComponentDiffProps",
|
|
1085
|
+
value: function(e, t) {
|
|
1086
|
+
return this.isNotEmpty(e) ? this.getDiffProps(e.props, t) : void 0;
|
|
1087
|
+
}
|
|
1088
|
+
}, {
|
|
1089
|
+
key: "isValidChild",
|
|
1090
|
+
value: function(e, t, o) {
|
|
1091
|
+
if (e) {
|
|
1092
|
+
var i = this.getComponentProp(e, "__TYPE") || (e.type ? e.type.displayName : void 0), s = i === t;
|
|
1093
|
+
try {
|
|
1094
|
+
var a;
|
|
1095
|
+
} catch {
|
|
1096
|
+
}
|
|
1097
|
+
return s;
|
|
1098
|
+
}
|
|
1099
|
+
return !1;
|
|
1100
|
+
}
|
|
1101
|
+
}, {
|
|
1102
|
+
key: "getRefElement",
|
|
1103
|
+
value: function(e) {
|
|
1104
|
+
return e ? W(e) === "object" && e.hasOwnProperty("current") ? e.current : e : null;
|
|
1105
|
+
}
|
|
1106
|
+
}, {
|
|
1107
|
+
key: "combinedRefs",
|
|
1108
|
+
value: function(e, t) {
|
|
1109
|
+
e && t && (typeof t == "function" ? t(e.current) : t.current = e.current);
|
|
1110
|
+
}
|
|
1111
|
+
}, {
|
|
1112
|
+
key: "removeAccents",
|
|
1113
|
+
value: function(e) {
|
|
1114
|
+
return e && e.search(/[\xC0-\xFF]/g) > -1 && (e = e.replace(/[\xC0-\xC5]/g, "A").replace(/[\xC6]/g, "AE").replace(/[\xC7]/g, "C").replace(/[\xC8-\xCB]/g, "E").replace(/[\xCC-\xCF]/g, "I").replace(/[\xD0]/g, "D").replace(/[\xD1]/g, "N").replace(/[\xD2-\xD6\xD8]/g, "O").replace(/[\xD9-\xDC]/g, "U").replace(/[\xDD]/g, "Y").replace(/[\xDE]/g, "P").replace(/[\xE0-\xE5]/g, "a").replace(/[\xE6]/g, "ae").replace(/[\xE7]/g, "c").replace(/[\xE8-\xEB]/g, "e").replace(/[\xEC-\xEF]/g, "i").replace(/[\xF1]/g, "n").replace(/[\xF2-\xF6\xF8]/g, "o").replace(/[\xF9-\xFC]/g, "u").replace(/[\xFE]/g, "p").replace(/[\xFD\xFF]/g, "y")), e;
|
|
1115
|
+
}
|
|
1116
|
+
}, {
|
|
1117
|
+
key: "convertToFlatCase",
|
|
1118
|
+
value: function(e) {
|
|
1119
|
+
return this.isNotEmpty(e) && typeof e == "string" ? e.replace(/(-|_)/g, "").toLowerCase() : e;
|
|
1120
|
+
}
|
|
1121
|
+
}, {
|
|
1122
|
+
key: "isEmpty",
|
|
1123
|
+
value: function(e) {
|
|
1124
|
+
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && W(e) === "object" && Object.keys(e).length === 0;
|
|
1125
|
+
}
|
|
1126
|
+
}, {
|
|
1127
|
+
key: "isNotEmpty",
|
|
1128
|
+
value: function(e) {
|
|
1129
|
+
return !this.isEmpty(e);
|
|
1130
|
+
}
|
|
1131
|
+
}, {
|
|
1132
|
+
key: "sort",
|
|
1133
|
+
value: function(e, t) {
|
|
1134
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, i = arguments.length > 3 ? arguments[3] : void 0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 1, a = r.compare(e, t, i, o), u = o;
|
|
1135
|
+
return (r.isEmpty(e) || r.isEmpty(t)) && (u = s === 1 ? o : s), u * a;
|
|
1136
|
+
}
|
|
1137
|
+
}, {
|
|
1138
|
+
key: "compare",
|
|
1139
|
+
value: function(e, t, o) {
|
|
1140
|
+
var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1, s = -1, a = r.isEmpty(e), u = r.isEmpty(t);
|
|
1141
|
+
return a && u ? s = 0 : a ? s = i : u ? s = -i : typeof e == "string" && typeof t == "string" ? s = e.localeCompare(t, o, {
|
|
1142
|
+
numeric: !0
|
|
1143
|
+
}) : s = e < t ? -1 : e > t ? 1 : 0, s;
|
|
1144
|
+
}
|
|
1145
|
+
}]), r;
|
|
1146
|
+
}();
|
|
1147
|
+
function Xe(r, n) {
|
|
1148
|
+
var e = Object.keys(r);
|
|
1149
|
+
if (Object.getOwnPropertySymbols) {
|
|
1150
|
+
var t = Object.getOwnPropertySymbols(r);
|
|
1151
|
+
n && (t = t.filter(function(o) {
|
|
1152
|
+
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
1153
|
+
})), e.push.apply(e, t);
|
|
1154
|
+
}
|
|
1155
|
+
return e;
|
|
1156
|
+
}
|
|
1157
|
+
function Nt(r) {
|
|
1158
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
1159
|
+
var e = arguments[n] != null ? arguments[n] : {};
|
|
1160
|
+
n % 2 ? Xe(Object(e), !0).forEach(function(t) {
|
|
1161
|
+
de(r, t, e[t]);
|
|
1162
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : Xe(Object(e)).forEach(function(t) {
|
|
1163
|
+
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(e, t));
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
return r;
|
|
1167
|
+
}
|
|
1168
|
+
var wr = /* @__PURE__ */ function() {
|
|
1169
|
+
function r() {
|
|
1170
|
+
We(this, r);
|
|
1171
|
+
}
|
|
1172
|
+
return He(r, null, [{
|
|
1173
|
+
key: "getJSXIcon",
|
|
1174
|
+
value: function(e) {
|
|
1175
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = null;
|
|
1176
|
+
if (e !== null) {
|
|
1177
|
+
var s = W(e), a = Ct(t.className, s === "string" && e);
|
|
1178
|
+
if (i = /* @__PURE__ */ A.createElement("span", Me({}, t, {
|
|
1179
|
+
className: a
|
|
1180
|
+
})), s !== "string") {
|
|
1181
|
+
var u = Nt({
|
|
1182
|
+
iconProps: t,
|
|
1183
|
+
element: i
|
|
1184
|
+
}, o);
|
|
1185
|
+
return z.getJSXElement(e, u);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
return i;
|
|
1189
|
+
}
|
|
1190
|
+
}]), r;
|
|
1191
|
+
}();
|
|
1192
|
+
function ze(r, n) {
|
|
1193
|
+
var e = Object.keys(r);
|
|
1194
|
+
if (Object.getOwnPropertySymbols) {
|
|
1195
|
+
var t = Object.getOwnPropertySymbols(r);
|
|
1196
|
+
n && (t = t.filter(function(o) {
|
|
1197
|
+
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
1198
|
+
})), e.push.apply(e, t);
|
|
1199
|
+
}
|
|
1200
|
+
return e;
|
|
1201
|
+
}
|
|
1202
|
+
function Ze(r) {
|
|
1203
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
1204
|
+
var e = arguments[n] != null ? arguments[n] : {};
|
|
1205
|
+
n % 2 ? ze(Object(e), !0).forEach(function(t) {
|
|
1206
|
+
de(r, t, e[t]);
|
|
1207
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : ze(Object(e)).forEach(function(t) {
|
|
1208
|
+
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(e, t));
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
return r;
|
|
1212
|
+
}
|
|
1213
|
+
function Cr() {
|
|
1214
|
+
for (var r = arguments.length, n = new Array(r), e = 0; e < r; e++)
|
|
1215
|
+
n[e] = arguments[e];
|
|
1216
|
+
if (n) {
|
|
1217
|
+
var t = function(i) {
|
|
1218
|
+
return !!(i && i.constructor && i.call && i.apply);
|
|
1219
|
+
};
|
|
1220
|
+
return n.reduce(function(o, i) {
|
|
1221
|
+
var s = function() {
|
|
1222
|
+
if (a === "style")
|
|
1223
|
+
o.style = Ze(Ze({}, o.style), i.style);
|
|
1224
|
+
else if (a === "className")
|
|
1225
|
+
o.className = [o.className, i.className].join(" ").trim();
|
|
1226
|
+
else if (t(i[a])) {
|
|
1227
|
+
var l = o[a];
|
|
1228
|
+
o[a] = l ? function() {
|
|
1229
|
+
l.apply(void 0, arguments), value.apply(void 0, arguments);
|
|
1230
|
+
} : i[a];
|
|
1231
|
+
} else
|
|
1232
|
+
o[a] = i[a];
|
|
1233
|
+
};
|
|
1234
|
+
for (var a in i)
|
|
1235
|
+
s();
|
|
1236
|
+
return o;
|
|
1237
|
+
}, {});
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
var Je = 0;
|
|
1241
|
+
function Pr() {
|
|
1242
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pr_id_";
|
|
1243
|
+
return Je++, "".concat(r).concat(Je);
|
|
1244
|
+
}
|
|
1245
|
+
function _t(r) {
|
|
1246
|
+
if (Array.isArray(r)) return Le(r);
|
|
1247
|
+
}
|
|
1248
|
+
function It(r) {
|
|
1249
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
1250
|
+
}
|
|
1251
|
+
function Lt() {
|
|
1252
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1253
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1254
|
+
}
|
|
1255
|
+
function Mt(r) {
|
|
1256
|
+
return _t(r) || It(r) || dt(r) || Lt();
|
|
1257
|
+
}
|
|
1258
|
+
function kt() {
|
|
1259
|
+
var r = [], n = function(a, u) {
|
|
1260
|
+
var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 999, f = o(a, u, l), c = f.value + (f.key === a ? 0 : l) + 1;
|
|
1261
|
+
return r.push({
|
|
1262
|
+
key: a,
|
|
1263
|
+
value: c
|
|
1264
|
+
}), c;
|
|
1265
|
+
}, e = function(a) {
|
|
1266
|
+
r = r.filter(function(u) {
|
|
1267
|
+
return u.value !== a;
|
|
1268
|
+
});
|
|
1269
|
+
}, t = function(a, u) {
|
|
1270
|
+
return o(a, u).value;
|
|
1271
|
+
}, o = function(a, u) {
|
|
1272
|
+
var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
1273
|
+
return Mt(r).reverse().find(function(f) {
|
|
1274
|
+
return u ? !0 : f.key === a;
|
|
1275
|
+
}) || {
|
|
1276
|
+
key: a,
|
|
1277
|
+
value: l
|
|
1278
|
+
};
|
|
1279
|
+
}, i = function(a) {
|
|
1280
|
+
return a && parseInt(a.style.zIndex, 10) || 0;
|
|
1281
|
+
};
|
|
1282
|
+
return {
|
|
1283
|
+
get: i,
|
|
1284
|
+
set: function(a, u, l, f) {
|
|
1285
|
+
u && (u.style.zIndex = String(n(a, l, f)));
|
|
1286
|
+
},
|
|
1287
|
+
clear: function(a) {
|
|
1288
|
+
a && (e(Dt.get(a)), a.style.zIndex = "");
|
|
1289
|
+
},
|
|
1290
|
+
getCurrent: function(a, u) {
|
|
1291
|
+
return t(a, u);
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
}
|
|
1295
|
+
var Dt = kt(), $ = Object.freeze({
|
|
1296
|
+
STARTS_WITH: "startsWith",
|
|
1297
|
+
CONTAINS: "contains",
|
|
1298
|
+
NOT_CONTAINS: "notContains",
|
|
1299
|
+
ENDS_WITH: "endsWith",
|
|
1300
|
+
EQUALS: "equals",
|
|
1301
|
+
NOT_EQUALS: "notEquals",
|
|
1302
|
+
IN: "in",
|
|
1303
|
+
LESS_THAN: "lt",
|
|
1304
|
+
LESS_THAN_OR_EQUAL_TO: "lte",
|
|
1305
|
+
GREATER_THAN: "gt",
|
|
1306
|
+
GREATER_THAN_OR_EQUAL_TO: "gte",
|
|
1307
|
+
BETWEEN: "between",
|
|
1308
|
+
DATE_IS: "dateIs",
|
|
1309
|
+
DATE_IS_NOT: "dateIsNot",
|
|
1310
|
+
DATE_BEFORE: "dateBefore",
|
|
1311
|
+
DATE_AFTER: "dateAfter",
|
|
1312
|
+
CUSTOM: "custom"
|
|
1313
|
+
});
|
|
1314
|
+
function oe(r) {
|
|
1315
|
+
"@babel/helpers - typeof";
|
|
1316
|
+
return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
1317
|
+
return typeof n;
|
|
1318
|
+
} : function(n) {
|
|
1319
|
+
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
1320
|
+
}, oe(r);
|
|
1321
|
+
}
|
|
1322
|
+
function Ft(r, n) {
|
|
1323
|
+
if (oe(r) !== "object" || r === null) return r;
|
|
1324
|
+
var e = r[Symbol.toPrimitive];
|
|
1325
|
+
if (e !== void 0) {
|
|
1326
|
+
var t = e.call(r, n);
|
|
1327
|
+
if (oe(t) !== "object") return t;
|
|
1328
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1329
|
+
}
|
|
1330
|
+
return (n === "string" ? String : Number)(r);
|
|
1331
|
+
}
|
|
1332
|
+
function jt(r) {
|
|
1333
|
+
var n = Ft(r, "string");
|
|
1334
|
+
return oe(n) === "symbol" ? n : String(n);
|
|
1335
|
+
}
|
|
1336
|
+
function q(r, n, e) {
|
|
1337
|
+
return n = jt(n), n in r ? Object.defineProperty(r, n, {
|
|
1338
|
+
value: e,
|
|
1339
|
+
enumerable: !0,
|
|
1340
|
+
configurable: !0,
|
|
1341
|
+
writable: !0
|
|
1342
|
+
}) : r[n] = e, r;
|
|
1343
|
+
}
|
|
1344
|
+
function $t(r, n, e) {
|
|
1345
|
+
return Object.defineProperty(r, "prototype", {
|
|
1346
|
+
writable: !1
|
|
1347
|
+
}), r;
|
|
1348
|
+
}
|
|
1349
|
+
function Wt(r, n) {
|
|
1350
|
+
if (!(r instanceof n))
|
|
1351
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1352
|
+
}
|
|
1353
|
+
var H = /* @__PURE__ */ $t(function r() {
|
|
1354
|
+
Wt(this, r);
|
|
1355
|
+
});
|
|
1356
|
+
q(H, "ripple", !1);
|
|
1357
|
+
q(H, "inputStyle", "outlined");
|
|
1358
|
+
q(H, "locale", "en");
|
|
1359
|
+
q(H, "appendTo", null);
|
|
1360
|
+
q(H, "cssTransition", !0);
|
|
1361
|
+
q(H, "autoZIndex", !0);
|
|
1362
|
+
q(H, "hideOverlaysOnDocumentScrolling", !1);
|
|
1363
|
+
q(H, "nonce", null);
|
|
1364
|
+
q(H, "nullSortOrder", 1);
|
|
1365
|
+
q(H, "zIndex", {
|
|
1366
|
+
modal: 1100,
|
|
1367
|
+
overlay: 1e3,
|
|
1368
|
+
menu: 1e3,
|
|
1369
|
+
tooltip: 1100,
|
|
1370
|
+
toast: 1200
|
|
1371
|
+
});
|
|
1372
|
+
q(H, "pt", void 0);
|
|
1373
|
+
q(H, "filterMatchModeOptions", {
|
|
1374
|
+
text: [$.STARTS_WITH, $.CONTAINS, $.NOT_CONTAINS, $.ENDS_WITH, $.EQUALS, $.NOT_EQUALS],
|
|
1375
|
+
numeric: [$.EQUALS, $.NOT_EQUALS, $.LESS_THAN, $.LESS_THAN_OR_EQUAL_TO, $.GREATER_THAN, $.GREATER_THAN_OR_EQUAL_TO],
|
|
1376
|
+
date: [$.DATE_IS, $.DATE_IS_NOT, $.DATE_BEFORE, $.DATE_AFTER]
|
|
1377
|
+
});
|
|
1378
|
+
q(H, "changeTheme", function(r, n, e, t) {
|
|
1379
|
+
var o, i = document.getElementById(e), s = i.cloneNode(!0), a = i.getAttribute("href").replace(r, n);
|
|
1380
|
+
s.setAttribute("id", e + "-clone"), s.setAttribute("href", a), s.addEventListener("load", function() {
|
|
1381
|
+
i.remove(), s.setAttribute("id", e), t && t();
|
|
1382
|
+
}), (o = i.parentNode) === null || o === void 0 || o.insertBefore(s, i.nextSibling);
|
|
1383
|
+
});
|
|
1384
|
+
var Ht = {
|
|
1385
|
+
en: {
|
|
1386
|
+
startsWith: "Starts with",
|
|
1387
|
+
contains: "Contains",
|
|
1388
|
+
notContains: "Not contains",
|
|
1389
|
+
endsWith: "Ends with",
|
|
1390
|
+
equals: "Equals",
|
|
1391
|
+
notEquals: "Not equals",
|
|
1392
|
+
noFilter: "No Filter",
|
|
1393
|
+
filter: "Filter",
|
|
1394
|
+
lt: "Less than",
|
|
1395
|
+
lte: "Less than or equal to",
|
|
1396
|
+
gt: "Greater than",
|
|
1397
|
+
gte: "Greater than or equal to",
|
|
1398
|
+
dateIs: "Date is",
|
|
1399
|
+
dateIsNot: "Date is not",
|
|
1400
|
+
dateBefore: "Date is before",
|
|
1401
|
+
dateAfter: "Date is after",
|
|
1402
|
+
custom: "Custom",
|
|
1403
|
+
clear: "Clear",
|
|
1404
|
+
close: "Close",
|
|
1405
|
+
apply: "Apply",
|
|
1406
|
+
matchAll: "Match All",
|
|
1407
|
+
matchAny: "Match Any",
|
|
1408
|
+
addRule: "Add Rule",
|
|
1409
|
+
removeRule: "Remove Rule",
|
|
1410
|
+
accept: "Yes",
|
|
1411
|
+
reject: "No",
|
|
1412
|
+
choose: "Choose",
|
|
1413
|
+
upload: "Upload",
|
|
1414
|
+
cancel: "Cancel",
|
|
1415
|
+
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
1416
|
+
dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1417
|
+
dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1418
|
+
monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
1419
|
+
monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1420
|
+
today: "Today",
|
|
1421
|
+
weekHeader: "Wk",
|
|
1422
|
+
firstDayOfWeek: 0,
|
|
1423
|
+
dateFormat: "mm/dd/yy",
|
|
1424
|
+
weak: "Weak",
|
|
1425
|
+
medium: "Medium",
|
|
1426
|
+
strong: "Strong",
|
|
1427
|
+
passwordPrompt: "Enter a password",
|
|
1428
|
+
emptyFilterMessage: "No available options",
|
|
1429
|
+
emptyMessage: "No results found",
|
|
1430
|
+
aria: {
|
|
1431
|
+
trueLabel: "True",
|
|
1432
|
+
falseLabel: "False",
|
|
1433
|
+
nullLabel: "Not Selected",
|
|
1434
|
+
star: "1 star",
|
|
1435
|
+
stars: "{star} stars",
|
|
1436
|
+
selectAll: "All items selected",
|
|
1437
|
+
unselectAll: "All items unselected",
|
|
1438
|
+
close: "Close",
|
|
1439
|
+
previous: "Previous",
|
|
1440
|
+
next: "Next",
|
|
1441
|
+
navigation: "Navigation",
|
|
1442
|
+
scrollTop: "Scroll Top",
|
|
1443
|
+
moveTop: "Move Top",
|
|
1444
|
+
moveUp: "Move Up",
|
|
1445
|
+
moveDown: "Move Down",
|
|
1446
|
+
moveBottom: "Move Bottom",
|
|
1447
|
+
moveToTarget: "Move to Target",
|
|
1448
|
+
moveToSource: "Move to Source",
|
|
1449
|
+
moveAllToTarget: "Move All to Target",
|
|
1450
|
+
moveAllToSource: "Move All to Source",
|
|
1451
|
+
pageLabel: "Page",
|
|
1452
|
+
firstPageLabel: "First Page",
|
|
1453
|
+
lastPageLabel: "Last Page",
|
|
1454
|
+
nextPageLabel: "Next Page",
|
|
1455
|
+
previousPageLabel: "Previous Page",
|
|
1456
|
+
rowsPerPageLabel: "Rows per page",
|
|
1457
|
+
jumpToPageDropdownLabel: "Jump to Page Dropdown",
|
|
1458
|
+
jumpToPageInputLabel: "Jump to Page Input",
|
|
1459
|
+
selectRow: "Row Selected",
|
|
1460
|
+
unselectRow: "Row Unselected",
|
|
1461
|
+
expandRow: "Row Expanded",
|
|
1462
|
+
collapseRow: "Row Collapsed",
|
|
1463
|
+
showFilterMenu: "Show Filter Menu",
|
|
1464
|
+
hideFilterMenu: "Hide Filter Menu",
|
|
1465
|
+
filterOperator: "Filter Operator",
|
|
1466
|
+
filterConstraint: "Filter Constraint",
|
|
1467
|
+
editRow: "Row Edit",
|
|
1468
|
+
saveEdit: "Save Edit",
|
|
1469
|
+
cancelEdit: "Cancel Edit",
|
|
1470
|
+
listView: "List View",
|
|
1471
|
+
gridView: "Grid View",
|
|
1472
|
+
slide: "Slide",
|
|
1473
|
+
slideNumber: "{slideNumber}",
|
|
1474
|
+
zoomImage: "Zoom Image",
|
|
1475
|
+
zoomIn: "Zoom In",
|
|
1476
|
+
zoomOut: "Zoom Out",
|
|
1477
|
+
rotateRight: "Rotate Right",
|
|
1478
|
+
rotateLeft: "Rotate Left",
|
|
1479
|
+
selectLabel: "Select",
|
|
1480
|
+
unselectLabel: "Unselect",
|
|
1481
|
+
expandLabel: "Expand",
|
|
1482
|
+
collapseLabel: "Collapse"
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
};
|
|
1486
|
+
function Ar(r, n) {
|
|
1487
|
+
var e = H.locale;
|
|
1488
|
+
try {
|
|
1489
|
+
return Ut(e)[r];
|
|
1490
|
+
} catch {
|
|
1491
|
+
throw new Error("The ".concat(r, " option is not found in the current locale('").concat(e, "')."));
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
function Ut(r) {
|
|
1495
|
+
var n = r || H.locale;
|
|
1496
|
+
return Ht[n];
|
|
1497
|
+
}
|
|
1498
|
+
var pe = /* @__PURE__ */ X.createContext(), ve = H;
|
|
1499
|
+
function qt(r) {
|
|
1500
|
+
if (Array.isArray(r)) return r;
|
|
1501
|
+
}
|
|
1502
|
+
function Yt(r, n) {
|
|
1503
|
+
var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
1504
|
+
if (e != null) {
|
|
1505
|
+
var t, o, i, s, a = [], u = !0, l = !1;
|
|
1506
|
+
try {
|
|
1507
|
+
if (i = (e = e.call(r)).next, n !== 0) for (; !(u = (t = i.call(e)).done) && (a.push(t.value), a.length !== n); u = !0) ;
|
|
1508
|
+
} catch (f) {
|
|
1509
|
+
l = !0, o = f;
|
|
1510
|
+
} finally {
|
|
1511
|
+
try {
|
|
1512
|
+
if (!u && e.return != null && (s = e.return(), Object(s) !== s)) return;
|
|
1513
|
+
} finally {
|
|
1514
|
+
if (l) throw o;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
return a;
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
function Ge(r, n) {
|
|
1521
|
+
(n == null || n > r.length) && (n = r.length);
|
|
1522
|
+
for (var e = 0, t = new Array(n); e < n; e++) t[e] = r[e];
|
|
1523
|
+
return t;
|
|
1524
|
+
}
|
|
1525
|
+
function Bt(r, n) {
|
|
1526
|
+
if (r) {
|
|
1527
|
+
if (typeof r == "string") return Ge(r, n);
|
|
1528
|
+
var e = Object.prototype.toString.call(r).slice(8, -1);
|
|
1529
|
+
if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set") return Array.from(r);
|
|
1530
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Ge(r, n);
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
function Vt() {
|
|
1534
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1535
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1536
|
+
}
|
|
1537
|
+
function Xt(r, n) {
|
|
1538
|
+
return qt(r) || Yt(r, n) || Bt(r, n) || Vt();
|
|
1539
|
+
}
|
|
1540
|
+
var ke = function(n) {
|
|
1541
|
+
var e = A.useRef(void 0);
|
|
1542
|
+
return A.useEffect(function() {
|
|
1543
|
+
e.current = n;
|
|
1544
|
+
}), e.current;
|
|
1545
|
+
}, ye = function(n) {
|
|
1546
|
+
return A.useEffect(function() {
|
|
1547
|
+
return n;
|
|
1548
|
+
}, []);
|
|
1549
|
+
}, zt = function(n) {
|
|
1550
|
+
var e = n.target, t = e === void 0 ? "document" : e, o = n.type, i = n.listener, s = n.options, a = n.when, u = a === void 0 ? !0 : a, l = A.useRef(null), f = A.useRef(null), c = ke(i), v = ke(s), p = function() {
|
|
1551
|
+
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1552
|
+
z.isNotEmpty(T.target) && (E(), (T.when || u) && (l.current = F.getTargetElement(T.target))), !f.current && l.current && (f.current = function(b) {
|
|
1553
|
+
return i && i(b);
|
|
1554
|
+
}, l.current.addEventListener(o, f.current, s));
|
|
1555
|
+
}, E = function() {
|
|
1556
|
+
f.current && (l.current.removeEventListener(o, f.current, s), f.current = null);
|
|
1557
|
+
};
|
|
1558
|
+
return A.useEffect(function() {
|
|
1559
|
+
u ? l.current = F.getTargetElement(t) : (E(), l.current = null);
|
|
1560
|
+
}, [t, u]), A.useEffect(function() {
|
|
1561
|
+
f.current && ("" + c != "" + i || v !== s) && (E(), u && p());
|
|
1562
|
+
}, [i, s, u]), ye(function() {
|
|
1563
|
+
E();
|
|
1564
|
+
}), [p, E];
|
|
1565
|
+
}, Rr = function(n) {
|
|
1566
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = A.useState(!1), o = Xt(t, 2), i = o[0], s = o[1], a = A.useRef(null), u = function(v) {
|
|
1567
|
+
return s(v.matches);
|
|
1568
|
+
}, l = function() {
|
|
1569
|
+
return a.current && a.current.addEventListener("change", u);
|
|
1570
|
+
}, f = function() {
|
|
1571
|
+
return a.current && a.current.removeEventListener("change", u) && (a.current = null);
|
|
1572
|
+
};
|
|
1573
|
+
return A.useEffect(function() {
|
|
1574
|
+
return e && (a.current = window.matchMedia(n), s(a.current.matches), l()), f;
|
|
1575
|
+
}, [n, e]), i;
|
|
1576
|
+
}, vt = function(n) {
|
|
1577
|
+
var e = A.useRef(!1);
|
|
1578
|
+
return A.useEffect(function() {
|
|
1579
|
+
if (!e.current)
|
|
1580
|
+
return e.current = !0, n && n();
|
|
1581
|
+
}, []);
|
|
1582
|
+
}, Nr = function(n) {
|
|
1583
|
+
var e = n.target, t = n.listener, o = n.options, i = n.when, s = i === void 0 ? !0 : i, a = A.useRef(null), u = A.useRef(null), l = A.useRef([]), f = ke(o), c = A.useContext(pe), v = function() {
|
|
1584
|
+
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1585
|
+
if (z.isNotEmpty(g.target) && (p(), (g.when || s) && (a.current = F.getTargetElement(g.target))), !u.current && a.current) {
|
|
1586
|
+
var T = l.current = F.getScrollableParents(a.current, c ? c.hideOverlaysOnDocumentScrolling : ve.hideOverlaysOnDocumentScrolling);
|
|
1587
|
+
u.current = function(b) {
|
|
1588
|
+
return t && t(b);
|
|
1589
|
+
}, T.forEach(function(b) {
|
|
1590
|
+
return b.addEventListener("scroll", u.current, o);
|
|
1591
|
+
});
|
|
1592
|
+
}
|
|
1593
|
+
}, p = function() {
|
|
1594
|
+
if (u.current) {
|
|
1595
|
+
var g = l.current;
|
|
1596
|
+
g.forEach(function(T) {
|
|
1597
|
+
return T.removeEventListener("scroll", u.current, o);
|
|
1598
|
+
}), u.current = null;
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1601
|
+
return A.useEffect(function() {
|
|
1602
|
+
s ? a.current = F.getTargetElement(e) : (p(), a.current = null);
|
|
1603
|
+
}, [e, s]), A.useEffect(function() {
|
|
1604
|
+
u.current && (u.current !== t || f !== o) && (p(), s && v());
|
|
1605
|
+
}, [t, o]), ye(function() {
|
|
1606
|
+
p();
|
|
1607
|
+
}), [v, p];
|
|
1608
|
+
}, _r = function(n) {
|
|
1609
|
+
var e = n.listener, t = n.when, o = t === void 0 ? !0 : t;
|
|
1610
|
+
return zt({
|
|
1611
|
+
target: "window",
|
|
1612
|
+
type: "resize",
|
|
1613
|
+
listener: e,
|
|
1614
|
+
when: o
|
|
1615
|
+
});
|
|
1616
|
+
}, Ue = function(n, e) {
|
|
1617
|
+
var t = A.useRef(!1);
|
|
1618
|
+
return A.useEffect(function() {
|
|
1619
|
+
if (!t.current) {
|
|
1620
|
+
t.current = !0;
|
|
1621
|
+
return;
|
|
1622
|
+
}
|
|
1623
|
+
return n && n();
|
|
1624
|
+
}, e);
|
|
1625
|
+
}, Zt = /* @__PURE__ */ A.memo(/* @__PURE__ */ A.forwardRef(function() {
|
|
1626
|
+
var r = A.useRef(null), n = A.useRef(null), e = A.useContext(pe), t = function() {
|
|
1627
|
+
return r.current && r.current.parentElement;
|
|
1628
|
+
}, o = function() {
|
|
1629
|
+
n.current && (n.current.addEventListener("mousedown", a), F.isTouchDevice() && n.current.addEventListener("touchstart", s));
|
|
1630
|
+
}, i = function() {
|
|
1631
|
+
n.current && (n.current.removeEventListener("mousedown", a), F.isTouchDevice() && n.current.removeEventListener("touchstart", s));
|
|
1632
|
+
}, s = function(v) {
|
|
1633
|
+
var p = F.getOffset(n.current), E = v.targetTouches[0].pageX - p.left + document.body.scrollTop - F.getWidth(r.current) / 2, g = v.targetTouches[0].pageY - p.top + document.body.scrollLeft - F.getHeight(r.current) / 2;
|
|
1634
|
+
u(E, g);
|
|
1635
|
+
}, a = function(v) {
|
|
1636
|
+
if (!F.isTouchDevice()) {
|
|
1637
|
+
var p = F.getOffset(n.current), E = v.pageX - p.left + document.body.scrollTop - F.getWidth(r.current) / 2, g = v.pageY - p.top + document.body.scrollLeft - F.getHeight(r.current) / 2;
|
|
1638
|
+
u(E, g);
|
|
1639
|
+
}
|
|
1640
|
+
}, u = function(v, p) {
|
|
1641
|
+
!r.current || getComputedStyle(r.current, null).display === "none" || (F.removeClass(r.current, "p-ink-active"), f(), r.current.style.top = p + "px", r.current.style.left = v + "px", F.addClass(r.current, "p-ink-active"));
|
|
1642
|
+
}, l = function(v) {
|
|
1643
|
+
F.removeClass(v.currentTarget, "p-ink-active");
|
|
1644
|
+
}, f = function() {
|
|
1645
|
+
if (r.current && !F.getHeight(r.current) && !F.getWidth(r.current)) {
|
|
1646
|
+
var v = Math.max(F.getOuterWidth(n.current), F.getOuterHeight(n.current));
|
|
1647
|
+
r.current.style.height = v + "px", r.current.style.width = v + "px";
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
return vt(function() {
|
|
1651
|
+
r.current && (n.current = t(), f(), o());
|
|
1652
|
+
}), Ue(function() {
|
|
1653
|
+
r.current && !n.current && (n.current = t(), f(), o());
|
|
1654
|
+
}), ye(function() {
|
|
1655
|
+
r.current && (n.current = null, i());
|
|
1656
|
+
}), e && e.ripple || ve.ripple ? /* @__PURE__ */ A.createElement("span", {
|
|
1657
|
+
role: "presentation",
|
|
1658
|
+
ref: r,
|
|
1659
|
+
className: "p-ink",
|
|
1660
|
+
onAnimationEnd: l
|
|
1661
|
+
}) : null;
|
|
1662
|
+
}));
|
|
1663
|
+
Zt.displayName = "Ripple";
|
|
1664
|
+
function Jt(r) {
|
|
1665
|
+
if (Array.isArray(r)) return r;
|
|
1666
|
+
}
|
|
1667
|
+
function Gt(r, n) {
|
|
1668
|
+
var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
1669
|
+
if (e != null) {
|
|
1670
|
+
var t, o, i, s, a = [], u = !0, l = !1;
|
|
1671
|
+
try {
|
|
1672
|
+
if (i = (e = e.call(r)).next, n !== 0) for (; !(u = (t = i.call(e)).done) && (a.push(t.value), a.length !== n); u = !0) ;
|
|
1673
|
+
} catch (f) {
|
|
1674
|
+
l = !0, o = f;
|
|
1675
|
+
} finally {
|
|
1676
|
+
try {
|
|
1677
|
+
if (!u && e.return != null && (s = e.return(), Object(s) !== s)) return;
|
|
1678
|
+
} finally {
|
|
1679
|
+
if (l) throw o;
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
return a;
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
function Ke(r, n) {
|
|
1686
|
+
(n == null || n > r.length) && (n = r.length);
|
|
1687
|
+
for (var e = 0, t = new Array(n); e < n; e++) t[e] = r[e];
|
|
1688
|
+
return t;
|
|
1689
|
+
}
|
|
1690
|
+
function Kt(r, n) {
|
|
1691
|
+
if (r) {
|
|
1692
|
+
if (typeof r == "string") return Ke(r, n);
|
|
1693
|
+
var e = Object.prototype.toString.call(r).slice(8, -1);
|
|
1694
|
+
if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set") return Array.from(r);
|
|
1695
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Ke(r, n);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
function Qt() {
|
|
1699
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1700
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1701
|
+
}
|
|
1702
|
+
function er(r, n) {
|
|
1703
|
+
return Jt(r) || Gt(r, n) || Kt(r, n) || Qt();
|
|
1704
|
+
}
|
|
1705
|
+
var De = {
|
|
1706
|
+
defaultProps: {
|
|
1707
|
+
__TYPE: "Portal",
|
|
1708
|
+
element: null,
|
|
1709
|
+
appendTo: null,
|
|
1710
|
+
visible: !1,
|
|
1711
|
+
onMounted: null,
|
|
1712
|
+
onUnmounted: null,
|
|
1713
|
+
children: void 0
|
|
1714
|
+
},
|
|
1715
|
+
getProps: function(n) {
|
|
1716
|
+
return z.getMergedProps(n, De.defaultProps);
|
|
1717
|
+
},
|
|
1718
|
+
getOtherProps: function(n) {
|
|
1719
|
+
return z.getDiffProps(n, De.defaultProps);
|
|
1720
|
+
}
|
|
1721
|
+
}, tr = /* @__PURE__ */ A.memo(function(r) {
|
|
1722
|
+
var n = De.getProps(r), e = A.useContext(pe), t = A.useState(n.visible && F.hasDOM()), o = er(t, 2), i = o[0], s = o[1];
|
|
1723
|
+
vt(function() {
|
|
1724
|
+
F.hasDOM() && !i && (s(!0), n.onMounted && n.onMounted());
|
|
1725
|
+
}), Ue(function() {
|
|
1726
|
+
n.onMounted && n.onMounted();
|
|
1727
|
+
}, [i]), ye(function() {
|
|
1728
|
+
n.onUnmounted && n.onUnmounted();
|
|
1729
|
+
});
|
|
1730
|
+
var a = n.element || n.children;
|
|
1731
|
+
if (a && i) {
|
|
1732
|
+
var u = n.appendTo || e && e.appendTo || ve.appendTo || document.body;
|
|
1733
|
+
return u === "self" ? a : /* @__PURE__ */ re.createPortal(a, u);
|
|
1734
|
+
}
|
|
1735
|
+
return null;
|
|
1736
|
+
});
|
|
1737
|
+
tr.displayName = "Portal";
|
|
1738
|
+
function ce() {
|
|
1739
|
+
return ce = Object.assign ? Object.assign.bind() : function(r) {
|
|
1740
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
1741
|
+
var e = arguments[n];
|
|
1742
|
+
for (var t in e) ({}).hasOwnProperty.call(e, t) && (r[t] = e[t]);
|
|
1743
|
+
}
|
|
1744
|
+
return r;
|
|
1745
|
+
}, ce.apply(null, arguments);
|
|
1746
|
+
}
|
|
1747
|
+
function yt(r, n) {
|
|
1748
|
+
if (r == null) return {};
|
|
1749
|
+
var e = {};
|
|
1750
|
+
for (var t in r) if ({}.hasOwnProperty.call(r, t)) {
|
|
1751
|
+
if (n.indexOf(t) !== -1) continue;
|
|
1752
|
+
e[t] = r[t];
|
|
1753
|
+
}
|
|
1754
|
+
return e;
|
|
1755
|
+
}
|
|
1756
|
+
function Fe(r, n) {
|
|
1757
|
+
return Fe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1758
|
+
return e.__proto__ = t, e;
|
|
1759
|
+
}, Fe(r, n);
|
|
1760
|
+
}
|
|
1761
|
+
function gt(r, n) {
|
|
1762
|
+
r.prototype = Object.create(n.prototype), r.prototype.constructor = r, Fe(r, n);
|
|
1763
|
+
}
|
|
1764
|
+
var le = { exports: {} }, fe = { exports: {} }, L = {};
|
|
1765
|
+
/** @license React v16.13.1
|
|
1766
|
+
* react-is.production.min.js
|
|
1767
|
+
*
|
|
1768
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1769
|
+
*
|
|
1770
|
+
* This source code is licensed under the MIT license found in the
|
|
1771
|
+
* LICENSE file in the root directory of this source tree.
|
|
1772
|
+
*/
|
|
1773
|
+
var Qe;
|
|
1774
|
+
function rr() {
|
|
1775
|
+
if (Qe) return L;
|
|
1776
|
+
Qe = 1;
|
|
1777
|
+
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, e = r ? Symbol.for("react.portal") : 60106, t = r ? Symbol.for("react.fragment") : 60107, o = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, c = r ? Symbol.for("react.suspense") : 60113, v = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, E = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, T = r ? Symbol.for("react.fundamental") : 60117, b = r ? Symbol.for("react.responder") : 60118, k = r ? Symbol.for("react.scope") : 60119;
|
|
1778
|
+
function I(h) {
|
|
1779
|
+
if (typeof h == "object" && h !== null) {
|
|
1780
|
+
var Z = h.$$typeof;
|
|
1781
|
+
switch (Z) {
|
|
1782
|
+
case n:
|
|
1783
|
+
switch (h = h.type, h) {
|
|
1784
|
+
case u:
|
|
1785
|
+
case l:
|
|
1786
|
+
case t:
|
|
1787
|
+
case i:
|
|
1788
|
+
case o:
|
|
1789
|
+
case c:
|
|
1790
|
+
return h;
|
|
1791
|
+
default:
|
|
1792
|
+
switch (h = h && h.$$typeof, h) {
|
|
1793
|
+
case a:
|
|
1794
|
+
case f:
|
|
1795
|
+
case E:
|
|
1796
|
+
case p:
|
|
1797
|
+
case s:
|
|
1798
|
+
return h;
|
|
1799
|
+
default:
|
|
1800
|
+
return Z;
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
case e:
|
|
1804
|
+
return Z;
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
function j(h) {
|
|
1809
|
+
return I(h) === l;
|
|
1810
|
+
}
|
|
1811
|
+
return L.AsyncMode = u, L.ConcurrentMode = l, L.ContextConsumer = a, L.ContextProvider = s, L.Element = n, L.ForwardRef = f, L.Fragment = t, L.Lazy = E, L.Memo = p, L.Portal = e, L.Profiler = i, L.StrictMode = o, L.Suspense = c, L.isAsyncMode = function(h) {
|
|
1812
|
+
return j(h) || I(h) === u;
|
|
1813
|
+
}, L.isConcurrentMode = j, L.isContextConsumer = function(h) {
|
|
1814
|
+
return I(h) === a;
|
|
1815
|
+
}, L.isContextProvider = function(h) {
|
|
1816
|
+
return I(h) === s;
|
|
1817
|
+
}, L.isElement = function(h) {
|
|
1818
|
+
return typeof h == "object" && h !== null && h.$$typeof === n;
|
|
1819
|
+
}, L.isForwardRef = function(h) {
|
|
1820
|
+
return I(h) === f;
|
|
1821
|
+
}, L.isFragment = function(h) {
|
|
1822
|
+
return I(h) === t;
|
|
1823
|
+
}, L.isLazy = function(h) {
|
|
1824
|
+
return I(h) === E;
|
|
1825
|
+
}, L.isMemo = function(h) {
|
|
1826
|
+
return I(h) === p;
|
|
1827
|
+
}, L.isPortal = function(h) {
|
|
1828
|
+
return I(h) === e;
|
|
1829
|
+
}, L.isProfiler = function(h) {
|
|
1830
|
+
return I(h) === i;
|
|
1831
|
+
}, L.isStrictMode = function(h) {
|
|
1832
|
+
return I(h) === o;
|
|
1833
|
+
}, L.isSuspense = function(h) {
|
|
1834
|
+
return I(h) === c;
|
|
1835
|
+
}, L.isValidElementType = function(h) {
|
|
1836
|
+
return typeof h == "string" || typeof h == "function" || h === t || h === l || h === i || h === o || h === c || h === v || typeof h == "object" && h !== null && (h.$$typeof === E || h.$$typeof === p || h.$$typeof === s || h.$$typeof === a || h.$$typeof === f || h.$$typeof === T || h.$$typeof === b || h.$$typeof === k || h.$$typeof === g);
|
|
1837
|
+
}, L.typeOf = I, L;
|
|
1838
|
+
}
|
|
1839
|
+
var M = {};
|
|
1840
|
+
/** @license React v16.13.1
|
|
1841
|
+
* react-is.development.js
|
|
1842
|
+
*
|
|
1843
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1844
|
+
*
|
|
1845
|
+
* This source code is licensed under the MIT license found in the
|
|
1846
|
+
* LICENSE file in the root directory of this source tree.
|
|
1847
|
+
*/
|
|
1848
|
+
var et;
|
|
1849
|
+
function nr() {
|
|
1850
|
+
return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1851
|
+
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, e = r ? Symbol.for("react.portal") : 60106, t = r ? Symbol.for("react.fragment") : 60107, o = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, s = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, c = r ? Symbol.for("react.suspense") : 60113, v = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, E = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, T = r ? Symbol.for("react.fundamental") : 60117, b = r ? Symbol.for("react.responder") : 60118, k = r ? Symbol.for("react.scope") : 60119;
|
|
1852
|
+
function I(y) {
|
|
1853
|
+
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1854
|
+
y === t || y === l || y === i || y === o || y === c || y === v || typeof y == "object" && y !== null && (y.$$typeof === E || y.$$typeof === p || y.$$typeof === s || y.$$typeof === a || y.$$typeof === f || y.$$typeof === T || y.$$typeof === b || y.$$typeof === k || y.$$typeof === g);
|
|
1855
|
+
}
|
|
1856
|
+
function j(y) {
|
|
1857
|
+
if (typeof y == "object" && y !== null) {
|
|
1858
|
+
var B = y.$$typeof;
|
|
1859
|
+
switch (B) {
|
|
1860
|
+
case n:
|
|
1861
|
+
var ue = y.type;
|
|
1862
|
+
switch (ue) {
|
|
1863
|
+
case u:
|
|
1864
|
+
case l:
|
|
1865
|
+
case t:
|
|
1866
|
+
case i:
|
|
1867
|
+
case o:
|
|
1868
|
+
case c:
|
|
1869
|
+
return ue;
|
|
1870
|
+
default:
|
|
1871
|
+
var Be = ue && ue.$$typeof;
|
|
1872
|
+
switch (Be) {
|
|
1873
|
+
case a:
|
|
1874
|
+
case f:
|
|
1875
|
+
case E:
|
|
1876
|
+
case p:
|
|
1877
|
+
case s:
|
|
1878
|
+
return Be;
|
|
1879
|
+
default:
|
|
1880
|
+
return B;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
case e:
|
|
1884
|
+
return B;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
var h = u, Z = l, ge = a, he = s, me = n, Ee = f, ae = t, be = E, Te = p, Q = e, xe = i, Y = o, J = c, se = !1;
|
|
1889
|
+
function Se(y) {
|
|
1890
|
+
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), d(y) || j(y) === u;
|
|
1891
|
+
}
|
|
1892
|
+
function d(y) {
|
|
1893
|
+
return j(y) === l;
|
|
1894
|
+
}
|
|
1895
|
+
function m(y) {
|
|
1896
|
+
return j(y) === a;
|
|
1897
|
+
}
|
|
1898
|
+
function P(y) {
|
|
1899
|
+
return j(y) === s;
|
|
1900
|
+
}
|
|
1901
|
+
function w(y) {
|
|
1902
|
+
return typeof y == "object" && y !== null && y.$$typeof === n;
|
|
1903
|
+
}
|
|
1904
|
+
function S(y) {
|
|
1905
|
+
return j(y) === f;
|
|
1906
|
+
}
|
|
1907
|
+
function R(y) {
|
|
1908
|
+
return j(y) === t;
|
|
1909
|
+
}
|
|
1910
|
+
function O(y) {
|
|
1911
|
+
return j(y) === E;
|
|
1912
|
+
}
|
|
1913
|
+
function C(y) {
|
|
1914
|
+
return j(y) === p;
|
|
1915
|
+
}
|
|
1916
|
+
function N(y) {
|
|
1917
|
+
return j(y) === e;
|
|
1918
|
+
}
|
|
1919
|
+
function D(y) {
|
|
1920
|
+
return j(y) === i;
|
|
1921
|
+
}
|
|
1922
|
+
function _(y) {
|
|
1923
|
+
return j(y) === o;
|
|
1924
|
+
}
|
|
1925
|
+
function U(y) {
|
|
1926
|
+
return j(y) === c;
|
|
1927
|
+
}
|
|
1928
|
+
M.AsyncMode = h, M.ConcurrentMode = Z, M.ContextConsumer = ge, M.ContextProvider = he, M.Element = me, M.ForwardRef = Ee, M.Fragment = ae, M.Lazy = be, M.Memo = Te, M.Portal = Q, M.Profiler = xe, M.StrictMode = Y, M.Suspense = J, M.isAsyncMode = Se, M.isConcurrentMode = d, M.isContextConsumer = m, M.isContextProvider = P, M.isElement = w, M.isForwardRef = S, M.isFragment = R, M.isLazy = O, M.isMemo = C, M.isPortal = N, M.isProfiler = D, M.isStrictMode = _, M.isSuspense = U, M.isValidElementType = I, M.typeOf = j;
|
|
1929
|
+
}()), M;
|
|
1930
|
+
}
|
|
1931
|
+
var tt;
|
|
1932
|
+
function ht() {
|
|
1933
|
+
return tt || (tt = 1, process.env.NODE_ENV === "production" ? fe.exports = rr() : fe.exports = nr()), fe.exports;
|
|
1934
|
+
}
|
|
1935
|
+
/*
|
|
1936
|
+
object-assign
|
|
1937
|
+
(c) Sindre Sorhus
|
|
1938
|
+
@license MIT
|
|
1939
|
+
*/
|
|
1940
|
+
var we, rt;
|
|
1941
|
+
function or() {
|
|
1942
|
+
if (rt) return we;
|
|
1943
|
+
rt = 1;
|
|
1944
|
+
var r = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, e = Object.prototype.propertyIsEnumerable;
|
|
1945
|
+
function t(i) {
|
|
1946
|
+
if (i == null)
|
|
1947
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
1948
|
+
return Object(i);
|
|
1949
|
+
}
|
|
1950
|
+
function o() {
|
|
1951
|
+
try {
|
|
1952
|
+
if (!Object.assign)
|
|
1953
|
+
return !1;
|
|
1954
|
+
var i = new String("abc");
|
|
1955
|
+
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
1956
|
+
return !1;
|
|
1957
|
+
for (var s = {}, a = 0; a < 10; a++)
|
|
1958
|
+
s["_" + String.fromCharCode(a)] = a;
|
|
1959
|
+
var u = Object.getOwnPropertyNames(s).map(function(f) {
|
|
1960
|
+
return s[f];
|
|
1961
|
+
});
|
|
1962
|
+
if (u.join("") !== "0123456789")
|
|
1963
|
+
return !1;
|
|
1964
|
+
var l = {};
|
|
1965
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
|
|
1966
|
+
l[f] = f;
|
|
1967
|
+
}), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
|
|
1968
|
+
} catch {
|
|
1969
|
+
return !1;
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
return we = o() ? Object.assign : function(i, s) {
|
|
1973
|
+
for (var a, u = t(i), l, f = 1; f < arguments.length; f++) {
|
|
1974
|
+
a = Object(arguments[f]);
|
|
1975
|
+
for (var c in a)
|
|
1976
|
+
n.call(a, c) && (u[c] = a[c]);
|
|
1977
|
+
if (r) {
|
|
1978
|
+
l = r(a);
|
|
1979
|
+
for (var v = 0; v < l.length; v++)
|
|
1980
|
+
e.call(a, l[v]) && (u[l[v]] = a[l[v]]);
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
return u;
|
|
1984
|
+
}, we;
|
|
1985
|
+
}
|
|
1986
|
+
var Ce, nt;
|
|
1987
|
+
function qe() {
|
|
1988
|
+
if (nt) return Ce;
|
|
1989
|
+
nt = 1;
|
|
1990
|
+
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1991
|
+
return Ce = r, Ce;
|
|
1992
|
+
}
|
|
1993
|
+
var Pe, ot;
|
|
1994
|
+
function mt() {
|
|
1995
|
+
return ot || (ot = 1, Pe = Function.call.bind(Object.prototype.hasOwnProperty)), Pe;
|
|
1996
|
+
}
|
|
1997
|
+
var Ae, it;
|
|
1998
|
+
function ir() {
|
|
1999
|
+
if (it) return Ae;
|
|
2000
|
+
it = 1;
|
|
2001
|
+
var r = function() {
|
|
2002
|
+
};
|
|
2003
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2004
|
+
var n = /* @__PURE__ */ qe(), e = {}, t = /* @__PURE__ */ mt();
|
|
2005
|
+
r = function(i) {
|
|
2006
|
+
var s = "Warning: " + i;
|
|
2007
|
+
typeof console < "u" && console.error(s);
|
|
2008
|
+
try {
|
|
2009
|
+
throw new Error(s);
|
|
2010
|
+
} catch {
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
}
|
|
2014
|
+
function o(i, s, a, u, l) {
|
|
2015
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2016
|
+
for (var f in i)
|
|
2017
|
+
if (t(i, f)) {
|
|
2018
|
+
var c;
|
|
2019
|
+
try {
|
|
2020
|
+
if (typeof i[f] != "function") {
|
|
2021
|
+
var v = Error(
|
|
2022
|
+
(u || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2023
|
+
);
|
|
2024
|
+
throw v.name = "Invariant Violation", v;
|
|
2025
|
+
}
|
|
2026
|
+
c = i[f](s, f, u, a, null, n);
|
|
2027
|
+
} catch (E) {
|
|
2028
|
+
c = E;
|
|
2029
|
+
}
|
|
2030
|
+
if (c && !(c instanceof Error) && r(
|
|
2031
|
+
(u || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2032
|
+
), c instanceof Error && !(c.message in e)) {
|
|
2033
|
+
e[c.message] = !0;
|
|
2034
|
+
var p = l ? l() : "";
|
|
2035
|
+
r(
|
|
2036
|
+
"Failed " + a + " type: " + c.message + (p ?? "")
|
|
2037
|
+
);
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
return o.resetWarningCache = function() {
|
|
2043
|
+
process.env.NODE_ENV !== "production" && (e = {});
|
|
2044
|
+
}, Ae = o, Ae;
|
|
2045
|
+
}
|
|
2046
|
+
var Re, at;
|
|
2047
|
+
function ar() {
|
|
2048
|
+
if (at) return Re;
|
|
2049
|
+
at = 1;
|
|
2050
|
+
var r = ht(), n = or(), e = /* @__PURE__ */ qe(), t = /* @__PURE__ */ mt(), o = /* @__PURE__ */ ir(), i = function() {
|
|
2051
|
+
};
|
|
2052
|
+
process.env.NODE_ENV !== "production" && (i = function(a) {
|
|
2053
|
+
var u = "Warning: " + a;
|
|
2054
|
+
typeof console < "u" && console.error(u);
|
|
2055
|
+
try {
|
|
2056
|
+
throw new Error(u);
|
|
2057
|
+
} catch {
|
|
2058
|
+
}
|
|
2059
|
+
});
|
|
2060
|
+
function s() {
|
|
2061
|
+
return null;
|
|
2062
|
+
}
|
|
2063
|
+
return Re = function(a, u) {
|
|
2064
|
+
var l = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
2065
|
+
function c(d) {
|
|
2066
|
+
var m = d && (l && d[l] || d[f]);
|
|
2067
|
+
if (typeof m == "function")
|
|
2068
|
+
return m;
|
|
2069
|
+
}
|
|
2070
|
+
var v = "<<anonymous>>", p = {
|
|
2071
|
+
array: b("array"),
|
|
2072
|
+
bigint: b("bigint"),
|
|
2073
|
+
bool: b("boolean"),
|
|
2074
|
+
func: b("function"),
|
|
2075
|
+
number: b("number"),
|
|
2076
|
+
object: b("object"),
|
|
2077
|
+
string: b("string"),
|
|
2078
|
+
symbol: b("symbol"),
|
|
2079
|
+
any: k(),
|
|
2080
|
+
arrayOf: I,
|
|
2081
|
+
element: j(),
|
|
2082
|
+
elementType: h(),
|
|
2083
|
+
instanceOf: Z,
|
|
2084
|
+
node: Ee(),
|
|
2085
|
+
objectOf: he,
|
|
2086
|
+
oneOf: ge,
|
|
2087
|
+
oneOfType: me,
|
|
2088
|
+
shape: be,
|
|
2089
|
+
exact: Te
|
|
2090
|
+
};
|
|
2091
|
+
function E(d, m) {
|
|
2092
|
+
return d === m ? d !== 0 || 1 / d === 1 / m : d !== d && m !== m;
|
|
2093
|
+
}
|
|
2094
|
+
function g(d, m) {
|
|
2095
|
+
this.message = d, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
|
|
2096
|
+
}
|
|
2097
|
+
g.prototype = Error.prototype;
|
|
2098
|
+
function T(d) {
|
|
2099
|
+
if (process.env.NODE_ENV !== "production")
|
|
2100
|
+
var m = {}, P = 0;
|
|
2101
|
+
function w(R, O, C, N, D, _, U) {
|
|
2102
|
+
if (N = N || v, _ = _ || C, U !== e) {
|
|
2103
|
+
if (u) {
|
|
2104
|
+
var y = new Error(
|
|
2105
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2106
|
+
);
|
|
2107
|
+
throw y.name = "Invariant Violation", y;
|
|
2108
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2109
|
+
var B = N + ":" + C;
|
|
2110
|
+
!m[B] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2111
|
+
P < 3 && (i(
|
|
2112
|
+
"You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2113
|
+
), m[B] = !0, P++);
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
return O[C] == null ? R ? O[C] === null ? new g("The " + D + " `" + _ + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + D + " `" + _ + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : d(O, C, N, D, _);
|
|
2117
|
+
}
|
|
2118
|
+
var S = w.bind(null, !1);
|
|
2119
|
+
return S.isRequired = w.bind(null, !0), S;
|
|
2120
|
+
}
|
|
2121
|
+
function b(d) {
|
|
2122
|
+
function m(P, w, S, R, O, C) {
|
|
2123
|
+
var N = P[w], D = Y(N);
|
|
2124
|
+
if (D !== d) {
|
|
2125
|
+
var _ = J(N);
|
|
2126
|
+
return new g(
|
|
2127
|
+
"Invalid " + R + " `" + O + "` of type " + ("`" + _ + "` supplied to `" + S + "`, expected ") + ("`" + d + "`."),
|
|
2128
|
+
{ expectedType: d }
|
|
2129
|
+
);
|
|
2130
|
+
}
|
|
2131
|
+
return null;
|
|
2132
|
+
}
|
|
2133
|
+
return T(m);
|
|
2134
|
+
}
|
|
2135
|
+
function k() {
|
|
2136
|
+
return T(s);
|
|
2137
|
+
}
|
|
2138
|
+
function I(d) {
|
|
2139
|
+
function m(P, w, S, R, O) {
|
|
2140
|
+
if (typeof d != "function")
|
|
2141
|
+
return new g("Property `" + O + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
2142
|
+
var C = P[w];
|
|
2143
|
+
if (!Array.isArray(C)) {
|
|
2144
|
+
var N = Y(C);
|
|
2145
|
+
return new g("Invalid " + R + " `" + O + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an array."));
|
|
2146
|
+
}
|
|
2147
|
+
for (var D = 0; D < C.length; D++) {
|
|
2148
|
+
var _ = d(C, D, S, R, O + "[" + D + "]", e);
|
|
2149
|
+
if (_ instanceof Error)
|
|
2150
|
+
return _;
|
|
2151
|
+
}
|
|
2152
|
+
return null;
|
|
2153
|
+
}
|
|
2154
|
+
return T(m);
|
|
2155
|
+
}
|
|
2156
|
+
function j() {
|
|
2157
|
+
function d(m, P, w, S, R) {
|
|
2158
|
+
var O = m[P];
|
|
2159
|
+
if (!a(O)) {
|
|
2160
|
+
var C = Y(O);
|
|
2161
|
+
return new g("Invalid " + S + " `" + R + "` of type " + ("`" + C + "` supplied to `" + w + "`, expected a single ReactElement."));
|
|
2162
|
+
}
|
|
2163
|
+
return null;
|
|
2164
|
+
}
|
|
2165
|
+
return T(d);
|
|
2166
|
+
}
|
|
2167
|
+
function h() {
|
|
2168
|
+
function d(m, P, w, S, R) {
|
|
2169
|
+
var O = m[P];
|
|
2170
|
+
if (!r.isValidElementType(O)) {
|
|
2171
|
+
var C = Y(O);
|
|
2172
|
+
return new g("Invalid " + S + " `" + R + "` of type " + ("`" + C + "` supplied to `" + w + "`, expected a single ReactElement type."));
|
|
2173
|
+
}
|
|
2174
|
+
return null;
|
|
2175
|
+
}
|
|
2176
|
+
return T(d);
|
|
2177
|
+
}
|
|
2178
|
+
function Z(d) {
|
|
2179
|
+
function m(P, w, S, R, O) {
|
|
2180
|
+
if (!(P[w] instanceof d)) {
|
|
2181
|
+
var C = d.name || v, N = Se(P[w]);
|
|
2182
|
+
return new g("Invalid " + R + " `" + O + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected ") + ("instance of `" + C + "`."));
|
|
2183
|
+
}
|
|
2184
|
+
return null;
|
|
2185
|
+
}
|
|
2186
|
+
return T(m);
|
|
2187
|
+
}
|
|
2188
|
+
function ge(d) {
|
|
2189
|
+
if (!Array.isArray(d))
|
|
2190
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
2191
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2192
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2193
|
+
function m(P, w, S, R, O) {
|
|
2194
|
+
for (var C = P[w], N = 0; N < d.length; N++)
|
|
2195
|
+
if (E(C, d[N]))
|
|
2196
|
+
return null;
|
|
2197
|
+
var D = JSON.stringify(d, function(U, y) {
|
|
2198
|
+
var B = J(y);
|
|
2199
|
+
return B === "symbol" ? String(y) : y;
|
|
2200
|
+
});
|
|
2201
|
+
return new g("Invalid " + R + " `" + O + "` of value `" + String(C) + "` " + ("supplied to `" + S + "`, expected one of " + D + "."));
|
|
2202
|
+
}
|
|
2203
|
+
return T(m);
|
|
2204
|
+
}
|
|
2205
|
+
function he(d) {
|
|
2206
|
+
function m(P, w, S, R, O) {
|
|
2207
|
+
if (typeof d != "function")
|
|
2208
|
+
return new g("Property `" + O + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
2209
|
+
var C = P[w], N = Y(C);
|
|
2210
|
+
if (N !== "object")
|
|
2211
|
+
return new g("Invalid " + R + " `" + O + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an object."));
|
|
2212
|
+
for (var D in C)
|
|
2213
|
+
if (t(C, D)) {
|
|
2214
|
+
var _ = d(C, D, S, R, O + "." + D, e);
|
|
2215
|
+
if (_ instanceof Error)
|
|
2216
|
+
return _;
|
|
2217
|
+
}
|
|
2218
|
+
return null;
|
|
2219
|
+
}
|
|
2220
|
+
return T(m);
|
|
2221
|
+
}
|
|
2222
|
+
function me(d) {
|
|
2223
|
+
if (!Array.isArray(d))
|
|
2224
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
2225
|
+
for (var m = 0; m < d.length; m++) {
|
|
2226
|
+
var P = d[m];
|
|
2227
|
+
if (typeof P != "function")
|
|
2228
|
+
return i(
|
|
2229
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(P) + " at index " + m + "."
|
|
2230
|
+
), s;
|
|
2231
|
+
}
|
|
2232
|
+
function w(S, R, O, C, N) {
|
|
2233
|
+
for (var D = [], _ = 0; _ < d.length; _++) {
|
|
2234
|
+
var U = d[_], y = U(S, R, O, C, N, e);
|
|
2235
|
+
if (y == null)
|
|
2236
|
+
return null;
|
|
2237
|
+
y.data && t(y.data, "expectedType") && D.push(y.data.expectedType);
|
|
2238
|
+
}
|
|
2239
|
+
var B = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
|
|
2240
|
+
return new g("Invalid " + C + " `" + N + "` supplied to " + ("`" + O + "`" + B + "."));
|
|
2241
|
+
}
|
|
2242
|
+
return T(w);
|
|
2243
|
+
}
|
|
2244
|
+
function Ee() {
|
|
2245
|
+
function d(m, P, w, S, R) {
|
|
2246
|
+
return Q(m[P]) ? null : new g("Invalid " + S + " `" + R + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
|
|
2247
|
+
}
|
|
2248
|
+
return T(d);
|
|
2249
|
+
}
|
|
2250
|
+
function ae(d, m, P, w, S) {
|
|
2251
|
+
return new g(
|
|
2252
|
+
(d || "React class") + ": " + m + " type `" + P + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
|
|
2253
|
+
);
|
|
2254
|
+
}
|
|
2255
|
+
function be(d) {
|
|
2256
|
+
function m(P, w, S, R, O) {
|
|
2257
|
+
var C = P[w], N = Y(C);
|
|
2258
|
+
if (N !== "object")
|
|
2259
|
+
return new g("Invalid " + R + " `" + O + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
2260
|
+
for (var D in d) {
|
|
2261
|
+
var _ = d[D];
|
|
2262
|
+
if (typeof _ != "function")
|
|
2263
|
+
return ae(S, R, O, D, J(_));
|
|
2264
|
+
var U = _(C, D, S, R, O + "." + D, e);
|
|
2265
|
+
if (U)
|
|
2266
|
+
return U;
|
|
2267
|
+
}
|
|
2268
|
+
return null;
|
|
2269
|
+
}
|
|
2270
|
+
return T(m);
|
|
2271
|
+
}
|
|
2272
|
+
function Te(d) {
|
|
2273
|
+
function m(P, w, S, R, O) {
|
|
2274
|
+
var C = P[w], N = Y(C);
|
|
2275
|
+
if (N !== "object")
|
|
2276
|
+
return new g("Invalid " + R + " `" + O + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
2277
|
+
var D = n({}, P[w], d);
|
|
2278
|
+
for (var _ in D) {
|
|
2279
|
+
var U = d[_];
|
|
2280
|
+
if (t(d, _) && typeof U != "function")
|
|
2281
|
+
return ae(S, R, O, _, J(U));
|
|
2282
|
+
if (!U)
|
|
2283
|
+
return new g(
|
|
2284
|
+
"Invalid " + R + " `" + O + "` key `" + _ + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(P[w], null, " ") + `
|
|
2285
|
+
Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
2286
|
+
);
|
|
2287
|
+
var y = U(C, _, S, R, O + "." + _, e);
|
|
2288
|
+
if (y)
|
|
2289
|
+
return y;
|
|
2290
|
+
}
|
|
2291
|
+
return null;
|
|
2292
|
+
}
|
|
2293
|
+
return T(m);
|
|
2294
|
+
}
|
|
2295
|
+
function Q(d) {
|
|
2296
|
+
switch (typeof d) {
|
|
2297
|
+
case "number":
|
|
2298
|
+
case "string":
|
|
2299
|
+
case "undefined":
|
|
2300
|
+
return !0;
|
|
2301
|
+
case "boolean":
|
|
2302
|
+
return !d;
|
|
2303
|
+
case "object":
|
|
2304
|
+
if (Array.isArray(d))
|
|
2305
|
+
return d.every(Q);
|
|
2306
|
+
if (d === null || a(d))
|
|
2307
|
+
return !0;
|
|
2308
|
+
var m = c(d);
|
|
2309
|
+
if (m) {
|
|
2310
|
+
var P = m.call(d), w;
|
|
2311
|
+
if (m !== d.entries) {
|
|
2312
|
+
for (; !(w = P.next()).done; )
|
|
2313
|
+
if (!Q(w.value))
|
|
2314
|
+
return !1;
|
|
2315
|
+
} else
|
|
2316
|
+
for (; !(w = P.next()).done; ) {
|
|
2317
|
+
var S = w.value;
|
|
2318
|
+
if (S && !Q(S[1]))
|
|
2319
|
+
return !1;
|
|
2320
|
+
}
|
|
2321
|
+
} else
|
|
2322
|
+
return !1;
|
|
2323
|
+
return !0;
|
|
2324
|
+
default:
|
|
2325
|
+
return !1;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
function xe(d, m) {
|
|
2329
|
+
return d === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
|
|
2330
|
+
}
|
|
2331
|
+
function Y(d) {
|
|
2332
|
+
var m = typeof d;
|
|
2333
|
+
return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : xe(m, d) ? "symbol" : m;
|
|
2334
|
+
}
|
|
2335
|
+
function J(d) {
|
|
2336
|
+
if (typeof d > "u" || d === null)
|
|
2337
|
+
return "" + d;
|
|
2338
|
+
var m = Y(d);
|
|
2339
|
+
if (m === "object") {
|
|
2340
|
+
if (d instanceof Date)
|
|
2341
|
+
return "date";
|
|
2342
|
+
if (d instanceof RegExp)
|
|
2343
|
+
return "regexp";
|
|
2344
|
+
}
|
|
2345
|
+
return m;
|
|
2346
|
+
}
|
|
2347
|
+
function se(d) {
|
|
2348
|
+
var m = J(d);
|
|
2349
|
+
switch (m) {
|
|
2350
|
+
case "array":
|
|
2351
|
+
case "object":
|
|
2352
|
+
return "an " + m;
|
|
2353
|
+
case "boolean":
|
|
2354
|
+
case "date":
|
|
2355
|
+
case "regexp":
|
|
2356
|
+
return "a " + m;
|
|
2357
|
+
default:
|
|
2358
|
+
return m;
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
function Se(d) {
|
|
2362
|
+
return !d.constructor || !d.constructor.name ? v : d.constructor.name;
|
|
2363
|
+
}
|
|
2364
|
+
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
|
|
2365
|
+
}, Re;
|
|
2366
|
+
}
|
|
2367
|
+
var Ne, st;
|
|
2368
|
+
function sr() {
|
|
2369
|
+
if (st) return Ne;
|
|
2370
|
+
st = 1;
|
|
2371
|
+
var r = /* @__PURE__ */ qe();
|
|
2372
|
+
function n() {
|
|
2373
|
+
}
|
|
2374
|
+
function e() {
|
|
2375
|
+
}
|
|
2376
|
+
return e.resetWarningCache = n, Ne = function() {
|
|
2377
|
+
function t(s, a, u, l, f, c) {
|
|
2378
|
+
if (c !== r) {
|
|
2379
|
+
var v = new Error(
|
|
2380
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2381
|
+
);
|
|
2382
|
+
throw v.name = "Invariant Violation", v;
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
t.isRequired = t;
|
|
2386
|
+
function o() {
|
|
2387
|
+
return t;
|
|
2388
|
+
}
|
|
2389
|
+
var i = {
|
|
2390
|
+
array: t,
|
|
2391
|
+
bigint: t,
|
|
2392
|
+
bool: t,
|
|
2393
|
+
func: t,
|
|
2394
|
+
number: t,
|
|
2395
|
+
object: t,
|
|
2396
|
+
string: t,
|
|
2397
|
+
symbol: t,
|
|
2398
|
+
any: t,
|
|
2399
|
+
arrayOf: o,
|
|
2400
|
+
element: t,
|
|
2401
|
+
elementType: t,
|
|
2402
|
+
instanceOf: o,
|
|
2403
|
+
node: t,
|
|
2404
|
+
objectOf: o,
|
|
2405
|
+
oneOf: o,
|
|
2406
|
+
oneOfType: o,
|
|
2407
|
+
shape: o,
|
|
2408
|
+
exact: o,
|
|
2409
|
+
checkPropTypes: e,
|
|
2410
|
+
resetWarningCache: n
|
|
2411
|
+
};
|
|
2412
|
+
return i.PropTypes = i, i;
|
|
2413
|
+
}, Ne;
|
|
2414
|
+
}
|
|
2415
|
+
var ut;
|
|
2416
|
+
function ur() {
|
|
2417
|
+
if (ut) return le.exports;
|
|
2418
|
+
if (ut = 1, process.env.NODE_ENV !== "production") {
|
|
2419
|
+
var r = ht(), n = !0;
|
|
2420
|
+
le.exports = /* @__PURE__ */ ar()(r.isElement, n);
|
|
2421
|
+
} else
|
|
2422
|
+
le.exports = /* @__PURE__ */ sr()();
|
|
2423
|
+
return le.exports;
|
|
2424
|
+
}
|
|
2425
|
+
var lr = /* @__PURE__ */ ur();
|
|
2426
|
+
const x = /* @__PURE__ */ Tt(lr);
|
|
2427
|
+
function fr(r, n) {
|
|
2428
|
+
return r.classList ? !!n && r.classList.contains(n) : (" " + (r.className.baseVal || r.className) + " ").indexOf(" " + n + " ") !== -1;
|
|
2429
|
+
}
|
|
2430
|
+
function cr(r, n) {
|
|
2431
|
+
r.classList ? r.classList.add(n) : fr(r, n) || (typeof r.className == "string" ? r.className = r.className + " " + n : r.setAttribute("class", (r.className && r.className.baseVal || "") + " " + n));
|
|
2432
|
+
}
|
|
2433
|
+
function lt(r, n) {
|
|
2434
|
+
return r.replace(new RegExp("(^|\\s)" + n + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
2435
|
+
}
|
|
2436
|
+
function dr(r, n) {
|
|
2437
|
+
r.classList ? r.classList.remove(n) : typeof r.className == "string" ? r.className = lt(r.className, n) : r.setAttribute("class", lt(r.className && r.className.baseVal || "", n));
|
|
2438
|
+
}
|
|
2439
|
+
const ft = {
|
|
2440
|
+
disabled: !1
|
|
2441
|
+
};
|
|
2442
|
+
var pr = process.env.NODE_ENV !== "production" ? x.oneOfType([x.number, x.shape({
|
|
2443
|
+
enter: x.number,
|
|
2444
|
+
exit: x.number,
|
|
2445
|
+
appear: x.number
|
|
2446
|
+
}).isRequired]) : null, vr = process.env.NODE_ENV !== "production" ? x.oneOfType([x.string, x.shape({
|
|
2447
|
+
enter: x.string,
|
|
2448
|
+
exit: x.string,
|
|
2449
|
+
active: x.string
|
|
2450
|
+
}), x.shape({
|
|
2451
|
+
enter: x.string,
|
|
2452
|
+
enterDone: x.string,
|
|
2453
|
+
enterActive: x.string,
|
|
2454
|
+
exit: x.string,
|
|
2455
|
+
exitDone: x.string,
|
|
2456
|
+
exitActive: x.string
|
|
2457
|
+
})]) : null;
|
|
2458
|
+
const Et = X.createContext(null);
|
|
2459
|
+
var bt = function(n) {
|
|
2460
|
+
return n.scrollTop;
|
|
2461
|
+
}, ne = "unmounted", G = "exited", K = "entering", te = "entered", je = "exiting", V = /* @__PURE__ */ function(r) {
|
|
2462
|
+
gt(n, r);
|
|
2463
|
+
function n(t, o) {
|
|
2464
|
+
var i;
|
|
2465
|
+
i = r.call(this, t, o) || this;
|
|
2466
|
+
var s = o, a = s && !s.isMounting ? t.enter : t.appear, u;
|
|
2467
|
+
return i.appearStatus = null, t.in ? a ? (u = G, i.appearStatus = K) : u = te : t.unmountOnExit || t.mountOnEnter ? u = ne : u = G, i.state = {
|
|
2468
|
+
status: u
|
|
2469
|
+
}, i.nextCallback = null, i;
|
|
2470
|
+
}
|
|
2471
|
+
n.getDerivedStateFromProps = function(o, i) {
|
|
2472
|
+
var s = o.in;
|
|
2473
|
+
return s && i.status === ne ? {
|
|
2474
|
+
status: G
|
|
2475
|
+
} : null;
|
|
2476
|
+
};
|
|
2477
|
+
var e = n.prototype;
|
|
2478
|
+
return e.componentDidMount = function() {
|
|
2479
|
+
this.updateStatus(!0, this.appearStatus);
|
|
2480
|
+
}, e.componentDidUpdate = function(o) {
|
|
2481
|
+
var i = null;
|
|
2482
|
+
if (o !== this.props) {
|
|
2483
|
+
var s = this.state.status;
|
|
2484
|
+
this.props.in ? s !== K && s !== te && (i = K) : (s === K || s === te) && (i = je);
|
|
2485
|
+
}
|
|
2486
|
+
this.updateStatus(!1, i);
|
|
2487
|
+
}, e.componentWillUnmount = function() {
|
|
2488
|
+
this.cancelNextCallback();
|
|
2489
|
+
}, e.getTimeouts = function() {
|
|
2490
|
+
var o = this.props.timeout, i, s, a;
|
|
2491
|
+
return i = s = a = o, o != null && typeof o != "number" && (i = o.exit, s = o.enter, a = o.appear !== void 0 ? o.appear : s), {
|
|
2492
|
+
exit: i,
|
|
2493
|
+
enter: s,
|
|
2494
|
+
appear: a
|
|
2495
|
+
};
|
|
2496
|
+
}, e.updateStatus = function(o, i) {
|
|
2497
|
+
if (o === void 0 && (o = !1), i !== null)
|
|
2498
|
+
if (this.cancelNextCallback(), i === K) {
|
|
2499
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
2500
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : re.findDOMNode(this);
|
|
2501
|
+
s && bt(s);
|
|
2502
|
+
}
|
|
2503
|
+
this.performEnter(o);
|
|
2504
|
+
} else
|
|
2505
|
+
this.performExit();
|
|
2506
|
+
else this.props.unmountOnExit && this.state.status === G && this.setState({
|
|
2507
|
+
status: ne
|
|
2508
|
+
});
|
|
2509
|
+
}, e.performEnter = function(o) {
|
|
2510
|
+
var i = this, s = this.props.enter, a = this.context ? this.context.isMounting : o, u = this.props.nodeRef ? [a] : [re.findDOMNode(this), a], l = u[0], f = u[1], c = this.getTimeouts(), v = a ? c.appear : c.enter;
|
|
2511
|
+
if (!o && !s || ft.disabled) {
|
|
2512
|
+
this.safeSetState({
|
|
2513
|
+
status: te
|
|
2514
|
+
}, function() {
|
|
2515
|
+
i.props.onEntered(l);
|
|
2516
|
+
});
|
|
2517
|
+
return;
|
|
2518
|
+
}
|
|
2519
|
+
this.props.onEnter(l, f), this.safeSetState({
|
|
2520
|
+
status: K
|
|
2521
|
+
}, function() {
|
|
2522
|
+
i.props.onEntering(l, f), i.onTransitionEnd(v, function() {
|
|
2523
|
+
i.safeSetState({
|
|
2524
|
+
status: te
|
|
2525
|
+
}, function() {
|
|
2526
|
+
i.props.onEntered(l, f);
|
|
2527
|
+
});
|
|
2528
|
+
});
|
|
2529
|
+
});
|
|
2530
|
+
}, e.performExit = function() {
|
|
2531
|
+
var o = this, i = this.props.exit, s = this.getTimeouts(), a = this.props.nodeRef ? void 0 : re.findDOMNode(this);
|
|
2532
|
+
if (!i || ft.disabled) {
|
|
2533
|
+
this.safeSetState({
|
|
2534
|
+
status: G
|
|
2535
|
+
}, function() {
|
|
2536
|
+
o.props.onExited(a);
|
|
2537
|
+
});
|
|
2538
|
+
return;
|
|
2539
|
+
}
|
|
2540
|
+
this.props.onExit(a), this.safeSetState({
|
|
2541
|
+
status: je
|
|
2542
|
+
}, function() {
|
|
2543
|
+
o.props.onExiting(a), o.onTransitionEnd(s.exit, function() {
|
|
2544
|
+
o.safeSetState({
|
|
2545
|
+
status: G
|
|
2546
|
+
}, function() {
|
|
2547
|
+
o.props.onExited(a);
|
|
2548
|
+
});
|
|
2549
|
+
});
|
|
2550
|
+
});
|
|
2551
|
+
}, e.cancelNextCallback = function() {
|
|
2552
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
2553
|
+
}, e.safeSetState = function(o, i) {
|
|
2554
|
+
i = this.setNextCallback(i), this.setState(o, i);
|
|
2555
|
+
}, e.setNextCallback = function(o) {
|
|
2556
|
+
var i = this, s = !0;
|
|
2557
|
+
return this.nextCallback = function(a) {
|
|
2558
|
+
s && (s = !1, i.nextCallback = null, o(a));
|
|
2559
|
+
}, this.nextCallback.cancel = function() {
|
|
2560
|
+
s = !1;
|
|
2561
|
+
}, this.nextCallback;
|
|
2562
|
+
}, e.onTransitionEnd = function(o, i) {
|
|
2563
|
+
this.setNextCallback(i);
|
|
2564
|
+
var s = this.props.nodeRef ? this.props.nodeRef.current : re.findDOMNode(this), a = o == null && !this.props.addEndListener;
|
|
2565
|
+
if (!s || a) {
|
|
2566
|
+
setTimeout(this.nextCallback, 0);
|
|
2567
|
+
return;
|
|
2568
|
+
}
|
|
2569
|
+
if (this.props.addEndListener) {
|
|
2570
|
+
var u = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], l = u[0], f = u[1];
|
|
2571
|
+
this.props.addEndListener(l, f);
|
|
2572
|
+
}
|
|
2573
|
+
o != null && setTimeout(this.nextCallback, o);
|
|
2574
|
+
}, e.render = function() {
|
|
2575
|
+
var o = this.state.status;
|
|
2576
|
+
if (o === ne)
|
|
2577
|
+
return null;
|
|
2578
|
+
var i = this.props, s = i.children;
|
|
2579
|
+
i.in, i.mountOnEnter, i.unmountOnExit, i.appear, i.enter, i.exit, i.timeout, i.addEndListener, i.onEnter, i.onEntering, i.onEntered, i.onExit, i.onExiting, i.onExited, i.nodeRef;
|
|
2580
|
+
var a = yt(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
2581
|
+
return (
|
|
2582
|
+
// allows for nested Transitions
|
|
2583
|
+
/* @__PURE__ */ X.createElement(Et.Provider, {
|
|
2584
|
+
value: null
|
|
2585
|
+
}, typeof s == "function" ? s(o, a) : X.cloneElement(X.Children.only(s), a))
|
|
2586
|
+
);
|
|
2587
|
+
}, n;
|
|
2588
|
+
}(X.Component);
|
|
2589
|
+
V.contextType = Et;
|
|
2590
|
+
V.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
2591
|
+
/**
|
|
2592
|
+
* A React reference to DOM element that need to transition:
|
|
2593
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
2594
|
+
*
|
|
2595
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
2596
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
2597
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
2598
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
2599
|
+
* (see
|
|
2600
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
2601
|
+
*/
|
|
2602
|
+
nodeRef: x.shape({
|
|
2603
|
+
current: typeof Element > "u" ? x.any : function(r, n, e, t, o, i) {
|
|
2604
|
+
var s = r[n];
|
|
2605
|
+
return x.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(r, n, e, t, o, i);
|
|
2606
|
+
}
|
|
2607
|
+
}),
|
|
2608
|
+
/**
|
|
2609
|
+
* A `function` child can be used instead of a React element. This function is
|
|
2610
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
2611
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
2612
|
+
* specific props to a component.
|
|
2613
|
+
*
|
|
2614
|
+
* ```jsx
|
|
2615
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
2616
|
+
* {state => (
|
|
2617
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
2618
|
+
* )}
|
|
2619
|
+
* </Transition>
|
|
2620
|
+
* ```
|
|
2621
|
+
*/
|
|
2622
|
+
children: x.oneOfType([x.func.isRequired, x.element.isRequired]).isRequired,
|
|
2623
|
+
/**
|
|
2624
|
+
* Show the component; triggers the enter or exit states
|
|
2625
|
+
*/
|
|
2626
|
+
in: x.bool,
|
|
2627
|
+
/**
|
|
2628
|
+
* By default the child component is mounted immediately along with
|
|
2629
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
2630
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
2631
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
2632
|
+
*/
|
|
2633
|
+
mountOnEnter: x.bool,
|
|
2634
|
+
/**
|
|
2635
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
2636
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
2637
|
+
*/
|
|
2638
|
+
unmountOnExit: x.bool,
|
|
2639
|
+
/**
|
|
2640
|
+
* By default the child component does not perform the enter transition when
|
|
2641
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
2642
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
2643
|
+
*
|
|
2644
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
2645
|
+
* > only adds an additional enter transition. However, in the
|
|
2646
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
2647
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
2648
|
+
* > differently.
|
|
2649
|
+
*/
|
|
2650
|
+
appear: x.bool,
|
|
2651
|
+
/**
|
|
2652
|
+
* Enable or disable enter transitions.
|
|
2653
|
+
*/
|
|
2654
|
+
enter: x.bool,
|
|
2655
|
+
/**
|
|
2656
|
+
* Enable or disable exit transitions.
|
|
2657
|
+
*/
|
|
2658
|
+
exit: x.bool,
|
|
2659
|
+
/**
|
|
2660
|
+
* The duration of the transition, in milliseconds.
|
|
2661
|
+
* Required unless `addEndListener` is provided.
|
|
2662
|
+
*
|
|
2663
|
+
* You may specify a single timeout for all transitions:
|
|
2664
|
+
*
|
|
2665
|
+
* ```jsx
|
|
2666
|
+
* timeout={500}
|
|
2667
|
+
* ```
|
|
2668
|
+
*
|
|
2669
|
+
* or individually:
|
|
2670
|
+
*
|
|
2671
|
+
* ```jsx
|
|
2672
|
+
* timeout={{
|
|
2673
|
+
* appear: 500,
|
|
2674
|
+
* enter: 300,
|
|
2675
|
+
* exit: 500,
|
|
2676
|
+
* }}
|
|
2677
|
+
* ```
|
|
2678
|
+
*
|
|
2679
|
+
* - `appear` defaults to the value of `enter`
|
|
2680
|
+
* - `enter` defaults to `0`
|
|
2681
|
+
* - `exit` defaults to `0`
|
|
2682
|
+
*
|
|
2683
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
2684
|
+
*/
|
|
2685
|
+
timeout: function(n) {
|
|
2686
|
+
var e = pr;
|
|
2687
|
+
n.addEndListener || (e = e.isRequired);
|
|
2688
|
+
for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2689
|
+
o[i - 1] = arguments[i];
|
|
2690
|
+
return e.apply(void 0, [n].concat(o));
|
|
2691
|
+
},
|
|
2692
|
+
/**
|
|
2693
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
2694
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
2695
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
2696
|
+
*
|
|
2697
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2698
|
+
*
|
|
2699
|
+
* ```jsx
|
|
2700
|
+
* addEndListener={(node, done) => {
|
|
2701
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
2702
|
+
* node.addEventListener('transitionend', done, false);
|
|
2703
|
+
* }}
|
|
2704
|
+
* ```
|
|
2705
|
+
*/
|
|
2706
|
+
addEndListener: x.func,
|
|
2707
|
+
/**
|
|
2708
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
2709
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
2710
|
+
*
|
|
2711
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2712
|
+
*
|
|
2713
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2714
|
+
*/
|
|
2715
|
+
onEnter: x.func,
|
|
2716
|
+
/**
|
|
2717
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
2718
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
2719
|
+
*
|
|
2720
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2721
|
+
*
|
|
2722
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2723
|
+
*/
|
|
2724
|
+
onEntering: x.func,
|
|
2725
|
+
/**
|
|
2726
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
2727
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
2728
|
+
*
|
|
2729
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2730
|
+
*
|
|
2731
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
2732
|
+
*/
|
|
2733
|
+
onEntered: x.func,
|
|
2734
|
+
/**
|
|
2735
|
+
* Callback fired before the "exiting" status is applied.
|
|
2736
|
+
*
|
|
2737
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2738
|
+
*
|
|
2739
|
+
* @type Function(node: HtmlElement) -> void
|
|
2740
|
+
*/
|
|
2741
|
+
onExit: x.func,
|
|
2742
|
+
/**
|
|
2743
|
+
* Callback fired after the "exiting" status is applied.
|
|
2744
|
+
*
|
|
2745
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2746
|
+
*
|
|
2747
|
+
* @type Function(node: HtmlElement) -> void
|
|
2748
|
+
*/
|
|
2749
|
+
onExiting: x.func,
|
|
2750
|
+
/**
|
|
2751
|
+
* Callback fired after the "exited" status is applied.
|
|
2752
|
+
*
|
|
2753
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
2754
|
+
*
|
|
2755
|
+
* @type Function(node: HtmlElement) -> void
|
|
2756
|
+
*/
|
|
2757
|
+
onExited: x.func
|
|
2758
|
+
} : {};
|
|
2759
|
+
function ee() {
|
|
2760
|
+
}
|
|
2761
|
+
V.defaultProps = {
|
|
2762
|
+
in: !1,
|
|
2763
|
+
mountOnEnter: !1,
|
|
2764
|
+
unmountOnExit: !1,
|
|
2765
|
+
appear: !1,
|
|
2766
|
+
enter: !0,
|
|
2767
|
+
exit: !0,
|
|
2768
|
+
onEnter: ee,
|
|
2769
|
+
onEntering: ee,
|
|
2770
|
+
onEntered: ee,
|
|
2771
|
+
onExit: ee,
|
|
2772
|
+
onExiting: ee,
|
|
2773
|
+
onExited: ee
|
|
2774
|
+
};
|
|
2775
|
+
V.UNMOUNTED = ne;
|
|
2776
|
+
V.EXITED = G;
|
|
2777
|
+
V.ENTERING = K;
|
|
2778
|
+
V.ENTERED = te;
|
|
2779
|
+
V.EXITING = je;
|
|
2780
|
+
var yr = function(n, e) {
|
|
2781
|
+
return n && e && e.split(" ").forEach(function(t) {
|
|
2782
|
+
return cr(n, t);
|
|
2783
|
+
});
|
|
2784
|
+
}, _e = function(n, e) {
|
|
2785
|
+
return n && e && e.split(" ").forEach(function(t) {
|
|
2786
|
+
return dr(n, t);
|
|
2787
|
+
});
|
|
2788
|
+
}, Ye = /* @__PURE__ */ function(r) {
|
|
2789
|
+
gt(n, r);
|
|
2790
|
+
function n() {
|
|
2791
|
+
for (var t, o = arguments.length, i = new Array(o), s = 0; s < o; s++)
|
|
2792
|
+
i[s] = arguments[s];
|
|
2793
|
+
return t = r.call.apply(r, [this].concat(i)) || this, t.appliedClasses = {
|
|
2794
|
+
appear: {},
|
|
2795
|
+
enter: {},
|
|
2796
|
+
exit: {}
|
|
2797
|
+
}, t.onEnter = function(a, u) {
|
|
2798
|
+
var l = t.resolveArguments(a, u), f = l[0], c = l[1];
|
|
2799
|
+
t.removeClasses(f, "exit"), t.addClass(f, c ? "appear" : "enter", "base"), t.props.onEnter && t.props.onEnter(a, u);
|
|
2800
|
+
}, t.onEntering = function(a, u) {
|
|
2801
|
+
var l = t.resolveArguments(a, u), f = l[0], c = l[1], v = c ? "appear" : "enter";
|
|
2802
|
+
t.addClass(f, v, "active"), t.props.onEntering && t.props.onEntering(a, u);
|
|
2803
|
+
}, t.onEntered = function(a, u) {
|
|
2804
|
+
var l = t.resolveArguments(a, u), f = l[0], c = l[1], v = c ? "appear" : "enter";
|
|
2805
|
+
t.removeClasses(f, v), t.addClass(f, v, "done"), t.props.onEntered && t.props.onEntered(a, u);
|
|
2806
|
+
}, t.onExit = function(a) {
|
|
2807
|
+
var u = t.resolveArguments(a), l = u[0];
|
|
2808
|
+
t.removeClasses(l, "appear"), t.removeClasses(l, "enter"), t.addClass(l, "exit", "base"), t.props.onExit && t.props.onExit(a);
|
|
2809
|
+
}, t.onExiting = function(a) {
|
|
2810
|
+
var u = t.resolveArguments(a), l = u[0];
|
|
2811
|
+
t.addClass(l, "exit", "active"), t.props.onExiting && t.props.onExiting(a);
|
|
2812
|
+
}, t.onExited = function(a) {
|
|
2813
|
+
var u = t.resolveArguments(a), l = u[0];
|
|
2814
|
+
t.removeClasses(l, "exit"), t.addClass(l, "exit", "done"), t.props.onExited && t.props.onExited(a);
|
|
2815
|
+
}, t.resolveArguments = function(a, u) {
|
|
2816
|
+
return t.props.nodeRef ? [t.props.nodeRef.current, a] : [a, u];
|
|
2817
|
+
}, t.getClassNames = function(a) {
|
|
2818
|
+
var u = t.props.classNames, l = typeof u == "string", f = l && u ? u + "-" : "", c = l ? "" + f + a : u[a], v = l ? c + "-active" : u[a + "Active"], p = l ? c + "-done" : u[a + "Done"];
|
|
2819
|
+
return {
|
|
2820
|
+
baseClassName: c,
|
|
2821
|
+
activeClassName: v,
|
|
2822
|
+
doneClassName: p
|
|
2823
|
+
};
|
|
2824
|
+
}, t;
|
|
2825
|
+
}
|
|
2826
|
+
var e = n.prototype;
|
|
2827
|
+
return e.addClass = function(o, i, s) {
|
|
2828
|
+
var a = this.getClassNames(i)[s + "ClassName"], u = this.getClassNames("enter"), l = u.doneClassName;
|
|
2829
|
+
i === "appear" && s === "done" && l && (a += " " + l), s === "active" && o && bt(o), a && (this.appliedClasses[i][s] = a, yr(o, a));
|
|
2830
|
+
}, e.removeClasses = function(o, i) {
|
|
2831
|
+
var s = this.appliedClasses[i], a = s.base, u = s.active, l = s.done;
|
|
2832
|
+
this.appliedClasses[i] = {}, a && _e(o, a), u && _e(o, u), l && _e(o, l);
|
|
2833
|
+
}, e.render = function() {
|
|
2834
|
+
var o = this.props;
|
|
2835
|
+
o.classNames;
|
|
2836
|
+
var i = yt(o, ["classNames"]);
|
|
2837
|
+
return /* @__PURE__ */ X.createElement(V, ce({}, i, {
|
|
2838
|
+
onEnter: this.onEnter,
|
|
2839
|
+
onEntered: this.onEntered,
|
|
2840
|
+
onEntering: this.onEntering,
|
|
2841
|
+
onExit: this.onExit,
|
|
2842
|
+
onExiting: this.onExiting,
|
|
2843
|
+
onExited: this.onExited
|
|
2844
|
+
}));
|
|
2845
|
+
}, n;
|
|
2846
|
+
}(X.Component);
|
|
2847
|
+
Ye.defaultProps = {
|
|
2848
|
+
classNames: ""
|
|
2849
|
+
};
|
|
2850
|
+
Ye.propTypes = process.env.NODE_ENV !== "production" ? ce({}, V.propTypes, {
|
|
2851
|
+
/**
|
|
2852
|
+
* The animation classNames applied to the component as it appears, enters,
|
|
2853
|
+
* exits or has finished the transition. A single name can be provided, which
|
|
2854
|
+
* will be suffixed for each stage, e.g. `classNames="fade"` applies:
|
|
2855
|
+
*
|
|
2856
|
+
* - `fade-appear`, `fade-appear-active`, `fade-appear-done`
|
|
2857
|
+
* - `fade-enter`, `fade-enter-active`, `fade-enter-done`
|
|
2858
|
+
* - `fade-exit`, `fade-exit-active`, `fade-exit-done`
|
|
2859
|
+
*
|
|
2860
|
+
* A few details to note about how these classes are applied:
|
|
2861
|
+
*
|
|
2862
|
+
* 1. They are _joined_ with the ones that are already defined on the child
|
|
2863
|
+
* component, so if you want to add some base styles, you can use
|
|
2864
|
+
* `className` without worrying that it will be overridden.
|
|
2865
|
+
*
|
|
2866
|
+
* 2. If the transition component mounts with `in={false}`, no classes are
|
|
2867
|
+
* applied yet. You might be expecting `*-exit-done`, but if you think
|
|
2868
|
+
* about it, a component cannot finish exiting if it hasn't entered yet.
|
|
2869
|
+
*
|
|
2870
|
+
* 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
|
|
2871
|
+
* allows you to define different behavior for when appearing is done and
|
|
2872
|
+
* when regular entering is done, using selectors like
|
|
2873
|
+
* `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
|
|
2874
|
+
* an epic entrance animation when element first appears in the DOM using
|
|
2875
|
+
* [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
|
|
2876
|
+
* simply use `fade-enter-done` for defining both cases.
|
|
2877
|
+
*
|
|
2878
|
+
* Each individual classNames can also be specified independently like:
|
|
2879
|
+
*
|
|
2880
|
+
* ```js
|
|
2881
|
+
* classNames={{
|
|
2882
|
+
* appear: 'my-appear',
|
|
2883
|
+
* appearActive: 'my-active-appear',
|
|
2884
|
+
* appearDone: 'my-done-appear',
|
|
2885
|
+
* enter: 'my-enter',
|
|
2886
|
+
* enterActive: 'my-active-enter',
|
|
2887
|
+
* enterDone: 'my-done-enter',
|
|
2888
|
+
* exit: 'my-exit',
|
|
2889
|
+
* exitActive: 'my-active-exit',
|
|
2890
|
+
* exitDone: 'my-done-exit',
|
|
2891
|
+
* }}
|
|
2892
|
+
* ```
|
|
2893
|
+
*
|
|
2894
|
+
* If you want to set these classes using CSS Modules:
|
|
2895
|
+
*
|
|
2896
|
+
* ```js
|
|
2897
|
+
* import styles from './styles.css';
|
|
2898
|
+
* ```
|
|
2899
|
+
*
|
|
2900
|
+
* you might want to use camelCase in your CSS file, that way could simply
|
|
2901
|
+
* spread them instead of listing them one by one:
|
|
2902
|
+
*
|
|
2903
|
+
* ```js
|
|
2904
|
+
* classNames={{ ...styles }}
|
|
2905
|
+
* ```
|
|
2906
|
+
*
|
|
2907
|
+
* @type {string | {
|
|
2908
|
+
* appear?: string,
|
|
2909
|
+
* appearActive?: string,
|
|
2910
|
+
* appearDone?: string,
|
|
2911
|
+
* enter?: string,
|
|
2912
|
+
* enterActive?: string,
|
|
2913
|
+
* enterDone?: string,
|
|
2914
|
+
* exit?: string,
|
|
2915
|
+
* exitActive?: string,
|
|
2916
|
+
* exitDone?: string,
|
|
2917
|
+
* }}
|
|
2918
|
+
*/
|
|
2919
|
+
classNames: vr,
|
|
2920
|
+
/**
|
|
2921
|
+
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
2922
|
+
* applied.
|
|
2923
|
+
*
|
|
2924
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2925
|
+
*
|
|
2926
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2927
|
+
*/
|
|
2928
|
+
onEnter: x.func,
|
|
2929
|
+
/**
|
|
2930
|
+
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
2931
|
+
* 'appear-active' class is applied.
|
|
2932
|
+
*
|
|
2933
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2934
|
+
*
|
|
2935
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2936
|
+
*/
|
|
2937
|
+
onEntering: x.func,
|
|
2938
|
+
/**
|
|
2939
|
+
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
2940
|
+
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
2941
|
+
*
|
|
2942
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
2943
|
+
*
|
|
2944
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
2945
|
+
*/
|
|
2946
|
+
onEntered: x.func,
|
|
2947
|
+
/**
|
|
2948
|
+
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
2949
|
+
* applied.
|
|
2950
|
+
*
|
|
2951
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
2952
|
+
*
|
|
2953
|
+
* @type Function(node: HtmlElement)
|
|
2954
|
+
*/
|
|
2955
|
+
onExit: x.func,
|
|
2956
|
+
/**
|
|
2957
|
+
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
2958
|
+
*
|
|
2959
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
2960
|
+
*
|
|
2961
|
+
* @type Function(node: HtmlElement)
|
|
2962
|
+
*/
|
|
2963
|
+
onExiting: x.func,
|
|
2964
|
+
/**
|
|
2965
|
+
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
2966
|
+
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
2967
|
+
*
|
|
2968
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
2969
|
+
*
|
|
2970
|
+
* @type Function(node: HtmlElement)
|
|
2971
|
+
*/
|
|
2972
|
+
onExited: x.func
|
|
2973
|
+
}) : {};
|
|
2974
|
+
function ie(r) {
|
|
2975
|
+
"@babel/helpers - typeof";
|
|
2976
|
+
return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
2977
|
+
return typeof n;
|
|
2978
|
+
} : function(n) {
|
|
2979
|
+
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
2980
|
+
}, ie(r);
|
|
2981
|
+
}
|
|
2982
|
+
function gr(r, n) {
|
|
2983
|
+
if (ie(r) !== "object" || r === null) return r;
|
|
2984
|
+
var e = r[Symbol.toPrimitive];
|
|
2985
|
+
if (e !== void 0) {
|
|
2986
|
+
var t = e.call(r, n);
|
|
2987
|
+
if (ie(t) !== "object") return t;
|
|
2988
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2989
|
+
}
|
|
2990
|
+
return (n === "string" ? String : Number)(r);
|
|
2991
|
+
}
|
|
2992
|
+
function hr(r) {
|
|
2993
|
+
var n = gr(r, "string");
|
|
2994
|
+
return ie(n) === "symbol" ? n : String(n);
|
|
2995
|
+
}
|
|
2996
|
+
function mr(r, n, e) {
|
|
2997
|
+
return n = hr(n), n in r ? Object.defineProperty(r, n, {
|
|
2998
|
+
value: e,
|
|
2999
|
+
enumerable: !0,
|
|
3000
|
+
configurable: !0,
|
|
3001
|
+
writable: !0
|
|
3002
|
+
}) : r[n] = e, r;
|
|
3003
|
+
}
|
|
3004
|
+
var $e = {
|
|
3005
|
+
defaultProps: {
|
|
3006
|
+
__TYPE: "CSSTransition",
|
|
3007
|
+
children: void 0
|
|
3008
|
+
},
|
|
3009
|
+
getProps: function(n) {
|
|
3010
|
+
return z.getMergedProps(n, $e.defaultProps);
|
|
3011
|
+
},
|
|
3012
|
+
getOtherProps: function(n) {
|
|
3013
|
+
return z.getDiffProps(n, $e.defaultProps);
|
|
3014
|
+
}
|
|
3015
|
+
};
|
|
3016
|
+
function ct(r, n) {
|
|
3017
|
+
var e = Object.keys(r);
|
|
3018
|
+
if (Object.getOwnPropertySymbols) {
|
|
3019
|
+
var t = Object.getOwnPropertySymbols(r);
|
|
3020
|
+
n && (t = t.filter(function(o) {
|
|
3021
|
+
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
3022
|
+
})), e.push.apply(e, t);
|
|
3023
|
+
}
|
|
3024
|
+
return e;
|
|
3025
|
+
}
|
|
3026
|
+
function Ie(r) {
|
|
3027
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
3028
|
+
var e = arguments[n] != null ? arguments[n] : {};
|
|
3029
|
+
n % 2 ? ct(Object(e), !0).forEach(function(t) {
|
|
3030
|
+
mr(r, t, e[t]);
|
|
3031
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : ct(Object(e)).forEach(function(t) {
|
|
3032
|
+
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(e, t));
|
|
3033
|
+
});
|
|
3034
|
+
}
|
|
3035
|
+
return r;
|
|
3036
|
+
}
|
|
3037
|
+
var Er = /* @__PURE__ */ A.forwardRef(function(r, n) {
|
|
3038
|
+
var e = $e.getProps(r), t = A.useContext(pe), o = e.disabled || e.options && e.options.disabled || t && !t.cssTransition || !ve.cssTransition, i = function(g, T) {
|
|
3039
|
+
e.onEnter && e.onEnter(g, T), e.options && e.options.onEnter && e.options.onEnter(g, T);
|
|
3040
|
+
}, s = function(g, T) {
|
|
3041
|
+
e.onEntering && e.onEntering(g, T), e.options && e.options.onEntering && e.options.onEntering(g, T);
|
|
3042
|
+
}, a = function(g, T) {
|
|
3043
|
+
e.onEntered && e.onEntered(g, T), e.options && e.options.onEntered && e.options.onEntered(g, T);
|
|
3044
|
+
}, u = function(g) {
|
|
3045
|
+
e.onExit && e.onExit(g), e.options && e.options.onExit && e.options.onExit(g);
|
|
3046
|
+
}, l = function(g) {
|
|
3047
|
+
e.onExiting && e.onExiting(g), e.options && e.options.onExiting && e.options.onExiting(g);
|
|
3048
|
+
}, f = function(g) {
|
|
3049
|
+
e.onExited && e.onExited(g), e.options && e.options.onExited && e.options.onExited(g);
|
|
3050
|
+
};
|
|
3051
|
+
if (Ue(function() {
|
|
3052
|
+
if (o) {
|
|
3053
|
+
var E = z.getRefElement(e.nodeRef);
|
|
3054
|
+
e.in ? (i(E, !0), s(E, !0), a(E, !0)) : (u(E), l(E), f(E));
|
|
3055
|
+
}
|
|
3056
|
+
}, [e.in]), o)
|
|
3057
|
+
return e.in ? e.children : null;
|
|
3058
|
+
var c = {
|
|
3059
|
+
nodeRef: e.nodeRef,
|
|
3060
|
+
in: e.in,
|
|
3061
|
+
onEnter: i,
|
|
3062
|
+
onEntering: s,
|
|
3063
|
+
onEntered: a,
|
|
3064
|
+
onExit: u,
|
|
3065
|
+
onExiting: l,
|
|
3066
|
+
onExited: f
|
|
3067
|
+
}, v = {
|
|
3068
|
+
classNames: e.classNames,
|
|
3069
|
+
timeout: e.timeout,
|
|
3070
|
+
unmountOnExit: e.unmountOnExit
|
|
3071
|
+
}, p = Ie(Ie(Ie({}, v), e.options || {}), c);
|
|
3072
|
+
return /* @__PURE__ */ A.createElement(Ye, p, e.children);
|
|
3073
|
+
});
|
|
3074
|
+
Er.displayName = "CSSTransition";
|
|
3075
|
+
export {
|
|
3076
|
+
Er as C,
|
|
3077
|
+
F as D,
|
|
3078
|
+
Or as E,
|
|
3079
|
+
wr as I,
|
|
3080
|
+
z as O,
|
|
3081
|
+
tr as P,
|
|
3082
|
+
Zt as R,
|
|
3083
|
+
Pr as U,
|
|
3084
|
+
Dt as Z,
|
|
3085
|
+
zt as a,
|
|
3086
|
+
_r as b,
|
|
3087
|
+
vt as c,
|
|
3088
|
+
Ue as d,
|
|
3089
|
+
ye as e,
|
|
3090
|
+
ve as f,
|
|
3091
|
+
Ct as g,
|
|
3092
|
+
xr as h,
|
|
3093
|
+
pe as i,
|
|
3094
|
+
Nr as j,
|
|
3095
|
+
Tt as k,
|
|
3096
|
+
Ar as l,
|
|
3097
|
+
Cr as m,
|
|
3098
|
+
Sr as n,
|
|
3099
|
+
Rr as u
|
|
3100
|
+
};
|
|
3101
|
+
//# sourceMappingURL=csstransition.esm-CzUZfsIt.mjs.map
|