@luzmo/lucero 0.0.3 → 0.0.6
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/components/accordion/accordion-item.d.ts +24 -0
- package/components/accordion/accordion.d.ts +42 -0
- package/components/accordion/index.cjs +43 -0
- package/components/accordion/index.d.ts +10 -0
- package/components/accordion/index.js +181 -0
- package/components/action-bar/action-bar.d.ts +42 -0
- package/components/action-bar/index.cjs +39 -0
- package/components/action-bar/index.d.ts +7 -0
- package/components/action-bar/index.js +107 -0
- package/components/action-button/action-button.d.ts +81 -0
- package/components/action-button/index.cjs +24 -0
- package/components/action-button/index.d.ts +7 -0
- package/components/action-button/index.js +161 -0
- package/components/action-group/action-group.d.ts +50 -0
- package/components/action-group/index.cjs +18 -0
- package/components/action-group/index.d.ts +7 -0
- package/components/action-group/index.js +29 -0
- package/components/action-group-B7oQXv30.js +258 -0
- package/components/action-group-C8YUQzt8.cjs +20 -0
- package/components/action-menu/action-menu.d.ts +40 -0
- package/components/action-menu/index.cjs +56 -0
- package/components/action-menu/index.d.ts +7 -0
- package/components/action-menu/index.js +126 -0
- package/components/async-directive-BhRGSTWB.js +82 -0
- package/components/async-directive-_65ULPLK.cjs +22 -0
- package/components/avatar/avatar.d.ts +31 -0
- package/components/avatar/index.cjs +24 -0
- package/components/avatar/index.d.ts +7 -0
- package/components/avatar/index.js +81 -0
- package/components/base-BjTwmyRF.cjs +22 -0
- package/components/base-CxUap9HL.js +665 -0
- package/components/base-D76d76ww.js +26 -0
- package/components/base-rtxi7uaR.cjs +40 -0
- package/components/button/button-base.d.ts +44 -0
- package/components/button/button.d.ts +59 -0
- package/components/button/clear-button.d.ts +22 -0
- package/components/button/close-button.d.ts +24 -0
- package/components/button/index.cjs +20 -0
- package/components/button/index.d.ts +13 -0
- package/components/button/index.js +127 -0
- package/components/button-base-CgrTYVgq.js +142 -0
- package/components/button-base-DjqSZyn2.cjs +25 -0
- package/components/button-group/button-group.d.ts +19 -0
- package/components/button-group/index.cjs +18 -0
- package/components/button-group/index.d.ts +7 -0
- package/components/button-group/index.js +59 -0
- package/components/checkbox/checkbox-base.d.ts +9 -0
- package/components/checkbox/checkbox-mixin.d.ts +14 -0
- package/components/checkbox/checkbox.d.ts +54 -0
- package/components/checkbox/index.cjs +25 -0
- package/components/checkbox/index.d.ts +7 -0
- package/components/checkbox/index.js +96 -0
- package/components/checkbox-mixin-BRluTF9s.js +70 -0
- package/components/checkbox-mixin-iB-0ivgo.cjs +27 -0
- package/components/clear-button-CyLF5dx_.js +53 -0
- package/components/clear-button-DFXE6MLx.cjs +18 -0
- package/components/close-button-CcD-aVqh.cjs +18 -0
- package/components/close-button-CzpdWCWI.js +51 -0
- package/components/color-Bg3tYsAQ.js +178 -0
- package/components/color-DphK4hwx.cjs +18 -0
- package/components/color-area/color-area.d.ts +67 -0
- package/components/color-area/index.cjs +80 -0
- package/components/color-area/index.d.ts +7 -0
- package/components/color-area/index.js +372 -0
- package/components/color-field/color-field.d.ts +20 -0
- package/components/color-field/index.cjs +23 -0
- package/components/color-field/index.d.ts +7 -0
- package/components/color-field/index.js +80 -0
- package/components/color-handle/color-handle.d.ts +13 -0
- package/components/color-handle/index.cjs +24 -0
- package/components/color-handle/index.d.ts +7 -0
- package/components/color-handle/index.js +73 -0
- package/components/color-loupe/color-loupe.d.ts +7 -0
- package/components/color-loupe/index.cjs +18 -0
- package/components/color-loupe/index.d.ts +7 -0
- package/components/color-loupe/index.js +29 -0
- package/components/color-loupe-BN3k1ACF.cjs +56 -0
- package/components/color-loupe-CD-dhmB1.js +81 -0
- package/components/color-menu/color-menu.d.ts +54 -0
- package/components/color-menu/index.cjs +86 -0
- package/components/color-menu/index.d.ts +7 -0
- package/components/color-menu/index.js +203 -0
- package/components/color-picker/color-picker.d.ts +39 -0
- package/components/color-picker/index.cjs +48 -0
- package/components/color-picker/index.d.ts +7 -0
- package/components/color-picker/index.js +141 -0
- package/components/color-slider/color-slider.d.ts +57 -0
- package/components/color-slider/index.cjs +57 -0
- package/components/color-slider/index.d.ts +7 -0
- package/components/color-slider/index.js +317 -0
- package/components/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
- package/components/condition-attribute-with-id-Dv4lSRbe.js +31 -0
- package/components/dependency-manger-C5HCkMMB.cjs +18 -0
- package/components/dependency-manger-CEXvGQUV.js +54 -0
- package/components/directive-C7oCP5Bh.cjs +22 -0
- package/components/directive-helpers-C3pAxRR3.cjs +22 -0
- package/components/directive-helpers-D0vm0gvF.js +28 -0
- package/components/directive-oAbCiebi.js +44 -0
- package/components/divider/divider.d.ts +24 -0
- package/components/divider/index.cjs +18 -0
- package/components/divider/index.d.ts +7 -0
- package/components/divider/index.js +61 -0
- package/components/divider.module-CXMNveQc.cjs +18 -0
- package/components/divider.module-DwOuLGU3.js +21 -0
- package/components/element-resolution-BvRLGqIU.cjs +18 -0
- package/components/element-resolution-FCUT-wql.js +91 -0
- package/components/field-group/field-group.d.ts +24 -0
- package/components/field-group/index.cjs +18 -0
- package/components/field-group/index.d.ts +7 -0
- package/components/field-group/index.js +29 -0
- package/components/field-group-DAImvhSF.js +66 -0
- package/components/field-group-d5Hkb8UW.cjs +23 -0
- package/components/field-label/field-label.d.ts +50 -0
- package/components/field-label/index.cjs +18 -0
- package/components/field-label/index.d.ts +7 -0
- package/components/field-label/index.js +29 -0
- package/components/field-label-D1zKXSG6.cjs +25 -0
- package/components/field-label-DY9iRmRI.js +106 -0
- package/components/focus-group-DHeTq18L.js +218 -0
- package/components/focus-group-DnxZUBhQ.cjs +18 -0
- package/components/focus-visible-B0P9aY_G.cjs +18 -0
- package/components/focus-visible-DBlJGoEW.js +74 -0
- package/components/focusable-Bze9xE25.js +153 -0
- package/components/focusable-DyyBr-J-.cjs +18 -0
- package/components/focusable-selectors-B4YgbghQ.js +31 -0
- package/components/focusable-selectors-BgFlyFcY.cjs +18 -0
- package/components/icon/icon-base.d.ts +11 -0
- package/components/icon/icon.d.ts +12 -0
- package/components/icon/index.cjs +18 -0
- package/components/icon/index.d.ts +7 -0
- package/components/icon/index.js +88 -0
- package/components/if-defined-C-8FyBSN.cjs +22 -0
- package/components/if-defined-XzWkhMhg.js +27 -0
- package/components/index-C1chwzNp.js +727 -0
- package/components/index-CNtoBntg.cjs +77 -0
- package/components/index-Ci6Jnhu4.js +927 -0
- package/components/index-DCKCHDTt.cjs +18 -0
- package/components/index.cjs +27 -0
- package/components/index.js +207 -0
- package/components/infield-button/index.cjs +22 -0
- package/components/infield-button/index.d.ts +7 -0
- package/components/infield-button/index.js +64 -0
- package/components/infield-button/infield-button.d.ts +25 -0
- package/components/label/index.cjs +18 -0
- package/components/label/index.d.ts +7 -0
- package/components/label/index.js +51 -0
- package/components/label/label.d.ts +7 -0
- package/components/legend-position/index.d.ts +7 -0
- package/components/legend-position/legend-position.d.ts +10 -0
- package/components/like-anchor-DKuw8fJA.cjs +32 -0
- package/components/like-anchor-DnsAwo_O.js +69 -0
- package/components/manage-help-text-B-FXFXgT.js +92 -0
- package/components/manage-help-text-I5aYDAKT.cjs +30 -0
- package/components/menu/index.cjs +18 -0
- package/components/menu/index.d.ts +16 -0
- package/components/menu/index.js +32 -0
- package/components/menu/menu-divider.d.ts +14 -0
- package/components/menu/menu-group.d.ts +17 -0
- package/components/menu/menu-item.d.ts +125 -0
- package/components/menu/menu.d.ts +119 -0
- package/components/multi-language-field/index.cjs +39 -0
- package/components/multi-language-field/index.d.ts +7 -0
- package/components/multi-language-field/index.js +148 -0
- package/components/multi-language-field/multi-language-field.d.ts +41 -0
- package/components/mutation-controller-DH7YOCyj.js +52 -0
- package/components/mutation-controller-DkOMCW-c.cjs +22 -0
- package/components/number-field/index.cjs +57 -0
- package/components/number-field/index.d.ts +7 -0
- package/components/number-field/index.js +735 -0
- package/components/number-field/number-field.d.ts +113 -0
- package/components/observe-slot-text-DeSKIzvP.cjs +18 -0
- package/components/observe-slot-text-DrM71me1.js +87 -0
- package/components/overlay/abstract-overlay.d.ts +72 -0
- package/components/overlay/click-controller.d.ts +14 -0
- package/components/overlay/events.d.ts +23 -0
- package/components/overlay/full-size-plugin.d.ts +12 -0
- package/components/overlay/hover-controller.d.ts +20 -0
- package/components/overlay/index.cjs +73 -0
- package/components/overlay/index.d.ts +22 -0
- package/components/overlay/index.js +342 -0
- package/components/overlay/interaction-controller.d.ts +38 -0
- package/components/overlay/loader.d.ts +4 -0
- package/components/overlay/longpress-controller.d.ts +21 -0
- package/components/overlay/overlay-dialog.d.ts +4 -0
- package/components/overlay/overlay-events.d.ts +11 -0
- package/components/overlay/overlay-no-popover.d.ts +4 -0
- package/components/overlay/overlay-popover.d.ts +4 -0
- package/components/overlay/overlay-stack.d.ts +44 -0
- package/components/overlay/overlay-timer.d.ts +21 -0
- package/components/overlay/overlay-trigger-directive.d.ts +26 -0
- package/components/overlay/overlay-trigger.d.ts +53 -0
- package/components/overlay/overlay-types.d.ts +50 -0
- package/components/overlay/overlay.d.ts +464 -0
- package/components/overlay/placement-controller.d.ts +157 -0
- package/components/overlay/slottable-request-directive.d.ts +17 -0
- package/components/overlay/slottable-request-event.d.ts +12 -0
- package/components/overlay/strategies.d.ts +8 -0
- package/components/overlay/virtual-trigger.d.ts +7 -0
- package/components/overlay-C2Cck0Az.js +2712 -0
- package/components/overlay-dn6Xe_vz.cjs +47 -0
- package/components/pending-state--XOfTjzE.js +61 -0
- package/components/pending-state-BeJ7iP-O.cjs +26 -0
- package/components/picker/desktop-controller.d.ts +7 -0
- package/components/picker/index.cjs +18 -0
- package/components/picker/index.d.ts +7 -0
- package/components/picker/index.js +32 -0
- package/components/picker/interaction-controller.d.ts +43 -0
- package/components/picker/mobile-controller.d.ts +9 -0
- package/components/picker/picker.d.ts +154 -0
- package/components/picker/strategies.d.ts +6 -0
- package/components/picker-8cOc-jjh.cjs +127 -0
- package/components/picker-BZAWrSDk.js +655 -0
- package/components/platform-CQzYNWKq.cjs +18 -0
- package/components/platform-DQYMG7JI.js +54 -0
- package/components/popover/index.cjs +18 -0
- package/components/popover/index.d.ts +7 -0
- package/components/popover/index.js +29 -0
- package/components/popover/popover.d.ts +29 -0
- package/components/popover-CCzs4VH8.cjs +30 -0
- package/components/popover-D0EliN0L.js +67 -0
- package/components/progress-circle/index.cjs +18 -0
- package/components/progress-circle/index.d.ts +7 -0
- package/components/progress-circle/index.js +29 -0
- package/components/progress-circle/progress-circle.d.ts +35 -0
- package/components/progress-circle-DYSSkjlY.cjs +33 -0
- package/components/progress-circle-_-9sAlMM.js +97 -0
- package/components/query-BL-TJj7K.cjs +22 -0
- package/components/query-D_KR_GUc.js +51 -0
- package/components/query-assigned-elements-DjfhL1cl.js +36 -0
- package/components/query-assigned-elements-DsKsfk7G.cjs +22 -0
- package/components/query-assigned-nodes-BcKWmGzy.cjs +22 -0
- package/components/query-assigned-nodes-C76XVPWY.js +36 -0
- package/components/radio/index.cjs +22 -0
- package/components/radio/index.d.ts +10 -0
- package/components/radio/index.js +191 -0
- package/components/radio/radio-group.d.ts +27 -0
- package/components/radio/radio.d.ts +39 -0
- package/components/random-id-ByCz1xaq.js +26 -0
- package/components/random-id-CqvckpWe.cjs +18 -0
- package/components/roving-tabindex-By_fCy_e.cjs +18 -0
- package/components/roving-tabindex-DOg4z6ZU.js +66 -0
- package/components/search/index.cjs +45 -0
- package/components/search/index.d.ts +7 -0
- package/components/search/index.js +131 -0
- package/components/search/search.d.ts +27 -0
- package/components/sized-mixin-BAI6NiE2.cjs +18 -0
- package/components/sized-mixin-DcJTTohI.js +63 -0
- package/components/slider/index.cjs +18 -0
- package/components/slider/index.d.ts +7 -0
- package/components/slider/index.js +1158 -0
- package/components/slider/slider.d.ts +24 -0
- package/components/slottable-request-event-BfUUt1Mh.cjs +18 -0
- package/components/slottable-request-event-DggLA4Rx.js +31 -0
- package/components/state-D8vot9IB.js +29 -0
- package/components/state-WWHLNMRG.cjs +22 -0
- package/components/streaming-listener-BbmNyKWO.js +125 -0
- package/components/streaming-listener-C2A7ZJZP.cjs +18 -0
- package/components/style-map-CoBJRbvu.js +53 -0
- package/components/style-map-DH0jkl7s.cjs +22 -0
- package/components/swatch/index.cjs +49 -0
- package/components/swatch/index.d.ts +10 -0
- package/components/swatch/index.js +342 -0
- package/components/swatch/swatch-group.d.ts +41 -0
- package/components/swatch/swatch.d.ts +40 -0
- package/components/switch/index.cjs +22 -0
- package/components/switch/index.d.ts +7 -0
- package/components/switch/index.js +73 -0
- package/components/switch/switch.d.ts +27 -0
- package/components/tags/index.cjs +32 -0
- package/components/tags/index.d.ts +10 -0
- package/components/tags/index.js +173 -0
- package/components/tags/tag.d.ts +29 -0
- package/components/tags/tags.d.ts +28 -0
- package/components/text-field/help-text-manager.d.ts +19 -0
- package/components/text-field/help-text.d.ts +20 -0
- package/components/text-field/index.cjs +21 -0
- package/components/text-field/index.d.ts +14 -0
- package/components/text-field/index.js +62 -0
- package/components/text-field/manage-help-text.d.ts +13 -0
- package/components/text-field/text-field.d.ts +142 -0
- package/components/text-field-05QNK_Lj.js +313 -0
- package/components/text-field-BU7yxiOR.cjs +85 -0
- package/components/toast/index.cjs +51 -0
- package/components/toast/index.d.ts +7 -0
- package/components/toast/index.js +153 -0
- package/components/toast/toast.d.ts +77 -0
- package/components/tooltip/index.cjs +45 -0
- package/components/tooltip/index.d.ts +8 -0
- package/components/tooltip/index.js +220 -0
- package/components/tooltip/tooltip-directive.d.ts +5 -0
- package/components/tooltip/tooltip.d.ts +55 -0
- package/components/unit-input/index.cjs +43 -0
- package/components/unit-input/index.d.ts +7 -0
- package/components/unit-input/index.js +183 -0
- package/components/unit-input/unit-input.d.ts +33 -0
- package/components/when-CDK1Tt5Y.js +28 -0
- package/components/when-CDZyJPvd.cjs +22 -0
- package/index.d.ts +39 -0
- package/package.json +139 -101
- package/utils/base.d.ts +16 -0
- package/utils/condition-attribute-with-id.d.ts +2 -0
- package/utils/first-focusable-in.d.ts +3 -0
- package/utils/focus-visible.d.ts +29 -0
- package/utils/focusable-selectors.d.ts +2 -0
- package/utils/focusable.d.ts +58 -0
- package/utils/get-css-variable.d.ts +1 -0
- package/utils/get-label-from-slot.d.ts +1 -0
- package/utils/like-anchor.d.ts +23 -0
- package/utils/observe-slot-presence.d.ts +12 -0
- package/utils/observe-slot-text.d.ts +11 -0
- package/utils/platform.d.ts +10 -0
- package/utils/random-id.d.ts +1 -0
- package/utils/reactive-controllers/color.d.ts +54 -0
- package/utils/reactive-controllers/dependency-manger.d.ts +26 -0
- package/utils/reactive-controllers/element-resolution.d.ts +23 -0
- package/utils/reactive-controllers/focus-group.d.ts +62 -0
- package/utils/reactive-controllers/language-resolution.d.ts +11 -0
- package/utils/reactive-controllers/match-media.d.ts +13 -0
- package/utils/reactive-controllers/pending-state.d.ts +41 -0
- package/utils/reactive-controllers/roving-tabindex.d.ts +19 -0
- package/utils/reparent-child.d.ts +4 -0
- package/utils/sized-mixin.d.ts +17 -0
- package/utils/streaming-listener.d.ts +48 -0
|
@@ -0,0 +1,1158 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import { L as Ct, r as Et, x as yt, n as Y } from "../base-CxUap9HL.js";
|
|
19
|
+
import { S as At } from "../sized-mixin-DcJTTohI.js";
|
|
20
|
+
const kt = () => {
|
|
21
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
22
|
+
const r = document.createElement("style");
|
|
23
|
+
r.setAttribute("data-luzmo-vars", ""), r.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(r);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
kt();
|
|
27
|
+
var q;
|
|
28
|
+
(function(r) {
|
|
29
|
+
r.Range = "range", r.Steps = "steps", r.Positions = "positions", r.Count = "count", r.Values = "values";
|
|
30
|
+
})(q || (q = {}));
|
|
31
|
+
var _;
|
|
32
|
+
(function(r) {
|
|
33
|
+
r[r.None = -1] = "None", r[r.NoValue = 0] = "NoValue", r[r.LargeValue = 1] = "LargeValue", r[r.SmallValue = 2] = "SmallValue";
|
|
34
|
+
})(_ || (_ = {}));
|
|
35
|
+
function Pt(r) {
|
|
36
|
+
return oe(r) && typeof r.from == "function";
|
|
37
|
+
}
|
|
38
|
+
function oe(r) {
|
|
39
|
+
return typeof r == "object" && typeof r.to == "function";
|
|
40
|
+
}
|
|
41
|
+
function Ne(r) {
|
|
42
|
+
r.parentElement.removeChild(r);
|
|
43
|
+
}
|
|
44
|
+
function Se(r) {
|
|
45
|
+
return r != null;
|
|
46
|
+
}
|
|
47
|
+
function Be(r) {
|
|
48
|
+
r.preventDefault();
|
|
49
|
+
}
|
|
50
|
+
function Vt(r) {
|
|
51
|
+
return r.filter(function(e) {
|
|
52
|
+
return this[e] ? !1 : this[e] = !0;
|
|
53
|
+
}, {});
|
|
54
|
+
}
|
|
55
|
+
function Dt(r, e) {
|
|
56
|
+
return Math.round(r / e) * e;
|
|
57
|
+
}
|
|
58
|
+
function Mt(r, e) {
|
|
59
|
+
var a = r.getBoundingClientRect(), c = r.ownerDocument, u = c.documentElement, m = Ke(c);
|
|
60
|
+
return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (m.x = 0), e ? a.top + m.y - u.clientTop : a.left + m.x - u.clientLeft;
|
|
61
|
+
}
|
|
62
|
+
function L(r) {
|
|
63
|
+
return typeof r == "number" && !isNaN(r) && isFinite(r);
|
|
64
|
+
}
|
|
65
|
+
function qe(r, e, a) {
|
|
66
|
+
a > 0 && (M(r, e), setTimeout(function() {
|
|
67
|
+
ie(r, e);
|
|
68
|
+
}, a));
|
|
69
|
+
}
|
|
70
|
+
function Ie(r) {
|
|
71
|
+
return Math.max(Math.min(r, 100), 0);
|
|
72
|
+
}
|
|
73
|
+
function ne(r) {
|
|
74
|
+
return Array.isArray(r) ? r : [r];
|
|
75
|
+
}
|
|
76
|
+
function _t(r) {
|
|
77
|
+
r = String(r);
|
|
78
|
+
var e = r.split(".");
|
|
79
|
+
return e.length > 1 ? e[1].length : 0;
|
|
80
|
+
}
|
|
81
|
+
function M(r, e) {
|
|
82
|
+
r.classList && !/\s/.test(e) ? r.classList.add(e) : r.className += " " + e;
|
|
83
|
+
}
|
|
84
|
+
function ie(r, e) {
|
|
85
|
+
r.classList && !/\s/.test(e) ? r.classList.remove(e) : r.className = r.className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
86
|
+
}
|
|
87
|
+
function Ot(r, e) {
|
|
88
|
+
return r.classList ? r.classList.contains(e) : new RegExp("\\b" + e + "\\b").test(r.className);
|
|
89
|
+
}
|
|
90
|
+
function Ke(r) {
|
|
91
|
+
var e = window.pageXOffset !== void 0, a = (r.compatMode || "") === "CSS1Compat", c = e ? window.pageXOffset : a ? r.documentElement.scrollLeft : r.body.scrollLeft, u = e ? window.pageYOffset : a ? r.documentElement.scrollTop : r.body.scrollTop;
|
|
92
|
+
return {
|
|
93
|
+
x: c,
|
|
94
|
+
y: u
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function Lt() {
|
|
98
|
+
return window.navigator.pointerEnabled ? {
|
|
99
|
+
start: "pointerdown",
|
|
100
|
+
move: "pointermove",
|
|
101
|
+
end: "pointerup"
|
|
102
|
+
} : window.navigator.msPointerEnabled ? {
|
|
103
|
+
start: "MSPointerDown",
|
|
104
|
+
move: "MSPointerMove",
|
|
105
|
+
end: "MSPointerUp"
|
|
106
|
+
} : {
|
|
107
|
+
start: "mousedown touchstart",
|
|
108
|
+
move: "mousemove touchmove",
|
|
109
|
+
end: "mouseup touchend"
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function Ht() {
|
|
113
|
+
var r = !1;
|
|
114
|
+
try {
|
|
115
|
+
var e = Object.defineProperty({}, "passive", {
|
|
116
|
+
get: function() {
|
|
117
|
+
r = !0;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
window.addEventListener("test", null, e);
|
|
121
|
+
} catch {
|
|
122
|
+
}
|
|
123
|
+
return r;
|
|
124
|
+
}
|
|
125
|
+
function Rt() {
|
|
126
|
+
return window.CSS && CSS.supports && CSS.supports("touch-action", "none");
|
|
127
|
+
}
|
|
128
|
+
function Ue(r, e) {
|
|
129
|
+
return 100 / (e - r);
|
|
130
|
+
}
|
|
131
|
+
function we(r, e, a) {
|
|
132
|
+
return e * 100 / (r[a + 1] - r[a]);
|
|
133
|
+
}
|
|
134
|
+
function jt(r, e) {
|
|
135
|
+
return we(r, r[0] < 0 ? e + Math.abs(r[0]) : e - r[0], 0);
|
|
136
|
+
}
|
|
137
|
+
function Ft(r, e) {
|
|
138
|
+
return e * (r[1] - r[0]) / 100 + r[0];
|
|
139
|
+
}
|
|
140
|
+
function Z(r, e) {
|
|
141
|
+
for (var a = 1; r >= e[a]; )
|
|
142
|
+
a += 1;
|
|
143
|
+
return a;
|
|
144
|
+
}
|
|
145
|
+
function Nt(r, e, a) {
|
|
146
|
+
if (a >= r.slice(-1)[0])
|
|
147
|
+
return 100;
|
|
148
|
+
var c = Z(a, r), u = r[c - 1], m = r[c], h = e[c - 1], z = e[c];
|
|
149
|
+
return h + jt([u, m], a) / Ue(h, z);
|
|
150
|
+
}
|
|
151
|
+
function Bt(r, e, a) {
|
|
152
|
+
if (a >= 100)
|
|
153
|
+
return r.slice(-1)[0];
|
|
154
|
+
var c = Z(a, e), u = r[c - 1], m = r[c], h = e[c - 1], z = e[c];
|
|
155
|
+
return Ft([u, m], (a - h) * Ue(h, z));
|
|
156
|
+
}
|
|
157
|
+
function qt(r, e, a, c) {
|
|
158
|
+
if (c === 100)
|
|
159
|
+
return c;
|
|
160
|
+
var u = Z(c, r), m = r[u - 1], h = r[u];
|
|
161
|
+
return a ? c - m > (h - m) / 2 ? h : m : e[u - 1] ? r[u - 1] + Dt(c - r[u - 1], e[u - 1]) : c;
|
|
162
|
+
}
|
|
163
|
+
var Ye = (
|
|
164
|
+
/** @class */
|
|
165
|
+
function() {
|
|
166
|
+
function r(e, a, c) {
|
|
167
|
+
this.xPct = [], this.xVal = [], this.xSteps = [], this.xNumSteps = [], this.xHighestCompleteStep = [], this.xSteps = [c || !1], this.xNumSteps = [!1], this.snap = a;
|
|
168
|
+
var u, m = [];
|
|
169
|
+
for (Object.keys(e).forEach(function(h) {
|
|
170
|
+
m.push([ne(e[h]), h]);
|
|
171
|
+
}), m.sort(function(h, z) {
|
|
172
|
+
return h[0][0] - z[0][0];
|
|
173
|
+
}), u = 0; u < m.length; u++)
|
|
174
|
+
this.handleEntryPoint(m[u][1], m[u][0]);
|
|
175
|
+
for (this.xNumSteps = this.xSteps.slice(0), u = 0; u < this.xNumSteps.length; u++)
|
|
176
|
+
this.handleStepPoint(u, this.xNumSteps[u]);
|
|
177
|
+
}
|
|
178
|
+
return r.prototype.getDistance = function(e) {
|
|
179
|
+
for (var a = [], c = 0; c < this.xNumSteps.length - 1; c++)
|
|
180
|
+
a[c] = we(this.xVal, e, c);
|
|
181
|
+
return a;
|
|
182
|
+
}, r.prototype.getAbsoluteDistance = function(e, a, c) {
|
|
183
|
+
var u = 0;
|
|
184
|
+
if (e < this.xPct[this.xPct.length - 1])
|
|
185
|
+
for (; e > this.xPct[u + 1]; )
|
|
186
|
+
u++;
|
|
187
|
+
else e === this.xPct[this.xPct.length - 1] && (u = this.xPct.length - 2);
|
|
188
|
+
!c && e === this.xPct[u + 1] && u++, a === null && (a = []);
|
|
189
|
+
var m, h = 1, z = a[u], S = 0, p = 0, A = 0, V = 0;
|
|
190
|
+
for (c ? m = (e - this.xPct[u]) / (this.xPct[u + 1] - this.xPct[u]) : m = (this.xPct[u + 1] - e) / (this.xPct[u + 1] - this.xPct[u]); z > 0; )
|
|
191
|
+
S = this.xPct[u + 1 + V] - this.xPct[u + V], a[u + V] * h + 100 - m * 100 > 100 ? (p = S * m, h = (z - 100 * m) / a[u + V], m = 1) : (p = a[u + V] * S / 100 * h, h = 0), c ? (A = A - p, this.xPct.length + V >= 1 && V--) : (A = A + p, this.xPct.length - V >= 1 && V++), z = a[u + V] * h;
|
|
192
|
+
return e + A;
|
|
193
|
+
}, r.prototype.toStepping = function(e) {
|
|
194
|
+
return e = Nt(this.xVal, this.xPct, e), e;
|
|
195
|
+
}, r.prototype.fromStepping = function(e) {
|
|
196
|
+
return Bt(this.xVal, this.xPct, e);
|
|
197
|
+
}, r.prototype.getStep = function(e) {
|
|
198
|
+
return e = qt(this.xPct, this.xSteps, this.snap, e), e;
|
|
199
|
+
}, r.prototype.getDefaultStep = function(e, a, c) {
|
|
200
|
+
var u = Z(e, this.xPct);
|
|
201
|
+
return (e === 100 || a && e === this.xPct[u - 1]) && (u = Math.max(u - 1, 1)), (this.xVal[u] - this.xVal[u - 1]) / c;
|
|
202
|
+
}, r.prototype.getNearbySteps = function(e) {
|
|
203
|
+
var a = Z(e, this.xPct);
|
|
204
|
+
return {
|
|
205
|
+
stepBefore: {
|
|
206
|
+
startValue: this.xVal[a - 2],
|
|
207
|
+
step: this.xNumSteps[a - 2],
|
|
208
|
+
highestStep: this.xHighestCompleteStep[a - 2]
|
|
209
|
+
},
|
|
210
|
+
thisStep: {
|
|
211
|
+
startValue: this.xVal[a - 1],
|
|
212
|
+
step: this.xNumSteps[a - 1],
|
|
213
|
+
highestStep: this.xHighestCompleteStep[a - 1]
|
|
214
|
+
},
|
|
215
|
+
stepAfter: {
|
|
216
|
+
startValue: this.xVal[a],
|
|
217
|
+
step: this.xNumSteps[a],
|
|
218
|
+
highestStep: this.xHighestCompleteStep[a]
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}, r.prototype.countStepDecimals = function() {
|
|
222
|
+
var e = this.xNumSteps.map(_t);
|
|
223
|
+
return Math.max.apply(null, e);
|
|
224
|
+
}, r.prototype.hasNoSize = function() {
|
|
225
|
+
return this.xVal[0] === this.xVal[this.xVal.length - 1];
|
|
226
|
+
}, r.prototype.convert = function(e) {
|
|
227
|
+
return this.getStep(this.toStepping(e));
|
|
228
|
+
}, r.prototype.handleEntryPoint = function(e, a) {
|
|
229
|
+
var c;
|
|
230
|
+
if (e === "min" ? c = 0 : e === "max" ? c = 100 : c = parseFloat(e), !L(c) || !L(a[0]))
|
|
231
|
+
throw new Error("noUiSlider: 'range' value isn't numeric.");
|
|
232
|
+
this.xPct.push(c), this.xVal.push(a[0]);
|
|
233
|
+
var u = Number(a[1]);
|
|
234
|
+
c ? this.xSteps.push(isNaN(u) ? !1 : u) : isNaN(u) || (this.xSteps[0] = u), this.xHighestCompleteStep.push(0);
|
|
235
|
+
}, r.prototype.handleStepPoint = function(e, a) {
|
|
236
|
+
if (a) {
|
|
237
|
+
if (this.xVal[e] === this.xVal[e + 1]) {
|
|
238
|
+
this.xSteps[e] = this.xHighestCompleteStep[e] = this.xVal[e];
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this.xSteps[e] = we([this.xVal[e], this.xVal[e + 1]], a, 0) / Ue(this.xPct[e], this.xPct[e + 1]);
|
|
242
|
+
var c = (this.xVal[e + 1] - this.xVal[e]) / this.xNumSteps[e], u = Math.ceil(Number(c.toFixed(3)) - 1), m = this.xVal[e] + this.xNumSteps[e] * u;
|
|
243
|
+
this.xHighestCompleteStep[e] = m;
|
|
244
|
+
}
|
|
245
|
+
}, r;
|
|
246
|
+
}()
|
|
247
|
+
), Te = {
|
|
248
|
+
to: function(r) {
|
|
249
|
+
return r === void 0 ? "" : r.toFixed(2);
|
|
250
|
+
},
|
|
251
|
+
from: Number
|
|
252
|
+
}, Xe = {
|
|
253
|
+
target: "target",
|
|
254
|
+
base: "base",
|
|
255
|
+
origin: "origin",
|
|
256
|
+
handle: "handle",
|
|
257
|
+
handleLower: "handle-lower",
|
|
258
|
+
handleUpper: "handle-upper",
|
|
259
|
+
touchArea: "touch-area",
|
|
260
|
+
horizontal: "horizontal",
|
|
261
|
+
vertical: "vertical",
|
|
262
|
+
background: "background",
|
|
263
|
+
connect: "connect",
|
|
264
|
+
connects: "connects",
|
|
265
|
+
ltr: "ltr",
|
|
266
|
+
rtl: "rtl",
|
|
267
|
+
textDirectionLtr: "txt-dir-ltr",
|
|
268
|
+
textDirectionRtl: "txt-dir-rtl",
|
|
269
|
+
draggable: "draggable",
|
|
270
|
+
drag: "state-drag",
|
|
271
|
+
tap: "state-tap",
|
|
272
|
+
active: "active",
|
|
273
|
+
tooltip: "tooltip",
|
|
274
|
+
pips: "pips",
|
|
275
|
+
pipsHorizontal: "pips-horizontal",
|
|
276
|
+
pipsVertical: "pips-vertical",
|
|
277
|
+
marker: "marker",
|
|
278
|
+
markerHorizontal: "marker-horizontal",
|
|
279
|
+
markerVertical: "marker-vertical",
|
|
280
|
+
markerNormal: "marker-normal",
|
|
281
|
+
markerLarge: "marker-large",
|
|
282
|
+
markerSub: "marker-sub",
|
|
283
|
+
value: "value",
|
|
284
|
+
valueHorizontal: "value-horizontal",
|
|
285
|
+
valueVertical: "value-vertical",
|
|
286
|
+
valueNormal: "value-normal",
|
|
287
|
+
valueLarge: "value-large",
|
|
288
|
+
valueSub: "value-sub"
|
|
289
|
+
}, B = {
|
|
290
|
+
tooltips: ".__tooltips",
|
|
291
|
+
aria: ".__aria"
|
|
292
|
+
};
|
|
293
|
+
function It(r, e) {
|
|
294
|
+
if (!L(e))
|
|
295
|
+
throw new Error("noUiSlider: 'step' is not numeric.");
|
|
296
|
+
r.singleStep = e;
|
|
297
|
+
}
|
|
298
|
+
function Tt(r, e) {
|
|
299
|
+
if (!L(e))
|
|
300
|
+
throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");
|
|
301
|
+
r.keyboardPageMultiplier = e;
|
|
302
|
+
}
|
|
303
|
+
function Kt(r, e) {
|
|
304
|
+
if (!L(e))
|
|
305
|
+
throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");
|
|
306
|
+
r.keyboardMultiplier = e;
|
|
307
|
+
}
|
|
308
|
+
function Yt(r, e) {
|
|
309
|
+
if (!L(e))
|
|
310
|
+
throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");
|
|
311
|
+
r.keyboardDefaultStep = e;
|
|
312
|
+
}
|
|
313
|
+
function Xt(r, e) {
|
|
314
|
+
if (typeof e != "object" || Array.isArray(e))
|
|
315
|
+
throw new Error("noUiSlider: 'range' is not an object.");
|
|
316
|
+
if (e.min === void 0 || e.max === void 0)
|
|
317
|
+
throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
|
|
318
|
+
r.spectrum = new Ye(e, r.snap || !1, r.singleStep);
|
|
319
|
+
}
|
|
320
|
+
function Gt(r, e) {
|
|
321
|
+
if (e = ne(e), !Array.isArray(e) || !e.length)
|
|
322
|
+
throw new Error("noUiSlider: 'start' option is incorrect.");
|
|
323
|
+
r.handles = e.length, r.start = e;
|
|
324
|
+
}
|
|
325
|
+
function Wt(r, e) {
|
|
326
|
+
if (typeof e != "boolean")
|
|
327
|
+
throw new Error("noUiSlider: 'snap' option must be a boolean.");
|
|
328
|
+
r.snap = e;
|
|
329
|
+
}
|
|
330
|
+
function Jt(r, e) {
|
|
331
|
+
if (typeof e != "boolean")
|
|
332
|
+
throw new Error("noUiSlider: 'animate' option must be a boolean.");
|
|
333
|
+
r.animate = e;
|
|
334
|
+
}
|
|
335
|
+
function Zt(r, e) {
|
|
336
|
+
if (typeof e != "number")
|
|
337
|
+
throw new Error("noUiSlider: 'animationDuration' option must be a number.");
|
|
338
|
+
r.animationDuration = e;
|
|
339
|
+
}
|
|
340
|
+
function Ge(r, e) {
|
|
341
|
+
var a = [!1], c;
|
|
342
|
+
if (e === "lower" ? e = [!0, !1] : e === "upper" && (e = [!1, !0]), e === !0 || e === !1) {
|
|
343
|
+
for (c = 1; c < r.handles; c++)
|
|
344
|
+
a.push(e);
|
|
345
|
+
a.push(!1);
|
|
346
|
+
} else {
|
|
347
|
+
if (!Array.isArray(e) || !e.length || e.length !== r.handles + 1)
|
|
348
|
+
throw new Error("noUiSlider: 'connect' option doesn't match handle count.");
|
|
349
|
+
a = e;
|
|
350
|
+
}
|
|
351
|
+
r.connect = a;
|
|
352
|
+
}
|
|
353
|
+
function $t(r, e) {
|
|
354
|
+
switch (e) {
|
|
355
|
+
case "horizontal":
|
|
356
|
+
r.ort = 0;
|
|
357
|
+
break;
|
|
358
|
+
case "vertical":
|
|
359
|
+
r.ort = 1;
|
|
360
|
+
break;
|
|
361
|
+
default:
|
|
362
|
+
throw new Error("noUiSlider: 'orientation' option is invalid.");
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function We(r, e) {
|
|
366
|
+
if (!L(e))
|
|
367
|
+
throw new Error("noUiSlider: 'margin' option must be numeric.");
|
|
368
|
+
e !== 0 && (r.margin = r.spectrum.getDistance(e));
|
|
369
|
+
}
|
|
370
|
+
function Qt(r, e) {
|
|
371
|
+
if (!L(e))
|
|
372
|
+
throw new Error("noUiSlider: 'limit' option must be numeric.");
|
|
373
|
+
if (r.limit = r.spectrum.getDistance(e), !r.limit || r.handles < 2)
|
|
374
|
+
throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
|
|
375
|
+
}
|
|
376
|
+
function er(r, e) {
|
|
377
|
+
var a;
|
|
378
|
+
if (!L(e) && !Array.isArray(e))
|
|
379
|
+
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
380
|
+
if (Array.isArray(e) && !(e.length === 2 || L(e[0]) || L(e[1])))
|
|
381
|
+
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
382
|
+
if (e !== 0) {
|
|
383
|
+
for (Array.isArray(e) || (e = [e, e]), r.padding = [r.spectrum.getDistance(e[0]), r.spectrum.getDistance(e[1])], a = 0; a < r.spectrum.xNumSteps.length - 1; a++)
|
|
384
|
+
if (r.padding[0][a] < 0 || r.padding[1][a] < 0)
|
|
385
|
+
throw new Error("noUiSlider: 'padding' option must be a positive number(s).");
|
|
386
|
+
var c = e[0] + e[1], u = r.spectrum.xVal[0], m = r.spectrum.xVal[r.spectrum.xVal.length - 1];
|
|
387
|
+
if (c / (m - u) > 1)
|
|
388
|
+
throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
function tr(r, e) {
|
|
392
|
+
switch (e) {
|
|
393
|
+
case "ltr":
|
|
394
|
+
r.dir = 0;
|
|
395
|
+
break;
|
|
396
|
+
case "rtl":
|
|
397
|
+
r.dir = 1;
|
|
398
|
+
break;
|
|
399
|
+
default:
|
|
400
|
+
throw new Error("noUiSlider: 'direction' option was not recognized.");
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
function rr(r, e) {
|
|
404
|
+
if (typeof e != "string")
|
|
405
|
+
throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
|
|
406
|
+
var a = e.indexOf("tap") >= 0, c = e.indexOf("drag") >= 0, u = e.indexOf("fixed") >= 0, m = e.indexOf("snap") >= 0, h = e.indexOf("hover") >= 0, z = e.indexOf("unconstrained") >= 0, S = e.indexOf("invert-connects") >= 0, p = e.indexOf("drag-all") >= 0, A = e.indexOf("smooth-steps") >= 0;
|
|
407
|
+
if (u) {
|
|
408
|
+
if (r.handles !== 2)
|
|
409
|
+
throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
|
|
410
|
+
We(r, r.start[1] - r.start[0]);
|
|
411
|
+
}
|
|
412
|
+
if (S && r.handles !== 2)
|
|
413
|
+
throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");
|
|
414
|
+
if (z && (r.margin || r.limit))
|
|
415
|
+
throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");
|
|
416
|
+
r.events = {
|
|
417
|
+
tap: a || m,
|
|
418
|
+
drag: c,
|
|
419
|
+
dragAll: p,
|
|
420
|
+
smoothSteps: A,
|
|
421
|
+
fixed: u,
|
|
422
|
+
snap: m,
|
|
423
|
+
hover: h,
|
|
424
|
+
unconstrained: z,
|
|
425
|
+
invertConnects: S
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
function ir(r, e) {
|
|
429
|
+
if (e !== !1)
|
|
430
|
+
if (e === !0 || oe(e)) {
|
|
431
|
+
r.tooltips = [];
|
|
432
|
+
for (var a = 0; a < r.handles; a++)
|
|
433
|
+
r.tooltips.push(e);
|
|
434
|
+
} else {
|
|
435
|
+
if (e = ne(e), e.length !== r.handles)
|
|
436
|
+
throw new Error("noUiSlider: must pass a formatter for all handles.");
|
|
437
|
+
e.forEach(function(c) {
|
|
438
|
+
if (typeof c != "boolean" && !oe(c))
|
|
439
|
+
throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");
|
|
440
|
+
}), r.tooltips = e;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
function or(r, e) {
|
|
444
|
+
if (e.length !== r.handles)
|
|
445
|
+
throw new Error("noUiSlider: must pass a attributes for all handles.");
|
|
446
|
+
r.handleAttributes = e;
|
|
447
|
+
}
|
|
448
|
+
function nr(r, e) {
|
|
449
|
+
if (!oe(e))
|
|
450
|
+
throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");
|
|
451
|
+
r.ariaFormat = e;
|
|
452
|
+
}
|
|
453
|
+
function ar(r, e) {
|
|
454
|
+
if (!Pt(e))
|
|
455
|
+
throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
|
|
456
|
+
r.format = e;
|
|
457
|
+
}
|
|
458
|
+
function sr(r, e) {
|
|
459
|
+
if (typeof e != "boolean")
|
|
460
|
+
throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");
|
|
461
|
+
r.keyboardSupport = e;
|
|
462
|
+
}
|
|
463
|
+
function lr(r, e) {
|
|
464
|
+
r.documentElement = e;
|
|
465
|
+
}
|
|
466
|
+
function ur(r, e) {
|
|
467
|
+
if (typeof e != "string" && e !== !1)
|
|
468
|
+
throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
|
|
469
|
+
r.cssPrefix = e;
|
|
470
|
+
}
|
|
471
|
+
function cr(r, e) {
|
|
472
|
+
if (typeof e != "object")
|
|
473
|
+
throw new Error("noUiSlider: 'cssClasses' must be an object.");
|
|
474
|
+
typeof r.cssPrefix == "string" ? (r.cssClasses = {}, Object.keys(e).forEach(function(a) {
|
|
475
|
+
r.cssClasses[a] = r.cssPrefix + e[a];
|
|
476
|
+
})) : r.cssClasses = e;
|
|
477
|
+
}
|
|
478
|
+
function Je(r) {
|
|
479
|
+
var e = {
|
|
480
|
+
margin: null,
|
|
481
|
+
limit: null,
|
|
482
|
+
padding: null,
|
|
483
|
+
animate: !0,
|
|
484
|
+
animationDuration: 300,
|
|
485
|
+
ariaFormat: Te,
|
|
486
|
+
format: Te
|
|
487
|
+
}, a = {
|
|
488
|
+
step: { r: !1, t: It },
|
|
489
|
+
keyboardPageMultiplier: { r: !1, t: Tt },
|
|
490
|
+
keyboardMultiplier: { r: !1, t: Kt },
|
|
491
|
+
keyboardDefaultStep: { r: !1, t: Yt },
|
|
492
|
+
start: { r: !0, t: Gt },
|
|
493
|
+
connect: { r: !0, t: Ge },
|
|
494
|
+
direction: { r: !0, t: tr },
|
|
495
|
+
snap: { r: !1, t: Wt },
|
|
496
|
+
animate: { r: !1, t: Jt },
|
|
497
|
+
animationDuration: { r: !1, t: Zt },
|
|
498
|
+
range: { r: !0, t: Xt },
|
|
499
|
+
orientation: { r: !1, t: $t },
|
|
500
|
+
margin: { r: !1, t: We },
|
|
501
|
+
limit: { r: !1, t: Qt },
|
|
502
|
+
padding: { r: !1, t: er },
|
|
503
|
+
behaviour: { r: !0, t: rr },
|
|
504
|
+
ariaFormat: { r: !1, t: nr },
|
|
505
|
+
format: { r: !1, t: ar },
|
|
506
|
+
tooltips: { r: !1, t: ir },
|
|
507
|
+
keyboardSupport: { r: !0, t: sr },
|
|
508
|
+
documentElement: { r: !1, t: lr },
|
|
509
|
+
cssPrefix: { r: !0, t: ur },
|
|
510
|
+
cssClasses: { r: !0, t: cr },
|
|
511
|
+
handleAttributes: { r: !1, t: or }
|
|
512
|
+
}, c = {
|
|
513
|
+
connect: !1,
|
|
514
|
+
direction: "ltr",
|
|
515
|
+
behaviour: "tap",
|
|
516
|
+
orientation: "horizontal",
|
|
517
|
+
keyboardSupport: !0,
|
|
518
|
+
cssPrefix: "noUi-",
|
|
519
|
+
cssClasses: Xe,
|
|
520
|
+
keyboardPageMultiplier: 5,
|
|
521
|
+
keyboardMultiplier: 1,
|
|
522
|
+
keyboardDefaultStep: 10
|
|
523
|
+
};
|
|
524
|
+
r.format && !r.ariaFormat && (r.ariaFormat = r.format), Object.keys(a).forEach(function(S) {
|
|
525
|
+
if (!Se(r[S]) && c[S] === void 0) {
|
|
526
|
+
if (a[S].r)
|
|
527
|
+
throw new Error("noUiSlider: '" + S + "' is required.");
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
a[S].t(e, Se(r[S]) ? r[S] : c[S]);
|
|
531
|
+
}), e.pips = r.pips;
|
|
532
|
+
var u = document.createElement("div"), m = u.style.msTransform !== void 0, h = u.style.transform !== void 0;
|
|
533
|
+
e.transformRule = h ? "transform" : m ? "msTransform" : "webkitTransform";
|
|
534
|
+
var z = [
|
|
535
|
+
["left", "top"],
|
|
536
|
+
["right", "bottom"]
|
|
537
|
+
];
|
|
538
|
+
return e.style = z[e.dir][e.ort], e;
|
|
539
|
+
}
|
|
540
|
+
function fr(r, e, a) {
|
|
541
|
+
var c = Lt(), u = Rt(), m = u && Ht(), h = r, z, S, p, A, V, N, v = e.spectrum, H = [], w = [], O = [], ae = 0, R = {}, G = !1, K = r.ownerDocument, $ = e.documentElement || K.documentElement, Q = K.body, Ze = K.dir === "rtl" || e.ort === 1 ? 0 : 100;
|
|
542
|
+
function j(t, i) {
|
|
543
|
+
var o = K.createElement("div");
|
|
544
|
+
return i && M(o, i), t.appendChild(o), o;
|
|
545
|
+
}
|
|
546
|
+
function $e(t, i) {
|
|
547
|
+
var o = j(t, e.cssClasses.origin), n = j(o, e.cssClasses.handle);
|
|
548
|
+
if (j(n, e.cssClasses.touchArea), n.setAttribute("data-handle", String(i)), e.keyboardSupport && (n.setAttribute("tabindex", "0"), n.addEventListener("keydown", function(l) {
|
|
549
|
+
return mt(l, i);
|
|
550
|
+
})), e.handleAttributes !== void 0) {
|
|
551
|
+
var s = e.handleAttributes[i];
|
|
552
|
+
Object.keys(s).forEach(function(l) {
|
|
553
|
+
n.setAttribute(l, s[l]);
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
return n.setAttribute("role", "slider"), n.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), i === 0 ? M(n, e.cssClasses.handleLower) : i === e.handles - 1 && M(n, e.cssClasses.handleUpper), o.handle = n, o;
|
|
557
|
+
}
|
|
558
|
+
function se(t, i) {
|
|
559
|
+
return i ? j(t, e.cssClasses.connect) : !1;
|
|
560
|
+
}
|
|
561
|
+
function Qe(t, i) {
|
|
562
|
+
S = j(i, e.cssClasses.connects), p = [], A = [], A.push(se(S, t[0]));
|
|
563
|
+
for (var o = 0; o < e.handles; o++)
|
|
564
|
+
p.push($e(i, o)), O[o] = o, A.push(se(S, t[o + 1]));
|
|
565
|
+
}
|
|
566
|
+
function et(t) {
|
|
567
|
+
M(t, e.cssClasses.target), e.dir === 0 ? M(t, e.cssClasses.ltr) : M(t, e.cssClasses.rtl), e.ort === 0 ? M(t, e.cssClasses.horizontal) : M(t, e.cssClasses.vertical);
|
|
568
|
+
var i = getComputedStyle(t).direction;
|
|
569
|
+
return i === "rtl" ? M(t, e.cssClasses.textDirectionRtl) : M(t, e.cssClasses.textDirectionLtr), j(t, e.cssClasses.base);
|
|
570
|
+
}
|
|
571
|
+
function tt(t, i) {
|
|
572
|
+
return !e.tooltips || !e.tooltips[i] ? !1 : j(t.firstChild, e.cssClasses.tooltip);
|
|
573
|
+
}
|
|
574
|
+
function Ce() {
|
|
575
|
+
return h.hasAttribute("disabled");
|
|
576
|
+
}
|
|
577
|
+
function le(t) {
|
|
578
|
+
var i = p[t];
|
|
579
|
+
return i.hasAttribute("disabled");
|
|
580
|
+
}
|
|
581
|
+
function rt(t) {
|
|
582
|
+
t != null ? (p[t].setAttribute("disabled", ""), p[t].handle.removeAttribute("tabindex")) : (h.setAttribute("disabled", ""), p.forEach(function(i) {
|
|
583
|
+
i.handle.removeAttribute("tabindex");
|
|
584
|
+
}));
|
|
585
|
+
}
|
|
586
|
+
function it(t) {
|
|
587
|
+
t != null ? (p[t].removeAttribute("disabled"), p[t].handle.setAttribute("tabindex", "0")) : (h.removeAttribute("disabled"), p.forEach(function(i) {
|
|
588
|
+
i.removeAttribute("disabled"), i.handle.setAttribute("tabindex", "0");
|
|
589
|
+
}));
|
|
590
|
+
}
|
|
591
|
+
function ue() {
|
|
592
|
+
N && (W("update" + B.tooltips), N.forEach(function(t) {
|
|
593
|
+
t && Ne(t);
|
|
594
|
+
}), N = null);
|
|
595
|
+
}
|
|
596
|
+
function Ee() {
|
|
597
|
+
ue(), N = p.map(tt), me("update" + B.tooltips, function(t, i, o) {
|
|
598
|
+
if (!(!N || !e.tooltips) && N[i] !== !1) {
|
|
599
|
+
var n = t[i];
|
|
600
|
+
e.tooltips[i] !== !0 && (n = e.tooltips[i].to(o[i])), N[i].innerHTML = n;
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
function ot() {
|
|
605
|
+
W("update" + B.aria), me("update" + B.aria, function(t, i, o, n, s) {
|
|
606
|
+
O.forEach(function(l) {
|
|
607
|
+
var d = p[l], f = ee(w, l, 0, !0, !0, !0), b = ee(w, l, 100, !0, !0, !0), x = s[l], U = String(e.ariaFormat.to(o[l]));
|
|
608
|
+
f = v.fromStepping(f).toFixed(1), b = v.fromStepping(b).toFixed(1), x = v.fromStepping(x).toFixed(1), d.children[0].setAttribute("aria-valuemin", f), d.children[0].setAttribute("aria-valuemax", b), d.children[0].setAttribute("aria-valuenow", x), d.children[0].setAttribute("aria-valuetext", U);
|
|
609
|
+
});
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
function nt(t) {
|
|
613
|
+
if (t.mode === q.Range || t.mode === q.Steps)
|
|
614
|
+
return v.xVal;
|
|
615
|
+
if (t.mode === q.Count) {
|
|
616
|
+
if (t.values < 2)
|
|
617
|
+
throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
|
|
618
|
+
for (var i = t.values - 1, o = 100 / i, n = []; i--; )
|
|
619
|
+
n[i] = i * o;
|
|
620
|
+
return n.push(100), ye(n, t.stepped);
|
|
621
|
+
}
|
|
622
|
+
return t.mode === q.Positions ? ye(t.values, t.stepped) : t.mode === q.Values ? t.stepped ? t.values.map(function(s) {
|
|
623
|
+
return v.fromStepping(v.getStep(v.toStepping(s)));
|
|
624
|
+
}) : t.values : [];
|
|
625
|
+
}
|
|
626
|
+
function ye(t, i) {
|
|
627
|
+
return t.map(function(o) {
|
|
628
|
+
return v.fromStepping(i ? v.getStep(o) : o);
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
function at(t) {
|
|
632
|
+
function i(x, U) {
|
|
633
|
+
return Number((x + U).toFixed(7));
|
|
634
|
+
}
|
|
635
|
+
var o = nt(t), n = {}, s = v.xVal[0], l = v.xVal[v.xVal.length - 1], d = !1, f = !1, b = 0;
|
|
636
|
+
return o = Vt(o.slice().sort(function(x, U) {
|
|
637
|
+
return x - U;
|
|
638
|
+
})), o[0] !== s && (o.unshift(s), d = !0), o[o.length - 1] !== l && (o.push(l), f = !0), o.forEach(function(x, U) {
|
|
639
|
+
var k, g, E, D = x, y = o[U + 1], P, ge, be, xe, Re, ze, je, Fe = t.mode === q.Steps;
|
|
640
|
+
for (Fe && (k = v.xNumSteps[U]), k || (k = y - D), y === void 0 && (y = D), k = Math.max(k, 1e-7), g = D; g <= y; g = i(g, k)) {
|
|
641
|
+
for (P = v.toStepping(g), ge = P - b, Re = ge / (t.density || 1), ze = Math.round(Re), je = ge / ze, E = 1; E <= ze; E += 1)
|
|
642
|
+
be = b + E * je, n[be.toFixed(5)] = [v.fromStepping(be), 0];
|
|
643
|
+
xe = o.indexOf(g) > -1 ? _.LargeValue : Fe ? _.SmallValue : _.NoValue, !U && d && g !== y && (xe = 0), g === y && f || (n[P.toFixed(5)] = [g, xe]), b = P;
|
|
644
|
+
}
|
|
645
|
+
}), n;
|
|
646
|
+
}
|
|
647
|
+
function st(t, i, o) {
|
|
648
|
+
var n, s, l = K.createElement("div"), d = (n = {}, n[_.None] = "", n[_.NoValue] = e.cssClasses.valueNormal, n[_.LargeValue] = e.cssClasses.valueLarge, n[_.SmallValue] = e.cssClasses.valueSub, n), f = (s = {}, s[_.None] = "", s[_.NoValue] = e.cssClasses.markerNormal, s[_.LargeValue] = e.cssClasses.markerLarge, s[_.SmallValue] = e.cssClasses.markerSub, s), b = [e.cssClasses.valueHorizontal, e.cssClasses.valueVertical], x = [e.cssClasses.markerHorizontal, e.cssClasses.markerVertical];
|
|
649
|
+
M(l, e.cssClasses.pips), M(l, e.ort === 0 ? e.cssClasses.pipsHorizontal : e.cssClasses.pipsVertical);
|
|
650
|
+
function U(g, E) {
|
|
651
|
+
var D = E === e.cssClasses.value, y = D ? b : x, P = D ? d : f;
|
|
652
|
+
return E + " " + y[e.ort] + " " + P[g];
|
|
653
|
+
}
|
|
654
|
+
function k(g, E, D) {
|
|
655
|
+
if (D = i ? i(E, D) : D, D !== _.None) {
|
|
656
|
+
var y = j(l, !1);
|
|
657
|
+
y.className = U(D, e.cssClasses.marker), y.style[e.style] = g + "%", D > _.NoValue && (y = j(l, !1), y.className = U(D, e.cssClasses.value), y.setAttribute("data-value", String(E)), y.style[e.style] = g + "%", y.innerHTML = String(o.to(E)));
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
return Object.keys(t).forEach(function(g) {
|
|
661
|
+
k(g, t[g][0], t[g][1]);
|
|
662
|
+
}), l;
|
|
663
|
+
}
|
|
664
|
+
function ce() {
|
|
665
|
+
V && (Ne(V), V = null);
|
|
666
|
+
}
|
|
667
|
+
function fe(t) {
|
|
668
|
+
ce();
|
|
669
|
+
var i = at(t), o = t.filter, n = t.format || {
|
|
670
|
+
to: function(s) {
|
|
671
|
+
return String(Math.round(s));
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
return V = h.appendChild(st(i, o, n)), V;
|
|
675
|
+
}
|
|
676
|
+
function Ae() {
|
|
677
|
+
var t = z.getBoundingClientRect(), i = "offset" + ["Width", "Height"][e.ort];
|
|
678
|
+
return e.ort === 0 ? t.width || z[i] : t.height || z[i];
|
|
679
|
+
}
|
|
680
|
+
function I(t, i, o, n) {
|
|
681
|
+
var s = function(d) {
|
|
682
|
+
var f = lt(d, n.pageOffset, n.target || i);
|
|
683
|
+
if (!f || Ce() && !n.doNotReject || Ot(h, e.cssClasses.tap) && !n.doNotReject || t === c.start && f.buttons !== void 0 && f.buttons > 1 || n.hover && f.buttons)
|
|
684
|
+
return !1;
|
|
685
|
+
m || f.preventDefault(), f.calcPoint = f.points[e.ort], o(f, n);
|
|
686
|
+
}, l = [];
|
|
687
|
+
return t.split(" ").forEach(function(d) {
|
|
688
|
+
i.addEventListener(d, s, m ? { passive: !0 } : !1), l.push([d, s]);
|
|
689
|
+
}), l;
|
|
690
|
+
}
|
|
691
|
+
function lt(t, i, o) {
|
|
692
|
+
var n = t.type.indexOf("touch") === 0, s = t.type.indexOf("mouse") === 0, l = t.type.indexOf("pointer") === 0, d = 0, f = 0;
|
|
693
|
+
if (t.type.indexOf("MSPointer") === 0 && (l = !0), t.type === "mousedown" && !t.buttons && !t.touches)
|
|
694
|
+
return !1;
|
|
695
|
+
if (n) {
|
|
696
|
+
var b = function(k) {
|
|
697
|
+
var g = k.target;
|
|
698
|
+
return g === o || o.contains(g) || t.composed && t.composedPath().shift() === o;
|
|
699
|
+
};
|
|
700
|
+
if (t.type === "touchstart") {
|
|
701
|
+
var x = Array.prototype.filter.call(t.touches, b);
|
|
702
|
+
if (x.length > 1)
|
|
703
|
+
return !1;
|
|
704
|
+
d = x[0].pageX, f = x[0].pageY;
|
|
705
|
+
} else {
|
|
706
|
+
var U = Array.prototype.find.call(t.changedTouches, b);
|
|
707
|
+
if (!U)
|
|
708
|
+
return !1;
|
|
709
|
+
d = U.pageX, f = U.pageY;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
return i = i || Ke(K), (s || l) && (d = t.clientX + i.x, f = t.clientY + i.y), t.pageOffset = i, t.points = [d, f], t.cursor = s || l, t;
|
|
713
|
+
}
|
|
714
|
+
function Pe(t) {
|
|
715
|
+
var i = t - Mt(z, e.ort), o = i * 100 / Ae();
|
|
716
|
+
return o = Ie(o), e.dir ? 100 - o : o;
|
|
717
|
+
}
|
|
718
|
+
function ut(t) {
|
|
719
|
+
var i = 100, o = !1;
|
|
720
|
+
return p.forEach(function(n, s) {
|
|
721
|
+
if (!le(s)) {
|
|
722
|
+
var l = w[s], d = Math.abs(l - t), f = d === 100 && i === 100, b = d < i, x = d <= i && t > l;
|
|
723
|
+
(b || x || f) && (o = s, i = d);
|
|
724
|
+
}
|
|
725
|
+
}), o;
|
|
726
|
+
}
|
|
727
|
+
function ct(t, i) {
|
|
728
|
+
t.type === "mouseout" && t.target.nodeName === "HTML" && t.relatedTarget === null && de(t, i);
|
|
729
|
+
}
|
|
730
|
+
function ft(t, i) {
|
|
731
|
+
if (navigator.appVersion.indexOf("MSIE 9") === -1 && t.buttons === 0 && i.buttonsProperty !== 0)
|
|
732
|
+
return de(t, i);
|
|
733
|
+
var o = (e.dir ? -1 : 1) * (t.calcPoint - i.startCalcPoint), n = o * 100 / i.baseSize;
|
|
734
|
+
De(o > 0, n, i.locations, i.handleNumbers, i.connect);
|
|
735
|
+
}
|
|
736
|
+
function de(t, i) {
|
|
737
|
+
i.handle && (ie(i.handle, e.cssClasses.active), ae -= 1), i.listeners.forEach(function(o) {
|
|
738
|
+
$.removeEventListener(o[0], o[1]);
|
|
739
|
+
}), ae === 0 && (ie(h, e.cssClasses.drag), ve(), t.cursor && (Q.style.cursor = "", Q.removeEventListener("selectstart", Be))), e.events.smoothSteps && (i.handleNumbers.forEach(function(o) {
|
|
740
|
+
T(o, w[o], !0, !0, !1, !1);
|
|
741
|
+
}), i.handleNumbers.forEach(function(o) {
|
|
742
|
+
C("update", o);
|
|
743
|
+
})), i.handleNumbers.forEach(function(o) {
|
|
744
|
+
C("change", o), C("set", o), C("end", o);
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
function he(t, i) {
|
|
748
|
+
if (!i.handleNumbers.some(le)) {
|
|
749
|
+
var o;
|
|
750
|
+
if (i.handleNumbers.length === 1) {
|
|
751
|
+
var n = p[i.handleNumbers[0]];
|
|
752
|
+
o = n.children[0], ae += 1, M(o, e.cssClasses.active);
|
|
753
|
+
}
|
|
754
|
+
t.stopPropagation();
|
|
755
|
+
var s = [], l = I(c.move, $, ft, {
|
|
756
|
+
// The event target has changed so we need to propagate the original one so that we keep
|
|
757
|
+
// relying on it to extract target touches.
|
|
758
|
+
target: t.target,
|
|
759
|
+
handle: o,
|
|
760
|
+
connect: i.connect,
|
|
761
|
+
listeners: s,
|
|
762
|
+
startCalcPoint: t.calcPoint,
|
|
763
|
+
baseSize: Ae(),
|
|
764
|
+
pageOffset: t.pageOffset,
|
|
765
|
+
handleNumbers: i.handleNumbers,
|
|
766
|
+
buttonsProperty: t.buttons,
|
|
767
|
+
locations: w.slice()
|
|
768
|
+
}), d = I(c.end, $, de, {
|
|
769
|
+
target: t.target,
|
|
770
|
+
handle: o,
|
|
771
|
+
listeners: s,
|
|
772
|
+
doNotReject: !0,
|
|
773
|
+
handleNumbers: i.handleNumbers
|
|
774
|
+
}), f = I("mouseout", $, ct, {
|
|
775
|
+
target: t.target,
|
|
776
|
+
handle: o,
|
|
777
|
+
listeners: s,
|
|
778
|
+
doNotReject: !0,
|
|
779
|
+
handleNumbers: i.handleNumbers
|
|
780
|
+
});
|
|
781
|
+
s.push.apply(s, l.concat(d, f)), t.cursor && (Q.style.cursor = getComputedStyle(t.target).cursor, p.length > 1 && M(h, e.cssClasses.drag), Q.addEventListener("selectstart", Be, !1)), i.handleNumbers.forEach(function(b) {
|
|
782
|
+
C("start", b);
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
function dt(t) {
|
|
787
|
+
t.stopPropagation();
|
|
788
|
+
var i = Pe(t.calcPoint), o = ut(i);
|
|
789
|
+
o !== !1 && (e.events.snap || qe(h, e.cssClasses.tap, e.animationDuration), T(o, i, !0, !0), ve(), C("slide", o, !0), C("update", o, !0), e.events.snap ? he(t, { handleNumbers: [o] }) : (C("change", o, !0), C("set", o, !0)));
|
|
790
|
+
}
|
|
791
|
+
function ht(t) {
|
|
792
|
+
var i = Pe(t.calcPoint), o = v.getStep(i), n = v.fromStepping(o);
|
|
793
|
+
Object.keys(R).forEach(function(s) {
|
|
794
|
+
s.split(".")[0] === "hover" && R[s].forEach(function(l) {
|
|
795
|
+
l.call(re, n);
|
|
796
|
+
});
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
function mt(t, i) {
|
|
800
|
+
if (Ce() || le(i))
|
|
801
|
+
return !1;
|
|
802
|
+
var o = ["Left", "Right"], n = ["Down", "Up"], s = ["PageDown", "PageUp"], l = ["Home", "End"];
|
|
803
|
+
e.dir && !e.ort ? o.reverse() : e.ort && !e.dir && (n.reverse(), s.reverse());
|
|
804
|
+
var d = t.key.replace("Arrow", ""), f = d === s[0], b = d === s[1], x = d === n[0] || d === o[0] || f, U = d === n[1] || d === o[1] || b, k = d === l[0], g = d === l[1];
|
|
805
|
+
if (!x && !U && !k && !g)
|
|
806
|
+
return !0;
|
|
807
|
+
t.preventDefault();
|
|
808
|
+
var E;
|
|
809
|
+
if (U || x) {
|
|
810
|
+
var D = x ? 0 : 1, y = Le(i), P = y[D];
|
|
811
|
+
if (P === null)
|
|
812
|
+
return !1;
|
|
813
|
+
P === !1 && (P = v.getDefaultStep(w[i], x, e.keyboardDefaultStep)), b || f ? P *= e.keyboardPageMultiplier : P *= e.keyboardMultiplier, P = Math.max(P, 1e-7), P = (x ? -1 : 1) * P, E = H[i] + P;
|
|
814
|
+
} else g ? E = e.spectrum.xVal[e.spectrum.xVal.length - 1] : E = e.spectrum.xVal[0];
|
|
815
|
+
return T(i, v.toStepping(E), !0, !0), C("slide", i), C("update", i), C("change", i), C("set", i), !1;
|
|
816
|
+
}
|
|
817
|
+
function Ve(t) {
|
|
818
|
+
t.fixed || p.forEach(function(i, o) {
|
|
819
|
+
I(c.start, i.children[0], he, {
|
|
820
|
+
handleNumbers: [o]
|
|
821
|
+
});
|
|
822
|
+
}), t.tap && I(c.start, z, dt, {}), t.hover && I(c.move, z, ht, {
|
|
823
|
+
hover: !0
|
|
824
|
+
}), t.drag && A.forEach(function(i, o) {
|
|
825
|
+
if (!(i === !1 || o === 0 || o === A.length - 1)) {
|
|
826
|
+
var n = p[o - 1], s = p[o], l = [i], d = [n, s], f = [o - 1, o];
|
|
827
|
+
M(i, e.cssClasses.draggable), t.fixed && (l.push(n.children[0]), l.push(s.children[0])), t.dragAll && (d = p, f = O), l.forEach(function(b) {
|
|
828
|
+
I(c.start, b, he, {
|
|
829
|
+
handles: d,
|
|
830
|
+
handleNumbers: f,
|
|
831
|
+
connect: i
|
|
832
|
+
});
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
function me(t, i) {
|
|
838
|
+
R[t] = R[t] || [], R[t].push(i), t.split(".")[0] === "update" && p.forEach(function(o, n) {
|
|
839
|
+
C("update", n);
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
function pt(t) {
|
|
843
|
+
return t === B.aria || t === B.tooltips;
|
|
844
|
+
}
|
|
845
|
+
function W(t) {
|
|
846
|
+
var i = t && t.split(".")[0], o = i ? t.substring(i.length) : t;
|
|
847
|
+
Object.keys(R).forEach(function(n) {
|
|
848
|
+
var s = n.split(".")[0], l = n.substring(s.length);
|
|
849
|
+
(!i || i === s) && (!o || o === l) && (!pt(l) || o === l) && delete R[n];
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
function C(t, i, o) {
|
|
853
|
+
Object.keys(R).forEach(function(n) {
|
|
854
|
+
var s = n.split(".")[0];
|
|
855
|
+
t === s && R[n].forEach(function(l) {
|
|
856
|
+
l.call(
|
|
857
|
+
// Use the slider public API as the scope ('this')
|
|
858
|
+
re,
|
|
859
|
+
// Return values as array, so arg_1[arg_2] is always valid.
|
|
860
|
+
H.map(e.format.to),
|
|
861
|
+
// Handle index, 0 or 1
|
|
862
|
+
i,
|
|
863
|
+
// Un-formatted slider values
|
|
864
|
+
H.slice(),
|
|
865
|
+
// Event is fired by tap, true or false
|
|
866
|
+
o || !1,
|
|
867
|
+
// Left offset of the handle, in relation to the slider
|
|
868
|
+
w.slice(),
|
|
869
|
+
// add the slider public API to an accessible parameter when this is unavailable
|
|
870
|
+
re
|
|
871
|
+
);
|
|
872
|
+
});
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
function ee(t, i, o, n, s, l, d) {
|
|
876
|
+
var f;
|
|
877
|
+
return p.length > 1 && !e.events.unconstrained && (n && i > 0 && (f = v.getAbsoluteDistance(t[i - 1], e.margin, !1), o = Math.max(o, f)), s && i < p.length - 1 && (f = v.getAbsoluteDistance(t[i + 1], e.margin, !0), o = Math.min(o, f))), p.length > 1 && e.limit && (n && i > 0 && (f = v.getAbsoluteDistance(t[i - 1], e.limit, !1), o = Math.min(o, f)), s && i < p.length - 1 && (f = v.getAbsoluteDistance(t[i + 1], e.limit, !0), o = Math.max(o, f))), e.padding && (i === 0 && (f = v.getAbsoluteDistance(0, e.padding[0], !1), o = Math.max(o, f)), i === p.length - 1 && (f = v.getAbsoluteDistance(100, e.padding[1], !0), o = Math.min(o, f))), d || (o = v.getStep(o)), o = Ie(o), o === t[i] && !l ? !1 : o;
|
|
878
|
+
}
|
|
879
|
+
function pe(t, i) {
|
|
880
|
+
var o = e.ort;
|
|
881
|
+
return (o ? i : t) + ", " + (o ? t : i);
|
|
882
|
+
}
|
|
883
|
+
function De(t, i, o, n, s) {
|
|
884
|
+
var l = o.slice(), d = n[0], f = e.events.smoothSteps, b = [!t, t], x = [t, !t];
|
|
885
|
+
n = n.slice(), t && n.reverse(), n.length > 1 ? n.forEach(function(k, g) {
|
|
886
|
+
var E = ee(l, k, l[k] + i, b[g], x[g], !1, f);
|
|
887
|
+
E === !1 ? i = 0 : (i = E - l[k], l[k] = E);
|
|
888
|
+
}) : b = x = [!0];
|
|
889
|
+
var U = !1;
|
|
890
|
+
n.forEach(function(k, g) {
|
|
891
|
+
U = T(k, o[k] + i, b[g], x[g], !1, f) || U;
|
|
892
|
+
}), U && (n.forEach(function(k) {
|
|
893
|
+
C("update", k), C("slide", k);
|
|
894
|
+
}), s != null && C("drag", d));
|
|
895
|
+
}
|
|
896
|
+
function Me(t, i) {
|
|
897
|
+
return e.dir ? 100 - t - i : t;
|
|
898
|
+
}
|
|
899
|
+
function vt(t, i) {
|
|
900
|
+
w[t] = i, H[t] = v.fromStepping(i);
|
|
901
|
+
var o = Me(i, 0) - Ze, n = "translate(" + pe(o + "%", "0") + ")";
|
|
902
|
+
if (p[t].style[e.transformRule] = n, e.events.invertConnects && w.length > 1) {
|
|
903
|
+
var s = w.every(function(l, d, f) {
|
|
904
|
+
return d === 0 || l >= f[d - 1];
|
|
905
|
+
});
|
|
906
|
+
if (G !== !s) {
|
|
907
|
+
wt();
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
J(t), J(t + 1), G && (J(t - 1), J(t + 2));
|
|
912
|
+
}
|
|
913
|
+
function ve() {
|
|
914
|
+
O.forEach(function(t) {
|
|
915
|
+
var i = w[t] > 50 ? -1 : 1, o = 3 + (p.length + i * t);
|
|
916
|
+
p[t].style.zIndex = String(o);
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
function T(t, i, o, n, s, l) {
|
|
920
|
+
return s || (i = ee(w, t, i, o, n, !1, l)), i === !1 ? !1 : (vt(t, i), !0);
|
|
921
|
+
}
|
|
922
|
+
function J(t) {
|
|
923
|
+
if (A[t]) {
|
|
924
|
+
var i = w.slice();
|
|
925
|
+
G && i.sort(function(f, b) {
|
|
926
|
+
return f - b;
|
|
927
|
+
});
|
|
928
|
+
var o = 0, n = 100;
|
|
929
|
+
t !== 0 && (o = i[t - 1]), t !== A.length - 1 && (n = i[t]);
|
|
930
|
+
var s = n - o, l = "translate(" + pe(Me(o, s) + "%", "0") + ")", d = "scale(" + pe(s / 100, "1") + ")";
|
|
931
|
+
A[t].style[e.transformRule] = l + " " + d;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
function _e(t, i) {
|
|
935
|
+
return t === null || t === !1 || t === void 0 || (typeof t == "number" && (t = String(t)), t = e.format.from(t), t !== !1 && (t = v.toStepping(t)), t === !1 || isNaN(t)) ? w[i] : t;
|
|
936
|
+
}
|
|
937
|
+
function te(t, i, o) {
|
|
938
|
+
var n = ne(t), s = w[0] === void 0;
|
|
939
|
+
i = i === void 0 ? !0 : i, e.animate && !s && qe(h, e.cssClasses.tap, e.animationDuration), O.forEach(function(f) {
|
|
940
|
+
T(f, _e(n[f], f), !0, !1, o);
|
|
941
|
+
});
|
|
942
|
+
var l = O.length === 1 ? 0 : 1;
|
|
943
|
+
if (s && v.hasNoSize() && (o = !0, w[0] = 0, O.length > 1)) {
|
|
944
|
+
var d = 100 / (O.length - 1);
|
|
945
|
+
O.forEach(function(f) {
|
|
946
|
+
w[f] = f * d;
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
for (; l < O.length; ++l)
|
|
950
|
+
O.forEach(function(f) {
|
|
951
|
+
T(f, w[f], !0, !0, o);
|
|
952
|
+
});
|
|
953
|
+
ve(), O.forEach(function(f) {
|
|
954
|
+
C("update", f), n[f] !== null && i && C("set", f);
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
function gt(t) {
|
|
958
|
+
te(e.start, t);
|
|
959
|
+
}
|
|
960
|
+
function bt(t, i, o, n) {
|
|
961
|
+
if (t = Number(t), !(t >= 0 && t < O.length))
|
|
962
|
+
throw new Error("noUiSlider: invalid handle number, got: " + t);
|
|
963
|
+
T(t, _e(i, t), !0, !0, n), C("update", t), o && C("set", t);
|
|
964
|
+
}
|
|
965
|
+
function Oe(t) {
|
|
966
|
+
if (t === void 0 && (t = !1), t)
|
|
967
|
+
return H.length === 1 ? H[0] : H.slice(0);
|
|
968
|
+
var i = H.map(e.format.to);
|
|
969
|
+
return i.length === 1 ? i[0] : i;
|
|
970
|
+
}
|
|
971
|
+
function xt() {
|
|
972
|
+
for (W(B.aria), W(B.tooltips), Object.keys(e.cssClasses).forEach(function(t) {
|
|
973
|
+
ie(h, e.cssClasses[t]);
|
|
974
|
+
}); h.firstChild; )
|
|
975
|
+
h.removeChild(h.firstChild);
|
|
976
|
+
delete h.noUiSlider;
|
|
977
|
+
}
|
|
978
|
+
function Le(t) {
|
|
979
|
+
var i = w[t], o = v.getNearbySteps(i), n = H[t], s = o.thisStep.step, l = null;
|
|
980
|
+
if (e.snap)
|
|
981
|
+
return [
|
|
982
|
+
n - o.stepBefore.startValue || null,
|
|
983
|
+
o.stepAfter.startValue - n || null
|
|
984
|
+
];
|
|
985
|
+
s !== !1 && n + s > o.stepAfter.startValue && (s = o.stepAfter.startValue - n), n > o.thisStep.startValue ? l = o.thisStep.step : o.stepBefore.step === !1 ? l = !1 : l = n - o.stepBefore.highestStep, i === 100 ? s = null : i === 0 && (l = null);
|
|
986
|
+
var d = v.countStepDecimals();
|
|
987
|
+
return s !== null && s !== !1 && (s = Number(s.toFixed(d))), l !== null && l !== !1 && (l = Number(l.toFixed(d))), [l, s];
|
|
988
|
+
}
|
|
989
|
+
function zt() {
|
|
990
|
+
return O.map(Le);
|
|
991
|
+
}
|
|
992
|
+
function St(t, i) {
|
|
993
|
+
var o = Oe(), n = [
|
|
994
|
+
"margin",
|
|
995
|
+
"limit",
|
|
996
|
+
"padding",
|
|
997
|
+
"range",
|
|
998
|
+
"animate",
|
|
999
|
+
"snap",
|
|
1000
|
+
"step",
|
|
1001
|
+
"format",
|
|
1002
|
+
"pips",
|
|
1003
|
+
"tooltips",
|
|
1004
|
+
"connect"
|
|
1005
|
+
];
|
|
1006
|
+
n.forEach(function(l) {
|
|
1007
|
+
t[l] !== void 0 && (a[l] = t[l]);
|
|
1008
|
+
});
|
|
1009
|
+
var s = Je(a);
|
|
1010
|
+
n.forEach(function(l) {
|
|
1011
|
+
t[l] !== void 0 && (e[l] = s[l]);
|
|
1012
|
+
}), v = s.spectrum, e.margin = s.margin, e.limit = s.limit, e.padding = s.padding, e.pips ? fe(e.pips) : ce(), e.tooltips ? Ee() : ue(), w = [], te(Se(t.start) ? t.start : o, i), t.connect && He();
|
|
1013
|
+
}
|
|
1014
|
+
function He() {
|
|
1015
|
+
for (; S.firstChild; )
|
|
1016
|
+
S.removeChild(S.firstChild);
|
|
1017
|
+
for (var t = 0; t <= e.handles; t++)
|
|
1018
|
+
A[t] = se(S, e.connect[t]), J(t);
|
|
1019
|
+
Ve({ drag: e.events.drag, fixed: !0 });
|
|
1020
|
+
}
|
|
1021
|
+
function wt() {
|
|
1022
|
+
G = !G, Ge(
|
|
1023
|
+
e,
|
|
1024
|
+
// inverse the connect boolean array
|
|
1025
|
+
e.connect.map(function(t) {
|
|
1026
|
+
return !t;
|
|
1027
|
+
})
|
|
1028
|
+
), He();
|
|
1029
|
+
}
|
|
1030
|
+
function Ut() {
|
|
1031
|
+
z = et(h), Qe(e.connect, z), Ve(e.events), te(e.start), e.pips && fe(e.pips), e.tooltips && Ee(), ot();
|
|
1032
|
+
}
|
|
1033
|
+
Ut();
|
|
1034
|
+
var re = {
|
|
1035
|
+
destroy: xt,
|
|
1036
|
+
steps: zt,
|
|
1037
|
+
on: me,
|
|
1038
|
+
off: W,
|
|
1039
|
+
get: Oe,
|
|
1040
|
+
set: te,
|
|
1041
|
+
setHandle: bt,
|
|
1042
|
+
reset: gt,
|
|
1043
|
+
disable: rt,
|
|
1044
|
+
enable: it,
|
|
1045
|
+
// Exposed for unit testing, don't use this in your application.
|
|
1046
|
+
__moveHandles: function(t, i, o) {
|
|
1047
|
+
De(t, i, w, o);
|
|
1048
|
+
},
|
|
1049
|
+
options: a,
|
|
1050
|
+
updateOptions: St,
|
|
1051
|
+
target: h,
|
|
1052
|
+
removePips: ce,
|
|
1053
|
+
removeTooltips: ue,
|
|
1054
|
+
getPositions: function() {
|
|
1055
|
+
return w.slice();
|
|
1056
|
+
},
|
|
1057
|
+
getTooltips: function() {
|
|
1058
|
+
return N;
|
|
1059
|
+
},
|
|
1060
|
+
getOrigins: function() {
|
|
1061
|
+
return p;
|
|
1062
|
+
},
|
|
1063
|
+
pips: fe
|
|
1064
|
+
// Issue #594
|
|
1065
|
+
};
|
|
1066
|
+
return re;
|
|
1067
|
+
}
|
|
1068
|
+
function dr(r, e) {
|
|
1069
|
+
if (!r || !r.nodeName)
|
|
1070
|
+
throw new Error("noUiSlider: create requires a single element, got: " + r);
|
|
1071
|
+
if (r.noUiSlider)
|
|
1072
|
+
throw new Error("noUiSlider: Slider was already initialized.");
|
|
1073
|
+
var a = Je(e), c = fr(r, a, e);
|
|
1074
|
+
return r.noUiSlider = c, c;
|
|
1075
|
+
}
|
|
1076
|
+
const hr = {
|
|
1077
|
+
// Exposed for unit testing, don't use this in your application.
|
|
1078
|
+
__spectrum: Ye,
|
|
1079
|
+
// A reference to the default classes, allows global changes.
|
|
1080
|
+
// Use the cssClasses option for changes to one slider.
|
|
1081
|
+
cssClasses: Xe,
|
|
1082
|
+
create: dr
|
|
1083
|
+
}, mr = '.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#fafafa;border-radius:4px;border:1px solid #d3d3d3;box-shadow:inset 0 1px 1px #f0f0f0,0 3px 6px -5px #bbb}.noUi-connects{border-radius:3px}.noUi-connect{background:#3fb8af}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #d9d9d9;border-radius:3px;background:#fff;cursor:default;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb}.noUi-active{box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect,.noUi-horizontal[disabled] .noUi-connects .noUi-connect{background:var(--luzmo-slider-background-color-disabled, var(--luzmo-disabled-color, #b8b8b8))}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed!important}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#ccc}.noUi-marker-sub,.noUi-marker-large{background:#aaa}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translateY(-50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translateY(50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #d9d9d9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translateY(-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translateY(-18px);top:auto;right:28px}.noUi-handle.noUi-handle-lower:focus-visible{outline:calc(var(--luzmo-border-width) / var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5))) solid var(--luzmo-primary)}:host{flex-grow:1;height:1rem}.luzmo-slider-container{width:100%}.noUi-horizontal{height:var(--luzmo-slider-track-height, var(--slider-track-height, 18px));top:var(--luzmo-slider-top-to-track, var(--slider-top-to-track, 0));border:none;box-shadow:none}.noUi-horizontal .noUi-base{background:var(--luzmo-background-color);cursor:pointer}.noUi-horizontal .noUi-connects{width:100%;left:0;background:var(--luzmo-border-color);border-radius:.625rem}.noUi-horizontal .noUi-connects .noUi-connect{background:var(--luzmo-primary)}.noUi-horizontal .noUi-origin .noUi-handle{transform:scale(var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5)));width:var(--luzmo-slider-handle-size, var(--slider-handle-size, 2rem));height:var(--luzmo-slider-handle-size, var(--slider-handle-size, 2rem));right:var(--luzmo-slider-edge-to-handle, var(--slider-edge-to-handle, 14px));top:var(--luzmo-slider-top-to-handle, var(--slider-top-to-handle, -.875rem));background:var(--luzmo-background-color);transition:background-color var(--luzmo-animation-duration);box-shadow:0 .125rem .25rem var(--luzmo-border-color),inset 0 0 0 .0625rem var(--luzmo-border-color);border-radius:50%;border:none;cursor:pointer}.noUi-horizontal .noUi-origin .noUi-handle:before,.noUi-horizontal .noUi-origin .noUi-handle:after{display:none}.noUi-horizontal .noUi-origin .noUi-handle:hover,.noUi-horizontal .noUi-origin .noUi-handle.noUi-active{background-color:var(--luzmo-slider-background-color-hover, var(--luzmo-background-color-hover))}.noUi-horizontal[disabled] .noUi-connects{background:var(--luzmo-slider-background-color-disabled, var(--luzmo-background-color-disabled))}.noUi-horizontal[disabled] .noUi-origin .noUi-handle:hover{background-color:var(--luzmo-slider-background-color-disabled-hover, var(--luzmo-background-color))}.noUi-tooltip{padding:.5rem;font-size:calc(var(--luzmo-slider-tooltip-font-size, var(--slider-tooltip-font-size)) / var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5)));background:var(--luzmo-background-color);color:var(--luzmo-font-color);display:none}.noUi-active .noUi-tooltip{display:block}:host{font-family:var(--luzmo-slider-font-family, var(--luzmo-font-family));min-block-size:var(--luzmo-slider-item-height, var(--slider-item-height));--slider-edge-to-handle: calc(-1 * var(--slider-handle-size) / 2);--slider-top-to-track: calc( ( var(--luzmo-slider-item-height, var(--slider-item-height)) - var(--luzmo-slider-track-height, var(--slider-track-height)) ) / 2 );--slider-top-to-handle: calc( ( ( (var(--luzmo-slider-track-height, var(--slider-track-height))) / 2 - var(--luzmo-slider-handle-size, var(--slider-handle-size)) * var(--luzmo-slider-handle-scale, var(--slider-handle-scale)) ) ) )}:host([size=s]){--slider-item-height: 24px;--slider-track-height: 3px;--slider-handle-scale: .5;--slider-handle-size: 32px;--slider-tooltip-font-size: var(--luzmo-font-size-xs)}:host{--slider-item-height: 32px;--slider-track-height: 4px;--slider-handle-scale: .5;--slider-handle-size: 36px;--slider-tooltip-font-size: var(--luzmo-font-size-s)}:host([size=l]){--slider-min-height: 40px;--slider-track-height: 6px;--slider-handle-scale: .5;--slider-handle-size: 40px;--slider-tooltip-font-size: var(--luzmo-font-size)}:host([size=xl]){--slider-min-height: 48px;--slider-track-height: 7px;--slider-handle-scale: .5;--slider-handle-size: 44px;--slider-tooltip-font-size: var(--luzmo-font-size)}';
|
|
1084
|
+
var pr = Object.defineProperty, X = (r, e, a, c) => {
|
|
1085
|
+
for (var u = void 0, m = r.length - 1, h; m >= 0; m--)
|
|
1086
|
+
(h = r[m]) && (u = h(e, a, u) || u);
|
|
1087
|
+
return u && pr(e, a, u), u;
|
|
1088
|
+
};
|
|
1089
|
+
const ke = class ke extends At(Ct) {
|
|
1090
|
+
constructor() {
|
|
1091
|
+
super(...arguments), this.value = 0, this.min = 0, this.max = 100, this.step = 100, this.disabled = !1, this.debounce = 200, this._doingUpdate = !1;
|
|
1092
|
+
}
|
|
1093
|
+
get _slider() {
|
|
1094
|
+
return this.renderRoot.querySelector("div");
|
|
1095
|
+
}
|
|
1096
|
+
firstUpdated() {
|
|
1097
|
+
this.noUiSlider = hr.create(
|
|
1098
|
+
this.renderRoot.querySelector("div"),
|
|
1099
|
+
{
|
|
1100
|
+
start: this.value ?? 0,
|
|
1101
|
+
connect: [!0, !1],
|
|
1102
|
+
step: this.step ?? 1,
|
|
1103
|
+
range: {
|
|
1104
|
+
min: this.min ?? 0,
|
|
1105
|
+
max: this.max ?? 100
|
|
1106
|
+
},
|
|
1107
|
+
tooltips: !0
|
|
1108
|
+
}
|
|
1109
|
+
), this.noUiSlider.on("slide", (e, a, [c]) => {
|
|
1110
|
+
this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(() => {
|
|
1111
|
+
this.setValue(c);
|
|
1112
|
+
}, this.debounce ?? 200);
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
updated(e) {
|
|
1116
|
+
const a = e.get("value"), c = e.get("min"), u = e.get("max"), m = e.get("step"), h = e.get("disabled");
|
|
1117
|
+
this.value !== void 0 && this.value !== a && this.noUiSlider.set(this.value), (this.min !== void 0 && (u !== void 0 || this.max !== void 0) && this.min !== c || this.max !== void 0 && (c !== void 0 || this.min !== void 0) && this.max !== u) && this.noUiSlider.updateOptions(
|
|
1118
|
+
{ range: { min: this.min ?? c, max: this.max ?? u } },
|
|
1119
|
+
!0
|
|
1120
|
+
), this.step !== void 0 && this.step !== m && this.noUiSlider.updateOptions({ step: this.step }, !0), this.disabled !== void 0 && this.disabled !== h && (this.disabled ? this.noUiSlider.disable() : this.noUiSlider.enable());
|
|
1121
|
+
}
|
|
1122
|
+
setValue(e) {
|
|
1123
|
+
this.disabled || this.dispatchEvent(
|
|
1124
|
+
new CustomEvent("change", {
|
|
1125
|
+
detail: e,
|
|
1126
|
+
bubbles: !0,
|
|
1127
|
+
composed: !0
|
|
1128
|
+
})
|
|
1129
|
+
);
|
|
1130
|
+
}
|
|
1131
|
+
render() {
|
|
1132
|
+
return yt`<div class="luzmo-slider-container"></div>`;
|
|
1133
|
+
}
|
|
1134
|
+
};
|
|
1135
|
+
ke.styles = [Et(mr)];
|
|
1136
|
+
let F = ke;
|
|
1137
|
+
X([
|
|
1138
|
+
Y({ type: Number, reflect: !0 })
|
|
1139
|
+
], F.prototype, "value");
|
|
1140
|
+
X([
|
|
1141
|
+
Y({ type: Number, reflect: !0 })
|
|
1142
|
+
], F.prototype, "min");
|
|
1143
|
+
X([
|
|
1144
|
+
Y({ type: Number, reflect: !0 })
|
|
1145
|
+
], F.prototype, "max");
|
|
1146
|
+
X([
|
|
1147
|
+
Y({ type: Number, reflect: !0 })
|
|
1148
|
+
], F.prototype, "step");
|
|
1149
|
+
X([
|
|
1150
|
+
Y({ type: Boolean, reflect: !0 })
|
|
1151
|
+
], F.prototype, "disabled");
|
|
1152
|
+
X([
|
|
1153
|
+
Y({ type: Number, reflect: !0 })
|
|
1154
|
+
], F.prototype, "debounce");
|
|
1155
|
+
customElements.get("luzmo-slider") || customElements.define("luzmo-slider", F);
|
|
1156
|
+
export {
|
|
1157
|
+
F as LuzmoSlider
|
|
1158
|
+
};
|