1import{O as r,b as i}from"./vendor-vue-15488850.js";import{L as s}from"./index-e3a5a1c2.js";import a from"./ReFilterCategoryMobile-a9804efa.js";import{n as l}from"./vendor-splide-d9a079dc.js";import"./vendor-a9303273.js";import"./vendor-pswp-a811abc6.js";import"./storage-cbd59dc5.js";import"./integrations-segmentstream-d01b6c8e.js";import"./locales-ru-bba83fc0.js";import"./locales-cn-79b85608.js";import"./config-mapping-47fd6e48.js";import"./vendor-lodash-59d95206.js";import"./vendor-date-fns-8fd1b05b.js";import"./svg-icons-1599cbf9.js";import"./Radio-a70a06bf.js";const c={components:{ReFilterCategoryMobile:a,LeButton:s},directives:{ObserveVisibility:r},data(){return{isScrollTop:!1,isScrollBottom:!1}},computed:{...i("search/filtersModal",["activeCategoryId","categories"]),modalTitle(){return this.$t("base:filters.category")},submitButtonText(){return this.$t("base:button.choose")},rootCategory(){return{label:this.$t("base:filters.allCategories"),isActive:!1,id:"",children:this.categories}}},mounted(){this.init()},methods:{async init(){await this.$store.dispatch("search/filters/copyFiltersStateToSubmodule","search/filtersModal"),this.$emit("modalContentLoaded")},async changeCategoryId(o){this.$store.commit("search/filtersModal/setActiveCategoryId",o),await this.$store.dispatch("search/filtersModal/updateFilters",{onlyCategories:!0})},handleCloseClick(){this.$modal.close()},async applyFilters(){this.$store.state.search.filters.activeCategoryId!==this.activeCategoryId&&(this.$store.commit("search/filters/setActiveCategoryId",this.activeCategoryId),await this.$store.dispatch("search/update",{resetPage:!0})),this.$modal.close()},observeScrollTop(o){this.isScrollTop=!o},observeScrollBottom(o){this.isScrollBottom=!o}}};var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"re-filter-category-modal"},[t("div",{staticClass:"re-filter-category-modal__header",class:{"re-filter-category-modal__header--has-shadow":e.isScrollTop}},[t("h3",{staticClass:"re-filter-category-modal__header-title"},[e._v(` 2 `+e._s(e.modalTitle)+` 3 `)]),e._v(" "),t("LeButton",{staticClass:"re-filter-category-modal__header-close-button",attrs:{size:"link",appendIcon:"close-v4",theme:"secondary",isRounded:""},on:{click:function(v){return e.handleCloseClick()}}})],1),e._v(" "),t("div",{staticClass:"re-filter-category-modal__content"},[t("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.observeScrollTop,expression:"observeScrollTop"}]}),e._v(" "),e.categories.length?t("div",{staticClass:"re-filter-categories-mobile"},[t("ReFilterCategoryMobile",{attrs:{activeCategoryId:e.activeCategoryId??e.rootCategory.id,category:e.rootCategory},on:{changeCategoryId:e.changeCategoryId}})],1):e._e(),e._v(" "),t("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.observeScrollBottom,expression:"observeScrollBottom"}]})]),e._v(" "),t("div",{staticClass:"re-filter-category-modal__control",class:{"re-filter-category-modal__control--has-shadow":e.isScrollBottom}},[t("LeButton",{attrs:{theme:"primary",isFluid:"",isRounded:""},on:{click:e.applyFilters}},[e._v(` 4 `+e._s(e.submitButtonText)+` 5 `)])],1)])},d=[],m=l(c,n,d,!1,null,null,null,null);const M=m.exports;export{M as default}; 6//# sourceMappingURL=ReFilterCategoryModal-7f98a9c6.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.