import { F as t, bW as u, a6 as l, G as c, a7 as n, a8 as r, Y as d, af as i, bJ as y, a9 as h, aa as w, ab as C, bX as b, bI as f, w as P, ie as x, B as S } from "./603b75d9.js";
import { useContext as s } from "react";
import { ShapeTriContainer as g } from "./e8fea80f.js";
import { ContainerCompBuilder as v } from "./23a8bd12.js";
import "react-dom";
import "./48fb13b8.js";
import "./046c0def.js";
const V = function() {
  const o = {
    disabled: f,
    icon: P(x, "")
  };
  return new v(o, (e, a) => /* @__PURE__ */ t(u.Provider, {
    value: e.disabled,
    children: /* @__PURE__ */ t(g, {
      ...e
    })
  })).setPropertyViewFn((e) => /* @__PURE__ */ l(c, {
    children: [/* @__PURE__ */ t(n, {
      name: r.basic,
      children: e.icon.propertyView({
        label: d("iconComp.icon"),
        IconType: "All"
      })
    }), (s(i).editorModeStatus === "logic" || s(i).editorModeStatus === "both") && /* @__PURE__ */ l(n, {
      name: r.interaction,
      children: [y(e), h(e)]
    }), (s(i).editorModeStatus === "layout" || s(i).editorModeStatus === "both") && /* @__PURE__ */ l(c, {
      children: [/* @__PURE__ */ t(n, {
        name: r.layout,
        children: e.container.getPropertyView()
      }), /* @__PURE__ */ t(n, {
        name: r.style,
        children: e.container.stylePropertyView()
      }), e.container.children.showBody.getView() && /* @__PURE__ */ t(n, {
        name: "Body Style",
        children: e.container.bodyStylePropertyView()
      })]
    })]
  })).build();
}();
function B(o) {
  let e = S(o);
  if (e.value) {
    const a = e.value.container;
    if (a && (a.hasOwnProperty("layout") || a.hasOwnProperty("items"))) {
      const m = e.value.autoHeight, p = e.value.scrollbars;
      return {
        ...e,
        value: {
          container: {
            showHeader: !0,
            body: {
              0: {
                view: a
              }
            },
            showBody: !0,
            showFooter: !1,
            autoHeight: m,
            scrollbars: p
          }
        }
      };
    }
  }
  return e;
}
class T extends V {
  constructor(e) {
    super(B(e));
  }
}
const j = w(T, [C]);
function E(o, e) {
  return {
    container: {
      header: b([{
        item: {
          compType: "text",
          name: e.genItemName("containerTitle"),
          comp: {
            text: "### " + d("container.title")
          }
        },
        layoutItem: {
          i: "",
          h: 5,
          w: 24,
          x: 0,
          y: 0
        }
      }])
    }
  };
}
export {
  V as ContainerBaseComp,
  j as ShapeComp,
  E as defaultContainerData
};
