const imageDataNormalizer = (componentData, normalizerConfig) => {
  const shouldNormalizeDisableDownload = componentData.disableDownload === void 0 && normalizerConfig.disableDownload !== void 0;
  const shouldNormalizeExpand = componentData.disableExpand === void 0 && normalizerConfig.disableImagesExpand !== void 0;
  if (shouldNormalizeDisableDownload) {
    componentData.disableDownload = normalizerConfig.disableDownload;
  }
  if (shouldNormalizeExpand) {
    componentData.disableExpand = normalizerConfig.disableImagesExpand;
  }
  const { width, config = {}, ...rest } = componentData;
  if (config.size === "inline" && width && !config.width) {
    return {
      ...rest,
      config: {
        ...config,
        width
      }
    };
  } else {
    return componentData;
  }
};
export {
  imageDataNormalizer
};
//# sourceMappingURL=image-data-normalizer.js.map
