<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6bafe0ad"],{"042e":function(t,a,e){"use strict";var s=function(){var t=this,a=t._self._c;return a("div",[a("div",{class:{default:!t.expanded,expanded:t.expanded},style:`height:${t.height}px`},[t._t("default")],2),t.expanded?a("a",{staticClass:"primary--text fw-700 fs-12 mt-3 d-inline-block",on:{click:t.onClick}},[t._v(t._s(t.$t("show_less")))]):a("a",{staticClass:"primary--text fw-700 fs-12 mt-3 d-inline-block",on:{click:t.onClick}},[t._v(t._s(t.$t("show_more")))])])},r=[],i={props:{height:{type:Number,default:112}},data:()=&gt;({expanded:!1,triggerShowMore:!1}),methods:{onClick(){this.expanded=!this.expanded}}},o=i,l=(e("eb17"),e("2877")),n=Object(l["a"])(o,s,r,!1,null,"7366bc9d",null);a["a"]=n.exports},"28b6":function(t,a,e){},"636d":function(t,a,e){"use strict";var s=function(){var t=this,a=t._self._c;return a("div",{},[a("swiper",{staticClass:"mb-4",attrs:{options:t.carouselOption}},t._l(t.banners,(function(e,s){return a("swiper-slide",{key:s},[a("banner",{attrs:{loading:t.isLoading,banner:e}})],1)})),1)],1)},r=[],i={props:{isLoading:{type:Boolean,required:!0,default:!0},banners:{type:Array,required:!0,default:()=&gt;[]}},data:()=&gt;({carouselOption:{slidesPerView:1}})},o=i,l=e("2877"),n=Object(l["a"])(o,s,r,!1,null,null,null);a["a"]=n.exports},"6f50":function(t,a,e){"use strict";e("28b6")},"8c9e":function(t,a,e){},a0c4:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t._self._c;return a("v-container",{staticClass:"pb-9 pt-0"},[a("v-row",{attrs:{"no-gutters":"",align:"start"}},[a("v-col",{staticClass:"w-sm-0 w-lg-270px sticky-top",attrs:{cols:"auto"}},[a("div",{class:["border-end filter-drawer",{"open c-scrollbar overflow-y-auto":t.filterDrawerOpen}]},[a("div",{staticClass:"border-bottom pa-5 d-lg-none d-flex align-center"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"}},[a("path",{attrs:{id:"Path_2643","data-name":"Path 2643",d:"M20,5H18.829a3,3,0,0,0-5.659,0H4A1,1,0,0,0,4,7h9.171a3,3,0,0,0,5.659,0H20a1,1,0,0,0,0-2ZM16,7a1,1,0,1,0-1-1A1,1,0,0,0,16,7ZM3,12a1,1,0,0,1,1-1H5.171a3,3,0,0,1,5.659,0H20a1,1,0,0,1,0,2H10.829a3,3,0,0,1-5.659,0H4A1,1,0,0,1,3,12Zm5,1a1,1,0,1,0-1-1A1,1,0,0,0,8,13ZM4,17a1,1,0,0,0,0,2h9.171a3,3,0,0,0,5.659,0H20a1,1,0,0,0,0-2H18.829a3,3,0,0,0-5.659,0Zm13,1a1,1,0,1,1-1-1A1,1,0,0,1,17,18Z",transform:"translate(-3 -3)",fill:"#2a2e34","fill-rule":"evenodd"}})]),a("span",{staticClass:"ms-4 fw-600 fs-14 lh-1"},[t._v(t._s(t.$t("filters")))]),a("button",{staticClass:"ms-auto",attrs:{type:"button"},on:{click:function(a){return a.stopPropagation(),t.toggleFilterDrawer(!t.filterDrawerOpen)}}},[a("i",{staticClass:"la la-close fs-20"})])]),a("div",{staticClass:"pa-5"},[a("div",{staticClass:"mb-5"},[a("h4",{staticClass:"fw-700 fs-14 mb-4 border-bottom pb-3"},[t._v(t._s(t.$t("categories")))]),a("div",[a("ul",{staticClass:"list-unstyled ps-0"},[t.is_empty_obj(t.currentCategory)?t._l(t.rootCategories,(function(e,s){return a("li",{key:s,staticClass:"my-2"},[a("router-link",{staticClass:"text-reset fs-14",attrs:{to:{name:"ShopProducts",params:{categorySlug:e.slug,slug:t.$route.params.slug}}}},[t._v(" "+t._s(e.name)+" ")])],1)})):[a("li",{staticClass:"my-2"},[a("router-link",{staticClass:"text-reset fs-14",attrs:{to:{name:"ShopProducts",params:{slug:t.$route.params.slug}}}},[a("i",{staticClass:"las la-angle-left fs-12 me-1"}),a("span",[t._v(t._s(t.$t("all_categories")))])])],1),t.is_empty_obj(t.parentCategory)?t._e():a("li",{staticClass:"my-2"},[a("router-link",{staticClass:"text-reset fs-14",attrs:{to:{name:"ShopProducts",params:{categorySlug:t.parentCategory.slug,slug:t.$route.params.slug}}}},[a("i",{staticClass:"las la-angle-left fs-12 me-1"}),a("span",[t._v(t._s(t.parentCategory.name))])])],1),a("li",{class:["my-2",{"ms-5":0==t.childCategories.length}]},[a("router-link",{staticClass:"text-reset fs-14 fw-600",attrs:{to:{name:"ShopProducts",params:{categorySlug:t.currentCategory.slug,slug:t.$route.params.slug}}}},[t.childCategories.length&gt;0?a("i",{staticClass:"las la-angle-down fs-12 me-1"}):t._e(),a("span",[t._v(t._s(t.currentCategory.name))])])],1),t._l(t.childCategories,(function(e,s){return a("li",{key:s,staticClass:"my-2 ms-5"},[a("router-link",{staticClass:"text-reset fs-14",attrs:{to:{name:"ShopProducts",params:{categorySlug:e.slug,slug:t.$route.params.slug}}}},[a("span",[t._v(t._s(e.name))])])],1)}))]],2)])]),a("div",{staticClass:"mb-4 pt-4 border-top"},[a("h4",{staticClass:"fw-700 fs-14 mb-3"},[t._v(t._s(t.$t("price")))]),a("div",{staticClass:"row no-gutters align-center"},[a("div",{staticClass:"col"},[a("v-text-field",{staticClass:"form-control form-control-sm",attrs:{type:"number",placeholder:t.$t("min_price"),outlined:"","hide-details":""},model:{value:t.queryParam.minPrice,callback:function(a){t.$set(t.queryParam,"minPrice",a)},expression:"queryParam.minPrice"}})],1),a("span",{staticClass:"mx-1 col col-auto opacity-60"},[t._v("to")]),a("div",{staticClass:"col"},[a("v-text-field",{staticClass:"form-control form-control-sm",attrs:{type:"number",placeholder:t.$t("max_price"),outlined:"","hide-details":""},model:{value:t.queryParam.maxPrice,callback:function(a){t.$set(t.queryParam,"maxPrice",a)},expression:"queryParam.maxPrice"}})],1),a("div",{staticClass:"col col-auto"},[a("v-btn",{staticClass:"rounded ms-2",attrs:{"x-small":"",fab:"",type:"submit",color:"primary",elevation:"0"},nativeOn:{click:function(a){return t.filterByPriceRange.apply(null,arguments)}}},[t._v(" "+t._s(t.$t("go"))+" ")])],1)])]),a("div",{staticClass:"mb-4 pt-4 border-top"},[a("h4",{staticClass:"fw-700 fs-14 mb-3"},[t._v(t._s(t.$t("brands")))]),t.allBrands.length&lt;5?a("div",t._l(t.allBrands,(function(e,s){return a("v-checkbox",{key:s,staticClass:"mt-1",attrs:{"on-icon":"la-check","hide-details":"",label:e.name},on:{change:function(a){return t.brandChange(e.id)}}})})),1):a("ShowMore",t._l(t.allBrands,(function(e,s){return a("v-checkbox",{key:s,staticClass:"mt-1",attrs:{"on-icon":"la-check","hide-details":"",label:e.name},on:{change:function(a){return t.brandChange(e.id)}}})})),1)],1),t._l(t.attributes,(function(e,s){return a("div",{key:s,staticClass:"mb-4 pt-4 border-top"},[a("h4",{staticClass:"fw-700 fs-14 mb-3"},[t._v(t._s(e.name))]),e.values.data.length&lt;5?a("div",t._l(e.values.data,(function(e,s){return a("v-checkbox",{key:s,staticClass:"mt-1",attrs:{"on-icon":"la-check","hide-details":"",label:e.name},on:{change:function(a){return t.attributeValueChange(e.id)}}})})),1):a("ShowMore",t._l(e.values.data,(function(e,s){return a("v-checkbox",{key:s,staticClass:"mt-1",attrs:{"on-icon":"la-check","hide-details":"",label:e.name},on:{change:function(a){return t.attributeValueChange(e.id)}}})})),1)],1)}))],2)])]),a("v-col",{staticClass:"minw-0"},[a("shop-banner-section-two",{attrs:{banners:t.is_empty_obj(t.$parent.shopDetails)?[{}]:t.$parent.shopDetails.products_banners,"is-loading":t.$parent.loading}}),a("div",{staticClass:"pt-4 ps-lg-7"},[a("v-row",{staticClass:"mb-3",attrs:{align:"end"}},[a("v-col",{attrs:{cols:"12",sm:""}},[a("div",{staticClass:"d-flex align-center"},[a("div",[t.queryParam.keyword?a("h1",{staticClass:"fs-18"},[t._v(" "+t._s(t.$t("search_results_for"))+' "'+t._s(t.queryParam.keyword)+'" ')]):t.is_empty_obj(t.currentCategory)?a("h1",{staticClass:"fs-18"},[t._v(t._s(t.$t("all_products")))]):a("h1",{staticClass:"fs-18"},[t._v(" "+t._s(t.currentCategory.name)+" ")]),a("p",{staticClass:"opacity-60 mb-0 fs-12"},[t._v(" "+t._s(t.$t("total")+" "+t.totalProducts+" "+t.$t("products_found"))+" ")])]),a("div",{staticClass:"d-lg-none ms-auto ms-sm-0"},[a("button",{staticClass:"ms-4 pa-2 border-gray-300 rounded border d-flex justify-center align-center",attrs:{type:"button"},on:{click:function(a){return a.stopPropagation(),t.toggleFilterDrawer(!t.filterDrawerOpen)}}},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"}},[a("path",{attrs:{id:"Path_2643","data-name":"Path 2643",d:"M20,5H18.829a3,3,0,0,0-5.659,0H4A1,1,0,0,0,4,7h9.171a3,3,0,0,0,5.659,0H20a1,1,0,0,0,0-2ZM16,7a1,1,0,1,0-1-1A1,1,0,0,0,16,7ZM3,12a1,1,0,0,1,1-1H5.171a3,3,0,0,1,5.659,0H20a1,1,0,0,1,0,2H10.829a3,3,0,0,1-5.659,0H4A1,1,0,0,1,3,12Zm5,1a1,1,0,1,0-1-1A1,1,0,0,0,8,13ZM4,17a1,1,0,0,0,0,2h9.171a3,3,0,0,0,5.659,0H20a1,1,0,0,0,0-2H18.829a3,3,0,0,0-5.659,0Zm13,1a1,1,0,1,1-1-1A1,1,0,0,1,17,18Z",transform:"translate(-3 -3)",fill:"#2a2e34","fill-rule":"evenodd"}})])])])])]),a("v-col",{attrs:{cols:"12",sm:"auto"}},[a("v-select",{attrs:{items:t.sortingOptions,"item-text":"name","item-value":"value","menu-props":{offsetY:!0},"append-icon":"la-angle-down fs-14",flat:"",solo:"",outlined:"","hide-details":""},on:{change:t.sortUpdate},scopedSlots:t._u([{key:"selection",fn:function({item:e}){return[a("span",{staticClass:"fs-13 d-flex align-center opacity-80"},[a("span",{staticClass:"opacity-60 mx-1"},[t._v(t._s(t.$t("sort_by"))+":")]),a("span",[t._v(t._s(e.name))])])]}}]),model:{value:t.sortingDefault,callback:function(a){t.sortingDefault=a},expression:"sortingDefault"}})],1)],1),a("div",{staticClass:"mb-7"},[t.products.length&gt;0?a("v-row",{staticClass:"row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-xl-5 md-gutters-10"},t._l(t.products,(function(e,s){return a("v-col",{key:s},[a("product-box",{attrs:{"product-details":e,"is-loading":t.loading}})],1)})),1):a("div",{staticClass:"pa-4 text-center fs-20"},[t._v(t._s(t.$t("no_product_found")))])],1),t.totalPages&gt;1?a("div",{staticClass:"text-center"},[a("v-pagination",{staticClass:"my-4",attrs:{length:t.totalPages,"prev-icon":"la-angle-left","next-icon":"la-angle-right","total-visible":7,elevation:"0"},on:{input:t.pageSwitch},model:{value:t.queryParam.page,callback:function(a){t.$set(t.queryParam,"page",a)},expression:"queryParam.page"}})],1):t._e()],1)],1)],1)],1)},r=[],i=e("636d"),o=e("042e"),l={components:{ShowMore:o["a"],ShopBannerSectionTwo:i["a"]},data:()=&gt;({loading:!0,filterDrawerOpen:!1,totalProducts:0,totalPages:1,queryParam:{page:1,categorySlug:null,brandIds:[],attributeValues:[],keyword:null,sortBy:"popular",minPrice:null,maxPrice:null},attributes:[],allBrands:[],rootCategories:[],parentCategory:{},currentCategory:{},childCategories:[],products:[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]}),computed:{sortingOptions(){return[{name:this.$i18n.t("most_popular"),value:"popular"},{name:this.$i18n.t("latest_first"),value:"latest"},{name:this.$i18n.t("oldest_first"),value:"oldest"},{name:this.$i18n.t("higher_price_first"),value:"highest_price"},{name:this.$i18n.t("lower_price_first"),value:"lowest_price"}]},sortingDefault:{get(){return{name:this.$i18n.t("most_popular"),value:"popular"}},set(t){}}},methods:{pageSwitch(t){this.$router.push({query:{...this.$route.query,page:this.queryParam.page}}).catch(()=&gt;{}),this.getList({page:t})},sortUpdate(t){this.queryParam.sortBy=t,this.$router.push({query:{...this.$route.query,sortBy:this.queryParam.sortBy}}).catch(()=&gt;{}),this.getList({sortBy:t})},brandChange(t){if(this.queryParam.brandIds.indexOf(t)&gt;-1){const a=this.queryParam.brandIds.indexOf(t);this.queryParam.brandIds.splice(a,1)}else this.queryParam.brandIds.push(t);this.$router.push({query:{...this.$route.query,brandIds:this.queryParam.brandIds}}).catch(()=&gt;{}),this.getList({})},attributeValueChange(t){if(this.queryParam.attributeValues.indexOf(t)&gt;-1){const a=this.queryParam.attributeValues.indexOf(t);this.queryParam.attributeValues.splice(a,1)}else this.queryParam.attributeValues.push(t);this.$router.push({query:{...this.$route.query,attributeValues:this.queryParam.attributeValues}}).catch(()=&gt;{}),this.getList({})},filterByPriceRange(){const t={};t.minPrice=this.queryParam.minPrice,t.maxPrice=this.queryParam.maxPrice,this.$router.push({query:{...this.$route.query,...t}}).catch(()=&gt;{}),this.getList({})},toggleFilterDrawer(t){this.filterDrawerOpen=t},async getList(t){this.loading=!0;const a={...this.queryParam,...t};let e=`shop/${this.$route.params.slug}/products?`;e+="&amp;page="+this.queryParam.page,e+=a.categorySlug?"&amp;category_slug="+a.categorySlug:"",e+=a.brandIds?"&amp;brand_ids="+a.brandIds:"",e+=a.attributeValues?"&amp;attribute_values="+a.attributeValues:"",e+=a.keyword?"&amp;keyword="+a.keyword:"",e+=a.sortBy?"&amp;sort_by="+a.sortBy:"",e+=a.minPrice?"&amp;min_price="+a.minPrice:"",e+=a.maxPrice?"&amp;max_price="+a.maxPrice:"";const s=await this.call_api("get",e);var r,i,o,l;s.data.success&amp;&amp;(this.loading=!1,this.products=null===(r=s.data.products)||void 0===r?void 0:r.data,this.attributes=null===(i=s.data.attributes)||void 0===i?void 0:i.data,this.allBrands=(null===(o=s.data.allBrands)||void 0===o?void 0:o.data)||[],this.rootCategories=null===(l=s.data.rootCategories)||void 0===l?void 0:l.data,this.parentCategory=s.data.parentCategory?s.data.parentCategory:{},this.currentCategory=s.data.currentCategory?s.data.currentCategory:{},this.childCategories=s.data.childCategories?s.data.childCategories.data:[],this.totalPages=s.data.totalPage,this.totalProducts=s.data.total,this.queryParam.page=s.data.currentPage)}},created(){if(this.queryParam.categorySlug=this.$route.params.categorySlug||this.queryParam.categorySlug,this.queryParam.keyword=this.$route.params.keyword,this.queryParam.brandIds=this.$route.params.brandId||this.queryParam.brandIds,this.queryParam.page=this.$route.query.page||this.queryParam.page,this.queryParam.sortBy=this.$route.query.sortBy||this.queryParam.sortBy,this.queryParam.minPrice=this.$route.query.minPrice||this.queryParam.minPrice,this.queryParam.maxPrice=this.$route.query.maxPrice||this.queryParam.maxPrice,this.queryParam.attributeValues=this.$route.query.attributeValues||this.queryParam.attributeValues,"popular"!==this.queryParam.sortBy){const t=this.sortingOptions.find(t=&gt;t.value===this.queryParam.sortBy);this.sortingDefault=t}this.getList({page:this.queryParam.page,categorySlug:this.queryParam.categorySlug,brandIds:this.queryParam.brandIds,attributeValues:this.queryParam.attributeValues,keyword:this.queryParam.keyword,sortBy:this.queryParam.sortBy,minPrice:this.queryParam.minPrice,maxPrice:this.queryParam.maxPrice})}},n=l,u=(e("6f50"),e("2877")),c=Object(u["a"])(n,s,r,!1,null,"56bb3e66",null);a["default"]=c.exports},eb17:function(t,a,e){"use strict";e("8c9e")}}]);
//# sourceMappingURL=chunk-6bafe0ad.0d450a2e.js.map</pre></body></html>