"use strict";
const common_vendor = require("../../../../common/vendor.js");
const uni_modules_uviewPro_components_uLoading_types = require("./types.js");
const uni_modules_uviewPro_libs_index = require("../../libs/index.js");
require("../../libs/util/logger.js");
require("../../libs/config/theme-tokens.js");
const __default__ = {
  name: "u-loading",
  options: {
    addGlobalClass: true,
    virtualHost: true,
    styleIsolation: "shared"
  }
};
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  ...__default__,
  props: uni_modules_uviewPro_components_uLoading_types.LoadingProps,
  setup(__props) {
    const props = __props;
    const cricleStyle = common_vendor.computed(() => {
      let style = {};
      style.width = props.size + "rpx";
      style.height = props.size + "rpx";
      if (props.mode === "circle") {
        style.borderColor = `var(--u-divider-color) var(--u-divider-color) var(--u-divider-color) ${props.color ? props.color : "var(--u-light-color)"}`;
      }
      return style;
    });
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: _ctx.show
      }, _ctx.show ? {
        b: common_vendor.n(_ctx.mode === "circle" ? "u-loading-circle" : "u-loading-flower"),
        c: common_vendor.n(_ctx.customClass),
        d: common_vendor.s(common_vendor.unref(uni_modules_uviewPro_libs_index.$u).toStyle(cricleStyle.value, _ctx.customStyle))
      } : {});
    };
  }
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a5d64378"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-pro/components/u-loading/u-loading.js.map
