import{C as _}from"./CouponBox-75b760f6.js";import{_ as d,f as s,o as a,v as n,w as t,i as m,t as f,h as e,g,k as h,F as v}from"./app-e7b909c6.js";const w={components:{CouponBox:_},data:()=>({loading:!0,coupons:[{},{},{},{},{},{}]}),async created(){const o=await this.call_api("get",`shop/${this.$route.params.slug}/coupons`);o.data.success&&(this.coupons=o.data.data.coupons.data,this.loading=!1)}},$={class:"fs-21 mb-3"};function k(o,B,C,x,y,b){const c=s("coupon-box"),r=s("v-col"),l=s("v-row"),p=s("v-container");return a(),n(p,{class:"py-9"},{default:t(()=>[m("h1",$,f(o.$t("all_coupons")),1),e(l,{class:"row-cols-1 row-cols-sm-2 row-cols-lg-3"},{default:t(()=>[(a(!0),g(v,null,h(o.coupons,(i,u)=>(a(),n(r,{key:u},{default:t(()=>[e(c,{"is-loading":o.loading,"coupon-details":i},null,8,["is-loading","coupon-details"])]),_:2},1024))),128))]),_:1})]),_:1})}const S=d(w,[["render",k]]);export{S as default};
