import { BuilderConfiguration as r } from "../config/builder.config.js";
import { useAppSelector as a } from "./use-app-selector.js";
import { getActiveThemeContainerSettings as g } from "../../../../store/selectors.js";
import { BlockType as c } from "../types/block.js";
import i from "../../../../_virtual/cjs.js";
const l = () => {
  var d;
  const t = r.getBlock(c.CONTAINER);
  if (!t)
    return console.warn("Container block configuration not found."), {
      settings: {},
      advancedSettings: {}
    };
  const o = a(g), n = {
    ...t.settings,
    width: i(t.settings.width ?? {}, (o == null ? void 0 : o.width) ?? {}),
    maxWidth: i(
      t.settings.maxWidth ?? {},
      (o == null ? void 0 : o.maxWidth) ?? {}
    ),
    gap: i(t.settings.gap ?? {}, (o == null ? void 0 : o.gap) ?? {})
  }, s = {
    ...t.advancedSettings,
    padding: i(
      ((d = t.advancedSettings) == null ? void 0 : d.padding) ?? {},
      (o == null ? void 0 : o.padding) ?? {}
    )
  };
  return { settings: n, advancedSettings: s };
};
export {
  l as useContainerSettings
};
//# sourceMappingURL=use-container-settings.js.map
