r3ui-lib 1.3.19 → 1.3.21
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/login.es.js +14 -3148
- package/dist/modules/_virtual/___vite-browser-external.js +6 -0
- package/dist/modules/_virtual/__vite-browser-external.js +4 -0
- package/dist/modules/_virtual/_commonjsHelpers.js +33 -0
- package/dist/modules/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/modules/_virtual/he.js +5 -0
- package/dist/modules/_virtual/he2.js +4 -0
- package/dist/modules/_virtual/index.js +7 -0
- package/dist/modules/_virtual/inputmask.js +7 -0
- package/dist/modules/_virtual/inputmask2.js +4 -0
- package/dist/modules/_virtual/ru.js +5 -0
- package/dist/modules/_virtual/ru2.js +4 -0
- package/dist/modules/assets/img/confirmation.png.js +4 -0
- package/dist/modules/assets/img/error.png.js +4 -0
- package/dist/modules/assets/img/preloader.gif.js +4 -0
- package/dist/modules/assets/img/regagro_logo.svg.js +4 -0
- package/dist/modules/assets/img/success.png.js +4 -0
- package/dist/modules/assets/img/warning.png.js +4 -0
- package/dist/modules/components/DefaultButton.vue.js +112 -0
- package/dist/modules/components/Divider.vue.js +33 -0
- package/dist/modules/components/Icon.vue.js +18 -0
- package/dist/modules/components/Slider.vue.js +7 -0
- package/dist/modules/components/Slider.vue2.js +127 -0
- package/dist/modules/components/Spinner.vue.js +19 -0
- package/dist/modules/components/SsoLoginPending.vue.js +7 -0
- package/dist/modules/components/SsoLoginPending.vue2.js +44 -0
- package/dist/modules/components/SsoLoginScreen.vue.js +57 -0
- package/dist/modules/components/SsoLoginScreen.vue2.js +4 -0
- package/dist/modules/components/accordions/DefaultAccordion.vue.js +7 -0
- package/dist/modules/components/accordions/DefaultAccordion.vue2.js +72 -0
- package/dist/modules/components/accordions/KindCheckboxesAccordion.vue.js +7 -0
- package/dist/modules/components/accordions/KindCheckboxesAccordion.vue2.js +152 -0
- package/dist/modules/components/buttons/AddButton.vue.js +7 -0
- package/dist/modules/components/buttons/AddButton.vue2.js +30 -0
- package/dist/modules/components/buttons/ClearFormButton.vue.js +7 -0
- package/dist/modules/components/buttons/ClearFormButton.vue2.js +28 -0
- package/dist/modules/components/buttons/CollapseButton.vue.js +7 -0
- package/dist/modules/components/buttons/CollapseButton.vue2.js +57 -0
- package/dist/modules/components/buttons/ExportButton.vue.js +7 -0
- package/dist/modules/components/buttons/ExportButton.vue2.js +28 -0
- package/dist/modules/components/buttons/PrintButton.vue.js +7 -0
- package/dist/modules/components/buttons/PrintButton.vue2.js +27 -0
- package/dist/modules/components/buttons/ToggleButtons.vue.js +7 -0
- package/dist/modules/components/buttons/ToggleButtons.vue2.js +30 -0
- package/dist/modules/components/cards/CardInfo.vue.js +7 -0
- package/dist/modules/components/cards/CardInfo.vue2.js +56 -0
- package/dist/modules/components/cards/PageCard.vue.js +7 -0
- package/dist/modules/components/cards/PageCard.vue2.js +117 -0
- package/dist/modules/components/dropdowns/DefaultDropDown.vue.js +102 -0
- package/dist/modules/components/export/ExportComponent.vue.js +7 -0
- package/dist/modules/components/export/ExportComponent.vue2.js +74 -0
- package/dist/modules/components/filters/MultipleQuickFilterComponent.vue.js +7 -0
- package/dist/modules/components/filters/MultipleQuickFilterComponent.vue2.js +34 -0
- package/dist/modules/components/form/Checkbox.vue.js +66 -0
- package/dist/modules/components/form/CustomInput.vue.js +161 -0
- package/dist/modules/components/form/FormError.vue.js +24 -0
- package/dist/modules/components/form/PasswordInput.vue.js +82 -0
- package/dist/modules/components/form/VSelect.vue.js +192 -0
- package/dist/modules/components/form/useWithPopper.js +29 -0
- package/dist/modules/components/forms/AddressForm.vue.js +7 -0
- package/dist/modules/components/forms/AddressForm.vue2.js +382 -0
- package/dist/modules/components/forms/AgeFromAgeTo.vue.js +7 -0
- package/dist/modules/components/forms/AgeFromAgeTo.vue2.js +207 -0
- package/dist/modules/components/forms/BooleanCheckbox.vue.js +7 -0
- package/dist/modules/components/forms/BooleanCheckbox.vue2.js +54 -0
- package/dist/modules/components/forms/Flatpickr.vue.js +7 -0
- package/dist/modules/components/forms/Flatpickr.vue2.js +273 -0
- package/dist/modules/components/forms/HeaderSearchForm.vue.js +7 -0
- package/dist/modules/components/forms/HeaderSearchForm.vue2.js +142 -0
- package/dist/modules/components/forms/MultiCheckbox.vue.js +7 -0
- package/dist/modules/components/forms/MultiCheckbox.vue2.js +64 -0
- package/dist/modules/components/forms/MultiInput.vue.js +7 -0
- package/dist/modules/components/forms/MultiInput.vue2.js +115 -0
- package/dist/modules/components/icons/QuestionIcon.vue.js +7 -0
- package/dist/modules/components/icons/QuestionIcon.vue2.js +56 -0
- package/dist/modules/components/layout/Breadcrumbs.vue.js +7 -0
- package/dist/modules/components/layout/Breadcrumbs.vue2.js +40 -0
- package/dist/modules/components/layout/Card.vue.js +31 -0
- package/dist/modules/components/layout/Footer.vue.js +15 -0
- package/dist/modules/components/layout/Footer.vue2.js +4 -0
- package/dist/modules/components/layout/Header.vue.js +7 -0
- package/dist/modules/components/layout/Header.vue2.js +68 -0
- package/dist/modules/components/layout/LanguageSelector.vue.js +32 -0
- package/dist/modules/components/layout/LanguageSelector.vue3.js +5 -0
- package/dist/modules/components/layout/LoginLayoutFrame.vue.js +48 -0
- package/dist/modules/components/layout/LoginLayoutFrame.vue2.js +4 -0
- package/dist/modules/components/layout/MainComponent.vue.js +50 -0
- package/dist/modules/components/layout/MainComponent.vue2.js +4 -0
- package/dist/modules/components/layout/PageTitle.vue.js +7 -0
- package/dist/modules/components/layout/PageTitle.vue2.js +40 -0
- package/dist/modules/components/logo/Logo.vue.js +7 -0
- package/dist/modules/components/logo/Logo.vue2.js +50 -0
- package/dist/modules/components/modals/ConfirmationModal.vue.js +7 -0
- package/dist/modules/components/modals/ConfirmationModal.vue2.js +154 -0
- package/dist/modules/components/modals/DefaultModal.vue.js +116 -0
- package/dist/modules/components/modals/DefaultModal.vue3.js +5 -0
- package/dist/modules/components/modals/EditTableColumnsModalComponent.vue.js +7 -0
- package/dist/modules/components/modals/EditTableColumnsModalComponent.vue2.js +41 -0
- package/dist/modules/components/modals/TableFilterModalComponent.vue.js +7 -0
- package/dist/modules/components/modals/TableFilterModalComponent.vue2.js +66 -0
- package/dist/modules/components/modals/TableFilterModalShell.vue.js +89 -0
- package/dist/modules/components/modals/TableFilterModalShell.vue2.js +4 -0
- package/dist/modules/components/notifications/ErrorMessageComponent.vue.js +7 -0
- package/dist/modules/components/notifications/ErrorMessageComponent.vue2.js +45 -0
- package/dist/modules/components/notifications/NotificationMessage.vue.js +55 -0
- package/dist/modules/components/notifications/NotificationMessage.vue2.js +4 -0
- package/dist/modules/components/notifications/Toast.vue.js +71 -0
- package/dist/modules/components/sidebar/CollapsedSidebarLink.vue.js +7 -0
- package/dist/modules/components/sidebar/CollapsedSidebarLink.vue2.js +90 -0
- package/dist/modules/components/sidebar/Sidebar.vue.js +59 -0
- package/dist/modules/components/sidebar/Sidebar.vue3.js +5 -0
- package/dist/modules/components/sidebar/SidebarLink.vue.js +7 -0
- package/dist/modules/components/sidebar/SidebarLink.vue2.js +93 -0
- package/dist/modules/components/tables/ColumnSubFilter.vue.js +7 -0
- package/dist/modules/components/tables/ColumnSubFilter.vue2.js +36 -0
- package/dist/modules/components/tables/EditTableColumns.vue.js +7 -0
- package/dist/modules/components/tables/EditTableColumns.vue2.js +125 -0
- package/dist/modules/components/tables/ManagedRemoteTable.vue.js +72 -0
- package/dist/modules/components/tables/ManagedRemoteTable.vue2.js +4 -0
- package/dist/modules/components/tables/SubFilterToggleBtn.vue.js +28 -0
- package/dist/modules/components/tables/Table.vue.js +416 -0
- package/dist/modules/components/tables/Table.vue3.js +5 -0
- package/dist/modules/components/tables/TableAppliedFiltersStorage.vue.js +7 -0
- package/dist/modules/components/tables/TableAppliedFiltersStorage.vue2.js +56 -0
- package/dist/modules/components/tables/TableColumnsButton.vue.js +27 -0
- package/dist/modules/components/tables/TableColumnsButton.vue2.js +4 -0
- package/dist/modules/components/tables/TableColumnsDialog.vue.js +67 -0
- package/dist/modules/components/tables/TableColumnsDialog.vue2.js +4 -0
- package/dist/modules/components/tables/TableColumnsModal.vue.js +27 -0
- package/dist/modules/components/tables/TableColumnsModal.vue2.js +4 -0
- package/dist/modules/components/tables/TableCount.vue.js +7 -0
- package/dist/modules/components/tables/TableCount.vue2.js +26 -0
- package/dist/modules/components/tables/TableQuickFilterComponent.vue.js +7 -0
- package/dist/modules/components/tables/TableQuickFilterComponent.vue2.js +29 -0
- package/dist/modules/components/tables/ToggleAllTableRowButtons.vue.js +7 -0
- package/dist/modules/components/tables/ToggleAllTableRowButtons.vue2.js +41 -0
- package/dist/modules/components/utilities/FilterValuesPanel.vue.js +7 -0
- package/dist/modules/components/utilities/FilterValuesPanel.vue2.js +95 -0
- package/dist/modules/composables/forms/useAddressForm.js +289 -0
- package/dist/modules/composables/forms/useFieldError.js +23 -0
- package/dist/modules/composables/forms/useSearchForm.js +52 -0
- package/dist/modules/composables/forms/useUnsavedChanges.js +84 -0
- package/dist/modules/composables/layout/useR3uiLayoutInject.js +32 -0
- package/dist/modules/composables/main/useBreadcrumbs.js +75 -0
- package/dist/modules/composables/main/useMain.js +38 -0
- package/dist/modules/composables/main/usePermissionChecker.js +15 -0
- package/dist/modules/composables/modals/useModalLayer.js +109 -0
- package/dist/modules/composables/sidebar/useSidebar.js +40 -0
- package/dist/modules/composables/table/createTableCommandScheduler.js +62 -0
- package/dist/modules/composables/table/createTableLifecycle.js +719 -0
- package/dist/modules/composables/table/createTableRebuildTransaction.js +61 -0
- package/dist/modules/composables/table/createTableSession.js +38 -0
- package/dist/modules/composables/table/createTableState.js +122 -0
- package/dist/modules/composables/table/createTabulatorAdapter.js +90 -0
- package/dist/modules/composables/table/tableQueryTransitions.js +82 -0
- package/dist/modules/composables/table/useManagedRemoteTable.js +179 -0
- package/dist/modules/composables/table/useR3uiTableDefaultInject.js +27 -0
- package/dist/modules/composables/table/useRemoteTable.js +96 -0
- package/dist/modules/composables/table/useTableColumnApply.js +38 -0
- package/dist/modules/composables/table/useTableColumns.js +70 -0
- package/dist/modules/composables/table/useTableColumnsEnhanced.js +155 -0
- package/dist/modules/composables/table/useTableColumnsIntegration.js +82 -0
- package/dist/modules/composables/table/useTableDefault.js +258 -0
- package/dist/modules/composables/table/useTableStorage.js +32 -0
- package/dist/modules/constants/authSidebar.js +36 -0
- package/dist/modules/services/AddressService.js +21 -0
- package/dist/modules/types/layoutInjectKeys.js +10 -0
- package/dist/modules/types/tableInjectKeys.js +21 -0
- package/dist/modules/types/tableInstance.js +32 -0
- package/dist/modules/utils/accordionLocalization.js +14 -0
- package/dist/modules/utils/addressFormTranslations.js +29 -0
- package/dist/modules/utils/auth/authUser.js +13 -0
- package/dist/modules/utils/auth/exchangePasswordToken.js +52 -0
- package/dist/modules/utils/auth/handlePkceCallback.js +88 -0
- package/dist/modules/utils/auth/logout.js +32 -0
- package/dist/modules/utils/auth/runLogoutHandler.js +60 -0
- package/dist/modules/utils/auth/sessionController.js +28 -0
- package/dist/modules/utils/auth/signInWithSSO.js +141 -0
- package/dist/modules/utils/authCookie.js +21 -0
- package/dist/modules/utils/constants.js +34 -0
- package/dist/modules/utils/createTabulatorLangsFromT.js +30 -0
- package/dist/modules/utils/createTabulatorTableProps.js +19 -0
- package/dist/modules/utils/helpers.js +537 -0
- package/dist/modules/utils/pkce.js +50 -0
- package/dist/modules/utils/table-columns-utils.js +59 -0
- package/dist/modules/utils/tableAdapter.js +156 -0
- package/dist/modules/utils/tableAjaxRequest.js +82 -0
- package/dist/modules/utils/tableCancellation.js +271 -0
- package/dist/modules/utils/tableColumnStorage.js +55 -0
- package/dist/modules/utils/tableData.js +118 -0
- package/dist/modules/utils/tableLoad.js +67 -0
- package/dist/modules/utils/tableLocalizations.js +6 -0
- package/dist/modules/utils/tableOperation.js +63 -0
- package/dist/modules/utils/tableProjection.js +137 -0
- package/dist/modules/utils/tableQueryParameters.js +46 -0
- package/dist/modules/utils/tableSnapshotValue.js +73 -0
- package/dist/modules/utils/tabulatorQueryAdapter.js +203 -0
- package/dist/modules/utils/tabulatorRuntime.js +131 -0
- package/dist/modules/utils/upstreamHttpStatus.js +32 -0
- package/dist/modules/vendor/@popperjs/core/lib/createPopper.js +122 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/contains.js +18 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
- package/dist/modules/vendor/@popperjs/core/lib/enums.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/arrow.js +37 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/flip.js +74 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/hide.js +44 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/offset.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
- package/dist/modules/vendor/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
- package/dist/modules/vendor/@popperjs/core/lib/popper.js +27 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/computeOffsets.js +54 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/debounce.js +13 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/detectOverflow.js +33 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getAltAxis.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/getVariation.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/math.js +6 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/mergeByName.js +15 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/orderModifiers.js +31 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/userAgent.js +9 -0
- package/dist/modules/vendor/@popperjs/core/lib/utils/within.js +12 -0
- package/dist/modules/vendor/call-bind-apply-helpers/actualApply.js +14 -0
- package/dist/modules/vendor/call-bind-apply-helpers/functionApply.js +7 -0
- package/dist/modules/vendor/call-bind-apply-helpers/functionCall.js +7 -0
- package/dist/modules/vendor/call-bind-apply-helpers/index.js +18 -0
- package/dist/modules/vendor/call-bind-apply-helpers/reflectApply.js +7 -0
- package/dist/modules/vendor/call-bound/index.js +21 -0
- package/dist/modules/vendor/dompurify/dist/purify.es.js +1522 -0
- package/dist/modules/vendor/dunder-proto/get.js +29 -0
- package/dist/modules/vendor/es-define-property/index.js +16 -0
- package/dist/modules/vendor/es-errors/eval.js +7 -0
- package/dist/modules/vendor/es-errors/index.js +7 -0
- package/dist/modules/vendor/es-errors/range.js +7 -0
- package/dist/modules/vendor/es-errors/ref.js +7 -0
- package/dist/modules/vendor/es-errors/syntax.js +7 -0
- package/dist/modules/vendor/es-errors/type.js +7 -0
- package/dist/modules/vendor/es-errors/uri.js +7 -0
- package/dist/modules/vendor/es-object-atoms/index.js +7 -0
- package/dist/modules/vendor/flatpickr/dist/esm/index.js +942 -0
- package/dist/modules/vendor/flatpickr/dist/esm/l10n/default.js +75 -0
- package/dist/modules/vendor/flatpickr/dist/esm/types/options.js +80 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/dates.js +89 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/dom.js +45 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/formatting.js +170 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/index.js +23 -0
- package/dist/modules/vendor/flatpickr/dist/esm/utils/polyfills.js +15 -0
- package/dist/modules/vendor/flatpickr/dist/l10n/he.js +56 -0
- package/dist/modules/vendor/flatpickr/dist/l10n/ru.js +73 -0
- package/dist/modules/vendor/function-bind/implementation.js +48 -0
- package/dist/modules/vendor/function-bind/index.js +11 -0
- package/dist/modules/vendor/get-intrinsic/index.js +265 -0
- package/dist/modules/vendor/get-proto/Object.getPrototypeOf.js +11 -0
- package/dist/modules/vendor/get-proto/Reflect.getPrototypeOf.js +7 -0
- package/dist/modules/vendor/get-proto/index.js +21 -0
- package/dist/modules/vendor/gopd/gOPD.js +7 -0
- package/dist/modules/vendor/gopd/index.js +17 -0
- package/dist/modules/vendor/has-symbols/index.js +13 -0
- package/dist/modules/vendor/has-symbols/shams.js +33 -0
- package/dist/modules/vendor/hasown/index.js +11 -0
- package/dist/modules/vendor/inputmask/dist/inputmask.js +3517 -0
- package/dist/modules/vendor/math-intrinsics/abs.js +7 -0
- package/dist/modules/vendor/math-intrinsics/floor.js +7 -0
- package/dist/modules/vendor/math-intrinsics/isNaN.js +9 -0
- package/dist/modules/vendor/math-intrinsics/max.js +7 -0
- package/dist/modules/vendor/math-intrinsics/min.js +7 -0
- package/dist/modules/vendor/math-intrinsics/pow.js +7 -0
- package/dist/modules/vendor/math-intrinsics/round.js +7 -0
- package/dist/modules/vendor/math-intrinsics/sign.js +13 -0
- package/dist/modules/vendor/moment/dist/moment.js +2589 -0
- package/dist/modules/vendor/nouislider/dist/nouislider.js +1064 -0
- package/dist/modules/vendor/object-inspect/index.js +376 -0
- package/dist/modules/vendor/qs/lib/formats.js +25 -0
- package/dist/modules/vendor/qs/lib/index.js +17 -0
- package/dist/modules/vendor/qs/lib/parse.js +161 -0
- package/dist/modules/vendor/qs/lib/stringify.js +197 -0
- package/dist/modules/vendor/qs/lib/utils.js +129 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/common.js +21 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-end-event.js +12 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll-step.js +21 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scroll.js +58 -0
- package/dist/modules/vendor/seamless-scroll-polyfill/lib/scrollIntoView.js +168 -0
- package/dist/modules/vendor/side-channel/index.js +35 -0
- package/dist/modules/vendor/side-channel-list/index.js +64 -0
- package/dist/modules/vendor/side-channel-map/index.js +40 -0
- package/dist/modules/vendor/side-channel-weakmap/index.js +43 -0
- package/dist/modules/vendor/tabulator-tables/dist/js/tabulator_esm.js +11127 -0
- package/dist/modules/vendor/vue-select/dist/vue-select.es.js +769 -0
- package/dist/r3ui-lib.css +1 -1
- package/dist/r3ui-lib.es.js +334 -35110
- package/dist/r3ui-lib.umd.js +12 -12
- package/dist/types/components/forms/AddressForm.vue.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,1064 @@
|
|
|
1
|
+
var B;
|
|
2
|
+
(function(r) {
|
|
3
|
+
r.Range = "range", r.Steps = "steps", r.Positions = "positions", r.Count = "count", r.Values = "values";
|
|
4
|
+
})(B || (B = {}));
|
|
5
|
+
var L;
|
|
6
|
+
(function(r) {
|
|
7
|
+
r[r.None = -1] = "None", r[r.NoValue = 0] = "NoValue", r[r.LargeValue = 1] = "LargeValue", r[r.SmallValue = 2] = "SmallValue";
|
|
8
|
+
})(L || (L = {}));
|
|
9
|
+
function be(r) {
|
|
10
|
+
return et(r) && typeof r.from == "function";
|
|
11
|
+
}
|
|
12
|
+
function et(r) {
|
|
13
|
+
return typeof r == "object" && typeof r.to == "function";
|
|
14
|
+
}
|
|
15
|
+
function zt(r) {
|
|
16
|
+
r.parentElement.removeChild(r);
|
|
17
|
+
}
|
|
18
|
+
function St(r) {
|
|
19
|
+
return r != null;
|
|
20
|
+
}
|
|
21
|
+
function Rt(r) {
|
|
22
|
+
r.preventDefault();
|
|
23
|
+
}
|
|
24
|
+
function we(r) {
|
|
25
|
+
return r.filter(function(t) {
|
|
26
|
+
return this[t] ? !1 : this[t] = !0;
|
|
27
|
+
}, {});
|
|
28
|
+
}
|
|
29
|
+
function Ce(r, t) {
|
|
30
|
+
return Math.round(r / t) * t;
|
|
31
|
+
}
|
|
32
|
+
function Ee(r, t) {
|
|
33
|
+
var s = r.getBoundingClientRect(), f = r.ownerDocument, u = f.documentElement, d = Bt(f);
|
|
34
|
+
return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (d.x = 0), t ? s.top + d.y - u.clientTop : s.left + d.x - u.clientLeft;
|
|
35
|
+
}
|
|
36
|
+
function H(r) {
|
|
37
|
+
return typeof r == "number" && !isNaN(r) && isFinite(r);
|
|
38
|
+
}
|
|
39
|
+
function jt(r, t, s) {
|
|
40
|
+
s > 0 && (_(r, t), setTimeout(function() {
|
|
41
|
+
tt(r, t);
|
|
42
|
+
}, s));
|
|
43
|
+
}
|
|
44
|
+
function Ft(r) {
|
|
45
|
+
return Math.max(Math.min(r, 100), 0);
|
|
46
|
+
}
|
|
47
|
+
function rt(r) {
|
|
48
|
+
return Array.isArray(r) ? r : [r];
|
|
49
|
+
}
|
|
50
|
+
function Pe(r) {
|
|
51
|
+
r = String(r);
|
|
52
|
+
var t = r.split(".");
|
|
53
|
+
return t.length > 1 ? t[1].length : 0;
|
|
54
|
+
}
|
|
55
|
+
function _(r, t) {
|
|
56
|
+
r.classList && !/\s/.test(t) ? r.classList.add(t) : r.className += " " + t;
|
|
57
|
+
}
|
|
58
|
+
function tt(r, t) {
|
|
59
|
+
r.classList && !/\s/.test(t) ? r.classList.remove(t) : r.className = r.className.replace(new RegExp("(^|\\b)" + t.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
60
|
+
}
|
|
61
|
+
function Ae(r, t) {
|
|
62
|
+
return r.classList ? r.classList.contains(t) : new RegExp("\\b" + t + "\\b").test(r.className);
|
|
63
|
+
}
|
|
64
|
+
function Bt(r) {
|
|
65
|
+
var t = window.pageXOffset !== void 0, s = (r.compatMode || "") === "CSS1Compat", f = t ? window.pageXOffset : s ? r.documentElement.scrollLeft : r.body.scrollLeft, u = t ? window.pageYOffset : s ? r.documentElement.scrollTop : r.body.scrollTop;
|
|
66
|
+
return {
|
|
67
|
+
x: f,
|
|
68
|
+
y: u
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function Ve() {
|
|
72
|
+
return window.navigator.pointerEnabled ? {
|
|
73
|
+
start: "pointerdown",
|
|
74
|
+
move: "pointermove",
|
|
75
|
+
end: "pointerup"
|
|
76
|
+
} : window.navigator.msPointerEnabled ? {
|
|
77
|
+
start: "MSPointerDown",
|
|
78
|
+
move: "MSPointerMove",
|
|
79
|
+
end: "MSPointerUp"
|
|
80
|
+
} : {
|
|
81
|
+
start: "mousedown touchstart",
|
|
82
|
+
move: "mousemove touchmove",
|
|
83
|
+
end: "mouseup touchend"
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function De() {
|
|
87
|
+
var r = !1;
|
|
88
|
+
try {
|
|
89
|
+
var t = Object.defineProperty({}, "passive", {
|
|
90
|
+
get: function() {
|
|
91
|
+
r = !0;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
window.addEventListener("test", null, t);
|
|
95
|
+
} catch {
|
|
96
|
+
}
|
|
97
|
+
return r;
|
|
98
|
+
}
|
|
99
|
+
function ke() {
|
|
100
|
+
return window.CSS && CSS.supports && CSS.supports("touch-action", "none");
|
|
101
|
+
}
|
|
102
|
+
function bt(r, t) {
|
|
103
|
+
return 100 / (t - r);
|
|
104
|
+
}
|
|
105
|
+
function xt(r, t, s) {
|
|
106
|
+
return t * 100 / (r[s + 1] - r[s]);
|
|
107
|
+
}
|
|
108
|
+
function ye(r, t) {
|
|
109
|
+
return xt(r, r[0] < 0 ? t + Math.abs(r[0]) : t - r[0], 0);
|
|
110
|
+
}
|
|
111
|
+
function Ue(r, t) {
|
|
112
|
+
return t * (r[1] - r[0]) / 100 + r[0];
|
|
113
|
+
}
|
|
114
|
+
function W(r, t) {
|
|
115
|
+
for (var s = 1; r >= t[s]; )
|
|
116
|
+
s += 1;
|
|
117
|
+
return s;
|
|
118
|
+
}
|
|
119
|
+
function Me(r, t, s) {
|
|
120
|
+
if (s >= r.slice(-1)[0])
|
|
121
|
+
return 100;
|
|
122
|
+
var f = W(s, r), u = r[f - 1], d = r[f], v = t[f - 1], b = t[f];
|
|
123
|
+
return v + ye([u, d], s) / bt(v, b);
|
|
124
|
+
}
|
|
125
|
+
function _e(r, t, s) {
|
|
126
|
+
if (s >= 100)
|
|
127
|
+
return r.slice(-1)[0];
|
|
128
|
+
var f = W(s, t), u = r[f - 1], d = r[f], v = t[f - 1], b = t[f];
|
|
129
|
+
return Ue([u, d], (s - v) * bt(v, b));
|
|
130
|
+
}
|
|
131
|
+
function Le(r, t, s, f) {
|
|
132
|
+
if (f === 100)
|
|
133
|
+
return f;
|
|
134
|
+
var u = W(f, r), d = r[u - 1], v = r[u];
|
|
135
|
+
return s ? f - d > (v - d) / 2 ? v : d : t[u - 1] ? r[u - 1] + Ce(f - r[u - 1], t[u - 1]) : f;
|
|
136
|
+
}
|
|
137
|
+
var Kt = (
|
|
138
|
+
/** @class */
|
|
139
|
+
(function() {
|
|
140
|
+
function r(t, s, f) {
|
|
141
|
+
this.xPct = [], this.xVal = [], this.xSteps = [], this.xNumSteps = [], this.xHighestCompleteStep = [], this.xSteps = [f || !1], this.xNumSteps = [!1], this.snap = s;
|
|
142
|
+
var u, d = [];
|
|
143
|
+
for (Object.keys(t).forEach(function(v) {
|
|
144
|
+
d.push([rt(t[v]), v]);
|
|
145
|
+
}), d.sort(function(v, b) {
|
|
146
|
+
return v[0][0] - b[0][0];
|
|
147
|
+
}), u = 0; u < d.length; u++)
|
|
148
|
+
this.handleEntryPoint(d[u][1], d[u][0]);
|
|
149
|
+
for (this.xNumSteps = this.xSteps.slice(0), u = 0; u < this.xNumSteps.length; u++)
|
|
150
|
+
this.handleStepPoint(u, this.xNumSteps[u]);
|
|
151
|
+
}
|
|
152
|
+
return r.prototype.getDistance = function(t) {
|
|
153
|
+
for (var s = [], f = 0; f < this.xNumSteps.length - 1; f++)
|
|
154
|
+
s[f] = xt(this.xVal, t, f);
|
|
155
|
+
return s;
|
|
156
|
+
}, r.prototype.getAbsoluteDistance = function(t, s, f) {
|
|
157
|
+
var u = 0;
|
|
158
|
+
if (t < this.xPct[this.xPct.length - 1])
|
|
159
|
+
for (; t > this.xPct[u + 1]; )
|
|
160
|
+
u++;
|
|
161
|
+
else t === this.xPct[this.xPct.length - 1] && (u = this.xPct.length - 2);
|
|
162
|
+
!f && t === this.xPct[u + 1] && u++, s === null && (s = []);
|
|
163
|
+
var d, v = 1, b = s[u], w = 0, p = 0, k = 0, U = 0;
|
|
164
|
+
for (f ? d = (t - this.xPct[u]) / (this.xPct[u + 1] - this.xPct[u]) : d = (this.xPct[u + 1] - t) / (this.xPct[u + 1] - this.xPct[u]); b > 0; )
|
|
165
|
+
w = this.xPct[u + 1 + U] - this.xPct[u + U], s[u + U] * v + 100 - d * 100 > 100 ? (p = w * d, v = (b - 100 * d) / s[u + U], d = 1) : (p = s[u + U] * w / 100 * v, v = 0), f ? (k = k - p, this.xPct.length + U >= 1 && U--) : (k = k + p, this.xPct.length - U >= 1 && U++), b = s[u + U] * v;
|
|
166
|
+
return t + k;
|
|
167
|
+
}, r.prototype.toStepping = function(t) {
|
|
168
|
+
return t = Me(this.xVal, this.xPct, t), t;
|
|
169
|
+
}, r.prototype.fromStepping = function(t) {
|
|
170
|
+
return _e(this.xVal, this.xPct, t);
|
|
171
|
+
}, r.prototype.getStep = function(t) {
|
|
172
|
+
return t = Le(this.xPct, this.xSteps, this.snap, t), t;
|
|
173
|
+
}, r.prototype.getDefaultStep = function(t, s, f) {
|
|
174
|
+
var u = W(t, this.xPct);
|
|
175
|
+
return (t === 100 || s && t === this.xPct[u - 1]) && (u = Math.max(u - 1, 1)), (this.xVal[u] - this.xVal[u - 1]) / f;
|
|
176
|
+
}, r.prototype.getNearbySteps = function(t) {
|
|
177
|
+
var s = W(t, this.xPct);
|
|
178
|
+
return {
|
|
179
|
+
stepBefore: {
|
|
180
|
+
startValue: this.xVal[s - 2],
|
|
181
|
+
step: this.xNumSteps[s - 2],
|
|
182
|
+
highestStep: this.xHighestCompleteStep[s - 2]
|
|
183
|
+
},
|
|
184
|
+
thisStep: {
|
|
185
|
+
startValue: this.xVal[s - 1],
|
|
186
|
+
step: this.xNumSteps[s - 1],
|
|
187
|
+
highestStep: this.xHighestCompleteStep[s - 1]
|
|
188
|
+
},
|
|
189
|
+
stepAfter: {
|
|
190
|
+
startValue: this.xVal[s],
|
|
191
|
+
step: this.xNumSteps[s],
|
|
192
|
+
highestStep: this.xHighestCompleteStep[s]
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
}, r.prototype.countStepDecimals = function() {
|
|
196
|
+
var t = this.xNumSteps.map(Pe);
|
|
197
|
+
return Math.max.apply(null, t);
|
|
198
|
+
}, r.prototype.hasNoSize = function() {
|
|
199
|
+
return this.xVal[0] === this.xVal[this.xVal.length - 1];
|
|
200
|
+
}, r.prototype.convert = function(t) {
|
|
201
|
+
return this.getStep(this.toStepping(t));
|
|
202
|
+
}, r.prototype.handleEntryPoint = function(t, s) {
|
|
203
|
+
var f;
|
|
204
|
+
if (t === "min" ? f = 0 : t === "max" ? f = 100 : f = parseFloat(t), !H(f) || !H(s[0]))
|
|
205
|
+
throw new Error("noUiSlider: 'range' value isn't numeric.");
|
|
206
|
+
this.xPct.push(f), this.xVal.push(s[0]);
|
|
207
|
+
var u = Number(s[1]);
|
|
208
|
+
f ? this.xSteps.push(isNaN(u) ? !1 : u) : isNaN(u) || (this.xSteps[0] = u), this.xHighestCompleteStep.push(0);
|
|
209
|
+
}, r.prototype.handleStepPoint = function(t, s) {
|
|
210
|
+
if (s) {
|
|
211
|
+
if (this.xVal[t] === this.xVal[t + 1]) {
|
|
212
|
+
this.xSteps[t] = this.xHighestCompleteStep[t] = this.xVal[t];
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
this.xSteps[t] = xt([this.xVal[t], this.xVal[t + 1]], s, 0) / bt(this.xPct[t], this.xPct[t + 1]);
|
|
216
|
+
var f = (this.xVal[t + 1] - this.xVal[t]) / this.xNumSteps[t], u = Math.ceil(Number(f.toFixed(3)) - 1), d = this.xVal[t] + this.xNumSteps[t] * u;
|
|
217
|
+
this.xHighestCompleteStep[t] = d;
|
|
218
|
+
}
|
|
219
|
+
}, r;
|
|
220
|
+
})()
|
|
221
|
+
), Nt = {
|
|
222
|
+
to: function(r) {
|
|
223
|
+
return r === void 0 ? "" : r.toFixed(2);
|
|
224
|
+
},
|
|
225
|
+
from: Number
|
|
226
|
+
}, It = {
|
|
227
|
+
target: "target",
|
|
228
|
+
base: "base",
|
|
229
|
+
origin: "origin",
|
|
230
|
+
handle: "handle",
|
|
231
|
+
handleLower: "handle-lower",
|
|
232
|
+
handleUpper: "handle-upper",
|
|
233
|
+
touchArea: "touch-area",
|
|
234
|
+
horizontal: "horizontal",
|
|
235
|
+
vertical: "vertical",
|
|
236
|
+
background: "background",
|
|
237
|
+
connect: "connect",
|
|
238
|
+
connects: "connects",
|
|
239
|
+
ltr: "ltr",
|
|
240
|
+
rtl: "rtl",
|
|
241
|
+
textDirectionLtr: "txt-dir-ltr",
|
|
242
|
+
textDirectionRtl: "txt-dir-rtl",
|
|
243
|
+
draggable: "draggable",
|
|
244
|
+
drag: "state-drag",
|
|
245
|
+
tap: "state-tap",
|
|
246
|
+
active: "active",
|
|
247
|
+
tooltip: "tooltip",
|
|
248
|
+
pips: "pips",
|
|
249
|
+
pipsHorizontal: "pips-horizontal",
|
|
250
|
+
pipsVertical: "pips-vertical",
|
|
251
|
+
marker: "marker",
|
|
252
|
+
markerHorizontal: "marker-horizontal",
|
|
253
|
+
markerVertical: "marker-vertical",
|
|
254
|
+
markerNormal: "marker-normal",
|
|
255
|
+
markerLarge: "marker-large",
|
|
256
|
+
markerSub: "marker-sub",
|
|
257
|
+
value: "value",
|
|
258
|
+
valueHorizontal: "value-horizontal",
|
|
259
|
+
valueVertical: "value-vertical",
|
|
260
|
+
valueNormal: "value-normal",
|
|
261
|
+
valueLarge: "value-large",
|
|
262
|
+
valueSub: "value-sub"
|
|
263
|
+
}, N = {
|
|
264
|
+
tooltips: ".__tooltips",
|
|
265
|
+
aria: ".__aria"
|
|
266
|
+
};
|
|
267
|
+
function Oe(r, t) {
|
|
268
|
+
if (!H(t))
|
|
269
|
+
throw new Error("noUiSlider: 'step' is not numeric.");
|
|
270
|
+
r.singleStep = t;
|
|
271
|
+
}
|
|
272
|
+
function He(r, t) {
|
|
273
|
+
if (!H(t))
|
|
274
|
+
throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");
|
|
275
|
+
r.keyboardPageMultiplier = t;
|
|
276
|
+
}
|
|
277
|
+
function ze(r, t) {
|
|
278
|
+
if (!H(t))
|
|
279
|
+
throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");
|
|
280
|
+
r.keyboardMultiplier = t;
|
|
281
|
+
}
|
|
282
|
+
function Re(r, t) {
|
|
283
|
+
if (!H(t))
|
|
284
|
+
throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");
|
|
285
|
+
r.keyboardDefaultStep = t;
|
|
286
|
+
}
|
|
287
|
+
function je(r, t) {
|
|
288
|
+
if (typeof t != "object" || Array.isArray(t))
|
|
289
|
+
throw new Error("noUiSlider: 'range' is not an object.");
|
|
290
|
+
if (t.min === void 0 || t.max === void 0)
|
|
291
|
+
throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
|
|
292
|
+
r.spectrum = new Kt(t, r.snap || !1, r.singleStep);
|
|
293
|
+
}
|
|
294
|
+
function Fe(r, t) {
|
|
295
|
+
if (t = rt(t), !Array.isArray(t) || !t.length)
|
|
296
|
+
throw new Error("noUiSlider: 'start' option is incorrect.");
|
|
297
|
+
r.handles = t.length, r.start = t;
|
|
298
|
+
}
|
|
299
|
+
function Ne(r, t) {
|
|
300
|
+
if (typeof t != "boolean")
|
|
301
|
+
throw new Error("noUiSlider: 'snap' option must be a boolean.");
|
|
302
|
+
r.snap = t;
|
|
303
|
+
}
|
|
304
|
+
function Be(r, t) {
|
|
305
|
+
if (typeof t != "boolean")
|
|
306
|
+
throw new Error("noUiSlider: 'animate' option must be a boolean.");
|
|
307
|
+
r.animate = t;
|
|
308
|
+
}
|
|
309
|
+
function Ke(r, t) {
|
|
310
|
+
if (typeof t != "number")
|
|
311
|
+
throw new Error("noUiSlider: 'animationDuration' option must be a number.");
|
|
312
|
+
r.animationDuration = t;
|
|
313
|
+
}
|
|
314
|
+
function qt(r, t) {
|
|
315
|
+
var s = [!1], f;
|
|
316
|
+
if (t === "lower" ? t = [!0, !1] : t === "upper" && (t = [!1, !0]), t === !0 || t === !1) {
|
|
317
|
+
for (f = 1; f < r.handles; f++)
|
|
318
|
+
s.push(t);
|
|
319
|
+
s.push(!1);
|
|
320
|
+
} else {
|
|
321
|
+
if (!Array.isArray(t) || !t.length || t.length !== r.handles + 1)
|
|
322
|
+
throw new Error("noUiSlider: 'connect' option doesn't match handle count.");
|
|
323
|
+
s = t;
|
|
324
|
+
}
|
|
325
|
+
r.connect = s;
|
|
326
|
+
}
|
|
327
|
+
function Ie(r, t) {
|
|
328
|
+
switch (t) {
|
|
329
|
+
case "horizontal":
|
|
330
|
+
r.ort = 0;
|
|
331
|
+
break;
|
|
332
|
+
case "vertical":
|
|
333
|
+
r.ort = 1;
|
|
334
|
+
break;
|
|
335
|
+
default:
|
|
336
|
+
throw new Error("noUiSlider: 'orientation' option is invalid.");
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
function Tt(r, t) {
|
|
340
|
+
if (!H(t))
|
|
341
|
+
throw new Error("noUiSlider: 'margin' option must be numeric.");
|
|
342
|
+
t !== 0 && (r.margin = r.spectrum.getDistance(t));
|
|
343
|
+
}
|
|
344
|
+
function qe(r, t) {
|
|
345
|
+
if (!H(t))
|
|
346
|
+
throw new Error("noUiSlider: 'limit' option must be numeric.");
|
|
347
|
+
if (r.limit = r.spectrum.getDistance(t), !r.limit || r.handles < 2)
|
|
348
|
+
throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
|
|
349
|
+
}
|
|
350
|
+
function Te(r, t) {
|
|
351
|
+
var s;
|
|
352
|
+
if (!H(t) && !Array.isArray(t))
|
|
353
|
+
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
354
|
+
if (Array.isArray(t) && !(t.length === 2 || H(t[0]) || H(t[1])))
|
|
355
|
+
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
356
|
+
if (t !== 0) {
|
|
357
|
+
for (Array.isArray(t) || (t = [t, t]), r.padding = [r.spectrum.getDistance(t[0]), r.spectrum.getDistance(t[1])], s = 0; s < r.spectrum.xNumSteps.length - 1; s++)
|
|
358
|
+
if (r.padding[0][s] < 0 || r.padding[1][s] < 0)
|
|
359
|
+
throw new Error("noUiSlider: 'padding' option must be a positive number(s).");
|
|
360
|
+
var f = t[0] + t[1], u = r.spectrum.xVal[0], d = r.spectrum.xVal[r.spectrum.xVal.length - 1];
|
|
361
|
+
if (f / (d - u) > 1)
|
|
362
|
+
throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function Xe(r, t) {
|
|
366
|
+
switch (t) {
|
|
367
|
+
case "ltr":
|
|
368
|
+
r.dir = 0;
|
|
369
|
+
break;
|
|
370
|
+
case "rtl":
|
|
371
|
+
r.dir = 1;
|
|
372
|
+
break;
|
|
373
|
+
default:
|
|
374
|
+
throw new Error("noUiSlider: 'direction' option was not recognized.");
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
function Ye(r, t) {
|
|
378
|
+
if (typeof t != "string")
|
|
379
|
+
throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
|
|
380
|
+
var s = t.indexOf("tap") >= 0, f = t.indexOf("drag") >= 0, u = t.indexOf("fixed") >= 0, d = t.indexOf("snap") >= 0, v = t.indexOf("hover") >= 0, b = t.indexOf("unconstrained") >= 0, w = t.indexOf("invert-connects") >= 0, p = t.indexOf("drag-all") >= 0, k = t.indexOf("smooth-steps") >= 0;
|
|
381
|
+
if (u) {
|
|
382
|
+
if (r.handles !== 2)
|
|
383
|
+
throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
|
|
384
|
+
Tt(r, r.start[1] - r.start[0]);
|
|
385
|
+
}
|
|
386
|
+
if (w && r.handles !== 2)
|
|
387
|
+
throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");
|
|
388
|
+
if (b && (r.margin || r.limit))
|
|
389
|
+
throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");
|
|
390
|
+
r.events = {
|
|
391
|
+
tap: s || d,
|
|
392
|
+
drag: f,
|
|
393
|
+
dragAll: p,
|
|
394
|
+
smoothSteps: k,
|
|
395
|
+
fixed: u,
|
|
396
|
+
snap: d,
|
|
397
|
+
hover: v,
|
|
398
|
+
unconstrained: b,
|
|
399
|
+
invertConnects: w
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
function We(r, t) {
|
|
403
|
+
if (t !== !1)
|
|
404
|
+
if (t === !0 || et(t)) {
|
|
405
|
+
r.tooltips = [];
|
|
406
|
+
for (var s = 0; s < r.handles; s++)
|
|
407
|
+
r.tooltips.push(t);
|
|
408
|
+
} else {
|
|
409
|
+
if (t = rt(t), t.length !== r.handles)
|
|
410
|
+
throw new Error("noUiSlider: must pass a formatter for all handles.");
|
|
411
|
+
t.forEach(function(f) {
|
|
412
|
+
if (typeof f != "boolean" && !et(f))
|
|
413
|
+
throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");
|
|
414
|
+
}), r.tooltips = t;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
function Ge(r, t) {
|
|
418
|
+
if (t.length !== r.handles)
|
|
419
|
+
throw new Error("noUiSlider: must pass a attributes for all handles.");
|
|
420
|
+
r.handleAttributes = t;
|
|
421
|
+
}
|
|
422
|
+
function Je(r, t) {
|
|
423
|
+
if (!et(t))
|
|
424
|
+
throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");
|
|
425
|
+
r.ariaFormat = t;
|
|
426
|
+
}
|
|
427
|
+
function Ze(r, t) {
|
|
428
|
+
if (!be(t))
|
|
429
|
+
throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
|
|
430
|
+
r.format = t;
|
|
431
|
+
}
|
|
432
|
+
function $e(r, t) {
|
|
433
|
+
if (typeof t != "boolean")
|
|
434
|
+
throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");
|
|
435
|
+
r.keyboardSupport = t;
|
|
436
|
+
}
|
|
437
|
+
function Qe(r, t) {
|
|
438
|
+
r.documentElement = t;
|
|
439
|
+
}
|
|
440
|
+
function tr(r, t) {
|
|
441
|
+
if (typeof t != "string" && t !== !1)
|
|
442
|
+
throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
|
|
443
|
+
r.cssPrefix = t;
|
|
444
|
+
}
|
|
445
|
+
function er(r, t) {
|
|
446
|
+
if (typeof t != "object")
|
|
447
|
+
throw new Error("noUiSlider: 'cssClasses' must be an object.");
|
|
448
|
+
typeof r.cssPrefix == "string" ? (r.cssClasses = {}, Object.keys(t).forEach(function(s) {
|
|
449
|
+
r.cssClasses[s] = r.cssPrefix + t[s];
|
|
450
|
+
})) : r.cssClasses = t;
|
|
451
|
+
}
|
|
452
|
+
function Xt(r) {
|
|
453
|
+
var t = {
|
|
454
|
+
margin: null,
|
|
455
|
+
limit: null,
|
|
456
|
+
padding: null,
|
|
457
|
+
animate: !0,
|
|
458
|
+
animationDuration: 300,
|
|
459
|
+
ariaFormat: Nt,
|
|
460
|
+
format: Nt
|
|
461
|
+
}, s = {
|
|
462
|
+
step: { r: !1, t: Oe },
|
|
463
|
+
keyboardPageMultiplier: { r: !1, t: He },
|
|
464
|
+
keyboardMultiplier: { r: !1, t: ze },
|
|
465
|
+
keyboardDefaultStep: { r: !1, t: Re },
|
|
466
|
+
start: { r: !0, t: Fe },
|
|
467
|
+
connect: { r: !0, t: qt },
|
|
468
|
+
direction: { r: !0, t: Xe },
|
|
469
|
+
snap: { r: !1, t: Ne },
|
|
470
|
+
animate: { r: !1, t: Be },
|
|
471
|
+
animationDuration: { r: !1, t: Ke },
|
|
472
|
+
range: { r: !0, t: je },
|
|
473
|
+
orientation: { r: !1, t: Ie },
|
|
474
|
+
margin: { r: !1, t: Tt },
|
|
475
|
+
limit: { r: !1, t: qe },
|
|
476
|
+
padding: { r: !1, t: Te },
|
|
477
|
+
behaviour: { r: !0, t: Ye },
|
|
478
|
+
ariaFormat: { r: !1, t: Je },
|
|
479
|
+
format: { r: !1, t: Ze },
|
|
480
|
+
tooltips: { r: !1, t: We },
|
|
481
|
+
keyboardSupport: { r: !0, t: $e },
|
|
482
|
+
documentElement: { r: !1, t: Qe },
|
|
483
|
+
cssPrefix: { r: !0, t: tr },
|
|
484
|
+
cssClasses: { r: !0, t: er },
|
|
485
|
+
handleAttributes: { r: !1, t: Ge }
|
|
486
|
+
}, f = {
|
|
487
|
+
connect: !1,
|
|
488
|
+
direction: "ltr",
|
|
489
|
+
behaviour: "tap",
|
|
490
|
+
orientation: "horizontal",
|
|
491
|
+
keyboardSupport: !0,
|
|
492
|
+
cssPrefix: "noUi-",
|
|
493
|
+
cssClasses: It,
|
|
494
|
+
keyboardPageMultiplier: 5,
|
|
495
|
+
keyboardMultiplier: 1,
|
|
496
|
+
keyboardDefaultStep: 10
|
|
497
|
+
};
|
|
498
|
+
r.format && !r.ariaFormat && (r.ariaFormat = r.format), Object.keys(s).forEach(function(w) {
|
|
499
|
+
if (!St(r[w]) && f[w] === void 0) {
|
|
500
|
+
if (s[w].r)
|
|
501
|
+
throw new Error("noUiSlider: '" + w + "' is required.");
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
s[w].t(t, St(r[w]) ? r[w] : f[w]);
|
|
505
|
+
}), t.pips = r.pips;
|
|
506
|
+
var u = document.createElement("div"), d = u.style.msTransform !== void 0, v = u.style.transform !== void 0;
|
|
507
|
+
t.transformRule = v ? "transform" : d ? "msTransform" : "webkitTransform";
|
|
508
|
+
var b = [
|
|
509
|
+
["left", "top"],
|
|
510
|
+
["right", "bottom"]
|
|
511
|
+
];
|
|
512
|
+
return t.style = b[t.dir][t.ort], t;
|
|
513
|
+
}
|
|
514
|
+
function rr(r, t, s) {
|
|
515
|
+
var f = Ve(), u = ke(), d = u && De(), v = r, b, w, p, k, U, F, m = t.spectrum, z = [], C = [], O = [], it = 0, R = {}, T = !1, q = r.ownerDocument, G = t.documentElement || q.documentElement, J = q.body, Yt = q.dir === "rtl" || t.ort === 1 ? 0 : 100;
|
|
516
|
+
function j(e, i) {
|
|
517
|
+
var a = q.createElement("div");
|
|
518
|
+
return i && _(a, i), e.appendChild(a), a;
|
|
519
|
+
}
|
|
520
|
+
function Wt(e, i) {
|
|
521
|
+
var a = j(e, t.cssClasses.origin), n = j(a, t.cssClasses.handle);
|
|
522
|
+
if (j(n, t.cssClasses.touchArea), n.setAttribute("data-handle", String(i)), t.keyboardSupport && (n.setAttribute("tabindex", "0"), n.addEventListener("keydown", function(l) {
|
|
523
|
+
return ue(l, i);
|
|
524
|
+
})), t.handleAttributes !== void 0) {
|
|
525
|
+
var o = t.handleAttributes[i];
|
|
526
|
+
Object.keys(o).forEach(function(l) {
|
|
527
|
+
n.setAttribute(l, o[l]);
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
return n.setAttribute("role", "slider"), n.setAttribute("aria-orientation", t.ort ? "vertical" : "horizontal"), i === 0 ? _(n, t.cssClasses.handleLower) : i === t.handles - 1 && _(n, t.cssClasses.handleUpper), a.handle = n, a;
|
|
531
|
+
}
|
|
532
|
+
function at(e, i) {
|
|
533
|
+
return i ? j(e, t.cssClasses.connect) : !1;
|
|
534
|
+
}
|
|
535
|
+
function Gt(e, i) {
|
|
536
|
+
w = j(i, t.cssClasses.connects), p = [], k = [], k.push(at(w, e[0]));
|
|
537
|
+
for (var a = 0; a < t.handles; a++)
|
|
538
|
+
p.push(Wt(i, a)), O[a] = a, k.push(at(w, e[a + 1]));
|
|
539
|
+
}
|
|
540
|
+
function Jt(e) {
|
|
541
|
+
_(e, t.cssClasses.target), t.dir === 0 ? _(e, t.cssClasses.ltr) : _(e, t.cssClasses.rtl), t.ort === 0 ? _(e, t.cssClasses.horizontal) : _(e, t.cssClasses.vertical);
|
|
542
|
+
var i = getComputedStyle(e).direction;
|
|
543
|
+
return i === "rtl" ? _(e, t.cssClasses.textDirectionRtl) : _(e, t.cssClasses.textDirectionLtr), j(e, t.cssClasses.base);
|
|
544
|
+
}
|
|
545
|
+
function Zt(e, i) {
|
|
546
|
+
return !t.tooltips || !t.tooltips[i] ? !1 : j(e.firstChild, t.cssClasses.tooltip);
|
|
547
|
+
}
|
|
548
|
+
function wt() {
|
|
549
|
+
return v.hasAttribute("disabled");
|
|
550
|
+
}
|
|
551
|
+
function nt(e) {
|
|
552
|
+
var i = p[e];
|
|
553
|
+
return i.hasAttribute("disabled");
|
|
554
|
+
}
|
|
555
|
+
function $t(e) {
|
|
556
|
+
e != null ? (p[e].setAttribute("disabled", ""), p[e].handle.removeAttribute("tabindex")) : (v.setAttribute("disabled", ""), p.forEach(function(i) {
|
|
557
|
+
i.handle.removeAttribute("tabindex");
|
|
558
|
+
}));
|
|
559
|
+
}
|
|
560
|
+
function Qt(e) {
|
|
561
|
+
e != null ? (p[e].removeAttribute("disabled"), p[e].handle.setAttribute("tabindex", "0")) : (v.removeAttribute("disabled"), p.forEach(function(i) {
|
|
562
|
+
i.removeAttribute("disabled"), i.handle.setAttribute("tabindex", "0");
|
|
563
|
+
}));
|
|
564
|
+
}
|
|
565
|
+
function st() {
|
|
566
|
+
F && (X("update" + N.tooltips), F.forEach(function(e) {
|
|
567
|
+
e && zt(e);
|
|
568
|
+
}), F = null);
|
|
569
|
+
}
|
|
570
|
+
function Ct() {
|
|
571
|
+
st(), F = p.map(Zt), ct("update" + N.tooltips, function(e, i, a) {
|
|
572
|
+
if (!(!F || !t.tooltips) && F[i] !== !1) {
|
|
573
|
+
var n = e[i];
|
|
574
|
+
t.tooltips[i] !== !0 && (n = t.tooltips[i].to(a[i])), F[i].innerHTML = n;
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
function te() {
|
|
579
|
+
X("update" + N.aria), ct("update" + N.aria, function(e, i, a, n, o) {
|
|
580
|
+
O.forEach(function(l) {
|
|
581
|
+
var h = p[l], c = Z(C, l, 0, !0, !0, !0), S = Z(C, l, 100, !0, !0, !0), x = o[l], E = String(t.ariaFormat.to(a[l]));
|
|
582
|
+
c = m.fromStepping(c).toFixed(1), S = m.fromStepping(S).toFixed(1), x = m.fromStepping(x).toFixed(1), h.children[0].setAttribute("aria-valuemin", c), h.children[0].setAttribute("aria-valuemax", S), h.children[0].setAttribute("aria-valuenow", x), h.children[0].setAttribute("aria-valuetext", E);
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
function ee(e) {
|
|
587
|
+
if (e.mode === B.Range || e.mode === B.Steps)
|
|
588
|
+
return m.xVal;
|
|
589
|
+
if (e.mode === B.Count) {
|
|
590
|
+
if (e.values < 2)
|
|
591
|
+
throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
|
|
592
|
+
for (var i = e.values - 1, a = 100 / i, n = []; i--; )
|
|
593
|
+
n[i] = i * a;
|
|
594
|
+
return n.push(100), Et(n, e.stepped);
|
|
595
|
+
}
|
|
596
|
+
return e.mode === B.Positions ? Et(e.values, e.stepped) : e.mode === B.Values ? e.stepped ? e.values.map(function(o) {
|
|
597
|
+
return m.fromStepping(m.getStep(m.toStepping(o)));
|
|
598
|
+
}) : e.values : [];
|
|
599
|
+
}
|
|
600
|
+
function Et(e, i) {
|
|
601
|
+
return e.map(function(a) {
|
|
602
|
+
return m.fromStepping(i ? m.getStep(a) : a);
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
function re(e) {
|
|
606
|
+
function i(x, E) {
|
|
607
|
+
return Number((x + E).toFixed(7));
|
|
608
|
+
}
|
|
609
|
+
var a = ee(e), n = {}, o = m.xVal[0], l = m.xVal[m.xVal.length - 1], h = !1, c = !1, S = 0;
|
|
610
|
+
return a = we(a.slice().sort(function(x, E) {
|
|
611
|
+
return x - E;
|
|
612
|
+
})), a[0] !== o && (a.unshift(o), h = !0), a[a.length - 1] !== l && (a.push(l), c = !0), a.forEach(function(x, E) {
|
|
613
|
+
var P, g, V, M = x, D = a[E + 1], y, dt, pt, mt, Lt, gt, Ot, Ht = e.mode === B.Steps;
|
|
614
|
+
for (Ht && (P = m.xNumSteps[E]), P || (P = D - M), D === void 0 && (D = M), P = Math.max(P, 1e-7), g = M; g <= D; g = i(g, P)) {
|
|
615
|
+
for (y = m.toStepping(g), dt = y - S, Lt = dt / (e.density || 1), gt = Math.round(Lt), Ot = dt / gt, V = 1; V <= gt; V += 1)
|
|
616
|
+
pt = S + V * Ot, n[pt.toFixed(5)] = [m.fromStepping(pt), 0];
|
|
617
|
+
mt = a.indexOf(g) > -1 ? L.LargeValue : Ht ? L.SmallValue : L.NoValue, !E && h && g !== D && (mt = 0), g === D && c || (n[y.toFixed(5)] = [g, mt]), S = y;
|
|
618
|
+
}
|
|
619
|
+
}), n;
|
|
620
|
+
}
|
|
621
|
+
function ie(e, i, a) {
|
|
622
|
+
var n, o, l = q.createElement("div"), h = (n = {}, n[L.None] = "", n[L.NoValue] = t.cssClasses.valueNormal, n[L.LargeValue] = t.cssClasses.valueLarge, n[L.SmallValue] = t.cssClasses.valueSub, n), c = (o = {}, o[L.None] = "", o[L.NoValue] = t.cssClasses.markerNormal, o[L.LargeValue] = t.cssClasses.markerLarge, o[L.SmallValue] = t.cssClasses.markerSub, o), S = [t.cssClasses.valueHorizontal, t.cssClasses.valueVertical], x = [t.cssClasses.markerHorizontal, t.cssClasses.markerVertical];
|
|
623
|
+
_(l, t.cssClasses.pips), _(l, t.ort === 0 ? t.cssClasses.pipsHorizontal : t.cssClasses.pipsVertical);
|
|
624
|
+
function E(g, V) {
|
|
625
|
+
var M = V === t.cssClasses.value, D = M ? S : x, y = M ? h : c;
|
|
626
|
+
return V + " " + D[t.ort] + " " + y[g];
|
|
627
|
+
}
|
|
628
|
+
function P(g, V, M) {
|
|
629
|
+
if (M = i ? i(V, M) : M, M !== L.None) {
|
|
630
|
+
var D = j(l, !1);
|
|
631
|
+
D.className = E(M, t.cssClasses.marker), D.style[t.style] = g + "%", M > L.NoValue && (D = j(l, !1), D.className = E(M, t.cssClasses.value), D.setAttribute("data-value", String(V)), D.style[t.style] = g + "%", D.innerHTML = String(a.to(V)));
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
return Object.keys(e).forEach(function(g) {
|
|
635
|
+
P(g, e[g][0], e[g][1]);
|
|
636
|
+
}), l;
|
|
637
|
+
}
|
|
638
|
+
function ot() {
|
|
639
|
+
U && (zt(U), U = null);
|
|
640
|
+
}
|
|
641
|
+
function lt(e) {
|
|
642
|
+
ot();
|
|
643
|
+
var i = re(e), a = e.filter, n = e.format || {
|
|
644
|
+
to: function(o) {
|
|
645
|
+
return String(Math.round(o));
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
return U = v.appendChild(ie(i, a, n)), U;
|
|
649
|
+
}
|
|
650
|
+
function Pt() {
|
|
651
|
+
var e = b.getBoundingClientRect(), i = "offset" + ["Width", "Height"][t.ort];
|
|
652
|
+
return t.ort === 0 ? e.width || b[i] : e.height || b[i];
|
|
653
|
+
}
|
|
654
|
+
function K(e, i, a, n) {
|
|
655
|
+
var o = function(h) {
|
|
656
|
+
var c = ae(h, n.pageOffset, n.target || i);
|
|
657
|
+
if (!c || wt() && !n.doNotReject || Ae(v, t.cssClasses.tap) && !n.doNotReject || e === f.start && c.buttons !== void 0 && c.buttons > 1 || n.hover && c.buttons)
|
|
658
|
+
return !1;
|
|
659
|
+
d || c.preventDefault(), c.calcPoint = c.points[t.ort], a(c, n);
|
|
660
|
+
}, l = [];
|
|
661
|
+
return e.split(" ").forEach(function(h) {
|
|
662
|
+
i.addEventListener(h, o, d ? { passive: !0 } : !1), l.push([h, o]);
|
|
663
|
+
}), l;
|
|
664
|
+
}
|
|
665
|
+
function ae(e, i, a) {
|
|
666
|
+
var n = e.type.indexOf("touch") === 0, o = e.type.indexOf("mouse") === 0, l = e.type.indexOf("pointer") === 0, h = 0, c = 0;
|
|
667
|
+
if (e.type.indexOf("MSPointer") === 0 && (l = !0), e.type === "mousedown" && !e.buttons && !e.touches)
|
|
668
|
+
return !1;
|
|
669
|
+
if (n) {
|
|
670
|
+
var S = function(P) {
|
|
671
|
+
var g = P.target;
|
|
672
|
+
return g === a || a.contains(g) || e.composed && e.composedPath().shift() === a;
|
|
673
|
+
};
|
|
674
|
+
if (e.type === "touchstart") {
|
|
675
|
+
var x = Array.prototype.filter.call(e.touches, S);
|
|
676
|
+
if (x.length > 1)
|
|
677
|
+
return !1;
|
|
678
|
+
h = x[0].pageX, c = x[0].pageY;
|
|
679
|
+
} else {
|
|
680
|
+
var E = Array.prototype.find.call(e.changedTouches, S);
|
|
681
|
+
if (!E)
|
|
682
|
+
return !1;
|
|
683
|
+
h = E.pageX, c = E.pageY;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
return i = i || Bt(q), (o || l) && (h = e.clientX + i.x, c = e.clientY + i.y), e.pageOffset = i, e.points = [h, c], e.cursor = o || l, e;
|
|
687
|
+
}
|
|
688
|
+
function At(e) {
|
|
689
|
+
var i = e - Ee(b, t.ort), a = i * 100 / Pt();
|
|
690
|
+
return a = Ft(a), t.dir ? 100 - a : a;
|
|
691
|
+
}
|
|
692
|
+
function ne(e) {
|
|
693
|
+
var i = 100, a = !1;
|
|
694
|
+
return p.forEach(function(n, o) {
|
|
695
|
+
if (!nt(o)) {
|
|
696
|
+
var l = C[o], h = Math.abs(l - e), c = h === 100 && i === 100, S = h < i, x = h <= i && e > l;
|
|
697
|
+
(S || x || c) && (a = o, i = h);
|
|
698
|
+
}
|
|
699
|
+
}), a;
|
|
700
|
+
}
|
|
701
|
+
function se(e, i) {
|
|
702
|
+
e.type === "mouseout" && e.target.nodeName === "HTML" && e.relatedTarget === null && ft(e, i);
|
|
703
|
+
}
|
|
704
|
+
function oe(e, i) {
|
|
705
|
+
if (navigator.appVersion.indexOf("MSIE 9") === -1 && e.buttons === 0 && i.buttonsProperty !== 0)
|
|
706
|
+
return ft(e, i);
|
|
707
|
+
var a = (t.dir ? -1 : 1) * (e.calcPoint - i.startCalcPoint), n = a * 100 / i.baseSize;
|
|
708
|
+
Dt(a > 0, n, i.locations, i.handleNumbers, i.connect);
|
|
709
|
+
}
|
|
710
|
+
function ft(e, i) {
|
|
711
|
+
i.handle && (tt(i.handle, t.cssClasses.active), it -= 1), i.listeners.forEach(function(a) {
|
|
712
|
+
G.removeEventListener(a[0], a[1]);
|
|
713
|
+
}), it === 0 && (tt(v, t.cssClasses.drag), vt(), e.cursor && (J.style.cursor = "", J.removeEventListener("selectstart", Rt))), t.events.smoothSteps && (i.handleNumbers.forEach(function(a) {
|
|
714
|
+
I(a, C[a], !0, !0, !1, !1);
|
|
715
|
+
}), i.handleNumbers.forEach(function(a) {
|
|
716
|
+
A("update", a);
|
|
717
|
+
})), i.handleNumbers.forEach(function(a) {
|
|
718
|
+
A("change", a), A("set", a), A("end", a);
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
function ut(e, i) {
|
|
722
|
+
if (!i.handleNumbers.some(nt)) {
|
|
723
|
+
var a;
|
|
724
|
+
if (i.handleNumbers.length === 1) {
|
|
725
|
+
var n = p[i.handleNumbers[0]];
|
|
726
|
+
a = n.children[0], it += 1, _(a, t.cssClasses.active);
|
|
727
|
+
}
|
|
728
|
+
e.stopPropagation();
|
|
729
|
+
var o = [], l = K(f.move, G, oe, {
|
|
730
|
+
// The event target has changed so we need to propagate the original one so that we keep
|
|
731
|
+
// relying on it to extract target touches.
|
|
732
|
+
target: e.target,
|
|
733
|
+
handle: a,
|
|
734
|
+
connect: i.connect,
|
|
735
|
+
listeners: o,
|
|
736
|
+
startCalcPoint: e.calcPoint,
|
|
737
|
+
baseSize: Pt(),
|
|
738
|
+
pageOffset: e.pageOffset,
|
|
739
|
+
handleNumbers: i.handleNumbers,
|
|
740
|
+
buttonsProperty: e.buttons,
|
|
741
|
+
locations: C.slice()
|
|
742
|
+
}), h = K(f.end, G, ft, {
|
|
743
|
+
target: e.target,
|
|
744
|
+
handle: a,
|
|
745
|
+
listeners: o,
|
|
746
|
+
doNotReject: !0,
|
|
747
|
+
handleNumbers: i.handleNumbers
|
|
748
|
+
}), c = K("mouseout", G, se, {
|
|
749
|
+
target: e.target,
|
|
750
|
+
handle: a,
|
|
751
|
+
listeners: o,
|
|
752
|
+
doNotReject: !0,
|
|
753
|
+
handleNumbers: i.handleNumbers
|
|
754
|
+
});
|
|
755
|
+
o.push.apply(o, l.concat(h, c)), e.cursor && (J.style.cursor = getComputedStyle(e.target).cursor, p.length > 1 && _(v, t.cssClasses.drag), J.addEventListener("selectstart", Rt, !1)), i.handleNumbers.forEach(function(S) {
|
|
756
|
+
A("start", S);
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
function le(e) {
|
|
761
|
+
e.stopPropagation();
|
|
762
|
+
var i = At(e.calcPoint), a = ne(i);
|
|
763
|
+
a !== !1 && (t.events.snap || jt(v, t.cssClasses.tap, t.animationDuration), I(a, i, !0, !0), vt(), A("slide", a, !0), A("update", a, !0), t.events.snap ? ut(e, { handleNumbers: [a] }) : (A("change", a, !0), A("set", a, !0)));
|
|
764
|
+
}
|
|
765
|
+
function fe(e) {
|
|
766
|
+
var i = At(e.calcPoint), a = m.getStep(i), n = m.fromStepping(a);
|
|
767
|
+
Object.keys(R).forEach(function(o) {
|
|
768
|
+
o.split(".")[0] === "hover" && R[o].forEach(function(l) {
|
|
769
|
+
l.call(Q, n);
|
|
770
|
+
});
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
function ue(e, i) {
|
|
774
|
+
if (wt() || nt(i))
|
|
775
|
+
return !1;
|
|
776
|
+
var a = ["Left", "Right"], n = ["Down", "Up"], o = ["PageDown", "PageUp"], l = ["Home", "End"];
|
|
777
|
+
t.dir && !t.ort ? a.reverse() : t.ort && !t.dir && (n.reverse(), o.reverse());
|
|
778
|
+
var h = e.key.replace("Arrow", ""), c = h === o[0], S = h === o[1], x = h === n[0] || h === a[0] || c, E = h === n[1] || h === a[1] || S, P = h === l[0], g = h === l[1];
|
|
779
|
+
if (!x && !E && !P && !g)
|
|
780
|
+
return !0;
|
|
781
|
+
e.preventDefault();
|
|
782
|
+
var V;
|
|
783
|
+
if (E || x) {
|
|
784
|
+
var M = x ? 0 : 1, D = Mt(i), y = D[M];
|
|
785
|
+
if (y === null)
|
|
786
|
+
return !1;
|
|
787
|
+
y === !1 && (y = m.getDefaultStep(C[i], x, t.keyboardDefaultStep)), S || c ? y *= t.keyboardPageMultiplier : y *= t.keyboardMultiplier, y = Math.max(y, 1e-7), y = (x ? -1 : 1) * y, V = z[i] + y;
|
|
788
|
+
} else g ? V = t.spectrum.xVal[t.spectrum.xVal.length - 1] : V = t.spectrum.xVal[0];
|
|
789
|
+
return I(i, m.toStepping(V), !0, !0), A("slide", i), A("update", i), A("change", i), A("set", i), !1;
|
|
790
|
+
}
|
|
791
|
+
function Vt(e) {
|
|
792
|
+
e.fixed || p.forEach(function(i, a) {
|
|
793
|
+
K(f.start, i.children[0], ut, {
|
|
794
|
+
handleNumbers: [a]
|
|
795
|
+
});
|
|
796
|
+
}), e.tap && K(f.start, b, le, {}), e.hover && K(f.move, b, fe, {
|
|
797
|
+
hover: !0
|
|
798
|
+
}), e.drag && k.forEach(function(i, a) {
|
|
799
|
+
if (!(i === !1 || a === 0 || a === k.length - 1)) {
|
|
800
|
+
var n = p[a - 1], o = p[a], l = [i], h = [n, o], c = [a - 1, a];
|
|
801
|
+
_(i, t.cssClasses.draggable), e.fixed && (l.push(n.children[0]), l.push(o.children[0])), e.dragAll && (h = p, c = O), l.forEach(function(S) {
|
|
802
|
+
K(f.start, S, ut, {
|
|
803
|
+
handles: h,
|
|
804
|
+
handleNumbers: c,
|
|
805
|
+
connect: i
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
function ct(e, i) {
|
|
812
|
+
R[e] = R[e] || [], R[e].push(i), e.split(".")[0] === "update" && p.forEach(function(a, n) {
|
|
813
|
+
A("update", n);
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
function ce(e) {
|
|
817
|
+
return e === N.aria || e === N.tooltips;
|
|
818
|
+
}
|
|
819
|
+
function X(e) {
|
|
820
|
+
var i = e && e.split(".")[0], a = i ? e.substring(i.length) : e;
|
|
821
|
+
Object.keys(R).forEach(function(n) {
|
|
822
|
+
var o = n.split(".")[0], l = n.substring(o.length);
|
|
823
|
+
(!i || i === o) && (!a || a === l) && (!ce(l) || a === l) && delete R[n];
|
|
824
|
+
});
|
|
825
|
+
}
|
|
826
|
+
function A(e, i, a) {
|
|
827
|
+
Object.keys(R).forEach(function(n) {
|
|
828
|
+
var o = n.split(".")[0];
|
|
829
|
+
e === o && R[n].forEach(function(l) {
|
|
830
|
+
l.call(
|
|
831
|
+
// Use the slider public API as the scope ('this')
|
|
832
|
+
Q,
|
|
833
|
+
// Return values as array, so arg_1[arg_2] is always valid.
|
|
834
|
+
z.map(t.format.to),
|
|
835
|
+
// Handle index, 0 or 1
|
|
836
|
+
i,
|
|
837
|
+
// Un-formatted slider values
|
|
838
|
+
z.slice(),
|
|
839
|
+
// Event is fired by tap, true or false
|
|
840
|
+
a || !1,
|
|
841
|
+
// Left offset of the handle, in relation to the slider
|
|
842
|
+
C.slice(),
|
|
843
|
+
// add the slider public API to an accessible parameter when this is unavailable
|
|
844
|
+
Q
|
|
845
|
+
);
|
|
846
|
+
});
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
function Z(e, i, a, n, o, l, h) {
|
|
850
|
+
var c;
|
|
851
|
+
return p.length > 1 && !t.events.unconstrained && (n && i > 0 && (c = m.getAbsoluteDistance(e[i - 1], t.margin, !1), a = Math.max(a, c)), o && i < p.length - 1 && (c = m.getAbsoluteDistance(e[i + 1], t.margin, !0), a = Math.min(a, c))), p.length > 1 && t.limit && (n && i > 0 && (c = m.getAbsoluteDistance(e[i - 1], t.limit, !1), a = Math.min(a, c)), o && i < p.length - 1 && (c = m.getAbsoluteDistance(e[i + 1], t.limit, !0), a = Math.max(a, c))), t.padding && (i === 0 && (c = m.getAbsoluteDistance(0, t.padding[0], !1), a = Math.max(a, c)), i === p.length - 1 && (c = m.getAbsoluteDistance(100, t.padding[1], !0), a = Math.min(a, c))), h || (a = m.getStep(a)), a = Ft(a), a === e[i] && !l ? !1 : a;
|
|
852
|
+
}
|
|
853
|
+
function ht(e, i) {
|
|
854
|
+
var a = t.ort;
|
|
855
|
+
return (a ? i : e) + ", " + (a ? e : i);
|
|
856
|
+
}
|
|
857
|
+
function Dt(e, i, a, n, o) {
|
|
858
|
+
var l = a.slice(), h = n[0], c = t.events.smoothSteps, S = [!e, e], x = [e, !e];
|
|
859
|
+
n = n.slice(), e && n.reverse(), n.length > 1 ? n.forEach(function(P, g) {
|
|
860
|
+
var V = Z(l, P, l[P] + i, S[g], x[g], !1, c);
|
|
861
|
+
V === !1 ? i = 0 : (i = V - l[P], l[P] = V);
|
|
862
|
+
}) : S = x = [!0];
|
|
863
|
+
var E = !1;
|
|
864
|
+
n.forEach(function(P, g) {
|
|
865
|
+
E = I(P, a[P] + i, S[g], x[g], !1, c) || E;
|
|
866
|
+
}), E && (n.forEach(function(P) {
|
|
867
|
+
A("update", P), A("slide", P);
|
|
868
|
+
}), o != null && A("drag", h));
|
|
869
|
+
}
|
|
870
|
+
function kt(e, i) {
|
|
871
|
+
return t.dir ? 100 - e - i : e;
|
|
872
|
+
}
|
|
873
|
+
function he(e, i) {
|
|
874
|
+
C[e] = i, z[e] = m.fromStepping(i);
|
|
875
|
+
var a = kt(i, 0) - Yt, n = "translate(" + ht(a + "%", "0") + ")";
|
|
876
|
+
if (p[e].style[t.transformRule] = n, t.events.invertConnects && C.length > 1) {
|
|
877
|
+
var o = C.every(function(l, h, c) {
|
|
878
|
+
return h === 0 || l >= c[h - 1];
|
|
879
|
+
});
|
|
880
|
+
if (T !== !o) {
|
|
881
|
+
Se();
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
Y(e), Y(e + 1), T && (Y(e - 1), Y(e + 2));
|
|
886
|
+
}
|
|
887
|
+
function vt() {
|
|
888
|
+
O.forEach(function(e) {
|
|
889
|
+
var i = C[e] > 50 ? -1 : 1, a = 3 + (p.length + i * e);
|
|
890
|
+
p[e].style.zIndex = String(a);
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
function I(e, i, a, n, o, l) {
|
|
894
|
+
return o || (i = Z(C, e, i, a, n, !1, l)), i === !1 ? !1 : (he(e, i), !0);
|
|
895
|
+
}
|
|
896
|
+
function Y(e) {
|
|
897
|
+
if (k[e]) {
|
|
898
|
+
var i = C.slice();
|
|
899
|
+
T && i.sort(function(c, S) {
|
|
900
|
+
return c - S;
|
|
901
|
+
});
|
|
902
|
+
var a = 0, n = 100;
|
|
903
|
+
e !== 0 && (a = i[e - 1]), e !== k.length - 1 && (n = i[e]);
|
|
904
|
+
var o = n - a, l = "translate(" + ht(kt(a, o) + "%", "0") + ")", h = "scale(" + ht(o / 100, "1") + ")";
|
|
905
|
+
k[e].style[t.transformRule] = l + " " + h;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
function yt(e, i) {
|
|
909
|
+
return e === null || e === !1 || e === void 0 || (typeof e == "number" && (e = String(e)), e = t.format.from(e), e !== !1 && (e = m.toStepping(e)), e === !1 || isNaN(e)) ? C[i] : e;
|
|
910
|
+
}
|
|
911
|
+
function $(e, i, a) {
|
|
912
|
+
var n = rt(e), o = C[0] === void 0;
|
|
913
|
+
i = i === void 0 ? !0 : i, t.animate && !o && jt(v, t.cssClasses.tap, t.animationDuration), O.forEach(function(c) {
|
|
914
|
+
I(c, yt(n[c], c), !0, !1, a);
|
|
915
|
+
});
|
|
916
|
+
var l = O.length === 1 ? 0 : 1;
|
|
917
|
+
if (o && m.hasNoSize() && (a = !0, C[0] = 0, O.length > 1)) {
|
|
918
|
+
var h = 100 / (O.length - 1);
|
|
919
|
+
O.forEach(function(c) {
|
|
920
|
+
C[c] = c * h;
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
for (; l < O.length; ++l)
|
|
924
|
+
O.forEach(function(c) {
|
|
925
|
+
I(c, C[c], !0, !0, a);
|
|
926
|
+
});
|
|
927
|
+
vt(), O.forEach(function(c) {
|
|
928
|
+
A("update", c), n[c] !== null && i && A("set", c);
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
function ve(e) {
|
|
932
|
+
$(t.start, e);
|
|
933
|
+
}
|
|
934
|
+
function de(e, i, a, n) {
|
|
935
|
+
if (e = Number(e), !(e >= 0 && e < O.length))
|
|
936
|
+
throw new Error("noUiSlider: invalid handle number, got: " + e);
|
|
937
|
+
I(e, yt(i, e), !0, !0, n), A("update", e), a && A("set", e);
|
|
938
|
+
}
|
|
939
|
+
function Ut(e) {
|
|
940
|
+
if (e === void 0 && (e = !1), e)
|
|
941
|
+
return z.length === 1 ? z[0] : z.slice(0);
|
|
942
|
+
var i = z.map(t.format.to);
|
|
943
|
+
return i.length === 1 ? i[0] : i;
|
|
944
|
+
}
|
|
945
|
+
function pe() {
|
|
946
|
+
for (X(N.aria), X(N.tooltips), Object.keys(t.cssClasses).forEach(function(e) {
|
|
947
|
+
tt(v, t.cssClasses[e]);
|
|
948
|
+
}); v.firstChild; )
|
|
949
|
+
v.removeChild(v.firstChild);
|
|
950
|
+
delete v.noUiSlider;
|
|
951
|
+
}
|
|
952
|
+
function Mt(e) {
|
|
953
|
+
var i = C[e], a = m.getNearbySteps(i), n = z[e], o = a.thisStep.step, l = null;
|
|
954
|
+
if (t.snap)
|
|
955
|
+
return [
|
|
956
|
+
n - a.stepBefore.startValue || null,
|
|
957
|
+
a.stepAfter.startValue - n || null
|
|
958
|
+
];
|
|
959
|
+
o !== !1 && n + o > a.stepAfter.startValue && (o = a.stepAfter.startValue - n), n > a.thisStep.startValue ? l = a.thisStep.step : a.stepBefore.step === !1 ? l = !1 : l = n - a.stepBefore.highestStep, i === 100 ? o = null : i === 0 && (l = null);
|
|
960
|
+
var h = m.countStepDecimals();
|
|
961
|
+
return o !== null && o !== !1 && (o = Number(o.toFixed(h))), l !== null && l !== !1 && (l = Number(l.toFixed(h))), [l, o];
|
|
962
|
+
}
|
|
963
|
+
function me() {
|
|
964
|
+
return O.map(Mt);
|
|
965
|
+
}
|
|
966
|
+
function ge(e, i) {
|
|
967
|
+
var a = Ut(), n = [
|
|
968
|
+
"margin",
|
|
969
|
+
"limit",
|
|
970
|
+
"padding",
|
|
971
|
+
"range",
|
|
972
|
+
"animate",
|
|
973
|
+
"snap",
|
|
974
|
+
"step",
|
|
975
|
+
"format",
|
|
976
|
+
"pips",
|
|
977
|
+
"tooltips",
|
|
978
|
+
"connect"
|
|
979
|
+
];
|
|
980
|
+
n.forEach(function(l) {
|
|
981
|
+
e[l] !== void 0 && (s[l] = e[l]);
|
|
982
|
+
});
|
|
983
|
+
var o = Xt(s);
|
|
984
|
+
n.forEach(function(l) {
|
|
985
|
+
e[l] !== void 0 && (t[l] = o[l]);
|
|
986
|
+
}), m = o.spectrum, t.margin = o.margin, t.limit = o.limit, t.padding = o.padding, t.pips ? lt(t.pips) : ot(), t.tooltips ? Ct() : st(), C = [], $(St(e.start) ? e.start : a, i), e.connect && _t();
|
|
987
|
+
}
|
|
988
|
+
function _t() {
|
|
989
|
+
for (; w.firstChild; )
|
|
990
|
+
w.removeChild(w.firstChild);
|
|
991
|
+
for (var e = 0; e <= t.handles; e++)
|
|
992
|
+
k[e] = at(w, t.connect[e]), Y(e);
|
|
993
|
+
Vt({ drag: t.events.drag, fixed: !0 });
|
|
994
|
+
}
|
|
995
|
+
function Se() {
|
|
996
|
+
T = !T, qt(
|
|
997
|
+
t,
|
|
998
|
+
// inverse the connect boolean array
|
|
999
|
+
t.connect.map(function(e) {
|
|
1000
|
+
return !e;
|
|
1001
|
+
})
|
|
1002
|
+
), _t();
|
|
1003
|
+
}
|
|
1004
|
+
function xe() {
|
|
1005
|
+
b = Jt(v), Gt(t.connect, b), Vt(t.events), $(t.start), t.pips && lt(t.pips), t.tooltips && Ct(), te();
|
|
1006
|
+
}
|
|
1007
|
+
xe();
|
|
1008
|
+
var Q = {
|
|
1009
|
+
destroy: pe,
|
|
1010
|
+
steps: me,
|
|
1011
|
+
on: ct,
|
|
1012
|
+
off: X,
|
|
1013
|
+
get: Ut,
|
|
1014
|
+
set: $,
|
|
1015
|
+
setHandle: de,
|
|
1016
|
+
reset: ve,
|
|
1017
|
+
disable: $t,
|
|
1018
|
+
enable: Qt,
|
|
1019
|
+
// Exposed for unit testing, don't use this in your application.
|
|
1020
|
+
__moveHandles: function(e, i, a) {
|
|
1021
|
+
Dt(e, i, C, a);
|
|
1022
|
+
},
|
|
1023
|
+
options: s,
|
|
1024
|
+
updateOptions: ge,
|
|
1025
|
+
target: v,
|
|
1026
|
+
removePips: ot,
|
|
1027
|
+
removeTooltips: st,
|
|
1028
|
+
getPositions: function() {
|
|
1029
|
+
return C.slice();
|
|
1030
|
+
},
|
|
1031
|
+
getTooltips: function() {
|
|
1032
|
+
return F;
|
|
1033
|
+
},
|
|
1034
|
+
getOrigins: function() {
|
|
1035
|
+
return p;
|
|
1036
|
+
},
|
|
1037
|
+
pips: lt
|
|
1038
|
+
// Issue #594
|
|
1039
|
+
};
|
|
1040
|
+
return Q;
|
|
1041
|
+
}
|
|
1042
|
+
function ir(r, t) {
|
|
1043
|
+
if (!r || !r.nodeName)
|
|
1044
|
+
throw new Error("noUiSlider: create requires a single element, got: " + r);
|
|
1045
|
+
if (r.noUiSlider)
|
|
1046
|
+
throw new Error("noUiSlider: Slider was already initialized.");
|
|
1047
|
+
var s = Xt(t), f = rr(r, s, t);
|
|
1048
|
+
return r.noUiSlider = f, f;
|
|
1049
|
+
}
|
|
1050
|
+
const ar = {
|
|
1051
|
+
// Exposed for unit testing, don't use this in your application.
|
|
1052
|
+
__spectrum: Kt,
|
|
1053
|
+
// A reference to the default classes, allows global changes.
|
|
1054
|
+
// Use the cssClasses option for changes to one slider.
|
|
1055
|
+
cssClasses: It,
|
|
1056
|
+
create: ir
|
|
1057
|
+
};
|
|
1058
|
+
export {
|
|
1059
|
+
B as PipsMode,
|
|
1060
|
+
L as PipsType,
|
|
1061
|
+
ir as create,
|
|
1062
|
+
It as cssClasses,
|
|
1063
|
+
ar as default
|
|
1064
|
+
};
|