"use strict";
const uni_modules_tdesignUniapp_components_common_src_instantiationDecorator = require("../common/src/instantiationDecorator.js");
const uni_modules_tdesignUniapp_components_empty_props = require("./props.js");
const uni_modules_tdesignUniapp_components_common_config = require("../common/config.js");
const uni_modules_tdesignUniapp_components_common_utils = require("../common/utils.js");
const uni_modules_tdesignUniapp_components_common_utils_wxs = require("../common/utils.wxs.js");
const uni_modules_tdesignUniapp_components_common_version = require("../common/version.js");
const common_vendor = require("../../../../common/vendor.js");
const TIcon = () => "../icon/icon.js";
const TImage = () => "../image/image.js";
const name = `${uni_modules_tdesignUniapp_components_common_config.prefix}-empty`;
const _sfc_main = uni_modules_tdesignUniapp_components_common_src_instantiationDecorator.uniComponent({
  name,
  options: {
    styleIsolation: "shared"
  },
  externalClasses: [
    `${uni_modules_tdesignUniapp_components_common_config.prefix}-class`,
    `${uni_modules_tdesignUniapp_components_common_config.prefix}-class-description`,
    `${uni_modules_tdesignUniapp_components_common_config.prefix}-class-image`,
    `${uni_modules_tdesignUniapp_components_common_config.prefix}-class-actions`
  ],
  components: {
    TIcon,
    TImage
  },
  props: {
    ...uni_modules_tdesignUniapp_components_empty_props.props
  },
  data() {
    return {
      prefix: uni_modules_tdesignUniapp_components_common_config.prefix,
      classPrefix: name,
      iconName: "",
      iconData: {},
      tools: uni_modules_tdesignUniapp_components_common_utils_wxs.tools
    };
  },
  computed: {
    iconTClass() {
      return uni_modules_tdesignUniapp_components_common_version.canUseVirtualHost() ? this.iconRealClass : "";
    },
    iconClass() {
      return !uni_modules_tdesignUniapp_components_common_version.canUseVirtualHost() ? this.iconRealClass : "";
    },
    iconRealClass() {
      const { classPrefix, iconData } = this;
      return `${classPrefix}__icon ${classPrefix}__icon--${iconData.activeIdx == iconData.index ? "active " : " "}`;
    }
  },
  watch: {
    icon: {
      handler(t) {
        const obj = uni_modules_tdesignUniapp_components_common_utils.setIcon("icon", t, "");
        Object.keys(obj).forEach((key) => {
          this[key] = obj[key];
        });
      },
      immediate: true
    }
  },
  mounted() {
  },
  methods: {}
});
if (!Array) {
  const _easycom_t_image2 = common_vendor.resolveComponent("t-image");
  const _easycom_t_icon2 = common_vendor.resolveComponent("t-icon");
  (_easycom_t_image2 + _easycom_t_icon2)();
}
const _easycom_t_image = () => "../image/image.js";
const _easycom_t_icon = () => "../icon/icon.js";
if (!Math) {
  (_easycom_t_image + _easycom_t_icon)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return common_vendor.e({
    a: _ctx.image
  }, _ctx.image ? {
    b: common_vendor.p({
      ["t-class"]: _ctx.tClassImage,
      src: _ctx.image,
      mode: "aspectFit"
    })
  } : _ctx.iconName || _ctx.tools.isNoEmptyObj(_ctx.iconData) ? {
    d: common_vendor.n(_ctx.iconClass),
    e: common_vendor.p({
      ["custom-style"]: _ctx.iconData.style || "",
      ["t-class"]: _ctx.iconTClass,
      prefix: _ctx.iconData.prefix,
      name: _ctx.iconName || _ctx.iconData.name,
      size: _ctx.iconData.size,
      color: _ctx.iconData.color,
      ["aria-hidden"]: !!_ctx.iconData.ariaHidden,
      ["aria-label"]: _ctx.iconData.ariaLabel,
      ["aria-role"]: _ctx.iconData.ariaRole
    })
  } : {}, {
    c: _ctx.iconName || _ctx.tools.isNoEmptyObj(_ctx.iconData),
    f: common_vendor.n(_ctx.classPrefix + "__thumb"),
    g: _ctx.description
  }, _ctx.description ? {
    h: common_vendor.t(_ctx.description)
  } : {}, {
    i: common_vendor.n(_ctx.classPrefix + "__description "),
    j: common_vendor.n(_ctx.tClassDescription),
    k: common_vendor.n(_ctx.classPrefix + "__actions "),
    l: common_vendor.n(_ctx.tClassActions),
    m: common_vendor.s(_ctx.tools._style([_ctx.customStyle])),
    n: common_vendor.n(_ctx.tClass),
    o: common_vendor.n(_ctx.classPrefix)
  });
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e9615c73"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.js.map
