@hortiview/shared-components 2.27.3 → 2.28.0-alpha.4cc3c312.1
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/AlertBanner-C9TvBTkH.js → AlertBanner-2rv7mRmR.js} +1 -1
- package/{dist/GenericCard-2v0lBsVu.js → GenericCard-DglXAprV.js} +6 -6
- package/{dist/ListAreaService-PaN1DrXf.js → ListAreaService-DkGcBcwz.js} +6 -6
- package/assets/FormSelect.css +1 -0
- package/{dist/component-DYpB_4EP.js → component-9vrShqiY.js} +37 -37
- package/{dist/components → components}/AlertBanner/AlertBanner.d.ts +1 -1
- package/{dist/components → components}/AlertBanner/AlertBanner.js +2 -2
- package/{dist/components → components}/AlertBanner/LinkBanner.d.ts +1 -2
- package/{dist/components → components}/AlertBanner/LinkBanner.js +2 -2
- package/{dist/components → components}/Allowed/Allowed.d.ts +1 -2
- package/{dist/components → components}/AllowedButton/AllowedButton.d.ts +1 -2
- package/{dist/components → components}/AllowedButton/AllowedButton.js +1 -1
- package/{dist/components → components}/AllowedIconButton/AllowedIconButton.d.ts +1 -2
- package/{dist/components → components}/AllowedIconButton/AllowedIconButton.js +1 -1
- package/{dist/components → components}/BaseView/BaseView.d.ts +1 -2
- package/{dist/components → components}/BasicHeading/BasicHeading.d.ts +1 -2
- package/{dist/components → components}/BasicHeading/BasicHeading.js +4 -4
- package/{dist/components → components}/BlockView/BlockView.d.ts +1 -2
- package/{dist/components → components}/BlockView/BlockView.js +1 -1
- package/{dist/components → components}/ButtonCard/ButtonCard.d.ts +1 -2
- package/{dist/components → components}/ButtonCard/ButtonCard.js +5 -5
- package/{dist/components → components}/ChipCard/ChipCard.d.ts +1 -1
- package/{dist/components → components}/ChipCard/ChipCard.js +2 -2
- package/{dist/components → components}/ConfirmationModal/ConfirmationModal.d.ts +1 -2
- package/{dist/components → components}/ConfirmationModal/ConfirmationModal.js +2 -2
- package/{dist/components → components}/ContextMenu/ContextMenu.d.ts +1 -2
- package/{dist/components → components}/ContextMenu/ContextMenu.js +2 -2
- package/{dist/components → components}/DeleteModal/DeleteModal.d.ts +1 -2
- package/{dist/components → components}/DeleteModal/DeleteModal.js +6 -6
- package/{dist/components → components}/DetailContentWrapper/DetailContentWrapper.d.ts +1 -2
- package/{dist/components → components}/Disclaimer/Disclaimer.d.ts +1 -1
- package/{dist/components → components}/Disclaimer/Disclaimer.js +1 -1
- package/{dist/components → components}/EmptyView/EmptyView.d.ts +1 -2
- package/{dist/components → components}/EmptyView/EmptyView.js +5 -5
- package/{dist/components → components}/Filter/Filter.d.ts +1 -2
- package/{dist/components → components}/Filter/Filter.js +8 -8
- package/{dist/components → components}/FloatingActionButton/FloatingActionButton.d.ts +1 -2
- package/{dist/components → components}/FloatingActionButton/FloatingActionButton.js +2 -2
- package/{dist/components → components}/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
- package/{dist/components → components}/FormComponents/FormNumber/CustomTextField.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormNumber/CustomTextField.js +2 -2
- package/{dist/components → components}/FormComponents/FormNumber/FormNumber.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormNumber/FormNumber.js +1 -1
- package/{dist/components → components}/FormComponents/FormRadio/FormRadio.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormRadio/FormRadio.js +1 -1
- package/{dist/components → components}/FormComponents/FormSelect/FormSelect.d.ts +1 -2
- package/components/FormComponents/FormSelect/FormSelect.js +136 -0
- package/{dist/components → components}/FormComponents/FormSelect/FormSelectService.d.ts +0 -1
- package/{dist/components → components}/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormSelect/SelectTooltipText.js +1 -1
- package/{dist/components → components}/FormComponents/FormSlider/FormSlider.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormSlider/FormSlider.js +2 -2
- package/{dist/components → components}/FormComponents/FormText/FormText.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormText/FormText.js +2 -2
- package/{dist/components → components}/FormComponents/FormToggle/FormToggle.d.ts +1 -2
- package/{dist/components → components}/FormComponents/FormToggle/FormToggle.js +2 -2
- package/{dist/components → components}/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +1 -2
- package/{dist/components → components}/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
- package/{dist/components → components}/GenericTable/GenericTable.d.ts +1 -2
- package/{dist/components → components}/GenericTable/GenericTable.js +669 -669
- package/{dist/components → components}/GenericTable/GenericTableService.d.ts +0 -1
- package/{dist/components → components}/GenericTable/Mobile/GenericCard.d.ts +1 -2
- package/{dist/components → components}/GenericTable/Mobile/GenericCard.js +3 -3
- package/{dist/components → components}/GenericTable/Mobile/GenericCardList.d.ts +0 -1
- package/{dist/components → components}/GenericTable/Mobile/GenericCardList.js +2 -2
- package/{dist/components → components}/HashTabView/HashTabView.d.ts +1 -2
- package/{dist/components → components}/HashTabView/HashTabView.js +1 -1
- package/{dist/components → components}/HeaderFilter/HeaderFilter.d.ts +1 -2
- package/{dist/components → components}/HeaderFilter/HeaderFilter.js +1 -1
- package/{dist/components → components}/Iconify/Iconify.d.ts +0 -1
- package/{dist/components → components}/InfoCard/InfoCard.d.ts +1 -1
- package/{dist/components → components}/InfoCard/InfoCard.js +2 -2
- package/{dist/components → components}/InfoGroup/InfoGroup.d.ts +1 -2
- package/{dist/components → components}/InfoGroup/InfoGroup.js +2 -2
- package/{dist/components → components}/ListArea/ListArea.d.ts +1 -2
- package/{dist/components → components}/ListArea/ListArea.js +2 -2
- package/{dist/components → components}/ListArea/ListAreaService.d.ts +4 -5
- package/{dist/components → components}/ListArea/ListAreaService.js +2 -2
- package/{dist/components → components}/LoadingSpinner/Big/BigLoadingSpinner.d.ts +1 -1
- package/{dist/components → components}/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
- package/{dist/components → components}/LoadingSpinner/Default/LoadingSpinner.d.ts +1 -1
- package/{dist/components → components}/LoadingSpinner/Default/LoadingSpinner.js +6 -6
- package/{dist/components → components}/Modal/Modal.d.ts +1 -2
- package/{dist/components → components}/Modal/Modal.js +3 -3
- package/{dist/components → components}/ModulePadding/ModulePadding.d.ts +1 -2
- package/{dist/components → components}/ModulePadding/ModulePadding.js +4 -4
- package/{dist/components → components}/OfflineView/OfflineView.d.ts +1 -1
- package/{dist/components → components}/OfflineView/OfflineView.js +2 -2
- package/{dist/components → components}/OnboardingBanner/OnboardingBanner.d.ts +1 -2
- package/{dist/components → components}/OnboardingBanner/OnboardingBanner.js +3 -3
- package/{dist/components → components}/OverflowTooltip/OverflowTooltip.d.ts +1 -1
- package/{dist/components → components}/OverflowTooltip/OverflowTooltip.js +2 -2
- package/{dist/components → components}/PermissionChecks/PermissionService.d.ts +0 -1
- package/{dist/components → components}/SafeForm/SafeForm.d.ts +1 -1
- package/{dist/components → components}/SearchBar/SearchBar.d.ts +1 -2
- package/{dist/components → components}/SearchBar/SearchBar.js +2 -2
- package/{dist/components → components}/Select/Select.d.ts +1 -2
- package/{dist/components → components}/Select/Select.js +4 -4
- package/{dist/components → components}/SharedComponentsPermissionProvider/PermissionContext.d.ts +0 -1
- package/{dist/components → components}/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider.d.ts +1 -2
- package/{dist/components → components}/Stepper/Stepper.d.ts +1 -2
- package/{dist/components → components}/Stepper/components/StepperButton.d.ts +2 -3
- package/{dist/components → components}/Stepper/components/StepperButton.js +1 -1
- package/{dist/components → components}/Stepper/components/StepperHeader.d.ts +1 -2
- package/{dist/components → components}/Stepper/components/StepperHeader.js +1 -1
- package/{dist/components → components}/Stepper/components/StepperItem.d.ts +1 -2
- package/{dist/components → components}/Stepper/components/StepperItem.js +1 -1
- package/{dist/components → components}/Stepper/stepperTypes.d.ts +0 -1
- package/{dist/components → components}/TopBarBanner/TopBarBanner.d.ts +1 -1
- package/{dist/components → components}/TopBarBanner/TopBarBanner.js +2 -2
- package/{dist/components → components}/VerticalDivider/VerticalDivider.d.ts +1 -1
- package/{dist/hooks → hooks}/useContainerWidth.d.ts +0 -1
- package/{dist/hooks → hooks}/useHelperText.d.ts +0 -1
- package/{dist/index.es-DLEY03HG.js → index.es-74LdeLp0.js} +1048 -1036
- package/{dist/index.es-BSaDtduL.js → index.es-B7KXUg_Y.js} +1 -1
- package/{dist/index.es-B1cewJEy.js → index.es-B9C7vzr4.js} +1 -1
- package/{dist/index.es-_PSuLbjQ.js → index.es-BIgjyLDa.js} +6 -6
- package/{dist/index.es-DPGGEmi5.js → index.es-BTF3Ci4c.js} +1 -1
- package/{dist/index.es-BZkGOjEo.js → index.es-BwhRJBEH.js} +1 -1
- package/{dist/index.es-CpPnZRt7.js → index.es-ByqU-v6T.js} +166 -166
- package/{dist/index.es-B_BTuoBa.js → index.es-C2dbad7Y.js} +4 -4
- package/{dist/index.es-DsOSfaF5.js → index.es-CJIPOFSz.js} +39 -39
- package/{dist/index.es-EXzC8zuP.js → index.es-CdZp67J9.js} +4 -4
- package/{dist/index.es-CwgwR6SB.js → index.es-CduUloMP.js} +1 -1
- package/{dist/index.es-BVW2k-5y.js → index.es-DCWPAtXu.js} +1 -1
- package/{dist/index.es-DHL1mFb3.js → index.es-DglJcc2r.js} +2 -2
- package/{dist/isString-C0tJxuT4.js → isString-LDbI4UeI.js} +1 -1
- package/{dist/main.js → main.js} +1 -1
- package/{dist/omit-BWQrFyQ-.js → omit-DUqu4lDk.js} +196 -203
- package/package.json +11 -91
- package/{dist/react-number-format.es-pczkQ4lQ.js → react-number-format.es-8jxpHyYy.js} +192 -183
- package/react-tooltip.min-DKaGxvdz.js +1411 -0
- package/react.esm-uOZB-qPu.js +15150 -0
- package/{dist/services → services}/BlockService.d.ts +0 -1
- package/{dist/services → services}/NumberService.d.ts +0 -1
- package/{dist/services → services}/UtilService.d.ts +0 -1
- package/{dist/services → services}/UtilService.js +4 -4
- package/{dist/test-utils.d.ts → test-utils.d.ts} +1 -2
- package/{dist/test-utils.js → test-utils.js} +1 -1
- package/{dist/types → types}/GenericTable.d.ts +0 -1
- package/{dist/types → types}/ListElement.d.ts +0 -1
- package/CHANGELOG.md +0 -780
- package/README.md +0 -1387
- package/dist/assets/FormSelect.css +0 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +0 -142
- package/dist/react-tooltip.min-D7xPMD-P.js +0 -1390
- package/dist/react.esm-DF7i80eN.js +0 -13658
- /package/{dist/_Map-BYxTn6ob.js → _Map-BYxTn6ob.js} +0 -0
- /package/{dist/_commonjsHelpers-ByX85dGu.js → _commonjsHelpers-ByX85dGu.js} +0 -0
- /package/{dist/animationframe-CqXArbwZ.js → animationframe-CqXArbwZ.js} +0 -0
- /package/{dist/assets → assets}/AlertBanner.css +0 -0
- /package/{dist/assets → assets}/BaseView.css +0 -0
- /package/{dist/assets → assets}/BasicHeading.css +0 -0
- /package/{dist/assets → assets}/BigLoadingSpinner.css +0 -0
- /package/{dist/assets → assets}/BlockView.css +0 -0
- /package/{dist/assets → assets}/ButtonCard.css +0 -0
- /package/{dist/assets → assets}/ChipCard.css +0 -0
- /package/{dist/assets → assets}/ConfirmationModal.css +0 -0
- /package/{dist/assets → assets}/ContextMenu.css +0 -0
- /package/{dist/assets → assets}/CustomTextField.css +0 -0
- /package/{dist/assets → assets}/DeleteModal.css +0 -0
- /package/{dist/assets → assets}/DetailContentWrapper.css +0 -0
- /package/{dist/assets → assets}/Disclaimer.css +0 -0
- /package/{dist/assets → assets}/EmptyView.css +0 -0
- /package/{dist/assets → assets}/Filter.css +0 -0
- /package/{dist/assets → assets}/FloatingActionButton.css +0 -0
- /package/{dist/assets → assets}/FormCheckBox.css +0 -0
- /package/{dist/assets → assets}/FormDatePicker.css +0 -0
- /package/{dist/assets → assets}/FormText.css +0 -0
- /package/{dist/assets → assets}/GenericCard.css +0 -0
- /package/{dist/assets → assets}/GenericTable.css +0 -0
- /package/{dist/assets → assets}/HashTabView.css +0 -0
- /package/{dist/assets → assets}/HeaderFilter.css +0 -0
- /package/{dist/assets → assets}/Iconify.css +0 -0
- /package/{dist/assets → assets}/InfoCard.css +0 -0
- /package/{dist/assets → assets}/InfoGroup.css +0 -0
- /package/{dist/assets → assets}/ListAreaService.css +0 -0
- /package/{dist/assets → assets}/LoadingSpinner.css +0 -0
- /package/{dist/assets → assets}/Modal.css +0 -0
- /package/{dist/assets → assets}/ModulePadding.css +0 -0
- /package/{dist/assets → assets}/OfflineView.css +0 -0
- /package/{dist/assets → assets}/OnboardingBanner.css +0 -0
- /package/{dist/assets → assets}/OverflowTooltip.css +0 -0
- /package/{dist/assets → assets}/Scrollbar.css +0 -0
- /package/{dist/assets → assets}/SearchBar.css +0 -0
- /package/{dist/assets → assets}/Select.css +0 -0
- /package/{dist/assets → assets}/TopBarBanner.css +0 -0
- /package/{dist/assets → assets}/VerticalDivider.css +0 -0
- /package/{dist/assets → assets}/stepper.css +0 -0
- /package/{dist/component-By6nyiBU.js → component-By6nyiBU.js} +0 -0
- /package/{dist/components → components}/Allowed/Allowed.js +0 -0
- /package/{dist/components → components}/BaseView/BaseView.js +0 -0
- /package/{dist/components → components}/BaseView/BaseView.service.d.ts +0 -0
- /package/{dist/components → components}/BaseView/BaseView.service.js +0 -0
- /package/{dist/components → components}/DetailContentWrapper/DetailContentWrapper.js +0 -0
- /package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePickerService.d.ts +0 -0
- /package/{dist/components → components}/FormComponents/FormDatePicker/FormDatePickerService.js +0 -0
- /package/{dist/components → components}/FormComponents/FormSelect/FormSelectService.js +0 -0
- /package/{dist/components → components}/GenericTable/GenericTableService.js +0 -0
- /package/{dist/components → components}/Iconify/Iconify.js +0 -0
- /package/{dist/components → components}/OverflowTooltip/OverflowTooltipService.d.ts +0 -0
- /package/{dist/components → components}/OverflowTooltip/OverflowTooltipService.js +0 -0
- /package/{dist/components → components}/PermissionChecks/PermissionService.js +0 -0
- /package/{dist/components → components}/PermissionChecks/mockedPermissions.d.ts +0 -0
- /package/{dist/components → components}/PermissionChecks/mockedPermissions.js +0 -0
- /package/{dist/components → components}/SafeForm/SafeForm.js +0 -0
- /package/{dist/components → components}/Scrollbar/Scrollbar.d.ts +0 -0
- /package/{dist/components → components}/Scrollbar/Scrollbar.js +0 -0
- /package/{dist/components → components}/SharedComponentsPermissionProvider/PermissionContext.js +0 -0
- /package/{dist/components → components}/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider.js +0 -0
- /package/{dist/components → components}/Stepper/Stepper.js +0 -0
- /package/{dist/components → components}/Stepper/stepperStyles.d.ts +0 -0
- /package/{dist/components → components}/Stepper/stepperStyles.js +0 -0
- /package/{dist/components → components}/Stepper/stepperTypes.js +0 -0
- /package/{dist/components → components}/VerticalDivider/VerticalDivider.js +0 -0
- /package/{dist/defineProperty-SoB5opr-.js → defineProperty-SoB5opr-.js} +0 -0
- /package/{dist/enums → enums}/AvailableCustomIcons.d.ts +0 -0
- /package/{dist/enums → enums}/AvailableCustomIcons.js +0 -0
- /package/{dist/enums → enums}/ThemeColor.d.ts +0 -0
- /package/{dist/enums → enums}/ThemeColor.js +0 -0
- /package/{dist/es.string.iterator-BrOvr7F6.js → es.string.iterator-BrOvr7F6.js} +0 -0
- /package/{dist/find-OaLSg5iu.js → find-OaLSg5iu.js} +0 -0
- /package/{dist/get-BLvvbtML.js → get-BLvvbtML.js} +0 -0
- /package/{dist/get-CBFiuc3f.js → get-CBFiuc3f.js} +0 -0
- /package/{dist/hooks → hooks}/useBreakpoints.d.ts +0 -0
- /package/{dist/hooks → hooks}/useBreakpoints.js +0 -0
- /package/{dist/hooks → hooks}/useContainerWidth.js +0 -0
- /package/{dist/hooks → hooks}/useHelperText.js +0 -0
- /package/{dist/identity-B0bbReND.js → identity-B0bbReND.js} +0 -0
- /package/{dist/includes-CSD_V_RY.js → includes-CSD_V_RY.js} +0 -0
- /package/{dist/index-CuHybtft.js → index-CuHybtft.js} +0 -0
- /package/{dist/index-_-9ybP20.js → index-_-9ybP20.js} +0 -0
- /package/{dist/index.es-0SkNh4dU.js → index.es-0SkNh4dU.js} +0 -0
- /package/{dist/index.es-BE1XL1dD.js → index.es-BE1XL1dD.js} +0 -0
- /package/{dist/index.es-C2ejWpji.js → index.es-C2ejWpji.js} +0 -0
- /package/{dist/index.es-C8AExypY.js → index.es-C8AExypY.js} +0 -0
- /package/{dist/index.es-CNrSvjAv.js → index.es-CNrSvjAv.js} +0 -0
- /package/{dist/index.es-CTKwa3Es.js → index.es-CTKwa3Es.js} +0 -0
- /package/{dist/index.es-DRC-9PLs.js → index.es-DRC-9PLs.js} +0 -0
- /package/{dist/index.es-LckFzDz-.js → index.es-LckFzDz-.js} +0 -0
- /package/{dist/index.es-Pc5KKhcb.js → index.es-Pc5KKhcb.js} +0 -0
- /package/{dist/index.es-eZDofmng.js → index.es-eZDofmng.js} +0 -0
- /package/{dist/isArray-Ce1Q96lU.js → isArray-Ce1Q96lU.js} +0 -0
- /package/{dist/isArray-olhCpv2e.js → isArray-olhCpv2e.js} +0 -0
- /package/{dist/isEmpty-l2xQKl4x.js → isEmpty-l2xQKl4x.js} +0 -0
- /package/{dist/isTypedArray-D39qzPYE.js → isTypedArray-D39qzPYE.js} +0 -0
- /package/{dist/keyboard-DQ9O_Ke1.js → keyboard-DQ9O_Ke1.js} +0 -0
- /package/{dist/main.d.ts → main.d.ts} +0 -0
- /package/{dist/map-BErBeya5.js → map-BErBeya5.js} +0 -0
- /package/{dist/orderBy-Ce85KqD6.js → orderBy-Ce85KqD6.js} +0 -0
- /package/{dist/parse-int-BYd7r_4n.js → parse-int-BYd7r_4n.js} +0 -0
- /package/{dist/services → services}/BlockService.js +0 -0
- /package/{dist/services → services}/NumberService.js +0 -0
- /package/{dist/slicedToArray-C2Ed3239.js → slicedToArray-C2Ed3239.js} +0 -0
- /package/{dist/stepper.module-C_EMu-Fl.js → stepper.module-C_EMu-Fl.js} +0 -0
- /package/{dist/string-trim-v5pkXsl2.js → string-trim-v5pkXsl2.js} +0 -0
- /package/{dist/toString-D5bEU-DN.js → toString-D5bEU-DN.js} +0 -0
- /package/{dist/tslib.es6-BDCynO9F.js → tslib.es6-BDCynO9F.js} +0 -0
- /package/{dist/types → types}/Filter.d.ts +0 -0
- /package/{dist/types → types}/Filter.js +0 -0
- /package/{dist/types → types}/GenericTable.js +0 -0
- /package/{dist/types → types}/HashTab.d.ts +0 -0
- /package/{dist/types → types}/HashTab.js +0 -0
- /package/{dist/types → types}/Languages.d.ts +0 -0
- /package/{dist/types → types}/Languages.js +0 -0
- /package/{dist/types → types}/ListElement.js +0 -0
- /package/{dist/types → types}/Permission.d.ts +0 -0
- /package/{dist/types → types}/Permission.js +0 -0
- /package/{dist/types → types}/Time.d.ts +0 -0
- /package/{dist/types → types}/Time.js +0 -0
- /package/{dist/types → types}/internal/Block.d.ts +0 -0
- /package/{dist/types → types}/internal/Block.js +0 -0
- /package/{dist/types → types}/internal/ChangeValueType.d.ts +0 -0
- /package/{dist/types → types}/internal/ChangeValueType.js +0 -0
- /package/{dist/types → types}/internal/ReactRouterTypes.d.ts +0 -0
- /package/{dist/types → types}/internal/ReactRouterTypes.js +0 -0
- /package/{dist/uniqueId-CJo-XRQb.js → uniqueId-CJo-XRQb.js} +0 -0
- /package/{dist/util-CBo-ipCE.js → util-CBo-ipCE.js} +0 -0
- /package/{dist/vite-env.d.js → vite-env.d.js} +0 -0
|
@@ -0,0 +1,1411 @@
|
|
|
1
|
+
import ge, { createContext as _o, useState as P, useRef as re, useEffect as C, useContext as Ao, useCallback as So, useImperativeHandle as Eo, useLayoutEffect as Oo } from "react";
|
|
2
|
+
import { g as Ro } from "./_commonjsHelpers-ByX85dGu.js";
|
|
3
|
+
const He = Math.min, Te = Math.max, xt = Math.round, wt = Math.floor, de = (e) => ({
|
|
4
|
+
x: e,
|
|
5
|
+
y: e
|
|
6
|
+
}), To = {
|
|
7
|
+
left: "right",
|
|
8
|
+
right: "left",
|
|
9
|
+
bottom: "top",
|
|
10
|
+
top: "bottom"
|
|
11
|
+
}, Co = {
|
|
12
|
+
start: "end",
|
|
13
|
+
end: "start"
|
|
14
|
+
};
|
|
15
|
+
function Nt(e, t, n) {
|
|
16
|
+
return Te(e, He(t, n));
|
|
17
|
+
}
|
|
18
|
+
function st(e, t) {
|
|
19
|
+
return typeof e == "function" ? e(t) : e;
|
|
20
|
+
}
|
|
21
|
+
function Ce(e) {
|
|
22
|
+
return e.split("-")[0];
|
|
23
|
+
}
|
|
24
|
+
function ct(e) {
|
|
25
|
+
return e.split("-")[1];
|
|
26
|
+
}
|
|
27
|
+
function io(e) {
|
|
28
|
+
return e === "x" ? "y" : "x";
|
|
29
|
+
}
|
|
30
|
+
function zt(e) {
|
|
31
|
+
return e === "y" ? "height" : "width";
|
|
32
|
+
}
|
|
33
|
+
function Ke(e) {
|
|
34
|
+
return ["top", "bottom"].includes(Ce(e)) ? "y" : "x";
|
|
35
|
+
}
|
|
36
|
+
function Pt(e) {
|
|
37
|
+
return io(Ke(e));
|
|
38
|
+
}
|
|
39
|
+
function ko(e, t, n) {
|
|
40
|
+
n === void 0 && (n = !1);
|
|
41
|
+
const o = ct(e), l = Pt(e), r = zt(l);
|
|
42
|
+
let i = l === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
43
|
+
return t.reference[r] > t.floating[r] && (i = _t(i)), [i, _t(i)];
|
|
44
|
+
}
|
|
45
|
+
function Lo(e) {
|
|
46
|
+
const t = _t(e);
|
|
47
|
+
return [Dt(e), t, Dt(t)];
|
|
48
|
+
}
|
|
49
|
+
function Dt(e) {
|
|
50
|
+
return e.replace(/start|end/g, (t) => Co[t]);
|
|
51
|
+
}
|
|
52
|
+
function No(e, t, n) {
|
|
53
|
+
const o = ["left", "right"], l = ["right", "left"], r = ["top", "bottom"], i = ["bottom", "top"];
|
|
54
|
+
switch (e) {
|
|
55
|
+
case "top":
|
|
56
|
+
case "bottom":
|
|
57
|
+
return n ? t ? l : o : t ? o : l;
|
|
58
|
+
case "left":
|
|
59
|
+
case "right":
|
|
60
|
+
return t ? r : i;
|
|
61
|
+
default:
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function Do(e, t, n, o) {
|
|
66
|
+
const l = ct(e);
|
|
67
|
+
let r = No(Ce(e), n === "start", o);
|
|
68
|
+
return l && (r = r.map((i) => i + "-" + l), t && (r = r.concat(r.map(Dt)))), r;
|
|
69
|
+
}
|
|
70
|
+
function _t(e) {
|
|
71
|
+
return e.replace(/left|right|bottom|top/g, (t) => To[t]);
|
|
72
|
+
}
|
|
73
|
+
function $o(e) {
|
|
74
|
+
return {
|
|
75
|
+
top: 0,
|
|
76
|
+
right: 0,
|
|
77
|
+
bottom: 0,
|
|
78
|
+
left: 0,
|
|
79
|
+
...e
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function so(e) {
|
|
83
|
+
return typeof e != "number" ? $o(e) : {
|
|
84
|
+
top: e,
|
|
85
|
+
right: e,
|
|
86
|
+
bottom: e,
|
|
87
|
+
left: e
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function At(e) {
|
|
91
|
+
const {
|
|
92
|
+
x: t,
|
|
93
|
+
y: n,
|
|
94
|
+
width: o,
|
|
95
|
+
height: l
|
|
96
|
+
} = e;
|
|
97
|
+
return {
|
|
98
|
+
width: o,
|
|
99
|
+
height: l,
|
|
100
|
+
top: n,
|
|
101
|
+
left: t,
|
|
102
|
+
right: t + o,
|
|
103
|
+
bottom: n + l,
|
|
104
|
+
x: t,
|
|
105
|
+
y: n
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function Yt(e, t, n) {
|
|
109
|
+
let {
|
|
110
|
+
reference: o,
|
|
111
|
+
floating: l
|
|
112
|
+
} = e;
|
|
113
|
+
const r = Ke(t), i = Pt(t), s = zt(i), c = Ce(t), a = r === "y", m = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, y = o[s] / 2 - l[s] / 2;
|
|
114
|
+
let f;
|
|
115
|
+
switch (c) {
|
|
116
|
+
case "top":
|
|
117
|
+
f = {
|
|
118
|
+
x: m,
|
|
119
|
+
y: o.y - l.height
|
|
120
|
+
};
|
|
121
|
+
break;
|
|
122
|
+
case "bottom":
|
|
123
|
+
f = {
|
|
124
|
+
x: m,
|
|
125
|
+
y: o.y + o.height
|
|
126
|
+
};
|
|
127
|
+
break;
|
|
128
|
+
case "right":
|
|
129
|
+
f = {
|
|
130
|
+
x: o.x + o.width,
|
|
131
|
+
y: d
|
|
132
|
+
};
|
|
133
|
+
break;
|
|
134
|
+
case "left":
|
|
135
|
+
f = {
|
|
136
|
+
x: o.x - l.width,
|
|
137
|
+
y: d
|
|
138
|
+
};
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
f = {
|
|
142
|
+
x: o.x,
|
|
143
|
+
y: o.y
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
switch (ct(t)) {
|
|
147
|
+
case "start":
|
|
148
|
+
f[i] -= y * (n && a ? -1 : 1);
|
|
149
|
+
break;
|
|
150
|
+
case "end":
|
|
151
|
+
f[i] += y * (n && a ? -1 : 1);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
return f;
|
|
155
|
+
}
|
|
156
|
+
const Bo = async (e, t, n) => {
|
|
157
|
+
const {
|
|
158
|
+
placement: o = "bottom",
|
|
159
|
+
strategy: l = "absolute",
|
|
160
|
+
middleware: r = [],
|
|
161
|
+
platform: i
|
|
162
|
+
} = n, s = r.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
163
|
+
let a = await i.getElementRects({
|
|
164
|
+
reference: e,
|
|
165
|
+
floating: t,
|
|
166
|
+
strategy: l
|
|
167
|
+
}), {
|
|
168
|
+
x: m,
|
|
169
|
+
y: d
|
|
170
|
+
} = Yt(a, o, c), y = o, f = {}, v = 0;
|
|
171
|
+
for (let g = 0; g < s.length; g++) {
|
|
172
|
+
const {
|
|
173
|
+
name: x,
|
|
174
|
+
fn: b
|
|
175
|
+
} = s[g], {
|
|
176
|
+
x: _,
|
|
177
|
+
y: A,
|
|
178
|
+
data: k,
|
|
179
|
+
reset: R
|
|
180
|
+
} = await b({
|
|
181
|
+
x: m,
|
|
182
|
+
y: d,
|
|
183
|
+
initialPlacement: o,
|
|
184
|
+
placement: y,
|
|
185
|
+
strategy: l,
|
|
186
|
+
middlewareData: f,
|
|
187
|
+
rects: a,
|
|
188
|
+
platform: i,
|
|
189
|
+
elements: {
|
|
190
|
+
reference: e,
|
|
191
|
+
floating: t
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
m = _ ?? m, d = A ?? d, f = {
|
|
195
|
+
...f,
|
|
196
|
+
[x]: {
|
|
197
|
+
...f[x],
|
|
198
|
+
...k
|
|
199
|
+
}
|
|
200
|
+
}, R && v <= 50 && (v++, typeof R == "object" && (R.placement && (y = R.placement), R.rects && (a = R.rects === !0 ? await i.getElementRects({
|
|
201
|
+
reference: e,
|
|
202
|
+
floating: t,
|
|
203
|
+
strategy: l
|
|
204
|
+
}) : R.rects), {
|
|
205
|
+
x: m,
|
|
206
|
+
y: d
|
|
207
|
+
} = Yt(a, y, c)), g = -1);
|
|
208
|
+
}
|
|
209
|
+
return {
|
|
210
|
+
x: m,
|
|
211
|
+
y: d,
|
|
212
|
+
placement: y,
|
|
213
|
+
strategy: l,
|
|
214
|
+
middlewareData: f
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
async function co(e, t) {
|
|
218
|
+
var n;
|
|
219
|
+
t === void 0 && (t = {});
|
|
220
|
+
const {
|
|
221
|
+
x: o,
|
|
222
|
+
y: l,
|
|
223
|
+
platform: r,
|
|
224
|
+
rects: i,
|
|
225
|
+
elements: s,
|
|
226
|
+
strategy: c
|
|
227
|
+
} = e, {
|
|
228
|
+
boundary: a = "clippingAncestors",
|
|
229
|
+
rootBoundary: m = "viewport",
|
|
230
|
+
elementContext: d = "floating",
|
|
231
|
+
altBoundary: y = !1,
|
|
232
|
+
padding: f = 0
|
|
233
|
+
} = st(t, e), v = so(f), x = s[y ? d === "floating" ? "reference" : "floating" : d], b = At(await r.getClippingRect({
|
|
234
|
+
element: (n = await (r.isElement == null ? void 0 : r.isElement(x))) == null || n ? x : x.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
|
|
235
|
+
boundary: a,
|
|
236
|
+
rootBoundary: m,
|
|
237
|
+
strategy: c
|
|
238
|
+
})), _ = d === "floating" ? {
|
|
239
|
+
x: o,
|
|
240
|
+
y: l,
|
|
241
|
+
width: i.floating.width,
|
|
242
|
+
height: i.floating.height
|
|
243
|
+
} : i.reference, A = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), k = await (r.isElement == null ? void 0 : r.isElement(A)) ? await (r.getScale == null ? void 0 : r.getScale(A)) || {
|
|
244
|
+
x: 1,
|
|
245
|
+
y: 1
|
|
246
|
+
} : {
|
|
247
|
+
x: 1,
|
|
248
|
+
y: 1
|
|
249
|
+
}, R = At(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
250
|
+
elements: s,
|
|
251
|
+
rect: _,
|
|
252
|
+
offsetParent: A,
|
|
253
|
+
strategy: c
|
|
254
|
+
}) : _);
|
|
255
|
+
return {
|
|
256
|
+
top: (b.top - R.top + v.top) / k.y,
|
|
257
|
+
bottom: (R.bottom - b.bottom + v.bottom) / k.y,
|
|
258
|
+
left: (b.left - R.left + v.left) / k.x,
|
|
259
|
+
right: (R.right - b.right + v.right) / k.x
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
const zo = (e) => ({
|
|
263
|
+
name: "arrow",
|
|
264
|
+
options: e,
|
|
265
|
+
async fn(t) {
|
|
266
|
+
const {
|
|
267
|
+
x: n,
|
|
268
|
+
y: o,
|
|
269
|
+
placement: l,
|
|
270
|
+
rects: r,
|
|
271
|
+
platform: i,
|
|
272
|
+
elements: s,
|
|
273
|
+
middlewareData: c
|
|
274
|
+
} = t, {
|
|
275
|
+
element: a,
|
|
276
|
+
padding: m = 0
|
|
277
|
+
} = st(e, t) || {};
|
|
278
|
+
if (a == null)
|
|
279
|
+
return {};
|
|
280
|
+
const d = so(m), y = {
|
|
281
|
+
x: n,
|
|
282
|
+
y: o
|
|
283
|
+
}, f = Pt(l), v = zt(f), g = await i.getDimensions(a), x = f === "y", b = x ? "top" : "left", _ = x ? "bottom" : "right", A = x ? "clientHeight" : "clientWidth", k = r.reference[v] + r.reference[f] - y[f] - r.floating[v], R = y[f] - r.reference[f], M = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a));
|
|
284
|
+
let L = M ? M[A] : 0;
|
|
285
|
+
(!L || !await (i.isElement == null ? void 0 : i.isElement(M))) && (L = s.floating[A] || r.floating[v]);
|
|
286
|
+
const Z = k / 2 - R / 2, U = L / 2 - g[v] / 2 - 1, ee = He(d[b], U), ce = He(d[_], U), te = ee, ae = L - g[v] - ce, T = L / 2 - g[v] / 2 + Z, J = Nt(te, T, ae), W = !c.arrow && ct(l) != null && T !== J && r.reference[v] / 2 - (T < te ? ee : ce) - g[v] / 2 < 0, j = W ? T < te ? T - te : T - ae : 0;
|
|
287
|
+
return {
|
|
288
|
+
[f]: y[f] + j,
|
|
289
|
+
data: {
|
|
290
|
+
[f]: J,
|
|
291
|
+
centerOffset: T - J - j,
|
|
292
|
+
...W && {
|
|
293
|
+
alignmentOffset: j
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
reset: W
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}), Po = function(e) {
|
|
300
|
+
return e === void 0 && (e = {}), {
|
|
301
|
+
name: "flip",
|
|
302
|
+
options: e,
|
|
303
|
+
async fn(t) {
|
|
304
|
+
var n, o;
|
|
305
|
+
const {
|
|
306
|
+
placement: l,
|
|
307
|
+
middlewareData: r,
|
|
308
|
+
rects: i,
|
|
309
|
+
initialPlacement: s,
|
|
310
|
+
platform: c,
|
|
311
|
+
elements: a
|
|
312
|
+
} = t, {
|
|
313
|
+
mainAxis: m = !0,
|
|
314
|
+
crossAxis: d = !0,
|
|
315
|
+
fallbackPlacements: y,
|
|
316
|
+
fallbackStrategy: f = "bestFit",
|
|
317
|
+
fallbackAxisSideDirection: v = "none",
|
|
318
|
+
flipAlignment: g = !0,
|
|
319
|
+
...x
|
|
320
|
+
} = st(e, t);
|
|
321
|
+
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
322
|
+
return {};
|
|
323
|
+
const b = Ce(l), _ = Ke(s), A = Ce(s) === s, k = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), R = y || (A || !g ? [_t(s)] : Lo(s)), M = v !== "none";
|
|
324
|
+
!y && M && R.push(...Do(s, g, v, k));
|
|
325
|
+
const L = [s, ...R], Z = await co(t, x), U = [];
|
|
326
|
+
let ee = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
327
|
+
if (m && U.push(Z[b]), d) {
|
|
328
|
+
const T = ko(l, i, k);
|
|
329
|
+
U.push(Z[T[0]], Z[T[1]]);
|
|
330
|
+
}
|
|
331
|
+
if (ee = [...ee, {
|
|
332
|
+
placement: l,
|
|
333
|
+
overflows: U
|
|
334
|
+
}], !U.every((T) => T <= 0)) {
|
|
335
|
+
var ce, te;
|
|
336
|
+
const T = (((ce = r.flip) == null ? void 0 : ce.index) || 0) + 1, J = L[T];
|
|
337
|
+
if (J)
|
|
338
|
+
return {
|
|
339
|
+
data: {
|
|
340
|
+
index: T,
|
|
341
|
+
overflows: ee
|
|
342
|
+
},
|
|
343
|
+
reset: {
|
|
344
|
+
placement: J
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
let W = (te = ee.filter((j) => j.overflows[0] <= 0).sort((j, B) => j.overflows[1] - B.overflows[1])[0]) == null ? void 0 : te.placement;
|
|
348
|
+
if (!W)
|
|
349
|
+
switch (f) {
|
|
350
|
+
case "bestFit": {
|
|
351
|
+
var ae;
|
|
352
|
+
const j = (ae = ee.filter((B) => {
|
|
353
|
+
if (M) {
|
|
354
|
+
const V = Ke(B.placement);
|
|
355
|
+
return V === _ || // Create a bias to the `y` side axis due to horizontal
|
|
356
|
+
// reading directions favoring greater width.
|
|
357
|
+
V === "y";
|
|
358
|
+
}
|
|
359
|
+
return !0;
|
|
360
|
+
}).map((B) => [B.placement, B.overflows.filter((V) => V > 0).reduce((V, he) => V + he, 0)]).sort((B, V) => B[1] - V[1])[0]) == null ? void 0 : ae[0];
|
|
361
|
+
j && (W = j);
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
case "initialPlacement":
|
|
365
|
+
W = s;
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
if (l !== W)
|
|
369
|
+
return {
|
|
370
|
+
reset: {
|
|
371
|
+
placement: W
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
return {};
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
async function jo(e, t) {
|
|
380
|
+
const {
|
|
381
|
+
placement: n,
|
|
382
|
+
platform: o,
|
|
383
|
+
elements: l
|
|
384
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = Ce(n), s = ct(n), c = Ke(n) === "y", a = ["left", "top"].includes(i) ? -1 : 1, m = r && c ? -1 : 1, d = st(t, e);
|
|
385
|
+
let {
|
|
386
|
+
mainAxis: y,
|
|
387
|
+
crossAxis: f,
|
|
388
|
+
alignmentAxis: v
|
|
389
|
+
} = typeof d == "number" ? {
|
|
390
|
+
mainAxis: d,
|
|
391
|
+
crossAxis: 0,
|
|
392
|
+
alignmentAxis: null
|
|
393
|
+
} : {
|
|
394
|
+
mainAxis: d.mainAxis || 0,
|
|
395
|
+
crossAxis: d.crossAxis || 0,
|
|
396
|
+
alignmentAxis: d.alignmentAxis
|
|
397
|
+
};
|
|
398
|
+
return s && typeof v == "number" && (f = s === "end" ? v * -1 : v), c ? {
|
|
399
|
+
x: f * m,
|
|
400
|
+
y: y * a
|
|
401
|
+
} : {
|
|
402
|
+
x: y * a,
|
|
403
|
+
y: f * m
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
const Io = function(e) {
|
|
407
|
+
return e === void 0 && (e = 0), {
|
|
408
|
+
name: "offset",
|
|
409
|
+
options: e,
|
|
410
|
+
async fn(t) {
|
|
411
|
+
var n, o;
|
|
412
|
+
const {
|
|
413
|
+
x: l,
|
|
414
|
+
y: r,
|
|
415
|
+
placement: i,
|
|
416
|
+
middlewareData: s
|
|
417
|
+
} = t, c = await jo(t, e);
|
|
418
|
+
return i === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
|
|
419
|
+
x: l + c.x,
|
|
420
|
+
y: r + c.y,
|
|
421
|
+
data: {
|
|
422
|
+
...c,
|
|
423
|
+
placement: i
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
}, Mo = function(e) {
|
|
429
|
+
return e === void 0 && (e = {}), {
|
|
430
|
+
name: "shift",
|
|
431
|
+
options: e,
|
|
432
|
+
async fn(t) {
|
|
433
|
+
const {
|
|
434
|
+
x: n,
|
|
435
|
+
y: o,
|
|
436
|
+
placement: l
|
|
437
|
+
} = t, {
|
|
438
|
+
mainAxis: r = !0,
|
|
439
|
+
crossAxis: i = !1,
|
|
440
|
+
limiter: s = {
|
|
441
|
+
fn: (x) => {
|
|
442
|
+
let {
|
|
443
|
+
x: b,
|
|
444
|
+
y: _
|
|
445
|
+
} = x;
|
|
446
|
+
return {
|
|
447
|
+
x: b,
|
|
448
|
+
y: _
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
...c
|
|
453
|
+
} = st(e, t), a = {
|
|
454
|
+
x: n,
|
|
455
|
+
y: o
|
|
456
|
+
}, m = await co(t, c), d = Ke(Ce(l)), y = io(d);
|
|
457
|
+
let f = a[y], v = a[d];
|
|
458
|
+
if (r) {
|
|
459
|
+
const x = y === "y" ? "top" : "left", b = y === "y" ? "bottom" : "right", _ = f + m[x], A = f - m[b];
|
|
460
|
+
f = Nt(_, f, A);
|
|
461
|
+
}
|
|
462
|
+
if (i) {
|
|
463
|
+
const x = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", _ = v + m[x], A = v - m[b];
|
|
464
|
+
v = Nt(_, v, A);
|
|
465
|
+
}
|
|
466
|
+
const g = s.fn({
|
|
467
|
+
...t,
|
|
468
|
+
[y]: f,
|
|
469
|
+
[d]: v
|
|
470
|
+
});
|
|
471
|
+
return {
|
|
472
|
+
...g,
|
|
473
|
+
data: {
|
|
474
|
+
x: g.x - n,
|
|
475
|
+
y: g.y - o,
|
|
476
|
+
enabled: {
|
|
477
|
+
[y]: r,
|
|
478
|
+
[d]: i
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
function St() {
|
|
486
|
+
return typeof window < "u";
|
|
487
|
+
}
|
|
488
|
+
function Xe(e) {
|
|
489
|
+
return ao(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
490
|
+
}
|
|
491
|
+
function G(e) {
|
|
492
|
+
var t;
|
|
493
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
494
|
+
}
|
|
495
|
+
function me(e) {
|
|
496
|
+
var t;
|
|
497
|
+
return (t = (ao(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
498
|
+
}
|
|
499
|
+
function ao(e) {
|
|
500
|
+
return St() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
501
|
+
}
|
|
502
|
+
function ie(e) {
|
|
503
|
+
return St() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
504
|
+
}
|
|
505
|
+
function pe(e) {
|
|
506
|
+
return St() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
507
|
+
}
|
|
508
|
+
function Xt(e) {
|
|
509
|
+
return !St() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
510
|
+
}
|
|
511
|
+
function at(e) {
|
|
512
|
+
const {
|
|
513
|
+
overflow: t,
|
|
514
|
+
overflowX: n,
|
|
515
|
+
overflowY: o,
|
|
516
|
+
display: l
|
|
517
|
+
} = se(e);
|
|
518
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(l);
|
|
519
|
+
}
|
|
520
|
+
function Fo(e) {
|
|
521
|
+
return ["table", "td", "th"].includes(Xe(e));
|
|
522
|
+
}
|
|
523
|
+
function Et(e) {
|
|
524
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
525
|
+
try {
|
|
526
|
+
return e.matches(t);
|
|
527
|
+
} catch {
|
|
528
|
+
return !1;
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
function jt(e) {
|
|
533
|
+
const t = It(), n = ie(e) ? se(e) : e;
|
|
534
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
535
|
+
}
|
|
536
|
+
function Wo(e) {
|
|
537
|
+
let t = be(e);
|
|
538
|
+
for (; pe(t) && !Ye(t); ) {
|
|
539
|
+
if (jt(t))
|
|
540
|
+
return t;
|
|
541
|
+
if (Et(t))
|
|
542
|
+
return null;
|
|
543
|
+
t = be(t);
|
|
544
|
+
}
|
|
545
|
+
return null;
|
|
546
|
+
}
|
|
547
|
+
function It() {
|
|
548
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
549
|
+
}
|
|
550
|
+
function Ye(e) {
|
|
551
|
+
return ["html", "body", "#document"].includes(Xe(e));
|
|
552
|
+
}
|
|
553
|
+
function se(e) {
|
|
554
|
+
return G(e).getComputedStyle(e);
|
|
555
|
+
}
|
|
556
|
+
function Ot(e) {
|
|
557
|
+
return ie(e) ? {
|
|
558
|
+
scrollLeft: e.scrollLeft,
|
|
559
|
+
scrollTop: e.scrollTop
|
|
560
|
+
} : {
|
|
561
|
+
scrollLeft: e.scrollX,
|
|
562
|
+
scrollTop: e.scrollY
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
function be(e) {
|
|
566
|
+
if (Xe(e) === "html")
|
|
567
|
+
return e;
|
|
568
|
+
const t = (
|
|
569
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
570
|
+
e.assignedSlot || // DOM Element detected.
|
|
571
|
+
e.parentNode || // ShadowRoot detected.
|
|
572
|
+
Xt(e) && e.host || // Fallback.
|
|
573
|
+
me(e)
|
|
574
|
+
);
|
|
575
|
+
return Xt(t) ? t.host : t;
|
|
576
|
+
}
|
|
577
|
+
function uo(e) {
|
|
578
|
+
const t = be(e);
|
|
579
|
+
return Ye(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : pe(t) && at(t) ? t : uo(t);
|
|
580
|
+
}
|
|
581
|
+
function it(e, t, n) {
|
|
582
|
+
var o;
|
|
583
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
584
|
+
const l = uo(e), r = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = G(l);
|
|
585
|
+
if (r) {
|
|
586
|
+
const s = $t(i);
|
|
587
|
+
return t.concat(i, i.visualViewport || [], at(l) ? l : [], s && n ? it(s) : []);
|
|
588
|
+
}
|
|
589
|
+
return t.concat(l, it(l, [], n));
|
|
590
|
+
}
|
|
591
|
+
function $t(e) {
|
|
592
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
593
|
+
}
|
|
594
|
+
function fo(e) {
|
|
595
|
+
const t = se(e);
|
|
596
|
+
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
597
|
+
const l = pe(e), r = l ? e.offsetWidth : n, i = l ? e.offsetHeight : o, s = xt(n) !== r || xt(o) !== i;
|
|
598
|
+
return s && (n = r, o = i), {
|
|
599
|
+
width: n,
|
|
600
|
+
height: o,
|
|
601
|
+
$: s
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
function Mt(e) {
|
|
605
|
+
return ie(e) ? e : e.contextElement;
|
|
606
|
+
}
|
|
607
|
+
function qe(e) {
|
|
608
|
+
const t = Mt(e);
|
|
609
|
+
if (!pe(t))
|
|
610
|
+
return de(1);
|
|
611
|
+
const n = t.getBoundingClientRect(), {
|
|
612
|
+
width: o,
|
|
613
|
+
height: l,
|
|
614
|
+
$: r
|
|
615
|
+
} = fo(t);
|
|
616
|
+
let i = (r ? xt(n.width) : n.width) / o, s = (r ? xt(n.height) : n.height) / l;
|
|
617
|
+
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
618
|
+
x: i,
|
|
619
|
+
y: s
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
const Vo = /* @__PURE__ */ de(0);
|
|
623
|
+
function po(e) {
|
|
624
|
+
const t = G(e);
|
|
625
|
+
return !It() || !t.visualViewport ? Vo : {
|
|
626
|
+
x: t.visualViewport.offsetLeft,
|
|
627
|
+
y: t.visualViewport.offsetTop
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
function qo(e, t, n) {
|
|
631
|
+
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
632
|
+
}
|
|
633
|
+
function ke(e, t, n, o) {
|
|
634
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
635
|
+
const l = e.getBoundingClientRect(), r = Mt(e);
|
|
636
|
+
let i = de(1);
|
|
637
|
+
t && (o ? ie(o) && (i = qe(o)) : i = qe(e));
|
|
638
|
+
const s = qo(r, n, o) ? po(r) : de(0);
|
|
639
|
+
let c = (l.left + s.x) / i.x, a = (l.top + s.y) / i.y, m = l.width / i.x, d = l.height / i.y;
|
|
640
|
+
if (r) {
|
|
641
|
+
const y = G(r), f = o && ie(o) ? G(o) : o;
|
|
642
|
+
let v = y, g = $t(v);
|
|
643
|
+
for (; g && o && f !== v; ) {
|
|
644
|
+
const x = qe(g), b = g.getBoundingClientRect(), _ = se(g), A = b.left + (g.clientLeft + parseFloat(_.paddingLeft)) * x.x, k = b.top + (g.clientTop + parseFloat(_.paddingTop)) * x.y;
|
|
645
|
+
c *= x.x, a *= x.y, m *= x.x, d *= x.y, c += A, a += k, v = G(g), g = $t(v);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
return At({
|
|
649
|
+
width: m,
|
|
650
|
+
height: d,
|
|
651
|
+
x: c,
|
|
652
|
+
y: a
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
function Ft(e, t) {
|
|
656
|
+
const n = Ot(e).scrollLeft;
|
|
657
|
+
return t ? t.left + n : ke(me(e)).left + n;
|
|
658
|
+
}
|
|
659
|
+
function mo(e, t, n) {
|
|
660
|
+
n === void 0 && (n = !1);
|
|
661
|
+
const o = e.getBoundingClientRect(), l = o.left + t.scrollLeft - (n ? 0 : (
|
|
662
|
+
// RTL <body> scrollbar.
|
|
663
|
+
Ft(e, o)
|
|
664
|
+
)), r = o.top + t.scrollTop;
|
|
665
|
+
return {
|
|
666
|
+
x: l,
|
|
667
|
+
y: r
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
function Ho(e) {
|
|
671
|
+
let {
|
|
672
|
+
elements: t,
|
|
673
|
+
rect: n,
|
|
674
|
+
offsetParent: o,
|
|
675
|
+
strategy: l
|
|
676
|
+
} = e;
|
|
677
|
+
const r = l === "fixed", i = me(o), s = t ? Et(t.floating) : !1;
|
|
678
|
+
if (o === i || s && r)
|
|
679
|
+
return n;
|
|
680
|
+
let c = {
|
|
681
|
+
scrollLeft: 0,
|
|
682
|
+
scrollTop: 0
|
|
683
|
+
}, a = de(1);
|
|
684
|
+
const m = de(0), d = pe(o);
|
|
685
|
+
if ((d || !d && !r) && ((Xe(o) !== "body" || at(i)) && (c = Ot(o)), pe(o))) {
|
|
686
|
+
const f = ke(o);
|
|
687
|
+
a = qe(o), m.x = f.x + o.clientLeft, m.y = f.y + o.clientTop;
|
|
688
|
+
}
|
|
689
|
+
const y = i && !d && !r ? mo(i, c, !0) : de(0);
|
|
690
|
+
return {
|
|
691
|
+
width: n.width * a.x,
|
|
692
|
+
height: n.height * a.y,
|
|
693
|
+
x: n.x * a.x - c.scrollLeft * a.x + m.x + y.x,
|
|
694
|
+
y: n.y * a.y - c.scrollTop * a.y + m.y + y.y
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
function Ko(e) {
|
|
698
|
+
return Array.from(e.getClientRects());
|
|
699
|
+
}
|
|
700
|
+
function Yo(e) {
|
|
701
|
+
const t = me(e), n = Ot(e), o = e.ownerDocument.body, l = Te(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = Te(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
702
|
+
let i = -n.scrollLeft + Ft(e);
|
|
703
|
+
const s = -n.scrollTop;
|
|
704
|
+
return se(o).direction === "rtl" && (i += Te(t.clientWidth, o.clientWidth) - l), {
|
|
705
|
+
width: l,
|
|
706
|
+
height: r,
|
|
707
|
+
x: i,
|
|
708
|
+
y: s
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
function Xo(e, t) {
|
|
712
|
+
const n = G(e), o = me(e), l = n.visualViewport;
|
|
713
|
+
let r = o.clientWidth, i = o.clientHeight, s = 0, c = 0;
|
|
714
|
+
if (l) {
|
|
715
|
+
r = l.width, i = l.height;
|
|
716
|
+
const a = It();
|
|
717
|
+
(!a || a && t === "fixed") && (s = l.offsetLeft, c = l.offsetTop);
|
|
718
|
+
}
|
|
719
|
+
return {
|
|
720
|
+
width: r,
|
|
721
|
+
height: i,
|
|
722
|
+
x: s,
|
|
723
|
+
y: c
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
function Uo(e, t) {
|
|
727
|
+
const n = ke(e, !0, t === "fixed"), o = n.top + e.clientTop, l = n.left + e.clientLeft, r = pe(e) ? qe(e) : de(1), i = e.clientWidth * r.x, s = e.clientHeight * r.y, c = l * r.x, a = o * r.y;
|
|
728
|
+
return {
|
|
729
|
+
width: i,
|
|
730
|
+
height: s,
|
|
731
|
+
x: c,
|
|
732
|
+
y: a
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
function Ut(e, t, n) {
|
|
736
|
+
let o;
|
|
737
|
+
if (t === "viewport")
|
|
738
|
+
o = Xo(e, n);
|
|
739
|
+
else if (t === "document")
|
|
740
|
+
o = Yo(me(e));
|
|
741
|
+
else if (ie(t))
|
|
742
|
+
o = Uo(t, n);
|
|
743
|
+
else {
|
|
744
|
+
const l = po(e);
|
|
745
|
+
o = {
|
|
746
|
+
x: t.x - l.x,
|
|
747
|
+
y: t.y - l.y,
|
|
748
|
+
width: t.width,
|
|
749
|
+
height: t.height
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
return At(o);
|
|
753
|
+
}
|
|
754
|
+
function ho(e, t) {
|
|
755
|
+
const n = be(e);
|
|
756
|
+
return n === t || !ie(n) || Ye(n) ? !1 : se(n).position === "fixed" || ho(n, t);
|
|
757
|
+
}
|
|
758
|
+
function Jo(e, t) {
|
|
759
|
+
const n = t.get(e);
|
|
760
|
+
if (n)
|
|
761
|
+
return n;
|
|
762
|
+
let o = it(e, [], !1).filter((s) => ie(s) && Xe(s) !== "body"), l = null;
|
|
763
|
+
const r = se(e).position === "fixed";
|
|
764
|
+
let i = r ? be(e) : e;
|
|
765
|
+
for (; ie(i) && !Ye(i); ) {
|
|
766
|
+
const s = se(i), c = jt(i);
|
|
767
|
+
!c && s.position === "fixed" && (l = null), (r ? !c && !l : !c && s.position === "static" && !!l && ["absolute", "fixed"].includes(l.position) || at(i) && !c && ho(e, i)) ? o = o.filter((m) => m !== i) : l = s, i = be(i);
|
|
768
|
+
}
|
|
769
|
+
return t.set(e, o), o;
|
|
770
|
+
}
|
|
771
|
+
function Qo(e) {
|
|
772
|
+
let {
|
|
773
|
+
element: t,
|
|
774
|
+
boundary: n,
|
|
775
|
+
rootBoundary: o,
|
|
776
|
+
strategy: l
|
|
777
|
+
} = e;
|
|
778
|
+
const i = [...n === "clippingAncestors" ? Et(t) ? [] : Jo(t, this._c) : [].concat(n), o], s = i[0], c = i.reduce((a, m) => {
|
|
779
|
+
const d = Ut(t, m, l);
|
|
780
|
+
return a.top = Te(d.top, a.top), a.right = He(d.right, a.right), a.bottom = He(d.bottom, a.bottom), a.left = Te(d.left, a.left), a;
|
|
781
|
+
}, Ut(t, s, l));
|
|
782
|
+
return {
|
|
783
|
+
width: c.right - c.left,
|
|
784
|
+
height: c.bottom - c.top,
|
|
785
|
+
x: c.left,
|
|
786
|
+
y: c.top
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
function Go(e) {
|
|
790
|
+
const {
|
|
791
|
+
width: t,
|
|
792
|
+
height: n
|
|
793
|
+
} = fo(e);
|
|
794
|
+
return {
|
|
795
|
+
width: t,
|
|
796
|
+
height: n
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
function Zo(e, t, n) {
|
|
800
|
+
const o = pe(t), l = me(t), r = n === "fixed", i = ke(e, !0, r, t);
|
|
801
|
+
let s = {
|
|
802
|
+
scrollLeft: 0,
|
|
803
|
+
scrollTop: 0
|
|
804
|
+
};
|
|
805
|
+
const c = de(0);
|
|
806
|
+
if (o || !o && !r)
|
|
807
|
+
if ((Xe(t) !== "body" || at(l)) && (s = Ot(t)), o) {
|
|
808
|
+
const y = ke(t, !0, r, t);
|
|
809
|
+
c.x = y.x + t.clientLeft, c.y = y.y + t.clientTop;
|
|
810
|
+
} else l && (c.x = Ft(l));
|
|
811
|
+
const a = l && !o && !r ? mo(l, s) : de(0), m = i.left + s.scrollLeft - c.x - a.x, d = i.top + s.scrollTop - c.y - a.y;
|
|
812
|
+
return {
|
|
813
|
+
x: m,
|
|
814
|
+
y: d,
|
|
815
|
+
width: i.width,
|
|
816
|
+
height: i.height
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
function kt(e) {
|
|
820
|
+
return se(e).position === "static";
|
|
821
|
+
}
|
|
822
|
+
function Jt(e, t) {
|
|
823
|
+
if (!pe(e) || se(e).position === "fixed")
|
|
824
|
+
return null;
|
|
825
|
+
if (t)
|
|
826
|
+
return t(e);
|
|
827
|
+
let n = e.offsetParent;
|
|
828
|
+
return me(e) === n && (n = n.ownerDocument.body), n;
|
|
829
|
+
}
|
|
830
|
+
function vo(e, t) {
|
|
831
|
+
const n = G(e);
|
|
832
|
+
if (Et(e))
|
|
833
|
+
return n;
|
|
834
|
+
if (!pe(e)) {
|
|
835
|
+
let l = be(e);
|
|
836
|
+
for (; l && !Ye(l); ) {
|
|
837
|
+
if (ie(l) && !kt(l))
|
|
838
|
+
return l;
|
|
839
|
+
l = be(l);
|
|
840
|
+
}
|
|
841
|
+
return n;
|
|
842
|
+
}
|
|
843
|
+
let o = Jt(e, t);
|
|
844
|
+
for (; o && Fo(o) && kt(o); )
|
|
845
|
+
o = Jt(o, t);
|
|
846
|
+
return o && Ye(o) && kt(o) && !jt(o) ? n : o || Wo(e) || n;
|
|
847
|
+
}
|
|
848
|
+
const en = async function(e) {
|
|
849
|
+
const t = this.getOffsetParent || vo, n = this.getDimensions, o = await n(e.floating);
|
|
850
|
+
return {
|
|
851
|
+
reference: Zo(e.reference, await t(e.floating), e.strategy),
|
|
852
|
+
floating: {
|
|
853
|
+
x: 0,
|
|
854
|
+
y: 0,
|
|
855
|
+
width: o.width,
|
|
856
|
+
height: o.height
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
function tn(e) {
|
|
861
|
+
return se(e).direction === "rtl";
|
|
862
|
+
}
|
|
863
|
+
const on = {
|
|
864
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ho,
|
|
865
|
+
getDocumentElement: me,
|
|
866
|
+
getClippingRect: Qo,
|
|
867
|
+
getOffsetParent: vo,
|
|
868
|
+
getElementRects: en,
|
|
869
|
+
getClientRects: Ko,
|
|
870
|
+
getDimensions: Go,
|
|
871
|
+
getScale: qe,
|
|
872
|
+
isElement: ie,
|
|
873
|
+
isRTL: tn
|
|
874
|
+
};
|
|
875
|
+
function yo(e, t) {
|
|
876
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
877
|
+
}
|
|
878
|
+
function nn(e, t) {
|
|
879
|
+
let n = null, o;
|
|
880
|
+
const l = me(e);
|
|
881
|
+
function r() {
|
|
882
|
+
var s;
|
|
883
|
+
clearTimeout(o), (s = n) == null || s.disconnect(), n = null;
|
|
884
|
+
}
|
|
885
|
+
function i(s, c) {
|
|
886
|
+
s === void 0 && (s = !1), c === void 0 && (c = 1), r();
|
|
887
|
+
const a = e.getBoundingClientRect(), {
|
|
888
|
+
left: m,
|
|
889
|
+
top: d,
|
|
890
|
+
width: y,
|
|
891
|
+
height: f
|
|
892
|
+
} = a;
|
|
893
|
+
if (s || t(), !y || !f)
|
|
894
|
+
return;
|
|
895
|
+
const v = wt(d), g = wt(l.clientWidth - (m + y)), x = wt(l.clientHeight - (d + f)), b = wt(m), A = {
|
|
896
|
+
rootMargin: -v + "px " + -g + "px " + -x + "px " + -b + "px",
|
|
897
|
+
threshold: Te(0, He(1, c)) || 1
|
|
898
|
+
};
|
|
899
|
+
let k = !0;
|
|
900
|
+
function R(M) {
|
|
901
|
+
const L = M[0].intersectionRatio;
|
|
902
|
+
if (L !== c) {
|
|
903
|
+
if (!k)
|
|
904
|
+
return i();
|
|
905
|
+
L ? i(!1, L) : o = setTimeout(() => {
|
|
906
|
+
i(!1, 1e-7);
|
|
907
|
+
}, 1e3);
|
|
908
|
+
}
|
|
909
|
+
L === 1 && !yo(a, e.getBoundingClientRect()) && i(), k = !1;
|
|
910
|
+
}
|
|
911
|
+
try {
|
|
912
|
+
n = new IntersectionObserver(R, {
|
|
913
|
+
...A,
|
|
914
|
+
// Handle <iframe>s
|
|
915
|
+
root: l.ownerDocument
|
|
916
|
+
});
|
|
917
|
+
} catch {
|
|
918
|
+
n = new IntersectionObserver(R, A);
|
|
919
|
+
}
|
|
920
|
+
n.observe(e);
|
|
921
|
+
}
|
|
922
|
+
return i(!0), r;
|
|
923
|
+
}
|
|
924
|
+
function rn(e, t, n, o) {
|
|
925
|
+
o === void 0 && (o = {});
|
|
926
|
+
const {
|
|
927
|
+
ancestorScroll: l = !0,
|
|
928
|
+
ancestorResize: r = !0,
|
|
929
|
+
elementResize: i = typeof ResizeObserver == "function",
|
|
930
|
+
layoutShift: s = typeof IntersectionObserver == "function",
|
|
931
|
+
animationFrame: c = !1
|
|
932
|
+
} = o, a = Mt(e), m = l || r ? [...a ? it(a) : [], ...it(t)] : [];
|
|
933
|
+
m.forEach((b) => {
|
|
934
|
+
l && b.addEventListener("scroll", n, {
|
|
935
|
+
passive: !0
|
|
936
|
+
}), r && b.addEventListener("resize", n);
|
|
937
|
+
});
|
|
938
|
+
const d = a && s ? nn(a, n) : null;
|
|
939
|
+
let y = -1, f = null;
|
|
940
|
+
i && (f = new ResizeObserver((b) => {
|
|
941
|
+
let [_] = b;
|
|
942
|
+
_ && _.target === a && f && (f.unobserve(t), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
|
|
943
|
+
var A;
|
|
944
|
+
(A = f) == null || A.observe(t);
|
|
945
|
+
})), n();
|
|
946
|
+
}), a && !c && f.observe(a), f.observe(t));
|
|
947
|
+
let v, g = c ? ke(e) : null;
|
|
948
|
+
c && x();
|
|
949
|
+
function x() {
|
|
950
|
+
const b = ke(e);
|
|
951
|
+
g && !yo(g, b) && n(), g = b, v = requestAnimationFrame(x);
|
|
952
|
+
}
|
|
953
|
+
return n(), () => {
|
|
954
|
+
var b;
|
|
955
|
+
m.forEach((_) => {
|
|
956
|
+
l && _.removeEventListener("scroll", n), r && _.removeEventListener("resize", n);
|
|
957
|
+
}), d?.(), (b = f) == null || b.disconnect(), f = null, c && cancelAnimationFrame(v);
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
const ln = Io, sn = Mo, cn = Po, an = zo, Qt = (e, t, n) => {
|
|
961
|
+
const o = /* @__PURE__ */ new Map(), l = {
|
|
962
|
+
platform: on,
|
|
963
|
+
...n
|
|
964
|
+
}, r = {
|
|
965
|
+
...l.platform,
|
|
966
|
+
_c: o
|
|
967
|
+
};
|
|
968
|
+
return Bo(e, t, {
|
|
969
|
+
...l,
|
|
970
|
+
platform: r
|
|
971
|
+
});
|
|
972
|
+
};
|
|
973
|
+
var Lt = { exports: {} };
|
|
974
|
+
var Gt;
|
|
975
|
+
function un() {
|
|
976
|
+
return Gt || (Gt = 1, (function(e) {
|
|
977
|
+
(function() {
|
|
978
|
+
var t = {}.hasOwnProperty;
|
|
979
|
+
function n() {
|
|
980
|
+
for (var r = "", i = 0; i < arguments.length; i++) {
|
|
981
|
+
var s = arguments[i];
|
|
982
|
+
s && (r = l(r, o(s)));
|
|
983
|
+
}
|
|
984
|
+
return r;
|
|
985
|
+
}
|
|
986
|
+
function o(r) {
|
|
987
|
+
if (typeof r == "string" || typeof r == "number")
|
|
988
|
+
return r;
|
|
989
|
+
if (typeof r != "object")
|
|
990
|
+
return "";
|
|
991
|
+
if (Array.isArray(r))
|
|
992
|
+
return n.apply(null, r);
|
|
993
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
994
|
+
return r.toString();
|
|
995
|
+
var i = "";
|
|
996
|
+
for (var s in r)
|
|
997
|
+
t.call(r, s) && r[s] && (i = l(i, s));
|
|
998
|
+
return i;
|
|
999
|
+
}
|
|
1000
|
+
function l(r, i) {
|
|
1001
|
+
return i ? r ? r + " " + i : r + i : r;
|
|
1002
|
+
}
|
|
1003
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
1004
|
+
})();
|
|
1005
|
+
})(Lt)), Lt.exports;
|
|
1006
|
+
}
|
|
1007
|
+
var fn = un();
|
|
1008
|
+
const bt = /* @__PURE__ */ Ro(fn);
|
|
1009
|
+
const dn = "react-tooltip-core-styles", pn = "react-tooltip-base-styles", Zt = { core: !1, base: !1 };
|
|
1010
|
+
function eo({ css: e, id: t = pn, type: n = "base", ref: o }) {
|
|
1011
|
+
var l, r;
|
|
1012
|
+
if (!e || typeof document > "u" || Zt[n] || n === "core" && typeof process < "u" && (!((l = process == null ? void 0 : process.env) === null || l === void 0) && l.REACT_TOOLTIP_DISABLE_CORE_STYLES) || n !== "base" && typeof process < "u" && (!((r = process == null ? void 0 : process.env) === null || r === void 0) && r.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
|
|
1013
|
+
n === "core" && (t = dn), o || (o = {});
|
|
1014
|
+
const { insertAt: i } = o;
|
|
1015
|
+
if (document.getElementById(t)) return;
|
|
1016
|
+
const s = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
|
|
1017
|
+
c.id = t, c.type = "text/css", i === "top" && s.firstChild ? s.insertBefore(c, s.firstChild) : s.appendChild(c), c.styleSheet ? c.styleSheet.cssText = e : c.appendChild(document.createTextNode(e)), Zt[n] = !0;
|
|
1018
|
+
}
|
|
1019
|
+
const to = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: o = "top", offset: l = 10, strategy: r = "absolute", middlewares: i = [ln(Number(l)), cn({ fallbackAxisSideDirection: "start" }), sn({ padding: 5 })], border: s, arrowSize: c = 8 }) => {
|
|
1020
|
+
if (!e) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: o };
|
|
1021
|
+
if (t === null) return { tooltipStyles: {}, tooltipArrowStyles: {}, place: o };
|
|
1022
|
+
const a = i;
|
|
1023
|
+
return n ? (a.push(an({ element: n, padding: 5 })), Qt(e, t, { placement: o, strategy: r, middleware: a }).then((({ x: m, y: d, placement: y, middlewareData: f }) => {
|
|
1024
|
+
var v, g;
|
|
1025
|
+
const x = { left: `${m}px`, top: `${d}px`, border: s }, { x: b, y: _ } = (v = f.arrow) !== null && v !== void 0 ? v : { x: 0, y: 0 }, A = (g = { top: "bottom", right: "left", bottom: "top", left: "right" }[y.split("-")[0]]) !== null && g !== void 0 ? g : "bottom", k = s && { borderBottom: s, borderRight: s };
|
|
1026
|
+
let R = 0;
|
|
1027
|
+
if (s) {
|
|
1028
|
+
const M = `${s}`.match(/(\d+)px/);
|
|
1029
|
+
R = M?.[1] ? Number(M[1]) : 1;
|
|
1030
|
+
}
|
|
1031
|
+
return { tooltipStyles: x, tooltipArrowStyles: { left: b != null ? `${b}px` : "", top: _ != null ? `${_}px` : "", right: "", bottom: "", ...k, [A]: `-${c / 2 + R - 1}px` }, place: y };
|
|
1032
|
+
}))) : Qt(e, t, { placement: "bottom", strategy: r, middleware: a }).then((({ x: m, y: d, placement: y }) => ({ tooltipStyles: { left: `${m}px`, top: `${d}px` }, tooltipArrowStyles: {}, place: y })));
|
|
1033
|
+
}, oo = (e, t) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e, t), no = (e, t, n) => {
|
|
1034
|
+
let o = null;
|
|
1035
|
+
const l = function(...r) {
|
|
1036
|
+
const i = () => {
|
|
1037
|
+
o = null;
|
|
1038
|
+
};
|
|
1039
|
+
!o && (e.apply(this, r), o = setTimeout(i, t));
|
|
1040
|
+
};
|
|
1041
|
+
return l.cancel = () => {
|
|
1042
|
+
o && (clearTimeout(o), o = null);
|
|
1043
|
+
}, l;
|
|
1044
|
+
}, ro = (e) => e !== null && !Array.isArray(e) && typeof e == "object", Bt = (e, t) => {
|
|
1045
|
+
if (e === t) return !0;
|
|
1046
|
+
if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every(((l, r) => Bt(l, t[r])));
|
|
1047
|
+
if (Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
1048
|
+
if (!ro(e) || !ro(t)) return e === t;
|
|
1049
|
+
const n = Object.keys(e), o = Object.keys(t);
|
|
1050
|
+
return n.length === o.length && n.every(((l) => Bt(e[l], t[l])));
|
|
1051
|
+
}, mn = (e) => {
|
|
1052
|
+
if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
|
|
1053
|
+
const t = getComputedStyle(e);
|
|
1054
|
+
return ["overflow", "overflow-x", "overflow-y"].some(((n) => {
|
|
1055
|
+
const o = t.getPropertyValue(n);
|
|
1056
|
+
return o === "auto" || o === "scroll";
|
|
1057
|
+
}));
|
|
1058
|
+
}, lo = (e) => {
|
|
1059
|
+
if (!e) return null;
|
|
1060
|
+
let t = e.parentElement;
|
|
1061
|
+
for (; t; ) {
|
|
1062
|
+
if (mn(t)) return t;
|
|
1063
|
+
t = t.parentElement;
|
|
1064
|
+
}
|
|
1065
|
+
return document.scrollingElement || document.documentElement;
|
|
1066
|
+
}, hn = typeof window < "u" ? Oo : C, ne = (e) => {
|
|
1067
|
+
e.current && (clearTimeout(e.current), e.current = null);
|
|
1068
|
+
}, vn = "DEFAULT_TOOLTIP_ID", yn = { anchorRefs: /* @__PURE__ */ new Set(), activeAnchor: { current: null }, attach: () => {
|
|
1069
|
+
}, detach: () => {
|
|
1070
|
+
}, setActiveAnchor: () => {
|
|
1071
|
+
} }, wn = _o({ getTooltipData: () => yn });
|
|
1072
|
+
function wo(e = vn) {
|
|
1073
|
+
return Ao(wn).getTooltipData(e);
|
|
1074
|
+
}
|
|
1075
|
+
var Re = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", content: "core-styles-module_content__BRKdB", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, gt = { tooltip: "styles-module_tooltip__mnnfp", content: "styles-module_content__ydYdI", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
1076
|
+
const gn = ({ forwardRef: e, id: t, className: n, classNameArrow: o, variant: l = "dark", anchorId: r, anchorSelect: i, place: s = "top", offset: c = 10, events: a = ["hover"], openOnClick: m = !1, positionStrategy: d = "absolute", middlewares: y, wrapper: f, delayShow: v = 0, delayHide: g = 0, float: x = !1, hidden: b = !1, noArrow: _ = !1, clickable: A = !1, closeOnEsc: k = !1, closeOnScroll: R = !1, closeOnResize: M = !1, openEvents: L, closeEvents: Z, globalCloseEvents: U, imperativeModeOnly: ee, style: ce, position: te, afterShow: ae, afterHide: T, disableTooltip: J, content: W, contentWrapperRef: j, isOpen: B, defaultIsOpen: V = !1, setIsOpen: he, previousActiveAnchor: Ue, activeAnchor: N, setActiveAnchor: Le, border: ut, opacity: ft, arrowColor: dt, arrowSize: Ne = 8, role: Rt = "tooltip" }) => {
|
|
1077
|
+
var xe;
|
|
1078
|
+
const K = re(null), De = re(null), le = re(null), _e = re(null), $e = re(null), [Ae, pt] = P({ tooltipStyles: {}, tooltipArrowStyles: {}, place: s }), [Y, Je] = P(!1), [Be, ye] = P(!1), [$, ze] = P(null), mt = re(!1), Pe = re(null), { anchorRefs: ht, setActiveAnchor: Qe } = wo(t), Ge = re(!1), [we, Ze] = P([]), Se = re(!1), je = m || a.includes("click"), vt = je || L?.click || L?.dblclick || L?.mousedown, et = L ? { ...L } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
1079
|
+
!L && je && Object.assign(et, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
1080
|
+
const Ee = Z ? { ...Z } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
1081
|
+
!Z && je && Object.assign(Ee, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
1082
|
+
const F = U ? { ...U } : { escape: k || !1, scroll: R || !1, resize: M || !1, clickOutsideAnchor: vt || !1 };
|
|
1083
|
+
ee && (Object.assign(et, { mouseover: !1, focus: !1, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(Ee, { mouseout: !1, blur: !1, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(F, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), hn((() => (Se.current = !0, () => {
|
|
1084
|
+
Se.current = !1;
|
|
1085
|
+
})), []);
|
|
1086
|
+
const X = (u) => {
|
|
1087
|
+
Se.current && (u && ye(!0), setTimeout((() => {
|
|
1088
|
+
Se.current && (he?.(u), B === void 0 && Je(u));
|
|
1089
|
+
}), 10));
|
|
1090
|
+
};
|
|
1091
|
+
C((() => {
|
|
1092
|
+
if (t) {
|
|
1093
|
+
if (Y) {
|
|
1094
|
+
h(Ue);
|
|
1095
|
+
const p = u(N), O = [.../* @__PURE__ */ new Set([...p, t])].filter(Boolean).join(" ");
|
|
1096
|
+
N?.setAttribute("aria-describedby", O);
|
|
1097
|
+
} else h(N);
|
|
1098
|
+
return () => {
|
|
1099
|
+
h(N), h(Ue);
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
function u(p) {
|
|
1103
|
+
var O;
|
|
1104
|
+
return ((O = p?.getAttribute("aria-describedby")) === null || O === void 0 ? void 0 : O.split(" ")) || [];
|
|
1105
|
+
}
|
|
1106
|
+
function h(p) {
|
|
1107
|
+
const O = u(p).filter(((I) => I !== t));
|
|
1108
|
+
O.length ? p?.setAttribute("aria-describedby", O.join(" ")) : p?.removeAttribute("aria-describedby");
|
|
1109
|
+
}
|
|
1110
|
+
}), [N, Y, t, Ue]), C((() => {
|
|
1111
|
+
if (B === void 0) return () => null;
|
|
1112
|
+
B && ye(!0);
|
|
1113
|
+
const u = setTimeout((() => {
|
|
1114
|
+
Je(B);
|
|
1115
|
+
}), 10);
|
|
1116
|
+
return () => {
|
|
1117
|
+
clearTimeout(u);
|
|
1118
|
+
};
|
|
1119
|
+
}), [B]), C((() => {
|
|
1120
|
+
if (Y !== mt.current) if (ne($e), mt.current = Y, Y) ae?.();
|
|
1121
|
+
else {
|
|
1122
|
+
const u = ((h) => {
|
|
1123
|
+
const p = h.match(/^([\d.]+)(ms|s)$/);
|
|
1124
|
+
if (!p) return 0;
|
|
1125
|
+
const [, O, I] = p;
|
|
1126
|
+
return Number(O) * (I === "ms" ? 1 : 1e3);
|
|
1127
|
+
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
1128
|
+
$e.current = setTimeout((() => {
|
|
1129
|
+
ye(!1), ze(null), T?.();
|
|
1130
|
+
}), u + 25);
|
|
1131
|
+
}
|
|
1132
|
+
}), [Y]);
|
|
1133
|
+
const tt = (u) => {
|
|
1134
|
+
pt(((h) => Bt(h, u) ? h : u));
|
|
1135
|
+
}, ot = (u = v) => {
|
|
1136
|
+
ne(le), Be ? X(!0) : le.current = setTimeout((() => {
|
|
1137
|
+
X(!0);
|
|
1138
|
+
}), u);
|
|
1139
|
+
}, Ie = (u = g) => {
|
|
1140
|
+
ne(_e), _e.current = setTimeout((() => {
|
|
1141
|
+
Ge.current || X(!1);
|
|
1142
|
+
}), u);
|
|
1143
|
+
}, nt = (u) => {
|
|
1144
|
+
var h;
|
|
1145
|
+
if (!u) return;
|
|
1146
|
+
const p = (h = u.currentTarget) !== null && h !== void 0 ? h : u.target;
|
|
1147
|
+
if (!p?.isConnected) return Le(null), void Qe({ current: null });
|
|
1148
|
+
v ? ot() : X(!0), Le(p), Qe({ current: p }), ne(_e);
|
|
1149
|
+
}, Me = () => {
|
|
1150
|
+
A ? Ie(g || 100) : g ? Ie() : X(!1), ne(le);
|
|
1151
|
+
}, Fe = ({ x: u, y: h }) => {
|
|
1152
|
+
var p;
|
|
1153
|
+
const O = { getBoundingClientRect: () => ({ x: u, y: h, width: 0, height: 0, top: h, left: u, right: u, bottom: h }) };
|
|
1154
|
+
to({ place: (p = $?.place) !== null && p !== void 0 ? p : s, offset: c, elementReference: O, tooltipReference: K.current, tooltipArrowReference: De.current, strategy: d, middlewares: y, border: ut, arrowSize: Ne }).then(((I) => {
|
|
1155
|
+
tt(I);
|
|
1156
|
+
}));
|
|
1157
|
+
}, We = (u) => {
|
|
1158
|
+
if (!u) return;
|
|
1159
|
+
const h = u, p = { x: h.clientX, y: h.clientY };
|
|
1160
|
+
Fe(p), Pe.current = p;
|
|
1161
|
+
}, rt = (u) => {
|
|
1162
|
+
var h;
|
|
1163
|
+
if (!Y) return;
|
|
1164
|
+
const p = u.target;
|
|
1165
|
+
p.isConnected && (!((h = K.current) === null || h === void 0) && h.contains(p) || [document.querySelector(`[id='${r}']`), ...we].some(((O) => O?.contains(p))) || (X(!1), ne(le)));
|
|
1166
|
+
}, yt = no(nt, 50), z = no(Me, 50), q = (u) => {
|
|
1167
|
+
z.cancel(), yt(u);
|
|
1168
|
+
}, w = () => {
|
|
1169
|
+
yt.cancel(), z();
|
|
1170
|
+
}, S = So((() => {
|
|
1171
|
+
var u, h;
|
|
1172
|
+
const p = (u = $?.position) !== null && u !== void 0 ? u : te;
|
|
1173
|
+
p ? Fe(p) : x ? Pe.current && Fe(Pe.current) : N?.isConnected && to({ place: (h = $?.place) !== null && h !== void 0 ? h : s, offset: c, elementReference: N, tooltipReference: K.current, tooltipArrowReference: De.current, strategy: d, middlewares: y, border: ut, arrowSize: Ne }).then(((O) => {
|
|
1174
|
+
Se.current && tt(O);
|
|
1175
|
+
}));
|
|
1176
|
+
}), [Y, N, W, ce, s, $?.place, c, d, te, $?.position, x, Ne]);
|
|
1177
|
+
C((() => {
|
|
1178
|
+
var u, h;
|
|
1179
|
+
const p = new Set(ht);
|
|
1180
|
+
we.forEach(((E) => {
|
|
1181
|
+
J?.(E) || p.add({ current: E });
|
|
1182
|
+
}));
|
|
1183
|
+
const O = document.querySelector(`[id='${r}']`);
|
|
1184
|
+
O && !J?.(O) && p.add({ current: O });
|
|
1185
|
+
const I = () => {
|
|
1186
|
+
X(!1);
|
|
1187
|
+
}, ue = lo(N), fe = lo(K.current);
|
|
1188
|
+
F.scroll && (window.addEventListener("scroll", I), ue?.addEventListener("scroll", I), fe?.addEventListener("scroll", I));
|
|
1189
|
+
let H = null;
|
|
1190
|
+
F.resize ? window.addEventListener("resize", I) : N && K.current && (H = rn(N, K.current, S, { ancestorResize: !0, elementResize: !0, layoutShift: !0 }));
|
|
1191
|
+
const oe = (E) => {
|
|
1192
|
+
E.key === "Escape" && X(!1);
|
|
1193
|
+
};
|
|
1194
|
+
F.escape && window.addEventListener("keydown", oe), F.clickOutsideAnchor && window.addEventListener("click", rt);
|
|
1195
|
+
const D = [], Ve = (E) => !!(E?.target && N?.contains(E.target)), go = (E) => {
|
|
1196
|
+
Y && Ve(E) || nt(E);
|
|
1197
|
+
}, bo = (E) => {
|
|
1198
|
+
Y && Ve(E) && Me();
|
|
1199
|
+
}, Wt = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], Vt = ["click", "dblclick", "mousedown", "mouseup"];
|
|
1200
|
+
Object.entries(et).forEach((([E, ve]) => {
|
|
1201
|
+
ve && (Wt.includes(E) ? D.push({ event: E, listener: q }) : Vt.includes(E) && D.push({ event: E, listener: go }));
|
|
1202
|
+
})), Object.entries(Ee).forEach((([E, ve]) => {
|
|
1203
|
+
ve && (Wt.includes(E) ? D.push({ event: E, listener: w }) : Vt.includes(E) && D.push({ event: E, listener: bo }));
|
|
1204
|
+
})), x && D.push({ event: "pointermove", listener: We });
|
|
1205
|
+
const qt = () => {
|
|
1206
|
+
Ge.current = !0;
|
|
1207
|
+
}, Ht = () => {
|
|
1208
|
+
Ge.current = !1, Me();
|
|
1209
|
+
}, Kt = A && (Ee.mouseout || Ee.mouseleave);
|
|
1210
|
+
return Kt && ((u = K.current) === null || u === void 0 || u.addEventListener("mouseover", qt), (h = K.current) === null || h === void 0 || h.addEventListener("mouseout", Ht)), D.forEach((({ event: E, listener: ve }) => {
|
|
1211
|
+
p.forEach(((Tt) => {
|
|
1212
|
+
var lt;
|
|
1213
|
+
(lt = Tt.current) === null || lt === void 0 || lt.addEventListener(E, ve);
|
|
1214
|
+
}));
|
|
1215
|
+
})), () => {
|
|
1216
|
+
var E, ve;
|
|
1217
|
+
F.scroll && (window.removeEventListener("scroll", I), ue?.removeEventListener("scroll", I), fe?.removeEventListener("scroll", I)), F.resize ? window.removeEventListener("resize", I) : H?.(), F.clickOutsideAnchor && window.removeEventListener("click", rt), F.escape && window.removeEventListener("keydown", oe), Kt && ((E = K.current) === null || E === void 0 || E.removeEventListener("mouseover", qt), (ve = K.current) === null || ve === void 0 || ve.removeEventListener("mouseout", Ht)), D.forEach((({ event: Tt, listener: lt }) => {
|
|
1218
|
+
p.forEach(((xo) => {
|
|
1219
|
+
var Ct;
|
|
1220
|
+
(Ct = xo.current) === null || Ct === void 0 || Ct.removeEventListener(Tt, lt);
|
|
1221
|
+
}));
|
|
1222
|
+
}));
|
|
1223
|
+
};
|
|
1224
|
+
}), [N, S, Be, ht, we, L, Z, U, je, v, g]), C((() => {
|
|
1225
|
+
var u, h;
|
|
1226
|
+
let p = (h = (u = $?.anchorSelect) !== null && u !== void 0 ? u : i) !== null && h !== void 0 ? h : "";
|
|
1227
|
+
!p && t && (p = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
|
|
1228
|
+
const O = new MutationObserver(((I) => {
|
|
1229
|
+
const ue = [], fe = [];
|
|
1230
|
+
I.forEach(((H) => {
|
|
1231
|
+
if (H.type === "attributes" && H.attributeName === "data-tooltip-id" && (H.target.getAttribute("data-tooltip-id") === t ? ue.push(H.target) : H.oldValue === t && fe.push(H.target)), H.type === "childList") {
|
|
1232
|
+
if (N) {
|
|
1233
|
+
const oe = [...H.removedNodes].filter(((D) => D.nodeType === 1));
|
|
1234
|
+
if (p) try {
|
|
1235
|
+
fe.push(...oe.filter(((D) => D.matches(p)))), fe.push(...oe.flatMap(((D) => [...D.querySelectorAll(p)])));
|
|
1236
|
+
} catch {
|
|
1237
|
+
}
|
|
1238
|
+
oe.some(((D) => {
|
|
1239
|
+
var Ve;
|
|
1240
|
+
return !!(!((Ve = D?.contains) === null || Ve === void 0) && Ve.call(D, N)) && (ye(!1), X(!1), Le(null), ne(le), ne(_e), !0);
|
|
1241
|
+
}));
|
|
1242
|
+
}
|
|
1243
|
+
if (p) try {
|
|
1244
|
+
const oe = [...H.addedNodes].filter(((D) => D.nodeType === 1));
|
|
1245
|
+
ue.push(...oe.filter(((D) => D.matches(p)))), ue.push(...oe.flatMap(((D) => [...D.querySelectorAll(p)])));
|
|
1246
|
+
} catch {
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
})), (ue.length || fe.length) && Ze(((H) => [...H.filter(((oe) => !fe.includes(oe))), ...ue]));
|
|
1250
|
+
}));
|
|
1251
|
+
return O.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
|
|
1252
|
+
O.disconnect();
|
|
1253
|
+
};
|
|
1254
|
+
}), [t, i, $?.anchorSelect, N]), C((() => {
|
|
1255
|
+
S();
|
|
1256
|
+
}), [S]), C((() => {
|
|
1257
|
+
if (!j?.current) return () => null;
|
|
1258
|
+
const u = new ResizeObserver((() => {
|
|
1259
|
+
setTimeout((() => S()));
|
|
1260
|
+
}));
|
|
1261
|
+
return u.observe(j.current), () => {
|
|
1262
|
+
u.disconnect();
|
|
1263
|
+
};
|
|
1264
|
+
}), [W, j?.current]), C((() => {
|
|
1265
|
+
var u;
|
|
1266
|
+
const h = document.querySelector(`[id='${r}']`), p = [...we, h];
|
|
1267
|
+
N && p.includes(N) || Le((u = we[0]) !== null && u !== void 0 ? u : h);
|
|
1268
|
+
}), [r, we, N]), C((() => (V && X(!0), () => {
|
|
1269
|
+
ne(le), ne(_e);
|
|
1270
|
+
})), []), C((() => {
|
|
1271
|
+
var u;
|
|
1272
|
+
let h = (u = $?.anchorSelect) !== null && u !== void 0 ? u : i;
|
|
1273
|
+
if (!h && t && (h = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), h) try {
|
|
1274
|
+
const p = Array.from(document.querySelectorAll(h));
|
|
1275
|
+
Ze(p);
|
|
1276
|
+
} catch {
|
|
1277
|
+
Ze([]);
|
|
1278
|
+
}
|
|
1279
|
+
}), [t, i, $?.anchorSelect]), C((() => {
|
|
1280
|
+
le.current && (ne(le), ot(v));
|
|
1281
|
+
}), [v]);
|
|
1282
|
+
const Q = (xe = $?.content) !== null && xe !== void 0 ? xe : W, Oe = Y && Object.keys(Ae.tooltipStyles).length > 0;
|
|
1283
|
+
return Eo(e, (() => ({ open: (u) => {
|
|
1284
|
+
if (u?.anchorSelect) try {
|
|
1285
|
+
document.querySelector(u.anchorSelect);
|
|
1286
|
+
} catch {
|
|
1287
|
+
return void console.warn(`[react-tooltip] "${u.anchorSelect}" is not a valid CSS selector`);
|
|
1288
|
+
}
|
|
1289
|
+
ze(u ?? null), u?.delay ? ot(u.delay) : X(!0);
|
|
1290
|
+
}, close: (u) => {
|
|
1291
|
+
u?.delay ? Ie(u.delay) : X(!1);
|
|
1292
|
+
}, activeAnchor: N, place: Ae.place, isOpen: !!(Be && !b && Q && Oe) }))), Be && !b && Q ? ge.createElement(f, { id: t, role: Rt, className: bt("react-tooltip", Re.tooltip, gt.tooltip, gt[l], n, `react-tooltip__place-${Ae.place}`, Re[Oe ? "show" : "closing"], Oe ? "react-tooltip__show" : "react-tooltip__closing", d === "fixed" && Re.fixed, A && Re.clickable), onTransitionEnd: (u) => {
|
|
1293
|
+
ne($e), Y || u.propertyName !== "opacity" || (ye(!1), ze(null), T?.());
|
|
1294
|
+
}, style: { ...ce, ...Ae.tooltipStyles, opacity: ft !== void 0 && Oe ? ft : void 0 }, ref: K }, ge.createElement(f, { className: bt("react-tooltip-content-wrapper", Re.content, gt.content) }, Q), ge.createElement(f, { className: bt("react-tooltip-arrow", Re.arrow, gt.arrow, o, _ && Re.noArrow), style: { ...Ae.tooltipArrowStyles, background: dt ? `linear-gradient(to right bottom, transparent 50%, ${dt} 50%)` : void 0, "--rt-arrow-size": `${Ne}px` }, ref: De })) : null;
|
|
1295
|
+
}, bn = ({ content: e }) => ge.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), An = ge.forwardRef((({ id: e, anchorId: t, anchorSelect: n, content: o, html: l, render: r, className: i, classNameArrow: s, variant: c = "dark", place: a = "top", offset: m = 10, wrapper: d = "div", children: y = null, events: f = ["hover"], openOnClick: v = !1, positionStrategy: g = "absolute", middlewares: x, delayShow: b = 0, delayHide: _ = 0, float: A = !1, hidden: k = !1, noArrow: R = !1, clickable: M = !1, closeOnEsc: L = !1, closeOnScroll: Z = !1, closeOnResize: U = !1, openEvents: ee, closeEvents: ce, globalCloseEvents: te, imperativeModeOnly: ae = !1, style: T, position: J, isOpen: W, defaultIsOpen: j = !1, disableStyleInjection: B = !1, border: V, opacity: he, arrowColor: Ue, arrowSize: N, setIsOpen: Le, afterShow: ut, afterHide: ft, disableTooltip: dt, role: Ne = "tooltip" }, Rt) => {
|
|
1296
|
+
const [xe, K] = P(o), [De, le] = P(l), [_e, $e] = P(a), [Ae, pt] = P(c), [Y, Je] = P(m), [Be, ye] = P(b), [$, ze] = P(_), [mt, Pe] = P(A), [ht, Qe] = P(k), [Ge, we] = P(d), [Ze, Se] = P(f), [je, vt] = P(g), [et, Ee] = P(null), [F, X] = P(null), tt = re(null), ot = re(B), { anchorRefs: Ie, activeAnchor: nt } = wo(e), Me = (z) => z?.getAttributeNames().reduce(((q, w) => {
|
|
1297
|
+
var S;
|
|
1298
|
+
return w.startsWith("data-tooltip-") && (q[w.replace(/^data-tooltip-/, "")] = (S = z?.getAttribute(w)) !== null && S !== void 0 ? S : null), q;
|
|
1299
|
+
}), {}), Fe = (z) => {
|
|
1300
|
+
const q = { place: (w) => {
|
|
1301
|
+
var S;
|
|
1302
|
+
$e((S = w) !== null && S !== void 0 ? S : a);
|
|
1303
|
+
}, content: (w) => {
|
|
1304
|
+
K(w ?? o);
|
|
1305
|
+
}, html: (w) => {
|
|
1306
|
+
le(w ?? l);
|
|
1307
|
+
}, variant: (w) => {
|
|
1308
|
+
var S;
|
|
1309
|
+
pt((S = w) !== null && S !== void 0 ? S : c);
|
|
1310
|
+
}, offset: (w) => {
|
|
1311
|
+
Je(w === null ? m : Number(w));
|
|
1312
|
+
}, wrapper: (w) => {
|
|
1313
|
+
var S;
|
|
1314
|
+
we((S = w) !== null && S !== void 0 ? S : d);
|
|
1315
|
+
}, events: (w) => {
|
|
1316
|
+
const S = w?.split(" ");
|
|
1317
|
+
Se(S ?? f);
|
|
1318
|
+
}, "position-strategy": (w) => {
|
|
1319
|
+
var S;
|
|
1320
|
+
vt((S = w) !== null && S !== void 0 ? S : g);
|
|
1321
|
+
}, "delay-show": (w) => {
|
|
1322
|
+
ye(w === null ? b : Number(w));
|
|
1323
|
+
}, "delay-hide": (w) => {
|
|
1324
|
+
ze(w === null ? _ : Number(w));
|
|
1325
|
+
}, float: (w) => {
|
|
1326
|
+
Pe(w === null ? A : w === "true");
|
|
1327
|
+
}, hidden: (w) => {
|
|
1328
|
+
Qe(w === null ? k : w === "true");
|
|
1329
|
+
}, "class-name": (w) => {
|
|
1330
|
+
Ee(w);
|
|
1331
|
+
} };
|
|
1332
|
+
Object.values(q).forEach(((w) => w(null))), Object.entries(z).forEach((([w, S]) => {
|
|
1333
|
+
var Q;
|
|
1334
|
+
(Q = q[w]) === null || Q === void 0 || Q.call(q, S);
|
|
1335
|
+
}));
|
|
1336
|
+
};
|
|
1337
|
+
C((() => {
|
|
1338
|
+
K(o);
|
|
1339
|
+
}), [o]), C((() => {
|
|
1340
|
+
le(l);
|
|
1341
|
+
}), [l]), C((() => {
|
|
1342
|
+
$e(a);
|
|
1343
|
+
}), [a]), C((() => {
|
|
1344
|
+
pt(c);
|
|
1345
|
+
}), [c]), C((() => {
|
|
1346
|
+
Je(m);
|
|
1347
|
+
}), [m]), C((() => {
|
|
1348
|
+
ye(b);
|
|
1349
|
+
}), [b]), C((() => {
|
|
1350
|
+
ze(_);
|
|
1351
|
+
}), [_]), C((() => {
|
|
1352
|
+
Pe(A);
|
|
1353
|
+
}), [A]), C((() => {
|
|
1354
|
+
Qe(k);
|
|
1355
|
+
}), [k]), C((() => {
|
|
1356
|
+
vt(g);
|
|
1357
|
+
}), [g]), C((() => {
|
|
1358
|
+
ot.current !== B && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
1359
|
+
}), [B]), C((() => {
|
|
1360
|
+
typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: { disableCore: B === "core", disableBase: B } }));
|
|
1361
|
+
}), []), C((() => {
|
|
1362
|
+
var z;
|
|
1363
|
+
const q = new Set(Ie);
|
|
1364
|
+
let w = n;
|
|
1365
|
+
if (!w && e && (w = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`), w) try {
|
|
1366
|
+
document.querySelectorAll(w).forEach(((h) => {
|
|
1367
|
+
q.add({ current: h });
|
|
1368
|
+
}));
|
|
1369
|
+
} catch {
|
|
1370
|
+
console.warn(`[react-tooltip] "${w}" is not a valid CSS selector`);
|
|
1371
|
+
}
|
|
1372
|
+
const S = document.querySelector(`[id='${t}']`);
|
|
1373
|
+
if (S && q.add({ current: S }), !q.size) return () => null;
|
|
1374
|
+
const Q = (z = F ?? S) !== null && z !== void 0 ? z : nt.current, Oe = new MutationObserver(((h) => {
|
|
1375
|
+
h.forEach(((p) => {
|
|
1376
|
+
var O;
|
|
1377
|
+
if (!Q || p.type !== "attributes" || !(!((O = p.attributeName) === null || O === void 0) && O.startsWith("data-tooltip-"))) return;
|
|
1378
|
+
const I = Me(Q);
|
|
1379
|
+
Fe(I);
|
|
1380
|
+
}));
|
|
1381
|
+
})), u = { attributes: !0, childList: !1, subtree: !1 };
|
|
1382
|
+
if (Q) {
|
|
1383
|
+
const h = Me(Q);
|
|
1384
|
+
Fe(h), Oe.observe(Q, u);
|
|
1385
|
+
}
|
|
1386
|
+
return () => {
|
|
1387
|
+
Oe.disconnect();
|
|
1388
|
+
};
|
|
1389
|
+
}), [Ie, nt, F, t, n]), C((() => {
|
|
1390
|
+
T?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), V && !oo("border", `${V}`) && console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`), T?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), he && !oo("opacity", `${he}`) && console.warn(`[react-tooltip] "${he}" is not a valid \`opacity\`.`);
|
|
1391
|
+
}), []);
|
|
1392
|
+
let We = y;
|
|
1393
|
+
const rt = re(null);
|
|
1394
|
+
if (r) {
|
|
1395
|
+
const z = r({ content: F?.getAttribute("data-tooltip-content") || xe || null, activeAnchor: F });
|
|
1396
|
+
We = z ? ge.createElement("div", { ref: rt, className: "react-tooltip-content-wrapper" }, z) : null;
|
|
1397
|
+
} else xe && (We = xe);
|
|
1398
|
+
De && (We = ge.createElement(bn, { content: De }));
|
|
1399
|
+
const yt = { forwardRef: Rt, id: e, anchorId: t, anchorSelect: n, className: bt(i, et), classNameArrow: s, content: We, contentWrapperRef: rt, place: _e, variant: Ae, offset: Y, wrapper: Ge, events: Ze, openOnClick: v, positionStrategy: je, middlewares: x, delayShow: Be, delayHide: $, float: mt, hidden: ht, noArrow: R, clickable: M, closeOnEsc: L, closeOnScroll: Z, closeOnResize: U, openEvents: ee, closeEvents: ce, globalCloseEvents: te, imperativeModeOnly: ae, style: T, position: J, isOpen: W, defaultIsOpen: j, border: V, opacity: he, arrowColor: Ue, arrowSize: N, setIsOpen: Le, afterShow: ut, afterHide: ft, disableTooltip: dt, activeAnchor: F, previousActiveAnchor: tt.current, setActiveAnchor: (z) => {
|
|
1400
|
+
X(((q) => (z?.isSameNode(q) || (tt.current = q), z)));
|
|
1401
|
+
}, role: Ne };
|
|
1402
|
+
return ge.createElement(gn, { ...yt });
|
|
1403
|
+
}));
|
|
1404
|
+
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", ((e) => {
|
|
1405
|
+
e.detail.disableCore || eo({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.core-styles-module_content__BRKdB{position:relative;z-index:1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), e.detail.disableBase || eo({ css: `
|
|
1406
|
+
.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;width:max-content}.styles-module_content__ydYdI{background:inherit;border-radius:inherit;padding:8px 16px}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`, type: "base" });
|
|
1407
|
+
}));
|
|
1408
|
+
export {
|
|
1409
|
+
An as M,
|
|
1410
|
+
rn as a
|
|
1411
|
+
};
|