import { gN as p, H as t, fb as h, ad as l, I as c, ae as n, af as r, a4 as d, am as i, c0 as y, ag as w, ah as C, ai as b, dX as f, bX as g, w as P, hD as x, B as S } from "./56c67d3b.js";
import { useContext as s } from "react";
import { ShapeTriContainer as v } from "./592c4eb6.js";
import "react-dom";
const V = function() {
  const o = {
    disabled: g,
    icon: P(x, "")
  };
  return new p(o, (e, a) => /* @__PURE__ */ t(h.Provider, {
    value: e.disabled,
    children: /* @__PURE__ */ t(v, {
      ...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), w(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, u = e.value.scrollbars;
      return {
        ...e,
        value: {
          container: {
            showHeader: !0,
            body: {
              0: {
                view: a
              }
            },
            showBody: !0,
            showFooter: !1,
            autoHeight: m,
            scrollbars: u
          }
        }
      };
    }
  }
  return e;
}
class N extends V {
  constructor(e) {
    super(B(e));
  }
}
const I = C(N, [b]);
function F(o, e) {
  return {
    container: {
      header: f([{
        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,
  I as ShapeComp,
  F as defaultContainerData
};
