/**
 * ldesign v0.3.13
 * (c) 2023 ldesign
 * @license MIT
 */

'use strict';

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

var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var vue = require('vue');
var hooks_useConfig = require('../../hooks/useConfig.js');
var hooks_tnode = require('../../hooks/tnode.js');
require('../../config-provider/useConfig.js');
require('lodash/cloneDeep');
require('lodash/isFunction');
require('lodash/isString');
require('../../config-provider/context.js');
require('lodash/mergeWith');
require('lodash/merge');
require('lodash/isArray');
require('../../_common/js/global-config/default-config.js');
require('../../_common/js/global-config/locale/zh_CN.js');
require('@babel/runtime/helpers/typeof');
require('../../_chunks/dep-f4db2590.js');
require('dayjs');
require('lodash/camelCase');
require('lodash/kebabCase');
require('../../utils/render-tnode.js');
require('lodash/isEmpty');
require('lodash/isObject');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);

var TImageViewerIcon = vue.defineComponent({
  name: "TImageModalIcon",
  props: {
    disabled: Boolean,
    onClick: Function,
    label: String,
    icon: Function
  },
  setup: function setup(props) {
    var classPrefix = hooks_useConfig.usePrefixClass();
    var renderTNodeJSX = hooks_tnode.useTNodeJSX();
    var wrapClass = vue.computed(function () {
      return ["".concat(classPrefix.value, "-image-viewer__modal-icon"), _defineProperty__default["default"]({}, "".concat(classPrefix.value, "-is-disabled"), props.disabled)];
    });
    return function () {
      return vue.createVNode("div", {
        "class": wrapClass.value,
        "onClick": props.onClick
      }, [renderTNodeJSX("icon"), props.label && vue.createVNode("span", {
        "class": "".concat(classPrefix.value, "-image-viewer__modal-icon-label")
      }, [props.label])]);
    };
  }
});

exports["default"] = TImageViewerIcon;
//# sourceMappingURL=ImageModalIcon.js.map
