@iqworksai/common-components 0.1.21 → 0.1.23
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/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/_virtual/dayjs.min.mjs +4 -0
- package/dist/_virtual/index.mjs +4 -0
- package/dist/_virtual/index2.mjs +4 -0
- package/dist/_virtual/jquery.mjs +4 -0
- package/dist/_virtual/jstree.mjs +4 -0
- package/dist/_virtual/papaparse.min.mjs +4 -0
- package/dist/_virtual/react-is.development.mjs +4 -0
- package/dist/_virtual/react-is.production.min.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.mjs +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.mjs +4 -0
- package/dist/_virtual/utc.mjs +4 -0
- package/dist/_virtual/with-selector.development.mjs +4 -0
- package/dist/_virtual/with-selector.mjs +4 -0
- package/dist/_virtual/with-selector.production.mjs +4 -0
- package/dist/_virtual/with-selector2.mjs +4 -0
- package/dist/assets/integrations/athena.svg.mjs +4 -0
- package/dist/assets/integrations/awsS3.svg.mjs +4 -0
- package/dist/assets/integrations/azureBlob.svg.mjs +4 -0
- package/dist/assets/integrations/bigquery.svg.mjs +4 -0
- package/dist/assets/integrations/box.svg.mjs +4 -0
- package/dist/assets/integrations/confluence.svg.mjs +4 -0
- package/dist/assets/integrations/databricks.svg.mjs +4 -0
- package/dist/assets/integrations/drive.svg.mjs +4 -0
- package/dist/assets/integrations/dropbox.svg.mjs +4 -0
- package/dist/assets/integrations/dynamics365.svg.mjs +4 -0
- package/dist/assets/integrations/dynamodb.svg.mjs +4 -0
- package/dist/assets/integrations/endpoints.svg.mjs +4 -0
- package/dist/assets/integrations/exchange.svg.mjs +4 -0
- package/dist/assets/integrations/github.svg.mjs +4 -0
- package/dist/assets/integrations/gitlab.svg.mjs +4 -0
- package/dist/assets/integrations/gmail.svg.mjs +4 -0
- package/dist/assets/integrations/googleCloudStorage.svg.mjs +4 -0
- package/dist/assets/integrations/hubspot.svg.mjs +4 -0
- package/dist/assets/integrations/jira.svg.mjs +4 -0
- package/dist/assets/integrations/mssql.svg.mjs +4 -0
- package/dist/assets/integrations/mysql.svg.mjs +4 -0
- package/dist/assets/integrations/netsuite.svg.mjs +4 -0
- package/dist/assets/integrations/oneDrive.svg.mjs +4 -0
- package/dist/assets/integrations/outlook.svg.mjs +4 -0
- package/dist/assets/integrations/postgres.svg.mjs +4 -0
- package/dist/assets/integrations/redshift.svg.mjs +4 -0
- package/dist/assets/integrations/salesforce.svg.mjs +4 -0
- package/dist/assets/integrations/sap.svg.mjs +4 -0
- package/dist/assets/integrations/servicenow.svg.mjs +4 -0
- package/dist/assets/integrations/sharedDrive.svg.mjs +4 -0
- package/dist/assets/integrations/sharepoint.svg.mjs +4 -0
- package/dist/assets/integrations/slack.svg.mjs +4 -0
- package/dist/assets/integrations/snowflake.svg.mjs +4 -0
- package/dist/assets/integrations/teams.svg.mjs +4 -0
- package/dist/assets/integrations/workday.svg.mjs +4 -0
- package/dist/assets/integrations/zendesk.svg.mjs +4 -0
- package/dist/assets/logos/aiq-logo.svg.mjs +4 -0
- package/dist/assets/logos/classify-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/comply-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/consent-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/discover-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/iqagent-logo.svg.mjs +4 -0
- package/dist/assets/logos/iqworks-icon.png.mjs +4 -0
- package/dist/assets/logos/iqworks-icon.svg.mjs +10 -0
- package/dist/assets/logos/iqworks-icon.svg2.mjs +4 -0
- package/dist/assets/logos/iqworks-logo.svg.mjs +4 -0
- package/dist/assets/logos/light/aiq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/classify-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/comply-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/consent-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/discover-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/iqagent-logo.svg.mjs +4 -0
- package/dist/assets/logos/light/iqworks-icon-light.png.mjs +4 -0
- package/dist/assets/logos/light/iqworks-icon-light.svg.mjs +10 -0
- package/dist/assets/logos/light/iqworks-icon-light.svg2.mjs +4 -0
- package/dist/assets/logos/light/iqworks-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/protect-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/retain-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/light/search-iq-logo-light.svg.mjs +4 -0
- package/dist/assets/logos/protect-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/retain-iq-logo.svg.mjs +4 -0
- package/dist/assets/logos/search-iq-logo.svg.mjs +4 -0
- package/dist/components/Alert/index.mjs +34 -0
- package/dist/components/CSVImporter/helpers.mjs +82 -0
- package/dist/components/CSVImporter/index.mjs +156 -0
- package/dist/components/Charts/ChartHeader/index.mjs +15 -0
- package/dist/components/Charts/CustomLegends/index.mjs +72 -0
- package/dist/components/Charts/DonutChart/index.mjs +120 -0
- package/dist/components/Charts/GaugeChart/index.mjs +229 -0
- package/dist/components/Charts/GeoChart/index.mjs +85 -0
- package/dist/components/Charts/HorizontalBarChart/index.mjs +118 -0
- package/dist/components/Charts/NoDataChart/index.mjs +19 -0
- package/dist/components/Charts/PieChart/index.mjs +120 -0
- package/dist/components/Charts/StorageChart/index.mjs +44 -0
- package/dist/components/Charts/VerticalBarChart/index.mjs +130 -0
- package/dist/components/ConfidenceScoreTooltip/index.mjs +113 -0
- package/dist/components/ConfirmationModal/index.mjs +96 -0
- package/dist/components/CountryBox/index.mjs +18 -0
- package/dist/components/DbSchemaBrowser/index.mjs +750 -0
- package/dist/components/Dropdown/index.mjs +59 -0
- package/dist/components/ErrorBoundary/ComponentErrorBoundary.mjs +43 -0
- package/dist/components/ErrorBoundary/index.mjs +184 -0
- package/dist/components/Favicons/index.d.ts +83 -0
- package/dist/components/Favicons/index.d.ts.map +1 -0
- package/dist/components/Favicons/index.mjs +67 -0
- package/dist/components/FileBrowser/index.mjs +706 -0
- package/dist/components/FileTypeIcon/index.mjs +12 -0
- package/dist/components/ImagePreviewModal/index.mjs +101 -0
- package/dist/components/InstallUpdateLoader/index.mjs +99 -0
- package/dist/components/IntegrationLogos/index.mjs +146 -0
- package/dist/components/Loader/index.mjs +30 -0
- package/dist/components/Logos/index.mjs +121 -0
- package/dist/components/Modal/index.mjs +126 -0
- package/dist/components/MultiSelect/index.mjs +236 -0
- package/dist/components/NoActiveAttributeWarning/index.mjs +9 -0
- package/dist/components/ResourceUsageBadge/index.mjs +47 -0
- package/dist/components/RiskScoreLabel/index.mjs +10 -0
- package/dist/components/ShowMultiData/index.mjs +32 -0
- package/dist/components/StatusBadge/index.mjs +39 -0
- package/dist/components/Table/index.mjs +732 -0
- package/dist/components/TaskResult/index.mjs +157 -0
- package/dist/components/Timer/index.mjs +33 -0
- package/dist/components/Toast/index.mjs +31 -0
- package/dist/components/ToggleSwitch/index.mjs +26 -0
- package/dist/components/ToolTip/index.mjs +63 -0
- package/dist/constants/browserConstants.mjs +9 -0
- package/dist/constants/enums.mjs +9 -0
- package/dist/constants/statusBadgeClasses.mjs +15 -0
- package/dist/context/ContextProvider.mjs +21 -0
- package/dist/context/LoaderContext.mjs +15 -0
- package/dist/context/ThemeContext.mjs +201 -0
- package/dist/context/ToastContext.mjs +24 -0
- package/dist/hooks/useApiCache.mjs +47 -0
- package/dist/hooks/useAssetPath.mjs +16 -0
- package/dist/hooks/useBodyScrollLock.mjs +13 -0
- package/dist/hooks/useClickOutside.mjs +21 -0
- package/dist/hooks/useDebounce.mjs +15 -0
- package/dist/hooks/useFilterCache.mjs +22 -0
- package/dist/hooks/useReduxHook.mjs +17 -0
- package/dist/{index-DuYopz3l.cjs → index-CUUuCzyM.cjs} +44 -32
- package/dist/{index-CM7jFsCE.cjs → index-DtVOjJk3.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +166 -100
- package/dist/jquery-BKuE7Afe.cjs +13 -0
- package/dist/{jstree-CXGKFWK1.cjs → jstree-CtrCtuMv.cjs} +3 -3
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +245 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.mjs +56 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.mjs +43 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +127 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +44 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs +7 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +392 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +400 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +365 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +13 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +176 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +129 -0
- package/dist/node_modules/@headlessui/react/dist/components/description/description.mjs +39 -0
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.mjs +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/label/label.mjs +61 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.mjs +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.mjs +120 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.mjs +205 -0
- package/dist/node_modules/@headlessui/react/dist/components/mouse.mjs +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.mjs +51 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.mjs +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.mjs +52 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.mjs +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.mjs +33 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.mjs +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.mjs +26 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.mjs +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.mjs +41 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.mjs +13 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.mjs +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.mjs +28 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.mjs +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.mjs +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.mjs +32 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.mjs +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.mjs +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.mjs +20 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.mjs +17 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.mjs +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.mjs +73 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.mjs +18 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/internal/floating.mjs +154 -0
- package/dist/node_modules/@headlessui/react/dist/internal/id.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.mjs +15 -0
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/machine.mjs +74 -0
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.mjs +33 -0
- package/dist/node_modules/@headlessui/react/dist/react-glue.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.mjs +19 -0
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.mjs +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.mjs +6 -0
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.mjs +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.mjs +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/dom.mjs +46 -0
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.mjs +21 -0
- package/dist/node_modules/@headlessui/react/dist/utils/env.mjs +34 -0
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.mjs +97 -0
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.mjs +31 -0
- package/dist/node_modules/@headlessui/react/dist/utils/match.mjs +11 -0
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.mjs +8 -0
- package/dist/node_modules/@headlessui/react/dist/utils/owner.mjs +22 -0
- package/dist/node_modules/@headlessui/react/dist/utils/platform.mjs +14 -0
- package/dist/node_modules/@headlessui/react/dist/utils/render.mjs +126 -0
- package/dist/node_modules/@headlessui/react/dist/utils/store.mjs +14 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +448 -0
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs +34 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.mjs +30 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs +93 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs +57 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.mjs +86 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.mjs +66 -0
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs +27 -0
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.mjs +15 -0
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs +45 -0
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs +7 -0
- package/dist/node_modules/@react-aria/utils/dist/openLink.mjs +28 -0
- package/dist/node_modules/@react-aria/utils/dist/platform.mjs +47 -0
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs +34 -0
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.mjs +6 -0
- package/dist/node_modules/@react-stately/flags/dist/import.mjs +7 -0
- package/dist/node_modules/@reactflow/background/dist/esm/index.mjs +57 -0
- package/dist/node_modules/@reactflow/controls/dist/esm/index.mjs +96 -0
- package/dist/node_modules/@reactflow/core/dist/esm/index.mjs +2666 -0
- package/dist/node_modules/@reactflow/minimap/dist/esm/index.mjs +122 -0
- package/dist/node_modules/@reactflow/node-resizer/dist/esm/index.mjs +130 -0
- package/dist/node_modules/@reactflow/node-toolbar/dist/esm/index.mjs +72 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.mjs +100 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.mjs +1721 -0
- package/dist/node_modules/chart.js/auto/auto.mjs +51 -0
- package/dist/node_modules/chart.js/dist/chart.mjs +7174 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.mjs +1734 -0
- package/dist/node_modules/chartjs-chart-geo/build/index.mjs +874 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +613 -0
- package/dist/node_modules/classcat/index.mjs +14 -0
- package/dist/node_modules/d3-array/src/fsum.mjs +27 -0
- package/dist/node_modules/d3-array/src/merge.mjs +10 -0
- package/dist/node_modules/d3-array/src/range.mjs +9 -0
- package/dist/node_modules/d3-color/src/color.mjs +305 -0
- package/dist/node_modules/d3-color/src/cubehelix.mjs +37 -0
- package/dist/node_modules/d3-color/src/define.mjs +12 -0
- package/dist/node_modules/d3-color/src/math.mjs +5 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.mjs +64 -0
- package/dist/node_modules/d3-drag/src/constant.mjs +4 -0
- package/dist/node_modules/d3-drag/src/drag.mjs +121 -0
- package/dist/node_modules/d3-drag/src/event.mjs +33 -0
- package/dist/node_modules/d3-drag/src/nodrag.mjs +16 -0
- package/dist/node_modules/d3-drag/src/noevent.mjs +13 -0
- package/dist/node_modules/d3-ease/src/cubic.mjs +6 -0
- package/dist/node_modules/d3-geo/src/cartesian.mjs +33 -0
- package/dist/node_modules/d3-geo/src/circle.mjs +18 -0
- package/dist/node_modules/d3-geo/src/clip/antimeridian.mjs +45 -0
- package/dist/node_modules/d3-geo/src/clip/buffer.mjs +23 -0
- package/dist/node_modules/d3-geo/src/clip/circle.mjs +66 -0
- package/dist/node_modules/d3-geo/src/clip/index.mjs +67 -0
- package/dist/node_modules/d3-geo/src/clip/line.mjs +43 -0
- package/dist/node_modules/d3-geo/src/clip/rectangle.mjs +76 -0
- package/dist/node_modules/d3-geo/src/clip/rejoin.mjs +56 -0
- package/dist/node_modules/d3-geo/src/compose.mjs +11 -0
- package/dist/node_modules/d3-geo/src/contains.mjs +70 -0
- package/dist/node_modules/d3-geo/src/distance.mjs +8 -0
- package/dist/node_modules/d3-geo/src/graticule.mjs +68 -0
- package/dist/node_modules/d3-geo/src/identity.mjs +4 -0
- package/dist/node_modules/d3-geo/src/length.mjs +32 -0
- package/dist/node_modules/d3-geo/src/math.mjs +33 -0
- package/dist/node_modules/d3-geo/src/noop.mjs +5 -0
- package/dist/node_modules/d3-geo/src/path/area.mjs +33 -0
- package/dist/node_modules/d3-geo/src/path/bounds.mjs +18 -0
- package/dist/node_modules/d3-geo/src/path/centroid.mjs +48 -0
- package/dist/node_modules/d3-geo/src/path/context.mjs +43 -0
- package/dist/node_modules/d3-geo/src/path/index.mjs +41 -0
- package/dist/node_modules/d3-geo/src/path/measure.mjs +31 -0
- package/dist/node_modules/d3-geo/src/path/string.mjs +69 -0
- package/dist/node_modules/d3-geo/src/pointEqual.mjs +7 -0
- package/dist/node_modules/d3-geo/src/polygonContains.mjs +27 -0
- package/dist/node_modules/d3-geo/src/projection/albers.mjs +7 -0
- package/dist/node_modules/d3-geo/src/projection/albersUsa.mjs +65 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthal.mjs +23 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthalEqualArea.mjs +16 -0
- package/dist/node_modules/d3-geo/src/projection/azimuthalEquidistant.mjs +16 -0
- package/dist/node_modules/d3-geo/src/projection/conic.mjs +11 -0
- package/dist/node_modules/d3-geo/src/projection/conicConformal.mjs +26 -0
- package/dist/node_modules/d3-geo/src/projection/conicEqualArea.mjs +23 -0
- package/dist/node_modules/d3-geo/src/projection/conicEquidistant.mjs +22 -0
- package/dist/node_modules/d3-geo/src/projection/cylindricalEqualArea.mjs +13 -0
- package/dist/node_modules/d3-geo/src/projection/equalEarth.mjs +25 -0
- package/dist/node_modules/d3-geo/src/projection/equirectangular.mjs +12 -0
- package/dist/node_modules/d3-geo/src/projection/fit.mjs +33 -0
- package/dist/node_modules/d3-geo/src/projection/gnomonic.mjs +15 -0
- package/dist/node_modules/d3-geo/src/projection/index.mjs +104 -0
- package/dist/node_modules/d3-geo/src/projection/mercator.mjs +34 -0
- package/dist/node_modules/d3-geo/src/projection/naturalEarth1.mjs +27 -0
- package/dist/node_modules/d3-geo/src/projection/orthographic.mjs +14 -0
- package/dist/node_modules/d3-geo/src/projection/resample.mjs +62 -0
- package/dist/node_modules/d3-geo/src/projection/stereographic.mjs +17 -0
- package/dist/node_modules/d3-geo/src/projection/transverseMercator.mjs +20 -0
- package/dist/node_modules/d3-geo/src/rotation.mjs +48 -0
- package/dist/node_modules/d3-geo/src/stream.mjs +52 -0
- package/dist/node_modules/d3-geo/src/transform.mjs +33 -0
- package/dist/node_modules/d3-interpolate/src/basis.mjs +15 -0
- package/dist/node_modules/d3-interpolate/src/color.mjs +29 -0
- package/dist/node_modules/d3-interpolate/src/constant.mjs +4 -0
- package/dist/node_modules/d3-interpolate/src/cubehelix.mjs +19 -0
- package/dist/node_modules/d3-interpolate/src/number.mjs +8 -0
- package/dist/node_modules/d3-interpolate/src/rgb.mjs +28 -0
- package/dist/node_modules/d3-interpolate/src/string.mjs +24 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.mjs +23 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.mjs +37 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.mjs +13 -0
- package/dist/node_modules/d3-interpolate/src/zoom.mjs +42 -0
- package/dist/node_modules/d3-scale-chromatic/src/colors.mjs +7 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/BrBG.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/PRGn.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/PiYG.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/PuOr.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdBu.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdGy.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/diverging/Spectral.mjs +18 -0
- package/dist/node_modules/d3-scale-chromatic/src/ramp.mjs +5 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.mjs +6 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.mjs +6 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.mjs +13 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.mjs +9 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.mjs +6 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.mjs +15 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Blues.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Greens.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Greys.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Purples.mjs +16 -0
- package/dist/node_modules/d3-scale-chromatic/src/sequential-single/Reds.mjs +16 -0
- package/dist/node_modules/d3-selection/src/array.mjs +6 -0
- package/dist/node_modules/d3-selection/src/constant.mjs +8 -0
- package/dist/node_modules/d3-selection/src/creator.mjs +20 -0
- package/dist/node_modules/d3-selection/src/matcher.mjs +14 -0
- package/dist/node_modules/d3-selection/src/namespace.mjs +8 -0
- package/dist/node_modules/d3-selection/src/namespaces.mjs +12 -0
- package/dist/node_modules/d3-selection/src/pointer.mjs +18 -0
- package/dist/node_modules/d3-selection/src/select.mjs +7 -0
- package/dist/node_modules/d3-selection/src/selection/append.mjs +10 -0
- package/dist/node_modules/d3-selection/src/selection/attr.mjs +44 -0
- package/dist/node_modules/d3-selection/src/selection/call.mjs +7 -0
- package/dist/node_modules/d3-selection/src/selection/classed.mjs +54 -0
- package/dist/node_modules/d3-selection/src/selection/clone.mjs +14 -0
- package/dist/node_modules/d3-selection/src/selection/data.mjs +42 -0
- package/dist/node_modules/d3-selection/src/selection/datum.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.mjs +21 -0
- package/dist/node_modules/d3-selection/src/selection/each.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/empty.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/enter.mjs +27 -0
- package/dist/node_modules/d3-selection/src/selection/exit.mjs +8 -0
- package/dist/node_modules/d3-selection/src/selection/filter.mjs +12 -0
- package/dist/node_modules/d3-selection/src/selection/html.mjs +20 -0
- package/dist/node_modules/d3-selection/src/selection/index.mjs +87 -0
- package/dist/node_modules/d3-selection/src/selection/insert.mjs +14 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.mjs +8 -0
- package/dist/node_modules/d3-selection/src/selection/join.mjs +7 -0
- package/dist/node_modules/d3-selection/src/selection/lower.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/merge.mjs +12 -0
- package/dist/node_modules/d3-selection/src/selection/node.mjs +11 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/on.mjs +52 -0
- package/dist/node_modules/d3-selection/src/selection/order.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/property.mjs +22 -0
- package/dist/node_modules/d3-selection/src/selection/raise.mjs +9 -0
- package/dist/node_modules/d3-selection/src/selection/remove.mjs +10 -0
- package/dist/node_modules/d3-selection/src/selection/select.mjs +12 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.mjs +18 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
- package/dist/node_modules/d3-selection/src/selection/size.mjs +8 -0
- package/dist/node_modules/d3-selection/src/selection/sort.mjs +19 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
- package/dist/node_modules/d3-selection/src/selection/style.mjs +27 -0
- package/dist/node_modules/d3-selection/src/selection/text.mjs +20 -0
- package/dist/node_modules/d3-selection/src/selector.mjs +10 -0
- package/dist/node_modules/d3-selection/src/selectorAll.mjs +11 -0
- package/dist/node_modules/d3-selection/src/sourceEvent.mjs +8 -0
- package/dist/node_modules/d3-selection/src/window.mjs +6 -0
- package/dist/node_modules/d3-timer/src/timeout.mjs +10 -0
- package/dist/node_modules/d3-timer/src/timer.mjs +62 -0
- package/dist/node_modules/d3-transition/src/interrupt.mjs +18 -0
- package/dist/node_modules/d3-transition/src/selection/index.mjs +5 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
- package/dist/node_modules/d3-transition/src/selection/transition.mjs +28 -0
- package/dist/node_modules/d3-transition/src/transition/attr.mjs +49 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.mjs +38 -0
- package/dist/node_modules/d3-transition/src/transition/delay.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/duration.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/ease.mjs +14 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
- package/dist/node_modules/d3-transition/src/transition/end.mjs +16 -0
- package/dist/node_modules/d3-transition/src/transition/filter.mjs +12 -0
- package/dist/node_modules/d3-transition/src/transition/index.mjs +65 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
- package/dist/node_modules/d3-transition/src/transition/merge.mjs +13 -0
- package/dist/node_modules/d3-transition/src/transition/on.mjs +21 -0
- package/dist/node_modules/d3-transition/src/transition/remove.mjs +13 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.mjs +85 -0
- package/dist/node_modules/d3-transition/src/transition/select.mjs +14 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/selection.mjs +8 -0
- package/dist/node_modules/d3-transition/src/transition/style.mjs +45 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.mjs +23 -0
- package/dist/node_modules/d3-transition/src/transition/text.mjs +18 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.mjs +23 -0
- package/dist/node_modules/d3-transition/src/transition/transition.mjs +19 -0
- package/dist/node_modules/d3-transition/src/transition/tween.mjs +56 -0
- package/dist/node_modules/d3-zoom/src/constant.mjs +4 -0
- package/dist/node_modules/d3-zoom/src/event.mjs +17 -0
- package/dist/node_modules/d3-zoom/src/noevent.mjs +10 -0
- package/dist/node_modules/d3-zoom/src/transform.mjs +45 -0
- package/dist/node_modules/d3-zoom/src/zoom.mjs +233 -0
- package/dist/node_modules/dayjs/dayjs.min.mjs +282 -0
- package/dist/node_modules/dayjs/plugin/utc.mjs +79 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.mjs +17 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.mjs +95 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.mjs +78 -0
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.mjs +8 -0
- package/dist/node_modules/jquery/dist/jquery.mjs +3642 -0
- package/dist/{jstree-ETZgxxT1.js → node_modules/jstree/dist/jstree.mjs} +17 -17
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.mjs +36 -0
- package/dist/node_modules/papaparse/papaparse.min.mjs +421 -0
- package/dist/node_modules/react-chartjs-2/dist/index.mjs +94 -0
- package/dist/node_modules/react-icons/ai/index.mjs +20 -0
- package/dist/node_modules/react-icons/fa/index.mjs +64 -0
- package/dist/node_modules/react-icons/fi/index.mjs +48 -0
- package/dist/node_modules/react-icons/go/index.mjs +8 -0
- package/dist/node_modules/react-icons/io/index.mjs +8 -0
- package/dist/node_modules/react-icons/io5/index.mjs +20 -0
- package/dist/node_modules/react-icons/lib/iconBase.mjs +108 -0
- package/dist/node_modules/react-icons/lib/iconContext.mjs +12 -0
- package/dist/node_modules/react-icons/md/index.mjs +56 -0
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.mjs +17 -0
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.mjs +1763 -0
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.mjs +867 -0
- package/dist/node_modules/react-select/dist/react-select.esm.mjs +19 -0
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.mjs +62 -0
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.mjs +29 -0
- package/dist/node_modules/reactflow/dist/esm/index.mjs +77 -0
- package/dist/node_modules/stylis/src/Enum.mjs +12 -0
- package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
- package/dist/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/stylis/src/Serializer.mjs +27 -0
- package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
- package/dist/node_modules/stylis/src/Utility.mjs +50 -0
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.mjs +5 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +67 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +55 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.mjs +66 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.mjs +65 -0
- package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/with-selector.mjs +8 -0
- package/dist/node_modules/zustand/esm/shallow.mjs +30 -0
- package/dist/node_modules/zustand/esm/traditional.mjs +22 -0
- package/dist/node_modules/zustand/esm/vanilla.mjs +18 -0
- package/dist/types/table.mjs +14 -0
- package/dist/utils/classNames.mjs +26 -0
- package/dist/utils/dbSchemaBrowserUtils.mjs +86 -0
- package/dist/utils/fileBrowserUtils.mjs +66 -0
- package/dist/utils/formatBytes.mjs +8 -0
- package/dist/utils/memoUtils.mjs +29 -0
- package/dist/utils/riskScore.mjs +42 -0
- package/dist/utils/statusConfig.mjs +72 -0
- package/package.json +5 -1
- package/dist/index--e0eFmJz.js +0 -28717
- package/dist/index-Bsibz5yn.js +0 -5204
- package/dist/jquery-B5k82Ft4.js +0 -3622
- package/dist/jquery-DJhgA209.cjs +0 -13
- package/dist/jquery-DXFsjw95.js +0 -26
- package/dist/jquery-DeHtnyTt.cjs +0 -1
|
@@ -0,0 +1,1763 @@
|
|
|
1
|
+
import E from "../../@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import M from "../../@babel/runtime/helpers/esm/objectSpread2.mjs";
|
|
3
|
+
import Ue from "../../@babel/runtime/helpers/esm/classCallCheck.mjs";
|
|
4
|
+
import Qe from "../../@babel/runtime/helpers/esm/createClass.mjs";
|
|
5
|
+
import _e from "../../@babel/runtime/helpers/esm/inherits.mjs";
|
|
6
|
+
import je from "../../@babel/runtime/helpers/esm/createSuper.mjs";
|
|
7
|
+
import de from "../../@babel/runtime/helpers/esm/toConsumableArray.mjs";
|
|
8
|
+
import * as h from "react";
|
|
9
|
+
import { Component as $e, Fragment as le, useMemo as Q, useRef as z, useCallback as J, useEffect as Le } from "react";
|
|
10
|
+
import { B as ve, C as me, D as te, E as Ke, y as qe, x as et, w as tt, v as nt, u as ut, t as it, q as at, p as ot, o as st, n as rt, m as lt, k as ct, l as dt, j as pt, h as ft, i as gt, f as bt, g as vt, e as mt, d as ht, b as It, a as Ct, F as Et, G as Ft, H as he, K as At, A as Vt, z as Ie, I as Ce, J as Dt, M as xt, r as St, s as Ot } from "./index-641ee5b8.esm.mjs";
|
|
11
|
+
import { createElement as L, css as yt } from "../../@emotion/react/dist/emotion-react.browser.esm.mjs";
|
|
12
|
+
import Bt from "../../memoize-one/dist/memoize-one.esm.mjs";
|
|
13
|
+
import Gt from "../../@babel/runtime/helpers/esm/objectWithoutProperties.mjs";
|
|
14
|
+
function Mt() {
|
|
15
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
16
|
+
}
|
|
17
|
+
var Lt = process.env.NODE_ENV === "production" ? {
|
|
18
|
+
name: "7pg0cj-a11yText",
|
|
19
|
+
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
|
|
20
|
+
} : {
|
|
21
|
+
name: "1f43avz-a11yText-A11yText",
|
|
22
|
+
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
|
|
23
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
24
|
+
toString: Mt
|
|
25
|
+
}, Rt = function(u) {
|
|
26
|
+
return L("span", E({
|
|
27
|
+
css: Lt
|
|
28
|
+
}, u));
|
|
29
|
+
}, Ee = Rt, Wt = {
|
|
30
|
+
guidance: function(u) {
|
|
31
|
+
var s = u.isSearchable, a = u.isMulti, e = u.tabSelectsValue, i = u.context, l = u.isInitialFocus;
|
|
32
|
+
switch (i) {
|
|
33
|
+
case "menu":
|
|
34
|
+
return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(e ? ", press Tab to select the option and exit the menu" : "", ".");
|
|
35
|
+
case "input":
|
|
36
|
+
return l ? "".concat(u["aria-label"] || "Select", " is focused ").concat(s ? ",type to refine list" : "", ", press Down to open the menu, ").concat(a ? " press left to focus selected values" : "") : "";
|
|
37
|
+
case "value":
|
|
38
|
+
return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
|
|
39
|
+
default:
|
|
40
|
+
return "";
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
onChange: function(u) {
|
|
44
|
+
var s = u.action, a = u.label, e = a === void 0 ? "" : a, i = u.labels, l = u.isDisabled;
|
|
45
|
+
switch (s) {
|
|
46
|
+
case "deselect-option":
|
|
47
|
+
case "pop-value":
|
|
48
|
+
case "remove-value":
|
|
49
|
+
return "option ".concat(e, ", deselected.");
|
|
50
|
+
case "clear":
|
|
51
|
+
return "All selected options have been cleared.";
|
|
52
|
+
case "initial-input-focus":
|
|
53
|
+
return "option".concat(i.length > 1 ? "s" : "", " ").concat(i.join(","), ", selected.");
|
|
54
|
+
case "select-option":
|
|
55
|
+
return l ? "option ".concat(e, " is disabled. Select another option.") : "option ".concat(e, ", selected.");
|
|
56
|
+
default:
|
|
57
|
+
return "";
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
onFocus: function(u) {
|
|
61
|
+
var s = u.context, a = u.focused, e = u.options, i = u.label, l = i === void 0 ? "" : i, d = u.selectValue, t = u.isDisabled, n = u.isSelected, o = u.isAppleDevice, c = function(b, p) {
|
|
62
|
+
return b && b.length ? "".concat(b.indexOf(p) + 1, " of ").concat(b.length) : "";
|
|
63
|
+
};
|
|
64
|
+
if (s === "value" && d)
|
|
65
|
+
return "value ".concat(l, " focused, ").concat(c(d, a), ".");
|
|
66
|
+
if (s === "menu" && o) {
|
|
67
|
+
var f = t ? " disabled" : "", g = "".concat(n ? " selected" : "").concat(f);
|
|
68
|
+
return "".concat(l).concat(g, ", ").concat(c(e, a), ".");
|
|
69
|
+
}
|
|
70
|
+
return "";
|
|
71
|
+
},
|
|
72
|
+
onFilter: function(u) {
|
|
73
|
+
var s = u.inputValue, a = u.resultsMessage;
|
|
74
|
+
return "".concat(a).concat(s ? " for search term " + s : "", ".");
|
|
75
|
+
}
|
|
76
|
+
}, Zt = function(u) {
|
|
77
|
+
var s = u.ariaSelection, a = u.focusedOption, e = u.focusedValue, i = u.focusableOptions, l = u.isFocused, d = u.selectValue, t = u.selectProps, n = u.id, o = u.isAppleDevice, c = t.ariaLiveMessages, f = t.getOptionLabel, g = t.inputValue, v = t.isMulti, b = t.isOptionDisabled, p = t.isSearchable, m = t.menuIsOpen, C = t.options, F = t.screenReaderStatus, A = t.tabSelectsValue, V = t.isLoading, S = t["aria-label"], x = t["aria-live"], I = Q(function() {
|
|
78
|
+
return M(M({}, Wt), c || {});
|
|
79
|
+
}, [c]), y = Q(function() {
|
|
80
|
+
var B = "";
|
|
81
|
+
if (s && I.onChange) {
|
|
82
|
+
var O = s.option, H = s.options, P = s.removedValue, $ = s.removedValues, K = s.value, q = function(w) {
|
|
83
|
+
return Array.isArray(w) ? null : w;
|
|
84
|
+
}, D = P || O || q(K), G = D ? f(D) : "", T = H || $ || void 0, k = T ? T.map(f) : [], R = M({
|
|
85
|
+
// multiSelected items are usually items that have already been selected
|
|
86
|
+
// or set by the user as a default value so we assume they are not disabled
|
|
87
|
+
isDisabled: D && b(D, d),
|
|
88
|
+
label: G,
|
|
89
|
+
labels: k
|
|
90
|
+
}, s);
|
|
91
|
+
B = I.onChange(R);
|
|
92
|
+
}
|
|
93
|
+
return B;
|
|
94
|
+
}, [s, I, b, d, f]), W = Q(function() {
|
|
95
|
+
var B = "", O = a || e, H = !!(a && d && d.includes(a));
|
|
96
|
+
if (O && I.onFocus) {
|
|
97
|
+
var P = {
|
|
98
|
+
focused: O,
|
|
99
|
+
label: f(O),
|
|
100
|
+
isDisabled: b(O, d),
|
|
101
|
+
isSelected: H,
|
|
102
|
+
options: i,
|
|
103
|
+
context: O === a ? "menu" : "value",
|
|
104
|
+
selectValue: d,
|
|
105
|
+
isAppleDevice: o
|
|
106
|
+
};
|
|
107
|
+
B = I.onFocus(P);
|
|
108
|
+
}
|
|
109
|
+
return B;
|
|
110
|
+
}, [a, e, f, b, I, i, d, o]), Z = Q(function() {
|
|
111
|
+
var B = "";
|
|
112
|
+
if (m && C.length && !V && I.onFilter) {
|
|
113
|
+
var O = F({
|
|
114
|
+
count: i.length
|
|
115
|
+
});
|
|
116
|
+
B = I.onFilter({
|
|
117
|
+
inputValue: g,
|
|
118
|
+
resultsMessage: O
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return B;
|
|
122
|
+
}, [i, g, m, I, C, F, V]), X = (s == null ? void 0 : s.action) === "initial-input-focus", U = Q(function() {
|
|
123
|
+
var B = "";
|
|
124
|
+
if (I.guidance) {
|
|
125
|
+
var O = e ? "value" : m ? "menu" : "input";
|
|
126
|
+
B = I.guidance({
|
|
127
|
+
"aria-label": S,
|
|
128
|
+
context: O,
|
|
129
|
+
isDisabled: a && b(a, d),
|
|
130
|
+
isMulti: v,
|
|
131
|
+
isSearchable: p,
|
|
132
|
+
tabSelectsValue: A,
|
|
133
|
+
isInitialFocus: X
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return B;
|
|
137
|
+
}, [S, a, e, v, b, p, m, I, d, A, X]), j = L(le, null, L("span", {
|
|
138
|
+
id: "aria-selection"
|
|
139
|
+
}, y), L("span", {
|
|
140
|
+
id: "aria-focused"
|
|
141
|
+
}, W), L("span", {
|
|
142
|
+
id: "aria-results"
|
|
143
|
+
}, Z), L("span", {
|
|
144
|
+
id: "aria-guidance"
|
|
145
|
+
}, U));
|
|
146
|
+
return L(le, null, L(Ee, {
|
|
147
|
+
id: n
|
|
148
|
+
}, X && j), L(Ee, {
|
|
149
|
+
"aria-live": x,
|
|
150
|
+
"aria-atomic": "false",
|
|
151
|
+
"aria-relevant": "additions text",
|
|
152
|
+
role: "log"
|
|
153
|
+
}, l && !X && j));
|
|
154
|
+
}, Xt = Zt, ce = [{
|
|
155
|
+
base: "A",
|
|
156
|
+
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
157
|
+
}, {
|
|
158
|
+
base: "AA",
|
|
159
|
+
letters: "Ꜳ"
|
|
160
|
+
}, {
|
|
161
|
+
base: "AE",
|
|
162
|
+
letters: "ÆǼǢ"
|
|
163
|
+
}, {
|
|
164
|
+
base: "AO",
|
|
165
|
+
letters: "Ꜵ"
|
|
166
|
+
}, {
|
|
167
|
+
base: "AU",
|
|
168
|
+
letters: "Ꜷ"
|
|
169
|
+
}, {
|
|
170
|
+
base: "AV",
|
|
171
|
+
letters: "ꜸꜺ"
|
|
172
|
+
}, {
|
|
173
|
+
base: "AY",
|
|
174
|
+
letters: "Ꜽ"
|
|
175
|
+
}, {
|
|
176
|
+
base: "B",
|
|
177
|
+
letters: "BⒷBḂḄḆɃƂƁ"
|
|
178
|
+
}, {
|
|
179
|
+
base: "C",
|
|
180
|
+
letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
|
|
181
|
+
}, {
|
|
182
|
+
base: "D",
|
|
183
|
+
letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
|
|
184
|
+
}, {
|
|
185
|
+
base: "DZ",
|
|
186
|
+
letters: "DZDŽ"
|
|
187
|
+
}, {
|
|
188
|
+
base: "Dz",
|
|
189
|
+
letters: "DzDž"
|
|
190
|
+
}, {
|
|
191
|
+
base: "E",
|
|
192
|
+
letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
|
|
193
|
+
}, {
|
|
194
|
+
base: "F",
|
|
195
|
+
letters: "FⒻFḞƑꝻ"
|
|
196
|
+
}, {
|
|
197
|
+
base: "G",
|
|
198
|
+
letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
|
|
199
|
+
}, {
|
|
200
|
+
base: "H",
|
|
201
|
+
letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
|
|
202
|
+
}, {
|
|
203
|
+
base: "I",
|
|
204
|
+
letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
|
|
205
|
+
}, {
|
|
206
|
+
base: "J",
|
|
207
|
+
letters: "JⒿJĴɈ"
|
|
208
|
+
}, {
|
|
209
|
+
base: "K",
|
|
210
|
+
letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
|
|
211
|
+
}, {
|
|
212
|
+
base: "L",
|
|
213
|
+
letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
|
|
214
|
+
}, {
|
|
215
|
+
base: "LJ",
|
|
216
|
+
letters: "LJ"
|
|
217
|
+
}, {
|
|
218
|
+
base: "Lj",
|
|
219
|
+
letters: "Lj"
|
|
220
|
+
}, {
|
|
221
|
+
base: "M",
|
|
222
|
+
letters: "MⓂMḾṀṂⱮƜ"
|
|
223
|
+
}, {
|
|
224
|
+
base: "N",
|
|
225
|
+
letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
|
|
226
|
+
}, {
|
|
227
|
+
base: "NJ",
|
|
228
|
+
letters: "NJ"
|
|
229
|
+
}, {
|
|
230
|
+
base: "Nj",
|
|
231
|
+
letters: "Nj"
|
|
232
|
+
}, {
|
|
233
|
+
base: "O",
|
|
234
|
+
letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
|
|
235
|
+
}, {
|
|
236
|
+
base: "OI",
|
|
237
|
+
letters: "Ƣ"
|
|
238
|
+
}, {
|
|
239
|
+
base: "OO",
|
|
240
|
+
letters: "Ꝏ"
|
|
241
|
+
}, {
|
|
242
|
+
base: "OU",
|
|
243
|
+
letters: "Ȣ"
|
|
244
|
+
}, {
|
|
245
|
+
base: "P",
|
|
246
|
+
letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
|
|
247
|
+
}, {
|
|
248
|
+
base: "Q",
|
|
249
|
+
letters: "QⓆQꝖꝘɊ"
|
|
250
|
+
}, {
|
|
251
|
+
base: "R",
|
|
252
|
+
letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
|
|
253
|
+
}, {
|
|
254
|
+
base: "S",
|
|
255
|
+
letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
|
|
256
|
+
}, {
|
|
257
|
+
base: "T",
|
|
258
|
+
letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
|
|
259
|
+
}, {
|
|
260
|
+
base: "TZ",
|
|
261
|
+
letters: "Ꜩ"
|
|
262
|
+
}, {
|
|
263
|
+
base: "U",
|
|
264
|
+
letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
|
|
265
|
+
}, {
|
|
266
|
+
base: "V",
|
|
267
|
+
letters: "VⓋVṼṾƲꝞɅ"
|
|
268
|
+
}, {
|
|
269
|
+
base: "VY",
|
|
270
|
+
letters: "Ꝡ"
|
|
271
|
+
}, {
|
|
272
|
+
base: "W",
|
|
273
|
+
letters: "WⓌWẀẂŴẆẄẈⱲ"
|
|
274
|
+
}, {
|
|
275
|
+
base: "X",
|
|
276
|
+
letters: "XⓍXẊẌ"
|
|
277
|
+
}, {
|
|
278
|
+
base: "Y",
|
|
279
|
+
letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
|
|
280
|
+
}, {
|
|
281
|
+
base: "Z",
|
|
282
|
+
letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
|
|
283
|
+
}, {
|
|
284
|
+
base: "a",
|
|
285
|
+
letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
|
|
286
|
+
}, {
|
|
287
|
+
base: "aa",
|
|
288
|
+
letters: "ꜳ"
|
|
289
|
+
}, {
|
|
290
|
+
base: "ae",
|
|
291
|
+
letters: "æǽǣ"
|
|
292
|
+
}, {
|
|
293
|
+
base: "ao",
|
|
294
|
+
letters: "ꜵ"
|
|
295
|
+
}, {
|
|
296
|
+
base: "au",
|
|
297
|
+
letters: "ꜷ"
|
|
298
|
+
}, {
|
|
299
|
+
base: "av",
|
|
300
|
+
letters: "ꜹꜻ"
|
|
301
|
+
}, {
|
|
302
|
+
base: "ay",
|
|
303
|
+
letters: "ꜽ"
|
|
304
|
+
}, {
|
|
305
|
+
base: "b",
|
|
306
|
+
letters: "bⓑbḃḅḇƀƃɓ"
|
|
307
|
+
}, {
|
|
308
|
+
base: "c",
|
|
309
|
+
letters: "cⓒcćĉċčçḉƈȼꜿↄ"
|
|
310
|
+
}, {
|
|
311
|
+
base: "d",
|
|
312
|
+
letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
|
|
313
|
+
}, {
|
|
314
|
+
base: "dz",
|
|
315
|
+
letters: "dzdž"
|
|
316
|
+
}, {
|
|
317
|
+
base: "e",
|
|
318
|
+
letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
|
|
319
|
+
}, {
|
|
320
|
+
base: "f",
|
|
321
|
+
letters: "fⓕfḟƒꝼ"
|
|
322
|
+
}, {
|
|
323
|
+
base: "g",
|
|
324
|
+
letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
|
|
325
|
+
}, {
|
|
326
|
+
base: "h",
|
|
327
|
+
letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
|
|
328
|
+
}, {
|
|
329
|
+
base: "hv",
|
|
330
|
+
letters: "ƕ"
|
|
331
|
+
}, {
|
|
332
|
+
base: "i",
|
|
333
|
+
letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
|
|
334
|
+
}, {
|
|
335
|
+
base: "j",
|
|
336
|
+
letters: "jⓙjĵǰɉ"
|
|
337
|
+
}, {
|
|
338
|
+
base: "k",
|
|
339
|
+
letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
|
|
340
|
+
}, {
|
|
341
|
+
base: "l",
|
|
342
|
+
letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
|
|
343
|
+
}, {
|
|
344
|
+
base: "lj",
|
|
345
|
+
letters: "lj"
|
|
346
|
+
}, {
|
|
347
|
+
base: "m",
|
|
348
|
+
letters: "mⓜmḿṁṃɱɯ"
|
|
349
|
+
}, {
|
|
350
|
+
base: "n",
|
|
351
|
+
letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
|
|
352
|
+
}, {
|
|
353
|
+
base: "nj",
|
|
354
|
+
letters: "nj"
|
|
355
|
+
}, {
|
|
356
|
+
base: "o",
|
|
357
|
+
letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
|
|
358
|
+
}, {
|
|
359
|
+
base: "oi",
|
|
360
|
+
letters: "ƣ"
|
|
361
|
+
}, {
|
|
362
|
+
base: "ou",
|
|
363
|
+
letters: "ȣ"
|
|
364
|
+
}, {
|
|
365
|
+
base: "oo",
|
|
366
|
+
letters: "ꝏ"
|
|
367
|
+
}, {
|
|
368
|
+
base: "p",
|
|
369
|
+
letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
|
|
370
|
+
}, {
|
|
371
|
+
base: "q",
|
|
372
|
+
letters: "qⓠqɋꝗꝙ"
|
|
373
|
+
}, {
|
|
374
|
+
base: "r",
|
|
375
|
+
letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
|
|
376
|
+
}, {
|
|
377
|
+
base: "s",
|
|
378
|
+
letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
|
|
379
|
+
}, {
|
|
380
|
+
base: "t",
|
|
381
|
+
letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
|
|
382
|
+
}, {
|
|
383
|
+
base: "tz",
|
|
384
|
+
letters: "ꜩ"
|
|
385
|
+
}, {
|
|
386
|
+
base: "u",
|
|
387
|
+
letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
|
|
388
|
+
}, {
|
|
389
|
+
base: "v",
|
|
390
|
+
letters: "vⓥvṽṿʋꝟʌ"
|
|
391
|
+
}, {
|
|
392
|
+
base: "vy",
|
|
393
|
+
letters: "ꝡ"
|
|
394
|
+
}, {
|
|
395
|
+
base: "w",
|
|
396
|
+
letters: "wⓦwẁẃŵẇẅẘẉⱳ"
|
|
397
|
+
}, {
|
|
398
|
+
base: "x",
|
|
399
|
+
letters: "xⓧxẋẍ"
|
|
400
|
+
}, {
|
|
401
|
+
base: "y",
|
|
402
|
+
letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
|
|
403
|
+
}, {
|
|
404
|
+
base: "z",
|
|
405
|
+
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
|
406
|
+
}], Tt = new RegExp("[" + ce.map(function(r) {
|
|
407
|
+
return r.letters;
|
|
408
|
+
}).join("") + "]", "g"), Re = {};
|
|
409
|
+
for (var ie = 0; ie < ce.length; ie++)
|
|
410
|
+
for (var ae = ce[ie], oe = 0; oe < ae.letters.length; oe++)
|
|
411
|
+
Re[ae.letters[oe]] = ae.base;
|
|
412
|
+
var We = function(u) {
|
|
413
|
+
return u.replace(Tt, function(s) {
|
|
414
|
+
return Re[s];
|
|
415
|
+
});
|
|
416
|
+
}, wt = Bt(We), Fe = function(u) {
|
|
417
|
+
return u.replace(/^\s+|\s+$/g, "");
|
|
418
|
+
}, Ht = function(u) {
|
|
419
|
+
return "".concat(u.label, " ").concat(u.value);
|
|
420
|
+
}, kt = function(u) {
|
|
421
|
+
return function(s, a) {
|
|
422
|
+
if (s.data.__isNew__) return !0;
|
|
423
|
+
var e = M({
|
|
424
|
+
ignoreCase: !0,
|
|
425
|
+
ignoreAccents: !0,
|
|
426
|
+
stringify: Ht,
|
|
427
|
+
trim: !0,
|
|
428
|
+
matchFrom: "any"
|
|
429
|
+
}, u), i = e.ignoreCase, l = e.ignoreAccents, d = e.stringify, t = e.trim, n = e.matchFrom, o = t ? Fe(a) : a, c = t ? Fe(d(s)) : d(s);
|
|
430
|
+
return i && (o = o.toLowerCase(), c = c.toLowerCase()), l && (o = wt(o), c = We(c)), n === "start" ? c.substr(0, o.length) === o : c.indexOf(o) > -1;
|
|
431
|
+
};
|
|
432
|
+
}, Nt = ["innerRef"];
|
|
433
|
+
function Jt(r) {
|
|
434
|
+
var u = r.innerRef, s = Gt(r, Nt), a = St(s, "onExited", "in", "enter", "exit", "appear");
|
|
435
|
+
return L("input", E({
|
|
436
|
+
ref: u
|
|
437
|
+
}, a, {
|
|
438
|
+
css: /* @__PURE__ */ yt({
|
|
439
|
+
label: "dummyInput",
|
|
440
|
+
// get rid of any default styles
|
|
441
|
+
background: 0,
|
|
442
|
+
border: 0,
|
|
443
|
+
// important! this hides the flashing cursor
|
|
444
|
+
caretColor: "transparent",
|
|
445
|
+
fontSize: "inherit",
|
|
446
|
+
gridArea: "1 / 1 / 2 / 3",
|
|
447
|
+
outline: 0,
|
|
448
|
+
padding: 0,
|
|
449
|
+
// important! without `width` browsers won't allow focus
|
|
450
|
+
width: 1,
|
|
451
|
+
// remove cursor on desktop
|
|
452
|
+
color: "transparent",
|
|
453
|
+
// remove cursor on mobile whilst maintaining "scroll into view" behaviour
|
|
454
|
+
left: -100,
|
|
455
|
+
opacity: 0,
|
|
456
|
+
position: "relative",
|
|
457
|
+
transform: "scale(.01)"
|
|
458
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
|
|
459
|
+
}));
|
|
460
|
+
}
|
|
461
|
+
var Pt = function(u) {
|
|
462
|
+
u.cancelable && u.preventDefault(), u.stopPropagation();
|
|
463
|
+
};
|
|
464
|
+
function Yt(r) {
|
|
465
|
+
var u = r.isEnabled, s = r.onBottomArrive, a = r.onBottomLeave, e = r.onTopArrive, i = r.onTopLeave, l = z(!1), d = z(!1), t = z(0), n = z(null), o = J(function(p, m) {
|
|
466
|
+
if (n.current !== null) {
|
|
467
|
+
var C = n.current, F = C.scrollTop, A = C.scrollHeight, V = C.clientHeight, S = n.current, x = m > 0, I = A - V - F, y = !1;
|
|
468
|
+
I > m && l.current && (a && a(p), l.current = !1), x && d.current && (i && i(p), d.current = !1), x && m > I ? (s && !l.current && s(p), S.scrollTop = A, y = !0, l.current = !0) : !x && -m > F && (e && !d.current && e(p), S.scrollTop = 0, y = !0, d.current = !0), y && Pt(p);
|
|
469
|
+
}
|
|
470
|
+
}, [s, a, e, i]), c = J(function(p) {
|
|
471
|
+
o(p, p.deltaY);
|
|
472
|
+
}, [o]), f = J(function(p) {
|
|
473
|
+
t.current = p.changedTouches[0].clientY;
|
|
474
|
+
}, []), g = J(function(p) {
|
|
475
|
+
var m = t.current - p.changedTouches[0].clientY;
|
|
476
|
+
o(p, m);
|
|
477
|
+
}, [o]), v = J(function(p) {
|
|
478
|
+
if (p) {
|
|
479
|
+
var m = Ot ? {
|
|
480
|
+
passive: !1
|
|
481
|
+
} : !1;
|
|
482
|
+
p.addEventListener("wheel", c, m), p.addEventListener("touchstart", f, m), p.addEventListener("touchmove", g, m);
|
|
483
|
+
}
|
|
484
|
+
}, [g, f, c]), b = J(function(p) {
|
|
485
|
+
p && (p.removeEventListener("wheel", c, !1), p.removeEventListener("touchstart", f, !1), p.removeEventListener("touchmove", g, !1));
|
|
486
|
+
}, [g, f, c]);
|
|
487
|
+
return Le(function() {
|
|
488
|
+
if (u) {
|
|
489
|
+
var p = n.current;
|
|
490
|
+
return v(p), function() {
|
|
491
|
+
b(p);
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
}, [u, v, b]), function(p) {
|
|
495
|
+
n.current = p;
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
var Ae = ["boxSizing", "height", "overflow", "paddingRight", "position"], Ve = {
|
|
499
|
+
boxSizing: "border-box",
|
|
500
|
+
// account for possible declaration `width: 100%;` on body
|
|
501
|
+
overflow: "hidden",
|
|
502
|
+
position: "relative",
|
|
503
|
+
height: "100%"
|
|
504
|
+
};
|
|
505
|
+
function De(r) {
|
|
506
|
+
r.cancelable && r.preventDefault();
|
|
507
|
+
}
|
|
508
|
+
function xe(r) {
|
|
509
|
+
r.stopPropagation();
|
|
510
|
+
}
|
|
511
|
+
function Se() {
|
|
512
|
+
var r = this.scrollTop, u = this.scrollHeight, s = r + this.offsetHeight;
|
|
513
|
+
r === 0 ? this.scrollTop = 1 : s === u && (this.scrollTop = r - 1);
|
|
514
|
+
}
|
|
515
|
+
function Oe() {
|
|
516
|
+
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
517
|
+
}
|
|
518
|
+
var ye = !!(typeof window < "u" && window.document && window.document.createElement), _ = 0, Y = {
|
|
519
|
+
capture: !1,
|
|
520
|
+
passive: !1
|
|
521
|
+
};
|
|
522
|
+
function zt(r) {
|
|
523
|
+
var u = r.isEnabled, s = r.accountForScrollbars, a = s === void 0 ? !0 : s, e = z({}), i = z(null), l = J(function(t) {
|
|
524
|
+
if (ye) {
|
|
525
|
+
var n = document.body, o = n && n.style;
|
|
526
|
+
if (a && Ae.forEach(function(v) {
|
|
527
|
+
var b = o && o[v];
|
|
528
|
+
e.current[v] = b;
|
|
529
|
+
}), a && _ < 1) {
|
|
530
|
+
var c = parseInt(e.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, g = window.innerWidth - f + c || 0;
|
|
531
|
+
Object.keys(Ve).forEach(function(v) {
|
|
532
|
+
var b = Ve[v];
|
|
533
|
+
o && (o[v] = b);
|
|
534
|
+
}), o && (o.paddingRight = "".concat(g, "px"));
|
|
535
|
+
}
|
|
536
|
+
n && Oe() && (n.addEventListener("touchmove", De, Y), t && (t.addEventListener("touchstart", Se, Y), t.addEventListener("touchmove", xe, Y))), _ += 1;
|
|
537
|
+
}
|
|
538
|
+
}, [a]), d = J(function(t) {
|
|
539
|
+
if (ye) {
|
|
540
|
+
var n = document.body, o = n && n.style;
|
|
541
|
+
_ = Math.max(_ - 1, 0), a && _ < 1 && Ae.forEach(function(c) {
|
|
542
|
+
var f = e.current[c];
|
|
543
|
+
o && (o[c] = f);
|
|
544
|
+
}), n && Oe() && (n.removeEventListener("touchmove", De, Y), t && (t.removeEventListener("touchstart", Se, Y), t.removeEventListener("touchmove", xe, Y)));
|
|
545
|
+
}
|
|
546
|
+
}, [a]);
|
|
547
|
+
return Le(function() {
|
|
548
|
+
if (u) {
|
|
549
|
+
var t = i.current;
|
|
550
|
+
return l(t), function() {
|
|
551
|
+
d(t);
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
}, [u, l, d]), function(t) {
|
|
555
|
+
i.current = t;
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
function Ut() {
|
|
559
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
560
|
+
}
|
|
561
|
+
var Qt = function(u) {
|
|
562
|
+
var s = u.target;
|
|
563
|
+
return s.ownerDocument.activeElement && s.ownerDocument.activeElement.blur();
|
|
564
|
+
}, _t = process.env.NODE_ENV === "production" ? {
|
|
565
|
+
name: "1kfdb0e",
|
|
566
|
+
styles: "position:fixed;left:0;bottom:0;right:0;top:0"
|
|
567
|
+
} : {
|
|
568
|
+
name: "bp8cua-ScrollManager",
|
|
569
|
+
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
|
570
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
|
571
|
+
toString: Ut
|
|
572
|
+
};
|
|
573
|
+
function jt(r) {
|
|
574
|
+
var u = r.children, s = r.lockEnabled, a = r.captureEnabled, e = a === void 0 ? !0 : a, i = r.onBottomArrive, l = r.onBottomLeave, d = r.onTopArrive, t = r.onTopLeave, n = Yt({
|
|
575
|
+
isEnabled: e,
|
|
576
|
+
onBottomArrive: i,
|
|
577
|
+
onBottomLeave: l,
|
|
578
|
+
onTopArrive: d,
|
|
579
|
+
onTopLeave: t
|
|
580
|
+
}), o = zt({
|
|
581
|
+
isEnabled: s
|
|
582
|
+
}), c = function(g) {
|
|
583
|
+
n(g), o(g);
|
|
584
|
+
};
|
|
585
|
+
return L(le, null, s && L("div", {
|
|
586
|
+
onClick: Qt,
|
|
587
|
+
css: _t
|
|
588
|
+
}), u(c));
|
|
589
|
+
}
|
|
590
|
+
function $t() {
|
|
591
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
592
|
+
}
|
|
593
|
+
var Kt = process.env.NODE_ENV === "production" ? {
|
|
594
|
+
name: "1a0ro4n-requiredInput",
|
|
595
|
+
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
|
|
596
|
+
} : {
|
|
597
|
+
name: "5kkxb2-requiredInput-RequiredInput",
|
|
598
|
+
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
|
|
599
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
|
|
600
|
+
toString: $t
|
|
601
|
+
}, qt = function(u) {
|
|
602
|
+
var s = u.name, a = u.onFocus;
|
|
603
|
+
return L("input", {
|
|
604
|
+
required: !0,
|
|
605
|
+
name: s,
|
|
606
|
+
tabIndex: -1,
|
|
607
|
+
"aria-hidden": "true",
|
|
608
|
+
onFocus: a,
|
|
609
|
+
css: Kt,
|
|
610
|
+
value: "",
|
|
611
|
+
onChange: function() {
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
}, en = qt;
|
|
615
|
+
function pe(r) {
|
|
616
|
+
var u;
|
|
617
|
+
return typeof window < "u" && window.navigator != null ? r.test(((u = window.navigator.userAgentData) === null || u === void 0 ? void 0 : u.platform) || window.navigator.platform) : !1;
|
|
618
|
+
}
|
|
619
|
+
function tn() {
|
|
620
|
+
return pe(/^iPhone/i);
|
|
621
|
+
}
|
|
622
|
+
function Ze() {
|
|
623
|
+
return pe(/^Mac/i);
|
|
624
|
+
}
|
|
625
|
+
function nn() {
|
|
626
|
+
return pe(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
627
|
+
Ze() && navigator.maxTouchPoints > 1;
|
|
628
|
+
}
|
|
629
|
+
function un() {
|
|
630
|
+
return tn() || nn();
|
|
631
|
+
}
|
|
632
|
+
function an() {
|
|
633
|
+
return Ze() || un();
|
|
634
|
+
}
|
|
635
|
+
var on = function(u) {
|
|
636
|
+
return u.label;
|
|
637
|
+
}, sn = function(u) {
|
|
638
|
+
return u.label;
|
|
639
|
+
}, rn = function(u) {
|
|
640
|
+
return u.value;
|
|
641
|
+
}, ln = function(u) {
|
|
642
|
+
return !!u.isDisabled;
|
|
643
|
+
}, cn = {
|
|
644
|
+
clearIndicator: Ct,
|
|
645
|
+
container: It,
|
|
646
|
+
control: ht,
|
|
647
|
+
dropdownIndicator: mt,
|
|
648
|
+
group: vt,
|
|
649
|
+
groupHeading: bt,
|
|
650
|
+
indicatorsContainer: gt,
|
|
651
|
+
indicatorSeparator: ft,
|
|
652
|
+
input: pt,
|
|
653
|
+
loadingIndicator: dt,
|
|
654
|
+
loadingMessage: ct,
|
|
655
|
+
menu: lt,
|
|
656
|
+
menuList: rt,
|
|
657
|
+
menuPortal: st,
|
|
658
|
+
multiValue: ot,
|
|
659
|
+
multiValueLabel: at,
|
|
660
|
+
multiValueRemove: it,
|
|
661
|
+
noOptionsMessage: ut,
|
|
662
|
+
option: nt,
|
|
663
|
+
placeholder: tt,
|
|
664
|
+
singleValue: et,
|
|
665
|
+
valueContainer: qe
|
|
666
|
+
}, dn = {
|
|
667
|
+
primary: "#2684FF",
|
|
668
|
+
primary75: "#4C9AFF",
|
|
669
|
+
primary50: "#B2D4FF",
|
|
670
|
+
primary25: "#DEEBFF",
|
|
671
|
+
danger: "#DE350B",
|
|
672
|
+
dangerLight: "#FFBDAD",
|
|
673
|
+
neutral0: "hsl(0, 0%, 100%)",
|
|
674
|
+
neutral5: "hsl(0, 0%, 95%)",
|
|
675
|
+
neutral10: "hsl(0, 0%, 90%)",
|
|
676
|
+
neutral20: "hsl(0, 0%, 80%)",
|
|
677
|
+
neutral30: "hsl(0, 0%, 70%)",
|
|
678
|
+
neutral40: "hsl(0, 0%, 60%)",
|
|
679
|
+
neutral50: "hsl(0, 0%, 50%)",
|
|
680
|
+
neutral60: "hsl(0, 0%, 40%)",
|
|
681
|
+
neutral70: "hsl(0, 0%, 30%)",
|
|
682
|
+
neutral80: "hsl(0, 0%, 20%)",
|
|
683
|
+
neutral90: "hsl(0, 0%, 10%)"
|
|
684
|
+
}, pn = 4, Xe = 4, fn = 38, gn = Xe * 2, bn = {
|
|
685
|
+
baseUnit: Xe,
|
|
686
|
+
controlHeight: fn,
|
|
687
|
+
menuGutter: gn
|
|
688
|
+
}, se = {
|
|
689
|
+
borderRadius: pn,
|
|
690
|
+
colors: dn,
|
|
691
|
+
spacing: bn
|
|
692
|
+
}, vn = {
|
|
693
|
+
"aria-live": "polite",
|
|
694
|
+
backspaceRemovesValue: !0,
|
|
695
|
+
blurInputOnSelect: Ie(),
|
|
696
|
+
captureMenuScroll: !Ie(),
|
|
697
|
+
classNames: {},
|
|
698
|
+
closeMenuOnSelect: !0,
|
|
699
|
+
closeMenuOnScroll: !1,
|
|
700
|
+
components: {},
|
|
701
|
+
controlShouldRenderValue: !0,
|
|
702
|
+
escapeClearsValue: !1,
|
|
703
|
+
filterOption: kt(),
|
|
704
|
+
formatGroupLabel: on,
|
|
705
|
+
getOptionLabel: sn,
|
|
706
|
+
getOptionValue: rn,
|
|
707
|
+
isDisabled: !1,
|
|
708
|
+
isLoading: !1,
|
|
709
|
+
isMulti: !1,
|
|
710
|
+
isRtl: !1,
|
|
711
|
+
isSearchable: !0,
|
|
712
|
+
isOptionDisabled: ln,
|
|
713
|
+
loadingMessage: function() {
|
|
714
|
+
return "Loading...";
|
|
715
|
+
},
|
|
716
|
+
maxMenuHeight: 300,
|
|
717
|
+
minMenuHeight: 140,
|
|
718
|
+
menuIsOpen: !1,
|
|
719
|
+
menuPlacement: "bottom",
|
|
720
|
+
menuPosition: "absolute",
|
|
721
|
+
menuShouldBlockScroll: !1,
|
|
722
|
+
menuShouldScrollIntoView: !Vt(),
|
|
723
|
+
noOptionsMessage: function() {
|
|
724
|
+
return "No options";
|
|
725
|
+
},
|
|
726
|
+
openMenuOnFocus: !1,
|
|
727
|
+
openMenuOnClick: !0,
|
|
728
|
+
options: [],
|
|
729
|
+
pageSize: 5,
|
|
730
|
+
placeholder: "Select...",
|
|
731
|
+
screenReaderStatus: function(u) {
|
|
732
|
+
var s = u.count;
|
|
733
|
+
return "".concat(s, " result").concat(s !== 1 ? "s" : "", " available");
|
|
734
|
+
},
|
|
735
|
+
styles: {},
|
|
736
|
+
tabIndex: 0,
|
|
737
|
+
tabSelectsValue: !0,
|
|
738
|
+
unstyled: !1
|
|
739
|
+
};
|
|
740
|
+
function Be(r, u, s, a) {
|
|
741
|
+
var e = He(r, u, s), i = ke(r, u, s), l = we(r, u), d = ue(r, u);
|
|
742
|
+
return {
|
|
743
|
+
type: "option",
|
|
744
|
+
data: u,
|
|
745
|
+
isDisabled: e,
|
|
746
|
+
isSelected: i,
|
|
747
|
+
label: l,
|
|
748
|
+
value: d,
|
|
749
|
+
index: a
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
function ne(r, u) {
|
|
753
|
+
return r.options.map(function(s, a) {
|
|
754
|
+
if ("options" in s) {
|
|
755
|
+
var e = s.options.map(function(l, d) {
|
|
756
|
+
return Be(r, l, u, d);
|
|
757
|
+
}).filter(function(l) {
|
|
758
|
+
return Me(r, l);
|
|
759
|
+
});
|
|
760
|
+
return e.length > 0 ? {
|
|
761
|
+
type: "group",
|
|
762
|
+
data: s,
|
|
763
|
+
options: e,
|
|
764
|
+
index: a
|
|
765
|
+
} : void 0;
|
|
766
|
+
}
|
|
767
|
+
var i = Be(r, s, u, a);
|
|
768
|
+
return Me(r, i) ? i : void 0;
|
|
769
|
+
}).filter(At);
|
|
770
|
+
}
|
|
771
|
+
function Te(r) {
|
|
772
|
+
return r.reduce(function(u, s) {
|
|
773
|
+
return s.type === "group" ? u.push.apply(u, de(s.options.map(function(a) {
|
|
774
|
+
return a.data;
|
|
775
|
+
}))) : u.push(s.data), u;
|
|
776
|
+
}, []);
|
|
777
|
+
}
|
|
778
|
+
function Ge(r, u) {
|
|
779
|
+
return r.reduce(function(s, a) {
|
|
780
|
+
return a.type === "group" ? s.push.apply(s, de(a.options.map(function(e) {
|
|
781
|
+
return {
|
|
782
|
+
data: e.data,
|
|
783
|
+
id: "".concat(u, "-").concat(a.index, "-").concat(e.index)
|
|
784
|
+
};
|
|
785
|
+
}))) : s.push({
|
|
786
|
+
data: a.data,
|
|
787
|
+
id: "".concat(u, "-").concat(a.index)
|
|
788
|
+
}), s;
|
|
789
|
+
}, []);
|
|
790
|
+
}
|
|
791
|
+
function mn(r, u) {
|
|
792
|
+
return Te(ne(r, u));
|
|
793
|
+
}
|
|
794
|
+
function Me(r, u) {
|
|
795
|
+
var s = r.inputValue, a = s === void 0 ? "" : s, e = u.data, i = u.isSelected, l = u.label, d = u.value;
|
|
796
|
+
return (!Je(r) || !i) && Ne(r, {
|
|
797
|
+
label: l,
|
|
798
|
+
value: d,
|
|
799
|
+
data: e
|
|
800
|
+
}, a);
|
|
801
|
+
}
|
|
802
|
+
function hn(r, u) {
|
|
803
|
+
var s = r.focusedValue, a = r.selectValue, e = a.indexOf(s);
|
|
804
|
+
if (e > -1) {
|
|
805
|
+
var i = u.indexOf(s);
|
|
806
|
+
if (i > -1)
|
|
807
|
+
return s;
|
|
808
|
+
if (e < u.length)
|
|
809
|
+
return u[e];
|
|
810
|
+
}
|
|
811
|
+
return null;
|
|
812
|
+
}
|
|
813
|
+
function In(r, u) {
|
|
814
|
+
var s = r.focusedOption;
|
|
815
|
+
return s && u.indexOf(s) > -1 ? s : u[0];
|
|
816
|
+
}
|
|
817
|
+
var re = function(u, s) {
|
|
818
|
+
var a, e = (a = u.find(function(i) {
|
|
819
|
+
return i.data === s;
|
|
820
|
+
})) === null || a === void 0 ? void 0 : a.id;
|
|
821
|
+
return e || null;
|
|
822
|
+
}, we = function(u, s) {
|
|
823
|
+
return u.getOptionLabel(s);
|
|
824
|
+
}, ue = function(u, s) {
|
|
825
|
+
return u.getOptionValue(s);
|
|
826
|
+
};
|
|
827
|
+
function He(r, u, s) {
|
|
828
|
+
return typeof r.isOptionDisabled == "function" ? r.isOptionDisabled(u, s) : !1;
|
|
829
|
+
}
|
|
830
|
+
function ke(r, u, s) {
|
|
831
|
+
if (s.indexOf(u) > -1) return !0;
|
|
832
|
+
if (typeof r.isOptionSelected == "function")
|
|
833
|
+
return r.isOptionSelected(u, s);
|
|
834
|
+
var a = ue(r, u);
|
|
835
|
+
return s.some(function(e) {
|
|
836
|
+
return ue(r, e) === a;
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
function Ne(r, u, s) {
|
|
840
|
+
return r.filterOption ? r.filterOption(u, s) : !0;
|
|
841
|
+
}
|
|
842
|
+
var Je = function(u) {
|
|
843
|
+
var s = u.hideSelectedOptions, a = u.isMulti;
|
|
844
|
+
return s === void 0 ? a : s;
|
|
845
|
+
}, Cn = 1, En = /* @__PURE__ */ function(r) {
|
|
846
|
+
_e(s, r);
|
|
847
|
+
var u = je(s);
|
|
848
|
+
function s(a) {
|
|
849
|
+
var e;
|
|
850
|
+
if (Ue(this, s), e = u.call(this, a), e.state = {
|
|
851
|
+
ariaSelection: null,
|
|
852
|
+
focusedOption: null,
|
|
853
|
+
focusedOptionId: null,
|
|
854
|
+
focusableOptionsWithIds: [],
|
|
855
|
+
focusedValue: null,
|
|
856
|
+
inputIsHidden: !1,
|
|
857
|
+
isFocused: !1,
|
|
858
|
+
selectValue: [],
|
|
859
|
+
clearFocusValueOnUpdate: !1,
|
|
860
|
+
prevWasFocused: !1,
|
|
861
|
+
inputIsHiddenAfterUpdate: void 0,
|
|
862
|
+
prevProps: void 0,
|
|
863
|
+
instancePrefix: "",
|
|
864
|
+
isAppleDevice: !1
|
|
865
|
+
}, e.blockOptionHover = !1, e.isComposing = !1, e.commonProps = void 0, e.initialTouchX = 0, e.initialTouchY = 0, e.openAfterFocus = !1, e.scrollToFocusedOptionOnUpdate = !1, e.userIsDragging = void 0, e.controlRef = null, e.getControlRef = function(t) {
|
|
866
|
+
e.controlRef = t;
|
|
867
|
+
}, e.focusedOptionRef = null, e.getFocusedOptionRef = function(t) {
|
|
868
|
+
e.focusedOptionRef = t;
|
|
869
|
+
}, e.menuListRef = null, e.getMenuListRef = function(t) {
|
|
870
|
+
e.menuListRef = t;
|
|
871
|
+
}, e.inputRef = null, e.getInputRef = function(t) {
|
|
872
|
+
e.inputRef = t;
|
|
873
|
+
}, e.focus = e.focusInput, e.blur = e.blurInput, e.onChange = function(t, n) {
|
|
874
|
+
var o = e.props, c = o.onChange, f = o.name;
|
|
875
|
+
n.name = f, e.ariaOnChange(t, n), c(t, n);
|
|
876
|
+
}, e.setValue = function(t, n, o) {
|
|
877
|
+
var c = e.props, f = c.closeMenuOnSelect, g = c.isMulti, v = c.inputValue;
|
|
878
|
+
e.onInputChange("", {
|
|
879
|
+
action: "set-value",
|
|
880
|
+
prevInputValue: v
|
|
881
|
+
}), f && (e.setState({
|
|
882
|
+
inputIsHiddenAfterUpdate: !g
|
|
883
|
+
}), e.onMenuClose()), e.setState({
|
|
884
|
+
clearFocusValueOnUpdate: !0
|
|
885
|
+
}), e.onChange(t, {
|
|
886
|
+
action: n,
|
|
887
|
+
option: o
|
|
888
|
+
});
|
|
889
|
+
}, e.selectOption = function(t) {
|
|
890
|
+
var n = e.props, o = n.blurInputOnSelect, c = n.isMulti, f = n.name, g = e.state.selectValue, v = c && e.isOptionSelected(t, g), b = e.isOptionDisabled(t, g);
|
|
891
|
+
if (v) {
|
|
892
|
+
var p = e.getOptionValue(t);
|
|
893
|
+
e.setValue(ve(g.filter(function(m) {
|
|
894
|
+
return e.getOptionValue(m) !== p;
|
|
895
|
+
})), "deselect-option", t);
|
|
896
|
+
} else if (!b)
|
|
897
|
+
c ? e.setValue(ve([].concat(de(g), [t])), "select-option", t) : e.setValue(me(t), "select-option");
|
|
898
|
+
else {
|
|
899
|
+
e.ariaOnChange(me(t), {
|
|
900
|
+
action: "select-option",
|
|
901
|
+
option: t,
|
|
902
|
+
name: f
|
|
903
|
+
});
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
o && e.blurInput();
|
|
907
|
+
}, e.removeValue = function(t) {
|
|
908
|
+
var n = e.props.isMulti, o = e.state.selectValue, c = e.getOptionValue(t), f = o.filter(function(v) {
|
|
909
|
+
return e.getOptionValue(v) !== c;
|
|
910
|
+
}), g = te(n, f, f[0] || null);
|
|
911
|
+
e.onChange(g, {
|
|
912
|
+
action: "remove-value",
|
|
913
|
+
removedValue: t
|
|
914
|
+
}), e.focusInput();
|
|
915
|
+
}, e.clearValue = function() {
|
|
916
|
+
var t = e.state.selectValue;
|
|
917
|
+
e.onChange(te(e.props.isMulti, [], null), {
|
|
918
|
+
action: "clear",
|
|
919
|
+
removedValues: t
|
|
920
|
+
});
|
|
921
|
+
}, e.popValue = function() {
|
|
922
|
+
var t = e.props.isMulti, n = e.state.selectValue, o = n[n.length - 1], c = n.slice(0, n.length - 1), f = te(t, c, c[0] || null);
|
|
923
|
+
o && e.onChange(f, {
|
|
924
|
+
action: "pop-value",
|
|
925
|
+
removedValue: o
|
|
926
|
+
});
|
|
927
|
+
}, e.getFocusedOptionId = function(t) {
|
|
928
|
+
return re(e.state.focusableOptionsWithIds, t);
|
|
929
|
+
}, e.getFocusableOptionsWithIds = function() {
|
|
930
|
+
return Ge(ne(e.props, e.state.selectValue), e.getElementId("option"));
|
|
931
|
+
}, e.getValue = function() {
|
|
932
|
+
return e.state.selectValue;
|
|
933
|
+
}, e.cx = function() {
|
|
934
|
+
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
935
|
+
n[o] = arguments[o];
|
|
936
|
+
return Ke.apply(void 0, [e.props.classNamePrefix].concat(n));
|
|
937
|
+
}, e.getOptionLabel = function(t) {
|
|
938
|
+
return we(e.props, t);
|
|
939
|
+
}, e.getOptionValue = function(t) {
|
|
940
|
+
return ue(e.props, t);
|
|
941
|
+
}, e.getStyles = function(t, n) {
|
|
942
|
+
var o = e.props.unstyled, c = cn[t](n, o);
|
|
943
|
+
c.boxSizing = "border-box";
|
|
944
|
+
var f = e.props.styles[t];
|
|
945
|
+
return f ? f(c, n) : c;
|
|
946
|
+
}, e.getClassNames = function(t, n) {
|
|
947
|
+
var o, c;
|
|
948
|
+
return (o = (c = e.props.classNames)[t]) === null || o === void 0 ? void 0 : o.call(c, n);
|
|
949
|
+
}, e.getElementId = function(t) {
|
|
950
|
+
return "".concat(e.state.instancePrefix, "-").concat(t);
|
|
951
|
+
}, e.getComponents = function() {
|
|
952
|
+
return Et(e.props);
|
|
953
|
+
}, e.buildCategorizedOptions = function() {
|
|
954
|
+
return ne(e.props, e.state.selectValue);
|
|
955
|
+
}, e.getCategorizedOptions = function() {
|
|
956
|
+
return e.props.menuIsOpen ? e.buildCategorizedOptions() : [];
|
|
957
|
+
}, e.buildFocusableOptions = function() {
|
|
958
|
+
return Te(e.buildCategorizedOptions());
|
|
959
|
+
}, e.getFocusableOptions = function() {
|
|
960
|
+
return e.props.menuIsOpen ? e.buildFocusableOptions() : [];
|
|
961
|
+
}, e.ariaOnChange = function(t, n) {
|
|
962
|
+
e.setState({
|
|
963
|
+
ariaSelection: M({
|
|
964
|
+
value: t
|
|
965
|
+
}, n)
|
|
966
|
+
});
|
|
967
|
+
}, e.onMenuMouseDown = function(t) {
|
|
968
|
+
t.button === 0 && (t.stopPropagation(), t.preventDefault(), e.focusInput());
|
|
969
|
+
}, e.onMenuMouseMove = function(t) {
|
|
970
|
+
e.blockOptionHover = !1;
|
|
971
|
+
}, e.onControlMouseDown = function(t) {
|
|
972
|
+
if (!t.defaultPrevented) {
|
|
973
|
+
var n = e.props.openMenuOnClick;
|
|
974
|
+
e.state.isFocused ? e.props.menuIsOpen ? t.target.tagName !== "INPUT" && t.target.tagName !== "TEXTAREA" && e.onMenuClose() : n && e.openMenu("first") : (n && (e.openAfterFocus = !0), e.focusInput()), t.target.tagName !== "INPUT" && t.target.tagName !== "TEXTAREA" && t.preventDefault();
|
|
975
|
+
}
|
|
976
|
+
}, e.onDropdownIndicatorMouseDown = function(t) {
|
|
977
|
+
if (!(t && t.type === "mousedown" && t.button !== 0) && !e.props.isDisabled) {
|
|
978
|
+
var n = e.props, o = n.isMulti, c = n.menuIsOpen;
|
|
979
|
+
e.focusInput(), c ? (e.setState({
|
|
980
|
+
inputIsHiddenAfterUpdate: !o
|
|
981
|
+
}), e.onMenuClose()) : e.openMenu("first"), t.preventDefault();
|
|
982
|
+
}
|
|
983
|
+
}, e.onClearIndicatorMouseDown = function(t) {
|
|
984
|
+
t && t.type === "mousedown" && t.button !== 0 || (e.clearValue(), t.preventDefault(), e.openAfterFocus = !1, t.type === "touchend" ? e.focusInput() : setTimeout(function() {
|
|
985
|
+
return e.focusInput();
|
|
986
|
+
}));
|
|
987
|
+
}, e.onScroll = function(t) {
|
|
988
|
+
typeof e.props.closeMenuOnScroll == "boolean" ? t.target instanceof HTMLElement && Ft(t.target) && e.props.onMenuClose() : typeof e.props.closeMenuOnScroll == "function" && e.props.closeMenuOnScroll(t) && e.props.onMenuClose();
|
|
989
|
+
}, e.onCompositionStart = function() {
|
|
990
|
+
e.isComposing = !0;
|
|
991
|
+
}, e.onCompositionEnd = function() {
|
|
992
|
+
e.isComposing = !1;
|
|
993
|
+
}, e.onTouchStart = function(t) {
|
|
994
|
+
var n = t.touches, o = n && n.item(0);
|
|
995
|
+
o && (e.initialTouchX = o.clientX, e.initialTouchY = o.clientY, e.userIsDragging = !1);
|
|
996
|
+
}, e.onTouchMove = function(t) {
|
|
997
|
+
var n = t.touches, o = n && n.item(0);
|
|
998
|
+
if (o) {
|
|
999
|
+
var c = Math.abs(o.clientX - e.initialTouchX), f = Math.abs(o.clientY - e.initialTouchY), g = 5;
|
|
1000
|
+
e.userIsDragging = c > g || f > g;
|
|
1001
|
+
}
|
|
1002
|
+
}, e.onTouchEnd = function(t) {
|
|
1003
|
+
e.userIsDragging || (e.controlRef && !e.controlRef.contains(t.target) && e.menuListRef && !e.menuListRef.contains(t.target) && e.blurInput(), e.initialTouchX = 0, e.initialTouchY = 0);
|
|
1004
|
+
}, e.onControlTouchEnd = function(t) {
|
|
1005
|
+
e.userIsDragging || e.onControlMouseDown(t);
|
|
1006
|
+
}, e.onClearIndicatorTouchEnd = function(t) {
|
|
1007
|
+
e.userIsDragging || e.onClearIndicatorMouseDown(t);
|
|
1008
|
+
}, e.onDropdownIndicatorTouchEnd = function(t) {
|
|
1009
|
+
e.userIsDragging || e.onDropdownIndicatorMouseDown(t);
|
|
1010
|
+
}, e.handleInputChange = function(t) {
|
|
1011
|
+
var n = e.props.inputValue, o = t.currentTarget.value;
|
|
1012
|
+
e.setState({
|
|
1013
|
+
inputIsHiddenAfterUpdate: !1
|
|
1014
|
+
}), e.onInputChange(o, {
|
|
1015
|
+
action: "input-change",
|
|
1016
|
+
prevInputValue: n
|
|
1017
|
+
}), e.props.menuIsOpen || e.onMenuOpen();
|
|
1018
|
+
}, e.onInputFocus = function(t) {
|
|
1019
|
+
e.props.onFocus && e.props.onFocus(t), e.setState({
|
|
1020
|
+
inputIsHiddenAfterUpdate: !1,
|
|
1021
|
+
isFocused: !0
|
|
1022
|
+
}), (e.openAfterFocus || e.props.openMenuOnFocus) && e.openMenu("first"), e.openAfterFocus = !1;
|
|
1023
|
+
}, e.onInputBlur = function(t) {
|
|
1024
|
+
var n = e.props.inputValue;
|
|
1025
|
+
if (e.menuListRef && e.menuListRef.contains(document.activeElement)) {
|
|
1026
|
+
e.inputRef.focus();
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
e.props.onBlur && e.props.onBlur(t), e.onInputChange("", {
|
|
1030
|
+
action: "input-blur",
|
|
1031
|
+
prevInputValue: n
|
|
1032
|
+
}), e.onMenuClose(), e.setState({
|
|
1033
|
+
focusedValue: null,
|
|
1034
|
+
isFocused: !1
|
|
1035
|
+
});
|
|
1036
|
+
}, e.onOptionHover = function(t) {
|
|
1037
|
+
if (!(e.blockOptionHover || e.state.focusedOption === t)) {
|
|
1038
|
+
var n = e.getFocusableOptions(), o = n.indexOf(t);
|
|
1039
|
+
e.setState({
|
|
1040
|
+
focusedOption: t,
|
|
1041
|
+
focusedOptionId: o > -1 ? e.getFocusedOptionId(t) : null
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
}, e.shouldHideSelectedOptions = function() {
|
|
1045
|
+
return Je(e.props);
|
|
1046
|
+
}, e.onValueInputFocus = function(t) {
|
|
1047
|
+
t.preventDefault(), t.stopPropagation(), e.focus();
|
|
1048
|
+
}, e.onKeyDown = function(t) {
|
|
1049
|
+
var n = e.props, o = n.isMulti, c = n.backspaceRemovesValue, f = n.escapeClearsValue, g = n.inputValue, v = n.isClearable, b = n.isDisabled, p = n.menuIsOpen, m = n.onKeyDown, C = n.tabSelectsValue, F = n.openMenuOnFocus, A = e.state, V = A.focusedOption, S = A.focusedValue, x = A.selectValue;
|
|
1050
|
+
if (!b && !(typeof m == "function" && (m(t), t.defaultPrevented))) {
|
|
1051
|
+
switch (e.blockOptionHover = !0, t.key) {
|
|
1052
|
+
case "ArrowLeft":
|
|
1053
|
+
if (!o || g) return;
|
|
1054
|
+
e.focusValue("previous");
|
|
1055
|
+
break;
|
|
1056
|
+
case "ArrowRight":
|
|
1057
|
+
if (!o || g) return;
|
|
1058
|
+
e.focusValue("next");
|
|
1059
|
+
break;
|
|
1060
|
+
case "Delete":
|
|
1061
|
+
case "Backspace":
|
|
1062
|
+
if (g) return;
|
|
1063
|
+
if (S)
|
|
1064
|
+
e.removeValue(S);
|
|
1065
|
+
else {
|
|
1066
|
+
if (!c) return;
|
|
1067
|
+
o ? e.popValue() : v && e.clearValue();
|
|
1068
|
+
}
|
|
1069
|
+
break;
|
|
1070
|
+
case "Tab":
|
|
1071
|
+
if (e.isComposing || t.shiftKey || !p || !C || !V || // don't capture the event if the menu opens on focus and the focused
|
|
1072
|
+
// option is already selected; it breaks the flow of navigation
|
|
1073
|
+
F && e.isOptionSelected(V, x))
|
|
1074
|
+
return;
|
|
1075
|
+
e.selectOption(V);
|
|
1076
|
+
break;
|
|
1077
|
+
case "Enter":
|
|
1078
|
+
if (t.keyCode === 229)
|
|
1079
|
+
break;
|
|
1080
|
+
if (p) {
|
|
1081
|
+
if (!V || e.isComposing) return;
|
|
1082
|
+
e.selectOption(V);
|
|
1083
|
+
break;
|
|
1084
|
+
}
|
|
1085
|
+
return;
|
|
1086
|
+
case "Escape":
|
|
1087
|
+
p ? (e.setState({
|
|
1088
|
+
inputIsHiddenAfterUpdate: !1
|
|
1089
|
+
}), e.onInputChange("", {
|
|
1090
|
+
action: "menu-close",
|
|
1091
|
+
prevInputValue: g
|
|
1092
|
+
}), e.onMenuClose()) : v && f && e.clearValue();
|
|
1093
|
+
break;
|
|
1094
|
+
case " ":
|
|
1095
|
+
if (g)
|
|
1096
|
+
return;
|
|
1097
|
+
if (!p) {
|
|
1098
|
+
e.openMenu("first");
|
|
1099
|
+
break;
|
|
1100
|
+
}
|
|
1101
|
+
if (!V) return;
|
|
1102
|
+
e.selectOption(V);
|
|
1103
|
+
break;
|
|
1104
|
+
case "ArrowUp":
|
|
1105
|
+
p ? e.focusOption("up") : e.openMenu("last");
|
|
1106
|
+
break;
|
|
1107
|
+
case "ArrowDown":
|
|
1108
|
+
p ? e.focusOption("down") : e.openMenu("first");
|
|
1109
|
+
break;
|
|
1110
|
+
case "PageUp":
|
|
1111
|
+
if (!p) return;
|
|
1112
|
+
e.focusOption("pageup");
|
|
1113
|
+
break;
|
|
1114
|
+
case "PageDown":
|
|
1115
|
+
if (!p) return;
|
|
1116
|
+
e.focusOption("pagedown");
|
|
1117
|
+
break;
|
|
1118
|
+
case "Home":
|
|
1119
|
+
if (!p) return;
|
|
1120
|
+
e.focusOption("first");
|
|
1121
|
+
break;
|
|
1122
|
+
case "End":
|
|
1123
|
+
if (!p) return;
|
|
1124
|
+
e.focusOption("last");
|
|
1125
|
+
break;
|
|
1126
|
+
default:
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
t.preventDefault();
|
|
1130
|
+
}
|
|
1131
|
+
}, e.state.instancePrefix = "react-select-" + (e.props.instanceId || ++Cn), e.state.selectValue = he(a.value), a.menuIsOpen && e.state.selectValue.length) {
|
|
1132
|
+
var i = e.getFocusableOptionsWithIds(), l = e.buildFocusableOptions(), d = l.indexOf(e.state.selectValue[0]);
|
|
1133
|
+
e.state.focusableOptionsWithIds = i, e.state.focusedOption = l[d], e.state.focusedOptionId = re(i, l[d]);
|
|
1134
|
+
}
|
|
1135
|
+
return e;
|
|
1136
|
+
}
|
|
1137
|
+
return Qe(s, [{
|
|
1138
|
+
key: "componentDidMount",
|
|
1139
|
+
value: function() {
|
|
1140
|
+
this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && Ce(this.menuListRef, this.focusedOptionRef), an() && this.setState({
|
|
1141
|
+
isAppleDevice: !0
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
}, {
|
|
1145
|
+
key: "componentDidUpdate",
|
|
1146
|
+
value: function(e) {
|
|
1147
|
+
var i = this.props, l = i.isDisabled, d = i.menuIsOpen, t = this.state.isFocused;
|
|
1148
|
+
// ensure focus is restored correctly when the control becomes enabled
|
|
1149
|
+
(t && !l && e.isDisabled || // ensure focus is on the Input when the menu opens
|
|
1150
|
+
t && d && !e.menuIsOpen) && this.focusInput(), t && l && !e.isDisabled ? this.setState({
|
|
1151
|
+
isFocused: !1
|
|
1152
|
+
}, this.onMenuClose) : !t && !l && e.isDisabled && this.inputRef === document.activeElement && this.setState({
|
|
1153
|
+
isFocused: !0
|
|
1154
|
+
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Ce(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
|
1155
|
+
}
|
|
1156
|
+
}, {
|
|
1157
|
+
key: "componentWillUnmount",
|
|
1158
|
+
value: function() {
|
|
1159
|
+
this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
|
|
1160
|
+
}
|
|
1161
|
+
// ==============================
|
|
1162
|
+
// Consumer Handlers
|
|
1163
|
+
// ==============================
|
|
1164
|
+
}, {
|
|
1165
|
+
key: "onMenuOpen",
|
|
1166
|
+
value: function() {
|
|
1167
|
+
this.props.onMenuOpen();
|
|
1168
|
+
}
|
|
1169
|
+
}, {
|
|
1170
|
+
key: "onMenuClose",
|
|
1171
|
+
value: function() {
|
|
1172
|
+
this.onInputChange("", {
|
|
1173
|
+
action: "menu-close",
|
|
1174
|
+
prevInputValue: this.props.inputValue
|
|
1175
|
+
}), this.props.onMenuClose();
|
|
1176
|
+
}
|
|
1177
|
+
}, {
|
|
1178
|
+
key: "onInputChange",
|
|
1179
|
+
value: function(e, i) {
|
|
1180
|
+
this.props.onInputChange(e, i);
|
|
1181
|
+
}
|
|
1182
|
+
// ==============================
|
|
1183
|
+
// Methods
|
|
1184
|
+
// ==============================
|
|
1185
|
+
}, {
|
|
1186
|
+
key: "focusInput",
|
|
1187
|
+
value: function() {
|
|
1188
|
+
this.inputRef && this.inputRef.focus();
|
|
1189
|
+
}
|
|
1190
|
+
}, {
|
|
1191
|
+
key: "blurInput",
|
|
1192
|
+
value: function() {
|
|
1193
|
+
this.inputRef && this.inputRef.blur();
|
|
1194
|
+
}
|
|
1195
|
+
// aliased for consumers
|
|
1196
|
+
}, {
|
|
1197
|
+
key: "openMenu",
|
|
1198
|
+
value: function(e) {
|
|
1199
|
+
var i = this, l = this.state, d = l.selectValue, t = l.isFocused, n = this.buildFocusableOptions(), o = e === "first" ? 0 : n.length - 1;
|
|
1200
|
+
if (!this.props.isMulti) {
|
|
1201
|
+
var c = n.indexOf(d[0]);
|
|
1202
|
+
c > -1 && (o = c);
|
|
1203
|
+
}
|
|
1204
|
+
this.scrollToFocusedOptionOnUpdate = !(t && this.menuListRef), this.setState({
|
|
1205
|
+
inputIsHiddenAfterUpdate: !1,
|
|
1206
|
+
focusedValue: null,
|
|
1207
|
+
focusedOption: n[o],
|
|
1208
|
+
focusedOptionId: this.getFocusedOptionId(n[o])
|
|
1209
|
+
}, function() {
|
|
1210
|
+
return i.onMenuOpen();
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
}, {
|
|
1214
|
+
key: "focusValue",
|
|
1215
|
+
value: function(e) {
|
|
1216
|
+
var i = this.state, l = i.selectValue, d = i.focusedValue;
|
|
1217
|
+
if (this.props.isMulti) {
|
|
1218
|
+
this.setState({
|
|
1219
|
+
focusedOption: null
|
|
1220
|
+
});
|
|
1221
|
+
var t = l.indexOf(d);
|
|
1222
|
+
d || (t = -1);
|
|
1223
|
+
var n = l.length - 1, o = -1;
|
|
1224
|
+
if (l.length) {
|
|
1225
|
+
switch (e) {
|
|
1226
|
+
case "previous":
|
|
1227
|
+
t === 0 ? o = 0 : t === -1 ? o = n : o = t - 1;
|
|
1228
|
+
break;
|
|
1229
|
+
case "next":
|
|
1230
|
+
t > -1 && t < n && (o = t + 1);
|
|
1231
|
+
break;
|
|
1232
|
+
}
|
|
1233
|
+
this.setState({
|
|
1234
|
+
inputIsHidden: o !== -1,
|
|
1235
|
+
focusedValue: l[o]
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
}, {
|
|
1241
|
+
key: "focusOption",
|
|
1242
|
+
value: function() {
|
|
1243
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", i = this.props.pageSize, l = this.state.focusedOption, d = this.getFocusableOptions();
|
|
1244
|
+
if (d.length) {
|
|
1245
|
+
var t = 0, n = d.indexOf(l);
|
|
1246
|
+
l || (n = -1), e === "up" ? t = n > 0 ? n - 1 : d.length - 1 : e === "down" ? t = (n + 1) % d.length : e === "pageup" ? (t = n - i, t < 0 && (t = 0)) : e === "pagedown" ? (t = n + i, t > d.length - 1 && (t = d.length - 1)) : e === "last" && (t = d.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
|
|
1247
|
+
focusedOption: d[t],
|
|
1248
|
+
focusedValue: null,
|
|
1249
|
+
focusedOptionId: this.getFocusedOptionId(d[t])
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}, {
|
|
1254
|
+
key: "getTheme",
|
|
1255
|
+
value: (
|
|
1256
|
+
// ==============================
|
|
1257
|
+
// Getters
|
|
1258
|
+
// ==============================
|
|
1259
|
+
function() {
|
|
1260
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(se) : M(M({}, se), this.props.theme) : se;
|
|
1261
|
+
}
|
|
1262
|
+
)
|
|
1263
|
+
}, {
|
|
1264
|
+
key: "getCommonProps",
|
|
1265
|
+
value: function() {
|
|
1266
|
+
var e = this.clearValue, i = this.cx, l = this.getStyles, d = this.getClassNames, t = this.getValue, n = this.selectOption, o = this.setValue, c = this.props, f = c.isMulti, g = c.isRtl, v = c.options, b = this.hasValue();
|
|
1267
|
+
return {
|
|
1268
|
+
clearValue: e,
|
|
1269
|
+
cx: i,
|
|
1270
|
+
getStyles: l,
|
|
1271
|
+
getClassNames: d,
|
|
1272
|
+
getValue: t,
|
|
1273
|
+
hasValue: b,
|
|
1274
|
+
isMulti: f,
|
|
1275
|
+
isRtl: g,
|
|
1276
|
+
options: v,
|
|
1277
|
+
selectOption: n,
|
|
1278
|
+
selectProps: c,
|
|
1279
|
+
setValue: o,
|
|
1280
|
+
theme: this.getTheme()
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
}, {
|
|
1284
|
+
key: "hasValue",
|
|
1285
|
+
value: function() {
|
|
1286
|
+
var e = this.state.selectValue;
|
|
1287
|
+
return e.length > 0;
|
|
1288
|
+
}
|
|
1289
|
+
}, {
|
|
1290
|
+
key: "hasOptions",
|
|
1291
|
+
value: function() {
|
|
1292
|
+
return !!this.getFocusableOptions().length;
|
|
1293
|
+
}
|
|
1294
|
+
}, {
|
|
1295
|
+
key: "isClearable",
|
|
1296
|
+
value: function() {
|
|
1297
|
+
var e = this.props, i = e.isClearable, l = e.isMulti;
|
|
1298
|
+
return i === void 0 ? l : i;
|
|
1299
|
+
}
|
|
1300
|
+
}, {
|
|
1301
|
+
key: "isOptionDisabled",
|
|
1302
|
+
value: function(e, i) {
|
|
1303
|
+
return He(this.props, e, i);
|
|
1304
|
+
}
|
|
1305
|
+
}, {
|
|
1306
|
+
key: "isOptionSelected",
|
|
1307
|
+
value: function(e, i) {
|
|
1308
|
+
return ke(this.props, e, i);
|
|
1309
|
+
}
|
|
1310
|
+
}, {
|
|
1311
|
+
key: "filterOption",
|
|
1312
|
+
value: function(e, i) {
|
|
1313
|
+
return Ne(this.props, e, i);
|
|
1314
|
+
}
|
|
1315
|
+
}, {
|
|
1316
|
+
key: "formatOptionLabel",
|
|
1317
|
+
value: function(e, i) {
|
|
1318
|
+
if (typeof this.props.formatOptionLabel == "function") {
|
|
1319
|
+
var l = this.props.inputValue, d = this.state.selectValue;
|
|
1320
|
+
return this.props.formatOptionLabel(e, {
|
|
1321
|
+
context: i,
|
|
1322
|
+
inputValue: l,
|
|
1323
|
+
selectValue: d
|
|
1324
|
+
});
|
|
1325
|
+
} else
|
|
1326
|
+
return this.getOptionLabel(e);
|
|
1327
|
+
}
|
|
1328
|
+
}, {
|
|
1329
|
+
key: "formatGroupLabel",
|
|
1330
|
+
value: function(e) {
|
|
1331
|
+
return this.props.formatGroupLabel(e);
|
|
1332
|
+
}
|
|
1333
|
+
// ==============================
|
|
1334
|
+
// Mouse Handlers
|
|
1335
|
+
// ==============================
|
|
1336
|
+
}, {
|
|
1337
|
+
key: "startListeningComposition",
|
|
1338
|
+
value: (
|
|
1339
|
+
// ==============================
|
|
1340
|
+
// Composition Handlers
|
|
1341
|
+
// ==============================
|
|
1342
|
+
function() {
|
|
1343
|
+
document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
|
|
1344
|
+
}
|
|
1345
|
+
)
|
|
1346
|
+
}, {
|
|
1347
|
+
key: "stopListeningComposition",
|
|
1348
|
+
value: function() {
|
|
1349
|
+
document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
|
|
1350
|
+
}
|
|
1351
|
+
}, {
|
|
1352
|
+
key: "startListeningToTouch",
|
|
1353
|
+
value: (
|
|
1354
|
+
// ==============================
|
|
1355
|
+
// Touch Handlers
|
|
1356
|
+
// ==============================
|
|
1357
|
+
function() {
|
|
1358
|
+
document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
|
|
1359
|
+
}
|
|
1360
|
+
)
|
|
1361
|
+
}, {
|
|
1362
|
+
key: "stopListeningToTouch",
|
|
1363
|
+
value: function() {
|
|
1364
|
+
document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
|
|
1365
|
+
}
|
|
1366
|
+
}, {
|
|
1367
|
+
key: "renderInput",
|
|
1368
|
+
value: (
|
|
1369
|
+
// ==============================
|
|
1370
|
+
// Renderers
|
|
1371
|
+
// ==============================
|
|
1372
|
+
function() {
|
|
1373
|
+
var e = this.props, i = e.isDisabled, l = e.isSearchable, d = e.inputId, t = e.inputValue, n = e.tabIndex, o = e.form, c = e.menuIsOpen, f = e.required, g = this.getComponents(), v = g.Input, b = this.state, p = b.inputIsHidden, m = b.ariaSelection, C = this.commonProps, F = d || this.getElementId("input"), A = M(M(M({
|
|
1374
|
+
"aria-autocomplete": "list",
|
|
1375
|
+
"aria-expanded": c,
|
|
1376
|
+
"aria-haspopup": !0,
|
|
1377
|
+
"aria-errormessage": this.props["aria-errormessage"],
|
|
1378
|
+
"aria-invalid": this.props["aria-invalid"],
|
|
1379
|
+
"aria-label": this.props["aria-label"],
|
|
1380
|
+
"aria-labelledby": this.props["aria-labelledby"],
|
|
1381
|
+
"aria-required": f,
|
|
1382
|
+
role: "combobox",
|
|
1383
|
+
"aria-activedescendant": this.state.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
1384
|
+
}, c && {
|
|
1385
|
+
"aria-controls": this.getElementId("listbox")
|
|
1386
|
+
}), !l && {
|
|
1387
|
+
"aria-readonly": !0
|
|
1388
|
+
}), this.hasValue() ? (m == null ? void 0 : m.action) === "initial-input-focus" && {
|
|
1389
|
+
"aria-describedby": this.getElementId("live-region")
|
|
1390
|
+
} : {
|
|
1391
|
+
"aria-describedby": this.getElementId("placeholder")
|
|
1392
|
+
});
|
|
1393
|
+
return l ? /* @__PURE__ */ h.createElement(v, E({}, C, {
|
|
1394
|
+
autoCapitalize: "none",
|
|
1395
|
+
autoComplete: "off",
|
|
1396
|
+
autoCorrect: "off",
|
|
1397
|
+
id: F,
|
|
1398
|
+
innerRef: this.getInputRef,
|
|
1399
|
+
isDisabled: i,
|
|
1400
|
+
isHidden: p,
|
|
1401
|
+
onBlur: this.onInputBlur,
|
|
1402
|
+
onChange: this.handleInputChange,
|
|
1403
|
+
onFocus: this.onInputFocus,
|
|
1404
|
+
spellCheck: "false",
|
|
1405
|
+
tabIndex: n,
|
|
1406
|
+
form: o,
|
|
1407
|
+
type: "text",
|
|
1408
|
+
value: t
|
|
1409
|
+
}, A)) : /* @__PURE__ */ h.createElement(Jt, E({
|
|
1410
|
+
id: F,
|
|
1411
|
+
innerRef: this.getInputRef,
|
|
1412
|
+
onBlur: this.onInputBlur,
|
|
1413
|
+
onChange: Dt,
|
|
1414
|
+
onFocus: this.onInputFocus,
|
|
1415
|
+
disabled: i,
|
|
1416
|
+
tabIndex: n,
|
|
1417
|
+
inputMode: "none",
|
|
1418
|
+
form: o,
|
|
1419
|
+
value: ""
|
|
1420
|
+
}, A));
|
|
1421
|
+
}
|
|
1422
|
+
)
|
|
1423
|
+
}, {
|
|
1424
|
+
key: "renderPlaceholderOrValue",
|
|
1425
|
+
value: function() {
|
|
1426
|
+
var e = this, i = this.getComponents(), l = i.MultiValue, d = i.MultiValueContainer, t = i.MultiValueLabel, n = i.MultiValueRemove, o = i.SingleValue, c = i.Placeholder, f = this.commonProps, g = this.props, v = g.controlShouldRenderValue, b = g.isDisabled, p = g.isMulti, m = g.inputValue, C = g.placeholder, F = this.state, A = F.selectValue, V = F.focusedValue, S = F.isFocused;
|
|
1427
|
+
if (!this.hasValue() || !v)
|
|
1428
|
+
return m ? null : /* @__PURE__ */ h.createElement(c, E({}, f, {
|
|
1429
|
+
key: "placeholder",
|
|
1430
|
+
isDisabled: b,
|
|
1431
|
+
isFocused: S,
|
|
1432
|
+
innerProps: {
|
|
1433
|
+
id: this.getElementId("placeholder")
|
|
1434
|
+
}
|
|
1435
|
+
}), C);
|
|
1436
|
+
if (p)
|
|
1437
|
+
return A.map(function(I, y) {
|
|
1438
|
+
var W = I === V, Z = "".concat(e.getOptionLabel(I), "-").concat(e.getOptionValue(I));
|
|
1439
|
+
return /* @__PURE__ */ h.createElement(l, E({}, f, {
|
|
1440
|
+
components: {
|
|
1441
|
+
Container: d,
|
|
1442
|
+
Label: t,
|
|
1443
|
+
Remove: n
|
|
1444
|
+
},
|
|
1445
|
+
isFocused: W,
|
|
1446
|
+
isDisabled: b,
|
|
1447
|
+
key: Z,
|
|
1448
|
+
index: y,
|
|
1449
|
+
removeProps: {
|
|
1450
|
+
onClick: function() {
|
|
1451
|
+
return e.removeValue(I);
|
|
1452
|
+
},
|
|
1453
|
+
onTouchEnd: function() {
|
|
1454
|
+
return e.removeValue(I);
|
|
1455
|
+
},
|
|
1456
|
+
onMouseDown: function(U) {
|
|
1457
|
+
U.preventDefault();
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
data: I
|
|
1461
|
+
}), e.formatOptionLabel(I, "value"));
|
|
1462
|
+
});
|
|
1463
|
+
if (m)
|
|
1464
|
+
return null;
|
|
1465
|
+
var x = A[0];
|
|
1466
|
+
return /* @__PURE__ */ h.createElement(o, E({}, f, {
|
|
1467
|
+
data: x,
|
|
1468
|
+
isDisabled: b
|
|
1469
|
+
}), this.formatOptionLabel(x, "value"));
|
|
1470
|
+
}
|
|
1471
|
+
}, {
|
|
1472
|
+
key: "renderClearIndicator",
|
|
1473
|
+
value: function() {
|
|
1474
|
+
var e = this.getComponents(), i = e.ClearIndicator, l = this.commonProps, d = this.props, t = d.isDisabled, n = d.isLoading, o = this.state.isFocused;
|
|
1475
|
+
if (!this.isClearable() || !i || t || !this.hasValue() || n)
|
|
1476
|
+
return null;
|
|
1477
|
+
var c = {
|
|
1478
|
+
onMouseDown: this.onClearIndicatorMouseDown,
|
|
1479
|
+
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
1480
|
+
"aria-hidden": "true"
|
|
1481
|
+
};
|
|
1482
|
+
return /* @__PURE__ */ h.createElement(i, E({}, l, {
|
|
1483
|
+
innerProps: c,
|
|
1484
|
+
isFocused: o
|
|
1485
|
+
}));
|
|
1486
|
+
}
|
|
1487
|
+
}, {
|
|
1488
|
+
key: "renderLoadingIndicator",
|
|
1489
|
+
value: function() {
|
|
1490
|
+
var e = this.getComponents(), i = e.LoadingIndicator, l = this.commonProps, d = this.props, t = d.isDisabled, n = d.isLoading, o = this.state.isFocused;
|
|
1491
|
+
if (!i || !n) return null;
|
|
1492
|
+
var c = {
|
|
1493
|
+
"aria-hidden": "true"
|
|
1494
|
+
};
|
|
1495
|
+
return /* @__PURE__ */ h.createElement(i, E({}, l, {
|
|
1496
|
+
innerProps: c,
|
|
1497
|
+
isDisabled: t,
|
|
1498
|
+
isFocused: o
|
|
1499
|
+
}));
|
|
1500
|
+
}
|
|
1501
|
+
}, {
|
|
1502
|
+
key: "renderIndicatorSeparator",
|
|
1503
|
+
value: function() {
|
|
1504
|
+
var e = this.getComponents(), i = e.DropdownIndicator, l = e.IndicatorSeparator;
|
|
1505
|
+
if (!i || !l) return null;
|
|
1506
|
+
var d = this.commonProps, t = this.props.isDisabled, n = this.state.isFocused;
|
|
1507
|
+
return /* @__PURE__ */ h.createElement(l, E({}, d, {
|
|
1508
|
+
isDisabled: t,
|
|
1509
|
+
isFocused: n
|
|
1510
|
+
}));
|
|
1511
|
+
}
|
|
1512
|
+
}, {
|
|
1513
|
+
key: "renderDropdownIndicator",
|
|
1514
|
+
value: function() {
|
|
1515
|
+
var e = this.getComponents(), i = e.DropdownIndicator;
|
|
1516
|
+
if (!i) return null;
|
|
1517
|
+
var l = this.commonProps, d = this.props.isDisabled, t = this.state.isFocused, n = {
|
|
1518
|
+
onMouseDown: this.onDropdownIndicatorMouseDown,
|
|
1519
|
+
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
1520
|
+
"aria-hidden": "true"
|
|
1521
|
+
};
|
|
1522
|
+
return /* @__PURE__ */ h.createElement(i, E({}, l, {
|
|
1523
|
+
innerProps: n,
|
|
1524
|
+
isDisabled: d,
|
|
1525
|
+
isFocused: t
|
|
1526
|
+
}));
|
|
1527
|
+
}
|
|
1528
|
+
}, {
|
|
1529
|
+
key: "renderMenu",
|
|
1530
|
+
value: function() {
|
|
1531
|
+
var e = this, i = this.getComponents(), l = i.Group, d = i.GroupHeading, t = i.Menu, n = i.MenuList, o = i.MenuPortal, c = i.LoadingMessage, f = i.NoOptionsMessage, g = i.Option, v = this.commonProps, b = this.state.focusedOption, p = this.props, m = p.captureMenuScroll, C = p.inputValue, F = p.isLoading, A = p.loadingMessage, V = p.minMenuHeight, S = p.maxMenuHeight, x = p.menuIsOpen, I = p.menuPlacement, y = p.menuPosition, W = p.menuPortalTarget, Z = p.menuShouldBlockScroll, X = p.menuShouldScrollIntoView, U = p.noOptionsMessage, j = p.onMenuScrollToTop, B = p.onMenuScrollToBottom;
|
|
1532
|
+
if (!x) return null;
|
|
1533
|
+
var O = function(G, T) {
|
|
1534
|
+
var k = G.type, R = G.data, N = G.isDisabled, w = G.isSelected, ee = G.label, Pe = G.value, fe = b === R, ge = N ? void 0 : function() {
|
|
1535
|
+
return e.onOptionHover(R);
|
|
1536
|
+
}, Ye = N ? void 0 : function() {
|
|
1537
|
+
return e.selectOption(R);
|
|
1538
|
+
}, be = "".concat(e.getElementId("option"), "-").concat(T), ze = {
|
|
1539
|
+
id: be,
|
|
1540
|
+
onClick: Ye,
|
|
1541
|
+
onMouseMove: ge,
|
|
1542
|
+
onMouseOver: ge,
|
|
1543
|
+
tabIndex: -1,
|
|
1544
|
+
role: "option",
|
|
1545
|
+
"aria-selected": e.state.isAppleDevice ? void 0 : w
|
|
1546
|
+
// is not supported on Apple devices
|
|
1547
|
+
};
|
|
1548
|
+
return /* @__PURE__ */ h.createElement(g, E({}, v, {
|
|
1549
|
+
innerProps: ze,
|
|
1550
|
+
data: R,
|
|
1551
|
+
isDisabled: N,
|
|
1552
|
+
isSelected: w,
|
|
1553
|
+
key: be,
|
|
1554
|
+
label: ee,
|
|
1555
|
+
type: k,
|
|
1556
|
+
value: Pe,
|
|
1557
|
+
isFocused: fe,
|
|
1558
|
+
innerRef: fe ? e.getFocusedOptionRef : void 0
|
|
1559
|
+
}), e.formatOptionLabel(G.data, "menu"));
|
|
1560
|
+
}, H;
|
|
1561
|
+
if (this.hasOptions())
|
|
1562
|
+
H = this.getCategorizedOptions().map(function(D) {
|
|
1563
|
+
if (D.type === "group") {
|
|
1564
|
+
var G = D.data, T = D.options, k = D.index, R = "".concat(e.getElementId("group"), "-").concat(k), N = "".concat(R, "-heading");
|
|
1565
|
+
return /* @__PURE__ */ h.createElement(l, E({}, v, {
|
|
1566
|
+
key: R,
|
|
1567
|
+
data: G,
|
|
1568
|
+
options: T,
|
|
1569
|
+
Heading: d,
|
|
1570
|
+
headingProps: {
|
|
1571
|
+
id: N,
|
|
1572
|
+
data: D.data
|
|
1573
|
+
},
|
|
1574
|
+
label: e.formatGroupLabel(D.data)
|
|
1575
|
+
}), D.options.map(function(w) {
|
|
1576
|
+
return O(w, "".concat(k, "-").concat(w.index));
|
|
1577
|
+
}));
|
|
1578
|
+
} else if (D.type === "option")
|
|
1579
|
+
return O(D, "".concat(D.index));
|
|
1580
|
+
});
|
|
1581
|
+
else if (F) {
|
|
1582
|
+
var P = A({
|
|
1583
|
+
inputValue: C
|
|
1584
|
+
});
|
|
1585
|
+
if (P === null) return null;
|
|
1586
|
+
H = /* @__PURE__ */ h.createElement(c, v, P);
|
|
1587
|
+
} else {
|
|
1588
|
+
var $ = U({
|
|
1589
|
+
inputValue: C
|
|
1590
|
+
});
|
|
1591
|
+
if ($ === null) return null;
|
|
1592
|
+
H = /* @__PURE__ */ h.createElement(f, v, $);
|
|
1593
|
+
}
|
|
1594
|
+
var K = {
|
|
1595
|
+
minMenuHeight: V,
|
|
1596
|
+
maxMenuHeight: S,
|
|
1597
|
+
menuPlacement: I,
|
|
1598
|
+
menuPosition: y,
|
|
1599
|
+
menuShouldScrollIntoView: X
|
|
1600
|
+
}, q = /* @__PURE__ */ h.createElement(xt, E({}, v, K), function(D) {
|
|
1601
|
+
var G = D.ref, T = D.placerProps, k = T.placement, R = T.maxHeight;
|
|
1602
|
+
return /* @__PURE__ */ h.createElement(t, E({}, v, K, {
|
|
1603
|
+
innerRef: G,
|
|
1604
|
+
innerProps: {
|
|
1605
|
+
onMouseDown: e.onMenuMouseDown,
|
|
1606
|
+
onMouseMove: e.onMenuMouseMove
|
|
1607
|
+
},
|
|
1608
|
+
isLoading: F,
|
|
1609
|
+
placement: k
|
|
1610
|
+
}), /* @__PURE__ */ h.createElement(jt, {
|
|
1611
|
+
captureEnabled: m,
|
|
1612
|
+
onTopArrive: j,
|
|
1613
|
+
onBottomArrive: B,
|
|
1614
|
+
lockEnabled: Z
|
|
1615
|
+
}, function(N) {
|
|
1616
|
+
return /* @__PURE__ */ h.createElement(n, E({}, v, {
|
|
1617
|
+
innerRef: function(ee) {
|
|
1618
|
+
e.getMenuListRef(ee), N(ee);
|
|
1619
|
+
},
|
|
1620
|
+
innerProps: {
|
|
1621
|
+
role: "listbox",
|
|
1622
|
+
"aria-multiselectable": v.isMulti,
|
|
1623
|
+
id: e.getElementId("listbox")
|
|
1624
|
+
},
|
|
1625
|
+
isLoading: F,
|
|
1626
|
+
maxHeight: R,
|
|
1627
|
+
focusedOption: b
|
|
1628
|
+
}), H);
|
|
1629
|
+
}));
|
|
1630
|
+
});
|
|
1631
|
+
return W || y === "fixed" ? /* @__PURE__ */ h.createElement(o, E({}, v, {
|
|
1632
|
+
appendTo: W,
|
|
1633
|
+
controlElement: this.controlRef,
|
|
1634
|
+
menuPlacement: I,
|
|
1635
|
+
menuPosition: y
|
|
1636
|
+
}), q) : q;
|
|
1637
|
+
}
|
|
1638
|
+
}, {
|
|
1639
|
+
key: "renderFormField",
|
|
1640
|
+
value: function() {
|
|
1641
|
+
var e = this, i = this.props, l = i.delimiter, d = i.isDisabled, t = i.isMulti, n = i.name, o = i.required, c = this.state.selectValue;
|
|
1642
|
+
if (o && !this.hasValue() && !d)
|
|
1643
|
+
return /* @__PURE__ */ h.createElement(en, {
|
|
1644
|
+
name: n,
|
|
1645
|
+
onFocus: this.onValueInputFocus
|
|
1646
|
+
});
|
|
1647
|
+
if (!(!n || d))
|
|
1648
|
+
if (t)
|
|
1649
|
+
if (l) {
|
|
1650
|
+
var f = c.map(function(b) {
|
|
1651
|
+
return e.getOptionValue(b);
|
|
1652
|
+
}).join(l);
|
|
1653
|
+
return /* @__PURE__ */ h.createElement("input", {
|
|
1654
|
+
name: n,
|
|
1655
|
+
type: "hidden",
|
|
1656
|
+
value: f
|
|
1657
|
+
});
|
|
1658
|
+
} else {
|
|
1659
|
+
var g = c.length > 0 ? c.map(function(b, p) {
|
|
1660
|
+
return /* @__PURE__ */ h.createElement("input", {
|
|
1661
|
+
key: "i-".concat(p),
|
|
1662
|
+
name: n,
|
|
1663
|
+
type: "hidden",
|
|
1664
|
+
value: e.getOptionValue(b)
|
|
1665
|
+
});
|
|
1666
|
+
}) : /* @__PURE__ */ h.createElement("input", {
|
|
1667
|
+
name: n,
|
|
1668
|
+
type: "hidden",
|
|
1669
|
+
value: ""
|
|
1670
|
+
});
|
|
1671
|
+
return /* @__PURE__ */ h.createElement("div", null, g);
|
|
1672
|
+
}
|
|
1673
|
+
else {
|
|
1674
|
+
var v = c[0] ? this.getOptionValue(c[0]) : "";
|
|
1675
|
+
return /* @__PURE__ */ h.createElement("input", {
|
|
1676
|
+
name: n,
|
|
1677
|
+
type: "hidden",
|
|
1678
|
+
value: v
|
|
1679
|
+
});
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
}, {
|
|
1683
|
+
key: "renderLiveRegion",
|
|
1684
|
+
value: function() {
|
|
1685
|
+
var e = this.commonProps, i = this.state, l = i.ariaSelection, d = i.focusedOption, t = i.focusedValue, n = i.isFocused, o = i.selectValue, c = this.getFocusableOptions();
|
|
1686
|
+
return /* @__PURE__ */ h.createElement(Xt, E({}, e, {
|
|
1687
|
+
id: this.getElementId("live-region"),
|
|
1688
|
+
ariaSelection: l,
|
|
1689
|
+
focusedOption: d,
|
|
1690
|
+
focusedValue: t,
|
|
1691
|
+
isFocused: n,
|
|
1692
|
+
selectValue: o,
|
|
1693
|
+
focusableOptions: c,
|
|
1694
|
+
isAppleDevice: this.state.isAppleDevice
|
|
1695
|
+
}));
|
|
1696
|
+
}
|
|
1697
|
+
}, {
|
|
1698
|
+
key: "render",
|
|
1699
|
+
value: function() {
|
|
1700
|
+
var e = this.getComponents(), i = e.Control, l = e.IndicatorsContainer, d = e.SelectContainer, t = e.ValueContainer, n = this.props, o = n.className, c = n.id, f = n.isDisabled, g = n.menuIsOpen, v = this.state.isFocused, b = this.commonProps = this.getCommonProps();
|
|
1701
|
+
return /* @__PURE__ */ h.createElement(d, E({}, b, {
|
|
1702
|
+
className: o,
|
|
1703
|
+
innerProps: {
|
|
1704
|
+
id: c,
|
|
1705
|
+
onKeyDown: this.onKeyDown
|
|
1706
|
+
},
|
|
1707
|
+
isDisabled: f,
|
|
1708
|
+
isFocused: v
|
|
1709
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ h.createElement(i, E({}, b, {
|
|
1710
|
+
innerRef: this.getControlRef,
|
|
1711
|
+
innerProps: {
|
|
1712
|
+
onMouseDown: this.onControlMouseDown,
|
|
1713
|
+
onTouchEnd: this.onControlTouchEnd
|
|
1714
|
+
},
|
|
1715
|
+
isDisabled: f,
|
|
1716
|
+
isFocused: v,
|
|
1717
|
+
menuIsOpen: g
|
|
1718
|
+
}), /* @__PURE__ */ h.createElement(t, E({}, b, {
|
|
1719
|
+
isDisabled: f
|
|
1720
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ h.createElement(l, E({}, b, {
|
|
1721
|
+
isDisabled: f
|
|
1722
|
+
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
1723
|
+
}
|
|
1724
|
+
}], [{
|
|
1725
|
+
key: "getDerivedStateFromProps",
|
|
1726
|
+
value: function(e, i) {
|
|
1727
|
+
var l = i.prevProps, d = i.clearFocusValueOnUpdate, t = i.inputIsHiddenAfterUpdate, n = i.ariaSelection, o = i.isFocused, c = i.prevWasFocused, f = i.instancePrefix, g = e.options, v = e.value, b = e.menuIsOpen, p = e.inputValue, m = e.isMulti, C = he(v), F = {};
|
|
1728
|
+
if (l && (v !== l.value || g !== l.options || b !== l.menuIsOpen || p !== l.inputValue)) {
|
|
1729
|
+
var A = b ? mn(e, C) : [], V = b ? Ge(ne(e, C), "".concat(f, "-option")) : [], S = d ? hn(i, C) : null, x = In(i, A), I = re(V, x);
|
|
1730
|
+
F = {
|
|
1731
|
+
selectValue: C,
|
|
1732
|
+
focusedOption: x,
|
|
1733
|
+
focusedOptionId: I,
|
|
1734
|
+
focusableOptionsWithIds: V,
|
|
1735
|
+
focusedValue: S,
|
|
1736
|
+
clearFocusValueOnUpdate: !1
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
var y = t != null && e !== l ? {
|
|
1740
|
+
inputIsHidden: t,
|
|
1741
|
+
inputIsHiddenAfterUpdate: void 0
|
|
1742
|
+
} : {}, W = n, Z = o && c;
|
|
1743
|
+
return o && !Z && (W = {
|
|
1744
|
+
value: te(m, C, C[0] || null),
|
|
1745
|
+
options: C,
|
|
1746
|
+
action: "initial-input-focus"
|
|
1747
|
+
}, Z = !c), (n == null ? void 0 : n.action) === "initial-input-focus" && (W = null), M(M(M({}, F), y), {}, {
|
|
1748
|
+
prevProps: e,
|
|
1749
|
+
ariaSelection: W,
|
|
1750
|
+
prevWasFocused: Z
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
}]), s;
|
|
1754
|
+
}($e);
|
|
1755
|
+
En.defaultProps = vn;
|
|
1756
|
+
export {
|
|
1757
|
+
En as S,
|
|
1758
|
+
vn as a,
|
|
1759
|
+
sn as b,
|
|
1760
|
+
kt as c,
|
|
1761
|
+
se as d,
|
|
1762
|
+
rn as g
|
|
1763
|
+
};
|