import { ac as e, cZ as t, cw as r, cG as o, c_ as i, w as a, c$ as s, d0 as n, d1 as l, d2 as m, d3 as p, d4 as c, a8 as d, d5 as u, cb as y, d6 as h, d7 as j, a0 as w, B as b } from "./index-f927b013.js";
import { useContext as f } from "react";
import { lz as g, lI as x, lJ as v } from "./ant-design-icons-6bfdc7d5.js";
import { TriContainer as V } from "./triFloatTextContainer-336d0be7.js";
import "./axios-04f95181.js";
import "./redux-devtools-8dd21e4f.js";
import "./alasql-f60045ee.js";
import "./antd-2abdded3.js";
import "react-dom";
import "./dayjs-2035e031.js";
import "./lodash-b5661970.js";
import "./fontawesome-3904a214.js";
import "./dnd-kit-8227a2db.js";
import "./moment-059406e8.js";
import "./styled-components-7cfa37e6.js";
import "./numbro-47982265.js";
import "./papaparse-07642d76.js";
import "./uuid-bd83cae2.js";
import "./supabase-b2e314d0.js";
import "./fetch-648a91f6.js";
import "./react-draggable-ed505bfc.js";
import "./remark-gfm-18306abe.js";
import "./buffer-d3713d77.js";
import "./rehype-raw-6ebcba88.js";
import "./parse5-f837f753.js";
import "./rehype-sanitize-953d0761.js";
import "./simplebar-react-2133d981.js";
import "./react-best-gradient-color-picker-92c01739.js";
import "./ua-parser-js-c952c07b.js";
import "./clsx-469c2c43.js";
import "./loglevel-b4003767.js";
import "./file-saver-55285fc1.js";
import "./codemirror-8412b963.js";
import "./really-relaxed-json-056be70b.js";
import "./immer-c0428a8d.js";
import "./hotkeys-js-699906bc.js";
import "./cnchar-e1339167.js";
import "./react-documents-041601c7.js";
import "./react-sortable-hoc-4fbe0c32.js";
import "./sql-formatter-577b4ab0.js";
import "./rc-trigger-3f038851.js";
import "./react-json-view-5330ce92.js";
import "./qrcode-react-d377d762.js";
const S = [{ label: "Markdown", value: "markdown" }, { label: e("text"), value: "text" }], P = [{ label: "None", value: "none" }, { label: "Right", value: "right" }, { label: "Left", value: "left" }], k = function() {
  const y2 = { disabled: t, text: r("text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat faucibus eleifend. Pellentesque eleifend, risus vel sagittis mattis, mauris ipsum tempor sapien, eu lobortis lacus libero a dui. Cras erat felis, rhoncus vestibulum consectetur et, ultrices ut purus. Sed a tortor orci. Vestibulum nec eleifend ante."), type: o(S, "markdown"), float: o(P, "left"), horizontalAlignment: i(), width: a(w, "40"), style: s(n), animationStyle: s(l) };
  return new m(y2, (e2, t2) => g(V, { ...e2 })).setPropertyViewFn((t2) => x(v, { children: [x(p, { name: c.basic, children: [t2.type.propertyView({ label: e("value"), tooltip: e("textShow.valueTooltip"), radioButton: true }), t2.text.propertyView({})] }), ["logic", "both"].includes(f(d).editorModeStatus) && g(p, { name: c.interaction, children: u(t2) }), ["layout", "both"].includes(f(d).editorModeStatus) && x(v, { children: [x(p, { name: c.layout, children: [t2.container.getPropertyView(), t2.width.propertyView({ label: e("container.flowWidth") }), t2.float.propertyView({ label: e("container.floatType"), radioButton: true }), t2.horizontalAlignment.propertyView({ label: e("textShow.horizontalAlignment"), radioButton: true })] }), g(p, { name: "Floating Text Style", children: t2.style.getPropertyView() }), g(p, { name: c.animationStyle, hasTooltip: true, children: t2.animationStyle.getPropertyView() }), g(p, { name: "Container Style", children: t2.container.stylePropertyView() }), t2.container.children.showHeader.getView() && g(p, { name: "Header Style", children: t2.container.headerStylePropertyView() }), t2.container.children.showBody.getView() && g(p, { name: "Body Style", children: t2.container.bodyStylePropertyView() }), t2.container.children.showFooter.getView() && g(p, { name: "Footer Style", children: t2.container.footerStylePropertyView() })] })] })).build();
}();
const B = y(class extends k {
  constructor(e2) {
    super(function(e3) {
      let t2 = b(e3);
      if (t2.value) {
        const e4 = t2.value.container;
        if (e4 && (e4.hasOwnProperty("layout") || e4.hasOwnProperty("items"))) {
          const r2 = t2.value.autoHeight;
          return { ...t2, value: { container: { showHeader: false, body: { 0: { view: e4 } }, showBody: true, showFooter: false, autoHeight: r2 } } };
        }
      }
      return t2;
    }(e2));
  }
}, [h]);
function F(t2, r2) {
  return { container: { header: j([{ item: { compType: "text", name: r2.genItemName("containerTitle"), comp: { text: "### " + e("container.title") } }, layoutItem: { i: "", h: 5, w: 24, x: 0, y: 0 } }]) } };
}
export {
  k as ContainerBaseComp,
  B as ContainerComp,
  F as defaultContainerData
};
