import{_ as v,f as t,o,g as n,h as l,w as s,i,t as k,v as r,F as y,k as b,l as w}from"./app-e7b909c6.js";const $={head:{title:"All Offers"},data:()=>({loading:!0,offers:[{},{}]}),mounted:()=>{},methods:{},async created(){const e=await this.call_api("get","all-offers");e.data.success&&(this.offers=e.data.data,this.loading=!1)}},B={class:"pb-6"},C={class:"mb-7 mt-4"},F={key:0},N=["src","alt"];function O(e,c,V,A,D,E){const d=t("v-skeleton-loader"),_=t("router-link"),f=t("v-card"),m=t("v-col"),u=t("v-row"),p=t("v-container");return o(),n("div",B,[l(p,null,{default:s(()=>[i("h1",C,k(e.$t("all_offers")),1),e.offers.length?(o(),r(u,{key:0},{default:s(()=>[(o(!0),n(y,null,b(e.offers,(a,g)=>(o(),r(m,{cols:"12",md:"6",key:g},{default:s(()=>[e.loading?(o(),n("div",F,[l(d,{type:"image",class:"",height:"300"})])):(o(),r(f,{key:1,outlined:"",class:"text-center",variant:"outlined"},{default:s(()=>[l(_,{to:{name:"OfferDetails",params:{offerSlug:a.slug}},class:"d-block lh-0"},{default:s(()=>[i("img",{class:"img-fluid",src:a.banner,alt:a.title,onError:c[0]||(c[0]=h=>e.imageFallback(h))},null,40,N)]),_:2},1032,["to"])]),_:2},1024))]),_:2},1024))),128))]),_:1})):w("",!0)]),_:1})])}const L=v($,[["render",O]]);export{L as default};
