import { defineComponent as b, ref as i, provide as h, onMounted as u, getCurrentInstance as f, toRaw as g, onBeforeUnmount as y, openBlock as C, createElementBlock as S, watch as v } from "vue";
import { ChatPanel as x } from "@bryntum/taskboard";
import { WrapperHelper as r } from "../helper/WrapperHelper.js";
const A = /* @__PURE__ */ b({
  __name: "BryntumChatPanel",
  props: {
    adopt: {},
    align: {},
    alignSelf: {},
    anchor: {},
    animateTyping: {},
    appendTo: {},
    ariaDescription: {},
    ariaLabel: {},
    autoUpdateRecord: {},
    avatar: {},
    bbar: {},
    bodyCls: {},
    border: {},
    bubbleEvents: {},
    bubbleTools: {},
    callOnFunctions: {},
    catchEventHandlerExceptions: {},
    centered: {},
    cls: {},
    collapsed: {},
    collapsible: {},
    color: {},
    column: {},
    config: {},
    constrainTo: {},
    content: {},
    contentElementCls: {},
    dataField: {},
    dataset: {},
    defaultBindProperty: {},
    defaultFocus: { type: [Function, String] },
    defaults: {},
    detectCSSCompatibilityIssues: {},
    disabled: {},
    dock: {},
    draggable: {},
    drawer: {},
    elementAttributes: {},
    examplePrompts: {},
    extraData: {},
    flex: {},
    floating: {},
    footer: {},
    header: {},
    height: {},
    hidden: {},
    hideAnimation: {},
    hideWhenEmpty: {},
    html: { type: [String, Function, Array] },
    htmlCls: {},
    icon: {},
    id: {},
    ignoreParentReadOnly: {},
    inputFieldAlign: {},
    insertBefore: {},
    insertFirst: {},
    intro: {},
    itemCls: {},
    items: {},
    keyMap: {},
    labelPosition: {},
    labelWidth: {},
    layout: {},
    layoutStyle: {},
    lazyItems: {},
    listeners: {},
    localeClass: {},
    localizable: {},
    localizableProperties: {},
    margin: {},
    maskDefaults: {},
    masked: {},
    maxHeight: {},
    maximizeOnMobile: {},
    maxWidth: {},
    messages: {},
    messageTriggersPlacement: {},
    minHeight: {},
    minWidth: {},
    monitorResize: {},
    namedItems: {},
    positioned: {},
    preventTooltipOnTouch: {},
    readOnly: {},
    record: {},
    relayStoreEvents: {},
    rendition: {},
    ripple: {},
    role: {},
    rootElement: {},
    rtl: {},
    scrollable: {},
    scrollAction: {},
    showAnimation: {},
    showTimestamp: {},
    showTooltipWhenDisabled: {},
    span: {},
    stateful: {},
    statefulEvents: {},
    stateId: {},
    stateProvider: {},
    strictRecordMapping: {},
    strips: {},
    tab: {},
    tabBarItems: {},
    tag: {},
    tbar: {},
    textAlign: {},
    textContent: {},
    title: {},
    tools: {},
    tooltip: {},
    trapFocus: {},
    type: {},
    typeInterval: {},
    ui: {},
    weight: {},
    width: {},
    x: {},
    y: {}
  },
  emits: ["beforeDestroy", "beforeHide", "beforeSetRecord", "beforeShow", "beforeStateApply", "beforeStateSave", "bubbleToolClick", "catchAll", "collapse", "destroy", "dirtyStateChange", "elementCreated", "expand", "focusIn", "focusOut", "hide", "localMessage", "paint", "promptHistoryChange", "readOnly", "recompose", "resize", "show", "toolClick"],
  setup(w, { expose: s, emit: c }) {
    const d = c, a = {
      instanceClass: x,
      instanceName: "ChatPanel",
      configNames: [
        "adopt",
        "align",
        "anchor",
        "ariaDescription",
        "ariaLabel",
        "autoUpdateRecord",
        "bbar",
        "bodyCls",
        "border",
        "bubbleEvents",
        "centered",
        "collapsible",
        "color",
        "config",
        "constrainTo",
        "contentElementCls",
        "dataField",
        "defaultBindProperty",
        "defaultFocus",
        "defaults",
        "detectCSSCompatibilityIssues",
        "dock",
        "draggable",
        "drawer",
        "elementAttributes",
        "floating",
        "footer",
        "header",
        "hideAnimation",
        "hideWhenEmpty",
        "htmlCls",
        "icon",
        "ignoreParentReadOnly",
        "itemCls",
        "lazyItems",
        "listeners",
        "localeClass",
        "localizable",
        "localizableProperties",
        "maskDefaults",
        "masked",
        "messageTriggersPlacement",
        "monitorResize",
        "namedItems",
        "positioned",
        "preventTooltipOnTouch",
        "relayStoreEvents",
        "ripple",
        "role",
        "rootElement",
        "scrollAction",
        "showAnimation",
        "showTooltipWhenDisabled",
        "stateful",
        "statefulEvents",
        "stateId",
        "stateProvider",
        "strips",
        "tab",
        "tabBarItems",
        "tag",
        "tbar",
        "textAlign",
        "textContent",
        "trapFocus",
        "type",
        "ui",
        "weight"
      ],
      propertyConfigNames: [
        "alignSelf",
        "animateTyping",
        "appendTo",
        "avatar",
        "bubbleTools",
        "callOnFunctions",
        "catchEventHandlerExceptions",
        "cls",
        "collapsed",
        "column",
        "content",
        "dataset",
        "disabled",
        "examplePrompts",
        "extraData",
        "flex",
        "height",
        "hidden",
        "html",
        "id",
        "inputFieldAlign",
        "insertBefore",
        "insertFirst",
        "intro",
        "items",
        "keyMap",
        "labelPosition",
        "labelWidth",
        "layout",
        "layoutStyle",
        "margin",
        "maxHeight",
        "maximizeOnMobile",
        "maxWidth",
        "messages",
        "minHeight",
        "minWidth",
        "onBeforeDestroy",
        "onBeforeHide",
        "onBeforeSetRecord",
        "onBeforeShow",
        "onBeforeStateApply",
        "onBeforeStateSave",
        "onBubbleToolClick",
        "onCatchAll",
        "onCollapse",
        "onDestroy",
        "onDirtyStateChange",
        "onElementCreated",
        "onExpand",
        "onFocusIn",
        "onFocusOut",
        "onHide",
        "onLocalMessage",
        "onPaint",
        "onPromptHistoryChange",
        "onReadOnly",
        "onRecompose",
        "onResize",
        "onShow",
        "onToolClick",
        "readOnly",
        "record",
        "rendition",
        "rtl",
        "scrollable",
        "showTimestamp",
        "span",
        "strictRecordMapping",
        "title",
        "tools",
        "tooltip",
        "typeInterval",
        "width",
        "x",
        "y"
      ],
      propertyNames: [
        "parent",
        "state",
        "values"
      ],
      eventNames: [
        "beforeDestroy",
        "beforeHide",
        "beforeSetRecord",
        "beforeShow",
        "beforeStateApply",
        "beforeStateSave",
        "bubbleToolClick",
        "catchAll",
        "collapse",
        "destroy",
        "dirtyStateChange",
        "elementCreated",
        "expand",
        "focusIn",
        "focusOut",
        "hide",
        "localMessage",
        "paint",
        "promptHistoryChange",
        "readOnly",
        "recompose",
        "resize",
        "show",
        "toolClick"
      ]
    }, e = {}, t = i(), n = i(/* @__PURE__ */ new Map());
    return h("teleports", n), u(() => {
      const o = f();
      e.value = r.createWidget({
        me: o,
        widgetData: a,
        emit: d,
        element: t.value,
        toRaw: g
      });
      const l = (p, m) => v(() => o.props[p], m);
      r.watchProps(e.value, a, l);
    }), y(() => {
      e.value?.destroy?.();
    }), s({
      instance: e,
      refElement: t,
      teleports: n
    }), (o, l) => (C(), S("div", {
      ref_key: "refElement",
      ref: t
    }, null, 512));
  }
});
export {
  A as _
};
//# sourceMappingURL=CyMYmxHu.js.map
