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