@luzmo/analytics-components-kit 1.0.1-alpha.23 → 1.0.1-alpha.25
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/{area-chart-options.config-B_RU34v5.js → area-chart-options.config-7NUkgEdr.js} +1 -1
- package/components/{area-chart-options.config-2BXQXewO.cjs → area-chart-options.config-HmuEMllK.cjs} +1 -1
- package/components/{bar-chart-options.config-CyLNzGX7.js → bar-chart-options.config-BdbbHUJZ.js} +1 -1
- package/components/{bar-chart-options.config-DlDSo8Dq.cjs → bar-chart-options.config-C9XGEujs.cjs} +1 -1
- package/components/box-plot-options.config-DJz_kt-M.cjs +20 -0
- package/components/{box-plot-options.config-Bx78e6xX.js → box-plot-options.config-vlz5qeNq.js} +7 -7
- package/components/{bubble-chart-options.config-DoLr3Twj.js → bubble-chart-options.config-BacgXkJ_.js} +1 -1
- package/components/{bubble-chart-options.config-B5uoD-UQ.cjs → bubble-chart-options.config-Ihn6eVQI.cjs} +1 -1
- package/components/{bullet-chart-options.config-WCpV0bmw.js → bullet-chart-options.config-Bsw7N7Wl.js} +1 -1
- package/components/{bullet-chart-options.config-Dqq2JsBH.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
- package/components/{choropleth-map-options.config-DHQu69ib.js → choropleth-map-options.config-CeKXtnYB.js} +2 -2
- package/components/{choropleth-map-options.config-BfiQod-y.cjs → choropleth-map-options.config-CxUOg3pw.cjs} +1 -1
- package/components/{circular-gauge-options.config-CfBX-BB2.cjs → circular-gauge-options.config-Cz2TGR6X.cjs} +1 -1
- package/components/{circular-gauge-options.config-DKERJQpZ.js → circular-gauge-options.config-Kd_WK_w-.js} +7 -7
- package/components/{column-chart-options.config-qM4Qo3NP.cjs → column-chart-options.config-Bi0RAzK-.cjs} +1 -1
- package/components/{column-chart-options.config-Car_euCH.js → column-chart-options.config-BqSQ1Sl9.js} +1 -1
- package/components/{conditional-number-options.config-CU9_onv1.cjs → conditional-number-options.config-BZfgdUGh.cjs} +1 -1
- package/components/{conditional-number-options.config-B5rpjedA.js → conditional-number-options.config-BzzAnCOB.js} +1 -1
- package/components/{date-filter-options.config-KiuizKhg.js → date-filter-options.config-DBRxlTWy.js} +2 -2
- package/components/{donut-chart-options.config-NPwNtLDW.js → donut-chart-options.config-BulUEiaH.js} +37 -18
- package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
- package/components/edit-item/index.cjs +11 -3
- package/components/edit-item/index.js +89 -51
- package/components/edit-option/helpers/get-value-by-key.d.ts +1 -1
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -2
- package/components/edit-option-multi-language-field/index.cjs +2 -2
- package/components/edit-option-multi-language-field/index.js +10 -10
- package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -2
- package/components/edit-option-number-field/index.cjs +3 -3
- package/components/edit-option-number-field/index.js +10 -10
- package/components/edit-option-picker/edit-option-picker.d.ts +2 -2
- package/components/edit-option-picker/index.cjs +6 -6
- package/components/edit-option-picker/index.js +10 -10
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +2 -2
- package/components/edit-option-radio-button-group/index.cjs +3 -3
- package/components/edit-option-radio-button-group/index.js +16 -16
- package/components/edit-option-slider/edit-option-slider.d.ts +2 -2
- package/components/edit-option-slider/index.cjs +2 -2
- package/components/edit-option-slider/index.js +29 -29
- package/components/edit-option-switch/edit-option-switch.d.ts +2 -2
- package/components/edit-option-switch/index.cjs +2 -2
- package/components/edit-option-switch/index.js +10 -10
- package/components/{evolution-number-options.config-G8jViz8Z.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-DmzhEioN.js → evolution-number-options.config-DzkfeoIN.js} +3 -3
- package/components/{funnel-chart-options.config-CrlHKd36.js → funnel-chart-options.config-CIOrejfS.js} +23 -22
- package/components/funnel-chart-options.config-L_gqlFs2.cjs +20 -0
- package/components/{heat-map-options.config-B0FtmOXM.js → heat-map-options.config-BAuSJV3_.js} +4 -4
- package/components/{heat-map-options.config-CnBcz-lL.cjs → heat-map-options.config-DsUXxjN0.cjs} +1 -1
- package/components/heat-table-options.config-DSu_18VG.js +309 -0
- package/components/heat-table-options.config-DqPL2hIY.cjs +20 -0
- package/components/heat-table-options.de-BABkUn2Y.js +142 -0
- package/components/heat-table-options.de-aYfCrdCP.cjs +20 -0
- package/components/heat-table-options.en-BUBmMDZW.js +142 -0
- package/components/heat-table-options.en-CIdnDv3K.cjs +20 -0
- package/components/heat-table-options.es-DaK6qGQC.cjs +20 -0
- package/components/heat-table-options.es-Dl9D9rD_.js +142 -0
- package/components/heat-table-options.fr-BouHFs1P.cjs +20 -0
- package/components/heat-table-options.fr-DOShw8a1.js +142 -0
- package/components/heat-table-options.nl-8CXDqKzS.cjs +20 -0
- package/components/heat-table-options.nl-D6Fn7sgt.js +142 -0
- package/components/helpers-DXQwEH1P.cjs +20 -0
- package/components/helpers-v1bPALRP.js +91 -0
- package/components/{hexbin-map-options.config-BraDZx_s.cjs → hexbin-map-options.config-B_KAcDYq.cjs} +1 -1
- package/components/{hexbin-map-options.config-BJaPYxgd.js → hexbin-map-options.config-DaaC88d8.js} +2 -2
- package/components/{index-DGIXzqTS.js → index-Dn7LyFPv.js} +330 -290
- package/components/index-eEpFkbP8.cjs +195 -0
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{line-chart-options.config-vvO1O6jm.js → line-chart-options.config-DB3IsXXr.js} +1 -1
- package/components/{line-chart-options.config-DsskcFNR.cjs → line-chart-options.config-DSugoe0t.cjs} +1 -1
- package/components/{marker-map-options.config-DlJhJQFX.js → marker-map-options.config-CYoq89Oz.js} +6 -6
- package/components/{marker-map-options.config-DJrnM51M.cjs → marker-map-options.config-_XFv5XWK.cjs} +1 -1
- package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
- package/components/pivot-table-options.config-DNK_AIG7.js +232 -0
- package/components/pivot-table-options.de-CEaD9SHr.cjs +20 -0
- package/components/pivot-table-options.de-Dfa6EWs8.js +97 -0
- package/components/pivot-table-options.en-B5sM2MbV.js +97 -0
- package/components/pivot-table-options.en-DC07VN7H.cjs +20 -0
- package/components/pivot-table-options.es-DRXomw6R.js +97 -0
- package/components/pivot-table-options.es-Xm6ENByP.cjs +20 -0
- package/components/pivot-table-options.fr-ClLROt4b.cjs +20 -0
- package/components/pivot-table-options.fr-DEm9IyRf.js +97 -0
- package/components/pivot-table-options.nl-C4c_dGos.js +97 -0
- package/components/pivot-table-options.nl-Dk2Oeu8i.cjs +20 -0
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
- package/components/pyramid-chart-options.config-CcVMatYx.js +285 -0
- package/components/pyramid-chart-options.de-CwVggi4v.js +109 -0
- package/components/pyramid-chart-options.de-DKas0NiC.cjs +20 -0
- package/components/pyramid-chart-options.en-L6DFdrRz.cjs +20 -0
- package/components/pyramid-chart-options.en-elRf98In.js +109 -0
- package/components/pyramid-chart-options.es-BBbeV0cJ.js +109 -0
- package/components/pyramid-chart-options.es-Cu0g6t6A.cjs +20 -0
- package/components/pyramid-chart-options.fr-C1NDQloJ.js +109 -0
- package/components/pyramid-chart-options.fr-CreHLwD_.cjs +20 -0
- package/components/pyramid-chart-options.nl-CRbkXz3i.cjs +20 -0
- package/components/pyramid-chart-options.nl-DBCQKS8l.js +109 -0
- package/components/{radar-chart-options.config-DBJ8brjT.js → radar-chart-options.config-CUZn_3Fd.js} +1 -1
- package/components/{radar-chart-options.config-DP8xDDs-.cjs → radar-chart-options.config-EqQu6PTh.cjs} +1 -1
- package/components/{regular-table-options.config-HkJRCsZu.js → regular-table-options.config-BoLZsBry.js} +17 -17
- package/components/regular-table-options.config-DTx3RTnS.cjs +20 -0
- package/components/{route-map-options.config-BOIdPHns.cjs → route-map-options.config-CcQXPmjN.cjs} +1 -1
- package/components/{route-map-options.config-CPM0TmlA.js → route-map-options.config-u0hQqmDh.js} +6 -6
- package/components/{sankey-diagram-options.config-BUSorI4e.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-v0h4IkEH.js → sankey-diagram-options.config-tVLKy_Zn.js} +1 -1
- package/components/scatter-plot-options.config-DkJLutNb.cjs +20 -0
- package/components/scatter-plot-options.config-lrkd9qj4.js +321 -0
- package/components/scatter-plot-options.de-CNfyb-0y.js +134 -0
- package/components/scatter-plot-options.de-fSoIvHJy.cjs +20 -0
- package/components/scatter-plot-options.en-CGCdpOtQ.cjs +20 -0
- package/components/scatter-plot-options.en-DT_QitaD.js +134 -0
- package/components/scatter-plot-options.es-CLRJMSqn.cjs +20 -0
- package/components/scatter-plot-options.es-Cb_VrOKP.js +134 -0
- package/components/scatter-plot-options.fr-AUEQJHAt.js +134 -0
- package/components/scatter-plot-options.fr-Da2McGuN.cjs +20 -0
- package/components/scatter-plot-options.nl-C53CChoE.js +134 -0
- package/components/scatter-plot-options.nl-CRWq01rL.cjs +20 -0
- package/components/{slicer-filter-options.config-DnOP_foh.js → slicer-filter-options.config-3JZZcw5C.js} +5 -5
- package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
- package/components/{slider-filter-options.config-BJZtYn5P.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
- package/components/{slider-filter-options.config-DJ2XK2QN.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
- package/components/speedometer-chart-options.config-CVsSjLmh.cjs +20 -0
- package/components/speedometer-chart-options.config-Dt2feQYV.js +199 -0
- package/components/speedometer-chart-options.de-D5SIAUZA.cjs +20 -0
- package/components/speedometer-chart-options.de-Es9DDvRK.js +90 -0
- package/components/speedometer-chart-options.en-BUj6JXhT.cjs +20 -0
- package/components/speedometer-chart-options.en-ByIJm8EZ.js +90 -0
- package/components/speedometer-chart-options.es-CPKH0xpW.js +90 -0
- package/components/speedometer-chart-options.es-DalX0e7D.cjs +20 -0
- package/components/speedometer-chart-options.fr-BctlGfgX.js +90 -0
- package/components/speedometer-chart-options.fr-Dqn95u64.cjs +20 -0
- package/components/speedometer-chart-options.nl-Bo6cV2j0.cjs +20 -0
- package/components/speedometer-chart-options.nl-Ygle7DjX.js +90 -0
- package/components/{spike-map-options.config-D-TWp2W4.cjs → spike-map-options.config-PpPPrsR2.cjs} +1 -1
- package/components/{spike-map-options.config-wzGnfQRU.js → spike-map-options.config-pdbV_vwg.js} +3 -3
- package/components/{symbol-map-options.config-DlyBMq6R.js → symbol-map-options.config-Bj-UuL9m.js} +3 -3
- package/components/{symbol-map-options.config-FVRaZHKk.cjs → symbol-map-options.config-sdPlHspI.cjs} +1 -1
- package/components/{treemap-chart-options.config-QYXvOoni.cjs → treemap-chart-options.config-C0Q9aQ1Z.cjs} +1 -1
- package/components/{treemap-chart-options.config-COItww3I.js → treemap-chart-options.config-D5AJaF_u.js} +1 -1
- package/components/{wordcloud-chart-options.config-JBSwFHr2.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-wNLESTnL.js → wordcloud-chart-options.config-w2NUIWVA.js} +1 -1
- package/custom-elements.json +25 -25
- package/item-definitions/box-plot/box-plot-options.config.d.ts +4 -4
- package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +6 -6
- package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +6 -6
- package/item-definitions/donut-chart/donut-chart-options.config.d.ts +35 -13
- package/item-definitions/evolution-number/evolution-number-options.config.d.ts +10 -10
- package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +24 -8
- package/item-definitions/heat-map/heat-map-options.config.d.ts +4 -4
- package/item-definitions/heat-table/heat-table-options.config.d.ts +179 -0
- package/item-definitions/heat-table/i18n/heat-table-options.de.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.en.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.es.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.fr.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.nl.d.ts +121 -0
- package/item-definitions/helpers.d.ts +7 -0
- package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +4 -4
- package/item-definitions/marker-map/marker-map-options.config.d.ts +6 -6
- package/item-definitions/pivot-table/i18n/pivot-table-options.de.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.en.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.es.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.fr.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.nl.d.ts +76 -0
- package/item-definitions/pivot-table/pivot-table-options.config.d.ts +157 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.de.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.en.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.es.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.fr.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.nl.d.ts +88 -0
- package/item-definitions/pyramid-chart/pyramid-chart-options.config.d.ts +113 -0
- package/item-definitions/regular-table/regular-table-options.config.d.ts +6 -6
- package/item-definitions/route-map/route-map-options.config.d.ts +6 -6
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.de.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.en.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.es.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.fr.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.nl.d.ts +113 -0
- package/item-definitions/scatter-plot/scatter-plot-options.config.d.ts +160 -0
- package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +10 -10
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.de.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.en.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.es.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.fr.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.nl.d.ts +69 -0
- package/item-definitions/speedometer-chart/speedometer-chart-options.config.d.ts +80 -0
- package/item-definitions/spike-map/spike-map-options.config.d.ts +6 -6
- package/item-definitions/symbol-map/symbol-map-options.config.d.ts +4 -4
- package/package.json +1 -1
- package/components/box-plot-options.config-VLu-MYZx.cjs +0 -20
- package/components/donut-chart-options.config-bqcKuyIu.cjs +0 -20
- package/components/funnel-chart-options.config-hw_GXs4s.cjs +0 -20
- package/components/helpers-2MlDBxn2.js +0 -74
- package/components/helpers-CK5Jy2Ta.cjs +0 -20
- package/components/index-4gddXWJC.cjs +0 -195
- package/components/regular-table-options.config-Bi84Hym7.cjs +0 -20
- package/components/slicer-filter-options.config-k8DoX77G.cjs +0 -20
@@ -33,7 +33,7 @@
|
|
33
33
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
35
35
|
* SOFTWARE.
|
36
|
-
* */const Oe=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const o=document.createElement("style");o.setAttribute("data-luzmo-vars",""),o.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(o)}};Oe();var B;(function(o){o.Range="range",o.Steps="steps",o.Positions="positions",o.Count="count",o.Values="values"})(B||(B={}));var D;(function(o){o[o.None=-1]="None",o[o.NoValue=0]="NoValue",o[o.LargeValue=1]="LargeValue",o[o.SmallValue=2]="SmallValue"})(D||(D={}));function Me(o){return st(o)&&typeof o.from=="function"}function st(o){return typeof o=="object"&&typeof o.to=="function"}function Bt(o){o.parentElement.removeChild(o)}function St(o){return o!=null}function $t(o){o.preventDefault()}function De(o){return o.filter(function(t){return this[t]?!1:this[t]=!0},{})}function Le(o,t){return Math.round(o/t)*t}function Re(o,t){var i=o.getBoundingClientRect(),c=o.ownerDocument,s=c.documentElement,h=Wt(c);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(h.x=0),t?i.top+h.y-s.clientTop:i.left+h.x-s.clientLeft}function j(o){return typeof o=="number"&&!isNaN(o)&&isFinite(o)}function Yt(o,t,i){i>0&&(M(o,t),setTimeout(function(){at(o,t)},i))}function Xt(o){return Math.max(Math.min(o,100),0)}function lt(o){return Array.isArray(o)?o:[o]}function je(o){o=String(o);var t=o.split(".");return t.length>1?t[1].length:0}function M(o,t){o.classList&&!/\s/.test(t)?o.classList.add(t):o.className+=" "+t}function at(o,t){o.classList&&!/\s/.test(t)?o.classList.remove(t):o.className=o.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function He(o,t){return o.classList?o.classList.contains(t):new RegExp("\\b"+t+"\\b").test(o.className)}function Wt(o){var t=window.pageXOffset!==void 0,i=(o.compatMode||"")==="CSS1Compat",c=t?window.pageXOffset:i?o.documentElement.scrollLeft:o.body.scrollLeft,s=t?window.pageYOffset:i?o.documentElement.scrollTop:o.body.scrollTop;return{x:c,y:s}}function Fe(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function Te(){var o=!1;try{var t=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,t)}catch{}return o}function _e(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Et(o,t){return 100/(t-o)}function kt(o,t,i){return t*100/(o[i+1]-o[i])}function qe(o,t){return kt(o,o[0]<0?t+Math.abs(o[0]):t-o[0],0)}function Be(o,t){return t*(o[1]-o[0])/100+o[0]}function tt(o,t){for(var i=1;o>=t[i];)i+=1;return i}function $e(o,t,i){if(i>=o.slice(-1)[0])return 100;var c=tt(i,o),s=o[c-1],h=o[c],f=t[c-1],z=t[c];return f+qe([s,h],i)/Et(f,z)}function Ye(o,t,i){if(i>=100)return o.slice(-1)[0];var c=tt(i,t),s=o[c-1],h=o[c],f=t[c-1],z=t[c];return Be([s,h],(i-f)*Et(f,z))}function Xe(o,t,i,c){if(c===100)return c;var s=tt(c,o),h=o[s-1],f=o[s];return i?c-h>(f-h)/2?f:h:t[s-1]?o[s-1]+Le(c-o[s-1],t[s-1]):c}var Zt=function(){function o(t,i,c){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[c||!1],this.xNumSteps=[!1],this.snap=i;var s,h=[];for(Object.keys(t).forEach(function(f){h.push([lt(t[f]),f])}),h.sort(function(f,z){return f[0][0]-z[0][0]}),s=0;s<h.length;s++)this.handleEntryPoint(h[s][1],h[s][0]);for(this.xNumSteps=this.xSteps.slice(0),s=0;s<this.xNumSteps.length;s++)this.handleStepPoint(s,this.xNumSteps[s])}return o.prototype.getDistance=function(t){for(var i=[],c=0;c<this.xNumSteps.length-1;c++)i[c]=kt(this.xVal,t,c);return i},o.prototype.getAbsoluteDistance=function(t,i,c){var s=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[s+1];)s++;else t===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);!c&&t===this.xPct[s+1]&&s++,i===null&&(i=[]);var h,f=1,z=i[s],y=0,m=0,V=0,A=0;for(c?h=(t-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):h=(this.xPct[s+1]-t)/(this.xPct[s+1]-this.xPct[s]);z>0;)y=this.xPct[s+1+A]-this.xPct[s+A],i[s+A]*f+100-h*100>100?(m=y*h,f=(z-100*h)/i[s+A],h=1):(m=i[s+A]*y/100*f,f=0),c?(V=V-m,this.xPct.length+A>=1&&A--):(V=V+m,this.xPct.length-A>=1&&A++),z=i[s+A]*f;return t+V},o.prototype.toStepping=function(t){return t=$e(this.xVal,this.xPct,t),t},o.prototype.fromStepping=function(t){return Ye(this.xVal,this.xPct,t)},o.prototype.getStep=function(t){return t=Xe(this.xPct,this.xSteps,this.snap,t),t},o.prototype.getDefaultStep=function(t,i,c){var s=tt(t,this.xPct);return(t===100||i&&t===this.xPct[s-1])&&(s=Math.max(s-1,1)),(this.xVal[s]-this.xVal[s-1])/c},o.prototype.getNearbySteps=function(t){var i=tt(t,this.xPct);return{stepBefore:{startValue:this.xVal[i-2],step:this.xNumSteps[i-2],highestStep:this.xHighestCompleteStep[i-2]},thisStep:{startValue:this.xVal[i-1],step:this.xNumSteps[i-1],highestStep:this.xHighestCompleteStep[i-1]},stepAfter:{startValue:this.xVal[i],step:this.xNumSteps[i],highestStep:this.xHighestCompleteStep[i]}}},o.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(je);return Math.max.apply(null,t)},o.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},o.prototype.convert=function(t){return this.getStep(this.toStepping(t))},o.prototype.handleEntryPoint=function(t,i){var c;if(t==="min"?c=0:t==="max"?c=100:c=parseFloat(t),!j(c)||!j(i[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(c),this.xVal.push(i[0]);var s=Number(i[1]);c?this.xSteps.push(isNaN(s)?!1:s):isNaN(s)||(this.xSteps[0]=s),this.xHighestCompleteStep.push(0)},o.prototype.handleStepPoint=function(t,i){if(i){if(this.xVal[t]===this.xVal[t+1]){this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t];return}this.xSteps[t]=kt([this.xVal[t],this.xVal[t+1]],i,0)/Et(this.xPct[t],this.xPct[t+1]);var c=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],s=Math.ceil(Number(c.toFixed(3))-1),h=this.xVal[t]+this.xNumSteps[t]*s;this.xHighestCompleteStep[t]=h}},o}(),It={to:function(o){return o===void 0?"":o.toFixed(2)},from:Number},Gt={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},q={tooltips:".__tooltips",aria:".__aria"};function Ie(o,t){if(!j(t))throw new Error("noUiSlider: 'step' is not numeric.");o.singleStep=t}function We(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");o.keyboardPageMultiplier=t}function Ze(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");o.keyboardMultiplier=t}function Ge(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");o.keyboardDefaultStep=t}function Je(o,t){if(typeof t!="object"||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(t.min===void 0||t.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");o.spectrum=new Zt(t,o.snap||!1,o.singleStep)}function Ke(o,t){if(t=lt(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");o.handles=t.length,o.start=t}function Qe(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");o.snap=t}function to(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");o.animate=t}function eo(o,t){if(typeof t!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");o.animationDuration=t}function Jt(o,t){var i=[!1],c;if(t==="lower"?t=[!0,!1]:t==="upper"&&(t=[!1,!0]),t===!0||t===!1){for(c=1;c<o.handles;c++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==o.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}o.connect=i}function oo(o,t){switch(t){case"horizontal":o.ort=0;break;case"vertical":o.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Kt(o,t){if(!j(t))throw new Error("noUiSlider: 'margin' option must be numeric.");t!==0&&(o.margin=o.spectrum.getDistance(t))}function ro(o,t){if(!j(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(o.limit=o.spectrum.getDistance(t),!o.limit||o.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function no(o,t){var i;if(!j(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&!(t.length===2||j(t[0])||j(t[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(t!==0){for(Array.isArray(t)||(t=[t,t]),o.padding=[o.spectrum.getDistance(t[0]),o.spectrum.getDistance(t[1])],i=0;i<o.spectrum.xNumSteps.length-1;i++)if(o.padding[0][i]<0||o.padding[1][i]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var c=t[0]+t[1],s=o.spectrum.xVal[0],h=o.spectrum.xVal[o.spectrum.xVal.length-1];if(c/(h-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function io(o,t){switch(t){case"ltr":o.dir=0;break;case"rtl":o.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ao(o,t){if(typeof t!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var i=t.indexOf("tap")>=0,c=t.indexOf("drag")>=0,s=t.indexOf("fixed")>=0,h=t.indexOf("snap")>=0,f=t.indexOf("hover")>=0,z=t.indexOf("unconstrained")>=0,y=t.indexOf("invert-connects")>=0,m=t.indexOf("drag-all")>=0,V=t.indexOf("smooth-steps")>=0;if(s){if(o.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Kt(o,o.start[1]-o.start[0])}if(y&&o.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(z&&(o.margin||o.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");o.events={tap:i||h,drag:c,dragAll:m,smoothSteps:V,fixed:s,snap:h,hover:f,unconstrained:z,invertConnects:y}}function so(o,t){if(t!==!1)if(t===!0||st(t)){o.tooltips=[];for(var i=0;i<o.handles;i++)o.tooltips.push(t)}else{if(t=lt(t),t.length!==o.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(c){if(typeof c!="boolean"&&!st(c))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),o.tooltips=t}}function lo(o,t){if(t.length!==o.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");o.handleAttributes=t}function uo(o,t){if(!st(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");o.ariaFormat=t}function co(o,t){if(!Me(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");o.format=t}function po(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");o.keyboardSupport=t}function fo(o,t){o.documentElement=t}function ho(o,t){if(typeof t!="string"&&t!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");o.cssPrefix=t}function mo(o,t){if(typeof t!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof o.cssPrefix=="string"?(o.cssClasses={},Object.keys(t).forEach(function(i){o.cssClasses[i]=o.cssPrefix+t[i]})):o.cssClasses=t}function Qt(o){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:It,format:It},i={step:{r:!1,t:Ie},keyboardPageMultiplier:{r:!1,t:We},keyboardMultiplier:{r:!1,t:Ze},keyboardDefaultStep:{r:!1,t:Ge},start:{r:!0,t:Ke},connect:{r:!0,t:Jt},direction:{r:!0,t:io},snap:{r:!1,t:Qe},animate:{r:!1,t:to},animationDuration:{r:!1,t:eo},range:{r:!0,t:Je},orientation:{r:!1,t:oo},margin:{r:!1,t:Kt},limit:{r:!1,t:ro},padding:{r:!1,t:no},behaviour:{r:!0,t:ao},ariaFormat:{r:!1,t:uo},format:{r:!1,t:co},tooltips:{r:!1,t:so},keyboardSupport:{r:!0,t:po},documentElement:{r:!1,t:fo},cssPrefix:{r:!0,t:ho},cssClasses:{r:!0,t:mo},handleAttributes:{r:!1,t:lo}},c={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Gt,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};o.format&&!o.ariaFormat&&(o.ariaFormat=o.format),Object.keys(i).forEach(function(y){if(!St(o[y])&&c[y]===void 0){if(i[y].r)throw new Error("noUiSlider: '"+y+"' is required.");return}i[y].t(t,St(o[y])?o[y]:c[y])}),t.pips=o.pips;var s=document.createElement("div"),h=s.style.msTransform!==void 0,f=s.style.transform!==void 0;t.transformRule=f?"transform":h?"msTransform":"webkitTransform";var z=[["left","top"],["right","bottom"]];return t.style=z[t.dir][t.ort],t}function go(o,t,i){var c=Fe(),s=_e(),h=s&&Te(),f=o,z,y,m,V,A,_,g=t.spectrum,H=[],S=[],L=[],ut=0,F={},G=!1,W=o.ownerDocument,et=t.documentElement||W.documentElement,ot=W.body,ee=W.dir==="rtl"||t.ort===1?0:100;function T(e,r){var n=W.createElement("div");return r&&M(n,r),e.appendChild(n),n}function oe(e,r){var n=T(e,t.cssClasses.origin),a=T(n,t.cssClasses.handle);if(T(a,t.cssClasses.touchArea),a.setAttribute("data-handle",String(r)),t.keyboardSupport&&(a.setAttribute("tabindex","0"),a.addEventListener("keydown",function(u){return ve(u,r)})),t.handleAttributes!==void 0){var l=t.handleAttributes[r];Object.keys(l).forEach(function(u){a.setAttribute(u,l[u])})}return a.setAttribute("role","slider"),a.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),r===0?M(a,t.cssClasses.handleLower):r===t.handles-1&&M(a,t.cssClasses.handleUpper),n.handle=a,n}function ct(e,r){return r?T(e,t.cssClasses.connect):!1}function re(e,r){y=T(r,t.cssClasses.connects),m=[],V=[],V.push(ct(y,e[0]));for(var n=0;n<t.handles;n++)m.push(oe(r,n)),L[n]=n,V.push(ct(y,e[n+1]))}function ne(e){M(e,t.cssClasses.target),t.dir===0?M(e,t.cssClasses.ltr):M(e,t.cssClasses.rtl),t.ort===0?M(e,t.cssClasses.horizontal):M(e,t.cssClasses.vertical);var r=getComputedStyle(e).direction;return r==="rtl"?M(e,t.cssClasses.textDirectionRtl):M(e,t.cssClasses.textDirectionLtr),T(e,t.cssClasses.base)}function ie(e,r){return!t.tooltips||!t.tooltips[r]?!1:T(e.firstChild,t.cssClasses.tooltip)}function Nt(){return f.hasAttribute("disabled")}function dt(e){var r=m[e];return r.hasAttribute("disabled")}function ae(e){e!=null?(m[e].setAttribute("disabled",""),m[e].handle.removeAttribute("tabindex")):(f.setAttribute("disabled",""),m.forEach(function(r){r.handle.removeAttribute("tabindex")}))}function se(e){e!=null?(m[e].removeAttribute("disabled"),m[e].handle.setAttribute("tabindex","0")):(f.removeAttribute("disabled"),m.forEach(function(r){r.removeAttribute("disabled"),r.handle.setAttribute("tabindex","0")}))}function pt(){_&&(J("update"+q.tooltips),_.forEach(function(e){e&&Bt(e)}),_=null)}function Ct(){pt(),_=m.map(ie),bt("update"+q.tooltips,function(e,r,n){if(!(!_||!t.tooltips)&&_[r]!==!1){var a=e[r];t.tooltips[r]!==!0&&(a=t.tooltips[r].to(n[r])),_[r].innerHTML=a}})}function le(){J("update"+q.aria),bt("update"+q.aria,function(e,r,n,a,l){L.forEach(function(u){var p=m[u],d=rt(S,u,0,!0,!0,!0),v=rt(S,u,100,!0,!0,!0),x=l[u],w=String(t.ariaFormat.to(n[u]));d=g.fromStepping(d).toFixed(1),v=g.fromStepping(v).toFixed(1),x=g.fromStepping(x).toFixed(1),p.children[0].setAttribute("aria-valuemin",d),p.children[0].setAttribute("aria-valuemax",v),p.children[0].setAttribute("aria-valuenow",x),p.children[0].setAttribute("aria-valuetext",w)})})}function ue(e){if(e.mode===B.Range||e.mode===B.Steps)return g.xVal;if(e.mode===B.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var r=e.values-1,n=100/r,a=[];r--;)a[r]=r*n;return a.push(100),Vt(a,e.stepped)}return e.mode===B.Positions?Vt(e.values,e.stepped):e.mode===B.Values?e.stepped?e.values.map(function(l){return g.fromStepping(g.getStep(g.toStepping(l)))}):e.values:[]}function Vt(e,r){return e.map(function(n){return g.fromStepping(r?g.getStep(n):n)})}function ce(e){function r(x,w){return Number((x+w).toFixed(7))}var n=ue(e),a={},l=g.xVal[0],u=g.xVal[g.xVal.length-1],p=!1,d=!1,v=0;return n=De(n.slice().sort(function(x,w){return x-w})),n[0]!==l&&(n.unshift(l),p=!0),n[n.length-1]!==u&&(n.push(u),d=!0),n.forEach(function(x,w){var U,b,E,O=x,N=n[w+1],P,zt,yt,wt,Ft,Ut,Tt,_t=e.mode===B.Steps;for(_t&&(U=g.xNumSteps[w]),U||(U=N-O),N===void 0&&(N=O),U=Math.max(U,1e-7),b=O;b<=N;b=r(b,U)){for(P=g.toStepping(b),zt=P-v,Ft=zt/(e.density||1),Ut=Math.round(Ft),Tt=zt/Ut,E=1;E<=Ut;E+=1)yt=v+E*Tt,a[yt.toFixed(5)]=[g.fromStepping(yt),0];wt=n.indexOf(b)>-1?D.LargeValue:_t?D.SmallValue:D.NoValue,!w&&p&&b!==N&&(wt=0),b===N&&d||(a[P.toFixed(5)]=[b,wt]),v=P}}),a}function de(e,r,n){var a,l,u=W.createElement("div"),p=(a={},a[D.None]="",a[D.NoValue]=t.cssClasses.valueNormal,a[D.LargeValue]=t.cssClasses.valueLarge,a[D.SmallValue]=t.cssClasses.valueSub,a),d=(l={},l[D.None]="",l[D.NoValue]=t.cssClasses.markerNormal,l[D.LargeValue]=t.cssClasses.markerLarge,l[D.SmallValue]=t.cssClasses.markerSub,l),v=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],x=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];M(u,t.cssClasses.pips),M(u,t.ort===0?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical);function w(b,E){var O=E===t.cssClasses.value,N=O?v:x,P=O?p:d;return E+" "+N[t.ort]+" "+P[b]}function U(b,E,O){if(O=r?r(E,O):O,O!==D.None){var N=T(u,!1);N.className=w(O,t.cssClasses.marker),N.style[t.style]=b+"%",O>D.NoValue&&(N=T(u,!1),N.className=w(O,t.cssClasses.value),N.setAttribute("data-value",String(E)),N.style[t.style]=b+"%",N.innerHTML=String(n.to(E)))}}return Object.keys(e).forEach(function(b){U(b,e[b][0],e[b][1])}),u}function ft(){A&&(Bt(A),A=null)}function ht(e){ft();var r=ce(e),n=e.filter,a=e.format||{to:function(l){return String(Math.round(l))}};return A=f.appendChild(de(r,n,a)),A}function Pt(){var e=z.getBoundingClientRect(),r="offset"+["Width","Height"][t.ort];return t.ort===0?e.width||z[r]:e.height||z[r]}function Y(e,r,n,a){var l=function(p){var d=pe(p,a.pageOffset,a.target||r);if(!d||Nt()&&!a.doNotReject||He(f,t.cssClasses.tap)&&!a.doNotReject||e===c.start&&d.buttons!==void 0&&d.buttons>1||a.hover&&d.buttons)return!1;h||d.preventDefault(),d.calcPoint=d.points[t.ort],n(d,a)},u=[];return e.split(" ").forEach(function(p){r.addEventListener(p,l,h?{passive:!0}:!1),u.push([p,l])}),u}function pe(e,r,n){var a=e.type.indexOf("touch")===0,l=e.type.indexOf("mouse")===0,u=e.type.indexOf("pointer")===0,p=0,d=0;if(e.type.indexOf("MSPointer")===0&&(u=!0),e.type==="mousedown"&&!e.buttons&&!e.touches)return!1;if(a){var v=function(U){var b=U.target;return b===n||n.contains(b)||e.composed&&e.composedPath().shift()===n};if(e.type==="touchstart"){var x=Array.prototype.filter.call(e.touches,v);if(x.length>1)return!1;p=x[0].pageX,d=x[0].pageY}else{var w=Array.prototype.find.call(e.changedTouches,v);if(!w)return!1;p=w.pageX,d=w.pageY}}return r=r||Wt(W),(l||u)&&(p=e.clientX+r.x,d=e.clientY+r.y),e.pageOffset=r,e.points=[p,d],e.cursor=l||u,e}function At(e){var r=e-Re(z,t.ort),n=r*100/Pt();return n=Xt(n),t.dir?100-n:n}function fe(e){var r=100,n=!1;return m.forEach(function(a,l){if(!dt(l)){var u=S[l],p=Math.abs(u-e),d=p===100&&r===100,v=p<r,x=p<=r&&e>u;(v||x||d)&&(n=l,r=p)}}),n}function he(e,r){e.type==="mouseout"&&e.target.nodeName==="HTML"&&e.relatedTarget===null&&mt(e,r)}function me(e,r){if(navigator.appVersion.indexOf("MSIE 9")===-1&&e.buttons===0&&r.buttonsProperty!==0)return mt(e,r);var n=(t.dir?-1:1)*(e.calcPoint-r.startCalcPoint),a=n*100/r.baseSize;Mt(n>0,a,r.locations,r.handleNumbers,r.connect)}function mt(e,r){r.handle&&(at(r.handle,t.cssClasses.active),ut-=1),r.listeners.forEach(function(n){et.removeEventListener(n[0],n[1])}),ut===0&&(at(f,t.cssClasses.drag),xt(),e.cursor&&(ot.style.cursor="",ot.removeEventListener("selectstart",$t))),t.events.smoothSteps&&(r.handleNumbers.forEach(function(n){X(n,S[n],!0,!0,!1,!1)}),r.handleNumbers.forEach(function(n){k("update",n)})),r.handleNumbers.forEach(function(n){k("change",n),k("set",n),k("end",n)})}function gt(e,r){if(!r.handleNumbers.some(dt)){var n;if(r.handleNumbers.length===1){var a=m[r.handleNumbers[0]];n=a.children[0],ut+=1,M(n,t.cssClasses.active)}e.stopPropagation();var l=[],u=Y(c.move,et,me,{target:e.target,handle:n,connect:r.connect,listeners:l,startCalcPoint:e.calcPoint,baseSize:Pt(),pageOffset:e.pageOffset,handleNumbers:r.handleNumbers,buttonsProperty:e.buttons,locations:S.slice()}),p=Y(c.end,et,mt,{target:e.target,handle:n,listeners:l,doNotReject:!0,handleNumbers:r.handleNumbers}),d=Y("mouseout",et,he,{target:e.target,handle:n,listeners:l,doNotReject:!0,handleNumbers:r.handleNumbers});l.push.apply(l,u.concat(p,d)),e.cursor&&(ot.style.cursor=getComputedStyle(e.target).cursor,m.length>1&&M(f,t.cssClasses.drag),ot.addEventListener("selectstart",$t,!1)),r.handleNumbers.forEach(function(v){k("start",v)})}}function ge(e){e.stopPropagation();var r=At(e.calcPoint),n=fe(r);n!==!1&&(t.events.snap||Yt(f,t.cssClasses.tap,t.animationDuration),X(n,r,!0,!0),xt(),k("slide",n,!0),k("update",n,!0),t.events.snap?gt(e,{handleNumbers:[n]}):(k("change",n,!0),k("set",n,!0)))}function be(e){var r=At(e.calcPoint),n=g.getStep(r),a=g.fromStepping(n);Object.keys(F).forEach(function(l){l.split(".")[0]==="hover"&&F[l].forEach(function(u){u.call(it,a)})})}function ve(e,r){if(Nt()||dt(r))return!1;var n=["Left","Right"],a=["Down","Up"],l=["PageDown","PageUp"],u=["Home","End"];t.dir&&!t.ort?n.reverse():t.ort&&!t.dir&&(a.reverse(),l.reverse());var p=e.key.replace("Arrow",""),d=p===l[0],v=p===l[1],x=p===a[0]||p===n[0]||d,w=p===a[1]||p===n[1]||v,U=p===u[0],b=p===u[1];if(!x&&!w&&!U&&!b)return!0;e.preventDefault();var E;if(w||x){var O=x?0:1,N=jt(r),P=N[O];if(P===null)return!1;P===!1&&(P=g.getDefaultStep(S[r],x,t.keyboardDefaultStep)),v||d?P*=t.keyboardPageMultiplier:P*=t.keyboardMultiplier,P=Math.max(P,1e-7),P=(x?-1:1)*P,E=H[r]+P}else b?E=t.spectrum.xVal[t.spectrum.xVal.length-1]:E=t.spectrum.xVal[0];return X(r,g.toStepping(E),!0,!0),k("slide",r),k("update",r),k("change",r),k("set",r),!1}function Ot(e){e.fixed||m.forEach(function(r,n){Y(c.start,r.children[0],gt,{handleNumbers:[n]})}),e.tap&&Y(c.start,z,ge,{}),e.hover&&Y(c.move,z,be,{hover:!0}),e.drag&&V.forEach(function(r,n){if(!(r===!1||n===0||n===V.length-1)){var a=m[n-1],l=m[n],u=[r],p=[a,l],d=[n-1,n];M(r,t.cssClasses.draggable),e.fixed&&(u.push(a.children[0]),u.push(l.children[0])),e.dragAll&&(p=m,d=L),u.forEach(function(v){Y(c.start,v,gt,{handles:p,handleNumbers:d,connect:r})})}})}function bt(e,r){F[e]=F[e]||[],F[e].push(r),e.split(".")[0]==="update"&&m.forEach(function(n,a){k("update",a)})}function xe(e){return e===q.aria||e===q.tooltips}function J(e){var r=e&&e.split(".")[0],n=r?e.substring(r.length):e;Object.keys(F).forEach(function(a){var l=a.split(".")[0],u=a.substring(l.length);(!r||r===l)&&(!n||n===u)&&(!xe(u)||n===u)&&delete F[a]})}function k(e,r,n){Object.keys(F).forEach(function(a){var l=a.split(".")[0];e===l&&F[a].forEach(function(u){u.call(it,H.map(t.format.to),r,H.slice(),n||!1,S.slice(),it)})})}function rt(e,r,n,a,l,u,p){var d;return m.length>1&&!t.events.unconstrained&&(a&&r>0&&(d=g.getAbsoluteDistance(e[r-1],t.margin,!1),n=Math.max(n,d)),l&&r<m.length-1&&(d=g.getAbsoluteDistance(e[r+1],t.margin,!0),n=Math.min(n,d))),m.length>1&&t.limit&&(a&&r>0&&(d=g.getAbsoluteDistance(e[r-1],t.limit,!1),n=Math.min(n,d)),l&&r<m.length-1&&(d=g.getAbsoluteDistance(e[r+1],t.limit,!0),n=Math.max(n,d))),t.padding&&(r===0&&(d=g.getAbsoluteDistance(0,t.padding[0],!1),n=Math.max(n,d)),r===m.length-1&&(d=g.getAbsoluteDistance(100,t.padding[1],!0),n=Math.min(n,d))),p||(n=g.getStep(n)),n=Xt(n),n===e[r]&&!u?!1:n}function vt(e,r){var n=t.ort;return(n?r:e)+", "+(n?e:r)}function Mt(e,r,n,a,l){var u=n.slice(),p=a[0],d=t.events.smoothSteps,v=[!e,e],x=[e,!e];a=a.slice(),e&&a.reverse(),a.length>1?a.forEach(function(U,b){var E=rt(u,U,u[U]+r,v[b],x[b],!1,d);E===!1?r=0:(r=E-u[U],u[U]=E)}):v=x=[!0];var w=!1;a.forEach(function(U,b){w=X(U,n[U]+r,v[b],x[b],!1,d)||w}),w&&(a.forEach(function(U){k("update",U),k("slide",U)}),l!=null&&k("drag",p))}function Dt(e,r){return t.dir?100-e-r:e}function ze(e,r){S[e]=r,H[e]=g.fromStepping(r);var n=Dt(r,0)-ee,a="translate("+vt(n+"%","0")+")";if(m[e].style[t.transformRule]=a,t.events.invertConnects&&S.length>1){var l=S.every(function(u,p,d){return p===0||u>=d[p-1]});if(G!==!l){Ee();return}}K(e),K(e+1),G&&(K(e-1),K(e+2))}function xt(){L.forEach(function(e){var r=S[e]>50?-1:1,n=3+(m.length+r*e);m[e].style.zIndex=String(n)})}function X(e,r,n,a,l,u){return l||(r=rt(S,e,r,n,a,!1,u)),r===!1?!1:(ze(e,r),!0)}function K(e){if(V[e]){var r=S.slice();G&&r.sort(function(d,v){return d-v});var n=0,a=100;e!==0&&(n=r[e-1]),e!==V.length-1&&(a=r[e]);var l=a-n,u="translate("+vt(Dt(n,l)+"%","0")+")",p="scale("+vt(l/100,"1")+")";V[e].style[t.transformRule]=u+" "+p}}function Lt(e,r){return e===null||e===!1||e===void 0||(typeof e=="number"&&(e=String(e)),e=t.format.from(e),e!==!1&&(e=g.toStepping(e)),e===!1||isNaN(e))?S[r]:e}function nt(e,r,n){var a=lt(e),l=S[0]===void 0;r=r===void 0?!0:r,t.animate&&!l&&Yt(f,t.cssClasses.tap,t.animationDuration),L.forEach(function(d){X(d,Lt(a[d],d),!0,!1,n)});var u=L.length===1?0:1;if(l&&g.hasNoSize()&&(n=!0,S[0]=0,L.length>1)){var p=100/(L.length-1);L.forEach(function(d){S[d]=d*p})}for(;u<L.length;++u)L.forEach(function(d){X(d,S[d],!0,!0,n)});xt(),L.forEach(function(d){k("update",d),a[d]!==null&&r&&k("set",d)})}function ye(e){nt(t.start,e)}function we(e,r,n,a){if(e=Number(e),!(e>=0&&e<L.length))throw new Error("noUiSlider: invalid handle number, got: "+e);X(e,Lt(r,e),!0,!0,a),k("update",e),n&&k("set",e)}function Rt(e){if(e===void 0&&(e=!1),e)return H.length===1?H[0]:H.slice(0);var r=H.map(t.format.to);return r.length===1?r[0]:r}function Ue(){for(J(q.aria),J(q.tooltips),Object.keys(t.cssClasses).forEach(function(e){at(f,t.cssClasses[e])});f.firstChild;)f.removeChild(f.firstChild);delete f.noUiSlider}function jt(e){var r=S[e],n=g.getNearbySteps(r),a=H[e],l=n.thisStep.step,u=null;if(t.snap)return[a-n.stepBefore.startValue||null,n.stepAfter.startValue-a||null];l!==!1&&a+l>n.stepAfter.startValue&&(l=n.stepAfter.startValue-a),a>n.thisStep.startValue?u=n.thisStep.step:n.stepBefore.step===!1?u=!1:u=a-n.stepBefore.highestStep,r===100?l=null:r===0&&(u=null);var p=g.countStepDecimals();return l!==null&&l!==!1&&(l=Number(l.toFixed(p))),u!==null&&u!==!1&&(u=Number(u.toFixed(p))),[u,l]}function Se(){return L.map(jt)}function ke(e,r){var n=Rt(),a=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];a.forEach(function(u){e[u]!==void 0&&(i[u]=e[u])});var l=Qt(i);a.forEach(function(u){e[u]!==void 0&&(t[u]=l[u])}),g=l.spectrum,t.margin=l.margin,t.limit=l.limit,t.padding=l.padding,t.pips?ht(t.pips):ft(),t.tooltips?Ct():pt(),S=[],nt(St(e.start)?e.start:n,r),e.connect&&Ht()}function Ht(){for(;y.firstChild;)y.removeChild(y.firstChild);for(var e=0;e<=t.handles;e++)V[e]=ct(y,t.connect[e]),K(e);Ot({drag:t.events.drag,fixed:!0})}function Ee(){G=!G,Jt(t,t.connect.map(function(e){return!e})),Ht()}function Ne(){z=ne(f),re(t.connect,z),Ot(t.events),nt(t.start),t.pips&&ht(t.pips),t.tooltips&&Ct(),le()}Ne();var it={destroy:Ue,steps:Se,on:bt,off:J,get:Rt,set:nt,setHandle:we,reset:ye,disable:ae,enable:se,__moveHandles:function(e,r,n){Mt(e,r,S,n)},options:i,updateOptions:ke,target:f,removePips:ft,removeTooltips:pt,getPositions:function(){return S.slice()},getTooltips:function(){return _},getOrigins:function(){return m},pips:ht};return it}function bo(o,t){if(!o||!o.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+o);if(o.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var i=Qt(t),c=go(o,i,t);return o.noUiSlider=c,c}const vo={__spectrum:Zt,cssClasses:Gt,create:bo},xo='.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)}';var zo=Object.defineProperty,Z=(o,t,i,c)=>{for(var s=void 0,h=o.length-1,f;h>=0;h--)(f=o[h])&&(s=f(t,i,s)||s);return s&&zo(t,i,s),s};const te=class extends Pe.m(C.kt){constructor(){super(...arguments),this.value=0,this.min=0,this.max=100,this.step=100,this.disabled=!1,this.debounce=200,this._doingUpdate=!1}get _slider(){return this.renderRoot.querySelector("div")}firstUpdated(){this.noUiSlider=vo.create(this.renderRoot.querySelector("div"),{start:this.value??0,connect:[!0,!1],step:this.step??1,range:{min:this.min??0,max:this.max??100},tooltips:!0}),this.noUiSlider.on("slide",(t,i,[c])=>{this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.setValue(c)},this.debounce??200)})}updated(t){const i=t.get("value"),c=t.get("min"),s=t.get("max"),h=t.get("step"),f=t.get("disabled");this.value!==void 0&&this.value!==i&&this.noUiSlider.set(this.value),(this.min!==void 0&&(s!==void 0||this.max!==void 0)&&this.min!==c||this.max!==void 0&&(c!==void 0||this.min!==void 0)&&this.max!==s)&&this.noUiSlider.updateOptions({range:{min:this.min??c,max:this.max??s}},!0),this.step!==void 0&&this.step!==h&&this.noUiSlider.updateOptions({step:this.step},!0),this.disabled!==void 0&&this.disabled!==f&&(this.disabled?this.noUiSlider.disable():this.noUiSlider.enable())}setValue(t){this.disabled||this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}render(){return C.Ht`<div class="luzmo-slider-container"></div>`}};te.styles=[C.ht(xo)];let I=te;Z([C.Rt({type:Number,reflect:!0})],I.prototype,"value");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"min");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"max");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"step");Z([C.Rt({type:Boolean,reflect:!0})],I.prototype,"disabled");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"debounce");customElements.get("luzmo-slider")||customElements.define("luzmo-slider",I);var yo=Object.defineProperty,$=(o,t,i,c)=>{for(var s=void 0,h=o.length-1,f;h>=0;h--)(f=o[h])&&(s=f(t,i,s)||s);return s&&yo(t,i,s),s};const Q=class Q extends Ae.LuzmoEditOptionBase{constructor(){super(...arguments),this.value=0,this.default=0,this.min=0,this.max=100,this.step=100,this.debounce=200}_handleEvent(t){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toOptionValue=="function"?this.toOptionValue(t.detail):t.detail}}))}renderController(){const t=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.value):this.value,i=typeof this.fromOptionValue=="function"?this.fromOptionValue(this.default):this.default;return C.x`
|
36
|
+
* */const Me=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const o=document.createElement("style");o.setAttribute("data-luzmo-vars",""),o.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(o)}};Me();var B;(function(o){o.Range="range",o.Steps="steps",o.Positions="positions",o.Count="count",o.Values="values"})(B||(B={}));var D;(function(o){o[o.None=-1]="None",o[o.NoValue=0]="NoValue",o[o.LargeValue=1]="LargeValue",o[o.SmallValue=2]="SmallValue"})(D||(D={}));function Oe(o){return st(o)&&typeof o.from=="function"}function st(o){return typeof o=="object"&&typeof o.to=="function"}function Bt(o){o.parentElement.removeChild(o)}function St(o){return o!=null}function $t(o){o.preventDefault()}function De(o){return o.filter(function(t){return this[t]?!1:this[t]=!0},{})}function Le(o,t){return Math.round(o/t)*t}function Re(o,t){var i=o.getBoundingClientRect(),c=o.ownerDocument,s=c.documentElement,f=Wt(c);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(f.x=0),t?i.top+f.y-s.clientTop:i.left+f.x-s.clientLeft}function j(o){return typeof o=="number"&&!isNaN(o)&&isFinite(o)}function Yt(o,t,i){i>0&&(O(o,t),setTimeout(function(){at(o,t)},i))}function Xt(o){return Math.max(Math.min(o,100),0)}function lt(o){return Array.isArray(o)?o:[o]}function je(o){o=String(o);var t=o.split(".");return t.length>1?t[1].length:0}function O(o,t){o.classList&&!/\s/.test(t)?o.classList.add(t):o.className+=" "+t}function at(o,t){o.classList&&!/\s/.test(t)?o.classList.remove(t):o.className=o.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function He(o,t){return o.classList?o.classList.contains(t):new RegExp("\\b"+t+"\\b").test(o.className)}function Wt(o){var t=window.pageXOffset!==void 0,i=(o.compatMode||"")==="CSS1Compat",c=t?window.pageXOffset:i?o.documentElement.scrollLeft:o.body.scrollLeft,s=t?window.pageYOffset:i?o.documentElement.scrollTop:o.body.scrollTop;return{x:c,y:s}}function Fe(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function Te(){var o=!1;try{var t=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,t)}catch{}return o}function _e(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Et(o,t){return 100/(t-o)}function kt(o,t,i){return t*100/(o[i+1]-o[i])}function qe(o,t){return kt(o,o[0]<0?t+Math.abs(o[0]):t-o[0],0)}function Be(o,t){return t*(o[1]-o[0])/100+o[0]}function tt(o,t){for(var i=1;o>=t[i];)i+=1;return i}function $e(o,t,i){if(i>=o.slice(-1)[0])return 100;var c=tt(i,o),s=o[c-1],f=o[c],h=t[c-1],z=t[c];return h+qe([s,f],i)/Et(h,z)}function Ye(o,t,i){if(i>=100)return o.slice(-1)[0];var c=tt(i,t),s=o[c-1],f=o[c],h=t[c-1],z=t[c];return Be([s,f],(i-h)*Et(h,z))}function Xe(o,t,i,c){if(c===100)return c;var s=tt(c,o),f=o[s-1],h=o[s];return i?c-f>(h-f)/2?h:f:t[s-1]?o[s-1]+Le(c-o[s-1],t[s-1]):c}var Zt=function(){function o(t,i,c){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[c||!1],this.xNumSteps=[!1],this.snap=i;var s,f=[];for(Object.keys(t).forEach(function(h){f.push([lt(t[h]),h])}),f.sort(function(h,z){return h[0][0]-z[0][0]}),s=0;s<f.length;s++)this.handleEntryPoint(f[s][1],f[s][0]);for(this.xNumSteps=this.xSteps.slice(0),s=0;s<this.xNumSteps.length;s++)this.handleStepPoint(s,this.xNumSteps[s])}return o.prototype.getDistance=function(t){for(var i=[],c=0;c<this.xNumSteps.length-1;c++)i[c]=kt(this.xVal,t,c);return i},o.prototype.getAbsoluteDistance=function(t,i,c){var s=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[s+1];)s++;else t===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);!c&&t===this.xPct[s+1]&&s++,i===null&&(i=[]);var f,h=1,z=i[s],y=0,m=0,V=0,A=0;for(c?f=(t-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):f=(this.xPct[s+1]-t)/(this.xPct[s+1]-this.xPct[s]);z>0;)y=this.xPct[s+1+A]-this.xPct[s+A],i[s+A]*h+100-f*100>100?(m=y*f,h=(z-100*f)/i[s+A],f=1):(m=i[s+A]*y/100*h,h=0),c?(V=V-m,this.xPct.length+A>=1&&A--):(V=V+m,this.xPct.length-A>=1&&A++),z=i[s+A]*h;return t+V},o.prototype.toStepping=function(t){return t=$e(this.xVal,this.xPct,t),t},o.prototype.fromStepping=function(t){return Ye(this.xVal,this.xPct,t)},o.prototype.getStep=function(t){return t=Xe(this.xPct,this.xSteps,this.snap,t),t},o.prototype.getDefaultStep=function(t,i,c){var s=tt(t,this.xPct);return(t===100||i&&t===this.xPct[s-1])&&(s=Math.max(s-1,1)),(this.xVal[s]-this.xVal[s-1])/c},o.prototype.getNearbySteps=function(t){var i=tt(t,this.xPct);return{stepBefore:{startValue:this.xVal[i-2],step:this.xNumSteps[i-2],highestStep:this.xHighestCompleteStep[i-2]},thisStep:{startValue:this.xVal[i-1],step:this.xNumSteps[i-1],highestStep:this.xHighestCompleteStep[i-1]},stepAfter:{startValue:this.xVal[i],step:this.xNumSteps[i],highestStep:this.xHighestCompleteStep[i]}}},o.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(je);return Math.max.apply(null,t)},o.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},o.prototype.convert=function(t){return this.getStep(this.toStepping(t))},o.prototype.handleEntryPoint=function(t,i){var c;if(t==="min"?c=0:t==="max"?c=100:c=parseFloat(t),!j(c)||!j(i[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(c),this.xVal.push(i[0]);var s=Number(i[1]);c?this.xSteps.push(isNaN(s)?!1:s):isNaN(s)||(this.xSteps[0]=s),this.xHighestCompleteStep.push(0)},o.prototype.handleStepPoint=function(t,i){if(i){if(this.xVal[t]===this.xVal[t+1]){this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t];return}this.xSteps[t]=kt([this.xVal[t],this.xVal[t+1]],i,0)/Et(this.xPct[t],this.xPct[t+1]);var c=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],s=Math.ceil(Number(c.toFixed(3))-1),f=this.xVal[t]+this.xNumSteps[t]*s;this.xHighestCompleteStep[t]=f}},o}(),It={to:function(o){return o===void 0?"":o.toFixed(2)},from:Number},Gt={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},q={tooltips:".__tooltips",aria:".__aria"};function Ie(o,t){if(!j(t))throw new Error("noUiSlider: 'step' is not numeric.");o.singleStep=t}function We(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");o.keyboardPageMultiplier=t}function Ze(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");o.keyboardMultiplier=t}function Ge(o,t){if(!j(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");o.keyboardDefaultStep=t}function Je(o,t){if(typeof t!="object"||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(t.min===void 0||t.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");o.spectrum=new Zt(t,o.snap||!1,o.singleStep)}function Ke(o,t){if(t=lt(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");o.handles=t.length,o.start=t}function Qe(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");o.snap=t}function to(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");o.animate=t}function eo(o,t){if(typeof t!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");o.animationDuration=t}function Jt(o,t){var i=[!1],c;if(t==="lower"?t=[!0,!1]:t==="upper"&&(t=[!1,!0]),t===!0||t===!1){for(c=1;c<o.handles;c++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==o.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}o.connect=i}function oo(o,t){switch(t){case"horizontal":o.ort=0;break;case"vertical":o.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Kt(o,t){if(!j(t))throw new Error("noUiSlider: 'margin' option must be numeric.");t!==0&&(o.margin=o.spectrum.getDistance(t))}function ro(o,t){if(!j(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(o.limit=o.spectrum.getDistance(t),!o.limit||o.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function no(o,t){var i;if(!j(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&!(t.length===2||j(t[0])||j(t[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(t!==0){for(Array.isArray(t)||(t=[t,t]),o.padding=[o.spectrum.getDistance(t[0]),o.spectrum.getDistance(t[1])],i=0;i<o.spectrum.xNumSteps.length-1;i++)if(o.padding[0][i]<0||o.padding[1][i]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var c=t[0]+t[1],s=o.spectrum.xVal[0],f=o.spectrum.xVal[o.spectrum.xVal.length-1];if(c/(f-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function io(o,t){switch(t){case"ltr":o.dir=0;break;case"rtl":o.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ao(o,t){if(typeof t!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var i=t.indexOf("tap")>=0,c=t.indexOf("drag")>=0,s=t.indexOf("fixed")>=0,f=t.indexOf("snap")>=0,h=t.indexOf("hover")>=0,z=t.indexOf("unconstrained")>=0,y=t.indexOf("invert-connects")>=0,m=t.indexOf("drag-all")>=0,V=t.indexOf("smooth-steps")>=0;if(s){if(o.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Kt(o,o.start[1]-o.start[0])}if(y&&o.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(z&&(o.margin||o.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");o.events={tap:i||f,drag:c,dragAll:m,smoothSteps:V,fixed:s,snap:f,hover:h,unconstrained:z,invertConnects:y}}function so(o,t){if(t!==!1)if(t===!0||st(t)){o.tooltips=[];for(var i=0;i<o.handles;i++)o.tooltips.push(t)}else{if(t=lt(t),t.length!==o.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(c){if(typeof c!="boolean"&&!st(c))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),o.tooltips=t}}function lo(o,t){if(t.length!==o.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");o.handleAttributes=t}function uo(o,t){if(!st(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");o.ariaFormat=t}function co(o,t){if(!Oe(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");o.format=t}function po(o,t){if(typeof t!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");o.keyboardSupport=t}function ho(o,t){o.documentElement=t}function fo(o,t){if(typeof t!="string"&&t!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");o.cssPrefix=t}function mo(o,t){if(typeof t!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof o.cssPrefix=="string"?(o.cssClasses={},Object.keys(t).forEach(function(i){o.cssClasses[i]=o.cssPrefix+t[i]})):o.cssClasses=t}function Qt(o){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:It,format:It},i={step:{r:!1,t:Ie},keyboardPageMultiplier:{r:!1,t:We},keyboardMultiplier:{r:!1,t:Ze},keyboardDefaultStep:{r:!1,t:Ge},start:{r:!0,t:Ke},connect:{r:!0,t:Jt},direction:{r:!0,t:io},snap:{r:!1,t:Qe},animate:{r:!1,t:to},animationDuration:{r:!1,t:eo},range:{r:!0,t:Je},orientation:{r:!1,t:oo},margin:{r:!1,t:Kt},limit:{r:!1,t:ro},padding:{r:!1,t:no},behaviour:{r:!0,t:ao},ariaFormat:{r:!1,t:uo},format:{r:!1,t:co},tooltips:{r:!1,t:so},keyboardSupport:{r:!0,t:po},documentElement:{r:!1,t:ho},cssPrefix:{r:!0,t:fo},cssClasses:{r:!0,t:mo},handleAttributes:{r:!1,t:lo}},c={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Gt,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};o.format&&!o.ariaFormat&&(o.ariaFormat=o.format),Object.keys(i).forEach(function(y){if(!St(o[y])&&c[y]===void 0){if(i[y].r)throw new Error("noUiSlider: '"+y+"' is required.");return}i[y].t(t,St(o[y])?o[y]:c[y])}),t.pips=o.pips;var s=document.createElement("div"),f=s.style.msTransform!==void 0,h=s.style.transform!==void 0;t.transformRule=h?"transform":f?"msTransform":"webkitTransform";var z=[["left","top"],["right","bottom"]];return t.style=z[t.dir][t.ort],t}function go(o,t,i){var c=Fe(),s=_e(),f=s&&Te(),h=o,z,y,m,V,A,_,g=t.spectrum,H=[],S=[],L=[],ut=0,F={},G=!1,W=o.ownerDocument,et=t.documentElement||W.documentElement,ot=W.body,ee=W.dir==="rtl"||t.ort===1?0:100;function T(e,r){var n=W.createElement("div");return r&&O(n,r),e.appendChild(n),n}function oe(e,r){var n=T(e,t.cssClasses.origin),a=T(n,t.cssClasses.handle);if(T(a,t.cssClasses.touchArea),a.setAttribute("data-handle",String(r)),t.keyboardSupport&&(a.setAttribute("tabindex","0"),a.addEventListener("keydown",function(u){return ve(u,r)})),t.handleAttributes!==void 0){var l=t.handleAttributes[r];Object.keys(l).forEach(function(u){a.setAttribute(u,l[u])})}return a.setAttribute("role","slider"),a.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),r===0?O(a,t.cssClasses.handleLower):r===t.handles-1&&O(a,t.cssClasses.handleUpper),n.handle=a,n}function ct(e,r){return r?T(e,t.cssClasses.connect):!1}function re(e,r){y=T(r,t.cssClasses.connects),m=[],V=[],V.push(ct(y,e[0]));for(var n=0;n<t.handles;n++)m.push(oe(r,n)),L[n]=n,V.push(ct(y,e[n+1]))}function ne(e){O(e,t.cssClasses.target),t.dir===0?O(e,t.cssClasses.ltr):O(e,t.cssClasses.rtl),t.ort===0?O(e,t.cssClasses.horizontal):O(e,t.cssClasses.vertical);var r=getComputedStyle(e).direction;return r==="rtl"?O(e,t.cssClasses.textDirectionRtl):O(e,t.cssClasses.textDirectionLtr),T(e,t.cssClasses.base)}function ie(e,r){return!t.tooltips||!t.tooltips[r]?!1:T(e.firstChild,t.cssClasses.tooltip)}function Nt(){return h.hasAttribute("disabled")}function dt(e){var r=m[e];return r.hasAttribute("disabled")}function ae(e){e!=null?(m[e].setAttribute("disabled",""),m[e].handle.removeAttribute("tabindex")):(h.setAttribute("disabled",""),m.forEach(function(r){r.handle.removeAttribute("tabindex")}))}function se(e){e!=null?(m[e].removeAttribute("disabled"),m[e].handle.setAttribute("tabindex","0")):(h.removeAttribute("disabled"),m.forEach(function(r){r.removeAttribute("disabled"),r.handle.setAttribute("tabindex","0")}))}function pt(){_&&(J("update"+q.tooltips),_.forEach(function(e){e&&Bt(e)}),_=null)}function Ct(){pt(),_=m.map(ie),bt("update"+q.tooltips,function(e,r,n){if(!(!_||!t.tooltips)&&_[r]!==!1){var a=e[r];t.tooltips[r]!==!0&&(a=t.tooltips[r].to(n[r])),_[r].innerHTML=a}})}function le(){J("update"+q.aria),bt("update"+q.aria,function(e,r,n,a,l){L.forEach(function(u){var p=m[u],d=rt(S,u,0,!0,!0,!0),v=rt(S,u,100,!0,!0,!0),x=l[u],w=String(t.ariaFormat.to(n[u]));d=g.fromStepping(d).toFixed(1),v=g.fromStepping(v).toFixed(1),x=g.fromStepping(x).toFixed(1),p.children[0].setAttribute("aria-valuemin",d),p.children[0].setAttribute("aria-valuemax",v),p.children[0].setAttribute("aria-valuenow",x),p.children[0].setAttribute("aria-valuetext",w)})})}function ue(e){if(e.mode===B.Range||e.mode===B.Steps)return g.xVal;if(e.mode===B.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var r=e.values-1,n=100/r,a=[];r--;)a[r]=r*n;return a.push(100),Vt(a,e.stepped)}return e.mode===B.Positions?Vt(e.values,e.stepped):e.mode===B.Values?e.stepped?e.values.map(function(l){return g.fromStepping(g.getStep(g.toStepping(l)))}):e.values:[]}function Vt(e,r){return e.map(function(n){return g.fromStepping(r?g.getStep(n):n)})}function ce(e){function r(x,w){return Number((x+w).toFixed(7))}var n=ue(e),a={},l=g.xVal[0],u=g.xVal[g.xVal.length-1],p=!1,d=!1,v=0;return n=De(n.slice().sort(function(x,w){return x-w})),n[0]!==l&&(n.unshift(l),p=!0),n[n.length-1]!==u&&(n.push(u),d=!0),n.forEach(function(x,w){var U,b,E,M=x,N=n[w+1],P,zt,yt,wt,Ft,Ut,Tt,_t=e.mode===B.Steps;for(_t&&(U=g.xNumSteps[w]),U||(U=N-M),N===void 0&&(N=M),U=Math.max(U,1e-7),b=M;b<=N;b=r(b,U)){for(P=g.toStepping(b),zt=P-v,Ft=zt/(e.density||1),Ut=Math.round(Ft),Tt=zt/Ut,E=1;E<=Ut;E+=1)yt=v+E*Tt,a[yt.toFixed(5)]=[g.fromStepping(yt),0];wt=n.indexOf(b)>-1?D.LargeValue:_t?D.SmallValue:D.NoValue,!w&&p&&b!==N&&(wt=0),b===N&&d||(a[P.toFixed(5)]=[b,wt]),v=P}}),a}function de(e,r,n){var a,l,u=W.createElement("div"),p=(a={},a[D.None]="",a[D.NoValue]=t.cssClasses.valueNormal,a[D.LargeValue]=t.cssClasses.valueLarge,a[D.SmallValue]=t.cssClasses.valueSub,a),d=(l={},l[D.None]="",l[D.NoValue]=t.cssClasses.markerNormal,l[D.LargeValue]=t.cssClasses.markerLarge,l[D.SmallValue]=t.cssClasses.markerSub,l),v=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],x=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];O(u,t.cssClasses.pips),O(u,t.ort===0?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical);function w(b,E){var M=E===t.cssClasses.value,N=M?v:x,P=M?p:d;return E+" "+N[t.ort]+" "+P[b]}function U(b,E,M){if(M=r?r(E,M):M,M!==D.None){var N=T(u,!1);N.className=w(M,t.cssClasses.marker),N.style[t.style]=b+"%",M>D.NoValue&&(N=T(u,!1),N.className=w(M,t.cssClasses.value),N.setAttribute("data-value",String(E)),N.style[t.style]=b+"%",N.innerHTML=String(n.to(E)))}}return Object.keys(e).forEach(function(b){U(b,e[b][0],e[b][1])}),u}function ht(){A&&(Bt(A),A=null)}function ft(e){ht();var r=ce(e),n=e.filter,a=e.format||{to:function(l){return String(Math.round(l))}};return A=h.appendChild(de(r,n,a)),A}function Pt(){var e=z.getBoundingClientRect(),r="offset"+["Width","Height"][t.ort];return t.ort===0?e.width||z[r]:e.height||z[r]}function Y(e,r,n,a){var l=function(p){var d=pe(p,a.pageOffset,a.target||r);if(!d||Nt()&&!a.doNotReject||He(h,t.cssClasses.tap)&&!a.doNotReject||e===c.start&&d.buttons!==void 0&&d.buttons>1||a.hover&&d.buttons)return!1;f||d.preventDefault(),d.calcPoint=d.points[t.ort],n(d,a)},u=[];return e.split(" ").forEach(function(p){r.addEventListener(p,l,f?{passive:!0}:!1),u.push([p,l])}),u}function pe(e,r,n){var a=e.type.indexOf("touch")===0,l=e.type.indexOf("mouse")===0,u=e.type.indexOf("pointer")===0,p=0,d=0;if(e.type.indexOf("MSPointer")===0&&(u=!0),e.type==="mousedown"&&!e.buttons&&!e.touches)return!1;if(a){var v=function(U){var b=U.target;return b===n||n.contains(b)||e.composed&&e.composedPath().shift()===n};if(e.type==="touchstart"){var x=Array.prototype.filter.call(e.touches,v);if(x.length>1)return!1;p=x[0].pageX,d=x[0].pageY}else{var w=Array.prototype.find.call(e.changedTouches,v);if(!w)return!1;p=w.pageX,d=w.pageY}}return r=r||Wt(W),(l||u)&&(p=e.clientX+r.x,d=e.clientY+r.y),e.pageOffset=r,e.points=[p,d],e.cursor=l||u,e}function At(e){var r=e-Re(z,t.ort),n=r*100/Pt();return n=Xt(n),t.dir?100-n:n}function he(e){var r=100,n=!1;return m.forEach(function(a,l){if(!dt(l)){var u=S[l],p=Math.abs(u-e),d=p===100&&r===100,v=p<r,x=p<=r&&e>u;(v||x||d)&&(n=l,r=p)}}),n}function fe(e,r){e.type==="mouseout"&&e.target.nodeName==="HTML"&&e.relatedTarget===null&&mt(e,r)}function me(e,r){if(navigator.appVersion.indexOf("MSIE 9")===-1&&e.buttons===0&&r.buttonsProperty!==0)return mt(e,r);var n=(t.dir?-1:1)*(e.calcPoint-r.startCalcPoint),a=n*100/r.baseSize;Ot(n>0,a,r.locations,r.handleNumbers,r.connect)}function mt(e,r){r.handle&&(at(r.handle,t.cssClasses.active),ut-=1),r.listeners.forEach(function(n){et.removeEventListener(n[0],n[1])}),ut===0&&(at(h,t.cssClasses.drag),xt(),e.cursor&&(ot.style.cursor="",ot.removeEventListener("selectstart",$t))),t.events.smoothSteps&&(r.handleNumbers.forEach(function(n){X(n,S[n],!0,!0,!1,!1)}),r.handleNumbers.forEach(function(n){k("update",n)})),r.handleNumbers.forEach(function(n){k("change",n),k("set",n),k("end",n)})}function gt(e,r){if(!r.handleNumbers.some(dt)){var n;if(r.handleNumbers.length===1){var a=m[r.handleNumbers[0]];n=a.children[0],ut+=1,O(n,t.cssClasses.active)}e.stopPropagation();var l=[],u=Y(c.move,et,me,{target:e.target,handle:n,connect:r.connect,listeners:l,startCalcPoint:e.calcPoint,baseSize:Pt(),pageOffset:e.pageOffset,handleNumbers:r.handleNumbers,buttonsProperty:e.buttons,locations:S.slice()}),p=Y(c.end,et,mt,{target:e.target,handle:n,listeners:l,doNotReject:!0,handleNumbers:r.handleNumbers}),d=Y("mouseout",et,fe,{target:e.target,handle:n,listeners:l,doNotReject:!0,handleNumbers:r.handleNumbers});l.push.apply(l,u.concat(p,d)),e.cursor&&(ot.style.cursor=getComputedStyle(e.target).cursor,m.length>1&&O(h,t.cssClasses.drag),ot.addEventListener("selectstart",$t,!1)),r.handleNumbers.forEach(function(v){k("start",v)})}}function ge(e){e.stopPropagation();var r=At(e.calcPoint),n=he(r);n!==!1&&(t.events.snap||Yt(h,t.cssClasses.tap,t.animationDuration),X(n,r,!0,!0),xt(),k("slide",n,!0),k("update",n,!0),t.events.snap?gt(e,{handleNumbers:[n]}):(k("change",n,!0),k("set",n,!0)))}function be(e){var r=At(e.calcPoint),n=g.getStep(r),a=g.fromStepping(n);Object.keys(F).forEach(function(l){l.split(".")[0]==="hover"&&F[l].forEach(function(u){u.call(it,a)})})}function ve(e,r){if(Nt()||dt(r))return!1;var n=["Left","Right"],a=["Down","Up"],l=["PageDown","PageUp"],u=["Home","End"];t.dir&&!t.ort?n.reverse():t.ort&&!t.dir&&(a.reverse(),l.reverse());var p=e.key.replace("Arrow",""),d=p===l[0],v=p===l[1],x=p===a[0]||p===n[0]||d,w=p===a[1]||p===n[1]||v,U=p===u[0],b=p===u[1];if(!x&&!w&&!U&&!b)return!0;e.preventDefault();var E;if(w||x){var M=x?0:1,N=jt(r),P=N[M];if(P===null)return!1;P===!1&&(P=g.getDefaultStep(S[r],x,t.keyboardDefaultStep)),v||d?P*=t.keyboardPageMultiplier:P*=t.keyboardMultiplier,P=Math.max(P,1e-7),P=(x?-1:1)*P,E=H[r]+P}else b?E=t.spectrum.xVal[t.spectrum.xVal.length-1]:E=t.spectrum.xVal[0];return X(r,g.toStepping(E),!0,!0),k("slide",r),k("update",r),k("change",r),k("set",r),!1}function Mt(e){e.fixed||m.forEach(function(r,n){Y(c.start,r.children[0],gt,{handleNumbers:[n]})}),e.tap&&Y(c.start,z,ge,{}),e.hover&&Y(c.move,z,be,{hover:!0}),e.drag&&V.forEach(function(r,n){if(!(r===!1||n===0||n===V.length-1)){var a=m[n-1],l=m[n],u=[r],p=[a,l],d=[n-1,n];O(r,t.cssClasses.draggable),e.fixed&&(u.push(a.children[0]),u.push(l.children[0])),e.dragAll&&(p=m,d=L),u.forEach(function(v){Y(c.start,v,gt,{handles:p,handleNumbers:d,connect:r})})}})}function bt(e,r){F[e]=F[e]||[],F[e].push(r),e.split(".")[0]==="update"&&m.forEach(function(n,a){k("update",a)})}function xe(e){return e===q.aria||e===q.tooltips}function J(e){var r=e&&e.split(".")[0],n=r?e.substring(r.length):e;Object.keys(F).forEach(function(a){var l=a.split(".")[0],u=a.substring(l.length);(!r||r===l)&&(!n||n===u)&&(!xe(u)||n===u)&&delete F[a]})}function k(e,r,n){Object.keys(F).forEach(function(a){var l=a.split(".")[0];e===l&&F[a].forEach(function(u){u.call(it,H.map(t.format.to),r,H.slice(),n||!1,S.slice(),it)})})}function rt(e,r,n,a,l,u,p){var d;return m.length>1&&!t.events.unconstrained&&(a&&r>0&&(d=g.getAbsoluteDistance(e[r-1],t.margin,!1),n=Math.max(n,d)),l&&r<m.length-1&&(d=g.getAbsoluteDistance(e[r+1],t.margin,!0),n=Math.min(n,d))),m.length>1&&t.limit&&(a&&r>0&&(d=g.getAbsoluteDistance(e[r-1],t.limit,!1),n=Math.min(n,d)),l&&r<m.length-1&&(d=g.getAbsoluteDistance(e[r+1],t.limit,!0),n=Math.max(n,d))),t.padding&&(r===0&&(d=g.getAbsoluteDistance(0,t.padding[0],!1),n=Math.max(n,d)),r===m.length-1&&(d=g.getAbsoluteDistance(100,t.padding[1],!0),n=Math.min(n,d))),p||(n=g.getStep(n)),n=Xt(n),n===e[r]&&!u?!1:n}function vt(e,r){var n=t.ort;return(n?r:e)+", "+(n?e:r)}function Ot(e,r,n,a,l){var u=n.slice(),p=a[0],d=t.events.smoothSteps,v=[!e,e],x=[e,!e];a=a.slice(),e&&a.reverse(),a.length>1?a.forEach(function(U,b){var E=rt(u,U,u[U]+r,v[b],x[b],!1,d);E===!1?r=0:(r=E-u[U],u[U]=E)}):v=x=[!0];var w=!1;a.forEach(function(U,b){w=X(U,n[U]+r,v[b],x[b],!1,d)||w}),w&&(a.forEach(function(U){k("update",U),k("slide",U)}),l!=null&&k("drag",p))}function Dt(e,r){return t.dir?100-e-r:e}function ze(e,r){S[e]=r,H[e]=g.fromStepping(r);var n=Dt(r,0)-ee,a="translate("+vt(n+"%","0")+")";if(m[e].style[t.transformRule]=a,t.events.invertConnects&&S.length>1){var l=S.every(function(u,p,d){return p===0||u>=d[p-1]});if(G!==!l){Ee();return}}K(e),K(e+1),G&&(K(e-1),K(e+2))}function xt(){L.forEach(function(e){var r=S[e]>50?-1:1,n=3+(m.length+r*e);m[e].style.zIndex=String(n)})}function X(e,r,n,a,l,u){return l||(r=rt(S,e,r,n,a,!1,u)),r===!1?!1:(ze(e,r),!0)}function K(e){if(V[e]){var r=S.slice();G&&r.sort(function(d,v){return d-v});var n=0,a=100;e!==0&&(n=r[e-1]),e!==V.length-1&&(a=r[e]);var l=a-n,u="translate("+vt(Dt(n,l)+"%","0")+")",p="scale("+vt(l/100,"1")+")";V[e].style[t.transformRule]=u+" "+p}}function Lt(e,r){return e===null||e===!1||e===void 0||(typeof e=="number"&&(e=String(e)),e=t.format.from(e),e!==!1&&(e=g.toStepping(e)),e===!1||isNaN(e))?S[r]:e}function nt(e,r,n){var a=lt(e),l=S[0]===void 0;r=r===void 0?!0:r,t.animate&&!l&&Yt(h,t.cssClasses.tap,t.animationDuration),L.forEach(function(d){X(d,Lt(a[d],d),!0,!1,n)});var u=L.length===1?0:1;if(l&&g.hasNoSize()&&(n=!0,S[0]=0,L.length>1)){var p=100/(L.length-1);L.forEach(function(d){S[d]=d*p})}for(;u<L.length;++u)L.forEach(function(d){X(d,S[d],!0,!0,n)});xt(),L.forEach(function(d){k("update",d),a[d]!==null&&r&&k("set",d)})}function ye(e){nt(t.start,e)}function we(e,r,n,a){if(e=Number(e),!(e>=0&&e<L.length))throw new Error("noUiSlider: invalid handle number, got: "+e);X(e,Lt(r,e),!0,!0,a),k("update",e),n&&k("set",e)}function Rt(e){if(e===void 0&&(e=!1),e)return H.length===1?H[0]:H.slice(0);var r=H.map(t.format.to);return r.length===1?r[0]:r}function Ue(){for(J(q.aria),J(q.tooltips),Object.keys(t.cssClasses).forEach(function(e){at(h,t.cssClasses[e])});h.firstChild;)h.removeChild(h.firstChild);delete h.noUiSlider}function jt(e){var r=S[e],n=g.getNearbySteps(r),a=H[e],l=n.thisStep.step,u=null;if(t.snap)return[a-n.stepBefore.startValue||null,n.stepAfter.startValue-a||null];l!==!1&&a+l>n.stepAfter.startValue&&(l=n.stepAfter.startValue-a),a>n.thisStep.startValue?u=n.thisStep.step:n.stepBefore.step===!1?u=!1:u=a-n.stepBefore.highestStep,r===100?l=null:r===0&&(u=null);var p=g.countStepDecimals();return l!==null&&l!==!1&&(l=Number(l.toFixed(p))),u!==null&&u!==!1&&(u=Number(u.toFixed(p))),[u,l]}function Se(){return L.map(jt)}function ke(e,r){var n=Rt(),a=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];a.forEach(function(u){e[u]!==void 0&&(i[u]=e[u])});var l=Qt(i);a.forEach(function(u){e[u]!==void 0&&(t[u]=l[u])}),g=l.spectrum,t.margin=l.margin,t.limit=l.limit,t.padding=l.padding,t.pips?ft(t.pips):ht(),t.tooltips?Ct():pt(),S=[],nt(St(e.start)?e.start:n,r),e.connect&&Ht()}function Ht(){for(;y.firstChild;)y.removeChild(y.firstChild);for(var e=0;e<=t.handles;e++)V[e]=ct(y,t.connect[e]),K(e);Mt({drag:t.events.drag,fixed:!0})}function Ee(){G=!G,Jt(t,t.connect.map(function(e){return!e})),Ht()}function Ne(){z=ne(h),re(t.connect,z),Mt(t.events),nt(t.start),t.pips&&ft(t.pips),t.tooltips&&Ct(),le()}Ne();var it={destroy:Ue,steps:Se,on:bt,off:J,get:Rt,set:nt,setHandle:we,reset:ye,disable:ae,enable:se,__moveHandles:function(e,r,n){Ot(e,r,S,n)},options:i,updateOptions:ke,target:h,removePips:ht,removeTooltips:pt,getPositions:function(){return S.slice()},getTooltips:function(){return _},getOrigins:function(){return m},pips:ft};return it}function bo(o,t){if(!o||!o.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+o);if(o.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var i=Qt(t),c=go(o,i,t);return o.noUiSlider=c,c}const vo={__spectrum:Zt,cssClasses:Gt,create:bo},xo='.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)}';var zo=Object.defineProperty,Z=(o,t,i,c)=>{for(var s=void 0,f=o.length-1,h;f>=0;f--)(h=o[f])&&(s=h(t,i,s)||s);return s&&zo(t,i,s),s};const te=class extends Pe.m(C.kt){constructor(){super(...arguments),this.value=0,this.min=0,this.max=100,this.step=100,this.disabled=!1,this.debounce=200,this._doingUpdate=!1}get _slider(){return this.renderRoot.querySelector("div")}firstUpdated(){this.noUiSlider=vo.create(this.renderRoot.querySelector("div"),{start:this.value??0,connect:[!0,!1],step:this.step??1,range:{min:this.min??0,max:this.max??100},tooltips:!0}),this.noUiSlider.on("slide",(t,i,[c])=>{this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.setValue(c)},this.debounce??200)})}updated(t){const i=t.get("value"),c=t.get("min"),s=t.get("max"),f=t.get("step"),h=t.get("disabled");this.value!==void 0&&this.value!==i&&this.noUiSlider.set(this.value),(this.min!==void 0&&(s!==void 0||this.max!==void 0)&&this.min!==c||this.max!==void 0&&(c!==void 0||this.min!==void 0)&&this.max!==s)&&this.noUiSlider.updateOptions({range:{min:this.min??c,max:this.max??s}},!0),this.step!==void 0&&this.step!==f&&this.noUiSlider.updateOptions({step:this.step},!0),this.disabled!==void 0&&this.disabled!==h&&(this.disabled?this.noUiSlider.disable():this.noUiSlider.enable())}setValue(t){this.disabled||this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}render(){return C.Ht`<div class="luzmo-slider-container"></div>`}};te.styles=[C.ht(xo)];let I=te;Z([C.Rt({type:Number,reflect:!0})],I.prototype,"value");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"min");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"max");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"step");Z([C.Rt({type:Boolean,reflect:!0})],I.prototype,"disabled");Z([C.Rt({type:Number,reflect:!0})],I.prototype,"debounce");customElements.get("luzmo-slider")||customElements.define("luzmo-slider",I);var yo=Object.defineProperty,$=(o,t,i,c)=>{for(var s=void 0,f=o.length-1,h;f>=0;f--)(h=o[f])&&(s=h(t,i,s)||s);return s&&yo(t,i,s),s};const Q=class Q extends Ae.LuzmoEditOptionBase{constructor(){super(...arguments),this.value=0,this.default=0,this.min=0,this.max=100,this.step=100,this.debounce=200}_handleEvent(t){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(t.detail):t.detail}}))}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,i=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return C.x`
|
37
37
|
<luzmo-slider
|
38
38
|
id="luzmo-edit-option-control"
|
39
39
|
.min=${this.min}
|
@@ -45,4 +45,4 @@
|
|
45
45
|
.disabled=${this.disabled}
|
46
46
|
@change=${this._handleEvent}
|
47
47
|
></luzmo-slider>
|
48
|
-
`}};Q.styles=[qt(Q,Q,"styles")];let R=Q;$([C.n({type:Number,reflect:!0})],R.prototype,"value");$([C.n({type:Number,reflect:!0})],R.prototype,"default");$([C.n({type:Number,reflect:!0})],R.prototype,"min");$([C.n({type:Number,reflect:!0})],R.prototype,"max");$([C.n({type:Number,reflect:!0})],R.prototype,"step");$([C.n({type:Number,reflect:!0})],R.prototype,"debounce");$([C.n()],R.prototype,"
|
48
|
+
`}};Q.styles=[qt(Q,Q,"styles")];let R=Q;$([C.n({type:Number,reflect:!0})],R.prototype,"value");$([C.n({type:Number,reflect:!0})],R.prototype,"default");$([C.n({type:Number,reflect:!0})],R.prototype,"min");$([C.n({type:Number,reflect:!0})],R.prototype,"max");$([C.n({type:Number,reflect:!0})],R.prototype,"step");$([C.n({type:Number,reflect:!0})],R.prototype,"debounce");$([C.n()],R.prototype,"parseValue");$([C.n()],R.prototype,"toValue");customElements.get("luzmo-edit-option-slider")||customElements.define("luzmo-edit-option-slider",R);exports.LuzmoEditOptionSlider=R;
|
@@ -20,7 +20,7 @@
|
|
20
20
|
var Vt = Object.getPrototypeOf;
|
21
21
|
var At = Reflect.get;
|
22
22
|
var Be = (o, e, i) => At(Vt(o), i, e);
|
23
|
-
import { k as
|
23
|
+
import { k as Mt, H as Ot, h as Dt, R as W, x as Lt, n as B } from "../property-B2F7x7Cz.js";
|
24
24
|
import { m as Ht } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
25
25
|
import { L as jt } from "../edit-option-base-qePiIQWd.js";
|
26
26
|
const Pt = () => {
|
@@ -58,10 +58,10 @@ var $;
|
|
58
58
|
(function(o) {
|
59
59
|
o.Range = "range", o.Steps = "steps", o.Positions = "positions", o.Count = "count", o.Values = "values";
|
60
60
|
})($ || ($ = {}));
|
61
|
-
var
|
61
|
+
var O;
|
62
62
|
(function(o) {
|
63
63
|
o[o.None = -1] = "None", o[o.NoValue = 0] = "NoValue", o[o.LargeValue = 1] = "LargeValue", o[o.SmallValue = 2] = "SmallValue";
|
64
|
-
})(
|
64
|
+
})(O || (O = {}));
|
65
65
|
function Ft(o) {
|
66
66
|
return se(o) && typeof o.from == "function";
|
67
67
|
}
|
@@ -93,7 +93,7 @@ function L(o) {
|
|
93
93
|
return typeof o == "number" && !isNaN(o) && isFinite(o);
|
94
94
|
}
|
95
95
|
function Xe(o, e, i) {
|
96
|
-
i > 0 && (
|
96
|
+
i > 0 && (M(o, e), setTimeout(function() {
|
97
97
|
le(o, e);
|
98
98
|
}, i));
|
99
99
|
}
|
@@ -108,7 +108,7 @@ function Bt(o) {
|
|
108
108
|
var e = o.split(".");
|
109
109
|
return e.length > 1 ? e[1].length : 0;
|
110
110
|
}
|
111
|
-
function
|
111
|
+
function M(o, e) {
|
112
112
|
o.classList && !/\s/.test(e) ? o.classList.add(e) : o.className += " " + e;
|
113
113
|
}
|
114
114
|
function le(o, e) {
|
@@ -571,7 +571,7 @@ function wo(o, e, i) {
|
|
571
571
|
var c = Yt(), l = It(), m = l && Xt(), p = o, x, y, h, N, A, T, g = e.spectrum, j = [], S = [], D = [], ce = 0, R = {}, K = !1, G = o.ownerDocument, oe = e.documentElement || G.documentElement, re = G.body, ot = G.dir === "rtl" || e.ort === 1 ? 0 : 100;
|
572
572
|
function F(t, r) {
|
573
573
|
var n = G.createElement("div");
|
574
|
-
return r &&
|
574
|
+
return r && M(n, r), t.appendChild(n), n;
|
575
575
|
}
|
576
576
|
function rt(t, r) {
|
577
577
|
var n = F(t, e.cssClasses.origin), a = F(n, e.cssClasses.handle);
|
@@ -583,7 +583,7 @@ function wo(o, e, i) {
|
|
583
583
|
a.setAttribute(u, s[u]);
|
584
584
|
});
|
585
585
|
}
|
586
|
-
return a.setAttribute("role", "slider"), a.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), r === 0 ?
|
586
|
+
return a.setAttribute("role", "slider"), a.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), r === 0 ? M(a, e.cssClasses.handleLower) : r === e.handles - 1 && M(a, e.cssClasses.handleUpper), n.handle = a, n;
|
587
587
|
}
|
588
588
|
function de(t, r) {
|
589
589
|
return r ? F(t, e.cssClasses.connect) : !1;
|
@@ -594,9 +594,9 @@ function wo(o, e, i) {
|
|
594
594
|
h.push(rt(r, n)), D[n] = n, N.push(de(y, t[n + 1]));
|
595
595
|
}
|
596
596
|
function it(t) {
|
597
|
-
|
597
|
+
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);
|
598
598
|
var r = getComputedStyle(t).direction;
|
599
|
-
return r === "rtl" ?
|
599
|
+
return r === "rtl" ? M(t, e.cssClasses.textDirectionRtl) : M(t, e.cssClasses.textDirectionLtr), F(t, e.cssClasses.base);
|
600
600
|
}
|
601
601
|
function at(t, r) {
|
602
602
|
return !e.tooltips || !e.tooltips[r] ? !1 : F(t.firstChild, e.cssClasses.tooltip);
|
@@ -670,21 +670,21 @@ function wo(o, e, i) {
|
|
670
670
|
for ($e && (U = g.xNumSteps[w]), U || (U = C - P), C === void 0 && (C = P), U = Math.max(U, 1e-7), b = P; b <= C; b = r(b, U)) {
|
671
671
|
for (V = g.toStepping(b), ye = V - v, Te = ye / (t.density || 1), Se = Math.round(Te), _e = ye / Se, E = 1; E <= Se; E += 1)
|
672
672
|
we = v + E * _e, a[we.toFixed(5)] = [g.fromStepping(we), 0];
|
673
|
-
Ue = n.indexOf(b) > -1 ?
|
673
|
+
Ue = n.indexOf(b) > -1 ? O.LargeValue : $e ? O.SmallValue : O.NoValue, !w && f && b !== C && (Ue = 0), b === C && d || (a[V.toFixed(5)] = [b, Ue]), v = V;
|
674
674
|
}
|
675
675
|
}), a;
|
676
676
|
}
|
677
677
|
function ft(t, r, n) {
|
678
|
-
var a, s, u = G.createElement("div"), f = (a = {}, a[
|
679
|
-
|
678
|
+
var a, s, u = G.createElement("div"), f = (a = {}, a[O.None] = "", a[O.NoValue] = e.cssClasses.valueNormal, a[O.LargeValue] = e.cssClasses.valueLarge, a[O.SmallValue] = e.cssClasses.valueSub, a), d = (s = {}, s[O.None] = "", s[O.NoValue] = e.cssClasses.markerNormal, s[O.LargeValue] = e.cssClasses.markerLarge, s[O.SmallValue] = e.cssClasses.markerSub, s), v = [e.cssClasses.valueHorizontal, e.cssClasses.valueVertical], z = [e.cssClasses.markerHorizontal, e.cssClasses.markerVertical];
|
679
|
+
M(u, e.cssClasses.pips), M(u, e.ort === 0 ? e.cssClasses.pipsHorizontal : e.cssClasses.pipsVertical);
|
680
680
|
function w(b, E) {
|
681
681
|
var P = E === e.cssClasses.value, C = P ? v : z, V = P ? f : d;
|
682
682
|
return E + " " + C[e.ort] + " " + V[b];
|
683
683
|
}
|
684
684
|
function U(b, E, P) {
|
685
|
-
if (P = r ? r(E, P) : P, P !==
|
685
|
+
if (P = r ? r(E, P) : P, P !== O.None) {
|
686
686
|
var C = F(u, !1);
|
687
|
-
C.className = w(P, e.cssClasses.marker), C.style[e.style] = b + "%", P >
|
687
|
+
C.className = w(P, e.cssClasses.marker), C.style[e.style] = b + "%", P > O.NoValue && (C = F(u, !1), C.className = w(P, e.cssClasses.value), C.setAttribute("data-value", String(E)), C.style[e.style] = b + "%", C.innerHTML = String(n.to(E)));
|
688
688
|
}
|
689
689
|
}
|
690
690
|
return Object.keys(t).forEach(function(b) {
|
@@ -741,7 +741,7 @@ function wo(o, e, i) {
|
|
741
741
|
}
|
742
742
|
return r = r || We(G), (s || u) && (f = t.clientX + r.x, d = t.clientY + r.y), t.pageOffset = r, t.points = [f, d], t.cursor = s || u, t;
|
743
743
|
}
|
744
|
-
function
|
744
|
+
function Me(t) {
|
745
745
|
var r = t - $t(x, e.ort), n = r * 100 / Pe();
|
746
746
|
return n = Ie(n), e.dir ? 100 - n : n;
|
747
747
|
}
|
@@ -779,7 +779,7 @@ function wo(o, e, i) {
|
|
779
779
|
var n;
|
780
780
|
if (r.handleNumbers.length === 1) {
|
781
781
|
var a = h[r.handleNumbers[0]];
|
782
|
-
n = a.children[0], ce += 1,
|
782
|
+
n = a.children[0], ce += 1, M(n, e.cssClasses.active);
|
783
783
|
}
|
784
784
|
t.stopPropagation();
|
785
785
|
var s = [], u = Y(c.move, oe, gt, {
|
@@ -808,18 +808,18 @@ function wo(o, e, i) {
|
|
808
808
|
doNotReject: !0,
|
809
809
|
handleNumbers: r.handleNumbers
|
810
810
|
});
|
811
|
-
s.push.apply(s, u.concat(f, d)), t.cursor && (re.style.cursor = getComputedStyle(t.target).cursor, h.length > 1 &&
|
811
|
+
s.push.apply(s, u.concat(f, d)), t.cursor && (re.style.cursor = getComputedStyle(t.target).cursor, h.length > 1 && M(p, e.cssClasses.drag), re.addEventListener("selectstart", Ye, !1)), r.handleNumbers.forEach(function(v) {
|
812
812
|
k("start", v);
|
813
813
|
});
|
814
814
|
}
|
815
815
|
}
|
816
816
|
function bt(t) {
|
817
817
|
t.stopPropagation();
|
818
|
-
var r =
|
818
|
+
var r = Me(t.calcPoint), n = mt(r);
|
819
819
|
n !== !1 && (e.events.snap || Xe(p, e.cssClasses.tap, e.animationDuration), X(n, r, !0, !0), xe(), k("slide", n, !0), k("update", n, !0), e.events.snap ? be(t, { handleNumbers: [n] }) : (k("change", n, !0), k("set", n, !0)));
|
820
820
|
}
|
821
821
|
function vt(t) {
|
822
|
-
var r =
|
822
|
+
var r = Me(t.calcPoint), n = g.getStep(r), a = g.fromStepping(n);
|
823
823
|
Object.keys(R).forEach(function(s) {
|
824
824
|
s.split(".")[0] === "hover" && R[s].forEach(function(u) {
|
825
825
|
u.call(ae, a);
|
@@ -844,7 +844,7 @@ function wo(o, e, i) {
|
|
844
844
|
} else b ? E = e.spectrum.xVal[e.spectrum.xVal.length - 1] : E = e.spectrum.xVal[0];
|
845
845
|
return X(r, g.toStepping(E), !0, !0), k("slide", r), k("update", r), k("change", r), k("set", r), !1;
|
846
846
|
}
|
847
|
-
function
|
847
|
+
function Oe(t) {
|
848
848
|
t.fixed || h.forEach(function(r, n) {
|
849
849
|
Y(c.start, r.children[0], be, {
|
850
850
|
handleNumbers: [n]
|
@@ -854,7 +854,7 @@ function wo(o, e, i) {
|
|
854
854
|
}), t.drag && N.forEach(function(r, n) {
|
855
855
|
if (!(r === !1 || n === 0 || n === N.length - 1)) {
|
856
856
|
var a = h[n - 1], s = h[n], u = [r], f = [a, s], d = [n - 1, n];
|
857
|
-
|
857
|
+
M(r, e.cssClasses.draggable), t.fixed && (u.push(a.children[0]), u.push(s.children[0])), t.dragAll && (f = h, d = D), u.forEach(function(v) {
|
858
858
|
Y(c.start, v, be, {
|
859
859
|
handles: f,
|
860
860
|
handleNumbers: d,
|
@@ -1046,7 +1046,7 @@ function wo(o, e, i) {
|
|
1046
1046
|
y.removeChild(y.firstChild);
|
1047
1047
|
for (var t = 0; t <= e.handles; t++)
|
1048
1048
|
N[t] = de(y, e.connect[t]), Z(t);
|
1049
|
-
|
1049
|
+
Oe({ drag: e.events.drag, fixed: !0 });
|
1050
1050
|
}
|
1051
1051
|
function Ct() {
|
1052
1052
|
K = !K, Qe(
|
@@ -1058,7 +1058,7 @@ function wo(o, e, i) {
|
|
1058
1058
|
), Fe();
|
1059
1059
|
}
|
1060
1060
|
function Nt() {
|
1061
|
-
x = it(p), nt(e.connect, x),
|
1061
|
+
x = it(p), nt(e.connect, x), Oe(e.events), ie(e.start), e.pips && he(e.pips), e.tooltips && Ve(), ut();
|
1062
1062
|
}
|
1063
1063
|
Nt();
|
1064
1064
|
var ae = {
|
@@ -1116,7 +1116,7 @@ var Eo = Object.defineProperty, J = (o, e, i, c) => {
|
|
1116
1116
|
(p = o[m]) && (l = p(e, i, l) || l);
|
1117
1117
|
return l && Eo(e, i, l), l;
|
1118
1118
|
};
|
1119
|
-
const tt = class extends Ht(
|
1119
|
+
const tt = class extends Ht(Mt) {
|
1120
1120
|
constructor() {
|
1121
1121
|
super(...arguments), this.value = 0, this.min = 0, this.max = 100, this.step = 100, this.disabled = !1, this.debounce = 200, this._doingUpdate = !1;
|
1122
1122
|
}
|
@@ -1159,7 +1159,7 @@ const tt = class extends Ht(Ot) {
|
|
1159
1159
|
);
|
1160
1160
|
}
|
1161
1161
|
render() {
|
1162
|
-
return
|
1162
|
+
return Ot`<div class="luzmo-slider-container"></div>`;
|
1163
1163
|
}
|
1164
1164
|
};
|
1165
1165
|
tt.styles = [Dt(ko)];
|
@@ -1199,13 +1199,13 @@ const ee = class ee extends jt {
|
|
1199
1199
|
composed: !0,
|
1200
1200
|
cancelable: !0,
|
1201
1201
|
detail: {
|
1202
|
-
value: typeof this.
|
1202
|
+
value: typeof this.toValue == "function" ? this.toValue(e.detail) : e.detail
|
1203
1203
|
}
|
1204
1204
|
})
|
1205
1205
|
);
|
1206
1206
|
}
|
1207
1207
|
renderController() {
|
1208
|
-
const e = typeof this.
|
1208
|
+
const e = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, i = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
|
1209
1209
|
return Lt`
|
1210
1210
|
<luzmo-slider
|
1211
1211
|
id="luzmo-edit-option-control"
|
@@ -1243,10 +1243,10 @@ q([
|
|
1243
1243
|
], H.prototype, "debounce");
|
1244
1244
|
q([
|
1245
1245
|
B()
|
1246
|
-
], H.prototype, "
|
1246
|
+
], H.prototype, "parseValue");
|
1247
1247
|
q([
|
1248
1248
|
B()
|
1249
|
-
], H.prototype, "
|
1249
|
+
], H.prototype, "toValue");
|
1250
1250
|
customElements.get("luzmo-edit-option-slider") || customElements.define("luzmo-edit-option-slider", H);
|
1251
1251
|
export {
|
1252
1252
|
H as LuzmoEditOptionSlider
|
@@ -4,8 +4,8 @@ export declare class LuzmoEditOptionSwitch extends LuzmoEditOptionBase {
|
|
4
4
|
static styles: (import("lit").CSSResultOrNative | import("lit").CSSResultArray)[];
|
5
5
|
value?: boolean;
|
6
6
|
default?: boolean;
|
7
|
-
|
8
|
-
|
7
|
+
parseValue?: (value?: string | number | any) => boolean;
|
8
|
+
toValue?: (value?: boolean) => string | number | any;
|
9
9
|
private _handleEvent;
|
10
10
|
protected renderController(): import("lit-html").TemplateResult<1>;
|
11
11
|
}
|
@@ -37,7 +37,7 @@
|
|
37
37
|
${super.render()}
|
38
38
|
<span id="switch"></span>
|
39
39
|
<label id="label" for="input"><slot></slot></label>
|
40
|
-
`}firstUpdated(r){super.firstUpdated(r),this.inputElement.setAttribute("role","switch")}updated(r){r.has("checked")&&this.inputElement.setAttribute("aria-checked",this.checked?"true":"false")}}b([t.Rt({type:Boolean,reflect:!0})],d.prototype,"emphasized");b([t.Rt({type:String,reflect:!0})],d.prototype,"thumb");customElements.get("luzmo-switch")||customElements.define("luzmo-switch",d);const y=":host{--luzmo-switch-control-label-spacing: 0px}";var B=Object.defineProperty,h=(o,r,c,w)=>{for(var e=void 0,i=o.length-1,a;i>=0;i--)(a=o[i])&&(e=a(r,c,e)||e);return e&&B(r,c,e),e};const s=class s extends f.LuzmoEditOptionBase{_handleEvent(r){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.
|
40
|
+
`}firstUpdated(r){super.firstUpdated(r),this.inputElement.setAttribute("role","switch")}updated(r){r.has("checked")&&this.inputElement.setAttribute("aria-checked",this.checked?"true":"false")}}b([t.Rt({type:Boolean,reflect:!0})],d.prototype,"emphasized");b([t.Rt({type:String,reflect:!0})],d.prototype,"thumb");customElements.get("luzmo-switch")||customElements.define("luzmo-switch",d);const y=":host{--luzmo-switch-control-label-spacing: 0px}";var B=Object.defineProperty,h=(o,r,c,w)=>{for(var e=void 0,i=o.length-1,a;i>=0;i--)(a=o[i])&&(e=a(r,c,e)||e);return e&&B(r,c,e),e};const s=class s extends f.LuzmoEditOptionBase{_handleEvent(r){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(r.detail):r.detail}}))}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,c=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
|
41
41
|
<luzmo-switch
|
42
42
|
id="luzmo-edit-option-control"
|
43
43
|
thumb="overflow"
|
@@ -47,4 +47,4 @@
|
|
47
47
|
.disabled=${this.disabled}
|
48
48
|
@change=${this._handleEvent}
|
49
49
|
></luzmo-switch>
|
50
|
-
`}};s.styles=[...n(s,s,"styles"),t.r$1(y)];let l=s;h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"value");h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"default");h([t.n()],l.prototype,"
|
50
|
+
`}};s.styles=[...n(s,s,"styles"),t.r$1(y)];let l=s;h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"value");h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"default");h([t.n()],l.prototype,"parseValue");h([t.n()],l.prototype,"toValue");customElements.get("luzmo-edit-option-switch")||customElements.define("luzmo-edit-option-switch",l);exports.LuzmoEditOptionSwitch=l;
|
@@ -61,10 +61,10 @@ class G extends B(p) {
|
|
61
61
|
}
|
62
62
|
}
|
63
63
|
const b = ':host{--switch-focus-indicator-width: var(--luzmo-focus-indicator-width, var(--luzmo-indicator-width));min-block-size:var(--luzmo-switch-height, var(--switch-min-height));--switch-track-height: var(--switch-control-height);max-inline-size:100%;vertical-align:top;align-items:flex-start;display:inline-flex;position:relative}#input{box-sizing:border-box;inline-size:100%;block-size:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0;position:absolute;inset-block-start:0;inset-inline-start:0}:host([checked]) #input+#switch:before{transform:translate(calc(var(--luzmo-switch-control-width, var(--switch-control-width)) - 100%))}:host([checked]) #input+#switch:dir(rtl):before,:host([dir=rtl][checked]) #input+#switch:before{transform:translate(calc((var(--luzmo-switch-control-width, var(--switch-control-width)) - 100%) * -1))}:host([disabled]) #input{cursor:not-allowed}#input:focus-visible+#switch:after{margin:calc(var(--luzmo-focus-indicator-gap, var(--switch-focus-indicator-gap)) * -1)}#label{color:var(--highcontrast-switch-label-color-default, var(--luzmo-switch-label-color-default, var(--switch-label-color-default)));margin-inline:var(--luzmo-switch-control-label-spacing, var(--switch-control-label-spacing));font-size:var(--luzmo-switch-font-size, var(--switch-font-size));line-height:var(--luzmo-switch-line-height, 1.3);transition:color calc(var(--luzmo-animation-duration) * 2) ease-in-out;margin-block-start:var(--luzmo-switch-spacing-top-to-label, var(--switch-spacing-top-to-label));margin-block-end:0}#switch{box-sizing:border-box;inline-size:var(--luzmo-switch-control-width, var(--switch-control-width));margin-block:calc(var(--luzmo-switch-height, var(--switch-min-height)) - var(--luzmo-switch-control-height, var(--switch-control-height)) - var(--luzmo-switch-spacing-top-to-control, var(--switch-spacing-top-to-control)));vertical-align:middle;transition:background var(--luzmo-animation-duration) ease-in-out,border var(--luzmo-animation-duration) ease-in-out;block-size:var(--luzmo-switch-track-height, var(--switch-track-height));border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2);flex-grow:0;flex-shrink:0;margin-inline:0;display:inline-block;position:relative;inset-inline:0}#switch:before{box-sizing:border-box;transition:background var(--luzmo-animation-duration) ease-in-out,border var(--luzmo-animation-duration) ease-in-out,transform var(--luzmo-animation-duration) ease-in-out,box-shadow var(--luzmo-animation-duration) ease-in-out;inline-size:var(--luzmo-switch-control-height, var(--switch-control-height));block-size:var(--luzmo-switch-control-height, var(--switch-control-height));box-shadow:var(--luzmo-switch-control-box-shadow, var(--switch-control-box-shadow));border-width:var(--luzmo-switch-border-width, var(--luzmo-switch-border-width, var(--luzmo-border-width)));border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2);border-style:solid}#switch:after,#switch:before{content:"";display:block;position:absolute;inset-block-start:0;inset-inline-start:0}#switch:after{border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2 + var(--luzmo-focus-indicator-gap, var(--switch-focus-indicator-gap)) * 2);transition:opacity var(--luzmo-animation-duration) ease-out,margin var(--luzmo-animation-duration) ease-out;margin:0;inset-block-end:0;inset-inline-end:0}#switch{background-color:var(--highcontrast-switch-background-color, var(--luzmo-switch-background-color, var(--switch-background-color)))}#switch:before{background-color:var(--highcontrast-switch-handle-background-color, var(--luzmo-switch-handle-background-color, var(--switch-handle-background-color)));border-color:var(--highcontrast-switch-handle-border-color-default, var(--luzmo-switch-handle-border-color-default, var(--switch-handle-border-color-default)))}:host(:active) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-down, var(--luzmo-switch-handle-border-color-down, var(--switch-handle-border-color-down)))}:host(:active) #input~#label{color:var(--highcontrast-switch-label-color-down, var(--luzmo-switch-label-color-down, var(--switch-label-color-down)))}:host(:active[checked]) #input:enabled+#switch{background-color:var(--highcontrast-switch-background-color-selected-down, var(--luzmo-switch-background-color-selected-down, var(--switch-background-color-selected-down)))}:host(:active[checked]) #input:enabled+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-down, var(--luzmo-switch-handle-border-color-selected-down, var(--switch-handle-border-color-selected-down)))}#input:focus-visible+#switch:after{box-shadow:0 0 0 var(--luzmo-switch-focus-indicator-width, var(--luzmo-focus-indicator-width, var(--switch-focus-indicator-width))) var(--highcontrast-switch-focus-indicator-color, var(--luzmo-switch-focus-indicator-color, var(--switch-focus-indicator-color)))}#input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-focus, var(--luzmo-switch-handle-border-color-focus, var(--switch-handle-border-color-focus)))}:host([checked]) #input:focus-visible+#switch{background-color:var(--highcontrast-switch-background-color-selected-focus, var(--luzmo-switch-background-color-selected-focus, var(--switch-background-color-selected-focus)))}:host([checked]) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-focus, var(--luzmo-switch-handle-border-color-selected-focus, var(--switch-handle-border-color-selected-focus)))}#input:focus-visible~#label{color:var(--highcontrast-switch-label-color-focus, var(--luzmo-switch-label-color-focus, var(--switch-label-color-focus)))}@media (hover: hover){:host(:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-hover, var(--luzmo-switch-handle-border-color-hover, var(--switch-handle-border-color-hover)));box-shadow:var(--luzmo-switch-control-box-shadow, var(--switch-control-box-shadow, none));background-color:var(--highcontrast-switch-background-color-hover, var(--luzmo-switch-background-color-hover, var(--switch-background-color-hover, var(--luzmo-background-color-hover))))}:host(:hover) #input~#label{color:var(--highcontrast-switch-label-color-hover, var(--luzmo-switch-label-color-hover, var(--switch-label-color-hover)))}:host([checked]:hover) #input:enabled+#switch{background-color:var(--highcontrast-switch-background-color-selected-hover, var(--luzmo-switch-background-color-selected-hover, var(--switch-background-color-selected-hover)))}:host([checked]:hover) #input:enabled+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-hover, var(--luzmo-switch-handle-border-color-selected-hover, var(--switch-handle-border-color-selected-hover)))}:host([disabled]:hover) #input+#switch{background-color:var(--highcontrast-switch-background-color-disabled, var(--luzmo-switch-background-color-disabled, var(--switch-background-color-disabled)))}:host([disabled]:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled]:hover) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}:host([disabled][checked]:hover) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-disabled, var(--luzmo-switch-background-color-selected-disabled, var(--switch-background-color-selected-disabled)))}:host([disabled][checked]:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled][checked]:hover) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}:host(:hover) #input:focus-visible+#switch:after{box-shadow:0 0 0 var(--luzmo-switch-focus-indicator-width, var(--luzmo-focus-indicator-width, var(--switch-focus-indicator-width))) var(--highcontrast-switch-focus-indicator-color, var(--luzmo-switch-focus-indicator-color, var(--switch-focus-indicator-color)))}:host(:hover) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-focus, var(--luzmo-switch-handle-border-color-focus, var(--switch-handle-border-color-focus)))}:host([checked]:hover) #input:focus-visible+#switch{background-color:var(--highcontrast-switch-background-color-selected-focus, var(--luzmo-switch-background-color-selected-focus, var(--switch-background-color-selected-focus)))}:host([checked]:hover) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-focus, var(--luzmo-switch-handle-border-color-selected-focus, var(--switch-handle-border-color-selected-focus)))}:host(:hover) #input:focus-visible~#label{color:var(--highcontrast-switch-label-color-focus, var(--luzmo-switch-label-color-focus, var(--switch-label-color-focus)))}}:host([checked]) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-default, var(--luzmo-switch-background-color-selected-default, var(--switch-background-color-selected-default)))}:host([checked]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-default, var(--luzmo-switch-handle-border-color-selected-default, var(--switch-handle-border-color-selected-default)))}:host([disabled]) #input+#switch{background-color:var(--highcontrast-switch-background-color-disabled, var(--luzmo-switch-background-color-disabled, var(--switch-background-color-disabled)))}:host([disabled]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled][checked]) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-disabled, var(--luzmo-switch-background-color-selected-disabled, var(--switch-background-color-selected-disabled)))}:host([disabled][checked]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled]) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}@media (forced-colors: active){:host{--highcontrast-switch-label-color-default: ButtonText;--highcontrast-switch-label-color-hover: ButtonText;--highcontrast-switch-label-color-down: ButtonText;--highcontrast-switch-label-color-focus: ButtonText;--highcontrast-switch-label-color-disabled: GrayText;--highcontrast-switch-handle-background-color: ButtonFace;--highcontrast-switch-handle-border-color-default: ButtonText;--highcontrast-switch-handle-border-color-hover: Highlight;--highcontrast-switch-handle-border-color-down: Highlight;--highcontrast-switch-handle-border-color-focus: Highlight;--highcontrast-switch-handle-border-color-disabled: Highlight;--highcontrast-switch-handle-border-color-selected-default: Highlight;--highcontrast-switch-handle-border-color-selected-hover: Highlight;--highcontrast-switch-handle-border-color-selected-down: Highlight;--highcontrast-switch-handle-border-color-selected-focus: Highlight;--highcontrast-switch-background-color: ButtonFace;--highcontrast-switch-background-color-selected-default: Highlight;--highcontrast-switch-background-color-selected-hover: Highlight;--highcontrast-switch-background-color-selected-down: Highlight;--highcontrast-switch-background-color-selected-focus: Highlight;--highcontrast-switch-background-color-selected-disabled: Highlight;--highcontrast-switch-focus-indicator-color: ButtonText;forced-color-adjust:none}#input:not(:checked)+#switch{box-shadow:inset 0 0 0 1px ButtonText}}@media (forced-colors: active) and (hover: hover){:host(:hover) #input:not(:checked)+#switch{box-shadow:inset 0 0 0 1px Highlight}:host([disabled][checked]:hover) #input+#switch{background-color:GrayText;box-shadow:inset 0 0 0 1px GrayText}:host([disabled][checked]:hover) #input+#switch:before{background-color:ButtonFace;border-color:GrayText}}@media (forced-colors: active){:host([disabled]) #input:not(:checked)+#switch{background-color:ButtonFace;box-shadow:inset 0 0 0 1px GrayText}:host([disabled]) #input:not(:checked)+#switch:before{background-color:ButtonFace;border-color:GrayText}:host([disabled][checked]) #input+#switch{background-color:GrayText;box-shadow:inset 0 0 0 1px GrayText}:host([disabled][checked]) #input+#switch:before{background-color:ButtonFace;border-color:GrayText}:host([disabled]) #input~#label{color:GrayText}}:host{--switch-handle-border-color-default: var(--luzmo-color-selected);--switch-handle-border-color-hover: var(--luzmo-color-selected-hover);--switch-handle-border-color-down: var(--luzmo-color-selected-down);--switch-handle-border-color-focus: var(--luzmo-color-selected-focus);--switch-handle-border-color-selected-default: var(--luzmo-color-selected-hover);--switch-handle-border-color-selected-hover: var(--luzmo-color-selected-down);--switch-handle-border-color-selected-down: var(--luzmo-color-selected-hard-down);--switch-handle-border-color-selected-focus: var(--luzmo-color-selected-down);--switch-focus-indicator-gap: var(--luzmo-indicator-gap);--switch-label-color-default: var(--luzmo-color-selected-hard);--switch-label-color-hover: var(--luzmo-color-selected-hard-hover);--switch-label-color-down: var(--luzmo-color-selected-hard-down);--switch-label-color-focus: var(--luzmo-color-selected-hard-focus);--switch-label-color-disabled: var(--luzmo-color-disabled);--switch-background-color: var(--luzmo-border-color);--switch-background-color-disabled: var(--luzmo-background-color-disabled);--switch-background-color-selected-disabled: var(--luzmo-color-disabled);--switch-background-color-selected-default: var(--luzmo-color-selected-hover);--switch-background-color-selected-hover: var(--luzmo-color-selected-down);--switch-background-color-selected-down: var(--luzmo-color-selected-hard-down);--switch-background-color-selected-focus: var(--luzmo-color-selected-down);--switch-focus-indicator-width: var(luzmo-indicator-width);--switch-focus-indicator-color: var(--luzmo-primary);--switch-handle-background-color: var(--luzmo-background-color);--switch-handle-border-color-disabled: var(--luzmo-color-disabled);--switch-spacing-top-to-control: calc((var(--switch-min-height) - var(--switch-control-height)) / 2)}:host([disabled]){--switch-label-color-default: var(--luzmo-color-disabled)}:host([emphasized]){--switch-background-color-selected-default: var(--luzmo-primary);--switch-background-color-selected-hover: var(--luzmo-primary-hover);--switch-background-color-selected-down: var(--luzmo-primary-down);--switch-background-color-selected-focus: var(--luzmo-primary-focus);--switch-handle-border-color-selected-default: var(--luzmo-primary);--switch-handle-border-color-selected-hover: var(--luzmo-primary-hover);--switch-handle-border-color-selected-down: var(--luzmo-primary-down);--switch-handle-border-color-selected-focus: var(--luzmo-primary-focus)}:host([size=s]){--switch-min-height: 24px;--switch-control-width: 23px;--switch-control-height: var(--luzmo-font-size-s);--switch-control-label-spacing: var(--luzmo-spacing-3);--switch-spacing-top-to-label: 4px;--switch-font-size: var(--luzmo-font-size-s)}:host{--switch-min-height: 32px;--switch-control-width: 26px;--switch-control-height: var(--luzmo-font-size);--switch-control-label-spacing: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--switch-spacing-top-to-label: 6px;--switch-font-size: var(--luzmo-font-size)}:host([size=l]){--switch-min-height: 40px;--switch-control-width: 28px;--switch-control-height: var(--luzmo-font-size-l);--switch-control-label-spacing: var(--luzmo-spacing-4);--switch-spacing-top-to-label: 9px;--switch-font-size: var(--luzmo-font-size-l)}:host([size=xl]){--switch-min-height: 48px;--switch-control-width: 32px;--switch-control-height: var(--luzmo-font-size-xl);--switch-control-label-spacing: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--switch-spacing-top-to-label: 12px;--switch-font-size: var(--luzmo-font-size-xl)}:host([disabled]){pointer-events:none}:host([thumb=overflow]){--luzmo-switch-border-width: 0px;--switch-control-width: calc(var(--switch-control-height) * 2);--switch-control-box-shadow: 0 .125rem .25rem rgba(var(--luzmo-border-color-rgb), .2), inset 0 0 0 .0625rem rgba(var(--luzmo-border-color-rgb), .2)}:host([thumb=overflow]) #switch{margin-top:calc((var(--luzmo-switch-min-height, var(--switch-min-height)) - var(--luzmo-switch-track-height, var(--switch-track-height))) / 2)}:host([thumb=overflow]) #switch:before{inset-block-start:calc(-1 * (var(--luzmo-switch-control-height, var(--switch-control-height)) - var(--luzmo-switch-track-height, var(--switch-track-height))) / 2)}:host([thumb=overflow][size=s]){--switch-track-height: 10px;--switch-control-height: 16px;--switch-focus-indicator-gap: 5px}:host([thumb=overflow]){--switch-track-height: 10px;--switch-control-height: 18px;--switch-focus-indicator-gap: 6px}:host([thumb=overflow][size=l]){--switch-track-height: 12px;--switch-control-height: 20px;--switch-focus-indicator-gap: 7px}:host([thumb=overflow][size=xl]){--switch-track-height: 12px;--switch-control-height: 22px;--switch-focus-indicator-gap: 8px}';
|
64
|
-
var
|
64
|
+
var C = Object.defineProperty, g = (o, r, l, w) => {
|
65
65
|
for (var e = void 0, t = o.length - 1, i; t >= 0; t--)
|
66
66
|
(i = o[t]) && (e = i(r, l, e) || e);
|
67
|
-
return e &&
|
67
|
+
return e && C(r, l, e), e;
|
68
68
|
};
|
69
69
|
class d extends H(G) {
|
70
70
|
constructor() {
|
@@ -97,11 +97,11 @@ g([
|
|
97
97
|
m({ type: String, reflect: !0 })
|
98
98
|
], d.prototype, "thumb");
|
99
99
|
customElements.get("luzmo-switch") || customElements.define("luzmo-switch", d);
|
100
|
-
const
|
101
|
-
var
|
100
|
+
const V = ":host{--luzmo-switch-control-label-spacing: 0px}";
|
101
|
+
var A = Object.defineProperty, h = (o, r, l, w) => {
|
102
102
|
for (var e = void 0, t = o.length - 1, i; t >= 0; t--)
|
103
103
|
(i = o[t]) && (e = i(r, l, e) || e);
|
104
|
-
return e &&
|
104
|
+
return e && A(r, l, e), e;
|
105
105
|
};
|
106
106
|
const a = class a extends T {
|
107
107
|
_handleEvent(r) {
|
@@ -111,13 +111,13 @@ const a = class a extends T {
|
|
111
111
|
composed: !0,
|
112
112
|
cancelable: !0,
|
113
113
|
detail: {
|
114
|
-
value: typeof this.
|
114
|
+
value: typeof this.toValue == "function" ? this.toValue(r.detail) : r.detail
|
115
115
|
}
|
116
116
|
})
|
117
117
|
);
|
118
118
|
}
|
119
119
|
renderController() {
|
120
|
-
const r = typeof this.
|
120
|
+
const r = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, l = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
|
121
121
|
return y`
|
122
122
|
<luzmo-switch
|
123
123
|
id="luzmo-edit-option-control"
|
@@ -131,7 +131,7 @@ const a = class a extends T {
|
|
131
131
|
`;
|
132
132
|
}
|
133
133
|
};
|
134
|
-
a.styles = [...n(a, a, "styles"), k(
|
134
|
+
a.styles = [...n(a, a, "styles"), k(V)];
|
135
135
|
let c = a;
|
136
136
|
h([
|
137
137
|
s({
|
@@ -161,10 +161,10 @@ h([
|
|
161
161
|
], c.prototype, "default");
|
162
162
|
h([
|
163
163
|
s()
|
164
|
-
], c.prototype, "
|
164
|
+
], c.prototype, "parseValue");
|
165
165
|
h([
|
166
166
|
s()
|
167
|
-
], c.prototype, "
|
167
|
+
], c.prototype, "toValue");
|
168
168
|
customElements.get("luzmo-edit-option-switch") || customElements.define("luzmo-edit-option-switch", c);
|
169
169
|
export {
|
170
170
|
c as LuzmoEditOptionSwitch
|
@@ -17,4 +17,4 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./helpers-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./helpers-DXQwEH1P.cjs"),t=[{key:"general",type:"group",label:"General",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"showSubtitle",control:{type:"switch",label:"Subtitle",default:!1}},{key:"horizontalAlignment",control:{type:"action-button-group",label:"Horizontal alignment",default:["center"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}},{key:"verticalAlignment",control:{type:"action-button-group",label:"Vertical alignment",default:["middle"],values:{top:{iconName:"alignTop",label:"align top"},middle:{iconName:"alignMiddle",label:"align middle"},bottom:{iconName:"alignBottom",label:"align bottom"}},selects:"single"}},{key:"color",control:{type:"color-picker",label:"Number color",default:({theme:e})=>a.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>a.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelClickAction(e,l,"color")}}]},{key:"fontSizes",type:"group",label:"Font sizes",open:!1,children:[{key:"numberFontSize",control:{type:"number-field",label:"Number font size",default:86,min:10,max:200,step:1,unit:"px"}},{key:"titleFontSize",control:{type:"number-field",label:"Title font size",default:15,min:10,max:100,step:1,unit:"px"}}]},{key:"evolution",type:"group",open:!1,children:[{key:"evolutionGraphDisplay",control:{type:"picker",label:"Show evolution graph",default:"background",enum:["none","background","fixedbottom","belownumber"]}},{key:"evolutionGraphType",control:{type:"picker",label:"Graph type",default:"area",enum:["area","line"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"evolutionGraphInterpolation",control:{type:"picker",label:"Graph interpolation",default:"linear",enum:["linear","step-before","step-after","monotone"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"missingValue.type",control:{type:"picker",label:"Fill missing days",default:"no",enum:["no","break","manual"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"missingValue.value",control:{type:"number-field",label:"Value",default:0},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.missingValue)==null?void 0:l.type)==="manual"}},{key:"evolutionGraphOpacity",control:{type:"slider",label:"Graph opacity",default:35,min:0,max:100,step:1},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"evolutionColor",control:{type:"switch",label:"Lower is better",default:"normal",parseValue:e=>e==="inverse",toValue:e=>e?"inverse":"normal"},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"}]}];exports.default=t;
|