'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var CloseOutlined = require('@ant-design/icons-vue');
require('../hooks/index.js');
var PreviewGroup = require('../vc-image/src/PreviewGroup.js');
var index = require('./style/index.js');
var useConfigInject = require('../config-provider/hooks/useConfigInject.js');

const icons = {
  rotateLeft: vue.createVNode(CloseOutlined, null, null),
  rotateRight: vue.createVNode(CloseOutlined.RotateRightOutlined, null, null),
  zoomIn: vue.createVNode(CloseOutlined.ZoomInOutlined, null, null),
  zoomOut: vue.createVNode(CloseOutlined.ZoomOutOutlined, null, null),
  close: vue.createVNode(CloseOutlined.CloseOutlined, null, null),
  left: vue.createVNode(CloseOutlined.LeftOutlined, null, null),
  right: vue.createVNode(CloseOutlined.RightOutlined, null, null)
};
const InternalPreviewGroup = /* @__PURE__ */ vue.defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "AImagePreviewGroup",
  inheritAttrs: false,
  props: PreviewGroup.imageGroupProps(),
  setup(props, {
    attrs,
    slots
  }) {
    const {
      prefixCls
    } = useConfigInject.default("image", props);
    const previewPrefixCls = vue.computed(() => `${prefixCls.value}-preview`);
    const [wrapSSR, hashId] = index.default(prefixCls);
    const mergedPreview = vue.computed(() => {
      const {
        preview
      } = props;
      if (preview === false)
        return preview;
      const _preview = typeof preview === "object" ? preview : {};
      return {
        ..._preview,
        rootClassName: hashId.value
      };
    });
    return () => {
      return wrapSSR(vue.createVNode(PreviewGroup.default, vue.mergeProps({
        ...attrs,
        ...props
      }, {
        "preview": mergedPreview.value,
        "icons": icons,
        "previewPrefixCls": previewPrefixCls.value
      }), slots));
    };
  }
});

exports.default = InternalPreviewGroup;
exports.icons = icons;
//# sourceMappingURL=PreviewGroup.js.map
