"use strict";const o=require("../../../../../common/vendor.js");if(!Array){(o.resolveComponent("s-coupon-list")+o.resolveComponent("su-popup"))()}Math||((()=>"../s-coupon-list/s-coupon-list.js")+(()=>"../../ui/su-popup/su-popup.js"))();const e={__name:"s-coupon-select",props:{modelValue:{type:Object,default(){}},show:{type:Boolean,default:!1}},emits:["confirm","close"],setup(e,{emit:t}){const p=e,s=t,c=o.reactive({couponInfo:o.computed((()=>p.modelValue)),couponId:void 0});function n(o){c.couponId===o?c.couponId=void 0:c.couponId=o}const d=()=>{s("confirm",c.couponId)};return(t,p)=>({a:o.f(c.couponInfo.filter((o=>o.match)),((e,t,p)=>({a:o.t(e.description||"已达到使用门槛"),b:c.couponId===e.id,c:o.o((o=>n(e.id)),t),d:o.o((o=>n(e.id)),t),e:"d42586f6-1-"+p+",d42586f6-0",f:o.p({data:e,type:"user",disabled:!1}),g:t}))),b:o.f(c.couponInfo.filter((o=>!o.match)),((e,t,p)=>({a:o.t(e.description||"未达到使用门槛"),b:"d42586f6-2-"+p+",d42586f6-0",c:o.p({data:e,type:"user",disabled:!0}),d:e.id}))),c:o.o(d),d:o.o((o=>s("close"))),e:o.p({show:e.show,type:"bottom",round:"20",showClose:!0,backgroundColor:"#f2f2f2"})})}},t=o._export_sfc(e,[["__scopeId","data-v-d42586f6"]]);wx.createComponent(t);