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