import { defineComponent as u, ref as l, provide as h, onMounted as g, getCurrentInstance as f, toRaw as b, onBeforeUnmount as y, openBlock as C, createElementBlock as S, watch as x } from "vue";
import { ButtonGroup as w } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const O = /* @__PURE__ */ u({
  __name: "BryntumButtonGroup",
  props: {
    adopt: {},
    align: {},
    alignSelf: {},
    anchor: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    autoUpdateRecord: {},
    border: {},
    bubbleEvents: {},
    callOnFunctions: {},
    catchEventHandlerExceptions: {},
    centered: {},
    cls: {},
    color: {},
    column: {},
    config: {},
    constrainTo: {},
    content: {},
    contentElementCls: {},
    dataField: {},
    dataset: {},
    defaultBindProperty: {},
    defaultFocus: { type: [Function, String] },
    defaults: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    elementAttributes: {},
    extraData: {},
    flex: {},
    floating: {},
    height: {},
    hidden: {},
    hideAnimation: {},
    hideWhenEmpty: {},
    html: { type: [String, Function, Array] },
    htmlCls: {},
    id: {},
    ignoreParentReadOnly: {},
    inputFieldAlign: {},
    insertBefore: {},
    insertFirst: {},
    itemCls: {},
    items: {},
    keyMap: {},
    labelPosition: {},
    labelWidth: {},
    layout: {},
    layoutStyle: {},
    lazyItems: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    minHeight: {},
    minWidth: {},
    monitorResize: {},
    namedItems: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    record: {},
    relayStoreEvents: {},
    rendition: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollable: {},
    scrollAction: {},
    showAnimation: {},
    showTooltipWhenDisabled: {},
    span: {},
    strictRecordMapping: {},
    tab: {},
    tabBarItems: {},
    tag: {},
    textAlign: {},
    textContent: {},
    title: {},
    toggleable: {},
    toggleGroup: {},
    tooltip: {},
    type: {},
    ui: {},
    useGap: {},
    weight: {},
    width: {},
    x: {},
    y: {}
  },
  emits: ["action", "beforeDestroy", "beforeHide", "beforeSetRecord", "beforeShow", "catchAll", "click", "destroy", "dirtyStateChange", "elementCreated", "focusIn", "focusOut", "hide", "paint", "readOnly", "recompose", "resize", "show", "toggle"],
  setup(E, { expose: s, emit: c }) {
    const d = c, n = {
      instanceClass: w,
      instanceName: "ButtonGroup",
      configNames: [
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "autoUpdateRecord",
        "border",
        "bubbleEvents",
        "centered",
        "color",
        "config",
        "constrainTo",
        "contentElementCls",
        "dataField",
        "defaultBindProperty",
        "defaultFocus",
        "defaults",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "elementAttributes",
        "floating",
        "hideAnimation",
        "hideWhenEmpty",
        "htmlCls",
        "ignoreParentReadOnly",
        "itemCls",
        "lazyItems",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "monitorResize",
        "namedItems",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "showAnimation",
        "showTooltipWhenDisabled",
        "tab",
        "tabBarItems",
        "tag",
        "textAlign",
        "textContent",
        "title",
        "toggleGroup",
        "type",
        "ui",
        "useGap",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "appendTo",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "cls",
        "column",
        "content",
        "dataset",
        "disabled",
        "extraData",
        "flex",
        "height",
        "hidden",
        "html",
        "id",
        "inputFieldAlign",
        "insertBefore",
        "insertFirst",
        "items",
        "keyMap",
        "labelPosition",
        "labelWidth",
        "layout",
        "layoutStyle",
        "margin",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "minHeight",
        "minWidth",
        "onAction",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeSetRecord",
        "onBeforeShow",
        "onCatchAll",
        "onClick",
        "onDestroy",
        "onDirtyStateChange",
        "onElementCreated",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onPaint",
        "onReadOnly",
        "onRecompose",
        "onResize",
        "onShow",
        "onToggle",
        "readOnly",
        "record",
        "rendition",
        "rtl",
        "scrollable",
        "span",
        "strictRecordMapping",
        "toggleable",
        "tooltip",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "parent",
        "values"
      ],
      eventNames: [
        "action",
        "beforeDestroy",
        "beforeHide",
        "beforeSetRecord",
        "beforeShow",
        "catchAll",
        "click",
        "destroy",
        "dirtyStateChange",
        "elementCreated",
        "focusIn",
        "focusOut",
        "hide",
        "paint",
        "readOnly",
        "recompose",
        "resize",
        "show",
        "toggle"
      ]
    }, e = {}, t = l(), i = l(/* @__PURE__ */ new Map());
    return h("teleports", i), g(() => {
      const o = f();
      e.value = r.createWidget({
        me: o,
        widgetData: n,
        emit: d,
        element: t.value,
        toRaw: b
      });
      const a = (p, m) => x(() => o.props[p], m);
      r.watchProps(e.value, n, a);
    }), y(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: i
    }), (o, a) => (C(), S("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  O as _
};
//# sourceMappingURL=-9h_bcm7.js.map
