"use strict";
const common_vendor = require("../common/vendor.js");
const store_user = require("../store/user.js");
const utils_file = require("./file.js");
const share = {
  onLoad() {
    let imageUrl = "";
    let title = "";
    if (store_user.useUserStore().getSiteInfo)
      imageUrl = utils_file.getFileUrl(store_user.useUserStore().getSiteInfo.logo);
    if (store_user.useUserStore().getSiteInfo)
      title = store_user.useUserStore().getSiteInfo.name;
    common_vendor.index.$mpShare = {
      title,
      desc: "",
      path: "",
      imageUrl
    };
  },
  onShareAppMessage() {
    common_vendor.index.__f__("log", "at utils/share.js:19", common_vendor.index.$mpShare);
    return common_vendor.index.$mpShare;
  },
  onShareTimeline() {
    return common_vendor.index.$mpShare;
  },
  onUnload() {
    let imageUrl = "";
    let title = "";
    if (store_user.useUserStore().getSiteInfo)
      imageUrl = utils_file.getFileUrl(store_user.useUserStore().getSiteInfo.logo);
    if (store_user.useUserStore().getSiteInfo)
      title = store_user.useUserStore().getSiteInfo.name;
    common_vendor.index.$mpShare = {
      title,
      desc: "",
      path: "",
      imageUrl
    };
  }
};
exports.share = share;
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/share.js.map
