import{K as u,m as n,j as p,k as a,t as d,F as c,B as m,D as _,q as f,a8 as b,X as o}from"./BCLrUOBx.js";const y={name:"FilterShipping",props:{shippingRules:{type:Array,default(){return[]}}},data(){return{shipping:[]}},components:{},mixins:[],computed:{},mounted(){(this._.provides[o]||this.$route).query.shipping&&(this.shipping=(this._.provides[o]||this.$route).query.shipping.split(","))},methods:{clearShipping(){this.shipping=[]},shippingChanged(){let i=Object.assign({},(this._.provides[o]||this.$route).query);this.shipping.length?i={...i,shipping:this.shipping.join(",")}:delete i.shipping,this.$emit("reset-route",i)}}},k={class:"sidebar-section"},x={class:"title"},$=["for"],v=["id","value"];function C(i,e,l,q,r,h){return p(),n("div",k,[a("h4",x,d(i.$t("listingLayout.shippingOptions")),1),(p(!0),n(c,null,m(l.shippingRules,(s,g)=>(p(),n("label",{class:"block mtb-10",key:g,for:`cb-${s.id}`},[_(a("input",{id:`cb-${s.id}`,type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=t=>r.shipping=t),name:"shipping",value:s.id,onChange:e[1]||(e[1]=(...t)=>h.shippingChanged&&h.shippingChanged(...t))},null,40,v),[[b,r.shipping]]),f(" "+d(s.title),1)],8,$))),128))])}const S=u(y,[["render",C]]);export{S as default};
