{"ast":null,"code":"import { __awaiter, __generator } from \"tslib\";\nimport { r as registerInstance, e as createEvent, h, H as Host, i as getElement } from \"./index-7a8b7a1c.js\";\nimport { b as getIonMode } from \"./ionic-global-63a97a32.js\";\nimport { j as clamp, f as debounceEvent, i as inheritAttributes, d as getAriaLabel, e as renderHiddenInput } from \"./helpers-dd7e4b7b.js\";\nimport { c as createColorClasses, h as hostContext } from \"./theme-ff3fc52f.js\";\nvar rangeIosCss = \":host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0 3px 1px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.02);--knob-size:28px;--bar-height:2px;--bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){margin-left:0;margin-right:16px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted([slot=end]){margin-left:16px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:20px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-tick{margin-left:-1px;border-radius:0;position:absolute;top:18px;width:2px;height:8px;background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-tick{margin-left:unset;-webkit-margin-start:-1px;margin-inline-start:-1px}}.range-tick-active{background:var(--bar-background-active)}.range-pin{-webkit-transform:translate3d(0,  28px,  0) scale(0.01);transform:translate3d(0,  28px,  0) scale(0.01);padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:inline-block;position:relative;top:-20px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:12px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-pin{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.range-knob-pressed .range-pin{-webkit-transform:translate3d(0,  0,  0) scale(1);transform:translate3d(0,  0,  0) scale(1)}:host(.range-disabled){opacity:0.5}\";\nvar rangeMdCss = ':host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff);padding-left:14px;padding-right:14px;padding-top:8px;padding-bottom:8px;font-size:12px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px}}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){margin-left:0;margin-right:14px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px}}::slotted([slot=end]){margin-left:14px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:28px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0,  0,  0) scale(0.01);transform:translate3d(0,  0,  0) scale(0.01);display:inline-block;position:relative;min-width:28px;height:28px;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color);text-align:center}.range-pin::before{left:50%;top:3px;margin-left:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:\"\";z-index:-1}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-pin::before{margin-left:unset;-webkit-margin-start:-13px;margin-inline-start:-13px}}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset}.range-knob-pressed .range-pin{-webkit-transform:translate3d(0,  -24px,  0) scale(1);transform:translate3d(0,  -24px,  0) scale(1)}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob{-webkit-transform:scale(1);transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}';\n\nvar Range = function () {\n  function t(t) {\n    var e = this;\n    registerInstance(this, t);\n    this.ionChange = createEvent(this, \"ionChange\", 7);\n    this.ionStyle = createEvent(this, \"ionStyle\", 7);\n    this.ionFocus = createEvent(this, \"ionFocus\", 7);\n    this.ionBlur = createEvent(this, \"ionBlur\", 7);\n    this.didLoad = false;\n    this.noUpdate = false;\n    this.hasFocus = false;\n    this.inheritedAttributes = {};\n    this.ratioA = 0;\n    this.ratioB = 0;\n    this.debounce = 0;\n    this.name = \"\";\n    this.dualKnobs = false;\n    this.min = 0;\n    this.max = 100;\n    this.pin = false;\n    this.snaps = false;\n    this.step = 1;\n    this.ticks = true;\n    this.disabled = false;\n    this.value = 0;\n\n    this.clampBounds = function (t) {\n      return clamp(e.min, t, e.max);\n    };\n\n    this.ensureValueInBounds = function (t) {\n      if (e.dualKnobs) {\n        return {\n          lower: e.clampBounds(t.lower),\n          upper: e.clampBounds(t.upper)\n        };\n      } else {\n        return e.clampBounds(t);\n      }\n    };\n\n    this.setupGesture = function () {\n      return __awaiter(e, void 0, void 0, function () {\n        var t, e;\n        var r = this;\n        return __generator(this, function (n) {\n          switch (n.label) {\n            case 0:\n              t = this.rangeSlider;\n              if (!t) return [3, 2];\n              e = this;\n              return [4, import(\"./index-f49d994d.js\")];\n\n            case 1:\n              e.gesture = n.sent().createGesture({\n                el: t,\n                gestureName: \"range\",\n                gesturePriority: 100,\n                threshold: 0,\n                onStart: function (t) {\n                  return r.onStart(t);\n                },\n                onMove: function (t) {\n                  return r.onMove(t);\n                },\n                onEnd: function (t) {\n                  return r.onEnd(t);\n                }\n              });\n              this.gesture.enable(!this.disabled);\n              n.label = 2;\n\n            case 2:\n              return [2];\n          }\n        });\n      });\n    };\n\n    this.handleKeyboard = function (t, r) {\n      var n = e.step;\n      n = n > 0 ? n : 1;\n      n = n / (e.max - e.min);\n\n      if (!r) {\n        n *= -1;\n      }\n\n      if (t === \"A\") {\n        e.ratioA = clamp(0, e.ratioA + n, 1);\n      } else {\n        e.ratioB = clamp(0, e.ratioB + n, 1);\n      }\n\n      e.updateValue();\n    };\n\n    this.onBlur = function () {\n      if (e.hasFocus) {\n        e.hasFocus = false;\n        e.ionBlur.emit();\n        e.emitStyle();\n      }\n    };\n\n    this.onFocus = function () {\n      if (!e.hasFocus) {\n        e.hasFocus = true;\n        e.ionFocus.emit();\n        e.emitStyle();\n      }\n    };\n  }\n\n  t.prototype.debounceChanged = function () {\n    this.ionChange = debounceEvent(this.ionChange, this.debounce);\n  };\n\n  t.prototype.minChanged = function () {\n    if (!this.noUpdate) {\n      this.updateRatio();\n    }\n  };\n\n  t.prototype.maxChanged = function () {\n    if (!this.noUpdate) {\n      this.updateRatio();\n    }\n  };\n\n  t.prototype.disabledChanged = function () {\n    if (this.gesture) {\n      this.gesture.enable(!this.disabled);\n    }\n\n    this.emitStyle();\n  };\n\n  t.prototype.valueChanged = function (t) {\n    if (!this.noUpdate) {\n      this.updateRatio();\n    }\n\n    t = this.ensureValueInBounds(t);\n    this.ionChange.emit({\n      value: t\n    });\n  };\n\n  t.prototype.componentWillLoad = function () {\n    this.rangeId = this.el.hasAttribute(\"id\") ? this.el.getAttribute(\"id\") : \"ion-r-\" + rangeIds++;\n    this.inheritedAttributes = inheritAttributes(this.el, [\"aria-label\"]);\n  };\n\n  t.prototype.componentDidLoad = function () {\n    this.setupGesture();\n    this.didLoad = true;\n  };\n\n  t.prototype.connectedCallback = function () {\n    this.updateRatio();\n    this.debounceChanged();\n    this.disabledChanged();\n\n    if (this.didLoad) {\n      this.setupGesture();\n    }\n  };\n\n  t.prototype.disconnectedCallback = function () {\n    if (this.gesture) {\n      this.gesture.destroy();\n      this.gesture = undefined;\n    }\n  };\n\n  t.prototype.getValue = function () {\n    var t = this.value || 0;\n\n    if (this.dualKnobs) {\n      if (typeof t === \"object\") {\n        return t;\n      }\n\n      return {\n        lower: 0,\n        upper: t\n      };\n    } else {\n      if (typeof t === \"object\") {\n        return t.upper;\n      }\n\n      return t;\n    }\n  };\n\n  t.prototype.emitStyle = function () {\n    this.ionStyle.emit({\n      interactive: true,\n      \"interactive-disabled\": this.disabled\n    });\n  };\n\n  t.prototype.onStart = function (t) {\n    var e = this.rect = this.rangeSlider.getBoundingClientRect();\n    var r = t.currentX;\n    var n = clamp(0, (r - e.left) / e.width, 1);\n\n    if (document.dir === \"rtl\") {\n      n = 1 - n;\n    }\n\n    this.pressedKnob = !this.dualKnobs || Math.abs(this.ratioA - n) < Math.abs(this.ratioB - n) ? \"A\" : \"B\";\n    this.setFocus(this.pressedKnob);\n    this.update(r);\n  };\n\n  t.prototype.onMove = function (t) {\n    this.update(t.currentX);\n  };\n\n  t.prototype.onEnd = function (t) {\n    this.update(t.currentX);\n    this.pressedKnob = undefined;\n  };\n\n  t.prototype.update = function (t) {\n    var e = this.rect;\n    var r = clamp(0, (t - e.left) / e.width, 1);\n\n    if (document.dir === \"rtl\") {\n      r = 1 - r;\n    }\n\n    if (this.snaps) {\n      r = valueToRatio(ratioToValue(r, this.min, this.max, this.step), this.min, this.max);\n    }\n\n    if (this.pressedKnob === \"A\") {\n      this.ratioA = r;\n    } else {\n      this.ratioB = r;\n    }\n\n    this.updateValue();\n  };\n\n  Object.defineProperty(t.prototype, \"valA\", {\n    get: function () {\n      return ratioToValue(this.ratioA, this.min, this.max, this.step);\n    },\n    enumerable: false,\n    configurable: true\n  });\n  Object.defineProperty(t.prototype, \"valB\", {\n    get: function () {\n      return ratioToValue(this.ratioB, this.min, this.max, this.step);\n    },\n    enumerable: false,\n    configurable: true\n  });\n  Object.defineProperty(t.prototype, \"ratioLower\", {\n    get: function () {\n      if (this.dualKnobs) {\n        return Math.min(this.ratioA, this.ratioB);\n      }\n\n      return 0;\n    },\n    enumerable: false,\n    configurable: true\n  });\n  Object.defineProperty(t.prototype, \"ratioUpper\", {\n    get: function () {\n      if (this.dualKnobs) {\n        return Math.max(this.ratioA, this.ratioB);\n      }\n\n      return this.ratioA;\n    },\n    enumerable: false,\n    configurable: true\n  });\n\n  t.prototype.updateRatio = function () {\n    var t = this.getValue();\n    var e = this,\n        r = e.min,\n        n = e.max;\n\n    if (this.dualKnobs) {\n      this.ratioA = valueToRatio(t.lower, r, n);\n      this.ratioB = valueToRatio(t.upper, r, n);\n    } else {\n      this.ratioA = valueToRatio(t, r, n);\n    }\n  };\n\n  t.prototype.updateValue = function () {\n    this.noUpdate = true;\n    var t = this,\n        e = t.valA,\n        r = t.valB;\n    this.value = !this.dualKnobs ? e : {\n      lower: Math.min(e, r),\n      upper: Math.max(e, r)\n    };\n    this.noUpdate = false;\n  };\n\n  t.prototype.setFocus = function (t) {\n    if (this.el.shadowRoot) {\n      var e = this.el.shadowRoot.querySelector(t === \"A\" ? \".range-knob-a\" : \".range-knob-b\");\n\n      if (e) {\n        e.focus();\n      }\n    }\n  };\n\n  t.prototype.render = function () {\n    var t, e;\n    var r = this;\n    var n = this,\n        a = n.min,\n        i = n.max,\n        o = n.step,\n        s = n.el,\n        l = n.handleKeyboard,\n        d = n.pressedKnob,\n        b = n.disabled,\n        g = n.pin,\n        p = n.ratioLower,\n        u = n.ratioUpper,\n        c = n.inheritedAttributes,\n        m = n.rangeId;\n    var f = getAriaLabel(s, m).labelText;\n\n    if (f === undefined || f === null) {\n      f = c[\"aria-label\"];\n    }\n\n    var k = getIonMode(this);\n    var v = p * 100 + \"%\";\n    var x = 100 - u * 100 + \"%\";\n    var w = document;\n    var y = w.dir === \"rtl\";\n    var z = y ? \"right\" : \"left\";\n    var A = y ? \"left\" : \"right\";\n\n    var C = function (t) {\n      var e;\n      return e = {}, e[z] = t[z], e;\n    };\n\n    var B = (t = {}, t[z] = v, t[A] = x, t);\n    var K = [];\n\n    if (this.snaps && this.ticks) {\n      for (var R = a; R <= i; R += o) {\n        var M = valueToRatio(R, a, i);\n        var S = {\n          ratio: M,\n          active: M >= p && M <= u\n        };\n        S[z] = M * 100 + \"%\";\n        K.push(S);\n      }\n    }\n\n    renderHiddenInput(true, s, this.name, JSON.stringify(this.getValue()), b);\n    return h(Host, {\n      onFocusin: this.onFocus,\n      onFocusout: this.onBlur,\n      id: m,\n      class: createColorClasses(this.color, (e = {}, e[k] = true, e[\"in-item\"] = hostContext(\"ion-item\", s), e[\"range-disabled\"] = b, e[\"range-pressed\"] = d !== undefined, e[\"range-has-pin\"] = g, e))\n    }, h(\"slot\", {\n      name: \"start\"\n    }), h(\"div\", {\n      class: \"range-slider\",\n      ref: function (t) {\n        return r.rangeSlider = t;\n      }\n    }, K.map(function (t) {\n      return h(\"div\", {\n        style: C(t),\n        role: \"presentation\",\n        class: {\n          \"range-tick\": true,\n          \"range-tick-active\": t.active\n        },\n        part: t.active ? \"tick-active\" : \"tick\"\n      });\n    }), h(\"div\", {\n      class: \"range-bar\",\n      role: \"presentation\",\n      part: \"bar\"\n    }), h(\"div\", {\n      class: \"range-bar range-bar-active\",\n      role: \"presentation\",\n      style: B,\n      part: \"bar-active\"\n    }), renderKnob(y, {\n      knob: \"A\",\n      pressed: d === \"A\",\n      value: this.valA,\n      ratio: this.ratioA,\n      pin: g,\n      disabled: b,\n      handleKeyboard: l,\n      min: a,\n      max: i,\n      labelText: f\n    }), this.dualKnobs && renderKnob(y, {\n      knob: \"B\",\n      pressed: d === \"B\",\n      value: this.valB,\n      ratio: this.ratioB,\n      pin: g,\n      disabled: b,\n      handleKeyboard: l,\n      min: a,\n      max: i,\n      labelText: f\n    })), h(\"slot\", {\n      name: \"end\"\n    }));\n  };\n\n  Object.defineProperty(t.prototype, \"el\", {\n    get: function () {\n      return getElement(this);\n    },\n    enumerable: false,\n    configurable: true\n  });\n  Object.defineProperty(t, \"watchers\", {\n    get: function () {\n      return {\n        debounce: [\"debounceChanged\"],\n        min: [\"minChanged\"],\n        max: [\"maxChanged\"],\n        disabled: [\"disabledChanged\"],\n        value: [\"valueChanged\"]\n      };\n    },\n    enumerable: false,\n    configurable: true\n  });\n  return t;\n}();\n\nvar renderKnob = function (t, e) {\n  var r = e.knob,\n      n = e.value,\n      a = e.ratio,\n      i = e.min,\n      o = e.max,\n      s = e.disabled,\n      l = e.pressed,\n      d = e.pin,\n      b = e.handleKeyboard,\n      g = e.labelText;\n  var p = t ? \"right\" : \"left\";\n\n  var u = function () {\n    var t = {};\n    t[p] = a * 100 + \"%\";\n    return t;\n  };\n\n  return h(\"div\", {\n    onKeyDown: function (t) {\n      var e = t.key;\n\n      if (e === \"ArrowLeft\" || e === \"ArrowDown\") {\n        b(r, false);\n        t.preventDefault();\n        t.stopPropagation();\n      } else if (e === \"ArrowRight\" || e === \"ArrowUp\") {\n        b(r, true);\n        t.preventDefault();\n        t.stopPropagation();\n      }\n    },\n    class: {\n      \"range-knob-handle\": true,\n      \"range-knob-a\": r === \"A\",\n      \"range-knob-b\": r === \"B\",\n      \"range-knob-pressed\": l,\n      \"range-knob-min\": n === i,\n      \"range-knob-max\": n === o\n    },\n    style: u(),\n    role: \"slider\",\n    tabindex: s ? -1 : 0,\n    \"aria-label\": g,\n    \"aria-valuemin\": i,\n    \"aria-valuemax\": o,\n    \"aria-disabled\": s ? \"true\" : null,\n    \"aria-valuenow\": n\n  }, d && h(\"div\", {\n    class: \"range-pin\",\n    role: \"presentation\",\n    part: \"pin\"\n  }, Math.round(n)), h(\"div\", {\n    class: \"range-knob\",\n    role: \"presentation\",\n    part: \"knob\"\n  }));\n};\n\nvar ratioToValue = function (t, e, r, n) {\n  var a = (r - e) * t;\n\n  if (n > 0) {\n    a = Math.round(a / n) * n + e;\n  }\n\n  return clamp(e, a, r);\n};\n\nvar valueToRatio = function (t, e, r) {\n  return clamp(0, (t - e) / (r - e), 1);\n};\n\nvar rangeIds = 0;\nRange.style = {\n  ios: rangeIosCss,\n  md: rangeMdCss\n};\nexport { Range as ion_range };","map":{"version":3,"sources":["/Users/adekanbidansteve/github/klasha/react-klasha/ionic-test/node_modules/@ionic/core/dist/esm-es5/ion-range.entry.js"],"names":["__awaiter","__generator","r","registerInstance","e","createEvent","h","H","Host","i","getElement","b","getIonMode","j","clamp","f","debounceEvent","inheritAttributes","d","getAriaLabel","renderHiddenInput","c","createColorClasses","hostContext","rangeIosCss","rangeMdCss","Range","t","ionChange","ionStyle","ionFocus","ionBlur","didLoad","noUpdate","hasFocus","inheritedAttributes","ratioA","ratioB","debounce","name","dualKnobs","min","max","pin","snaps","step","ticks","disabled","value","clampBounds","ensureValueInBounds","lower","upper","setupGesture","n","label","rangeSlider","gesture","sent","createGesture","el","gestureName","gesturePriority","threshold","onStart","onMove","onEnd","enable","handleKeyboard","updateValue","onBlur","emit","emitStyle","onFocus","prototype","debounceChanged","minChanged","updateRatio","maxChanged","disabledChanged","valueChanged","componentWillLoad","rangeId","hasAttribute","getAttribute","rangeIds","componentDidLoad","connectedCallback","disconnectedCallback","destroy","undefined","getValue","interactive","rect","getBoundingClientRect","currentX","left","width","document","dir","pressedKnob","Math","abs","setFocus","update","valueToRatio","ratioToValue","Object","defineProperty","get","enumerable","configurable","valA","valB","shadowRoot","querySelector","focus","render","a","o","s","l","g","p","ratioLower","u","ratioUpper","m","labelText","k","v","x","w","y","z","A","C","B","K","R","M","S","ratio","active","push","JSON","stringify","onFocusin","onFocusout","id","class","color","ref","map","style","role","part","renderKnob","knob","pressed","onKeyDown","key","preventDefault","stopPropagation","tabindex","round","ios","md","ion_range"],"mappings":"AAAA,SAAOA,SAAP,EAAiBC,WAAjB,QAAiC,OAAjC;AAAyC,SAAOC,CAAC,IAAIC,gBAAZ,EAA6BC,CAAC,IAAIC,WAAlC,EAA8CC,CAA9C,EAAgDC,CAAC,IAAIC,IAArD,EAA0DC,CAAC,IAAIC,UAA/D,QAA8E,qBAA9E;AAAoG,SAAOC,CAAC,IAAIC,UAAZ,QAA2B,4BAA3B;AAAwD,SAAOC,CAAC,IAAIC,KAAZ,EAAkBC,CAAC,IAAIC,aAAvB,EAAqCP,CAAC,IAAIQ,iBAA1C,EAA4DC,CAAC,IAAIC,YAAjE,EAA8Ef,CAAC,IAAIgB,iBAAnF,QAAyG,uBAAzG;AAAiI,SAA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,CAACV,CAAD,EAAGkH,CAAH,EAAKpH,CAAL,CAAZ;AAAoB,CAAnG;;AAAoG,IAAIuG,YAAY,GAAC,UAAS9E,CAAT,EAAWvB,CAAX,EAAaF,CAAb,EAAe;AAAC,SAAOY,KAAK,CAAC,CAAD,EAAG,CAACa,CAAC,GAACvB,CAAH,KAAOF,CAAC,GAACE,CAAT,CAAH,EAAe,CAAf,CAAZ;AAA8B,CAA/D;;AAAgE,IAAIiF,QAAQ,GAAC,CAAb;AAAe3D,KAAK,CAACgI,KAAN,GAAY;AAACY,EAAAA,GAAG,EAAC9I,WAAL;AAAiB+I,EAAAA,EAAE,EAAC9I;AAApB,CAAZ;AAA4C,SAAOC,KAAK,IAAI8I,SAAhB","sourcesContent":["import{__awaiter,__generator}from\"tslib\";import{r as registerInstance,e as createEvent,h,H as Host,i as getElement}from\"./index-7a8b7a1c.js\";import{b as getIonMode}from\"./ionic-global-63a97a32.js\";import{j as clamp,f as debounceEvent,i as inheritAttributes,d as getAriaLabel,e as renderHiddenInput}from\"./helpers-dd7e4b7b.js\";import{c as createColorClasses,h as hostContext}from\"./theme-ff3fc52f.js\";var rangeIosCss=\":host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0 3px 1px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.02);--knob-size:28px;--bar-height:2px;--bar-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){margin-left:0;margin-right:16px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}}::slotted([slot=end]){margin-left:16px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:20px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-tick{margin-left:-1px;border-radius:0;position:absolute;top:18px;width:2px;height:8px;background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);pointer-events:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-tick{margin-left:unset;-webkit-margin-start:-1px;margin-inline-start:-1px}}.range-tick-active{background:var(--bar-background-active)}.range-pin{-webkit-transform:translate3d(0,  28px,  0) scale(0.01);transform:translate3d(0,  28px,  0) scale(0.01);padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;display:inline-block;position:relative;top:-20px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:12px;text-align:center}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-pin{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.range-knob-pressed .range-pin{-webkit-transform:translate3d(0,  0,  0) scale(1);transform:translate3d(0,  0,  0) scale(1)}:host(.range-disabled){opacity:0.5}\";var rangeMdCss=':host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{left:0;top:calc((var(--height) - var(--knob-handle-size)) / 2);margin-left:calc(0px - var(--knob-handle-size) / 2);position:absolute;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-knob-handle{margin-left:unset;-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2)}}[dir=rtl] .range-knob-handle,:host-context([dir=rtl]) .range-knob-handle{left:unset}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar{border-radius:var(--bar-border-radius);left:0;top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset;right:unset;right:0}[dir=rtl] .range-bar,:host-context([dir=rtl]) .range-bar{left:unset}.range-knob{border-radius:var(--knob-border-radius);left:calc(50% - var(--knob-size) / 2);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob,:host-context([dir=rtl]) .range-knob{left:unset}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff);padding-left:14px;padding-right:14px;padding-top:8px;padding-bottom:8px;font-size:12px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px}}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){margin-left:0;margin-right:14px;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px}}::slotted([slot=end]){margin-left:14px;margin-right:0;margin-top:0;margin-bottom:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted([slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0}}:host(.range-has-pin){padding-top:28px}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0,  0,  0) scale(0.01);transform:translate3d(0,  0,  0) scale(0.01);display:inline-block;position:relative;min-width:28px;height:28px;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color);text-align:center}.range-pin::before{left:50%;top:3px;margin-left:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:\"\";z-index:-1}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.range-pin::before{margin-left:unset;-webkit-margin-start:-13px;margin-inline-start:-13px}}[dir=rtl] .range-pin::before,:host-context([dir=rtl]) .range-pin::before{left:unset}.range-knob-pressed .range-pin{-webkit-transform:translate3d(0,  -24px,  0) scale(1);transform:translate3d(0,  -24px,  0) scale(1)}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob{-webkit-transform:scale(1);transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}';var Range=function(){function t(t){var e=this;registerInstance(this,t);this.ionChange=createEvent(this,\"ionChange\",7);this.ionStyle=createEvent(this,\"ionStyle\",7);this.ionFocus=createEvent(this,\"ionFocus\",7);this.ionBlur=createEvent(this,\"ionBlur\",7);this.didLoad=false;this.noUpdate=false;this.hasFocus=false;this.inheritedAttributes={};this.ratioA=0;this.ratioB=0;this.debounce=0;this.name=\"\";this.dualKnobs=false;this.min=0;this.max=100;this.pin=false;this.snaps=false;this.step=1;this.ticks=true;this.disabled=false;this.value=0;this.clampBounds=function(t){return clamp(e.min,t,e.max)};this.ensureValueInBounds=function(t){if(e.dualKnobs){return{lower:e.clampBounds(t.lower),upper:e.clampBounds(t.upper)}}else{return e.clampBounds(t)}};this.setupGesture=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;var r=this;return __generator(this,(function(n){switch(n.label){case 0:t=this.rangeSlider;if(!t)return[3,2];e=this;return[4,import(\"./index-f49d994d.js\")];case 1:e.gesture=n.sent().createGesture({el:t,gestureName:\"range\",gesturePriority:100,threshold:0,onStart:function(t){return r.onStart(t)},onMove:function(t){return r.onMove(t)},onEnd:function(t){return r.onEnd(t)}});this.gesture.enable(!this.disabled);n.label=2;case 2:return[2]}}))}))};this.handleKeyboard=function(t,r){var n=e.step;n=n>0?n:1;n=n/(e.max-e.min);if(!r){n*=-1}if(t===\"A\"){e.ratioA=clamp(0,e.ratioA+n,1)}else{e.ratioB=clamp(0,e.ratioB+n,1)}e.updateValue()};this.onBlur=function(){if(e.hasFocus){e.hasFocus=false;e.ionBlur.emit();e.emitStyle()}};this.onFocus=function(){if(!e.hasFocus){e.hasFocus=true;e.ionFocus.emit();e.emitStyle()}}}t.prototype.debounceChanged=function(){this.ionChange=debounceEvent(this.ionChange,this.debounce)};t.prototype.minChanged=function(){if(!this.noUpdate){this.updateRatio()}};t.prototype.maxChanged=function(){if(!this.noUpdate){this.updateRatio()}};t.prototype.disabledChanged=function(){if(this.gesture){this.gesture.enable(!this.disabled)}this.emitStyle()};t.prototype.valueChanged=function(t){if(!this.noUpdate){this.updateRatio()}t=this.ensureValueInBounds(t);this.ionChange.emit({value:t})};t.prototype.componentWillLoad=function(){this.rangeId=this.el.hasAttribute(\"id\")?this.el.getAttribute(\"id\"):\"ion-r-\"+rangeIds++;this.inheritedAttributes=inheritAttributes(this.el,[\"aria-label\"])};t.prototype.componentDidLoad=function(){this.setupGesture();this.didLoad=true};t.prototype.connectedCallback=function(){this.updateRatio();this.debounceChanged();this.disabledChanged();if(this.didLoad){this.setupGesture()}};t.prototype.disconnectedCallback=function(){if(this.gesture){this.gesture.destroy();this.gesture=undefined}};t.prototype.getValue=function(){var t=this.value||0;if(this.dualKnobs){if(typeof t===\"object\"){return t}return{lower:0,upper:t}}else{if(typeof t===\"object\"){return t.upper}return t}};t.prototype.emitStyle=function(){this.ionStyle.emit({interactive:true,\"interactive-disabled\":this.disabled})};t.prototype.onStart=function(t){var e=this.rect=this.rangeSlider.getBoundingClientRect();var r=t.currentX;var n=clamp(0,(r-e.left)/e.width,1);if(document.dir===\"rtl\"){n=1-n}this.pressedKnob=!this.dualKnobs||Math.abs(this.ratioA-n)<Math.abs(this.ratioB-n)?\"A\":\"B\";this.setFocus(this.pressedKnob);this.update(r)};t.prototype.onMove=function(t){this.update(t.currentX)};t.prototype.onEnd=function(t){this.update(t.currentX);this.pressedKnob=undefined};t.prototype.update=function(t){var e=this.rect;var r=clamp(0,(t-e.left)/e.width,1);if(document.dir===\"rtl\"){r=1-r}if(this.snaps){r=valueToRatio(ratioToValue(r,this.min,this.max,this.step),this.min,this.max)}if(this.pressedKnob===\"A\"){this.ratioA=r}else{this.ratioB=r}this.updateValue()};Object.defineProperty(t.prototype,\"valA\",{get:function(){return ratioToValue(this.ratioA,this.min,this.max,this.step)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,\"valB\",{get:function(){return ratioToValue(this.ratioB,this.min,this.max,this.step)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,\"ratioLower\",{get:function(){if(this.dualKnobs){return Math.min(this.ratioA,this.ratioB)}return 0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,\"ratioUpper\",{get:function(){if(this.dualKnobs){return Math.max(this.ratioA,this.ratioB)}return this.ratioA},enumerable:false,configurable:true});t.prototype.updateRatio=function(){var t=this.getValue();var e=this,r=e.min,n=e.max;if(this.dualKnobs){this.ratioA=valueToRatio(t.lower,r,n);this.ratioB=valueToRatio(t.upper,r,n)}else{this.ratioA=valueToRatio(t,r,n)}};t.prototype.updateValue=function(){this.noUpdate=true;var t=this,e=t.valA,r=t.valB;this.value=!this.dualKnobs?e:{lower:Math.min(e,r),upper:Math.max(e,r)};this.noUpdate=false};t.prototype.setFocus=function(t){if(this.el.shadowRoot){var e=this.el.shadowRoot.querySelector(t===\"A\"?\".range-knob-a\":\".range-knob-b\");if(e){e.focus()}}};t.prototype.render=function(){var t,e;var r=this;var n=this,a=n.min,i=n.max,o=n.step,s=n.el,l=n.handleKeyboard,d=n.pressedKnob,b=n.disabled,g=n.pin,p=n.ratioLower,u=n.ratioUpper,c=n.inheritedAttributes,m=n.rangeId;var f=getAriaLabel(s,m).labelText;if(f===undefined||f===null){f=c[\"aria-label\"]}var k=getIonMode(this);var v=p*100+\"%\";var x=100-u*100+\"%\";var w=document;var y=w.dir===\"rtl\";var z=y?\"right\":\"left\";var A=y?\"left\":\"right\";var C=function(t){var e;return e={},e[z]=t[z],e};var B=(t={},t[z]=v,t[A]=x,t);var K=[];if(this.snaps&&this.ticks){for(var R=a;R<=i;R+=o){var M=valueToRatio(R,a,i);var S={ratio:M,active:M>=p&&M<=u};S[z]=M*100+\"%\";K.push(S)}}renderHiddenInput(true,s,this.name,JSON.stringify(this.getValue()),b);return h(Host,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:m,class:createColorClasses(this.color,(e={},e[k]=true,e[\"in-item\"]=hostContext(\"ion-item\",s),e[\"range-disabled\"]=b,e[\"range-pressed\"]=d!==undefined,e[\"range-has-pin\"]=g,e))},h(\"slot\",{name:\"start\"}),h(\"div\",{class:\"range-slider\",ref:function(t){return r.rangeSlider=t}},K.map((function(t){return h(\"div\",{style:C(t),role:\"presentation\",class:{\"range-tick\":true,\"range-tick-active\":t.active},part:t.active?\"tick-active\":\"tick\"})})),h(\"div\",{class:\"range-bar\",role:\"presentation\",part:\"bar\"}),h(\"div\",{class:\"range-bar range-bar-active\",role:\"presentation\",style:B,part:\"bar-active\"}),renderKnob(y,{knob:\"A\",pressed:d===\"A\",value:this.valA,ratio:this.ratioA,pin:g,disabled:b,handleKeyboard:l,min:a,max:i,labelText:f}),this.dualKnobs&&renderKnob(y,{knob:\"B\",pressed:d===\"B\",value:this.valB,ratio:this.ratioB,pin:g,disabled:b,handleKeyboard:l,min:a,max:i,labelText:f})),h(\"slot\",{name:\"end\"}))};Object.defineProperty(t.prototype,\"el\",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,\"watchers\",{get:function(){return{debounce:[\"debounceChanged\"],min:[\"minChanged\"],max:[\"maxChanged\"],disabled:[\"disabledChanged\"],value:[\"valueChanged\"]}},enumerable:false,configurable:true});return t}();var renderKnob=function(t,e){var r=e.knob,n=e.value,a=e.ratio,i=e.min,o=e.max,s=e.disabled,l=e.pressed,d=e.pin,b=e.handleKeyboard,g=e.labelText;var p=t?\"right\":\"left\";var u=function(){var t={};t[p]=a*100+\"%\";return t};return h(\"div\",{onKeyDown:function(t){var e=t.key;if(e===\"ArrowLeft\"||e===\"ArrowDown\"){b(r,false);t.preventDefault();t.stopPropagation()}else if(e===\"ArrowRight\"||e===\"ArrowUp\"){b(r,true);t.preventDefault();t.stopPropagation()}},class:{\"range-knob-handle\":true,\"range-knob-a\":r===\"A\",\"range-knob-b\":r===\"B\",\"range-knob-pressed\":l,\"range-knob-min\":n===i,\"range-knob-max\":n===o},style:u(),role:\"slider\",tabindex:s?-1:0,\"aria-label\":g,\"aria-valuemin\":i,\"aria-valuemax\":o,\"aria-disabled\":s?\"true\":null,\"aria-valuenow\":n},d&&h(\"div\",{class:\"range-pin\",role:\"presentation\",part:\"pin\"},Math.round(n)),h(\"div\",{class:\"range-knob\",role:\"presentation\",part:\"knob\"}))};var ratioToValue=function(t,e,r,n){var a=(r-e)*t;if(n>0){a=Math.round(a/n)*n+e}return clamp(e,a,r)};var valueToRatio=function(t,e,r){return clamp(0,(t-e)/(r-e),1)};var rangeIds=0;Range.style={ios:rangeIosCss,md:rangeMdCss};export{Range as ion_range};"]},"metadata":{},"sourceType":"module"}