"use strict";const e=require("../../../../common/vendor.js"),r=require("../../../../sheep/index.js"),s=require("../../../../sheep/hooks/useGoods.js"),i=require("../../../../sheep/api/promotion/combination.js");require("../../../../sheep/url/index.js"),require("../../../../sheep/store/index.js"),require("../../../../sheep/store/app.js"),require("../../../../sheep/api/promotion/diy.js"),require("../../../../sheep/request/index.js"),require("../../../../sheep/config/index.js"),require("../../../../sheep/platform/index.js"),require("../../../../sheep/platform/provider/wechat/index.js"),require("../../../../sheep/platform/provider/wechat/miniProgram.js"),require("../../../../sheep/api/member/auth.js"),require("../../../../sheep/api/member/social.js"),require("../../../../sheep/api/member/user.js"),require("../../../../sheep/platform/provider/apple/index.js"),require("../../../../sheep/platform/share.js"),require("../../../../sheep/router/index.js"),require("../../../../sheep/hooks/useModal.js"),require("../../../../sheep/helper/index.js"),require("../../../../sheep/helper/test.js"),require("../../../../sheep/helper/digit.js"),require("../../../../sheep/api/member/signin.js"),require("../../../../sheep/helper/throttle.js"),require("../../../../sheep/platform/pay.js"),require("../../../../sheep/api/pay/order.js"),require("../../../../sheep/store/user.js"),require("../../../../sheep/store/cart.js"),require("../../../../sheep/api/trade/cart.js"),require("../../../../sheep/api/pay/wallet.js"),require("../../../../sheep/api/trade/order.js"),require("../../../../sheep/api/promotion/coupon.js"),require("../../../../sheep/store/sys.js"),require("../../../../sheep/store/modal.js"),require("../../../../sheep/config/zIndex.js"),require("../../../../sheep/util/index.js");const p={__name:"groupon-card-list",props:{modelValue:{type:Object,default(){}}},emits:["join"],setup(p,{emit:t}){const o=p,u=e.reactive({list:[]}),a=t;function n(e){const r=s.useDurationTime(e);if(r.ms<=0)return"该团已解散";let i="剩余 ";return i+=`${r.h}时`,i+=`${r.m}分`,i+=`${r.s}秒`,i}return e.onMounted((async()=>{const{data:e}=await i.CombinationApi.getHeadCombinationRecordList(o.modelValue.id,0,10);u.list=e})),(s,i)=>e.e({a:u.list.length>0},u.list.length>0?{b:e.t(u.list.length),c:e.f(u.list,((s,i,p)=>({a:e.unref(r.sheep).$url.cdn(s.avatar),b:e.t(s.nickname),c:e.t(s.userSize-s.userCount),d:e.t(n(s.expireTime)),e:e.o((e=>function(e){a("join",e)}(s)),i),f:e.o((i=>e.unref(r.sheep).$router.go("/pages/activity/groupon/detail",{id:s.id})),i),g:i})))}:{})}},t=e._export_sfc(p,[["__scopeId","data-v-2ff60b94"]]);wx.createComponent(t);
