"use strict";
const common_vendor = require("../../common/vendor.js");
const INDEX_activities_show_method = require("./method.js");
const INDEX_activities_show_model = require("./model.js");
const common_libraries_day = require("../../common/libraries/day.js");
const gen_Enums = require("../../gen/Enums.js");
require("../../gen/Apis.js");
require("../../common/libraries/request.js");
require("../../common/store/useWeAppAuthStore.js");
require("../../common/libraries/setTabBar.js");
require("../../common/libraries/apiLoading.js");
require("../../common/store/useWorkStore.js");
require("../../common/libraries/userUserLogin.js");
require("../../common/libraries/naviHelper.js");
if (!Array) {
  const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag");
  const _easycom_up_parse2 = common_vendor.resolveComponent("up-parse");
  const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button");
  (_easycom_hs_enum_tag2 + _easycom_up_parse2 + _easycom_hs_button2)();
}
const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js";
const _easycom_up_parse = () => "../../node-modules/uview-plus/components/u-parse/u-parse.js";
const _easycom_hs_button = () => "../../components/hs-button/hs-button.js";
if (!Math) {
  (_easycom_hs_enum_tag + _easycom_up_parse + _easycom_hs_button)();
}
const _sfc_defineComponent = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    common_vendor.onLoad((e) => {
      var _a;
      (_a = INDEX_activities_show_method.method) == null ? void 0 : _a.getShow(e == null ? void 0 : e.id);
    });
    common_vendor.onShareAppMessage(() => {
      var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
      return {
        title: `您的好友邀请你报名${(_c = (_b = (_a = INDEX_activities_show_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.title}`,
        path: `/INDEX/activities_show/index?id=${(_f = (_e = (_d = INDEX_activities_show_model.useModel) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.id}`,
        imageUrl: (_j = (_i = (_h = (_g = INDEX_activities_show_model.useModel) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.cover_image[0]) == null ? void 0 : _j.url
      };
    });
    common_vendor.onShareTimeline(() => {
      var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
      return {
        title: `您的好友邀请你报名${(_c = (_b = (_a = INDEX_activities_show_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.title}`,
        path: `/INDEX/activities_show/index?id=${(_f = (_e = (_d = INDEX_activities_show_model.useModel) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.id}`,
        imageUrl: (_j = (_i = (_h = (_g = INDEX_activities_show_model.useModel) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.cover_image[0]) == null ? void 0 : _j.url
      };
    });
    return (_ctx, _cache) => {
      var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa;
      return common_vendor.e({
        a: common_vendor.t((_c = (_b = (_a = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.title),
        b: common_vendor.t(common_vendor.unref(common_libraries_day.showDay)((_f = (_e = (_d = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.start_time)),
        c: common_vendor.t(common_vendor.unref(common_libraries_day.showDay)((_i = (_h = (_g = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.end_time)),
        d: common_vendor.p({
          value: (_l = (_k = (_j = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _j.showData) == null ? void 0 : _k.value) == null ? void 0 : _l.status,
          Enums: common_vendor.unref(gen_Enums.ActivitiesStatusEnum)
        }),
        e: common_vendor.n(`status event_status_${(_o = (_n = (_m = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.status}`),
        f: common_vendor.p({
          content: (_r = (_q = (_p = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _p.showData) == null ? void 0 : _q.value) == null ? void 0 : _r.content
        }),
        g: !((_u = (_t = (_s = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.result)
      }, !((_x = (_w = (_v = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _v.showData) == null ? void 0 : _w.value) == null ? void 0 : _x.result) ? common_vendor.e({
        h: common_vendor.p({
          size: "md",
          type: "display",
          label: "分享活动",
          openType: "share"
        }),
        i: (_A = (_z = (_y = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _y.showData) == null ? void 0 : _z.value) == null ? void 0 : _A.is_enroll
      }, ((_D = (_C = (_B = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _B.showData) == null ? void 0 : _C.value) == null ? void 0 : _D.is_enroll) ? {
        j: common_vendor.o((_E = common_vendor.unref(INDEX_activities_show_method.method)) == null ? void 0 : _E.handleSignUp),
        k: common_vendor.p({
          size: "md",
          type: "primary",
          disabled: !common_vendor.unref(common_libraries_day.getIsInRangeInclusive)((_H = (_G = (_F = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _F.showData) == null ? void 0 : _G.value) == null ? void 0 : _H.start_time, (_K = (_J = (_I = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _I.showData) == null ? void 0 : _J.value) == null ? void 0 : _K.end_time),
          label: "立即报名"
        })
      } : {}) : common_vendor.e({
        l: ((_O = (_N = (_M = (_L = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _L.showData) == null ? void 0 : _M.value) == null ? void 0 : _N.result) == null ? void 0 : _O.status) === "Cancelled" && ((_R = (_Q = (_P = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _P.showData) == null ? void 0 : _Q.value) == null ? void 0 : _R.is_enroll) && common_vendor.unref(common_libraries_day.getIsInRangeInclusive)((_U = (_T = (_S = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _S.showData) == null ? void 0 : _T.value) == null ? void 0 : _U.start_time, (_X = (_W = (_V = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _V.showData) == null ? void 0 : _W.value) == null ? void 0 : _X.end_time)
      }, ((_$ = (__ = (_Z = (_Y = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _Y.showData) == null ? void 0 : _Z.value) == null ? void 0 : __.result) == null ? void 0 : _$.status) === "Cancelled" && ((_ca = (_ba = (_aa = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _aa.showData) == null ? void 0 : _ba.value) == null ? void 0 : _ca.is_enroll) && common_vendor.unref(common_libraries_day.getIsInRangeInclusive)((_fa = (_ea = (_da = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _da.showData) == null ? void 0 : _ea.value) == null ? void 0 : _fa.start_time, (_ia = (_ha = (_ga = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _ga.showData) == null ? void 0 : _ha.value) == null ? void 0 : _ia.end_time) ? {
        m: common_vendor.o(($event) => {
          var _a2;
          return (_a2 = common_vendor.unref(INDEX_activities_show_method.method)) == null ? void 0 : _a2.handleCancelSignUp("Success");
        }),
        n: common_vendor.p({
          size: "md",
          type: "display",
          label: "重新报名"
        })
      } : {}, {
        o: ((_ma = (_la = (_ka = (_ja = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _ja.showData) == null ? void 0 : _ka.value) == null ? void 0 : _la.result) == null ? void 0 : _ma.status) === "Success"
      }, ((_qa = (_pa = (_oa = (_na = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _na.showData) == null ? void 0 : _oa.value) == null ? void 0 : _pa.result) == null ? void 0 : _qa.status) === "Success" ? {
        p: common_vendor.o(($event) => {
          var _a2;
          return (_a2 = common_vendor.unref(INDEX_activities_show_method.method)) == null ? void 0 : _a2.handleCancelSignUp("Cancelled");
        }),
        q: common_vendor.p({
          size: "md",
          type: "display",
          disabled: !common_vendor.unref(common_libraries_day.getIsInRangeInclusive)((_ta = (_sa = (_ra = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _ra.showData) == null ? void 0 : _sa.value) == null ? void 0 : _ta.start_time, (_wa = (_va = (_ua = common_vendor.unref(INDEX_activities_show_model.useModel)) == null ? void 0 : _ua.showData) == null ? void 0 : _va.value) == null ? void 0 : _wa.end_time),
          label: "取消报名"
        })
      } : {}, {
        r: common_vendor.p({
          size: "md",
          type: "primary",
          label: "分享活动",
          openType: "share"
        })
      }));
    };
  }
});
_sfc_defineComponent.__runtimeHooks = 6;
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_defineComponent, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/INDEX/activities_show/index.vue"]]);
wx.createPage(MiniProgramPage);
