var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.ts
var mergeFloorMapLayoutContext_exports = {};
__export(mergeFloorMapLayoutContext_exports, {
  mergeFloorMapLayoutPropsFromContext: () => mergeFloorMapLayoutPropsFromContext
});
module.exports = __toCommonJS(mergeFloorMapLayoutContext_exports);
function mergeFloorMapLayoutPropsFromContext(props, ctx) {
  if (ctx == null) return props;
  return {
    ...props,
    floorMapConfig: props.floorMapConfig ?? ctx.floorMapConfig,
    dataSources: props.dataSources ?? ctx.dataSources,
    onSave: props.onSave ?? ctx.onSave,
    onDataSourceRecordSave: props.onDataSourceRecordSave ?? ctx.onDataSourceRecordSave,
    dataSourceLabels: props.dataSourceLabels ?? ctx.dataSourceLabels,
    dataSourceFormColumns: props.dataSourceFormColumns ?? ctx.dataSourceFormColumns,
    dataSourceRecordForm: props.dataSourceRecordForm ?? ctx.dataSourceRecordForm,
    loading: props.loading ?? ctx.loading,
    saveError: props.saveError ?? ctx.saveError,
    onElementRenderError: props.onElementRenderError ?? ctx.onElementRenderError,
    toolbarShowSave: props.toolbarShowSave ?? ctx.toolbarShowSave,
    floorMapFullscreenMode: props.floorMapFullscreenMode ?? ctx.floorMapFullscreenMode,
    showDataSourceRecordFormBlock: props.showDataSourceRecordFormBlock ?? ctx.showDataSourceRecordFormBlock,
    viewportDockTrailing: props.viewportDockTrailing ?? ctx.viewportDockTrailing
  };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  mergeFloorMapLayoutPropsFromContext
});
