(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{519:function(t,e,r){t.exports={price:"price_3RtD4",price_bold:"price_bold_2giOP",price_bonus:"price_bonus_v9IPl",price_large:"price_large_2QWvP",price_inverted:"price_inverted_3bAvh"}},520:function(t,e,r){t.exports={name:"name_1WF5g",name_inverted:"name_inverted_263OL"}},521:function(t,e,r){t.exports={control:"control_1-77u",control__count:"control__count_29ZsE",control__add:"control__add_2AoLP"}},522:function(t,e,r){t.exports={list:"list_26imc",label:"label_1-lwH",label_roundings_none:"label_roundings_none_GTqUN",label_roundings_small:"label_roundings_small_HYEHe",label_roundings_large:"label_roundings_large_3eSrH"}},524:function(t,e,r){"use strict";r(57);var l={name:"ProductPrice",props:{value:{type:Number,default:0},bold:{type:Boolean,default:!1},bonus:{type:Boolean,default:!1},large:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},computed:{currency:function(){return this.$store.state.settings.default_currency}}},n=r(526),o=r(4);var component=Object(o.a)(l,(function(){var t,e=this,r=e.$createElement;return(e._self._c||r)("div",{class:(t={"sw-text":!0},t[e.$style.price]=!0,t[e.$style.price_bold]=e.bold,t[e.$style.price_bonus]=e.bonus,t[e.$style.price_large]=e.large,t[e.$style.price_inverted]=e.inverted,t)},[e.currency&&!e.bonus?[e._v("\n        "+e._s(e.$n(e.value,{style:"currency",currency:e.currency}))+"\n    ")]:[e._v("\n        "+e._s(e.value)+"\n    ")]],2)}),[],!1,(function(t){this.$style=n.default.locals||n.default}),null,null);e.a=component.exports},526:function(t,e,r){"use strict";var l=r(519),n=r.n(l);r.d(e,"default",(function(){return n.a}))},529:function(t,e,r){t.exports={node:"node_2iLte",node_selected:"node_selected_1YhFy",node_root:"node_root_1_-jK",node_child:"node_child_2Czrk",node__counter:"node__counter_3bJ7c",node__caret:"node__caret_JQGNz"}},530:function(t,e,r){t.exports={subtree:"subtree_33qw7","show-all-link":"show-all-link_2E-yL"}},531:function(t,e,r){t.exports={tree__node:"tree__node_3Khr3",tree__back:"tree__back_1aJrm",tree__subtree:"tree__subtree_3_Xrl"}},532:function(t,e,r){t.exports={tree:"tree_1x2Ib",tree__subtree:"tree__subtree_17Zip"}},534:function(t,e,r){t.exports={product:"product_1HzlK",product__name:"product__name_3xOR-",product__price:"product__price_FGwoO",product__buy:"product__buy_xXaz1","product__add-to-cart-btn":"product__add-to-cart-btn_87B0b",preview:"preview_1eLZr",preview_roundings_none:"preview_roundings_none_1c7TZ",preview_roundings_small:"preview_roundings_small_1vfrj",preview_roundings_large:"preview_roundings_large_21K4i",preview__labels:"preview__labels_2Hpag","preview__image-wrapper":"preview__image-wrapper_3FHCV",preview__image:"preview__image_1TEdm","sw-image-placeholder":"sw-image-placeholder_3eCzt"}},540:function(t,e,r){"use strict";var l=r(11),n=r(92),o=r(22),c="novelty",d="popular",_="recommended",h="stock",f=Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},c,"red"),d,"orange"),_,"blue"),h,"green"),v={name:"ProductLabelList",props:{labels:{type:Array,default:function(){return[]}}},computed:{COLORS:function(){return f},ROUNDINGS:function(){return o.b},titles:function(){return Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},c,this.$t("labels_novelty")),d,this.$t("labels_popular")),_,this.$t("labels_recommended")),h,this.$t("labels_stock"))},styles:function(){return function(t){return{"--sw-color-main-800":n.a.get(t,800),"--sw-color-main-700":n.a.get(t,700),"--sw-color-main-600":n.a.get(t,600),"--sw-color-main-500":n.a.get(t,500),"--sw-color-main-400":n.a.get(t,400),"--sw-color-main-300":n.a.get(t,300),"--sw-color-main-200":n.a.get(t,200),"--sw-color-main-100":n.a.get(t,100),"--sw-color-main-000":n.a.get(t,0)}}}}},m=r(544),y=r(4);var component=Object(y.a)(v,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.$style.list},t._l(t.labels,(function(label,e){var l;return r("div",{key:e,class:(l={"sw-text":!0},l[t.$style.label]=!0,l[t.$style.label_roundings_none]=t.$simlaweb.settings.roundings===t.ROUNDINGS.NONE,l[t.$style.label_roundings_small]=t.$simlaweb.settings.roundings===t.ROUNDINGS.SMALL,l[t.$style.label_roundings_large]=t.$simlaweb.settings.roundings===t.ROUNDINGS.LARGE,l),style:t.styles(t.COLORS[label]||"black")},[t._v("\n        "+t._s(t.titles[label]||label)+"\n    ")])})),0)}),[],!1,(function(t){this.$style=m.default.locals||m.default}),null,null);e.a=component.exports},542:function(t,e,r){"use strict";var l=r(520),n=r.n(l);r.d(e,"default",(function(){return n.a}))},543:function(t,e,r){"use strict";var l=r(521),n=r.n(l);r.d(e,"default",(function(){return n.a}))},544:function(t,e,r){"use strict";var l=r(522),n=r.n(l);r.d(e,"default",(function(){return n.a}))},548:function(t,e,r){"use strict";var l={name:"ProductName",props:{title:{type:String,default:""},inverted:{type:Boolean,default:!1}}},n=r(542),o=r(4);var component=Object(o.a)(l,(function(){var t,e=this,r=e.$createElement;return(e._self._c||r)("div",{class:(t={"sw-text":!0},t[e.$style.name]=!0,t[e.$style.name_inverted]=e.inverted,t)},[e._v("\n    "+e._s(e.title)+"\n")])}),[],!1,(function(t){this.$style=n.default.locals||n.default}),null,null);e.a=component.exports},549:function(t,e,r){"use strict";r(57),r(134),r(17);var l=r(95),n={name:"ProductAddControl",props:{offerId:{type:Number,default:null},quantity:{type:Number,default:0},storeQuantity:{type:Number,default:0},light:{type:Boolean,default:!1},small:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},addToCartBtnClass:{type:String,default:""},productType:{type:String,default:null}},data:function(){return{cartItems:[]}},computed:{count:function(){var t,e=this;return(null===(t=this.cartItems.find((function(t){return t.offer.id===e.offerId})))||void 0===t?void 0:t.quantity)||0}},apollo:{cartItems:{query:l.h,variables:function(){return{siteCode:this.$store.state.siteCode}}}},methods:{change:function(t){this.$store.state.admin?this.$store.commit("modals/open","forbidden"):this.offerId&&this.$apollo.mutate({mutation:l.d,variables:{id:this.offerId,quantity:t},refetchQueries:[{query:l.h,variables:{siteCode:this.$store.state.siteCode}},{query:l.o,variables:{siteCode:this.$store.state.siteCode,code:this.$store.state.checkout.delivery.code,bonuses:this.$store.state.checkout.bonuses}}]})}}},o=r(543),c=r(4);var component=Object(c.a)(n,(function(){var t,e,r=this,l=r.$createElement,n=r._self._c||l;return n("div",{class:r.$style.control},[r.storeQuantity||"PRODUCT"!==r.productType?1===r.count&&"SERVICE"===r.productType?n("SwButton",{class:(t={},t[r.$style.control__add]=!0,t[r.addToCartBtnClass]=!!r.addToCartBtnClass,t),attrs:{light:!r.light,small:r.small,disabled:r.disabled},on:{click:function(t){return r.change(0)}}},[r._v("\n        "+r._s(r.$t("added_to_cart"))+"\n    ")]):r.count?[n("SwInputNumber",{attrs:{value:r.count,max:r.storeQuantity,min:0,size:r.small?"small":"large",inverted:r.inverted,disabled:!r.storeQuantity||r.disabled},on:{changeInputNumber:r.change}}),r._v(" "),r.$route.name.includes("catalog-details-slug")?n("div",{class:[r.$style.control__count,"sw-text"]},[r._v("\n            "+r._s(r.$tc("products_in_cart",r.count,{count:r.count}))+"\n        ")]):r._e()]:n("SwButton",{class:(e={},e[r.$style.control__add]=!0,e[r.addToCartBtnClass]=!!r.addToCartBtnClass,e),attrs:{light:r.light,small:r.small,inverted:r.inverted,transparent:r.inverted,disabled:r.disabled},on:{click:function(t){return r.change(1)}}},[r._v("\n        "+r._s(r.$t("add_to_cart"))+"\n    ")]):n("SwButton",{attrs:{light:r.light,small:r.small,inverted:r.inverted,transparent:r.inverted,disabled:""}},[r._v("\n        "+r._s(r.$t("product_out_of_stock"))+"\n    ")])],2)}),[],!1,(function(t){this.$style=o.default.locals||o.default}),null,null);e.a=component.exports},568:function(t,e,r){t.exports={header:"header_1njSg",header_active:"header_active_1GBcj",header__text:"header__text_3_SsI",header__caret:"header__caret_1tqe2",select:"select_37puj",select__popup:"select__popup_24Udj",select_roundings_none:"select_roundings_none_2CeFf",select_roundings_small:"select_roundings_small_3Yvih",select_roundings_large:"select_roundings_large_q3EZF",select__item:"select__item_1Kr-R",select__item_selected:"select__item_selected_1xyCr",select__dropdown:"select__dropdown_1XyNh"}},569:function(t,e,r){t.exports={"search-title":"search-title_e5khC","search-title__query-string":"search-title__query-string_34wHG","search-title__text":"search-title__text_o80E9","search-title__no-results-mobile":"search-title__no-results-mobile_1Hver","search-title__results":"search-title__results_3o46q","d-inline-block-desktop":"d-inline-block-desktop_1WDGA","d-inline-block-mobile":"d-inline-block-mobile_BZhY2"}},570:function(t,e,r){t.exports={catalog:"catalog_-QFqb",catalog__header:"catalog__header_3Yp0a","catalog__header-search":"catalog__header-search_2-SqH","catalog__header-caption":"catalog__header-caption_2Tqi5",catalog__separator:"catalog__separator_2lAUq","catalog__products-count":"catalog__products-count_2-aET","catalog__header-title-wrap":"catalog__header-title-wrap_1RHAd","catalog__header-title":"catalog__header-title_3ku_-",search:"search_1FXlM","catalog__header-filters":"catalog__header-filters_1Bdx8","catalog__header-filters-button":"catalog__header-filters-button_1rvEO","catalog__header-actions":"catalog__header-actions_7kHg5","catalog__header-reset-all":"catalog__header-reset-all_2Cvf_","catalog__header-sorting":"catalog__header-sorting_mAhJa","sort-popup":"sort-popup_2V-w6",catalog__body:"catalog__body_3ZUxO",catalog__aside:"catalog__aside_gmvq-",catalog__tree:"catalog__tree_2PtKg",catalog__main:"catalog__main_1ax_9",catalog__list:"catalog__list_13YQn",catalog__list_wide:"catalog__list_wide_3DieV",catalog__list_empty:"catalog__list_empty_2zwNU","catalog__list-body":"catalog__list-body_1nBlL","catalog__list-item":"catalog__list-item_2dW01",catalog__image:"catalog__image_2FvN9",catalog_loading:"catalog_loading_31Znq",catalog_empty:"catalog_empty_1JiTD"}},631:function(t,e,r){"use strict";r(32),r(31),r(34),r(17),r(38),r(27),r(39);var l=r(11),n=r(9),o=(r(43),r(204));function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,l)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){Object(l.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _={name:"CatalogFiltersResetter",methods:{reset:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$store.commit("catalog/sort",o.SortMethodsAvailable[t.$store.state.catalog.defaultSort]),t.$store.commit("catalog/filters",[]),e.next=4,t.$router.push({path:"/catalog",query:{},params:d({},t.$route.params)});case 4:case"end":return e.stop()}}),e)})))()}},render:function(t){var e,r,l=(e=this,r={reset:this.reset},e.$scopedSlots.default?e.$scopedSlots.default(r)||[]:e.$slots.default||[]);return l.length<=1?l[0]:t("div",{on:this.$listeners},l)}},h=r(4),component=Object(h.a)(_,undefined,undefined,!1,null,null,null);e.a=component.exports},632:function(t,e,r){"use strict";var l=r(4),component=Object(l.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",t._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5"}},t.$listeners),[r("path",{attrs:{d:"M7.862 3.94A.518.518 0 018 4.295c0 .133-.05.261-.138.355l-.187.2A.442.442 0 017.34 5H.66a.442.442 0 01-.335-.15l-.187-.2A.518.518 0 010 4.295c0-.133.05-.26.138-.355L3.674.151A.434.434 0 014 0c.124 0 .242.055.327.151l3.535 3.79z",fill:"currentColor"}})])}),[],!1,null,null,null);e.a=component.exports},636:function(t,e,r){"use strict";var l=r(529),n=r.n(l);r.d(e,"default",(function(){return n.a}))},637:function(t,e,r){"use strict";var l=r(530),n=r.n(l);r.d(e,"default",(function(){return n.a}))},638:function(t,e,r){"use strict";var l=r(531),n=r.n(l);r.d(e,"default",(function(){return n.a}))},639:function(t,e,r){"use strict";var l=r(532),n=r.n(l);r.d(e,"default",(function(){return n.a}))},641:function(t,e,r){"use strict";var l=r(534),n=r.n(l);r.d(e,"default",(function(){return n.a}))},646:function(t,e,r){"use strict";r(32),r(31),r(34),r(17),r(38),r(27),r(39);var l=r(11),n=r(9),o=(r(43),r(48),r(203),r(57),r(257)),c=r(632),d={name:"TreeNode",components:{SvgIconCaretDown:o.a,SvgIconCaretUp:c.a},props:{node:{type:Object,required:!0},level:{type:Number,default:0},active:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},computed:{isLeaf:function(){return!this.node.children||0===this.node.children.length}}},_=r(636),h=r(4);var f={name:"TreeSubtree",components:{TreeNode:Object(h.a)(d,(function(){var t,e=this,r=e.$createElement,l=e._self._c||r;return l("div",{class:(t={},t[e.$style.node]=!0,t[e.$style.node_selected]=e.isSelected,t[e.$style.node_root]=0===e.node.depth,t[e.$style.node_child]=1===e.level,t),on:{click:function(t){return e.$emit("toggle")}}},[l("div",[l("div",{staticClass:"sw-text"},[e._v("\n            "+e._s(e.node.name)+"\n        ")]),e._v(" "),e.isLeaf?e._e():l("div",{class:[e.$style.node__counter,"sw-text"]},[e._v("\n            "+e._s(e.node.count)+"\n        ")])]),e._v(" "),e.isLeaf?e._e():[e.active?l("SvgIconCaretUp",{class:e.$style.node__caret}):l("SvgIconCaretDown",{class:e.$style.node__caret})]],2)}),[],!1,(function(t){this.$style=_.default.locals||_.default}),null,null).exports},props:{item:{type:Object,default:function(){return{}}},selectedId:{type:Number,default:0},level:{type:Number,default:0}},data:function(){return{isOpen:!1,showAll:!1,selected:this.selectedId}},computed:{isLeaf:function(){return!this.item.children||0===this.item.children.length}},watch:{selectedId:function(){this.isOpen=this.item.id===this.selectedId}},mounted:function(){this.isOpen=this.item.id===this.selected},methods:{toggle:function(t){this.isLeaf?this.$emit("closeModal"):this.isOpen=!this.isOpen,this.setSelected(t)},setSelected:function(t){this.selected=t,this.$emit("selectCategory",this.selected)}}},v=r(637);var m=Object(h.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("li",[r("TreeNode",{attrs:{node:t.item,level:t.level,active:t.isOpen,"is-selected":t.selectedId===t.item.id},on:{toggle:function(e){return t.toggle(t.item.id)}}}),t._v(" "),t.isLeaf?t._e():[r("ul",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],class:t.$style.subtree},[t._l(t.item.children,(function(e,l){return[r("TreeSubtree",{directives:[{name:"show",rawName:"v-show",value:l<10||t.showAll,expression:"(index < 10) || showAll"}],key:l,attrs:{item:e,level:t.level+1},on:{closeModal:function(e){return t.$emit("closeModal")},selectCategory:function(e){return t.setSelected(e)}}})]}))],2),t._v(" "),t.item.children&&t.item.children.length>10?r("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],class:t.$style["show-all-link"],on:{click:function(e){t.showAll=!t.showAll}}},[r("div",{staticClass:"sw-text"},[t._v("\n                "+t._s(t.showAll?t.$t("text_hide"):t.$t("text_view_all"))+"\n            ")])]):t._e()]],2)}),[],!1,(function(t){this.$style=v.default.locals||v.default}),null,null).exports,y={name:"TreeInDepth",components:{TreeSubtree:m,SvgIconBack:Object(h.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",t._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"}},t.$listeners),[r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.084 17.368a.5.5 0 01-.707.028l-5.454-5.028a.5.5 0 010-.736l5.454-5.028a.5.5 0 01.707.028l.677.736a.5.5 0 01-.028.706L8.56 11h9.94a.5.5 0 01.5.5v1a.5.5 0 01-.5.5H8.56l3.173 2.926a.5.5 0 01.028.706l-.677.736z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},props:{tree:{type:Array,default:function(){return[]}},selectedId:{type:Number,default:0}},computed:{selectedItem:function(){return this.findNode(this.tree,this.selectedId)},parent:function(){if(this.selectedItem&&null!==this.selectedItem.parent)return this.findNode(this.tree,this.selectedItem.parent.id)}},methods:{findNode:function(t,e){for(var i=0;i<t.length;i++)if(t[i].id===e)return t[i];for(var r=0;r<t.length;r++){var l=this.findNode(t[r].children||[],e);if(void 0!==l)return l}}}},$=r(638);function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,l)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){Object(l.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var S={name:"CatalogTree",components:{TreeSubtree:m,TreeInDepth:Object(h.a)(y,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"tree"},[t.parent?r("div",{class:t.$style.tree__node,on:{click:function(e){return t.$emit("selectCategory",t.parent.id)}}},[r("SvgIconBack",{class:t.$style.tree__back}),t._v(" "),r("div",{staticClass:"sw-text"},[t._v("\n            "+t._s(t.$t("text_back"))+"\n        ")])],1):t._e(),t._v(" "),r("ul",{class:t.$style.tree__subtree},t._l(t.parent.children,(function(e,l){return r("TreeSubtree",{key:l,attrs:{item:e,"selected-id":t.selectedId},on:{selectCategory:function(e){return t.$emit("selectCategory",e)},closeModal:function(e){return t.$emit("closeModal")}}})})),1)])}),[],!1,(function(t){this.$style=$.default.locals||$.default}),null,null).exports},data:function(){return{selectedId:0,productGroupsTree:null,update:0}},apollo:{productGroupsTree:{query:r(95).u,variables:function(){return{siteCode:this.$store.state.siteCode}}}},computed:{depth:function(){var t=this.getNode(this.productGroupsTree,this.selectedId);return t?t.depth:0}},watch:{productGroupsTree:{immediate:!0,handler:function(){this.init()}}},methods:{init:function(){var t=this.$route.params.product_group_slug,e=this.productGroupsTree||[],r=this.getNodeBySlug(e,t);this.selectedId=r?r.id:0,this.$emit("category-name",(null==r?void 0:r.name)||""),this.$store.commit("catalog/setCurrentCategoryId",this.selectedId),this.selectedId&&this.setSelected(this.selectedId)},setSelected:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var l;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.selectedId=t,l=e.getNode(e.productGroupsTree,e.selectedId),e.$nextTick((function(){e.update++})),!l){r.next=7;break}return e.$store.commit("catalog/setCurrentCategoryId",e.selectedId),r.next=7,e.$router.push({name:"catalog-product_group_slug",params:O(O({},e.$route.params),{},{product_group_slug:l.slug}),query:O(O({},e.$route.query),{},{sort:e.$route.query.sort})});case 7:case"end":return r.stop()}}),r)})))()},getNode:function(t,e){return this.findNode(t||[],(function(t){return t.id===e}))},getNodeBySlug:function(t,e){return this.findNode(t||[],(function(t){return t.slug===e}))},findNode:function(t,e){if(t){for(var i=0;i<t.length;i++)if(e(t[i]))return t[i];for(var r=0;r<t.length;r++){var l=this.findNode(t[r].children,e);if(l)return l}}},close:function(){this.$store.commit("modals/close","catalogTree")}}},C=r(639);var x=Object(h.a)(S,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.$style.tree},[0===t.depth?r("ul",{class:t.$style.tree__subtree},t._l(t.productGroupsTree,(function(e,l){return r("TreeSubtree",{key:l,attrs:{item:e,"selected-id":t.selectedId},on:{selectCategory:function(e){return t.setSelected(e)},closeModal:t.close}})})),1):r("TreeInDepth",{attrs:{tree:t.productGroupsTree,"selected-id":t.selectedId},on:{selectCategory:function(e){return t.setSelected(e)},closeModal:t.close}})],1)}),[],!1,(function(t){this.$style=C.default.locals||C.default}),null,null);e.a=x.exports},650:function(t,e,r){"use strict";r(134),r(17),r(57);var l=r(549),n=r(540),o=r(548),c=r(524),d=r(22),_={name:"ProductItem",components:{ProductAddControl:l.a,ProductLabelList:n.a,ProductName:o.a,ProductPrice:c.a},props:{name:{type:String,default:"Название товара"},type:{type:String},slug:{type:String,default:""},price:{type:Number,default:null},offers:{type:Array,required:!0,validator:function(t){return t.length>0}},storeQuantity:{type:Number,default:null},like:{type:Boolean,default:!1},image:{type:String,default:""},disabled:{type:Boolean,default:!1},labels:{type:Array,default:function(){return[]}},light:{type:Boolean,default:!1},small:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1}},computed:{ROUNDINGS:function(){return d.b},mainOffer:function(){var t,e,r;return null!==(e=this.offers,t=null!==(r=e.find((function(t){return t.quantity>0})))&&void 0!==r?r:null)&&void 0!==t?t:this.offers[0]},mainOfferPrice:function(){return null!==this.price?this.price:this.mainOffer.price},mainOfferQuantity:function(){return null!==this.storeQuantity?this.storeQuantity:this.mainOffer.quantity}}},h=r(641),f=r(4);var component=Object(f.a)(_,(function(){var t,e=this,r=e.$createElement,l=e._self._c||r;return l("div",e._g({class:e.$style.product},e.$listeners),[l("NuxtLink",{class:(t={},t[e.$style.preview]=!0,t[e.$style.preview_roundings_none]=e.$simlaweb.settings.roundings===e.ROUNDINGS.NONE,t[e.$style.preview_roundings_small]=e.$simlaweb.settings.roundings===e.ROUNDINGS.SMALL,t[e.$style.preview_roundings_large]=e.$simlaweb.settings.roundings===e.ROUNDINGS.LARGE,t),attrs:{to:{name:"catalog-details-slug",params:{slug:e.slug}}}},[l("ProductLabelList",{class:e.$style.preview__labels,attrs:{labels:e.labels}}),e._v(" "),l("div",{class:e.$style["preview__image-wrapper"]},[l("SwImage",{class:e.$style.preview__image,attrs:{src:e.image,alt:"Photo",width:"-",height:"246"}})],1)],1),e._v(" "),l("div",{class:e.$style.product__name},[l("ProductName",{attrs:{title:e.name,inverted:e.inverted}})],1),e._v(" "),l("ProductPrice",{class:e.$style.product__price,attrs:{value:e.mainOfferPrice,inverted:e.inverted,bold:"",large:""}}),e._v(" "),l("ProductAddControl",{class:e.$style.product__buy,attrs:{"add-to-cart-btn-class":e.$style["product__add-to-cart-btn"],"offer-id":e.mainOffer.id,"store-quantity":e.mainOfferQuantity,light:e.light,small:e.small,inverted:e.inverted,disabled:e.disabled,"product-type":e.type}})],1)}),[],!1,(function(t){this.$style=h.default.locals||h.default}),null,null);e.a=component.exports},701:function(t,e,r){"use strict";var l=r(568),n=r.n(l);r.d(e,"default",(function(){return n.a}))},702:function(t,e,r){"use strict";var l=r(569),n=r.n(l);r.d(e,"default",(function(){return n.a}))},703:function(t,e,r){"use strict";var l=r(570),n=r.n(l);r.d(e,"default",(function(){return n.a}))},777:function(t,e,r){"use strict";r.r(e);r(32),r(31),r(34),r(38),r(27),r(39);var l=r(11),n=(r(17),r(44),r(53),r(57),r(203),r(63),r(48),r(74),r(96),r(59),r(646)),o=r(650),c=r(9),d=(r(43),r(134),r(257)),_=r(354),h=r(204),f=r(22);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,l)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){Object(l.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var y={name:"SortSelect",components:{SvgIconCaret:d.a,SvgIconCheckMark:_.a},props:{sorting:{type:String,default:h.SortType.New},popupClass:{type:String,default:""}},data:function(){return{expanded:!1}},computed:{ROUNDINGS:function(){return f.b},selection:function(){var t=this;return this.variants.find((function(e){return e.id===t.sorting}))},variants:function(){return[m(m({},h.SortMethodsAvailable[h.SortType.New]),{},{name:this.$t("sort_novelty")}),m(m({},h.SortMethodsAvailable[h.SortType.Max]),{},{name:this.$t("sort_descending")}),m(m({},h.SortMethodsAvailable[h.SortType.Min]),{},{name:this.$t("sort_ascending")})]}},mounted:function(){var t=this;this.change(this.sorting);var e=function(e){t.$refs.header===e.target||t.$refs.header.contains(e.target)?t.expanded=!t.expanded:t.expanded=!1};document.addEventListener("click",e),this.$once("hook:destroyed",(function(){document.removeEventListener("click",e)}))},methods:{change:function(t){var e=this;return Object(c.a)(regeneratorRuntime.mark((function r(){var l,n,o,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.expanded=!1,n=null===(l=e.$store.state.catalog.sort)||void 0===l?void 0:l.id,o=e.variants.find((function(e){return e.id===t}))||e.variants[0],e.$emit("change",o),e.$store.state.admin&&!e.$route.path.includes("preview")){r.next=15;break}if(c=m({},e.$route.query),n&&n!==o.id&&delete c.page,o.id!==e.$store.state.catalog.defaultSort){r.next=13;break}return delete c.sort,r.next=11,e.$router.push({path:e.$route.path,query:c});case 11:r.next=15;break;case 13:return r.next=15,e.$router.push({path:e.$route.path,query:m(m({},c),{},{sort:o.id})});case 15:case"end":return r.stop()}}),r)})))()}}},$=r(701),w=r(4);var O=Object(w.a)(y,(function(){var t,e,r,l=this,n=l.$createElement,o=l._self._c||n;return o("div",{class:(t={},t[l.$style.select]=!0,t[l.$style.select_roundings_none]=l.$simlaweb.settings.roundings===l.ROUNDINGS.NONE,t[l.$style.select_roundings_small]=l.$simlaweb.settings.roundings===l.ROUNDINGS.SMALL,t[l.$style.select_roundings_large]=l.$simlaweb.settings.roundings===l.ROUNDINGS.LARGE,t)},[o("div",{ref:"header",class:(e={},e[l.$style.header]=!0,e[l.$style.header_active]=l.expanded,e)},[o("div",{class:[l.$style.header__text,"sw-text"]},[l._v("\n            "+l._s(l.selection?l.selection.name:"")+"\n        ")]),l._v(" "),o("SvgIconCaret",{class:l.$style.header__caret})],1),l._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:l.expanded,expression:"expanded"}],class:(r={"sw-popup":!0},r[l.$style.select__popup]=!0,r[l.popupClass]=l.popupClass,r)},l._l(l.variants,(function(t){var e;return o("div",{key:t.id,class:(e={},e[l.$style.select__item]=!0,e[l.$style.select__item_selected]=t.id===l.sorting,e),on:{click:function(e){return l.change(t.id)}}},[o("div",{staticClass:"sw-text"},[l._v("\n                "+l._s(t.name)+"\n            ")]),l._v(" "),t.id===l.sorting?o("SvgIconCheckMark"):l._e()],1)})),0)])}),[],!1,(function(t){this.$style=$.default.locals||$.default}),null,null).exports,filter=Object(w.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",t._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},t.$listeners),[r("path",{attrs:{d:"M6.333 9.358c0-.444-.176-.87-.491-1.183l-4.85-4.85A1.667 1.667 0 01.5 2.142v-.975c0-.46.373-.834.833-.834h13.334c.46 0 .833.373.833.834v.975c0 .444-.177.87-.492 1.183l-4.85 4.85c-.315.313-.492.739-.491 1.183v3.059c0 .524-.247 1.018-.667 1.333l-2 1.5a.417.417 0 01-.667-.333V9.358z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,S=Object(w.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",t._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"12",viewBox:"0 0 15 12"}},t.$listeners),[r("path",{attrs:{d:"M1.25.167H.417A.417.417 0 000 .583v.834c0 .23.187.416.417.416h.833c.23 0 .417-.186.417-.416V.583A.417.417 0 001.25.167zm2.5 0h10.833c.23 0 .417.186.417.416v.834c0 .23-.187.416-.417.416H3.75a.417.417 0 01-.417-.416V.583c0-.23.187-.416.417-.416zM0 5.583v.834c0 .23.187.416.417.416h.833c.23 0 .417-.186.417-.416v-.834a.417.417 0 00-.417-.416H.417A.417.417 0 000 5.583zm3.75-.416h10.833c.23 0 .417.186.417.416v.834c0 .23-.187.416-.417.416H3.75a.417.417 0 01-.417-.416v-.834c0-.23.187-.416.417-.416zM0 10.583v.834c0 .23.187.416.417.416h.833c.23 0 .417-.186.417-.416v-.834a.417.417 0 00-.417-.416H.417a.417.417 0 00-.417.416zm3.75-.416h10.833c.23 0 .417.186.417.416v.834c0 .23-.187.416-.417.416H3.75a.417.417 0 01-.417-.416v-.834c0-.23.187-.416.417-.416z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,C=Object(w.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",t._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"278",height:"232",viewBox:"0 0 278 232",fill:"none"}},t.$listeners),[r("g",{attrs:{"clip-path":"url(#sprite-no-products_svg__clip0_10335_66822)"}},[r("path",{attrs:{d:"M12.894 221.072c3.849 7.149 12.018 10.218 12.018 10.218s1.929-8.522-1.92-15.671c-3.85-7.15-12.019-10.219-12.019-10.219s-1.928 8.523 1.92 15.672z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M15.54 218.719c6.949 4.188 9.625 12.505 9.625 12.505s-8.59 1.528-15.54-2.659C2.676 224.377 0 216.06 0 216.06s8.59-1.528 15.54 2.659z",fill:"#C7CDD4"}}),r("path",{attrs:{d:"M171.34 11.138h-43.358v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M159.572 11.603h-.619v5.738h.619v-5.738zM140.68 11.603h-.619v5.738h.619v-5.738zM193.329 40.914h-43.358v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M162.359 35.331h-.619v5.738h.619v-5.738zM181.251 35.331h-.62v5.738h.62v-5.738zM250.933 54.872h-43.358v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M219.963 49.289h-.619v5.738h.619v-5.738zM238.855 49.289h-.62v5.738h.62v-5.738zM246.597 198.792h-43.358v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M215.627 193.209h-.619v5.738h.619v-5.738zM234.519 193.209h-.62v5.738h.62v-5.738zM172.579 99.227h-43.358v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M141.609 93.643h-.619v5.739h.619v-5.739zM160.501 93.643h-.62v5.739h.62v-5.739zM186.206 173.978h-43.358v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M155.236 168.395h-.619v5.738h.619v-5.738zM174.128 168.395h-.62v5.738h.62v-5.738zM255.579 151.335h-43.358v.621h43.358v-.621z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M224.609 145.752h-.62v5.739h.62v-5.739zM243.5 145.752h-.619v5.739h.619v-5.739z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M112.13 217.798H38.797v-.528h72.805v-25.627h-66.64l-3.237-6.754.476-.229 3.093 6.455h66.836v26.683z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M48.557 230.743c3.06 0 5.54-2.484 5.54-5.548a5.544 5.544 0 00-5.54-5.548 5.544 5.544 0 00-5.54 5.548 5.544 5.544 0 005.54 5.548zM103.161 230.743a5.544 5.544 0 005.54-5.548 5.544 5.544 0 00-5.54-5.548 5.544 5.544 0 00-5.54 5.548 5.544 5.544 0 005.54 5.548zM167.524 110.802a3.433 3.433 0 003.43-3.435 3.432 3.432 0 00-3.43-3.434 3.432 3.432 0 00-3.429 3.434 3.433 3.433 0 003.429 3.435z",fill:"#3F3D56"}}),r("path",{attrs:{d:"M119.973 182.925H37.547l-17.835-58.386H138.34l-.108.344-18.259 58.042zm-82.036-.528h81.649l18.035-57.329H20.425l17.512 57.329z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M113.538 179.887H41.141l-15.665-51.781H129.67l-.095.305-16.038 51.476z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M139.818 119.323l-.51-.135 3.481-13.142h20.251v.529h-19.845l-3.377 12.748zM132.412 142.24H25.475v.528h106.937v-.528zM126.288 161.706H31.422v.529h94.866v-.529z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M79.288 124.803h-.527v57.858h.527v-57.858zM102.909 124.787l-3.787 57.856.526.034 3.787-57.856-.526-.034zM55.151 124.786l-.526.035 3.765 57.857.527-.034-3.766-57.858zM277.49 231.078H0v.621h277.49v-.621z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M184.398 19.192s4.527 12.905 1.741 14.89c-2.786 1.986 9.403 18.2 9.403 18.2l14.627-3.97-8.01-13.567s-1.045-13.567-1.045-15.553c0-1.985-16.716 0-16.716 0z",fill:"#A0616A"}}),r("path",{attrs:{opacity:".1",d:"M184.398 19.192s4.527 12.905 1.741 14.89c-2.786 1.986 9.403 18.2 9.403 18.2l14.627-3.97-8.01-13.567s-1.045-13.567-1.045-15.553c0-1.985-16.716 0-16.716 0z",fill:"#000"}}),r("path",{attrs:{d:"M176.799 111.183s-1.322 16.545 0 25.148c1.321 8.603 3.304 32.428 3.304 32.428s0 45.003 7.268 45.664c7.269.662 12.555 1.324 13.216-1.323.661-2.647-3.304-3.971-1.321-5.295 1.982-1.323 2.643-5.956 0-11.25-2.643-5.295 0-58.9 0-58.9l12.555 33.751s1.321 27.796 2.643 31.767c1.321 3.971-1.322 11.25 3.304 11.912 4.625.662 9.912-3.309 12.555-4.632 2.643-1.324-3.965-1.324-2.643-1.986 1.321-.662 5.286-2.647 3.964-3.309-1.321-.662-2.643-32.428-2.643-32.428s-3.634-67.835-8.26-70.482c-4.625-2.647-7.599 1.913-7.599 1.913l-36.343 7.022z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M188.693 211.776v5.295s-5.947 14.391 0 14.391 10.573 1.492 10.573-.494V213.1l-10.573-1.324zM227.68 211.767v5.294s5.947 14.392 0 14.392c-5.948 0-10.573 1.491-10.573-.494V213.09l10.573-1.323z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M193.649 28.788c6.569 0 11.894-5.333 11.894-11.912 0-6.579-5.325-11.912-11.894-11.912s-11.894 5.333-11.894 11.912c0 6.58 5.325 11.912 11.894 11.912z",fill:"#A0616A"}}),r("path",{attrs:{d:"M190.015 39.046s3.304 9.927 8.59 7.942l5.287-1.986 9.251 63.533s-7.269 10.589-17.842 3.971c-10.572-6.618-5.286-73.46-5.286-73.46z",fill:"#EDF1F4"}}),r("path",{attrs:{d:"M199.266 37.06l2.973-6.286s17.511 8.272 20.154 10.92c2.643 2.647 2.643 6.617 2.643 6.617l-4.625 16.545s1.321 36.399 1.321 37.723c0 1.324 4.626 8.603 1.322 5.956-3.304-2.647-3.965-5.294-6.608-1.323-2.643 3.97-8.59 8.603-8.59 8.603l-8.59-78.754z",fill:"#3F3D56"}}),r("path",{attrs:{d:"M222.394 84.71l-1.983 18.531s-11.894 10.589-9.251 11.25c2.643.662 3.965-1.985 3.965-1.985s4.625 4.633 7.269 1.985c2.643-2.647 9.251-27.795 9.251-27.795l-9.251-1.986z",fill:"#A0616A"}}),r("path",{attrs:{d:"M193.902.04c-2.637-.094-5.458-.14-7.682 1.282a11.254 11.254 0 00-2.654 2.603c-2.166 2.742-4.037 6.19-3.232 9.592l.934-.365a6.14 6.14 0 01-.59 2.625c.131-.383.572.237.454.624l-1.029 3.381c1.692-.621 3.796.637 4.053 2.422.118-3.927.525-8.43 3.706-10.73 1.604-1.16 3.634-1.513 5.587-1.827 1.802-.29 3.691-.567 5.417.027s3.196 2.362 2.804 4.147c.796-.274 1.686.281 2.08 1.027.393.745.414 1.624.425 2.467.849.6 1.814-.592 2.16-1.573.811-2.303 1.533-4.754 1.095-7.156-.437-2.403-2.391-4.699-4.83-4.707a1.7 1.7 0 00.441-1.194l-2.01-.17a2.22 2.22 0 001.327-.7c-.807.889-7.151-1.728-8.456-1.775z",fill:"#2F2E41"}}),r("path",{attrs:{d:"M193.319 35.075s-5.38-5.279-7.316-4.956c-1.936.324-4.579 4.956-4.579 4.956s-15.859 5.295-15.198 10.59c.661 5.294 7.93 31.104 7.93 31.104s5.947 31.105.66 34.414c-5.286 3.309 25.11 11.912 25.771 7.941.661-3.971 1.983-43.679 0-49.635-1.982-5.956-7.268-34.414-7.268-34.414zM216.446 45.664h8.171s5.706 25.149 6.367 27.796c.66 2.647 1.982 15.221 1.321 15.221s-13.876-2.647-13.876-.661l-1.983-42.356z",fill:"#3F3D56"}}),r("path",{attrs:{d:"M216.17 107.94h-31.28c-3.052-14.063-3.307-27.65 0-40.633h31.28c-5.048 12.749-5.363 26.243 0 40.633z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M172.173 90.667l9.251 3.97s17.842 2.648 17.842-4.632c0-7.28-17.842-3.309-17.842-3.309l-5.947-1.904-3.304 5.875z",fill:"#A0616A"}}),r("path",{attrs:{d:"M174.156 41.693l-7.93 1.986-5.947 35.075s-1.982 9.265 1.322 9.927c3.304.662 12.555 5.956 12.555 5.956s1.321-9.927 3.965-9.927l-6.608-5.294 3.964-23.163-1.321-14.56z",fill:"#3F3D56"}}),r("path",{attrs:{d:"M62.017 109.462H18.659v.621h43.358v-.621z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M31.047 103.879h-.62v5.738h.62v-5.738zM49.938 103.879h-.62v5.738h.62v-5.738zM77.192 17.651H33.834v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M65.424 18.116h-.62v5.739h.62v-5.739zM46.532 18.116h-.62v5.739h.62v-5.739zM120.859 78.755H77.501v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M109.091 79.22h-.619v5.739h.619V79.22zM90.2 79.22h-.62v5.739h.62V79.22zM47.151 78.445H3.793v.62h43.358v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M35.383 78.91h-.62v5.738h.62V78.91zM16.491 78.91h-.62v5.738h.62V78.91zM99.18 47.428H55.824v.62H99.18v-.62z",fill:"#F2F2F2"}}),r("path",{attrs:{d:"M68.21 41.845h-.619v5.738h.62v-5.738zM87.102 41.845h-.62v5.738h.62v-5.738z",fill:"#F2F2F2"}})]),r("defs",[r("clipPath",{attrs:{id:"sprite-no-products_svg__clip0_10335_66822"}},[r("path",{attrs:{fill:"#fff",d:"M0 0h277.49v232H0z"}})])])])}),[],!1,null,null,null).exports,x={name:"SearchTitle",props:{query:{type:String,default:""},count:{type:Number,default:0}}},M=r(702);var j=Object(w.a)(x,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.$style["search-title"]},[r("h1",{class:[t.$style["search-title__text"],"sw-title"]},[t._v("\n        "+t._s(t.$t("search_title_desktop"))+"\n    ")]),t._v(" "),0===t.count?r("h4",{class:[t.$style["search-title__no-results-mobile"],t.$style["d-inline-block-mobile"],"sw-title"]},[t._v("\n        "+t._s(t.$t("search_noresults_mobile"))+"\n    ")]):t._e(),t._v(" "),t.query?r("h3",{class:[t.$style["search-title__query-string"],"sw-title"]},[t._v("\n        «"+t._s(t.query)+"»\n    ")]):t._e(),t._v(" "),t.count>0?r("h5",{class:[t.$style["search-title__results"],"sw-title"]},[t._v("\n        "+t._s(t.$t("search_results"))+"\n        "+t._s(t.count)+"\n        "+t._s(1===t.count?t.$t("search_results_count"):t.$t("search_results_counts"))+"\n    ")]):r("h5",{class:[t.$style["search-title__results"],t.$style["d-inline-block-desktop"],"sw-title"]},[t._v("\n        "+t._s(t.$t("search_noresults"))+"\n    ")])])}),[],!1,(function(t){this.$style=M.default.locals||M.default}),null,null).exports,z=r(631),F=r(95),N=r(148);function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,l)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach((function(e){Object(l.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var k={cheap_first:"min",expensive_first:"max",novelty:"new"},E={name:"BlockCatalog",components:{CatalogTree:n.a,FilterForm:function(){return r.e(6).then(r.bind(null,769))},ProductItem:o.a,SearchTitle:j,SortSelect:O,CatalogFiltersResetter:z.a,SvgIconFilter:filter,SvgIconList:S,SvgSpriteNoProducts:C},props:{pivotId:{type:[Number,String],default:null},title:{type:String,default:""},isSearch:{type:Boolean,default:!1},config:{type:[Object,Array],default:function(){return{}}}},data:function(){return{filters:null,products:null,popularProducts:null,isPreviewDefaultSort:!0,currentCategoryName:""}},apollo:{filters:{query:F.i,variables:function(){return{siteCode:this.$store.state.siteCode,slug:this.$route.params.product_group_slug||""}}},popularProducts:{query:F.j,variables:function(){return{siteCode:this.$store.state.siteCode,sort:"novelty",limit:8}},update:function(data){return data.products}},products:{query:F.j,variables:function(){var t,e;return{siteCode:this.$store.state.siteCode,product_group_slug:this.$route.params.product_group_slug||"",search:this.$store.state.catalog.term,filters:this.$store.state.catalog.filters,sort:(null===(t=this.$store.state.catalog.sort)||void 0===t?void 0:t.sort)||this.$store.state.settings.default_sort,order:null===(e=this.$store.state.catalog.sort)||void 0===e?void 0:e.order,page:this.$store.state.catalog.page,limit:24}}}},computed:I(I({},Object(N.b)({hasCurrentCategoryId:function(t){return!!t.catalog.currentCategoryId},hasFilters:function(t){return!!t.catalog.filters.length},hasSort:function(t){var e;return(null===(e=t.catalog.sort)||void 0===e?void 0:e.id)!==t.catalog.defaultSort}})),{},{showResetButton:function(){return this.hasCurrentCategoryId||this.hasFilters||this.hasSort},sorting:function(){var t,e=k[this.config.default_sorting]||"new",r=(null===(t=this.$store.state.catalog.sort)||void 0===t?void 0:t.id)||e;return this.$store.state.admin&&this.isPreviewDefaultSort?e:r},isEmpty:function(){return!(this.$store.state.catalog.filters.length||this.$apollo.queries.products.loading||this.products&&0!==this.products.totalCount)},catalogTitle:function(){return this.currentCategoryName&&!this.isSearch?this.currentCategoryName:this.title},productsCount:function(){var t;return"".concat((null===(t=this.products)||void 0===t?void 0:t.totalCount)||0," ").concat(this.$t("search_results_counts"))}}),watch:{products:function(){var t;this.$store.commit("catalog/setTotalProductsCount",(null===(t=this.products)||void 0===t?void 0:t.totalCount)||0)}},created:function(){"search"!==this.$route.name&&this.$store.commit("catalog/term",""),this.$store.commit("catalog/setDefaultSort",k[this.config.default_sorting])},methods:{open:function(t){this.$store.commit("modals/open",t)},changeSorting:function(t){var e=t.id,r=t.sort,l=t.order;this.$store.commit("catalog/sort",{id:e,sort:r,order:l}),this.$route.path.includes("preview")&&(this.isPreviewDefaultSort=!1)},changePage:function(t){window&&window.scrollTo(0,0),this.$store.commit("catalog/page",t),this.$router.push({path:this.$route.path,params:I({},this.$route.params),query:I(I({},this.$route.query),t>1?{page:t.toString()}:{})})}}},T=r(703);var D=Object(w.a)(E,(function(){var t,e,r,l,n,o,c=this,d=c.$createElement,_=c._self._c||d;return _("SwContainer",{key:c.$route.fullPath,class:(t={},t[c.$style.catalog]=!0,t[c.$style.catalog_loading]=c.$apollo.queries.products.loading,t[c.$style.catalog_empty]=c.isEmpty,t)},[c.isEmpty?_("div",[c.isSearch?_("div",[_("div",{class:c.$style["catalog__header-search"]},[_("h2",{class:[c.$style["catalog__header-caption"],"sw-title"]},[c._v("\n                    "+c._s(c.$t("search_noresults_mobile"))+" "+c._s("«"+(c.$store.state.catalog.term||c.$route.query.q)+"»")+"\n                ")]),c._v(" "),_("h3",{class:[c.$style["catalog__header-caption"],"sw-title"]},[c._v("\n                    "+c._s(c.$t("search_popular_products"))+"\n                ")])]),c._v(" "),_("div",{class:c.$style.catalog__body},[_("div",{class:c.$style.catalog__main},[c.popularProducts&&c.popularProducts.totalCount?_("SwContainer",{class:(e={},e[c.$style.catalog__list]=!0,e[c.$style.catalog__list_wide]=c.isSearch,e),attrs:{pa0:""}},[_("div",{class:c.$style["catalog__list-body"]},c._l(c.popularProducts.edges,(function(t){return _("ProductItem",{key:t.slug,class:c.$style["catalog__list-item"],attrs:{name:t.name,offers:t.offers,image:t.imageUrl,labels:t.labels,slug:t.slug,type:t.type,light:"",small:""}})})),1)]):c._e()],1)])]):_("div",{class:c.$style.catalog__body},[_("SvgSpriteNoProducts",{class:c.$style.catalog__image}),c._v(" "),_("h2",{staticClass:"sw-title"},[c._v("\n                "+c._s(c.$t("empty_catalog"))+"\n            ")])],1)]):!c.$apollo.queries.products.loading&&c.filters&&c.filters.length?_("div",[_("div",{class:c.$style.catalog__header},[_("div",{class:(r={},r[c.$style["catalog__header-title"]]=!0,r[c.$style.search]=c.isSearch,r)},[c.isSearch?_("SearchTitle",{attrs:{query:c.$store.state.catalog.term||c.$route.query.q,count:c.products?c.products.totalCount:0}}):_("div",{class:c.$style["catalog__header-title-wrap"]},[_("h2",{staticClass:"sw-title"},[c._v("\n                        "+c._s(c.catalogTitle)+"\n                    ")]),c._v(" "),_("div",{class:c.$style["catalog__products-count"]},[c._v("\n                        "+c._s(c.productsCount)+"\n                    ")])])],1),c._v(" "),(c.products&&c.products.totalCount||c.$store.state.catalog.term)&&!c.isSearch?_("div",{class:c.$style["catalog__header-filters"]},[_("SwButton",{class:c.$style["catalog__header-filters-button"],attrs:{light:"",small:""},on:{click:function(t){return c.open("catalogTree")}},scopedSlots:c._u([{key:"leading-icon",fn:function(){return[_("SvgIconList")]},proxy:!0}],null,!1,2180015945)},[c._v("\n\n                    "+c._s(c.$t("categories"))+"\n                ")]),c._v(" "),_("SwButton",{class:c.$style["catalog__header-filters-button"],attrs:{light:"",small:""},on:{click:function(t){return c.open("catalogFilters")}},scopedSlots:c._u([{key:"leading-icon",fn:function(){return[_("SvgIconFilter")]},proxy:!0}],null,!1,1514656587)},[c._v("\n\n                    "+c._s(c.$t("filters"))+"\n                ")])],1):c._e(),c._v(" "),c.products&&c.products.totalCount?_("div",{class:c.$style["catalog__header-actions"]},[c.showResetButton?_("CatalogFiltersResetter",{scopedSlots:c._u([{key:"default",fn:function(t){var e=t.reset;return[_("div",{class:[[c.$style["catalog__header-reset-all"]],"sw-text"],on:{click:e}},[c._v("\n                            "+c._s(c.$t("resetAll"))+"\n                        ")])]}}],null,!1,1182803990)}):c._e(),c._v(" "),_("div",{class:(l={},l[c.$style["catalog__header-sorting"]]=!0,l[c.$style.search]=c.isSearch,l)},[_("SortSelect",{attrs:{sorting:c.sorting,"popup-class":c.$style["sort-popup"]},on:{change:c.changeSorting}})],1)],1):c._e()]),c._v(" "),_("div",{class:c.$style.catalog__body},[c.isSearch?c._e():_("div",{class:c.$style.catalog__aside},[_("div",{class:c.$style.catalog__tree},[_("client-only",[_("CatalogTree",{on:{"category-name":function(t){c.currentCategoryName=t}}}),c._v(" "),c.filters?_("div",[_("div",{class:[c.$style.catalog__separator,"sw-separator"]}),c._v(" "),_("FilterForm",{attrs:{filters:c.filters}})],1):c._e()],1)],1)]),c._v(" "),_("div",{class:c.$style.catalog__main},[c.products&&c.products.totalCount?_("SwContainer",{class:(n={},n[c.$style.catalog__list]=!0,n[c.$style.catalog__list_wide]=c.isSearch,n),attrs:{pa0:""}},[_("div",{class:c.$style["catalog__list-body"]},c._l(c.products.edges,(function(t){return _("ProductItem",{key:t.slug,class:c.$style["catalog__list-item"],attrs:{name:t.name,offers:t.offers,image:t.imageUrl,labels:t.labels,slug:t.slug,type:t.type,light:"",small:""}})})),1)]):c.$apollo.queries.products.loading?c._e():_("div",{class:(o={},o[c.$style.catalog__list]=!0,o[c.$style.catalog__list_empty]=!0,o[c.$style.catalog__list_wide]=c.isSearch,o)},[_("SvgSpriteNoProducts",{class:c.$style.catalog__image}),c._v(" "),_("h2",{staticClass:"sw-title"},[_("i18n",{attrs:{tag:!1,path:"no_products_found"}},[_("br")])],1)],1),c._v(" "),c.products?_("SwPagination",{attrs:{current:c.products.currentPage,total:c.products.totalCount,limit:c.products.limit,"page-count":Math.ceil(c.products.totalCount/c.products.limit)},on:{change:c.changePage}}):c._e()],1)])]):c._e()])}),[],!1,(function(t){this.$style=T.default.locals||T.default}),null,null);e.default=D.exports}}]);
//# sourceMappingURL=df199c0.js.map