"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
require("../../../../../adapter-vue.js");
const TUIKit_components_TUIChat_utils_utils = require("../../../utils/utils.js");
if (!Math) {
  Avatar();
}
const Avatar = () => "../../../../common/Avatar/index.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "message-container",
  props: {
    sender: { default: "" },
    avatar: { default: "" },
    type: {},
    time: {}
  },
  setup(__props) {
    const props = __props;
    const TYPES = common_vendor.qt.TYPES;
    const isNoPadding = common_vendor.computed(() => {
      return [TYPES.MSG_IMAGE, TYPES.MSG_VIDEO, TYPES.MSG_MERGER].includes(props.type);
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.p({
          url: props.avatar
        }),
        b: common_vendor.t(props.sender),
        c: common_vendor.unref(isNoPadding) ? 1 : "",
        d: common_vendor.t(common_vendor.unref(TUIKit_components_TUIChat_utils_utils.calculateTimestamp)(props.time * 1e3))
      };
    };
  }
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-79409a32"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../../../.sourcemap/mp-weixin/TUIKit/components/TUIChat/message-list/message-elements/simple-message-list/message-container.js.map
