import { defineComponent as h, ref as l, provide as u, onMounted as b, getCurrentInstance as g, toRaw as f, onBeforeUnmount as y, openBlock as w, createElementBlock as x, watch as C } from "vue";
import { Slider as v } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const D = /* @__PURE__ */ h({
  __name: "BryntumSlider",
  props: {
    adopt: {},
    align: {},
    alignSelf: {},
    anchor: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    bubbleEvents: {},
    callOnFunctions: {},
    catchEventHandlerExceptions: {},
    centered: {},
    cls: {},
    color: {},
    column: {},
    config: {},
    constrainTo: {},
    content: {},
    contentElementCls: {},
    dataField: {},
    dataset: {},
    defaultBindProperty: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    elementAttributes: {},
    extraData: {},
    flex: {},
    floating: {},
    height: {},
    hidden: {},
    hideAnimation: {},
    html: { type: [String, Function, Array] },
    htmlCls: {},
    id: {},
    ignoreParentReadOnly: {},
    insertBefore: {},
    insertFirst: {},
    keyMap: {},
    label: {},
    labelCls: {},
    labelPosition: {},
    labelWidth: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    max: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    min: {},
    minHeight: {},
    minWidth: {},
    monitorResize: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    relayStoreEvents: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollable: {},
    scrollAction: {},
    showAnimation: {},
    showSteps: {},
    showTooltip: {},
    showTooltipWhenDisabled: {},
    showValue: {},
    span: {},
    step: {},
    tab: {},
    tag: {},
    text: {},
    textAlign: {},
    thumbIcon: {},
    title: {},
    tooltip: {},
    triggerChangeOnInput: {},
    type: {},
    ui: {},
    unit: {},
    value: {},
    valueLabelWidth: {},
    weight: {},
    width: {},
    x: {},
    y: {}
  },
  emits: ["beforeDestroy", "beforeHide", "beforeShow", "catchAll", "change", "destroy", "elementCreated", "focusIn", "focusOut", "hide", "input", "paint", "readOnly", "recompose", "resize", "show"],
  setup(O, { expose: s, emit: c }) {
    const d = c, n = {
      instanceClass: v,
      instanceName: "Slider",
      configNames: [
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "bubbleEvents",
        "centered",
        "color",
        "config",
        "constrainTo",
        "contentElementCls",
        "dataField",
        "defaultBindProperty",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "elementAttributes",
        "floating",
        "hideAnimation",
        "htmlCls",
        "ignoreParentReadOnly",
        "labelCls",
        "labelPosition",
        "labelWidth",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "monitorResize",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "showAnimation",
        "showSteps",
        "showTooltip",
        "showTooltipWhenDisabled",
        "showValue",
        "tab",
        "tag",
        "textAlign",
        "title",
        "type",
        "ui",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "appendTo",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "cls",
        "column",
        "content",
        "dataset",
        "disabled",
        "extraData",
        "flex",
        "height",
        "hidden",
        "html",
        "id",
        "insertBefore",
        "insertFirst",
        "keyMap",
        "label",
        "margin",
        "max",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "min",
        "minHeight",
        "minWidth",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeShow",
        "onCatchAll",
        "onChange",
        "onDestroy",
        "onElementCreated",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onInput",
        "onPaint",
        "onReadOnly",
        "onRecompose",
        "onResize",
        "onShow",
        "readOnly",
        "rtl",
        "scrollable",
        "span",
        "step",
        "text",
        "thumbIcon",
        "tooltip",
        "triggerChangeOnInput",
        "unit",
        "value",
        "valueLabelWidth",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "parent"
      ],
      eventNames: [
        "beforeDestroy",
        "beforeHide",
        "beforeShow",
        "catchAll",
        "change",
        "destroy",
        "elementCreated",
        "focusIn",
        "focusOut",
        "hide",
        "input",
        "paint",
        "readOnly",
        "recompose",
        "resize",
        "show"
      ]
    }, e = {}, t = l(), i = l(/* @__PURE__ */ new Map());
    return u("teleports", i), b(() => {
      const o = g();
      e.value = r.createWidget({
        me: o,
        widgetData: n,
        emit: d,
        element: t.value,
        toRaw: f
      });
      const a = (p, m) => C(() => o.props[p], m);
      r.watchProps(e.value, n, a);
    }), y(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: i
    }), (o, a) => (w(), x("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  D as _
};
//# sourceMappingURL=C_hTeSLo.js.map
