import{b6 as a,V as c,q as d,H as l,e as O}from"./BxiWQxwE.js";const m={productId:!0,normalPrice:!0,offerPrice:!0,isSingleUsePlastic:!0,startDate:!0,endDate:!0,productOffer:{textPriceSign:!0},productInformation:{productId:!0,headerText:!0,packaging:!0,image:!0,department:!0,webgroup:!0,brand:!0,logos:{description:!0,image:!0}}},r={offerId:!0,headerText:!0,packaging:!0,offerPrice:!0,normalPrice:!0,textPriceSign:!0,subText:!0,image:!0,startDate:!0,endDate:!0,disclaimerStartDate:!0,disclaimerEndDate:!0,products:m},S=()=>{const{query:s}=a(),n=c().public.defaultStoreId,o=d(`${l}-storeId`),u=O(()=>{var e,t;return(e=o.value)!=null&&e.storeId?Number((t=o.value)==null?void 0:t.storeId):Number(n)}),i=(e="currentOffers")=>e==="currentOffers"?{currentOffers:r}:{upcomingOffers:r};return{listOffersByDate:(e,t,f)=>s({listOffersByDate:[{store:u.value,department:e,priceDate:t},i(f)]}),listOffersBySectionByDate:(e,t,f)=>s({listOffersBySectionByDate:[{store:u.value,section:e,priceDate:t},i(f)]}),listOffers:e=>s({listOffers:[{department:e,store:u.value},{currentOffers:r,upcomingOffers:r}]}),listOffersByIds:e=>s({listOffersByIds:[{store:u.value,id:e},{importId:!0,currentOffers:r,upcomingOffers:r}]}),listOffersByImportIds:e=>s({listOffersByImportIds:[{store:u.value,importIds:e},{importId:!0,currentOffers:r}]})}};export{S as u};
