@rxdrag/website-studio 0.0.63 → 0.0.64
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/{cssMode-1ab89064.js → cssMode-0c23a08a.js} +2 -2
- package/dist/{cssMode-1ab89064.js.map → cssMode-0c23a08a.js.map} +1 -1
- package/dist/{freemarker2-eec5295f.js → freemarker2-396cac18.js} +2 -2
- package/dist/{freemarker2-eec5295f.js.map → freemarker2-396cac18.js.map} +1 -1
- package/dist/{handlebars-0e868bca.js → handlebars-039139b0.js} +2 -2
- package/dist/{handlebars-0e868bca.js.map → handlebars-039139b0.js.map} +1 -1
- package/dist/{html-303f826d.js → html-8b21d5ed.js} +2 -2
- package/dist/{html-303f826d.js.map → html-8b21d5ed.js.map} +1 -1
- package/dist/{htmlMode-df7aefa4.js → htmlMode-77196fd5.js} +2 -2
- package/dist/{htmlMode-df7aefa4.js.map → htmlMode-77196fd5.js.map} +1 -1
- package/dist/{index-18cfb59e.js → index-3256baa8.js} +1101 -1075
- package/dist/{index-18cfb59e.js.map → index-3256baa8.js.map} +1 -1
- package/dist/index-e69a2bfd.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{javascript-306f63bf.js → javascript-8a7fcc5d.js} +3 -3
- package/dist/{javascript-306f63bf.js.map → javascript-8a7fcc5d.js.map} +1 -1
- package/dist/{jsonMode-7ab8006e.js → jsonMode-a8a7410a.js} +2 -2
- package/dist/{jsonMode-7ab8006e.js.map → jsonMode-a8a7410a.js.map} +1 -1
- package/dist/{liquid-4d499a76.js → liquid-1ae5e803.js} +2 -2
- package/dist/{liquid-4d499a76.js.map → liquid-1ae5e803.js.map} +1 -1
- package/dist/{mdx-1987ac4c.js → mdx-a32b8d38.js} +2 -2
- package/dist/{mdx-1987ac4c.js.map → mdx-a32b8d38.js.map} +1 -1
- package/dist/{python-73b3c1eb.js → python-cfdc6bef.js} +2 -2
- package/dist/{python-73b3c1eb.js.map → python-cfdc6bef.js.map} +1 -1
- package/dist/{razor-aca52a13.js → razor-3d879fe0.js} +2 -2
- package/dist/{razor-aca52a13.js.map → razor-3d879fe0.js.map} +1 -1
- package/dist/{tsMode-850582f7.js → tsMode-b04b0224.js} +2 -2
- package/dist/{tsMode-850582f7.js.map → tsMode-b04b0224.js.map} +1 -1
- package/dist/{typescript-10c44d6d.js → typescript-dd1ac52a.js} +2 -2
- package/dist/{typescript-10c44d6d.js.map → typescript-dd1ac52a.js.map} +1 -1
- package/dist/{xml-e0e5d3c2.js → xml-bbfc39e4.js} +2 -2
- package/dist/{xml-e0e5d3c2.js.map → xml-bbfc39e4.js.map} +1 -1
- package/dist/{yaml-47ee05ee.js → yaml-125518c0.js} +2 -2
- package/dist/{yaml-47ee05ee.js.map → yaml-125518c0.js.map} +1 -1
- package/package.json +22 -22
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key2, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$2, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa;
|
|
8
8
|
import * as React from "react";
|
|
9
|
-
import React__default, { createContext, useContext, useMemo, useCallback, useEffect, memo, useState, useRef, forwardRef as forwardRef$
|
|
9
|
+
import React__default, { createContext, useContext, useMemo, useCallback, useEffect, memo, useState, useRef, forwardRef as forwardRef$1, Component, useImperativeHandle, isValidElement, cloneElement } from "react";
|
|
10
10
|
import { ThemeBranchFields, PageQueryOptions, PageFields, FrontComponentQueryOptions, FrontComponentFields, MediaQueryOptions, ComponentCategoryFields, SectionTemplateQueryOptions, SectionTemplateFields, ComponentCategoryQueryOptions, TemplateCategoryQueryOptions, TemplateCategoryFields, ThemeBranchQueryOptions, StyleConfigFields, LangFields, ThemeConfigQueryOptions, ThemeConfigFields, ThemeFields, WebsiteQueryOptions, WebsiteFields, PageAssciations, TaskQueryOptions, TaskFields, AppModule, TaskStatus, websiteToInput, TaskType, LangQueryOptions, WebsiteAssciations, ExtendFieldType, ThemeConfigAssciations, WebsiteSettingsQueryOptions, WebsiteSettingsFields, themeConfigToInputCascade, ThemeConfigEntityName, MediaType, themeConfigToInput, websiteSettingsToInput, WebsiteSettingsEntityName, WebsiteSettingsAssciations, PageEntityName, ThemeBranchEntityName, PageType, themeBranchToInputCascade, ThemeQueryOptions, ThemeCategoryFields, FrontComponentEntityName, pageToInputCascade, sectionTemplateToInput, ProductCategoryEntityName, ProductCategoryQueryOptions, ProductCategoryFields, ProductQueryOptions, ProductFields, PublishableStatus, TaskEntityName, ComponentCategoryEntityName, themeBranchToInput, frontComponentToInput, SectionTemplateEntityName, pageToInput, PageMetaQueryOptions, PageMetaFields, PageMetaAssciations, FrontComponentAssciations, componentCategoryToInput } from "@rxdrag/rxcms-models";
|
|
11
11
|
import { GlobalLoading, EntityForm, SubmitButton, useListData, SearchInput, EntityPagination, useIsLoading, QueryListScope, EntitySelect, useRemoveRow, useEditRow, EntityEditModal, useSelectionsState, EntityTable, EntityListScope, NewButton, EntityRowScope, EntitySelectField, useNewRow } from "@rxdrag/rxcms-models-ui";
|
|
12
12
|
import { useOneThemeBranch, usePageList, useTemplateCategoryList, useSectionTemplateList, useComponentCategoryList, useFrontComponentList, useOneThemeBranchById, useTaskList, useUpsertOneWebsite, useDeleteThemeBranchById, useUpsertOneThemeBranch, useLangList, useOneWebsiteSettings, useOneThemeConfig, useUpsertOneThemeConfig, useUpsertOneWebsiteSettings, useUpsertOnePage, useUpsertOneSectionTemplate, useUpsertOneFrontComponent, useDeletePageById } from "@rxdrag/rxcms-model-hooks";
|
|
@@ -26,7 +26,7 @@ import { InputField, TextareaField, toField, ColorField, SwitchField, SelectFiel
|
|
|
26
26
|
import { ObjectField, useFormValue, useForm } from "@rxdrag/react-fieldy-pro";
|
|
27
27
|
import "react-colorful";
|
|
28
28
|
import { motion, AnimatePresence, LazyMotion, m } from "framer-motion";
|
|
29
|
-
import ReactDOM, { createPortal } from "react-dom";
|
|
29
|
+
import ReactDOM, { createPortal, flushSync } from "react-dom";
|
|
30
30
|
import { keys } from "lodash-es";
|
|
31
31
|
import { DeployType, predefinedTypes, askForQuote } from "@rxdrag/code-templates";
|
|
32
32
|
import { Designer, useDesignerEngine, useDocumentModified, useClearModified, useDocConfig, useDocumentCode, useViewMode, useGetDocSchemaTree, ViewMode, useRootNode, useActivedDocumentId, IFrameCanvasImpl, KeyboardDriver, DragDropDriver, DragOverDriver, MouseClickDriver, MouseMoveDriver, MouseOverOutDriver, CanvasResizeDriver, CanvasScrollDriver, MouseUpDriver, useDragStore, RelativePosition, AcceptType, useCurrentNode, useSelectedElementsRectsInIframe, useActivedElementRect, useActivedId, useTreeNode, useChangeNodeMeta, useNodeMeta, createNodeHandlerProps, useSelection, useBackup, useSetInsertTargetWithPosition, useComponentOperationStore, NodeRelativePosition, TabType, InsertMode, useGetNode, useNodeMove, useClone, useRemoveSelectedNodes, useSelectedNode, useSelectedParent, useSelectParent, MouseMoveEvent, useCodeModified, RXID_ATTR_NAME, useSchemaTree, useSetChildren, useSetDocConfig, useDeviceType, DeviceType, useHistory, useResourceNode, useCanAccept, useConfigModified, useCreateDocument, useRemoveDocument, ContainerImpl, DocumentRoot } from "@rxdrag/rxcraft";
|
|
@@ -5790,7 +5790,7 @@ function useModalPadding(open) {
|
|
|
5790
5790
|
}
|
|
5791
5791
|
}, [open]);
|
|
5792
5792
|
}
|
|
5793
|
-
const Modal = forwardRef$
|
|
5793
|
+
const Modal = forwardRef$1((props, ref2) => {
|
|
5794
5794
|
const { isOpen, className, children, onClose, ...rest } = props;
|
|
5795
5795
|
const openState = useState(false);
|
|
5796
5796
|
const [open, setOpen] = openState;
|
|
@@ -5818,7 +5818,7 @@ const Modal = forwardRef$2((props, ref2) => {
|
|
|
5818
5818
|
) });
|
|
5819
5819
|
});
|
|
5820
5820
|
const defaultCloseButtonClassName = "rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2";
|
|
5821
|
-
forwardRef$
|
|
5821
|
+
forwardRef$1((props, ref2) => {
|
|
5822
5822
|
const { children, className, ...rest } = props;
|
|
5823
5823
|
const [open, close] = useModalState();
|
|
5824
5824
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -5835,7 +5835,7 @@ forwardRef$2((props, ref2) => {
|
|
|
5835
5835
|
}
|
|
5836
5836
|
);
|
|
5837
5837
|
});
|
|
5838
|
-
const ModalContentInner = forwardRef$
|
|
5838
|
+
const ModalContentInner = forwardRef$1(
|
|
5839
5839
|
(props, ref2) => {
|
|
5840
5840
|
const {
|
|
5841
5841
|
className,
|
|
@@ -5893,7 +5893,7 @@ const ModalContentInner = forwardRef$2(
|
|
|
5893
5893
|
) });
|
|
5894
5894
|
}
|
|
5895
5895
|
);
|
|
5896
|
-
const ModalContent = forwardRef$
|
|
5896
|
+
const ModalContent = forwardRef$1(
|
|
5897
5897
|
(props, ref2) => {
|
|
5898
5898
|
return createPortal(
|
|
5899
5899
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ModalContentInner, { ref: ref2, ...props }),
|
|
@@ -5901,7 +5901,7 @@ const ModalContent = forwardRef$2(
|
|
|
5901
5901
|
);
|
|
5902
5902
|
}
|
|
5903
5903
|
);
|
|
5904
|
-
const ModalOverlayInner = forwardRef$
|
|
5904
|
+
const ModalOverlayInner = forwardRef$1(
|
|
5905
5905
|
(props, ref2) => {
|
|
5906
5906
|
const { className, closeable = true, ...rest } = props;
|
|
5907
5907
|
const [open, close] = useModalState();
|
|
@@ -5931,7 +5931,7 @@ const ModalOverlayInner = forwardRef$2(
|
|
|
5931
5931
|
) });
|
|
5932
5932
|
}
|
|
5933
5933
|
);
|
|
5934
|
-
const ModalOverlay = forwardRef$
|
|
5934
|
+
const ModalOverlay = forwardRef$1(
|
|
5935
5935
|
(props, ref2) => {
|
|
5936
5936
|
return createPortal(
|
|
5937
5937
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ModalOverlayInner, { ref: ref2, ...props }),
|
|
@@ -5950,7 +5950,7 @@ const AddIcon = (props) => {
|
|
|
5950
5950
|
}
|
|
5951
5951
|
);
|
|
5952
5952
|
};
|
|
5953
|
-
forwardRef$
|
|
5953
|
+
forwardRef$1(
|
|
5954
5954
|
(props, ref2) => {
|
|
5955
5955
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5956
5956
|
"svg",
|
|
@@ -5972,7 +5972,7 @@ forwardRef$2(
|
|
|
5972
5972
|
);
|
|
5973
5973
|
}
|
|
5974
5974
|
);
|
|
5975
|
-
const CheckCircleIcon = forwardRef$
|
|
5975
|
+
const CheckCircleIcon = forwardRef$1((props, ref2) => {
|
|
5976
5976
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: ref2, ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5977
5977
|
"path",
|
|
5978
5978
|
{
|
|
@@ -5984,7 +5984,7 @@ const CheckCircleIcon = forwardRef$2((props, ref2) => {
|
|
|
5984
5984
|
) });
|
|
5985
5985
|
});
|
|
5986
5986
|
CheckCircleIcon.displayName = "CheckCircleIcon";
|
|
5987
|
-
const ClockCircleOutlineIcon = forwardRef$
|
|
5987
|
+
const ClockCircleOutlineIcon = forwardRef$1((props, ref2) => {
|
|
5988
5988
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5989
5989
|
"svg",
|
|
5990
5990
|
{
|
|
@@ -6005,7 +6005,7 @@ const ClockCircleOutlineIcon = forwardRef$2((props, ref2) => {
|
|
|
6005
6005
|
);
|
|
6006
6006
|
});
|
|
6007
6007
|
ClockCircleOutlineIcon.displayName = "ClockCircleOutlineIcon";
|
|
6008
|
-
const CloseCircleIcon = forwardRef$
|
|
6008
|
+
const CloseCircleIcon = forwardRef$1((props, ref2) => {
|
|
6009
6009
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6010
6010
|
"svg",
|
|
6011
6011
|
{
|
|
@@ -6028,7 +6028,7 @@ const CloseCircleIcon = forwardRef$2((props, ref2) => {
|
|
|
6028
6028
|
);
|
|
6029
6029
|
});
|
|
6030
6030
|
CloseCircleIcon.displayName = "CloseCircleIcon";
|
|
6031
|
-
forwardRef$
|
|
6031
|
+
forwardRef$1((props, ref2) => {
|
|
6032
6032
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { ref: ref2, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6033
6033
|
"path",
|
|
6034
6034
|
{
|
|
@@ -6037,7 +6037,7 @@ forwardRef$2((props, ref2) => {
|
|
|
6037
6037
|
}
|
|
6038
6038
|
) });
|
|
6039
6039
|
});
|
|
6040
|
-
forwardRef$
|
|
6040
|
+
forwardRef$1(
|
|
6041
6041
|
(props, ref2) => {
|
|
6042
6042
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6043
6043
|
"svg",
|
|
@@ -6061,7 +6061,7 @@ forwardRef$2(
|
|
|
6061
6061
|
);
|
|
6062
6062
|
}
|
|
6063
6063
|
);
|
|
6064
|
-
forwardRef$
|
|
6064
|
+
forwardRef$1((props, ref2) => {
|
|
6065
6065
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { ref: ref2, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: 1.5, children: [
|
|
6066
6066
|
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: 12, cy: 12, r: 6 }),
|
|
6067
6067
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -6073,7 +6073,7 @@ forwardRef$2((props, ref2) => {
|
|
|
6073
6073
|
)
|
|
6074
6074
|
] }) });
|
|
6075
6075
|
});
|
|
6076
|
-
forwardRef$
|
|
6076
|
+
forwardRef$1((props, ref2) => {
|
|
6077
6077
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6078
6078
|
"svg",
|
|
6079
6079
|
{
|
|
@@ -6137,7 +6137,7 @@ React__default.forwardRef(
|
|
|
6137
6137
|
] });
|
|
6138
6138
|
}
|
|
6139
6139
|
);
|
|
6140
|
-
const TreeItemShell = forwardRef$
|
|
6140
|
+
const TreeItemShell = forwardRef$1((props, ref2) => {
|
|
6141
6141
|
const { selected, className, children, ...rest } = props;
|
|
6142
6142
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6143
6143
|
"div",
|
|
@@ -23095,7 +23095,7 @@ var Event;
|
|
|
23095
23095
|
return emitter.event;
|
|
23096
23096
|
}
|
|
23097
23097
|
Event2.buffer = buffer;
|
|
23098
|
-
function
|
|
23098
|
+
function chain2(event, sythensize) {
|
|
23099
23099
|
const fn = (listener, thisArgs, disposables) => {
|
|
23100
23100
|
const cs = sythensize(new ChainableSynthesis());
|
|
23101
23101
|
return event(function(value) {
|
|
@@ -23107,7 +23107,7 @@ var Event;
|
|
|
23107
23107
|
};
|
|
23108
23108
|
return fn;
|
|
23109
23109
|
}
|
|
23110
|
-
Event2.chain =
|
|
23110
|
+
Event2.chain = chain2;
|
|
23111
23111
|
const HaltChainable = Symbol("HaltChainable");
|
|
23112
23112
|
class ChainableSynthesis {
|
|
23113
23113
|
constructor() {
|
|
@@ -135534,7 +135534,7 @@ registerLanguage({
|
|
|
135534
135534
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
135535
135535
|
loader: () => {
|
|
135536
135536
|
{
|
|
135537
|
-
return import("./freemarker2-
|
|
135537
|
+
return import("./freemarker2-396cac18.js").then((m2) => m2.TagAutoInterpolationDollar);
|
|
135538
135538
|
}
|
|
135539
135539
|
}
|
|
135540
135540
|
});
|
|
@@ -135543,7 +135543,7 @@ registerLanguage({
|
|
|
135543
135543
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
135544
135544
|
loader: () => {
|
|
135545
135545
|
{
|
|
135546
|
-
return import("./freemarker2-
|
|
135546
|
+
return import("./freemarker2-396cac18.js").then((m2) => m2.TagAngleInterpolationDollar);
|
|
135547
135547
|
}
|
|
135548
135548
|
}
|
|
135549
135549
|
});
|
|
@@ -135552,7 +135552,7 @@ registerLanguage({
|
|
|
135552
135552
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
135553
135553
|
loader: () => {
|
|
135554
135554
|
{
|
|
135555
|
-
return import("./freemarker2-
|
|
135555
|
+
return import("./freemarker2-396cac18.js").then((m2) => m2.TagBracketInterpolationDollar);
|
|
135556
135556
|
}
|
|
135557
135557
|
}
|
|
135558
135558
|
});
|
|
@@ -135561,7 +135561,7 @@ registerLanguage({
|
|
|
135561
135561
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
135562
135562
|
loader: () => {
|
|
135563
135563
|
{
|
|
135564
|
-
return import("./freemarker2-
|
|
135564
|
+
return import("./freemarker2-396cac18.js").then((m2) => m2.TagAngleInterpolationBracket);
|
|
135565
135565
|
}
|
|
135566
135566
|
}
|
|
135567
135567
|
});
|
|
@@ -135570,7 +135570,7 @@ registerLanguage({
|
|
|
135570
135570
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
135571
135571
|
loader: () => {
|
|
135572
135572
|
{
|
|
135573
|
-
return import("./freemarker2-
|
|
135573
|
+
return import("./freemarker2-396cac18.js").then((m2) => m2.TagBracketInterpolationBracket);
|
|
135574
135574
|
}
|
|
135575
135575
|
}
|
|
135576
135576
|
});
|
|
@@ -135579,7 +135579,7 @@ registerLanguage({
|
|
|
135579
135579
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
135580
135580
|
loader: () => {
|
|
135581
135581
|
{
|
|
135582
|
-
return import("./freemarker2-
|
|
135582
|
+
return import("./freemarker2-396cac18.js").then((m2) => m2.TagAutoInterpolationDollar);
|
|
135583
135583
|
}
|
|
135584
135584
|
}
|
|
135585
135585
|
});
|
|
@@ -135588,7 +135588,7 @@ registerLanguage({
|
|
|
135588
135588
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
135589
135589
|
loader: () => {
|
|
135590
135590
|
{
|
|
135591
|
-
return import("./freemarker2-
|
|
135591
|
+
return import("./freemarker2-396cac18.js").then((m2) => m2.TagAutoInterpolationBracket);
|
|
135592
135592
|
}
|
|
135593
135593
|
}
|
|
135594
135594
|
});
|
|
@@ -135638,7 +135638,7 @@ registerLanguage({
|
|
|
135638
135638
|
mimetypes: ["text/x-handlebars-template"],
|
|
135639
135639
|
loader: () => {
|
|
135640
135640
|
{
|
|
135641
|
-
return import("./handlebars-
|
|
135641
|
+
return import("./handlebars-039139b0.js");
|
|
135642
135642
|
}
|
|
135643
135643
|
}
|
|
135644
135644
|
});
|
|
@@ -135671,7 +135671,7 @@ registerLanguage({
|
|
|
135671
135671
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
135672
135672
|
loader: () => {
|
|
135673
135673
|
{
|
|
135674
|
-
return import("./html-
|
|
135674
|
+
return import("./html-8b21d5ed.js");
|
|
135675
135675
|
}
|
|
135676
135676
|
}
|
|
135677
135677
|
});
|
|
@@ -135724,7 +135724,7 @@ registerLanguage({
|
|
|
135724
135724
|
mimetypes: ["text/javascript"],
|
|
135725
135725
|
loader: () => {
|
|
135726
135726
|
{
|
|
135727
|
-
return import("./javascript-
|
|
135727
|
+
return import("./javascript-8a7fcc5d.js");
|
|
135728
135728
|
}
|
|
135729
135729
|
}
|
|
135730
135730
|
});
|
|
@@ -135823,7 +135823,7 @@ registerLanguage({
|
|
|
135823
135823
|
mimetypes: ["application/liquid"],
|
|
135824
135824
|
loader: () => {
|
|
135825
135825
|
{
|
|
135826
|
-
return import("./liquid-
|
|
135826
|
+
return import("./liquid-1ae5e803.js");
|
|
135827
135827
|
}
|
|
135828
135828
|
}
|
|
135829
135829
|
});
|
|
@@ -135871,7 +135871,7 @@ registerLanguage({
|
|
|
135871
135871
|
aliases: ["MDX", "mdx"],
|
|
135872
135872
|
loader: () => {
|
|
135873
135873
|
{
|
|
135874
|
-
return import("./mdx-
|
|
135874
|
+
return import("./mdx-a32b8d38.js");
|
|
135875
135875
|
}
|
|
135876
135876
|
}
|
|
135877
135877
|
});
|
|
@@ -136130,7 +136130,7 @@ registerLanguage({
|
|
|
136130
136130
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
136131
136131
|
loader: () => {
|
|
136132
136132
|
{
|
|
136133
|
-
return import("./python-
|
|
136133
|
+
return import("./python-cfdc6bef.js");
|
|
136134
136134
|
}
|
|
136135
136135
|
}
|
|
136136
136136
|
});
|
|
@@ -136179,7 +136179,7 @@ registerLanguage({
|
|
|
136179
136179
|
mimetypes: ["text/x-cshtml"],
|
|
136180
136180
|
loader: () => {
|
|
136181
136181
|
{
|
|
136182
|
-
return import("./razor-
|
|
136182
|
+
return import("./razor-3d879fe0.js");
|
|
136183
136183
|
}
|
|
136184
136184
|
}
|
|
136185
136185
|
});
|
|
@@ -136515,7 +136515,7 @@ registerLanguage({
|
|
|
136515
136515
|
mimetypes: ["text/typescript"],
|
|
136516
136516
|
loader: () => {
|
|
136517
136517
|
{
|
|
136518
|
-
return import("./typescript-
|
|
136518
|
+
return import("./typescript-dd1ac52a.js");
|
|
136519
136519
|
}
|
|
136520
136520
|
}
|
|
136521
136521
|
});
|
|
@@ -136599,7 +136599,7 @@ registerLanguage({
|
|
|
136599
136599
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
136600
136600
|
loader: () => {
|
|
136601
136601
|
{
|
|
136602
|
-
return import("./xml-
|
|
136602
|
+
return import("./xml-bbfc39e4.js");
|
|
136603
136603
|
}
|
|
136604
136604
|
}
|
|
136605
136605
|
});
|
|
@@ -136616,7 +136616,7 @@ registerLanguage({
|
|
|
136616
136616
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
136617
136617
|
loader: () => {
|
|
136618
136618
|
{
|
|
136619
|
-
return import("./yaml-
|
|
136619
|
+
return import("./yaml-125518c0.js");
|
|
136620
136620
|
}
|
|
136621
136621
|
}
|
|
136622
136622
|
});
|
|
@@ -136740,7 +136740,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3(
|
|
|
136740
136740
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
136741
136741
|
function getMode$3() {
|
|
136742
136742
|
{
|
|
136743
|
-
return import("./cssMode-
|
|
136743
|
+
return import("./cssMode-0c23a08a.js");
|
|
136744
136744
|
}
|
|
136745
136745
|
}
|
|
136746
136746
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -136871,7 +136871,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
136871
136871
|
};
|
|
136872
136872
|
function getMode$2() {
|
|
136873
136873
|
{
|
|
136874
|
-
return import("./htmlMode-
|
|
136874
|
+
return import("./htmlMode-77196fd5.js");
|
|
136875
136875
|
}
|
|
136876
136876
|
}
|
|
136877
136877
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -136969,7 +136969,7 @@ var getWorker = () => getMode$1().then((mode) => mode.getWorker());
|
|
|
136969
136969
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
|
|
136970
136970
|
function getMode$1() {
|
|
136971
136971
|
{
|
|
136972
|
-
return import("./jsonMode-
|
|
136972
|
+
return import("./jsonMode-a8a7410a.js");
|
|
136973
136973
|
}
|
|
136974
136974
|
}
|
|
136975
136975
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -137245,7 +137245,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
137245
137245
|
};
|
|
137246
137246
|
function getMode() {
|
|
137247
137247
|
{
|
|
137248
|
-
return import("./tsMode-
|
|
137248
|
+
return import("./tsMode-b04b0224.js");
|
|
137249
137249
|
}
|
|
137250
137250
|
}
|
|
137251
137251
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -195096,7 +195096,112 @@ tv({
|
|
|
195096
195096
|
fullWidth: false
|
|
195097
195097
|
}
|
|
195098
195098
|
});
|
|
195099
|
-
|
|
195099
|
+
process.env.NODE_ENV !== "production";
|
|
195100
|
+
process.env.NODE_ENV === "test";
|
|
195101
|
+
var dataAttr = (condition) => condition ? "true" : void 0;
|
|
195102
|
+
function toVal(mix) {
|
|
195103
|
+
var k2, y2, str = "";
|
|
195104
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
195105
|
+
str += mix;
|
|
195106
|
+
} else if (typeof mix === "object") {
|
|
195107
|
+
if (Array.isArray(mix)) {
|
|
195108
|
+
for (k2 = 0; k2 < mix.length; k2++) {
|
|
195109
|
+
if (mix[k2]) {
|
|
195110
|
+
if (y2 = toVal(mix[k2])) {
|
|
195111
|
+
str && (str += " ");
|
|
195112
|
+
str += y2;
|
|
195113
|
+
}
|
|
195114
|
+
}
|
|
195115
|
+
}
|
|
195116
|
+
} else {
|
|
195117
|
+
for (k2 in mix) {
|
|
195118
|
+
if (mix[k2]) {
|
|
195119
|
+
str && (str += " ");
|
|
195120
|
+
str += k2;
|
|
195121
|
+
}
|
|
195122
|
+
}
|
|
195123
|
+
}
|
|
195124
|
+
}
|
|
195125
|
+
return str;
|
|
195126
|
+
}
|
|
195127
|
+
function clsx(...args) {
|
|
195128
|
+
var i2 = 0, tmp, x2, str = "";
|
|
195129
|
+
while (i2 < args.length) {
|
|
195130
|
+
if (tmp = args[i2++]) {
|
|
195131
|
+
if (x2 = toVal(tmp)) {
|
|
195132
|
+
str && (str += " ");
|
|
195133
|
+
str += x2;
|
|
195134
|
+
}
|
|
195135
|
+
}
|
|
195136
|
+
}
|
|
195137
|
+
return str;
|
|
195138
|
+
}
|
|
195139
|
+
function getUniqueID(prefix) {
|
|
195140
|
+
return `${prefix}-${Math.floor(Math.random() * 1e6)}`;
|
|
195141
|
+
}
|
|
195142
|
+
function objectToDeps(obj) {
|
|
195143
|
+
if (!obj || typeof obj !== "object") {
|
|
195144
|
+
return "";
|
|
195145
|
+
}
|
|
195146
|
+
try {
|
|
195147
|
+
return JSON.stringify(obj);
|
|
195148
|
+
} catch {
|
|
195149
|
+
return "";
|
|
195150
|
+
}
|
|
195151
|
+
}
|
|
195152
|
+
function clamp(value, min, max) {
|
|
195153
|
+
return Math.min(Math.max(value, min), max);
|
|
195154
|
+
}
|
|
195155
|
+
function chain(...callbacks) {
|
|
195156
|
+
return (...args) => {
|
|
195157
|
+
for (let callback of callbacks) {
|
|
195158
|
+
if (typeof callback === "function") {
|
|
195159
|
+
callback(...args);
|
|
195160
|
+
}
|
|
195161
|
+
}
|
|
195162
|
+
};
|
|
195163
|
+
}
|
|
195164
|
+
var idsUpdaterMap = /* @__PURE__ */ new Map();
|
|
195165
|
+
function mergeIds(idA, idB) {
|
|
195166
|
+
if (idA === idB) {
|
|
195167
|
+
return idA;
|
|
195168
|
+
}
|
|
195169
|
+
let setIdsA = idsUpdaterMap.get(idA);
|
|
195170
|
+
if (setIdsA) {
|
|
195171
|
+
setIdsA.forEach((ref2) => ref2.current = idB);
|
|
195172
|
+
return idB;
|
|
195173
|
+
}
|
|
195174
|
+
let setIdsB = idsUpdaterMap.get(idB);
|
|
195175
|
+
if (setIdsB) {
|
|
195176
|
+
setIdsB.forEach((ref2) => ref2.current = idA);
|
|
195177
|
+
return idA;
|
|
195178
|
+
}
|
|
195179
|
+
return idB;
|
|
195180
|
+
}
|
|
195181
|
+
function mergeProps(...args) {
|
|
195182
|
+
let result = { ...args[0] };
|
|
195183
|
+
for (let i2 = 1; i2 < args.length; i2++) {
|
|
195184
|
+
let props = args[i2];
|
|
195185
|
+
for (let key2 in props) {
|
|
195186
|
+
let a2 = result[key2];
|
|
195187
|
+
let b = props[key2];
|
|
195188
|
+
if (typeof a2 === "function" && typeof b === "function" && // This is a lot faster than a regex.
|
|
195189
|
+
key2[0] === "o" && key2[1] === "n" && key2.charCodeAt(2) >= /* 'A' */
|
|
195190
|
+
65 && key2.charCodeAt(2) <= /* 'Z' */
|
|
195191
|
+
90) {
|
|
195192
|
+
result[key2] = chain(a2, b);
|
|
195193
|
+
} else if ((key2 === "className" || key2 === "UNSAFE_className") && typeof a2 === "string" && typeof b === "string") {
|
|
195194
|
+
result[key2] = clsx(a2, b);
|
|
195195
|
+
} else if (key2 === "id" && a2 && b) {
|
|
195196
|
+
result.id = mergeIds(a2, b);
|
|
195197
|
+
} else {
|
|
195198
|
+
result[key2] = b !== void 0 ? b : a2;
|
|
195199
|
+
}
|
|
195200
|
+
}
|
|
195201
|
+
}
|
|
195202
|
+
return result;
|
|
195203
|
+
}
|
|
195204
|
+
function createContext2(options = {}) {
|
|
195100
195205
|
const {
|
|
195101
195206
|
strict = true,
|
|
195102
195207
|
errorMessage = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",
|
|
@@ -195117,7 +195222,231 @@ function createContext2$1(options = {}) {
|
|
|
195117
195222
|
}
|
|
195118
195223
|
return [Context3.Provider, useContext2, Context3];
|
|
195119
195224
|
}
|
|
195120
|
-
|
|
195225
|
+
function useDOMRef(ref2) {
|
|
195226
|
+
const domRef = useRef(null);
|
|
195227
|
+
useImperativeHandle(ref2, () => domRef.current);
|
|
195228
|
+
return domRef;
|
|
195229
|
+
}
|
|
195230
|
+
var DOMPropNames = /* @__PURE__ */ new Set([
|
|
195231
|
+
"id",
|
|
195232
|
+
"type",
|
|
195233
|
+
"style",
|
|
195234
|
+
"title",
|
|
195235
|
+
"role",
|
|
195236
|
+
"tabIndex",
|
|
195237
|
+
"htmlFor",
|
|
195238
|
+
"width",
|
|
195239
|
+
"height",
|
|
195240
|
+
"abbr",
|
|
195241
|
+
"accept",
|
|
195242
|
+
"acceptCharset",
|
|
195243
|
+
"accessKey",
|
|
195244
|
+
"action",
|
|
195245
|
+
"allowFullScreen",
|
|
195246
|
+
"allowTransparency",
|
|
195247
|
+
"alt",
|
|
195248
|
+
"async",
|
|
195249
|
+
"autoComplete",
|
|
195250
|
+
"autoFocus",
|
|
195251
|
+
"autoPlay",
|
|
195252
|
+
"cellPadding",
|
|
195253
|
+
"cellSpacing",
|
|
195254
|
+
"challenge",
|
|
195255
|
+
"charset",
|
|
195256
|
+
"checked",
|
|
195257
|
+
"cite",
|
|
195258
|
+
"class",
|
|
195259
|
+
"className",
|
|
195260
|
+
"cols",
|
|
195261
|
+
"colSpan",
|
|
195262
|
+
"command",
|
|
195263
|
+
"content",
|
|
195264
|
+
"contentEditable",
|
|
195265
|
+
"contextMenu",
|
|
195266
|
+
"controls",
|
|
195267
|
+
"coords",
|
|
195268
|
+
"crossOrigin",
|
|
195269
|
+
"data",
|
|
195270
|
+
"dateTime",
|
|
195271
|
+
"default",
|
|
195272
|
+
"defer",
|
|
195273
|
+
"dir",
|
|
195274
|
+
"disabled",
|
|
195275
|
+
"download",
|
|
195276
|
+
"draggable",
|
|
195277
|
+
"dropzone",
|
|
195278
|
+
"encType",
|
|
195279
|
+
"enterKeyHint",
|
|
195280
|
+
"for",
|
|
195281
|
+
"form",
|
|
195282
|
+
"formAction",
|
|
195283
|
+
"formEncType",
|
|
195284
|
+
"formMethod",
|
|
195285
|
+
"formNoValidate",
|
|
195286
|
+
"formTarget",
|
|
195287
|
+
"frameBorder",
|
|
195288
|
+
"headers",
|
|
195289
|
+
"hidden",
|
|
195290
|
+
"high",
|
|
195291
|
+
"href",
|
|
195292
|
+
"hrefLang",
|
|
195293
|
+
"httpEquiv",
|
|
195294
|
+
"icon",
|
|
195295
|
+
"inputMode",
|
|
195296
|
+
"isMap",
|
|
195297
|
+
"itemId",
|
|
195298
|
+
"itemProp",
|
|
195299
|
+
"itemRef",
|
|
195300
|
+
"itemScope",
|
|
195301
|
+
"itemType",
|
|
195302
|
+
"kind",
|
|
195303
|
+
"label",
|
|
195304
|
+
"lang",
|
|
195305
|
+
"list",
|
|
195306
|
+
"loop",
|
|
195307
|
+
"manifest",
|
|
195308
|
+
"max",
|
|
195309
|
+
"maxLength",
|
|
195310
|
+
"media",
|
|
195311
|
+
"mediaGroup",
|
|
195312
|
+
"method",
|
|
195313
|
+
"min",
|
|
195314
|
+
"minLength",
|
|
195315
|
+
"multiple",
|
|
195316
|
+
"muted",
|
|
195317
|
+
"name",
|
|
195318
|
+
"noValidate",
|
|
195319
|
+
"open",
|
|
195320
|
+
"optimum",
|
|
195321
|
+
"pattern",
|
|
195322
|
+
"ping",
|
|
195323
|
+
"placeholder",
|
|
195324
|
+
"poster",
|
|
195325
|
+
"preload",
|
|
195326
|
+
"radioGroup",
|
|
195327
|
+
"referrerPolicy",
|
|
195328
|
+
"readOnly",
|
|
195329
|
+
"rel",
|
|
195330
|
+
"required",
|
|
195331
|
+
"rows",
|
|
195332
|
+
"rowSpan",
|
|
195333
|
+
"sandbox",
|
|
195334
|
+
"scope",
|
|
195335
|
+
"scoped",
|
|
195336
|
+
"scrolling",
|
|
195337
|
+
"seamless",
|
|
195338
|
+
"selected",
|
|
195339
|
+
"shape",
|
|
195340
|
+
"size",
|
|
195341
|
+
"sizes",
|
|
195342
|
+
"slot",
|
|
195343
|
+
"sortable",
|
|
195344
|
+
"span",
|
|
195345
|
+
"spellCheck",
|
|
195346
|
+
"src",
|
|
195347
|
+
"srcDoc",
|
|
195348
|
+
"srcSet",
|
|
195349
|
+
"start",
|
|
195350
|
+
"step",
|
|
195351
|
+
"target",
|
|
195352
|
+
"translate",
|
|
195353
|
+
"typeMustMatch",
|
|
195354
|
+
"useMap",
|
|
195355
|
+
"value",
|
|
195356
|
+
"wmode",
|
|
195357
|
+
"wrap"
|
|
195358
|
+
]);
|
|
195359
|
+
var DOMEventNames = /* @__PURE__ */ new Set([
|
|
195360
|
+
"onCopy",
|
|
195361
|
+
"onCut",
|
|
195362
|
+
"onPaste",
|
|
195363
|
+
"onLoad",
|
|
195364
|
+
"onError",
|
|
195365
|
+
"onWheel",
|
|
195366
|
+
"onScroll",
|
|
195367
|
+
"onCompositionEnd",
|
|
195368
|
+
"onCompositionStart",
|
|
195369
|
+
"onCompositionUpdate",
|
|
195370
|
+
"onKeyDown",
|
|
195371
|
+
"onKeyPress",
|
|
195372
|
+
"onKeyUp",
|
|
195373
|
+
"onFocus",
|
|
195374
|
+
"onBlur",
|
|
195375
|
+
"onChange",
|
|
195376
|
+
"onInput",
|
|
195377
|
+
"onSubmit",
|
|
195378
|
+
"onClick",
|
|
195379
|
+
"onContextMenu",
|
|
195380
|
+
"onDoubleClick",
|
|
195381
|
+
"onDrag",
|
|
195382
|
+
"onDragEnd",
|
|
195383
|
+
"onDragEnter",
|
|
195384
|
+
"onDragExit",
|
|
195385
|
+
"onDragLeave",
|
|
195386
|
+
"onDragOver",
|
|
195387
|
+
"onDragStart",
|
|
195388
|
+
"onDrop",
|
|
195389
|
+
"onMouseDown",
|
|
195390
|
+
"onMouseEnter",
|
|
195391
|
+
"onMouseLeave",
|
|
195392
|
+
"onMouseMove",
|
|
195393
|
+
"onMouseOut",
|
|
195394
|
+
"onMouseOver",
|
|
195395
|
+
"onMouseUp",
|
|
195396
|
+
"onPointerDown",
|
|
195397
|
+
"onPointerEnter",
|
|
195398
|
+
"onPointerLeave",
|
|
195399
|
+
"onPointerUp",
|
|
195400
|
+
"onSelect",
|
|
195401
|
+
"onTouchCancel",
|
|
195402
|
+
"onTouchEnd",
|
|
195403
|
+
"onTouchMove",
|
|
195404
|
+
"onTouchStart",
|
|
195405
|
+
"onAnimationStart",
|
|
195406
|
+
"onAnimationEnd",
|
|
195407
|
+
"onAnimationIteration",
|
|
195408
|
+
"onTransitionEnd"
|
|
195409
|
+
]);
|
|
195410
|
+
var propRe = /^(data-.*)$/;
|
|
195411
|
+
var ariaRe = /^(aria-.*)$/;
|
|
195412
|
+
var funcRe = /^(on[A-Z].*)$/;
|
|
195413
|
+
function filterDOMProps(props, opts = {}) {
|
|
195414
|
+
let {
|
|
195415
|
+
labelable = true,
|
|
195416
|
+
enabled = true,
|
|
195417
|
+
propNames,
|
|
195418
|
+
omitPropNames,
|
|
195419
|
+
omitEventNames,
|
|
195420
|
+
omitDataProps,
|
|
195421
|
+
omitEventProps
|
|
195422
|
+
} = opts;
|
|
195423
|
+
let filteredProps = {};
|
|
195424
|
+
if (!enabled) {
|
|
195425
|
+
return props;
|
|
195426
|
+
}
|
|
195427
|
+
for (const prop in props) {
|
|
195428
|
+
if (omitPropNames == null ? void 0 : omitPropNames.has(prop)) {
|
|
195429
|
+
continue;
|
|
195430
|
+
}
|
|
195431
|
+
if ((omitEventNames == null ? void 0 : omitEventNames.has(prop)) && funcRe.test(prop)) {
|
|
195432
|
+
continue;
|
|
195433
|
+
}
|
|
195434
|
+
if (funcRe.test(prop) && !DOMEventNames.has(prop)) {
|
|
195435
|
+
continue;
|
|
195436
|
+
}
|
|
195437
|
+
if (omitDataProps && propRe.test(prop)) {
|
|
195438
|
+
continue;
|
|
195439
|
+
}
|
|
195440
|
+
if (omitEventProps && funcRe.test(prop)) {
|
|
195441
|
+
continue;
|
|
195442
|
+
}
|
|
195443
|
+
if (Object.prototype.hasOwnProperty.call(props, prop) && (DOMPropNames.has(prop) || labelable && ariaRe.test(prop) || (propNames == null ? void 0 : propNames.has(prop)) || propRe.test(prop)) || funcRe.test(prop)) {
|
|
195444
|
+
filteredProps[prop] = props[prop];
|
|
195445
|
+
}
|
|
195446
|
+
}
|
|
195447
|
+
return filteredProps;
|
|
195448
|
+
}
|
|
195449
|
+
var [ProviderContext, useProviderContext] = createContext2({
|
|
195121
195450
|
name: "ProviderContext",
|
|
195122
195451
|
strict: false
|
|
195123
195452
|
});
|
|
@@ -195149,7 +195478,7 @@ if (typeof FinalizationRegistry !== "undefined")
|
|
|
195149
195478
|
new FinalizationRegistry((heldValue) => {
|
|
195150
195479
|
$bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
|
|
195151
195480
|
});
|
|
195152
|
-
function $bdb11010cef70236$export$cd8c9cb68f842629
|
|
195481
|
+
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
195153
195482
|
if (idA === idB)
|
|
195154
195483
|
return idA;
|
|
195155
195484
|
let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA);
|
|
@@ -195164,7 +195493,7 @@ function $bdb11010cef70236$export$cd8c9cb68f842629$1(idA, idB) {
|
|
|
195164
195493
|
}
|
|
195165
195494
|
return idB;
|
|
195166
195495
|
}
|
|
195167
|
-
function $ff5963eb1fccf552$export$e08e3b67e392101e
|
|
195496
|
+
function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
|
195168
195497
|
return (...args) => {
|
|
195169
195498
|
for (let callback of callbacks)
|
|
195170
195499
|
if (typeof callback === "function")
|
|
@@ -195225,7 +195554,7 @@ function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
|
|
|
195225
195554
|
}
|
|
195226
195555
|
return event.target;
|
|
195227
195556
|
}
|
|
195228
|
-
function $3ef42575df84b30b$export$9d1611c77c2fe928
|
|
195557
|
+
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
195229
195558
|
let result = {
|
|
195230
195559
|
...args[0]
|
|
195231
195560
|
};
|
|
@@ -195238,17 +195567,44 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928$1(...args) {
|
|
|
195238
195567
|
key2[0] === "o" && key2[1] === "n" && key2.charCodeAt(2) >= /* 'A' */
|
|
195239
195568
|
65 && key2.charCodeAt(2) <= /* 'Z' */
|
|
195240
195569
|
90)
|
|
195241
|
-
result[key2] = $ff5963eb1fccf552$export$e08e3b67e392101e
|
|
195570
|
+
result[key2] = $ff5963eb1fccf552$export$e08e3b67e392101e(a2, b);
|
|
195242
195571
|
else if ((key2 === "className" || key2 === "UNSAFE_className") && typeof a2 === "string" && typeof b === "string")
|
|
195243
195572
|
result[key2] = clsx$1(a2, b);
|
|
195244
195573
|
else if (key2 === "id" && a2 && b)
|
|
195245
|
-
result.id = $bdb11010cef70236$export$cd8c9cb68f842629
|
|
195574
|
+
result.id = $bdb11010cef70236$export$cd8c9cb68f842629(a2, b);
|
|
195246
195575
|
else
|
|
195247
195576
|
result[key2] = b !== void 0 ? b : a2;
|
|
195248
195577
|
}
|
|
195249
195578
|
}
|
|
195250
195579
|
return result;
|
|
195251
195580
|
}
|
|
195581
|
+
const $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([
|
|
195582
|
+
"id"
|
|
195583
|
+
]);
|
|
195584
|
+
const $65484d02dcb7eb3e$var$labelablePropNames = /* @__PURE__ */ new Set([
|
|
195585
|
+
"aria-label",
|
|
195586
|
+
"aria-labelledby",
|
|
195587
|
+
"aria-describedby",
|
|
195588
|
+
"aria-details"
|
|
195589
|
+
]);
|
|
195590
|
+
const $65484d02dcb7eb3e$var$linkPropNames = /* @__PURE__ */ new Set([
|
|
195591
|
+
"href",
|
|
195592
|
+
"hrefLang",
|
|
195593
|
+
"target",
|
|
195594
|
+
"rel",
|
|
195595
|
+
"download",
|
|
195596
|
+
"ping",
|
|
195597
|
+
"referrerPolicy"
|
|
195598
|
+
]);
|
|
195599
|
+
const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
|
|
195600
|
+
function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
|
|
195601
|
+
let { labelable, isLink, propNames } = opts;
|
|
195602
|
+
let filteredProps = {};
|
|
195603
|
+
for (const prop in props)
|
|
195604
|
+
if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop)))
|
|
195605
|
+
filteredProps[prop] = props[prop];
|
|
195606
|
+
return filteredProps;
|
|
195607
|
+
}
|
|
195252
195608
|
function $7215afc6de606d6b$export$de79e2c695e052f3(element2) {
|
|
195253
195609
|
if ($7215afc6de606d6b$var$supportsPreventScroll())
|
|
195254
195610
|
element2.focus({
|
|
@@ -195304,17 +195660,17 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
|
|
|
195304
195660
|
element2.scrollLeft = scrollLeft;
|
|
195305
195661
|
}
|
|
195306
195662
|
}
|
|
195307
|
-
function $c87311424ea30a05$var$testUserAgent
|
|
195663
|
+
function $c87311424ea30a05$var$testUserAgent(re2) {
|
|
195308
195664
|
var _window_navigator_userAgentData;
|
|
195309
195665
|
if (typeof window === "undefined" || window.navigator == null)
|
|
195310
195666
|
return false;
|
|
195311
195667
|
return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re2.test(brand.brand))) || re2.test(window.navigator.userAgent);
|
|
195312
195668
|
}
|
|
195313
|
-
function $c87311424ea30a05$var$testPlatform
|
|
195669
|
+
function $c87311424ea30a05$var$testPlatform(re2) {
|
|
195314
195670
|
var _window_navigator_userAgentData;
|
|
195315
195671
|
return typeof window !== "undefined" && window.navigator != null ? re2.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
195316
195672
|
}
|
|
195317
|
-
function $c87311424ea30a05$var$cached
|
|
195673
|
+
function $c87311424ea30a05$var$cached(fn) {
|
|
195318
195674
|
if (process.env.NODE_ENV === "test")
|
|
195319
195675
|
return fn;
|
|
195320
195676
|
let res = null;
|
|
@@ -195324,44 +195680,44 @@ function $c87311424ea30a05$var$cached$1(fn) {
|
|
|
195324
195680
|
return res;
|
|
195325
195681
|
};
|
|
195326
195682
|
}
|
|
195327
|
-
const $c87311424ea30a05$export$9ac100e40613ea10
|
|
195328
|
-
return $c87311424ea30a05$var$testPlatform
|
|
195683
|
+
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
195684
|
+
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
195329
195685
|
});
|
|
195330
|
-
const $c87311424ea30a05$export$186c6964ca17d99
|
|
195331
|
-
return $c87311424ea30a05$var$testPlatform
|
|
195686
|
+
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
195687
|
+
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
195332
195688
|
});
|
|
195333
|
-
const $c87311424ea30a05$export$7bef049ce92e4224
|
|
195334
|
-
return $c87311424ea30a05$var$testPlatform
|
|
195335
|
-
$c87311424ea30a05$export$9ac100e40613ea10
|
|
195689
|
+
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
195690
|
+
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
195691
|
+
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
195336
195692
|
});
|
|
195337
|
-
const $c87311424ea30a05$export$fedb369cb70207f1
|
|
195338
|
-
return $c87311424ea30a05$export$186c6964ca17d99
|
|
195693
|
+
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
195694
|
+
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
195339
195695
|
});
|
|
195340
|
-
$c87311424ea30a05$var$cached
|
|
195341
|
-
return $c87311424ea30a05$export$9ac100e40613ea10
|
|
195696
|
+
$c87311424ea30a05$var$cached(function() {
|
|
195697
|
+
return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
|
|
195342
195698
|
});
|
|
195343
|
-
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached
|
|
195344
|
-
return $c87311424ea30a05$var$testUserAgent
|
|
195699
|
+
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
|
|
195700
|
+
return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
|
|
195345
195701
|
});
|
|
195346
|
-
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached
|
|
195347
|
-
return $c87311424ea30a05$var$testUserAgent
|
|
195702
|
+
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
|
|
195703
|
+
return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
|
|
195348
195704
|
});
|
|
195349
|
-
const $c87311424ea30a05$export$a11b0059900ceec8
|
|
195350
|
-
return $c87311424ea30a05$var$testUserAgent
|
|
195705
|
+
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
195706
|
+
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
195351
195707
|
});
|
|
195352
|
-
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached
|
|
195353
|
-
return $c87311424ea30a05$var$testUserAgent
|
|
195708
|
+
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
|
|
195709
|
+
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
195354
195710
|
});
|
|
195355
195711
|
function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = true) {
|
|
195356
195712
|
var _window_event_type, _window_event;
|
|
195357
195713
|
let { metaKey, ctrlKey, altKey, shiftKey } = modifiers;
|
|
195358
195714
|
if ($c87311424ea30a05$export$b7d78993b74f766d() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith("key")) && target.target === "_blank") {
|
|
195359
|
-
if ($c87311424ea30a05$export$9ac100e40613ea10
|
|
195715
|
+
if ($c87311424ea30a05$export$9ac100e40613ea10())
|
|
195360
195716
|
metaKey = true;
|
|
195361
195717
|
else
|
|
195362
195718
|
ctrlKey = true;
|
|
195363
195719
|
}
|
|
195364
|
-
let event = $c87311424ea30a05$export$78551043582a6a98() && $c87311424ea30a05$export$9ac100e40613ea10
|
|
195720
|
+
let event = $c87311424ea30a05$export$78551043582a6a98() && $c87311424ea30a05$export$9ac100e40613ea10() && !$c87311424ea30a05$export$7bef049ce92e4224() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
195365
195721
|
keyIdentifier: "Enter",
|
|
195366
195722
|
metaKey,
|
|
195367
195723
|
ctrlKey,
|
|
@@ -195495,12 +195851,32 @@ function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref2) {
|
|
|
195495
195851
|
function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
195496
195852
|
if (event.mozInputSource === 0 && event.isTrusted)
|
|
195497
195853
|
return true;
|
|
195498
|
-
if ($c87311424ea30a05$export$a11b0059900ceec8
|
|
195854
|
+
if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType)
|
|
195499
195855
|
return event.type === "click" && event.buttons === 1;
|
|
195500
195856
|
return event.detail === 0 && !event.pointerType;
|
|
195501
195857
|
}
|
|
195502
195858
|
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
195503
|
-
return !$c87311424ea30a05$export$a11b0059900ceec8
|
|
195859
|
+
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
195860
|
+
}
|
|
195861
|
+
const $b4b717babfbb907b$var$focusableElements = [
|
|
195862
|
+
"input:not([disabled]):not([type=hidden])",
|
|
195863
|
+
"select:not([disabled])",
|
|
195864
|
+
"textarea:not([disabled])",
|
|
195865
|
+
"button:not([disabled])",
|
|
195866
|
+
"a[href]",
|
|
195867
|
+
"area[href]",
|
|
195868
|
+
"summary",
|
|
195869
|
+
"iframe",
|
|
195870
|
+
"object",
|
|
195871
|
+
"embed",
|
|
195872
|
+
"audio[controls]",
|
|
195873
|
+
"video[controls]",
|
|
195874
|
+
'[contenteditable]:not([contenteditable^="false"])'
|
|
195875
|
+
];
|
|
195876
|
+
const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
195877
|
+
$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
195878
|
+
function $b4b717babfbb907b$export$4c063cf1350e6fed(element2) {
|
|
195879
|
+
return element2.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR);
|
|
195504
195880
|
}
|
|
195505
195881
|
function $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent) {
|
|
195506
195882
|
let event = nativeEvent;
|
|
@@ -195580,854 +195956,64 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
|
|
|
195580
195956
|
]);
|
|
195581
195957
|
}
|
|
195582
195958
|
let $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
195583
|
-
function
|
|
195584
|
-
|
|
195585
|
-
|
|
195586
|
-
|
|
195587
|
-
|
|
195588
|
-
|
|
195589
|
-
if (!privateMap.has(receiver))
|
|
195590
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
195591
|
-
return privateMap.get(receiver);
|
|
195592
|
-
}
|
|
195593
|
-
function _class_private_field_get(receiver, privateMap) {
|
|
195594
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
|
|
195595
|
-
return _class_apply_descriptor_get(receiver, descriptor);
|
|
195596
|
-
}
|
|
195597
|
-
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
195598
|
-
if (descriptor.set)
|
|
195599
|
-
descriptor.set.call(receiver, value);
|
|
195600
|
-
else {
|
|
195601
|
-
if (!descriptor.writable) {
|
|
195602
|
-
throw new TypeError("attempted to set read only private field");
|
|
195603
|
-
}
|
|
195604
|
-
descriptor.value = value;
|
|
195605
|
-
}
|
|
195606
|
-
}
|
|
195607
|
-
function _class_private_field_set(receiver, privateMap, value) {
|
|
195608
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
|
|
195609
|
-
_class_apply_descriptor_set(receiver, descriptor, value);
|
|
195610
|
-
return value;
|
|
195611
|
-
}
|
|
195612
|
-
let $507fabe10e71c6fb$var$currentModality = null;
|
|
195613
|
-
let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
|
|
195614
|
-
let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
|
|
195615
|
-
let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
195616
|
-
let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
195617
|
-
const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
|
|
195618
|
-
Tab: true,
|
|
195619
|
-
Escape: true
|
|
195620
|
-
};
|
|
195621
|
-
function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
195622
|
-
for (let handler of $507fabe10e71c6fb$var$changeHandlers)
|
|
195623
|
-
handler(modality, e);
|
|
195624
|
-
}
|
|
195625
|
-
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
195626
|
-
return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10$1() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
195627
|
-
}
|
|
195628
|
-
function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
|
|
195629
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
195630
|
-
if ($507fabe10e71c6fb$var$isValidKey(e)) {
|
|
195631
|
-
$507fabe10e71c6fb$var$currentModality = "keyboard";
|
|
195632
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e);
|
|
195633
|
-
}
|
|
195634
|
-
}
|
|
195635
|
-
function $507fabe10e71c6fb$var$handlePointerEvent(e) {
|
|
195636
|
-
$507fabe10e71c6fb$var$currentModality = "pointer";
|
|
195637
|
-
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
195638
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
195639
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e);
|
|
195640
|
-
}
|
|
195641
|
-
}
|
|
195642
|
-
function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
195643
|
-
if ($6a7db85432448f7f$export$60278871457622de(e)) {
|
|
195644
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
195645
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
195646
|
-
}
|
|
195647
|
-
}
|
|
195648
|
-
function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
195649
|
-
if (e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted)
|
|
195650
|
-
return;
|
|
195651
|
-
if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
|
|
195652
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
195653
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
|
|
195654
|
-
}
|
|
195655
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
195656
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
195657
|
-
}
|
|
195658
|
-
function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
195659
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
195660
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
195661
|
-
}
|
|
195662
|
-
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element2) {
|
|
195663
|
-
if (typeof window === "undefined" || typeof document === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element2)))
|
|
195664
|
-
return;
|
|
195665
|
-
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element2);
|
|
195666
|
-
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
195667
|
-
let focus = windowObject.HTMLElement.prototype.focus;
|
|
195668
|
-
windowObject.HTMLElement.prototype.focus = function() {
|
|
195669
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
195670
|
-
focus.apply(this, arguments);
|
|
195671
|
-
};
|
|
195672
|
-
documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
195673
|
-
documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
195674
|
-
documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
195675
|
-
windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
195676
|
-
windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
195677
|
-
if (typeof PointerEvent !== "undefined") {
|
|
195678
|
-
documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
195679
|
-
documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
195680
|
-
documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
195681
|
-
} else if (process.env.NODE_ENV === "test") {
|
|
195682
|
-
documentObject.addEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
195683
|
-
documentObject.addEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
195684
|
-
documentObject.addEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
195685
|
-
}
|
|
195686
|
-
windowObject.addEventListener("beforeunload", () => {
|
|
195687
|
-
$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element2);
|
|
195688
|
-
}, {
|
|
195689
|
-
once: true
|
|
195690
|
-
});
|
|
195691
|
-
$507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
|
|
195692
|
-
focus
|
|
195693
|
-
});
|
|
195694
|
-
}
|
|
195695
|
-
const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element2, loadListener) => {
|
|
195696
|
-
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element2);
|
|
195697
|
-
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
195698
|
-
if (loadListener)
|
|
195699
|
-
documentObject.removeEventListener("DOMContentLoaded", loadListener);
|
|
195700
|
-
if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject))
|
|
195959
|
+
function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
|
|
195960
|
+
while (target && !$b4b717babfbb907b$export$4c063cf1350e6fed(target))
|
|
195961
|
+
target = target.parentElement;
|
|
195962
|
+
let window2 = $431fbd86ca7dc216$export$f21a1ffae260145a(target);
|
|
195963
|
+
let activeElement = window2.document.activeElement;
|
|
195964
|
+
if (!activeElement || activeElement === target)
|
|
195701
195965
|
return;
|
|
195702
|
-
|
|
195703
|
-
|
|
195704
|
-
|
|
195705
|
-
|
|
195706
|
-
|
|
195707
|
-
|
|
195708
|
-
|
|
195709
|
-
|
|
195710
|
-
|
|
195711
|
-
|
|
195712
|
-
|
|
195713
|
-
|
|
195714
|
-
|
|
195715
|
-
documentObject.removeEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
195716
|
-
}
|
|
195717
|
-
$507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
|
|
195718
|
-
};
|
|
195719
|
-
function $507fabe10e71c6fb$export$2f1888112f558a7d(element2) {
|
|
195720
|
-
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
195721
|
-
let loadListener;
|
|
195722
|
-
if (documentObject.readyState !== "loading")
|
|
195723
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents(element2);
|
|
195724
|
-
else {
|
|
195725
|
-
loadListener = () => {
|
|
195726
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents(element2);
|
|
195727
|
-
};
|
|
195728
|
-
documentObject.addEventListener("DOMContentLoaded", loadListener);
|
|
195729
|
-
}
|
|
195730
|
-
return () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element2, loadListener);
|
|
195731
|
-
}
|
|
195732
|
-
if (typeof document !== "undefined")
|
|
195733
|
-
$507fabe10e71c6fb$export$2f1888112f558a7d();
|
|
195734
|
-
function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
|
|
195735
|
-
return $507fabe10e71c6fb$var$currentModality !== "pointer";
|
|
195736
|
-
}
|
|
195737
|
-
function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
|
|
195738
|
-
return $507fabe10e71c6fb$var$currentModality;
|
|
195739
|
-
}
|
|
195740
|
-
const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
195741
|
-
"checkbox",
|
|
195742
|
-
"radio",
|
|
195743
|
-
"range",
|
|
195744
|
-
"color",
|
|
195745
|
-
"file",
|
|
195746
|
-
"image",
|
|
195747
|
-
"button",
|
|
195748
|
-
"submit",
|
|
195749
|
-
"reset"
|
|
195750
|
-
]);
|
|
195751
|
-
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
195752
|
-
let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
|
|
195753
|
-
const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
|
|
195754
|
-
const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
|
|
195755
|
-
const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
|
|
195756
|
-
const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
195757
|
-
isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
|
|
195758
|
-
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
195759
|
-
}
|
|
195760
|
-
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
195761
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
195762
|
-
useEffect(() => {
|
|
195763
|
-
let handler = (modality, e) => {
|
|
195764
|
-
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e))
|
|
195765
|
-
return;
|
|
195766
|
-
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
195767
|
-
};
|
|
195768
|
-
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
195769
|
-
return () => {
|
|
195770
|
-
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
195771
|
-
};
|
|
195772
|
-
}, deps);
|
|
195773
|
-
}
|
|
195774
|
-
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
195775
|
-
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
195776
|
-
const onBlur = useCallback((e) => {
|
|
195777
|
-
if (e.target === e.currentTarget) {
|
|
195778
|
-
if (onBlurProp)
|
|
195779
|
-
onBlurProp(e);
|
|
195780
|
-
if (onFocusChange)
|
|
195781
|
-
onFocusChange(false);
|
|
195782
|
-
return true;
|
|
195783
|
-
}
|
|
195784
|
-
}, [
|
|
195785
|
-
onBlurProp,
|
|
195786
|
-
onFocusChange
|
|
195787
|
-
]);
|
|
195788
|
-
const onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
195789
|
-
const onFocus = useCallback((e) => {
|
|
195790
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
195791
|
-
const activeElement = ownerDocument ? $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) : $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
195792
|
-
if (e.target === e.currentTarget && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
|
|
195793
|
-
if (onFocusProp)
|
|
195794
|
-
onFocusProp(e);
|
|
195795
|
-
if (onFocusChange)
|
|
195796
|
-
onFocusChange(true);
|
|
195797
|
-
onSyntheticFocus(e);
|
|
195798
|
-
}
|
|
195799
|
-
}, [
|
|
195800
|
-
onFocusChange,
|
|
195801
|
-
onFocusProp,
|
|
195802
|
-
onSyntheticFocus
|
|
195803
|
-
]);
|
|
195804
|
-
return {
|
|
195805
|
-
focusProps: {
|
|
195806
|
-
onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0,
|
|
195807
|
-
onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : void 0
|
|
195808
|
-
}
|
|
195809
|
-
};
|
|
195810
|
-
}
|
|
195811
|
-
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
195812
|
-
if (!handler)
|
|
195813
|
-
return void 0;
|
|
195814
|
-
let shouldStopPropagation = true;
|
|
195815
|
-
return (e) => {
|
|
195816
|
-
let event = {
|
|
195817
|
-
...e,
|
|
195818
|
-
preventDefault() {
|
|
195819
|
-
e.preventDefault();
|
|
195820
|
-
},
|
|
195821
|
-
isDefaultPrevented() {
|
|
195822
|
-
return e.isDefaultPrevented();
|
|
195823
|
-
},
|
|
195824
|
-
stopPropagation() {
|
|
195825
|
-
if (shouldStopPropagation && process.env.NODE_ENV !== "production")
|
|
195826
|
-
console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
|
|
195827
|
-
else
|
|
195828
|
-
shouldStopPropagation = true;
|
|
195829
|
-
},
|
|
195830
|
-
continuePropagation() {
|
|
195831
|
-
shouldStopPropagation = false;
|
|
195832
|
-
},
|
|
195833
|
-
isPropagationStopped() {
|
|
195834
|
-
return shouldStopPropagation;
|
|
195966
|
+
$8a9cb279dc87e130$export$fda7da73ab5d4c48 = true;
|
|
195967
|
+
let isRefocusing = false;
|
|
195968
|
+
let onBlur = (e) => {
|
|
195969
|
+
if (e.target === activeElement || isRefocusing)
|
|
195970
|
+
e.stopImmediatePropagation();
|
|
195971
|
+
};
|
|
195972
|
+
let onFocusOut = (e) => {
|
|
195973
|
+
if (e.target === activeElement || isRefocusing) {
|
|
195974
|
+
e.stopImmediatePropagation();
|
|
195975
|
+
if (!target && !isRefocusing) {
|
|
195976
|
+
isRefocusing = true;
|
|
195977
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(activeElement);
|
|
195978
|
+
cleanup();
|
|
195835
195979
|
}
|
|
195836
|
-
};
|
|
195837
|
-
handler(event);
|
|
195838
|
-
if (shouldStopPropagation)
|
|
195839
|
-
e.stopPropagation();
|
|
195840
|
-
};
|
|
195841
|
-
}
|
|
195842
|
-
function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
195843
|
-
return {
|
|
195844
|
-
keyboardProps: props.isDisabled ? {} : {
|
|
195845
|
-
onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
|
|
195846
|
-
onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
|
|
195847
195980
|
}
|
|
195848
195981
|
};
|
|
195849
|
-
|
|
195850
|
-
|
|
195851
|
-
|
|
195852
|
-
let state = useRef({
|
|
195853
|
-
isFocusWithin: false
|
|
195854
|
-
});
|
|
195855
|
-
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
195856
|
-
let onBlur = useCallback((e) => {
|
|
195857
|
-
if (!e.currentTarget.contains(e.target))
|
|
195858
|
-
return;
|
|
195859
|
-
if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {
|
|
195860
|
-
state.current.isFocusWithin = false;
|
|
195861
|
-
removeAllGlobalListeners();
|
|
195862
|
-
if (onBlurWithin)
|
|
195863
|
-
onBlurWithin(e);
|
|
195864
|
-
if (onFocusWithinChange)
|
|
195865
|
-
onFocusWithinChange(false);
|
|
195866
|
-
}
|
|
195867
|
-
}, [
|
|
195868
|
-
onBlurWithin,
|
|
195869
|
-
onFocusWithinChange,
|
|
195870
|
-
state,
|
|
195871
|
-
removeAllGlobalListeners
|
|
195872
|
-
]);
|
|
195873
|
-
let onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
195874
|
-
let onFocus = useCallback((e) => {
|
|
195875
|
-
if (!e.currentTarget.contains(e.target))
|
|
195876
|
-
return;
|
|
195877
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
195878
|
-
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
195879
|
-
if (!state.current.isFocusWithin && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
|
|
195880
|
-
if (onFocusWithin)
|
|
195881
|
-
onFocusWithin(e);
|
|
195882
|
-
if (onFocusWithinChange)
|
|
195883
|
-
onFocusWithinChange(true);
|
|
195884
|
-
state.current.isFocusWithin = true;
|
|
195885
|
-
onSyntheticFocus(e);
|
|
195886
|
-
let currentTarget = e.currentTarget;
|
|
195887
|
-
addGlobalListener(ownerDocument, "focus", (e2) => {
|
|
195888
|
-
if (state.current.isFocusWithin && !$d4ee10de306f2510$export$4282f70798064fe0(currentTarget, e2.target)) {
|
|
195889
|
-
let nativeEvent = new ownerDocument.defaultView.FocusEvent("blur", {
|
|
195890
|
-
relatedTarget: e2.target
|
|
195891
|
-
});
|
|
195892
|
-
$8a9cb279dc87e130$export$c2b7abe5d61ec696(nativeEvent, currentTarget);
|
|
195893
|
-
let event = $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent);
|
|
195894
|
-
onBlur(event);
|
|
195895
|
-
}
|
|
195896
|
-
}, {
|
|
195897
|
-
capture: true
|
|
195898
|
-
});
|
|
195899
|
-
}
|
|
195900
|
-
}, [
|
|
195901
|
-
onFocusWithin,
|
|
195902
|
-
onFocusWithinChange,
|
|
195903
|
-
onSyntheticFocus,
|
|
195904
|
-
addGlobalListener,
|
|
195905
|
-
onBlur
|
|
195906
|
-
]);
|
|
195907
|
-
if (isDisabled)
|
|
195908
|
-
return {
|
|
195909
|
-
focusWithinProps: {
|
|
195910
|
-
// These cannot be null, that would conflict in mergeProps
|
|
195911
|
-
onFocus: void 0,
|
|
195912
|
-
onBlur: void 0
|
|
195913
|
-
}
|
|
195914
|
-
};
|
|
195915
|
-
return {
|
|
195916
|
-
focusWithinProps: {
|
|
195917
|
-
onFocus,
|
|
195918
|
-
onBlur
|
|
195919
|
-
}
|
|
195982
|
+
let onFocus = (e) => {
|
|
195983
|
+
if (e.target === target || isRefocusing)
|
|
195984
|
+
e.stopImmediatePropagation();
|
|
195920
195985
|
};
|
|
195921
|
-
|
|
195922
|
-
|
|
195923
|
-
|
|
195924
|
-
|
|
195925
|
-
|
|
195926
|
-
|
|
195927
|
-
|
|
195928
|
-
errorMessage = "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",
|
|
195929
|
-
name
|
|
195930
|
-
} = options;
|
|
195931
|
-
const Context3 = React.createContext(void 0);
|
|
195932
|
-
Context3.displayName = name;
|
|
195933
|
-
function useContext2() {
|
|
195934
|
-
var _a3;
|
|
195935
|
-
const context = React.useContext(Context3);
|
|
195936
|
-
if (!context && strict) {
|
|
195937
|
-
const error = new Error(errorMessage);
|
|
195938
|
-
error.name = "ContextError";
|
|
195939
|
-
(_a3 = Error.captureStackTrace) == null ? void 0 : _a3.call(Error, error, useContext2);
|
|
195940
|
-
throw error;
|
|
195941
|
-
}
|
|
195942
|
-
return context;
|
|
195943
|
-
}
|
|
195944
|
-
return [Context3.Provider, useContext2, Context3];
|
|
195945
|
-
}
|
|
195946
|
-
function useDOMRef(ref2) {
|
|
195947
|
-
const domRef = useRef(null);
|
|
195948
|
-
useImperativeHandle(ref2, () => domRef.current);
|
|
195949
|
-
return domRef;
|
|
195950
|
-
}
|
|
195951
|
-
process.env.NODE_ENV !== "production";
|
|
195952
|
-
process.env.NODE_ENV === "test";
|
|
195953
|
-
var dataAttr = (condition) => condition ? "true" : void 0;
|
|
195954
|
-
function toVal(mix) {
|
|
195955
|
-
var k2, y2, str = "";
|
|
195956
|
-
if (typeof mix === "string" || typeof mix === "number") {
|
|
195957
|
-
str += mix;
|
|
195958
|
-
} else if (typeof mix === "object") {
|
|
195959
|
-
if (Array.isArray(mix)) {
|
|
195960
|
-
for (k2 = 0; k2 < mix.length; k2++) {
|
|
195961
|
-
if (mix[k2]) {
|
|
195962
|
-
if (y2 = toVal(mix[k2])) {
|
|
195963
|
-
str && (str += " ");
|
|
195964
|
-
str += y2;
|
|
195965
|
-
}
|
|
195966
|
-
}
|
|
195967
|
-
}
|
|
195968
|
-
} else {
|
|
195969
|
-
for (k2 in mix) {
|
|
195970
|
-
if (mix[k2]) {
|
|
195971
|
-
str && (str += " ");
|
|
195972
|
-
str += k2;
|
|
195973
|
-
}
|
|
195974
|
-
}
|
|
195975
|
-
}
|
|
195976
|
-
}
|
|
195977
|
-
return str;
|
|
195978
|
-
}
|
|
195979
|
-
function clsx(...args) {
|
|
195980
|
-
var i2 = 0, tmp, x2, str = "";
|
|
195981
|
-
while (i2 < args.length) {
|
|
195982
|
-
if (tmp = args[i2++]) {
|
|
195983
|
-
if (x2 = toVal(tmp)) {
|
|
195984
|
-
str && (str += " ");
|
|
195985
|
-
str += x2;
|
|
195986
|
+
let onFocusIn = (e) => {
|
|
195987
|
+
if (e.target === target || isRefocusing) {
|
|
195988
|
+
e.stopImmediatePropagation();
|
|
195989
|
+
if (!isRefocusing) {
|
|
195990
|
+
isRefocusing = true;
|
|
195991
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(activeElement);
|
|
195992
|
+
cleanup();
|
|
195986
195993
|
}
|
|
195987
195994
|
}
|
|
195988
|
-
}
|
|
195989
|
-
return str;
|
|
195990
|
-
}
|
|
195991
|
-
function getUniqueID(prefix) {
|
|
195992
|
-
return `${prefix}-${Math.floor(Math.random() * 1e6)}`;
|
|
195993
|
-
}
|
|
195994
|
-
function objectToDeps(obj) {
|
|
195995
|
-
if (!obj || typeof obj !== "object") {
|
|
195996
|
-
return "";
|
|
195997
|
-
}
|
|
195998
|
-
try {
|
|
195999
|
-
return JSON.stringify(obj);
|
|
196000
|
-
} catch (e) {
|
|
196001
|
-
return "";
|
|
196002
|
-
}
|
|
196003
|
-
}
|
|
196004
|
-
function clamp(value, min, max) {
|
|
196005
|
-
return Math.min(Math.max(value, min), max);
|
|
196006
|
-
}
|
|
196007
|
-
var warningStack = {};
|
|
196008
|
-
function warn(message, component, ...args) {
|
|
196009
|
-
const tag = component ? ` [${component}]` : " ";
|
|
196010
|
-
const log2 = `[Hero UI]${tag}: ${message}`;
|
|
196011
|
-
if (typeof console === "undefined")
|
|
196012
|
-
return;
|
|
196013
|
-
if (warningStack[log2])
|
|
196014
|
-
return;
|
|
196015
|
-
warningStack[log2] = true;
|
|
196016
|
-
if (process.env.NODE_ENV !== "production") {
|
|
196017
|
-
return console.warn(log2, args);
|
|
196018
|
-
}
|
|
196019
|
-
}
|
|
196020
|
-
var DOMPropNames = /* @__PURE__ */ new Set([
|
|
196021
|
-
"id",
|
|
196022
|
-
"type",
|
|
196023
|
-
"style",
|
|
196024
|
-
"title",
|
|
196025
|
-
"role",
|
|
196026
|
-
"tabIndex",
|
|
196027
|
-
"htmlFor",
|
|
196028
|
-
"width",
|
|
196029
|
-
"height",
|
|
196030
|
-
"abbr",
|
|
196031
|
-
"accept",
|
|
196032
|
-
"acceptCharset",
|
|
196033
|
-
"accessKey",
|
|
196034
|
-
"action",
|
|
196035
|
-
"allowFullScreen",
|
|
196036
|
-
"allowTransparency",
|
|
196037
|
-
"alt",
|
|
196038
|
-
"async",
|
|
196039
|
-
"autoComplete",
|
|
196040
|
-
"autoFocus",
|
|
196041
|
-
"autoPlay",
|
|
196042
|
-
"cellPadding",
|
|
196043
|
-
"cellSpacing",
|
|
196044
|
-
"challenge",
|
|
196045
|
-
"charset",
|
|
196046
|
-
"checked",
|
|
196047
|
-
"cite",
|
|
196048
|
-
"class",
|
|
196049
|
-
"className",
|
|
196050
|
-
"cols",
|
|
196051
|
-
"colSpan",
|
|
196052
|
-
"command",
|
|
196053
|
-
"content",
|
|
196054
|
-
"contentEditable",
|
|
196055
|
-
"contextMenu",
|
|
196056
|
-
"controls",
|
|
196057
|
-
"coords",
|
|
196058
|
-
"crossOrigin",
|
|
196059
|
-
"data",
|
|
196060
|
-
"dateTime",
|
|
196061
|
-
"default",
|
|
196062
|
-
"defer",
|
|
196063
|
-
"dir",
|
|
196064
|
-
"disabled",
|
|
196065
|
-
"download",
|
|
196066
|
-
"draggable",
|
|
196067
|
-
"dropzone",
|
|
196068
|
-
"encType",
|
|
196069
|
-
"enterKeyHint",
|
|
196070
|
-
"for",
|
|
196071
|
-
"form",
|
|
196072
|
-
"formAction",
|
|
196073
|
-
"formEncType",
|
|
196074
|
-
"formMethod",
|
|
196075
|
-
"formNoValidate",
|
|
196076
|
-
"formTarget",
|
|
196077
|
-
"frameBorder",
|
|
196078
|
-
"headers",
|
|
196079
|
-
"hidden",
|
|
196080
|
-
"high",
|
|
196081
|
-
"href",
|
|
196082
|
-
"hrefLang",
|
|
196083
|
-
"httpEquiv",
|
|
196084
|
-
"icon",
|
|
196085
|
-
"inputMode",
|
|
196086
|
-
"isMap",
|
|
196087
|
-
"itemId",
|
|
196088
|
-
"itemProp",
|
|
196089
|
-
"itemRef",
|
|
196090
|
-
"itemScope",
|
|
196091
|
-
"itemType",
|
|
196092
|
-
"kind",
|
|
196093
|
-
"label",
|
|
196094
|
-
"lang",
|
|
196095
|
-
"list",
|
|
196096
|
-
"loop",
|
|
196097
|
-
"manifest",
|
|
196098
|
-
"max",
|
|
196099
|
-
"maxLength",
|
|
196100
|
-
"media",
|
|
196101
|
-
"mediaGroup",
|
|
196102
|
-
"method",
|
|
196103
|
-
"min",
|
|
196104
|
-
"minLength",
|
|
196105
|
-
"multiple",
|
|
196106
|
-
"muted",
|
|
196107
|
-
"name",
|
|
196108
|
-
"noValidate",
|
|
196109
|
-
"open",
|
|
196110
|
-
"optimum",
|
|
196111
|
-
"pattern",
|
|
196112
|
-
"ping",
|
|
196113
|
-
"placeholder",
|
|
196114
|
-
"poster",
|
|
196115
|
-
"preload",
|
|
196116
|
-
"radioGroup",
|
|
196117
|
-
"referrerPolicy",
|
|
196118
|
-
"readOnly",
|
|
196119
|
-
"rel",
|
|
196120
|
-
"required",
|
|
196121
|
-
"rows",
|
|
196122
|
-
"rowSpan",
|
|
196123
|
-
"sandbox",
|
|
196124
|
-
"scope",
|
|
196125
|
-
"scoped",
|
|
196126
|
-
"scrolling",
|
|
196127
|
-
"seamless",
|
|
196128
|
-
"selected",
|
|
196129
|
-
"shape",
|
|
196130
|
-
"size",
|
|
196131
|
-
"sizes",
|
|
196132
|
-
"slot",
|
|
196133
|
-
"sortable",
|
|
196134
|
-
"span",
|
|
196135
|
-
"spellCheck",
|
|
196136
|
-
"src",
|
|
196137
|
-
"srcDoc",
|
|
196138
|
-
"srcSet",
|
|
196139
|
-
"start",
|
|
196140
|
-
"step",
|
|
196141
|
-
"target",
|
|
196142
|
-
"translate",
|
|
196143
|
-
"typeMustMatch",
|
|
196144
|
-
"useMap",
|
|
196145
|
-
"value",
|
|
196146
|
-
"wmode",
|
|
196147
|
-
"wrap"
|
|
196148
|
-
]);
|
|
196149
|
-
var DOMEventNames = /* @__PURE__ */ new Set([
|
|
196150
|
-
"onCopy",
|
|
196151
|
-
"onCut",
|
|
196152
|
-
"onPaste",
|
|
196153
|
-
"onLoad",
|
|
196154
|
-
"onError",
|
|
196155
|
-
"onWheel",
|
|
196156
|
-
"onScroll",
|
|
196157
|
-
"onCompositionEnd",
|
|
196158
|
-
"onCompositionStart",
|
|
196159
|
-
"onCompositionUpdate",
|
|
196160
|
-
"onKeyDown",
|
|
196161
|
-
"onKeyPress",
|
|
196162
|
-
"onKeyUp",
|
|
196163
|
-
"onFocus",
|
|
196164
|
-
"onBlur",
|
|
196165
|
-
"onChange",
|
|
196166
|
-
"onInput",
|
|
196167
|
-
"onSubmit",
|
|
196168
|
-
"onClick",
|
|
196169
|
-
"onContextMenu",
|
|
196170
|
-
"onDoubleClick",
|
|
196171
|
-
"onDrag",
|
|
196172
|
-
"onDragEnd",
|
|
196173
|
-
"onDragEnter",
|
|
196174
|
-
"onDragExit",
|
|
196175
|
-
"onDragLeave",
|
|
196176
|
-
"onDragOver",
|
|
196177
|
-
"onDragStart",
|
|
196178
|
-
"onDrop",
|
|
196179
|
-
"onMouseDown",
|
|
196180
|
-
"onMouseEnter",
|
|
196181
|
-
"onMouseLeave",
|
|
196182
|
-
"onMouseMove",
|
|
196183
|
-
"onMouseOut",
|
|
196184
|
-
"onMouseOver",
|
|
196185
|
-
"onMouseUp",
|
|
196186
|
-
"onPointerDown",
|
|
196187
|
-
"onPointerEnter",
|
|
196188
|
-
"onPointerLeave",
|
|
196189
|
-
"onPointerUp",
|
|
196190
|
-
"onSelect",
|
|
196191
|
-
"onTouchCancel",
|
|
196192
|
-
"onTouchEnd",
|
|
196193
|
-
"onTouchMove",
|
|
196194
|
-
"onTouchStart",
|
|
196195
|
-
"onAnimationStart",
|
|
196196
|
-
"onAnimationEnd",
|
|
196197
|
-
"onAnimationIteration",
|
|
196198
|
-
"onTransitionEnd"
|
|
196199
|
-
]);
|
|
196200
|
-
var propRe = /^(data-.*)$/;
|
|
196201
|
-
var ariaRe = /^(aria-.*)$/;
|
|
196202
|
-
var funcRe = /^(on[A-Z].*)$/;
|
|
196203
|
-
function filterDOMProps(props, opts = {}) {
|
|
196204
|
-
let {
|
|
196205
|
-
labelable = true,
|
|
196206
|
-
enabled = true,
|
|
196207
|
-
propNames,
|
|
196208
|
-
omitPropNames,
|
|
196209
|
-
omitEventNames,
|
|
196210
|
-
omitDataProps,
|
|
196211
|
-
omitEventProps
|
|
196212
|
-
} = opts;
|
|
196213
|
-
let filteredProps = {};
|
|
196214
|
-
if (!enabled) {
|
|
196215
|
-
return props;
|
|
196216
|
-
}
|
|
196217
|
-
for (const prop in props) {
|
|
196218
|
-
if (omitPropNames == null ? void 0 : omitPropNames.has(prop)) {
|
|
196219
|
-
continue;
|
|
196220
|
-
}
|
|
196221
|
-
if ((omitEventNames == null ? void 0 : omitEventNames.has(prop)) && funcRe.test(prop)) {
|
|
196222
|
-
continue;
|
|
196223
|
-
}
|
|
196224
|
-
if (funcRe.test(prop) && !DOMEventNames.has(prop)) {
|
|
196225
|
-
continue;
|
|
196226
|
-
}
|
|
196227
|
-
if (omitDataProps && propRe.test(prop)) {
|
|
196228
|
-
continue;
|
|
196229
|
-
}
|
|
196230
|
-
if (omitEventProps && funcRe.test(prop)) {
|
|
196231
|
-
continue;
|
|
196232
|
-
}
|
|
196233
|
-
if (Object.prototype.hasOwnProperty.call(props, prop) && (DOMPropNames.has(prop) || labelable && ariaRe.test(prop) || (propNames == null ? void 0 : propNames.has(prop)) || propRe.test(prop)) || funcRe.test(prop)) {
|
|
196234
|
-
filteredProps[prop] = props[prop];
|
|
196235
|
-
}
|
|
196236
|
-
}
|
|
196237
|
-
return filteredProps;
|
|
196238
|
-
}
|
|
196239
|
-
var [ButtonGroupProvider, useButtonGroupContext] = createContext2({
|
|
196240
|
-
name: "ButtonGroupContext",
|
|
196241
|
-
strict: false
|
|
196242
|
-
});
|
|
196243
|
-
function $6a99195332edec8b$export$80f3e147d781571c(element2) {
|
|
196244
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
196245
|
-
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
196246
|
-
let lastFocusedElement = ownerDocument.activeElement;
|
|
196247
|
-
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
196248
|
-
if (ownerDocument.activeElement === lastFocusedElement && element2.isConnected)
|
|
196249
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(element2);
|
|
196250
|
-
});
|
|
196251
|
-
} else
|
|
196252
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(element2);
|
|
196253
|
-
}
|
|
196254
|
-
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
196255
|
-
let { autoFocus = false, isTextInput, within } = props;
|
|
196256
|
-
let state = useRef({
|
|
196257
|
-
isFocused: false,
|
|
196258
|
-
isFocusVisible: autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27()
|
|
196259
|
-
});
|
|
196260
|
-
let [isFocused, setFocused] = useState(false);
|
|
196261
|
-
let [isFocusVisibleState, setFocusVisible] = useState(() => state.current.isFocused && state.current.isFocusVisible);
|
|
196262
|
-
let updateState2 = useCallback(() => setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);
|
|
196263
|
-
let onFocusChange = useCallback((isFocused2) => {
|
|
196264
|
-
state.current.isFocused = isFocused2;
|
|
196265
|
-
setFocused(isFocused2);
|
|
196266
|
-
updateState2();
|
|
196267
|
-
}, [
|
|
196268
|
-
updateState2
|
|
196269
|
-
]);
|
|
196270
|
-
$507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => {
|
|
196271
|
-
state.current.isFocusVisible = isFocusVisible;
|
|
196272
|
-
updateState2();
|
|
196273
|
-
}, [], {
|
|
196274
|
-
isTextInput
|
|
196275
|
-
});
|
|
196276
|
-
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
|
|
196277
|
-
isDisabled: within,
|
|
196278
|
-
onFocusChange
|
|
196279
|
-
});
|
|
196280
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
196281
|
-
isDisabled: !within,
|
|
196282
|
-
onFocusWithinChange: onFocusChange
|
|
196283
|
-
});
|
|
196284
|
-
return {
|
|
196285
|
-
isFocused,
|
|
196286
|
-
isFocusVisible: isFocusVisibleState,
|
|
196287
|
-
focusProps: within ? focusWithinProps : focusProps
|
|
196288
195995
|
};
|
|
196289
|
-
|
|
196290
|
-
|
|
196291
|
-
|
|
196292
|
-
|
|
196293
|
-
|
|
196294
|
-
|
|
196295
|
-
|
|
196296
|
-
|
|
196297
|
-
|
|
196298
|
-
|
|
196299
|
-
|
|
196300
|
-
|
|
196301
|
-
let domProps = $e6afbd83fe6ebbd2$var$useFocusableContext(domRef);
|
|
196302
|
-
let interactionProps = props.isDisabled ? {} : domProps;
|
|
196303
|
-
let autoFocusRef = useRef(props.autoFocus);
|
|
196304
|
-
useEffect(() => {
|
|
196305
|
-
if (autoFocusRef.current && domRef.current)
|
|
196306
|
-
$6a99195332edec8b$export$80f3e147d781571c(domRef.current);
|
|
196307
|
-
autoFocusRef.current = false;
|
|
196308
|
-
}, [
|
|
196309
|
-
domRef
|
|
196310
|
-
]);
|
|
196311
|
-
return {
|
|
196312
|
-
focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928$1({
|
|
196313
|
-
...interactions,
|
|
196314
|
-
tabIndex: props.excludeFromTabOrder && !props.isDisabled ? -1 : void 0
|
|
196315
|
-
}, interactionProps)
|
|
196316
|
-
};
|
|
196317
|
-
}
|
|
196318
|
-
let $bdb11010cef70236$var$idsUpdaterMap = /* @__PURE__ */ new Map();
|
|
196319
|
-
function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
|
|
196320
|
-
if (idA === idB)
|
|
196321
|
-
return idA;
|
|
196322
|
-
let setIdsA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);
|
|
196323
|
-
if (setIdsA) {
|
|
196324
|
-
setIdsA.forEach((fn) => fn(idB));
|
|
196325
|
-
return idB;
|
|
196326
|
-
}
|
|
196327
|
-
let setIdsB = $bdb11010cef70236$var$idsUpdaterMap.get(idB);
|
|
196328
|
-
if (setIdsB) {
|
|
196329
|
-
setIdsB.forEach((fn) => fn(idA));
|
|
196330
|
-
return idA;
|
|
196331
|
-
}
|
|
196332
|
-
return idB;
|
|
196333
|
-
}
|
|
196334
|
-
function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
|
|
196335
|
-
return (...args) => {
|
|
196336
|
-
for (let callback of callbacks)
|
|
196337
|
-
if (typeof callback === "function")
|
|
196338
|
-
callback(...args);
|
|
196339
|
-
};
|
|
196340
|
-
}
|
|
196341
|
-
function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
196342
|
-
let result = {
|
|
196343
|
-
...args[0]
|
|
196344
|
-
};
|
|
196345
|
-
for (let i2 = 1; i2 < args.length; i2++) {
|
|
196346
|
-
let props = args[i2];
|
|
196347
|
-
for (let key2 in props) {
|
|
196348
|
-
let a2 = result[key2];
|
|
196349
|
-
let b = props[key2];
|
|
196350
|
-
if (typeof a2 === "function" && typeof b === "function" && // This is a lot faster than a regex.
|
|
196351
|
-
key2[0] === "o" && key2[1] === "n" && key2.charCodeAt(2) >= /* 'A' */
|
|
196352
|
-
65 && key2.charCodeAt(2) <= /* 'Z' */
|
|
196353
|
-
90)
|
|
196354
|
-
result[key2] = $ff5963eb1fccf552$export$e08e3b67e392101e(a2, b);
|
|
196355
|
-
else if ((key2 === "className" || key2 === "UNSAFE_className") && typeof a2 === "string" && typeof b === "string")
|
|
196356
|
-
result[key2] = clsx$1(a2, b);
|
|
196357
|
-
else if (key2 === "id" && a2 && b)
|
|
196358
|
-
result.id = $bdb11010cef70236$export$cd8c9cb68f842629(a2, b);
|
|
196359
|
-
else
|
|
196360
|
-
result[key2] = b !== void 0 ? b : a2;
|
|
196361
|
-
}
|
|
196362
|
-
}
|
|
196363
|
-
return result;
|
|
196364
|
-
}
|
|
196365
|
-
const $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([
|
|
196366
|
-
"id"
|
|
196367
|
-
]);
|
|
196368
|
-
const $65484d02dcb7eb3e$var$labelablePropNames = /* @__PURE__ */ new Set([
|
|
196369
|
-
"aria-label",
|
|
196370
|
-
"aria-labelledby",
|
|
196371
|
-
"aria-describedby",
|
|
196372
|
-
"aria-details"
|
|
196373
|
-
]);
|
|
196374
|
-
const $65484d02dcb7eb3e$var$linkPropNames = /* @__PURE__ */ new Set([
|
|
196375
|
-
"href",
|
|
196376
|
-
"hrefLang",
|
|
196377
|
-
"target",
|
|
196378
|
-
"rel",
|
|
196379
|
-
"download",
|
|
196380
|
-
"ping",
|
|
196381
|
-
"referrerPolicy"
|
|
196382
|
-
]);
|
|
196383
|
-
const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
|
|
196384
|
-
function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
|
|
196385
|
-
let { labelable, isLink, propNames } = opts;
|
|
196386
|
-
let filteredProps = {};
|
|
196387
|
-
for (const prop in props)
|
|
196388
|
-
if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop)))
|
|
196389
|
-
filteredProps[prop] = props[prop];
|
|
196390
|
-
return filteredProps;
|
|
196391
|
-
}
|
|
196392
|
-
function $c87311424ea30a05$var$testUserAgent(re2) {
|
|
196393
|
-
var _window_navigator_userAgentData;
|
|
196394
|
-
if (typeof window === "undefined" || window.navigator == null)
|
|
196395
|
-
return false;
|
|
196396
|
-
return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re2.test(brand.brand))) || re2.test(window.navigator.userAgent);
|
|
196397
|
-
}
|
|
196398
|
-
function $c87311424ea30a05$var$testPlatform(re2) {
|
|
196399
|
-
var _window_navigator_userAgentData;
|
|
196400
|
-
return typeof window !== "undefined" && window.navigator != null ? re2.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
196401
|
-
}
|
|
196402
|
-
function $c87311424ea30a05$var$cached(fn) {
|
|
196403
|
-
let res = null;
|
|
196404
|
-
return () => {
|
|
196405
|
-
if (res == null)
|
|
196406
|
-
res = fn();
|
|
196407
|
-
return res;
|
|
195996
|
+
window2.addEventListener("blur", onBlur, true);
|
|
195997
|
+
window2.addEventListener("focusout", onFocusOut, true);
|
|
195998
|
+
window2.addEventListener("focusin", onFocusIn, true);
|
|
195999
|
+
window2.addEventListener("focus", onFocus, true);
|
|
196000
|
+
let cleanup = () => {
|
|
196001
|
+
cancelAnimationFrame(raf);
|
|
196002
|
+
window2.removeEventListener("blur", onBlur, true);
|
|
196003
|
+
window2.removeEventListener("focusout", onFocusOut, true);
|
|
196004
|
+
window2.removeEventListener("focusin", onFocusIn, true);
|
|
196005
|
+
window2.removeEventListener("focus", onFocus, true);
|
|
196006
|
+
$8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
196007
|
+
isRefocusing = false;
|
|
196408
196008
|
};
|
|
196009
|
+
let raf = requestAnimationFrame(cleanup);
|
|
196010
|
+
return cleanup;
|
|
196409
196011
|
}
|
|
196410
|
-
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
196411
|
-
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
196412
|
-
});
|
|
196413
|
-
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
196414
|
-
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
196415
|
-
});
|
|
196416
|
-
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
196417
|
-
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
196418
|
-
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
196419
|
-
});
|
|
196420
|
-
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
196421
|
-
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
196422
|
-
});
|
|
196423
|
-
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
196424
|
-
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
196425
|
-
});
|
|
196426
196012
|
let $14c0b72509d70225$var$state = "default";
|
|
196427
196013
|
let $14c0b72509d70225$var$savedUserSelect = "";
|
|
196428
196014
|
let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
|
|
196429
196015
|
function $14c0b72509d70225$export$16a4697467175487(target) {
|
|
196430
|
-
if ($c87311424ea30a05$export$fedb369cb70207f1
|
|
196016
|
+
if ($c87311424ea30a05$export$fedb369cb70207f1()) {
|
|
196431
196017
|
if ($14c0b72509d70225$var$state === "default") {
|
|
196432
196018
|
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(target);
|
|
196433
196019
|
$14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;
|
|
@@ -196435,12 +196021,13 @@ function $14c0b72509d70225$export$16a4697467175487(target) {
|
|
|
196435
196021
|
}
|
|
196436
196022
|
$14c0b72509d70225$var$state = "disabled";
|
|
196437
196023
|
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
196438
|
-
|
|
196439
|
-
target.style
|
|
196024
|
+
let property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
|
|
196025
|
+
$14c0b72509d70225$var$modifiedElementMap.set(target, target.style[property]);
|
|
196026
|
+
target.style[property] = "none";
|
|
196440
196027
|
}
|
|
196441
196028
|
}
|
|
196442
196029
|
function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
|
|
196443
|
-
if ($c87311424ea30a05$export$fedb369cb70207f1
|
|
196030
|
+
if ($c87311424ea30a05$export$fedb369cb70207f1()) {
|
|
196444
196031
|
if ($14c0b72509d70225$var$state !== "disabled")
|
|
196445
196032
|
return;
|
|
196446
196033
|
$14c0b72509d70225$var$state = "restoring";
|
|
@@ -196458,8 +196045,9 @@ function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
|
|
|
196458
196045
|
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
196459
196046
|
if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {
|
|
196460
196047
|
let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);
|
|
196461
|
-
|
|
196462
|
-
|
|
196048
|
+
let property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect";
|
|
196049
|
+
if (target.style[property] === "none")
|
|
196050
|
+
target.style[property] = targetOldUserSelect;
|
|
196463
196051
|
if (target.getAttribute("style") === "")
|
|
196464
196052
|
target.removeAttribute("style");
|
|
196465
196053
|
$14c0b72509d70225$var$modifiedElementMap.delete(target);
|
|
@@ -196471,11 +196059,40 @@ const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = React__default.createContext({
|
|
|
196471
196059
|
}
|
|
196472
196060
|
});
|
|
196473
196061
|
$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
|
|
196062
|
+
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
196063
|
+
if (descriptor.get)
|
|
196064
|
+
return descriptor.get.call(receiver);
|
|
196065
|
+
return descriptor.value;
|
|
196066
|
+
}
|
|
196067
|
+
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
196068
|
+
if (!privateMap.has(receiver))
|
|
196069
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
196070
|
+
return privateMap.get(receiver);
|
|
196071
|
+
}
|
|
196072
|
+
function _class_private_field_get(receiver, privateMap) {
|
|
196073
|
+
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
|
|
196074
|
+
return _class_apply_descriptor_get(receiver, descriptor);
|
|
196075
|
+
}
|
|
196076
|
+
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
196077
|
+
if (descriptor.set)
|
|
196078
|
+
descriptor.set.call(receiver, value);
|
|
196079
|
+
else {
|
|
196080
|
+
if (!descriptor.writable) {
|
|
196081
|
+
throw new TypeError("attempted to set read only private field");
|
|
196082
|
+
}
|
|
196083
|
+
descriptor.value = value;
|
|
196084
|
+
}
|
|
196085
|
+
}
|
|
196086
|
+
function _class_private_field_set(receiver, privateMap, value) {
|
|
196087
|
+
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
|
|
196088
|
+
_class_apply_descriptor_set(receiver, descriptor, value);
|
|
196089
|
+
return value;
|
|
196090
|
+
}
|
|
196474
196091
|
function $f6c31cce2adf654f$var$usePressResponderContext(props) {
|
|
196475
196092
|
let context = useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
|
|
196476
196093
|
if (context) {
|
|
196477
196094
|
let { register: register2, ...contextProps } = context;
|
|
196478
|
-
props = $3ef42575df84b30b$export$9d1611c77c2fe928
|
|
196095
|
+
props = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
|
|
196479
196096
|
register2();
|
|
196480
196097
|
}
|
|
196481
196098
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, props.ref);
|
|
@@ -196525,33 +196142,21 @@ class $f6c31cce2adf654f$var$PressEvent {
|
|
|
196525
196142
|
}
|
|
196526
196143
|
}
|
|
196527
196144
|
const $f6c31cce2adf654f$var$LINK_CLICKED = Symbol("linkClicked");
|
|
196145
|
+
const $f6c31cce2adf654f$var$STYLE_ID = "react-aria-pressable-style";
|
|
196146
|
+
const $f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE = "data-react-aria-pressable";
|
|
196528
196147
|
function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
196529
|
-
let {
|
|
196530
|
-
onPress,
|
|
196531
|
-
onPressChange,
|
|
196532
|
-
onPressStart,
|
|
196533
|
-
onPressEnd,
|
|
196534
|
-
onPressUp,
|
|
196535
|
-
isDisabled,
|
|
196536
|
-
isPressed: isPressedProp,
|
|
196537
|
-
preventFocusOnPress,
|
|
196538
|
-
shouldCancelOnPointerExit,
|
|
196539
|
-
allowTextSelectionOnPress,
|
|
196540
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
196541
|
-
ref: _2,
|
|
196542
|
-
...domProps
|
|
196543
|
-
} = $f6c31cce2adf654f$var$usePressResponderContext(props);
|
|
196148
|
+
let { onPress, onPressChange, onPressStart, onPressEnd, onPressUp, onClick, isDisabled, isPressed: isPressedProp, preventFocusOnPress, shouldCancelOnPointerExit, allowTextSelectionOnPress, ref: domRef, ...domProps } = $f6c31cce2adf654f$var$usePressResponderContext(props);
|
|
196544
196149
|
let [isPressed, setPressed] = useState(false);
|
|
196545
196150
|
let ref2 = useRef({
|
|
196546
196151
|
isPressed: false,
|
|
196547
196152
|
ignoreEmulatedMouseEvents: false,
|
|
196548
|
-
ignoreClickAfterPress: false,
|
|
196549
196153
|
didFirePressStart: false,
|
|
196550
196154
|
isTriggeringEvent: false,
|
|
196551
196155
|
activePointerId: null,
|
|
196552
196156
|
target: null,
|
|
196553
196157
|
isOverTarget: false,
|
|
196554
|
-
pointerType: null
|
|
196158
|
+
pointerType: null,
|
|
196159
|
+
disposables: []
|
|
196555
196160
|
});
|
|
196556
196161
|
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
196557
196162
|
let triggerPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
|
|
@@ -196576,7 +196181,6 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196576
196181
|
let state = ref2.current;
|
|
196577
196182
|
if (!state.didFirePressStart)
|
|
196578
196183
|
return false;
|
|
196579
|
-
state.ignoreClickAfterPress = true;
|
|
196580
196184
|
state.didFirePressStart = false;
|
|
196581
196185
|
state.isTriggeringEvent = true;
|
|
196582
196186
|
let shouldStopPropagation = true;
|
|
@@ -196612,7 +196216,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196612
196216
|
let cancel = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
196613
196217
|
let state = ref2.current;
|
|
196614
196218
|
if (state.isPressed && state.target) {
|
|
196615
|
-
if (state.
|
|
196219
|
+
if (state.didFirePressStart && state.pointerType != null)
|
|
196616
196220
|
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
196617
196221
|
state.isPressed = false;
|
|
196618
196222
|
state.isOverTarget = false;
|
|
@@ -196621,56 +196225,76 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196621
196225
|
removeAllGlobalListeners();
|
|
196622
196226
|
if (!allowTextSelectionOnPress)
|
|
196623
196227
|
$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
196228
|
+
for (let dispose2 of state.disposables)
|
|
196229
|
+
dispose2();
|
|
196230
|
+
state.disposables = [];
|
|
196624
196231
|
}
|
|
196625
196232
|
});
|
|
196626
196233
|
let cancelOnPointerExit = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
196627
196234
|
if (shouldCancelOnPointerExit)
|
|
196628
196235
|
cancel(e);
|
|
196629
196236
|
});
|
|
196237
|
+
let triggerClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
196238
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
196239
|
+
});
|
|
196240
|
+
let triggerSyntheticClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e, target) => {
|
|
196241
|
+
if (onClick) {
|
|
196242
|
+
let event = new MouseEvent("click", e);
|
|
196243
|
+
$8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target);
|
|
196244
|
+
onClick($8a9cb279dc87e130$export$525bc4921d56d4a(event));
|
|
196245
|
+
}
|
|
196246
|
+
});
|
|
196630
196247
|
let pressProps = useMemo(() => {
|
|
196631
196248
|
let state = ref2.current;
|
|
196632
196249
|
let pressProps2 = {
|
|
196633
196250
|
onKeyDown(e) {
|
|
196634
|
-
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && e.currentTarget
|
|
196251
|
+
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) {
|
|
196635
196252
|
var _state_metaKeyEvents;
|
|
196636
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.
|
|
196253
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent), e.key))
|
|
196637
196254
|
e.preventDefault();
|
|
196638
196255
|
let shouldStopPropagation = true;
|
|
196639
196256
|
if (!state.isPressed && !e.repeat) {
|
|
196640
196257
|
state.target = e.currentTarget;
|
|
196641
196258
|
state.isPressed = true;
|
|
196259
|
+
state.pointerType = "keyboard";
|
|
196642
196260
|
shouldStopPropagation = triggerPressStart(e, "keyboard");
|
|
196643
196261
|
let originalTarget = e.currentTarget;
|
|
196644
196262
|
let pressUp = (e2) => {
|
|
196645
|
-
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e2, originalTarget) && !e2.repeat && originalTarget
|
|
196263
|
+
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e2, originalTarget) && !e2.repeat && $d4ee10de306f2510$export$4282f70798064fe0(originalTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e2)) && state.target)
|
|
196646
196264
|
triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e2), "keyboard");
|
|
196647
196265
|
};
|
|
196648
|
-
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", $ff5963eb1fccf552$export$e08e3b67e392101e
|
|
196266
|
+
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", $ff5963eb1fccf552$export$e08e3b67e392101e(pressUp, onKeyUp), true);
|
|
196649
196267
|
}
|
|
196650
196268
|
if (shouldStopPropagation)
|
|
196651
196269
|
e.stopPropagation();
|
|
196652
|
-
if (e.metaKey && $c87311424ea30a05$export$9ac100e40613ea10
|
|
196270
|
+
if (e.metaKey && $c87311424ea30a05$export$9ac100e40613ea10())
|
|
196653
196271
|
(_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);
|
|
196654
196272
|
} else if (e.key === "Meta")
|
|
196655
196273
|
state.metaKeyEvents = /* @__PURE__ */ new Map();
|
|
196656
196274
|
},
|
|
196657
196275
|
onClick(e) {
|
|
196658
|
-
if (e &&
|
|
196276
|
+
if (e && !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196659
196277
|
return;
|
|
196660
196278
|
if (e && e.button === 0 && !state.isTriggeringEvent && !$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) {
|
|
196661
196279
|
let shouldStopPropagation = true;
|
|
196662
196280
|
if (isDisabled)
|
|
196663
196281
|
e.preventDefault();
|
|
196664
|
-
if (!state.
|
|
196665
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
196666
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
196282
|
+
if (!state.ignoreEmulatedMouseEvents && !state.isPressed && (state.pointerType === "virtual" || $6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
|
|
196667
196283
|
let stopPressStart = triggerPressStart(e, "virtual");
|
|
196668
196284
|
let stopPressUp = triggerPressUp(e, "virtual");
|
|
196669
196285
|
let stopPressEnd = triggerPressEnd(e, "virtual");
|
|
196286
|
+
triggerClick(e);
|
|
196670
196287
|
shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;
|
|
196288
|
+
} else if (state.isPressed && state.pointerType !== "keyboard") {
|
|
196289
|
+
let pointerType = state.pointerType || e.nativeEvent.pointerType || "virtual";
|
|
196290
|
+
let stopPressUp = triggerPressUp($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType);
|
|
196291
|
+
let stopPressEnd = triggerPressEnd($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType, true);
|
|
196292
|
+
shouldStopPropagation = stopPressUp && stopPressEnd;
|
|
196293
|
+
state.isOverTarget = false;
|
|
196294
|
+
triggerClick(e);
|
|
196295
|
+
cancel(e);
|
|
196671
196296
|
}
|
|
196672
196297
|
state.ignoreEmulatedMouseEvents = false;
|
|
196673
|
-
state.ignoreClickAfterPress = false;
|
|
196674
196298
|
if (shouldStopPropagation)
|
|
196675
196299
|
e.stopPropagation();
|
|
196676
196300
|
}
|
|
@@ -196680,12 +196304,15 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196680
196304
|
var _state_metaKeyEvents;
|
|
196681
196305
|
if (state.isPressed && state.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state.target)) {
|
|
196682
196306
|
var _state_metaKeyEvents1;
|
|
196683
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e
|
|
196307
|
+
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e), e.key))
|
|
196684
196308
|
e.preventDefault();
|
|
196685
|
-
let target = e
|
|
196686
|
-
|
|
196309
|
+
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
196310
|
+
let wasPressed = $d4ee10de306f2510$export$4282f70798064fe0(state.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e));
|
|
196311
|
+
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), "keyboard", wasPressed);
|
|
196312
|
+
if (wasPressed)
|
|
196313
|
+
triggerSyntheticClick(e, state.target);
|
|
196687
196314
|
removeAllGlobalListeners();
|
|
196688
|
-
if (e.key !== "Enter" && $f6c31cce2adf654f$var$isHTMLAnchorLink(state.target) && state.target
|
|
196315
|
+
if (e.key !== "Enter" && $f6c31cce2adf654f$var$isHTMLAnchorLink(state.target) && $d4ee10de306f2510$export$4282f70798064fe0(state.target, target) && !e[$f6c31cce2adf654f$var$LINK_CLICKED]) {
|
|
196689
196316
|
e[$f6c31cce2adf654f$var$LINK_CLICKED] = true;
|
|
196690
196317
|
$ea8dcbcb9ea1b556$export$95185d699e05d4d7(state.target, e, false);
|
|
196691
196318
|
}
|
|
@@ -196701,14 +196328,12 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196701
196328
|
};
|
|
196702
196329
|
if (typeof PointerEvent !== "undefined") {
|
|
196703
196330
|
pressProps2.onPointerDown = (e) => {
|
|
196704
|
-
if (e.button !== 0 ||
|
|
196331
|
+
if (e.button !== 0 || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196705
196332
|
return;
|
|
196706
196333
|
if ($6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) {
|
|
196707
196334
|
state.pointerType = "virtual";
|
|
196708
196335
|
return;
|
|
196709
196336
|
}
|
|
196710
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultDown(e.currentTarget))
|
|
196711
|
-
e.preventDefault();
|
|
196712
196337
|
state.pointerType = e.pointerType;
|
|
196713
196338
|
let shouldStopPropagation = true;
|
|
196714
196339
|
if (!state.isPressed) {
|
|
@@ -196716,12 +196341,10 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196716
196341
|
state.isOverTarget = true;
|
|
196717
196342
|
state.activePointerId = e.pointerId;
|
|
196718
196343
|
state.target = e.currentTarget;
|
|
196719
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
196720
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
196721
196344
|
if (!allowTextSelectionOnPress)
|
|
196722
196345
|
$14c0b72509d70225$export$16a4697467175487(state.target);
|
|
196723
196346
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
196724
|
-
let target = e.
|
|
196347
|
+
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent);
|
|
196725
196348
|
if ("releasePointerCapture" in target)
|
|
196726
196349
|
target.releasePointerCapture(e.pointerId);
|
|
196727
196350
|
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointerup", onPointerUp, false);
|
|
@@ -196731,18 +196354,21 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196731
196354
|
e.stopPropagation();
|
|
196732
196355
|
};
|
|
196733
196356
|
pressProps2.onMouseDown = (e) => {
|
|
196734
|
-
if (
|
|
196357
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196735
196358
|
return;
|
|
196736
196359
|
if (e.button === 0) {
|
|
196737
|
-
if (
|
|
196738
|
-
e.
|
|
196360
|
+
if (preventFocusOnPress) {
|
|
196361
|
+
let dispose2 = $8a9cb279dc87e130$export$cabe61c495ee3649(e.target);
|
|
196362
|
+
if (dispose2)
|
|
196363
|
+
state.disposables.push(dispose2);
|
|
196364
|
+
}
|
|
196739
196365
|
e.stopPropagation();
|
|
196740
196366
|
}
|
|
196741
196367
|
};
|
|
196742
196368
|
pressProps2.onPointerUp = (e) => {
|
|
196743
|
-
if (
|
|
196369
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) || state.pointerType === "virtual")
|
|
196744
196370
|
return;
|
|
196745
|
-
if (e.button === 0)
|
|
196371
|
+
if (e.button === 0 && !state.isPressed)
|
|
196746
196372
|
triggerPressUp(e, state.pointerType || e.pointerType);
|
|
196747
196373
|
};
|
|
196748
196374
|
pressProps2.onPointerEnter = (e) => {
|
|
@@ -196760,41 +196386,37 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196760
196386
|
};
|
|
196761
196387
|
let onPointerUp = (e) => {
|
|
196762
196388
|
if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0 && state.target) {
|
|
196763
|
-
if (state.target
|
|
196764
|
-
|
|
196765
|
-
|
|
196766
|
-
|
|
196767
|
-
|
|
196389
|
+
if ($d4ee10de306f2510$export$4282f70798064fe0(state.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) && state.pointerType != null) {
|
|
196390
|
+
let clicked = false;
|
|
196391
|
+
let timeout2 = setTimeout(() => {
|
|
196392
|
+
if (state.isPressed && state.target instanceof HTMLElement) {
|
|
196393
|
+
if (clicked)
|
|
196394
|
+
cancel(e);
|
|
196395
|
+
else {
|
|
196396
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(state.target);
|
|
196397
|
+
state.target.click();
|
|
196398
|
+
}
|
|
196399
|
+
}
|
|
196400
|
+
}, 80);
|
|
196401
|
+
addGlobalListener(e.currentTarget, "click", () => clicked = true, true);
|
|
196402
|
+
state.disposables.push(() => clearTimeout(timeout2));
|
|
196403
|
+
} else
|
|
196404
|
+
cancel(e);
|
|
196768
196405
|
state.isOverTarget = false;
|
|
196769
|
-
state.activePointerId = null;
|
|
196770
|
-
state.pointerType = null;
|
|
196771
|
-
removeAllGlobalListeners();
|
|
196772
|
-
if (!allowTextSelectionOnPress)
|
|
196773
|
-
$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
196774
|
-
if ("ontouchend" in state.target && e.pointerType !== "mouse")
|
|
196775
|
-
addGlobalListener(state.target, "touchend", onTouchEnd, {
|
|
196776
|
-
once: true
|
|
196777
|
-
});
|
|
196778
196406
|
}
|
|
196779
196407
|
};
|
|
196780
|
-
let onTouchEnd = (e) => {
|
|
196781
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultUp(e.currentTarget))
|
|
196782
|
-
e.preventDefault();
|
|
196783
|
-
};
|
|
196784
196408
|
let onPointerCancel = (e) => {
|
|
196785
196409
|
cancel(e);
|
|
196786
196410
|
};
|
|
196787
196411
|
pressProps2.onDragStart = (e) => {
|
|
196788
|
-
if (
|
|
196412
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196789
196413
|
return;
|
|
196790
196414
|
cancel(e);
|
|
196791
196415
|
};
|
|
196792
|
-
} else {
|
|
196416
|
+
} else if (process.env.NODE_ENV === "test") {
|
|
196793
196417
|
pressProps2.onMouseDown = (e) => {
|
|
196794
|
-
if (e.button !== 0 ||
|
|
196418
|
+
if (e.button !== 0 || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196795
196419
|
return;
|
|
196796
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultDown(e.currentTarget))
|
|
196797
|
-
e.preventDefault();
|
|
196798
196420
|
if (state.ignoreEmulatedMouseEvents) {
|
|
196799
196421
|
e.stopPropagation();
|
|
196800
196422
|
return;
|
|
@@ -196803,15 +196425,18 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196803
196425
|
state.isOverTarget = true;
|
|
196804
196426
|
state.target = e.currentTarget;
|
|
196805
196427
|
state.pointerType = $6a7db85432448f7f$export$60278871457622de(e.nativeEvent) ? "virtual" : "mouse";
|
|
196806
|
-
|
|
196807
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
196808
|
-
let shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
196428
|
+
let shouldStopPropagation = flushSync(() => triggerPressStart(e, state.pointerType));
|
|
196809
196429
|
if (shouldStopPropagation)
|
|
196810
196430
|
e.stopPropagation();
|
|
196431
|
+
if (preventFocusOnPress) {
|
|
196432
|
+
let dispose2 = $8a9cb279dc87e130$export$cabe61c495ee3649(e.target);
|
|
196433
|
+
if (dispose2)
|
|
196434
|
+
state.disposables.push(dispose2);
|
|
196435
|
+
}
|
|
196811
196436
|
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "mouseup", onMouseUp, false);
|
|
196812
196437
|
};
|
|
196813
196438
|
pressProps2.onMouseEnter = (e) => {
|
|
196814
|
-
if (
|
|
196439
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196815
196440
|
return;
|
|
196816
196441
|
let shouldStopPropagation = true;
|
|
196817
196442
|
if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {
|
|
@@ -196822,7 +196447,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196822
196447
|
e.stopPropagation();
|
|
196823
196448
|
};
|
|
196824
196449
|
pressProps2.onMouseLeave = (e) => {
|
|
196825
|
-
if (
|
|
196450
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196826
196451
|
return;
|
|
196827
196452
|
let shouldStopPropagation = true;
|
|
196828
196453
|
if (state.isPressed && !state.ignoreEmulatedMouseEvents && state.pointerType != null) {
|
|
@@ -196834,28 +196459,26 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196834
196459
|
e.stopPropagation();
|
|
196835
196460
|
};
|
|
196836
196461
|
pressProps2.onMouseUp = (e) => {
|
|
196837
|
-
if (
|
|
196462
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196838
196463
|
return;
|
|
196839
|
-
if (!state.ignoreEmulatedMouseEvents && e.button === 0)
|
|
196464
|
+
if (!state.ignoreEmulatedMouseEvents && e.button === 0 && !state.isPressed)
|
|
196840
196465
|
triggerPressUp(e, state.pointerType || "mouse");
|
|
196841
196466
|
};
|
|
196842
196467
|
let onMouseUp = (e) => {
|
|
196843
196468
|
if (e.button !== 0)
|
|
196844
196469
|
return;
|
|
196845
|
-
state.isPressed = false;
|
|
196846
|
-
removeAllGlobalListeners();
|
|
196847
196470
|
if (state.ignoreEmulatedMouseEvents) {
|
|
196848
196471
|
state.ignoreEmulatedMouseEvents = false;
|
|
196849
196472
|
return;
|
|
196850
196473
|
}
|
|
196851
|
-
if (state.target &&
|
|
196852
|
-
|
|
196853
|
-
else
|
|
196854
|
-
|
|
196474
|
+
if (state.target && state.target.contains(e.target) && state.pointerType != null)
|
|
196475
|
+
;
|
|
196476
|
+
else
|
|
196477
|
+
cancel(e);
|
|
196855
196478
|
state.isOverTarget = false;
|
|
196856
196479
|
};
|
|
196857
196480
|
pressProps2.onTouchStart = (e) => {
|
|
196858
|
-
if (
|
|
196481
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196859
196482
|
return;
|
|
196860
196483
|
let touch = $f6c31cce2adf654f$var$getTouchFromEvent(e.nativeEvent);
|
|
196861
196484
|
if (!touch)
|
|
@@ -196866,8 +196489,6 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196866
196489
|
state.isPressed = true;
|
|
196867
196490
|
state.target = e.currentTarget;
|
|
196868
196491
|
state.pointerType = "touch";
|
|
196869
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
196870
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
196871
196492
|
if (!allowTextSelectionOnPress)
|
|
196872
196493
|
$14c0b72509d70225$export$16a4697467175487(state.target);
|
|
196873
196494
|
let shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);
|
|
@@ -196876,7 +196497,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196876
196497
|
addGlobalListener($431fbd86ca7dc216$export$f21a1ffae260145a(e.currentTarget), "scroll", onScroll, true);
|
|
196877
196498
|
};
|
|
196878
196499
|
pressProps2.onTouchMove = (e) => {
|
|
196879
|
-
if (
|
|
196500
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196880
196501
|
return;
|
|
196881
196502
|
if (!state.isPressed) {
|
|
196882
196503
|
e.stopPropagation();
|
|
@@ -196898,7 +196519,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196898
196519
|
e.stopPropagation();
|
|
196899
196520
|
};
|
|
196900
196521
|
pressProps2.onTouchEnd = (e) => {
|
|
196901
|
-
if (
|
|
196522
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196902
196523
|
return;
|
|
196903
196524
|
if (!state.isPressed) {
|
|
196904
196525
|
e.stopPropagation();
|
|
@@ -196909,6 +196530,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196909
196530
|
if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget) && state.pointerType != null) {
|
|
196910
196531
|
triggerPressUp($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);
|
|
196911
196532
|
shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);
|
|
196533
|
+
triggerSyntheticClick(e.nativeEvent, state.target);
|
|
196912
196534
|
} else if (state.isOverTarget && state.pointerType != null)
|
|
196913
196535
|
shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType, false);
|
|
196914
196536
|
if (shouldStopPropagation)
|
|
@@ -196922,14 +196544,14 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196922
196544
|
removeAllGlobalListeners();
|
|
196923
196545
|
};
|
|
196924
196546
|
pressProps2.onTouchCancel = (e) => {
|
|
196925
|
-
if (
|
|
196547
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196926
196548
|
return;
|
|
196927
196549
|
e.stopPropagation();
|
|
196928
196550
|
if (state.isPressed)
|
|
196929
196551
|
cancel($f6c31cce2adf654f$var$createTouchEvent(state.target, e));
|
|
196930
196552
|
};
|
|
196931
196553
|
let onScroll = (e) => {
|
|
196932
|
-
if (state.isPressed && e
|
|
196554
|
+
if (state.isPressed && $d4ee10de306f2510$export$4282f70798064fe0($d4ee10de306f2510$export$e58f029f0fbfdb29(e), state.target))
|
|
196933
196555
|
cancel({
|
|
196934
196556
|
currentTarget: state.target,
|
|
196935
196557
|
shiftKey: false,
|
|
@@ -196939,7 +196561,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196939
196561
|
});
|
|
196940
196562
|
};
|
|
196941
196563
|
pressProps2.onDragStart = (e) => {
|
|
196942
|
-
if (
|
|
196564
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)))
|
|
196943
196565
|
return;
|
|
196944
196566
|
cancel(e);
|
|
196945
196567
|
};
|
|
@@ -196955,20 +196577,47 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
196955
196577
|
cancelOnPointerExit,
|
|
196956
196578
|
triggerPressEnd,
|
|
196957
196579
|
triggerPressStart,
|
|
196958
|
-
triggerPressUp
|
|
196580
|
+
triggerPressUp,
|
|
196581
|
+
triggerClick,
|
|
196582
|
+
triggerSyntheticClick
|
|
196959
196583
|
]);
|
|
196960
196584
|
useEffect(() => {
|
|
196585
|
+
if (!domRef || process.env.NODE_ENV === "test")
|
|
196586
|
+
return;
|
|
196587
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(domRef.current);
|
|
196588
|
+
if (!ownerDocument || !ownerDocument.head || ownerDocument.getElementById($f6c31cce2adf654f$var$STYLE_ID))
|
|
196589
|
+
return;
|
|
196590
|
+
const style2 = ownerDocument.createElement("style");
|
|
196591
|
+
style2.id = $f6c31cce2adf654f$var$STYLE_ID;
|
|
196592
|
+
style2.textContent = `
|
|
196593
|
+
@layer {
|
|
196594
|
+
[${$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE}] {
|
|
196595
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
196596
|
+
}
|
|
196597
|
+
}
|
|
196598
|
+
`.trim();
|
|
196599
|
+
ownerDocument.head.prepend(style2);
|
|
196600
|
+
}, [
|
|
196601
|
+
domRef
|
|
196602
|
+
]);
|
|
196603
|
+
useEffect(() => {
|
|
196604
|
+
let state = ref2.current;
|
|
196961
196605
|
return () => {
|
|
196962
|
-
var
|
|
196606
|
+
var _state_target;
|
|
196963
196607
|
if (!allowTextSelectionOnPress)
|
|
196964
|
-
$14c0b72509d70225$export$b0d6fa1ab32e3295((
|
|
196608
|
+
$14c0b72509d70225$export$b0d6fa1ab32e3295((_state_target = state.target) !== null && _state_target !== void 0 ? _state_target : void 0);
|
|
196609
|
+
for (let dispose2 of state.disposables)
|
|
196610
|
+
dispose2();
|
|
196611
|
+
state.disposables = [];
|
|
196965
196612
|
};
|
|
196966
196613
|
}, [
|
|
196967
196614
|
allowTextSelectionOnPress
|
|
196968
196615
|
]);
|
|
196969
196616
|
return {
|
|
196970
196617
|
isPressed: isPressedProp || isPressed,
|
|
196971
|
-
pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928
|
|
196618
|
+
pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps, {
|
|
196619
|
+
[$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE]: true
|
|
196620
|
+
})
|
|
196972
196621
|
};
|
|
196973
196622
|
}
|
|
196974
196623
|
function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
|
|
@@ -197056,9 +196705,6 @@ function $f6c31cce2adf654f$var$isOverTarget(point, target) {
|
|
|
197056
196705
|
let pointRect = $f6c31cce2adf654f$var$getPointClientRect(point);
|
|
197057
196706
|
return $f6c31cce2adf654f$var$areRectanglesOverlapping(rect, pointRect);
|
|
197058
196707
|
}
|
|
197059
|
-
function $f6c31cce2adf654f$var$shouldPreventDefaultDown(target) {
|
|
197060
|
-
return !(target instanceof HTMLElement) || !target.hasAttribute("draggable");
|
|
197061
|
-
}
|
|
197062
196708
|
function $f6c31cce2adf654f$var$shouldPreventDefaultUp(target) {
|
|
197063
196709
|
if (target instanceof HTMLInputElement)
|
|
197064
196710
|
return false;
|
|
@@ -197087,6 +196733,361 @@ const $f6c31cce2adf654f$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
|
197087
196733
|
function $f6c31cce2adf654f$var$isValidInputKey(target, key2) {
|
|
197088
196734
|
return target.type === "checkbox" || target.type === "radio" ? key2 === " " : $f6c31cce2adf654f$var$nonTextInputTypes.has(target.type);
|
|
197089
196735
|
}
|
|
196736
|
+
let $507fabe10e71c6fb$var$currentModality = null;
|
|
196737
|
+
let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
|
|
196738
|
+
let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
|
|
196739
|
+
let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
196740
|
+
let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
196741
|
+
const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
|
|
196742
|
+
Tab: true,
|
|
196743
|
+
Escape: true
|
|
196744
|
+
};
|
|
196745
|
+
function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
196746
|
+
for (let handler of $507fabe10e71c6fb$var$changeHandlers)
|
|
196747
|
+
handler(modality, e);
|
|
196748
|
+
}
|
|
196749
|
+
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
196750
|
+
return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
196751
|
+
}
|
|
196752
|
+
function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
|
|
196753
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
196754
|
+
if ($507fabe10e71c6fb$var$isValidKey(e)) {
|
|
196755
|
+
$507fabe10e71c6fb$var$currentModality = "keyboard";
|
|
196756
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e);
|
|
196757
|
+
}
|
|
196758
|
+
}
|
|
196759
|
+
function $507fabe10e71c6fb$var$handlePointerEvent(e) {
|
|
196760
|
+
$507fabe10e71c6fb$var$currentModality = "pointer";
|
|
196761
|
+
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
196762
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
196763
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e);
|
|
196764
|
+
}
|
|
196765
|
+
}
|
|
196766
|
+
function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
196767
|
+
if ($6a7db85432448f7f$export$60278871457622de(e)) {
|
|
196768
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
196769
|
+
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
196770
|
+
}
|
|
196771
|
+
}
|
|
196772
|
+
function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
196773
|
+
if (e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted)
|
|
196774
|
+
return;
|
|
196775
|
+
if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
|
|
196776
|
+
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
196777
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
|
|
196778
|
+
}
|
|
196779
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
196780
|
+
$507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
196781
|
+
}
|
|
196782
|
+
function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
196783
|
+
if ($8a9cb279dc87e130$export$fda7da73ab5d4c48)
|
|
196784
|
+
return;
|
|
196785
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
196786
|
+
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
196787
|
+
}
|
|
196788
|
+
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element2) {
|
|
196789
|
+
if (typeof window === "undefined" || typeof document === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element2)))
|
|
196790
|
+
return;
|
|
196791
|
+
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element2);
|
|
196792
|
+
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
196793
|
+
let focus = windowObject.HTMLElement.prototype.focus;
|
|
196794
|
+
windowObject.HTMLElement.prototype.focus = function() {
|
|
196795
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
196796
|
+
focus.apply(this, arguments);
|
|
196797
|
+
};
|
|
196798
|
+
documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
196799
|
+
documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
196800
|
+
documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
196801
|
+
windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
196802
|
+
windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
196803
|
+
if (typeof PointerEvent !== "undefined") {
|
|
196804
|
+
documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196805
|
+
documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196806
|
+
documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196807
|
+
} else if (process.env.NODE_ENV === "test") {
|
|
196808
|
+
documentObject.addEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196809
|
+
documentObject.addEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196810
|
+
documentObject.addEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196811
|
+
}
|
|
196812
|
+
windowObject.addEventListener("beforeunload", () => {
|
|
196813
|
+
$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element2);
|
|
196814
|
+
}, {
|
|
196815
|
+
once: true
|
|
196816
|
+
});
|
|
196817
|
+
$507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
|
|
196818
|
+
focus
|
|
196819
|
+
});
|
|
196820
|
+
}
|
|
196821
|
+
const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element2, loadListener) => {
|
|
196822
|
+
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element2);
|
|
196823
|
+
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
196824
|
+
if (loadListener)
|
|
196825
|
+
documentObject.removeEventListener("DOMContentLoaded", loadListener);
|
|
196826
|
+
if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject))
|
|
196827
|
+
return;
|
|
196828
|
+
windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
|
|
196829
|
+
documentObject.removeEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
196830
|
+
documentObject.removeEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
196831
|
+
documentObject.removeEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
196832
|
+
windowObject.removeEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
196833
|
+
windowObject.removeEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
196834
|
+
if (typeof PointerEvent !== "undefined") {
|
|
196835
|
+
documentObject.removeEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196836
|
+
documentObject.removeEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196837
|
+
documentObject.removeEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196838
|
+
} else if (process.env.NODE_ENV === "test") {
|
|
196839
|
+
documentObject.removeEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196840
|
+
documentObject.removeEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196841
|
+
documentObject.removeEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
196842
|
+
}
|
|
196843
|
+
$507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
|
|
196844
|
+
};
|
|
196845
|
+
function $507fabe10e71c6fb$export$2f1888112f558a7d(element2) {
|
|
196846
|
+
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
196847
|
+
let loadListener;
|
|
196848
|
+
if (documentObject.readyState !== "loading")
|
|
196849
|
+
$507fabe10e71c6fb$var$setupGlobalFocusEvents(element2);
|
|
196850
|
+
else {
|
|
196851
|
+
loadListener = () => {
|
|
196852
|
+
$507fabe10e71c6fb$var$setupGlobalFocusEvents(element2);
|
|
196853
|
+
};
|
|
196854
|
+
documentObject.addEventListener("DOMContentLoaded", loadListener);
|
|
196855
|
+
}
|
|
196856
|
+
return () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element2, loadListener);
|
|
196857
|
+
}
|
|
196858
|
+
if (typeof document !== "undefined")
|
|
196859
|
+
$507fabe10e71c6fb$export$2f1888112f558a7d();
|
|
196860
|
+
function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
|
|
196861
|
+
return $507fabe10e71c6fb$var$currentModality !== "pointer";
|
|
196862
|
+
}
|
|
196863
|
+
function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
|
|
196864
|
+
return $507fabe10e71c6fb$var$currentModality;
|
|
196865
|
+
}
|
|
196866
|
+
const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
196867
|
+
"checkbox",
|
|
196868
|
+
"radio",
|
|
196869
|
+
"range",
|
|
196870
|
+
"color",
|
|
196871
|
+
"file",
|
|
196872
|
+
"image",
|
|
196873
|
+
"button",
|
|
196874
|
+
"submit",
|
|
196875
|
+
"reset"
|
|
196876
|
+
]);
|
|
196877
|
+
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
196878
|
+
let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
|
|
196879
|
+
const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
|
|
196880
|
+
const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
|
|
196881
|
+
const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
|
|
196882
|
+
const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
196883
|
+
isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
|
|
196884
|
+
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
196885
|
+
}
|
|
196886
|
+
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
196887
|
+
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
196888
|
+
useEffect(() => {
|
|
196889
|
+
let handler = (modality, e) => {
|
|
196890
|
+
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e))
|
|
196891
|
+
return;
|
|
196892
|
+
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
196893
|
+
};
|
|
196894
|
+
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
196895
|
+
return () => {
|
|
196896
|
+
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
196897
|
+
};
|
|
196898
|
+
}, deps);
|
|
196899
|
+
}
|
|
196900
|
+
function $3ad3f6e1647bc98d$export$80f3e147d781571c(element2) {
|
|
196901
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element2);
|
|
196902
|
+
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
196903
|
+
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
196904
|
+
let lastFocusedElement = activeElement;
|
|
196905
|
+
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
196906
|
+
if ($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element2.isConnected)
|
|
196907
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(element2);
|
|
196908
|
+
});
|
|
196909
|
+
} else
|
|
196910
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(element2);
|
|
196911
|
+
}
|
|
196912
|
+
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
196913
|
+
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
196914
|
+
const onBlur = useCallback((e) => {
|
|
196915
|
+
if (e.target === e.currentTarget) {
|
|
196916
|
+
if (onBlurProp)
|
|
196917
|
+
onBlurProp(e);
|
|
196918
|
+
if (onFocusChange)
|
|
196919
|
+
onFocusChange(false);
|
|
196920
|
+
return true;
|
|
196921
|
+
}
|
|
196922
|
+
}, [
|
|
196923
|
+
onBlurProp,
|
|
196924
|
+
onFocusChange
|
|
196925
|
+
]);
|
|
196926
|
+
const onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
196927
|
+
const onFocus = useCallback((e) => {
|
|
196928
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
196929
|
+
const activeElement = ownerDocument ? $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) : $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
196930
|
+
if (e.target === e.currentTarget && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
|
|
196931
|
+
if (onFocusProp)
|
|
196932
|
+
onFocusProp(e);
|
|
196933
|
+
if (onFocusChange)
|
|
196934
|
+
onFocusChange(true);
|
|
196935
|
+
onSyntheticFocus(e);
|
|
196936
|
+
}
|
|
196937
|
+
}, [
|
|
196938
|
+
onFocusChange,
|
|
196939
|
+
onFocusProp,
|
|
196940
|
+
onSyntheticFocus
|
|
196941
|
+
]);
|
|
196942
|
+
return {
|
|
196943
|
+
focusProps: {
|
|
196944
|
+
onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0,
|
|
196945
|
+
onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : void 0
|
|
196946
|
+
}
|
|
196947
|
+
};
|
|
196948
|
+
}
|
|
196949
|
+
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
196950
|
+
if (!handler)
|
|
196951
|
+
return void 0;
|
|
196952
|
+
let shouldStopPropagation = true;
|
|
196953
|
+
return (e) => {
|
|
196954
|
+
let event = {
|
|
196955
|
+
...e,
|
|
196956
|
+
preventDefault() {
|
|
196957
|
+
e.preventDefault();
|
|
196958
|
+
},
|
|
196959
|
+
isDefaultPrevented() {
|
|
196960
|
+
return e.isDefaultPrevented();
|
|
196961
|
+
},
|
|
196962
|
+
stopPropagation() {
|
|
196963
|
+
if (shouldStopPropagation && process.env.NODE_ENV !== "production")
|
|
196964
|
+
console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
|
|
196965
|
+
else
|
|
196966
|
+
shouldStopPropagation = true;
|
|
196967
|
+
},
|
|
196968
|
+
continuePropagation() {
|
|
196969
|
+
shouldStopPropagation = false;
|
|
196970
|
+
},
|
|
196971
|
+
isPropagationStopped() {
|
|
196972
|
+
return shouldStopPropagation;
|
|
196973
|
+
}
|
|
196974
|
+
};
|
|
196975
|
+
handler(event);
|
|
196976
|
+
if (shouldStopPropagation)
|
|
196977
|
+
e.stopPropagation();
|
|
196978
|
+
};
|
|
196979
|
+
}
|
|
196980
|
+
function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
196981
|
+
return {
|
|
196982
|
+
keyboardProps: props.isDisabled ? {} : {
|
|
196983
|
+
onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
|
|
196984
|
+
onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
|
|
196985
|
+
}
|
|
196986
|
+
};
|
|
196987
|
+
}
|
|
196988
|
+
let $f645667febf57a63$export$f9762fab77588ecb = /* @__PURE__ */ React__default.createContext(null);
|
|
196989
|
+
function $f645667febf57a63$var$useFocusableContext(ref2) {
|
|
196990
|
+
let context = useContext($f645667febf57a63$export$f9762fab77588ecb) || {};
|
|
196991
|
+
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref2);
|
|
196992
|
+
let { ref: _2, ...otherProps } = context;
|
|
196993
|
+
return otherProps;
|
|
196994
|
+
}
|
|
196995
|
+
function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {
|
|
196996
|
+
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props);
|
|
196997
|
+
let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props);
|
|
196998
|
+
let interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, keyboardProps);
|
|
196999
|
+
let domProps = $f645667febf57a63$var$useFocusableContext(domRef);
|
|
197000
|
+
let interactionProps = props.isDisabled ? {} : domProps;
|
|
197001
|
+
let autoFocusRef = useRef(props.autoFocus);
|
|
197002
|
+
useEffect(() => {
|
|
197003
|
+
if (autoFocusRef.current && domRef.current)
|
|
197004
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(domRef.current);
|
|
197005
|
+
autoFocusRef.current = false;
|
|
197006
|
+
}, [
|
|
197007
|
+
domRef
|
|
197008
|
+
]);
|
|
197009
|
+
let tabIndex = props.excludeFromTabOrder ? -1 : 0;
|
|
197010
|
+
if (props.isDisabled)
|
|
197011
|
+
tabIndex = void 0;
|
|
197012
|
+
return {
|
|
197013
|
+
focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928({
|
|
197014
|
+
...interactions,
|
|
197015
|
+
tabIndex
|
|
197016
|
+
}, interactionProps)
|
|
197017
|
+
};
|
|
197018
|
+
}
|
|
197019
|
+
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
197020
|
+
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
197021
|
+
let state = useRef({
|
|
197022
|
+
isFocusWithin: false
|
|
197023
|
+
});
|
|
197024
|
+
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
197025
|
+
let onBlur = useCallback((e) => {
|
|
197026
|
+
if (!e.currentTarget.contains(e.target))
|
|
197027
|
+
return;
|
|
197028
|
+
if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {
|
|
197029
|
+
state.current.isFocusWithin = false;
|
|
197030
|
+
removeAllGlobalListeners();
|
|
197031
|
+
if (onBlurWithin)
|
|
197032
|
+
onBlurWithin(e);
|
|
197033
|
+
if (onFocusWithinChange)
|
|
197034
|
+
onFocusWithinChange(false);
|
|
197035
|
+
}
|
|
197036
|
+
}, [
|
|
197037
|
+
onBlurWithin,
|
|
197038
|
+
onFocusWithinChange,
|
|
197039
|
+
state,
|
|
197040
|
+
removeAllGlobalListeners
|
|
197041
|
+
]);
|
|
197042
|
+
let onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
197043
|
+
let onFocus = useCallback((e) => {
|
|
197044
|
+
if (!e.currentTarget.contains(e.target))
|
|
197045
|
+
return;
|
|
197046
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
197047
|
+
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
197048
|
+
if (!state.current.isFocusWithin && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
|
|
197049
|
+
if (onFocusWithin)
|
|
197050
|
+
onFocusWithin(e);
|
|
197051
|
+
if (onFocusWithinChange)
|
|
197052
|
+
onFocusWithinChange(true);
|
|
197053
|
+
state.current.isFocusWithin = true;
|
|
197054
|
+
onSyntheticFocus(e);
|
|
197055
|
+
let currentTarget = e.currentTarget;
|
|
197056
|
+
addGlobalListener(ownerDocument, "focus", (e2) => {
|
|
197057
|
+
if (state.current.isFocusWithin && !$d4ee10de306f2510$export$4282f70798064fe0(currentTarget, e2.target)) {
|
|
197058
|
+
let nativeEvent = new ownerDocument.defaultView.FocusEvent("blur", {
|
|
197059
|
+
relatedTarget: e2.target
|
|
197060
|
+
});
|
|
197061
|
+
$8a9cb279dc87e130$export$c2b7abe5d61ec696(nativeEvent, currentTarget);
|
|
197062
|
+
let event = $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent);
|
|
197063
|
+
onBlur(event);
|
|
197064
|
+
}
|
|
197065
|
+
}, {
|
|
197066
|
+
capture: true
|
|
197067
|
+
});
|
|
197068
|
+
}
|
|
197069
|
+
}, [
|
|
197070
|
+
onFocusWithin,
|
|
197071
|
+
onFocusWithinChange,
|
|
197072
|
+
onSyntheticFocus,
|
|
197073
|
+
addGlobalListener,
|
|
197074
|
+
onBlur
|
|
197075
|
+
]);
|
|
197076
|
+
if (isDisabled)
|
|
197077
|
+
return {
|
|
197078
|
+
focusWithinProps: {
|
|
197079
|
+
// These cannot be null, that would conflict in mergeProps
|
|
197080
|
+
onFocus: void 0,
|
|
197081
|
+
onBlur: void 0
|
|
197082
|
+
}
|
|
197083
|
+
};
|
|
197084
|
+
return {
|
|
197085
|
+
focusWithinProps: {
|
|
197086
|
+
onFocus,
|
|
197087
|
+
onBlur
|
|
197088
|
+
}
|
|
197089
|
+
};
|
|
197090
|
+
}
|
|
197090
197091
|
let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
|
|
197091
197092
|
let $6179b936705e76d3$var$hoverCount = 0;
|
|
197092
197093
|
function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
|
|
@@ -197104,7 +197105,7 @@ function $6179b936705e76d3$var$setupGlobalTouchEvents() {
|
|
|
197104
197105
|
return;
|
|
197105
197106
|
if (typeof PointerEvent !== "undefined")
|
|
197106
197107
|
document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
|
|
197107
|
-
else
|
|
197108
|
+
else if (process.env.NODE_ENV === "test")
|
|
197108
197109
|
document.addEventListener("touchend", $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
|
|
197109
197110
|
$6179b936705e76d3$var$hoverCount++;
|
|
197110
197111
|
return () => {
|
|
@@ -197113,7 +197114,7 @@ function $6179b936705e76d3$var$setupGlobalTouchEvents() {
|
|
|
197113
197114
|
return;
|
|
197114
197115
|
if (typeof PointerEvent !== "undefined")
|
|
197115
197116
|
document.removeEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
|
|
197116
|
-
else
|
|
197117
|
+
else if (process.env.NODE_ENV === "test")
|
|
197117
197118
|
document.removeEventListener("touchend", $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
|
|
197118
197119
|
};
|
|
197119
197120
|
}
|
|
@@ -197127,6 +197128,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
197127
197128
|
target: null
|
|
197128
197129
|
}).current;
|
|
197129
197130
|
useEffect($6179b936705e76d3$var$setupGlobalTouchEvents, []);
|
|
197131
|
+
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
197130
197132
|
let { hoverProps, triggerHoverEnd } = useMemo(() => {
|
|
197131
197133
|
let triggerHoverStart = (event, pointerType) => {
|
|
197132
197134
|
state.pointerType = pointerType;
|
|
@@ -197135,6 +197137,12 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
197135
197137
|
state.isHovered = true;
|
|
197136
197138
|
let target = event.currentTarget;
|
|
197137
197139
|
state.target = target;
|
|
197140
|
+
addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(event.target), "pointerover", (e) => {
|
|
197141
|
+
if (state.isHovered && state.target && !$d4ee10de306f2510$export$4282f70798064fe0(state.target, e.target))
|
|
197142
|
+
triggerHoverEnd2(e, e.pointerType);
|
|
197143
|
+
}, {
|
|
197144
|
+
capture: true
|
|
197145
|
+
});
|
|
197138
197146
|
if (onHoverStart)
|
|
197139
197147
|
onHoverStart({
|
|
197140
197148
|
type: "hoverstart",
|
|
@@ -197146,12 +197154,13 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
197146
197154
|
setHovered(true);
|
|
197147
197155
|
};
|
|
197148
197156
|
let triggerHoverEnd2 = (event, pointerType) => {
|
|
197157
|
+
let target = state.target;
|
|
197149
197158
|
state.pointerType = "";
|
|
197150
197159
|
state.target = null;
|
|
197151
|
-
if (pointerType === "touch" || !state.isHovered)
|
|
197160
|
+
if (pointerType === "touch" || !state.isHovered || !target)
|
|
197152
197161
|
return;
|
|
197153
197162
|
state.isHovered = false;
|
|
197154
|
-
|
|
197163
|
+
removeAllGlobalListeners();
|
|
197155
197164
|
if (onHoverEnd)
|
|
197156
197165
|
onHoverEnd({
|
|
197157
197166
|
type: "hoverend",
|
|
@@ -197173,7 +197182,7 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
197173
197182
|
if (!isDisabled && e.currentTarget.contains(e.target))
|
|
197174
197183
|
triggerHoverEnd2(e, e.pointerType);
|
|
197175
197184
|
};
|
|
197176
|
-
} else {
|
|
197185
|
+
} else if (process.env.NODE_ENV === "test") {
|
|
197177
197186
|
hoverProps2.onTouchStart = () => {
|
|
197178
197187
|
state.ignoreEmulatedMouseEvents = true;
|
|
197179
197188
|
};
|
|
@@ -197196,7 +197205,9 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
197196
197205
|
onHoverChange,
|
|
197197
197206
|
onHoverEnd,
|
|
197198
197207
|
isDisabled,
|
|
197199
|
-
state
|
|
197208
|
+
state,
|
|
197209
|
+
addGlobalListener,
|
|
197210
|
+
removeAllGlobalListeners
|
|
197200
197211
|
]);
|
|
197201
197212
|
useEffect(() => {
|
|
197202
197213
|
if (isDisabled)
|
|
@@ -197211,6 +197222,67 @@ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
|
197211
197222
|
isHovered
|
|
197212
197223
|
};
|
|
197213
197224
|
}
|
|
197225
|
+
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
197226
|
+
let { autoFocus = false, isTextInput, within } = props;
|
|
197227
|
+
let state = useRef({
|
|
197228
|
+
isFocused: false,
|
|
197229
|
+
isFocusVisible: autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27()
|
|
197230
|
+
});
|
|
197231
|
+
let [isFocused, setFocused] = useState(false);
|
|
197232
|
+
let [isFocusVisibleState, setFocusVisible] = useState(() => state.current.isFocused && state.current.isFocusVisible);
|
|
197233
|
+
let updateState2 = useCallback(() => setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);
|
|
197234
|
+
let onFocusChange = useCallback((isFocused2) => {
|
|
197235
|
+
state.current.isFocused = isFocused2;
|
|
197236
|
+
setFocused(isFocused2);
|
|
197237
|
+
updateState2();
|
|
197238
|
+
}, [
|
|
197239
|
+
updateState2
|
|
197240
|
+
]);
|
|
197241
|
+
$507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => {
|
|
197242
|
+
state.current.isFocusVisible = isFocusVisible;
|
|
197243
|
+
updateState2();
|
|
197244
|
+
}, [], {
|
|
197245
|
+
isTextInput
|
|
197246
|
+
});
|
|
197247
|
+
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
|
|
197248
|
+
isDisabled: within,
|
|
197249
|
+
onFocusChange
|
|
197250
|
+
});
|
|
197251
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
197252
|
+
isDisabled: !within,
|
|
197253
|
+
onFocusWithinChange: onFocusChange
|
|
197254
|
+
});
|
|
197255
|
+
return {
|
|
197256
|
+
isFocused,
|
|
197257
|
+
isFocusVisible: isFocusVisibleState,
|
|
197258
|
+
focusProps: within ? focusWithinProps : focusProps
|
|
197259
|
+
};
|
|
197260
|
+
}
|
|
197261
|
+
function forwardRef(component) {
|
|
197262
|
+
return forwardRef$1(component);
|
|
197263
|
+
}
|
|
197264
|
+
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
197265
|
+
if (!variantKeys) {
|
|
197266
|
+
return [props, {}];
|
|
197267
|
+
}
|
|
197268
|
+
const picked = variantKeys.reduce((acc, key2) => {
|
|
197269
|
+
if (key2 in props) {
|
|
197270
|
+
return { ...acc, [key2]: props[key2] };
|
|
197271
|
+
} else {
|
|
197272
|
+
return acc;
|
|
197273
|
+
}
|
|
197274
|
+
}, {});
|
|
197275
|
+
if (removeVariantProps) {
|
|
197276
|
+
const omitted = Object.keys(props).filter((key2) => !variantKeys.includes(key2)).reduce((acc, key2) => ({ ...acc, [key2]: props[key2] }), {});
|
|
197277
|
+
return [omitted, picked];
|
|
197278
|
+
} else {
|
|
197279
|
+
return [props, picked];
|
|
197280
|
+
}
|
|
197281
|
+
};
|
|
197282
|
+
var [ButtonGroupProvider, useButtonGroupContext] = createContext2({
|
|
197283
|
+
name: "ButtonGroupContext",
|
|
197284
|
+
strict: false
|
|
197285
|
+
});
|
|
197214
197286
|
function useAriaButton(props, ref2) {
|
|
197215
197287
|
let {
|
|
197216
197288
|
elementType = "button",
|
|
@@ -197218,19 +197290,18 @@ function useAriaButton(props, ref2) {
|
|
|
197218
197290
|
onPress,
|
|
197219
197291
|
onPressStart,
|
|
197220
197292
|
onPressEnd,
|
|
197293
|
+
onPressUp,
|
|
197221
197294
|
onPressChange,
|
|
197222
197295
|
// @ts-ignore - undocumented
|
|
197223
197296
|
preventFocusOnPress,
|
|
197224
197297
|
// @ts-ignore - undocumented
|
|
197225
197298
|
allowFocusWhenDisabled,
|
|
197226
|
-
|
|
197227
|
-
onClick: deprecatedOnClick,
|
|
197299
|
+
onClick,
|
|
197228
197300
|
href,
|
|
197229
197301
|
target,
|
|
197230
197302
|
rel,
|
|
197231
197303
|
type = "button",
|
|
197232
|
-
allowTextSelectionOnPress
|
|
197233
|
-
role
|
|
197304
|
+
allowTextSelectionOnPress
|
|
197234
197305
|
} = props;
|
|
197235
197306
|
let additionalProps;
|
|
197236
197307
|
if (elementType === "button") {
|
|
@@ -197241,7 +197312,6 @@ function useAriaButton(props, ref2) {
|
|
|
197241
197312
|
} else {
|
|
197242
197313
|
additionalProps = {
|
|
197243
197314
|
role: "button",
|
|
197244
|
-
tabIndex: isDisabled ? void 0 : 0,
|
|
197245
197315
|
href: elementType === "a" && !isDisabled ? href : void 0,
|
|
197246
197316
|
target: elementType === "a" ? target : void 0,
|
|
197247
197317
|
type: elementType === "input" ? type : void 0,
|
|
@@ -197250,32 +197320,19 @@ function useAriaButton(props, ref2) {
|
|
|
197250
197320
|
rel: elementType === "a" ? rel : void 0
|
|
197251
197321
|
};
|
|
197252
197322
|
}
|
|
197253
|
-
let isMobile2 = $c87311424ea30a05$export$fedb369cb70207f1() || $c87311424ea30a05$export$a11b0059900ceec8();
|
|
197254
|
-
if (deprecatedOnClick && typeof deprecatedOnClick === "function" && // bypass since onClick is passed from <Link as={Button} /> internally
|
|
197255
|
-
role !== "link" && // bypass since onClick is passed from useDisclosure's `getButtonProps` internally
|
|
197256
|
-
!(props.hasOwnProperty("aria-expanded") && props.hasOwnProperty("aria-controls"))) {
|
|
197257
|
-
warn(
|
|
197258
|
-
"onClick is deprecated, please use onPress instead. See: https://github.com/heroui-inc/heroui/issues/4292",
|
|
197259
|
-
"useButton"
|
|
197260
|
-
);
|
|
197261
|
-
}
|
|
197262
|
-
const handlePress = (e) => {
|
|
197263
|
-
if (isMobile2) {
|
|
197264
|
-
deprecatedOnClick == null ? void 0 : deprecatedOnClick(e);
|
|
197265
|
-
}
|
|
197266
|
-
onPress == null ? void 0 : onPress(e);
|
|
197267
|
-
};
|
|
197268
197323
|
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
197324
|
+
onClick,
|
|
197269
197325
|
onPressStart,
|
|
197270
197326
|
onPressEnd,
|
|
197327
|
+
onPressUp,
|
|
197271
197328
|
onPressChange,
|
|
197272
|
-
onPress
|
|
197329
|
+
onPress,
|
|
197273
197330
|
isDisabled,
|
|
197274
197331
|
preventFocusOnPress,
|
|
197275
197332
|
allowTextSelectionOnPress,
|
|
197276
197333
|
ref: ref2
|
|
197277
197334
|
});
|
|
197278
|
-
let { focusableProps } = $
|
|
197335
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref2);
|
|
197279
197336
|
if (allowFocusWhenDisabled) {
|
|
197280
197337
|
focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;
|
|
197281
197338
|
}
|
|
@@ -197292,12 +197349,7 @@ function useAriaButton(props, ref2) {
|
|
|
197292
197349
|
"aria-expanded": props["aria-expanded"],
|
|
197293
197350
|
"aria-controls": props["aria-controls"],
|
|
197294
197351
|
"aria-pressed": props["aria-pressed"],
|
|
197295
|
-
|
|
197296
|
-
if (type === "button" && isMobile2) {
|
|
197297
|
-
return;
|
|
197298
|
-
}
|
|
197299
|
-
deprecatedOnClick == null ? void 0 : deprecatedOnClick(e);
|
|
197300
|
-
}
|
|
197352
|
+
"aria-current": props["aria-current"]
|
|
197301
197353
|
})
|
|
197302
197354
|
};
|
|
197303
197355
|
}
|
|
@@ -197362,7 +197414,7 @@ function useRipple(props = {}) {
|
|
|
197362
197414
|
function useButton(props) {
|
|
197363
197415
|
var _a3, _b3, _c2, _d2, _e2, _f2, _g2, _h2, _i3;
|
|
197364
197416
|
const groupContext = useButtonGroupContext();
|
|
197365
|
-
const globalContext = useProviderContext
|
|
197417
|
+
const globalContext = useProviderContext();
|
|
197366
197418
|
const isInGroup = !!groupContext;
|
|
197367
197419
|
const {
|
|
197368
197420
|
ref: ref2,
|
|
@@ -197435,7 +197487,7 @@ function useButton(props) {
|
|
|
197435
197487
|
{
|
|
197436
197488
|
elementType: as,
|
|
197437
197489
|
isDisabled,
|
|
197438
|
-
onPress:
|
|
197490
|
+
onPress: chain(onPress, handlePress),
|
|
197439
197491
|
onClick,
|
|
197440
197492
|
...otherProps
|
|
197441
197493
|
},
|
|
@@ -197450,7 +197502,7 @@ function useButton(props) {
|
|
|
197450
197502
|
"data-focus-visible": dataAttr(isFocusVisible),
|
|
197451
197503
|
"data-hover": dataAttr(isHovered),
|
|
197452
197504
|
"data-loading": dataAttr(isLoading),
|
|
197453
|
-
|
|
197505
|
+
...mergeProps(
|
|
197454
197506
|
ariaButtonProps,
|
|
197455
197507
|
focusProps,
|
|
197456
197508
|
hoverProps,
|
|
@@ -197479,8 +197531,7 @@ function useButton(props) {
|
|
|
197479
197531
|
const getIconClone = (icon) => isValidElement(icon) ? cloneElement(icon, {
|
|
197480
197532
|
// @ts-ignore
|
|
197481
197533
|
"aria-hidden": true,
|
|
197482
|
-
focusable: false
|
|
197483
|
-
tabIndex: -1
|
|
197534
|
+
focusable: false
|
|
197484
197535
|
}) : null;
|
|
197485
197536
|
const startContent = getIconClone(startContentProp);
|
|
197486
197537
|
const endContent = getIconClone(endContentProp);
|
|
@@ -197513,31 +197564,6 @@ function useButton(props) {
|
|
|
197513
197564
|
isIconOnly
|
|
197514
197565
|
};
|
|
197515
197566
|
}
|
|
197516
|
-
function forwardRef(component) {
|
|
197517
|
-
return forwardRef$2(component);
|
|
197518
|
-
}
|
|
197519
|
-
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
197520
|
-
if (!variantKeys) {
|
|
197521
|
-
return [props, {}];
|
|
197522
|
-
}
|
|
197523
|
-
const picked = variantKeys.reduce((acc, key2) => {
|
|
197524
|
-
if (key2 in props) {
|
|
197525
|
-
return { ...acc, [key2]: props[key2] };
|
|
197526
|
-
} else {
|
|
197527
|
-
return acc;
|
|
197528
|
-
}
|
|
197529
|
-
}, {});
|
|
197530
|
-
if (removeVariantProps) {
|
|
197531
|
-
const omitted = Object.keys(props).filter((key2) => !variantKeys.includes(key2)).reduce((acc, key2) => ({ ...acc, [key2]: props[key2] }), {});
|
|
197532
|
-
return [omitted, picked];
|
|
197533
|
-
} else {
|
|
197534
|
-
return [props, picked];
|
|
197535
|
-
}
|
|
197536
|
-
};
|
|
197537
|
-
var [ProviderContext, useProviderContext] = createContext2({
|
|
197538
|
-
name: "ProviderContext",
|
|
197539
|
-
strict: false
|
|
197540
|
-
});
|
|
197541
197567
|
function useSpinner(originalProps) {
|
|
197542
197568
|
var _a3, _b3;
|
|
197543
197569
|
const [props, variantProps] = mapPropsVariants(originalProps, spinner.variantKeys);
|
|
@@ -197641,7 +197667,7 @@ var Spinner = forwardRef((props, ref2) => {
|
|
|
197641
197667
|
});
|
|
197642
197668
|
Spinner.displayName = "HeroUI.Spinner";
|
|
197643
197669
|
var spinner_default = Spinner;
|
|
197644
|
-
var Button2 = forwardRef
|
|
197670
|
+
var Button2 = forwardRef((props, ref2) => {
|
|
197645
197671
|
const {
|
|
197646
197672
|
Component: Component2,
|
|
197647
197673
|
domRef,
|
|
@@ -199491,7 +199517,7 @@ const ThemeToolbar = memo(() => {
|
|
|
199491
199517
|
}
|
|
199492
199518
|
);
|
|
199493
199519
|
});
|
|
199494
|
-
const Sheet = forwardRef$
|
|
199520
|
+
const Sheet = forwardRef$1((props, ref2) => {
|
|
199495
199521
|
const { className, children, ...rest } = props;
|
|
199496
199522
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
199497
199523
|
"div",
|
|
@@ -204600,4 +204626,4 @@ export {
|
|
|
204600
204626
|
typescriptDefaults as t,
|
|
204601
204627
|
useCustomizedMaterials as u
|
|
204602
204628
|
};
|
|
204603
|
-
//# sourceMappingURL=index-
|
|
204629
|
+
//# sourceMappingURL=index-3256baa8.js.map
|