1(()=>{var t,e={6052:()=>{window.getCookies=function(){const t={};return document.cookie.split(";").forEach((function(e){e=e.trim().split("="),t[e[0]]=e[1]})),t},window.setCookie=function(t,e,n="/",s=1){const r=new Date;r.setDate(r.getDate()+ +s),document.cookie=`${t}=${e}; path=${n}; expires=${r.toUTCString()}`}},6948:(t,e,n)=>{"use strict";n.r(e);n(6052)},412:(t,e,n)=>{"use strict";var s=n(4715),r=n(771),i=n(4990),a=n.n(i);function o(){return{"X-Bitrix-Csrf-Token":BX.bitrix_sessid()}}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d=a().create({baseURL:"/api/",withCredentials:!0,headers:{"Content-Type":"multipart/form-data"}}),p=a().create({baseURL:"/personal/cart/vue_cart_api.php",withCredentials:!0,headers:{"Content-Type":"multipart/form-data"}});function f(t){return t.headers=l(l({},t.headers),o()),t}function h(t){return Promise.reject(t)}function m(t){return t}function v(t){return t.response&&t.response.status>=400&&t.response.status<500||(console.error(t),console.error(t?.response?.data?.error)),Promise.reject(t)}d.interceptors.request.use(f,h),d.interceptors.response.use(m,v),p.interceptors.request.use(f,h),p.interceptors.response.use(m,v);const _={get:d.get,post:d.post},g={get:p.get,post:p.post};function b(t,e=new FormData,n=""){for(const s in t){if(!t.hasOwnProperty(s))continue;const r=n?`${n}[${s}]`:s,i=t[s];"object"!=typeof i||null===i||i instanceof File?e.append(r,i):b(i,e,r)}return e}const y={createOperation:function(t){try{"add"===t.operation?function(t){window.dataLayer=window.dataLayer||[];const e={ecommerce:{currencyCode:"RUB",add:{products:[t]}},goods_id:t.id,goods_price:t.price,page_type:"add_product",event:"pixel-mg-event","pixel-mg-event-category":"Enhanced Ecommerce","pixel-mg-event-action":"Adding a Product to a Shopping Cart","pixel-mg-event-non-interaction":"False"};dataLayer.push(e)}(t.product):"remove"===t.operation&&function(t){window.dataLayer=window.dataLayer||[];const e={ecommerce:{currencyCode:"RUB",remove:{products:[t]}},event:"pixel-mg-event","pixel-mg-event-category":"Enhanced Ecommerce","pixel-mg-event-action":"Removing a Product from a Shopping Cart","pixel-mg-event-non-interaction":"False"};dataLayer.push(e)}(t.product)}catch(t){console.error("Ecommerce->createOperation()",t)}},openCart:function(t){window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:{currencyCode:"RUB",checkout:{actionField:{step:1},products:Object.values(t).map((t=>({name:t.NAME,id:+t.PRODUCT_ID,price:+t.PRICE,quantity:+t.QUANTITY,brand:t.BRAND,category:t.SECTION})))}},goods_id:Object.values(t).map((t=>t.PRODUCT_ID)),goods_price:Object.values(t).reduce(((t,e)=>t+ +e.PRICE*+e.QUANTITY),0),page_type:"cart",event:"pixel-mg-event","pixel-mg-event-category":"Enhanced Ecommerce","pixel-mg-event-action":"Checkout Step 1","pixel-mg-event-non-interaction":"False"})},createOrder:function(t,e){_.post("cart/logEcommerceCreateOrder/",{id:t,cart:e}).then((t=>{}));const n=Object.values(e).reduce(((t,e)=>t+ +e.PRICE*+e.QUANTITY),0);if(window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:{currency:"RUB",purchase:{actionField:{id:t,revenue:n,tax:"0",shipping:"0"},products:Object.values(e).map((t=>({id:+t.PRODUCT_ID,name:t.NAME,price:+t.PRICE,quantity:+t.QUANTITY,brand:t.BRAND,category:t.SECTION})))}},goods_id:Object.values(e).map((t=>t.PRODUCT_ID)),goods_price:n,page_type:"purchase",event:"pixel-mg-event","pixel-mg-event-category":"Enhanced Ecommerce","pixel-mg-event-action":"Purchase","pixel-mg-event-non-interaction":"False"}
1),window._gaq=window._gaq||[],_gaq.push(["_setAccount","UA-4081448-2"]),_gaq.push(["_trackPageview"]),_gaq.push(["_addTrans",t,"ForOffice.ru",n,"0","0","Moscow","Moscow","Russia"]),Object.values(e).forEach((e=>{const n=["_addItem",t,e.PRODUCT_ID,e.NAME,"",+e.PRICE,+e.QUANTITY];_gaq.push(n)})),_gaq.push(["_trackTrans"]),_gaq.push(["_trackPageview","/personal/order/make/confirm.php"]),_gaq.push(["_trackEvent","order","make",t]),"function"==typeof ga){ga("require","ecommerce","ecommerce.js");ga("ecommerce:addTransaction",{id:t,revenue:n,shipping:0}),Object.values(e).forEach((t=>{const e={id:t.PRODUCT_ID,name:t.NAME,sku:"",category:"",price:+t.PRICE,quantity:+t.QUANTITY};ga("ecommerce:addItem",e)})),ga("ecommerce:send")}},showProductList:function(t){window.dataLayer=window.dataLayer||[];const e={ecommerce:{currencyCode:"RUB",impressions:t}};dataLayer.push(e)},followProduct:function(t){window.dataLayer=window.dataLayer||[];const e={ecommerce:{currencyCode:"RUB",click:{products:[t]}}};dataLayer.push(e)}},C={IS_OBSERVED:"rr/isObserved",IS_OBSERVED_LIST:"rr/isObservedList/"};const O={recomAddToCart:function(t,e){try{return window.rrApi.recomAddToCart(t,{methodName:e})}catch(t){return console.error(t)}},recomMouseDown:function(t,e){try{return window.rrApi.recomMouseDown(t,{methodName:e})}catch(t){return console.error(t)}},addToBasket:async function(t){try{return(await _.get(`${C.IS_OBSERVED}/${t}/`)).data.result&&window.rrApi.addToBasket(t)}catch(t){return console.log(t),console.error(t)}},createOrder:async function(t,e){try{const n=new FormData;Object.values(e).forEach(((t,e)=>n.set(`id[${e}]`,t.PRODUCT_ID)));const s=await _.post(C.IS_OBSERVED_LIST,n),r=Object.values(e).reduce(((t,e)=>s.data.result[e.PRODUCT_ID]?[...t,{id:+e.PRODUCT_ID,qnt:+e.QUANTITY,price:+e.PRICE}]:t),[]);return r.length&&window.rrApi.order({transaction:t,items:r})}catch(t){return console.error(t)}},setEmail:function(t,e={}){try{if(window.rrApi&&"function"==typeof window.rrApi.setEmail)return window.rrApi.setEmail(t,e)}catch(t){return console.error(t)}}};const w={confirm:function(t,e,n,s="default"){try{if(!n)throw new Error("not found parameter userId");window.adspire_track=window.adspire_track||[],window.adspire_ip=630281360;const r={id:t,type:s,price:Object.values(e).reduce(((t,e)=>t+ +e.PRICE*+e.QUANTITY),0)};if(/^[\S]+@[\S]+\.[\w]+$/.test(String(n)))r.email=n;else if(/^\d{10,}$/.test(String(n).replace(/\D/,"")))r.phone=n;else{if(!/^\d+$/.test(String(n)))throw new Error("Type error for parameter userId");r.id_user=n}window.adspire_track.push({TypeOfPage:"confirm",Order:r,OrderItems:Object.values(e).map((t=>({pid:+t.PRODUCT_ID,pname:t.NAME,price:+t.PRICE,quantity:+t.QUANTITY,currency:"RUB"})))})}catch(t){return console.error(t)}}},E=105811;const P={id:E,reachGoal:function(t){return window.ym&&window.ym(E,"reachGoal",t)}};function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const D="cart",A={GET:`${D}/get/`,ADD:`${D}/add/`,SET_QUANTITY:`${D}/setQuantity/`,REMOVE:`${D}/remove/`,CREATE_QUICK_ORDER:"order/createQuickOrder/",SUBMIT_PROMO_CODE:"cart/submitPromoCode/"},k={state:{clientCart:{},productsIdInCart:[],clientCartRemoved:{},deliveryList:null,payList:null,del2pay:null,accessories:{},accessoriesShowStatus:{},loading:!1},getters:{cartClientCart:function(t){return t.clientCart},cartFullCart:function(t){return t.clientCart},cartDeliveryList:function(t){return t.deliveryList},cartPayList:function(t){return t.payList},cartProductsIds:function(t){return t.productsIdInCart},cartIsEmpty:function(t){return 0===t.productsIdInCart.length},cartCount:function(t){return t.productsIdInCart.length},cartLoading:function(t){return t.loading},cartOriginalCurrencyHtml:function(t){if(0===Object.keys(t.clientCart).length)return null;const e=Object.values(t.clientCart)[0].PRICES.PRICE_TEMPLATE;return e.ORIGINAL?e.ORIGINAL.CURRENCY_HTML:'<span class="rub">
1Ð </span>'},cartConvertedCurrencyHtml:function(t){if(0===Object.keys(t.clientCart).length)return null;const e=Object.values(t.clientCart)[0].PRICES.PRICE_TEMPLATE;return e.CONVERTED?e.CONVERTED.CURRENCY_HTML:null},cartOriginalSum:function(t){return Object.values(t.clientCart).reduce(((t,e)=>t+Math.round(+e.PRICES.ORIGINAL.DISCOUNT_VALUE*+e.QUANTITY)),0)},cartConvertedSum:function(t){return Object.values(t.clientCart).reduce(((t,e)=>e.PRICES.CONVERTED?t+Math.round(+e.PRICES.CONVERTED.DISCOUNT_VALUE*+e.QUANTITY):0),0)},cartOriginalBaseSum:function(t){return Object.values(t.clientCart).reduce(((t,e)=>t+Math.round(+e.PRICES.ORIGINAL.VALUE*+e.QUANTITY)),0)},cartConvertedBaseSum:function(t){return Object.values(t.clientCart).reduce(((t,e)=>e.PRICES.CONVERTED?t+Math.round(+e.PRICES.CONVERTED.VALUE*+e.QUANTITY):0),0)},cartOriginalDiscount:function(t){return Object.values(t.clientCart).reduce(((t,e)=>t+Math.round(+e.PRICES.ORIGINAL.DISCOUNT_DIFF*+e.QUANTITY)),0)},cartConvertedDiscount:function(t){return Object.values(t.clientCart).reduce(((t,e)=>e.PRICES.CONVERTED?t+Math.round(+e.PRICES.CONVERTED.DISCOUNT_DIFF*+e.QUANTITY):0),0)},cartAccessories:function(t){return t.accessories},cartAccessoriesShowStatus:function(t){return t.accessoriesShowStatus}},mutations:{UPDATE_CLIENT_CART:function(t,e){t.clientCart=e,t.productsIdInCart=Array.from(new Set(Object.values(t.clientCart).map((t=>+t.PRODUCT_ID))))},UPDATE_PRODUCTS_IDS:function(t,e){t.productsIdInCart=e},ORDER_SUCCESS:function(t,e){try{y.createOrder(e.id,t.clientCart),O.setEmail(e.email),O.createOrder(e.id,t.clientCart),w.confirm(e.id,t.clientCart,e.email,"default")}catch(t){console.error(t)}t.clientCart={},t.productsIdInCart=[]},UPDATE_PAY_LIST:function(t,e){t.payList=e},UPDATE_DELIVERY_LIST:function(t,e){t.deliveryList=e},UPDATE_DEL_2_PAY:function(t,e){t.del2pay=e},UPDATE_LOADING:function(t,e){t.loading=e},ADD_ACCESSORIES:function(t,e){let n=t.accessories;n[e.id]=e.data,t.accessories=n},UPDATE_ACCESSORIES_SHOW_STATUS:function(t,e){t.accessoriesShowStatus=e},REMOVE_CLIENT_ITEM:function(t,e){t.clientCart[e]?(t.clientCartRemoved[e]=t.clientCart[e],delete t.clientCart[e],t.clientCart=I({},t.clientCart),t.productsIdInCart=Array.from(new Set(Object.values(t.clientCart).map((t=>+t.PRODUCT_ID))))):(delete t.clientCartRemoved[e],t.clientCartRemoved=I({},t.clientCartRemoved))},UNDO_REMOVE_CLIENT_ITEM:function(t,e){t.clientCart[e]=t.clientCartRemoved[e],delete t.clientCartRemoved[e],t.clientCart=I({},t.clientCart),t.productsIdInCart=Array.from(new Set(Object.values(t.clientCart).map((t=>+t.PRODUCT_ID))))}},actions:{cartInit:function(t,e){return console.log("cart init"),t.commit("UPDATE_LOADING",!0),_.post(A.GET,e).then((function(e){return t.commit("UPDATE_CLIENT_CART",e.data.cart),t.commit("UPDATE_LOADING",!1),e.data})).catch((function(t){return console.error(t),console.error(t.response),t.response.data}))},cartGetListAction:function(t,e){return t.commit("UPDATE_LOADING",!0),_.post(A.GET,e).then((function(e){return t.commit("UPDATE_CLIENT_CART",e.data.cart),t.commit("UPDATE_LOADING",!1),e.data})).catch((function(t){return console.error(t),console.error(t.response),t.response.data}))},addProductToCart:function(t,e){return void 0===e.id&&reject("ФÑнкÑÐ¸Ñ addProductToCart() не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð²Ñзвана без id ÑоваÑа"),(!e.quantity||+e.quantity<1)&&(e.quantity=1),_.post(A.ADD,e).then((function(n){t.commit("UPDATE_CLIENT_CART",n.data.cart);try{P.reachGoal("add_to_basket"),O.addToBasket(+e.id),y.createOperation(n.data.report)}catch(t){console.error(t)}return!0})).catch((function(t){return console.error(t),console.error(t.response),t.response.data}))},cartSetQuantityAction:function(t,e){return _.post(A.SET_QUANTITY,e).then((function(e){return t.commit("UPDATE_CLIENT_CART",e.data.cart),y.createOperation(e.data.report),e.data})).catch((async function(t){return console.error(t),console.error(t.response),t.response.data}))},cartRemoveItemAction:function(t,e){return t.commit("REMOVE_CLIENT_ITEM",e.id),_.post(A.REMOVE,e).then((function(n){return t.commit("REMOVE_CLIENT_ITEM",e.id),y.createOperation(n.data.report),n.data}
1)).catch((function(n){return console.error(n),console.error(n.response),t.commit("UNDO_REMOVE_CLIENT_ITEM",e.id),n.response.data}))},cartSubmitPromoCode:function(t,e){return _.post(A.SUBMIT_PROMO_CODE,b({code:e})).then((n=>(console.log(n.data),P.reachGoal("SUBMIT_PROMO"),t.commit("UPDATE_CLIENT_CART",n.data.cart),t.dispatch("toastAppendSuccess",{title:"УÑпеÑно пÑименен кÑпон",message:e,devOnly:!0}),n.data))).catch((e=>(console.error(e),console.error(e.response),t.dispatch("toastAppendError",{title:"ÐÑибка",message:e.response.data.message,devOnly:!0}),e.response.data)))},cartCreateOrderAction:function(t,e){return g.post("",b(I(I({},e),{},{action:"submit"}))).then((function(n){return t.commit("ORDER_SUCCESS",{id:n.data.orderId,email:e["order-form__reg-email"]}),n.data})).catch((function(t){throw console.error(t),console.error(t.response),new Error(t.response.data.message)}))},cartCreateFastBuyOrderAction:async function(t,e){return _.post(A.CREATE_QUICK_ORDER,b(e)).then((n=>(y.createOrder(n.data.ORDER_ID,{quickOrder:{NAME:e.productName,PRODUCT_ID:+e.id,PRICE:+e.price,QUANTITY:+e.quantity}}),P.reachGoal("QUICK_ORDER"),window.ga&&window.ga("send","event","submit_fast","QUICK_ORDER"),w.confirm(n.data.order.ID,[{NAME:e.productName,PRODUCT_ID:+e.id,PRICE:+e.price,QUANTITY:+e.quantity}],n.data.user.PERSONAL_PHONE,"oneclick"),t.commit("UPDATE_CLIENT_CART",{}),n.data))).catch((t=>(console.error(t),console.error(t.response),t.response.data)))},cartIfLocationChangedAction:function(t,e){return g.get("",{params:{action:"get-pay-and-del-list",city_name:e}}).then((function(e){return t.commit("UPDATE_PAY_LIST",e.data.PAY_LIST),t.commit("UPDATE_DELIVERY_LIST",e.data.DELIVERY_LIST),e.data})).catch((function(t){return console.error(t),console.error(t.response),t.response.data}))},cartGetAccessoriesAction:function(t,e){return _.get("",{params:{action:"get-accessories",id:e}}).then((function(n){return t.commit("ADD_ACCESSORIES",{id:e,data:n.data}),n.data})).catch((function(t){return console.error(t),console.error(t.response),t.response.data}))},cartUpdateClientCart:function(t,e){t.commit("UPDATE_CLIENT_CART",e)},cartSetProductIds:function(t,e){t.commit("UPDATE_PRODUCTS_IDS",e)},cartSetDeliveryList:function(t,e){t.commit("UPDATE_DELIVERY_LIST",e)},cartSetPayList:function(t,e){t.commit("UPDATE_PAY_LIST",e)},cartSetDel2Pay:function(t,e){t.commit("UPDATE_DEL_2_PAY",e)},cartSetLoading:function(t,e){t.commit("UPDATE_LOADING",e)},cartSetAccessoriesShowStatus:function(t,e){t.commit("UPDATE_ACCESSORIES_SHOW_STATUS",e)}}};function j(t,e){const n=Object.keys(t).map((n=>{const s=t[n],r=e[n];if(!s&&0!==s||Array.isArray(r)&&!r.length)return null;let i;return i="boolean"==typeof s?new Set(r):void 0!==s.min&&void 0!==s.max?function(t,e){let n=!1;const s=+t.min,r=+t.max;let i;void 0!==e.ORIGINAL?(n=!0,i=void 0!==e.CONVERTED?e.CONVERTED:e.ORIGINAL):i=e;const a=new Set;return i.VALUE.forEach((function(t,e){t>=s&&t<=r&&(n?a.add(i.ID[e]):i.ID[e].forEach((t=>a.add(t))))})),a}(s,r):"string"==typeof s||"number"==typeof s?function(t,e){const n=new Set,s=e.ID[e.VALUE.indexOf(t)]||[];return s.forEach((t=>n.add(t))),n}(s,r):function(t,e){const n=new Set;let s=void 0!==e.VALUE;return t.forEach((t=>{if(s){const s=e.VALUE.indexOf(t);(-1!==s?e.ID[s]:[]).forEach((t=>n.add(t)))}else e[t].forEach((t=>n.add(t)))})),n}(s,r),i})).filter((t=>null!==t));return n}function L(t){const e=(t=t.sort(((t,e)=>t.size<e.size?-1:t.size>e.size?1:0))).reduce(((t,e)=>null===t?e:(t.forEach((n=>{e.has(n)||t.delete(n)})),t)),null)||new Set;return!!e.size&&Array.from(e)}const R=JSON.parse('{"sort":0,"sorts":[{"text":"Ðо попÑлÑÑноÑÑи","code":"pop","value":0},{"text":"СнаÑала деÑевÑе","code":"prcasc","value":1},{"text":"СнаÑала доÑогие","code":"prcdesc","value":2},{"text":"СнаÑала Ñо Ñкидкой","code":"discountdesc","value":3}],"limit":0,"limits":[{"count":36,"text":"36","value":0},{"count":48,"text":"48","value":1},{"count":72,"text":"72","value":2}],"limitMultiplier":1,"view":0,"views":[{"code":"linear","oldCode":"list","class":"linear-mode","value":0},{"code":"blocks","oldCode":"block","class":"blocks-mode","value":1},{"code":"table","oldCode":"table","class":"table-mode","value":2}],"page":1,"loading":true}');function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?M(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const U="catalog/product",q={SELECT_PRODUCTS:`${U}/selectProducts/`,UPDATE_TAG_PRODUCTS:`${U}/updateProductsInTag/`},H={orderHelper:function(t,e){const n=t.orderHelpers[e],s=t.filteredProducts[e],r=t.hasActiveFilters[e],i=t.baseControls[e],a=t.controls[e],o=i.sorts[a.sort];return r?s.length?n[o.code].filter((t=>s.includes(t))):[]:n[o.code]},displayedProductsIds:function(t,e){const n=t.controls[e],s=t.baseControls[e],{page:r,limitMultiplier:i}=n,a=s.limits[n.limit],o=this.orderHelper(t,e),c=a.count*(r-1),l=a.count*r*i-1;return o.slice(c,l+1)},showSimilarProducts:function(t,e){const{page:n,sort:s}=t.controls[e],r=t.filters[e],i=t.orderHelpers[e].similar;if(!i)return!1;const a=Object.keys(r).reduce(((t,e)=>{if(!t)return!1;const n=r[e];return"tags"===e?Array.isArray(n)&&1===n.length:!n}),!0);return i.length&&1==+n&&0==+s&&a},similarProductsIds:function(t,e){const n=t.orderHelpers[e].similar,s=t.controls[e],r=t.baseControls[e],i=t.displayedProducts[e],a=+r.limits[s.limit].count;return!this.showSimilarProducts(t,e)||!n||i.length>=a||s.page>1?[]:n.filter((t=>!i.includes(t))).slice(0,a-i.length)}},F={state:{section:{},sections:{},subsections:{},brandSubsections:{},products:{},brands:{},brands14:{},tags:{},chars:{},filters:{},filterHelpers:{},orderHelpers:{},filteredProducts:{},displayedProducts:{},similarProducts:{},cached:{},cacheId:{},sectionCacheId:{},additionalCacheId:{},startFilterParams:{},startControlParams:{},startTotal:{},controls:{},baseControls:{},loading:{},hasActiveFilters:{},initiated:[],lastUploadCallTime:{},uploadDelayTime:500,saveFilters:{main:!0,ps:!0}},getters:{catalogSection:function(t){return t.section},catalogSections:function(t){return t.sections},catalogSubsections:function(t){return t.subsections},catalogBrandSubsections:function(t){return t.brandSubsections},catalogProducts:function(t){return t.products},catalogDisplayedProducts:function(t){return Object.assign(...Object.keys(t.products).map((e=>({[e]:t.displayedProducts[e].map((n=>t.products[e][n]))}))))},catalogSimilarProducts:function(t){return Object.assign(...Object.keys(t.products).map((e=>({[e]:t.similarProducts[e].map((n=>t.products[e][n]))}))))},catalogProductsUndefined:function(t){return Object.assign(...Object.keys(t.products).map((e=>{const n=t.displayedProducts[e],s=Object.keys(t.products[e]).map((t=>+t));return{[e]:n.filter((t=>!s.includes(t)))}})))},catalogUploadedProductIds:function(t){return Object.assign(...Object.keys(t.products).map((e=>({[e]:Object.keys(t.products[e]).map((t=>+t))}))))},catalogBrands:function(t){return t.brands},catalogBrand14:function(t){const e={};return Object.keys(t.brands14).forEach((n=>{const s=t.filters[n],r=t.brands14[n];Array.isArray(s.brands)&&1===s.brands.length&&r[s.brands[0]]?e[n]=r[s.brands[0]]:e[n]=null})),e},catalogBrands14:function(t){return t.brands14},catalogTags:function(t){return t.tags},catalogChars:function(t){return Object.assign(...Object.keys(t.chars).map((e=>({[e]:Object.values(t.chars[e])}))))},catalogCharsAssoc:function(t){return Object.assign(...Object.keys(t.chars).map((e=>({[e]:t.chars[e]&&t.chars[e].length?Object.assign(...Object.values(t.chars[e]).map((t=>({[t.ID]:t})))):{}}))))},catalogFilters:function(t){return t.filters},catalogFilterHelpers:function(t){return t.filterHelpers},catalogOrderHelpers:function(t){return t.orderHelpers},catalogCacheId:function(t){return t.cacheId},catalogSectionCacheId:function(t){return t.sectionCacheId},catalogCached:function(t){return t.cached},catalogStartFilterParams:function(t){return t.startFilterParams},catalogStartControlParams:function(t){return t.startControlParams},catalogOrderHelper:function(t){return Object.assign(...Object.keys(t.orderHelpers).map((e=>({[e]:H.orderHelper({orderHelpers:t.orderHelpers,filteredProducts:t.filteredProducts,hasActiveFilters:t.hasActiveFilters,baseControls:t.baseControls,controls:t.controls},e)}))))},catalogTotal:function(t){const e=t.orderHelpers,n=t.filteredProducts,s=t.hasActiveFilters,r={};return Object.keys(e).forEach((t=>{s[t]?r[t]=n[t].length:e[t]&&e[t].pop&&e[t].pop.length>0?r[t]=e[t].pop.length:r[t]=0})),r},catalogStartTotal:function(t){return t.startTotal},catalogOrders:function(t){return t.orderHelpers},catalogControls:function(t){return t.controls},catalogBaseControls:function(t){return t.baseControls},catalogFilteredProducts:function(t){return t.filteredProducts},catalogLoading:function(t){return t.loading},catalogInitiated:function(t){return t.initiated},catalogQueryString:function(t){const e={};
1return Object.keys(t.controls).forEach((n=>{e[n]=null;const s=t.controls[n],r=t.baseControls[n],i=[];s.view>0&&i.push("view="+r.views[s.view].code),s.sort>0&&i.push("sort="+r.sorts[s.sort].code),s.limit>0&&i.push("limit="+r.limits[s.limit].count),i.length>0&&(e[n]=i.join("&"))})),e},catalogHasActiveFilters:function(t){return t.hasActiveFilters},catalogAdditionalCacheId:function(t){return t.additionalCacheId},catalogSort:function(t){return Object.assign(...Object.keys(t.controls).map((e=>({[e]:t.baseControls[e].sorts[t.controls[e].sort]}))))},catalogView:function(t){return Object.assign(...Object.keys(t.controls).map((e=>({[e]:t.baseControls[e].views[t.controls[e].view]}))))},catalogLimit:function(t){return Object.assign(...Object.keys(t.controls).map((e=>({[e]:t.baseControls[e].limits[t.controls[e].limit]}))))},catalogPage:function(t){return Object.assign(...Object.keys(t.controls).map((e=>({[e]:t.controls[e].page}))))},catalogUploadLastCallTime:function(t){return t.lastUploadCallTime},catalogUploadDelayTime:function(t){return t.uploadDelayTime}},mutations:{CREATE_STORAGE:function(t,e){Object.keys(t).forEach((n=>{if("initiated"===n||"saveFilters"===n||"uploadDelayTime"===n)return!1;if("controls"===n)return t.controls=x(x({},t.controls),{},{[e]:R});if("filteredProducts"===n)return t.filteredProducts=x(x({},t.filteredProducts),{},{[e]:[]});if("displayedProducts"===n)return t.displayedProducts=x(x({},t.displayedProducts),{},{[e]:[]});if("similarProducts"===n)return t.similarProducts=x(x({},t.similarProducts),{},{[e]:[]});if("startFilterParams"===n)t.filters=x(x({},t.filters),{},{[e]:{sections:null,brands:null,tags:null,price:null,hasDiscount:!1,inStock:!1,withPrice:!1}}),t.hasActiveFilters[e]=!1;else{if("lastUploadCallTime"===n)return t.lastUploadCallTime=x(x({},t.lastUploadCallTime),{},{[e]:0});t[n]=x(x({},t[n]),{},{[e]:{}})}})),Object.keys(t.baseControls[e]).length||(t.baseControls[e]=R)},SET_START_DATA:function(t,e){Object.keys(e).forEach((function(n){const s=e[n];Object.keys(s).forEach((e=>{if("startFilterParams"===e)return!1;"startControlParams"===e&&(t.controls=x(x({},t.controls),{},{[n]:x(x({},t.controls[n]),s[e])})),t[e]=x(x({},t[e]),{},{[n]:s[e]})})),t.loading[n]=!1,s.startFilterParams&&Object.keys(s.startFilterParams).length&&(t.filters=x(x({},t.filters),{},{[n]:x(x({},t.filters[n]),s.startFilterParams)}))}))},SET_FILTERS:function(t,e){t.filters=Object.assign(...Object.keys(t.filters).map((n=>e[n]?{[n]:x(x({},t.filters[n]),e[n])}:{[n]:t.filters[n]})))},SET_CONTROLS:function(t,e){t.controls=Object.assign(...Object.keys(t.controls).map((n=>e[n]?{[n]:x(x({},t.controls[n]),e[n])}:{[n]:t.controls[n]})))},CALCULATE_FILTERED_PRODUCTS:function(t){t.filteredProducts=Object.assign(...Object.keys(t.filters).map((e=>({[e]:L(j(t.filters[e],t.filterHelpers[e]))||[]})))),t.hasActiveFilters=Object.assign(...Object.keys(t.filters).map((e=>({[e]:Object.values(t.filters[e]).reduce(((t,e)=>!0===t||0===e||!!e),!1)}))))},CALCULATE_DISPLAYED_PRODUCTS:function(t){t.displayedProducts=Object.assign(...Object.keys(t.displayedProducts).map((e=>({[e]:H.displayedProductsIds(t,e)})))),t.similarProducts=Object.assign(...Object.keys(t.similarProducts).map((e=>({[e]:H.similarProductsIds(t,e)}))))},REFRESH_PAGE:function(t,e){t.controls=x(x({},t.controls),{},{[e]:x(x({},t.controls[e]),{},{page:1,limitMultiplier:1})})},LOADING:function(t,e){t.loading=x(x({},t.loading),e)},ADD_PRODUCTS:function(t,e){t.products=Object.assign(...Object.keys(t.products).map((n=>e[n]?{[n]:x(x({},t.products[n]),e[n])}:{[n]:t.products[n]})))},LAST_UPLOAD_CALL_TIME:function(t,e){t.lastUploadCallTime=x(x({},t.lastUploadCallTime),{},{[e]:Date.now()})},INIT:function(t,e){t.initiated.push(e)}},actions:{catalogCreateStorage:function(t,e){t.commit("CREATE_STORAGE",e)},catalogSetStartData:function(t,e){t.commit("SET_START_DATA",e),t.commit("CALCULATE_FILTERED_PRODUCTS"),t.commit("CALCULATE_DISPLAYED_PRODUCTS"),Object.keys(e).forEach((e=>(t.commit("INIT",e),!!t.getters.catalogProductsUndefined[e].length&&t.dispatch("catalogUploadUndefinedProducts",e))))},catalogUpdateFilters:function(t,e){t.commit("SET_FILTERS",e),t.commit("CALCULATE_FILTERED_PRODUCTS"),t.commit("CALCULATE_DISPLAYED_PRODUCTS"),$(t.state),Object.keys(e).forEach((e=>!!t.getters.catalogProductsUndefined[e].length&&t.dispatch("catalogUploadUndefinedProducts",e)))},catalogSetControls:function(t,e){t.commit("SET_CONTROLS",e),t.commit("CALCULATE_DISPLAYED_PRODUCTS"),$(t.state),Object.keys(e).forEach((e=>!!t.getters.catalogProductsUndefined[e].length&&t.dispatch("catalogUploadUndefinedProducts",e)))},catalogRefreshPage:function(t,e){t.commit("REFRESH_PAGE",e),$(t.state)},catalogInit:function(t,e){t.commit("INIT",e)},catalogUploadUndefinedProducts:function({commit:t,getters:e,dis
1patch:n},s){return t("LAST_UPLOAD_CALL_TIME",s),setTimeout((()=>{const t=e.catalogUploadDelayTime,r=e.catalogUploadLastCallTime[s],i=(e.catalogLoading[s],e.catalogProductsUndefined[s]);if(!i.length)return!1;if(r>Date.now()-t)return!1;const a={uniqueId:s,additionalCacheId:e.catalogAdditionalCacheId[s],arFilter:{ID:i}};return n("catalogRequestProducts",a)}),e.catalogUploadDelayTime)},catalogRequestProducts:async function(t,e){t.commit("LOADING",{[e.uniqueId]:!0});try{const{data:n}=await _.post(q.SELECT_PRODUCTS,e,{params:{clear_cache:e.clear_cache||window.location.search.includes("clear_cache=Y")?"Y":null,clear_cache_session:e.clear_cache_session||window.location.search.includes("clear_cache_session=Y")?"Y":null}});t.commit("ADD_PRODUCTS",{[e.uniqueId]:n.body})}catch(t){console.error(t),console.error(t.response.data)}finally{t.commit("LOADING",{[e.uniqueId]:!1})}},updateProductsInTag:function(t,e){return _.post(q.UPDATE_TAG_PRODUCTS,e)}}};function $(t){Object.keys(t.saveFilters).forEach((e=>!(!t.saveFilters[e]||!t.initiated.includes(e))&&("ps"===e?function(t,e){if(!history||!history.pushState)return console.error("fCatalogSetQueryString() no history module");if(!t.section[e])return!1;const n=["","products","search",""],s={},r={},i=t.controls[e],a=t.filters[e],o=window.location.search.replace(/^\?/,"")?window.location.search.replace(/^\?/,"").split("&").reduce(((t,e)=>/^q=/.test(e)?e.replace(/^q=/,""):t),""):"";a.sections&&(s.sections=[...a.sections]);a.brands&&(s.brands=[...a.brands]);a.price&&(s.price=x({},a.price));a.hasDiscount&&(s.hasDiscount=a.hasDiscount);a.inStock&&(s.inStock=a.inStock);Object.keys(a).forEach((t=>{/\d+/.test(t)&&a[t]&&(Array.isArray(a[t])&&a[t].length>0?s[t]=[...a[t]]:a[t].min||a[t].max?s[t]=x({},a[t]):s[t]=String(a[t]))})),+i.page>1&&(r.page=+i.page);
1Object.keys(i).forEach((t=>{["view","limit","sort"].includes(t)&&i[t]>0&&(r[t]=i[t])}));let c=n.join("/");const l=[`q=${o}`];Object.keys(s).length&&l.push(`filters=${encodeURIComponent(JSON.stringify(s))}`);Object.keys(r).length&&l.push(`controls=${encodeURIComponent(JSON.stringify(r))}`);l.length&&(c=`${c}?${l.join("&")}`);history.pushState(null,null,c)}(t,"ps"):function(t){if(!history||!history.pushState)return console.error("fCatalogSetQueryString() no history module");Object.keys(t.saveFilters).forEach((function(e){if(!t.section[e])return!1;const n=["","products"],s={},r={},i=t.controls[e],a=t.filters[e],o=t.section[e],c=a.brands&&1===a.brands.length&&t.brands14[e][a.brands[0]],l=a.tags&&1===a.tags.length;let u,d;if(c&&(u=Object.values(t.brands14[e]).find((t=>+t.ID==+a.brands[0]))),l&&(d=t.tags[e].find((t=>+t.ID==+a.tags[0]&&+t.IBLOCK_SECTION_ID==+o.UF_TAG_SECTION))),n.push(o.CODE),a.brands){let r=!1;+o.UF_INHERIT_TAGS&&(r=!0),o.UF_HIDE_BRAND_TAGS&&u&&(+o.UF_HIDE_BRAND_TAGS==+u.ID_14||Array.isArray(o.UF_HIDE_BRAND_TAGS)&&o.UF_HIDE_BRAND_TAGS.includes(+u.ID_14))&&(r=!0),d&&u&&u.PROPERTY_HIDE_TAGS_VALUE&&(+u.PROPERTY_HIDE_TAGS_VALUE==+d.ID||Array.isArray(u.PROPERTY_HIDE_TAGS_VALUE)&&u.PROPERTY_HIDE_TAGS_VALUE.includes(+d.ID))&&(r=!0),c&&l&&r?s.brands=[...a.brands]:c?n.push(t.brands14[e][a.brands[0]].CODE):s.brands=[...a.brands]}a.tags&&(l&&d?n.push(`tag-${String(d.CODE).toLowerCase()}`):s.tags=[...a.tags]),+i.page>1&&(n[n.length-1]+=`_page${i.page}`),n[n.length-1]+=".html",a.sections&&(s.sections=[...a.sections]),a.price&&(s.price=x({},a.price)),a.hasDiscount&&(s.hasDiscount=a.hasDiscount),a.inStock&&(s.inStock=a.inStock),Object.keys(a).forEach((t=>{const e=/\d+/.test(t),n=null===a[t]||void 0===a[t];e&&!n&&(Array.isArray(a[t])&&a[t].length?s[t]=[...a[t]]:a[t].min||a[t].max?s[t]=x({},a[t]):s[t]=String(a[t]))}
1)),Object.keys(i).forEach((t=>{["view","limit","sort"].includes(t)&&i[t]>0&&(r[t]=i[t])}));let p=n.join("/");const f=[];Object.keys(s).length&&f.push(`filters=${encodeURIComponent(JSON.stringify(s))}`),Object.keys(r).length&&f.push(`controls=${encodeURIComponent(JSON.stringify(r))}`),f.length&&(p=`${p}?${f.join("&")}`),history.pushState(null,null,p)}))}(t))))}function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function B(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){G(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function G(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Y={state:{limit:0,view:0,page:1,sort:0,total:0,limits:[{value:24,text:"24"},{value:48,text:"48"},{value:72,text:"72"},{value:0,text:"ÐÑе"}],viewModes:[{code:"blocks",class:"blocks-mode"},{code:"linear",class:"linear-mode"}],pages:0,sortParams:[{text:"Ðо попÑлÑÑноÑÑи",code:"pop"},{text:"СнаÑала деÑевÑе",code:"priceasc"},{text:"СнаÑала доÑогие",code:"pricedesc"},{text:"СнаÑала Ñо Ñкидкой",code:"discountdesc"}],storage:[],sections:{},loading:!0},getters:{CAgetCatalogCurrentLimit:function(t){return t.limit},CAgetCatalogCurrentView:function(t){return t.view},CAgetCatalogCurrentPage:function(t){return t.page},CAgetCatalogCurrentSort:function(t){return t.sort},CAgetCatalogLimits:function(t){return t.limits},CAgetCatalogViewModes:function(t){return t.viewModes},CAgetCatalogSortParams:function(t){return t.sortParams},CAgetCatalogTotal:function(t){return t.total},CAgetCatalogStorage:function(t){return t.storage},CAgetCatalogSections:function(t){return t.sections},CAgetCatalogLoading:function(t){return t.loading}},mutations:{CA_SET_CATALOG_LIMIT:function(t,e){t.limit=e},CA_SET_CATALOG_VIEW:function(t,e){t.view=e},CA_SET_CATALOG_PAGE:function(t,e){t.page=e},CA_SET_CATALOG_SORT:function(t,e){t.sort=e},CA_SET_CATALOG_TOTAL:function(t,e){t.limits[t.limits.length-1].value=e,t.total=e},CA_UPDATE_CATALOG_STORAGE:function(t,e){t.storage=e},CA_UPDATE_CATALOG_SECTIONS:function(t,e){t.sections=e},CA_SET_CATALOG_LOADING:function(t,e){t.loading=e}},actions:{CAsetCatalogLimit:(t,e)=>{t.commit("CA_SET_CATALOG_LIMIT",e)},CAsetCatalogView:(t,e)=>{t.commit("CA_SET_CATALOG_VIEW",e)},CAsetCatalogPage:(t,e)=>{t.commit("CA_SET_CATALOG_PAGE",e)},CAsetCatalogSort:(t,e)=>{t.commit("CA_SET_CATALOG_SORT",e)},CAsetCatalogTotal:(t,e)=>{t.commit("CA_SET_CATALOG_TOTAL",e)},CAupdateCatalogStorage:(t,e)=>{t.commit("CA_UPDATE_CATALOG_STORAGE",e)},CAupdateCatalogSections:(t,e)=>{t.commit("CA_UPDATE_CATALOG_SECTIONS",e)},CAsetCatalogLoading:(t,e)=>{t.commit("CA_SET_CATALOG_LOADING",e)}
1,CAuseVueCatalogApi:(t,e)=>a().create({headers:B({},o())}).post("/local/components/foroffice/catalog.vue.api/ajax.php",e)}};function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){W(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function W(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const K={GET:"rr/get.php"},X={state:{},getters:{},mutations:{},actions:{requestForofficeBigdataApi:(t,e)=>a().create({headers:Z({},o())}).post(e.url,e.data),getRecommendsFromApi:(t,e)=>_.post(K.GET,e).then((t=>Z(Z({},t.data),{},{success:!0}))).catch((t=>(console.error("getRecommendsFromApi->error",t,t.response),Z(Z({},t.response.data),{},{success:!1}))))}};function Q(t=0){if(void 0===window.yandexSmartCaptcha||!(t in window.yandexSmartCaptcha)||"function"!=typeof window.yandexSmartCaptcha[t].getToken)throw new Error("Wrong captcha component definition",window.yandexSmartCaptcha);return window.yandexSmartCaptcha[t].getToken()}function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function et(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const nt="user",st={CHANGE_PASSWORD:`${nt}/change_password.php`,UPDATE:`${nt}/update.php`,SMS_REQUEST:`${nt}/sms_request.php`,EMAIL_REQUEST:`${nt}/email_request.php`},rt="auth",it={SIGN_IN_BY_PASSWORD:`${rt}/signInByPassword/`,SIGN_UP_INIT:`${rt}/signUpInit/`,CHANGE_PASSWORD:`${rt}/changePassword/`,RESTORE_PASSWORD_BY_EMAIL:`${rt}/restorePasswordByEmailInit/`,SIGN_IN_BY_CONFIRMATION_CODE_INIT:`${rt}/signInByConfirmationCodeInit/`,SIGN_IN_BY_CONFIRMATION_CODE_RESET:`${rt}/signInByConfirmationCodeReset/`,SIGN_IN_BY_CONFIRMATION_CODE_CONFIRM:`${rt}/signInByConfirmationCodeConfirm/`,SIGN_OUT:`${rt}/signOut/`,YANDEX_BY_OAUTH_TOKEN:`${rt}/yandex/byOAuthToken/`},at={state:{fields:null,favourites:null},getters:{userIsAuthorized:function(t){return t.fields&&void 0!==t.fields.ID},userGetUserData:function(t){return t.fields},userGetUserPhone:function(t){return t.fields&&t.fields.PERSONAL_PHONE?ot(t.fields.PERSONAL_PHONE):null},userGetUserEmail:function(t){return t.fields&&t.fields.EMAIL?t.fields.EMAIL:null},userGetUserPhoto:function(t){return t.fields&&t.fields.PERSONAL_PHOTO?t.fields.PERSONAL_PHOTO:null},userGetUserPhoneFormatted:function(t){if(!t.fields||void 0===t.fields.PERSONAL_PHONE)return null;let e=ot(t.fields.PERSONAL_PHONE);if(!e)return null;let n="";return e.split("").forEach((function(t,e){2===e&&(n+=" ("),5===e&&(n+=") "),8!==e&&10!==e||(n+="-"),n+=t})),n},userGetFavourites:function(t){return t.favourites},userIsAdmin:function(t){return!!(t.fields&&t.fields.GROUP_ID&&Array.isArray(t.fields.GROUP_ID))&&t.fields.GROUP_ID.includes("1")},userIsManager:function(t){return!!(t.fields&&t.fields.GROUP_ID&&Array.isArray(t.fields.GROUP_ID))&&t.fields.GROUP_ID.filter((function(t){return[1,4,5,6,8,9,10,12,13,16,17,18,19,20,21,25,26].includes(+t)})).length>0},userIsContentManager:function(t){return!!(t.fields&&t.fields.GROUP_ID&&Array.isArray(t.fields.GROUP_ID))&&t.fields.GROUP_ID.includes("8")},userGetRRSessionId:function(t){let e=document.cookie.split(" ").find((function(t){if(t.includes("rcuid"))return t}));return void 0!==e?(e=e.replace(";",""),e.split("=")[1]):0}},mutations:{UPDATE_USER_DATA:function(t,e){if(Object.keys(e).forEach((function(t){e[t]||null===e[t]||(e[t]=null)})),e.EMAIL){const t={};e.NAME&&(t.name=e.NAME),O.setEmail(e.EMAIL,t)}
1return null===t.fields?t.fields=tt({},e):t.fields=tt(tt({},t.fields),e)},UPDATE_FAVOURITES:function(t,e){t.favourites=e}},actions:{userSetUserData:function(t,e){t.commit("UPDATE_USER_DATA",e)},userChangePassword:function(t,e){return _.post(st.CHANGE_PASSWORD,e).then((function(t){return t.data})).catch((function(t){return console.error(t),t.response.data}))},userUpdateFields:function(t,e){return _.post(st.UPDATE,e,{headers:{"Content-Type":"application/json"}}).then((function(e){return t.commit("UPDATE_USER_DATA",e.data.fields),e.data})).catch((function(t){return console.error(t),t.response.data}))},userSmsConfirm:function(t,e){return _.post(st.SMS_REQUEST,e,{headers:{"Content-Type":"application/json"}}).then((function(t){return t.data})).catch((function(t){return console.error(t),console.error(t.response),t.response.data}))},userEmailConfirm:function(t,e){return _.post(st.EMAIL_REQUEST,e,{headers:{"Content-Type":"application/json"}}).then((function(t){return t.data})).catch((function(t){return console.error(t),t.response.data}))},authSignIn:(t,e)=>_.post(it.SIGN_IN_BY_PASSWORD,b(e)).then((e=>{const{success:n,user:s}=e.data;if(!n)throw{response:e};return t.commit("UPDATE_USER_DATA",s),O.setEmail(s.EMAIL),e.data})).catch((t=>t.response.data)),authSignUpInit:async(t,e)=>(e.token=await Q(),_.post(it.SIGN_UP_INIT,b(e)).then((t=>(O.setEmail(e.email,{name:e.name}),t.data))).catch((t=>t.response.data))),authChangePassword:async(t,e)=>_.post(it.CHANGE_PASSWORD,b(e)).then((t=>{if(!t.data.success)throw{response:t};return t.data})).catch((t=>t.response.data)),authSignInByEmailInit:async(t,e)=>_.post(it.RESTORE_PASSWORD_BY_EMAIL,b(e)).then((t=>{if(!t.data.success)throw{response:t};return t.data})).catch((t=>t.response.data)),authSignInByConfirmationCodeInit:async(t,e)=>(e.token=await Q(),_.post(it.SIGN_IN_BY_CONFIRMATION_CODE_INIT,b(e)).then((t=>{if(!t.data.success)throw{response:t};return t.data})).catch((t=>t.response.data))),authSignInByConfirmationCodeReset:async(t,e)=>_.post(it.SIGN_IN_BY_CONFIRMATION_CODE_RESET,b(e)).then((t=>{if(!t.data.success)throw{response:t};return t.data})).catch((t=>t.response.data)),authSignInByConfirmationCodeConfirm:async(t,e)=>_.post(it.SIGN_IN_BY_CONFIRMATION_CODE_CONFIRM,b(e)).then((e=>{if(!e.data.success)throw{response:e};return t.commit("UPDATE_USER_DATA",e.data.user),O.setEmail(e.data.user.EMAIL),e.data})).catch((t=>(console.log(t),t.response.data))),authSignOut:async(t,e)=>_.post(it.SIGN_OUT,b(e)).then((t=>{if(!t.data.success)throw{response:t};return t.data})).catch((t=>t.response.data)),authYandexByOAuthToken:(t,e)=>_.post(it.YANDEX_BY_OAUTH_TOKEN,b(e)).then((e=>{if(!e.data.success)throw{response:e};return t.commit("UPDATE_USER_DATA",e.data.user),O.setEmail(e.data.user.EMAIL),e.data})).catch((t=>t.response.data))}};function ot(t){let e=String(t).replace(/\D/gi,"").split("");if(e.length<10||e.length>11)return null;if(11===e.length){if(8!=+e[0]&&7!=+e[0])return null;e[0]=7}return e=["+"].concat(e),e.join("")}function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const dt="location",pt={GET_LIST:`${dt}/getList/`,FIND_BY_NAME:`${dt}/findByName/`,SET_LOCATION:`${dt}/setLocation/`},ft={state:{location:null,filials:null,cities:null,office:null,mainOffice:null,phones:{primary:null,secondary:null,universal:null},pvz:null,pickupPoints:null,transportCompanyFilialsList:null,secPhoneExclusions:[48,1796,1656],defaultEmail:"[email protected]",defaultTimeOffice:"пн-Ð¿Ñ Ñ 8:00 до 19:00 по ÐСÐ",defaultTimePickup:"пн-Ð¿Ñ Ñ 9:00 до 20:00 по ÐСÐ",loading:!1},getters:{locationId:function(t){return+t.location?.ID},locationCity:function(t){return t.location},locationOffice:function(t){return t.office},locationMainOffice:function(t){return t.mainOffice},locationCitiesList:function(t){return t.cities},locationFilialsList:function(t){return t.filials},locationPvzList:function(t){return t.pvz},locationPickupPoints:function(t){return t.pickupPoints},locationTransportCompanyFilialsList:function(t){return t.transportCompanyFilialsList},locationIsMoscow:function(t){return t.location&&"ÐоÑква"===t.location.CITY_NAME},locationIsMoscowRegion:function(t){return t.location&&"ÐоÑковÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°ÑÑÑ"===t.location.REGION_NAME},locationIsSPB:function(t){return t.location&&"СанкÑ-ÐеÑеÑбÑÑг"===t.location.CITY_NAME},locationIsSPBRegion:function(t){return t.location&&"ÐенингÑадÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°ÑÑÑ"===t.location.REGION_NAME},locationIsOtherRegion:function(t){return t.location&&!["ÐоÑква","ÐоÑковÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°ÑÑÑ","СанкÑ-ÐеÑеÑбÑÑг"].includes(t.location.REGION_NAME)},locationIsRealFilial:function(t){return!!t.office&&(void 0!==t.office.PROPERTY_REAL_OFFICE_VALUE&&"Y"===t.office.PROPERTY_REAL_OFFICE_VALUE)},locationIsRussianSite:function(t){return!0},locationCountryName:function(t){return"KZ"===t.location.COUNTRY_ID?["ÐазаÑ
ÑÑан","ÐазаÑ
ÑÑана","ÐазаÑ
ÑÑанÑ","ÐазаÑ
ÑÑан","ÐазаÑ
ÑÑаном","ÐазаÑ
ÑÑане"]:["РоÑÑиÑ","РоÑÑии","РоÑÑии","РоÑÑиÑ","РоÑÑией","РоÑÑии"]},locationMoscowPhone:function(t){return'<a href="tel:74952282011" class="phone_class">+7 (495) 228-20-11</a>'},locationPhones:function(t){return t.phones}
1,locationEmail:function(t){return t.office&&t.office.PROPERTY_EMAIL_VALUE?t.office.PROPERTY_EMAIL_VALUE.split(",")[0].trim():t.defaultEmail},locationTimeOffice:function(t){return t.office&&t.office.PROPERTY_WORKING_TIME_OFFICE_VALUE?t.office.PROPERTY_WORKING_TIME_OFFICE_VALUE.trim():t.defaultTimeOffice},locationTimePickup:function(t){return t.office&&t.office.PROPERTY_WORKING_TIME_PICKUP_VALUE?t.office.PROPERTY_WORKING_TIME_PICKUP_VALUE.trim():t.defaultTimePickup},locationIsRU:function(){return/.ru$/.test(window.location.origin)},locationIsKZ:function(){return/.kz$/.test(window.location.origin)},locationLoading:function(t){return t.loading}},mutations:{SAVE_LOCATION:function(t,e){e.ID&&!e.CITY_ID&&(e.CITY_ID=e.ID),e.REGION&&!e.REGION_NAME&&(e.REGION_NAME=e.REGION),t.location=e},SAVE_OFFICE:function(t,e){t.office=e,t.phones=lt(lt({},t.phones),{},{primary:e&&e.PRIMARY_PHONE?e.PRIMARY_PHONE:null,secondary:e&&e.SECONDARY_PHONE?e.SECONDARY_PHONE:null})},SAVE_MAIN_OFFICE:function(t,e){t.mainOffice=e},SAVE_PHONES:function(t,e){t.phones=lt(lt({},t.phones),e)},SAVE_CITIES:function(t,e){t.cities=e},SAVE_FILIALS:function(t,e){t.filials=e},SAVE_PVZ:function(t,e){t.pvz=e},SAVE_PICKUP_POINTS:function(t,e){t.pickupPoints=e},SAVE_TRANSPORT_COMPANY_FILIALS_LIST:function(t,e){t.transportCompanyFilialsList=e},SET_LOADING:function(t,e){t.loading=!!e}},actions:{requestCitiesList:function(t){if(!this.state.location.loading)return t.commit("SET_LOADING",!0),_.get(pt.GET_LIST).then((function(e){const{data:n}=e;return t.commit("SAVE_CITIES",n.ALL_IN_ONE),t.commit("SAVE_FILIALS",n.FILIALS_SHORT),t.commit("SET_LOADING",!1),n})).catch((function(e){throw console.error(e),t.commit("SET_LOADING",!1),new Error(e.response.data.message)}))},locationFindByName:function(t,e){return _.post(pt.FIND_BY_NAME,b({query:e})).then((function(t){return t.data})).catch((function(t){throw console.error(t),console.error(t.response),new Error(t.response.data.message)}))},setLocation:async function(t){return t.commit("SET_LOADING",!0),_.post(pt.SET_LOCATION,b({id:t.state.location.ID,isCart:window.location.pathname.includes("/personal/cart/")})).then((function(e){const{data:n}=e;return t.commit("SAVE_OFFICE",n.OFFICE),t.commit("SAVE_LOCATION",n.LOCATION),t.commit("SAVE_TRANSPORT_COMPANY_FILIALS_LIST",n.TRANSPORT_COMPANY_FILIALS_LIST),t.commit("SET_LOADING",!1),document.dispatchEvent(new CustomEvent("LocationChanged",{detail:null})),n})).catch((function(e){throw console.error(e),console.error(e.response),t.commit("SET_LOADING",!1),new Error(e.response.data.message)}))},saveCitiesList:function(t,e){return t.commit("SAVE_CITIES",e)},saveFilialsList:function(t,e){return t.commit("SAVE_FILIALS",e)},saveLocation:function(t,e){return t.commit("SAVE_LOCATION",e)},saveOffice:function(t,e){return t.commit("SAVE_OFFICE",e)},saveMainOffice:function(t,e){return t.commit("SAVE_MAIN_OFFICE",e)},savePickupPoints:function(t,e){return t.commit("SAVE_PICKUP_POINTS",e)},savePhones:function(t,e){return t.commit("SAVE_PHONES",e)},locationChangePhones:function(t){const e=this.state.location.phones,n=document.querySelector("header .location-phone-mc"),s=document.querySelectorAll("a.primary-phone"),r=document.querySelectorAll("a.secondary-phone");s.forEach((function(t){e.primary?(t.classList.remove("d-none"),t.href=`tel:${e.primary.SHORT}`,t.innerText=e.primary.SPACED):t.classList.add("d-none")})),r.forEach((function(t){e.secondary?(t.classList.remove("d-none"),t.href=`tel:${e.secondary.SHORT}`,t.innerText=e.secondary.SPACED):t.classList.add("d-none")})),e.primary&&e.secondary?n.classList.remove("show-third"):n.classList.add("show-third")},locationShowCitySelect:async function(t){if(this.state.location.cities||await this._actions.requestCitiesList[0](t),this.state.location.cities)return this.state.modals.selectCity.show=!0},locationDirectCitySelect:async function(t,e){if(this.state.location.cities||await this._actions.requestCitiesList[0](t),!this.state.location.cities)return console.error("Cities list not defined",this.state.location);const n=this.state.location.cities.find((function(t){return+t.ID==+e}));return n?(t.commit("SAVE_LOCATION",n),await this._actions.setLocation[0](t)):console.error("Can't find city in list",this.state.location.cities)},locationSetTransportCompanyFilialsList:function(t,e){t.commit("SAVE_TRANSPORT_COMPANY_FILIALS_LIST",e)}}};function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ht(Object(n),!0).forEach((function(e){vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _t={state:{selectCity:{show:!1,code:null,title:null,size:"xl",hideFooter:!0,hideHeaderClose:!1,contentClass:"sc",bodyClass:""},personal:{show:!1,code:null,title:"ÐиÑнÑй кабинеÑ",size:"xs",hideFooter:!0,hideHeaderClose:!1,contentClass:"",bodyClass:""},cart:{show:!1,code:null,title:"ÐоÑзина",size:"xl",hideFooter:!0,hideHeaderClose:!1,contentClass:"",bodyClass:""},form:{show:!1,code:null,title:null,size:"md",hideFooter:!0,hideHeaderClose:!1,contentClass:"form",bodyClass:"container-fluid",directValues:null},formDefault:{show:!1,code:null,title:null,size:"md",hideFooter:!0,hideHeaderClose:!1,contentClass:"form",bodyClass:"container-fluid",directValues:null},iBlockElementEdit:{show:!1,code:null,title:null,size:"lg",hideFooter:!0,hideHeaderClose:!1,contentClass:"form",bodyClass:"container-fluid",directValues:null}},mutations:{OPEN_MODAL:function(t,e){return t[e.code]=mt(mt(mt({},t[e.code]),e.params),{},{show:!0}),!0},CLOSE_MODAL:function(t,e){return t[e]=mt(mt({},t[e]),{},{show:!1}),!0},OPEN_MODAL_FORM:function(t,e){return void 0===e?(console.error("Required params are empty"),!1):"string"!=typeof e.code?(console.error(`Form ${e.code} has invalid format`),!1):(t.form=mt(mt(mt({},t.form),e),{},{show:!0}),!0)},CLOSE_MODAL_FORM:function(t){return t.form=mt({},t.formDefault),!0},OPEN_CART:function(t,e){return t.cart=mt(mt(mt({},t.cart),e),{},{show:!0}),!0},CLOSE_CART:function(t){return t.cart=mt(mt({},t.cart),{},{show:!1}),!0}},actions:{openModal:function(t,e){const n={code:e.code,params:mt(mt({code:null,title:null,size:"xl",hideFooter:!0,hideHeaderClose:!1,contentClass:"form",bodyClass:"container-fluid"},e.params),{},{directValues:mt({},e.params.directValues)})};return t.commit("OPEN_MODAL",n)},closeModal:function(t,e){return t.commit("CLOSE_MODAL",e)},openModalForm:function(t,e){return t.commit("OPEN_MODAL_FORM",e)},closeModalForm:function(t){return t.commit("CLOSE_MODAL_FORM")},openModalCart:function(t,e={}){return!/\/personal\/cart/.test(location.pathname)&&t.commit("OPEN_CART",e)},closeModalCart:function(t){return t.commit("CLOSE_CART")}}};function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function bt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const yt="user/favourites",Ct={INSERT:`${yt}/insert.php`,DELETE:`${yt}/delete.php`},Ot={state:{items:{},order:[]},getters:{favouritesItems:function(t){return{items:t.items,order:t.order}},favouritesCount:function(t){return t.order.length}
1,favouritesIsEmpty:function(t){return 0===t.order.length}},mutations:{FAVOURITES_SET_ITEMS:function(t,e){e.items&&(t.items=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(n),!0).forEach((function(e){bt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e.items)),e.order&&(t.order=[...e.order])}},actions:{favouritesSetItems:function(t,e){return t.commit("FAVOURITES_SET_ITEMS",e)},favouritesAdd:function(t,e){return _.post(Ct.INSERT,e).then((function(e){return t.commit("FAVOURITES_SET_ITEMS",e.data),e.data})).catch((function(t){return console.error(t),console.error(t.response.data),t.response.data}))},favouritesRemove:function(t,e){return _.post(Ct.DELETE,e).then((function(e){return t.commit("FAVOURITES_SET_ITEMS",e.data),e.data})).catch((function(t){return console.error(t),t.response.data}))},favouritesAddUnauthorized:function(t,e){return t.commit("FAVOURITES_SET_ITEMS",{order:Et.add(+e)})},favouritesRemoveUnauthorized:function(t,e){return t.commit("FAVOURITES_SET_ITEMS",{order:Et.remove(+e)})},favouritesOnAfterLogin:function(t){const e=Et.get();if(!e.length)return;const n=new FormData;return e.forEach((t=>n.append("id[]",String(t)))),_.post(Ct.INSERT,n).then((function(e){return t.commit("FAVOURITES_SET_ITEMS",e.data),Et.clear(),e.data})).catch((function(t){return Et.clear(),t.response.data}))}}},wt=Ot;const Et=new class{constructor(){this.items=this.get(),Ot.state.order=this.items}get(){try{return JSON.parse(localStorage.fo_favourites)}catch(t){return localStorage.fo_favourites="[]",[]}}save(){return localStorage.fo_favourites=JSON.stringify(this.items),this.items}add(t){return this.items.includes(t)||(this.items.push(+t),this.save(this.items)),this.items}remove(t){return this.items.includes(t)?(this.items.splice(this.items.indexOf(+t),1),this.save(this.items)):this.items}clear(){return this.items=[],this.save()}},Pt={state:{items:[]},getters:{compareItems:function(t){return t.items},compareCount:function(t){return t.items.length},compareIsEmpty:function(t){return 0===t.items.length}},mutations:{COMPARE_SET_ITEMS:function(t,e){t.items=e}},actions:{compareAdd:function(t,e){return t.commit("COMPARE_SET_ITEMS",It.add(e))},compareRemove:function(t,e){return t.commit("COMPARE_SET_ITEMS",It.remove(e))},compareOnStorage:function(t,e){return"fo_compare"!==e.key?null:t.commit("COMPARE_SET_ITEMS",It.get())}}},St=Pt;const It=new class{constructor(){this.items=this.get(),Pt.state.items=this.items}get(){try{return JSON.parse(localStorage.fo_compare)}catch(t){return localStorage.fo_compare="[]",[]}}save(){return localStorage.fo_compare=JSON.stringify(this.items),this.items}add(t){return this.items.includes(t)||(this.items.push(+t),this.save(this.items)),this.items}remove(t){return this.items.includes(t)?(this.items.splice(this.items.indexOf(+t),1),this.save(this.items)):this.items}clear(){return this.items=[],this.save()}};function Tt(t,e){return Dt(t,e)}function Dt(t,e){let n;for(let s of t){if(n)break;if(+s.ID===e){n=s;break}if(void 0!==s.CHILDREN&&s.CHILDREN.length>0&&(n=Dt(s.CHILDREN,e),n))break}return n}const At={state:{tree:null,cached:!1,defaultType:!1},getters:{menuIsCached:function(t){return t.cached},menuIsDefaultType:function(t){return t.defaultType},menuTree:function(t){return t.tree},menuTreeDefaultType:function(t){if(!t.tree)return null;const e=[],n={ID:"others",NAME:"ÐÑоÑие ÑоваÑÑ",SELECTED:!1,CHILDREN:[]},s=t.tree;return s.forEach((function(t,r){r<6?("SEP_CATEGORY"===t.CHILDREN[0].TYPE&&(t.CHILDREN[0].SELECTED=!0),e.push(t)):r<s.length-1&&(t.TYPE="SEP_CATEGORY",0===n.CHILDREN.length&&(t.SELECTED=!0),n.CHILDREN.push(t))})),e.concat(n).concat(s[s.length-1])},menuTreeExpandType:function(t){if(!t.tree)return null;const e=t.tree.reduce(((t,e)=>105==+e.CODE?t:"SEP_CATEGORY"===e.CHILDREN[0].TYPE?[...t,...e.CHILDREN]:[...t,e]),[]),n=e.filter((t=>[5,41476,41647].includes(+t.ID)));return[n,...e.reduce(((t,e)=>{if(n.includes(e))return t;if(38==+e.ID){const n=t.find((t=>34==+t.ID));return n.CHILDREN=[...n.CHILDREN,...e.CHILDREN],t}if(33==+e.ID){const n=t.find((t=>20==+t.ID));return n.CHILDREN=[...n.CHILDREN,...e.CHILDREN],t}return[...t,e]}),[])]},menuTreeInnerType:function(t){if(!t.tree)return null;let e=[];const n={ID:"HOME",NAME:"",CHILDREN:[],SELECTED:!1,URL:"/"},s=t.tree;
1return s.forEach((function(t,e){n.CHILDREN.push(t)})),e.push(n),e.push(Tt(s,37416)),e=e.concat(Tt(s,34500).CHILDREN),e}},mutations:{UPDATE_TREE:function(t,e){t.tree=e},UPDATE_CACHED:function(t,e){t.cached=e},UPDATE_DEFAULT_TYPE:function(t,e){t.cached=e}},actions:{menuSetStartData:function(t,e){return t.commit("UPDATE_TREE",e.TREE),t.commit("UPDATE_CACHED",e.CACHED),t.commit("UPDATE_DEFAULT_TYPE",e.DEFAULT_TYPE),!0}}},kt={state:{devMode:IS_DEV_SERVER||!1,screenWidth:null,breakPointsOrder:["xl","lg","md","sm","xs"],breakPoints:{xl:1200,lg:1024,md:768,sm:575,xs:0},companyFoundationYear:2002,serverTime:null,mountTime:new Date},getters:{isDevServer:function(t){return!!t.devMode},systemServerTime:function(t){return t.serverTime},systemCompanyOfficialName:function(t){return'ÐÐÐ "ÐомпÑеÑвиÑ"'},systemCompanyAge:function(t){return(new Date).getFullYear()-t.companyFoundationYear},systemScreenSizeCode:function(t){let e="xs";if(!t.screenWidth)return!1;for(const n of t.breakPointsOrder)if(t.screenWidth>t.breakPoints[n]){e=n;break}return e},systemScreenSizes:function(t){const e={};let n=!1;for(const s of t.breakPointsOrder)n?e[s]=!1:t.screenWidth>t.breakPoints[s]&&(e[s]=!0,n=!0);return e},isXL:function(t){return t.screenWidth>=t.breakPoints.xl},isLG:function(t){return t.screenWidth>=t.breakPoints.lg&&t.screenWidth<t.breakPoints.xl},isMD:function(t){return t.screenWidth>=t.breakPoints.md&&t.screenWidth<t.breakPoints.lg},isSM:function(t){return t.screenWidth>=t.breakPoints.sm&&t.screenWidth<t.breakPoints.md},isXS:function(t){return t.screenWidth>=t.breakPoints.xs&&t.screenWidth<t.breakPoints.sm}},mutations:{SET_SCREEN_WIDTH:function(t){t.screenWidth=document.documentElement.clientWidth},SET_SERVER_TIME:function(t,e){t.serverTime=e},UPDATE_SERVER_TIME:function(t,e){t.serverTime.setTime(t.serverTime.getTime()+e),t.serverTime=t.serverTime}},actions:{systemSetScreenWidthHandler:function(t){t.commit("SET_SCREEN_WIDTH"),window.addEventListener("resize",(function(){requestAnimationFrame((function(){t.commit("SET_SCREEN_WIDTH")}))}))},systemSetServerTime:function(t,e){t.commit("SET_SERVER_TIME",new Date(Date.parse(e)))},systemUpdateServerTime:function(t,e){t.commit("UPDATE_SERVER_TIME",e)}}},jt={PRODUCT_QUERY:"search/product/query/"},Lt={state:{loading:!1},getters:{searchLoading:function(t){return t.loading}},mutations:{SET_LOADING:function(t,e){t.loading=e}},actions:{searchProducts:async function(t,e){return t.commit("SET_LOADING",!0),_.post(jt.PRODUCT_QUERY,b({q:e,limit:5})).then((function(e){return t.commit("SET_LOADING",!1),e.data})).catch((function(e){throw t.commit("SET_LOADING",!1),console.error(e),console.error(e.response),new Error("������ ��� ������� � ������")}))}}},Rt={state:{},getters:{},mutations:{},actions:{requestMoreNews:function(t,e){return _.get("news/show_more.php",e).then((t=>t.data.success?t.data:t))}}};function Mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(n),!0).forEach((function(e){Nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ut="form",qt={GET:`${Ut}/get.php`,POST:`${Ut}/post.php`},Ht={state:{forms:{}},getters:{formUniversalForms:function(t){return t.forms}},mutations:{SAVE_FORM:function(t,e){t.forms[e.form.sid]=xt(xt({},e),{},{stage:1}),t.forms=xt({},t.forms)},SUCCESS_FORM:function(t,e){t.forms[e].stage=2}},actions:{universalFormGet:function(t,e){return void 0!==this.state.form.forms[e.sid]?this.state.form.forms[e.sid]:_.get(qt.GET,{params:e}).then((function(e){return t.commit("SAVE_FORM",e.data),e.data}
1)).catch((function(t){return console.error(t),t.response.data}))},universalFormPost:function(t,e){return _.post(qt.POST,e).then((function(t){return P.reachGoal("form_filled"),t.data})).catch((function(t){return console.error(t),t.response.data}))}}};var Ft=n(7543),$t=n.n(Ft);function Vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(n),!0).forEach((function(e){Gt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Yt="accessories",zt={GET_SECTIONS:`${Yt}/getSections/`,GET_BRANDS:`${Yt}/getBrands/`,GET_PRODUCTS:`${Yt}/getProducts/`},Zt={state:{selected:{asid:0,bid:0,pid:0,cacheTime:3600},sections:{},brands:{},products:{}},getters:{asGetSelected:function(t){return t.selected},asGetSections:function(t){return t.sections},asGetBrands:function(t){return t.brands},asGetProducts:function(t){return t.products}},mutations:{AS_SET_START_DATA:function(t,e){t.sections=e.sections?e.sections:{},t.brands=e.brands?e.brands:{},t.products=e.products?e.products:{}},AS_SET_SECTIONS:function(t,e){t.sections=Bt(Bt({},t.sections),e)},AS_SET_BRANDS:function(t,e){t.brands=Bt(Bt({},t.brands),e)},AS_SET_PRODUCTS:function(t,e){t.products=Bt({},$t()(t.products,e))},AS_SET_SELECTED:function(t,e){t.selected=Bt(Bt({},t.selected),e)}},actions:{asSetStartData:function(t,e){t.commit("AS_SET_START_DATA",e)},asSetSelected:function(t,e){t.commit("AS_SET_SELECTED",e)},asRequestSections:function(t,e){return _.post(zt.GET_SECTIONS,b(e)).then((e=>{t.commit("AS_SET_SECTIONS",e.data.sections)})).catch((t=>{console.error(t),console.log(t.response)}))},asRequestBrands:async function(t,e){return _.post(zt.GET_BRANDS,b(e)).then((n=>{console.log(n.data),t.commit("AS_SET_BRANDS",{[e.asid]:n.data.brands})})).catch((t=>{console.error(t),console.log(t.response)}))},asRequestProducts:function(t,e){return _.post(zt.GET_PRODUCTS,b(e)).then((n=>{t.commit("AS_SET_PRODUCTS",{[e.asid]:{[e.bid]:n.data.products}})})).catch((t=>{console.error(t),console.log(t.response)}))}}},Wt="catalog/feedback",Kt={SELECT:`${Wt}/select/`,INSERT:`${Wt}/insert/`,UPDATE:`${Wt}/update/`,DELETE:`${Wt}/delete/`},Xt={state:{},getters:{},mutations:{},actions:{feedbackSelect:function(t,e){return _.get(Kt.SELECT+e.id)},feedbackInsert:function(t,e){return _.post(Kt.INSERT,e.body,{headers:{"Content-Type":"application/json"}})},feedbackUpdate:function(t,e){return _.post(Kt.UPDATE+e.id,e.body,{headers:{"Content-Type":"application/json"}})},feedbackDelete:async function(t,e){return _.post(Kt.DELETE+e.id)}}},Qt={SUGGEST:"dadata/suggest/"},Jt={state:{loading:!1},getters:{daDataIsLoading:function(t){return t.loading}},mutations:{SET_LOADING:function(t,e){t.loading=e}},actions:{daDataGetSuggestions:async function(t,e){return t.commit("SET_LOADING",!0),_.post(Qt.SUGGEST,b(e)).then((t=>t.data)).catch((t=>{throw console.error(t),console.error(t.response),new Error("ÐÑибка пÑи запÑоÑе к daData")})).finally((()=>t.commit("SET_LOADING",!1)))}}},te={LEASING_CREATE_LEAD:"alfabank/leasing/createLead/"},ee={state:{loading:!1},getters:{alfaBankIsLoading:function(t){return t.loading}},mutations:{SET_LOADING:function(t,e){t.loading=e}},actions:{alfaBankCreateLeasingLead:async function(t,e){return t.commit("SET_LOADING",!0),_.post(te.LEASING_CREATE_LEAD,b(e)).then((t=>t.data.result)).catch((t=>{throw console.error(t),console.error("Response:",t.response),console.error("Data:",t.response.data),new Error(JSON.stringify(t.response.data))})).finally((()=>
1t.commit("SET_LOADING",!1)))}}},ne="sber/credit/updateRequisites",se={state:{},getters:{},mutations:{},actions:{creditUpdateRequisites:async function(t,e){const n=new FormData;return e.values.forEach((([t,e])=>{n.append(`requisites[${t}]`,e)})),_.post(`${ne}/${e.orderNumber}/`,n)}}};function re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?re(Object(n),!0).forEach((function(e){ae(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ae(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const oe=!1,ce={state:{entities:[]},getters:{toastGetEntities:t=>t.entities},mutations:{TOAST_SHOW:function(t,e){t.entities=[...t.entities,ie(ie({},e),{},{visible:!0})]},TOAST_HIDE:function(t,e){t.entities[e].visible=oe,t.entities=ie({},t.entities)}},actions:{toastAppend:function(t,e){e.devOnly&&!t.getters.isDevServer||t.commit("TOAST_SHOW",ie(ie({},e),{},{variant:"default"}))},toastAppendError:function(t,e){e.devOnly&&!t.getters.isDevServer||t.commit("TOAST_SHOW",ie(ie({},e),{},{variant:"danger"}))},toastAppendSuccess:function(t,e){e.devOnly&&!t.getters.isDevServer||t.commit("TOAST_SHOW",ie(ie({},e),{},{variant:"success"}))},toastHide:function(t,e){t.commit("TOAST_HIDE",e)}}};s.default.use(r.ZP);const le=a().create({}),ue=new r.ZP.Store({state:{},getters:{},mutations:{},actions:{addToCart:(t,e)=>le.get("/products/add2basket_ajax.php",{params:e}),useVueCartApi:(t,e)=>le.get("/personal/cart/vue_cart_api.php",{params:e}),useVueAccessSelectApi:(t,e)=>le.get("/products/access_select_vue_api.php",{params:e})},modules:{cart:k,catalog:F,catalog_ajax:Y,recommends:X,user:at,location:ft,modals:_t,favourites:wt,compare:St,menu:At,system:kt,slider:{state:{items:{}},getters:{sliderItems:function(t){return t.items}},mutations:{SET_ITEMS:function(t,e){t.items=e}},actions:{sliderSetItems:function(t,e){t.commit("SET_ITEMS",e)}}},search:Lt,news:Rt,form:Ht,accessories:Zt,feedback:Xt,dadata:Jt,alfabank:ee,sberCredit:se,toast:ce}});var de=n(7860),pe=n(1053),fe=n(7636),he=n(2079),me=n(4405),ve=n(1069),_e=n(6753),ge=n(6011),be=n(5715),ye=n(1148),Ce=n(5739),Oe=n(7309),we=n(3863),Ee=n(9326),Pe=n(8397),Se=n(6433),Ie=n(7973),Te=n(3963),De=n(5620),Ae=n(8627),ke=n(8532),je=n(6679),Le=n(5491);s.default.use(de.k),s.default.use(pe.SY),s.default.use(fe.PI),s.default.use(he.w6),s.default.use(me.v5),s.default.use(ve.E),s.default.use(_e.g),s.default.use(ge.s),s.default.use(be.WA),s.default.use(ye.Rt),s.default.use(Ce.Q),s.default.use(Oe.T),s.default.use(we.i),s.default.use(Ee.y),s.default.use(Pe.x),s.default.use(Se.C),s.default.use(Ie.Y),s.default.use(Te.J),s.default.use(De.F),s.default.use(Ae.k),s.default.use(ke.lF),s.default.use(je.m$),s.default.use(Le.iH);var Re=n(2569),Me=n(9381),xe=n(161),Ne=n(6970),Ue=n(9218),qe=n(8589),He=n(2472),Fe=n(3866),$e=n(1940),Ve=n(6375),Be=n(1332),Ge=n(8023),Ye=n(2175),ze=n(3371),Ze=n(1954),We=n(906),Ke=n(812),Xe=n(9388),Qe=n(3268),Je=n(8647);function tn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function en(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tn(Object(n),!0).forEach((function(e){nn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sn(t,e=!1){const n=document.createElement("div");n.innerHTML=t;const s=n.querySelector("svg"),r=s.querySelectorAll("path");rn(s),r.forEach((t=>rn(t)));const i=Object.assign(...Object.values(s.attributes).map((t=>({[t.name]:t.value}))));return en(en({},i),{},e?{raw:s.innerHTML}:{paths:an(r)})}function rn(t){const{stroke:e,fill:n}=t.attributes;e?.value&&"none"!==e.value&&"currentColor"!==e.value&&t.setAttribute("stroke","currentColor"),n?.value&&"none"!==n.value&&"currentColor"!==n.value&&t.setAttribute("fill","currentColor")}function an(t){return Array.from(t).map((t=>Object.assign(...Object.values(t.attributes).map((t=>({[t.name]:t.value}))))))}const on={"fo-clock":sn('<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11 19.25C15.5563 19.25 19.25 15.5563 19.25 11C19.25 6.44365 15.5563 2.75 11 2.75C6.44365 2.75 2.75 6.44365 2.75 11C2.75 15.5563 6.44365 19.25 11 19.25Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M11 6.1875V11H15.8125" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-map-pin":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path d="M17.5 8.33334C17.5 14.1667 10 19.1667 10 19.1667C10 19.1667 2.5 14.1667 2.5 8.33334C2.5 6.34422 3.29018 4.43656 4.6967 3.03004C6.10322 1.62352 8.01088 0.833344 10 0.833344C11.9891 0.833344 13.8968 1.62352 15.3033 3.03004C16.7098 4.43656 17.5 6.34422 17.5 8.33334Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M10 10.8333C11.3807 10.8333 12.5 9.71406 12.5 8.33334C12.5 6.95263 11.3807 5.83334 10 5.83334C8.61929 5.83334 7.5 6.95263 7.5 8.33334C7.5 9.71406 8.61929 10.8333 10 10.8333Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </g>\n</svg>\n'),"fo-phone":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path d="M18.3333 14.1V16.6C18.3343 16.8321 18.2867 17.0618 18.1937 17.2745C18.1008 17.4871 17.9644 17.678 17.7934 17.8349C17.6224 17.9918 17.4205 18.1112 17.2006 18.1856C16.9808 18.26 16.7478 18.2876 16.5167 18.2667C13.9523 17.988 11.4892 17.1118 9.32498 15.7083C7.31151 14.4289 5.60443 12.7218 4.32499 10.7083C2.91663 8.53435 2.04019 6.05917 1.76665 3.48334C1.74583 3.2529 1.77321 3.02064 1.84707 2.80136C1.92092 2.58208 2.03963 2.38058 2.19562 2.20969C2.35162 2.0388 2.54149 1.90227 2.75314 1.80878C2.9648 1.71529 3.1936 1.66689 3.42499 1.66668H5.92499C6.32941 1.6627 6.72148 1.80591 7.02812 2.06962C7.33476 2.33333 7.53505 2.69955 7.59165 3.10001C7.69717 3.90006 7.89286 4.68562 8.17499 5.44168C8.2871 5.73995 8.31137 6.0641 8.24491 6.37574C8.17844 6.68738 8.02404 6.97344 7.79998 7.20001L6.74165 8.25834C7.92795 10.3446 9.65536 12.072 11.7417 13.2583L12.8 12.2C13.0266 11.976 13.3126 11.8216 13.6243 11.7551C13.9359 11.6886 14.26 11.7129 14.5583 11.825C15.3144 12.1071 16.0999 12.3028 16.9 12.4083C17.3048 12.4655 17.6745 12.6693 17.9388 12.9813C18.203 13.2932 18.3435 13.6913 18.3333 14.1Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-question":sn('<svg width="18" height="18" viewBox="0 0 18 18" stroke="currentColor" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path d="M9,15.8c3.7,0,6.8-3,6.8-6.8c0-3.7-3-6.8-6.8-6.8c-3.7,0-6.8,3-6.8,6.8C2.3,12.7,5.3,15.8,9,15.8z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M9,10.7v-0.6c0.4,0,0.9-0.1,1.3-0.4c0.4-0.2,0.7-0.6,0.8-1c0.2-0.4,0.2-0.9,0.1-1.3c-0.1-0.4-0.3-0.8-0.6-1.2 C10.3,6,9.9,5.8,9.4,5.7C9,5.6,8.6,5.6,8.1,5.8C7.7,6,7.4,6.3,7.1,6.6C6.9,7,6.8,7.4,6.8,7.9"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M9,13.6c0.4,0,0.7-0.3,0.7-0.7S9.4,12.2,9,12.2s-0.7,0.3-0.7,0.7S8.6,13.6,9,13.6z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>\n </g>\n</svg>'),"fo-mail":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path d="M3.33334 3.33334H16.6667C17.5833 3.33334 18.3333 4.08334 18.3333 5.00001V15C18.3333 15.9167 17.5833 16.6667 16.6667 16.6667H3.33334C2.41667 16.6667 1.66667 15.9167 1.66667 15V5.00001C1.66667 4.08334 2.41667 3.33334 3.33334 3.33334Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M18.3333 5L10 10.8333L1.66667 5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-search":sn('<svg width="20" height="20" viewBox="0 0 20 20" stroke="currentColor" stroke-width="2" fill="none" xmlns="http://www.w3.org/2000/svg">\r\n\t<g>\r\n\t\t<path d="M9.2,15.8c3.7,0,6.7-3,6.7-6.7c0-3.7-3-6.7-6.7-6.7c-3.7,0-6.7,3-6.7,6.7C2.5,12.8,5.5,15.8,9.2,15.8z"/>\r\n\t\t<path d="M17.5,17.5l-3.6-3.6"/>\r\n\t</g>\r\n</svg>\r\n'),"fo-user":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path d="M16.6667 17.5V15.8333C16.6667 14.9493 16.3155 14.1014 15.6904 13.4763C15.0653 12.8512 14.2174 12.5 13.3334 12.5H6.66671C5.78265 12.5 4.93481 12.8512 4.30968 13.4763C3.68456 14.1014 3.33337 14.9493 3.33337 15.8333V17.5"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M9.99996 9.16667C11.8409 9.16667 13.3333 7.67428 13.3333 5.83333C13.3333 3.99238 11.8409 2.5 9.99996 2.5C8.15901 2.5 6.66663 3.99238 6.66663 5.83333C6.66663 7.67428 8.15901 9.16667 9.99996 9.16667Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-compare":sn('<svg width="20" height="20" viewBox="0 0 20 20"><g><path d="M4,18v-6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16,18V8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10,18V2" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>'),"fo-heart":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n d="M17.3667 3.84166C16.941 3.41583 16.4357 3.07803 15.8795 2.84757C15.3232 2.6171 14.7271 2.49847 14.125 2.49847C13.5229 2.49847 12.9268 2.6171 12.3705 2.84757C11.8143 3.07803 11.309 3.41583 10.8833 3.84166L10 4.725L9.11666 3.84166C8.25692 2.98192 7.09086 2.49892 5.875 2.49892C4.65914 2.49892 3.49307 2.98192 2.63333 3.84166C1.77359 4.70141 1.29059 5.86747 1.29059 7.08333C1.29059 8.29919 1.77359 9.46525 2.63333 10.325L3.51666 11.2083L10 17.6917L16.4833 11.2083L17.3667 10.325C17.7925 9.89937 18.1303 9.39401 18.3608 8.83779C18.5912 8.28158 18.7099 7.6854 18.7099 7.08333C18.7099 6.48
1126 18.5912 5.88508 18.3608 5.32887C18.1303 4.77265 17.7925 4.26729 17.3667 3.84166V3.84166Z"\n />\n</svg>\n'),"fo-cart":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n<g>\n<path d="M16.6654 18.3332C17.1256 18.3332 17.4987 17.9601 17.4987 17.4998C17.4987 17.0396 17.1256 16.6665 16.6654 16.6665C16.2051 16.6665 15.832 17.0396 15.832 17.4998C15.832 17.9601 16.2051 18.3332 16.6654 18.3332Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M7.5013 18.3332C7.96154 18.3332 8.33463 17.9601 8.33463 17.4998C8.33463 17.0396 7.96154 16.6665 7.5013 16.6665C7.04106 16.6665 6.66797 17.0396 6.66797 17.4998C6.66797 17.9601 7.04106 18.3332 7.5013 18.3332Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M0.832031 0.833496H4.16536L6.3987 11.9918C6.4749 12.3755 6.68362 12.7201 6.98832 12.9654C7.29302 13.2107 7.67428 13.341 8.06536 13.3335H16.1654C16.5564 13.341 16.9377 13.2107 17.2424 12.9654C17.5471 12.7201 17.7558 12.3755 17.832 11.9918L19.1654 5.00016H4.9987" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</g>\n</svg>\n'),"fo-hamburger":sn('<svg width="24" height="24" viewBox="0 0 24 24" stroke="currentColor" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M3 18H21"></path>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M3 12H21"></path>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M3 6H21"></path>\n </g>\n</svg>'),"fo-cross":sn('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path d="M18 6L6 18" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M6 6L18 18" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-in-stock":sn('<svg width="24" height="24" viewBox="0 0 24 24" stroke="currentColor" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n d="M21 11.08V12C20.9988 14.1564 20.3005 16.2547 19.0093 17.9818C17.7182 19.709 15.9033 20.9725 13.8354 21.5839C11.7674 22.1953 9.55726 22.1219 7.53447 21.3746C5.51168 20.6273 3.78465 19.2461 2.61096 17.4371C1.43727 15.628 0.879791 13.4881 1.02168 11.3363C1.16356 9.18455 1.99721 7.13631 3.39828 5.49706C4.79935 3.85781 6.69279 2.71537 8.79619 2.24013C10.8996 1.7649 13.1003 1.98232 15.07 2.85999"\n ></path>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n d="M21 4L11 14.01L8 11.01"\n ></path>\n </g>\n</svg>'),"fo-arrow-right":sn('<svg fill="none" stroke="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" >\r\n<path d="M17,10H3"/>\r\n<path d="M10,17l-7-7l7-7"/>\r\n</svg>\r\n'),"fo-cargo":sn('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M18.5 21C19.8807 21 21 19.8807 21 18.5C21 17.1193 19.8807 16 18.5 16C17.1193 16 16 17.1193 16 18.5C16 19.8807 17.1193 21 18.5 21Z" stroke="#0066CC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M5.5 21C6.88071 21 8 19.8807 8 18.5C8 17.1193 6.88071 16 5.5 16C4.11929 16 3 17.1193 3 18.5C3 19.8807 4.11929 21 5.5 21Z" stroke="#0066CC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M16 8H20L23 11V16H16V8Z" stroke="#0066CC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M16 3H1V16H16V3Z" stroke="#0066CC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-gift":sn('<svg width="22" height="19" viewBox="0 0 22 19" xmlns="http://www.w3.org/2000/svg">\n<path d="M14 6.1847e-06C14.7023 -7.73774e-05 15.3922 0.184738 16.0004 0.53587C16.6086 0.887002 17.1137 1.39207 17.4647 2.0003C17.8158 2.60853 18.0006 3.29847 18.0005 4.00075C18.0003 4.70304 17.8153 5.39291 17.464 6.00101L22 6.00001V8.00001H20V18C20 18.2652 19.8946 18.5196 19.7071 18.7071C19.5196 18.8946 19.2652 19 19 19H3C2.73478 19 2.48043 18.8946 2.29289 18.7071C2.10536 18.5196 2 18.2652 2 18V8.00001H0V6.00001L4.536 6.00101C4.03986 5.14189 3.88069 4.12906 4.08938 3.15918C4.29808 2.1893 4.85975 1.33157 5.66533 0.752558C6.47092 0.173543 7.46293 -0.0854441 8.44875 0.0258849C9.43456 0.137214 10.3438 0.610914 11 1.35501C11.3746 0.928388 11.8361 0.58678 12.3535 0.353084C12.8709 0.119389 13.4323 -0.000994248 14 6.1847e-06ZM10 8.00001H4V17H10V8.00001ZM18 8.00001H12V17H18V8.00001ZM8 2.00001C7.48102 1.99768 6.98145 2.19719 6.60685 2.55639C6.23224 2.91558 6.01193 3.40632 5.99246 3.92495C5.97299 4.44357 6.15588 4.94945 6.50249 5.33572C6.84911 5.722 7.3323 5.9584 7.85 5.99501L8 6.00001H10V4.00001C10 3.52207 9.82889 3.05992 9.51759 2.69726C9.2063 2.33461 8.77542 2.09541 8.303 2.02301L8.149 2.00501L8 2.00001ZM14 2.00001C13.4954 1.99985 13.0094 2.19041 12.6395 2.5335C12.2695 2.87659 12.0428 3.34685 12.005 3.85001L12 4.00001V6.00001H14C14.5046 6.00017 14.9906 5.8096 15.3605 5.46651C15.7305 5.12342 15.9572 4.65316 15.995 4.15001L16 4.00001C16 3.46957 15.7893 2.96087 15.4142 2.58579C15.0391 2.21072 14.5304 2.00001 14 2.00001Z" fill="currentColor" stroke="none" />\n</svg>\n'),"fo-service":sn('<svg height="24" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\r\n <path d="M14.2,7.3C14,7.5,13.9,7.7,13.9,8c0,0.3,0.1,0.5,0.3,0.7l1.6,1.6c0.2,0.2,0.4,0.3,0.7,0.3\r\n\tc0.3,0,0.5-0.1,0.7-0.3L21,6.5c0.5,1.1,0.7,2.3,0.4,3.5c-0.2,1.2-0.8,2.3-1.7,3.2c-0.9,0.9-2,1.4-3.2,1.7c-1.2,0.2-2.4,0.1-3.5-0.4\r\n\tl-6.9,6.9C5.7,21.8,5.2,22,4.6,22s-1.1-0.2-1.5-0.6c-0.4-0.4-0.6-0.9-0.6-1.5c0-0.6,0.2-1.1,0.6-1.5l6.9-6.9\r\n\tc-0.5-1.1-0.7-2.3-0.4-3.5c0.2-1.2,0.8-2.3,1.7-3.2c0.9-0.9,2-1.4,3.2-1.7C15.6,2.9,16.9,3,18,3.5L14.2,7.3L14.2,7.3z"/>\r\n</svg>\r\n'),"fo-star":sn('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-percent":sn('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path d="M19 5L5 19"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M17.5 20C18.8807 20 20 18.8807 20 17.5C20 16.1193 18.8807 15 17.5 15C16.1193 15 15 16.1193 15 17.5C15 18.8807 16.1193 20 17.5 20Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M6.5 9C7.88071 9 9 7.88071 9 6.5C9 5.11929 7.88071 4 6.5 4C5.11929 4 4 5.11929 4 6.5C4 7.88071 5.11929 9 6.5 9Z"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-news":sn('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
1\r\n<path d="M8.3,8.7h10.6"/>\r\n <path d="M8.3,12h10.6"/>\r\n <path d="M8.3,15.3h10.6"/>\r\n <path d="M2.6,20.1c0.4,0,0.8-0.2,1.2-0.5s0.5-0.7,0.5-1.2V4.7c0-0.2,0.1-0.4,0.2-0.6C4.6,3.9,4.8,3.9,5,3.9h17.1\r\n\tc0.2,0,0.4,0.1,0.6,0.2c0.2,0.2,0.2,0.4,0.2,0.6v13.9c0,0.4-0.2,0.8-0.5,1.2s-0.7,0.5-1.2,0.5H2.6z"/>\r\n <path d="M2.6,20.1c-0.4,0-0.8-0.2-1.2-0.5S0.9,19,0.9,18.5V7.1"/>\r\n</svg>\r\n'),"fo-del-box":sn('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M14.5 8.39999L5.5 3.20999"></path>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M19 15V6.99999C18.9996 6.64927 18.9071 6.3048 18.7315 6.00116C18.556 5.69751 18.3037 5.44536 18 5.26999L11 1.26999C10.696 1.09446 10.3511 1.00204 10 1.00204C9.64893 1.00204 9.30404 1.09446 9 1.26999L2 5.26999C1.69626 5.44536 1.44398 5.69751 1.26846 6.00116C1.09294 6.3048 1.00036 6.64927 1 6.99999V15C1.00036 15.3507 1.09294 15.6952 1.26846 15.9988C1.44398 16.3025 1.69626 16.5546 2 16.73L9 20.73C9.30404 20.9055 9.64893 20.9979 10 20.9979C10.3511 20.9979 10.696 20.9055 11 20.73L18 16.73C18.3037 16.5546 18.556 16.3025 18.7315 15.9988C18.9071 15.6952 18.9996 15.3507 19 15Z"></path>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M1.27002 5.95999L10 11.01L18.73 5.95999"></path>\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M10 21.08V11"></path>\n </g>\n</svg>'),"fo-pa-bonuses":sn('<svg height="24" width="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">\r\n <g>\r\n <path d="M22.7,13.4c-0.8-1-2-1.5-3.5-1.5c-1,0-1.8,0.2-2.6,0.7c-0.7,0.5-1.3,1.1-1.6,2c-0.3,0.8-0.5,1.8-0.5,2.7\r\n\t\tc0,1,0.2,1.9,0.5,2.7c0.3,0.8,0.9,1.5,1.6,2c0.7,0.5,1.6,0.7,2.6,0.7c1.5,0,2.6-0.5,3.5-1.5c0.8-1,1.3-2.3,1.3-3.9\r\n\t\tC24,15.7,23.6,14.4,22.7,13.4z M20.7,20.2c-0.3,0.4-0.8,0.5-1.4,0.5c-0.6,0-1.1-0.2-1.4-0.5c-0.5-0.6-0.7-1.5-0.7-2.7\r\n\t\tc0-1.3,0.2-2.2,0.7-2.7c0.3-0.4,0.8-0.6,1.4-0.6c0.6,0,1.1,0.2,1.4,0.5c0.5,0.6,0.7,1.5,0.7,2.7C21.5,18.7,21.2,19.6,20.7,20.2z\r\n\t\t M8.2,2.8c-0.8-1-2-1.5-3.5-1.5c-1,0-1.8,0.2-2.6,0.7C1.4,2.5,0.9,3.2,0.5,4C0.2,4.9,0,5.8,0,6.7s0.2,1.9,0.5,2.7\r\n\t\tc0.3,0.8,0.9,1.5,1.6,2c0.7,0.5,1.6,0.7,2.6,0.7c1.5,0,2.6-0.5,3.5-1.5s1.3-2.3,1.3-3.9S9.1,3.8,8.2,2.8z M6.2,9.6\r\n\t\tc-0.3,0.4-0.8,0.5-1.4,0.5c-0.6,0-1.1-0.2-1.4-0.5C2.9,9,2.7,8.1,2.7,6.9c0-1.3,0.2-2.2,0.7-2.7c0.3-0.4,0.8-0.6,1.4-0.6\r\n\t\tc0.6,0,1.1,0.2,1.4,0.5c0.5,0.6,0.7,1.5,0.7,2.7C6.9,8.2,6.7,9,6.2,9.6z M19.2,1.4L7.7,22.6H4.9L16.3,1.4\r\n\t\tC16.3,1.4,19.2,1.4,19.2,1.4z"/>\r\n </g>\r\n</svg>\r\n'),"fo-pa-service":sn('<svg height="24" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\r\n <path d="M14.2,7.3C14,7.5,13.9,7.7,13.9,8c0,0.3,0.1,0.5,0.3,0.7l1.6,1.6c0.2,0.2,0.4,0.3,0.7,0.3\r\n\tc0.3,0,0.5-0.1,0.7-0.3L21,6.5c0.5,1.1,0.7,2.3,0.4,3.5c-0.2,1.2-0.8,2.3-1.7,3.2c-0.9,0.9-2,1.4-3.2,1.7c-1.2,0.2-2.4,0.1-3.5-0.4\r\n\tl-6.9,6.9C5.7,21.8,5.2,22,4.6,22s-1.1-0.2-1.5-0.6c-0.4-0.4-0.6-0.9-0.6-1.5c0-0.6,0.2-1.1,0.6-1.5l6.9-6.9\r\n\tc-0.5-1.1-0.7-2.3-0.4-3.5c0.2-1.2,0.8-2.3,1.7-3.2c0.9-0.9,2-1.4,3.2-1.7C15.6,2.9,16.9,3,18,3.5L14.2,7.3L14.2,7.3z"\r\n stroke="currentColor" stroke-width="2"\r\n />\r\n</svg>\r\n'),"fo-pa-feedback":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\r\n\t<path d="M3.33334 3.33334H16.6667C17.5833 3.33334 18.3333 4.08334 18.3333 5.00001V15C18.3333 15.9167 17.5833 16.6667 16.6667 16.6667H3.33334C2.41667 16.6667 1.66667 15.9167 1.66667 15V5.00001C1.66667 4.08334 2.41667 3.33334 3.33334 3.33334Z"\r\n\t\t stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\r\n\t<path d="M18.3333 5L10 10.8333L1.66667 5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\r\n</svg>\r\n'),"fo-pa-heart":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"\n d="M17.3667 3.84166C16.941 3.41583 16.4357 3.07803 15.8795 2.84757C15.3232 2.6171 14.7271 2.49847 14.125 2.49847C13.5229 2.49847 12.9268 2.6171 12.3705 2.84757C11.8143 3.07803 11.309 3.41583 10.8833 3.84166L10 4.725L9.11666 3.84166C8.25692 2.98192 7.09086 2.49892 5.875 2.49892C4.65914 2.49892 3.49307 2.98192 2.63333 3.84166C1.77359 4.70141 1.29059 5.86747 1.29059 7.08333C1.29059 8.29919 1.77359 9.46525 2.63333 10.325L3.51666 11.2083L10 17.6917L16.4833 11.2083L17.3667 10.325C17.7925 9.89937 18.1303 9.39401 18.3608 8.83779C18.5912 8.28158 18.7099 7.6854 18.7099 7.08333C18.7099 6.48
1126 18.5912 5.88508 18.3608 5.32887C18.1303 4.77265 17.7925 4.26729 17.3667 3.84166V3.84166Z"\n />\n</svg>\n'),"fo-pa-manager":sn('<svg height="24" width="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">\r\n <g>\r\n <path d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M12,21.8c-5.4,0-9.8-4.4-9.8-9.8S6.6,2.2,12,2.2\r\n\t\ts9.8,4.4,9.8,9.8S17.4,21.8,12,21.8z" fill="currentColor"/>\r\n <path d="M12,5.1c-0.8,0-1.5,0.7-1.5,1.5C10.5,7.3,11.2,8,12,8s1.5-0.7,1.5-1.5C13.5,5.7,12.8,5.1,12,5.1z"\r\n fill="currentColor"/>\r\n <path d="M12,10.2c-0.6,0-1.1,0.5-1.1,1.1v6.5c0,0.6,0.5,1.1,1.1,1.1s1.1-0.5,1.1-1.1v-6.5C13.1,10.7,12.6,10.2,12,10.2z"\r\n fill="currentColor"/>\r\n </g>\r\n</svg>\r\n'),"fo-pa-orders":sn('<svg height="24" width="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">\r\n <g>\r\n <path d="M22.6,7.1l-2.6-6.4c-0.2-0.4-0.6-0.7-1-0.7H4.9c-0.4,0-0.8,0.3-1,0.7L1.4,7.1C1.3,7.2,1.3,7.4,1.3,7.5v15.4\r\n\t\t\tc0,0.6,0.5,1.1,1.1,1.1h19.3c0.6,0,1.1-0.5,1.1-1.1V7.5C22.7,7.4,22.7,7.2,22.6,7.1z M13.1,2.2h5.2L20,6.4h-6.9L13.1,2.2L13.1,2.2\r\n\t\t\tz M5.7,2.2h5.2v4.2H4L5.7,2.2z M20.5,21.8H3.5V8.6h17.1V21.8z" fill="currentColor"/>\r\n <path d="M15.9,10.9H8.1c-0.6,0-1.1,0.5-1.1,1.1s0.5,1.1,1.1,1.1h7.7c0.6,0,1.1-0.5,1.1-1.1S16.5,10.9,15.9,10.9z" fill="currentColor"/>\r\n </g>\r\n</svg>\r\n'),"fo-pa-profile":sn('<svg height="24" width="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">\r\n <g>\r\n <path d="M23,0.8L23,0.8c-0.6-0.5-1.3-0.8-2-0.8c-0.8,0-1.6,0.4-2.2,1L8,12.7c-0.1,0.1-0.2,0.2-0.2,0.4l-1.3,3.8\r\n\t\tc-0.1,0.4-0.1,0.9,0.2,1.3c0.3,0.4,0.7,0.6,1.2,0.6l0,0c0.2,0,0.4,0,0.6-0.1l3.6-1.6c0.1-0.1,0.3-0.1,0.3-0.2L23.2,5\r\n\t\tC24.3,3.8,24.2,1.9,23,0.8z M9,16.1l0.7-2.2l0.1-0.1l1.4,1.3l-0.1,0.1L9,16.1z M21.6,3.6l-9.1,9.9l-1.4-1.3l9.1-9.9\r\n\t\tc0.2-0.2,0.4-0.3,0.7-0.3c0.2,0,0.5,0.1,0.6,0.2l0,0C22,2.7,22,3.3,21.6,3.6z" fill="currentColor"/>\r\n <path d="M20.9,9.5c-0.6,0-1,0.5-1,1v8.8c0,1.4-1.2,2.6-2.6,2.6H4.7c-1.4,0-2.6-1.2-2.6-2.6V6.9c0-1.4,1.2-2.6,2.6-2.6h9.1\r\n\t\tc0.6,0,1-0.5,1-1s-0.5-1-1-1H4.7C2.2,2.2,0,4.3,0,6.9v12.4C0,21.9,2.2,24,4.7,24h12.5c2.6,0,4.7-2.1,4.7-4.7v-8.8\r\n\t\tC21.9,10,21.5,9.5,20.9,9.5z" fill="currentColor"/>\r\n </g>\r\n</svg>\r\n'),"fo-pa-photo":sn('<svg height="32" width="32" viewBox="0 0 32 32" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">\r\n <g>\r\n <path d="M16,9.8c-4.3,0-7.8,3.5-7.8,7.8s3.5,7.8,7.8,7.8s7.8-3.5,7.8-7.8S20.3,9.8,16,9.8z M16,22.9c-2.9,0-5.3-2.4-5.3-5.3\r\n\t\t\t\ts2.4-5.3,5.3-5.3s5.3,2.4,5.3,5.3S18.9,22.9,16,22.9z"/>\r\n <path d="M28.3,6.1h-4.6c-0.1,0-0.3-0.1-0.3-0.2L22,3.2c0,0,0,0,0,0c-0.5-1-1.5-1.6-2.6-1.6h-6.8c-1.1,0-2.1,0.6-2.6,1.6\r\n\t\t\t\tc0,0,0,0,0,0L8.8,5.9C8.7,6,8.6,6.1,8.4,6.1H3.8C1.7,6.1,0,7.7,0,9.8v16.9c0,2.1,1.7,3.8,3.8,3.8h24.5c2.1,0,3.8-1.7,3.8-3.8V9.8\r\n\t\t\t\tC32,7.7,30.3,6.1,28.3,6.1z M29.5,26.7c0,0.7-0.6,1.3-1.3,1.3H3.8c-0.7,0-1.3-0.6-1.3-1.3V9.8c0-0.7,0.6-1.3,1.3-1.3h4.7\r\n\t\t\t\tC9.5,8.6,10.5,8,11,7c0,0,0,0,0,0l1.3-2.7c0.1-0.1,0.2-0.2,0.3-0.2h6.8c0.1,0,0.3,0.1,0.3,0.2l1.3,2.7c0,0,0,0,0,0\r\n\t\t\t\tc0.5,1,1.5,1.6,2.6,1.6h4.6c0.7,0,1.3,0.6,1.3,1.3V26.7z"/>\r\n </g>\r\n</svg>\r\n'),"fo-ct-blocks":sn('<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg">\r\n\t<path d="M8,11H1c-0.3,0-0.5,0.1-0.7,0.3C0.1,11.5,0,11.7,0,12v7c0,0.3,0.1,0.5,0.3,0.7C0.5,19.9,0.7,20,1,20h7\r\n\t\tc0.3,0,0.5-0.1,0.7-0.3S9,19.3,9,19v-7c0-0.3-0.1-0.5-0.3-0.7C8.5,11.1,8.3,11,8,11z M7,18H2v-5h5V18z M19,0h-7\r\n\t\tc-0.3,0-0.5,0.1-0.7,0.3C11.1,0.5,11,0.7,11,1v7c0,0.3,0.1,0.5,0.3,0.7C11.5,8.9,11.7,9,12,9h7c0.3,0,0.5-0.1,0.7-0.3\r\n\t\tC19.9,8.5,20,8.3,20,8V1c0-0.3-0.1-0.5-0.3-0.7C19.5,0.1,19.3,0,19,0z M18,7h-5V2h5V7z M19,11h-7c-0.3,0-0.5,0.1-0.7,0.3\r\n\t\tC11.1,11.5,11,11.7,11,12v7c0,0.3,0.1,0.5,0.3,0.7S11.7,20,12,20h7c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7v-7\r\n\t\tc0-0.3-0.1-0.5-0.3-0.7C19.5,11.1,19.3,11,19,11z M18,18h-5v-5h5V18z M8,0H1C0.7,0,0.5,0.1,0.3,0.3C0.1,0.5,0,0.7,0,1v7\r\n\t\tc0,0.3,0.1,0.5,0.3,0.7C0.5,8.9,0.7,9,1,9h7c0.3,0,0.5-0.1,0.7-0.3C8.9,8.5,9,8.3,9,8V1c0-0.3-0.1-0.5-0.3-0.7C8.5,0.1,8.3,0,8,0z\r\n\t\t M7,7H2V2h5V7z" fill="currentColor" stroke="none" />\r\n</svg>\r\n'),"fo-ct-linear":sn('<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg">
1\r\n<path d="M0,8.2v3.6c0,0.2,0.1,0.5,0.3,0.6c0.2,0.2,0.4,0.3,0.6,0.3h18.2c0.2,0,0.5-0.1,0.6-0.3c0.2-0.2,0.3-0.4,0.3-0.6V8.2\r\n\tc0-0.2-0.1-0.5-0.3-0.6c-0.2-0.2-0.4-0.3-0.6-0.3H0.9c-0.2,0-0.5,0.1-0.6,0.3C0.1,7.7,0,7.9,0,8.2z M18.2,9.1v1.8H1.8V9.1H18.2z\r\n\t M0,0.9v3.6C0,4.8,0.1,5,0.3,5.2c0.2,0.2,0.4,0.3,0.6,0.3h18.2c0.2,0,0.5-0.1,0.6-0.3C19.9,5,20,4.8,20,4.5V0.9\r\n\tc0-0.2-0.1-0.5-0.3-0.6C19.6,0.1,19.3,0,19.1,0H0.9C0.7,0,0.4,0.1,0.3,0.3S0,0.7,0,0.9z M18.2,1.8v1.8H1.8V1.8H18.2z M0,15.5v3.6\r\n\tc0,0.2,0.1,0.5,0.3,0.6C0.4,19.9,0.7,20,0.9,20h18.2c0.2,0,0.5-0.1,0.6-0.3c0.2-0.2,0.3-0.4,0.3-0.6v-3.6c0-0.2-0.1-0.5-0.3-0.6\r\n\tc-0.2-0.2-0.4-0.3-0.6-0.3H0.9c-0.2,0-0.5,0.1-0.6,0.3C0.1,15,0,15.2,0,15.5z M18.2,16.4v1.8H1.8v-1.8H18.2z"/>\r\n</svg>\r\n'),"fo-ct-filters":sn('<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg">\r\n<path d="M13.8,18H19c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7S19.3,16,19,16h-5.2\r\n\tc-0.2-0.6-0.6-1.1-1.1-1.4C12.2,14.2,11.6,14,11,14c-0.6,0-1.2,0.2-1.7,0.5c-0.5,0.4-0.9,0.9-1.1,1.4H1c-0.3,0-0.5,0.1-0.7,0.3\r\n\tC0.1,16.5,0,16.7,0,17c0,0.3,0.1,0.5,0.3,0.7C0.5,17.9,0.7,18,1,18h7.2c0.2,0.6,0.6,1.1,1.1,1.4C9.8,19.8,10.4,20,11,20\r\n\tc0.6,0,1.2-0.2,1.7-0.5C13.2,19.1,13.6,18.6,13.8,18z M10,17c0-0.2,0.1-0.4,0.2-0.6c0.1-0.2,0.3-0.3,0.4-0.4C10.8,16,11,16,11.2,16\r\n\tc0.2,0,0.4,0.1,0.5,0.3s0.2,0.3,0.3,0.5c0,0.2,0,0.4-0.1,0.6c-0.1,0.2-0.2,0.3-0.4,0.4C11.4,17.9,11.2,18,11,18\r\n\tc-0.3,0-0.5-0.1-0.7-0.3C10.1,17.5,10,17.3,10,17z M7.8,11H19c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7\r\n\tC19.5,9.1,19.3,9,19,9H7.8C7.6,8.4,7.2,7.9,6.7,7.6C6.2,7.2,5.6,7,5,7C4.4,7,3.8,7.2,3.3,7.6C2.8,7.9,2.4,8.4,2.2,9H1\r\n\tC0.7,9,0.5,9.1,0.3,9.3C0.1,9.5,0,9.7,0,10c0,0.3,0.1,0.5,0.3,0.7C0.5,10.9,0.7,11,1,11h1.2c0.2,0.6,0.6,1.1,1.1,1.4\r\n\tC3.8,12.8,4.4,13,5,13c0.6,0,1.2-0.2,1.7-0.5C7.2,12.1,7.6,11.6,7.8,11z M4,10c0-0.2,0.1-0.4,0.2-0.6c0.1-0.2,0.3-0.3,0.4-0.4\r\n\tC4.8,9,5,9,5.2,9c0.2,0,0.4,0.1,0.5,0.3C5.8,9.4,5.9,9.6,6,9.8c0,0.2,0,0.4-0.1,0.6c-0.1,0.2-0.2,0.3-0.4,0.4C5.4,10.9,5.2,11,5,11\r\n\tc-0.3,0-0.5-0.1-0.7-0.3C4.1,10.5,4,10.3,4,10z M15.8,4H19c0.3,0,0.5-0.1,0.7-0.3C19.9,3.5,20,3.3,20,3c0-0.3-0.1-0.5-0.3-0.7\r\n\tC19.5,2.1,19.3,2,19,2h-3.2c-0.2-0.6-0.6-1.1-1.1-1.4C14.2,0.2,13.6,0,13,0c-0.6,0-1.2,0.2-1.7,0.5c-0.5,0.4-0.9,0.9-1.1,1.4H1\r\n\tC0.7,2,0.5,2.1,0.3,2.3C0.1,2.5,0,2.7,0,3c0,0.3,0.1,0.5,0.3,0.7C0.5,3.9,0.7,4,1,4h9.2c0.2,0.6,0.6,1.1,1.1,1.4\r\n\tC11.8,5.8,12.4,6,13,6c0.6,0,1.2-0.2,1.7-0.5C15.2,5.1,15.6,4.6,15.8,4z M12,3c0-0.2,0.1-0.4,0.2-0.6c0.1-0.2,0.3-0.3,0.4-0.4\r\n\tC12.8,2,13,2,13.2,2c0.2,0,0.4,0.1,0.5,0.3s0.2,0.3,0.3,0.5c0,0.2,0,0.4-0.1,0.6c-0.1,0.2-0.2,0.3-0.4,0.4C13.4,3.9,13.2,4,13,4\r\n\tc-0.3,0-0.5-0.1-0.7-0.3C12.1,3.5,12,3.3,12,3z"/>\r\n</svg>\r\n'),"fo-ct-pagi-prev":sn('<svg width="8" height="14" viewBox="0 0 8 14" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M7 1L1 7L7 13" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-ct-pagi-next":sn('<svg width="8" height="14" viewBox="0 0 8 14" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.999998 13L7 7L1 1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fi-chars":sn('<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" >\r\n<path d="M13,8h-3V5c0-0.3-0.1-0.5-0.3-0.7C9.5,4.1,9.3,4,9,4C8.7,4,8.5,4.1,8.3,4.3C8.1,4.5,8,4.7,8,5v3H5C4.7,8,4.5,8.1,4.3,8.3\r\n\tC4.1,8.5,4,8.7,4,9c0,0.3,0.1,0.5,0.3,0.7C4.5,9.9,4.7,10,5,10h3v3c0,0.3,0.1,0.5,0.3,0.7C8.5,13.9,8.7,14,9,14\r\n\tc0.3,0,0.5-0.1,0.7-0.3C9.9,13.5,10,13.3,10,13v-3h3c0.3,0,0.5-0.1,0.7-0.3S14,9.3,14,9c0-0.3-0.1-0.5-0.3-0.7C13.5,8.1,13.3,8,13,8\r\n\tz M19.7,18.3L16,14.6c1.4-1.8,2.1-4.1,1.9-6.4c-0.2-2.3-1.2-4.4-3-6S11-0.1,8.7,0C6.4,0.1,4.2,1,2.6,2.6S0.1,6.4,0,8.7\r\n\tC-0.1,11,0.7,13.3,2.3,15c1.5,1.7,3.7,2.8,6,3c2.3,0.2,4.6-0.5,6.4-1.9l3.7,3.7c0.1,0.1,0.2,0.2,0.3,0.2c0.1,0.1,0.3,0.1,0.4,0.1\r\n\tc0.1,0,0.3,0,0.4-0.1c0.1-0.1,0.2-0.1,0.3-0.2c0.2-0.2,0.3-0.4,0.3-0.7C20,18.7,19.9,18.5,19.7,18.3z M9,16c-1.4,0-2.7-0.4-3.9-1.2\r\n\tc-1.2-0.8-2-1.9-2.6-3.1S1.9,9,2.1,7.6C2.4,6.3,3.1,5,4.1,4.1s2.2-1.6,3.6-1.9c1.4-0.3,2.8-0.1,4,0.4s2.4,1.4,3.1,2.6\r\n\tC15.6,6.3,16,7.6,16,9c0,1.9-0.7,3.6-2,4.9C12.6,15.3,10.9,16,9,16z"/>\r\n</svg>\r\n'),"fi-like":sn('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\r\n <path d="M5.7,18.9H3c-0.5,0-0.9-0.2-1.3-0.5c-0.3-0.3-0.5-0.8-0.5-1.3v-6.2c0-0.5,0.2-0.9,0.5-1.3\r\n\tC2.1,9.3,2.6,9.1,3,9.1h2.7 M11.9,7.3V3.8c0-0.7-0.3-1.4-0.8-1.9C10.6,1.4,10,1.1,9.3,1.1l-3.6,8v9.8h10c0.4,0,0.8-0.1,1.2-0.4\r\n\tc0.3-0.3,0.5-0.7,0.6-1.1l1.2-8c0-0.3,0-0.5-0.1-0.8c-0.1-0.2-0.2-0.5-0.4-0.7c-0.2-0.2-0.4-0.3-0.6-0.5c-0.2-0.1-0.5-0.2-0.7-0.2\r\n\tH11.9z"/>\r\n</svg>\r\n'),"fo-yandex-market":sn('<svg width="78" height="15" viewBox="0 0 85 16.5" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path d="M21.2,15.4h-1.3v-1.9h-4.1v1.9h-1.3v-3.1h0.6c0.2-0.5,0.4-1.1,0.5-1.7c0.1-0.6,0.2-1.2,0.3-1.9C16,8.1,16,7.4,16,6.8\n\tc0-0.7,0-1.3,0-2V4h4.4v8.3h0.8V15.4z M27.7,12.9c-0.3,0.2-0.6,0.4-1,0.6c-0.4,0.1-0.8,0.2-1.3,0.2c-1,0-1.8-0.4-2.3-1.1\n\tc-0.6-0.8-0.9-1.9-0.9-3.4c0-0.8,0.1-1.5,0.2-2.1c0.1-0.6,0.3-1.2,0.5-1.7c0.2-0.5,0.5-0.9,0.9-1.1C24.1,4,24.5,3.9,25,3.9\n\tc0.4,0,0.7,0.1,1.1,0.2c0.3,0.2,0.6,0.4,0.8,0.8c0.2,0.4,0.4,0.8,0.5,1.4c0.1,0.6,0.2,1.2,0.2,2v0.8h-4c0,1.1,0.1,1.9,0.4,2.5\n\tc0.3,0.6,0.7,0.8,1.3,0.8c0.4,0,0.8-0.1,1.1-0.2c0.3-0.2,0.6-0.3,0.8-0.4L27.7,12.9z M13.7,4v9.5h-1.5V9.2H10v4.3H8.5V4H10v4h2.2V4\n\tH13.7z M30.6,8.8v4.7h-1.5V4h1.5v4.4L32.9,4h1.5L32,8.5l2.7,5h-1.6L30.6,8.8z M38.2,13.6c-1,0-1.8-0.4-2.4-1.2\n\tc-0.6-0.8-0.9-2-0.9-3.7c0-0.7,0.1-1.4,0.2-2c0.2-0.6,0.4-1.1,0.6-1.5c0.3-0.4,0.6-0.8,1.1-1c0.4-0.2,0.9-0.4,1.5-0.4\n\tc0.4,0,0.8,0.1,1,0.2c0.3,0.1,0.5,0.2,0.7,0.3l-0.2,1.4c-0.2-0.2-0.4-0.3-0.7-0.5c-0.3-0.1-0.5-0.2-0.9-0.2c-0.5,0-1,0.3-1.3,0.9\n\tc-0.3,0.6-0.5,1.5-0.5,2.7c0,1.2,0.1,2.1,0.4,2.8c0.3,0.6,0.7,1,1.3,1c0.4,0,0.7-0.1,0.9-0.2c0.3-0.1,0.5-0.3,0.7-0.4l0.3,1.1\n\tc-0.3,0.2-0.5,0.4-0.9,0.5C39,13.6,38.6,13.6,38.2,13.6z M19,5.2h-1.6v0.2c0,0.5,0,1.1,0,1.7c0,0.6-0.1,1.2-0.1,1.8\n\tc-0.1,0.6-0.2,1.2-0.3,1.8c-0.1,0.6-0.3,1.1-0.5,1.6H19V5.2z M25,5.1c-0.5,0-0.8,0.3-1,0.8c-0.2,0.5-0.3,1.2-0.4,2h2.4\n\tc0-0.4,0-0.8-0.1-1.1c0-0.4-0.1-0.7-0.2-0.9c-0.1-0.3-0.2-0.4-0.3-0.6C25.4,5.1,25.2,5.1,25,5.1z"></path>\n <path d="M46,4c-0.1-0.4-0.2-0.7-0.3-1c-0.1-0.3-0.1-0.6-0.2-0.9h-0.1c0,0.6,0.1,1.3,0.1,2v9.5h-0.8V0h1.1l2.3,8.6\n\tc0.1,0.2,0.1,0.4,0.2,0.7c0.1,0.3,0.1,0.6,0.1,0.8h0.1c0-0.3,0.1-0.5,0.2-0.8c0.1-0.3,0.1-0.6,0.2-0.7L51.1,0h1.1v13.5h-0.9V4\n\tc0-0.3,0-0.7,0-1c0-0.3,0-0.7,0.1-1h-0.1c-0.1,0.4-0.2,0.7-0.2,1c-0.1,0.3-0.
11,0.6-0.2,0.9l-2,7.5H48L46,4z"></path>\n <path d="M56.1,13c0.4,0,0.8-0.2,1.1-0.5c0.3-0.4,0.6-0.8,0.7-1.3V8.5h-1c-0.8,0-1.4,0.2-1.8,0.6c-0.4,0.4-0.6,1-0.6,1.8\n\tc0,0.7,0.1,1.2,0.4,1.6C55.3,12.8,55.7,13,56.1,13z M58.3,13.5c0-0.1-0.1-0.3-0.1-0.5c0-0.2-0.1-0.5-0.1-0.8\n\tc-0.2,0.5-0.5,0.8-0.9,1.1c-0.3,0.3-0.7,0.4-1.2,0.4c-0.6,0-1.2-0.2-1.6-0.7c-0.4-0.5-0.6-1.2-0.6-2c0-1,0.3-1.8,0.8-2.3\n\tc0.5-0.5,1.3-0.8,2.4-0.8h1V6.7c0-0.7-0.1-1.3-0.4-1.6c-0.3-0.3-0.7-0.5-1.2-0.5c-0.4,0-0.8,0.1-1.1,0.3c-0.4,0.2-0.6,0.4-0.9,0.8\n\tl-0.2-0.9c0.2-0.3,0.5-0.5,0.9-0.7c0.4-0.2,0.9-0.3,1.4-0.3c0.8,0,1.4,0.2,1.8,0.7c0.4,0.4,0.6,1.1,0.6,2.1v5.2c0,0.3,0,0.7,0.1,1\n\tc0,0.3,0.1,0.6,0.2,0.8H58.3z"></path>\n <path d="M63.5,13c0.6,0,1.1-0.4,1.5-1.1c0.4-0.7,0.5-1.9,0.5-3.4c0-1.3-0.2-2.2-0.5-2.9c-0.3-0.7-0.7-1-1.3-1\n\tc-0.2,0-0.4,0.1-0.6,0.2C63,4.8,62.8,5,62.6,5.2c-0.2,0.2-0.3,0.4-0.5,0.6C62,6,61.9,6.3,61.8,6.5v5.3c0.2,0.4,0.4,0.7,0.7,0.9\n\tC62.8,12.9,63.1,13,63.5,13z M63.5,13.7c-0.4,0-0.7-0.1-1-0.2c-0.3-0.2-0.5-0.4-0.7-0.6v3.6h-0.9V4h0.8l0.1,1.6\n\tc0.2-0.5,0.5-0.9,0.9-1.2c0.4-0.4,0.8-0.5,1.3-0.5c0.4,0,0.7,0.1,1.1,0.3c0.3,0.2,0.6,0.5,0.8,1C66,5.5,66.1,6,66.3,6.6\n\tc0.1,0.6,0.2,1.2,0.2,1.9c0,1.8-0.3,3.1-0.8,3.9C65.1,13.3,64.4,13.7,63.5,13.7z"></path>\n <path d="M69,13.5h-0.9V4H69v4.5L72.2,4h0.9l-3.1,4.4l3.4,5.1h-1L69,8.6V13.5z"></path>\n <path d="M74.6,8.9c0,1.3,0.2,2.3,0.5,3c0.3,0.7,0.9,1,1.6,1c0.3,0,0.6-0.1,0.8-0.2c0.2-0.1,0.4-0.2,0.6-0.4c0.2-0.1,0.4-0.3,0.5-0.5\n\tl0.3,0.7c-0.2,0.2-0.3,0.4-0.5,0.5c-0.2,0.1-0.4,0.3-0.7,0.4c-0.3,0.1-0.6,0.2-1,0.2c-1,0-1.8-0.4-2.2-1.3c-0.5-0.9-0.7-2.1-0.7-3.6\n\tc0-0.8,0.1-1.5,0.2-2.1c0.1-0.6,0.3-1.1,0.6-1.6c0.3-0.4,0.5-0.7,0.9-1c0.3-0.2,0.7-0.3,1.1-0.3c0.4,0,0.8,0.1,1.1,0.3\n\tc0.3,0.2,0.6,0.5,0.8,1c0.2,0.4,0.4,1,0.5,1.6c0.1,0.6,0.1,1.4,0,2.2H74.6z M76.5,4.5c-0.5,0-0.9,0.3-1.3,0.9\n\tc-0.4,0.6-0.5,1.5-0.6,2.7h3.5C78.1,6.9,78,6,77.7,5.4C77.4,4.8,77,4.5,76.5,4.5z"></path>\n <path d="M82.8,4.7v8.8h-0.9V4.7h-2.2V4H85v0.7H82.8z"></path>\n <path d="M4,8.3l-2.3,5.2H0L2.5,8C1.9,7.7,1.5,7.2,1.1,6.7C0.7,6.1,0.5,5.3,0.5,4.3c0-0.7,0.1-1.3,0.3-1.9\n\tc0.2-0.5,0.5-1,0.9-1.3C2.1,0.7,2.5,0.4,3,0.3S4,0,4.5,0h2.2v13.5H5.2V8.3H4z M5.2,1.2H4.4c-0.3,0-0.6,0.1-0.9,0.2\n\tC3.3,1.5,3,1.7,2.8,1.9C2.6,2.1,2.4,2.4,2.3,2.8C2.2,3.2,2.1,3.7,2.1,4.3c0,0.5,0.1,1,0.2,1.4C2.4,6,2.6,6.3,2.8,6.5\n\tC3,6.7,3.2,6.9,3.5,7c0.3,0.1,0.6,0.1,0.9,0.1h0.8V1.2z"></path>\n </g>\n</svg>'),"spinner-circle":sn('<svg width="94" height="94" viewBox="0 0 94 94" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n <path d="M2 47C2 71.8528 22.1472 92 47 92C71.8528 92 92 71.8528 92 47C92 22.1472 71.8528 2 47 2"\n stroke-width="3" stroke-linecap="round"/>\n</svg>\n'),"fo-catalog":sn('<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg">\n<path d="M4.875 13H11.375" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M4.875 6.49951H18.6874" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M4.875 19.5H9.75" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M17.0117 18.5859C18.7786 18.5859 20.2109 17.1536 20.2109 15.3867C20.2109 13.6198 18.7786 12.1875 17.0117 12.1875C15.2448 12.1875 13.8125 13.6198 13.8125 15.3867C13.8125 17.1536 15.2448 18.5859 17.0117 18.5859Z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M19.2734 17.6489L21.1244 19.4999" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'),"fo-sber-logo":sn('<?xml version="1.0" encoding="utf-8"?>\r\n\x3c!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\r\n<svg width="24" height="24" viewBox="0 0 24 24" stroke="none" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\r\n<path d="M21.5,4.7c0.6,0.7,1.1,1.5,1.4,2.4L12,15.1l-4.6-2.9V8.8l4.6,2.9L21.5,4.7z" stroke-linecap="round" stroke-linejoin="round"/>\r\n<path d="M24,12c0-0.7-0.1-1.4-0.2-2.2l-2.6,1.9c0,0.1,0,0.2,0,0.2c0,1.3-0.3,2.6-0.8,3.7c-0.5,1.1-1.2,2.1-2.1,2.9\r\n\tc-0.8,0.8-1.8,1.4-2.8,1.9c-1.1,0.5-2.3,0.7-3.5,0.7c0,0,0,0,0,0c-1.3,0-2.6-0.3-3.7-0.8c-1.1-0.5-2.1-1.2-2.9-2.1\r\n\tc-0.8-0.8-1.4-1.8-1.9-2.8C3,14.4,2.8,13.2,2.8,12c0-1.3,0.3-2.6,0.8-3.7c0.5-1.1,1.2-2.1,2.1-2.9c0.8-0.8,1.8-1.4,2.8-1.9\r\n\tC9.6,3,10.8,2.8,12,2.8c0,0,0,0,0,0c1.9,0,3.7,0.6,5.2,1.6l2.3-1.7c-2-1.6-4.4-2.5-6.9-2.6l0,0c-0.2,0-0.3,0-0.5,0C12,0,12,0,12,0v0\r\n\tc-1.6,0-3.1,0.3-4.6,0.9C6.1,1.4,5,2.2,4,3.1l0,0C3.9,3.2,3.8,3.2,3.8,3.3C3.7,3.4,3.6,3.4,3.5,3.5l0,0c-1,1-1.9,2.3-2.5,3.6\r\n\tc-0.6,1.4-0.9,2.8-1,4.3l0,0c0,0.2,0,0.4,0,0.6c0,0,0,0,0,0h0c0,0,0,0,0,0c0,
11.6,0.3,3.1,0.9,4.6C1.4,17.9,2.2,19,3.1,20l0,0\r\n\tc0.1,0.1,0.1,0.1,0.2,0.2c0.1,0.1,0.1,0.2,0.2,0.2l0,0c1,1,2.3,1.9,3.6,2.5c1.3,0.6,2.8,0.9,4.3,1l0,0c0.2,0,0.4,0,0.6,0\r\n\tc0,0,0,0,0,0v0c0,0,0,0,0,0c1.6,0,3.1-0.3,4.6-0.9c1.3-0.5,2.4-1.3,3.4-2.2l0,0c0.1-0.1,0.2-0.2,0.3-0.3c0.1-0.1,0.1-0.1,0.2-0.2\r\n\tl0,0c1-1,1.9-2.3,2.5-3.6C23.7,15.3,24,13.7,24,12z" stroke-linecap="round" stroke-linejoin="round"/>\r\n</svg>\r\n'),"fo-exclamation-circle":sn('<svg width="26" height="26" viewBox="0 0 26 26" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">\n<path d="M13 22.75C18.3848 22.75 22.75 18.3848 22.75 13C22.75 7.61522 18.3848 3.25 13 3.25C7.61522 3.25 3.25 7.61522 3.25 13C3.25 18.3848 7.61522 22.75 13 22.75Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M13 8.125V13.8125" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M13 18.4844C13.5609 18.4844 14.0156 18.0297 14.0156 17.4688C14.0156 16.9078 13.5609 16.4531 13 16.4531C12.4391 16.4531 11.9844 16.9078 11.9844 17.4688C11.9844 18.0297 12.4391 18.4844 13 18.4844Z" fill="currentColor"/>\n</svg>\n')};Me.vI.add(xe.LM,Ne.Cl,Ue.f8,qe.I7,He.eW,Fe.yO,$e.NB,Ve.Kl,Be.r8,Ge.pt,Ye._t,ze.IL,Ze.m6,We.cf,Ke.nN,Xe.r5,Qe.RL),s.default.component("fai",Re.GN),Je.Z.register(on),s.default.component("v-icon",Je.Z);var cn=n(7791),ln=n(8124),un=n(5595),dn=n(2607),pn=n(7705),fn=n(8302);function hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function mn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(n),!0).forEach((function(e){vn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _n={name:"cartAccessSelect",props:["dataId"],data:function(){return{loading:!1}},computed:mn(mn({},(0,r.Se)(["cartAccessories","cartProductsIds","cartCurrencyHtml"])),{},{allAccessAdded:function(){if(!this.cartAccessories[this.dataId])return!1;let t=[];for(let e in this.cartAccessories[this.dataId])t.push(+e);for(let e of t)if(-1===this.cartProductsIds.indexOf(e))return!1;return!0}}),methods:mn(mn({},(0,r.nv)(["cartGetAccessoriesAction","addProductToCart","cartGetListAction"])),{},{add:function(t){this.addProductToCart(t).then(this.cartGetListAction)}}),beforeMount(){this.cartAccessories[this.dataId]||(this.loading=!0,this.cartGetAccessoriesAction(this.dataId).then(function(){this.loading=!1}.bind(this)))}},gn=_n;var bn=n(1900);const yn=(0,bn.Z)(gn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cart-access-select-main-container"},[t.loading&&!t.allAccessAdded?n("div",{staticClass:"access-block-window"},[n("fai",{staticStyle:{width:"50px",height:"50px",color:"#a8a8a8"},attrs:{icon:"spinner",spin:""}})],1):t._e(),t._v(" "),t._l(t.cartAccessories[t.dataId],(function(e){return n("div",{staticClass:"accessories-block-item"},[n("div",{directives:[{name:"show",rawName:"v-show",value:-1===t.cartProductsIds.indexOf(+e.ID),expression:"cartProductsIds.indexOf(+access['ID']) === -1"}],staticClass:"accessories-block-item-inner"},[n("div",{staticClass:"accessories-block-item-name"},[t._v("\n "+t._s(e.NAME)+"\n ")]),t._v(" "),n("div",{staticClass:"accessories-block-item-price"},[t._v("\n "+t._s(e.PRICE)+"\n "),n("span",{domProps:{innerHTML:t._s(t.cartCurrencyHtml)}}
1)]),t._v(" "),n("div",{staticClass:"accessories-block-item-add"},[n("a",{attrs:{href:"#","data-id":e.ID,"data-for-product-id":t.dataId},on:{click:function(n){return n.preventDefault(),t.add({id:e.ID,quantity:1})}}},[t._v("+")])])])])})),t._v(" "),t.allAccessAdded?n("div",[t._v("ÐÑе акÑеÑÑÑаÑÑ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ñ")]):t._e()],2)}),[],!1,null,null,null).exports;const Cn={name:"QuantityField",props:{value:{type:Number,default:1},type:{type:String,default:"default"},latency:{type:Number,default:300}},data:function(){return{step:1,innerQuantity:1,mousePushed:!1}},computed:{quantity:{get:function(){return+this.value},set:function(t){0==+t?(this.$emit("input",0),this.$emit("input",1)):this.$emit("input",+t)}},typeIsDefault:function(){return"default"===this.type},typeIsPlate:function(){return"plate"===this.type}},methods:{quantityUp:function(){this.mousePushed=!0,this.$emit("mousedown"),this.quantity=this.quantity+this.step,setTimeout((()=>{this.mousePushed&&this.quantityUp()}),this.latency)},quantityDown:function(){this.mousePushed=!0,this.$emit("mousedown"),this.quantity<=this.step?this.quantity=0:(this.quantity=this.quantity-this.step,setTimeout((()=>{this.mousePushed&&this.quantityDown()}),this.latency))}},beforeMount(){this.value&&(this.innerQuantity=this.value)},mounted(){document.addEventListener("mouseup",(()=>{this.mousePushed=!1,this.$emit("mouseup")}))}};const On=(0,bn.Z)(Cn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quantity-field-mc",class:{default:t.typeIsDefault,plate:t.typeIsPlate}},[n("button",{staticClass:"btn btn-sm control",on:{mousedown:function(e){return e.preventDefault(),t.quantityDown.apply(null,arguments)}}},[n("fai",{attrs:{icon:"minus"}})],1),t._v(" "),n("output",[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.quantity,expression:"quantity",modifiers:{lazy:!0}}],attrs:{type:"text"},domProps:{value:t.quantity},on:{change:function(e){t.quantity=e.target.value}}})]),t._v(" "),n("button",{staticClass:"btn btn-sm control",on:{mousedown:function(e){return e.preventDefault(),t.quantityUp.apply(null,arguments)}}},[n("fai",{attrs:{icon:"plus"}})],1)])}),[],!1,null,null,null).exports;function wn(t){let e=String(Math.round(+t)),n="";return e.split("").reverse().forEach((function(t,e){0!=+e&&+e%3==0&&(n+=" "),n+=t})),n=n.split("").reverse().join(""),n}function En(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Pn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach((function(e){Sn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const In={name:"BasketItem",props:{payload:{type:Object,required:!0}},components:{QuantityField:On,AccessSelect:yn},data:function(){return{mousePushed:!1,refreshTimeout:500,lastRefreshCallTime:Date.now(),selected:[]}},computed:Pn(Pn(Pn(Pn({},(0,r.Se)(["isXS","isSM","isMD","isLG","isXL"])),(0,r.Se)(["cartProductsIds","cartClientCart","cartIsEmpty","cartLoading","cartAccessoriesShowStatus"])),(0,r.Se)(["cartOriginalCurrencyHtml","cartConvertedCurrencyHtml"])),{},{id:function(){return+this.payload.ID},pid:function(){return+this.payload.PRODUCT_ID},sku:function(){return this.payload.PROPERTIES.SKU?.VALUE||this.payload.PROPERTIES.ARTICUL?.VALUE||this.payload.PROPERTY_ARTICUL_VALUE||""},name:function(){return this.payload.NAME},quantity:{get:function(){return+this.payload.QUANTITY},set:function(t){this.$emit("quantity",+t)}},url:function(){return this.payload.DETAIL_PAGE_URL},pictureSrc:function(){return this.payload.PROPERTIES.PICTURE?.VALUE||this.payload.PICTURE?.SRC||""},pricesObject:function(){return this.payload.PRICES},priceTypeCode:function(){return this.payload.PRICES.hasOwnProperty("CONVERTED")?"CONVERTED":"ORIGINAL"}
1,priceTemplateObject:function(){return this.pricesObject.PRICE_TEMPLATE[this.priceTypeCode]},currencyHtml:function(){return this.priceTemplateObject.CURRENCY_HTML},priceObject:function(){return this.pricesObject[this.priceTypeCode]},price:function(){return+this.priceObject.DISCOUNT_VALUE},priceBase:function(){return+this.priceObject.VALUE},discount:function(){return+this.priceObject.DISCOUNT_DIFF},sum:function(){return this.price*this.quantity},sumBase:function(){return this.priceBase*this.quantity},hasDiscount:function(){return"Y"===this.pricesObject.HAS_DISCOUNT},accessoriesCount:function(){return+this.payload.ACC_CNT||0},hasAccessories:function(){return+this.accessoriesCount>0},accessShowStatus:function(){let t={};for(let e in this.cartAccessoriesShowStatus)t[e]=this.cartAccessoriesShowStatus[e];return t}}),methods:Pn(Pn({},(0,r.nv)(["cartSetAccessoriesShowStatus"])),{},{printPrice:wn,handleRemoveItem:function(t){this.$emit("remove")},showAccessories:function(t,e){let n=this.accessShowStatus;n[t]=e,this.cartSetAccessoriesShowStatus(n)},handleFollow:function(t){console.log("onFollow",t),window.location.href=`${window.location.origin}${t}`}})},Tn=In;const Dn=(0,bn.Z)(Tn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"basket-item-mc item row"},[n("div",{staticClass:"image-block col-3 col-md-2"},[t._t("select"),t._v(" "),n("a",{attrs:{href:t.url},on:{click:function(){return t.handleFollow(t.url)}}},[n("img",{attrs:{src:t.pictureSrc,alt:t.name}})])],2),t._v(" "),n("div",{staticClass:"info-block col-9 col-md-4"},[n("div",{staticClass:"name"},[n("a",{attrs:{href:t.url},domProps:{innerHTML:t._s(t.name)},on:{click:function(){return t.handleFollow(t.url)}}})]),t._v(" "),n("div",{staticClass:"articul"},[n("span",{domProps:{innerHTML:t._s(t.sku)}})]),t._v(" "),t._e(),t._v(" "),n("div",{staticClass:"remove"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.handleRemoveItem.apply(null,arguments)}}},[n("fai",{attrs:{icon:"trash-alt"}}),t._v("\n ÑдалиÑÑ\n ")],1)])]),t._v(" "),n("div",{staticClass:"price-block one col"},[t.hasDiscount?n("div",{staticClass:"price old"},[n("span",{domProps:{innerHTML:t._s(t.printPrice(t.priceBase))}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtml)}})]):t._e(),t._v(" "),n("div",{staticClass:"price actual"},[n("span",{domProps:{innerHTML:t._s(t.printPrice(t.price))}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtml)}})])]),t._v(" "),n("div",{staticClass:"controls-block col"},[n("div",{staticClass:"controls-frame"},[n("QuantityField",{on:{mousedown:function(){return t.$emit("mousedown")},mouseup:function(){return t.$emit("mouseup")}},model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}})],1)]),t._v(" "),n("div",{staticClass:"price-block sum col"},[t.hasDiscount?n("div",{staticClass:"price old"},[n("span",{domProps:{innerHTML:t._s(t.printPrice(t.sumBase))}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtml)}})]):t._e(),t._v(" "),n("div",{staticClass:"price actual"},[n("span",{domProps:{innerHTML:t._s(t.printPrice(t.sum))}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtml)}})])]),t._v(" "),t.accessShowStatus[t.pid]&&"main"===t.type?n("div",{staticClass:"accessories-block"},[n("AccessSelect",{attrs:{"data-id":t.pid}}
1)],1):t._e()])}),[],!1,null,null,null).exports;function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function kn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?An(Object(n),!0).forEach((function(e){jn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ln={name:"ProductsInCart",props:{type:{type:String,default:"main"}},components:{QuantityField:On,AccessSelect:yn,BasketItem:Dn},data:function(){return{mousePushed:!1,refreshTimeout:500,lastRefreshCallTime:Date.now(),selected:[]}},computed:kn(kn(kn(kn({},(0,r.Se)(["isXS","isSM","isMD","isLG","isXL"])),(0,r.Se)(["cartProductsIds","cartClientCart","cartIsEmpty","cartLoading","cartAccessoriesShowStatus"])),(0,r.Se)(["cartOriginalCurrencyHtml","cartConvertedCurrencyHtml"])),{},{selectedAll:{get:function(){const t=Object.keys(this.cartClientCart).map((t=>+t)),e=t.filter((t=>this.selected.includes(+t)));return t.length&&t.length===e.length},set:function(t){const e=Object.keys(this.cartClientCart).map((t=>+t)),n=e.filter((t=>this.selected.includes(+t)));return!!e.length&&(t&&e.length!==n.length?this.selected=[...e]:t||e.length!==n.length?void 0:this.selected=[])}},cart:{get:function(){return this.cartClientCart},set:function(t){this.cartUpdateClientCart(t)}},needInitialization:function(){return 0===Object.keys(this.cartClientCart).length}}),methods:kn(kn({},(0,r.nv)(["cartSetQuantityAction","cartRemoveItemAction","cartGetListAction","cartUpdateClientCart","cartSetLoading","cartSetAccessoriesShowStatus","cartInit"])),{},{updateStore:function(){this.cartSetLoading(!0);let t=[];Object.values(this.cart).forEach((async e=>{if(!e.REFRESH_NEEDED)return!1;if(0==+e.QUANTITY){const n={id:e.ID};t.push(this.cartRemoveItemAction(n))}else{const n={id:e.ID,quantity:e.QUANTITY};t.push(this.cartSetQuantityAction(n))}})),Promise.all(t).then((()=>this.cartSetLoading(!1)))},handleQuantityChange:function(t,e){if(!this.cart[t]||+this.cart[t].QUANTITY==+e)return;if(e<=0)return this.handleRemoveItem(t);let n=kn({},this.cart);n[t]&&(n[t].QUANTITY=+e,n[t].REFRESH_NEEDED=!0,this.cart=n,this.delayedRefresh())},handleRemoveItem:async function(t){this.selected=this.selected.filter((e=>+e!=+t));if((await this.cartRemoveItemAction({id:t})).success&&!Object.keys(this.cart).length)return this.$emit("cart-is-empty")},removeSelectedItems:async function(){const t=Object.keys(this.cart).map((t=>+t)),e=t.filter((t=>this.selected.includes(+t)));return Promise.all(e.map((t=>this.handleRemoveItem(t)))).then((()=>this.selected=[]))},delayedRefresh:function(){this.lastRefreshCallTime=Date.now(),setTimeout((()=>{Date.now()-this.lastRefreshCallTime>=this.refreshTimeout&&!1===this.mousePushed&&this.updateStore()}),this.refreshTimeout)},hideComponent:function(t){t.target.classList.contains("modal-cart-background")&&this.$emit("hide-component")},showAccessories:function(t,e){let n=this.accessShowStatus;n[t]=e,this.cartSetAccessoriesShowStatus(n)},onFollow:function(t){window.location.href=`${window.location.origin}${t}`}}),async mounted(){this.needInitialization&&await this.cartInit(),this.selectedAll=!0,y.openCart(this.cart)}},Rn=Ln;const Mn=(0,bn.Z)(Rn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"products-in-cart-mc"},[n("div",{staticClass:"container-fluid controls frame"},[n("b-form-checkbox",{staticClass:"select-all",model:{value:t.selectedAll,callback:function(e){t.selectedAll=e},expression:"selectedAll"}},[t._v("\n ÐÑбÑаÑÑ Ð²Ñе\n ")]),t._v(" "),n("b-button",{staticClass:"remove-selected",attrs:{type:"button",variant:"link",disabled:!t.selected.length},on:{click:t.removeSelectedItems}},[t._v("\n УдалиÑÑ Ð²ÑбÑаннÑе\n ")])],1),t._v(" "),n("div",{staticClass:"products container-fluid frame main"},[t._m(0),t._v(" "),t.needInitialization?n("div",{staticClass:"row body"},[n("div",{staticClass:"col-12 initializer"},[n("span",[t._v("ÐагÑÑÐ¶Ð°Ñ Ð´Ð°Ð½Ð½Ñе...   "),n("fai",{attrs:{icon:"spinner",spin:""}})],1)])]):n("b-overlay",{staticClass:"row body",attrs:{show:t.cartLoading},scopedSlots:t._u([{key:"overlay",fn:function(){return[n("fai",{attrs:{icon:"spinner",spin:""}})]},proxy:!0}])},[t._v(" "),t._l(t.cart,(function(e,s){return n("div",{key:"crt_tm_"+s,staticClass:"col-12 item-outer"},[n("BasketItem",{attrs:{payload:e},on:{mousedown:function(e){t.mousePushed=!0},mouseup:function(e){t.mousePushed=!1},quantity:function(e){return t.handleQuantityChange(s,e)},remove:function(){return t.handleRemoveItem(s)}},scopedSlots:t._u([{key:"select",fn:function(){return[n("b-form-checkbox",{staticClass:"select",attrs:{value:s},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})]},proxy:!0}],null,!0)})],1)}))],2)],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row header d-none d-lg-flex"},[n("div",{staticClass:"name col-md-6 col-lg-6 col-xl-6"}
1,[t._v("Ðазвание")]),t._v(" "),n("div",{staticClass:"price one col"},[t._v("Цена")]),t._v(" "),n("div",{staticClass:"controls col"},[t._v("ÐолиÑеÑÑво")]),t._v(" "),n("div",{staticClass:"price sum col"},[t._v("СÑмма")])])}],!1,null,null,null).exports;function xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Nn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xn(Object(n),!0).forEach((function(e){Un(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Un(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qn={name:"CartBasket",props:{},components:{Products:Mn},data:function(){return{promo:{value:"",loading:!1}}},computed:Nn(Nn(Nn(Nn({},(0,r.Se)(["userIsManager"])),(0,r.Se)(["cartFullCart"])),(0,r.Se)(["cartOriginalCurrencyHtml","cartOriginalSum","cartOriginalBaseSum","cartOriginalDiscount"])),(0,r.Se)(["cartConvertedCurrencyHtml","cartConvertedSum","cartConvertedBaseSum","cartConvertedDiscount"])),methods:Nn(Nn({},(0,r.nv)(["openModalForm","cartSubmitPromoCode"])),{},{onPromoSubmit:async function(){(await this.cartSubmitPromoCode(this.promo.value)).success&&(this.promo.value="")},setCartIsEmpty:function(){},complete:function(){this.$emit("complete")},offer:function(){this.openModalForm({code:"OFERTA",title:"ÐапÑоÑиÑÑ Ð¾ÑеÑÑÑ",directValues:{PRODUCT:Object.values(this.cartFullCart).map((function(t){return`${window.location.origin}${t.DETAIL_PAGE_URL} - ${t.QUANTITY} ÑÑ.`})).join(";\n")}})},onPdfDownload:function(){this.$root.ymReachGoal("Download_KP"),window.ga&&window.ga("send","event","download","click","compredl")}})},Hn=qn;const Fn=(0,bn.Z)(Hn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cart-basket-mc"},[n("div",{staticClass:"col-12 col-xl-9 products-block"},[n("Products",{attrs:{type:"main"},on:{"set-cart-is-empty":t.setCartIsEmpty}})],1),t._v(" "),n("div",{staticClass:"col-12 col-xl-3 result-block"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6 col-xl-12"},[n("div",{staticClass:"container-fluid frame cart-promo-mc"},[t._m(0),t._v(" "),n("div",{staticClass:"row body"},[n("div",{staticClass:"col-12 item form"},[n("b-form",{on:{submit:function(e){return e.preventDefault(),t.onPromoSubmit.apply(null,arguments)}}},[n("b-form-group",{attrs:{label:"ÐÑÑÑ Ð¿Ñомокод?"}},[n("b-form-input",{attrs:{type:"text",required:""},model:{value:t.promo.value,callback:function(e){t.$set(t.promo,"value",e)},expression:"promo.value"}})],1),t._v(" "),n("b-button",{attrs:{type:"submit",variant:"outline-dark",disabled:!t.promo.value||t.promo.loading}},[t.promo.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n ÐÑимениÑÑ\n ")],1)],1)],1)])])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 col-xl-12"},[n("div",{staticClass:"container-fluid frame cart-result-mc"},[t._m(1),t._v(" "),n("div",{staticClass:"row body"},[n("div",{staticClass:"col-12 item"},[n("div",{staticClass:"text"},[t._v("СÑоимоÑÑÑ ÑоваÑов")]),t._v(" "),n("div",{staticClass:"price"},[n("span",[t._v(t._s(t._f("printPrice")(t.cartOriginalBaseSum)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),n("div",{staticClass:"col-12 item"},[n("div",{staticClass:"text"},[t._v("Скидка")]),t._v(" "),n("div",{staticClass:"price text-red"},[n("span",[t._v(t._s(t._f("printPrice")(t.cartOriginalDiscount)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"col-12 item total"},[n("div",{staticClass:"text"},[t._v("ÐÑего к оплаÑе")]),t._v(" "),n("div",{staticClass:"price"},[n("span",[t._v(t._s(t._f("printPrice")(t.cartOriginalSum)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),n("div",{staticClass:"col-12 item button"},[n("b-button",{attrs:{variant:"blue"},on:{click:t.complete}},[t._v("ÐÑоÑмиÑÑ")])],1),t._v(" "),n("div",{staticClass:"col-12 item button"},[n("b-button",{attrs:{variant:"transparent"},on:{click:t.offer}},[t._v("ÐапÑоÑиÑÑ Ð¾ÑеÑÑÑ")])],1)])]),t._v(" "),t._e()])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row header"},[n("div",{staticClass:"col-12 text"},[t._v("ÐÑомокод на ÑкидкÑ:")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row header"},[n("div",{staticClass:"col-12 text"},[t._v("ÐÑог:")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12"},[e("hr")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right"},[n("div",{staticClass:"text"},[t._v("СкаÑаÑÑ ÐºÐ¾Ð¼Ð¼ÐµÑÑеÑкое"),n("br"),t._v("пÑедложение в PDF")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right"},[n("div",{staticClass:"text"},[t._v("СкаÑаÑÑ ÐºÐ¾Ð¼Ð¼ÐµÑÑеÑкое"),n("br"),t._v("пÑедложение в DOCX")]
1)])}],!1,null,null,null).exports;function $n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Vn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$n(Object(n),!0).forEach((function(e){Bn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bn(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Gn={name:"YandexAuth",props:{btnContainerId:{type:String,default:"yandex-id-btn"},clientId:{type:String,required:!0},onLoad:{type:Function,default:()=>{}},onSuccess:{type:Function,default:()=>{}},onError:{type:Function,default:()=>{}},partnerFields:{type:Object,default:()=>{}}},data:function(){return{_initiated:!1,loaded:!1}},computed:Vn(Vn({},(0,r.Se)(["userIsAuthorized"])),{},{initiated:{get:function(){return this.$data._initiated},set:function(){this.$data._initiated=!0}}}),methods:Vn(Vn({},(0,r.nv)(["authYandexByOAuthToken"])),{},{init:function(){const t="yandex-id-init";if(this.initiated)return;if(document.getElementById(t))return this.onWidgetLoad();const e=document.createElement("script");e.id=t,e.type="text/javascript",e.src="https://yastatic.net/s3/passport-sdk/autofill/v1/sdk-suggest-with-polyfills-latest.js",e.async=!0,e.defer=!0,e.onload=()=>this.onWidgetLoad(),document.head.appendChild(e)},onWidgetLoad:function(){return window.YaAuthSuggest.init({client_id:this.clientId,response_type:"token",redirect_uri:`${window.location.origin}/auth/yandex-id/button/`},window.location.origin,{view:"button",parentId:this.btnContainerId,buttonSize:"l",buttonView:"icon",buttonTheme:"light",buttonBorderRadius:"20",buttonIcon:"yaEng"}).then((({handler:t})=>(this.initiated=!0,this.loaded=!0,this.onLoad(),t()))).then((t=>{this.auth(t)})).catch((t=>{console.log("ÐбÑабоÑка оÑибки",t)}))},auth:async function(t){const e={tokenMessage:t,processingConsent:this.partnerFields.processingConsent.value?this.partnerFields.processingConsent.name:"",marketingConsent:this.partnerFields.marketingConsent.value?this.partnerFields.marketingConsent.name:""},n=await this.authYandexByOAuthToken(e);n.success?this.onSuccess(n):this.onError(n)}}),mounted(){this.userIsAuthorized||this.init()},beforeDestroy(){}},Yn=Gn;const zn=(0,bn.Z)(Yn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"yandex-id-mc"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],attrs:{id:t.btnContainerId}})])}),[],!1,null,null,null).exports;var Zn=n(2985);n(4306);const Wn={required:function(t){let e={state:null,errorMsg:null,validated:!0};return!t.value||Array.isArray(t.value)&&0===t.value.length?(e.state=!1,e.errorMsg="Ðоле должно бÑÑÑ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¾"):(e.state=!0,e.errorMsg=null),e},min:function(t,e){let n={state:null,errorMsg:null,validated:!0};return String(t.value).length<+e?(n.state=!1,n.errorMsg=`ÐинималÑÐ½Ð°Ñ Ð´Ð»Ð¸Ð½Ð° - ${e} Ñимволов`):(n.state=!0,n.errorMsg=null),n},max:function(t,e){let n={state:null,errorMsg:null,validated:!0};return String(t.value).length>+e?(n.state=!1,n.errorMsg=`ÐакÑималÑÐ½Ð°Ñ Ð´Ð»Ð¸Ð½Ð° - ${e} Ñимволов`):(n.state=!0,n.errorMsg=null),n},length:function(t,e){let n={state:null,errorMsg:null,validated:!0};return String(t.value).length!==+e?(n.state=!1,n.errorMsg=`Ðлина Ð¿Ð¾Ð»Ñ - ${e} Ñимволов`):(n.state=!0,n.errorMsg=null),n},minmax:function(t,e,n){let s={state:null,errorMsg:null,validated:!0};return String(t.value).length<+e||String(t.value).length>+n?(s.state=!1,s.errorMsg=`Ðлина знаÑÐµÐ½Ð¸Ñ - Ð¾Ñ ${e} до ${n} Ñимволов`):(s.state=!0,s.errorMsg=null),s},email:function(t){let e={state:null,errorMsg:null,validated:!0};return t.value=String(t.value).toLowerCase(),/^([a-z0-9_-]+\.)*[a-z0-9_-]+@[a-z0-9_-]+(\.[a-z0-9_-]+)*\.[a-z]{2,6}$/.test(t.value)?(e.state=!0,e.errorMsg=null):(e.state=!1,e.errorMsg="УкажиÑе E-mail в пÑавилÑном ÑоÑмаÑе"),e.value=t.value,e},phone:function(t){let e={state:null,errorMsg:null,validated:!0};return/^\+7\d{10}$/.test(Jn(t.value))?(e.state=!0,e.errorMsg=null):(e.state=!1,e.errorMsg="УкажиÑе Ð½Ð¾Ð¼ÐµÑ ÑелеÑона в пÑавилÑном ÑоÑмаÑе"),e},password:function(t){let e={state:null,errorMsg:null,validated:!0};return/(?=.*[0-9])[0-9a-zA-Z!@#$%^&*\-_]{6,}/g.test(t.value)?(e.state=!0,e.errorMsg=null):(e.state=!1,e.errorMsg="ÐаÑÐ¾Ð»Ñ Ð´Ð¾Ð»Ð¶ÐµÐ½ ÑоÑÑоÑÑÑ Ð¸Ð· лаÑинÑкиÑ
бÑкв и минимÑм одной ÑиÑÑÑ"),e},equal:function(t,e){let n={state:null,errorMsg:null,validated:!0};return t.value!==e.value?(n.state=!1,n.errorMsg="ÐÐ¾Ð»Ñ Ð½Ðµ ÑовпадаÑÑ"):(n.state=!0,n.errorMsg=null),n},nameSurname:function(t){let e={state:null,errorMsg:null,validated:!0};return/[A-Za-zÐ-Яа-Ñ]{2,} [A-Za-zÐ-Яа-Ñ]{2,}/.test(t.value.trim())?(e.state=!0,e.errorMsg=null):(e.state=!1,e.errorMsg="ÐведиÑе Ð¸Ð¼Ñ Ð¸ ÑамилиÑ"),e},file:function(t){let e={state:null,errorMsg:null,validated:!0};return t.value instanceof File?(e.state=!0,e.errorMsg=null):(e.state=!1,e.errorMsg="ÐедопÑÑÑимÑй ÑоÑÐ¼Ð°Ñ Ð´Ð°Ð½Ð½ÑÑ
"),e},image:function(t){let e=this.file(t);return e.state&&(/^image\/(png|jpeg|jpg|bmp|gif)/.test(t.value.type)?(e.state=!0,e.errorMsg=null):(e.state=!1,e.errorMsg="ÐзобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð¿ÑинимаÑÑÑÑ Ð² ÑоÑмаÑаÑ
png, jpeg, jpg, bpm, gif")),e.state&&(t.value.size<=10485760?(e.state=!0,e.errorMsg=null):(e.state=!1,e.errorMsg="ÐбÑем изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð½Ðµ должен пÑевÑÑаÑÑ 10Ðб")),e},digits:function(t){let e={state:null,errorMsg:null,validated:!0};return/\D/.test(t.value)?(e.state=!1,e.errorMsg="ÐнаÑение должно ÑоÑÑоÑÑÑ Ð¸Ð· ÑиÑÑ"):(e.state=!0,e.errorMsg=null),e},accountNumber:function(t){let e={state:null,errorMsg:null,validated:!0,value:t.value};if("string"!=typeof e.value&&(e.value=String(e.value)),e.value=e.value.replace(/\s+/g,"").replace(/\D/g,""),
1!/^\d+$/.test(e.value))return e.state=!1,e.errorMsg="Ð /Ñ Ð¼Ð¾Ð¶ÐµÑ ÑоÑÑоÑÑÑ ÑолÑко из ÑиÑÑ",e;if("0"===e.value[0])return e.state=!1,e.errorMsg="Ð /Ñ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð½Ð°ÑинаÑÑÑÑ Ñ Ð½ÑлÑ",e;if(20!==e.value.length)return e.state=!1,e.errorMsg="ÐопÑÑÑÐ¸Ð¼Ð°Ñ Ð´Ð»Ð¸Ð½Ð° Ð /Ñ - 20 Ñимволов",e;const n=e.value.substr(5,3);return["810"].includes(n)?(e.state=!0,e.errorMsg=null,e):(e.state=!1,e.errorMsg="ÐÑибка кода валÑÑÑ Ð² номеÑе. ÐÑовеÑÑÑе Ð½Ð¾Ð¼ÐµÑ ÑÑеÑа",e)}};function Kn(t){let e,n=!1;if(t.required){if(e=Wn.required(t),Object.keys(e).forEach((function(n){t[n]!==e[n]&&(t[n]=e[n])})),!1===t.state||!t.value)return t}else{if(!t.value||Array.isArray(t.value)&&0===t.value.length)return t.validated=!0,t.state=null,t.errorMsg=null,t;if(!t.validation)return t.validated=!0,t.state=!0,t.errorMsg=null,t}t.validation&&(t.value||Array.isArray(t.value)&&t.value.length>0)&&!n&&Object.keys(t.validation).forEach((function(s){if(n)return!1;const r=t.validation[s].map((function(t){return"function"==typeof t?t():t}));e=Wn[s](t,...r),Object.keys(e).forEach((function(n){t[n]!==e[n]&&(t[n]=e[n])})),!1===t.state&&(n=!0)}))}function Xn(t){let e=t.name;return t.required&&(e+=' <sup class="red-text-danger">*</sup>'),e}function Qn(t){const e={mask:[{mask:"+7 (000) 000-00-00"}]};document.querySelectorAll(t+' input[type="tel"]').forEach((t=>{(0,Zn.Z)(t,e)}))}function Jn(t){const e=String(t).replace(/(^\+?(7|8)|\D)/g,"").trim().split("").splice(-10,10);return 10===e.length?`+7${e.join("")}`:null}function ts(t,e,n=5,s=1e3){const r=setInterval((()=>{n>0?(t(),n--):(e(),clearTimeout(r))}),s);return()=>clearTimeout(r)}function es(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ns(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?es(Object(n),!0).forEach((function(e){ss(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ss(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const rs={name:"SignIn",props:{interactive:{type:Boolean,default:!1},onSuccess:{type:Function,default:()=>{}},onError:{type:Function,default:()=>{}}},components:{YandexId:zn},data:function(){return{stages:{MAIN:0,SUCCESS:1,ERROR:2},stage:0,fields:{login:{name:"Ðогин",value:"",required:!0,state:null,validated:!1,type:"text"},password:{name:"ÐаÑолÑ",value:"",required:!0,state:null,validated:!1,type:"password"},remember:{name:"ÐапомниÑÑ Ð¼ÐµÐ½Ñ",value:!0,required:!1,state:null,validated:!0,type:"checkbox"}},partnersFields:{processingConsent:{name:this.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML,value:null,required:!0,state:null,validated:!1,type:"checkbox"},marketingConsent:{name:this.$root.MARKETING_CONSENT.CHECKBOX_LABEL_HTML,value:null,required:!1,state:null,validated:!1,type:"checkbox"}},error:null,message:null,loading:{signIn:!1,partner:!0},rollback:{value:100,max:100,interval:200,timeout:1500}}},computed:ns(ns({},(0,r.Se)(["userGetUserData"])),{},{name:function(){return this.userGetUserData.NAME},invalidFields:function(){return Object.assign({},...Object.keys(this.fields).map((t=>this.fields[t].validated&&!1!==this.fields[t].state?{}:{[t]:this.fields[t]})))},isValid:function(){return!Object.keys(this.invalidFields).length}}),methods:ns(ns({},(0,r.nv)(["authSignIn","userSetUserData"])),{},{delayAndExecute:ts,setState:Kn,submit:async function(){this.loading.signIn=!0;const t=await this.authSignIn({login:this.fields.login.value,password:this.fields.password.value,remember:this.fields.remember?"Y":"N",interactive:this.interactive});t.success?this.onSingInSuccess():(this.onError(),this.error=t.message),this.loading.signIn=!1},onSingInSuccess:function(){this.stage=this.stages.SUCCESS;this.delayAndExecute((()=>this.rollback.value=this.rollback.value-this.rollback.max*this.rollback.interval/this.rollback.timeout),(()=>this.onSuccess()),this.rollback.timeout/this.rollback.interval,this.rollback.interval)},onPartnerYandexLoaded:function(){this.loading.partner=!1}})};const is=(0,bn.Z)(rs,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login-mc row"},[t.stage===t.stages.MAIN?n("div",{staticClass:"col-12 stage main"},[n("b-form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("b-form-text",[n("b-alert",{attrs:{show:!!t.message,variant:"success"},domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("b-alert",{attrs:{show:!!t.error,variant:"danger"},domProps:{innerHTML:t._s(t.error)}})],1),t._v(" "),t._l(t.fields,(function(e,s){return n("b-form-group",{key:t.$id("lf_"+s),attrs:{state:e.state},scopedSlots:t._u(["checkbox"!==e.type?{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(e.name)}}),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])]},proxy:!0}:null],null,!0)},[t._v(" "),"checkbox"===e.type?n("b-form-checkbox",{attrs:{id:t.$id(s),state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}},[n("span",{domProps:{innerHTML:t._s(e.name)}}),e.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()]):n("b-form-input",{attrs:{type:e.type,name:s,state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),"checkbox"!==e.type&&e.errorMsg?n("b-form-invalid-feedback",{domProps:{innerHTML:t._s(e.errorMsg)}}):t._e()],1)})),t._v(" "),n("b-form-group",{staticClass:"buttons-block mb-3"},[n("button",{staticClass:"btn btn-blue",attrs:{type:"submit",disabled:!t.isValid}},[t.loading.signIn?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n ÐойÑи\n ")],1),t._v(" "),n("button",{staticClass:"btn btn-outline-red",attrs:{type:"button"},on:{click:function(e){return t.$emit("forgot")}}},[t._v("\n ÐабÑли паÑолÑ?\n ")])]),t._v(" "),n("b-form-group",{staticClass:"partner-auth"},[n("div",{staticClass:"header"},[n("div",{staticClass:"line"},[n("hr")]),t._v(" "),n("div",{staticClass:"text"},[t._v("или войдиÑе Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ")]),t._v(" "),n("div",{staticClass:"line"},[n("hr")])]),t._v(" "),n("b-overlay",{staticClass:"mb-3 pt-4 pb-3",attrs:{show:t.loading.partner||!t.partnersFields.processingConsent.value,"z-index":99999},scopedSlots:t._u([{key:"overlay",fn:function(){return[n("span")]},proxy:!0}],null,!1,2626575646)},[t._v(" "),n("div",{staticClass:"widgets"},[n("YandexId",{attrs:{"client-id":t.$root.YANDEX_ID_CLIENT_ID,"on-load":t.onPartnerYandexLoaded,"on-success":t.onSingInSuccess,"on-error":t.onError,"partner-fields":t.partnersFields}})],1)]),t._v(" "),n("div",{staticClass:"processing-consent"},[n("b-form-group",{attrs:{state:t.partnersFields.processingConsent.state}},[n("b-form-checkbox",{attrs:{state:t.partnersFields.processingConsent.state},on:{input:function(e){return t.setState(t.partnersFields.processingConsent)}},model:{value:t.partnersFields.processingConsent.value,callback:function(e){t.$set(t.partnersFields.processingConsent,"value",e)},expression:"partnersFields.processingConsent.value"}},[n("span",{domProps:{innerHTML:t._s(t.partnersFields.processingConsent.name)}}),t._v(" "),t.partnersFields.processingConsent.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()])],1),t._v(" "),n("b-form-group",{attrs:{state:t.partnersFields.marketingConsent.state}},[n("b-form-checkbox",{attrs:{state:t.partnersFields.marketingConsent.state,disabled:!t.partnersFields.processingConsent.value},on:{input:function(e){return t.setState(t.partnersFields.marketingConsent)}},model:{value:t.partnersFields.marketingConsent.value,callback:function(e){t.$set(t.partnersFields.marketingConsent,"value",e)},expression:"partnersFields.marketingConsent.value"}},[n("span",{domProps:{innerHTML:t._s(t.partnersFields.marketingConsent.name)}}),t._v(" "),t.partnersFields.marketingConsent.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()])],1)],1)],1)],2)],1):t.stage===t.stages.SUCCESS?n("div",{staticClass:"stage col-12 success-message"},[n("div",{staticClass:"text-center"},[n("span",[t._v("ÐдÑавÑÑвÑйÑе, "+t._s(t.name)+"!")]),t._v(" "),n("br"),t._v(" "),n("br"),t._v(" "),n("b-progress",{attrs:{variant:"success",value:t.rollback.value,max:t.rollback.max}}
1)],1)]):t.stage===t.stages.ERROR?n("div",{staticClass:"stage col-12 error-message"},[n("div",{staticClass:"text"},[t._v("ÐдÑавÑÑвÑйÑе, "+t._s(t.name)+"!")]),t._v("\n ЧÑо-Ñо поÑло не Ñак...\n ")]):t._e()])}),[],!1,null,null,null).exports;function as(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function os(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?as(Object(n),!0).forEach((function(e){cs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cs(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ls={name:"RequestRestorePassword",props:{},data:()=>({fields:{email:{value:"",required:!0,state:null,validated:!1,validation:{email:[]},type:"email",name:"E-mail"},phone:{value:"",required:!0,state:null,validated:!1,placeholder:"+7 (___) ___-__-__",validation:{phone:[]},type:"tel",name:"ТелеÑон"}},error:"",message:"",success:!1,loading:!1,rollbackTimer:0}),computed:{invalidFields:function(){return Object.assign({},...Object.keys(this.fields).map((t=>this.fields[t].validated&&!1!==this.fields[t].state?{}:{[t]:this.fields[t]})))},isValid:function(){return this.isEmailValid||this.isPhoneValid},isEmailValid:function(){return!("email"in this.invalidFields)},isPhoneValid:function(){return!("phone"in this.invalidFields)}},methods:os(os({},(0,r.nv)(["authSignInByEmailInit","authSignInByConfirmationCodeInit"])),{},{setState:Kn,onSubmit:async function(){if(this.message=this.error="",this.isPhoneValid){this.loading=!0;const t=await this.authSignInByConfirmationCodeInit({phone:Jn(this.fields.phone.value)});this.loading=!1,t.success?this.$emit("success:phone",t):(this.message="",this.error+=`Ðо номеÑÑ ÑелеÑона: ${t.message}<br/>`)}if(this.isEmailValid){this.loading=!0;const t=await this.authSignInByEmailInit({email:this.fields.email.value});this.loading=!1,t.success?this.$emit("success:email",{}):(this.message="",this.error+=`Ðо E-mail: ${t.message}<br/>`)}},onCancel:function(){return this.$emit("cancel")}}),mounted(){Qn(".restore-pw-mc")}};const us=(0,bn.Z)(ls,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form",{staticClass:"row request-restore-pw-mc",on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12 mb-3"},[n("b-alert",{attrs:{variant:"success",show:!!t.message},domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("b-alert",{attrs:{variant:"danger",show:!!t.error},domProps:{innerHTML:t._s(t.error)}})],1),t._v(" "),n("b-form-text",{staticClass:"col-12 mb-3"},[t._v("\n УкажиÑе E-mail, или ÑелеÑон\n ")]),t._v(" "),t._l(t.fields,(function(e,s){return n("b-form-group",{key:t.$id("rpi_"+s),staticClass:"col-12",attrs:{state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(e.name)}}),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])]},proxy:!0}],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:e.type,name:s,state:e.state,placeholder:e.placeholder},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",{domProps:{innerHTML:t._s(e.errorMsg)}}):t._e()],1)})),t._v(" "),n("b-form-group",{staticClass:"col-12 buttons-block"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("button",{staticClass:"btn btn-green",attrs:{type:"submit",disabled:!t.isValid||t.loading}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n ÐÑпÑавиÑÑ\n ")],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("button",{staticClass:"btn btn-red",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.onCancel.apply(null,arguments)}}},[t._v("\n ÐÑмена\n ")])])])])],2)}),[],!1,null,null,null).exports;function ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ps(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ds(Object(n),!0).forEach((function(e){fs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fs(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const hs={name:"SignInByConfirmationCode",props:{confirmationId:{type:Number,required:!0}},data:()=>({fields:{code:{value:null,required:!0,state:null,validated:!1,validation:{required:[],min:[4],max:[4]}}},timer:null,timerValue:0,loading:{submit:!1,reset:!1},error:null,message:null}),computed:{isValid:function(){return this.fields.code.validated&&this.fields.code.state}},methods:ps(ps({},(0,r.nv)(["authSignInByConfirmationCodeConfirm","authSignInByConfirmationCodeReset"])),{},{setState:Kn,onSubmit:async function(){if(!this.isValid)return!1;this.loading.submit=!0,this.message=this.error="";const t=await this.authSignInByConfirmationCodeConfirm({id:this.confirmationId,code:this.fields.code.value});t.success?(this.message=t.message||"",this.error="",this.fields.code.value="",this.fields.code.state=null,this.fields.code.validated=!1,this.$emit("success",t)):(this.message="",this.error=t.message||"",this.$emit("fail")),this.loading.submit=!1},onReset:async function(){if(0!=+this.timer)return!1;this.message=this.error=null,this.loading.reset=!0;const t=await this.authSignInByConfirmationCodeReset({id:this.confirmationId});t.success?(this.message=t.message||"",this.fields.code.value="",this.fields.code.state=null,this.fields.code.validated=!1,this.$emit("reset",t)):this.error=t.message||"",this.restartTimer(),this.loading.reset=!1},onCancel:function(){return this.$emit("cancel")},restartTimer:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timerValue=60,this.timer=setInterval((()=>{this.timerValue--,this.timerValue<=0&&(clearTimeout(this.timer),this.timer=null)}),1e3)}}),mounted(){this.restartTimer()}};const ms=(0,bn.Z)(hs,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"sms-confirm-mc row",on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[n("b-alert",{attrs:{variant:"success",show:!!t.message},domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("b-alert",{attrs:{variant:"danger",show:!!t.error},domProps:{innerHTML:t._s(t.error)}})],1),t._v(" "),n("b-form-group",{staticClass:"col-12",attrs:{state:t.fields.code.state,validated:t.fields.code.validated},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("Ðод подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¸Ð· СÐС "),n("sup",{staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-input",{attrs:{type:"text",state:t.fields.code.state,validated:t.fields.code.validated},on:{input:function(e){return t.setState(t.fields.code)}},model:{value:t.fields.code.value,callback:function(e){t.$set(t.fields.code,"value",e)},expression:"fields.code.value"}}),t._v(" "),t.fields.code.errorMsg?n("b-form-invalid-feedback",{domProps:{innerHTML:t._s(t.fields.code.errorMsg)}}):t._e()],1),t._v(" "),n("b-form-text",{directives:[{name:"show",rawName:"v-show",value:t.timerValue>0,expression:"timerValue > 0"}],staticClass:"col-12 help-block mb-5"},[n("span",{staticClass:"text"},[t._v("\n Ðа ÑказаннÑй вами Ð½Ð¾Ð¼ÐµÑ Ð±Ñло оÑпÑавлено СÐС ÑообÑение Ñ ÐºÐ¾Ð´Ð¾Ð¼.\n "),n("br"),t._v("\n ÐÑли ÑообÑение не пÑиÑло Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе запÑоÑиÑÑ Ð¿Ð¾Ð²ÑоÑнÑÑ Ð¾ÑпÑÐ°Ð²ÐºÑ ÑеÑез "),n("b",{domProps:{innerHTML:t._s(t.timerValue)}}),t._v(" ÑекÑнд.\n ")])]),t._v(" "),n("b-form-group",{staticClass:"col-12 buttons-block"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("button",{staticClass:"btn btn-green",attrs:{type:"submit",disabled:!t.isValid||t.loading.submit}},[t.loading.submit?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n ÐÑпÑавиÑÑ\n ")],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("button",{staticClass:"btn btn-blue",attrs:{type:"button",disabled:t.loading.reset||t.timerValue>0},on:{click:t.onReset}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.reset,expression:"loading.reset"}],attrs:{icon:"spinner",spin:""}}),t._v("\n ÐапÑоÑиÑÑ Ð¿Ð¾Ð²ÑоÑно\n ")],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-4 d-none"},[n("button",{staticClass:"btn btn-red",attrs:{type:"button"},on:{click:t.onCancel}},[t._v("\n ÐÑмена\n ")])])])])],1
1)}),[],!1,null,null,null).exports;function vs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function _s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vs(Object(n),!0).forEach((function(e){gs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gs(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const bs={name:"ChangePassword",props:{},data(){return{fields:{password:{name:"ÐÑидÑмайÑе новÑй паÑолÑ",value:"",required:!0,state:null,validated:!1,validation:{password:[]},type:"password"},passwordConfirm:{name:"ÐовÑоÑиÑе паÑолÑ",value:"",required:!0,state:null,validated:!1,validation:{password:[],equal:[()=>this.fields.password]},type:"password"}},loading:!1,error:null,message:null}},computed:{invalidFields:function(){return Object.assign({},...Object.keys(this.fields).map((t=>this.fields[t].validated&&!1!==this.fields[t].state?{}:{[t]:this.fields[t]})))},isValid:function(){return!Object.keys(this.invalidFields).length}},methods:_s(_s({},(0,r.nv)(["authChangePassword"])),{},{setState:Kn,submit:async function(){const t=await this.authChangePassword({password:this.fields.password.value,passwordConfirm:this.fields.passwordConfirm.value});t.success?this.$emit("success",t):this.$emit("error",t)},cancel:function(){return this.$emit("cancel")}})};function ys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Cs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ys(Object(n),!0).forEach((function(e){Os(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Os(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ws={name:"RestorePassword",props:{},components:{RestorePasswordInit:us,SignInByConfirmationCode:ms,ChangePassword:(0,bn.Z)(bs,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"change-pw-mc row",on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[n("b-alert",{attrs:{variant:"success",show:!!t.message},domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("b-alert",{attrs:{variant:"danger",show:!!t.error},domProps:{innerHTML:t._s(t.error)}})],1),t._v(" "),t._l(t.fields,(function(e,s){return n("b-form-group",{key:t.$id("rpf_"+s),staticClass:"col-12",attrs:{state:e.state},scopedSlots:t._u(["checkbox"!==e.type?{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(e.name)}}),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])]},proxy:!0}:null],null,!0)},[t._v(" "),"checkbox"===e.type?n("b-form-checkbox",{attrs:{id:t.$id(s),state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}},[n("span",{domProps:{innerHTML:t._s(e.name)}}),e.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()]):n("b-form-input",{attrs:{type:e.type,name:s,state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),"checkbox"!==e.type&&e.errorMsg?n("b-form-invalid-feedback",{domProps:{innerHTML:t._s(e.errorMsg)}}):t._e()],1)})),t._v(" "),n("b-form-group",{staticClass:"col-12 buttons-block"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-6"},[n("button",{staticClass:"btn btn-green",attrs:{type:"submit",disabled:t.loading||!t.isValid},on:{click:t.submit}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n СоÑ
ÑаниÑÑ\n ")],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-6"},[n("button",{staticClass:"btn btn-red",attrs:{type:"button"},on:{click:t.cancel}},[t._v("ÐÑмена")])])])])],2)}),[],!1,null,null,null).exports},data:()=>({stage:0,stages:{REQUEST_CODE:0,ENTER_CODE:1,CHANGE_PASSWORD:2,SUCCESS_BY_PHONE:3,SUCCESS_BY_EMAIL:4},rollbackTimer:null,rollbackTime:5,confirmationId:0,userId:0}),computed:{},methods:Cs(Cs({},(0,r.nv)(["authSignInByConfirmationCodeReset","authSignInByConfirmationCodeConfirm","authSignInByEmailInit"])),{},{onInitByPhoneSuccess:function(t){this.confirmationId=t.confirmationId,this.stage=this.stages.ENTER_CODE},onInitByEmailSuccess:function(t){this.stage=this.stages.SUCCESS_BY_EMAIL},onSignInByPhoneSuccess:function(t){this.stage=this.stages.CHANGE_PASSWORD},onChangePasswordSuccess:function(t){this.stage=this.stages.SUCCESS_BY_PHONE,this.delayedRollback()},delayedRollback:function(){this.rollbackTimer=setInterval((()=>
1{if(this.rollbackTime<=0)return clearTimeout(this.rollbackTimer),this.rollbackTimer=null,this.onSuccess();this.rollbackTime--}),1e3),this.rollbackTime=5},onSuccess:function(){this.stage=this.stages.REQUEST_CODE,this.$emit("success")},onCancel:function(){this.stage=this.stages.REQUEST_CODE,this.$emit("cancel")}})};const Es=(0,bn.Z)(ws,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"restore-pw-mc row"},[t.stage===t.stages.REQUEST_CODE?n("div",{staticClass:"col-12 request-block"},[n("RestorePasswordInit",{on:{"success:phone":t.onInitByPhoneSuccess,"success:email":t.onInitByEmailSuccess,cancel:t.onCancel}})],1):t.stage===t.stages.ENTER_CODE?n("div",{staticClass:"col-12 confirm-block"},[n("SignInByConfirmationCode",{attrs:{"confirmation-id":t.confirmationId},on:{success:t.onSignInByPhoneSuccess,error:function(){},cancel:t.onCancel}})],1):t.stage===t.stages.CHANGE_PASSWORD?n("div",{staticClass:"col-12 change-block"},[n("ChangePassword",{on:{success:t.onChangePasswordSuccess,cancel:t.onCancel}})],1):t.stage===t.stages.SUCCESS_BY_PHONE||t.stage===t.stages.SUCCESS_BY_EMAIL?n("div",{staticClass:"col-12 success-block"},[n("div",{staticClass:"success-message"},[n("div",{staticClass:"text-block"},[t.stage===t.stages.SUCCESS_BY_PHONE?n("div",{staticClass:"text"},[t._v("\n ÐаÑÐ¾Ð»Ñ ÑÑпеÑно изменен\n ")]):t._e(),t._v(" "),t.stage===t.stages.SUCCESS_BY_EMAIL?n("div",{staticClass:"text"},[t._v("\n ÐÐ»Ñ ÑÐ¼ÐµÐ½Ñ Ð¿Ð°ÑÐ¾Ð»Ñ Ð¿ÐµÑейдиÑе по ÑÑÑлке, оÑпÑавленной вам на поÑÑÑ\n ")]):t._e()]),t._v(" "),n("div",{staticClass:"spinner-block"},[n("fai",{attrs:{icon:"spinner",spin:""}})],1),t._v(" "),n("div",{staticClass:"timer-block"},[t._v("\n ÐÑо окно авÑомаÑиÑеÑки закÑоеÑÑÑ ÑеÑез "),n("b",{domProps:{innerHTML:t._s(t.rollbackTime)}}),t._v(" Ñек.\n ")])])]):t._e()])}),[],!1,null,null,null).exports;function Ps(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ss(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ps(Object(n),!0).forEach((function(e){Is(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Is(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ts={name:"LocationPhone",props:{primary:{type:Boolean,default:!0},secondary:{type:Boolean,default:!0},universal:{type:Boolean,default:!0},limit:{type:Number,default:3}},data:function(){return{}},computed:Ss(Ss({},(0,r.Se)(["locationPhones"])),{},{primaryPhone:function(){return this.primary&&this.locationPhones.primary?this.limit<1?null:this.locationPhones.primary:null},secondaryPhone:function(){return this.secondary&&this.locationPhones.secondary?this.limit<2&&this.primaryPhone?null:this.locationPhones.secondary:null},universalPhone:function(){return this.universal&&this.locationPhones.universal?this.limit<2&&(this.primaryPhone||this.secondaryPhone)||this.limit<3&&this.primaryPhone&&this.secondaryPhone?null:this.locationPhones.universal:null}})};const Ds=(0,bn.Z)(Ts,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"location-phone-mc"},[t.primaryPhone?n("a",{staticClass:"primary-phone",attrs:{itemprop:"telephone",href:"tel:"+t.primaryPhone.SHORT}},[t._v("\n "+t._s(t.primaryPhone.SPACED)+"\n ")]):t._e(),t._v(" "),t.secondaryPhone?n("a",{staticClass:"secondary-phone",attrs:{itemprop:"telephone",href:"tel:"+t.secondaryPhone.SHORT}},[t._v("\n "+t._s(t.secondaryPhone.SPACED)+"\n ")]):t._e(),t._v(" "),t.universalPhone?n("a",{staticClass:"universal-phone",attrs:{itemprop:"telephone",href:"tel:"+t.universalPhone.SHORT}},[t._v("\n "+t._s(t.universalPhone.SPACED)+"\n ")]):t._e()])}),[],!1,null,null,null).exports;var As=n(3908),ks=n.n(As);function js(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ls(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?js(Object(n),!0).forEach((function(e){Rs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rs(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ms={name:"TransportCompanyFilial",components:{Multiselect:ks()},props:{value:{type:Object,required:!1}},data:function(){return{__company:0,__filial:null,companies:[{name:"ÐÐÐ",code:"pecom",img:{src:"/img/delivery/pecom.logo.svg",alt:"ТÑанÑпоÑÑÐ½Ð°Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ ÐÐÐ"}}]}},computed:Ls(Ls({},(0,r.Se)(["locationTransportCompanyFilialsList"])),{},{companyId:{get:function(){return this.$data.__company},set:function(t){this.$data.__company=t,this.filialId=null}},company:function(){return this.companies[this.companyId]},filialId:{get:function(){return this.$data.__filial},set:function(t){this.$data.__filial=t,this.$emit("input",t||{})}},filial:function(){return null!==this.filialId&&this.filialsOptions[this.filialId]||null},filialsOptions:function(){return this.locationTransportCompanyFilialsList[this.company.code]},externalData:function(){return null!==this.filialId&&{company:this.company.name,address:this.filial.address}||{}}}),methods:{},mounted(){document.addEventListener("LocationChanged",(()=>{this.companyId=0,this.filialId=null}))}};const xs=(0,bn.Z)(Ms,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"transport-company-filial-mc"},[n("div",{staticClass:"tc-info-wrapper"},[n("div",{staticClass:"icon-wrapper"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-exclamation-circle",width:"26",height:"26"}})],1),t._v(" "),n("div",{staticClass:"text-wrapper"},[t._v("\n ÐоÑÑавка пÑоизводиÑÑÑ Ð´Ð¾ пÑнкÑа ТРбеÑплаÑно по г. ÐоÑква (в пÑеделаÑ
ÐÐÐÐ)\n ")])]),t._v(" "),n("div",{staticClass:"tc-select-wrapper"},[n("b-form-group",{scopedSlots:t._u([{key:"default",fn:function(e){var s=e.ariaDescribedby;return[n("b-form-radio-group",{attrs:{"aria-describedby":s,name:"tc-company",buttons:""},model:{value:t.companyId,callback:function(e){t.companyId=e},expression:"companyId"}},t._l(t.companies,(function(t,e){return n("b-form-radio",{key:"tcf-"+e,attrs:{id:"tc-"+t.code,value:e,"button-variant":"tc-filial"}},[n("img",{attrs:{src:t.img.src,alt:t.img.alt}})])})),1)]}}])})],1),t._v(" "),n("div",{staticClass:"tc-filial-select-wrapper"},[n("Multiselect",{attrs:{options:t.filialsOptions,searchable:!0,"allow-empty":!0,"track-by":"address",label:"address",placeholder:"ÐÑбеÑиÑе пÑÐ½ÐºÑ Ð²ÑдаÑи",selectLabel:"ÐажмиÑе Enter Ð´Ð»Ñ Ð²ÑбоÑа",selectedLabel:"ÐÑбÑано",deselectLabel:"ÐÑмениÑÑ Ð²ÑбоÑ"},scopedSlots:t._u([{key:"singleLabel",fn:function(e){var s=e.option;return[n("b",[t._v(t._s(s.address))])]}}]),model:{value:t.filialId,callback:function(e){t.filialId=e},expression:"filialId"}})],1)])}),[],!1,null,null,null).exports;function Ns(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Us(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ns(Object(n),!0).forEach((function(e){qs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qs(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Hs={name:"OrderingDelivery",props:{},components:{Multiselect:ks(),TransportCompanyFilial:xs},data:function(){return{__typeIndex:0,__tcFilial:{},address:{street:{name:"УлиÑа",type:"text",code:"street",value:null,required:!1,validated:!1,placeholder:"",blocked:!1,state:null},house:{name:"Ðом / ÐоÑпÑÑ",type:"text",code:"house",value:null,required:!1,validated:!1,placeholder:"",blocked:!1,state:null},apartment:{name:"ÐваÑÑиÑа / ÐÑиÑ",type:"text",code:"apartment",value:null,required:!1,validated:!1,placeholder:"",blocked:!1,state:null}}}},computed:Us(Us(Us(Us({},(0,r.Se)(["isXS","isSM"])),(0,r.Se)(["cartDeliveryList"])),(0,r.Se)(["locationCity","locationOffice","locationMainOffice","locationIsMoscow","locationIsMoscowRegion","locationIsSPB"])),{},{externalData:function(){const t={isValid:this.isValid,deliveryType:this.deliveryType,props:{"delivery-id":this.deliveryType.id,"delivery-city":this.locationCity.CITY_NAME,"tc-filial-address":this.isPickUpDelCompany&&this.tcFilial.address||""}};return Object.values(this.address).forEach((e=>{e.value&&(t.props[`delivery-${e.code}`]=e.value)})),t},typeIndex:{get:function(){return this.$data.__typeIndex},set:function(t){this.$data.__typeIndex=+t,this.$emit("input",this.externalData)}},tcFilial:{get:function(){return this.$data.__tcFilial},set:function(t){this.$data.__tcFilial=t,this.$emit("input",this.externalData)}},deliveryTypes:function(){const t={3:{id:3,name:"ÐоÑÑавка",address:!0},5:{id:5,name:this.locationIsMoscow||this.locationIsMoscowRegion?"СамовÑвоз":"СамовÑвоз Ñо Ñклада в ÐоÑкве",address:!1},19:{id:19,name:"ÐоÑÑавка ÑÑанÑпоÑÑной компанией до пÑнкÑа вÑдаÑи",address:!1},20:{id:20,name:"ÐдÑеÑÐ½Ð°Ñ Ð´Ð¾ÑÑавка ÑÑанÑпоÑÑной компанией",address:!0},29:{id:31,name:"СамовÑвоз из Ñилиала СанкÑ-ÐеÑеÑбÑÑга",address:!1}};return this.locationIsMoscow||this.locationIsMoscowRegion?[3,5].map((e=>t[e])):this.locationIsSPB?[20,19,29,5].map((e=>t[e])):[20,19,5].map((e=>t[e]))},deliveryType:function(){return this.deliveryTypes[this.typeIndex]},isPickupMoscow:function(){return this.deliveryType&&5===this.deliveryType.id},isPickupFilial:function(){return this.deliveryType&&31===this.deliveryType.id},isPickUpDelCompany:function(){return this.deliveryType&&19===this.deliveryType.id},isValid:function(){return 0===Object.values(this.address).filter((t=>!1===t.state&&t.validated)).length}}),methods:Us(Us({},(0,r.nv)(["useVueCartApi","locationShowCitySelect","locationUpdateTransportCompanyFilialsList"])),{},{createLabel:Xn,setState:function(t){Kn(t),this.$emit("input",this.externalData)},validate:function(){Object.values(this.address).forEach((t=>this.setState(t)))},onCitySelect:function(t){if(!this.isXS&&!this.isSM)return this.locationShowCitySelect(t);{this.$root.toggleHamburger();const t=this.$root.$refs["mobile-menu"];if(t)return t.setStage(t.stages.city)}}}),mounted:function(){document.addEventListener("LocationChanged",(t=>{this.typeIndex=0})),this.validate()}};const Fs=(0,bn.Z)(Hs,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row ordering-delivery-mc"},[n("b-form-group",{staticClass:"col-12 col-md-6 col-lg-4 city-select",scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("ÐÑбÑаÑÑ Ð³Ð¾Ñод "),n("sup",{staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-button",{attrs:{variant:"transparent"},on:{click:function(e){return e.preventDefault(),t.onCitySelect.apply(null,arguments)}}},[t._v("\n г. "+t._s(t.locationCity.CITY_NAME)+"\n ")])],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("b-form-group",{staticClass:"col-12 type-block",scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("ÐÑбеÑиÑе ÑпоÑоб полÑÑÐµÐ½Ð¸Ñ "),n("sup",{staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-radio-group",{model:{value:t.typeIndex,callback:function(e){t.typeIndex=e},expression:"typeIndex"}},t._l(t.deliveryTypes,(function(e,s){return n("b-form-radio",{key:"del_type_"+s,staticClass:"d-block",class:{active:t.typeIndex===s},attrs:{value:s}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1),t._v(" "),t.isPickUpDelCompany?n("div",{staticClass:"col-12 transport-company-filials"},[n("TransportCompanyFilial",{model:{value:t.tcFilial,callback:function(e){t.tcFilial=e},expression:"tcFilial"}})],1):t._e(),t._v(" "),t.deliveryType?n("div",{directives:[{name:"show",rawName:"v-show",value:t.deliveryType.address,expression:"deliveryType.address"}],staticClass:"col-12 delivery-fields"},[n("div",{staticClass:"row"},t._l(t.address,(function(e,s){return n("b-form-group",{key:"adr_fld_"+s,staticClass:"col-12 col-md-4",attrs:{validated:e.validated,state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(t.createLabel(e))}})]},proxy:!0}],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:e.type,name:"le_"+s,required:e.required,placeholder:e.placeholder,readonly:e.blocked,state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)})),1)]):t._e(),t._v(" "),n("div",{staticClass:"col-12 col-md-10 col-lg-8 office-info"},[t.locationMainOffice&&t.isPickupMoscow?n("div",{staticClass:"row m-0 moscow"},[n("div",{staticClass:"container-fluid outer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-7 info"},[t._m(0),t._v(" "),n("div",{staticClass:"address"},[n("span",{staticClass:"point"}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.locationMainOffice.PROPERTY_ADRESS_VALUE)}})]),t._v(" "),n("div",{staticClass:"time sales-department d-none"},[n("span",{staticClass:"text"},[t._v("ÐÑÐµÐ¼Ñ ÑабоÑÑ Ð¾Ñдела пÑодаж:")]),t._v(" "),n("b",{staticClass:"time",domProps:{innerHTML:t._s(t.locationMainOffice.PROPERTY_WORKING_TIME_OF
1FICE_VALUE)}})]),t._v(" "),n("div",{staticClass:"time pick-up-point"},[n("span",{staticClass:"text"},[t._v("ÐÑÐµÐ¼Ñ ÑабоÑÑ Ð¿ÑнкÑа ÑамовÑвоза:")]),t._v(" "),n("b",{staticClass:"time",domProps:{innerHTML:t._s(t.locationMainOffice.PROPERTY_WORKING_TIME_PICKUP_VALUE)}})])]),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3)])])]):t.locationOffice&&t.isPickupFilial?n("div",{staticClass:"row m-0 spb"},[n("div",{staticClass:"container-fluid outer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-md-7 info"},[t._m(4),t._v(" "),n("div",{staticClass:"address"},[n("span",{staticClass:"point"}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.locationOffice.PROPERTY_ADRESS_VALUE)}})]),t._v(" "),n("div",{staticClass:"time sales-department d-none"},[n("span",{staticClass:"text"},[t._v("ÐÑÐµÐ¼Ñ ÑабоÑÑ Ð¾Ñдела пÑодаж:")]),t._v(" "),n("b",{staticClass:"time",domProps:{innerHTML:t._s(t.locationOffice.PROPERTY_WORKING_TIME_OFFICE_VALUE)}})]),t._v(" "),n("div",{staticClass:"time pick-up-point"},[n("span",{staticClass:"text"},[t._v("ÐÑÐµÐ¼Ñ ÑабоÑÑ Ð¿ÑнкÑа ÑамовÑвоза:")]),t._v(" "),n("b",{staticClass:"time",domProps:{innerHTML:t._s(t.locationOffice.PROPERTY_WORKING_TIME_PICKUP_VALUE)}})])]),t._v(" "),n("div",{staticClass:"col-12 col-md-5 map"})])])]):t._e()])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("h3",[t._v("ÐÐ°Ñ Ð°Ð´ÑеÑ:")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 col-md-5 map-block"},[n("a",{staticClass:"map",attrs:{href:"/img/cart/store_map_msk.png",target:"_blank"}},[n("img",{attrs:{src:"/img/cart/store_map_msk_min.png",alt:"store_map"}})]),t._v(" "),n("a",{staticClass:"link",attrs:{href:"https://yandex.ru/maps/-/CCUR7SaPXB",target:"_blank"}},[t._v("\n ÐоÑмоÑÑеÑÑ Ð½Ð° каÑÑе\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12"},[e("hr",{staticClass:"separator"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 alerts-block"},[n("div",{staticClass:"inner"},[n("p",{staticClass:"warn"},[t._v("ÐÐ½Ð¸Ð¼Ð°Ð½Ð¸Ñ ÑÑ. лиÑ: пÑедÑÑавиÑÐµÐ»Ñ ÑÑидиÑеÑкого лиÑа пÑи полÑÑении ÑоваÑа в\n обÑзаÑелÑном поÑÑдке должен имеÑÑ Ð¿Ñи Ñебе оÑигинал довеÑенноÑÑи по ÑоÑме бланка M2\n и\n паÑпоÑÑ.")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("h3",[t._v("ÐÐ°Ñ Ð°Ð´ÑеÑ:")])])}],!1,null,null,null).exports;function $s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Vs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$s(Object(n),!0).forEach((function(e){Bs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bs(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Gs={name:"DaDataAutocompleteField",props:{name:{type:String},label:{type:String},value:{type:String},placeholder:{type:String},state:{type:[Boolean,null]},required:{type:Boolean},readonly:{type:Boolean},errorMsg:{type:[String,null]},method:{type:String,default:"party"},timeout:{type:Number,default:500},minSymbols:{type:Number,default:3}},data:function(){return{expand:!1,companies:null,lastInput:0}},computed:Vs(Vs({},(0,r.Se)(["daDataIsLoading"])),{},{isLoading:function(){return this.daDataIsLoading},isValid:function(){return 0===Object.values(this.formData).filter((t=>!1===t.state&&t.validated)).length}}),methods:Vs(Vs({},(0,r.nv)(["daDataGetSuggestions"])),{},{onInput:function(t){if(this.lastInput=Date.now(),this.$emit("input",t),!t||t.length<this.minSymbols)return!1;setTimeout(this.getSuggestions,this.timeout)},onSelect:function(t){this.$emit("autocomplete",t),this.closeDropdown()},onFocus:function(t){setTimeout(this.openDropdown,200)},onKeyDown:function(t){"ArrowDown"===t.key&&this.hoverNext(),"ArrowUp"===t.key&&this.hoverPrev(),"Enter"===t.key&&this.selectCurrent()},hoverNext:function(){if(!this.expand)return!1;const t=this.companies.findIndex((t=>t.selected));return t===this.companies.length-1?this.hoverByIndex(0):this.hoverByIndex(t+1)},hoverPrev:function(){if(!this.expand)return!1;const t=this.companies.findIndex((t=>t.selected));return 0===t?this.hoverByIndex(this.companies.length-1):this.hoverByIndex(t-1)},selectCurrent:function(){if(!this.expand)return!1;const t=this.companies.find((t=>t.selected));return t?this.onSelect(t):void 0},hoverByIndex:function(t){this.companies=this.companies.map(((e,n)=>Vs(Vs({},e),{},{selected:n===t})))},openDropdown:function(){if(!this.expand)return setTimeout((()=>this.expand=!0),200)},closeDropdown:function(){if(this.expand)return setTimeout((()=>this.expand=!1),200)},getSuggestions:async function(){if(Date.now()-this.lastInput<this.timeout)return!1;try{const{companies:t}=await this.daDataGetSuggestions({method:this.method,query:this.value});t&&t.length>0&&(this.companies=t.map((t=>Vs(Vs({},t),{},{selected:!1,method:this.method}))),this.expand=!0,this.companies[0].selected=!0)}catch(t){console.error(t)}}}),beforeMount(){},mounted(){}};const Ys=(0,bn.Z)(Gs,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form-group",{staticClass:"uf-group with-dropdown dadata-autocomplete-field-mc",attrs:{state:t.state},scopedSlots:t._u([t.label?{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.label)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.required,expression:"required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}:null],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:"text",value:t.value,placeholder:t.placeholder,required:t.required,readonly:t.readonly,state:t.state,name:t.name,disabled:t.isLoading}
1,on:{input:t.onInput,keydown:t.onKeyDown,focus:t.onFocus,focusout:t.closeDropdown}}),t._v(" "),t.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.errorMsg)+"\n ")]):t._e(),t._v(" "),n("div",{staticClass:"dropdown-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.expand,expression:"expand"}],staticClass:"content"},[null!==t.companies&&t.companies.length>0?n("div",t._l(t.companies,(function(e,s){return n("a",{key:"crt_fdc_"+t.name+"_"+s,staticClass:"item",class:{active:e.selected},attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.onSelect(e)},mouseenter:function(e){return t.hoverByIndex(s)}}},[n("span",{staticClass:"name"},[t._v(t._s(e.value))]),n("br"),t._v(" "),n("span",{staticClass:"inn"},[t._v(t._s(e.data.inn)+",")]),t._v(" "),n("span",{staticClass:"address"},[t._v(t._s(e.data.address.value))])])})),0):t._e()])])],1)}),[],!1,null,null,null).exports;function zs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Zs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zs(Object(n),!0).forEach((function(e){Ws(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ws(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ks={name:"OrderingPayment",props:{deliveryType:{type:Object,default:()=>{}}},components:{DaDataAutocompleteField:Ys},data:function(){return{_paymentTypeIndex:{person:0,entity:0},_personTypeId:1,requisites:{inn:{name:"ÐÐÐ",type:"text",value:null,code:"inn",required:!0,validated:!1,state:null,validation:{digits:[],min:[10],max:[12]},dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"party",minSymbols:3},lastInput:null},kpp:{name:"ÐÐÐ",type:"text",value:null,code:"kpp",required:!1,validated:!1,state:null,validation:{digits:[],length:[9]}},name:{name:"Ðазвание компании",type:"hidden",value:null,code:"name",required:!1,validated:!1,state:null,dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"party",minSymbols:3},lastInput:null},address:{name:"ЮÑидиÑеÑкий адÑеÑ",type:"hidden",value:null,code:"address",required:!1,validated:!1,state:null},rs:{name:"РаÑÑеÑнÑй ÑÑеÑ",type:"text",value:null,code:"rs",required:!0,validated:!1,state:null,validation:{accountNumber:[]}},bank:{name:"Ðанк",type:"hidden",value:null,code:"bank",required:!1,validated:!1,state:null,dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"bank",minSymbols:3},lastInput:null},ks:{name:"ÐоÑÑеÑпонденÑÑкий ÑÑеÑ",type:"hidden",value:null,code:"ks",required:!1,validated:!1,state:null},bik:{name:"ÐÐÐ",type:"text",value:null,code:"bik",required:!0,validated:!1,state:null,validation:{digits:[],length:[9]},dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"bank",minSymbols:1},lastInput:null},okpo:{name:"ÐÐÐÐ",type:"hidden",value:null,code:"okpo",required:!1,validated:!1,state:null}}}},computed:Zs(Zs(Zs(Zs({},(0,r.Se)(["userIsAuthorized","userGetUserData"])),(0,r.Se)(["cartPayList"])),(0,r.Se)(["locationCity","locationOffice","locationCitiesList","locationIsRU","locationIsMoscow","locationIsMoscowRegion","locationIsSPB"])),{},{personTypeId:{get:function(){return this.$data._personTypeId},set:function(t){return this.$data._personTypeId=+t,this.$emit("input",this.externalData)}},paymentTypeIndex:{get:function(){return this.isLegalEntity?this.$data._paymentTypeIndex.entity:this.$data._paymentTypeIndex.person},set:function(t){return this.isLegalEntity?this.$data._paymentTypeIndex.entity=+t:this.$data._paymentTypeIndex.person=+t,this.$emit("input",this.externalData)}},externalData:function(){const t={isValid:this.isValid,props:{"person-type":this.personTypeId,"pay-id":this.paymentType.ID}};return this.isLegalEntity&&Object.values(this.requisites).forEac
1h((e=>{e.value&&(t.props[`entity-${e.code}`]=e.value)})),t},isLegalEntity:function(){return 2==+this.personTypeId},paymentList:function(){const t=[...this.cartPayList[this.personTypeId]];return 1!==this.personTypeId||5!==this.deliveryType.id||!this.locationIsRU||this.locationIsMoscow||this.locationIsMoscowRegion||t.push({ID:8,NAME:"ÐанковÑкой каÑÑой пÑи ÑамовÑвозе Ñо Ñклада в ÐоÑкве"}),this.paymentTypeIndex>=t.length&&(this.paymentTypeIndex=0),t},paymentType:function(){return this.paymentList[this.paymentTypeIndex]},isValid:function(){return!!this.personTypeId&&(!(!this.paymentType||!this.paymentType.ID)&&!(this.isLegalEntity&&Object.values(this.requisites).filter((t=>!1===t.state&&t.validated)).length>0))}}),methods:Zs(Zs({},(0,r.nv)(["useVueCartApi","locationShowCitySelect","daDataGetSuggestions"])),{},{createLabel:Xn,setState:function(t){Kn(t),this.$emit("input",this.externalData)},validate:function(){Object.values(this.requisites).forEach((t=>this.setState(t)))},onInput:function(t){this.setState(t),void 0!==t.lastInput&&(t.lastInput=Date.now(),void 0!==t.dropdown&&t.value&&t.value.length>=t.dropdown.minSymbols&&setTimeout(function(){Date.now()-t.lastInput>
1=t.dropdown.timeout&&this.getSuggestions(t)}.bind(this),t.dropdown.timeout))},onFocus:function(t){setTimeout(function(){void 0!==t.dropdown&&(t.dropdown.expand=!0)}.bind(this),200)},getSuggestions:async function(t){t.dropdown.loading=!0;try{const{companies:e}=await this.daDataGetSuggestions({method:t.dropdown.method,query:t.value});e&&e.length>0&&(t.dropdown.content=e.map((e=>Zs(Zs({},e),{},{selected:!1,method:t.dropdown.method}))),t.dropdown.expand=!0,t.dropdown.content[0].selected=!0),t.dropdown.loading=!1}catch(e){t.dropdown.loading=!1}},selectSuggestion:function(t,e){t.dropdown.content=t.dropdown.content.map((function(t){return t.selected=t===e,t}))},onArrowDown:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){let e,n=this.requisites[t].dropdown.content,s=n.length-1;n.forEach((function(t,n){t.selected&&(e=n,t.selected=!1)})),e===s?n[0].selected=!0:n[e+1].selected=!0}}.bind(this))},onArrowUp:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){let e,n=this.requisites[t].dropdown.content;n.forEach((function(t,n){t.selected&&(e=n,t.selected=!1)})),0===e?n[n.length-1].selected=!0:n[e-1].selected=!0}}.bind(this))},onEnter:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){this.requisites[t].dropdown.content.forEach(function(t,e){t.selected&&this.onAutoComplete(t)}.bind(this))}}.bind(this))},closeDropdowns:function(){Object.keys(this.requisites).forEach(function(t){void 0!==this.requisites[t].dropdown&&(this.requisites[t].dropdown.expand=!1)}.bind(this))},onAutoComplete:function(t){"party"===t.method&&(this.requisites.name&&(this.requisites.name.value=t.value,this.setState(this.requisites.name)),this.requisites.inn&&t.data&&(this.requisites.inn.value=t.data.inn,this.setState(this.requisites.inn)),this.requisites.kpp&&t.data&&(this.requisites.kpp.value=t.data.kpp,this.setState(this.requisites.kpp)),this.requisites.okpo&&t.data&&(this.requisites.okpo.value=t.data.okpo,this.setState(this.requisites.okpo)),this.requisites.address&&t.data&&t.data.address&&(this.requisites.address.value=t.data.address.value,this.setState(this.requisites.address))),"bank"===t.method&&(this.requisites.bank&&(this.requisites.bank.value=t.value,this.setState(this.requisites.bank)),this.requisites.bik&&t.data&&(this.requisites.bik.value=t.data.bic,this.setState(this.requisites.bik)),this.requisites.ks&&t.data&&(this.requisites.ks.value=t.data.correspondent_account,this.setState(this.requisites.ks))),this.closeDropdowns()}}),mounted:function(){document.addEventListener("click",function(){this.closeDropdowns()}.bind(this)),document.addEventListener("keydown",function(t){"ArrowDown"===t.key&&this.onArrowDown(),"ArrowUp"===t.key&&this.onArrowUp(),"Enter"===t.key&&this.onEnter()}.bind(this)),this.validate()},beforeMount:function(){if(this.userIsAuthorized){const t=this.userGetUserData;Object.keys(t).forEach((e=>{if(/^UF_ORG_/.test(e)&&t[e]){const n=e.replace(/^UF_ORG_/,"").toLowerCase();if(void 0===this.requisites[n])return;this.requisites[n].value=t[e],this.requisites[n].required&&(this.requisites[n].state=!0,this.requisites[n].validate=!0)}}))}}},Xs=Ks;function Qs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Js(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qs(Object(n),!0).forEach((function(e){tr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const er={name:"CartOrdering",props:{},components:{Phone:Ds,Delivery:Fs,Payment:(0,bn.Z)(Xs,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row ordering-payment-mc"},[n("b-form-group",{staticClass:"col-12 person-type-select"},[n("b-form-radio-group",{attrs:{buttons:"","button-variant":"transparent"},model:{value:t.personTypeId,callback:function(e){t.personTypeId=e},expression:"personTypeId"}},[n("b-form-radio",{attrs:{value:1}},[n("span",[t._v("ФизиÑеÑкое лиÑо")])]),t._v(" "),n("b-form-radio",{attrs:{value:2}},[n("span",[t._v("ЮÑидиÑеÑкое лиÑо")])])],1)],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("b-form-group",{staticClass:"col-12"},[n("b-form-radio-group",{model:{value:t.paymentTypeIndex,callback:function(e){t.paymentTypeIndex=e},expression:"paymentTypeIndex"}},t._l(t.paymentList,(function(e,s){return n("b-form-radio",{key:"dl_plf_"+s,staticClass:"d-block",class:{active:t.paymentTypeIndex===s},attrs:{value:s}},[n("div",{staticClass:"name",domProps:{innerHTML:t._s(e.NAME)}}),t._v(" "),e.DESCRIPTION?n("div",{directives:[{name:"show",rawName:"v-show",value:s===t.paymentTypeIndex,expression:"index === paymentTypeIndex"}],staticClass:"description",domProps:{innerHTML:t._s(e.DESCRIPTION)}}):t._e()])})),1)],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),t._l(t.requisites,(function(e,s){return t.isLegalEntity&&"hidden"!==e.type?n("div",{key:"cnt_fld_"+s,staticClass:"col-12 col-md-6"},[e.dropdown?n("DaDataAutocompleteField",{attrs:{name:e.code,label:e.name,placeholder:e.placeholder,required:e.required,readonly:e.blocked,state:e.state,errorMsg:e.errorMsg,method:e.dropdown.method,timeout:e.dropdown.timeout,minSymbols:e.dropdown.minSymbols},on:{input:function(n){return t.setState(e)},autocomplete:t.onAutoComplete},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}):n("b-form-group",{attrs:{validated:e.validated,state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(t.createLabel(e))}})]},proxy:!0}],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:e.type,name:"le_"+s,required:e.required,placeholder:e.placeholder,readonly:e.blocked,state:e.state},on:{input:function(n){return t.onInput(e)},focus:function(n){return n.stopPropagation(),t.onFocus(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)],1):t._e()})),t._v(" "),n("div",{staticClass:"w-100"})],2)}),[],!1,null,null,null).exports},data:function(){return{prefix:"order-form__",contacts:{name:{name:"ÐаÑи Ð¸Ð¼Ñ Ð¸ ÑамилиÑ",type:"text",code:"name",value:null,required:!0,validation:{nameSurname:[]},validated:!1,placeholder:"",blocked:!1,state:null},receiverName:{name:"ÐÐ¼Ñ Ð¸ ÑÐ°Ð¼Ð¸Ð»Ð¸Ñ Ð¿Ð¾Ð»ÑÑаÑелÑ",type:"text",code:"receiver_name",value:null,required:!0,validated:!1,validation:{nameSurname:[]},placeholder:"",blocked:!1,state:null},phone:{name:"ТелеÑон",type:"tel",code:"phone",value:null,required:!0,validated:!1,validation:{phone:[]},placeholder:"+7 (___) ___-__-__",blocked:!1,state:null},email:{name:"E-mail",type:"email",code:"email",value:null,required:!0,validated:!1,validation:{email:[]},placeholder:"",blocked:!1,state:null}},deliveryData:{isValid:!0,deliveryType:{},props:{}},paymentData:{isValid:!0,paymentType:{},props:{}},comment:{value:null,state:null,required:!1,validated:!1,errorMsg:null},processingConsent:{name:this.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML,value:null,state:null,required:!0,validated:!1,errorMsg:null},marketingConsent:{name:this.$root.MARKETING_CONSENT.CHECKBOX_LABEL_HTML,value:null,state:null,required:!1,validated:!1,errorMsg:null},validation:Wn}},computed:Js(Js(Js(Js(Js(Js({},(0,r.rn)(["modals"])),(0,r.Se)(["userGetUserData","userIsAuthorized","userGetUserPhone","userGetUserPhoneFormatted"])),(0,r.Se)(["locationCity","locationOffice","locationCitiesList"])),(0,r.Se)(["cartOriginalCurrencyHtml","cartOriginalSum","cartOriginalBaseSum","cartOriginalDiscount"])),(0,r.Se)(["cartConvertedCurrencyHtml","cartConvertedSum","cartConvertedBaseSum","cartConvertedDiscount"])),{},{contactsValid:function(){return 0===Object.values(this.contacts).filter((t=>!1===t.state&&t.validated)).length},procAgreeIsValid:function(){return!1!==this.processingConsent.state&&this.processingConsent.validated},commentIsValid:function(){return!1!==this.comment.state&&this.comment.validated},readyToSubmit:function(){return this.contactsValid&&this.deliveryData.isValid&&this.paymentData.isValid&&this.commentIsValid&&this.procAgreeIsValid}}),methods:Js(Js({},(0,r.nv)(["locationShowCitySelect"])),{},{createLabel:Xn,setState:Kn,submit:function(){return this.readyToSubmit?this.$emit("complete",this.getData()):this.contactsValid?this.deliveryData.isValid?this.paymentData.isValid?this.commentIsValid?this.procAgreeIsValid?void 0:this.$root.scrollTo("input[name=proc_agree]"):this.$root.scrollTo(".comment-block textarea"):this.$root.scrollTo(".ordering-payment-mc input[type=text]"):this.$root.scrollTo(".ordering-delivery-mc input[type=text]"):this.$root.scrollTo(".contacts-block input[type=text]")},getData:function(){let t={},e={};
1return Object.keys(this.contacts).forEach((t=>{const n=this.contacts[t].value;n&&n.length>0&&(e["reg-"+t]=n)})),e=Js(Js({},e),this.deliveryData.props),e=Js(Js({},e),this.paymentData.props),this.comment.value&&this.comment.value.length>0&&(e.description=this.comment.value),e.processingConsent=this.processingConsent.value?this.processingConsent.name:"",e.marketingConsent=this.marketingConsent.value?this.marketingConsent.name:"",Object.keys(e).forEach((n=>{t[this.prefix+n]=e[n]})),t},validate:function(){Object.values(this.contacts).forEach((t=>{this.setState(t)})),this.setState(this.comment),this.setState(this.processingConsent),this.setState(this.marketingConsent)}}),beforeMount:function(){if(this.userIsAuthorized){const t=this.userGetUserData;t.EMAIL&&(this.contacts.email.value=t.EMAIL,this.setState(this.contacts.email),this.contacts.email.state&&(this.contacts.email.blocked=!0)),t.NAME&&(this.contacts.name.value=t.NAME&&t.LAST_NAME?`${t.NAME} ${t.LAST_NAME}`:t.NAME,this.setState(this.contacts.name),this.contacts.name.state&&(this.contacts.name.blocked=!0),this.contacts.receiverName.value=t.NAME&&t.LAST_NAME?`${t.NAME} ${t.LAST_NAME}`:t.NAME,this.setState(this.contacts.receiverName)),this.userGetUserPhoneFormatted&&(this.contacts.phone.value=this.userGetUserPhoneFormatted,this.setState(this.contacts.phone),this.contacts.phone.state&&(this.contacts.phone.blocked=!0))}this.validate()},mounted(){Qn(".cart-ordering-mc")}},nr=er;function sr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function rr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(n),!0).forEach((function(e){ir(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ir(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ar={name:"CartController",props:{},components:{Login:is,RestorePassword:Es,Basket:Fn,Ordering:(0,bn.Z)(nr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form",{staticClass:"cart-ordering-mc row",attrs:{id:"ordering_form",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("div",{staticClass:"col-12 col-md-6 title"},[n("h1",{staticClass:"doc-title mb-5"},[t._v("ÐÑоÑмление заÑвки")])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 rollback"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("rollback")}}},[t._v("ÐеÑнÑÑÑÑÑ Ð² коÑзинÑ")])]),t._v(" "),n("div",{staticClass:"col-12 col-md-10 col-lg-8 contacts-block"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 header"},[n("h2",[t._v("ÐаннÑе покÑпаÑелÑ")])]),t._v(" "),t._l(t.contacts,(function(e,s){return n("b-form-group",{key:"cnt_fld_"+s,staticClass:"col-12 col-md-6",attrs:{validated:e.validated},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(t.createLabel(e))}})]},proxy:!0}],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:e.type,placeholder:e.placeholder,required:e.required,readonly:e.blocked,state:e.state,name:e.code},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)}))],2)]),t._v(" "),n("div",{staticClass:"col-12 delivery-block"},[n("div",{staticClass:"row header"},[n("div",{staticClass:"col-12"},[n("h2",[t._v("СпоÑоб полÑÑениÑ")])])]),t._v(" "),n("Delivery",{model:{value:t.deliveryData,callback:function(e){t.deliveryData=e},expression:"deliveryData"}})],1),t._v(" "),n("div",{staticClass:"col-12 col-md-10 col-lg-8 payment-block"},[n("div",{staticClass:"row header"},[n("div",{staticClass:"col-12"},[n("h2",[t._v("СпоÑоб оплаÑÑ")])])]),t._v(" "),n("Payment",{attrs:{"delivery-type":t.deliveryData.deliveryType},model:{value:t.paymentData,callback:function(e){t.paymentData=e},expression:"paymentData"}})],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-10 col-lg-8 comment-fields comment-block",attrs:{label:"ÐомменÑаÑий к заÑвке",validated:t.comment.validated,state:t.comment.state}},[n("b-form-textarea",{attrs:{state:t.comment.state,required:t.comment.required,rows:"5"},on:{input:function(e){return t.setState(t.comment)}},model:{value:t.comment.value,callback:function(e){t.$set(t.comment,"value",e)},expression:"comment.value"}})],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("div",{staticClass:"col-12 col-md-10 col-lg-8 cart-result-mc"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 header"},[n("h2",[t._v("ÐÑого к оплаÑе:")])])]),t._v(" "),n("div",{staticClass:"row body"},[n("div",{staticClass:"col-12 item"},[n("div",{staticClass:"text"},[t._v("ТоваÑÑ")]),t._v(" "),n("div",{staticClass:"price"},[n("span",[t._v(t._s(t._f("printPrice")(t.cartOriginalBaseSum)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),n("div",{staticClass:"col-12 item"},[n("div",{staticClass:"text"},[t._v("Скидка")]),t._v(" "),n("div",{staticClass:"price text-red"},[n("span",[t._v(t._s(t._f("printPrice")(t.cartOriginalDiscount)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),n("div",{staticClass:"col-12 item"},[n("div",{staticClass:"text"},[t._v("ÐоÑÑавка")]),t._v(" "),n("div",{staticClass:"price"}
1,[n("span",[t._v("Ð¾Ñ "+t._s(t._f("printPrice")(590)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),n("div",{staticClass:"col-12"},[n("hr")]),t._v(" "),n("div",{staticClass:"col-12 item total"},[n("div",{staticClass:"text"},[t._v("ÐÑего к оплаÑе")]),t._v(" "),n("div",{staticClass:"price"},[n("span",[t._v(t._s(t._f("printPrice")(t.cartOriginalSum)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),n("b-form-group",{staticClass:"col-12 item proc-agree",attrs:{validated:t.processingConsent.validated,state:t.processingConsent.state}},[n("b-form-checkbox",{attrs:{name:"proc_agree",state:t.processingConsent.state,required:t.processingConsent.required},on:{input:function(e){return t.setState(t.processingConsent)}},model:{value:t.processingConsent.value,callback:function(e){t.$set(t.processingConsent,"value",e)},expression:"processingConsent.value"}},[n("span",{domProps:{innerHTML:t._s(t.processingConsent.name)}}),t._v(" "),t.processingConsent.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()]),t._v(" "),t.processingConsent.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.processingConsent.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 item proc-agree",attrs:{validated:t.marketingConsent.validated,state:t.marketingConsent.state}},[n("b-form-checkbox",{attrs:{name:"proc_agree",state:t.marketingConsent.state,required:t.marketingConsent.required},on:{input:function(e){return t.setState(t.marketingConsent)}},model:{value:t.marketingConsent.value,callback:function(e){t.$set(t.marketingConsent,"value",e)},expression:"marketingConsent.value"}},[n("span",{domProps:{innerHTML:t._s(t.marketingConsent.name)}}),t._v(" "),t.marketingConsent.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()]),t._v(" "),t.marketingConsent.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.marketingConsent.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"col-12 item button"},[n("b-button",{attrs:{variant:"blue",type:"submit"}},[t._v("\n ÐÑоÑмиÑÑ\n ")])],1)],1)])],1)}),[],!1,null,null,null).exports},data:function(){return{step:0,formStatuses:{paymentForm:!1},steps:[{name:"ÐоÑзина",breadcrumbs:!0,title:!0},{name:"РегиÑÑÑаÑиÑ",breadcrumbs:!1,title:!1},{name:"ÐÑоÑмление заÑвки",breadcrumbs:!1,title:!1},{name:"Создание заÑвки",breadcrumbs:!1,title:!1},{name:"ÐаÑвка ÑÑпеÑно Ñоздана",breadcrumbs:!1,title:!1},{name:"ÐÑибка пÑи Ñоздании заÑвки",breadcrumbs:!1,title:!1}],errorMessage:null,orderId:null,orderData:null,breadcrumbsVisible:!0,titleVisible:!0,lastCart:{},forgotPassword:!1}},computed:rr(rr({},(0,r.Se)(["userGetUserData","userIsAuthorized"])),(0,r.Se)(["cartIsEmpty","cartLoading","cartFullCart"])),methods:rr(rr({},(0,r.nv)(["cartCreateOrderAction"])),{},{nextStep:function(){this.forgotPassword=!1;const t=0===this.step?2:this.step+1;this.setStep(t)},prevStep:function(){this.setStep(this.step-1)},setStep:function(t){this.step=t,this.initStep()},submit:async function(t){this.errorMessage=null,this.orderData=t,this.setStep(3),this.lastCart=rr({},this.cartFullCart);try{const t=await this.cartCreateOrderAction(this.orderData);this.orderId=t.orderId,this.onAfterOrderAdd(),setTimeout(function(){this.nextStep()}.bind(this),1e3)}catch(t){this.setStep(5),console.error("ÐÑи Ñоздании заÑвки возникла оÑибка"),console.error(t),t.message&&(this.errorMessage=t.message)}},initStep:function(){this.steps[this.step].breadcrumbs!==this.breadcrumbsVisible&&this.toggleBreadcrumbs(),0!==this.step&&document.querySelector("#app").scrollIntoView()},toMain:function(){window.location.href="/"},refresh:function(){window.location.reload()},toggleBreadcrumbs:function(){const t=document.querySelector(".breadcrumbs-section").children[0];this.breadcrumbsVisible?(t.classList.add("d-none"),this.breadcrumbsVisible=!1):(t.classList.remove("d-none"),this.breadcrumbsVisible=!0)},toggleTitle:function(){const t=document.querySelector(".doc-title h1");this.titleVisible?(t.classList.add("d-none"),this.titleVisible=!1):(t.classList.remove("d-none"),this.titleVisible=!0)},onAfterOrderAdd:function(){this.$root.ymReachGoal("order"),window.ga&&window.ga("send","event","order","success")}}),mounted(){this.initStep()}};const or=(0,bn.Z)(ar,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-cart-mc col"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 doc-title mb-5"},[0===t.step&&t.cartIsEmpty?n("h1",{staticClass:"mb-0"},[t._v("ÐаÑа коÑзина пока пÑÑÑа")]):n("h1",{directives:[{name:"show",rawName:"v-show",value:t.steps[t.step].title,expression:"steps[step].title"}],staticClass:"mb-0"},[t._v(t._s(t.steps[t.step].name))])])]),t._v(" "),0===t.step&&t.cartIsEmpty?n("div",{staticClass:"cart-empty-mc row"},[n("div",{staticClass:"col-12"},[t.cartLoading?n("fai",{attrs:{icon:"spinner",spin:""}}):n("p",[t._v("\n ÐкÑии и ÑпеÑиалÑнÑе пÑÐµÐ´Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð½Ð° "),n("a",{attrs:{href:"/"}},[t._v("главной ÑÑÑаниÑе")]),t._v(" "),n("br",{staticClass:"d-none d-md-inline"}),t._v("\n помогÑÑ Ð²Ð°Ð¼ опÑеделиÑÑÑÑ Ñ Ð²ÑбоÑом!\n ")])],1)]):t.cartIsEmpty||0!==t.step?1===t.step?n("div",{staticClass:"row
1step login"},[n("div",{staticClass:"d-none d-md-block col-md-2 col-lg-3"}),t._v(" "),n("div",{staticClass:"col form-container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("h2",[t._v("Уже покÑпали Ñ Ð½Ð°Ñ?")]),t._v(" "),n("p",[t._v("ÐвÑоÑизÑйÑеÑÑ, или пÑодолжиÑе оÑоÑмление")]),t._v(" "),t.forgotPassword?n("RestorePassword",{on:{cancel:function(e){t.forgotPassword=!1}}}):n("Login",{attrs:{interactive:!0},on:{success:t.nextStep,forgot:function(e){t.forgotPassword=!0}}}),t._v(" "),n("hr"),t._v(" "),n("b-button",{staticClass:"next",attrs:{variant:"transparent"},on:{click:t.nextStep}},[t._v("ÐÑодолжиÑÑ ÐºÐ°Ðº гоÑÑÑ")])],1)])]),t._v(" "),n("div",{staticClass:"d-none d-md-block col-md-2 col-lg-3"})]):2===t.step?n("Ordering",{ref:"step_2",staticClass:"row step ordering",on:{complete:t.submit,rollback:function(e){return t.setStep(0)}}}):3===t.step?n("div",{staticClass:"row step sending"},[t._m(0),t._v(" "),n("div",{staticClass:"col-12 icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"spinner-circle",spin:""}})],1)]):4===t.step?n("div",{staticClass:"step success row"},[n("div",{staticClass:"col-12 header"},[n("h2",[t._v("ÐаÑа заÑвка ÑÑпеÑно оÑоÑмлена, номеÑ: "),n("span",{staticClass:"text-blue"},[t._v("â"+t._s(t.orderId))])])]),t._v(" "),n("div",{staticClass:"col-12 description"},[t._v("\n ÐаннÑе о заÑвке в пиÑÑме на ваÑей поÑÑе. ÐÐ»Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ñ Ð²Ð°Ð¼Ð¸ ÑвÑжеÑÑÑ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ\n ")]),t._v(" "),t._m(1),t._v(" "),n("div",{staticClass:"col-12 button"},[n("b-button",{attrs:{variant:"blue"},on:{click:function(e){return e.preventDefault(),t.toMain.apply(null,arguments)}}},[t._v("\n ÐеÑнÑÑÑÑÑ Ðº вÑбоÑÑ ÑоваÑов\n ")])],1)]):5===t.step?n("div",{staticClass:"step error row"},[t._m(2),t._v(" "),t._m(3),t._v(" "),n("div",{staticClass:"col-12 mt-5 mb-5",staticStyle:{"font-size":"14px"}},[n("b-alert",{attrs:{variant:"danger",show:!!t.errorMessage}},[t._v(t._s(t.errorMessage))])],1),t._v(" "),n("div",{staticClass:"col-12 button"},[n("b-button",{attrs:{variant:"blue"},on:{click:function(e){return e.preventDefault(),t.refresh.apply(null,arguments)}}},[t._v("\n ÐопÑобоваÑÑ Ñнова\n ")])],1)]):t._e():n("Basket",{ref:"step_0",staticClass:"row step basket",on:{complete:t.nextStep}})],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 header"},[n("h2",[t._v("ÐÐ´ÐµÑ Ð¾ÑоÑмление")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 icon"},[e("img",{attrs:{src:"/img/svg/shield_check.svg",alt:"ÐаÑвка ÑÑпеÑно Ñоздана"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 header"},[n("h2",[t._v("ЧÑо-Ñо поÑло не Ñак, "),n("br"),t._v("попÑобÑйÑе оÑоÑмиÑÑ Ð·Ð°ÑÐ²ÐºÑ Ñнова или обÑаÑиÑеÑÑ Ðº менеджеÑÑ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 icon"},[e("img",{attrs:{src:"/img/svg/warning_octagon.svg",alt:"ÐÑибка пÑи Ñоздании заÑвки"}})])}],!1,null,null,null).exports;function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function lr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(n),!0).forEach((function(e){ur(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ur(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const dr={name:"SelectCity",props:{},data:function(){return{sliderOptions:{type:"loop",focus:"left",rewind:!1,pagination:!0,arrows:!0,gap:30,perPage:4,perMove:4,fixedWidth:219.25,breakPoints:{1024:{perPage:3,gap:26,fixedWidth:144.75},768:{perPage:2,gap:18,fixedWidth:219.25}}},query:"",active:!1,lastInputTS:0,wideSearchTimeout:1e3,wideSearchResults:{}}},computed:lr(lr(lr(lr({},(0,r.rn)(["modals"])),(0,r.Se)(["locationCity","locationCitiesList","locationFilialsList","locationLoading"])),(0,r.Se)(["isXS","isSM"])),{},{location:{get:function(){return this.locationCity},set:function(t){this.saveLocation(t),this.setLocation().then(this.afterCityChange)}},filials:function(){return this.locationFilialsList},cities:function(){return this.locationCitiesList},columnsList:function(){let t=this.cities,e=[[]];return t.forEach((function(t,n){12===e[e.length-1].length&&e.push([]),e[e.length-1].push(t)})),e},searchResults:function(){if(!this.cities)return[];if(this.query.length<3)return[];let t=[],e=this.query;const n=new RegExp(e,"i");this.cities.forEach((function(s){n.test(s.CITY_NAME)&&(s.SEARCH=s.CITY_NAME.replace(n,`<b>${e}</b>`),t.push(s))}));const s=e.toLowerCase();return this.wideSearchResults[s]&&Array.isArray(this.wideSearchResults[s])&&this.wideSearchResults[s].length>0&&this.wideSearchResults[s].forEach((function(s){if(t.find((t=>s.CITY_ID===t.CITY_ID)))return!0;s.SEARCH=s.CITY_NAME.replace(n,`<b>${e}</b>`),t.push(s)})),t},hasSearchResults:function(){return this.searchResults.length>0}}),methods:lr(lr(lr({},(0,r.nv)(["saveCitiesList","saveFilialsList","saveLocation","setLocation","cartIfLocationChangedAction"])),(0,r.nv)(["locationChangePhones","locationFindByName"])),{},{clickOnFilial:function(t){this.cities.forEach(function(e){+t.ID==+e.ID&&(this.location=e)}.bind(this))},afterCityChange:function(){this.cartIfLocationChangedAction(this.location.CITY_NAME||this.location.NAME),this.locationChangePhones(),this.$emit("change")},clearQuery:function(){this.query=""},delayedClose:function(){setTimeout((()=>this.active=!1),250)},wideSearch:async function(t){const e=await this.locationFindByName(t);this.wideSearchResults[t.toLowerCase()]=e.result,this.saveCitiesList([...this.cities])},onInput:function(){const t=this.query;this.lastInputTS=Date.now(),setTimeout((()=>{if(t&&!(t.length<3)&&!(Date.now()-this.lastInputTS<this.wideSearchTimeout-50||Object.keys(this.wideSearchResults).includes(t.toLowerCase())))return this.wideSearch(t)}),this.wideSearchTimeout)}}),mounted(){setTimeout((()=>{this.$refs.splide&&this.$refs.splide.remount()}),100)}};const pr=(0,bn.Z)(dr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"city-select-mc"},[t.isXS||t.isSM?n("div",{staticClass:"city-select-inner"},[n("div",{staticClass:"search-row"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],class:{expand:t.query.length>0},attrs:{type:"text",placeholder:"ÐайÑи гоÑод"},domProps:{value:t.query},on:{focusin:function(e){t.active=!0},focusout:t.delayedClose,input:[function(e){e.target.composing||(t.query=e.target.value)},t.onInput]}}),t._v(" "),n("div",{staticClass:"icon",class:{active:t.active}},[t.query.length>0?n("v-icon",{staticClass:"fo-icon stroke-only cross",attrs:{name:"fo-cross",width:"24",heigth:"24"},on:{click:function(e){return e.preventDefault(),t.clearQuery.apply(null,arguments)}}}):n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-search",width:"24",height:"24"}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.query.length>0,expression:"query.length > 0"}],staticClass:"search-button"},[n("button",{staticClass:"btn btn-blue",attrs:{type:"button"},on:{click:function(t){t.preventDefault()}}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-search",width:"24",height:"24"}})],1)])]),t._v(" "),t.locationLoading?n("div",{staticClass:"loader"},[n("fai",{attrs:{icon:"spinner",spin:""}})],1):t._e(),t._v(" "),t.hasSearchResults?n("div",{staticClass:"search-dropdown"},[n("div",{staticClass:"dropdown"},t._l(t.searchResults,(function(e,s){return n("div",{key:"srch_rslts_m_"+s,staticClass:"item search"},[n("a",{on:{click:function(n){n.preventDefault(),t.location=e}}},[n("span",{staticClass:"city",domProps:{innerHTML:t._s(e.SEARCH)}}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!!e.REGION_NAME,expression:"!!city['REGION_NAME']"}],staticClass:"region"},[t._v(" ("+t._s(e.REGION_NAME)+")")])])])})),0)]):n("div",{staticClass:"cities"},[t._l(t.filials,(function(e,s){return n("div",{key:"fll_m_"+e.ID,staticClass:"item filial"},[n("a",{attrs:{href:"#","data-id":e.ID},on:{click:function(n){return n.preventDefault(),t.clickOnFilial(e)}}},[t._v(t._s(e.CITY_NAME))])])})),t._v(" "),t._l(t.cities,(function(e,s){return n("div",{key:e.ID,staticClass:"item city",attrs:{href:"#"}},[n("a",{attrs:{"data-id":e.ID},on:{click:function(n){n.preventDefault(),t.location=e}}},[t._v(t._s(e.CITY_NAME))])])}))],2)]):n("div",{staticClass:"city-select-inner container-fluid"},[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"search col-12"},[n("div",{staticClass:"search-row"},[n("label",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],class:{expand:t.query.length>0},attrs:{type:"text",placeholder:"ÐайÑи гоÑод"},domProps:{value:t.query},on:{focusin:function(e){t.active=!0},focusout:t.delayedClose,input:[function(e){e.target.composing||(t.query=e.target.value)},t.onInput]}}),t._v(" "),n("div",{staticClass:"icon",class:{active:t.active}},[t.query.length>0?n("v-icon",{staticClass:"fo-icon stroke-only cross",attrs:{name:"fo-cross",width:"24",heigth:"24"},on:{click:function(e){return e.preventDefault(),t.clearQuery.apply(null,arguments)}}}):n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-search",width:"24",height:"24"}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.query.length>0,expression:"query.length > 0"}],staticClass:"search-button"},[n("button",{staticClass:"btn btn-blue",attrs:{type:"button"},on:{click:function(t){t.preventDefault()}}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-search",width:"24",height:"24"}})],1)])])]),t._v(" "),n("div",{staticClass:"search-dropdown col-12"},[t.hasSearchResults?n("div",{staticClass:"row m-0"},[n("div",{staticClass:"col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"dropdown col-12"},t._l(t.searchResults,(function(e,s){return n("div",{key:"srch_rslts_d_"+s,staticClass:"col item"},[n("a",{on:{click:function(n){n.preventDefault(),t.location=e}}},[n("span",{staticClass:"city",domProps:{innerHTML:t._s(e.SEARCH)}}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!!e.REGION_NAME,expression:"!!city['REGION_NAME']"}],staticClass:"region"},[t._v(" ("+t._s(e.REGION_NAME)+")")])])])})),0)])])]):t._e()]),t._v(" "),n("div",{staticClass:"filials col-12"},t._l(t.filials,(function(e,s){return n("a",{key:"fll_d_"+e.ID,staticClass:"item",attrs:{href:"#","data-id":e.ID},on:{click:function(n){return n.preventDefault(),t.clickOnFilial(e)}}},[t._v(t._s(e.CITY_NAME))])})),0),t._v(" "),n("div",{staticClass:"cities col-12"},[n("splide",{ref:"splide",attrs:{options:t.sliderOptions}},t._l(t.columnsList,(function(e,s){return n("splide-slide",{key:"city_select_col_"+s},[n("div",{staticClass:"column"},t._l(e,(function(e,s){return n("a",{key:e.ID,staticClass:"item",attrs:{href:"#","data-id":+e.ID},on:{click:function(n){n.preventDefault(),t.location=e}}},[t._v(t._s(e.CITY_NAME)),n("br")])})),0)])})),1)],1)])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"head col-12"},[n("h2",[t._v("ÐоÑÑавлÑем по вÑей РоÑÑии")]),t._v(" "),n("p",[t._v("ÐабеÑиÑе название гоÑода, в коÑоÑом ÑобиÑаеÑеÑÑ Ð¿Ð¾Ð»ÑÑаÑÑ ÑоваÑÑ, в ÑÑÑоке поиÑка ниже. ÐÑ Ð²ÑбоÑа завиÑÐ¸Ñ ÑÑоимоÑÑÑ Ð´Ð¾ÑÑавки.")])])}],!1,null,null,null).exports;function fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function hr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?fr(Object(n),!0).forEach((function(e){mr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const vr={name:"SelectCityRow",props:{mode:{type:String,default:"city"}},data:function(){return{}},computed:hr(hr({},(0,r.Se)(["locationCity","locationOffice","locationCitiesList"])),{},{name:function(){let t=this.locationCity.CITY_NAME||this.locationCity.NAME||"ÐоÑква";const e=this.locationCity.REGION_NAME||"";switch(this.mode){case"region":return"ÐоÑква"===t||"ÐоÑковÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°ÑÑÑ"===e?"ÐоÑква и ÐоÑковÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°ÑÑÑ":"СанкÑ-ÐеÑеÑбÑÑг"===t||"ÐенингÑадÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°ÑÑÑ"===e?"СанкÑ-ÐеÑеÑбÑÑг и ÐенингÑадÑÐºÐ°Ñ Ð¾Ð±Ð»Ð°ÑÑÑ":t;case"city":return t;default:throw new Error(`Unexpected mode: ${this.mode}`)}}})};const _r=(0,bn.Z)(vr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.locationCity?n("div",{staticClass:"select-city-row-mc",attrs:{itemprop:"address",itemscope:"",itemtype:"http://schema.org/PostalAddress"},on:{click:function(e){return e.preventDefault(),t.$emit("click")}}},[n("span",{staticClass:"city-name"},[n("span",{domProps:{innerHTML:t._s(t.name)}}),t._v(" "),n("span",{staticClass:"caret"},[n("fai",{attrs:{icon:"chevron-down"}})],1)]),t._v(" "),n("meta",{attrs:{itemprop:"addressLocality",content:t.locationCity.CITY_NAME}}),t._v(" "),t.locationOffice?n("meta",{attrs:{itemprop:"streetAddress",content:t.locationOffice.PROPERTY_ADRESS_VALUE}}):t._e()]):t._e()}),[],!1,null,null,null).exports;function gr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function br(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gr(Object(n),!0).forEach((function(e){yr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Cr={name:"Address",data:function(){return{}},computed:br(br({},(0,r.Se)(["locationOffice"])),{},{active:function(){return this.locationOffice&&this.locationOffice.PROPERTY_ADRESS_VALUE},value:function(){return this.active?`${this.locationOffice.NAME}, ${this.locationOffice.PROPERTY_ADRESS_VALUE}`:""}})};const Or=(0,bn.Z)(Cr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.active?n("span",{staticClass:"location-address-mc",domProps:{innerHTML:t._s(t.value)}}):t._e()}),[],!1,null,null,null).exports;function wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Er(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Pr={name:"Email",computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wr(Object(n),!0).forEach((function(e){Er(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.Se)(["locationEmail"]))};const Sr=(0,bn.Z)(Pr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.locationEmail?n("a",{staticClass:"email-mc",attrs:{href:"mailto:"+t.locationEmail},domProps:{innerHTML:t._s(t.locationEmail)}}):t._e()}),[],!1,null,null,null).exports;function Ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ir(Object(n),!0).forEach((function(e){Dr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ar={name:"WorkingTimeOffice",computed:Tr(Tr({},(0,r.Se)(["locationTimeOffice"])),{},{time:function(){return this.locationTimeOffice}})};const kr=(0,bn.Z)(Ar,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.time?n("a",{staticClass:"time",domProps:{innerHTML:t._s(t.time)}}):t._e()}),[],!1,null,null,null).exports;var jr=n(5389),Lr=n.n(jr);function Rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Mr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rr(Object(n),!0).forEach((function(e){xr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Nr={name:"AccessSelectForm",props:{startData:{type:Object}},data:function(){return{loading:{sections:!1,brands:!1,products:!1}}},computed:Mr(Mr({},(0,r.Se)(["asGetSelected","asGetSections","asGetBrands","asGetProducts"])),{},{selected:{get:function(){return this.asGetSelected},set:function(t){this.asSetSelected(t)}},asid:{get:function(){return this.asGetSelected.asid},set:function(t){this.selected=Mr(Mr({},this.selected),{},{asid:+t,bid:0,pid:0})}},bid:{get:function(){return this.asGetSelected.bid},set:function(t){this.selected=Mr(Mr({},this.selected),{},{bid:+t,pid:0})}},pid:{get:function(){return this.asGetSelected.pid},set:function(t){this.selected=Mr(Mr({},this.selected),{},{pid:+t})}},section:function(){return this.asid&&this.asGetSections?.[this.asid]?this.asGetSections[this.asid]:null},brand:function(){return this.asid&&this.bid&&this.asGetBrands?.[this.asid]?.[this.bid]?this.asGetBrands[this.asid][this.bid]:null},product:function(){return this.asid&&this.bid&&this.pid&&this.asGetProducts?.[this.asid]?.[this.bid]?.[this.pid]?this.asGetProducts[this.asid][this.bid][this.pid]:null},sections:function(){const t=this.asGetSections;return 0===Object.values(t).length&&(this.loading.sections=!0,this.asRequestSections(this.selected).then((()=>{this.loading.sections=!1}))),Lr()([{value:0,text:"ÐÑбеÑиÑе Ñип ÑÑÑÑойÑÑва"},...Object.values(t).map((t=>({value:+t.ID,text:t.NAME,code:t.CODE})))],["text"],["asc"])},brands:function(){const t=this.asGetBrands[this.asid]?this.asGetBrands[this.asid]:{};return this.asid&&0===Object.values(t).length&&(this.loading.brands=!0,this.asRequestBrands(this.selected).then((()=>{this.loading.brands=!1}))),Lr()([{value:0,text:"ÐÑбеÑиÑе пÑоизводиÑелÑ"},...Object.values(t).map((t=>({value:+t.ID,text:t.NAME,code:t.CODE})))],["text"],["asc"])},products:function(){const t=this.asGetProducts?.[this.asid]?.[this.bid]?this.asGetProducts[this.asid][this.bid]:{};return this.asid&&this.bid&&0===Object.values(t).length&&(this.loading.products=!0,this.asRequestProducts(this.selected).then((()=>{this.loading.products=!1}))),Lr()([{value:0,text:"ÐÑбеÑиÑе моделÑ"},...Object.values(t).map((t=>({value:+t.ID,text:t.NAME,code:t.CODE})))],["text"],["asc"])},action:function(){const t="/products/access_select";return this.product&&this.brand&&this.section?`${t}/${this.section.CODE}
1-${this.brand.CODE}-${this.product.CODE.replace(new RegExp(`^${this.brand.CODE}-`),"")}/`:this.brand&&this.section?`${t}/${this.section.CODE}-${this.brand.CODE}/`:this.section?`${t}/${this.section.CODE}/`:`${t}.php`}}),methods:Mr({},(0,r.nv)(["asRequestBrands","asRequestProducts","asSetSelected"]))},Ur=Nr;const qr=(0,bn.Z)(Ur,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form",{staticClass:"row as-form-mc",attrs:{method:"post",action:t.action}},[n("b-form-group",{staticClass:"col",scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("ÐÑбеÑиÑе Ñип ÑÑÑÑойÑÑва")]),t._v(" "),t.loading.sections?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e()]},proxy:!0}])},[t._v(" "),n("b-form-select",{attrs:{options:t.sections},model:{value:t.asid,callback:function(e){t.asid=e},expression:"asid"}})],1),t._v(" "),n("b-form-group",{staticClass:"col",scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("ÐÑбеÑиÑе пÑоизводиÑелÑ")]),t._v(" "),t.loading.brands?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e()]},proxy:!0}])},[t._v(" "),n("b-form-select",{attrs:{options:t.brands,disabled:!t.asid},model:{value:t.bid,callback:function(e){t.bid=e},expression:"bid"}})],1),t._v(" "),n("b-form-group",{staticClass:"col",scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("ÐÑбеÑиÑе моделÑ")]),t._v(" "),t.loading.products?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e()]},proxy:!0}])},[t._v(" "),n("b-form-select",{attrs:{options:t.products,disabled:!t.asid||!t.bid},model:{value:t.pid,callback:function(e){t.pid=e},expression:"pid"}})],1),t._v(" "),n("b-form-group",{staticClass:"col"},[n("button",{staticClass:"btn btn-blue",attrs:{type:"submit"}},[t._v("ÐодобÑаÑÑ")])])],1)}),[],!1,null,null,null).exports;function Hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Fr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hr(Object(n),!0).forEach((function(e){$r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $r(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Vr={name:"ProductCard",props:{startData:{type:Object,required:!0},imgLazyLoad:{type:Boolean,default:!0}},data:function(){return{}},computed:{item:function(){return this.startData},prices:function(){return this.item.PRICES.BASE},priceTemplates:function(){return this.prices.PRICE_TEMPLATE},articul:function(){return this.item.PROPERTY_ARTICUL_VALUE},chars:function(){return""},imgSrc:function(){return this.item.PREVIEW_PICTURE?this.item.PREVIEW_PICTURE.SRC:"/images/nophoto.gif"},isActive:function(){return void 0!==this.item.ACTIVE&&"Y"===this.item.ACTIVE},isNotAvailable:function(){return!!this.item.PROPERTY_NOT_AVAILABLE_VALUE},isPreOrder:function(){return!!this.item.PROPERTY_ZAKAZ_VALUE},isStockUndefined:function(){return!!this.item.PROPERTY_STOCK_UNDEFINED_VALUE},isDoubleCurrencyMode:function(){return void 0!==this.convertedPrices},hasDiscount:function(){return this.prices.HAS_DISCOUNT},hasCredit:function(){return this.isActive&&!this.isNotAvailable&&!this.isPreOrder&&this.originalPrices.DISCOUNT_VALUE>=1e5&&!this.isDoubleCurrencyMode},originalPrices:function(){return this.prices.ORIGINAL},convertedPrices:function(){return this.prices.CONVERTED},originalCurrencyHTML:function(){return this.priceTemplates?.ORIGINAL?.CURRENCY_HTML},convertedCurrencyHTML:function(){return this.priceTemplates?.CONVERTED?.CURRENCY_HTML},productData:function(){return{id:this.item.ID,name:this.item.UF_NAME_PREFIX+" "+this.item.NAME,href:window.location.href,img_src:this.imgSrc}},showPrice:function(){return this.isActive&&!this.isNotAvailable}
1,priceRequestParams:function(){return{code:"PRICE_REQUEST",title:"ÐапÑоÑиÑÑ ÑенÑ",directValues:{PRODUCT:`https://www.foroffice.ru${this.item.DETAIL_PAGE_URL}`,REQUEST:`ÐдÑавÑÑвÑйÑе! ÐÐµÐ½Ñ Ð¸Ð½ÑеÑеÑÑÐµÑ Ð¼Ð¾Ð´ÐµÐ»Ñ - ${this.item.NAME} (ÐÑÑикÑл: ${this.articul}). СообÑиÑе, пожалÑйÑÑа, ÑÐµÐ½Ñ Ð¸ возможнÑй ÑÑок поÑÑавки данной модели.`}}},partnerCodesData:function(){return{id:this.startData.ID,name:this.startData.NAME,price:this.originalPrices.DISCOUNT_VALUE}}},methods:Fr(Fr({},(0,r.nv)(["openModalForm"])),{},{onBeforeAddToCart:function(t){this.$emit("before-add-to-cart",Fr(Fr({},t),this.partnerCodesData))},onAfterAddToCart:function(t){this.$emit("after-add-to-cart",Fr(Fr({},t),this.partnerCodesData))},onBeforeFollow:function(t){this.$emit("before-follow-link",this.partnerCodesData)}}),filters:{nameSlicer:t=>t.length>34?function t(e){if(e.length>34){let t=e.split(" ").reverse();e=t.splice(1,t.length).reverse().join(" ")}return e.length>34?t(e):e}(t)+"...":t}};const Br=(0,bn.Z)(Vr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item catalog-short"},[n("div",{staticClass:"item-inner"},[n("div",{staticClass:"top-icons-block"},[n("div",{staticClass:"shields"},[t.hasCredit?n("div",{staticClass:"el-shield credit"},[n("span",{staticClass:"text"},[t._v("ÐоÑÑÑпно в кÑедиÑ")])]):t._e(),t._v(" "),t.hasDiscount?n("div",{staticClass:"el-shield discount"},[n("span",{staticClass:"text"},[t._v("- "+t._s(t.prices.DISCOUNT_DIFF_PERCENT)+"%")])]):t._e()]),t._v(" "),n("div",{staticClass:"buttons"},[n("add-to-favourites",{attrs:{"product-id":+t.item.ID,name:t.item.NAME,"product-data":t.productData},on:{added:function(e){return t.$emit("added-to-favourites",{id:+t.item.ID})}}}),t._v(" "),n("add-to-compare",{attrs:{"product-id":+t.item.ID,name:t.item.NAME,"product-data":t.productData},on:{added:function(e){return t.$emit("added-to-compare",{id:+t.item.ID})}}})],1)]),t._v(" "),n("div",{staticClass:"image-block"},[n("a",{attrs:{href:t.item.DETAIL_PAGE_URL},on:{click:t.onBeforeFollow}},[t.imgLazyLoad?n("img",{attrs:{"data-splide-lazy":t.imgSrc,alt:t.item.NAME}}):n("img",{attrs:{src:t.imgSrc,alt:t.item.NAME}})])]),t._v(" "),n("div",{staticClass:"name-block"},[n("a",{staticClass:"name",attrs:{href:t.item.DETAIL_PAGE_URL,id:"si_"+t.uid+"_"+t.item.ID},on:{click:t.onBeforeFollow}},[t._v("\n "+t._s(t._f("nameSlicer")(t.item.NAME))+"\n ")]),t._v(" "),t.item.NAME.length>34?n("b-tooltip",{attrs:{target:"si_"+t.uid+"_"+t.item.ID,triggers:"hover",variant:"light"}},[t._v("\n "+t._s(t.item.NAME)+"\n ")]):t._e()],1),t._v(" "),t._e(),t._v(" "),n("div",{staticClass:"price-block"},[n("div",{staticClass:"original"},[n("div",{staticClass:"old-prc"},[t.showPrice&&t.hasDiscount?n("span",[n("span",{domProps:{innerHTML:t._s(t.originalPrices.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.originalCurrencyHTML)}})]):t._e()]),t._v(" "),n("div",{staticClass:"prc"},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.originalPrices.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.originalCurrencyHTML)}})]):t.isActive?t.isNotAvailable?n("small",[t._v("Цена по запÑоÑÑ")]):t._e():n("small",[t._v("ÐÐµÑ Ð² налиÑии")])])]),t._v(" "),t.convertedPrices?n("div",{staticClass:"converted"},[n("div",{staticClass:"old-prc"},[t.showPrice&&t.hasDiscount?n("span",[n("span",{domProps:{innerHTML:t._s(t.convertedPrices.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.convertedCurrencyHTML)}})]):t._e()]),t._v(" "),n("div",{staticClass:"prc"},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.convertedPrices.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.convertedCurrencyHTML)}})]):t._e()])]):t._e()]),t._v(" "),n("div",{staticClass:"buy-block"},[t.showPrice?n("buy-button",{attrs:{"product-id":+this.item.ID,name:this.item.NAME},on:{"after-add-to-cart":t.onAfterAddToCart}}):t.isActive&&t.isNotAvailable?n("button",{staticClass:"btn btn-blue prc-request",on:{click:function(e){return t.openModalForm(t.priceRequestParam
1s)}}},[t._v("\n ÐапÑоÑиÑÑ ÑенÑ\n ")]):t._e()],1)])])}),[],!1,null,null,null).exports;const Gr=JSON.parse('{"actions":{"image":true,"period":true,"date":false,"name":true,"type":false,"description":true,"bottomIcons":true,"itemName":"ÐкÑиÑ"},"news":{"image":true,"period":false,"date":true,"name":true,"type":true,"description":true,"bottomIcons":false,"itemName":"ÐовоÑÑÑ"},"articles":{"image":true,"period":false,"date":true,"name":true,"type":true,"description":true,"bottomIcons":false,"itemName":"СÑаÑÑÑ"}}'),Yr={name:"ContentCard",props:{startData:{type:Object,required:!0}},data:function(){return{item:null,props:null,types:Gr,rusMonths:["ÑнваÑÑ","ÑевÑалÑ","маÑÑа","апÑелÑ","маÑ","иÑнÑ","иÑлÑ","авгÑÑÑа","ÑенÑÑбÑÑ","окÑÑбÑÑ","ноÑбÑÑ","декабÑÑ"]}},computed:{type:function(){let t=this.item.IBLOCK_CODE;return void 0!==t&&t||(t="news"),t},imgScr:function(){return this.item.PREVIEW_PICTURE||this.item.DETAIL_PICTURE?this.item.DETAIL_PICTURE&&this.item.DETAIL_PICTURE.SRC?this.item.DETAIL_PICTURE.SRC:this.item.PREVIEW_PICTURE.SRC:"/images/nophoto.gif"},hasPreviewPicture:function(){return!!this.item.PREVIEW_PICTURE&&!this.imgScr.includes("nophoto.gif")},itemClass:function(){return this.item.PREVIEW_PICTURE},icon:function(){if("actions"===this.type){if(!this.props.TYPE_ACTION)return!1;const t=this.props.TYPE_ACTION.VALUE;return t.includes("sale")?{name:"fo-percent",class:{"stroke-only":!0}}:t.includes("gift")?{name:"fo-gift",class:{}}
1:t.includes("service")?{name:"fo-service",class:{"stroke-only":!0}}:t.includes("delivery")?{name:"fo-cargo",class:{"stroke-only":!0}}:{name:"fo-star",class:{"stroke-only":!0}}}return"news"===this.type?{name:"fo-news",class:{"stroke-only":!0}}:{name:"fo-star",class:{"stroke-only":!0}}},activeFrom:function(){let t;if(this.item.DISPLAY_ACTIVE_FROM)t=this.item.DISPLAY_ACTIVE_FROM;else if(this.item.DATE_ACTIVE_FROM)t=this.item.DATE_ACTIVE_FROM;else{if(!this.item.ACTIVE_FROM)return null;t=this.item.ACTIVE_FROM}return new Date(Date.parse(t))},activeTo:function(){let t;if(this.item.DISPLAY_ACTIVE_TO)t=this.item.DISPLAY_ACTIVE_TO;else if(this.item.DATE_ACTIVE_TO)t=this.item.DATE_ACTIVE_TO;else{if(!this.item.ACTIVE_TO)return null;t=this.item.ACTIVE_TO}return new Date(Date.parse(t))},period:function(){let t="";const e=this.activeFrom,n=this.activeTo;return n&&e?t+=`${e.getDate()} ${this.rusMonths[e.getMonth()]} - ${n.getDate()} ${this.rusMonths[n.getMonth()]}`:n&&(t+=`до ${n.getDate()} ${this.rusMonths[n.getMonth()]}`),t},dateFrom:function(){let t="";const e=this.activeFrom;return e&&(t+=`${e.getDate()} ${this.rusMonths[e.getMonth()]} ${e.getFullYear()}`),t},typeStr:function(){return this.types[this.type].itemName},showImage:function(){return this.types[this.type].image},showName:function(){return this.types[this.type].name},showPeriod:function(){return this.types[this.type].period},showDate:function(){return this.types[this.type].date},showType:function(){return this.types[this.type].type},showDescription:function(){return this.types[this.type].description},showBottomIcons:function(){return this.types[this.type].bottomIcons}},methods:{onFollowLink:function(t){this.$emit("follow-link",{id:this.item.ID})}},filters:{nameSlicer:t=>t.length>120?function t(e){if(e.length>120){let t=e.split(" ").reverse();e=t.splice(1,t.length).reverse().join(" ")}return e.length>120?t(e):e}(t)+"...":t},beforeMount:function(){this.item=this.startData,this.props=this.startData.DISPLAY_PROPERTIES,delete this.item.DISPLAY_PROPERTIES}};const zr=(0,bn.Z)(Yr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item",class:t.itemClass},[n("div",{staticClass:"item-inner"},[t.showImage?n("div",{staticClass:"image-block"},[n("a",{class:{"no-photo":!t.hasPreviewPicture},attrs:{href:t.item.DETAIL_PAGE_URL},on:{click:t.onFollowLink}},[t.hasPreviewPicture?n("img",{attrs:{src:t.imgScr,alt:t.item.NAME}}):n("div",{staticClass:"no-photo"},[n("v-icon",{staticClass:"fo-icon",class:t.icon.class,attrs:{name:t.icon.name,width:"24",height:"24"}}),t._v(" "),"actions"===t.type?n("span",[t._v("ÐкÑиÑ!")]):"news"===t.type?n("span",[t._v("ÐовоÑÑÑ!")]):"articles"===t.type?n("span",[t._v("СÑаÑÑÑ!")]):t._e()],1)]),t._v(" "),n("span",{staticStyle:{position:"absolute",top:"2rem",display:"none"}},[t._v("PREVIEW_PICTURE width / height = 1.85")])]):t._e(),t._v(" "),n("div",{staticClass:"date-block"},[t.showPeriod?n("div",{staticClass:"period"},[t._v("\n "+t._s(t.period)+"\n ")]):t._e(),t._v(" "),t.showDate?n("div",{staticClass:"date"},[t._v("\n "+t._s(t.dateFrom)+"\n ")]):t._e(),t._v(" "),t.showType?n("div",{staticClass:"type"},[t._v("\n "+t._s(t.typeStr)+"\n ")]):t._e()]),t._v(" "),t.showName?n("div",{staticClass:"name-block"},[n("a",{staticClass:"name",attrs:{id:"ci_"+t.item.ID,href:t.item.DETAIL_PAGE_URL},on:{click:t.onFollowLink}},[t._v("\n "+t._s(t.item.NAME)+"\n ")])]):t._e(),t._v(" "),t.showDescription?n("div",{staticClass:"description-block"},[n("p",{domProps:{innerHTML:t._s(t.item.PREVIEW_TEXT)}})]):t._e(),t._v(" "),t.showBottomIcons?n("div",{staticClass:"bottom-icons-block"},[n("v-icon",{staticClass:"fo-icon",class:t.icon.class,attrs:{name:t.icon.name,width:"24",height:"24"}})],1):t._e()])])}),[],!1,null,null,null).exports,Zr=JSON.parse('{"Y":{"type":"slide","focus":"left","perMove":1,"perPage":6,"gap":30,"arrows":true,"rewind":false,"pagination":false,"lazyLoad":true,"breakpoints":{"536":{"perPage":2,"gap":4},"768":{"perPage":2,"gap":18},"1024":{"perPage":4,"gap":26}}}}');function Wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Kr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Wr(Object(n),!0).forEach((function(e){Xr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Qr={name:"ItemsSlider",props:{startData:{type:Object},itemType:{type:String,default:"catalog_short"},customOptions:{type:[Object,null],default:null},uniqueId:{type:String,default:"default"}},components:{CatalogItem:Br,ContentItem:zr},data:function(){return{loaded:!1,position:0,defaultOptions:Zr.Y}},computed:Kr(Kr(Kr({},(0,r.Se)(["sliderItems"])),(0,r.rn)(["system"])),{},{items:{get:function(){return this.sliderItems[this.uniqueId]||[]},set:function(t){let e=this.sliderItems;e[this.uniqueId]=t,this.sliderSetItems(e)}},length:function(){return this.items&&this.items.length?this.items.length:0},options:function(){let t;return t=this.customOptions?Kr(Kr({},this.defaultOptions),this.customOptions):this.defaultOptions,t},onPage:function(){if(!this.system.screenWidth)return!1;const t=this.options;let e=null;return void 0!==t.breakpoints&&Object.keys(t.breakpoints).forEach(function(n){if(n<+this.system.screenWidth)return!1;(!e||n>e)&&void 0!==t.breakpoints[n].perPage&&(e=n)}.bind(this)),e?t.breakpoints[e].perPage:t.perPage},showArrows:function(){return!!this.system.screenWidth&&this.length>this.onPage},showLeftArrow:function(){return 0!==this.position},showRightArrow:function(){return this.position+this.onPage<this.length},arrowsClass:function(){return{"no-arrows":!this.showArrows,"no-left-arrow":!this.showLeftArrow,"no-right-arrow":!this.showRightArrow}}}),methods:Kr(Kr({},(0,r.nv)(["sliderSetItems"])),{},{onAfterSliderMoved:function(t,e,n,s){this.position=e},onBeforeAddToCart:function(t){this.$emit("before-add-to-cart",t)},handleAddToCart:function(t){this.$emit("after-add-to-cart",t)},handleAddToFavourites:function(t){this.$emit("after-add-to-favourites",t)},handleAddToCompare:function(t){this.$emit("after-add-to-compare",t)},handleFollow:function(t){this.$emit("before-follow-link",t)}}),beforeMount(){void 0!==this.startData&&void 0!==this.startData.ITEMS&&(this.items=this.startData.ITEMS,this.loaded=!0)},mounted(){window.addEventListener("resize",this.onResize)}};const Jr=(0,bn.Z)(Qr,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"items-slider-mc",class:t.arrowsClass,attrs:{"data-name":"items-slider-"+t.uniqueId}},[t.loaded?n("splide",{ref:"slider_"+t.uniqueId,attrs:{options:t.options,ref:"splide"},on:{"splide:moved":t.onAfterSliderMoved}},t._l(t.items,(function(e,s){var r;return n("splide-slide",{key:"items_slider_"+s,class:(r={},r[t.itemType]=!0,r)},["catalog_short"===t.itemType?n("CatalogItem",{attrs:{"start-data":e},on:{"after-add-to-cart":t.handleAddToCart,"added-to-favourites":t.handleAddToFavourites,"added-to-compare":t.handleAddToCompare,"before-follow-link":t.handleFollow}}):t._e(),t._v(" "),"content"===t.itemType?n("ContentItem",{attrs:{"start-data":e},on:{"before-follow-link":t.handleFollow}}):t._e()],1)})),1):t._e()],1)}),[],!1,null,null,null).exports,ti=JSON.parse('{"Y":{"type":"slide","focus":"left","perMove":1,"perPage":6,"gap":30,"arrows":true,"rewind":true,"pagination":false,"breakpoints":{"536":{"perPage":2,"gap":4},"768":{"perPage":4,"gap":18},"1024":{"perPage":4,"gap":26}}}}');function ei(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ni(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ei(Object(n),!0).forEach((function(e){si(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function si(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ri="rec_block_follow",ii="rec_block_cart",ai="rec_block_favourites",oi="rec_block_compare",ci={name:"RecommendsBlock",props:{methods:{type:Array,required:!0},params:{type:Array,required:!0},uniqueId:{type:String,default:"recommends"},customOptions:{type:Object,default:function(){return{}}}},components:{ItemsSlider:Jr},data:function(){return{cacheTime:3600,items:[],errors:!1,loaded:!1,randomMode:null,method:void 0,methodForApi:void 0,doubleCurrencyMode:!1}},computed:{options:function(){const t=ti.Y;for(let e in this.customOptions)t[e]=this.customOptions[e];return t}},methods:ni(ni({},(0,r.nv)(["addToCart","getRecommendsFromApi"])),{},{checkCacheTime:function(){(document.location.href.includes("clear_cache=Y")||document.location.href.includes("clear_cache_session=Y"))&&(this.cacheTime=0)},getRecommends:function(){const t=new FormData;return this.methods.forEach(((e,n)=>{t.append("methods[]",e),this.params[n].forEach((e=>{t.append(`params[${n}][]`,e)}))})),t.append("user",this.user),t.append("cache_time",this.cacheTime),this.getRecommendsFromApi(t)},onAfterAddToCart:function(t){return"function"==typeof ym&&ym_id&&ym(ym_id,"reachGoal",ii),!this.randomMode&&this.$root.retailRocketOnAfterAddToCart(t,this.methodForApi)},onBeforeFollowLink:function(t){return"function"==typeof ym&&ym_id&&ym(ym_id,"reachGoal",ri),!this.randomMode&&this.$root.retailRocketOnFollow(t,this.methodForApi)},onAddToFavourites:function(t){return"function"==typeof ym&&ym_id&&ym(ym_id,"reachGoal",ai),!this.randomMode},onAddToCompare:function(t){return"function"==typeof ym&&ym_id&&ym(ym_id,"reachGoal",oi),!this.randomMode},afterMount:function(){this.items&&this.items[0].PRICES.BASE.CONVERTED&&(this.doubleCurrencyMode=!0),this.loaded=!0}}),beforeMount(){this.checkCacheTime()},async mounted(){const t=await this.getRecommends();t&&t.success&&t.ITEMS?(this.items=t.ITEMS,this.randomMode=t.RANDOM,this.method=t.METHOD,this.methodForApi=t.METHOD_FOR_API,this.afterMount()):!t.ITEMS||Array.isArray(t.ITEMS)&&!t.ITEMS.length?this.$emit("empty",this.uniqueId):(console.error("mounted()->error",t),this.errors=t)}},li=ci;const ui=(0,bn.Z)(li,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"recommends-block-mc",attrs:{"data-name":t.uniqueId}},[t.errors?n("div",{staticClass:"error"},t._l(t.errors,(function(e,s){return n("span",{key:"error"+s,staticClass:"error",domProps:{innerHTML:t._s(e)}})})),0):t._e(),t._v(" "),n("div",{staticClass:"inner",class:{"double-currency":t.doubleCurrencyMode,preload:!t.loaded}},[n("div",{staticClass:"slider-outer"},[t.loaded?t._e():n("div",{staticClass:"preload"},[n("fai",{attrs:{icon:"spinner",spin:""}})],1),t._v(" "),t.loaded?n("ItemsSlider",{attrs:{"start-data":{ITEMS:t.items},"custom-options":t.options,"unique-id":t.uniqueId},on:{"before-follow-link":t.onBeforeFollowLink,"after-add-to-cart":t.onAfterAddToCart,"after-add-to-favourites":t.onAddToFavourites,"after-add-to-compare":t.onAddToCompare}}):t._e()],1)])])}),[],!1,null,null,null).exports;function di(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function pi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?di(Object(n),!0).forEach((function(e){fi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fi(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const hi={name:"UniversalForm",props:{sid:{type:String,required:!0},labels:{type:Boolean,default:!0},fieldLabels:{type:Boolean,default:!1},stars:{type:Boolean,default:!0},placeholders:{type:Boolean,default:!1},spinner:{type:Boolean,default:!0},sent:{type:Boolean,default:!1},submitText:{type:String,default:""},submitType:{type:String,default:"blue"},headerHtml:{type:String,default:""},beforeSubmitHtml:{type:String,default:""},afterSubmitHtml:{type:String,default:""},afterSentHtml:{type:String,default:'<h2>ÐÐ°Ñ Ð·Ð°Ð¿ÑÐ¾Ñ ÑÑпеÑно оÑпÑавлен</h2><p>РближайÑее вÑÐµÐ¼Ñ Ð·Ð°Ð²ÐºÐ° бÑÐ´ÐµÑ ÑаÑÑмоÑÑена и наÑи ÑпеÑиалиÑÑÑ ÑвÑжÑÑÑÑ Ñ Ðами</p><a href="/">Ðа главнÑÑ</a>'},cacheTime:{type:Number,default:3600},directValues:{type:[Object,null],default:null},callback:{type:Function}},data:function(){return{form:{},fields:{items:{},order:[]},answers:{},hidden:[],success:!!this.sent&&this.sent,loading:!1,message:{value:null,type:"success"},captcha:{value:null,validated:!1,state:null,errorMsg:null},agree:{value:!1,validated:!1,state:null}}},computed:pi(pi({},(0,r.Se)(["formUniversalForms"])),{},{stage:function(){return void 0===this.formUniversalForms[this.sid]?0:this.formUniversalForms[this.sid].stage},orderedFields:function(){return this.fields.order.map(function(t){return this.fields.items[t]}.bind(this))},isValid:function(){if(!this.agree.state)return!1;if(this.form.useCaptcha&&!this.captcha.state)return!1;let t=!0;return this.orderedFields.forEach(function(e){const n=e.type;"checkbox"===n||"radio"===n||"dropdown"===n||"multiselect"===n||"rating"===n?!1===e.state&&(t=!1):e.answers.forEach(function(e){!1===this.answers[e].state&&(t=!1)}.bind(this))}.bind(this)),t}}),methods:pi(pi(pi({},(0,r.OI)(["SUCCESS_FORM"])),(0,r.nv)(["universalFormGet","universalFormPost"])),{},{getAnswers:function(t){return t.answers.map(function(t){return this.answers[t]}.bind(this))},getTypeClass:function(t){return{"type-checkbox":"checkbox"===t.type,"type-radio":"radio"===t.type,"type-rating":"rating"===t.type,"type-multiselect":"multiselect"===t.type,"type-dropdown":"dropdown"===t.type,"type-hidden d-none":"hidden"===t.type,"type-file":"file"===t.type||"image"===t.type,"type-textarea":"textarea"===t.type,"type-text":"text"===t.type||"tel"===t.type||"email"===t.type||"url"===t.type||"password"===t.type}},getPlaceholder:function(t){return"tel"===t.type?"+7 (___) ___-__-__":this.placeholders&&t.name?t.name:""},setState:function(t){t.state=t.errorMsg=null,t.validated=!0;let e=pi({},t);const n=e.type,s=e.required,r=e.value;return s&&(e=pi(pi({},e),Wn.required(e))),r&&(r instanceof File||r.length)&&("checkbox"===n||"multiselect"===n||"radio"===n||"dropdown"===n||"rating"===n||("file"===n?e=pi(pi({},e),Wn.file(e)):"image"===n?e=pi(pi({},e),Wn.image(e)):"tel"===n?e=pi(pi({},t),Wn.phone(e)):"email"===n?e=pi(pi({},t),Wn.email(e)):"password"===n&&(e=pi(pi({},t),Wn.password(e))))),t.state=e.state,t.errorMsg=e.errorMsg,this.$emit("input",{answer:t,result:e}),t},setStateCaptcha:function(){this.captcha.validated=!0,this.captcha.errorMsg=null,this.captcha.state=!!this.captcha.value,this.captcha.state||(this.captcha.errorMsg="ÐожалÑйÑÑа, подÑвеÑдиÑе, ÑÑо Ð²Ñ Ð½Ðµ ÑобоÑ")},setStateAgree:function(){this.agree.validated=!0,this.agree.state=this.agree.value,this.validate()},setDirectValues:function(){Object.keys(this.directValues).forEach(function(t){const e=this.directValues[t];if(!e||!e.length)return!1;const n=Object.values(this.fields.items).filter((function(e){return e.sid===t}))[0],s=n.answers.map(function(t){return this.answers[t]}.bind(this)),r=n.originalType;if("checkbox"===r||"multiselect"===r){n.value=[],(Array.isArray(e)?e:[e]).forEac
1h((function(t){n.answers.includes(t)&&n.value.push(t)}))}else"radio"===r||"dropdown"===r?n.answers.includes(e)&&(n.value=e):s.forEach((function(t){t.value=e}))}.bind(this))},validate:function(){this.orderedFields.forEach(function(t){const e=t.type;"checkbox"===e||"radio"===e||"dropdown"===e||"multiselect"===e||"rating"===e?this.setState(t):t.answers.forEach(function(t){this.setState(this.answers[t])}.bind(this))}.bind(this)),this.setStateCaptcha()},getFormData:function(){const t=new FormData,e=this.orderedFields,n=this.answers;return Object.keys(e).forEach((function(s){const r=e[s],i=r.originalType,a=r.value,o=`form_${i}_${r.sid}`;if("checkbox"===i||"multiselect"===i)a&&a.length&&a.forEach((function(e){t.append(`${o}[]`,e)}));else if("radio"===i||"dropdown"===i){const e=r.answers.map((t=>+t));e.includes(+a)?t.append(o,a):e.forEach((e=>{const s=n[e];String(s.value)===String(r.value)&&t.append(o,e)}))}})),Object.keys(n).forEach((function(e){const s=n[e],r=s.type,i=s.originalType,a=`form_${i}_${s.id}`,o=s.value;if(!o||"checkbox"===i||"multiselect"===i||"radio"===i||"dropdown"===i)return!1;"textarea"===i?t.append(a,"<br>"+o.split("\n").join("<br>")):"tel"===r?t.append(a,Jn(o)):t.append(a,o)})),t},submit:async function(){if(this.loading=!0,this.message.value=null,!this.isValid)return!1;let t=this.getFormData();t.append("sid",this.form.sid),this.captcha.value&&(t.append("token_v2",this.captcha.value),SERVER&&SERVER.HTTP_X_FORWARDED_FOR&&t.append("remoteip",SERVER.HTTP_X_FORWARDED_FOR));const e=await this.universalFormPost(t);return e.success?(this.$emit("submit"),this.SUCCESS_FORM(this.sid),this.onAfterSuccess()):console.error(e),e.message&&(this.message.value=e.message,this.message.type=e.success?"success":"danger"),this.loading=!1,e},onAfterSuccess:function(){try{this.$root.ymReachGoal(`ff_${this.sid.toLowerCase()}`),window.ga&&window.ga("send","event","form",`ff_${this.sid.toLowerCase()}`),this.callback&&this.callback()}catch(t){console.error(t)}},makeAnswerRef:function(t,e){return`field-${t.id}`+(e?`-answer-${e.id}`:"")},hideField(t){this.hidden.includes(+t)||(this.hidden=[...this.hidden,+t])},showField(t){this.hidden=this.hidden.filter((e=>e!==+t))}}),beforeMount(){this.universalFormGet({sid:this.sid,clear_cache:window.location.search.includes("clear_cache=Y")||window.location.search.includes("clear_cache_session=Y")?"Y":"N"}).then(function(t){this.answers=t.answers,this.fields=t.fields,this.form=t.form,null!==this.directValues&&this.setDirectValues(),setTimeout((async function(){Qn(`.uf-mc[data-form=${t.form.sid}]`)}),200)}.bind(this)).catch((function(t){console.error(t)}))},mounted(){this.$emit("mounted",{component:this,window})}},mi=hi;const vi=(0,bn.Z)(mi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"uf-mc",attrs:{"data-form":t.sid,id:"uf-"+t.sid}},[t.spinner&&0===t.stage?n("div",{staticClass:"uf-spinner"},[n("fai",{attrs:{icon:"spinner",spin:""}})],1):1===t.stage?n("b-form",{staticClass:"uf-form",attrs:{action:"#",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t.headerHtml?n("b-form-text",{staticClass:"uf-header",attrs:{tag:"div","text-variant":"black"},domProps:{innerHTML:t._s(t.headerHtml)}}):t._e(),t._v(" "),t.message.value?n("b-form-text",{staticClass:"uf-alert",attrs:{tag:"div"}},[n("alert",{attrs:{type:t.message.type},domProps:{innerHTML:t._s(t.message.value)}})],1):t._e(),t._v(" "),t._l(t.orderedFields,(function(e,s){return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.hidden.includes(e.id),expression:"!hidden.includes(field.id)"}],key:"form_"+t.form.id+"_group_"+s,staticClass:"uf-field",class:t.getTypeClass(e),attrs:{id:t.form.sid+"_"+e.sid}},[t.fieldLabels?n("div",{staticClass:"uf-field-label"},[n("span",[t._v(t._s(e.name)+" "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])])]):t._e(),t._v(" "),"checkbox"===e.type||"radio"===e.type||"rating"===e.type||"dropdown"===e.type||"multiselect"===e.type?n("b-form-group",{staticClass:"uf-group",class:t.getTypeClass(e),attrs:{state:e.state},scopedSlots:t._u([t.labels?{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(e.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}:null],null,!0)},[t._v(" "),"checkbox"===e.type?n("b-form-checkbox-group",{attrs:{state:e.state},on:{change:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}},t._l(t.getAnswers(e),(function(s,r){return n("b-form-checkbox",{key:"fcb_"+s.id,ref:t.makeAnswerRef(e,s),refInFor:!0,attrs:{name:e.sid.toLowerCase()+"_"+s.id,value:s.id}},[n("span",{domProps:{innerHTML:t._s(s.name)}})])})),1):"radio"===e.type?n("b-form-radio-group",{attrs:{state:e.state},on:{change:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}},t._l(t.getAnswers(e),(function(s,r){return n("b-form-radio",{key:"frd_"+s.id,ref:t.makeAnswerRef(e,s),refInFor:!0,attrs:{name:e.sid+"_"+s.id,value:s.id}},[n("span",{domProps:{innerHTML:t._s(s.name)}})])})),1):"dropdown"===e.type||"multiselect"===e.type?n("b-form-select",{ref:t.makeAnswerRef(e),refInFor:!0,attrs:{multiple:"multiselect"===e.type,name:e.sid.toLowerCase(),state:e.state},on:{change:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}},["dropdown"===e.type?n("b-form-select-option",{attrs:{value:null}},[t._v("\n Ðе вÑбÑано\n ")]):t._e(),t._v(" "),t._l(t.getAnswers(e),(function(e,s){return n("b-form-select-option",{key:"fdr_"+e.id,attrs:{value:e.id}},[t._v(t._s(e.name)+"\n ")])}))],2):"rating"===e.type?n("b-form-rating",{ref:t.makeAnswerRef(e),refInFor:!0,class:{"
1is-invalid":!1===e.state,"is-valid":!0===e.state},attrs:{stars:e.answers.length},on:{change:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}):t._e(),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1):"hidden"===e.type?n("b-form-group",{staticClass:"uf-group",class:t.getTypeClass(e)},t._l(t.getAnswers(e),(function(s,r){return n("input",{key:"fhd_"+s.id,ref:t.makeAnswerRef(e,s),refInFor:!0,attrs:{type:"hidden"},domProps:{value:s.value}})})),0):"file"===e.type||"image"===e.type?t._l(t.getAnswers(e),(function(s,r){return n("b-form-group",{key:"ffl_"+s.id,staticClass:"uf-group",class:t.getTypeClass(e),attrs:{state:s.state}},[n("b-form-file",{ref:t.makeAnswerRef(e,s),refInFor:!0,attrs:{"browse-text":s.name,name:e.sid.toLowerCase()+"_"+s.id,state:s.state},on:{input:function(e){return t.setState(s)}},scopedSlots:t._u([{key:"placeholder",fn:function(){return[t._v("\n "+t._s(s.name)+"\n ")]},proxy:!0}],null,!0),model:{value:s.value,callback:function(e){t.$set(s,"value",e)},expression:"answer.value"}}),t._v(" "),s.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(s.errorMsg)+"\n ")]):t._e()],1)})):t._l(t.getAnswers(e),(function(s,r){return n("b-form-group",{key:"ftx_"+s.id,ref:t.makeAnswerRef(e,s),refInFor:!0,staticClass:"uf-group",attrs:{state:s.state},scopedSlots:t._u([t.labels?{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(s.name||e.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}:null],null,!0)},[t._v(" "),"textarea"===s.type?n("b-form-textarea",{ref:t.makeAnswerRef(e,s),refInFor:!0,attrs:{name:e.sid.toLowerCase()+"_"+s.id,placeholder:t.getPlaceholder(s),state:s.state,rows:s.rows||5},on:{input:function(e){return t.setState(s)}},model:{value:s.value,callback:function(e){t.$set(s,"value",e)},expression:"answer.value"}}):n("b-form-input",{ref:t.makeAnswerRef(e,s),refInFor:!0,attrs:{name:e.sid.toLowerCase()+"_"+s.id,type:s.type,placeholder:t.getPlaceholder(s),state:s.state},on:{input:function(e){return t.setState(t.answers[s.id])}},model:{value:s.value,callback:function(e){t.$set(s,"value",e)},expression:"answer.value"}}),t._v(" "),s.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(s.errorMsg)+"\n ")]):t._e()],1)})),t._v(" "),t._e()],2)})),t._v(" "),t.beforeSubmitHtml?n("b-form-text",{staticClass:"uf-before-submit",attrs:{tag:"div","text-variant":"black"},domProps:{innerHTML:t._s(t.beforeSubmitHtml)}}):t._e(),t._v(" "),t.form.useCaptcha?n("b-form-group",{staticClass:"uf-captcha",attrs:{state:t.captcha.state}},[n("vue-recaptcha-v2",{ref:"captcha",class:{"is-valid":t.captcha.state,"is-invalid":!1===t.captcha.state},on:{input:t.setStateCaptcha},model:{value:t.captcha.value,callback:function(e){t.$set(t.captcha,"value",e)},expression:"captcha.value"}}),t._v(" "),t.captcha.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.captcha.errorMsg)+"\n ")]):t._e()],1):t._e(),t._v(" "),n("b-form-group",{staticClass:"uf-agree",attrs:{state:t.agree.state}},[n("b-form-checkbox",{attrs:{state:t.agree.state},on:{input:t.setStateAgree},model:{value:t.agree.value,callback:function(e){t.$set(t.agree,"value",e)},expression:"agree.value"}},[n("span",{domProps:{innerHTML:t._s(t.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML)}}),t._v(" "),n("sup",{staticClass:"text-danger"},[t._v("*")])])],1),t._v(" "),n("b-form-group",{staticClass:"uf-submit"},[n("b-button",{attrs:{type:"submit",variant:t.submitType,disabled:!t.isValid||t.loading}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),t.submitText?n("span",[t._v(t._s(t.submitText))]):n("span",[t._v(t._s(t.form.buttonText))])],1)],1),t._v(" "),t.afterSubmitHtml?n("b-form-text",{staticClass:"uf-after-submit",attrs:{tag:"div","text-variant":"black"},domProps:{innerHTML:t._s(t.afterSubmitHtml)}}):t._e(),t._v(" "),t.afterSubmitHtml?n("b-form-text",{staticClass:"uf-req-info",attrs:{tag:"div"}},[t._v("\n ÐолÑ, обознаÑеннÑе знаком "),n("sup",{staticClass:"text-danger"},[t._v("*")]),t._v(", обÑзаÑелÑÐ½Ñ Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ.\n ")]):t._e()],2):2===t.stage?n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"uf-success",domProps:{innerHTML:t._s(t.afterSentHtml)}})]):t._e()],1)}),[],!1,null,null,null).exports;const _i={name:"ModalForm",props:[],data:function(){return{show:!1,success:!1,sid:void 0,offerId:void 0,labels:!1,placeholders:!1,disclamer:!1,spinner:!1,submitText:"",header:""}},components:{"universal-form":vi},computed:{},methods:{clickOnModal:function(t){t.stopPropagation()},onFormSent:function(){this.success=!0,this.setCookie(),setTimeout(function(){this.show=!1}.bind(this),1500)}
1,setCookie:function(){if(void 0!==this.offerId){const t=new Date;window.blockExclusiveOffer=!0,t.setDate(t.getDate()+1),document.cookie="exclusive__offer__id="+this.offerId+"; path=/; expires="+t.toUTCString()}},showModalFormByClick:function(t){const e=t.currentTarget;this.sid=e.dataset.formSid,this.offerId=e.dataset.offerId,this.labels="true"===e.dataset.labels,this.placeholders="true"===e.dataset.placeholders,this.disclamer="true"===e.dataset.disclamer,this.spinner="true"===e.dataset.spinner,e.dataset.submitText&&(this.submitText=e.dataset.submitText),e.dataset.header&&(this.header=e.dataset.header),this.show=!0}}};const gi=(0,bn.Z)(_i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.show&&t.sid?n("div",{staticClass:"form-container-modal col-md-12 col-sm-12 col-xs-12",attrs:{name:t.sid}},[n("br"),n("br"),t._v(" "),n("div",{staticClass:"modal-form-background",on:{click:function(e){e.preventDefault(),e.stopPropagation(),t.show=!1}}},[n("div",{staticClass:"modal-form-frame",on:{click:t.clickOnModal}},[n("div",{staticClass:"modal-form-close"},[n("img",{attrs:{src:"/img/modal/close_icon.png",alt:"close_icon"},on:{mousedown:function(e){t.show=!1}}})]),t._v(" "),n("div",{staticClass:"modal-form-inner"},[t.header.length>0&&!t.success?n("div",{staticClass:"modal-form-header",domProps:{innerHTML:t._s(t.header)}}):t._e(),t._v(" "),n("universal-form",{attrs:{sid:t.sid,labels:t.labels,placeholders:t.placeholders,sent:t.success,disclamer:t.disclamer,spinner:t.spinner,"submit-text":t.submitText},on:{"form-sent":t.onFormSent}})],1)])])]):t._e()])}),[],!1,null,null,null).exports;const bi={name:"FastBuy",props:["items","sections","prefix"],data:function(){return{showComponent:!1,dataItems:[],dataSections:[],activeSection:[]}},computed:{checkedItems:function(){const t=[];return this.dataItems.forEach((function(e){e.CHECKED&&t.push(e)})),t}},methods:{selectSection:function(t){this.activeSection=t},selectAllItemsInCategory:function(){this.clearSelections(),this.dataItems=this.dataItems.map(function(t){return+t.IBLOCK_SECTION_ID!=+this.activeSection.ID&&0!=+this.activeSection.ID||(t.CHECKED=!0),t}.bind(this)),this.clickOnCheckbox()},clearSelections:function(t){this.dataItems=this.dataItems.map(function(e){return void 0!==t&&+e.IBLOCK_SECTION_ID==+t||(e.CHECKED=!1),e}.bind(this))},clickOnCheckbox:function(){let t=this.checkedItems,e=this.$parent.$refs.best_price_form.form.PRODUCTS.ANSWERS,n="";t.forEach((function(t){t.PROPERTY_ARTICUL_VALUE?n+=" - "+t.NAME+" аÑÑ. ("+t.PROPERTY_ARTICUL_VALUE+")\n":n+=t.NAME+"\n"}));for(let t in e)e[t].VALUE=n}},filters:{nameSlicer:t=>t.length>80?function t(e){if(e.length>80){let t=e.split(" ").reverse();e=t.splice(1,t.length).reverse().join(" ")}return e.length>80?t(e):e}(t)+"...":t,formatPrice:function(t){let e=String(Math.round(t)),n="";return e.split("").reverse().forEach((function(t,e){0!=+e&&+e%3==0&&(n+=" "),n+=t})),n=n.split("").reverse().join(""),n}},beforeMount(){this.dataItems=this.items,this.dataSections=this.sections,this.activeSection=this.dataSections[0]},mounted(){this.$parent.$refs.best_price_form.showHiddenFields=!0}},yi=bi;const Ci=(0,bn.Z)(yi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row best-price-guarantee-catalog-component"},[n("div",{staticClass:"left col-md-3 col-sm-4 col-xs-12 robotoc"},[n("div",{staticClass:"sections hidden-xs"},t._l(t.sections,(function(e,s){return n("div",{key:"section_"+e.ID,class:{section:s>0,square:!0,active:+t.activeSection.ID==+e.ID},on:{click:function(n){return t.selectSection(e)}}},[t._v("\n "+t._s(e.NAME)+"\n ")])})),0)]),t._v(" "),n("div",{staticClass:"fastbuy products col-md-9 col-sm-8 col-xs-12"},[n("div",{staticClass:"row"},t._l(t.dataItems,(function(e,s){return n("div",{directives:[{name:"show",rawName:"v-show",value:0==+t.activeSection.ID||+t.activeSection.ID==+e.IBLOCK_SECTION_ID,expression:"+activeSection['ID'] === 0 || +activeSection['ID'] === +item['IBLOCK_SECTION_ID']"}],key:"item_"+e.ID,staticClass:"product col-md-4 col-sm-6 col-xs-12"},[n("div",{staticClass:"fastbuy-checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.CHECKED,expression:"item['CHECKED']"}],class:{checked:e.CHECKED},attrs:{type:"checkbox",name:e.NAME},domProps:{checked:Array.isArray(e.CHECKED)?t._i(e.CHECKED,null)>-1:e.CHECKED},on:{change:[function(n){var s=e.CHECKED,r=n.target,i=!!r.checked;if(Array.isArray(s)){var a=t._i(s,null);r.checked?a<0&&t.$set(e,"CHECKED",s.concat([null])):a>-1&&t.$set(e,"CHECKED",s.slice(0,a).concat(s.slice(a+1)))}else t.$set(e,"CHECKED",i)},t.clickOnCheckbox]}})]),t._v(" "),n("div",{staticClass:"image"},[n("a",{attrs:{href:e.DETAIL_PAGE_URL}},[n("img",{attrs:{src:e.PREVIEW_PICTURE.SRC,width:e.PREVIEW_PICTURE.WIDTH,height:e.PREVIEW_PICTURE.HEIGHT,alt:e.PREVIEW_PICTURE.ALT,title:e.
1NAME}})])]),t._v(" "),n("a",{staticClass:"name",attrs:{href:e.DETAIL_PAGE_URL}},[t._v(t._s(e.NAME))]),t._v(" "),n("span",{staticClass:"articul"},[t._v("ÐÑÑикÑл: "+t._s(e.PROPERTY_ARTICUL_VALUE))]),t._v(" "),1==+e.PROPERTY_NOT_AVAILABLE_VALUE&&1!=+e.PROPERTY_SHOW_PRICE_BUTTON_VALUE?n("div",[n("div",{staticClass:"oldprice"}),t._v(" "),n("div",{staticClass:"price"},[t._v("Ðо запÑоÑÑ")]),t._v(" "),n("div",{staticClass:"economy"}),t._v(" "),n("div",{staticClass:"buyblock"},[n("a",{staticClass:"price_request_show",attrs:{href:"javascript:void(0);",pid:e.ID,name:e.NAME}},[t._v("ÐапÑÐ¾Ñ ÑенÑ")])])]):n("div",[n("div",{staticClass:"oldprice"},[Math.round(+e.CATALOG_PRICE_1)>Math.round(+e.DISCOUNT_VALUE.RESULT_PRICE.DISCOUNT_PRICE)?n("span",[t._v(t._s(t._f("formatPrice")(e.CATALOG_PRICE_1))+" "),n("span",{staticClass:"rub"},[t._v("Ð ")])]):t._e()]),t._v(" "),n("div",{staticClass:"price"},[n("span",[t._v(t._s(t._f("formatPrice")(e.DISCOUNT_VALUE.RESULT_PRICE.DISCOUNT_PRICE))+"\n "),n("span",{staticClass:"rub"},[t._v("Ð ")]),t._v(" "),n("small",[t._v("*")])])]),t._v(" "),n("div",{staticClass:"economy"},[Math.round(+e.CATALOG_PRICE_1)>Math.round(+e.DISCOUNT_VALUE.RESULT_PRICE.DISCOUNT_PRICE)?n("span",[t._v("\n "+t._s(t._f("formatPrice")(+e.CATALOG_PRICE_1-+e.DISCOUNT_VALUE.RESULT_PRICE.DISCOUNT_PRICE))+"\n "),n("span",{staticClass:"rub"},[t._v("Ð ")])]):t._e()]),t._v(" "),n("div",{staticClass:"buyblock"},[n("buy-button",{attrs:{"product-id":e.ID,name:e.NAME}})],1)])])})),0)]),t._v(" "),n("div",{staticClass:"col-md-2 col-sm-2 hidden-xs"}),t._v(" "),n("div",{staticClass:"col-md-8 col-sm-8 col-xs-12"},[n("div",{staticClass:"fast-buy-select-all",on:{click:t.selectAllItemsInCategory}},[t._v("\n ÐÑбÑаÑÑ Ð²Ñе\n ")])]),t._v(" "),n("div",{staticClass:"col-md-2 col-sm-2 hidden-xs"})])}),[],!1,null,null,null).exports;const Oi={name:"CharFilter",props:{id:{type:[Number,String],required:!0},uniqueId:{type:String,required:!0},data:{type:Object,required:!0}},data:function(){return{selected_:[],open:!1}},computed:{selected:{get:function(){return this.selected_},set:function(t){this.selected_=t,this.$emit("selected",{[this.id]:t})}}},methods:{},beforeMount(){for(let t in this.data.values)this.data.values[t].is_checked_in_filter&&this.selected_.push(t)}},wi=Oi;const Ei=(0,bn.Z)(wi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-filter-mc checkbox"},[n("div",{staticClass:"head"},[n("span",[t._v(t._s(t.data.name))])]),t._v(" "),n("div",{staticClass:"body",class:{expand:t.open}},[n("div",t._l(t.data.values,(function(e,s){return n("b-form-checkbox",{key:"sf_cc_"+s,attrs:{name:"sf_cf_v_"+t.id,value:s},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[n("span",[t._v(t._s(e.value)+"\n "),n("span",{staticClass:"cnt"},[t._v("("+t._s(e.property_value_pair_cnt)+")")])])])})),1)]),t._v(" "),Object.keys(t.data.values).length>5?n("div",{staticClass:"show-more"},[t.open?t._e():n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.open=!t.open}}},[t._v("ÐоказаÑÑ Ð²Ñе")]),t._v(" "),t.open?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.open=!t.open}}},[t._v("СвеÑнÑÑÑ")]):t._e()]):t._e()])}),[],!1,null,null,null).exports,Pi={name:"SearchFilterController",props:{uniqueId:{type:String,required:!0},localData:{type:Object,required:!0},value:{type:String}},components:{CharFilter:Ei},data:function(){return{sections:null,brands:null,chars:null,charsOrder:null,selected:{sections:[],brands:[],chars:{}},brandsOpen:!1,sectionsOpen:!1}},computed:{selectedSections:{get:function(){return this.selected.sections},set:function(t){this.selected.sections!==t&&(this.selected.sections=t,this.onSelect())}},selectedBrands:{get:function(){return this.selected.brands},set:function(t){this.selected.brands!==t&&(this.selected.brands=t,this.onSelect())}},hasSectionsFilter:function(){return null!==this.sections&&Array.isArray(this.sections)&&this.sections.length>0},hasBrandsFilter:function(){return null!==this.brands&&Array.isArray(this.brands)&&this.brands.length>0},hasCharsFilters:function(){return null!==this.chars&&Array.isArray(this.charsOrder)&&this.charsOrder.length>0}},methods:{prepareData:function(){void 0!==this.localData.brands_f&&(this.brands=this.localData.brands_f),void 0!==this.localData.categories_f&&(this.sections=this.localData.categories_f),void 0!==this.localData.properties_f_compiled&&(this.chars=this.localData.properties_f_compiled,this.charsOrder=this.localData.properties_f_compiled_order),void 0!==this.localData.Filters.brands&&this.localData.Filters.brands.length>0&&this.localData.Filters.brands.forEach(function(t){this.selected.brands.push(t)}.bind(this)),void 0!==this.localData.Filters.sections&&this.localData.Filters.sections.length>0&&this.localData.Filters.sections.forEach(function(t){this.selected.sections.push(t)}.bind(this)),void 0!==this.localData.Filters.properties&&this.localData.Filters.properties.length>
10&&this.localData.Filters.properties.forEach(function(t){let e=t.split("_");void 0===this.selected.chars[e[0]]&&(this.selected.chars[e[0]]=[]),this.selected.chars[e[0]].push(e[1])}.bind(this))},onSelect:function(t){this.getFilterStr(),this.$emit("select")},onSelectChar:function(t){let e=this.selected.chars;for(let n in t)if(t[n].length>0)e[n]=t[n];else{if(void 0===e[n])return!1;void 0!==e[n]&&delete e[n]}this.selected.chars=e,this.onSelect()},getFilterStr:function(){let t="";this.selected.sections.length>0&&(t+="&categories="+this.selected.sections.join(",")),this.selected.brands.length>0&&(t+="&brands="+this.selected.brands.join(","));let e=[],n=this.selected.chars;for(let t in n)void 0!==n[t]&&0!==n[t].length&&e.push(t+"_"+n[t].join("_"));return e.length>0&&(t+="&properties="+e.join(",")),this.$emit("input",t),t}},beforeMount(){this.prepareData(),this.getFilterStr()}},Si=Pi;const Ii=(0,bn.Z)(Si,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-filter-controller-mc"},[t.hasSectionsFilter?n("div",{staticClass:"filter sections"},[n("div",{staticClass:"catalog-filter-mc checkbox"},[t._m(0),t._v(" "),n("div",{staticClass:"body",class:{expand:t.sectionsOpen}},[n("div",t._l(t.sections,(function(e,s){return n("b-form-checkbox",{key:"sf_sc_"+s,attrs:{name:"sf-sections",value:e.section_id},model:{value:t.selectedSections,callback:function(e){t.selectedSections=e},expression:"selectedSections"}},[n("span",[t._v(t._s(e.section_name)+" "),n("span",{staticClass:"cnt"},[t._v("("+t._s(e.section_cnt)+")")])])])})),1)]),t._v(" "),t.sections.length>5?n("div",{staticClass:"show-more"},[t.sectionsOpen?t._e():n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.sectionsOpen=!t.sectionsOpen}}},[t._v("ÐоказаÑÑ Ð²Ñе")]),t._v(" "),t.sectionsOpen?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.sectionsOpen=!t.sectionsOpen}}},[t._v("СвеÑнÑÑÑ")]):t._e()]):t._e()])]):t._e(),t._v(" "),t.hasBrandsFilter?n("div",{staticClass:"filter brands"},[n("div",{staticClass:"catalog-filter-mc checkbox"},[t._m(1),t._v(" "),n("div",{staticClass:"body",class:{expand:t.brandsOpen}},[n("div",t._l(t.brands,(function(e,s){return n("b-form-checkbox",{key:"sf_bc_"+s,attrs:{name:"sf-brands",value:e.brand_id},model:{value:t.selectedBrands,callback:function(e){t.selectedBrands=e},expression:"selectedBrands"}},[n("span",[t._v(t._s(e.brand_name)+" "),n("span",{staticClass:"cnt"},[t._v("("+t._s(e.brand_cnt)+")")])])])})),1)]),t._v(" "),t.brands.length>5?n("div",{staticClass:"show-more"},[t.brandsOpen?t._e():n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.brandsOpen=!t.brandsOpen}}},[t._v("ÐоказаÑÑ Ð²Ñе")]),t._v(" "),t.brandsOpen?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.brandsOpen=!t.brandsOpen}}},[t._v("СвеÑнÑÑÑ")]):t._e()]):t._e()])]):t._e(),t._v(" "),t._l(t.charsOrder,(function(e,s){return t.hasCharsFilters?n("div",{key:"sf_cf_"+s,staticClass:"filter char"},[n("CharFilter",{attrs:{id:e,data:t.chars[e],uniqueId:t.uniqueId},on:{selected:t.onSelectChar}})],1):t._e()}))],2)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"head"},[n("span",[t._v("ÐаÑегоÑиÑ")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"head"},[n("span",[t._v("ÐÑоизводиÑели")])])}],!1,null,null,null).exports;function Ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Di(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ti(Object(n),!0).forEach((function(e){Ai(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ai(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ki={name:"CatalogControls",props:{uniqueId:{type:String,required:!0,default:"main"},localData:{type:Object},baseUrl:{type:String,default:"#"},prevent:{type:Boolean,default:!1},display:{type:Object,default:function(){return{total:!0,sort:!0,view:!0}}},controlParams:{type:Object,default:()=>{}}},components:{},data:function(){return{}},computed:Di(Di({},(0,r.Se)(["catalogControls","catalogTotal","catalogInitiated","catalogOrderHelpers","catalogFilteredProducts","catalogInitiated","catalogHasActiveFilters"])),{},{controls:{get:function(){return this.catalogControls[this.uniqueId]},set:function(t){let e=this.catalogControls;e[this.uniqueId]=t,this.catalogSetControls(e)}},total:function(){return this.isLocalMode?+this.localData.total:this.catalogTotal[this.uniqueId]},totalText:function(){const t=String(this.total);return/1([0-9])$/.test(t)?"ÑоваÑов":/1$/.test(t)?"ÑоваÑ":/[2-4]$/.test(t)?"ÑоваÑа":"ÑоваÑов"},sorts:function(){if(void 0!==this.controls){const t=this.controls.sorts;if(this.isLocalMode)return t;const e=this.catalogOrderHelpers[this.uniqueId];if(e)return t.filter((t=>!e||!!e[t.code]))}},limits:function(){if(void 0!==this.controls)return this.controls.limits},views:function(){if(void 0!==this.controls)return this.controls.views},sort:{get:function(){return this.isLocalMode&&void 0!==this.localData.sort?this.localData.sort:void 0!==this.controls?this.controls.sort:void 0},set:function(t){let e=this.controls;if(+t==+e.sort)return!1;e.sort=t,e.page=1,this.controls=e,this.$emit("sort-changed",t)}},limit:{get:function(){if(void 0!==this.controls)return this.controls.limit},set:function(t){let e=this.controls;if(+t==+e.limit)return!1;e.limit=t,e.page=1,this.controls=e}},view:{get:function(){if(void 0!==this.controls)return this.controls.view},set:function(t){let e=this.controls;if(+t==+e.view)return!1;e.view=t,this.controls=e,this.$emit("view-change",t)}},page:{get:function(){if(void 0!==this.controls)return this.controls.page},set:function(t){let e=this.controls;if(+t==+e.page)return!1;e.page=t,this.controls=e,this.$emit("page-change",t)}},initiated:function(){return this.isLocalMode||this.catalogInitiated.includes(this.uniqueId)},isLocalMode:function(){return!!this.localData}}),methods:Di(Di({},(0,r.nv)(["catalogSetControls"])),{},{onSortChanged:function(t,e){return this.prevent&&t.preventDefault(),this.sort=e}})};const ji=(0,bn.Z)(ki,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.initiated?n("div",[n("div",{staticClass:"d-none d-xl-block col-12 controls"},[n("div",{staticClass:"row"},[n("div",{staticClass:"total-block col-3"},[t.display.total?n("span",{staticClass:"value"},[t._v(t._s(t.total))]):t._e(),t._v(" "),t.display.total?n("span",{staticClass:"text"},[t._v(" "+t._s(t.totalText))]):t._e()]),t._v(" "),t.display.sort&&t.isLocalMode?n("div",{staticClass:"sort-block-xl col-6 col-lg-7"},[n("span",{staticClass:"text"},[t._v("СоÑÑиÑоваÑÑ:")]),t._v(" "),t._l(t.sorts,(function(e,s){return n("form",{key:"sort_link_"+t.uniqueId+"_"+s,attrs:{action:t.baseUrl},on:{submit:function(n){return t.onSortChanged(n,e.value)}}},[t._l(t.controlParams,(function(t,e){return n("input",{key:"slhpi_"+e,attrs:{type:"hidden",name:e},domProps:{value:t}})})),t._v(" "),n("input",{attrs:{type:"hidden",name:"sort"},domProps:{value:e.code}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"view"},domProps:{value:t.views[t.view].code}}),t._v(" "),n("button",{staticClass:"btn btn-link",class:{active:t.sort===s},attrs:{type:"submit"}},[t._v("\n "+t._s(e.text)+"\n ")])],2)}))],2):t.display.sort?n("div",{staticClass:"sort-block-xl col-6 col-lg-7"},[n("span",{staticClass:"text"},[t._v("СоÑÑиÑоваÑÑ:")]),t._v(" "),t._l(t.sorts,(function(e,s){return n("form",{key:"sort_link_"+t.uniqueId+"_"+s,on:{submit:function(n){n.preventDefault(),t.sort=e.value}}},[t._l(t.controlParams,(function(t,e){return n("input",{key:"slhps_"+e,attrs:{type:"hidden",name:e},domProps:{value:t}})})),t._v(" "),n("button",{staticClass:"btn btn-link",class:{active:t.sort===s},attrs:{type:"submit"}},[t._v("\n "+t._s(e.text)+"\n ")])],2)}))],2):t._e(),t._v(" "),n("div",{staticClass:"view-block col"},t._l(t.views,(function(e,s){return t.display.view?n("form",{key:"view_link_"+t.uniqueId+"_"+s,on:{submit:function(n){n.preventDefault(),t.view=e.value}}},[n("button",{staticClass:"btn btn-link",class:{active:e.value===t.view},attrs:{type:"submit"}},["blocks"===e.code?n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-ct-blocks",width:"20",height:"20",fill:"currentColor"}}):"linear"===e.code?n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-ct-linear",width:"20",height:"20",fill:"currentColor"}}):t._e()],1)]):t._e()})),0),t._v(" "),t._m(0)])]),t._v(" "),n("div",{staticClass:"col-12 d-xl-none controls"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-6 left"},[n("div",{staticClass:"filter-block"},[n("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.catalog-sb",modifiers:{"catalog-sb":!0}}],attrs:{type:"button",variant:"link"}},[n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-ct-filters",width:"20",height:"20"}})],1),t._v(" "),n("span",{staticClass:"text"},[t._v("ФилÑÑÑÑ")])],1),t._v(" "),n("div",{staticClass:"total-block d-none d-md-block"},[t.display.total?n("span",{staticClass:"value"},[t._v(t._s(t.total))]):t._e(),t._v(" "),t.display.total?n("span",{staticClass:"text"},[t._v(" "+t._s(t.totalText))]):t._e()])]),t._v(" "),n("div",{staticClass:"col-6 right"},[n("div",{staticClass:"sort-block"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.sort,expression:"sort"}],staticClass:"form-control",on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.sort=e.target.multiple?n:n[0]}}},t._l(t.sorts,(function(e,s){return n("option",{key:"sort_opt_"+s,domProps:{value:e.value}},[t._v(t._s(e.text)+"\n ")])})),0)]),t._v(" "),n("div",{staticClass:"view-block d-none d-md-flex"},t._l(t.views,(function(e,s){return t.display.view?n("form",{key:"view_link_"+t.uniqueId+"_"+s,on:{submit:function(n){n.preventDefault(),t.view=e.value}}},[n("button",{staticClass:"btn btn-link",class:{active:e.value===t.view},attrs:{type:"submit"}},["blocks"===e.code?n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-ct-blocks",width:"20",height:"20"}}):"linear"===e.code?n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-ct-linear",width:"20",height:"20"}}):t._e()],1)]):t._e()})),0)]),t._v(" "),t._m(1)])])]):t._e()}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12"},[e("hr")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12"},[e("hr")])}],!1,null,null,null).exports;var Li=n(1263),Ri=n(2710);function Mi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function xi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mi(Object(n),!0).forEach((function(e){Ni(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ni(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ui={name:"CatalogPagination",props:{uniqueId:{type:String,required:!0,default:"main"},localData:{type:[Object,null],default:null},baseUrl:{type:[String,Boolean],default:!1},display:{type:Object,default:function(){return{limit:!0,pages:!0}}}},components:{BPaginationNav:Li.a,BPagination:Ri.c},data:function(){return{}},computed:xi(xi({},(0,r.Se)(["catalogControls","catalogTotal","catalogInitiated"])),{},{controls:{get:function(){return this.catalogControls[this.uniqueId]},set:function(t){this.catalogSetControls({[this.uniqueId]:t})}},total:function(){return this.isLocalMode?+this.localData.total:this.catalogTotal[this.uniqueId]},limits:function(){if(void 0!==this.controls)return this.controls.limits},pages:function(){},totalPages:function(){return this.isLocalMode?+this.localData.page_cnt:Math.ceil(+this.total/this.limits[this.limit].count)},limit:{get:function(){if(void 0!==this.controls)return this.controls.limit},set:function(t){if(+t==+this.controls.limit)return!1;this.controls={limit:+t},this.$emit("limit-changed",t)}},page:{get:function(){return this.isLocalMode?+this.localData.page:void 0!==this.controls?+this.controls.page+(+this.controls.limitMultiplier-1):void 0},set:function(t){let e=this.controls;return+t!=+e.page+ +e.limitMultiplier-1&&(this.controls={page:t,limitMultiplier:1},this.$emit("page-changed",t))}},initiated:function(){return this.isLocalMode||this.catalogInitiated.includes(this.uniqueId)},isLocalMode:function(){return!!this.localData}}),methods:xi(xi({},(0,r.nv)(["catalogSetControls"])),{},{onPageClick:function(t,e){this.page=e},generateLink:function(t,e){if(+t==+this.page||!this.baseUrl)return"#";let n=this.baseUrl;const s={};window.location.search.replace("?","").split("&").forEach((e=>{const[n,r]=e.split("=");"PAGEN_1"===n?+t>1&&(s[n]=t):s[n]=r}));let r=Object.keys(s).map((t=>`${t}=${s[t]}`)).join("&");return t>1?"fb"===this.uniqueId?n+=`?${r}`:"search"===this.uniqueId?n+=`?${r}&PAGEN_1=${t}`:"as"===this.uniqueId?n+="page"+t+".html":n+="_page"+t+".html":"fb"===this.uniqueId||("search"===this.uniqueId?n+=`?${r}`:"as"===this.uniqueId||(n+=".html")),n}})};const qi=(0,bn.Z)(Ui,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.initiated?n("div",{staticClass:"catalog-pagination-mc row"},[t.totalPages>1?n("div",{staticClass:"pagination-inner col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"d-none d-md-flex col-md-3 limits"},[t.display.limit?n("div",{staticClass:"text"},[t._v("ÐоказÑваÑÑ Ð¿Ð¾")]):t._e(),t._v(" "),t.display.limit?n("div",{staticClass:"value"},[n("b-form-select",{attrs:{options:t.limits,plain:""},model:{value:t.limit,callback:function(e){t.limit=e},expression:"limit"}}
1)],1):t._e()]),t._v(" "),n("div",{staticClass:"col-12 col-md-9 pagi"},[t.display.pages?t.isLocalMode?n("BPaginationNav",{attrs:{size:"lg","number-of-pages":t.totalPages,"link-gen":t.generateLink,"last-number":"","first-number":""},on:{"page-click":function(e){return e.preventDefault(),t.onPageClick.apply(null,arguments)}},scopedSlots:t._u([{key:"prev-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-prev",width:"8",height:"14"}})]},proxy:!0},{key:"next-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-next",width:"8",height:"14"}})]},proxy:!0}],null,!1,2954068297),model:{value:t.page,callback:function(e){t.page=e},expression:"page"}}):n("BPagination",{attrs:{size:"lg","total-rows":t.total,"per-page":t.limits[t.limit].count,"last-number":"","first-number":""},scopedSlots:t._u([{key:"prev-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-prev",width:"8",height:"14"}})]},proxy:!0},{key:"next-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-next",width:"8",height:"14"}})]},proxy:!0}],null,!1,2954068297),model:{value:t.page,callback:function(e){t.page=e},expression:"page"}}):n("span",{staticClass:"d-none"})],1)])]):t._e()]):t._e()}),[],!1,null,null,null).exports;function Hi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Fi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hi(Object(n),!0).forEach((function(e){$i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Vi={name:"CatalogProduct",props:{data:{type:Object,required:!0},section:{type:Object},brand:{type:Object},uniqueId:{type:String,default:"main"},view:{type:String,default:"linear"},tableChars:{type:Array,default:()=>[]}},data:function(){return{quantity:1,showQuickView:!1,charsOpen:!1}},computed:Fi(Fi(Fi(Fi(Fi({},(0,r.Se)(["cartProductsIds"])),(0,r.Se)(["locationIsMoscow","locationIsMoscowRegion","locationIsSPB","locationIsSPBRegion","locationIsRealFilial","locationIsRU"])),(0,r.Se)(["userIsAdmin","userIsContentManager","userIsManager"])),(0,r.Se)(["catalogFilterHelpers"])),{},{filterHelpers:function(){return this.catalogFilterHelpers[this.uniqueId]},id:function(){return+this.data.ID},name:function(){return this.data.FULL_NAME?this.data.FULL_NAME:this.data.NAME},sku:function(){return this.data.PROPERTY_ARTICUL_VALUE?this.data.PROPERTY_ARTICUL_VALUE:null},vendorSku:function(){return this.data.PROPERTY_MANUFACTURER_ARTICUL_VALUE?this.data.PROPERTY_MANUFACTURER_ARTICUL_VALUE:null},prices:function(){return this.data.PRICES?this.data.PRICES.BASE?this.data.PRICES.BASE:(console.error("ÐÑÑÑÑÑÑвÑÐµÑ Ð¾Ð±ÑÐµÐºÑ PRICES.BASE"),null):(console.error("ÐÑÑÑÑÑÑвÑÐµÑ Ð¾Ð±ÑÐµÐºÑ PRICES"),null)},priceTemplates:function(){return this.prices&&this.prices.PRICE_TEMPLATE?this.prices.PRICE_TEMPLATE:null},doubleCurrencyMode:function(){return this.prices&&this.prices.CONVERTED},priceOriginal:function(){return this.prices?this.prices.ORIGINAL:null},priceConverted:function(){return this.prices&&this.doubleCurrencyMode?this.prices.CONVERTED:null},currencyHtmlOriginal:function(){return this.priceTemplates&&this.priceTemplates.ORIGINAL.CURRENCY_HTML?this.priceTemplates.ORIGINAL.CURRENCY_HTML:null},currencyHtmlConverted:function(){return this.priceTemplates&&this.doubleCurrencyMode&&this.priceTemplates.CONVERTED.CURRENCY_HTML?this.priceTemplates.CONVERTED.CURRENCY_HTML:null},chars:function(){return this.data.CHARS?this.data.CHARS:null},productData:function(){return{id:this.data.ID,name:this.data.UF_NAME_PREFIX+" "+this.name,href:window.location.href,img_src:this.data?.PREVIEW_PICTURE?.SRC}},isActive:function(){return void 0!==this.data.ACTIVE&&"Y"===this.data.ACTIVE},isNotAvailable:function(){return!!this.data.PROPERTY_NOT_AVAILABLE_VALUE},isPreOrder:function(){return!!this.data.PROPERTY_ZAKAZ_VALUE},isStockUndefined:function(){return!!this.data.PROPERTY_STOCK_UNDEFINED_VALUE},isInStock:function(){return+this.data.CATALOG_QUANTITY},isMPTIncluded:function(){return!!this.data.PROPERTY_MPT_INCLUDED_VALUE},isInCart:function(){return-1!=+this.cartProductsIds.indexOf(+this.data.ID)},canBuy:function(){return"Y"===this.prices.CAN_BUY},hasDiscount:function(){return!0===this.prices.HAS_DISCOUNT},showPrice:function(){return this.isActive&&!this.isNotAvailable},itemClass:function(){let t;return"blocks"===this.view?t="block":"linear"===this.view?t="linear":"table"===this.view?t="table":"search"===this.view&&(t="linear"),{[t]:!0}}
1,delParams:function(){return void 0!==this.data.DELIVERY_HTML&&void 0!==this.data.DELIVERY_HTML.PARAMS&&this.data.DELIVERY_HTML.PARAMS},priceRequestParams:function(){return{code:"PRICE_REQUEST",title:"ÐапÑоÑиÑÑ ÑенÑ",directValues:{PRODUCT:`https://www.foroffice.ru${this.data.DETAIL_PAGE_URL}`,REQUEST:`ÐдÑавÑÑвÑйÑе! ÐÐµÐ½Ñ Ð¸Ð½ÑеÑеÑÑÐµÑ Ð¼Ð¾Ð´ÐµÐ»Ñ - ${this.name} (ÐÑÑикÑл: ${this.sku}). СообÑиÑе, пожалÑйÑÑа, ÑÐµÐ½Ñ Ð¸ возможнÑй ÑÑок поÑÑавки данной модели.`}}},partnerCodesData:function(){return{id:this.id,name:this.name,price:this.prices.ORIGINAL.DISCOUNT_VALUE,brand:this.brand?.NAME,category:this.section?.NAME}},rating:function(){return this.filterHelpers?.rating?.value?.[this.id]?this.filterHelpers.rating.value[this.id]:0},reviewCount:function(){return this.filterHelpers?.rating?.count?.[this.id]?this.filterHelpers.rating.count[this.id]:0}}),methods:Fi(Fi({},(0,r.nv)(["openModalForm"])),{},{onAfterAddToCart:function(t){this.$emit("after-add-to-cart",t)},onBeforeAddToCart:function(t){this.$emit("before-add-to-cart",t)},onBeforeFollow:function(){this.$emit("before-follow",this.id)},nameSlicer:t=>t.length>80?function t(e){if(e.length>80){let t=e.split(" ").reverse();e=t.splice(1,t.length).reverse().join(" ")}return e.length>80?t(e):e}(t)+"...":t}),filters:{formatPrice:function(t){let e=String(Math.round(t)),n="";return e.split("").reverse().forEach((function(t,e){0!=+e&&+e%3==0&&(n+=" "),n+=t})),n=n.split("").reverse().join(""),n}}},Bi=Vi;const Gi=(0,bn.Z)(Bi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-product-mc row",class:t.itemClass},["blocks"===t.view?n("div",{staticClass:"inner col-12"},[n("div",{staticClass:"row"},[t.data.SHIELDS?n("div",{staticClass:"shields-block top col-12"},[n("catalog-shields",{attrs:{"start-data":t.data.SHIELDS}})],1):t._e(),t._v(" "),n("div",{staticClass:"col-12 image-block"},[n("a",{attrs:{href:t.data.DETAIL_PAGE_URL},on:{click:t.onBeforeFollow}},[t.data.PREVIEW_PICTURE?n("img",{attrs:{src:t.data.PREVIEW_PICTURE.SRC,alt:t.name}}):t._e()])]),t._v(" "),t.isMPTIncluded?n("div",{staticClass:"shields-block bottom col-12"},[n("div",{staticClass:"catalog-shields-mc"},[t.isMPTIncluded?n("div",{staticClass:"el-shield mpt"},[n("span",{staticClass:"text"},[t._v("Ð ÑееÑÑÑе ÐинÐÑомТоÑг")])]):t._e()])]):t._e(),t._v(" "),n("div",{staticClass:"col-12 sku-block"},[t.sku?n("span",[t._v("ÐÑÑикÑл: ")]):t._e(),t._v(" "),t.sku?n("span",{staticClass:"sku-number",domProps:{innerHTML:t._s(t.sku)},on:{click:function(e){return e.preventDefault(),t.$root.skuCopyHandler.apply(null,arguments)}}}):t._e()]),t._v(" "),n("div",{staticClass:"col-12 name-block"},[n("a",{attrs:{href:t.data.DETAIL_PAGE_URL},domProps:{innerHTML:t._s(t.nameSlicer(t.name))},on:{click:t.onBeforeFollow}})]),t._v(" "),t.priceOriginal?n("div",{staticClass:"price-block col-12",class:{"double-currency-mode":t.doubleCurrencyMode}},[n("div",{staticClass:"oldprc"},[t.showPrice&&t.hasDiscount?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceOriginal.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlOriginal)}})]):t._e()]),t._v(" "),n("div",{staticClass:"prc",class:{red:t.hasDiscount}},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceOriginal.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlOriginal)}})]):t.isActive?t.isNotAvailable?n("span",[t._v("Цена по запÑоÑÑ")]):t._e():n("span",[t._v("ÐÐµÑ Ð² налиÑии")])])]):n("div",{staticClass:"price-block loading"},[n("fai",{attrs:{icon:"spinner",spin:""}})],1),t._v(" "),t.priceOriginal&&t.doubleCurrencyMode?n("div",{staticClass:"price-block bottom col-12"},[n("div",{staticClass:"prc",class:{red:t.hasDiscount}},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceConverted.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlConverted)}})]):t._e()]),t._v(" "),n("div",{staticClass:"oldprc",class:{"no-background":!t.hasDiscount}},[t.showPrice&&t.hasDiscount?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceConverted.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlConverted)}})]):t._e()])]):t._e(),t._v(" "),t.chars?n("div",{staticClass:"col-12 tth-block"},[n("div",{staticClass:"chars-popover-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showQuickView,expression:"showQuickView"}],staticClass:"chars-popover"},[n("div",{staticClass:"chars",class:{expand:t.charsOpen},domProps:{innerHTML:t._s(t.chars.html)}}),t._v(" "),t.chars.length>5?n("div",{staticClass:"show-more"},[t.charsOpen?t._e():n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.charsOpen=!t.charsOpen}}},[t._v("ÐоказаÑÑ Ð²Ñе")]),t._v(" "),t.charsOpen?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.charsOpen=!t.charsOpen}}},[t._v("СвеÑнÑÑÑ")]):t._e()]):t._e()])])]):t._e(),t._v(" "),n("div",{staticClass:"col-12 buttons-block"},[t.showPrice?n("buy-button",{attrs:{"product-id":+t.data.ID,name:t.name,color:"blue","product-data":t.productData},on:{"before-add-to-cart":t.onBeforeAddToCart,"after-add-to-cart":t.onAfterAddToCart},model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}}
1):t.isActive&&t.isNotAvailable?n("div",{staticClass:"buy-btn-mc"},[n("button",{staticClass:"btn btn-blue prc-request",on:{click:function(e){return t.openModalForm(t.priceRequestParams)}}},[t._v("\n ÐапÑÐ¾Ñ ÑенÑ\n ")])]):t._e(),t._v(" "),t.chars?n("div",{staticClass:"chars"},[n("a",{staticClass:"show-chars-btn-mc",class:{active:t.showQuickView},attrs:{href:"#",id:"ttt-sc-"+t.uid},on:{click:function(e){e.preventDefault(),t.showQuickView=!t.showQuickView}}},[n("v-icon",{staticClass:"fo-icon",attrs:{name:"fi-chars",width:"20",height:"20"}})],1),t._v(" "),t.showQuickView?t._e():n("b-tooltip",{attrs:{target:"ttt-sc-"+t.uid,triggers:"hover",variant:"light"}},[t._v("\n ÐодÑобнее\n ")]),t._v(" "),t.showQuickView?n("b-tooltip",{attrs:{target:"ttt-sc-"+t.uid,triggers:"hover",variant:"light"}},[t._v("\n СкÑÑÑÑ\n ")]):t._e()],1):n("div",{staticClass:"chars"}),t._v(" "),n("div",{staticClass:"compare"},[t.isActive?n("add-to-compare",{attrs:{tooltip:!0,"product-id":+t.data.ID,name:t.name,"product-data":t.productData}}):t._e()],1),t._v(" "),n("div",{staticClass:"favourites"},[t.isActive?n("add-to-favourites",{attrs:{tooltip:!0,"product-id":+t.data.ID,name:t.name,"product-data":t.productData}}):t._e()],1)],1),t._v(" "),n("div",{staticClass:"col-12 status-block"},[!t.isActive||t.isNotAvailable?n("span",{staticClass:"not-available d-none"},[t._v("ÐÐµÑ Ð² налиÑии")]):t.isPreOrder?n("span",{staticClass:"pre-order"},[t._v("Ðод заказ")]):t.isStockUndefined?n("span",{staticClass:"stock-undefined"},[t._v("УÑоÑнÑйÑе налиÑие")]):(t.isInStock,n("span",{staticClass:"in-stock"},[t._v("РналиÑии")]))]),t._v(" "),t._m(0)])]):"linear"===t.view||"table"===t.view?n("div",{staticClass:"inner col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"left col"},[t.data.SHIELDS?n("div",{staticClass:"shields-block"},[n("catalog-shields",{attrs:{"start-data":t.data.SHIELDS}})],1):t._e(),t._v(" "),n("div",{staticClass:"image-block"},[n("a",{attrs:{href:t.data.DETAIL_PAGE_URL},on:{click:t.onBeforeFollow}},[t.data.PREVIEW_PICTURE?n("img",{attrs:{src:t.data.PREVIEW_PICTURE.SRC,alt:t.name}}):t._e()])])]),t._v(" "),n("div",{staticClass:"center col"},[t.sku?n("div",{staticClass:"sku-block d-none d-md-block"},[n("span",[t._v("ÐÑÑикÑл: ")]),t._v(" "),n("span",{staticClass:"sku-number",domProps:{innerHTML:t._s(t.sku)},on:{click:function(e){return e.preventDefault(),t.$root.skuCopyHandler.apply(null,arguments)}}})]):t._e(),t._v(" "),n("div",{staticClass:"name-block"},[n("a",{attrs:{href:t.data.DETAIL_PAGE_URL},domProps:{innerHTML:t._s(t.name)},on:{click:t.onBeforeFollow}})]),t._v(" "),t.sku?n("div",{staticClass:"sku-block d-md-none"},[n("span",[t._v("ÐÑÑикÑл: ")]),t._v(" "),n("span",{staticClass:"sku-number",domProps:{innerHTML:t._s(t.sku)},on:{click:function(e){return e.preventDefault(),t.$root.skuCopyHandler.apply(null,arguments)}}})]):t._e(),t._v(" "),t.rating?n("div",{staticClass:"rating-block"},[n("b-form-rating",{staticClass:"p-0",attrs:{value:t.rating,stars:5,variant:"warning",size:"lg",readonly:"","no-border":"",inline:""}}),t._v(" "),n("span",{staticClass:"pl-3"},[n("span",[t._v(t._s(t.rating))]),t._v(" "),n("span",[t._v("из")]),t._v(" "),n("span",[t._v("5")])])],1):t._e(),t._v(" "),t.chars?n("div",{staticClass:"tth-block"},[n("div",{staticClass:"chars",class:{expand:t.charsOpen},domProps:{innerHTML:t._s(t.chars.html)}}),t._v(" "),t.chars.length>5?n("div",{staticClass:"show-more"},[t.charsOpen?t._e():n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.charsOpen=!t.charsOpen}}},[t._v("ÐоказаÑÑ Ð²Ñе")]),t._v(" "),t.charsOpen?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.charsOpen=!t.charsOpen}}},[t._v("СвеÑнÑÑÑ")]):t._e()]):t._e()]):t._e()]),t._v(" "),n("div",{staticClass:"right col"},[t.isMPTIncluded?n("div",{staticClass:"shields-block"},[n("div",{staticClass:"catalog-shields-mc"},[t.isMPTIncluded?n("div",{staticClass:"el-shield mpt"},[n("span",{staticClass:"text"},[t._v("Ð ÑееÑÑÑе ÐинÐÑомТоÑг")])]):t._e()])]):t._e(),t._v(" "),t.prices?n("div",{staticClass:"price-block"},[n("div",{staticClass:"price-row",class:{"double-currency-mode":t.doubleCurrencyMode}},[n("div",{staticClass:"oldprc"},[t.hasDiscount&&t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceOriginal.PRINT_
1VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlOriginal)}})]):t._e()]),t._v(" "),n("div",{staticClass:"prc",class:{red:t.hasDiscount}},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceOriginal.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlOriginal)}})]):t.isActive?t.isNotAvailable?n("span",[t._v("Цена по запÑоÑÑ")]):t._e():n("span",[t._v("ÐÐµÑ Ð² налиÑии")])])]),t._v(" "),t.doubleCurrencyMode?n("div",{staticClass:"price-row bottom"},[n("div",{staticClass:"oldprc"},[t.hasDiscount&&t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceConverted.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlConverted)}})]):t._e()]),t._v(" "),n("div",{staticClass:"prc",class:{red:t.hasDiscount}},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceConverted.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlConverted)}})]):t._e()])]):t._e(),t._v(" "),t._e()]):n("div",{staticClass:"price-block loading"},[n("fai",{attrs:{icon:"spinner",spin:""}}
1)],1),t._v(" "),t.delParams?n("div",{staticClass:"delivery-block"},[t.delParams.inStock?n("div",{staticClass:"in-stock"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.inStock.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main",domProps:{innerHTML:t._s(t.delParams.inStock.text)}}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:+t.data.CATALOG_QUANTITY>0&&(t.userIsAdmin||t.userIsContentManager||t.userIsManager),expression:"+data['CATALOG_QUANTITY'] > 0 && (userIsAdmin || userIsContentManager || userIsManager)"}],staticStyle:{display:"none"}},[t._v("\n  ("+t._s(t.data.CATALOG_QUANTITY)+" ÑÑ.)\n ")])])]):t.delParams.preOrder?n("div",{staticClass:"pre-order"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.preOrder.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main",domProps:{innerHTML:t._s(t.delParams.preOrder.text)}})])]):t.delParams.stockUndefined?n("div",{staticClass:"stock-undefined"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.stockUndefined.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main",domProps:{innerHTML:t._s(t.delParams.stockUndefined.text)}}
1)])]):t._e(),t._v(" "),t.delParams.delMsc&&t.locationIsMoscow?n("div",{staticClass:"del-time msc"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.delMsc.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main"},[t._v("ÐоÑÑавка по ÐоÑкве\n "),n("b",[n("span",{domProps:{innerHTML:t._s(t.delParams.delMsc.when)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.delParams.delMsc.price)}})])]),t._v(" "),n("br"),t._v(" "),n("span",{staticClass:"sec",domProps:{innerHTML:t._s(t.delParams.delMsc.bottom)}})])]):t.delParams.delMscReg&&t.locationIsMoscowRegion?n("div",{staticClass:"del-time msc-reg"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.delMscReg.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main"},[t._v("ÐоÑÑавка по ÐÐ\n "),n("b",[n("span",{domProps:{innerHTML:t._s(t.delParams.delMscReg.when)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.delParams.delMscReg.price)}})])]),t._v(" "),n("br"),t._v(" "),n("span",{staticClass:"sec",domProps:{innerHTML:t._s(t.delParams.delMscReg.bottom)}})])]):t.delParams.delSpb&&t.locationIsSPB?n("div",{staticClass:"del-time spb"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.delSpb.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main"},[t._v("ÐоÑÑавка\n "),n("b",[n("span",{domProps:{innerHTML:t._s(t.delParams.delSpb.when)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.delParams.delSpb.price)}})])])])]):t.delParams.delReg?n("div",{staticClass:"del-time reg"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.delReg.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main"},[t._v("ÐоÑÑавка\n "),n("b",[n("span",{domProps:{innerHTML:t._s(t.delParams.delReg.when)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.delParams.delReg.price)}}
1)])])])]):t._e(),t._v(" "),t.delParams.delAllRussia&&t.locationIsRU?n("div",{staticClass:"del-all-russia"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.delAllRussia.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("b",{staticClass:"main",domProps:{innerHTML:t._s(t.delParams.delAllRussia.text)}})])]):t._e(),t._v(" "),t.delParams.pickUp&&(t.locationIsMoscow||t.locationIsMoscowRegion)?n("div",{staticClass:"pick-up-time"},[n("div",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:t.delParams.pickUp.icon,width:"24",height:"24"}})],1),t._v(" "),n("div",{staticClass:"text"},[n("span",{staticClass:"main"},[t._v("СамовÑвоз\n "),n("b",{domProps:{innerHTML:t._s(t.delParams.pickUp.when)}})]),t._v(" "),n("br"),t._v(" "),n("span",{staticClass:"sec",domProps:{innerHTML:t._s(t.delParams.pickUp.bottom)}})])]):t._e()]):t._e(),t._v(" "),n("div",{staticClass:"buttons-block"},[t.showPrice?n("buy-button",{attrs:{"product-id":+t.data.ID,name:t.name,color:"blue"},on:{"before-add-to-cart":t.onBeforeAddToCart,"after-add-to-cart":t.onAfterAddToCart},model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}}):t.isActive&&t.isNotAvailable?n("div",{staticClass:"buy-btn-mc"},[n("button",{staticClass:"btn btn-blue prc-request",on:{click:function(e){return t.openModalForm(t.priceRequestParam
1s)}}},[t._v("\n ÐапÑÐ¾Ñ ÑенÑ\n ")])]):t._e(),t._v(" "),n("div",{staticClass:"compare"},[t.isActive?n("add-to-compare",{attrs:{"product-id":+t.data.ID,name:t.name,"product-data":t.productData}}):t._e()],1),t._v(" "),n("div",{staticClass:"favourites"},[t.isActive?n("add-to-favourites",{attrs:{"product-id":+t.data.ID,name:t.name,"product-data":t.productData}}):t._e()],1)],1)]),t._v(" "),t._m(1)])]):"search"===t.view?n("div",{staticClass:"inner col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"left col"},[n("div",{staticClass:"image-block d-none d-md-flex"},[n("a",{attrs:{href:t.data.DETAIL_PAGE_URL},on:{click:t.onBeforeFollow}},[t.data.PREVIEW_PICTURE?n("img",{attrs:{src:t.data.PREVIEW_PICTURE.SRC,alt:t.name}}):t._e()])])]),t._v(" "),n("div",{staticClass:"center col"},[t.sku?n("div",{staticClass:"sku-block"},[n("span",[t._v("ÐÑÑикÑл: ")]),t._v(" "),n("span",{staticClass:"sku-number",domProps:{innerHTML:t._s(t.sku)},on:{click:function(e){return e.preventDefault(),t.$root.skuCopyHandler.apply(null,arguments)}}})]):t._e(),t._v(" "),n("div",{staticClass:"name-block"},[n("a",{attrs:{href:t.data.DETAIL_PAGE_URL},domProps:{innerHTML:t._s(t.name)},on:{click:t.onBeforeFollow}})])]),t._v(" "),n("div",{staticClass:"right col"},[t.prices?n("div",{staticClass:"price-block"},[n("div",{staticClass:"price-row",class:{"double-currency-mode":t.doubleCurrencyMode}},[n("div",{staticClass:"oldprc"},[t.hasDiscount&&t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceOriginal.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlOriginal)}})]):t._e()]),t._v(" "),n("div",{staticClass:"prc",class:{red:t.hasDiscount}},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceOriginal.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlOriginal)}})]):t.isActive?t.isNotAvailable?n("span",[t._v("Цена по запÑоÑÑ")]):t._e():n("span",[t._v("ÐÐµÑ Ð² налиÑии")])])]),t._v(" "),t.doubleCurrencyMode?n("div",{staticClass:"price-row bottom"},[n("div",{staticClass:"oldprc"},[t.hasDiscount&&t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceConverted.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlConverted)}})]):t._e()]),t._v(" "),n("div",{staticClass:"prc",class:{red:t.hasDiscount}},[t.showPrice?n("span",[n("span",{domProps:{innerHTML:t._s(t.priceConverted.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.currencyHtmlConverted)}})]):t._e()])]):t._e()]):n("div",{staticClass:"price-block loading"},[n("fai",{attrs:{icon:"spinner",spin:""}})],1)]),t._v(" "),t._m(2)])]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 separator"},[e("hr")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 separator"},[e("hr")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 separator"},[e("hr")])}],!1,null,null,null).exports;const Yi={name:"CatalogProductPreloader",props:{viewCode:{type:String,default:"linear"}},data:function(){return{}},computed:{},methods:{},filters:{}};const zi=(0,bn.Z)(Yi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"inner col-12"},[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"center col"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"linear"===t.viewCode,expression:"viewCode === 'linear'"}],staticClass:"plug sku"}),t._v(" "),n("div",{staticClass:"plug name"}),t._v(" "),n("div",{staticClass:"plug name"}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"blocks"===t.viewCode,expression:"viewCode === 'blocks'"}],staticClass:"plug sku"}),t._v(" "),t._m(1)]),t._v(" "),n("div",{staticClass:"right col"},[n("div",{staticClass:"plug oldprc"}),t._v(" "),n("div",{staticClass:"plug prc"}),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"buttons-block"},[n("div",{staticClass:"plug btn"}),t._v(" "),n("div",{staticClass:"plug icon"}),t._v(" "),n("div",{staticClass:"plug icon"}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"blocks"===t.viewCode,expression:"viewCode === 'blocks'"}],staticClass:"plug icon"})]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"blocks"===t.viewCode,expression:"viewCode === 'blocks'"}],staticClass:"plug in-stock"})]),t._v(" "),t._m(3)])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"left col"},[e("div",{staticClass:"plug image"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tth-block"},[n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"delivery-block"},[n("div",{staticClass:"plug icon"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug icon"}),t._v(" "),n("div",{staticClass:"plug"}),t._v(" "),n("div",{staticClass:"plug icon"}),t._v(" "),n("div",{staticClass:"plug"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 separator"},[e("hr")])}],!1,null,null,null).exports;function Zi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Wi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Zi(Object(n),!0).forEach((function(e){Ki(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ki(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xi={name:"CatalogProducts",props:{uniqueId:{type:String,required:!0},localData:{type:[Object,null],default:null},cols:{type:Number,default:3}},components:{Product:Gi,Preloader:zi},data:function(){return{productsListHistory:[]}},computed:Wi(Wi(Wi(Wi({},(0,r.Se)(["isXS"])),(0,r.Se)(["userIsAdmin"])),(0,r.Se)(["catalogSection","catalogProducts","catalogSections","catalogBrands","catalogBaseControls","catalogControls","catalogInitiated","catalogChars","catalogCharsAssoc","catalogAdditionalCacheId","catalogCacheId","catalogOrderHelper","catalogDisplayedProducts","catalogProductsUndefined","catalogSort","catalogView","catalogFilters","catalogOrders","catalogSimilarProducts","catalogLoading"])),{},{displayedProducts:function(){return this.isLocalMode?this.localData.items_order.map((t=>this.localData.items[t])):this.catalogDisplayedProducts[this.uniqueId]},similarProducts:function(){return this.catalogSimilarProducts[this.uniqueId]},baseControls:function(){return this.catalogBaseControls[this.uniqueId]},controls:function(){return this.catalogControls[this.uniqueId]},filters:function(){return this.catalogFilters[this.uniqueId]},view:function(){return this.catalogView[this.uniqueId]},sort:function(){return this.catalogSort[this.uniqueId]},section:function(){return this.isLocalMode?this.localData?.section||{}:this.catalogSection[this.uniqueId]},sections:function(){const t={},e=this.isLocalMode?this.localData?.sections||{}:this.catalogSections[this.uniqueId];return Object.values(e).forEach((e=>t[e.ID]=e)),this.section?.ID&&!t[this.section.ID]&&(t[this.section.ID]=this.section),t},brands:function(){const t={},e=this.isLocalMode?this.localData?.brands||{}:this.catalogBrands[this.uniqueId];return Object.values(e).forEach((e=>t[e.ID]=e)),t},orderHelpers:function(){return this.catalogOrders[this.uniqueId]},orderHelper:function(){return this.isLocalMode?this.localData.items_order:this.catalogOrderHelper[this.uniqueId]},tableChars:function(){return this.catalogChars[this.uniqueId]?this.catalogChars[this.uniqueId].filter((t=>"Y"===t.PROPERTY_SHOW_IN_SIMPLE_LIST_VALUE)).map((t=>+t.ID)):[]},productOuterClass:function(){return{"col-12":!0,"col-sm-12":!0,linear:"linear"===this.view.code,block:"blocks"===this.view.code,table:"table"===this.view.code,["col-md-"+12/this.cols]:"blocks"===this.view.code,["col-lg-"+12/this.cols]:"blocks"===this.view.code,["col-xl-"+12/this.cols]:"blocks"===this.view.code}},initiated:function(){return this.isLocalMode||this.catalogInitiated.includes(this.uniqueId)},showSimilarProducts:function(){return!!this.similarProducts.length},isEmpty:function(){return!this.displayedProducts.length},isLocalMode:function(){return!!this.localData},isLoading:function(){return this.catalogLoading[this.uniqueId]}}),methods:Wi(Wi(Wi({},(0,r.nv)(["catalogCreateStorage","catalogSetStartData","catalogRequestProducts"])),(0,r.nv)(["openModalForm"])),{},{productClass:function(t,e){const n={"no-border":!1};if("linear"===this.view.code)e-t==1&&(n["no-border"]=!0);else if("blocks"===this.view.code){if(!this.cols)return n;+t+1>e-(e%this.cols==0?this.cols:this.cols-(this.cols-e%this.cols))&&(n["no-border"]=!0)}return n},requestUndefinedProducts:function(t){const e={uniqueId:this.uniqueId,arFilter:{ID:t},additionalCacheId:this.catalogAdditionalCacheId[this.uniqueId]};return window.location.search.includes("clear_cache=Y")&&(e.clear_cache="Y"),window.location.search.includes("clear_cache_session=Y")&&(e.clear_cache_session="Y"),this.catalogRequestProducts(e)},productData:function(t){return{id:t.ID,name:t.UF_NAME_PREFIX+" "+t.NAME,href:window.location.href,img_src:t.PREVIEW_PICTURE.SRC}}
1,priceRequestParams:function(t){return{code:"PRICE_REQUEST",title:"ÐапÑоÑиÑÑ ÑенÑ",directValues:{PRODUCT:`https://www.foroffice.ru${t.DETAIL_PAGE_URL}`,REQUEST:`ÐдÑавÑÑвÑйÑе! ÐÐµÐ½Ñ Ð¸Ð½ÑеÑеÑÑÐµÑ Ð¼Ð¾Ð´ÐµÐ»Ñ - ${t.NAME} (ÐÑÑикÑл: ${t.PROPERTY_ARTICUL_VALUE}). СообÑиÑе, пожалÑйÑÑа, ÑÐµÐ½Ñ Ð¸ возможнÑй ÑÑок поÑÑавки данной модели.`}}},createEcommerceProductData:function(){return this.displayedProducts.map((t=>{const e=+t.IBLOCK_SECTION_ID||null,n=+t.PROPERTY_BRAND_VALUE||null,s={id:+t.ID,name:t.NAME,price:+t.PRICES.BASE.ORIGINAL.DISCOUNT_VALUE};return n&&this.brands&&this.brands[n]&&(s.brand=this.brands[n]?.NAME),e&&this.sections&&this.sections[e]&&(s.category=this.sections[e]?.NAME),s}))},onUpdateProductList:function(){if(this.displayedProducts.filter((t=>void 0===t)).length)return setTimeout(this.onUpdateProductList,500);"main"===this.uniqueId&&this.$emit("update-product-list",this.createEcommerceProductData())},onBeforeAddToCart:function(t){this.$emit("before-add-to-cart",Wi(Wi({},t),this.createEcommerceProductData(t.id)))},onAfterAddToCart:function(t){this.$emit("after-add-to-cart",Wi(Wi({},t),this.createEcommerceProductData(t.id)))},onFollow:function(t){"main"===this.uniqueId&&this.$emit("before-follow",this.createEcommerceProductData(t))}}),filters:{charNameUnit:function(t){return t.NAME+(t.PROPERTY_TTH_UNIT_VALUE?`, ${t.PROPERTY_TTH_UNIT_VALUE}`:"").trim()}},mounted(){this.isLocalMode&&void 0===this.controls&&(this.catalogCreateStorage(this.uniqueId),void 0!==this.localData.startControlParams&&this.catalogSetStartData({[this.uniqueId]:this.localData})),this.onUpdateProductList()},updated(){this.onUpdateProductList()}};const Qi=(0,bn.Z)(Xi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.initiated?n("div",{staticClass:"catalog-products-mc row",class:{"mx-0":"table"===t.view.code}},[t.userIsAdmin?n("pre",{staticClass:"col-12 d-none"},[t._v(t._s(t.filters))]):t._e(),t._v(" "),t.isEmpty?n("div",{staticClass:"col-12"},[n("h2",[t._v("ÐиÑего не найдено")])]):"table"===t.view.code?n("table",{staticClass:"table table-md table-bordered"},[n("thead",[n("tr",[n("th",{attrs:{scope:"col"}},[t._v("Ðазвание")]),t._v(" "),t._l(t.tableChars,(function(e,s){return n("th",{key:"tbhd_"+s,attrs:{scope:"col"}},[t._v("\n "+t._s(t._f("charNameUnit")(t.catalogCharsAssoc[t.uniqueId][e]))+"\n ")])})),t._v(" "),n("th",{attrs:{scope:"col"}},[t._v("ÐаказаÑÑ")])],2)]),t._v(" "),n("tbody",t._l(t.displayedProducts,(function(e,s){return n("tr",{key:"cat_sect_tbl_"+t.uniqueId+"_"+(e?e.ID:s),staticClass:"catalog-product-mc tbl",class:{loading:void 0===e}},[n("th",{staticClass:"left",attrs:{scope:"col"}},void 0===e?[t._m(0,!0)]:[n("div",[n("div",{staticClass:"image-block"},[n("a",{attrs:{href:e.DETAIL_PAGE_URL},on:{click:function(n){return t.onFollow(e)}}},[n("img",{attrs:{src:e.PREVIEW_PICTURE.SRC,alt:e.NAME}})])]),t._v(" "),n("div",{staticClass:"name-sku-block"},[n("a",{staticClass:"name-block",attrs:{href:e.DETAIL_PAGE_URL},on:{click:function(){return t.onFollow(e)}}},[t._v(t._s(e.NAME))]),t._v(" "),e.PROPERTY_ARTICUL_VALUE?n("div",{staticClass:"sku-block"},[n("span",[t._v("ÐÑÑикÑл:")]),t._v(" "),n("span",{staticClass:"sku-number",domProps:{innerHTML:t._s(e.PROPERTY_ARTICUL_VALUE)},on:{click:function(e){return e.preventDefault(),t.$root.skuCopyHandler.apply(null,arguments)}}})]):t._e()])])]),t._v(" "),t._l(t.tableChars,(function(r,i){return void 0===e?n("th",{key:"tbl_chr_"+s+"_"+i,staticClass:"char",attrs:{scope:"col"}},[t._m(1,!0)]):t._e()})),t._v(" "),t._l(t.tableChars,(function(r,i){return void 0!==e?n("th",{key:"tbl_chr_"+s+"_"+i,staticClass:"char",attrs:{scope:"col"}},[n("div",[e.PROPERTY_TTH_VALUES_VALUE[r]?n("span",{domProps:{innerHTML:t._s(e.PROPERTY_TTH_VALUES_VALUE[r].VALUE)}}):n("span",[t._v("-")])])]):t._e()})),t._v(" "),n("th",{staticClass:"right",attrs:{scope:"col"}},void 0===e?[t._m(2,!0)]:[n("div",["Y"!==e.ACTIVE?n("div",{staticClass:"price-row"},[n("div",{staticClass:"oldprc"}),t._v(" "),t._m(3,!0)]):0!=+e.PROPERTY_NOT_AVAILABLE_VALUE?n("div",{staticClass:"price-row"},[n("div",{staticClass:"oldprc"}),t._v(" "),t._m(4,!0)]):n("div",{staticClass:"price-row",class:{"double-currency-mode":!!e.PRICES.BASE.CONVERTED}},[e.PRICES.BASE.HAS_DISCOUNT?n("div",{staticClass:"oldprc"},[n("span",[n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.ORIGINAL.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.PRICE_TEMPLATE.ORIGINAL.CURRENCY_HTML)}})])]):t._e(),t._v(" "),n("div",{staticClass:"prc",class:{red:e.PRICES.BASE.HAS_DISCOUNT}}
1,[e.PROPERTY_NOT_AVAILABLE_VALUE?t._e():n("span",[n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.ORIGINAL.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.PRICE_TEMPLATE.ORIGINAL.CURRENCY_HTML)}})])])]),t._v(" "),"Y"===e.ACTIVE&&0==+e.PROPERTY_NOT_AVAILABLE_VALUE&&e.PRICES.BASE.CONVERTED?n("div",{staticClass:"price-row bottom"},["Y"===e.PRICES.BASE.HAS_DISCOUNT?n("div",{staticClass:"oldprc"},[n("span",[n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.CONVERTED.PRINT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.PRICE_TEMPLATE.CONVERTED.CURRENCY_HTML)}})])]):t._e(),t._v(" "),n("div",{staticClass:"prc",class:{red:"Y"===e.PRICES.BASE.HAS_DISCOUNT}},[n("span",[n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.CONVERTED.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.PRICE_TEMPLATE.CONVERTED.CURRENCY_HTML)}})])])]):t._e(),t._v(" "),"Y"===e.ACTIVE?n("div",{staticClass:"buttons-block"},[1==+e.PROPERTY_NOT_AVAILABLE_VALUE?n("div",{staticClass:"buy-btn-mc"},[n("button",{staticClass:"btn btn-blue prc-request",on:{click:function(n){t.openModalForm(t.priceRequestParam
1s(e))}}},[t._v("\n ÐапÑоÑиÑÑ\n ")])]):t._e(),t._v(" "),0==+e.PROPERTY_NOT_AVAILABLE_VALUE?n("buy-button",{attrs:{"product-id":+e.ID,name:e.NAME,color:"blue"},on:{"before-add-to-cart":t.onBeforeAddToCart,"after-add-to-cart":t.onAfterAddToCart}}):t._e(),t._v(" "),n("div",{staticClass:"compare"},[n("add-to-compare",{attrs:{"product-id":+e.ID,name:e.NAME,"product-data":t.productData(e)}})],1),t._v(" "),n("div",{staticClass:"favourites"},[n("add-to-favourites",{attrs:{"product-id":+e.ID,name:e.NAME,"product-data":t.productData(e)}})],1)],1):t._e()])])],2)})),0)]):t._l(t.displayedProducts,(function(e,s){return n("div",{key:"cat_sect_"+t.uniqueId+"_"+(e?e.ID+"_"+s:s),staticClass:"product outer",class:t.productOuterClass},[void 0===e?n("Preloader",{staticClass:"catalog-product-mc row loading",class:Object.assign({},t.productClass(s,t.displayedProducts.length),{linear:"linear"===t.view.code,block:"blocks"===t.view.code,table:"table"===t.view.code}),attrs:{"view-code":t.view.code}}):n("Product",{class:t.productClass(s,t.displayedProducts.length),attrs:{"unique-id":t.uniqueId,view:t.view.code,data:e,"table-chars":t.tableChars,section:t.sections[+e.IBLOCK_SECTION_ID],brand:t.brands[+e.PROPERTY_BRAND_VALUE]},on:{"before-follow":t.onFollow,"before-add-to-cart":t.onBeforeAddToCart,"after-add-to-cart":t.onAfterAddToCart}})],1)})),t._v(" "),t.showSimilarProducts?n("div",{staticClass:"col-12 similar-products-header"},[n("h2",[t._v("ÐÑÑгие попÑлÑÑнÑе")])]):t._e(),t._v(" "),t._l(t.similarProducts,(function(e,s){return t.showSimilarProducts?n("div",{key:"cat_sect_sim_"+t.uniqueId+"_"+(e?e.ID:s),staticClass:"product outer",class:t.productOuterClass},[void 0===e?n("Preloader",{staticClass:"catalog-product-mc row loading",class:Object.assign({},t.productClass(s,t.similarProducts.length),{linear:"linear"===t.view.code,block:"blocks"===t.view.code,table:"table"===t.view.code}),attrs:{"view-code":t.view.code}}):n("Product",{class:t.productClass(s,t.similarProducts.length),attrs:{"unique-id":t.uniqueId,view:t.view.code,data:e,"table-chars":t.tableChars,section:t.sections[+e.IBLOCK_SECTION_ID],brand:t.brands[+e.PROPERTY_BRAND_VALUE]},on:{"before-follow":t.onFollow,"before-add-to-cart":t.onBeforeAddToCart,"after-add-to-cart":t.onAfterAddToCart}})],1):t._e()}))],2):t._e()}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"image-block"},[n("span",{staticClass:"plug image"})]),t._v(" "),n("div",{staticClass:"name-sku-block"},[n("span",{staticClass:"plug"}),t._v(" "),n("span",{staticClass:"plug"}),t._v(" "),n("span",{staticClass:"plug"})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("span",{staticClass:"plug"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"price-row"},[n("span",{staticClass:"plug"})]),t._v(" "),n("div",{staticClass:"buttons-block"},[n("span",{staticClass:"plug btn"}),t._v(" "),n("span",{staticClass:"plug"}),t._v(" "),n("span",{staticClass:"plug"})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"prc"},[n("span",[t._v("ÐÐµÑ Ð² налиÑии")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"prc"},[n("span",[t._v("Цена по запÑоÑÑ")])])}],!1,null,null,null).exports;function Ji(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ta(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ji(Object(n),!0).forEach((function(e){ea(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ea(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const na={name:"SearchRow",props:{formActionUrl:{type:String,default:"/products/search/"},q:{type:String,default:""}},components:{Product:Gi},data:function(){return{query:"",inputInProcess:!1,lastQuery:"",lastInputTimestamp:0,timeout:1e3,queryResult:{items:{},order:[]},active:!1}},computed:ta(ta({},(0,r.Se)(["isXS","searchLoading"])),{},{result:function(){return this.queryResult.order.map((t=>this.queryResult.items[t]))},needRequest:function(){return this.query.length>2&&!this.inputInProcess&&this.query!==this.lastQuery}}),methods:ta(ta({},(0,r.nv)(["searchProducts"])),{},{search:async function(){if(this.searchLoading)return console.error("search is already in process");try{const{items:t,order:e}=await this.searchProducts(this.query);this.queryResult={items:t,order:e},this.lastQuery=this.query}catch(t){console.error(t)}},onInput:function(){this.inputInProcess=!0,this.lastInputTimestamp=(new Date).getTime(),setTimeout((()=>{(new Date).getTime()-this.lastInputTimestamp>=this.timeout&&(this.inputInProcess=!1,this.needRequest&&this.search())}),this.timeout)},delayedClose:function(){return setTimeout((()=>this.active=!1),250)},clearQuery:function(){this.query=""}}),beforeMount(){this.query=this.q}},sa=na;var ra=n(1982),ia=n.n(ra),aa=(0,bn.Z)(sa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search-field-mc"},[n("div",{staticClass:"search-field-outer"},[n("form",{staticClass:"input-group search-row",attrs:{action:t.formActionUrl}},[n("b-form-input",{attrs:{type:"text",name:"q",placeholder:"ÐоиÑк по ÑайÑÑ"},on:{input:t.onInput,focusin:function(e){t.active=!0},focusout:t.delayedClose},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}}),t._v(" "),n("div",{staticClass:"input-group-append buttons-block"},[t.query.length?n("button",{staticClass:"btn btn-outline-blue clear-button",attrs:{type:"button"}},[n("v-icon",{staticClass:"fo-icon stroke-only cross",attrs:{name:"fo-cross",width:"24",heigth:"24"},on:{click:function(e){return e.preventDefault(),t.clearQuery.apply(null,arguments)}}})],1):t._e(),t._v(" "),n("button",{staticClass:"btn btn-blue search-button",attrs:{type:"submit",disabled:!t.query.length||t.searchLoading}},[t.searchLoading?n("fai",{attrs:{icon:"spinner",spin:""}}):n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-search",width:"24",height:"24","stroke-width":"2px"}})],1)])],1),t._v(" "),t.result.length&&(t.active||t.isXS)?n("div",{staticClass:"search-result"},[n("div",{staticClass:"products-wrapper"},t._l(t.result,(function(t,e){return n("Product",{key:"src_res_"+e,attrs:{data:t,"unique-id":"sr",view:"search"}})})),1),t._v(" "),n("div",{staticClass:"search-result-footer"},[n("a",{attrs:{href:t.formActionUrl+"?q="+t.lastQuery}},[t._v("ÐоказаÑÑ Ð²Ñе ÑезÑлÑÑаÑÑ")])])]):t._e()])])}),[],!1,null,null,null);"function"==typeof ia()&&ia()(aa);const oa=aa.exports;function ca(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function la(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ca(Object(n),!0).forEach((function(e){ua(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ua(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}
1const da={name:"CatalogSearchPage",props:{startData:{type:Object,required:!0},uniqueId:{type:String,default:"search"},recommendsData:{type:Object,default:()=>({})}},components:{Filters:Ii,Controls:ji,Pagination:qi,Products:Qi,SearchField:oa},data:function(){return{baseUrl:`${window.location.pathname}`,controlsData:null,productsData:null,filtersData:null,paginationData:null,filterString:"",routes:{items:["productsData"],items_order:["productsData"],page:["paginationData"],page_cnt:["paginationData"],total:["controlsData"],sort:["controlsData"],view:["controlsData"],categories_f:["filtersData"],brands_f:["filtersData"],properties_f:["filtersData"],faceted_properties_compiled:["filtersData"],properties_f_compiled:["filtersData"],properties_f_compiled_order:["filtersData"],query:["filtersData"],Filters:["filtersData"]}}},computed:la(la({},(0,r.Se)(["catalogControls"])),{},{link:function(){return window.location.origin+window.location.pathname+"?q="+this.startData.query+this.filterString},isEmpty:function(){return void 0===this.startData.items},hasRecommends:function(){return Object.keys(this.recommendsData).length>0&&this.recommendsData.ITEMS&&this.recommendsData.ITEMS.length},recommends:function(){if(!this.hasRecommends)return null;if(this.recommendsData.ITEMS&&this.recommendsData.ITEMS.length>0){const t={};return this.recommendsData.ITEMS.forEach((e=>{t[e.ID]=e})),{items:t,items_order:Object.keys(t)}}return null}}),methods:la(la({},(0,r.nv)(["catalogCreateStorage","catalogInit","catalogSetControls"])),{},{onPageChanged:function(t){let e=this.link;+t>1&&(e+="&PAGEN_1="+t),window.location.href=e},onFilterChanged:function(){let t=this.link;this.startData.page>1&&(t+="&PAGEN_1="+this.startData.page),window.location.href=t}}),beforeMount(){if(this.catalogCreateStorage(this.uniqueId),Object.keys(this.startData).forEach((t=>{this.routes[t]&&this.routes[t].forEach((e=>{this[e]||(this[e]={}),this[e][t]=this.startData[t]}))})),this.controlsData.view){const t=la({},this.catalogControls[this.uniqueId]);t.view=this.controlsData.view,this.catalogSetControls({[this.uniqueId]:t})}}},pa=da;const fa=(0,bn.Z)(pa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-new-section-mc container"},[n("div",{staticClass:"catalog-new-section row"},[n("div",{staticClass:"col-12 d-none d-md-block search-block"},[n("SearchField",{attrs:{q:t.filtersData.query,"form-action-url":"/search/search_results.php"}})],1),t._v(" "),t.isEmpty?n("div",{staticClass:"col-12 controls-block"},[n("div",{staticClass:"catalog-controls-mc row"},[n("div",{staticClass:"d-none d-xl-block col-12 controls"},[n("div",{staticClass:"row"},[t.hasRecommends?n("div",{staticClass:"total-block col-12"},[n("span",{staticClass:"value"},[t._v("РекомендÑем поÑмоÑÑеÑÑ")])]):n("div",{staticClass:"total-block col-12"},[n("span",{staticClass:"value"},[t._v("0")]),t._v(" "),n("span",{staticClass:"text"},[t._v(" ÑоваÑов найдено")])]),t._v(" "),t._m(0)])])])]):n("div",{staticClass:"col-12 controls-block"},[n("Controls",{ref:"controls",staticClass:"catalog-controls-mc row",attrs:{"unique-id":t.uniqueId,"local-data":t.controlsData,display:{total:!0,sort:!0,view:!0},"control-params":{q:t.filtersData.query}}}
1)],1),t._v(" "),!t.isEmpty||t.hasRecommends?n("div",{staticClass:"d-none d-lg-flex col-lg-3 filters-block"},[t.isEmpty?t._e():n("Filters",{ref:"filters",attrs:{"unique-id":t.uniqueId,"local-data":t.filtersData},on:{select:t.onFilterChanged},model:{value:t.filterString,callback:function(e){t.filterString=e},expression:"filterString"}})],1):t._e(),t._v(" "),t.isEmpty?t.hasRecommends?n("div",{staticClass:"col-12 col-lg-9 products-block"},[n("Products",{attrs:{"local-data":t.recommends,"unique-id":t.uniqueId}})],1):t._e():n("div",{staticClass:"col-12 col-lg-9 products-block"},[n("Products",{attrs:{"local-data":t.productsData,"unique-id":t.uniqueId}}),t._v(" "),n("div",{staticClass:"row products-bottom"},[n("div",{staticClass:"col-12 nav-block"},[n("Pagination",{attrs:{"local-data":t.paginationData,"unique-id":t.uniqueId,display:{limit:!1,pages:!0},"base-url":t.baseUrl},on:{"page-changed":t.onPageChanged}})],1),t._v(" "),t._m(1)])],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12"},[e("hr")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 disclaimer-block"},[n("p",[t._v("ÐнÑоÑмаÑÐ¸Ñ Ð¾ ÑенаÑ
и налиÑии ÑоваÑа на ÑайÑе не ÑвлÑеÑÑÑ Ð¾ÑеÑÑой. ХаÑакÑеÑиÑÑики,\n комплекÑаÑÐ¸Ñ Ð¸ внеÑний вид ÑоваÑа могÑÑ Ð±ÑÑÑ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ñ ÑиÑмой-пÑоизводиÑелем без\n пÑедваÑиÑелÑного ÑведомлениÑ.")])])}],!1,null,null,null).exports;function ha(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ma(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ha(Object(n),!0).forEach((function(e){va(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function va(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _a={name:"RequestRegistration",props:{interactive:{type:Boolean,default:!1}},data:function(){return{fields:{name:{name:"ÐмÑ",value:null,state:null,validated:!1,required:!0,placeholder:"",validation:{min:[2]},type:"text"},phone:{name:"ТелеÑон",value:null,state:null,validated:!1,required:!0,placeholder:"+7 (___) ___-__-__",validation:{phone:[]},type:"tel"},email:{name:"E-mail",value:null,state:null,validated:!1,required:!0,placeholder:"",validation:{email:[]},type:"email"},password:{name:"ÐÑидÑмайÑе паÑолÑ",value:null,state:null,validated:!1,required:!0,placeholder:"",validation:{password:[]},type:"password"},passwordConfirm:{name:"ÐодÑвеÑдиÑе паÑолÑ",value:null,state:null,validated:!1,required:!0,placeholder:"",validation:{equal:[()=>this.fields.password]},type:"password"},processingConsent:{name:this.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML,value:null,state:null,validated:!1,required:!0,type:"checkbox"},marketingConsent:{name:this.$root.MARKETING_CONSENT.CHECKBOX_LABEL_HTML,value:null,state:null,validated:!1,required:!1,type:"checkbox"}},error:null,message:null,loading:!1}},computed:{invalidFields:function(){return Object.assign({},...Object.keys(this.fields).map((t=>this.fields[t].validated&&!1!==this.fields[t].state?{}:{[t]:this.fields[t]})))},isValid:function(){return!Object.keys(this.invalidFields).length}},methods:ma(ma({},(0,r.nv)(["authSignUpInit"])),{},{setState:Kn,onSubmit:async function(){this.loading=!0,this.error=this.message=null;const t=Object.assign(...Object.keys(this.fields).map((t=>({[t]:this.fields[t].value}))));t.processingConsent=this.fields.processingConsent.value&&this.fields.processingConsent.name||"",t.marketingConsent=this.fields.marketingConsent.value&&this.fields.marketingConsent.name||"";const e=await this.authSignUpInit(t);e.success?(e.message&&(this.message=e.message),this.$emit("success",e)):(e.message&&(this.error=e.message),this.$emit("error",e)),this.loading=!1}}),mounted(){Qn(".request-registration-mc")}};const ba=(0,bn.Z)(_a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form",{staticClass:"request-registration-mc row",on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12 mb-3"},[n("b-alert",{attrs:{variant:"success",show:!!t.message},domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("b-alert",{attrs:{variant:"danger",show:!!t.error},domProps:{innerHTML:t._s(t.error)}})],1),t._v(" "),t._l(t.fields,(function(e,s){return n("b-form-group",{key:t.$id("rrf_"+s),staticClass:"col-12",attrs:{state:e.state},scopedSlots:t._u(["checkbox"!==e.type?{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(e.name)}}),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])]},proxy:!0}:null],null,!0)},[t._v(" "),"checkbox"===e.type?n("b-form-checkbox",{attrs:{id:t.$id(s),state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}},[n("span",{domProps:{innerHTML:t._s(e.name)}}),t._v(" "),e.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()]):n("b-form-input",{attrs:{type:e.type,name:s,state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),"checkbox"!==e.type&&e.errorMsg?n("b-form-invalid-feedback",{domProps:{innerHTML:t._s(e.errorMsg)}}):t._e()],1)})),t._v(" "),n("b-form-group",{staticClass:"col-12 buttons-block"},[n("button",{staticClass:"btn btn-green",attrs:{type:"submit",disabled:!t.isValid||t.loading}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n РегиÑÑÑаÑиÑ\n ")],1)])],2)}),[],!1,null,null,null).exports;function ya(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ca(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ya(Object(n),!0).forEach((function(e){Oa(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oa(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const wa={name:"SignUp",props:{interactive:{type:Boolean,default:!1}},components:{SignUpInit:ba,SignInByConfirmationCode:ms},data:function(){return{stage:0,stages:{INIT:0,CONFIRM:1,SUCCESS:2},confirmationId:null,rollbackTimer:null,rollbackTime:2}},computed:Ca(Ca({},(0,r.Se)(["userGetUserData"])),{},{name:function(){return this.userGetUserData?.NAME||""}}),methods:{onSignUpInitSuccess:function(t){if(!t.confirmationId)throw new Error("Required field confirmationId not found in response");this.confirmationId=t.confirmationId,t.password&&(this.generatedPassword.value=t.password),this.stage=this.stages.CONFIRM},onSignUpInitError:function(t){},onSignInByConfirmationCodeSuccess:function(t){this.stage=this.stages.SUCCESS,this.delayAndExecute((()=>this.rollbackTime--),(()=>this.onSuccess()),this.rollbackTime,1e3)},onSignInByConfirmationCodeError:function(t){this.$emit("error")},onSignInByConfirmationCodeReset:function(t){this.confirmationId=t.confirmationId,this.$emit("reset",t)},onCancel:function(){this.$emit("cancel"),this.stage=this.stages.INIT},onSuccess:function(){this.$emit("success"),this.stage=this.stages.INIT},delayAndExecute:ts}};const Ea=(0,bn.Z)(wa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"registration-mc row"},[t.stage===t.stages.INIT?n("div",{staticClass:"col-12 request-block"},[n("SignUpInit",{on:{success:t.onSignUpInitSuccess,error:t.onSignUpInitError}})],1):t.stage===t.stages.CONFIRM?n("div",{staticClass:"col-12 confirm-block"},[n("SignInByConfirmationCode",{attrs:{"confirmation-id":t.confirmationId},on:{success:t.onSignInByConfirmationCodeSuccess,error:t.onSignInByConfirmationCodeError,reset:t.onSignInByConfirmationCodeReset,cancel:t.onCancel}})],1):t.stage===t.stages.SUCCESS?n("div",{staticClass:"col-12 success-block"},[t._v("\n ÐдÑавÑÑвÑйÑе, "+t._s(t.name)+"!\n "),n("br"),t._v("\n РегиÑÑÑаÑÐ¸Ñ Ð¿ÑоÑла ÑÑпеÑно.\n "),n("br"),t._v("\n ÐÑ Ð°Ð²ÑоÑизованÑ\n ")]):t._e()])}),[],!1,null,null,null).exports;function Pa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Sa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pa(Object(n),!0).forEach((function(e){Ia(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ia(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ta={name:"SignInSignUp",props:{interactive:{type:Boolean,default:!1}},components:{SignIn:is,SignUp:Ea,RestorePassword:Es},data:function(){return{stages:{SIGN_IN:0,RESTORE:1},stage:0}},computed:Sa({},(0,r.Se)(["userGetUserData","userIsAuthorized"])),methods:Sa(Sa({},(0,r.nv)(["userSetUserData","cartGetListAction","favouritesOnAfterLogin"])),{},{onSignInSuccess:async function(t){this.interactive&&(await this.cartGetListAction(),await this.favouritesOnAfterLogin()),this.onSuccess(t)},onSignInError:function(t){},onRestorePasswordSuccess:function(t){this.onSuccess(t)},onRestorePasswordError:function(t){},onSignUpSuccess:async function(t){this.interactive&&(await this.cartGetListAction(),await this.favouritesOnAfterLogin()),this.onSuccess(t)},onSignUpError:function(t){},onSuccess:function(t){this.interactive||window.location.reload(),this.$emit("success",t)}})};const Da=(0,bn.Z)(Ta,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login-registration-mc container-fluid"},[n("b-tabs",{staticClass:"row",attrs:{justified:"","no-nav-style":"",align:"center","content-class":"col-12","nav-wrapper-class":"nav-wrapper col-12","nav-class":"row"}},[n("b-tab",{staticClass:"row",attrs:{title:"ÐÑ
од","title-item-class":"col p-0",active:""}},[t.stage===t.stages.SIGN_IN?n("div",{staticClass:"col-12"},[n("SignIn",{attrs:{interactive:t.interactive,"on-success":t.onSignInSuccess,"on-error":t.onSignInError},on:{forgot:function(e){t.stage=t.stages.RESTORE}}})],1):t.stage===t.stages.RESTORE?n("div",{staticClass:"col-12"},[n("RestorePassword",{on:{success:t.onRestorePasswordSuccess,error:t.onRestorePasswordError,cancel:function(e){t.stage=t.stages.SIGN_IN}}})],1):t._e()]),t._v(" "),n("b-tab",{staticClass:"row",attrs:{title:"РегиÑÑÑаÑиÑ","title-item-class":"col p-0"}},[n("div",{staticClass:"col-12"},[n("SignUp",{attrs:{interactive:t.interactive},on:{success:t.onSignUpSuccess,error:t.onSignUpError}})],1)])],1)],1)}),[],!1,null,null,null).exports;const Aa={name:"OrderItem",props:{startData:{type:Object,required:!0}},data:function(){return{open:!1}},computed:{orderId:function(){return this.startData.ID},accountNumber:function(){const t=String(this.startData.ACCOUNT_NUMBER);if(/^\w\d+$/.test(t)){return`<span class="prefix">${t.slice(0,1)}</span><span class="year">${t.slice(1,3)}</span><span class="numbers">${t.slice(3)}</span>`}return t},date:function(){return this.startData.DATE_INSERT.split(" ")[0]},quantity:function(){return this.items.reduce(((t,e)=>t+Number(e.QUANTITY)),0)},quantityText:function(){const t=String(this.quantity);return/(11|12|13|14)$/.test(t)?"ÑоваÑов":/1$/.test(t)?"ÑоваÑ":/[234]$/.test(t)?"ÑоваÑа":"ÑоваÑов"},price:function(){return+this.startData.PRICE},itemsPrice:function(){return Math.round(this.items.reduce((function(t,e){return+e.PRICE*+e.QUANTITY}),0))},deliveryPrice:function(){return+this.startData.PRICE_DELIVERY},items:function(){return this.startData.ITEMS},contactPerson:function(){return void 0!==this.startData.PROPS.CONTACT_PERSON&&this.startData.PROPS.CONTACT_PERSON.VALUE},email:function(){return void 0!==this.startData.PROPS.EMAIL&&this.startData.PROPS.EMAIL.VALUE},phone:function(){return void 0!==this.startData.PROPS.P_TEL&&this.startData.PROPS.P_TEL.VALUE},fullAddress:function(){if(!this.address)return!1;let t=this.address;return this.city?(t+=" г."+this.city,this.street?(t+=" Ñл."+this.street,this.house?(t+=" д."+this.house,this.housing?(t+=" коÑп."+this.housing,this.office?(t+=" пом."+this.office,t.trim()):t):t):t):t):t},address:function(){return void 0!==this.startData.PROPS.ADDRESS&&this.startData.PROPS.ADDRESS.VALUE},city:function(){return void 0!==this.startData.PROPS.CITY&&this.startData.PROPS.CITY.VALUE},street:function(){return void 0!==this.startData.PROPS.STREET&&this.startData.PROPS.STREET.VALUE},house:function(){return void 0!==this.startData.PROPS.HOME&&this.startData.PROPS.HOME.VALUE},housing:function(){return void 0!==this.startData.PROPS.KORPUS&&this.startData.PROPS.KORPUS.VALUE},office:function(){return void 0!==this.startData.PROPS.PLACE&&this.startData.PROPS.PLACE.VALUE},deliveryComment:function(){return void 0!==this.startData.PROPS.delivery_comment&&this.startData.PROPS.delivery_comment.VALUE},bill:function(){return void 0!==this.startData.PROPS.BILL&&this.startData.PROPS.BILL.VALUE},ttn:function(){return void 0!==this.startData.PROPS.TTN&&this.startData.PROPS.TTN.VALUE},shipped:function(){return void 0!==this.startData.PROPS.shipped&&this.startData.PROPS.shipped.VALUE},payed:function(){return"Y"===this.startData.PROPS.PAYED},payedSum:function(){return void 0!==this.startData.PROPS.PAY_SUM&&this.startData.PROPS.PAY_SUM.VALUE},paymentTypeId:function(){return this.startData.PAY_SYSTEM_ID},paymentType:function(){return this.startData.PAY_SYSTEM_NAME},canceled:function(){return"Y"===this.startData.CANCELED},status:function(){return this.startData.STATUS}},methods:{copyOrder:function(){window.location.href="/personal/?copyOrder="+this.orderId}},components:{},beforeMount(){}},ka=Aa;const ja=(0,bn.Z)(ka,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"order-item-mc"}
1,[n("div",[t._e(),t._v(" "),n("div",{staticClass:"order__top"},[n("div",{staticClass:"order__num",domProps:{innerHTML:t._s(t.accountNumber)}}),t._v(" "),n("div",{staticClass:"order__wrdata"},[n("div",{staticClass:"order__data"},[t._v(t._s(t.date))]),t._v(" "),n("div",{staticClass:"order__quantity"},[t._v(t._s(t.quantity)+" "+t._s(t.quantityText))]),t._v(" "),n("div",{staticClass:"order__price"},[t._v(t._s(t._f("printPrice")(t.price))+" ÑÑб.")])]),t._v(" "),n("div",{staticClass:"order-status"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"order-status__status"},[t.payed?n("div",{staticClass:"order-status__val order-status__val_3"},[t._v("ÐплаÑен")]):t.canceled?n("div",{staticClass:"order-status__val order-status__val_2"},[t._v("ÐÑменен")]):n("div",{staticClass:"order-status__val order-status__val_1"},[t._v("ÐÐ¶Ð¸Ð´Ð°ÐµÑ Ð¾Ð¿Ð»Ð°ÑÑ")])]),t._v(" "),n("div",{staticClass:"order-status__but"},[n("b-button",{attrs:{variant:"blue"},on:{click:function(e){return e.preventDefault(),t.copyOrder.apply(null,arguments)}}},[t._v("ÐовÑоÑиÑÑ Ð·Ð°ÐºÐ°Ð·")]),t._v(" "),n("b-button",{attrs:{variant:"wite"},on:{click:function(e){e.preventDefault(),t.open=!t.open}}},[t.open?n("span",[t._v("СкÑÑÑÑ Ð´ÐµÑали")]):n("span",[t._v("ÐоказаÑÑ Ð´ÐµÑали")])])],1)])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"order-info"},[n("div",{staticClass:"order-info__title"},[t._v("ÐнÑоÑмаÑÐ¸Ñ Ð¾ заказе â "+t._s(t.orderId))]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col order-info__user"},[n("div",{staticClass:"order-info__tcol"},[t._v("ÐолÑÑаÑелÑ")]),t._v(" "),t.contactPerson?n("p",[t._v(t._s(t.contactPerson))]):t._e(),t._v(" "),t.email?n("p",[t._v(t._s(t.email))]):t._e(),t._v(" "),t.phone?n("p",[t._v(t._s(t.phone))]):t._e()]),t._v(" "),n("div",{staticClass:"col order-info__dost"},[n("div",{staticClass:"order-info__tcol"},[t._v("ÐоÑÑавка")]),t._v(" "),t.fullAddress?n("p",[t._v(t._s(t.fullAddress))]):t._e(),t._v(" "),t.deliveryComment?n("p",[t._v(t._s(t.deliveryComment))]):t._e(),t._v(" "),t.paymentType?n("p",[t._v("ÐплаÑа - "+t._s(t.paymentType))]):t._e()]),t._v(" "),n("div",{staticClass:"col order-info__carts"},[n("div",{staticClass:"order-info__tcol"},[t._v("ТоваÑÑ")]),t._v(" "),n("div",{staticClass:"order-info__orders"},t._l(t.items,(function(e,s){return n("div",{staticClass:"order-info__item"},[n("a",{attrs:{href:e.DETAIL_PAGE_URL}},[t._v(t._s(e.NAME))])])})),0)]),t._v(" "),n("div",{staticClass:"col order-info__price"},[n("div",{staticClass:"order-info__tcol"},[t._v("СÑоимоÑÑÑ")]),t._v(" "),n("p",[t._v("ТоваÑÑ: "+t._s(t._f("printPrice")(t.itemsPrice))+" ÑÑб.")]),t._v(" "),n("p",[t._v("ÐоÑÑавка:\n "),t.deliveryPrice?n("span",[t._v(t._s(t._f("printPrice")(t.deliveryPrice))+" ÑÑб.")]):n("span",[t._v("без доÑÑавки")])]),t._v(" "),n("p",[t._v("ÐÑого: "+t._s(t._f("printPrice")(t.price))+" ÑÑб.")])])]),t._v(" "),n("b-button",{attrs:{variant:"blue"}},[t._v("ÐÑениÑÑ Ð·Ð°ÐºÐ°Ð·")])],1)])])}),[],!1,null,null,null).exports;function La(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ra(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?La(Object(n),!0).forEach((function(e){Ma(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ma(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const xa={name:"PersonalOrders",props:{startData:{type:[Array,Object],required:!0}},components:{OrderItem:ja},data:function(){return{}},computed:Ra(Ra({},(0,r.Se)(["userGetRRSessionId"])),{},{orders:function(){return this.startData}}),methods:{}};const Na=(0,bn.Z)(xa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal-orders-mc"},[t.orders.length>0?n("div",[n("div",{staticClass:"wrTitle"},[n("h2",{staticClass:"h2"},[t._v("ÐаказÑ")]),n("span",{staticClass:"quantity quantity_blue"},[t._v(t._s(t.orders.length))])]),t._v(" "),n("div",{staticClass:"orders"},[t._m(0),t._v(" "),t._l(t.orders,(function(t,e){return n("div",{key:"pa_ord_"+e,staticClass:"order"},[n("OrderItem",{attrs:{"start-data":t}})],1)}))],2)]):n("div",{staticClass:"no-orders mt-5"},[n("h2",[t._v("У Ð²Ð°Ñ Ð¿Ð¾ÐºÐ° Ð½ÐµÑ Ð½Ð¸ одного заказа")])]),t._v(" "),n("div",{staticClass:"recommends-section"},[t._m(1),t._v(" "),n("div",{staticClass:"body"},[n("recommends-block",{attrs:{"unique-id":"recom-2",methods:["personalized-popular","random-by-section"],params:[[t.userGetRRSessionId,0],[37416,0]]}})],1)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ordersHeader"},[n("div",{staticClass:"ordersHeader__num"},[t._v("â Ðаказа")]),t._v(" "),n("div",{staticClass:"ordersHeader__data"},[t._v("ÐаÑа")]),t._v(" "),n("div",{staticClass:"ordersHeader__quantity"},[t._v("ÐолиÑеÑÑво")]),t._v(" "),n("div",[t._v("СÑоимоÑÑÑ")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("h2",[t._v("РекомендаÑии Ð´Ð»Ñ Ð²Ð°Ñ")])])}],!1,null,null,null).exports;function Ua(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function qa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ua(Object(n),!0).forEach((function(e){Ha(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ha(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Fa={name:"PersonalFavourites",props:{},components:{Product:Br},data:function(){return{loading:!1,filter:""}},computed:qa(qa({},(0,r.Se)(["favouritesItems"])),{},{items:function(){const t=this.favouritesItems.order.map((t=>this.favouritesItems.items[t]));return this.filter.length?t.filter((t=>{if(!this.filter)return!0;const e=new RegExp(this.filter,"i");return e.test(t.ID)||e.test(t.NAME)||e.test(t.PROPERTY_ARTICUL_VALUE)})):t},count:function(){return this.favouritesItems.order.length}}),methods:qa(qa({},(0,r.nv)(["favouritesRemove"])),{},{clear:async function(){this.loading=!0;await this.favouritesRemove(new FormData);return this.loading=!1,!0}})},$a=Fa;const Va=(0,bn.Z)($a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal-favourites-mc"},[n("div",{staticClass:"wrTitle"},[n("h2",{staticClass:"h2"},[t._v("ÐзбÑанное")]),t._v(" "),n("span",{staticClass:"quantity quantity_blue"},[t._v(t._s(t.count))]),t._v(" "),n("a",{staticClass:"clear-wishlist",attrs:{href:"#"}},[t._v("ÐÑиÑÑиÑÑ Ð¸Ð·Ð±Ñанное")])]),t._v(" "),t.items.length>0||t.filter.length?n("div",{staticClass:"search-wishlist"},[n("b-form",{staticClass:"search-input search-input_wishlist"},[n("b-form-input",{attrs:{type:"text",placeholder:"ÐоиÑк в избÑанном"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}})],1),t._v(" "),n("a",{staticClass:"clear-wishlist",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.clear.apply(null,arguments)}}},[t.loading?n("fai",{staticStyle:{color:"darkgrey"},attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),n("span",[t._v("ÐÑиÑÑиÑÑ Ð¸Ð·Ð±Ñанное")])],1)],1):t._e(),t._v(" "),0===t.items.length&&t.filter?n("div",{staticClass:"row catalog"},[t._m(0)]):0===t.items.length?n("div",{staticClass:"row catalog"},[t._m(1)]):n("div",{staticClass:"row catalog"},t._l(t.items,(function(t,e){return n("div",{key:"fvtm_"+t.ID,staticClass:"inner col-12 col-md-4 col-lg-3 col-xl-2"}
1,[n("Product",{attrs:{"start-data":t,"img-lazy-load":!1}})],1)})),0)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12"},[n("h2",[t._v("ÐиÑего не найдено")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12"},[n("h2",[t._v("ÐÑ ÐµÑе не добавили ни одного ÑоваÑа")])])}],!1,null,null,null).exports;function Ba(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ga(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ya={name:"PersonalBonuses",props:[],data:function(){return{}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ba(Object(n),!0).forEach((function(e){Ga(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.Se)(["userGetRRSessionId"])),methods:{}};const za=(0,bn.Z)(Ya,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal-bonuses-main-container"},[t._m(0),t._v(" "),n("p",[t._v("Ðам доÑÑÑÐ¿Ð½Ñ Ð¿ÐµÑÑоналÑнÑе пÑедложениÑ:")]),t._v(" "),t._m(1),t._v(" "),n("div",{staticClass:"recommends-section"},[t._m(2),t._v(" "),n("div",{staticClass:"body"},[n("recommends-block",{attrs:{"unique-id":"recom-0",methods:["personalized-latest","random-by-section"],params:[[t.userGetRRSessionId,0],[37416,0]]}})],1)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrTitle"},[n("h2",{staticClass:"h2"},[t._v("ÐонÑÑÑ")]),n("span",{staticClass:"quantity quantity_red"},[t._v("2")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row bonuses"},[n("div",{staticClass:"col-12 col-md-6 bonus"},[n("div",{staticClass:"bonus__thumb",staticStyle:{"background-color":"gray"}},[n("div",{staticClass:"bonus__thumb-title"},[t._v("ÐеÑплаÑÐ½Ð°Ñ Ð´Ð¾ÑÑавка")]),t._v(" "),n("div",{staticClass:"bonus__thumb-date"},[t._v("до 30 иÑнÑ")])]),t._v(" "),n("div",{staticClass:"bonus__caption"},[n("div",{staticClass:"bonus__title"},[t._v("ÐеÑплаÑÐ½Ð°Ñ Ð´Ð¾ÑÑавка в иÑне")]),t._v(" "),n("div",{staticClass:"bonus__text"},[t._v("ÐÑиÑÑное дополнение к ÐаÑÐµÐ¼Ñ Ð·Ð°ÐºÐ°Ð·Ñ. ÐÑедложение дейÑÑвÑÐµÑ Ð¿Ð¾ вÑей РоÑÑии и\n доÑÑÑпно до 30 иÑÐ½Ñ Ð²ÐºÐ»ÑÑиÑелÑно.\n ")])]),t._v(" "),n("a",{staticClass:"btn btn_light",attrs:{href:"#"}},[t._v("ÐодÑобнее")])]),t._v(" "),n("div",{staticClass:"col-12 col-md-6 bonus"},[n("div",{staticClass:"bonus__thumb",staticStyle:{"background-color":"gray"}},[n("div",{staticClass:"bonus__thumb-title"},[t._v("Скидка")]),t._v(" "),n("div",{staticClass:"bonus__thumb-subtitle"},[t._v("на вÑе каÑегоÑии ÑоваÑов")]),t._v(" "),n("div",{staticClass:"bonus__thumb-date"},[t._v("до 30 иÑнÑ")])]),t._v(" "),n("div",{staticClass:"bonus__caption"},[n("div",{staticClass:"bonus__title"},[t._v("Скидка на вÑе каÑегоÑии ÑоваÑов")]),t._v(" "),n("div",{staticClass:"bonus__text"},[t._v("ÐÑиÑÑное дополнение к ÐаÑÐµÐ¼Ñ Ð·Ð°ÐºÐ°Ð·Ñ. ÐÑедложение дейÑÑвÑÐµÑ Ð¿Ð¾ вÑей РоÑÑии и\n доÑÑÑпно до 30 иÑÐ½Ñ Ð²ÐºÐ»ÑÑиÑелÑно.\n ")])]),t._v(" "),n("a",{staticClass:"btn btn_light",attrs:{href:"#"}},[t._v("ÐодÑобнее")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("h2",[t._v("РекомендаÑии Ð´Ð»Ñ Ð²Ð°Ñ")])])}],!1,null,null,null).exports;function Za(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Wa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Za(Object(n),!0).forEach((function(e){Ka(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ka(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xa={name:"ChangePassword",props:{},data:function(){return{message:{value:null,type:"success"},loading:!1,fields:{old_password:{name:"ÐейÑÑвÑÑÑий паÑолÑ",type:"password",code:"old_password",value:null,required:!0,validated:!1,placeholder:"",blocked:!1,state:null},new_password:{name:"ÐовÑй паÑолÑ",type:"password",code:"new_password",value:null,required:!0,validated:!1,placeholder:"",blocked:!1,state:null,validation:{min:[6],password:[]}},confirm_password:{name:"ÐовÑй паÑÐ¾Ð»Ñ ÐµÑе Ñаз",type:"password",code:"confirm_password",value:null,required:!0,validated:!1,placeholder:"",blocked:!1,state:null,validation:{equal:[function(){return this.fields.new_password}.bind(this)]}}}}},computed:{isValid:function(){return 0===Object.values(this.fields).filter((function(t){return!t.state})).length}},methods:Wa(Wa({},(0,r.nv)(["userChangePassword"])),{},{setState:function(t){return Kn.call(this,t)},submit:async function(){if(!this.isValid)return!1;this.loading=!0,this.message.value=null;const t=new FormData;return Object.values(this.fields).forEach((function(e){t.append(e.code,e.value)})),this.userChangePassword(t).then(function(t){t.message&&(this.message.value=t.message,this.message.type=t.success?"success":"danger"),this.clear(),this.loading=!1}.bind(this))},clear:function(){Object.values(this.fields).forEach((function(t){t.value=null,t.validated=!1,t.state=null}))}})};const Qa=(0,bn.Z)(Xa,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form",{staticClass:"row change-password-mc",on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("div",{staticClass:"col-12 header"},[t._v("Смена паÑолÑ")]),t._v(" "),n("b-form-text",{staticClass:"col-12"},[t.message.value?n("alert",{attrs:{type:t.message.type}},[t._v(t._s(t.message.value))]):t._e()],1),t._v(" "),t._l(t.fields,(function(e,s){return n("b-form-group",{key:"pa_cps_"+s,staticClass:"col-12 col-md-4",attrs:{state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v(t._s(e.name)),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:e.type,name:e.code,placeholder:e.placeholder,disabled:e.blocked,state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)})),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.isValid,expression:"isValid"}],staticClass:"col-12 col-md-4 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.isValid||t.loading}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{icon:"spinner",spin:""}}),t._v(" "),n("span",[t._v("ÐзмениÑÑ Ð¿Ð°ÑолÑ")])],1)],1)],2)}),[],!1,null,null,null).exports;function Ja(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function to(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Ja(Object(n),!0).forEach((function(e){eo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function eo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const no={name:"PersonalRequisites",props:{},components:{DaDataAutocompleteField:Ys},data:function(){return{message:{value:null,type:"success"},loading:!1,requisites:{inn:{name:"ÐÐÐ",type:"text",value:null,code:"inn",required:!1,validated:!1,state:null,validation:{digits:[],min:[10],max:[12]},dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"party",minSymbols:3},lastInput:null,bxCode:"UF_ORG_INN"},kpp:{name:"ÐÐÐ",type:"text",value:null,code:"kpp",required:!1,validated:!1,state:null,bxCode:"UF_ORG_KPP",validation:{digits:[]}},name:{name:"Ðазвание компании",type:"text",value:null,code:"name",required:!1,validated:!1,state:null,dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"party",minSymbols:3},lastInput:null,bxCode:"UF_ORG_NAME"},rs:{name:"РаÑÑеÑнÑй ÑÑеÑ",type:"text",value:null,code:"rs",required:!1,validated:!1,bxCode:"UF_ORG_RS",validation:{digits:[],length:[20]}},bank:{name:"Ðанк",type:"text",value:null,code:"bank",required:!1,validated:!1,state:null,dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"bank",minSymbols:3},lastInput:null,bxCode:"UF_ORG_BANK"},ks:{name:"ÐоÑÑеÑпонденÑÑкий ÑÑеÑ",type:"text",value:null,code:"ks",required:!1,validated:!1,bxCode:"UF_ORG_KS",validation:{digits:[],length:[20]}},bik:{name:"ÐÐÐ",type:"text",value:null,code:"bik",required:!1,validated:!1,state:null,dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"bank",minSymbols:1},lastInput:null,bxCode:"UF_ORG_BIK",validation:{digits:[],length:[9]}},okpo:{name:"ÐÐÐÐ",type:"text",value:null,code:"okpo",required:!1,validated:!1,state:null,bxCode:"UF_ORG_OKPO",validation:{digits:[],min:[8],max:[10]}},address:{name:"ЮÑидиÑеÑкий адÑеÑ",type:"textarea",value:null,code:"address",required:!1,validated:!1,state:null,bxCode:"UF_ORG_ADDRESS"}}}},computed:to(to({},(0,r.Se)(["userGetUserData","userIsAuthorized"])),{},{hasDifference:function(){const t=this.userGetUserData;return Object.values(this.requisites).filter((function(e){return e.value!==t[e.bxCode]})).length>0},isValid:function(){return 0===Object.values(this.requisites).filter((function(t){return!1===t.state})).length}}),methods:to(to({},(0,r.nv)(["useVueCartApi","userUpdateFields"])),{},{setState:function(t){const e=this.userGetUserData;return String(t.value)===String(e[t.bxCode])?(t.validated=!1,t.state=null,t.errorMsg=null,t):Kn.call(this,t)},validate:function(){Object.values(this.requisites).forEach(function(t){return this.setState(t)}.bind(this))},getSuggestions:function(t){t.dropdown.loading=!0;const e={action:"get-suggestions",method:t.dropdown.method,query:t.value};this.useVueCartApi(e).then((function(e){e.data&&e.data.length>0&&(t.dropdown.content=e.data.map((e=>to(to({},e),{},{selected:!1,method:t.dropdown.method}))),t.dropdown.expand=!0,t.dropdown.content[0].selected=!0),t.dropdown.loading=!1})).catch((function(e){console.error("error",e),t.dropdown.loading=!1}))},selectSuggestion:function(t,e){t.dropdown.content=t.dropdown.content.map((function(t){return t.selected=t===e,t}))},onInput:function(t){this.setState(t),void 0!==t.lastInput&&(t.lastInput=Date.now(),void 0!==t.dropdown&&t.value&&t.value.length>=t.dropdown.minSymbols&&setTimeout(function(){Date.now()-t.lastInput>
1=t.dropdown.timeout&&this.getSuggestions(t)}.bind(this),t.dropdown.timeout))},onFocus:function(t){setTimeout(function(){void 0!==t.dropdown&&(t.dropdown.expand=!0)}.bind(this),200)},onArrowDown:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){let e,n=this.requisites[t].dropdown.content,s=n.length-1;n.forEach((function(t,n){t.selected&&(e=n,t.selected=!1)})),e===s?n[0].selected=!0:n[e+1].selected=!0}}.bind(this))},onArrowUp:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){let e,n=this.requisites[t].dropdown.content;n.forEach((function(t,n){t.selected&&(e=n,t.selected=!1)})),0===e?n[n.length-1].selected=!0:n[e-1].selected=!0}}.bind(this))},onEnter:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){this.requisites[t].dropdown.content.forEach(function(t,e){t.selected&&this.onAutoComplete(t)}.bind(this))}}.bind(this))},closeDropdowns:function(){Object.keys(this.requisites).forEach(function(t){void 0!==this.requisites[t].dropdown&&(this.requisites[t].dropdown.expand=!1)}.bind(this))},onAutoComplete:function(t){"party"===t.method&&(this.requisites.name.value=t.value,this.requisites.inn.value=t.data.inn,this.requisites.kpp.value=t.data.kpp,this.requisites.okpo.value=t.data.okpo,this.requisites.address.value=t.data.address.value),"bank"===t.method&&(this.requisites.bank.value=t.value,this.requisites.bik.value=t.data.bic,this.requisites.ks.value=t.data.correspondent_account),this.closeDropdowns(),this.validate()},submit:async function(){if(!this.isValid)return!1;this.loading=!0,this.message.value=null;const t=new FormData;Object.values(this.requisites).forEach((function(e){e.state&&t.append(e.bxCode,e.value)}));const e=await this.userUpdateFields(t);e.message&&(this.message.value=e.message,this.message.type=e.success?"success":"danger"),e.success&&Object.values(this.requisites).forEach(function(t){t.value=this.userGetUserData[t.bxCode],t.validated=!1,t.state=null,t.errorMsg=null}.bind(this)),this.loading=!1},clear:function(){Object.values(this.requisites).forEach((function(t){t.value=null,t.errorMsg=null,t.state=null,t.validated=!1}))}}),beforeMount(){const t=this.userGetUserData;Object.values(this.requisites).forEach((function(e){t[e.bxCode]&&(e.value=t[e.bxCode])}))},mounted(){setTimeout(function(){document.addEventListener("click",this.closeDropdowns),document.addEventListener("keydown",function(t){"ArrowDown"===t.key&&this.onArrowDown(),"ArrowUp"===t.key&&this.onArrowUp(),"Enter"===t.key&&this.onEnter()}.bind(this))}.bind(this),200)}};function so(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ro(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?so(Object(n),!0).forEach((function(e){io(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function io(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ao={name:"PersonalProfile",props:[],components:{ChangePassword:Qa,Requisites:(0,bn.Z)(no,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form",{staticClass:"row requisites-mc",on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[t.message.value?n("b-alert",{attrs:{type:t.message.type}},[t._v(t._s(t.message.value))]):t._e()],1),t._v(" "),t._l(t.requisites,(function(e,s){return n("div",{key:"pa_rqs_"+s,staticClass:"col-12 col-md-6"},[e.dropdown?n("DaDataAutocompleteField",{attrs:{name:e.code,label:e.name,placeholder:e.placeholder,required:e.required,readonly:e.blocked,state:e.state,errorMsg:e.errorMsg,method:e.dropdown.method,timeout:e.dropdown.timeout,minSymbols:e.dropdown.minSymbols},on:{input:function(n){return t.onInput(e)},autocomplete:t.onAutoComplete},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}):n("b-form-group",{attrs:{state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(e.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!0)},[t._v(" "),"textarea"===e.type?n("b-form-textarea",{attrs:{name:e.code,placeholder:e.placeholder,readonly:e.blocked,state:e.state},on:{input:function(n){return t.onInput(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}):n("b-form-input",{attrs:{type:e.type,name:e.code,placeholder:e.placeholder,readonly:e.blocked,state:e.state},on:{input:function(n){return t.onInput(e)},focus:function(n){return n.stopPropagation(),t.onFocus(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)],1)})),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.hasDifference,expression:"hasDifference"}],staticClass:"col-12 col-md-6 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.isValid||!t.hasDifference||t.loading}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{icon:"spinner",spin:""}}),t._v("\n ÐбновиÑÑ ÑеквизиÑÑ\n ")],1)],1)],2)}),[],!1,null,null,null).exports},data:function(){return{type:1,userData:null,loading:{photo:!1,fullName:!1,email:!1,phone:!1,country:!1},stage:{phone:0,email:0},message:{photo:{value:null,type:"success"},fullName:{value:null,type:"success"},phone:{value:null,type:"success"},email:{value:null,type:"success"},country:{value:null,type:"success"}},agree:{fullName:null,phone:null,email:null},photo:{name:"ÐагÑÑзиÑе ÑоÑо",type:"file",code:"photo",placeholder:"ÐагÑÑзиÑе ÑоÑо",value:null,required:!1,validated:!1,blocked:!1,state:null,bxCode:"PERSONAL_PHOTO",validation:{image:[]}},fullName:{lastName:{name:"ФамилиÑ",type:"text",code:"lastName",placeholder:"",value:null,required:!1,validated:!1,blocked:!1,state:null,bxCode:"LAST_NAME"},name:{name:"ÐмÑ",type:"text",code:"name",placeholder:"",value:null,required:!0,validated:!1,blocked:!1,state:null,bxCode:"NAME"},secondName:{name:"ÐÑÑеÑÑво",type:"text",code:"secondName",placeholder:"",value:null,required:!1,validated:!1,blocked:!1,state:null,bxCode:"SECOND_NAME"}},phone:{name:"ТелеÑон",type:"tel",code:"phone",placeholder:"+7 (___) ___-__-__",value:null,required:!0,validated:!1,blocked:!1,state:null,bxCode:"PERSONAL_PHONE",confirm:null,validation:{phone:[]}},email:{name:"E-mail",type:"email",code:"email",placeholder:"",value:null,required:!0,validated:!1,blocked:!1,state:null,bxCode:"EMAIL",validation:{email:[]}},country:{name:"СÑÑана",type:"dropdown",code:"country",placeholder:"",samples:[],value:null,required:!1,validated:!1,blocked:!1,state:null,bxCode:"PERSONAL_COUNTRY"}
1,city:{name:"ÐоÑод",type:"text",code:"city",placeholder:"",value:null,required:!1,validated:!1,blocked:!1,state:null,bxCode:"PERSONAL_CITY"},confirm:{phone:{name:"Ðод подÑвеÑждениÑ",type:"text",code:"confirm_phone",placeholder:"",value:null,required:!0,validated:!1,blocked:!1,state:null,smsId:null,validation:{min:[4],max:[4]}},email:{name:"Ðод подÑвеÑждениÑ",type:"text",code:"confirm_email",placeholder:"",value:null,required:!0,validated:!1,blocked:!1,state:null,emailId:null,validation:{min:[4]}}}}},computed:ro(ro({},(0,r.Se)(["userGetUserData","userGetUserPhoto","userIsAuthorized"])),{},{hasDifference:function(){const t=this.userGetUserData;return{fullName:Object.values(this.fullName).filter((function(e){return e.value!==t[e.bxCode]})).length>0,phone:Jn(this.phone.value)!==Jn(t[this.phone.bxCode]),email:this.email.value!==t[this.email.bxCode],country:+this.country.value!=+t[this.country.bxCode]||this.city.value!==t[this.city.bxCode]}},isValid:function(){return{fullName:0===Object.values(this.fullName).filter((function(t){return!1===t.state})).length&&this.agree.fullName,phone:!0===this.phone.state&&this.agree.phone,email:!0===this.email.state&&this.agree.email,country:!0===this.country.state||!0===this.city.state}}}),methods:ro(ro({},(0,r.nv)(["useVueCartApi","userUpdateFields","userSetUserData","userSmsConfirm","userEmailConfirm"])),{},{setState:function(t){const e=this.userGetUserData;return"tel"===t.type&&String(t.value).replace(/\D/gi,"")===String(e[t.bxCode]).replace(/\D/gi,"")||String(t.value)===String(e[t.bxCode])?(t.validated=!1,t.state=null,t.errorMsg=null,t):Kn(t)},submitPhoto:async function(){if(!this.photo.state)return!1;this.loading.photo=!0,this.message.photo.value=null;const t=new FormData;t.append(this.photo.bxCode,this.photo.value);const e=await this.userUpdateFields(t);e.message&&(this.message.photo.value=e.message,this.message.photo.type=e.success?"success":"danger"),e.success&&(this.photo.value=null,this.photo.state=null,this.photo.errorMsg=null,this.photo.validated=!1),this.loading.photo=!1},submitFullName:async function(){if(!this.isValid.fullName)return!1;this.loading.fullName=!0,this.message.fullName.value=null;const t=new FormData;Object.values(this.fullName).forEach((function(e){e.state&&t.append(e.bxCode,e.value)}));const e=await this.userUpdateFields(t);e.message&&(this.message.fullName.value=e.message,this.message.fullName.type=e.success?"success":"danger"),e.success&&Object.values(this.fullName).forEach(function(t){t.value=this.userGetUserData[t.bxCode],t.validated=!1,t.state=null,t.errorMsg=null}.bind(this)),this.loading.fullName=!1},smsConfirm:async function(){if(!this.isValid.phone)return!1;this.loading.phone=!0,this.message.phone.value=null;const t=new FormData;t.append(this.phone.bxCode,Jn(this.phone.value));const e=await this.userSmsConfirm(t);e.message&&(this.message.phone.value=e.message,this.message.phone.type=e.success?"success":"danger"),e.success&&(this.confirm.phone.smsId=e.smsId,this.stage.phone=1),this.loading.phone=!1},updatePhone:async function(){if(!this.confirm.phone.state)return!1;this.loading.phone=!0,this.message.phone.value=null;const t=new FormData;t.append(this.phone.bxCode,Jn(this.phone.value)),t.append("smsId",this.confirm.phone.smsId),t.append("code",this.confirm.phone.value);const e=await this.userUpdateFields(t);e.message&&(this.message.phone.value=e.message,this.message.phone.type=e.success?"success":"danger"),e.success&&(this.phone.value=this.userGetUserData[this.phone.bxCode],this.phone.validated=!1,this.phone.state=null,this.phone.errorMsg=null,this.stage.phone=0),this.loading.phone=!1},submitPhone:function(){return 0===this.stage.phone?this.smsConfirm():1===this.stage.phone?this.updatePhone():void 0},emailConfirm:async function(){if(!this.isValid.email)return!1;this.loading.email=!0,this.message.email.value=null;const t=new FormData;t.append(this.email.bxCode,this.email.value);const e=await this.userEmailConfirm(t);e.message&&(this.message.email.value=e.message,this.message.email.type=e.success?"success":"danger"),e.success&&(this.confirm.email.emailId=e.emailId,this.stage.email=1),this.loading.email=!1},updateEmail:async function(){if(!this.confirm.email.state)return!1;this.loading.email=!0,this.message.email.value=null;const t=new FormData;t.append(this.email.bxCode,this.email.value),t.append("emailId",this.confirm.email.emailId),t.append("code",this.confirm.email.value);const e=await this.userUpdateFields(t);e.message&&(this.message.email.value=e.message,this.message.email.type=e.success?"success":"danger"),e.success&&(this.email.value=this.userGetUserData[this.email.bxCode],this.email.validated=!1,this.email.state=null,this.email.errorMsg=null,this.stage.email=0),this.loading.email=!1},submitEmail:function(){return 0===this.stage.email?this.emailConfirm():1===this.stage.email?this.updateEmail():void 0},submitCountry:async function(){if(!this.isValid.country)return!1;this.loading.country=!0,this.message.country.value=null;const t=new FormData;this.country.state&&t.append(this.country.bxCode,this.country.value),this.city.state&&t.append(this.city.bxCode,this.city.value);const e=await this.userUpdateFields(t);e.message&&(this.message.country.value=e.message,this.message.country.type=e.success?"success":"danger"),e.success&&[this.country,this.city].forEac
1h(function(t){t.value=this.userGetUserData[t.bxCode],t.validated=!1,t.state=null,t.errorMsg=null}.bind(this)),this.loading.country=!1},refresh:function(){const t=this.userGetUserData;t.NAME&&(this.fullName.name.value=t.NAME),t.LAST_NAME&&(this.fullName.lastName.value=t.LAST_NAME),t.SECOND_NAME&&(this.fullName.secondName.value=t.SECOND_NAME),t.PERSONAL_PHONE&&(this.phone.value=Jn(t.PERSONAL_PHONE)),t.EMAIL&&(this.email.value=t.EMAIL),t.COUNTRY_LIST&&(this.country.samples=[{ID:-1,NAME:"Ðе вÑбÑано"},...t.COUNTRY_LIST]),t.PERSONAL_COUNTRY_CODE&&(this.country.value=+t.PERSONAL_COUNTRY_CODE),t.PERSONAL_CITY&&(this.city.value=t.PERSONAL_CITY),this.userData=t}}),beforeMount(){this.refresh()},mounted(){setTimeout((function(){Qn(".personal-profile-mc")}),200)}};const oo=(0,bn.Z)(ao,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal-profile-mc"},[n("h2",[t._v("ÐÑоÑилÑ")]),t._v(" "),n("div",{staticClass:"row"},[n("b-form-group",{staticClass:"col-12"},[n("b-form-radio-group",{attrs:{name:"personal-type"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[n("b-form-radio",{attrs:{value:0}},[t._v("ФизиÑеÑкое лиÑо")]),t._v(" "),n("b-form-radio",{attrs:{value:1}},[t._v("ЮÑидиÑеÑкое лиÑо")])],1)],1)],1),t._v(" "),n("div",{staticClass:"row form-box contacts"},[n("div",{staticClass:"col-12 header"},[t._v("ÐонÑакÑнÑе даннÑе")]),t._v(" "),n("b-form",{staticClass:"col-12 col-md-3 photo",on:{submit:function(e){return e.preventDefault(),t.submitPhoto.apply(null,arguments)}}},[n("div",{staticClass:"row"},[n("b-form-text",{staticClass:"col-12"},[t.message.photo.value?n("b-alert",{attrs:{type:t.message.photo.type}},[t._v("\n "+t._s(t.message.photo.value)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 upload",attrs:{state:t.photo.state},scopedSlots:t._u([{key:"label",fn:function(){return[t.userGetUserPhoto?n("div",{staticClass:"icon"},[n("div",[n("img",{attrs:{src:t.userGetUserPhoto.SRC||t.userGetUserPhoto.src,alt:"ÐаÑе ÑоÑо"}})])]):n("div",{staticClass:"icon"},[n("div",[n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-pa-photo",height:"32",width:"32"}})],1)])]},proxy:!0}])},[t._v(" "),n("label",{attrs:{for:t.$id(t.photo.code)}},[null===t.photo.value?n("span",{domProps:{innerHTML:t._s(t.photo.placeholder)}}):n("span",{domProps:{innerHTML:t._s(t.photo.value.name)}})]),t._v(" "),n("b-form-file",{attrs:{plain:"",id:t.$id(t.photo.code),name:t.photo.code,state:t.photo.state},on:{input:function(e){return t.setState(t.photo)}},model:{value:t.photo.value,callback:function(e){t.$set(t.photo,"value",e)},expression:"photo.value"}}),t._v(" "),t.photo.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.photo.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.photo.state&&t.photo.value,expression:"photo.state && photo.value"}],staticClass:"col-12 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.photo.state||!t.photo.value||t.loading.photo}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.photo,expression:"loading.photo"}],attrs:{icon:"spinner",spin:""}}),t._v("\n СоÑ
ÑаниÑÑ\n ")],1)],1)],1)]),t._v(" "),n("div",{staticClass:"col-12 col-md-9"},[n("b-form",{staticClass:"row full-name",on:{submit:function(e){return e.preventDefault(),t.submitFullName.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[t.message.fullName.value?n("b-alert",{attrs:{type:t.message.fullName.type}},[t._v("\n "+t._s(t.message.fullName.value)+"\n ")]):t._e()],1),t._v(" "),t._l(t.fullName,(function(e,s){return n("b-form-group",{key:"pa_cnt_"+s,staticClass:"col-12 col-md-4",attrs:{state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(e.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"field.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:e.type,name:e.code,placeholder:e.placeholder,readonly:e.blocked,state:e.state},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)})),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.hasDifference.fullName&&!1!==t.fullName.name.state,expression:"hasDifference.fullName && fullName.name.state !== false"}],staticClass:"col-12 agree",attrs:{state:t.agree.fullName}},[n("b-form-checkbox",{attrs:{state:t.agree.fullName},model:{value:t.agree.fullName,callback:function(e){t.$set(t.agree,"fullName",e)},expression:"agree.fullName"}},[n("span",{domProps:{innerHTML:t._s(t.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML)}}),t._v(" "),n("sup",{staticClass:"text-danger"},[t._v("*")])])],1),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.hasDifference.fullName&&t.isValid.fullName,expression:"hasDifference.fullName && isValid.fullName"}],staticClass:"col-12 col-md-4 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.isValid.fullName||!t.hasDifference.fullName||t.loading.fullName}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.fullName,expression:"loading.fullName"}],attrs:{icon:"spinner",spin:""}}),t._v("\n СоÑ
ÑаниÑÑ\n ")],1)],1)],2),t._v(" "),n("b-form",{directives:[{name:"show",rawName:"v-show",value:0===t.stage.phone,expression:"stage.phone === 0"}],staticClass:"row phone",on:{submit:function(e){return e.preventDefault(),t.submitPhone.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[t.message.phone.value?n("b-alert",{attrs:{type:t.message.phone.type}},[t._v(t._s(t.message.phone.value)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4",attrs:{state:t.phone.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.phone.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.phone.required,expression:"phone.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-input",{attrs:{type:t.phone.type,name:t.phone.code,placeholder:t.phone.placeholder,readonly:t.phone.blocked,state:t.phone.state},on:{input:function(e){return t.setState(t.phone)}},model:{value:t.phone.value,callback:function(e){t.$set(t.phone,"value",e)},expression:"phone.value"}}),t._v(" "),t.phone.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.phone.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.hasDifference.ph
1one&&t.phone.state,expression:"hasDifference.phone && phone.state"}],staticClass:"col-12 agree",attrs:{state:t.agree.phone}},[n("b-form-checkbox",{attrs:{state:t.agree.phone},model:{value:t.agree.phone,callback:function(e){t.$set(t.agree,"phone",e)},expression:"agree.phone"}},[n("span",{domProps:{innerHTML:t._s(t.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML)}}),t._v(" "),n("sup",{staticClass:"text-danger"},[t._v("*")])])],1),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.hasDifference.phone&&t.isValid.phone,expression:"hasDifference.phone && isValid.phone"}],staticClass:"col-12 col-md-4 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.isValid.phone||t.loading.phone}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.phone,expression:"loading.phone"}],attrs:{icon:"spinner",spin:""}}),t._v("\n ÐодÑвеÑдиÑÑ\n ")],1)],1)],1),t._v(" "),n("b-form",{directives:[{name:"show",rawName:"v-show",value:1===t.stage.phone,expression:"stage.phone === 1"}],staticClass:"row phone-confirm",on:{submit:function(e){return e.preventDefault(),t.submitPhone.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[t.message.phone.value?n("b-alert",{attrs:{type:t.message.phone.type}},[t._v(t._s(t.message.phone.value)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4",attrs:{state:t.confirm.phone.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.confirm.phone.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.confirm.phone.required,expression:"confirm.phone.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-input",{attrs:{type:t.confirm.phone.type,name:t.confirm.phone.code,placeholder:t.confirm.phone.placeholder,readonly:t.confirm.phone.blocked,state:t.confirm.phone.state},on:{input:function(e){return t.setState(t.confirm.phone)}},model:{value:t.confirm.phone.value,callback:function(e){t.$set(t.confirm.phone,"value",e)},expression:"confirm.phone.value"}}),t._v(" "),t.confirm.phone.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.confirm.phone.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.confirm.phone.state}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.phone,expression:"loading.phone"}],attrs:{icon:"spinner",spin:""}}),t._v("\n ÐодÑвеÑдиÑÑ\n ")],1)],1)],1),t._v(" "),n("b-form",{directives:[{name:"show",rawName:"v-show",value:0===t.stage.email,expression:"stage.email === 0"}],staticClass:"row email",on:{submit:function(e){return e.preventDefault(),t.submitEmail.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[t.message.email.value?n("b-alert",{attrs:{type:t.message.email.type}},[t._v(t._s(t.message.email.value)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4",attrs:{state:t.email.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.email.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.email.required,expression:"email.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-input",{attrs:{type:t.email.type,name:t.email.code,placeholder:t.email.placeholder,readonly:t.email.blocked,state:t.email.state},on:{input:function(e){return t.setState(t.email)}},model:{value:t.email.value,callback:function(e){t.$set(t.email,"value",e)},expression:"email.value"}}),t._v(" "),t.email.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.email.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.hasDifference.email&&t.email.state,expression:"hasDifference.email && email.state"}],staticClass:"col-12 agree",attrs:{state:t.agree.email}},[n("b-form-checkbox",{attrs:{state:t.agree.email},model:{value:t.agree.email,callback:function(e){t.$set(t.agree,"email",e)},expression:"agree.email"}},[n("span",{domProps:{innerHTML:t._s(t.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML)}}),t._v(" "),n("sup",{staticClass:"text-danger"},[t._v("*")])])],1),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:t.hasDifference.email&&t.isValid.email,expression:"hasDifference.email && isValid.email"}],staticClass:"col-12 col-md-4 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.isValid.email||t.loading.email}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.email,expression:"loading.email"}],attrs:{icon:"spinner",spin:""}}),t._v("\n СоÑ
ÑаниÑÑ\n ")],1)],1)],1),t._v(" "),n("b-form",{directives:[{name:"show",rawName:"v-show",value:1===t.stage.email,expression:"stage.email === 1"}],staticClass:"row email-confirm",on:{submit:function(e){return e.preventDefault(),t.submitEmail.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[t.message.email.value?n("b-alert",{attrs:{type:t.message.email.type}},[t._v(t._s(t.message.email.value)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4",attrs:{state:t.confirm.email.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.confirm.email.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.confirm.email.required,expression:"confirm.email.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-input",{attrs:{type:t.confirm.email.type,name:t.confirm.email.code,placeholder:t.confirm.email.placeholder,readonly:t.confirm.email.blocked,state:t.confirm.email.state},on:{input:function(e){return t.setState(t.confirm.email)}},model:{value:t.confirm.email.value,callback:function(e){t.$set(t.confirm.email,"value",e)},expression:"confirm.email.value"}}),t._v(" "),t.confirm.email.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.confirm.email.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.confirm.email.state}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.email,expression:"loading.email"}],attrs:{icon:"spinner",spin:""}}),t._v("\n ÐодÑвеÑдиÑÑ\n ")],1)],1)],1),t._v(" "),n("b-form",{staticClass:"row country",on:{submit:function(e){return e.preventDefault(),t.submitCountry.apply(null,arguments)}}},[n("b-form-text",{staticClass:"col-12"},[t.message.country.value?n("b-alert",{attrs:{type:t.message.country.type}},[t._v("\n "+t._s(t.message.country.value)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4",scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.country.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.country.required,expression:"country.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-select",{attrs:{name:t.country.code,placeholder:t.country.placeholder,readonly:t.country.blocked,state:t.country.state},on:{input:function(e){return t.setState(t.country)}},model:{value:t.country.value,callback:function(e){t.$set(t.country,"value",e)},expression:"country.value"}},t._l(t.country.samples,(function(e,s){return n("b-form-select-option",{key:"ctr_spl_"+s,attrs:{value:+e.ID}},[t._v("\n "+t._s(e.NAME)+"\n ")])})),1),t._v(" "),t.country.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.country.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-4",scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.city.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.city.required,expression:"city.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}])},[t._v(" "),n("b-form-input",{attrs:{type:t.city.type,name:t.city.code,placeholder:t.city.placeholder,readonly:t.city.blocked,state:t.city.state},on:{input:function(e){return t.setState(t.city)}},model:{value:t.city.value,callback:function(e){t.$set(t.city,"value",e)},expression:"city.value"}}),t._v(" "),t.city.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.city.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("b-form-group",{directives:[{name:"show",rawName:"v-show",value:(t.hasDifference.country||t.hasDifference.city)&&(t.isValid.country||t.isValid.city),expression:"(hasDifference.country || hasDifference.city) && (isValid.country || isValid.city)"}],staticClass:"col-12 col-md-4 submit"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:!t.isValid.country||t.loading.country}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.loading.country,expression:"loading.country"}],attrs:{icon:"spinner",spin:""}}),t._v("\n ÐбновиÑÑ\n ")],1)],1)],1)],1)],1),t._v(" "),t._m(0),t._v(" "),n("ChangePassword"),t._v(" "),t._m(1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1===t.type,expression:"type === 1"}],staticClass:"row"},[n("div",{staticClass:"col-12 header"},[t._v("ÐаннÑе компании")]),t._v(" "),n("div",{staticClass:"col-12 col-md-8"},[n("Requisites")],1)])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("hr")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("hr")])])}],!1,null,null,null).exports;function co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function lo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?co(Object(n),!0).forEach((function(e){uo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const po={name:"PersonalManager",props:{startData:{type:[Object,null],default:null}},data:function(){return{}},computed:lo(lo({},(0,r.Se)(["locationMoscowPhone"])),{},{email:function(){return this.startData&&this.startData.EMAIL?this.startData.EMAIL:null},phoneAdd:function(){return this.startData&&this.startData.UF_PHONE_ADD?this.startData.UF_PHONE_ADD:null},personalPhone:function(){return this.startData&&this.startData.PERSONAL_PHONE?this.startData.PERSONAL_PHONE:null},name:function(){return this.startData&&this.startData.NAME?this.startData.NAME:null},lastName:function(){return this.startData&&this.startData.LAST_NAME?this.startData.LAST_NAME:null},title:function(){return this.startData&&this.startData.TITLE?this.startData.TITLE:null},photo:function(){return this.startData&&this.startData.PERSONAL_PHOTO?this.startData.PERSONAL_PHOTO:null},formValues:function(){return{MANAGER:this.name+" "+this.lastName,MANAGER_EMAIL:this.email}}})};const fo=(0,bn.Z)(po,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal-manager-mc"},[n("h2",{staticClass:"h2"},[t._v("ÐеÑÑоналÑнÑй менеджеÑ")]),t._v(" "),n("div",{staticClass:"manager"},[n("div",{staticClass:"manager__img"},[t.photo?n("div",{staticClass:"photo"},[n("img",{attrs:{src:t.photo.SRC,alt:t.name+" "+t.lastName}})]):n("div",{staticClass:"photo"},[n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-pa-photo",height:"32",width:"32"}})],1)]),t._v(" "),n("div",{staticClass:"manager__caption"},[n("div",{staticClass:"manager__title"},[t.name?n("span",[t._v(t._s(t.name))]):t._e(),t._v(" "),t.lastName?n("span",[t._v(t._s(t.lastName))]):t._e()]),t._v(" "),n("div",{staticClass:"manager__subtitle"},[t.title?n("span",[t._v(t._s(t.title))]):n("span",[t._v("ÐедÑÑий ÑпеÑиалиÑÑ Ð¾Ñдела пÑодаж FOROFFICE")])]),t._v(" "),n("div",{staticClass:"contacts contacts_manager"},[n("div",{staticClass:"contacts__group"},[n("span",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-phone",width:"20",height:"20"}})],1),t._v(" "),n("div",[t.personalPhone?n("a",{staticClass:"contacts__phone",attrs:{href:"tel:"+t.personalPhone}},[t._v(t._s(t.personalPhone))]):t._e(),t._v(" "),n("div",{staticClass:"contacts__itemGroup"},[n("a",{domProps:{innerHTML:t._s(t.locationMoscowPhone)}}),t._v(" "),t.phoneAdd?n("span",[t._v("доб. "+t._s(t.phoneAdd))]):t._e()])])]),t._v(" "),t.email?n("div",{staticClass:"contacts__group"},[n("span",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-mail",width:"20",height:"20"}})],1),t._v(" "),n("a",{staticClass:"contacts__mail",attrs:{href:"mailto:"+t.email}},[t._v(t._s(t.email))])]):t._e()])])]),t._v(" "),n("div",{staticClass:"form-section"},[n("universal-form",{ref:"form",attrs:{labels:!0,placeholders:!1,disclamer:!1,spinner:!0,"direct-values":t.formValues,sid:"CALLBACK_PERSONAL_MANAGER","submit-text":"ÐаказаÑÑ Ð·Ð²Ð¾Ð½Ð¾Ðº","header-html":"ÐÑÑавÑÑе заÑÐ²ÐºÑ Ð¸ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ Ñам ÑвÑжеÑÑÑ Ñ Ðами"}})],1)])}),[],!1,null,null,null).exports;const ho={name:"PersonalFeedback",props:{name:{type:String,default:"ÐлекÑандÑ"},lastName:{type:String,default:"ÐÑеобÑаженÑкий"}},data:function(){return{}},computed:{},methods:{}};const mo=(0,bn.Z)(ho,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal-feedback-mc"},[n("div",{staticClass:"row boss"},[t._m(0),t._v(" "),n("div",{staticClass:"col-9 col-lg-10 boss__caption"},[n("div",{staticClass:"boss__title"},[t._v(t._s(t.name)+" "+t._s(t.lastName))]),t._v(" "),n("div",{staticClass:"boss__subtitle"},[t._v("ÐенеÑалÑнÑй диÑекÑÐ¾Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ð¸ FOROFFICE")]),t._v(" "),n("div",{staticClass:"boss__text d-none d-md-block"},[t._v("ÐÑоÑÑ Ð²Ð°Ñ Ð¾ÑÑавиÑÑ Ð¾ÑзÑв о ÑабоÑе наÑей компании â Ð´Ð»Ñ Ð½Ð°Ñ\n кÑайне важна ÑеÑÑноÑÑÑ Ð¸ оÑкÑÑÑоÑÑÑ, поÑÑÐ¾Ð¼Ñ Ñ Ð¸ÑкÑенне ÑаÑÑÑиÑÑÐ²Ð°Ñ Ð½Ð° ваÑÑ Ð¾Ð±ÑекÑивнÑÑ Ð¾ÑенкÑ. ÐÑли\n Ð²Ñ Ð¾ÑÑалиÑÑ Ð´Ð¾Ð²Ð¾Ð»ÑÐ½Ñ ÑоÑÑÑдниÑеÑÑвом и обÑлÑживанием â ÑÑо Ð¿Ð¾Ð·Ð²Ð¾Ð»Ð¸Ñ Ð½Ð°Ð¼ оÑмеÑиÑÑ Ð½Ð°Ñи ÑилÑнÑе\n ÑÑоÑонÑ. ÐÑли Ñ Ð²Ð°Ñ Ð²Ð¾Ð·Ð½Ð¸ÐºÐ»Ð¸ пÑÐ¾Ð±Ð»ÐµÐ¼Ñ Ð¸Ð»Ð¸ еÑÑÑ Ð¿ÑеÑензии â Ñ Ð»Ð¸Ñно ознакомлÑÑÑ Ñ Ð½Ð¸Ð¼Ð¸ и помогÑ\n ÑазÑеÑиÑÑ ÑпоÑнÑÑ ÑиÑÑаÑиÑ.\n ")])]),t._v(" "),n("div",{staticClass:"col-12 boss__text d-block d-md-none"},[t._v("ÐÑоÑÑ Ð²Ð°Ñ Ð¾ÑÑавиÑÑ Ð¾ÑзÑв о ÑабоÑе наÑей компании â Ð´Ð»Ñ Ð½Ð°Ñ\n кÑайне важна ÑеÑÑноÑÑÑ Ð¸ оÑкÑÑÑоÑÑÑ, поÑÑÐ¾Ð¼Ñ Ñ Ð¸ÑкÑенне ÑаÑÑÑиÑÑÐ²Ð°Ñ Ð½Ð° ваÑÑ Ð¾Ð±ÑекÑивнÑÑ Ð¾ÑенкÑ. ÐÑли вÑ\n оÑÑалиÑÑ Ð´Ð¾Ð²Ð¾Ð»ÑÐ½Ñ ÑоÑÑÑдниÑеÑÑвом и обÑлÑживанием â ÑÑо Ð¿Ð¾Ð·Ð²Ð¾Ð»Ð¸Ñ Ð½Ð°Ð¼ оÑмеÑиÑÑ Ð½Ð°Ñи ÑилÑнÑе ÑÑоÑонÑ.\n ÐÑли Ñ Ð²Ð°Ñ Ð²Ð¾Ð·Ð½Ð¸ÐºÐ»Ð¸ пÑÐ¾Ð±Ð»ÐµÐ¼Ñ Ð¸Ð»Ð¸ еÑÑÑ Ð¿ÑеÑензии â Ñ Ð»Ð¸Ñно ознакомлÑÑÑ Ñ Ð½Ð¸Ð¼Ð¸ и Ð¿Ð¾Ð¼Ð¾Ð³Ñ ÑазÑеÑиÑÑ ÑпоÑнÑÑ\n ÑиÑÑаÑиÑ.\n ")])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-1 col-md-2 d-lg-none"}),t._v(" "),n("div",{staticClass:"col-10 col-md-8 col-lg-6 col-xl-5 form_comment"},[n("universal-form",{ref:"form",attrs:{labels:!0,stars:!0,placeholders:!1,disclamer:!1,spinner:!0,"submit-text":"ÐÑпÑавиÑÑ",
1sid:"COMMENTS_FORM","header-html":"ÐÑениÑе ÑабоÑÑ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ð¸ по ÑледÑÑÑим паÑамеÑÑам"}})],1),t._v(" "),n("div",{staticClass:"col-1 col-md-2 d-lg-none"})])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-3 col-lg-2 boss__img"},[e("img",{attrs:{src:"/img/preobrazhensky.jpg",alt:""}})])}],!1,null,null,null).exports;function vo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function _o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vo(Object(n),!0).forEach((function(e){go(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function go(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const bo=[{ID:513388,DATE_CREATE:"2024-05-07 15:56:02",STATUS:"opened",ORDER_ID:100500,DATE_ORDER:"2024-05-07",PRODUCTS:[],REASON:{name:"ÐедогÑÑз",code:"underloading"},DESCRIPTION:"ТеÑÑовое опиÑание заÑвки"}],yo={name:"PersonalService",props:{startData:{type:Object,required:!0}},data:function(){return{tab:0}},computed:_o(_o({},(0,r.Se)([])),{},{tabs:function(){return[{name:"ÐовÑе",content:[]},{name:"ÐÑкÑÑÑÑе",content:[]},{name:"ÐавеÑÑеннÑе",content:[]}]},requests:function(){return this.requests}}),methods:{},beforeMount(){this.requests=bo}};const Co=(0,bn.Z)(yo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal-service-mc"},[n("h2",[t._v("Ðои заÑвки")]),t._v(" "),n("b-tabs",{attrs:{"nav-class":"red-line","nav-wrapper-class":"nav-wrapper mb-5","active-nav-item-class":"active","active-tab-class":"active","no-nav-style":"",justified:t.isXS||t.isSM},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabs,(function(t,e){return n("b-tab",{key:"ps-tab-"+e,attrs:{title:t.name}})})),1)],1)}),[],!1,null,null,null).exports;function Oo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function wo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oo(Object(n),!0).forEach((function(e){Eo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Eo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Po={name:"PersonalArea",props:{startData:{type:Object,required:!0}},components:{Orders:Na,Favourites:Va,Bonuses:za,Profile:oo,Manager:fo,Feedback:mo,Service:Co,LoginRegistration:Da},data:function(){return{tabIndex:0}},computed:wo(wo(wo({},(0,r.Se)(["isXS","isSM"])),(0,r.Se)(["userIsAuthorized"])),{},{orders:function(){return this.startData.ORDERS||[]},manager:function(){return this.startData.MANAGER||{}},tabs:function(){return this.allTabs.filter((t=>t.active))}
1,allTabs:function(){return[{title:"ÐаказÑ",navTitle:"ÐаказÑ",icon:{name:"fo-pa-orders"},class:"orders",component:Na,startData:this.orders,active:!0},{title:"ÐзбÑанное",navTitle:"ÐзбÑанное",icon:{name:"fo-pa-heart",class:{"stroke-only":!0}},class:"favourites",component:Va,active:!0},{title:"ÐонÑÑÑ",icon:{name:"fo-pa-bonuses"},class:"bonuses",component:za,active:!1},{title:"ÐÑоÑилÑ",navTitle:"ÐÑоÑилÑ",icon:{name:"fo-pa-profile"},class:"profile",component:oo,active:!0},{title:"СеÑвиÑ",navTitle:"СеÑвиÑ",icon:{name:"fo-pa-service",class:{"stroke-only":!0}},class:"service",component:Co,active:!1},{title:"ÐеÑÑоналÑнÑй менеджеÑ",navTitle:'<span class="d-none d-lg-inline">ÐеÑÑоналÑнÑй </span>ÐенеджеÑ',icon:{name:"fo-pa-manager"},class:"manager",component:fo,startData:this.manager,active:!0},{title:"ÐÑÑавиÑÑ Ð¾ÑзÑв",navTitle:'<span class="d-none d-lg-inline">ÐÑÑавиÑÑ </span>ÐÑзÑв',icon:{name:"fo-mail",class:{"stroke-only":!0}},class:"feedback",component:mo,active:!0}]}}),methods:{toggleDropdown:function(){this.showDropdown=!this.showDropdown},setTabIndex:function(t){this.tabIndex=t,this.showDropdown=!1}},beforeMount(){this.startData.START_PAGE&&(this.tabIndex=+this.startData.START_PAGE)}};const So=(0,bn.Z)(Po,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"personal-area-mc":t.userIsAuthorized,"personal-reg-auth-mc":!t.userIsAuthorized}},[n("div",{staticClass:"wrapper"},[t.userIsAuthorized?n("div",{staticClass:"container"},[n("div",{staticClass:"row d-none"},[n("div",{staticClass:"col-12 doc-title"},[n("h1",{staticClass:"mb-5",domProps:{innerHTML:t._s(t.tabs[t.tabIndex].title)}})])]),t._v(" "),n("b-tabs",{attrs:{"nav-class":"red-line","nav-wrapper-class":"nav-wrapper mb-5","active-nav-item-class":"active","active-tab-class":"active","no-nav-style":"",justified:t.isXS||t.isSM},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabs,(function(e,s){return n("b-tab",{key:"pa-tab-"+s,scopedSlots:t._u([{key:"title",fn:function(){return[n("span",{staticClass:"d-md-none"},[n("v-icon",{class:Object.assign({},{"fo-icon":!0},e.icon.class||{}),attrs:{name:e.icon.name,width:"20",height:"20"}})],1),t._v(" "),n("span",{staticClass:"d-none d-md-inline",domProps:{innerHTML:t._s(e.title)}})]},proxy:!0}],null,!0)},[t._v(" "),n(e.component,{tag:"component",attrs:{startData:e.startData}})],1)})),1)],1):n("div",{staticClass:"container"},[n("div",{staticClass:"row justify-content-center"},[n("div",{staticClass:"col-12 col-md-10 col-lg-6 mt-5 mb-5"},[n("LoginRegistration")],1)])])])])}),[],!1,null,null,null).exports;const Io=JSON.parse('{"e":[{"icon":"/img/professional_service/showroom.png","name":"ÐаÑÑÑойка и ÑеÑвиÑ","class":["service"],"description":"ÐодклÑÑим и наÑÑÑоим обоÑÑдование. ÐбÑÑим ваÑиÑ
ÑоÑÑÑдников."},{"icon":"/img/professional_service/tenders.png","name":"ÐоÑÑавка ÑоÑно в ÑÑок","class":["delivery"],"description":"СлÑжба доÑÑавлÑÐµÑ Ð·Ð°ÐºÐ°Ð·Ñ Ð°ÐºÐºÑÑаÑно и в ÑÑок."},{"icon":"/img/professional_service/project.png","name":"ÐиÑовÑе бÑендÑ","class":["brands"],"description":"ÐвÑоÑизованнÑй паÑÑÐ½ÐµÑ ÐºÑÑпнÑÑ
вендоÑов"},{"icon":"/img/professional_service/consult.png","name":"СобÑÑвеннÑй Ñклад","class":["store"],"description":"ÐолÑÑÐ°Ñ ÑаÑÑÑ Ð¾Ð±Ð¾ÑÑÐ´Ð¾Ð²Ð°Ð½Ð¸Ñ ÐµÑÑÑ Ð½Ð° Ñкладе, ÑÑо обеÑпеÑÐ¸Ñ Ð±ÑÑÑÑÑÑ Ð¾ÑгÑÑзкÑ"},{"icon":"/img/professional_service/showroom.png","name":"20 Ð»ÐµÑ Ð½Ð° ÑÑнке","class":["showroom"],"description":"на ÑÑнке пÑоÑеÑÑионалÑного обоÑÑдованиÑ","template":["top-section"]},{"icon":"/img/professional_service/tenders.png","name":"ÐоÑÑавка","class":["tenders"],"description":"по ÐоÑкве, СанкÑ-ÐеÑеÑбÑÑÐ³Ñ Ð¾Ñ 1 днÑ, в ÑÐµÐ³Ð¸Ð¾Ð½Ñ - л
1ÑбÑми ÑÑанÑпоÑÑнÑми компаниÑми","template":["top-section"]},{"icon":"/img/professional_service/project.png","name":"ÐоддеÑжка","class":["project"],"description":"Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ñ Ð¾ÑÑÑоÑки плаÑежей и Ñ
оÑоÑие Ñкидки поÑÑоÑннÑм покÑпаÑелÑм","template":["top-section"]},{"icon":"/img/professional_service/consult.png","name":"ÐаÑанÑиÑÑем","class":["consult"],"description":"иÑклÑÑиÑелÑное каÑеÑÑво ÑоваÑа и ÑоблÑдаем вÑе гаÑанÑийнÑе обÑзаÑелÑÑÑва","template":["top-section"]}],"Y":{"type":"slide","rewind":false,"pagination":false,"gap":30,"focus":"left","perPage":4,"perMove":1,"arrows":true,"breakpoints":{"536":{"perPage":1,"fixedWidth":320,"gap":4},"768":{"perPage":2,"gap":18},"1024":{"gap":26}}}}'),To={name:"ProfessionalService",props:{template:{type:String,default:"default"}},data:function(){return{show:!1,dataItems:Io.e,options:Io.Y}},computed:{items:function(){const t=[],e=this.template;return this.dataItems.forEach((function(n){("default"===e&&(void 0===n.template||"default"===n.template||Array.isArray(n.template)&&n.template.includes(e))||n.template===e||Array.isArray(n.template)&&n.template.includes(e))&&t.push(n)})),t}},mounted(){setTimeout(function(){this.show=!0}.bind(this),100)}};const Do=(0,bn.Z)(To,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("splide",{staticClass:"professional-service-mc",attrs:{options:t.options}},t._l(t.items,(function(e,s){return n("splide-slide",{key:"professional_service_"+s},[n("div",{staticClass:"item",class:e.class},[n("div",{staticClass:"image"},[n("img",{attrs:{src:e.icon,alt:e.name}})]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"description"},[t._v(t._s(e.description))])])])})),1):t._e()}),[],!1,null,null,null).exports;const Ao=JSON.parse('{"Y":{"type":"slide","focus":"left","perMove":1,"perPage":3,"gap":30,"arrows":true,"rewind":true,"pagination":false,"lazyLoad":true,"breakpoints":{"536":{"perPage":1,"gap":4},"768":{"perPage":2,"gap":18},"1024":{"perPage":2,"gap":26}}}}'),ko={name:"ContentSlider",props:{startData:{type:Array,required:!0},customOptions:{type:Object},hasShowAll:{type:Boolean,default:!1}},components:{ContentItem:zr},data:function(){return{getters:{section:0},deviceWidth:0,isShowAll:!1}},computed:{section:{get:function(){return this.getters.section},set:function(t){this.isShowAll=!1,this.getters.section=t}},sliderOptions:function(){const t=Ao.Y;for(let e in this.customOptions)t[e]=this.customOptions[e];return t},isMultiSources:function(){return this.startData.length>1},hasShowAllButton:function(){return this.startData.length>1&&this.hasShowAll},currentHeader:function(){return void 0!==this.startData[this.section]&&this.startData[this.section].NAME},currentContentType:function(){return void 0!==this.startData[this.section]&&this.startData[this.section].CODE},items:function(){return this.isShowAll?this.mixedItems:this.startData[this.section].ITEMS},mixedItems:function(){let t=[];return this.startData.forEach((function(e){t=[...t,...e.ITEMS]})),t},showArrows:function(){return!!this.deviceWidth&&(void 0!==this.items&&this.items.length>this.onPage)},onPage:function(){if(!this.deviceWidth)return!1;let t=this.sliderOptions,e=null;if(void 0!==t.breakpoints)for(let n in t.breakpoints)n<this.deviceWidth||(!e||n>e)&&void 0!==t.breakpoints[n].perPage&&(e=n);return e?t.breakpoints[e].perPage:t.perPage},showLeftArrow:function(){return void 0!==this.items&&0!==this.position},showRightArrow:function(){return void 0!==this.items&&this.position+this.onPage<this.items.length},arrowsClass:function(){return{"no-arrows":!this.showArrows,"no-left-arrow":!this.showLeftArrow,"no-right-arrow":!this.showRightArrow}}},methods:{onResize:function(){requestAnimationFrame(function(){this.deviceWidth=window.innerWidth}.bind(this))},onAfterSliderMoved:function(t,e,n,s){this.position=e},onFollowLink:function(){},showAll:function(){this.isShowAll=!0}},mounted(){window.addEventListener("resize",this.onResize),this.onResize()}};const jo=(0,bn.Z)(ko,(function(){var t,e=this,n=e.$createElement,s=e._self._c||n;return s("div",{staticClass:"content-slider-mc",class:(t={},t[e.currentContentType]=!0,t)},[s("div",{staticClass:"header"},[s("h2",[e._v(e._s(e.currentHeader))]),e._v(" "),e.isMultiSources?s("div",{staticClass:"tabs"},[e.hasShowAllButton?s("a",{class:{active:e.isShowAll},on:{click:e.showAll}}
1,[e._v("ÐÑе")]):e._e(),e._v(" "),e._l(e.startData,(function(t,n){return t.NAME?s("a",{key:"ctt_sldr_tb_"+e.uid+"_"+n,class:{active:e.section===n&&!e.isShowAll},on:{click:function(t){e.section=n}}},[e._v("\n "+e._s(t.NAME.split(" ")[0])+"\n ")]):e._e()}))],2):e._e()]),e._v(" "),s("div",{staticClass:"body items-slider-mc"},[e.isShowAll?s("splide",{attrs:{options:e.sliderOptions}},e._l(e.mixedItems,(function(t,n){var r;return s("splide-slide",{key:"itm_sldr_sa"+n,staticClass:"content",class:(r={},r[t.IBLOCK_CODE]=!0,r)},[s("ContentItem",{attrs:{"start-data":t},on:{"follow-link":e.onFollowLink}})],1)})),1):e._e(),e._v(" "),e._l(e.startData,(function(t,n){return e.isShowAll||e.section!==n?e._e():s("splide",{key:"itm_sldr"+n,attrs:{options:e.sliderOptions}},e._l(t.ITEMS,(function(t,r){var i;return s("splide-slide",{key:"itm_sldr"+n+r,staticClass:"content",class:(i={},i[t.IBLOCK_CODE]=!0,i)},[s("ContentItem",{attrs:{"start-data":t},on:{"follow-link":e.onFollowLink}})],1)})),1)}))],2)])}),[],!1,null,null,null).exports;function Lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ro(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lo(Object(n),!0).forEach((function(e){Mo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mo(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const xo={name:"NewsList",props:{startData:{type:Object,required:!0}},components:{ContentItem:zr,BPaginationNav:Li.a},data:function(){return{iblock:null,items:null,navigation:null,section:null,loading:!1,limits:[{count:18,text:"18",value:0},{count:36,text:"36",value:1},{count:72,text:"72",value:2}],canShowMore:!1,page__:null}},computed:{limitIndex:{get:function(){return this.navigation?this.limits.find(function(t){return t.count===this.navigation.limit}.bind(this)).value:0},set:function(t){let e=this.baseLink();this.section?e+=".html":e+="/",+t>0&&(e+="?limit="+this.limits[t].count),window.location.href=e}},limit:function(){return this.limits[this.limitIndex]},showPagination:function(){return!!this.navigation&&this.navigation.total>this.navigation.limit}},methods:Ro(Ro({},(0,r.nv)(["requestMoreNews"])),{},{baseLink:function(){if(!this.iblock)return"#";let t="/"+this.iblock.code;return this.section&&this.section.CODE&&(t+="/"+this.section.CODE),t},pagiLinkGen:function(t){if(!this.iblock)return"#";let e=this.baseLink();return this.section&&this.section.CODE?e+=1===t?".html":"_page"+t+".html":(e+="/",+t>1&&(e+="page"+t+".html")),this.limitIndex>0&&(e+="?limit="+this.limit.count),e},showMore:function(){let t={};t.iblock_id=this.iblock.id,t.limit=this.limit.count,t.page=+this.navigation.page+1,this.section&&this.section.CODE&&(t.section_code=this.section.CODE),this.loading=!0,this.requestMoreNews({params:t}).then(function(t){this.items=[...this.items,...t.items],this.navigation=t.navigation,this.page__=this.navigation.page,this.updateShowMore(),this.loading=!1}.bind(this)).catch(function(t){console.error(t),this.loading=!1}.bind(this))},updateShowMore:function(){this.canShowMore=this.navigation.page<this.navigation.pages}}),beforeMount(){this.items=this.startData.items,this.iblock=this.startData.iblock,this.startData.navigation&&(this.navigation=this.startData.navigation,this.page__=this.startData.navigation.page),this.startData.section&&(this.section=this.startData.section),this.updateShowMore()}};const No=(0,bn.Z)(xo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"news-list-mc container"},[t.navigation?n("div",{staticClass:"row total-block"},[n("div",{staticClass:"col-12"},[n("span",{staticClass:"value"},[t._v(t._s(t.navigation.total))]),n("span",{staticClass:"text"},[t._v("найдено")])])]):t._e(),t._v(" "),n("div",{staticClass:"row items"},t._l(t.items,(function(t,e){return n("div",{key:"nws_itm_"+e,staticClass:"item-outer col-12 col-md-6 col-xl-4"}
1,[n("ContentItem",{attrs:{"start-data":t}})],1)})),0),t._v(" "),t.canShowMore?n("div",{staticClass:"row more-block"},[n("div",{staticClass:"col-12 "},[n("b-button",{attrs:{variant:"outline-dark"},on:{click:t.showMore}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" \n ÐоказаÑÑ ÐµÑе "+t._s(t.limit.count)+"\n ")],1)],1)]):t._e(),t._v(" "),n("div",{staticClass:"catalog-pagination-mc row"},[n("div",{staticClass:"pagination-inner col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-3 limits"},[n("div",{staticClass:"text"},[t._v("ÐоказÑваÑÑ Ð¿Ð¾")]),t._v(" "),n("div",{staticClass:"value"},[n("b-form-select",{attrs:{options:t.limits,plain:""},model:{value:t.limitIndex,callback:function(e){t.limitIndex=e},expression:"limitIndex"}})],1)]),t._v(" "),t.showPagination?n("div",{staticClass:"col-9 pagi"},[n("BPaginationNav",{attrs:{size:"lg","link-gen":t.pagiLinkGen,"number-of-pages":t.navigation.pages,"last-number":"","first-number":""},scopedSlots:t._u([{key:"prev-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-prev",width:"6",height:"12"}})]},proxy:!0},{key:"next-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-next",width:"6",height:"12"}})]},proxy:!0}],null,!1,3399275593),model:{value:t.page__,callback:function(e){t.page__=e},expression:"page__"}})],1):t._e()])])])])}),[],!1,null,null,null).exports;const Uo={name:"ActionsList",props:{startData:{type:Object,required:!0},showFilter:{type:Boolean,default:!1}},components:{ContentItem:zr,BPaginationNav:Li.a},data:function(){return{actions:null,products:null,sections:null,brands:null,currentProduct:0,currentSection:0,currentBrand:0,navigation:{}}},computed:{filteredActions:function(){const t=[];return this.actions.order.forEach(function(e){const n=this.actions.items[e];if(this.currentProduct){if(!n.PROPERTY_PRODUCT_IDS_VALUE||!Array.isArray(n.PROPERTY_PRODUCT_IDS_VALUE))return;n.PROPERTY_PRODUCT_IDS_VALUE.includes(this.currentProduct)&&t.push(n.ID)}else if(this.currentBrand){if(!n.PROPERTY_BRAND_IDS_VALUE||!Array.isArray(n.PROPERTY_BRAND_IDS_VALUE))return;n.PROPERTY_BRAND_IDS_VALUE.includes(this.currentBrand)&&t.push(n.ID)}else if(this.currentSection){if(!n.PROPERTY_SECTION_IDS_VALUE||!Array.isArray(n.PROPERTY_SECTION_IDS_VALUE))return;n.PROPERTY_SECTION_IDS_VALUE.includes(this.currentSection)&&t.push(n.ID)}else t.push(n.ID)}.bind(this)),t},productsOptions:function(){return null!==this.products&&!this.currentSection&&!this.currentBrand&&this.products.order.map(function(t){return this.products.items[t]}.bind(this))},sectionsOptions:function(){return null!==this.sections&&!this.currentProduct&&!this.currentBrand&&this.sections.order.map(function(t){return this.sections.items[t]}.bind(this))},brandsOptions:function(){return null!==this.brands&&!this.currentSection&&!this.currentProduct&&this.brands.order.map(function(t){return this.brands.items[t]}.bind(this))},showFilters:function(){return void 0===this.navigation.total}},methods:{pagiLinkGen:function(t){return 1===t?"/actions/archive/":"/actions/archive/page"+t+".html"}},beforeMount(){this.actions=this.startData.actions,this.startData.products&&(this.products=this.startData.products),this.startData.sections&&(this.sections=this.startData.sections),this.startData.brands&&(this.brands=this.startData.brands),this.startData.navigation&&(this.navigation=this.startData.navigation)}},qo=Uo;var Ho=(0,bn.Z)(qo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"actions-list-mc container"},[n("div",{staticClass:"row filters-section"},[t.showFilter&&t.brandsOptions?n("div",{staticClass:"col-12 col-lg-3 filter"},[n("div",{staticClass:"inner"},[n("span",{staticClass:"name"},[t._v("ÐÑбеÑиÑе пÑоизводиÑелÑ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentBrand,expression:"currentBrand"}],attrs:{name:"as_brand_id"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentBrand=e.target.multiple?n:n[0]}}},[n("option",{domProps:{value:0}},[t._v("не вÑбÑан")]),t._v(" "),t._l(t.brandsOptions,(function(e,s){return n("option",{key:"br_fltr_"+s,domProps:{value:e.ID}},[t._v("\n "+t._s(e.NAME)+"\n ")])}))],2)])]):t._e(),t._v(" "),t.showFilter&&t.productsOptions?n("div",{staticClass:"col-12 col-lg-3 filter"},[n("div",{staticClass:"inner"},[n("span",{staticClass:"name"},[t._v("ÐÑбеÑиÑе ÑоваÑ")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentProduct,expression:"currentProduct"}],attrs:{name:"af_product_id"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentProduct=e.target.multiple?n:n[0]}}},[n("option",{domProps:{value:0}},[t._v("не вÑбÑан")]),t._v(" "),t._l(t.productsOptions,(function(e,s){return n("option",{key:"br_fltr_"+s,domProps:{value:e.ID}},[t._v("\n "+t._s(e.NAME)+"\n ")])}))],2)])]):t._e(),t._v(" "),t.showFilter&&t.sectionsOptions?n("div",{staticClass:"col-12 col-lg-3 filter"},[n("div",{staticClass:"inner"},[n("span",{staticClass:"name"},[t._v("ÐÑбеÑиÑе Ñаздел")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentSection,expression:"currentSection"}],attrs:{name:"af_section_id"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentSection=e.target.multiple?n:n[0]}}},[n("option",{domProps:{value:0}},[t._v("не вÑбÑан")]),t._v(" "),t._l(t.sectionsOptions,(function(e,s){return n("option",{key:"br_fltr_"+s,domProps:{value:e.ID}},[t._v("\n "+t._s(e.NAME)+"\n ")])}))],2)])]):t._e(),t._v(" "),t.showFilters?n("div",{staticClass:"col archive"},[n("a",{attrs:{href:"/actions/archive/"}},[t._v("ÐÑÑ
ив акÑий")])]):t._e()]),t._v(" "),n("div",{staticClass:"row items"},t._l(t.actions.order,(function(e,s){return n("div",{directives:[{name:"show",rawName:"v-show",value:t.filteredActions.includes(String(e)),expression:"filteredActions.includes(String(actionId))"}],key:"act_itm_"+s,staticClass:"item-outer col-12 col-md-6 col-xl-4"},[n("ContentItem",{attrs:{"start-data":t.actions.items[e]}})],1)})),0),t._v(" "),!t.showFilters&&t.navigation.total>t.navigation.limit?n("div",{staticClass:"catalog-pagination-mc row"},[n("div",{staticClass:"pagination-inner col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-3"}),t._v(" "),n("div",{staticClass:"col-9 pagi"},[n("BPaginationNav",{attrs:{size:"lg","link-gen":t.pagiLinkGen,"number-of-pages":Math.ceil(t.navigation.total/t.navigation.limit),"base-url":"/actions/archive/page","last-number":"","first-number":""},scopedSlots:t._u([{key:"prev-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-prev",width:"6",height:"12"}})]},proxy:!0},{key:"next-text",fn:function(){return[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-ct-pagi-next",width:"6",height:"12"}})]},proxy:!0}],null,!1,3399275593),model:{value:t.navigation.page,callback:function(e){t.$set(t.navigation,"page",e)},expression:"navigation.page"}})],1)])])]):t._e()])}),[],!1,null,null,null);const Fo=Ho.exports;const $o={name:"SectionCard",props:{startData:{type:Object,required:!0}},data:function(){return{item:null}},computed:{imgSrc:function(){return this.item?this.item.PREVIEW_PICTURE.SRC:null},showImage:function(){return!0},showName:function(){return!0}},methods:{onFollowLink:function(){return!0}},filters:{nameSlicer:t=>t.length>34?function t(e){if(e.length>34){let t=e.split(" ").reverse();e=t.splice(1,t.length).reverse().join(" ")}return e.length>34?t(e):e}(t)+"...":t},beforeMount:function(){this.item=this.startData}};const Vo=(0,bn.Z)($o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item"},[n("div",{staticClass:"item-inner"},[t.showImage?n("div",{staticClass:"image-block"},[n("a",{attrs:{href:t.item.SECTION_PAGE_URL},on:{click:t.onFollowLink}},[n("img",{attrs:{src:t.imgSrc,alt:t.item.NAME}})])]):t._e(),t._v(" "),t.showName?n("div",{staticClass:"name-block"},[n("a",{staticClass:"name",attrs:{href:t.item.SECTION_PAGE_URL,id:"si_"+t.uid+"_"+t.item.ID},on:{click:t.onFollowLink}},[t._v("\n "+t._s(t._f("nameSlicer")(t.item.NAME))+"\n ")]),t._v(" "),t.item.NAME.length>34?n("b-tooltip",{attrs:{target:"si_"+t.uid+"_"+t.item.ID,triggers:"hover",variant:"light"}},[t._v("\n "+t._s(t.item.NAME)+"\n ")]):t._e()],1):t._e()])])}),[],!1,null,null,null).exports,Bo={name:"NewsDetail",props:{startData:{type:Object,required:!0}},components:{ProductCard:Br,SectionCard:Vo,ContentCard:zr},data:function(){return{item:null,props:null,products:null,sections:null,iblock:null,news:null}},computed:{},methods:{},beforeMount(){this.item=this.startData,this.item.PROPERTIES&&(this.props=this.item.PROPERTIES,delete this.item.PROPERTIES),this.item.IBLOCK&&(this.iblock=this.item.IBLOCK,delete this.item.IBLOCK),this.item.RELATED_PRODUCTS&&(this.products=this.item.RELATED_PRODUCTS,delete this.item.RELATED_PRODUCTS),this.item.RELATED_SECTIONS&&(this.sections=this.item.RELATED_SECTIONS,delete this.item.RELATED_SECTIONS),this.item.SIMILAR_ITEMS&&(this.news=this.item.SIMILAR_ITEMS,delete this.item.SIMILAR_ITEMS)}};var Go=(0,bn.Z)(Bo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"news-detail-mc container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-1 d-none d-xl-block"}),t._v(" "),n("div",{staticClass:"col-12 col-xl-10"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 image-section"},[n("div",{staticClass:"image-outer"},[n("img",{attrs:{src:t.item.DETAIL_PICTURE.SRC,alt:t.item.NAME}})])]),t._v(" "),n("div",{staticClass:"col-12"})]),t._v(" "),n("div",{staticClass:"row details-section"},[n("div",{staticClass:"col-12 inner",domProps:{innerHTML:t._s(t.item.DETAIL_TEXT)}})])]),t._v(" "),n("div",{staticClass:"col-1 d-none d-xl-block"}),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"row"},[t.products?n("div",{staticClass:"col-12 products-section"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 header"},[n("h3",[t._v("ТоваÑÑ Ð¸Ð· "+t._s(t.iblock.ELEMENTS_NAME.toLowerCase()))])]),t._v(" "),t._l(t.products.ORDER,(function(e){return n("div",{key:"rl_prdct_"+e,staticClass:"col-6 col-md-3 col-xl-2 item-outer"}
1,[n("ProductCard",{attrs:{"start-data":t.products.ITEMS[e]}})],1)}))],2)]):t._e(),t._v(" "),t.sections?n("div",{staticClass:"col-12 sections-section"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 header"},[n("h3",[t._v("Ð Ð°Ð·Ð´ÐµÐ»Ñ Ð¸Ð· "+t._s(t.iblock.ELEMENTS_NAME.toLowerCase()))])]),t._v(" "),t._l(t.sections.ORDER,(function(e){return n("div",{key:"rl_scts_"+e,staticClass:"col-6 col-md-3 item-outer"},[n("SectionCard",{attrs:{"start-data":t.sections.ITEMS[e]}})],1)}))],2)]):t._e(),t._v(" "),t.news?n("div",{staticClass:"col-12 news-section news-list-mc"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 header"},[n("h3",[t._v("ÐÑÑгие "+t._s(t.iblock.ELEMENTS_NAME.toLowerCase()))])])]),t._v(" "),n("div",{staticClass:"row items"},t._l(t.news.ORDER,(function(e){return n("div",{key:"rl_scts_"+e,staticClass:"col-12 col-md-6 col-lg-4 item-outer"},[n("ContentCard",{attrs:{"start-data":t.news.ITEMS[e]}})],1)})),0)]):t._e()])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 separator"},[e("hr")])}],!1,null,null,null);const Yo=Go.exports;const zo={name:"BrandCard",props:{startData:{type:Object,required:!0}},data:function(){return{item:null}},computed:{imgSrc:function(){return this.item&&this.item.PREVIEW_PICTURE?this.item.PREVIEW_PICTURE.SRC:null},showImage:function(){return!0},showName:function(){return!1}},methods:{onFollowLink:function(){return!0}},filters:{nameSlicer:t=>t.length>34?function t(e){if(e.length>34){let t=e.split(" ").reverse();e=t.splice(1,t.length).reverse().join(" ")}return e.length>34?t(e):e}(t)+"...":t},beforeMount:function(){this.item=this.startData}};const Zo=(0,bn.Z)(zo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item"},[n("div",{staticClass:"item-inner"},[t.showImage?n("div",{staticClass:"image-block"},[n("a",{attrs:{href:t.item.DETAIL_PAGE_URL},on:{click:t.onFollowLink}},[n("img",{attrs:{src:t.imgSrc,alt:t.item.NAME}})])]):t._e(),t._v(" "),t.showName?n("div",{staticClass:"name-block"},[n("a",{staticClass:"name",attrs:{href:t.item.DETAIL_PAGE_URL,id:"si_"+t.uid+"_"+t.item.ID},on:{click:t.onFollowLink}},[t._v("\n "+t._s(t._f("nameSlicer")(t.item.NAME))+"\n ")]),t._v(" "),t.item.NAME.length>34?n("b-tooltip",{attrs:{target:"si_"+t.uid+"_"+t.item.ID,triggers:"hover",variant:"light"}},[t._v("\n "+t._s(t.item.NAME)+"\n ")]):t._e()],1):t._e()])])}),[],!1,null,null,null).exports,Wo={name:"ActionsDetail",props:{startData:{type:Object,required:!0}},components:{ProductCard:Br,SectionCard:Vo,BrandCard:Zo,ContentCard:zr},data:function(){return{item:null,props:null,products:null,sections:null,brands:null,iblock:null,actions:null,rusMonths:["ÑнваÑÑ","ÑевÑалÑ","маÑÑа","апÑелÑ","маÑ","иÑнÑ","иÑлÑ","авгÑÑÑа","ÑенÑÑбÑÑ","окÑÑбÑÑ","ноÑбÑÑ","декабÑÑ"]}},computed:{detailPicture:function(){return!(!this.item||!this.item.DETAIL_PICTURE)&&this.item.DETAIL_PICTURE},h1:function(){return document.title},iconName:function(){if(!this.props.TYPE_ACTION)return!1;const t=this.props.TYPE_ACTION.VALUE;return"sale"===t?"fo-percent":"gift"===t?"fo-gift":"service"===t?"fo-service":"delivery"===t?"fo-cargo":"fo-star"},activeFrom:function(){const t=this.item.DISPLAY_ACTIVE_FROM?this.item.DISPLAY_ACTIVE_FROM:this.item.ACTIVE_FROM;return!!t&&new Date(Date.parse(t))},activeTo:function(){const t=this.item.DISPLAY_ACTIVE_TO;return!!t&&new Date(Date.parse(t))},period:function(){let t="";const e=this.activeFrom,n=this.activeTo;return n&&e?t+=`${e.getDate()} ${this.rusMonths[e.getMonth()]} - ${n.getDate()} ${this.rusMonths[n.getMonth()]}`:n&&(t+=`до ${n.getDate()} ${this.rusMonths[n.getMonth()]}`),t},dateFrom:function(){let t="";const e=this.activeFrom;return e&&(t+=`${e.getDate()} ${this.rusMonths[e.getMonth()]} ${e.getFullYear()}`),t},showPeriod:function(){return!(!this.activeFrom||!this.activeTo)}},methods:{},beforeMount(){this.item=this.startData,this.item.PROPERTIES&&(this.props=this.item.PROPERTIES,delete this.item.PROPERTIES),this.item.IBLOCK&&(this.iblock=this.item.IBLOCK,delete this.item.IBLOCK),this.item.RELATED_PRODUCTS&&(this.products=this.item.RELATED_PRODUCTS,delete this.item.RELATED_PRODUCTS),this.item.RELATED_SECTIONS&&(this.sections=this.item.RELATED_SECTIONS,delete this.item.RELATED_SECTIONS),this.item.RELATED_BRANDS&&(this.brands=this.item.RELATED_BRANDS,delete this.item.RELATED_BRANDS),this.item.SIMILAR_ITEMS&&(this.actions=this.item.SIMILAR_ITEMS,delete this.item.SIMILAR_ITEMS)}};var Ko=(0,bn.Z)(Wo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"actions-detail-mc container"},[n("div",{staticClass:"row image-section"},[t.detailPicture?n("div",{staticClass:"col-12"},[n("div",{staticClass:"image-outer full-size-banner"},[n("img",{attrs:{src:t.detailPicture.SRC,alt:t.item.NAME}})])]):n("div",{staticClass:"col-12"},[t._m(0)])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 date-section"},[t.showPeriod?n("div",{staticClass:"period"},[t._v("\n "+t._s(t.period)+"\n ")]):n("div",{staticClass:"date"},[t._v("\n "+t._s(t.dateFrom)+"\n ")]),t._v(" "),n("div",{staticClass:"type"},[n("v-icon",{attrs:{name:t.iconName,width:"24",height:"24"}})],1)])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 doc-title"},[n("h1",{staticClass:"mb-3"},[t._v(t._s(t.h1))])])]),t._v(" "),n("div",{staticClass:"row preview-section"},[n("div",{staticClass:"col-12 inner",domProps:{innerHTML:t._s(t.item.PREVIEW_TEXT)}})]),t._v(" "),n("div",{staticClass:"row details-section"},[n("div",{staticClass:"col-12 inner",domProps:{innerHTML:t._s(t.item.DETAIL_TEXT)}})]),t._v(" "),n("div",{staticClass:"row"},[t.products?n("div",{staticClass:"col-12 products-section"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),t._l(t.products.ORDER,(function(e){return n("div",{key:"rl_prdct_"+e,staticClass:"col-6 col-md-3 col-xl-2 item-outer"}
1,[n("ProductCard",{attrs:{"start-data":t.products.ITEMS[e]}})],1)}))],2)]):t._e(),t._v(" "),t.sections?n("div",{staticClass:"col-12 sections-section"},[n("div",{staticClass:"row"},[t._m(2),t._v(" "),t._l(t.sections.ORDER,(function(e){return n("div",{key:"rl_scts_"+e,staticClass:"col-6 col-md-3 item-outer"},[n("SectionCard",{attrs:{"start-data":t.sections.ITEMS[e]}})],1)}))],2)]):t._e(),t._v(" "),t.brands?n("div",{staticClass:"col-12 brands-section"},[n("div",{staticClass:"row"},[t._m(3),t._v(" "),t._l(t.brands.ORDER,(function(e){return n("div",{key:"rl_brd_"+e,staticClass:"col-6 col-md-3 item-outer"},[n("BrandCard",{attrs:{"start-data":t.brands.ITEMS[e]}})],1)}))],2)]):t._e(),t._v(" "),t.actions?n("div",{staticClass:"col-12 actions-section actions-list-mc"},[t._m(4),t._v(" "),n("div",{staticClass:"row items"},t._l(t.actions.ORDER,(function(e){return n("div",{key:"rl_scts_"+e,staticClass:"col-12 col-md-6 col-lg-4 item-outer"},[n("ContentCard",{attrs:{"start-data":t.actions.ITEMS[e]}})],1)})),0)]):t._e()])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"image-outer full-size-banner",staticStyle:{background:"#CCCCCC"}},[t._v("\n ÐдеÑÑ Ð´Ð¾Ð»Ð¶ÐµÐ½ бÑÑÑ ÐºÑаÑивÑй баннеÑ\n "),n("span",{staticStyle:{position:"absolute",top:"2rem"}},[t._v("DETAIL_PICTURE width / height = 3.65")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 header"},[n("h3",[t._v("ТоваÑÑ, ÑÑаÑÑвÑÑÑие в акÑии")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 header"},[n("h3",[t._v("РазделÑ, ÑÑаÑÑвÑÑÑие в акÑии")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 header"},[n("h3",[t._v("ÐÑоизводиÑели, ÑÑаÑÑвÑÑÑие в акÑии")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 header"},[n("h3",[t._v("ÐÑÑгие акÑии")])])])}],!1,null,null,null);const Xo=Ko.exports;function Qo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Jo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qo(Object(n),!0).forEach((function(e){tc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ec={name:"BrandsListNav",props:{startData:{type:Array,required:!0},value:{required:!0}},data:function(){return{sliderMounted:!1,sliderOptions:{type:"slide",rewind:!1,pagination:!1,gap:0,focus:"left",perPage:28,arrows:!0,breakpoints:{768:{perPage:23,perMove:5},536:{perPage:10,perMove:10}}},sliderPosition:null}},computed:Jo(Jo({},(0,r.Se)(["isXS","isSM","isMD","isLG","isXL"])),{},{showLeftArrow:function(){return!(this.isXL||this.isLG||!this.sliderMounted)&&(this.sliderPosition&&+this.sliderPosition>0)},showRightArrow:function(){return!(this.isXL||this.isLG||!this.sliderMounted)&&(this.isMD?+this.$refs.slider.length-+this.sliderPosition>22:+this.$refs.slider.length-+this.sliderPosition>9)}}),methods:{onAfterSliderMoved:function(){this.sliderPosition=this.$refs.slider.index},onAfterSliderMounted:function(){this.sliderPosition=this.$refs.slider.index,this.sliderMounted=!0},onClick:function(t){this.$emit("input",t)}}};const nc=(0,bn.Z)(ec,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-section"},[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 items",class:{"no-left-arrow":!t.showLeftArrow,"no-right-arrow":!t.showRightArrow}},[n("splide",{ref:"slider",attrs:{options:t.sliderOptions},on:{"splide:moved":t.onAfterSliderMoved,"splide:mounted":t.onAfterSliderMounted}},t._l(t.startData,(function(e,s){return n("splide-slide",{key:"nv_tm_"+s},[n("a",{staticClass:"item",class:{active:s===t.value},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.onClick(s)}}},[t._v(t._s(e))])])})),1)],1)])])])}),[],!1,null,null,null).exports;function sc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function rc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ic={name:"CatalogElementShowroom",props:{header:{type:[String,Boolean],default:"Ðемозал"},sepHeader:{type:[String,Boolean],default:"ÐÑиглаÑаем наÑиÑ
клиенÑов на видеоконÑÑлÑÑаÑии и показ обоÑÑÐ´Ð¾Ð²Ð°Ð½Ð¸Ñ Ð² онлайн ÑоÑмаÑе"},manager:{type:Boolean,default:!0}},components:{Form:vi},data:function(){return{}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sc(Object(n),!0).forEach((function(e){rc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.Se)(["locationIsMoscow","locationIsMoscowRegion","locationCountryName","locationMoscowPhone"])),methods:{}};const ac=(0,bn.Z)(ic,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"showroom-mc"},[n("div",{staticClass:"row"},[t.header?n("div",{staticClass:"col-12 header"},[n("h2",{domProps:{innerHTML:t._s(t.header)}})]):t._e(),t._v(" "),t.sepHeader?n("div",{staticClass:"col-12 sep-header"},[n("h3",{domProps:{innerHTML:t._s(t.sepHeader)}})]):t._e(),t._v(" "),t._m(0),t._v(" "),t.manager?n("div",{staticClass:"col-12 col-xl-9 manager-block"},[n("div",{staticClass:"row"},[t._m(1),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"col-8 col-md-10 info"},[t._m(3),t._v(" "),n("div",{staticClass:"phone"},[n("a",{domProps:{innerHTML:t._s(t.locationMoscowPhone)}}),n("span",[t._v(" (доб. 231)")])]),t._v(" "),t._m(4)])])]):t._e(),t._v(" "),t._m(5),t._v(" "),n("div",{staticClass:"col-12 col-lg-9 col-xl-9 form"},[t._m(6),t._v(" "),n("p",[t._v("ÐаÑвка на демопоказ обоÑÑдованиÑ")]),t._v(" "),n("Form",{attrs:{sid:"DEMOROOM_NEW",labels:!0,placeholders:!0,disclamer:!0}})],1)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 col-xl-9 text-block"},[n("p",[t._v("ТепеÑÑ ÐºÐ°Ð¶Ð´Ñй из Ð²Ð°Ñ Ð¼Ð¾Ð¶ÐµÑ Ð²Ð¾ÑполÑзоваÑÑÑÑ ÑÑлÑгой видео-показа обоÑÑÐ´Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð· наÑего демозала в\n Ñежиме онлайн. ÐÑо ÑдобнÑй, ÑÑÑекÑивнÑй и безопаÑнÑй ÑпоÑоб ознакомиÑÑÑÑ Ñ ÑÑнкÑионалом\n инÑеÑеÑÑÑÑей Ð²Ð°Ñ ÑеÑ
ники, а Ñакже полÑÑиÑÑ Ð¿Ð¾Ð´ÑобнÑÑ ÐºÐ¾Ð½ÑÑлÑÑаÑÐ¸Ñ Ð¿Ð¾ ÐµÑ Ð½Ð°ÑÑÑойке, иÑполÑзованиÑ\n и обÑлÑживаниÑ.")]),t._v(" "),n("p",[t._v("Ðнлайн-показ можно оÑганизоваÑÑ ÑеÑез лÑбой ÑдобнÑй Ð´Ð»Ñ Ð²Ð°Ñ ÑеÑвиÑ: Zoom, Skype, WhatsApp, Viber,\n Facebook Messenger")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 header"},[n("h3",[t._v("ÐÐ°Ñ Ð¿ÐµÑÑоналÑнÑй менеджеÑ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-4 col-md-2 photo"},[e("img",{attrs:{src:"/img/showroom/manager.jpg",alt:"ÐлекÑÐ°Ð½Ð´Ñ Ðизенков"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"name"},[n("b",[t._v("ÐлекÑÐ°Ð½Ð´Ñ Ðизенков")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"email"},[n("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 description-block"},[n("div",{staticClass:"header"},[n("h3",[t._v("Ðак ÑÑо ÑабоÑаеÑ")])]),t._v(" "),n("ol",{staticClass:"how-it-works"},[n("li",[t._v("ÐÐ»Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ Ð¾Ð½Ð»Ð°Ð¹Ð½ конÑÑлÑÑаÑии необÑ
одимо заполниÑÑ ÑоÑÐ¼Ñ Ð·Ð°Ñвки на демопоказ")]),t._v(" "),n("li",[t._v("ÐоÑле оÑпÑавки ÑоÑÐ¼Ñ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ ÑвÑжеÑÑÑ Ñ Ð²Ð°Ð¼Ð¸ и подбеÑÐµÑ Ñдобное вÑÐµÐ¼Ñ Ð¸ плаÑÑоÑÐ¼Ñ Ð´Ð»Ñ\n обÑениÑ\n ")]),t._v(" "),n("li",[t._v("РназнаÑенное вÑÐµÐ¼Ñ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ Ð±ÑÐ´ÐµÑ Ð¾Ð¶Ð¸Ð´Ð°ÑÑ Ð²Ð°Ñего подклÑÑÐµÐ½Ð¸Ñ Ð´Ð»Ñ Ð¿ÑÐ¾Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð¾Ð½Ð»Ð°Ð¹Ð½\n конÑÑлÑÑаÑии\n ")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("h3",[t._v("ÐаÑвка на демопоказ")])])}],!1,null,null,null).exports;function oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function cc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?oc(Object(n),!0).forEach((function(e){lc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const uc={name:"CertificateCard",props:{item:{type:Object,required:!0},index:{type:Number,required:!0}},data:function(){return{showOverlay:!1}},computed:cc(cc({},(0,r.Se)(["systemCompanyOfficialName"])),{},{previewPicture:function(){return this.item.CERTIFICATE_PRV},name:function(){return this.item.NAME},code:function(){return this.item.CODE},description:function(){return this.item.DESCRIPTION}}),methods:{click:function(){this.$root.lbIndex=this.index}}};const dc=(0,bn.Z)(uc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"certificate-card-mc"},[n("a",{staticClass:"image",attrs:{href:"#"},on:{mouseenter:function(e){t.showOverlay=!0},mouseleave:function(e){t.showOverlay=!1},click:function(e){return e.preventDefault(),t.click.apply(null,arguments)}}},[n("b-overlay",{attrs:{show:t.showOverlay},scopedSlots:t._u([{key:"overlay",fn:function(){return[n("v-icon",{staticClass:"fo-icon",attrs:{name:"fi-chars",width:"20",height:"20"}})]},proxy:!0}])},[t._v(" "),n("img",{attrs:{src:t.previewPicture.SRC,alt:t.previewPicture.ALT}})])],1),t._v(" "),n("div",{staticClass:"description",domProps:{innerHTML:t._s(t.description)}})])}),[],!1,null,null,null).exports;const pc={name:"VacanciesList",props:{startData:{type:Object,required:!0}},data:function(){return{items:null,order:null,opened:null}},computed:{window:function(){return window}},methods:{click:function(t){this.opened.includes(t)?this.opened=this.opened.filter((function(e){return e!==t})):this.opened.push(t)}},beforeMount(){void 0!==this.startData.items&&(this.items=this.startData.items.items,this.order=this.startData.items.order,this.opened=[])}},fc=pc;const hc=(0,bn.Z)(fc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container vacancies-list-mc"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-lg-8 main"},t._l(t.order,(function(e,s){return n("div",{key:"vl_tm_"+e,staticClass:"row item",class:{expand:null!==t.opened&&t.opened.includes(e)}},[0===s?n("div",{staticClass:"col-12 separator"},[n("hr")]):t._e(),t._v(" "),n("a",{staticClass:"col-12 header",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.click(e)}}},[n("h2",[t._v(t._s(t.items[e].NAME))]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-down"}})],1)]),t._v(" "),n("div",{staticClass:"col-12 body"},[n("div",{staticClass:"props-block"},[n("p",[t._v("з/п "),n("span",{domProps:{innerHTML:t._s(t.items[e].SALARY)}})]),t._v(" "),n("p",[t._v("г. "),n("span",{domProps:{innerHTML:t._s(t.items[e].PROPERTY_CITY_VALUE.NAME)}})])]),t._v(" "),n("div",{staticClass:"detail-text-block text-block",domProps:{innerHTML:t._s(t.items[e].DETAIL_TEXT)}}),t._v(" "),t._m(0,!0),t._v(" "),n("div",{staticClass:"form-block"},[n("div",{staticClass:"form-outer"},[n("h2",{staticClass:"header"},[t._v("ÐÑклик на ваканÑиÑ")]),t._v(" "),n("div",{staticClass:"body"},[n("universal-form",{ref:"vacancy_form_"+e,refInFor:!0,attrs:{sid:"VACANCY_FORM",labels:!0,placeholders:!1,disclamer:!1,stars:!0,spinner:!0,"direct-values":{VACANCY:t.items[e].NAME}}})],1)])])]),t._v(" "),t._m(1,!0)])})),0),t._v(" "),t._m(2)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"separator"},[e("hr")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 separator"},[e("hr")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 col-lg-4 desc"},[n("p",[t._v("ÐÑли Ð²Ñ Ð½Ðµ наÑли Ñо, ÑÑо иÑкали, напиÑиÑе нам на "),n("a",{attrs:{href:"mailto:[email protected]"}},[t._v("[email protected]")]),t._v(".\n Ðозможно, Ð¼Ñ Ð¿ÑоÑÑо еÑе не знаем, ÑÑо нам нÑÐ¶Ð½Ñ Ð¸Ð¼ÐµÐ½Ð½Ð¾ вÑ.")
1])])}],!1,null,null,null).exports;function mc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function vc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mc(Object(n),!0).forEach((function(e){_c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const gc={name:"LocationDeliveryForm",props:{startData:{type:Object,required:!0}},data:function(){return{country:null,city:null,type:null,loading:!1,nodes:{component:null,main:null,contacts:null}}},computed:vc(vc({},(0,r.Se)(["locationCity"])),{},{countries:function(){const t=[];return t.push({value:null,text:"ÐÑбеÑиÑе ÑÑÑанÑ"}),this.startData.countries.order.forEach(function(e){const n={value:e,text:this.startData.countries.items[e].NAME};t.push(n)}.bind(this)),t},cities:function(){const t=[],e=this.startData.cities;return t.push({value:null,text:"ÐÑбеÑиÑе гоÑод"}),this.country&&e.order.forEach(function(n){if(+e.items[n].COUNTRY_ID==+this.country){const s={value:n,text:e.items[n].NAME};t.push(s)}}.bind(this)),t},types:function(){const t=[];return t.push({value:null,text:"ÐÑбеÑиÑе Ñип доÑÑавки"}),t.push({value:0,text:"ÐоÑÑавка"}),t.push({value:1,text:"СамовÑвоз"}),t}}),methods:{showFilial:function(t){this.city=+t,this.country=17,this.type=0,this.nodes.component.querySelectorAll(".top-section .filials a").forEach((function(e){+e.dataset.cityId===t?e.classList.add("d-none"):e.classList.remove("d-none")})),this.execute()},deactivateContacts:function(){this.nodes.contacts.querySelectorAll(".text-block > div:not(.header)").forEach((function(t){t.classList.remove("active")}))},activateDeliveryContacts:function(){const t=this.nodes.contacts.querySelector(".text-block > .delivery");t&&t.classList.add("active")},activatePickupContacts:function(){const t=this.nodes.contacts.querySelector(".text-block > .pickup");t&&t.classList.add("active")},deactivateBlocks:function(){this.nodes.main.querySelectorAll(".content").forEach((function(t){t.classList.remove("active")}))},activateDelivery:function(){const t=this.nodes.main.querySelector(`#del_${this.city}`);if(t)t.classList.add("active");else{const t=this.nodes.main.querySelector("#del_default");t&&t.classList.add("active")}},activatePickup:function(){const t=this.nodes.main.querySelector(`#pick_${this.city}`);if(t)t.classList.add("active");else{const t=this.nodes.main.querySelector("#pick_default");t&&t.classList.add("active")}},setStartPosition:function(){if(this.locationCity){this.startData.cities.items[this.locationCity.CITY_ID]&&(this.city=+this.startData.cities.items[this.locationCity.CITY_ID].ID,this.country=+this.startData.cities.items[this.locationCity.CITY_ID].COUNTRY_ID,this.type=0,this.execute())}},execute:function(){this.deactivateBlocks(),this.deactivateContacts(),0===this.type&&(this.activateDelivery(),this.activateDeliveryContacts()),1===this.type&&(this.activatePickup(),this.activatePickupContacts())}},mounted(){this.nodes.component=document.querySelector(".www-page.delivery .component"),this.nodes.contacts=this.nodes.component.querySelector(".contacts-section"),this.nodes.main=this.nodes.component.querySelector(".main-section"),this.setStartPosition()}},bc=gc;const yc=(0,bn.Z)(bc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"row",on:{submit:function(e){return e.preventDefault(),t.execute.apply(null,arguments)}}},[n("b-form-group",{staticClass:"col-12 col-md-3",attrs:{label:"ÐÑбеÑиÑе ÑÑÑанÑ"}},[n("b-form-select",{attrs:{options:t.countries},model:{value:t.country,callback:function(e){t.country=e},expression:"country"}})],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-3",attrs:{label:"ÐÑбеÑиÑе гоÑод"}},[n("b-form-select",{attrs:{options:t.cities,disabled:null===t.country},model:{value:t.city,callback:function(e){t.city=e},expression:"city"}})],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-3",attrs:{label:"ÐÑбеÑиÑе Ñип доÑÑавки"}},[n("b-form-select",{attrs:{options:t.types,disabled:null===t.city},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}})],1),t._v(" "),n("b-form-group",{staticClass:"col-12 col-md-3 submit"},[n("b-button",{attrs:{variant:"blue",type:"submit"}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),n("span",[t._v("ÐодобÑаÑÑ")])],1)],1)],1)}),[],!1,null,null,null).exports;function Cc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Oc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Cc(Object(n),!0).forEach((function(e){wc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ec={name:"CatalogElementImages",props:{primaryImage:{type:Array,default:function(){return[]}},secondaryImages:{type:Array,default:function(){return[]}},alt:{type:String,default:"undefined"}},data:function(){return{primaryOptions:{type:"loop",perPage:1,perMove:1,gap:10,pagination:!1,arrows:!1},secondaryOptions:{type:"slide",direction:"ttb",rewind:!0,pagination:!1,fixedWidth:70,fixedHeight:70,gap:20,cover:!0,focus:"left",isNavigation:!0,updateOnMove:!0,perPage:4,perMove:1},secondaryOptionsBottom:{type:"slide",rewind:!0,pagination:!1,fixedWidth:70,fixedHeight:70,gap:16,cover:!0,focus:"center",isNavigation:!0,updateOnMove:!0,perMove:1}}},computed:Oc(Oc({},(0,r.Se)(["isXL","isLG","isMD","isSM","isXS"])),{},{showSlider:function(){return this.allImages.length>1},allImages:function(){let t=this.primaryImage;return this.secondaryImages.length>0&&(t=t.concat(this.secondaryImages)),t},imagesForLightBox:function(){let t=[];for(let e in this.allImages){let n={src:this.allImages[e].SRC};t.push(n)}return t}}),methods:{showLightBox:function(t){this.$root.lbImages=this.imagesForLightBox,this.$root.lbIndex=t}},beforeMount(){this.allImages.length<=4&&(this.secondaryOptions.perPage=this.allImages.length),this.secondaryOptions.height=`calc((${this.secondaryOptions.fixedHeight}px + ${this.secondaryOptions.gap}px) * ${this.secondaryOptions.perPage})`,this.secondaryOptions.arrows=this.allImages.length>this.secondaryOptions.perPage},mounted(){this.showSlider&&(this.isXL?this.$refs.primary.sync(this.$refs.secondary.splide):this.$refs.primary.sync(this.$refs.bottom.splide))}};const Pc=(0,bn.Z)(Ec,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.showSlider&&t.isXL?n("div",{staticClass:"d-none d-xl-block col-xl-2 slider-block"},[n("splide",{ref:"secondary",attrs:{options:t.secondaryOptions}},t._l(t.allImages,(function(e){return n("splide-slide",{key:e.SRC},[n("img",{attrs:{src:e.SRC,alt:t.alt}})])})),1)],1):t._e(),t._v(" "),n("div",{staticClass:"primary-image-block col"},[n("splide",{ref:"primary",attrs:{options:t.primaryOptions}},t._l(t.allImages,(function(e,s){return n("splide-slide",{key:e.SRC},[n("img",{staticStyle:{cursor:"pointer"},attrs:{src:e.SRC,alt:t.alt},on:{click:function(e){return t.showLightBox(s)}}})])})),1)],1),t._v(" "),n("div",{staticClass:"w-100"}),t._v(" "),n("div",{staticClass:"d-xl-none col-12 slider-block bottom"},[t.showSlider&&!t.isXL?n("splide",{ref:"bottom",attrs:{options:t.secondaryOptionsBottom}},t._l(t.allImages,(function(e){return n("splide-slide",{key:e.SRC},[n("img",{attrs:{src:e.SRC,alt:t.alt}})])})),1):t._e()],1)])}),[],!1,null,null,null).exports;function Sc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sc(Object(n),!0).forEach((function(e){Tc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Dc={name:"CatalogElementFeedbackItem",props:{startData:{type:Object,required:!0}},data:function(){return{edit:!1,editRpl:!1,msg:{value:null,validated:null,state:null,required:!0},rpl:{value:null,validated:null,state:null,required:!1},loading:{activate:!1,update:!1,delete:!1}}},computed:Ic(Ic({},(0,r.Se)(["userGetUserData","userIsContentManager","userIsAdmin"])),{},{active:function(){return"Y"===this.startData.ACTIVE},spam:function(){return!!this.startData.PROPERTY_SPAM_VALUE},name:function(){return this.startData.PROPERTY_NAME_VALUE},date:function(){return this.startData.ACTIVE_FROM?this.startData.ACTIVE_FROM.split(" ")[0]:""},email:function(){return this.startData.PROPERTY_EMAIL_VALUE},text:function(){return this.startData.DETAIL_TEXT||""},reply:function(){return this.startData.PROPERTY_REPLY_VALUE.TEXT||""},rating:function(){return+this.startData.PROPERTY_RATING_VALUE},likes:function(){return{cnt:this.startData.PROPERTY_LIKE_VALUE.length,active:this.userIsAuthorized&&this.startData.PROPERTY_LIKE_VALUE.includes(this.userGetUserData.ID)}},dislikes:function(){return{cnt:this.startData.PROPERTY_DISLIKE_VALUE.length,active:this.userIsAuthorized&&this.startData.PROPERTY_DISLIKE_VALUE.includes(this.userGetUserData.ID)}}}),methods:Ic(Ic({},(0,r.nv)(["feedbackUpdate","feedbackDelete"])),{},{activate:async function(){this.loading.activate=!0;const t={id:this.startData.ID,body:{fields:{ACTIVE:"Y"===this.startData.ACTIVE?"N":"Y"}}};try{const e=await this.feedbackUpdate(t);this.$emit("change",e.data.element)}catch(t){console.error(t),console.error(t.response),console.error(t.response.data),this.errorMessage=t.response.data.message}this.loading.activate=!1},update:async function(){if(this.edit){if(this.startData.DETAIL_TEXT&&this.msg.value.trim()===this.startData.DETAIL_TEXT.trim())return this.cancel();if(this.setState(this.msg),!1===this.msg.state)return;this.loading.update=!0;const t={id:this.startData.ID,body:{fields:{DETAIL_TEXT:this.msg.value.trim()}}};try{const e=await this.feedbackUpdate(t);this.msg.value=e.data.element.DETAIL_TEXT,this.$emit("change",e.data.element)}catch(t){console.error(t),console.error(t.response),console.error(t.response.data),this.errorMessage=t.response.data.message}return this.loading.update=!1,this.cancel()}if(this.editRpl){if(this.reply&&this.rpl.value.trim()===this.reply.trim())return this.cancel();if(this.setState(this.rpl),!1===this.rpl.state)return;this.loading.update=!0;const t={id:this.startData.ID,body:{properties:{REPLY:this.rpl.value.trim()}}};try{const e=await this.feedbackUpdate(t);this.msg.value=e.data.element.DETAIL_TEXT,this.$emit("change",e.data.element)}catch(t){console.error(t),console.error(t.response),console.error(t.response.data),this.errorMessage=t.response.data.message}return this.loading.update=!1,this.cancel()}},remove:async function(){this.loading.delete=!0;try{await this.feedbackDelete({id:this.startData.ID});this.$emit("delete",this.startData.ID)}catch(t){console.error(t),console.error(t.response),console.error(t.response.data),this.errorMessage=t.response.data.message}this.loading.delete=!1},like:function(){},dislike:function(){},cancel:function(){this.edit=!1,this.editRpl=!1},setState:Kn}),beforeMount(){this.msg.value=this.startData.DETAIL_TEXT,this.rpl.value=this.startData.PROPERTY_REPLY_VALUE.TEXT}};const Ac=(0,bn.Z)(Dc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row item"},[n("div",{staticClass:"col-12 header"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-4 col-md-4 name"},[n("b",[t._v(t._s(t.name))])]),t._v(" "),n("div",{staticClass:"col-4 col-md-4 date"},[n("span",[t._v(t._s(t.date))])]),t._v(" "),t.rating?n("div",{staticClass:"col-4 col-md-4 rating"},[t.rating?n("b-form-rating",{staticClass:"p-0",attrs:{stars:5,variant:"warning",size:"lg",readonly:"","no-border":"",inline:""},model:{value:t.rating,callback:function(e){t.rating=e},expression:"rating"}}):t._e(),t._v(" "),n("div",{staticClass:"text-value"},[n("span",{staticClass:"current-value"},[t._v(t._s(t.rating))]),t._v("\n из\n "),n("span",{staticClass:"best-value"},[t._v("5")])])],1):t._e()])]),t._v(" "),n("div",{staticClass:"col-12 comment"},[t.edit?n("b-form-group",{attrs:{validated:t.msg.validated,state:t.msg.state}},[n("b-form-textarea",{attrs:{rows:"5",state:t.msg.state},on:{input:function(e){return t.setState(t.msg)}},model:{value:t.msg.value,callback:function(e){t.$set(t.msg,"value",e)},expression:"msg.value"}}),t._v(" "),t.msg.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.msg.errorMsg)+"\n ")]):t._e()],1):t._e(),t._v(" "),t.edit?t._e():n("p",{domProps:{innerHTML:t._s(t.text)}})],1),t._v(" "),n("div",{staticClass:"col-12 reply"},[t.editRpl?n("b-form-group",{attrs:{validated:t.rpl.validated,state:t.rpl.state}},[n("b-form-textarea",{attrs:{rows:"5",state:t.rpl.state},on:{input:function(e){return t.setState(t.rpl)}},model:{value:t.rpl.value,callback:function(e){t.$set(t.rpl,"value",e)},expression:"rpl.value"}}),t._v(" "),t.rpl.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.rpl.errorMsg)+"\n ")]):t._e()],1):t._e(),t._v(" "),t.reply&&!t.editRpl?n("p",{domProps:{innerHTML:t._s(t.reply)}}):t._e()],1),t._v(" "),t.userIsAdmin||t.userIsContentManager?n("div",{staticClass:"col-12 controls"},[t.edit||t.editRpl?t._e():n("b-button",{attrs:{variant:"warning"},on:{click:t.activate}},[t.loading.activate?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),t.active?n("span",[t._v("ÐеакÑивиÑоваÑÑ")]):n("span",[t._v("ÐкÑивиÑоваÑÑ")])],1),t._v(" "),t.edit||t.editRpl?t._e():n("b-button",{attrs:{variant:"info"},on:{click:function(e){t.edit=!0}}},[n("span",[t._v("РедакÑиÑоваÑÑ")])]),t._v(" "),t.edit||t.editRpl?t._e():n("b-button",{attrs:{variant:"primary"},on:{click:function(e){t.editRpl=!0}}},[n("span",[t._v("ÐÑвеÑиÑÑ")])]),t._v(" "),t.edit||t.editRpl?t._e():n("b-button",{attrs:{variant:"danger"},on:{click:t.remove}},[t.loading.delete?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),n("span",[t._v("УдалиÑÑ")])],1),t._v(" "),t.edit||t.editRpl?n("b-button",{attrs:{variant:"success"},on:{click:t.update}},[t.loading.update?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),n("span",[t._v("СоÑ
ÑаниÑÑ")])],1):t._e(),t._v(" "),t.edit||t.editRpl?n("b-button",{attrs:{variant:"danger"},on:{click:t.cancel}},[n("span",[t._v("ÐÑмениÑÑ")])]):t._e()],1):t._e(),t._v(" "),n("div",{staticClass:"col likes d-none"},[n("span",{staticClass:"item"},[n("a",{staticClass:"icon like",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.like.apply(null,arguments)}}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fi-l
1ike"}})],1),t._v(" "),n("span",{staticClass:"count"},[t._v(t._s(t.likes))])]),t._v(" "),n("span",{staticClass:"item"},[n("a",{staticClass:"icon dislike",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.dislike.apply(null,arguments)}}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fi-like"}})],1),t._v(" "),n("span",{staticClass:"count"},[t._v(t._s(t.dislikes))])])])])}),[],!1,null,null,null).exports;function kc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function jc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kc(Object(n),!0).forEach((function(e){Lc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Rc={name:"CatalogElementFeedback",props:{productId:{type:Number,required:!0},startData:{type:Object,required:!0},params:{type:Object,required:!0}},components:{FeedbackItem:Ac},data:function(){return{form:{name:{name:"ÐаÑе имÑ",type:"text",code:"name",value:null,required:!0,validated:!1,placeholder:"ÐаÑе имÑ",blocked:!1,state:null,description:null,class:"col-12 col-md-6"},email:{name:"E-mail",type:"email",code:"email",value:null,required:!0,validated:!1,validation:{email:[]},placeholder:"E-mail",blocked:!1,state:null,description:"ÐдÑÐµÑ Ð½Ðµ бÑÐ´ÐµÑ Ð²Ð¸Ð´ÐµÐ½ дÑÑгим полÑзоваÑелÑм",class:"col-12 col-md-6"},msg:{name:"ÐÑзÑв",type:"textarea",code:"msg",value:null,required:!0,validated:!1,placeholder:"ÐпиÑиÑе ваÑе обÑее впеÑаÑление: ÑÑок иÑполÑзованиÑ, кÑиÑеÑии пÑи вÑбоÑе",blocked:!1,state:null,description:null,class:"col-12"},rating:{name:"ÐÑенка",type:"rating",code:"rating",value:null,required:!0,validated:!1,placeholder:"ÐоÑÑавÑÑе оÑенкÑ",blocked:!1,state:null,description:null,class:"col-12 col-md-6"}},procAgree:{value:!1,state:null,validated:!1,required:!0},loading:!1,showForm:!0,sent:!1,errorMessage:"",validation:Wn,feedbackItems:{},feedbackOrder:{}}},computed:jc(jc({},(0,r.Se)(["userGetUserData","userIsContentManager","userIsAdmin","userIsAuthorized"])),{},{count:function(){return this.comments.length},order:function(){return this.feedbackOrder},comments:function(){return this.order.map((t=>this.feedbackItems[t])).filter((t=>!(!this.userIsAdmin&&!this.userIsContentManager)||"Y"===t.ACTIVE&&!t.PROPERTY_SPAM_VALUE))},hasFeedback:function(){return!!this.count}}),methods:jc(jc({},(0,r.nv)(["feedbackInsert"])),{},{setState:Kn,createLabel:Xn,onSubmit:async function(){if(this.errorMessage="",!this.validate())return!1;this.loading=!0;const t={body:this.getFormData()};try{await this.feedbackInsert(t);this.sent=!0}catch(t){console.error(t),console.error(t.response),console.error(t.response.data),this.errorMessage=t.response.data.message}this.loading=!1},onReset:function(){},validate:function(){let t=!0;return[...Object.values(this.form),this.procAgree].forEach((function(e){Kn(e),!1===e.state&&(t=!1)})),t},setUserData:function(){if(this.userGetUserData){const t=this.userGetUserData;if(t.NAME){const e=this.form.name;e.value=t.NAME,Kn(e),e.state&&(e.blocked=!0)}if(t.EMAIL){const e=this.form.email;e.value=t.EMAIL,Kn(e),e.state&&(e.blocked=!0)}}},getFormData:function(){return{fields:{NAME:`${this.productId} ${this.form.name.value} ${this.form.email.value}`,DETAIL_TEXT:this.form.msg.value},properties:{NAME:this.form.name.value,EMAIL:this.form.email.value,PRODUCT:this.productId,RATING:this.form.rating.value}}},onFeedbackItemChange:function(t){this.feedbackItems[t.ID]=t},onFeedbackItemDelete:function(t){this.feedbackOrder=this.feedbackOrder.filter((e=>+e!=+t)),delete this.feedbackItems[t]}}),beforeMount(){this.setUserData(),this.feedbackItems=jc({},this.startData.comments),this.feedbackOrder=[...this.startData.order]}},Mc=Rc;const xc=(0,bn.Z)(Mc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"feedback-mc container-fluid p-0"},[t.sent?t._e():n("div",{staticClass:"row header"},[n("div",{staticClass:"col-12"},[t.hasFeedback?n("div",{staticClass:"hasfb"},[n("h2",[t._v("ÐÑего оÑзÑвов: "+t._s(t.count))]),t._v(" "),n("p",[t._v("ÐÐ°Ñ Ð¾ÑзÑв Ð¿Ð¾Ð¼Ð¾Ð¶ÐµÑ ÐºÐ¾Ð¼Ñ-Ñо ÑделаÑÑ Ð²ÑбоÑ. СпаÑибо, ÑÑо делиÑеÑÑ Ð¾Ð¿ÑÑом!")]),t._v(" "),n("a",{staticClass:"btn btn-blue",attrs:{href:"#create-feedback"},on:{click:function(e){t.showForm=!0}}},[t._v("ÐапиÑаÑÑ Ð¾ÑзÑв")])]):n("p",{staticClass:"nofb"},[t._v("Ðб ÑÑом ÑоваÑе оÑзÑвов пока неÑ. ÐÑдÑÑе пеÑвÑм!")])])]),t._v(" "),t.hasFeedback?n("div",{staticClass:"row feedback-section"},[n("div",{staticClass:"col-12 col-lg-10 col-xl-8 feedback-container"},t._l(t.comments,(function(e,s){return n("FeedbackItem",{key:"fb_tm_"+s,attrs:{"start-
1data":e},on:{change:t.onFeedbackItemChange,delete:t.onFeedbackItemDelete}})})),1)]):t._e(),t._v(" "),n("div",{staticClass:"row form-section",attrs:{id:"create-feedback"}},[t.showForm?n("div",{staticClass:"col-12",attrs:{show:t.loading}},[t.sent?t._e():n("div",{staticClass:"header p-0"},[n("h2",[t._v("ÐапиÑаÑÑ Ð¾ÑзÑв")]),t._v(" "),n("p",[t._v("ÐÐ°Ñ Ð¾ÑзÑв Ð¿Ð¾Ð¼Ð¾Ð¶ÐµÑ ÐºÐ¾Ð¼Ñ-Ñо ÑделаÑÑ Ð²ÑбоÑ. СпаÑибо, ÑÑо делиÑеÑÑ Ð¾Ð¿ÑÑом!")])]),t._v(" "),n("div",{staticClass:"col-12 col-lg-10 col-xl-8 p-0 uf-mc"},[t.sent?n("div",{staticClass:"row thank-you-page"},[n("div",{staticClass:"col-12 header"},[n("h2",[t._v("ÐлагодаÑим за оÑзÑв")])]),t._v(" "),n("div",{staticClass:"col-12"},[n("p",[t._v("ÐÐ°Ñ Ð¾ÑзÑв о ÑоваÑе бÑÐ´ÐµÑ Ð¾Ð¿Ñбликован поÑле модеÑаÑии")])])]):n("b-form",{staticClass:"uf-form row",attrs:{novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)},reset:function(e){return e.preventDefault(),t.onReset.apply(null,arguments)}}},[n("b-form-group",[n("b-alert",{attrs:{variant:"danger",show:!!t.errorMessage}},[t._v(t._s(t.errorMessage))])],1),t._v(" "),t._l(t.form,(function(e,s){var r;return n("b-form-group",{key:"bfg_"+e.code+"_"+s,class:(r={},r[e.code]=!0,r[e.class]=!0,r),attrs:{description:e.description,validated:e.validated,state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(t.createLabel(e))}})]},proxy:!0}],null,!0)},[t._v(" "),"rating"===e.type?n("b-form-rating",{class:{"is-invalid":!1===e.state,"is-valid":!0===e.state},attrs:{placeholder:e.placeholder,required:e.required,state:e.state,stars:5,variant:"warning"},on:{change:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}):"textarea"===e.type?n("b-form-textarea",{attrs:{rows:"4","max-rows":"4",placeholder:e.placeholder,required:e.required,state:e.state,readonly:e.blocked},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}):n("b-form-input",{attrs:{placeholder:e.placeholder,type:e.type,required:e.required,state:e.state,readonly:e.blocked},on:{input:function(n){return t.setState(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)})),t._v(" "),t._e(),t._v(" "),n("b-form-group",{staticClass:"proc-agree col-12",attrs:{validated:t.procAgree.validated,state:t.procAgree.state}},[n("b-form-checkbox",{attrs:{required:t.procAgree.required,state:t.procAgree.state},model:{value:t.procAgree.value,callback:function(e){t.$set(t.procAgree,"value",e)},expression:"procAgree.value"}},[n("span",{domProps:{innerHTML:t._s(t.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML)}}),t._v(" "),t.procAgree.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()])],1),t._v(" "),n("b-form-group",{staticClass:"button col-12"},[n("b-button",{attrs:{type:"submit",variant:"blue"}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),n("span",[t._v("ÐÑпÑавиÑÑ Ð¾ÑзÑв")])],1)],1)],2)],1)]):t._e()])])}),[],!1,null,null,null).exports;const Nc={name:"YMarketShield",props:{},data:function(){return{stars:5,rating:4.5}}};const Uc=(0,bn.Z)(Nc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"y-market-shield"},[n("div",{staticClass:"left"},[n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-yandex-market",width:"78",height:"15"}})],1),t._v(" "),n("div",{staticClass:"right"},[n("b-form-rating",{attrs:{value:t.rating,stars:t.stars,variant:"warning",readonly:""}})],1)])}),[],!1,null,null,null).exports;const qc={name:"VueRecaptchaV2",props:{siteKey:{type:String,default:"6LdNcdUbAAAAACE0B2gD-HxwLz5lL6xuGrnk8EAO"}},data:function(){return{response:null}},methods:{getResponse:function(){return this.response},verify:function(t){this.response=t,this.$emit("input",t)},expired:function(){this.response=null,this.$refs.captcha.reset()}}};const Hc=(0,bn.Z)(qc,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports;const Fc={name:"VueRecaptchaV3",props:{sitekey:{type:String,default:"6LdzZ9UbAAAAAFlcnxU3urtegLSg_c7H8Dg7gUnI"}},data:function(){return{token:null,initiated:!1}},methods:{getToken:async function(){return Q()},init:function(){return!0}},mounted(){window.recaptcha=this}};const $c=(0,bn.Z)(Fc,(function(){var t=this.$createElement;return(this._self._c||t)("span")}),[],!1,null,null,null).exports;const Vc=JSON.parse('{"msc":[{"name":"ÐоÑÑавка по ÐоÑкве","price":590,"freeFrom":100000},{"name":"СамовÑвоз по адÑеÑÑ 1-й ÐÑзовÑкий пÑоезд, 5Ñ1","price":0,"text":"беÑплаÑно","isPickup":true,"officeId":47312}],"mscReg":[{"name":"ÐоÑÑавка по ÐоÑковÑкой облаÑÑи","price":590,"from":true},{"name":"СамовÑвоз по адÑеÑÑ ÐоÑква, 1-й ÐÑзовÑкий пÑоезд, 5Ñ1","price":0,"text":"беÑплаÑно","isPickup":true,"officeId":47312}],"spb":[{"name":"ÐоÑÑавка по СанкÑ-ÐеÑеÑбÑÑгÑ","price":590,"text":"","from":true},{"name":"СамовÑвоз по адÑеÑÑ Ð¿Ñ. ÐнеÑгеÑиков, д. 3Ð, помеÑение 01/2","price":0,"text":"0","from":true,"isPickup":true,"officeId":47478}],"reg":[{"name":"ТÑанÑпоÑÑÐ½Ð°Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ ÐÐРдо ÑеÑминала в ваÑем гоÑоде","price":590,"from":true,"popover":true},{"name":"ТÑанÑпоÑÑÐ½Ð°Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ ÐеловÑе Ðинии","price":590,"from":true,"popover":true},{"name":"ÐÑÐ±Ð°Ñ Ð´ÑÑÐ³Ð°Ñ ÑÑанÑпоÑÑÐ½Ð°Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ Ð¿Ð¾ ваÑÐµÐ¼Ñ Ð²ÑбоÑÑ","price":0,"text":"—"}]}');function Bc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Gc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Bc(Object(n),!0).forEach((function(e){Yc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const zc={name:"ModalCart",props:{},data:function(){return{deliveryTypes:Vc}},computed:Gc(Gc(Gc(Gc(Gc({},(0,r.Se)(["cartProductsIds","cartIsEmpty"])),(0,r.Se)(["cartOriginalCurrencyHtml","cartOriginalSum","cartOriginalDiscount"])),(0,r.Se)(["cartConvertedCurrencyHtml","cartConvertedSum","cartConvertedDiscount"])),(0,r.Se)(["locationIsMoscow","locationIsMoscowRegion","locationIsSPB","locationCity"])),{},{count:function(){return this.cartProductsIds.length}}),methods:Gc(Gc({},(0,r.nv)(["cartUpdateClientCart","cartSetDeliveryList","cartSetPayList","cartSetDel2Pay"])),{},{onCartIsEmpty:function(t){return this.$emit("cart-is-empty")}}),components:{ProductsInCart:Mn},beforeMount(){this.startData&&(this.cartUpdateClientCart(this.startData.basket),this.cartSetDeliveryList(this.startData.deliveryList),this.cartSetPayList(this.startData.payList),this.cartSetDel2Pay(this.startData.del2pay))}};const Zc=(0,bn.Z)(zc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-cart-mc mb-5"},[n("ProductsInCart",{attrs:{type:"main"},on:{"cart-is-empty":t.onCartIsEmpty}}),t._v(" "),t.cartIsEmpty?t._e():n("div",{staticClass:"modal-cart-footer"},[t.locationIsMoscow?n("div",{staticClass:"delivery"},[t._v("\n ÐоÑÑавка по ÐоÑкве\n "),+t.cartOriginalSum>=+t.deliveryTypes.msc[0].freeFrom?n("b",{staticClass:"green"},[t._v("беÑплаÑно")]):n("b",{staticClass:"green"},[t.deliveryTypes.msc[0].from?n("span",[t._v("оÑ")]):t._e(),t._v(" "),n("span",[t._v(t._s(t.deliveryTypes.msc[0].price))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]):t.locationIsMoscowRegion?n("div",{staticClass:"delivery"},[t._v("\n ÐоÑÑавка по ÐоÑковÑкой облаÑÑи\n "),+t.cartOriginalSum>=+t.deliveryTypes.msc[1].freeFrom?n("b",{staticClass:"green"},[t._v("беÑплаÑно")]):n("b",{staticClass:"green"},[t.deliveryTypes.msc[1].from?n("span",[t._v("оÑ")]):t._e(),t._v(" "),n("span",[t._v(t._s(t.deliveryTypes.msc[1].price))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]):t.locationIsSPB?n("div",{staticClass:"delivery"},[t._v("\n ÐоÑÑавка по СанкÑ-ÐеÑеÑбÑÑгÑ\n "),+t.cartOriginalSum>=+t.deliveryTypes.spb[0].freeFrom?n("b",{staticClass:"green"},[t._v("беÑплаÑно")]):n("b",{staticClass:"green"},[t.deliveryTypes.spb[0].from?n("span",[t._v("оÑ")]):t._e(),t._v(" "),n("span",[t._v(t._s(t.deliveryTypes.spb[0].price))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]):n("div",{staticClass:"delivery"},[t._v("\n ÐоÑÑавка\n "),n("b",{staticClass:"green"},[t.deliveryTypes.reg[0].from?n("span",[t._v("оÑ ")]):t._e(),t._v(" "),n("span",[t._v(t._s(t.deliveryTypes.reg[0].price))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})])]),t._v(" "),n("div",{staticClass:"total-price"},[n("span",{staticClass:"text"},[t._v("ÐÑого:")]),t._v(" "),n("span",{staticClass:"value"},[t._v(" "+t._s(t._f("printPrice")(t.cartOriginalSum))+" ")]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})]),t._v(" "),n("div",{staticClass:"discount-price"},[n("span",{staticClass:"text"},[t._v("ÐаÑа Ñкидка")]),t._v(" "),n("span",{staticClass:"value"},[t._v(t._s(t._f("printPrice")(t.cartOriginalDiscount)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}})]),t._v(" "),t._m(0)])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"order-block"},[n("a",{staticClass:"btn btn-blue",attrs:{href:"/personal/cart/"}},[t._v("ÐÑоÑмиÑÑ")])])}],!1,null,null,null).exports;function Wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Kc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Wc(Object(n),!0).forEach((function(e){Xc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xc(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Qc={name:"PickupPointDelCompany",computed:Kc(Kc({},(0,r.Se)(["locationPickupPoints"])),{},{active:function(){return!!this.locationPickupPoints},point:function(){return this.active?Object.values(this.locationPickupPoints)[0][0].PREVIEW_TEXT:null}})};const Jc=(0,bn.Z)(Qc,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"pickup-point-del-company-mc"},[t.active?n("span",{domProps:{innerHTML:t._s(t.point)}}):t._e()])}),[],!1,null,null,null).exports;const tl={name:"ContentRating",props:{iBlockCode:{type:String,required:!0},entityId:{type:Number,required:!0},stars:{type:Number,default:5}},data:function(){return{_value:null}},computed:{value:{get:function(){return this.$data._value},set:function(t){this.saveLocalRating(t),this.$data._value=t,this.$root.ymReachGoal("content_rating_vote")}},readonly:function(){return!1},ratings:function(){return JSON.parse(localStorage.getItem("fo_rating"))},rating:function(){return this.ratings?.[this.iBlockCode]?.[this.entityId]}},methods:{saveLocalRating:function(t){const e=this.ratings;e[this.iBlockCode][this.entityId]=t,localStorage.setItem("fo_rating",JSON.stringify(e))}},beforeMount(){this.ratings||localStorage.setItem("fo_rating",JSON.stringify({articles:{},actions:{},news:{},products:{}})),this.rating&&(this.$data._value=this.rating)}};const el=(0,bn.Z)(tl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"content-rating-mc"},[n("b-form-rating",{attrs:{readonly:t.readonly,stars:t.stars,size:"lg",inline:"","no-border":""},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1)}),[],!1,null,null,null).exports;function nl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function sl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nl(Object(n),!0).forEach((function(e){rl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rl(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const il={name:"AnyQueryProvider",props:{},components:{},data:function(){return{}},computed:sl(sl({},(0,r.Se)(["userIsAuthorized","cartProductsIds","cartFullCart","favouritesItems","compareItems"])),{},{isEmpty:function(){return 0===this.cartProductsIds.length},isInitiated:function(){return this.cartProductsIds.length===Object.keys(this.cartFullCart).length},cart:function(){return this.isEmpty?{}:Object.assign({},...Object.values(this.cartFullCart).map((t=>({[+t.PRODUCT_ID]:+t.QUANTITY}))))},favourites:function(){return Object.values(this.favouritesItems.order)},compare:function(){return Object.values(this.compareItems)}}),methods:sl(sl(sl(sl({},(0,r.nv)(["cartInit","addProductToCart","cartSetQuantityAction","cartRemoveItemAction"])),(0,r.nv)(["favouritesAdd","favouritesRemove","favouritesAddUnauthorized","favouritesRemoveUnauthorized","favouritesRemoveUnauthorized"])),(0,r.nv)(["compareAdd","compareRemove"])),{},{addToCart:async function(t,e=1){if(console.log("addToCart()",...arguments),e=+e,!(t=+t)||t<=0)throw new Error(`Unexpected id=${t}`);+e<=0&&(e=1);if(!this.isEmpty&&this.cartProductsIds.includes(t)){const n={id:this.getBasketRowIdByProduct(t)};n.quantity=this.cart[t]+e;return!0===(await this.cartSetQuantityAction(n)).success}return!0===await this.addProductToCart({id:t,quantity:e})},removeFromCart:async function(t,e=1){if(console.log("removeFromCart()",...arguments),e=+e,!(t=+t)||t<=0)throw new Error(`Unexpected id=${t}`);if(e<-1)throw new Error(`Unexpected amount=${e}`);if(!(!this.isEmpty&&this.cartProductsIds.includes(+t)))return!1;const n=e>=this.cart[t]||0===e||-1===e,s=this.getBasketRowIdByProduct(t);if(n){return!0===(await this.cartRemoveItemAction({id:s})).success}{const n={id:s,quantity:this.cart[t]-e};return!0===(await this.cartSetQuantityAction(n)).success}},cartState:async function(){return console.log("cartState"),this.isInitiated||await this.cartInit({}),this.cart},addToFavorites:async function(t){if(console.log("addToFavorites()",...arguments),!(t=+t)||t<=0)throw new Error(`Unexpected id=${t}`);if(this.favourites.includes(t))return!0;
1if(this.userIsAuthorized){return!0===(await this.favouritesAdd({id:t})).success}return this.favouritesAddUnauthorized(t),!0},removeFromFavorites:async function(t){if(console.log("removeFromFavorites()",...arguments),!(t=+t)||t<=0)throw new Error(`Unexpected id=${t}`);if(!this.favourites.includes(t))return!0;if(this.userIsAuthorized){return!0===(await this.favouritesRemove({id:t})).success}return this.favouritesRemoveUnauthorized(t),!0},favoritesState:async function(){return console.log("favoritesState()"),this.favourites},addToCompare:async function(t){if(console.log("addToCompare()",...arguments),!(t=+t)||t<=0)throw new Error(`Unexpected id=${t}`);return this.compare.includes(t)||this.compareAdd(t),!0},removeFromCompare:async function(t){if(console.log("removeFromCompare()",...arguments),!(t=+t)||t<=0)throw new Error(`Unexpected id=${t}`);return!this.compare.includes(t)||(this.compareRemove(t),!0)},comparesState:async function(){return console.log("comparesState()"),this.compare},getBasketRowIdByProduct:function(t){const e=Object.keys(this.cartFullCart).filter((e=>+this.cartFullCart[e].PRODUCT_ID==+t));if(!e.length)throw new Error(`Not found ${t} in cart`);return e[0]}}),beforeMount(){window.digiLayer={addToCart:this.addToCart,removeFromCart:this.removeFromCart,cartState:this.cartState,addToFavorites:this.addToFavorites,removeFromFavorites:this.removeFromFavorites,favoritesState:this.favoritesState,addToCompare:this.addToCompare,removeFromCompare:this.removeFromCompare,comparesState:this.comparesState},console.log(window.digiLayer)}},al=il;const ol=(0,bn.Z)(al,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports;const cl={name:"SwitchFilter",props:{name:{type:String,required:!0},value:{type:Boolean,default:!1}},data:function(){return{}},computed:{val:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}};const ll=(0,bn.Z)(cl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-filter-mc switcher"},[n("div",{staticClass:"head"},[n("span",{domProps:{innerHTML:t._s(t.name)}})]),t._v(" "),n("div",{staticClass:"body"},[n("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.val,callback:function(e){t.val=e},expression:"val"}})],1)])}),[],!1,null,null,null).exports;const ul={name:"CheckboxFilter",props:{id:{type:[String,Number],default:""},name:{type:String,required:!0},samples:{type:Array,required:!0},unit:{type:String,default:""},isAdmin:{type:Boolean,default:!1},value:{type:Array}},data:function(){return{expand:!0}},computed:{selected:{get:function(){return this.value||[]},set:function(t){if((t=t.length?t:null)!==this.value)return this.$emit("input",t)}}}};const dl=(0,bn.Z)(ul,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-filter-mc checkbox"},[n("div",{staticClass:"head"},[n("span",{domProps:{innerHTML:t._s(t.name)}}),t._v(" "),t.isAdmin?n("span",{staticStyle:{color:"red"},domProps:{innerHTML:t._s(t.id)}}):t._e()]),t._v(" "),n("div",{staticClass:"body",class:{expand:t.expand}},[n("b-form-checkbox-group",{model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},t._l(t.samples,(function(e,s){return n("b-form-checkbox",{key:"ch_fl_"+t.id+"_"+s,attrs:{value:e.value}},[n("span",{domProps:{innerHTML:t._s(e.label)}}),t._v(" "),t.unit?n("span",{domProps:{innerHTML:t._s(t.unit)}}):t._e(),t._v(" "),n("span",{staticClass:"cnt",domProps:{innerHTML:t._s("("+e.count+")")}}),t._v(" "),e.link?n("a",{staticClass:"direct-link",attrs:{href:e.link}},[n("fai",{attrs:{icon:"chevron-right"}})],1):t._e()])})),1)],1),t._v(" "),t.samples.length>5?n("div",{staticClass:"show-more"},[t.expand?t._e():n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.expand=!0}}},[t._v("ÐоказаÑÑ Ð²Ñе")]),t._v(" "),t.expand?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.expand=!1}}},[t._v("СвеÑнÑÑÑ")]):t._e()]):t._e()])}),[],!1,null,null,null).exports;const pl={name:"DropdownFilter",props:{id:{type:[String,Number],required:!0},name:{type:String,required:!0},samples:{type:Array,required:!0},unit:{type:String,default:""},isAdmin:{type:Boolean,default:!1},value:{type:[Number,String],default:null}},data:function(){return{}},computed:{selected:{get:function(){return this.value},set:function(t){return this.$emit("input",t)}}}};const fl=(0,bn.Z)(pl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-filter-mc dropdown"},[n("div",{staticClass:"head"},[n("span",{domProps:{innerHTML:t._s(t.name)}}),t._v(" "),t.isAdmin?n("span",{staticStyle:{color:"red"},domProps:{innerHTML:t._s(t.id)}}):t._e()]),t._v(" "),n("div",{staticClass:"body"},[n("b-form-select",{staticClass:"mt-3",attrs:{size:"sm"},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[n("b-form-select-option",{attrs:{value:null}},[t._v("ÐÑе")]),t._v(" "),t._l(t.samples,(function(e,s){return n("b-form-select-option",{key:"sl_fl_"+t.i
1d+"_"+s,attrs:{value:e.value}},[n("span",{domProps:{innerHTML:t._s(e.label)}}),t._v(" "),t.unit?n("span",{domProps:{innerHTML:t._s(t.unit)}}):t._e(),t._v(" "),n("span",{staticClass:"cnt",domProps:{innerHTML:t._s("("+e.count+")")}})])}))],2)],1)])}),[],!1,null,null,null).exports;var hl=n(1001);function ml(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function vl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ml(Object(n),!0).forEach((function(e){_l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const gl={name:"RangeFilter",props:{id:{type:[String,Number],required:!0},name:{type:String,default:""},unit:{type:String,default:""},samples:{type:Array,required:!0},isAdmin:{type:Boolean,default:!1},value:{type:Object}},components:{Slider:hl.Z},data:function(){return{input:{min:0,max:0},mouseDown:!1,updatedAt:0,updateTimeout:200}},computed:{sliderModel:{get:function(){return[this.min,this.max]},set:function(t){this.minInput!==+t[0]&&(this.minInput=+t[0]),this.maxInput!==+t[1]&&(this.maxInput=+t[1])}},min:{get:function(){return this.value?.min||this.start},set:function(t){return console.log("min->set()",t,{min:this.min,max:this.max}),+t===this.min?console.error("value is equal with current min value"):+t<this.start?console.error("min slider value cannot be less then min range"):+t>this.end?console.error("min slider value cannot be more then max range"):(+t>this.max&&(this.max=this.end),void(this.input=vl(vl({},this.input),{},{min:+t})))}},max:{get:function(){return this.value?.max||this.end},set:function(t){return console.log("max->set()",t,{min:this.min,max:this.max}),+t===this.max?console.error("value is equal with current min value"):+t<this.start?console.error("max slider value cannot be less then min range"):+t>this.end?console.error("max slider value cannot be more then max range"):(+t<this.min&&(this.min=this.start),void(this.input=vl(vl({},this.input),{},{max:+t})))}},minInput:{get:function(){return this.input.min},set:function(t){this.input=vl(vl({},this.input),{},{min:+t})}},maxInput:{get:function(){return this.input.max},set:function(t){this.input=vl(vl({},this.input),{},{max:+t})}},start:function(){return+this.samples[0]},end:function(){return+this.samples[this.samples.length-1]},step:function(){return this.samples.find((t=>+t%1>0))?.1:1}},methods:{onInputChange:function(t){const{min:e,max:n}=t;e&&(this.min=e),n&&(this.max=n),this.update()},update(){return this.input.min===this.start&&this.input.max===this.end?this.$emit("input",null):this.$emit("input",this.input)}},beforeMount(){this.input={min:this.value?.min||this.start,max:this.value?.max||this.end}},mounted(){document.addEventListener("mouseup",(()=>this.mouseDown=!1))}};const bl=(0,bn.Z)(gl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-filter-mc range"},[n("div",{staticClass:"head"},[n("span",{domProps:{innerHTML:t._s(t.name)}}),t._v(" "),t.unit?n("span",{domProps:{innerHTML:t._s(", "+t.unit)}}):t._e(),t._v(" "),t.isAdmin?n("span",{staticStyle:{color:"red"},domProps:{innerHTML:t._s(t.id)}}):t._e()]),t._v(" "),n("div",{staticClass:"body"},[n("div",{staticClass:"slider"},[n("Slider",{attrs:{id:"range_flt_"+t.id,min:t.start,max:t.end,step:t.step,tooltips:!1},on:{change:t.update},model:{value:t.sliderModel,callback:function(e){t.sliderModel=e},expression:"sliderModel"}})],1),t._v(" "),n("div",{staticClass:"inputs"},[n("div",{staticClass:"half"},[n("b-form-input",{attrs:{type:"text",value:t.minInput},on:{change:function(e){return t.onInputChange({min:+e})}}}
1)],1),t._v(" "),n("div",{staticClass:"separator"},[t._v("\n -\n ")]),t._v(" "),n("div",{staticClass:"half"},[n("b-form-input",{attrs:{type:"text",value:t.maxInput},on:{change:function(e){return t.onInputChange({max:+e})}}})],1)])])])}),[],!1,null,null,null).exports;function yl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Cl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yl(Object(n),!0).forEach((function(e){Ol(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ol(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const wl={name:"CatalogFilterController",props:{uniqueId:{type:String,required:!0}},components:{SwitchFilter:ll,CheckboxFilter:dl,DropdownFilter:fl,RangeFilter:bl},data:function(){return{selected:{sections:null,brands:null,price:null,hasDiscount:!1,inStock:!1,mptIncluded:!1},updatedAt:0,updateTimeout:400,subsectionsOpen:!0}},computed:Cl(Cl({},(0,r.Se)(["userIsAdmin","catalogSection","catalogSections","catalogSubsections","catalogBrandSubsections","catalogBrands","catalogBrands14","catalogTags","catalogChars","catalogFilterHelpers","catalogOrderHelpers","catalogFilters","catalogStartFilterParams","catalogFilteredProducts","catalogInitiated","catalogStartTotal","catalogHasActiveFilters"])),{},{filters:{get:function(){return this.catalogFilters[this.uniqueId]},set:function(t){this.catalogUpdateFilters({[this.uniqueId]:t})}},orders:function(){return this.catalogOrderHelpers[this.uniqueId]},startTotal:function(){return this.catalogStartTotal[this.uniqueId]||0},sectionParams:function(){return this.catalogSection[this.uniqueId]},samples:function(){const t={sections:[],brands:[],price:[]};if(this.hasSectionsFilter){const e=Object.keys(this.filterHelpers.sections).map((t=>+t));t.sections=Object.values(this.sections).filter((t=>e.includes(+t.ID))).map((t=>({label:t.NAME,value:+t.ID,count:this.filterHelpers.sections[t.ID].length||0})))}if(this.hasBrandsFilter){const e=Object.keys(this.filterHelpers.brands).map((t=>+t));t.brands=Object.values(this.brands).filter((t=>e.includes(+t.ID))).map((t=>({label:t.NAME,value:+t.ID,count:this.filterHelpers.brands[t.ID].length||0,link:this.hasSectionBrandPage(t)?this.createBrandLink(t):null})))}return this.hasPriceFilter&&(t.price=this.filterHelpers.price.ORIGINAL.VALUE),this.hasCharsFilters&&this.chars.forEach((e=>{const n=+e.ID,s=e.PROPERTY_TTH_TYPE_VALUE,r=e.PROPERTY_MATCH_TYPE_VALUE,i=this.filterHelpers[n];i&&("checkbox"===r||"dropdown"===r?t[n]=i.VALUE.map(((t,n)=>({label:"list"===s?e.PROPERTY_TTH_SAMPLES_VALUE[t]:t,value:"list"===s||"number"===s?+t:t,count:i.ID[n].length||0}))):"range"===r&&(t[n]=this.filterHelpers[n].VALUE))})),t},filteredProducts:function(){return this.catalogFilteredProducts[this.uniqueId]},brands:function(){let t=this.catalogBrands[this.uniqueId];return!(void 0===t||t.length<=0)&&(this.hasActiveFilters,t)},section:function(){return this.catalogSection[this.uniqueId]},sections:function(){return this.catalogSections?.[this.uniqueId]},subsections:function(){let t=Object.values(this.catalogSubsections[this.uniqueId]),e=Object.values(this.catalogBrandSubsections[this.uniqueId]);return Array.isArray(e)&&e.length>0?e:!!(Array.isArray(t)&&t.length>0)&&t},tags:function(){return this.catalogTags?.[this.uniqueId]},chars:function(){return this.catalogChars[this.uniqueId]},charsShort:function(){return this.chars.length?this.chars.filter((t=>!!t.PROPERTY_USE_SHORT_MATCH_VALUE)):[]},charsFull:function(){return this.chars.length?this.chars.filter((t=>!!t.PROPERTY_USE_DETAIL_MATCH_VALUE&&!t.PROPERTY_USE_SHORT_MATCH_VALUE)):[]},filterHelpers:function(){return this.catalogFilterHelpers?.[this.uniqueId]||{}},hasSectionsFilter:function(){return!(this.sectionParams&&+this.sectionParams.ELEMENT_CNT<2)&&(this.sections&&this.sections.length>0)},hasBrandsFilter:function(){return Array.isArray(this.brands)&&this.brands.length},hasPriceFilter:function(){return!!this.filterHelpers.price&&(!!this.filterHelpers.price.ORIGINAL&&(Array.isArray(this.filterHelpers.price.ORIGINAL.VALUE)&&this.filterHelpers.price.ORIGINAL.VALUE.length>2))},hasDiscountFilter:function(){return Array.isArray(this.filterHelpers.hasDiscount)&&this.filterHelpers.hasDiscount.length},hasInStockFilter:function(){return Array.isArray(this.filterHelpers.inStock)&&this.filterHelpers.inStock.length>1},hasMPTIncludedFilter:function(){return Array.isArray(this.filterHelpers.mptIncluded)&&this.filterHelpers.mptIncluded.length>1},hasCharsFilters:function(){return void 0!==this.sectionParams&&((!this.sectionParams||0!=+this.sectionParams.UF_SHOW_CHARS)&&!!Object.keys(this.filterHelpers).filter((t=>/^\d+$/.test(t))).length)},hasActiveFilters:function(){return!!this.catalogHasActiveFilters[this.uniqueId]},isEmpty:function(){return!this.isLocalMode&&this.hasActiveFilters&&0===this.filteredProducts.length},initiated:function(){return this.catalogInitiated.includes(this.uniqueId)}}),methods:Cl(Cl({},(0,r.nv)(["catalogUpdateFilters","catalogRefreshPage"])),{},{updateFilters:function(t=!0){this.filters=Cl({},this.selected),t&&this.catalogRefreshPage(this.uniqueId)},delayedUpdate:function(t=!0){this.updatedAt=Date.now(),setTimeout((()=>{Date.now()-this.updatedAt>=this.updateTimeout&&this.updateFilters(t)}),this.updateTimeout+1)},hardReset:async function(){this.selected=this.filters=Cl(Cl({},this.getEmptySelected()),{},{tags:null})},createBrandLink:function(t){const e=this.filters,n=this.sections,s=this.catalogBrands14[this.uniqueId][t.ID];this.tags;const r=["products"];let i;return i=e&&n&&e.sections&&1===e.sections.length?n.find((function(t){return+t.ID==+e.sections[0]})):this.section,i&&i.CODE?(r.push(i.CODE),r.push(s.CODE),"/"+r.join("/")+".html"):"#"},hasSectionBrandPage:function(t){const e=this.catalogBrands14[this.uniqueId];return!(!e||!t.ID)&&(Object.keys(e).includes(String(t.ID))&&this.filterHelpers.brands[t.ID].length>0&&this.createBrandLink(t)!==location.pathname)},getRange:function(t){return{min:t[0],max:t[t.length-1]}},getEmptySelected:function(){return Object.assign(...Object.keys(this.selected).map((t=>({[t]:"inStock"!==t&&"withPrice"!==t&&null}))))}}),beforeMount(){const t=Cl({},this.chars.length?Object.assign(...this.chars.map((t=>{const e=this.filters[t.ID],n=""===e||null==e;return{[t.ID]:n?null:this.filters[t.ID]}}))):{});
1Object.keys(this.selected).forEach((e=>{const n=this.filters[e];n&&(t[e]="object"==typeof n?Array.isArray(n)?[...n]:Cl({},n):n)})),Object.keys(t).length&&(this.selected=Cl(Cl({},this.selected),t))}},El=wl;const Pl=(0,bn.Z)(El,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.initiated?n("div",{staticClass:"catalog-filter-controller-mc",on:{mousedown:function(e){t.mouseDown=!0}}},[t.hasActiveFilters?n("div",{staticClass:"mb-5"},[n("button",{staticClass:"btn btn-outline-primary",attrs:{type:"button"},on:{click:t.hardReset}},[t._v("СбÑоÑиÑÑ ÑилÑÑÑÑ")])]):t._e(),t._v(" "),t.subsections?n("div",{staticClass:"filter subsections"},[n("div",{staticClass:"catalog-filter-mc links"},[t._m(0),t._v(" "),n("div",{staticClass:"body",class:{expand:t.subsectionsOpen}},t._l(t.subsections,(function(e,s){return n("a",{key:"sbsct_lnk_"+s,class:{bold:+e.UF_BOLDNAME_SECTION},attrs:{href:e.SECTION_PAGE_URL},domProps:{innerHTML:t._s(e.NAME)}})})),0),t._v(" "),t.subsections.length>5?n("div",{staticClass:"show-more"},[n("a",{attrs:{href:"#"},domProps:{innerHTML:t._s(t.subsectionsOpen?"СвеÑнÑÑÑ":"ÐоказаÑÑ Ð²Ñе")},on:{click:function(e){e.preventDefault(),t.subsectionsOpen=!t.subsectionsOpen}}})]):t._e()])]):t._e(),t._v(" "),t.hasSectionsFilter?n("div",{staticClass:"filter sections"},[n("CheckboxFilter",{attrs:{name:"ÐаÑегоÑиÑ",samples:t.samples.sections},on:{input:t.delayedUpdate},model:{value:t.selected.sections,callback:function(e){t.$set(t.selected,"sections",e)},expression:"selected.sections"}})],1):t._e(),t._v(" "),t.hasBrandsFilter?n("div",{staticClass:"filter brands"},[n("CheckboxFilter",{attrs:{name:"ÐÑоизводиÑели",samples:t.samples.brands},on:{input:t.delayedUpdate},model:{value:t.selected.brands,callback:function(e){t.$set(t.selected,"brands",e)},expression:"selected.brands"}})],1):t._e(),t._v(" "),t.hasPriceFilter?n("div",{staticClass:"filter price"},[n("RangeFilter",{attrs:{id:"price",name:"Цена",samples:t.samples.price},on:{input:t.delayedUpdate},model:{value:t.selected.price,callback:function(e){t.$set(t.selected,"price",e)},expression:"selected.price"}})],1):t._e(),t._v(" "),t.hasDiscountFilter?n("div",{staticClass:"filter discount"},[n("SwitchFilter",{attrs:{id:"hasDiscount",name:"ТоваÑÑ Ñо Ñкидкой"},on:{input:t.delayedUpdate},model:{value:t.selected.hasDiscount,callback:function(e){t.$set(t.selected,"hasDiscount",e)},expression:"selected.hasDiscount"}})],1):t._e(),t._v(" "),t.hasInStockFilter?n("div",{staticClass:"filter stock"},[n("SwitchFilter",{attrs:{id:"inStock",name:"РналиÑии"},on:{input:t.delayedUpdate},model:{value:t.selected.inStock,callback:function(e){t.$set(t.selected,"inStock",e)},expression:"selected.inStock"}})],1):t._e(),t._v(" "),t.hasMPTIncludedFilter?n("div",{staticClass:"filter mpt-included"},[n("SwitchFilter",{attrs:{id:"mptIncluded",name:"Ð ÑееÑÑÑе ÐинÐÑомТоÑга"},on:{input:t.delayedUpdate},model:{value:t.selected.mptIncluded,callback:function(e){t.$set(t.selected,"mptIncluded",e)},expression:"selected.mptIncluded"}})],1):t._e(),t._v(" "),t.hasCharsFilters&&t.chars?n("div",{staticClass:"filter-group"},t._l(t.chars,(function(e,s){return t.filterHelpers[e.ID]?n("div",{key:"ch_fflt_"+s,staticClass:"filter char"},["checkbox"===e.PROPERTY_MATCH_TYPE_VALUE?n("CheckboxFilter",{attrs:{id:+e.ID,name:e.NAME,samples:t.samples[e.ID],"is-admin":t.userIsAdmin,unit:e.PROPERTY_TTH_UNIT_VALUE||""},on:{input:t.delayedUpdate},model:{value:t.selected[e.ID],callback:function(n){t.$set(t.selected,e.ID,n)},expression:"selected[char['ID']]"}}):"dropdown"===e.PROPERTY_MATCH_TYPE_VALUE?n("DropdownFilter",{attrs:{id:+e.ID,name:e.NAME,samples:t.samples[e.ID],"is-admin":t.userIsAdmin,unit:e.PROPERTY_TTH_UNIT_VALUE||""},on:{input:t.delayedUpdate},model:{value:t.selected[e.ID],callback:function(n){t.$set(t.selected,e.ID,n)},expression:"selected[char['ID']]"}}):"range"===e.PROPERTY_MATCH_TYPE_VALUE?n("RangeFilter",{attrs:{id:+e.ID,name:e.NAME,samples:t.filterHelpers[e.ID].VALUE,"is-admin":t.userIsAdmin,unit:e.PROPERTY_TTH_UNIT_VALUE||""},on:{input:t.delayedUpdate},model:{value:t.selected[e.ID],callback:function(n){t.$set(t.selected,e.ID,n)},expression:"selected[char['ID']]"}}):t._e()],1):t._e()})),0):t._e()]):t._e()}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"head"},[n("span",[t._v("ÐодÑазделÑ")])])}],!1,null,null,null).exports;function Sl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Sl(Object(n),!0).forEach((function(e){Tl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tl(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Dl={name:"CatalogElementAccessories",props:["startData"],components:{Filters:Pl,Controls:ji,Pagi:qi,Products:Qi},data:function(){return{uniqueId:"accessories"}},computed:Il(Il(Il({},(0,r.Se)(["isXL"])),(0,r.Se)(["catalogSection","catalogControls","catalogTotal","catalogControls"])),{},{canShowMore:function(){const t=this.catalogControls[this.uniqueId],e=+t.page,n=+t.limits[t.limit].count,s=+this.catalogTotal[this.uniqueId];return(e+ +t.limitMultiplier-1)*n<s}}),methods:Il(Il({},(0,r.nv)(["catalogCreateStorage","catalogSetStartData","catalogSetControls"])),{},{showMore:function(){let t=this.catalogControls;t[this.uniqueId].limitMultiplier=+t[this.uniqueId].limitMultiplier+1,this.catalogSetControls(t)}}),beforeMount(){this.catalogCreateStorage(this.uniqueId),this.catalogSetStartData({[this.uniqueId]:this.startData})}},Al=Dl;const kl=(0,bn.Z)(Al,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"accessories-mc catalog-section-mc container p-0"},[t.isXL?t._e():n("b-sidebar",{staticClass:"catalog-sb-mc",attrs:{id:"catalog-sb",title:"ФилÑÑÑÑ",left:"",shadow:"",backdrop:"","backdrop-variant":"dark"}},[n("div",{staticClass:"container-fluid pt-4 pb-4"},[n("Filters",{ref:"filters_aside",staticClass:"catalog-filter-controller-mc",attrs:{"unique-id":t.uniqueId}}),t._v(" "),n("div",{staticClass:"direct-links"},t._l(t.startData.links,(function(e,s){return n("a",{key:"dlt_"+s,attrs:{href:e.href}},[t._v(t._s(e.text))])})),0)],1)]),t._v(" "),n("div",{staticClass:"catalog-new-section row align-items-start"},[n("div",{staticClass:"col-12 controls-block"},[n("Controls",{ref:"controls",staticClass:"catalog-controls-mc row",attrs:{"unique-id":t.uniqueId}})],1),t._v(" "),n("div",{staticClass:"d-none d-xl-flex col-xl-3 flex-wrap filters-block"},[t.isXL?n("Filters",{ref:"filters",staticClass:"catalog-filter-controller-mc",attrs:{"unique-id":t.uniqueId}}):t._e(),t._v(" "),n("div",{staticClass:"direct-links"},t._l(t.startData.links,(function(e,s){return n("a",{key:"dlb_"+s,attrs:{href:e.href}},[t._v(t._s(e.text))])})),0)],1),t._v(" "),n("div",{staticClass:"col-12 col-xl-9 products-block"},[n("Products",{staticClass:"catalog-products-mc row",attrs:{"unique-id":t.uniqueId}}),t._v(" "),n("div",{staticClass:"row products-bottom"},[t.canShowMore?n("div",{staticClass:"col-12 more-block"},[n("b-button",{attrs:{variant:"outline-dark"},on:{click:t.showMore}},[t._v("ÐоказаÑÑ ÐµÑе")])],1):t._e(),t._v(" "),n("div",{staticClass:"col-12 nav-block"},[n("Pagi",{staticClass:"catalog-pagination-mc row",attrs:{"unique-id":t.uniqueId}})],1),t._v(" "),t._m(0)])],1)])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 disclaimer-block"},[n("p",[t._v("ÐнÑоÑмаÑÐ¸Ñ Ð¾ ÑенаÑ
и налиÑии ÑоваÑа на ÑайÑе не ÑвлÑеÑÑÑ Ð¾ÑеÑÑой. ХаÑакÑеÑиÑÑики,\n комплекÑаÑÐ¸Ñ Ð¸ внеÑний вид ÑоваÑа могÑÑ Ð±ÑÑÑ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ñ ÑиÑмой-пÑоизводиÑелем без\n пÑедваÑиÑелÑного ÑведомлениÑ.")])])}],!1,null,null,null).exports;const jl=JSON.parse('[{"name":"банковÑкой каÑÑой в ÑÑде Ñилиалов","desc":"ÐплаÑа банковÑкой каÑÑой возможна ÑолÑко в ÑилиалаÑ
: ÐоÑква, СанкÑ-ÐеÑеÑбÑÑг, Ðижний-ÐовгоÑод, ÐазанÑ","showdesc":false},{"name":"банковÑкой каÑÑой онлайн","desc":"ÐоÑле оÑоÑÐ¼Ð»ÐµÐ½Ð¸Ñ Ð·Ð°ÐºÐ°Ð·Ð°, Ð²Ñ Ð¿Ð¾Ð»ÑÑиÑе подÑобное пиÑÑмо-инÑÑÑÑкÑÐ¸Ñ Ð¿Ð¾ оплаÑе пÑи помоÑи ÑиÑÑÐµÐ¼Ñ Ð¡Ð±ÐµÑбанк Ðнлайн.","showdesc":false},{"name":"квиÑанÑией СбеÑбанка","desc":"ÐÐµÐ½ÐµÐ´Ð¶ÐµÑ Ð¿Ð¾Ð´Ð³Ð¾ÑÐ¾Ð²Ð¸Ñ Ð´Ð»Ñ Ð²Ð°Ñ ÐºÐ²Ð¸ÑанÑÐ¸Ñ Ð´Ð»Ñ Ð¾Ð¿Ð»Ð°ÑÑ Ð² лÑбом оÑделении СбеÑбанка. ÐÐ»Ñ ÑÑого бÑдÑÑе гоÑÐ¾Ð²Ñ Ð¿ÑедоÑÑавиÑÑ Ñвои паÑпоÑÑнÑе даннÑе.","showdesc":false},{"name":"безналиÑнÑм плаÑежом Ð¾Ñ ÑизиÑеÑкого лиÑа","desc":"ÐÐµÐ½ÐµÐ´Ð¶ÐµÑ Ð¿Ð¾Ð´Ð³Ð¾ÑÐ¾Ð²Ð¸Ñ Ð´Ð»Ñ Ð²Ð°Ñ ÐºÐ²Ð¸ÑанÑÐ¸Ñ Ð´Ð»Ñ Ð¾Ð¿Ð»Ð°ÑÑ Ð² лÑбом банке. ÐÐ»Ñ ÑÑого бÑдÑÑе гоÑÐ¾Ð²Ñ Ð¿ÑедоÑÑавиÑÑ Ñвои паÑпоÑÑнÑе даннÑ.","showdesc":false},{"name":"лизинг","desc":"ÐÑ Ð¼Ð¾Ð¶ÐµÑе воÑполÑзоваÑÑÑÑ ÑÑлÑгами аÑÐµÐ½Ð´Ñ ÑазлиÑного обоÑÑÐ´Ð¾Ð²Ð°Ð½Ð¸Ñ Ð½Ð° оÑновании договоÑа лизинга.","showdesc":false},{"name":"безналиÑнÑй ÑаÑÑÐµÑ Ð´Ð»Ñ ÑÑидиÑеÑкиÑ
лиÑ","desc":"ÐÑ Ð¼Ð¾Ð¶ÐµÑе полÑÑиÑÑ ÑÑÐµÑ (пÑедоÑÑавив ÑеквизиÑÑ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ð¸) и оплаÑиÑÑ ÐµÐ³Ð¾ в лÑбом банке.","showdesc":false},{"name":"кÑÐµÐ´Ð¸Ñ Ð´Ð»Ñ ÑÑидиÑеÑкиÑ
Ð»Ð¸Ñ Ð¾Ñ ÐÐРСбеÑбанк","de
1sc":"ÐоÑле оÑоÑÐ¼Ð»ÐµÐ½Ð¸Ñ Ð·Ð°ÐºÐ°Ð·Ð° Ñ Ð²Ð°Ð¼Ð¸ ÑвÑжеÑÑÑ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ Ð¸ пÑедоÑÑÐ°Ð²Ð¸Ñ ÑÑÑÐ»ÐºÑ Ð´Ð»Ñ Ð¾ÑоÑÐ¼Ð»ÐµÐ½Ð¸Ñ Ð¾Ð½Ð»Ð°Ð¹Ð½ заÑвки на кÑедиÑ. Ðам понадобиÑÑÑ Ð°ÐºÐºÐ°ÑÐ½Ñ Ð² СÐÐÐ ÐизнеÑ.","showdesc":false}]'),Ll={name:"CatalogElementPayment",props:{},data:function(){return{payList:jl}},computed:{},methods:{closeAll:function(){this.payList=this.payList.map((function(t){return t.showDesc=!1,t}))},toggleDesc:function(t){const e=this.payList[t].showDesc;this.closeAll(),this.payList[t].showDesc=!e}}};const Rl=(0,bn.Z)(Ll,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"payment-mc container-fluid"},[n("div",{staticClass:"row"},[t._m(0),t._v(" "),n("div",{staticClass:"col-12 content"},[n("ul",{staticClass:"list"},t._l(t.payList,(function(e,s){return n("li",{key:"pay_type_"+s,staticClass:"item"},[n("a",{staticClass:"name",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleDesc(s)}}},[t._v(t._s(e.name))]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDesc,expression:"payType.showDesc"}],staticClass:"desc"},[n("div",{staticClass:"header"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.closeAll.apply(null,arguments)}}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-cross"}})],1)]),t._v(" "),n("div",{staticClass:"content",domProps:{innerHTML:t._s(e.desc)}})])])})),0)])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 header"},[n("h3",[t._v("ÐплаÑа")]),t._v(" "),n("p",[t._v("ÐÑоизвеÑÑи оплаÑÑ Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе лÑбÑм ÑдобнÑм Ð´Ð»Ñ Ð²Ð°Ñ ÑпоÑобом")])])}],!1,null,null,null).exports;function Ml(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function xl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ml(Object(n),!0).forEach((function(e){Nl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nl(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ul={name:"CatalogElementDelivery",props:{dimensions:{type:[Object,Array]},price:{type:Number,required:!0}},data:function(){return{loading:!1,popoverText:"РаÑÑÐµÑ ÑÑоимоÑÑи доÑÑавки Ñделан пÑи помоÑи калÑкÑлÑÑоÑа ÑÑанÑпоÑÑной компании, ÑаÑÐ¸Ñ Ð½Ðµ вклÑÑÐ°ÐµÑ ÑÑÑаÑ
ование, жеÑÑкÑÑ ÑÐ¿Ð°ÐºÐ¾Ð²ÐºÑ Ð³ÑÑза и дÑÑгие дополниÑелÑнÑе ÑÑлÑги. ТоÑнÑй ÑаÑÑÐµÑ ÑÑоимоÑÑи доÑÑавки пÑÐ¾Ð¸Ð·Ð²Ð¾Ð´Ð¸Ñ Ð¿Ñи оÑоÑмлении заказа ÑоÑÑÑдник оÑдела пÑодаж."}},computed:xl(xl(xl(xl({},(0,r.rn)(["modals"])),(0,r.Se)(["locationCity","locationIsMoscow","locationIsSPB","locationIsMoscowRegion","locationIsRealFilial","locationOffice","locationPickupPoints"])),(0,r.Se)(["cartDeliveryList","cartOriginalCurrencyHtml"])),{},{pickupPoints:function(){if(!this.locationPickupPoints)return!1;let t=[];return Object.values(this.locationPickupPoints).forEach((e=>{t=[...t,...e]})),t},deliveryTypes:function(){return(this.locationIsMoscow||this.locationIsMoscowRegion)&&this.locationOffice?this.delTypesMoscow.map(function(t){return t.name.replace("#OFFICE_ADDRESS#",this.locationOffice.PROPERTY_ADRESS_VALUE),t}.bind(this)):this.locationIsSPB&&this.locationOffice?this.delTypesSPB.map(function(t){return t.name.replace("#OFFICE_ADDRESS#",this.locationOffice.PROPERTY_ADRESS_VALUE),t}.bind(this)):this.delTypesOthers},delTypesMoscow:function(){return Vc.msc},delTypesSPB:function(){return Vc.spb},delTypesOthers:function(){return Vc.reg}}),methods:xl({},(0,r.nv)(["locationShowCitySelect"]))};const ql=(0,bn.Z)(Ul,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"delivery-mc container-fluid p-0"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 header"},[n("h2",[t._v("ÐоÑÑавка по гоÑодÑ \n "),n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.locationShowCitySelect.apply(null,arguments)}}},[t.locationCity.CITY_NAME?n("span",[t._v(t._s(t.locationCity.CITY_NAME))]):t.locationCity.NAME?n("span",[t._v(t._s(t.locationCity.NAME))]):n("span",[t._v("ÐоÑква")]),t._v(" "),n("span",{staticClass:"caret"},[n("fai",{attrs:{icon:"caret-down"}})],1)])])]),t._v(" "),t._l(t.deliveryTypes,(function(e,s){return n("div",{key:"del_type_"+s,staticClass:"col-12 del-row"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-8 col-md-9 col-lg-8 col-xl-7 name"},[n("span",[t._v(t._s(e.name))]),t._v(" "),e.isPickUp?n("span",[t._v("г. "+t._s(t.locationOffice.NAME)+", "+t._s(t.locationOffice.PROPERTY_ADRESS_VALUE))]):t._e(),t._v(" "),e.popover?n("span",{staticClass:"question",attrs:{id:"del_type_info_"+s}},[t._v("i")]):t._e(),t._v(" "),e.popover?n("b-tooltip",{attrs:{variant:"light",target:"del_type_info_"+s,triggers:"hover"}},[t._v("\n "+t._s(t.popoverText)+"\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"col-4 col-md-3 col-lg-4 col-xl-5 value"},[+e.freeFrom&&+e.freeFrom<=+t.price?n("span",[t._v("беÑплаÑно")]):n("span",[e.from?n("span",[t._v("оÑ ")]):t._e(),t._v(" "),n("span",[n("span",{domProps:{innerHTML:t._s(e.price)}}),t._v(" "),"number"==typeof e.price?n("span",{domProps:{innerHTML:t._s(t.cartOriginalCurrencyHtml)}}):t._e()])])]),t._v(" "),t._m(0,!0)])])})),t._v(" "),t.locationIsMoscow||t.locationIsMoscowRegion||t.locationIsSPB||!t.pickupPoints?t._e():n("div",{staticClass:"col-12 pvz-header"},[n("h3",[t._v("ÐÑнкÑÑ Ð²ÑдаÑи")])]),t._v(" "),t._l(t.pickupPoints,(function(e,s){return t.locationIsMoscow||t.locationIsMoscowRegion||t.locationIsSPB||!t.pickupPoints?t._e():n("div",{key:"del_type"+s,staticClass:"col-12 pvz-row"},["Dl"===e.PROPERTY_TK_VALUE?n("span",{staticClass:"tk-name"}
1,[t._v("ÐÐ ")]):"ÐÐÐ"===e.PROPERTY_TK_VALUE?n("span",{staticClass:"tk-name"},[t._v("ÐÐÐ ")]):"DPD"===e.PROPERTY_TK_VALUE?n("span",{staticClass:"tk-name"},[t._v("DPD ")]):t._e(),t._v(" "),n("span",{staticClass:"pvz-address"},[e.PREVIEW_TEXT?n("span",{staticClass:"address"},[t._v(t._s(e.NAME)+", "+t._s(e.PREVIEW_TEXT))]):t._e()])])}))],2)])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 col-lg-11 col-xl-10"},[e("hr")])}],!1,null,null,null).exports;function Hl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Fl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hl(Object(n),!0).forEach((function(e){$l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Vl={name:"CatalogElementPickupPoints",props:{},data:function(){return{}},computed:Fl(Fl({},(0,r.Se)(["locationPickupPoints"])),{},{pickupPoints:function(){if(!this.locationPickupPoints)return!1;let t=[];return Object.values(this.locationPickupPoints).forEach((e=>{t=[...t,...e]})),t}})};const Bl=(0,bn.Z)(Vl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.pickupPoints?n("div",{staticClass:"ce-pickup-points-mc row"},t._l(t.pickupPoints,(function(e,s){return n("div",{key:"del_type"+s,staticClass:"col-12 pvz-row"},["Dl"===e.PROPERTY_TK_VALUE?n("span",{staticClass:"tk-name"},[t._v("ÐÐ ")]):"ÐÐÐ"===e.PROPERTY_TK_VALUE?n("span",{staticClass:"tk-name"},[t._v("ÐÐÐ ")]):"DPD"===e.PROPERTY_TK_VALUE?n("span",{staticClass:"tk-name"},[t._v("DPD ")]):t._e(),t._v(" "),n("span",{staticClass:"pvz-address"},[e.PREVIEW_TEXT?n("span",{staticClass:"address"},[t._v(t._s(e.NAME)+", "+t._s(e.PREVIEW_TEXT))]):t._e()])])})),0):t._e()}),[],!1,null,null,null).exports;function Gl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Yl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gl(Object(n),!0).forEach((function(e){zl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zl(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Zl={name:"CatalogElementKit",props:{items:{type:Object,required:!0},order:{type:Array,required:!0}},data:function(){return{success:!1,loading:!1,checked:[],showComponent:!1,itemsScaled:!1}},computed:{products:function(){return this.order.map((t=>this.items[t]))},originalCurrencyHTML:function(){return this.products[0].PRICES.BASE.PRICE_TEMPLATE.ORIGINAL.CURRENCY_HTML},convertedCurrencyHTML:function(){return this.isDoubleCurrencyMode?this.products[0].PRICES.BASE.PRICE_TEMPLATE.CONVERTED.CURRENCY_HTML:null},isDoubleCurrencyMode:function(){return!!this.products[0].PRICES.BASE.CONVERTED}
1,originalPrice:function(){return this.products.reduce(((t,e)=>this.checked.includes(+e.ID)?t+ +e.PRICES.BASE.ORIGINAL.DISCOUNT_VALUE:t),0)},convertedPrice:function(){return this.isDoubleCurrencyMode?this.products.reduce(((t,e)=>this.checked.includes(+e.ID)?t+ +e.PRICES.BASE.CONVERTED.DISCOUNT_VALUE:t),0):null}},methods:Yl(Yl({},(0,r.nv)(["addProductToCart","cartGetListAction"])),{},{submit:async function(){this.loading=!0,await Promise.all(this.checked.map((t=>this.addProductToCart({id:t,quantity:1}))));await this.cartGetListAction();this.onMouseDownStat(),this.loading=!1,this.success=!0},setElementsHeight:function(t){document.querySelector("#catalog-element-kit-container");const e=document.querySelectorAll(".catalog-element-kit-inner .item .name a"),n=document.querySelectorAll(".catalog-element-kit-inner .item .image img");let s=0;const r=screen.width>767?2:20;return e.forEach((function(t){const e=16*Math.ceil(t.innerText.length/16);e>s&&(s=e)})),e.forEach((function(t){t.parentElement.style.minHeight=s+r+"px"})),n.forEach((function(e,n){const s=+t[n].PREVIEW_PICTURE.HEIGHT;+t[n].PREVIEW_PICTURE.WIDTH>s?e.style.width="100%":e.style.height=e.parentElement.parentElement.getBoundingClientRect().height+"px"})),e.length>0&&n.length>0},onMouseDownStat:function(){this.$root.ymReachGoal("basket_kit")}}),filters:{nameSlicer:t=>t.length>80?function t(e){if(e.length>80){let t=e.split(" ").reverse();e=t.splice(1,t.length).reverse().join(" ")}return e.length>80?t(e):e}(t)+"...":t},beforeMount(){this.checked=[...this.order]},mounted(){setTimeout(function(){this.showComponent=!0}.bind(this),350)},updated(){this.itemsScaled||(this.itemsScaled=this.setElementsHeight(this.arProducts))}},Wl=Zl;var Kl=(0,bn.Z)(Wl,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[n("b-form-checkbox-group",{staticClass:"inner row mx-0",model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._l(t.products,(function(e,s){return n("div",{key:"el_kit_"+t.uid+"_"+s,staticClass:"item col-12 col-lg-2"},[n("div",{staticClass:"cb"},[n("b-form-checkbox",{staticClass:"p-0",attrs:{value:+e.ID}})],1),t._v(" "),n("div",{staticClass:"inner"},[n("div",{staticClass:"image-block"},[n("a",{attrs:{href:e.DETAIL_PAGE_URL}},[n("img",{attrs:{src:e.PREVIEW_PICTURE.SRC,alt:e.PREVIEW_PICTURE.NAME}})])]),t._v(" "),n("div",{staticClass:"main-block"},[n("div",{staticClass:"name-block"},[n("a",{attrs:{href:e.DETAIL_PAGE_URL}},[t._v(t._s(t._f("nameSlicer")(e.NAME)))])]),t._v(" "),n("div",{staticClass:"price-block",class:{"db-currency-mode":t.isDoubleCurrencyMode}},[n("div",{staticClass:"original"},[t._e(),t._v(" "),n("div",{staticClass:"prc"},[n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.ORIGINAL.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.originalCurrencyHTML)}})])]),t._v(" "),t.isDoubleCurrencyMode?n("div",{staticClass:"converted"},[t._e(),t._v(" "),n("div",{staticClass:"prc"},[n("span",{domProps:{innerHTML:t._s(e.PRICES.BASE.CONVERTED.PRINT_DISCOUNT_VALUE)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.convertedCurrencyHTML)}})])]):t._e()])])])])})),t._v(" "),n("div",{staticClass:"item col-12 col-lg-2"},[n("div",{staticClass:"price-block total",class:{"db-currency-mode":t.isDoubleCurrencyMode}},[n("div",{staticClass:"original"},[t._e(),t._v(" "),n("div",{staticClass:"prc"},[n("span",[t._v(t._s(t._f("printPrice")(t.originalPrice)))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.originalCurrencyHTML)}})])]),t._v(" "),t.isDoubleCurrencyMode?n("div",{staticClass:"converted"},[t._e(),t._v(" "),n("div",{staticClass:"prc"},[n("span",{domProps:{innerHTML:t._s(t.convertedPrice)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.convertedCurrencyHTML)}})])]):t._e()]),t._v(" "),n("div",{staticClass:"buy-block"},[n("div",{staticClass:"buy-btn-mc"},[n("div",{staticClass:"inner"},[n("b-button",{attrs:{type:"submit",variant:"blue",disabled:t.originalPrice<=0||t.loading||t.success}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),t.success?n("span",[t._v("РкоÑзинe")]):n("span",[t._v("РкоÑзин
1Ñ")])],1)],1)])])])],2)],1)}),[],!1,null,null,null);const Xl=Kl.exports;const Ql={name:"CatalogShields",props:{startData:{type:Object,required:!0}},data:function(){return{}}};const Jl=(0,bn.Z)(Ql,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-shields-mc"},t._l(t.startData,(function(e,s){var r;return n("div",{staticClass:"el-shield",class:(r={},r[s]=!0,r)},[n("span",{staticClass:"text",domProps:{innerHTML:t._s(e)}})])})),0)}),[],!1,null,null,null).exports;function tu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function eu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tu(Object(n),!0).forEach((function(e){nu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const su={name:"CatalogFastBuy",props:{directValues:{type:Object,required:!0}},data:function(){return{loading:!1,phone:{value:null,state:null,validated:!1,required:!0,placeholder:"+7 (___) ___-__-__",validation:{phone:[]}},email:{value:null,state:null,validated:!1,required:!0,placeholder:null,validation:{email:[]}},processingConsent:{name:this.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML,value:null,state:null,validated:!1,required:!0},marketingConsent:{name:this.$root.MARKETING_CONSENT.CHECKBOX_LABEL_HTML,value:null,state:null,validated:!1,required:!1},modal:{success:!1,error:null,message:null,show:!1,code:null,title:"ÐÑпиÑÑ Ð² один клик",size:"xs",hideFooter:!0,hideHeaderClose:!1,contentClass:"fb",bodyClass:"",directValues:this.$props.directValues}}},computed:eu(eu(eu(eu({},(0,r.Se)(["cartProductsIds"])),(0,r.Se)(["userGetUserPhone","userGetUserEmail","userIsAuthorized"])),(0,r.Se)(["locationCity"])),{},{id:function(){return+this.directValues.id},price:function(){return+this.directValues.price},productName:function(){return this.directValues.productName},quantity:function(){return+this.directValues.quantity},isValid:function(){return this.phone.state&&this.processingConsent.state}}),methods:eu(eu({},(0,r.nv)(["cartGetListAction","cartCreateFastBuyOrderAction"])),{},{setState:Kn,submit:async function(){if(!this.isValid)return void console.log("Validation Error");const t=this.cartProductsIds.includes(this.id),e={id:this.id,price:this.price,productName:this.productName,quantity:this.quantity,tel:Jn(this.phone.value),email:this.email.value,city:this.locationCity.CITY_NAME,processingConsent:this.processingConsent.value?this.processingConsent.name:"",marketingConsent:this.marketingConsent.value?this.marketingConsent.name:"",BASKET_FAST:t?"Y":"N"};this.loading=!0,this.modal.message=this.modal.error=null;const n=await this.cartCreateFastBuyOrderAction(e);n.success?(this.modal.message=`УÑпеÑно оÑоÑмлен заказ â ${n.order.ACCOUNT_NUMBER}`,this.modal.title=`СпаÑибо, Ð²Ð°Ñ Ð·Ð°ÐºÐ°Ð· пÑинÑÑ Ð² ÑабоÑÑ!<br/>ÐÐ¾Ð¼ÐµÑ Ð²Ð°Ñего заказа <span class="text-blue">â${n.order.ACCOUNT_NUMBER}</span>`,this.modal.success=!0):(this.modal.error=`Ðозникла оÑибка: ${n.message||"undefined error"}`,this.modal.success=!1),this.loading=!1},validate:function(){return this.setState(this.phone),this.setState(this.email),this.setState(this.processingConsent),!0},onSuccess:function(){this.trackers()},trackers:function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:{purchase:{actionField:{id:this.orderId,goal_id:"2243407"},products:[{id:this.productId,name:this.$parent.arResult.NAME,price:Math.round(this.$parent.prices.ORIGINAL.DISCOUNT_VALUE),quantity:1}]}}}),window.ga&&(window.ga("require","ecommerce","ecommerce.js"),window.ga("ecommerce:addTransaction",{id:this.orderId,revenue:Math.round(this.$parent.prices.ORIGINAL.DISCOUNT_VALUE),shipping:0,tax:0,currency:"RUB"}),window.ga("ecommerce:addItem",{id:this.orderId,name:this.$parent.arResult.NAME,sku:this.productId,price:Math.round(this.$parent.prices.ORIGINAL.DISCOUNT_VALUE),quantity:1,currency:"RUB"}),window.ga("ecommerce:send"))},onAfterModalShow:function(){this.$root.hideJivoSiteWidget(),Qn(".modal
1-content.fb")},onAfterModalHide:function(){this.$root.showJivoSiteWidget()}}),async mounted(){this.userIsAuthorized&&(this.phone.value=this.userGetUserPhone,this.email.value=this.userGetUserEmail,this.validate())}};const ru=(0,bn.Z)(su,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-fast-buy-mc w-100"},[n("BButton",{attrs:{variant:"fast-buy",disabled:t.modal.success},domProps:{innerHTML:t._s("ÐÑпиÑÑ Ð² один клик")},on:{click:function(e){t.modal.show=!0}}}),t._v(" "),n("b-modal",{attrs:{size:t.modal.size,"hide-footer":t.modal.hideFooter,"content-class":t.modal.contentClass,"body-class":t.modal.bodyClass,"hide-header-close":t.modal.hideHeaderClose},on:{shown:t.onAfterModalShow,hidden:t.onAfterModalHide},scopedSlots:t._u([{key:"modal-title",fn:function(){return[n("span",{domProps:{innerHTML:t._s(t.modal.title)}})]},proxy:!0}]),model:{value:t.modal.show,callback:function(e){t.$set(t.modal,"show",e)},expression:"modal.show"}},[t._v(" "),n("b-form",{staticClass:"row",on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t.modal.success?t._e():n("b-form-text",{staticClass:"col-12 mb-3 product"},[t._v("\n "+t._s(t.directValues.productName)+" - "+t._s(t.directValues.quantity)+" ÑÑ.\n ")]),t._v(" "),t.modal.success?t._e():n("b-form-text",{staticClass:"col-12 mb-3"},[n("b-alert",{attrs:{variant:"success",show:!!t.modal.message}},[n("span",{domProps:{innerHTML:t._s(t.modal.message)}})]),t._v(" "),n("b-alert",{attrs:{variant:"danger",show:!!t.modal.error}},[n("span",{domProps:{innerHTML:t._s(t.modal.error)}})])],1),t._v(" "),t.modal.success?t._e():n("b-form-group",{staticClass:"col-12",attrs:{state:t.phone.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("ТелеÑон "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.phone.required,expression:"phone.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!1,3071094181)},[t._v(" "),n("b-form-input",{attrs:{type:"tel",name:"phone",state:t.phone.state,placeholder:t.phone.placeholder},on:{input:function(e){return t.setState(t.phone)}},model:{value:t.phone.value,callback:function(e){t.$set(t.phone,"value",e)},expression:"phone.value"}}),t._v(" "),t.phone.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.phone.errorMsg)+"\n ")]):t._e()],1),t._v(" "),t.modal.success?t._e():n("b-form-group",{staticClass:"col-12",attrs:{state:t.email.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("E-mail "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.email.required,expression:"email.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!1,875408602)},[t._v(" "),n("b-form-input",{attrs:{type:"email",name:"email",state:t.email.state,placeholder:t.email.placeholder},on:{input:function(e){return t.setState(t.email)}},model:{value:t.email.value,callback:function(e){t.$set(t.email,"value",e)},expression:"email.value"}}),t._v(" "),t.email.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.email.errorMsg)+"\n ")]):t._e()],1),t._v(" "),t.modal.success?t._e():n("b-form-group",{staticClass:"col-12",attrs:{state:t.processingConsent.state}},[n("b-form-checkbox",{attrs:{id:t.$id("procAgree"),state:t.processingConsent.state},on:{input:function(e){return t.setState(t.processingConsent)}},model:{value:t.processingConsent.value,callback:function(e){t.$set(t.processingConsent,"value",e)},expression:"processingConsent.value"}},[n("span",{domProps:{innerHTML:t._s(t.processingConsent.name)}}),t._v(" "),t.processingConsent.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()])],1),t._v(" "),t.modal.success?t._e():n("b-form-group",{staticClass:"col-12",attrs:{state:t.marketingConsent.state}},[n("b-form-checkbox",{attrs:{id:t.$id("marketingAgree"),state:t.marketingConsent.state},on:{input:function(e){return t.setState(t.marketingConsent)}},model:{value:t.marketingConsent.value,callback:function(e){t.$set(t.marketingConsent,"value",e)},expression:"marketingConsent.value"}},[n("span",{domProps:{innerHTML:t._s(t.marketingConsent.name)}}),t._v(" "),t.marketingConsent.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()])],1),t._v(" "),t.modal.success?t._e():n("b-form-group",{staticClass:"col-12 buttons-block"},[n("button",{staticClass:"btn btn-blue",attrs:{type:"submit",disabled:!t.isValid||t.loading||t.modal.success}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n ÐÑоÑмиÑÑ Ð·Ð°ÐºÐ°Ð·\n ")],1)])],1),t._v(" "),t.modal.success?n("div",{staticClass:"col-12 success"},[n("img",{attrs:{src:"/img/fast-buy/success.png",alt:"Ðаказ ÑÑпеÑно оÑоÑмлен"}})]):t._e()],1)],1)}),[],!1,null,null,null).exports;const iu={name:"CatalogElementPrice",props:{prices:{type:Array,required:!0},quantity:{type:Number,required:!0},priceGroup:{type:String,default:"ORIGINAL"}},data:function(){return{}},computed:{price:function(){return this.prices.find((t=>!t.QUANTITY||this.quantity>=+t.QUANTITY.FROM&&(0==+t.QUANTITY.TO||this.quantity<=+t.QUANTITY.TO)))}}};const au=(0,bn.Z)(iu,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",[t._v(t._s(t.price[t.priceGroup].PRINT_DISCOUNT_VALUE))])}),[],!1,null,null,null).exports;function ou(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function cu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ou(Object(n),!0).forEach((function(e){lu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const uu={name:"CatalogAddProductsToTag",props:{id:{type:[Number,String],required:!0},uniqueId:{type:[Number,String],required:!0}},data:function(){return{loading:!1,productsUpdate:[],charOpened:null,charSampleOpened:null,selected:{sections:[],brands:[],chars:{}},relatedChars:{}}},computed:cu(cu(cu(cu(cu({},(0,r.Se)(["userIsAdmin"])),(0,r.Se)(["catalogSection","catalogTags","catalogCharsAssoc","catalogFilterHelpers"])),(0,r.Se)(["catalogSections","catalogBrands"])),(0,r.Se)(["catalogCacheId","catalogSectionCacheId"])),{},{section:function(){return this.catalogSection[this.uniqueId]},tag:function(){return this.catalogTags[this.uniqueId].find((t=>+t.ID==+this.id))},sections:function(){return cu({[this.section.ID]:this.section},Object.values(this.catalogSections[this.uniqueId]).reduce(((t,e)=>cu(cu({},t),{},{[e.ID]:e})),{}))},brands:function(){return Object.values(this.catalogBrands[this.uniqueId]).reduce(((t,e)=>cu(cu({},t),{},{[e.ID]:e})),{})},chars:function(){return this.catalogCharsAssoc[this.uniqueId]},helpers:function(){return this.catalogFilterHelpers[this.uniqueId]},charsHelpers:function(){return Object.assign(...Object.keys(this.chars).map((t=>({[t]:this.helpers[t]||[]}))))},hasChanges:function(){},hasRelationToSection:function(){return+this.section.UF_TAG_SECTION==+this.tag.IBLOCK_SECTION_ID}}),methods:cu(cu({},(0,r.nv)(["updateProductsInTag"])),{},{add:function(t){this.productsUpdate.push(t)},addAll:function(t){this.productsUpdate=Array.from(new Set([...this.productsUpdate,...t]))},remove:function(t){this.productsUpdate=this.productsUpdate.filter((e=>e!==t))},onChange:function(){let t={};this.selected.sections.length&&(t.sections=[]),this.selected.brands.length&&(t.brands=[]),Object.values(this.selected.chars).filter((t=>!!t.length)).length&&(t.chars=[]),Object.keys(this.selected).forEach((e=>{if(!t[e])return!1;if("chars"===e){const e={};Object.keys(this.selected.chars).forEach((n=>{const s=this.chars[n],r=+s.PROPERTY_TTH_TYPE_ENUM_ID,i=(s.PROPERTY_TTH_SAMPLES_VALUE,s.PROPERTY_TTH_SAMPLES_PROPERTY_VALUE_ID),a=this.charsHelpers[n];e[n]=this.selected.chars[n].reduce(((t,e)=>{if(21===r){const n=i.indexOf(e),s=a.VALUE.indexOf(n);return t.concat(a.ID[s])}return 20===r?t.concat(a.ID[a.VALUE.indexOf(+e)]):t.concat(a.ID[a.VALUE.indexOf(e)])}),[]),t.chars=Object.values(e).reduce(((t,e)=>null===t?e.length>0?e:t:e.length>0?t.filter((t=>e.includes(t))):t),null)}))}else if("sections"===e||"brands"===e){const n=this.helpers[e];this.selected[e].forEach((s=>{t[e]=t[e].concat(n[s])}))}})),Object.keys(t).forEach((e=>{t[e]=Array.from(new Set(t[e]))}));const e=Object.values(t).reduce(((t,e)=>null===t?e:t.filter((t=>e.includes(t)))),null);this.productsUpdate=e?[...e]:[]},parseRelatedChars:function(){const t=this.tag.PROPERTY_RELATED_CHARS_VALUE||"{}";try{let e=!1;const n=JSON.parse(t);Object.keys(n).forEach((t=>{"chars"===t?Object.keys(n.chars).forEach((t=>{const s=n.chars[t];
1this.selected[t]||(this.selected[t]=[]),s.forEach((n=>{this.selected.chars[t].push(n),e=!0}))})):"sections"!==t&&"brands"!==t||n[t].length&&(this.selected[t]=[...n[t]],e=!0)})),e&&this.onChange()}catch(t){console.error("Error in parseRelatedChars",t)}},submit:async function(){const t={};Object.keys(this.selected).forEach((e=>{"sections"===e||"brands"===e?this.selected[e].length&&(t[e]=[...this.selected[e]]):"chars"===e&&Object.values(this.selected[e]).filter((t=>t.length>0)).length>0&&(t[e]=Object.keys(this.selected[e]).reduce(((t,n)=>this.selected[e][n].length?cu(cu({},t),{},{[n]:[...this.selected[e][n]]}):t),{}))}));const e={fields:{ID:this.id},properties:{PRODUCT:this.productsUpdate,RELATED_CHARS:Object.keys(t).length?JSON.stringify(t):null},cacheId:this.catalogCacheId[this.uniqueId]};this.loading=!0;try{await this.updateProductsInTag(e);window.location.reload()}catch(t){console.error(t),console.error(t.response.data)}this.loading=!1}}),mounted(){this.productsUpdate=[...this.tag.PROPERTY_PRODUCT_VALUE],this.selected.chars=Object.keys(this.chars).reduce(((t,e)=>cu(cu({},t),{},{[e]:[]})),{}),this.selected.sections=[],this.selected.brands=[],this.parseRelatedChars()}},du=uu;var pu=(0,bn.Z)(du,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-add-products-to-tag-mc row"},[n("div",{staticClass:"container-fluid"},[n("div",{staticClass:"name row"},[t.hasRelationToSection?n("div",{staticClass:"section-name col-12"},[n("span",[t._v("Раздел: ")]),n("span",{domProps:{innerHTML:t._s(t.section.NAME)}})]):t._e(),t._v(" "),n("div",{staticClass:"col-12 tag-name"},[n("span",[t._v("Тег: ")]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.tag.ID)}}),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.tag.NAME)}})])]),t._v(" "),n("div",{staticClass:"tag-info row mb-5"},[n("div",{staticClass:"col-12 col-xl-6"},[n("h3",[t._v("ТекÑÑий ÑоÑÑав ("+t._s(t.tag.PROPERTY_PRODUCT_VALUE.length)+")")]),t._v(" "),t._l(t.tag.PROPERTY_PRODUCT_VALUE,(function(e){return n("div",{key:"pc_"+e,staticClass:"item"},[n("a",{attrs:{href:"/products/description/"+e+".html"}},[t._v(t._s(e))])])}))],2),t._v(" "),n("div",{staticClass:"col-12 col-xl-6"},[n("h3",[t._v("ÐовÑй ÑоÑÑав ("+t._s(t.productsUpdate.length)+")")]),t._v(" "),t._l(t.productsUpdate,(function(e){return n("div",{key:"pcu_"+e,staticClass:"item"},[n("a",{attrs:{href:"/products/description/"+e+".html"}},[t._v(t._s(e))])])}))],2)]),t._v(" "),n("div",{staticClass:"add-section row mb-5"},[n("div",{staticClass:"col-12"},[n("h3",[t._v("СвÑзаÑÑ Ñ Ñазделом")]),t._v(" "),n("b-form-checkbox-group",{staticClass:"section-values",on:{change:t.onChange},model:{value:t.selected.sections,callback:function(e){t.$set(t.selected,"sections",e)},expression:"selected.sections"}},t._l(t.helpers.sections,(function(e,s){return n("b-form-checkbox",{key:"sv_"+s,staticClass:"d-block",attrs:{value:s}},[s in t.sections?n("span",{domProps:{innerHTML:t._s(t.sections[s].NAME)}}):t._e()])})),1)],1)]),t._v(" "),n("div",{staticClass:"add-brand row mb-5"},[n("div",{staticClass:"col-12"},[n("h3",[t._v("СвÑзаÑÑ Ñ Ð±Ñендом")]),t._v(" "),n("b-form-checkbox-group",{staticClass:"brand-values",on:{change:t.onChange},model:{value:t.selected.brands,callback:function(e){t.$set(t.selected,"brands",e)},expression:"selected.brands"}},t._l(t.helpers.brands,(function(e,s){return n("b-form-checkbox",{key:"bv_"+s,staticClass:"d-block",attrs:{value:s}},[s in t.brands?n("span",{domProps:{innerHTML:t._s(t.brands[s].NAME)}}):t._e()])})),1)],1)]),t._v(" "),n("div",{staticClass:"add-chars row mb-5"},[t._m(0),t._v(" "),t._l(t.charsHelpers,(function(e,s){return n("div",{key:"chr_item_"+s,staticClass:"char-item col-12 col-xl-4 mb-5"},[n("h4",{domProps:{innerHTML:t._s(t.chars[s].NAME+" ("+t.chars[s].ID+")")}}),t._v(" "),n("b-form-checkbox-group",{staticClass:"char-values",on:{change:t.onChange},model:{value:t.selected.chars[s],callback:function(e){t.$set(t.selected.chars,s,e)},expression:"selected.chars[charId]"}},t._l(e.VALUE,(function(e,r){return n("b-form-checkbox",{key:"cv_"+s+"_"+r,staticClass:"d-block",attrs:{value:String(21==+t.chars[s].PROPERTY_TTH_TYPE_ENUM_ID?t.chars[s].PROPERTY_TTH_SAMPLES_PROPERTY_VALUE_ID[e]:e)}},[21==+t.chars[s].PROPERTY_TTH_TYPE_ENUM_ID?n("span",{domProps:{innerHTML:t._s(t.chars[s].PROPERTY_TTH_SAMPLES_VALUE[e])}}):n("span",{domProps:{innerHTML:t._s(e)}})])})),1)],1)}))],2),t._v(" "),n("div",{staticClass:"col-6"},[n("b-button",{attrs:{type:"success"},on:{click:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t.loading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v("\n СоÑ
ÑаниÑÑ\n ")],1)],1)])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12"},[n("h3",[t._v("СвÑзаÑÑ Ñ Ñ
аÑакÑеÑиÑÑиками")])])}],!1,null,null,null);const fu=pu.exports;const hu={name:"ModalWidgetInit",props:{tokens:{type:Object,default:function(){return{arenza:"",fera:""}}
1,validator:function(t){const e=Object.keys(t).reduce(((e,n)=>(t[n]||(e[n]=`${n} token can not be empty`),e)),{});return Object.keys(e).length&&console.log(e),!Object.keys(e).length}},amount:{type:Number,default:0},orderItems:{type:Array,default:[]}},components:{},data:function(){return{_show:!1,_initiated:!1,arenza:null,fera:null}},computed:{initiated:{get:function(){return window.ArenzaPartnerWidget&&window._fera&&(this.$data._initiated=!0),this.$data._initiated},set:function(t){this.$data._initiated=t}}},methods:{show:function(){return this.initiated||this.loadPartnerScripts(),this.$data._show=!0},initArenza:function(){return this.$data._show=!1,this.arenza?.init({token:this.tokens.arenza,amount:this.amount,orderItems:this.orderItems})},initFera:function(){return this.$data._show=!1,this?.fera("open")},loadPartnerScripts:function(){Promise.all([this.loadArenzaScript(),this.loadFeraScript()]).then((()=>{this.initiated=!0}))},loadArenzaScript:async function(){if(window.ArenzaPartnerWidget)return this.arenza=window.ArenzaPartnerWidget;try{await this.initScript(window,document,"_arenza","https://arenza.ru/arenza-partner-widget.min.js"),this.arenza=window.ArenzaPartnerWidget}catch(t){console.log(t)}},loadFeraScript:async function(){if(window._fera)return this.fera=window._fera;try{await this.initScript(window,document,"_fera","https://wid-feraru.vercel.app/widget",(()=>_fera("init",{id:this.tokens.fera}))),this.fera=window._fera}catch(t){console.log(t)}},initScript:function(t,e,n,s,r){return new Promise(((i,a)=>{const o=`${n.replace("_","",n)}WidgetObject`,c=e.createElement("script"),l=e.getElementsByTagName("script")[0];t[o]=n,t[n]=t[n]||function(){(t[n].q=t[n].q||[]).push(arguments)},c.id=n,c.src=s,c.async=!0,c.charset="UTF-8",c.onload=()=>{i()},l.parentNode.insertBefore(c,l),"function"==typeof r&&r()}))}}},mu=hu;const vu=(0,bn.Z)(mu,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{ref:"modal",attrs:{"dialog-class":"modal-widget-init-mc","content-class":"form leasing",title:"ÐÑбеÑиÑе поÑÑавÑика","hide-footer":""},model:{value:t.$data._show,callback:function(e){t.$set(t.$data,"_show",e)},expression:"$data._show"}},[n("b-overlay",{staticClass:"overlay",attrs:{show:!t.initiated},scopedSlots:t._u([{key:"overlay",fn:function(){return[n("fai",{staticStyle:{color:"#a8a8a8"},attrs:{icon:"spinner",size:"2x",spin:""}})]},proxy:!0}])},[t._v(" "),n("b-button",{attrs:{variant:"outline-light",block:""},on:{click:t.initArenza}},[n("img",{attrs:{src:"/img/leasing/logo-arenza.png",alt:"Arenza"}})]),t._v(" "),n("b-button",{attrs:{variant:"outline-light",block:""},on:{click:t.initFera}},[n("img",{attrs:{src:"/img/leasing/logo-fera-full.png",alt:"Arenza"}})])],1)],1)}),[],!1,null,null,null).exports;const _u=function(t,e=1e4){if("function"!=typeof t)throw new Error("Callback must be a function type");const n=["mousemove","keydown","scroll","click","touchstart"];let s;const r=()=>{clearTimeout(s),s=setTimeout(t,e)};return n.forEach((t=>window.addEventListener(t,r))),r(),function(){n.forEach((t=>window.removeEventListener(t,r))),clearTimeout(s)}};function gu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function bu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gu(Object(n),!0).forEach((function(e){yu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Cu={name:"CatalogElementExclusiveOffer",props:{pid:{type:Number,required:!0},title:{type:String,required:!0},page:{type:String,required:!0}},data:function(){return{timestamp:Date.now(),visible:{popup:!1,toast:!1},latency:{popup:1e4,toast:5e3}}},computed:{},methods:bu(bu({},(0,r.nv)(["openModalForm","closeModalForm"])),{},{showToast:function(){this.visible.toast=!0},hideToast:function(){this.visible.toast=!1},showModal:function(){this.visible.popup=!0,this.openModalForm({code:"EXCLUSIVE_OFFER",title:this.title,directValues:{NAME:this.page}})},onToastSuccess:function(){this.hideToast(),this.showModal(),this.onAfterModalShown()},onToastDeclined:function(){this.hideToast(),this.onAfterModalShown(),setCo
1okie("FOROFFICE_EXCLUSIVE_OFFERS_TOAST_DECLINED","1","/",7)},onToastClosed:function(t){this.hideToast(),this.onAfterModalShown()},isToastDeclined:function(){return!!getCookies().FOROFFICE_EXCLUSIVE_OFFERS_TOAST_DECLINED},setModalShown:function(t){setCookie("FOROFFICE_EXCLUSIVE_OFFERS",JSON.stringify(t),"/",30)},getModalShown:function(){let t;try{t=JSON.parse(getCookies().FOROFFICE_EXCLUSIVE_OFFERS),Array.isArray(t)||(t=[],this.setModalShown(t))}catch(e){t=[],this.setModalShown(t)}return t},isModalShown:function(){return this.getModalShown().includes(this.pid)},onAfterModalShown:function(){this.setModalShown([...this.getModalShown(),this.pid])},handleMouseOut:function(t){const e=t.clientX<=0||t.clientX>=window.innerWidth||t.clientY<=0||t.clientY>=window.innerHeight;Date.now()-this.timestamp>this.latency.popup&&e&&!this.isModalShown()&&(this.hideToast(),this.showModal(),this.onAfterModalShown())},handleToastTimeout:function(){this.isToastDeclined()||this.isModalShown(this.pid)||this.showToast()}}),mounted(){document.addEventListener("mouseout",(t=>this.handleMouseOut(t))),_u((()=>{this.handleToastTimeout()}),this.latency.toast)}};const Ou=(0,bn.Z)(Cu,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ce-exclusive-offer-toast-mc"},[n("b-toast",{attrs:{id:"exclusive-offer-toast",variant:"default",toaster:"b-toaster-bottom-left","no-auto-hide":"",solid:"","no-close-button":""},scopedSlots:t._u([{key:"toast-title",fn:function(){return[n("span",[t._v("ÐÐ»Ñ ÐÐ°Ñ Ð´Ð¾ÑÑÑпно ÑкÑклÑзивное пÑиложение пÑи заказе ÑÑого ÑоваÑа")]),t._v(" "),n("button",{staticClass:"close ml-auto mb-1",attrs:{type:"button","aria-label":"Close"},on:{click:t.onToastClosed}},[t._v("\n Ã\n ")])]},proxy:!0}]),model:{value:t.visible.toast,callback:function(e){t.$set(t.visible,"toast",e)},expression:"visible.toast"}},[t._v(" "),n("div",{staticClass:"btn-wrapper"},[n("button",{staticClass:"btn btn-primary",on:{click:t.onToastSuccess}},[t._v("ÐолÑÑиÑÑ ÑкидкÑ")])]),t._v(" "),n("div",{staticClass:"btn-wrapper"},[n("button",{staticClass:"btn btn-secondary",on:{click:t.onToastDeclined}},[t._v("Ðе показÑваÑÑ")])])])],1)}),[],!1,null,null,null).exports;function wu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Eu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wu(Object(n),!0).forEach((function(e){Pu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Su={name:"CatalogTags",props:{uniqueId:{type:String,required:!0,default:"main"},position:{type:String,default:"top"},filterMode:{type:Boolean,default:!0}},components:{},data:function(){return{showAll:!1}},computed:Eu(Eu(Eu(Eu({},(0,r.Se)(["catalogTags","catalogBrands14","catalogFilters","catalogFilteredProducts","catalogFilterHelpers","catalogStartFilterParams","catalogInitiated","catalogSection","catalogSections","catalogControls","catalogBrand14","catalogHasActiveFilters"])),(0,r.Se)(["userIsAdmin"])),(0,r.Se)(["isXL","isLG","isMD","isSM","isXS"])),{},{controls:{get:function(){return this.catalogControls[this.uniqueId]},set:function(t){this.catalogSetControls({[this.uniqueId]:t})}},filter:{get:function(){return this.catalogFilters[this.uniqueId]?.tags||[]},set:function(t){1!==this.controls.page&&(this.controls=Eu(Eu({},this.controls),{},{page:1})),this.catalogUpdateFilters({[this.uniqueId]:{tags:t}})}},initiated:function(){return this.catalogInitiated.includes(this.uniqueId)},section:function(){return this.catalogSection[this.uniqueId]},brand14:function(){return this.catalogBrand14[this.uniqueId]},filteredProducts:function(){return this.catalogFilteredProducts[this.uniqueId]},filterHelpers:function(){return this.catalogFilterHelpers[this.uniqueId]},hasActiveFilters:function(){return this.catalogHasActiveFilters[this.uniqueId]},tagsMinCount:function(){return this.isXL?12:this.isLG?10:this.isMD?8:4},tags:function(){let t=this.catalogTags[this.uniqueId];return!(void 0===t||t.length<=0)&&("top"===this.position?t.slice(0,10):"bottom"===this.position?t.slice(10):t)},noLinksFromBrandPage:function(){return!!+this.section.UF_INHERIT_TAGS||this.brand14&&this.section.UF_HIDE_BRAND_TAGS.includes(+this.brand14.ID_14)}}),methods:Eu(Eu(Eu({},(0,r.nv)(["openModal","closeModal"])),(0,r.nv)(["catalogUpdateFilters","catalogSetControls"])),{},{click:function(t,e){if(!this.filterMode)return!1;t.preventDefault();const n=this.filter.includes(e)?this.filter.filter((t=>+t!=+e)):this.filter=[...this.filter,+e];this.filter=n.length?n:null},showDirectLink:function(t){return this.isParentSection(t)||!this.section.UF_TAG_SECTION},createLink:function(t){const e=this.catalogFilters[this.uniqueId]||[],n=this.catalogBrands14[this.uniqueId],s=!!e&&!!n&&!!e.brands&&1===e.brands.length;let r,i=!1,a=String(t.DETAIL_PAGE_URL).replace("/#BRAND_CODE#/","/");return s&&(r=n[e.brands[0]],r&&r.PROPERTY_HIDE_TAGS_VALUE.find((e=>+e==+t.ID))&&(i=!0)),s&&r&&!this.noLinksFromBrandPage&&!i&&(a=String(t.DETAIL_PAGE_URL).replace("#BRAND_CODE#",r.CODE)),a},isParentSection:function(t){return this.section&&this.section.UF_TAG_SECTION&&+this.section.UF_TAG_SECTION==+t.IBLOCK_SECTION_ID},openUploadProductsPopup:function(t){this.openModal({code:"iBlockElementEdit",params:{code:"add-products-to-tag",title:"Ðобавим ÑоваÑÑ Ðº ÑегÑ?",directValues:{id:t,uniqueId:this.uniqueId}}})}})},Iu=Su;const Tu=(0,bn.Z)(Iu,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.initiated?n("div",{class:{expand:t.showAll}},[t._e(),t._v(" "),n("div",{staticClass:"tags col-12"},t._l(t.tags,(function(e,s){return n("span",{key:"cs_"+t.uniqueId+"_"+e.ID,staticClass:"badge badge-secondary badge-pill",class:{"show-always":s+1<=t.tagsMinCount,active:t.filter.includes(+e.ID)}},[n("a",{attrs:{href:t.createLink(e)},on:{click:function(n){return t.click(n,+e.ID)}}},[t._v(t._s(t._f("capitalize")(e.NAME)))]),t._v(" "),t.showDirectLink(e)?n("a",{staticClass:"direct-link",attrs:{href:t.createLink(e)}},[n("fai",{attrs:{icon:"chevron-right"}})],1):t._e(),t._v(" "),t.userIsAdmin?n("a",{attrs:{href:"#"},on:{click:function(n){return t.openUploadProductsPopup(+e.ID)}}},[n("fai",{attrs:{icon:"upload"}}),t._v(" "),e.PROPERTY_RELATED_CHARS_VALUE&&"{}"!==e.PROPERTY_RELATED_CHARS_VALUE?n("fai",{attrs:{icon:"link"}}):t._e()],1):t._e()])})),0),t._v(" "),t.tags.length>t.tagsMinCount?n("div",{staticClass:"show-more col-12"},[n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.showAll=!t.showAll}}},[n("span",[t._v("ÐоказаÑÑ Ð²Ñе")]),t._v(" "),n("span",[t._v("СкÑÑÑÑ")])])]):t._e()]):t._e()}),[],!1,null,null,null).exports;const Du=JSON.parse('{"Y":{"type":"loop","rewind":true,"pagination":false,"arrows":false,"gap":0,"perPage":1,"perMove":1,"autoplay":true,"pauseOnHover":true,"interval":5000,"start":0}}'),Au={name:"CatalogCertificates",props:{brands:{type:Array,required:!0}},data:function(){return{certIndex:0,noPhotoCount:0,certSliderOptions:Du.Y}},methods:{certSliderMoved:function(t,e){this.certIndex=e}},beforeMount:function(){let t=0;this.brands.forEach((function(e){"ÐÐµÑ ÑоÑо"===e.PROPERTY_CERTIFICATE_PRV_VALUE.ALT&&t++})),this.noPhotoCount=t}};const ku=(0,bn.Z)(Au,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"certificates-mc"},[n("div",{staticClass:"inner"},[n("div",{staticClass:"header"},[t._v("ÐаÑи ÑеÑÑиÑикаÑÑ")]),t._v(" "),n("div",{staticClass:"body"},[n("splide",{attrs:{options:t.certSliderOptions},on:{"splide:moved":t.certSliderMoved}},t._l(t.brands,(function(e,s){return"ÐÐµÑ ÑоÑо"!==e.PROPERTY_CERTIFICATE_PRV_VALUE.ALT?n("splide-slide",{key:"cts_cert_"+s},[n("div",{staticClass:"item"},[n("img",{attrs:{src:e.PROPERTY_CERTIFICATE_PRV_VALUE.SRC,alt:"СеÑÑиÑÐ¸ÐºÐ°Ñ "+e.NAME}})])]):t._e()})),1)],1),t._v(" "),n("div",{staticClass:"footer"},[n("div",{staticClass:"counter"},[n("span",[t._v(t._s(t.certIndex+1))]),t._v(" "),n("span",[t._v("/")]),t._v(" "),n("span",[t._v(t._s(t.brands.length-t.noPhotoCount))])]),t._v(" "),t._m(0)])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"link"},[n("a",{attrs:{href:"/certificates/"}},[t._v("ÐоÑмоÑÑеÑÑ Ð²Ñе")])])}],!1,null,null,null).exports;const ju={name:"VendorsPortalShield",props:{},data:function(){return{}}};const Lu=(0,bn.Z)(ju,(function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vendors-portal-mc"},[n("div",{staticClass:"inner"},[n("div",{staticClass:"image"},[n("a",{attrs:{href:"http://zakupki.mos.ru/#/suppliers/1258348"}},[n("img",{attrs:{src:"/img/svg/vendors_portal.svg",alt:"ÐоÑÑал поÑÑавÑиков"}})])]),t._v(" "),n("div",{staticClass:"text"},[n("a",{attrs:{href:"http://zakupki.mos.ru/#/suppliers/1258348"}},[t._v("\n ÐаÑи ÑабоÑÑ Ð½Ð° поÑÑале поÑÑавÑиков\n ")])])])])}],!1,null,null,null).exports;function Ru(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Mu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Ru(Object(n),!0).forEach((function(e){xu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ru(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Nu={name:"CatalogNewSection",props:{startData:{type:Object,required:!0},uniqueId:{type:String,required:!0,default:"main"}},components:{Tags:Tu,Filters:Pl,Controls:ji,Pagi:qi,Products:Qi,Certificates:ku,VendorsPortal:Lu},data:function(){return{}},computed:Mu(Mu({},(0,r.Se)(["catalogSection","catalogControls","catalogTotal","catalogControls"])),{},{section:function(){let t=this.catalogSection[this.uniqueId];return!(void 0===t||t.length<=0)&&t},canShowMore:function(){const t=this.catalogControls[this.uniqueId],e=+t.page,n=+t.limits[t.limit].count,s=+this.catalogTotal[this.uniqueId];return(e+ +t.limitMultiplier-1)*n<s},hasCertificates:function(){return void 0!==this.startData.brands&&(this.startData.brands&&this.startData.brands.length>0)}}),methods:Mu(Mu({},(0,r.nv)(["catalogCreateStorage","catalogSetStartData","catalogSetControls"])),{},{showMore:function(){let t=this.catalogControls;t[this.uniqueId].limitMultiplier=+t[this.uniqueId].limitMultiplier+1,this.catalogSetControls(t)}}),beforeMount(){this.catalogCreateStorage(this.uniqueId),this.catalogSetStartData({[this.uniqueId]:this.startData})}},Uu=Nu;const qu=(0,bn.Z)(Uu,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container catalog-new-section-mc"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 tags-block"},[n("Tags",{ref:"tags",attrs:{"unique-id":t.uniqueId}})],1),t._v(" "),n("div",{staticClass:"col-12 controls-block"},[n("Controls",{ref:"controls",attrs:{"unique-id":t.uniqueId}})],1),t._v(" "),n("div",{staticClass:"d-none d-xl-block col-xl-3 filters-block"},[n("Filters",{ref:"filters",attrs:{"unique-id":t.uniqueId,"section-params":t.section}}),t._v(" "),t.hasCertificates?n("Certificates",{attrs:{brands:t.startData.brands}}):t._e(),t._v(" "),n("VendorsPortal")],1),t._v(" "),n("div",{staticClass:"col-12 col-xl-9 products-block"},[n("div",{staticClass:"row"},[n("Products",{attrs:{"unique-id":t.uniqueId}})],1),t._v(" "),n("div",{staticClass:"row products-bottom"},[t.canShowMore?n("div",{staticClass:"col-12 more-block"},[n("b-button",{attrs:{variant:"outline-dark"},on:{click:t.showMore}},[t._v("ÐоказаÑÑ ÐµÑе")])],1):t._e(),t._v(" "),n("div",{staticClass:"col-12 nav-block"},[n("Pagi",{attrs:{"unique-id":t.uniqueId}})],1),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"col-12 col-md-5 col-lg-4 d-xl-none"},[t.hasCertificates?n("Certificates",{attrs:{brands:t.startData.brands}}):t._e(),t._v(" "),n("VendorsPortal")],1)])])])])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12 disclaimer-block"},[n("p",[t._v("ÐнÑоÑмаÑÐ¸Ñ Ð¾ ÑенаÑ
и налиÑии ÑоваÑа на ÑайÑе не ÑвлÑеÑÑÑ Ð¾ÑеÑÑой. ХаÑакÑеÑиÑÑики,\n комплекÑаÑÐ¸Ñ Ð¸ внеÑний вид ÑоваÑа могÑÑ Ð±ÑÑÑ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ñ ÑиÑмой-пÑоизводиÑелем без\n пÑедваÑиÑелÑного ÑведомлениÑ.")])])}],!1,null,null,null).exports;function Hu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Fu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Hu(Object(n),!0).forEach((function(e){$u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Vu={name:"CatalogNavLine",props:["data","position","storageId"],data:function(){return{}},computed:Fu(Fu(Fu({},(0,r.Se)(["CAgetCatalogCurrentLimit","CAgetCatalogCurrentView","CAgetCatalogCurrentPage","CAgetCatalogCurrentSort","CAgetCatalogTotal","CAgetCatalogLoading"])),(0,r.Se)(["CAgetCatalogLimits","CAgetCatalogViewModes","CAgetCatalogSortParams"])),{},{limit:{set:function(t){if(this.limitObj.value===this.total)this.CAsetCatalogLimit(0),this.page=1;else{let e=this.limitObj.value*(this.page-1)+1,n=this.CAgetCatalogLimits[t],s=Math.round(e/n.value);s<1&&(s=1),this.CAsetCatalogLimit(t),this.page=s}this.$emit("limit-change",t)},get:function(){return this.CAgetCatalogCurrentLimit}},view:{set:function(t){this.CAsetCatalogView(t),this.$emit("view-change",t)},get:function(){return this.CAgetCatalogCurrentView}},page:{set:function(t){this.CAsetCatalogPage(t),this.$emit("page-change",t)},get:function(){return this.CAgetCatalogCurrentPage}},sort:{set:function(t){this.CAsetCatalogSort(t),this.$emit("sort-changed"),this.page=1},get:function(){return this.CAgetCatalogCurrentSort}},loading:function(){return this.CAgetCatalogLoading},limitObj:function(){return this.CAgetCatalogLimits[this.CAgetCatalogCurrentLimit]},total:function(){return this.CAgetCatalogTotal},navigation:function(){const t=this.limitObj.value;let e=this.total%t>0?Math.floor(this.total/t)+1:this.total/t;const n=[];for(let t=0;t<e;t++)n.push({text:t+1,value:t+1});const s=[];return n.forEach(function(t,e,n){let r=e+1;1===r||r===n.length||this.page-r<3&&r-this.page<3||this.page<5&&r<6||n.length-this.page<4&&n.length-r<5?s.push(t):(this.page>3||this.page+2<r)&&null!==s[s.length-1].value&&s.push({text:"...",value:null})}.bind(this)),s}}),methods:Fu({},(0,r.nv)(["CAsetCatalogLimit","CAsetCatalogView","CAsetCatalogPage","CAsetCatalogSort"]))};(0,bn.Z)(Vu,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-nav-line-mc col-md-12 hidden-xs"},[t.loading?n("div",{staticClass:"block-controls"}):t._e(),t._v(" "),n("div",{staticClass:"navi row"},[n("div",{staticClass:"onpage navi-item"},[t._v("\n ÐÑводиÑÑ Ð¿Ð¾:\n "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.limit,expression:"limit"}],attrs:{name:"select_page_count"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.limit=e.target.multiple?n:n[0]}}},[t._l(t.CAgetCatalogLimits,(function(e,s){return 0===s||e.value<t.total&&"all"!==e.value?n("option",{domProps:{value:s}},[t._v(t._s(e.text))]):t._e()})),t._v(" "),t.total>t.CAgetCatalogLimits[0].value?n("option",{domProps:{value:t.CAgetCatalogLimits.length-1}},[t._v("ÐÑе")]):t._e()],2)]),t._v(" "),n("div",{staticClass:"templates navi-item"},[t._v("\n Ðид:\n "),t._l(t.CAgetCatalogViewModes,(function(e,s){return n("a",{key:"template_"+s,class:{"templates-item":!0,selected:t.view===s,"blocks-mode":"blocks-mode"===e.class,"linear-mode":"linear-mode"===e.class},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.view=s}}})}))],2),t._v(" "),n("div",{staticClass:"pagi navi-item"},[n("ul",[t._l(t.navigation,(function(e,s){return t.navigation.length>1?n("li",{key:"page_"+s,class:{selected:t.page===e.value}},[e.value?n("a",{attrs:{href:"#"},on:{click:function(n){n.preventDefault(),t.page=e.value}}},[t._v(t._s(e.text))]):t._e(),t._v(" "),null===e.value?n("span",[t._v(t._s(e.text))]):t._e()]):t._e()})),t._v(" "),n("li",[t.navigation.length>1&&t.limitObj.value<t.total?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.limit=t.CAgetCatalogLimits.length-1}}},[t._v("ÐÑе")]):t._e(),t._v(" "),t.limitObj.value===t.total?n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.limit=0}}},[t._v("ÐоÑÑÑаниÑно")]):t._e()])],2)]),t._v(" "),n("div",{staticClass:"clearfix"})]),t._v(" "),n("div",{staticClass:"sort-links row"},t._l(t.CAgetCatalogSortParams,(function(e,s){return n("span",{key:"sort_param_"+s,
1class:{selected:t.sort===s}},[n("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.sort=s}}},[t._v(t._s(e.text))])])})),0)])}),[],!1,null,null,null).exports;function Bu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Gu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bu(Object(n),!0).forEach((function(e){Yu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const zu={name:"CatalogSection",props:{cacheTime:{type:Number,default:3600},filter:{type:Object,required:!0},hideControls:{type:Boolean,default:!1},uniqueId:{type:String,default:"cs_def"}},components:{Controls:ji,Pagination:qi,Products:Qi},data:function(){return{showComponent:!1}},computed:Gu(Gu(Gu(Gu({},(0,r.Se)(["isXS","isSM","isMD","isLG","isXL"])),(0,r.Se)(["CAgetCatalogStorage","CAgetCatalogSections","CAgetCatalogcurrentItems"])),(0,r.Se)(["catalogControls"])),{},{controls:{get:function(){return this.catalogControls[this.uniqueId]},set:function(t){return this.catalogSetControls({[this.uniqueId]:t})}},storage:{get:function(){return this.CAgetCatalogStorage},set:function(t){this.CAupdateCatalogStorage(t)}
1},sections:{get:function(){return this.CAgetCatalogSections},set:function(t){this.CAupdateCatalogSections(t)}},total:{get:function(){return this.controls.total},set:function(t){this.updateControlsFields("total",+t)}},loading:{get:function(){return this.controls.loading},set:function(t){this.updateControlsFields("loading",t)}},page:function(){return this.controls.page},limit:function(){return+this.controls.limits[this.controls.limit].count},limitIndex:function(){return this.controls.limit},view:function(){return+this.controls.views[this.controls.view].value},sortIndex:function(){return this.controls.sort},sortCode:function(){return this.controls.sorts[this.controls.sort].code},currentIndexes:function(){let t=[],e=+this.page*+this.limit-1>+this.total?+this.total:+this.page*+this.limit;for(let n=(+this.page-1)*+this.limit;n<+e;n++)t.push(n);return t},isChunkEmpty:function(){for(let t of this.currentIndexes)if(null===this.storage[this.sortIndex][t])return!0;return!1},currentItems:function(){let t=[];return this.currentIndexes.forEach(function(e){t.push(this.storage[this.sortIndex][e])}.bind(this)),t},columns:function(){return this.isXS||this.isSM?1:this.isMD?3:4}}),methods:Gu(Gu(Gu({},(0,r.nv)(["CAuseVueCatalogApi","CAupdateCatalogStorage","CAupdateCatalogSections"])),(0,r.nv)(["catalogCreateStorage","catalogSetControls"])),{},{createRequest:function(){let t={},e="";t.action="get-elements",window.location.search.length>0&&(window.location.search.includes("clear_cache=Y")||window.location.search.includes("clear_cache_session=Y"))?t.CACHE_TIME=0:void 0!==this.cacheTime?t.CACHE_TIME=this.cacheTime:t.CACHE_TIME=3600,t.arFilter=[];for(let e in this.filter)"object"!=typeof this.filter[e]?t.arFilter.push(`arFilter[${e}]=${this.filter[e]}`):this.filter[e].forEach((function(n){t.arFilter.push(`arFilter[${e}][]=${n}`)}));t.arNavStartParams=[],t.arNavStartParams.push(`arNavStartParams[iNumPage]=${this.page}`),t.arNavStartParams.push(`arNavStartParams[nPageSize]=${this.limit}`),t.order=this.sortCode;let n=0;for(let s in t)n>0&&(e+="&"),"object"!=typeof t[s]?e+=`${s}=${t[s]}`:e+=t[s].join("&"),n++;return e+="&cache_id="+e.replace(/\&/g,"_").replace(/\=/g,"__"),e},dataRequest:function(){this.loading=!0;const t=this.createRequest();return this.CAuseVueCatalogApi(t).then(function(t){return t.data.error?(console.error(t.data.error),t.data.error):(this.total||(this.total=t.data.TOTAL),0===this.storage.length&&this.createStorage(t.data),this.chunkFillStorage(t.data.ITEMS),this.updateSections(t.data.SECTIONS),this.loading=!1,this.showComponent=!0,t.data)}.bind(this))},createStorage:function(){let t=Array(this.controls.sorts.length).fill([]);t=t.map(function(t){return Array(this.total).fill(null)}.bind(this)),this.storage=t},chunkFillStorage:function(t){let e=this.storage;for(let n of this.currentIndexes)e[this.sortIndex][n]=t.shift();this.storage=e},updateSections:function(t){let e=this.sections;for(let n in t)e[n]=t[n];this.sections=e},onPageChange:function(){this.toTop(),this.isChunkEmpty&&this.dataRequest()},onSortChange:function(){this.toTop(),this.isChunkEmpty&&this.dataRequest()},onLimitChange:function(){this.toTop(),this.isChunkEmpty&&this.dataRequest()},updateControlsFields(t,e){let n=this.controls;n[t]=e,this.controls=n},toTop:function(){document.querySelector("#cns_"+this.uniqueId).scrollIntoView()}}),beforeMount(){this.catalogCreateStorage(this.uniqueId),this.dataRequest()}},Zu=zu;const Wu=(0,bn.Z)(Zu,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showComponent?n("div",{staticClass:"catalog-section-mc",attrs:{id:"cns_"+t.uniqueId}},[n("div",{staticClass:"row "},[n("div",{staticClass:"col-12 controls-block"},[n("Controls",{ref:"controls",staticClass:"catalog-controls-mc row",attrs:{"unique-id":t.uniqueId,"local-data":{total:t.total},prevent:!0},on:{"sort-changed":t.onSortChange}})],1),t._v(" "),t.loading?n("div",{staticClass:"col-12 preloader-block"},[n("div",{staticClass:"preloader-outer"},[n("fai",{staticClass:"preloader",attrs:{icon:"spinner",spin:""}})],1)]):n("div",{staticClass:"col-12 products-block"},[n("Products",{attrs:{"unique-id":t.uniqueId,loading:t.loading,"local-data":{items:t.currentItems,items_order:Object.keys(t.currentItems)},cols:t.columns}})],1),t._v(" "),n("div",{staticClass:"col-12 nav-block",class:{"d-none":t.hideControls}},[+t.total>+t.limit?n("Pagination",{attrs:{"unique-id":t.uniqueId,"local-data":{total:t.total,page_cnt:Math.ceil(+t.total/+t.limit),page:+t.page}},on:{"page-changed":t.onPageChange,"limit-changed":t.onLimitChange}}):t._e()],1)])]):t._e()}),[],!1,null,null,null).exports;function Ku(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Xu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Ku(Object(n),!0).forEach((function(e){Qu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ju={name:"CatalogCompare",components:{CatalogItem:Br},props:{startData:{type:Object,required:!0}},data:function(){return{show:!0,showDifference:!1,tabIndex:0,position:0,deleted:[]}},computed:Xu(Xu(Xu({},(0,r.rn)(["system"])),(0,r.Se)(["compareItems","compareIsEmpty"])),{},{isEmpty:function(){return 0===Object.keys(this.products).length},currentSectionIndex:{get:function(){return this.tabIndex},set:function(t){this.show=!1,this.position=0,this.tabIndex=t,setTimeout((()=>{this.show=!0}),100)}},activeSection:function(){return this.startData.sections?Object.values(this.startData.sections)[this.currentSectionIndex]:null},products:function(){return this.startData.sections&&this.startData.products?Object.values(this.startData.products).filter((t=>!this.deleted.includes(+t.ID))):[]},sections:function(){return this.startData.sections?this.startData.sections:{}},charsConfig:function(){return this.startData.sections&&this.startData.charsConfig?this.startData.charsConfig:[]},options:function(){return Zr.Y},onPage:function(){if(!this.system.screenWidth)return!1;const t=this.options;let e=null;return void 0!==t.breakpoints&&Object.keys(t.breakpoints).forEach((n=>{if(n<+this.system.screenWidth)return!1;(!e||n>e)&&void 0!==t.breakpoints[n].perPage&&(e=n)})),e?t.breakpoints[e].perPage:t.perPage},showArrows:function(){if(!this.system.screenWidth)return!1;const t=Object.values(this.sections)[this.tabIndex];return this.getProducts(t.ID).length>this.onPage},showLeftArrow:function(){return 0!==this.position},showRightArrow:function(){const t=Object.values(this.sections)[this.tabIndex];return this.position+this.onPage<this.getProducts(t.ID).length},arrowsClass:function(){return{"no-arrows":!this.showArrows,"no-left-arrow":!this.showLeftArrow,"no-right-arrow":!this.showRightArrow}}}),methods:Xu(Xu({},(0,r.nv)(["compareRemove"])),{},{getProducts:function(t){return Object.values(this.products).filter((e=>+e.IBLOCK_SECTION_ID==+t))},getCharsConfig:function(t){const e=Object.values(this.sections).find((e=>+e.ID==+t));return Object.values(this.charsConfig).filter((n=>{if(+e.UF_TTH_SECTION!=+n.IBLOCK_SECTION_ID)return!1;const s=new Set,r=this.getProducts(t).filter((t=>{const e=t.PROPERTY_TTH_VALUES_VALUE;if(!e)return!1;const r=e[n.ID];if(!r)return!1;const i=+r.TYPE[0],a=r.VALUE;return!!a&&((21!==i||999!=+a)&&(s.add(a),!0))}));return r.length>0&&(!this.showDifference||s.size>1)}))},getCharValue:function(t,e){const n=e.PROPERTY_TTH_VALUES_VALUE;if(!n||!n[t.ID])return null;const s=n[t.ID],r=+s.TYPE[0],i=s.UNIT[0]?s.UNIT[0]:"";if(!s.VALUE)return null;let a;if(21===r){if(999==+s.VALUE)return null;a=s.SAMPLES[+s.VALUE]}else{if(19!==r&&20!==r)return null;a=s.VALUE}return`${a} ${i}`.trim()},onItemRemoved:function(t){this.compareRemove(+t.ID),this.deleted=Array.from(new Set([...this.deleted,+t.ID]));const e=window.location.origin+window.location.pathname,n=this.compareItems.map((t=>`items[]=${t}`)).join("&");history.pushState(null,null,`${e}?${n}`)},onAfterSliderMoved:function(t,e,n,s){if(e===n)return!1;this.position=e,this.syncSliders(t)},syncSliders:function(t){this.getCurrentSliders().forEach((e=>{e!==t&&e.index!==this.position&&e.go(this.position)}))},getCurrentSliders:function(){const t=Object.values(this.sections)[this.currentSectionIndex].ID;return[this.getCurrentProductSlider(t),...this.getCurrentCharsSliders(t)]},getCurrentProductSlider:function(t){const e=this.$refs[`splide_prods_${t}`];if(e&&e[0]&&e[0].splide)return e[0].splide},getCurrentCharsSliders:function(t){return this.getCharsConfig(t).map((t=>{const e=this.$refs[`splide_cv_${t.ID}`];if(e)return e[0].splide})).filter((t=>void 0!==t))}}),filters:{nameSlicer:t=>t.length>34?function t(e){if(e.length>34){let t=e.split(" ").reverse();
1e=t.splice(1,t.length).reverse().join(" ")}return e.length>34?t(e):e}(t)+"...":t}},td=Ju;var ed=(0,bn.Z)(td,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"compare mc"},[n("div",{staticClass:"container"},[t.isEmpty?n("div",{staticClass:"compare-empty-mc row"},[t._m(0),t._v(" "),t._m(1)]):n("b-tabs",{staticClass:"row",attrs:{"content-class":"col-12","nav-wrapper-class":"col-12 mb-4","no-nav-style":""},model:{value:t.currentSectionIndex,callback:function(e){t.currentSectionIndex=e},expression:"currentSectionIndex"}},t._l(t.sections,(function(e,s){return n("b-tab",{key:"tb_"+s,staticClass:"row",scopedSlots:t._u([{key:"title",fn:function(){return[n("span",[t._v(t._s(e.NAME)+"\n "),n("span",{staticClass:"cnt",domProps:{innerHTML:t._s(t.getProducts(s).length)}})])]},proxy:!0}],null,!0)},[t._v(" "),n("div",{staticClass:"col-12 products-container mb-6"},[n("div",{staticClass:"items-slider-mc",class:t.arrowsClass},[t.show?n("splide",{ref:"splide_prods_"+s,refInFor:!0,attrs:{options:t.options},on:{"splide:moved":t.onAfterSliderMoved}},t._l(t.getProducts(s),(function(e){return n("splide-slide",{key:"is_"+e.ID,staticClass:"catalog_short"},[n("div",{staticClass:"item-outer"},[n("div",{staticClass:"top-icons-block"},[n("b-form-checkbox",{attrs:{value:!t.deleted.includes(+e.ID),checked:!t.deleted.includes(+e.ID)},on:{change:function(n){return t.deleted.push(+e.ID)}}}),t._v(" "),n("a",{staticClass:"rfc-btn-mc",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.onItemRemoved(e)}}},[n("fai",{staticStyle:{height:"20px",width:"20px"},attrs:{icon:"trash-alt"}})],1)],1),t._v(" "),n("CatalogItem",{attrs:{"start-data":e}})],1)])})),1):t._e()],1)]),t._v(" "),n("div",{staticClass:"col chars-header"},[n("h2",[t._v("СÑавнение Ñ
аÑакÑеÑиÑÑик")])]),t._v(" "),n("div",{staticClass:"col-12 col-md-5 col-lg-4 col-xl-3 show-diff-filter"},[n("div",{staticClass:"catalog-filter-mc switcher"},[n("div",{staticClass:"head"},[n("span",[t._v("ÐоказаÑÑ ÑолÑко ÑазлиÑиÑ")])]),t._v(" "),n("div",{staticClass:"body"},[n("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.showDifference,callback:function(e){t.showDifference=e},expression:"showDifference"}})],1)])]),t._v(" "),t._l(t.getCharsConfig(s),(function(e){return n("div",{key:"chc_"+e.ID+"_"+s,staticClass:"col-12 chars-row"},[n("div",{staticClass:"header"},[n("h3",{domProps:{innerHTML:t._s(e.NAME)}})]),t._v(" "),n("div",{staticClass:"slider"},[n("div",{staticClass:"items-slider-mc",class:t.arrowsClass},[t.show?n("splide",{ref:"splide_cv_"+e.ID,refInFor:!0,attrs:{options:t.options},on:{"splide:moved":t.onAfterSliderMoved}},t._l(t.getProducts(s),(function(s){return n("splide-slide",{key:"is_"+s.ID},[t.getCharValue(e,s)?n("div",{staticClass:"char-value",domProps:{innerHTML:t._s(t.getCharValue(e,s))}}):n("div",{staticClass:"char-value"},[t._v("â")])])})),1):t._e()],1)])])}))],2)})),1)],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12"},[n("h1",{staticClass:"mb-3"},[t._v("ÐÑ ÐµÑе ниÑего не добавили к ÑÑавнениÑ")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-12"},[n("p",[t._v("ÐкÑии и ÑпеÑиалÑнÑе пÑÐµÐ´Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð½Ð°\n "),n("a",{attrs:{href:"/"}},[t._v("главной ÑÑÑаниÑе")]),t._v(" "),n("br",{staticClass:"d-none d-md-inline"}),t._v("\n помогÑÑ Ð²Ð°Ð¼ опÑеделиÑÑÑÑ Ñ Ð²ÑбоÑом!\n ")])])}],!1,null,null,null);const nd=ed.exports;function sd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function rd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sd(Object(n),!0).forEach((function(e){id(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function id(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ad={name:"AlfaLeasingForm",props:{comment:{type:String,default:""}},components:{DaDataAutocompleteField:Ys},data:function(){return{formData:{inn:{name:"ÐÐÐ",type:"text",code:"inn",value:null,required:!0,validated:!1,placeholder:"",blocked:!1,state:null,validation:{digits:[],min:[10],max:[12]},dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"party",minSymbols:3},lastInput:null},name:{name:"ФÐРконÑакÑного лиÑа",type:"text",code:"name",value:null,required:!0,validated:!1,validation:{nameSurname:[]},placeholder:"",blocked:!1,state:null},phone:{name:"ТелеÑон",type:"tel",code:"phone",value:null,required:!0,validated:!1,validation:{phone:[]},placeholder:"+7 (___) ___-__-__",blocked:!1,state:null},email:{name:"E-mail",type:"email",code:"email",value:null,required:!1,validated:!1,validation:{email:[]},placeholder:"",blocked:!1,state:null},comment:{name:"ÐомменÑаÑий",type:"textarea",code:"comment",value:null,required:!0,validated:!1,placeholder:"",blocked:!1,state:null},procAgree:{value:null,state:null,required:!0,validated:!1,errorMsg:null}},validation:Wn,stage:0,successInfo:{requestId:"********-****-****-****-************",requestNumber:"**-****-*****"}}},computed:rd(rd({},(0,r.Se)(["userIsAuthorized","userGetUserData","alfaBankIsLoading"])),{},{isLoading:function(){return this.alfaBankIsLoading},isValid:function(){return 0===Object.values(this.formData).filter((t=>!1===t.state&&t.validated)).length}}),methods:rd(rd({},(0,r.nv)(["alfaBankCreateLeasingLead"])),{},{setState:Kn,validate:function(){Object.values(this.formData).forEach((t=>{this.setState(t)}))},onSubmit:async function(){const t=Object.values(this.formData).filter((t=>!!t.code&&!!t.value)).map((t=>({name:t.code,value:t.value})));try{const{request_id:e,request_number:n}=await this.alfaBankCreateLeasingLead(t);this.successInfo={requestId:e,requestNumber:n},this.stage=1}catch(t){this.stage=2}},onInput:function(t){this.setState(t),void 0!==t.lastInput&&(t.lastInput=Date.now(),void 0!==t.dropdown&&t.value&&t.value.length>=t.dropdown.minSymbols&&setTimeout(function(){Date.now()-t.lastInput>
1=t.dropdown.timeout&&this.getSuggestions(t)}.bind(this),t.dropdown.timeout))},onAutoComplete:function(t){this.formData.inn=rd(rd({},this.formData.inn),{},{value:t.data.inn}),this.setState(this.formData.inn)}}),beforeMount(){if(this.userIsAuthorized){const{NAME:t,LAST_NAME:e,SECOND_NAME:n,EMAIL:s,PERSONAL_PHONE:r,UF_ORG_INN:i}=this.userGetUserData;s&&(this.formData.email.value=s),r&&(this.formData.phone.value=r),i&&(this.formData.inn.value=i),(t||e||n)&&(this.formData.name.value=`${e} ${t} ${n}`.trim()),this.comment&&(this.formData.comment.value=this.comment)}},mounted(){this.validate(),setTimeout((()=>{Qn(".alfa-leasing-form-mc")}),200)}},od=ad;const cd=(0,bn.Z)(od,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"d-inline alfa-leasing-form-mc"},[0===t.stage?n("div",{staticClass:"card"},[t._m(0),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"uf-mc form-wrapper"},[n("b-form",{staticClass:"uf-form container-fluid",attrs:{action:"#",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("DaDataAutocompleteField",{attrs:{name:t.formData.inn.code,label:t.formData.inn.name,placeholder:t.formData.inn.placeholder,required:t.formData.inn.required,readonly:t.formData.inn.blocked,state:t.formData.inn.state,errorMsg:t.formData.inn.errorMsg,method:t.formData.inn.dropdown.method,timeout:t.formData.inn.dropdown.timeout,minSymbols:t.formData.inn.dropdown.minSymbols},on:{input:function(e){return t.setState(t.formData.inn)},autocomplete:t.onAutoComplete},model:{value:t.formData.inn.value,callback:function(e){t.$set(t.formData.inn,"value",e)},expression:"formData.inn.value"}})],1)]),t._v(" "),n("div",{staticClass:"row"},[n("b-form-group",{staticClass:"uf-group col",attrs:{state:t.formData.name.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.formData.name.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.formData.name.required,expression:"formData.name.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!1,3829265744)},[t._v(" "),n("b-form-input",{attrs:{type:t.formData.name.type,placeholder:t.formData.name.placeholder,required:t.formData.name.required,readonly:t.formData.name.blocked,state:t.formData.name.state,name:t.formData.name.code},on:{input:function(e){return t.setState(t.formData.name)}},model:{value:t.formData.name.value,callback:function(e){t.$set(t.formData.name,"value",e)},expression:"formData.name.value"}}),t._v(" "),t.formData.name.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.formData.name.errorMsg)+"\n ")]):t._e()],1)],1),t._v(" "),n("div",{staticClass:"row"},[n("b-form-group",{staticClass:"uf-group col-12 col-md-6",attrs:{state:t.formData.phone.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.formData.phone.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.formData.phone.required,expression:"formData.phone.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!1,518139659)},[t._v(" "),n("b-form-input",{attrs:{type:t.formData.phone.type,placeholder:t.formData.phone.placeholder,required:t.formData.phone.required,readonly:t.formData.phone.blocked,state:t.formData.phone.state,name:t.formData.phone.code},on:{input:function(e){return t.setState(t.formData.phone)}},model:{value:t.formData.phone.value,callback:function(e){t.$set(t.formData.phone,"value",e)},expression:"formData.phone.value"}}),t._v(" "),t.formData.phone.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.formData.phone.errorMsg)+"\n ")]):t._e()],1),t._v(" "),n("b-form-group",{staticClass:"uf-group col-12 col-md-6",attrs:{state:t.formData.email.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.formData.email.name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.formData.email.required,expression:"formData.email.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!1,3373707035)},[t._v(" "),n("b-form-input",{attrs:{type:t.formData.email.type,placeholder:t.formData.email.placeholder,required:t.formData.email.required,readonly:t.formData.email.blocked,state:t.formData.email.state,name:t.formData.email.code},on:{input:function(e){return t.setState(t.formData.email)}},model:{value:t.formData.email.value,callback:function(e){t.$set(t.formData.email,"value",e)},expression:"formData.email.value"}}),t._v(" "),t.formData.email.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.formData.email.errorMsg)+"\n ")]):t._e()],1)],1),t._v(" "),n("div",{staticClass:"row"},[n("b-form-group",{staticClass:"uf-group col",attrs:{state:t.formData.comment.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",[t._v("\n "+t._s(t.formData.comment.
1name)+"\n "),n("sup",{directives:[{name:"show",rawName:"v-show",value:t.formData.comment.required,expression:"formData.comment.required"}],staticClass:"text-danger"},[t._v("*")])])]},proxy:!0}],null,!1,2148046564)},[t._v(" "),n("b-form-textarea",{attrs:{state:t.formData.comment.state,rows:5},on:{input:function(e){return t.setState(t.formData.comment)}},model:{value:t.formData.comment.value,callback:function(e){t.$set(t.formData.comment,"value",e)},expression:"formData.comment.value"}}),t._v(" "),t.formData.comment.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.formData.comment.errorMsg)+"\n ")]):t._e()],1)],1),t._v(" "),n("div",{staticClass:"row"},[n("b-form-group",{staticClass:"uf-agree col",attrs:{state:t.formData.procAgree.state}},[n("b-form-checkbox",{attrs:{state:t.formData.procAgree.state,required:t.formData.procAgree.required},on:{input:function(e){return t.setState(t.formData.procAgree)}},model:{value:t.formData.procAgree.value,callback:function(e){t.$set(t.formData.procAgree,"value",e)},expression:"formData.procAgree.value"}},[n("span",{domProps:{innerHTML:t._s(t.$root.PROCESSING_CONSENT.CHECKBOX_LABEL_HTML)}}),t._v(" "),t.formData.procAgree.required?n("sup",{staticClass:"text-danger"},[t._v("*")]):t._e()]),t._v(" "),t.formData.procAgree.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(t.formData.procAgree.errorMsg)+"\n ")]):t._e()],1)],1),t._v(" "),n("div",{staticClass:"row justify-content-center"},[n("b-form-group",{staticClass:"uf-submit col-12 col-md-6"},[n("b-button",{staticClass:"btn-orange",attrs:{type:"submit",disabled:!t.isValid||t.isLoading}},[t.isLoading?n("fai",{attrs:{icon:"spinner",spin:""}}):t._e(),t._v(" "),n("span",[t._v("ÐÑÑавиÑÑ Ð·Ð°ÑвкÑ")])],1)],1)],1)])],1)])]):t._e(),t._v(" "),1===t.stage?n("div",{staticClass:"card"},[t._m(1),t._v(" "),n("div",{staticClass:"card-body d-flex justify-content-center align-items-center"},[n("b",{staticClass:"h1 text-danger"},[t._v(t._s(t.successInfo.requestNumber))])])]):t._e(),t._v(" "),2===t.stage?n("div",{staticClass:"card"},[t._m(2),t._v(" "),t._m(3)]):t._e()])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card-header d-flex align-items-center"},[n("div",{staticClass:"logo"},[n("img",{attrs:{alt:"ÐлÑÑа-Ðизинг",src:"/img/leasing/logo-alfa-black-shield.png"}})]),t._v(" "),n("div",{staticClass:"text flex-grow-1"},[t._v("\n ÐÑпÑавка заÑвки не обÑзÑÐ²Ð°ÐµÑ Ð²Ð°Ñ Ð¾ÑоÑмлÑÑÑ Ð»Ð¸Ð·Ð¸Ð½Ð³.\n "),n("br",{staticClass:"d-none d-md-inline"}),t._v("\n ÐаÑанÑиÑÑем, ÑÑо ваÑи даннÑе оÑÑанÑÑÑÑ Ð² безопаÑноÑÑи.\n ")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card-header d-flex justify-content-center"},[n("b",{staticClass:"h1"},[t._v("ÐаÑвка оÑпÑавлена")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card-header d-flex justify-content-center"},[n("b",{staticClass:"h1"},[t._v("Ðозникла оÑибка")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card-body d-flex justify-content-center align-items-center"},[n("b",{staticClass:"h1"},[t._v("ÐожалÑйÑÑа, обÑаÑиÑеÑÑ Ðº менеджеÑÑ.")])])}],!1,null,null,null).exports;function ld(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function ud(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ld(Object(n),!0).forEach((function(e){dd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const pd={name:"ModalPersonal",props:{},components:{LoginRegistration:Da},data:function(){return{open:!1,showAuthorization:!0,showRegistration:!1,stages:{UNAUTHORIZED:0,AUTHORIZED:1},stage:0}},computed:ud(ud({},(0,r.Se)(["userIsAuthorized","userGetUserData"])),{},{id:function(){return!!this.userIsAuthorized&&(!!this.userGetUserData.ID&&this.userGetUserData.ID)},photo:function(){return!!this.userIsAuthorized&&(!!this.userGetUserData.PERSONAL_PHOTO&&this.userGetUserData.PERSONAL_PHOTO)},name:function(){return this.userIsAuthorized&&this.userGetUserData.NAME?this.userGetUserData.NAME:null},lastName:function(){return this.userIsAuthorized&&this.userGetUserData.LAST_NAME?this.userGetUserData.LAST_NAME:null}}),methods:ud(ud({},(0,r.nv)(["authSignOut"])),{},{signOut:async function(){const t=await this.authSignOut({id:+this.id});t.success?window.location.reload():console.log(t)},onAuthorized:function(){this.$emit("authorized"),this.stage=this.stages.AUTHORIZED}}),mounted(){this.userIsAuthorized&&(this.stage=this.stages.AUTHORIZED)}};const fd=(0,bn.Z)(pd,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal-personal-mc"},[t.stage===t.stages.UNAUTHORIZED?n("div",{staticClass:"login-registration-outer"},[n("LoginRegistration",{attrs:{interactive:!0},on:{success:t.onAuthorized}})],1):t.stage===t.stages.AUTHORIZED?n("div",{staticClass:"container-fluid lk-outer pt-3"},[n("div",{staticClass:"row profile-data"},[n("div",{staticClass:"col-12 user-info"},[t.photo?n("div",{staticClass:"pic"},[n("img",{attrs:{src:t.photo.SRC||t.photo.src,alt:t.name+" "+t.lastName}})]):n("div",{staticClass:"pic no-photo"},[n("fai",{attrs:{icon:"user"}})],1),t._v(" "),n("div",{staticClass:"name"},[t.name?n("span",{domProps:{innerHTML:t._s(t.name)}}):t._e(),t._v(" "),t.lastName?n("span",{domProps:{innerHTML:t._s(" "+t.lastName)}}):t._e()])]),t._v(" "),t._m(0)]),t._v(" "),n("div",{staticClass:"row profile-menu"},[n("a",{staticClass:"col-12 menu-item",attrs:{href:"/personal/"}},[t._v("ÐаказÑ")]),t._v(" "),n("a",{staticClass:"col-12 menu-item",attrs:{href:"/personal/?view=favourites"}},[t._v("ÐзбÑанное")]),t._v(" "),n("a",{staticClass:"col-12 menu-item",attrs:{href:"/personal/?view=profile"}},[t._v("ÐÑоÑилÑ")]),t._v(" "),n("a",{staticClass:"col-12 menu-item",attrs:{href:"/personal/?view=manager"}},[t._v("ÐеÑÑоналÑнÑй менеджеÑ")]),t._v(" "),n("a",{staticClass:"col-12 menu-item",attrs:{href:"/personal/?view=feedback"}},[t._v("ÐÑÑавиÑÑ Ð¾ÑзÑв")]),t._v(" "),n("a",{staticClass:"col-12 menu-item exit",on:{click:function(e){return e.preventDefault(),t.signOut.apply(null,arguments)}}},[t._v("ÐÑйÑи")])])]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 separator"},[e("hr")])}],!1,null,null,null).exports;function hd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function md(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hd(Object(n),!0).forEach((function(e){vd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _d={name:"CatalogMenuMobile",components:{},props:{},data:function(){return{level_1_index:null,level_2_index:null,level_3_index:null}},computed:md(md(md(md({},(0,r.Se)(["locationIsRussianSite"])),(0,r.Se)(["menuTree","menuIsCached"])),(0,r.rn)(["menu"])),{},{depth:function(){return null===this.level_1_index?0:null===this.level_2_index?1:null===this.level_3_index?2:3},parentElement:function(){return 0!==this.depth&&(1===this.depth?this.menuTree[this.level_1_index]:2===this.depth?this.menuTree[this.level_1_index].CHILDREN[this.level_2_index]:3===this.depth?this.menuTree[this.level_1_index].CHILDREN[this.level_2_index].CHILDREN[this.level_3_index]:void 0)},level_1:function(){return 0===this.depth&&this.menuTree},level_2:function(){return 1===this.depth&&this.menuTree[this.level_1_index].CHILDREN},level_3:function(){return 2===this.depth&&this.menuTree[this.level_1_index].CHILDREN[this.level_2_index].CHILDREN},level_4:function(){return 3===this.depth&&this.menuTree[this.level_1_index].CHILDREN[this.level_2_index].CHILDREN[this.level_3_index].CHILDREN}}),methods:{stepBack:function(){this["level_"+this.depth+"_index"]=null},close:function(){this.$emit("click-on-close",[])}},filters:{}};function gd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function bd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?gd(Object(n),!0).forEach((function(e){yd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Cd={name:"HeaderMobileDropdown",props:{},components:{SelectCity:pr,Phone:Ds,CatalogMenu:(0,bn.Z)(_d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-menu-mob-mc"},[n("div",{staticClass:"header"},[n("div",{staticClass:"bg"}),t._v(" "),0===t.depth?n("a",{staticClass:"step-back",on:{click:t.close}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-arrow-right",width:"20",height:"20"}})],1):n("a",{staticClass:"step-back",on:{click:t.stepBack}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-arrow-right",width:"20",height:"20"}})],1),t._v(" "),0===t.depth?n("span",{staticClass:"text"},[t._v("ÐаÑалог ÑоваÑов")]):t._e(),t._v(" "),n("a",{staticClass:"text",attrs:{href:t.parentElement.URL}},[t._v(t._s(t.parentElement.NAME))])]),t._v(" "),0===t.depth?n("div",{staticClass:"level first"},t._l(t.level_1,(function(e,s){return n("div",{key:"mb_ct_l1_"+s,staticClass:"item"},[e.CHILDREN&&e.CHILDREN.length>0?n("a",{on:{click:function(e){e.preventDefault(),t.level_1_index=s}}},[n("span",{staticClass:"text"},[t._v(t._s(e.NAME))]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-right"}})],1)]):n("a",{attrs:{href:e.URL}},[t._v(t._s(e.NAME)+" ")])])})),0):t._e(),t._v(" "),t.level_2?n("div",{staticClass:"level second"},t._l(t.level_2,(function(e,s){return n("div",{key:"mb_ct_l2_"+s,staticClass:"item"},[e.CHILDREN&&e.CHILDREN.length>0?n("a",{on:{click:function(e){e.preventDefault(),t.level_2_index=s}}},[n("span",{staticClass:"text"},[t._v(t._s(e.NAME))]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-right"}})],1)]):n("a",{attrs:{href:e.URL}},[t._v(t._s(e.NAME))])])})),0):t._e(),t._v(" "),t.level_3?n("div",{staticClass:"level third"},t._l(t.level_3,(function(e,s){return n("div",{key:"mb_ct_l3_"+s,staticClass:"item"},[e.CHILDREN&&e.CHILDREN.length>0?n("a",{on:{click:function(e){e.preventDefault(),t.level_3_index=s}}},[n("span",{staticClass:"text"},[t._v(t._s(e.NAME))]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-right"}})],1)]):n("a",{attrs:{href:e.URL}},[t._v(t._s(e.NAME))])])})),0):t._e(),t._v(" "),t.level_4?n("div",{staticClass:"level fourth"},t._l(t.level_4,(function(e,s){return n("div",{key:"mb_ct_l4_"+s,staticClass:"item"},[n("a",{attrs:{href:e.URL}},[t._v(t._s(e.NAME))])])})),0):t._e()])}),[],!1,null,null,null).exports,Search:oa},data:function(){return{items:[{name:"ÐоÑÑавка и ÑамовÑвоз",href:"/www/delivery.html"},{name:"ÐплаÑа",href:"/www/pay.html"},{name:"ÐонÑакÑÑ",href:"/www/contacts.html"},{name:"ÐаÑанÑÐ¸Ñ Ð¸ возвÑаÑ",href:"/www/waranty.html"},{name:"ÐилеÑÑÑво",href:"/www/diler_region.html"},{name:"ТендеÑÑ",href:"/www/tender.html"},{name:"Ркомпании",href:"/www/about_us.html"}],stage:0,stages:{default:0,city:1,catalog:2,search:3}}},computed:bd(bd(bd({},(0,r.Se)(["compareItems","compareCount","compareIsEmpty"])),(0,r.Se)(["locationOffice","locationCity","locationEmail","locationCitiesList"])),(0,r.Se)(["isXS","isSM","isMD"])),methods:bd(bd({},(0,r.nv)(["requestCitiesList"])),{},{setStage:function(t=0){if(!Object.values(this.stages).includes(t))return console.error(`Unexpected stage ${t}`),!1;t!==this.stages.city||this.locationCitiesList||this.requestCitiesList(),this.stage=t},onMobileCatalogClose:function(){const t=Object.values(this.stages)[0]||0;this.setStage(t)}
1,onAfterCityChange:function(){this.stage=0,this.$root.toggleHamburger()}})};const Od=(0,bn.Z)(Cd,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mobile-menu-mc"},[t.stage===t.stages.default?n("div",{staticClass:"stage main"},[n("div",{staticClass:"body"},[t.isMD?t._e():n("div",{staticClass:"item"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.setStage(t.stages.city)}}},[n("span",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-map-pin",width:"24",height:"24"}})],1),t._v(" "),n("span",{staticClass:"text"},[t._v("ÐоÑод: "+t._s(t.locationCity.CITY_NAME))]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-right"}})],1)])]),t._v(" "),t.isMD?t._e():n("div",{staticClass:"item"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.setStage(t.stages.search)}}},[n("span",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-search",width:"24",height:"24"}})],1),t._v(" "),n("span",{staticClass:"text"},[t._v("ÐоиÑк")]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-right"}})],1)])]),t._v(" "),t.isMD||t.compareIsEmpty?t._e():n("form",{staticClass:"item",attrs:{action:"/products/compare.php"},on:{click:function(t){t.stopPropagation()}}},[t._l(t.compareItems,(function(t){return n("input",{key:"cmpr_"+t,staticClass:"d-none",attrs:{type:"hidden",name:"items[]"},domProps:{value:t}})})),t._v(" "),n("button",{staticClass:"menu-icon compare",class:{active:!t.compareIsEmpty},attrs:{type:"submit",disabled:t.compareIsEmpty}},[n("span",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-compare",width:"24",height:"24"}})],1),t._v(" "),n("span",{staticClass:"text"},[t._v("СÑавнение ("+t._s(t.compareCount)+")")]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-right"}})],1)])],2),t._v(" "),n("div",{staticClass:"item"},[n("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.setStage(t.stages.catalog)}}},[n("span",{staticClass:"icon"},[n("v-icon",{staticClass:"fo-icon",attrs:{name:"fo-ct-blocks",width:"24",height:"24"}})],1),t._v(" "),n("span",{staticClass:"text"},[t._v("ÐаÑалог ÑоваÑов")]),t._v(" "),n("span",{staticClass:"icon"},[n("fai",{attrs:{icon:"chevron-right"}})],1)])]),t._v(" "),t._l(t.items,(function(e,s){return n("div",{key:"mb_mn_itm_"+s,staticClass:"item"},[n("a",{attrs:{href:e.href}},[t._v(t._s(e.name))])])}))],2),t._v(" "),n("div",{staticClass:"footer"},[n("div",{staticClass:"phones"},[n("Phone",{staticClass:"location-phone-mc calltouch_phone_1",attrs:{limit:2}})],1),t._v(" "),n("div",{staticClass:"email"},[n("div",{staticClass:"icon mail"},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-mail",width:"20",height:"20"}})],1),t._v(" "),n("a",{staticClass:"email",attrs:{href:"mailto:"+t.locationEmail,itemprop:"email"}},[t._v(t._s(t.locationEmail))])])])]):t.stage===t.stages.city?n("div",{staticClass:"stage city-select"},[n("div",{staticClass:"select-city-mob-mc"},[n("div",{staticClass:"header"},[n("div",{staticClass:"bg"}),t._v(" "),n("a",{staticClass:"step-back",on:{click:function(e){t.stage=t.stages.default}}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-arrow-right",width:"20",height:"20"}})],1),t._v(" "),t._m(0)]),t._v(" "),n("SelectCity",{on:{change:t.onAfterCityChange}})],1)]):t.stage===t.stages.catalog?n("div",{staticClass:"stage catalog"},[n("CatalogMenu",{on:{"click-on-close":t.onMobileCatalogClose}})],1):t.stage===t.stages.search?n("div",{staticClass:"stage search"},[n("div",{staticClass:"search-mob-mc"},[n("div",{staticClass:"header"},[n("div",{staticClass:"bg"}),t._v(" "),n("a",{staticClass:"step-back",on:{click:function(e){t.stage=t.stages.default}}},[n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-arrow-right",width:"20",height:"20"}})],1),t._v(" "),t._m(1)]),t._v(" "),n("Search",{attrs:{"form-action-url":"/products/search/"}})],1)]):t._e()])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"text"},[n("span",[t._v("ÐÑÐ±Ð¾Ñ Ð³Ð¾Ñода")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"text"},[n("span",[t._v("ÐоиÑк")])])}],!1,null,null,null).exports;const wd={name:"CatalogMenuDropdownRight",props:{sections:{type:[Array,Object],required:!0}},components:{},data:function(){return{selected:null,mouseInDropdown:null}},computed:{columns:function(){return this.sections.map((({CHILDREN:t})=>{const e=Math.ceil(t.length/2);return[t.slice(0,e),t.slice(e)]}))}},methods:{select:function(t){this.selected=t},unselect:function(t){this.selected===t&&(this.selected=null),this.mouseInDropdown===t&&(this.mouseInDropdown=null)},delayedUnselect:function(t){setTimeout((()=>
1{if(this.mouseInDropdown===t)return!1;this.unselect(t)}),250)},findItem:function(t,e,n){return this.columns[t][e][n]},onTouchEnd:function(t){t.stopPropagation();const{target:e}=t;return"A"!==e.tagName||"link"!==e.dataset.type?(t.preventDefault(),this.selected=null,!1):4!=+e.dataset.level&&(3==+e.dataset.level?!!e.dataset.children&&(t.preventDefault(),this.select(this.findItem(+e.dataset.row,+e.dataset.col,+e.dataset.item)),!1):void 0)},onMouseEnterItem:function(t){this.select(t)},onMouseLeaveItem:function(t){if(!this.selected)return!1;this.delayedUnselect(t)},onMouseEnterDropdown:function(t){this.mouseInDropdown=t},onMouseLeaveDropdown:function(t){if(t!==this.mouseInDropdown)return!1;this.mouseInDropdown=null,this.unselect(t)}},mounted(){this.$el.addEventListener("touchend",this.onTouchEnd)},destroyed(){this.$el.removeEventListener("touchend",this.onTouchEnd)}},Ed=wd;const Pd={name:"CatalogMenuDropdown",props:["startData"],components:{DropdownRight:(0,bn.Z)(Ed,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dropdown-right-mc col",on:{click:function(t){t.stopPropagation()}}},t._l(t.sections,(function(e,s){return n("div",{key:"drr_"+s,staticClass:"row"},[s>0?n("div",{staticClass:"col-12"},[n("h2",[n("a",{attrs:{href:e.URL},domProps:{innerHTML:t._s(e.NAME)}})])]):t._e(),t._v(" "),t._l(t.columns[s],(function(e,r){return n("ul",{key:"drc_"+r,class:{col:!0,list:!0,right:2-r==1}},t._l(e,(function(e,i){return n("li",{key:"dri_"+i,staticClass:"item"},[n("a",{class:{boldname:!!e.UF_BOLDNAME_SECTION,active:t.selected===e},attrs:{href:e.URL,"data-type":"link","data-level":"3","data-row":s,"data-col":r,"data-item":i,"data-children":e.CHILDREN&&e.CHILDREN.length||""},on:{mouseenter:function(){return t.onMouseEnterItem(e)},mouseleave:function(){return t.onMouseLeaveItem(e)}}},[t._v("\n "+t._s(e.NAME)+"\n "),e.CHILDREN&&e.CHILDREN.length?n("span",{staticClass:"v"},[n("fai",{attrs:{icon:"angle-right",width:"16",height:"16",fill:"current-color"}})],1):t._e(),t._v(" "),e.CHILDREN&&e.CHILDREN.length&&t.selected===e?n("div",{staticClass:"dropdown-third",on:{mouseenter:function(){return t.onMouseEnterDropdown(e)},mouseleave:function(){return t.onMouseLeaveDropdown(e)}}},[n("ul",{staticClass:"list"},[n("li",{class:{item:!0,boldname:e.UF_BOLDNAME_SECTION}},[n("a",{attrs:{href:e.URL,"data-type":"link","data-level":"4"}},[t._v("\n "+t._s(e.NAME)+"\n ")])]),t._v(" "),t._l(e.CHILDREN,(function(e,s){return n("li",{key:"dr4_"+s,class:{item:!0,boldname:e.UF_BOLDNAME_SECTION}},[n("a",{attrs:{href:e.URL,"data-type":"link","data-level":"4"}},[t._v("\n "+t._s(e.NAME)+"\n ")])])}))],2)]):t._e()])])})),0)}))],2)})),0)}),[],!1,null,null,null).exports},data:function(){return{selected:null}},computed:{default:function(){return this.tree[0]},tree:function(){return[...this.startData.slice(0,14),{ID:999,NAME:"ÐÑоÑее",CODE:"other",URL:"#",CHILDREN:this.startData.slice(14)}]},current:function(){return this.selected||this.default},children:function(){return this.current.CHILDREN}},methods:{select:function(t){this.selected=t,this.$emit("selected-left",Array.isArray(this.current)?this.current[0]:this.current)},refresh:function(){setTimeout((()=>{this.selected=this.default,this.$emit("selected-left",Array.isArray(this.current)?this.current[0]:this.current)}),200)},onTouchEnd:function(t){t.stopPropagation();const{target:e}=t;"A"===e.tagName&&(t.preventDefault(),this.select(this.tree[e.dataset.index]))}},beforeMount(){this.refresh()},mounted(){this.$el.addEventListener("touchend",this.onTouchEnd)},destroyed(){this.$el.removeEventListener("touchend",this.onTouchEnd)}};function Sd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Id(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Sd(Object(n),!0).forEach((function(e){Td(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Td(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Dd={name:"CatalogMenu",components:{Dropdown:(0,bn.Z)(Pd,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"catalog-menu-dropdown-mc col-12",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"row with-seps"},[n("div",{staticClass:"col-md-3 col-lg-3 col-xl-3 categories-left"},[n("ul",{staticClass:"list"},t._l(t.tree,(function(e,s){return n("li",{key:"sep_cat_"+s,class:{item:!0,active:t.selected===e}},[Array.isArray(e)?n("a",{attrs:{href:e[0].URL,"data-index":s},on:{mouseenter:function(n){return t.select(e)}}},[t._v("\n "+t._s(e[0].NAME)+"\n ")]):n("a",{attrs:{href:e.URL,"data-index":s},on:{mouseenter:function(n){return t.select(e)}}},[t._v("\n "+t._s(e.NAME)+"\n ")])])})),0)]),t._v(" "),n("DropdownRight",{ref:"dropdown",staticClass:"categories-right",attrs:{sections:Array.isArray(t.current)?t.current:[t.current]}})],1)])}),[],!1,null,null,null).exports},props:{},data:function(){return{current:null,mouseInDropdown:!1}},computed:Id(Id(Id({},(0,r.Se)(["locationIsRussianSite"])),(0,r.Se)(["menuTreeDefaultType","menuTreeInnerType","menuTreeExpandType","menuIsCached","menuIsDefaultType"])),{},{tree:function(){return this.menuTreeExpandType},dropdown:function(){return!!this.current&&this.tree[this.current]}}),methods:Id({},(0,r.nv)(["menuSetStartData"])),beforeMount(){},mounted(){}};const Ad=(0,bn.Z)(Dd,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.tree?n("div",{staticClass:"catalog-menu-mc"},[t._e(),t._v(" "),n("div",{staticClass:"dropdown-line"},[n("div",{staticClass:"container"},[n("div",{staticClass:"row m-0"},[n("Dropdown",{ref:"dropdown",attrs:{"start-data":t.tree},on:{"selected-left":function(e){return t.$emit("selected-left",e)}}})],1)])])]):t._e()}),[],!1,null,null,null).exports;var kd=n(6669);function jd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ld(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jd(Object(n),!0).forEach((function(e){Rd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Md={name:"AddToCompare",props:{productId:{type:[Number,String],required:!0},name:{type:String},productData:{type:Object},text:{type:String,default:""},tooltip:{type:Boolean,default:!1},scale:{type:Number,default:2}},data:function(){return{loading:!1,dimensions:20*this.scale}},computed:Ld(Ld({},(0,r.Se)(["compareItems"])),{},{added:function(){return this.compareItems.includes(+this.productId)},getText:function(){return this.added?"Ðз ÑÑавнениÑ":"СÑавниÑÑ"}}),methods:Ld(Ld({},(0,r.nv)(["compareAdd","compareRemove"])),{},{click:async function(){let t;return this.loading=!0,await this.delay(),t=this.added?this.compareRemove(+this.productId):this.compareAdd(+this.productId),this.added?this.$emit("added"):this.$emit("removed"),this.loading=!1,!0},delay:function(t=500){return new Promise((function(e,n){setTimeout((function(){e()}),t)}))}})};const xd=(0,bn.Z)(Md,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"atc-btn-mc",class:{active:t.added},attrs:{id:"ttt-atc-"+t.uid},on:{click:function(e){return e.preventDefault(),t.click.apply(null,arguments)}}},[t.loading?t._e():n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-compare",width:10*t.scale,height:10*t.scale}}),t._v(" "),t.loading?n("fai",{staticStyle:{color:"#a8a8a8"},attrs:{icon:"spinner",size:t.scale+"x",spin:""}}):t._e(),t._v(" "),t.text?n("span",[t._v(" "+t._s(t.getText))]):t._e(),t._v(" "),t.tooltip&&!t.loading?n("b-tooltip",{attrs:{variant:"light",target:"ttt-atc-"+t.uid,triggers:"hover"}},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.added,expression:"added"}]},[t._v("Ðз ÑÑавнениÑ")]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.added,expression:"!added"}]},[t._v("Ð ÑÑавнениÑ")])]):t._e()],1)}),[],!1,null,null,null).exports;function Nd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Ud(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Nd(Object(n),!0).forEach((function(e){qd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Hd={name:"AddToFavourites",props:{productId:{type:[Number,String],required:!0},name:{type:String},productData:{type:Object},text:{type:String,default:""},tooltip:{type:Boolean,default:!1},scale:{type:Number,default:2}},data:function(){return{loading:!1}},computed:Ud(Ud({},(0,r.Se)(["userIsAuthorized","favouritesItems"])),{},{added:function(){return this.favouritesItems.order.includes(+this.productId)},getText:function(){return this.added?"Ðз избÑанного":"РизбÑанное"}}),methods:Ud(Ud({},(0,r.nv)(["favouritesAdd","favouritesRemove","favouritesAddUnauthorized","favouritesRemoveUnauthorized"])),{},{click:async function(){let t;return this.loading=!0,t=this.userIsAuthorized?await this.clickAuthorized():await this.clickUnauthorized(),this.loading=!1,this.added?this.$emit("added"):this.$emit("removed"),t},clickAuthorized:async function(){const t=new FormData;return t.append("id[]",String(this.productId)),this.added?await this.favouritesRemove(t):await this.favouritesAdd(t)},clickUnauthorized:async function(){return this.added?(await this.delay(),await this.favouritesRemoveUnauthorized(this.productId)):(await this.delay(),await this.favouritesAddUnauthorized(this.productId))},delay:function(t=500){return new Promise((function(e,n){setTimeout((function(){e()}),t)}))}})};const Fd=(0,bn.Z)(Hd,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"atf-btn-mc",class:{active:t.added},attrs:{id:"ttt-atf-"+t.uid},on:{click:function(e){return e.preventDefault(),t.click.apply(null,arguments)}}},[t.loading?t._e():n("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-heart",width:10*t.scale,height:10*t.scale}}),t._v(" "),t.loading?n("fai",{staticStyle:{color:"#a8a8a8"},attrs:{icon:"spinner",size:t.scale+"x",spin:""}}):t._e(),t._v(" "),t.text?n("span",[t._v(" "+t._s(t.getText))]):t._e(),t._v(" "),t.tooltip&&!t.loading?n("b-tooltip",{attrs:{variant:"light",target:"ttt-atf-"+t.uid,triggers:"hover"}},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.added,expression:"added"}]},[t._v("Ðз ÑÑавнениÑ")]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.added,expression:"!added"}]},[t._v("Ð ÑÑавнениÑ")])]):t._e()],1)}),[],!1,null,null,null).exports;function $d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Vd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$d(Object(n),!0).forEach((function(e){Bd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Gd={name:"BuyButton",props:{productId:{type:[Number,String],required:!0},value:{type:Number,default:0},color:{type:String,default:"blue"},short:{type:Boolean,default:!1},productData:{type:Object}
1,buyText:{type:String,default:"РкоÑзинÑ"},successText:{type:String,default:"Ð¢Ð¾Ð²Ð°Ñ Ð² коÑзине"},blockAddToCart:{type:Boolean,default:!1},blockApiRequests:{type:Boolean,default:!1}},data:function(){return{loading:!1,innerQuantity:1}},components:{QuantityField:On},computed:Vd(Vd({},(0,r.Se)(["cartProductsIds","cartClientCart"])),{},{quantityIsOut:function(){return!!this.value},inCart:function(){return void 0!==this.cartProductsIds&&this.cartProductsIds.includes(+this.productId)},quantity:{get:function(){return this.quantityIsOut?this.value:this.innerQuantity},set:function(t){this.innerQuantity=t,this.$emit("input",t)}}}),methods:Vd(Vd({},(0,r.nv)(["addProductToCart","cartGetListAction","cartInit"])),{},{click:async function(){if(this.blockAddToCart)return!1;this.loading=!0,this.$emit("before-add-to-cart",{id:this.productId,quantity:this.quantity}),await this.delay(100);try{0===Object.keys(this.cartClientCart).length&&this.cartProductsIds.length>0&&await this.cartInit();await this.addProductToCart({id:this.productId,quantity:this.quantity});this.$emit("after-add-to-cart",{id:this.productId,quantity:this.quantity})}catch(t){console.error(t)}this.loading=!1},showModalCart:function(){this.$emit("show-modal-cart")},delay:function(t){return new Promise((function(e,n){setTimeout((function(){e()}),t)}))}})};const Yd=(0,bn.Z)(Gd,(function(){var t,e=this,n=e.$createElement,s=e._self._c||n;return s("div",{staticClass:"buy-btn-mc",class:{"in-cart":e.inCart,short:e.short}},[s("div",{staticClass:"inner"},[e.inCart?s("a",{staticClass:"btn in-cart",class:(t={},t["btn-"+e.color]=!0,t),attrs:{href:"/personal/cart/"}},[e.short?s("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-cart",width:"20",height:"20"}}):s("span",[e._v(e._s(e.successText))])],1):s("b-button",{attrs:{variant:e.color,disabled:e.loading},on:{click:function(t){return t.preventDefault(),e.click.apply(null,arguments)}}},[e.loading?s("fai",{staticStyle:{width:"14px",height:"14px",color:"#a8a8a8"},attrs:{icon:"spinner",spin:""}}):e._e(),e._v(" "),e.short&&!e.loading?s("v-icon",{staticClass:"fo-icon stroke-only",attrs:{name:"fo-cart",width:"20",height:"20"}}):e.short?e._e():s("span",[e._v(e._s(e.buyText))])],1)],1)])}),[],!1,null,null,null).exports;function zd(t,e,n="/",s=1){const r=new Date;r.setDate(r.getDate()+ +s),document.cookie=`${t}=${e}; path=${n}; expires=${r.toUTCString()}`}function Zd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function Wd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zd(Object(n),!0).forEach((function(e){Kd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xd={name:"SberCredit",props:{startData:{type:Object,required:!0}},components:{DaDataAutocompleteField:Ys},data:function(){return{loading:!1,visible:!0,requisites:{inn:{name:"ÐÐÐ",type:"text",value:null,code:"inn",bxCode:"INN",required:!0,validated:!1,state:null,validation:{digits:[],min:[10],max:[12]},dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"party",minSymbols:3},lastInput:null},kpp:{name:"ÐÐÐ",type:"text",value:null,code:"kpp",bxCode:"KPP",required:!0,validated:!1,state:null,validation:{digits:[],min:[9],max:[9]}},name:{name:"Ðазвание компании",type:"text",value:null,code:"name",bxCode:"COMPANY_NAME",required:!0,validated:!1,state:null,dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"party",minSymbols:3},lastInput:null},accountNumber:{name:"РаÑÑÑеÑнÑй ÑÑеÑ",type:"text",value:null,code:"accountNumber",bxCode:"ACCOUNT",required:!0,validated:!1,state:null,validation:{accountNumber:[]}},bic:{name:"ÐÐÐ",type:"text",value:null,code:"bic",bxCode:"BIC",required:!0,validated:!1,state:null,validation:{digits:[],min:[9],max:[9]},dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"bank",minSymbols:1},lastInput:null},nameBank:{name:"Ðанк",type:"text",value:null,code:"nameBank",bxCode:"BANK_NAME",required:!0,validated:!1,state:null,dropdown:{expand:!1,content:null,timeout:500,loading:!1,method:"bank",minSymbols:3},lastInput:null},corrAccount:{name:"ÐоÑÑеÑпонденÑÑкий ÑÑеÑ",type:"text",value:null,code:"corrAccount",bxCode:"CORRESPONDENT_ACCOUNT",required:!0,validated:!1,state:null,validation:{digits:[],min:[20],max:[20]}}}}},computed:{widgetId:function(){return this.startData.widgetId},widgetKey:function(){return this.startData.widgetKey},widgetPartnerId:function(){return this.startData.widgetPartnerId},container:function(){return document.getElementById(this.startData.containerId)},props:function(){return this.startData.orderProps.properties},order:function(){return this.startData.order},vatRate:function(){return this.startData.vatRate||20},orderPropCodes:function(){return this.startData.orderPropCodes},isValid:function(){return!Object.values(this.requisites).filter((({value:t,validated:e,state:n,required:s})=>e&&!1===n)).length},isLoading:function(){return this.loading},isChanged:function(){return!!Object.values(this.requisites).filter((t=>this.getPropertyValue(this.orderPropCodes[t.bxCode])!==t.value)).length}},methods:Wd(Wd({},(0,r.nv)(["creditUpdateRequisites"])),{},{createLabel:Xn,setState:function(t){Kn(t),this.saveToLocalStorage(t.code,t.value)}
1,validate:function(){Object.values(this.requisites).forEach((t=>this.setState(t)))},onInput:function(t){this.setState(t),void 0!==t.lastInput&&(t.lastInput=Date.now(),void 0!==t.dropdown&&t.value&&t.value.length>=t.dropdown.minSymbols&&setTimeout((()=>{Date.now()-t.lastInput>=t.dropdown.timeout&&this.getSuggestions(t)}),t.dropdown.timeout))},onFocus:function(t){setTimeout(function(){void 0!==t.dropdown&&(t.dropdown.expand=!0)}.bind(this),200)},getSuggestions:async function(t){t.dropdown.loading=!0;try{const{companies:e}=await this.daDataGetSuggestions({method:t.dropdown.method,query:t.value});e&&e.length>0&&(t.dropdown.content=e.map((e=>Wd(Wd({},e),{},{selected:!1,method:t.dropdown.method}))),t.dropdown.expand=!0,t.dropdown.content[0].selected=!0),t.dropdown.loading=!1}catch(e){t.dropdown.loading=!1}},onArrowDown:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){let e,n=this.requisites[t].dropdown.content,s=n.length-1;n.forEach((function(t,n){t.selected&&(e=n,t.selected=!1)})),e===s?n[0].selected=!0:n[e+1].selected=!0}}.bind(this))},onArrowUp:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){let e,n=this.requisites[t].dropdown.content;n.forEach((function(t,n){t.selected&&(e=n,t.selected=!1)})),0===e?n[n.length-1].selected=!0:n[e-1].selected=!0}}.bind(this))},onEnter:function(){Object.keys(this.requisites).forEach(function(t){if(this.requisites[t].dropdown&&this.requisites[t].dropdown.expand){this.requisites[t].dropdown.content.forEach(function(t,e){t.selected&&this.onAutoComplete(t)}.bind(this))}}.bind(this))},closeDropdowns:function(){Object.keys(this.requisites).forEach(function(t){void 0!==this.requisites[t].dropdown&&(this.requisites[t].dropdown.expand=!1)}.bind(this))},onAutoComplete:function(t){"party"===t.method&&(this.requisites.name&&(this.requisites.name.value=t.value,this.setState(this.requisites.name)),this.requisites.inn&&t.data&&(this.requisites.inn.value=t.data.inn,this.setState(this.requisites.inn)),this.requisites.kpp&&t.data&&(this.requisites.kpp.value=t.data.kpp,this.setState(this.requisites.kpp))),"bank"===t.method&&(this.requisites.nameBank&&(this.requisites.nameBank.value=t.value,this.setState(this.requisites.nameBank)),this.requisites.bic&&t.data&&(this.requisites.bic.value=t.data.bic,this.setState(this.requisites.bic)),this.requisites.corrAccount&&t.data&&(this.requisites.corrAccount.value=t.data.correspondent_account,this.setState(this.requisites.corrAccount))),this.closeDropdowns()},getPropertyValue(t){if(!Object.values(this.orderPropCodes).includes(t))throw new Error(`Unexpected property ${t}`);return this.props.find((e=>e.CODE===t)).VALUE[0]||""},getValuesFromLocalStorage(){try{return JSON.parse(function(t){const e={};return document.cookie.split(";").forEach((function(t){t=t.trim().split("="),e[t[0]]=t[1]})),e[t]}("FOROFFICE_SBER_PAYMENT_VALUES"))}catch(t){return console.log(t),{}}},saveToLocalStorage(t,e){zd("FOROFFICE_SBER_PAYMENT_VALUES",JSON.stringify(Wd(Wd({},this.getValuesFromLocalStorage()),{},{[t]:e})))},clearLocalStorage(t){zd("FOROFFICE_SBER_PAYMENT_VALUES","{}")},getOrderData(){this.orderPropCodes;return{extDataId:this.order.EXT_DATA_ID,orderNumber:this.order.ACCOUNT_NUMBER,amount:this.order.PRICE.toString(),isPartPayment:!1,purpose:`ÐплаÑа заказа ${this.order.ACCOUNT_NUMBER} Ð¾Ñ ${this.order.DATE_INSERT}`,name:this.requisites.name.value,accountData:{accountNumber:this.requisites.accountNumber.value,inn:this.requisites.inn.value,kpp:this.requisites.kpp.value,corrAccount:this.requisites.corrAccount.value,bic:this.requisites.bic.value,nameBank:this.requisites.nameBank.value},vatData:{amount:Math.round(+this.order.PRICE/(100+this.vatRate)*this.vatRate).toString(),calcMethod:"INCLUDED",rate:this.vatRate}}},onSave:async function(){if(this.validate(),!this.isValid)throw new Error("ÐÑибка пÑи валидаÑии даннÑÑ
ÑоÑмÑ");try{this.loading=!0;const t=await this.creditUpdateRequisites({orderNumber:this.order.ACCOUNT_NUMBER,values:Object.values(this.requisites).map((t=>[this.orderPropCodes[t.bxCode],t.value]))});console.log(t.data),window.location.reload()}catch(t){console.log(t),console.log(t.response)}finally{this.loading=!1}},onSubmit:async function(){if(this.validate(),!this.isValid)throw new Error("ÐÑибка пÑи валидаÑии даннÑÑ
ÑоÑмÑ");this.clearLocalStorage(),this.visible=!1;const t={widgetId:this.widgetId,key:this.widgetKey,partnerId:this.widgetPartnerId,container:this.container,orderData:this.getOrderData()};
1SberWidgetsSDK.create(t),"function"==typeof ym&&ym_id&&ym(ym_id,"reachGoal","SBER_CREDIT_WIDGET_SHOWN")}}),mounted:function(){document.addEventListener("click",(()=>{this.closeDropdowns()})),document.addEventListener("keydown",(t=>{"ArrowDown"===t.key&&this.onArrowDown(),"ArrowUp"===t.key&&this.onArrowUp(),"Enter"===t.key&&this.onEnter()})),this.validate()},beforeMount:function(){const t=this.getValuesFromLocalStorage();this.requisites.name.value=t.name||this.getPropertyValue(this.orderPropCodes.COMPANY_NAME),this.requisites.accountNumber.value=t.accountNumber||this.getPropertyValue(this.orderPropCodes.ACCOUNT),this.requisites.inn.value=t.inn||this.getPropertyValue(this.orderPropCodes.INN),this.requisites.kpp.value=t.kpp||this.getPropertyValue(this.orderPropCodes.KPP),this.requisites.bic.value=t.bic||this.getPropertyValue(this.orderPropCodes.BIC),this.requisites.corrAccount.value=t.corrAccount||this.getPropertyValue(this.orderPropCodes.CORRESPONDENT_ACCOUNT),this.requisites.nameBank.value=t.nameBank||this.getPropertyValue(this.orderPropCodes.BANK_NAME)}};const Qd=(0,bn.Z)(Xd,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.visible?n("b-form",{staticClass:"sber-credit-mc uf-mc",on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[n("div",{staticClass:"col-12 mb-3"},[n("h2",[t._v("ÐодÑвеÑдиÑе ÑеквизиÑÑ Ð¾ÑганизаÑии")]),t._v(" "),n("p",[t._v("ÐаполниÑе вÑе Ð¿Ð¾Ð»Ñ Ð¸ пÑовеÑÑÑе иÑ
акÑÑалÑноÑÑÑ")])]),t._v(" "),t._l(t.requisites,(function(e,s){return"hidden"!==e.type?n("div",{key:"cnt_fld_"+s,staticClass:"col-12 col-md-6"},[e.dropdown?n("DaDataAutocompleteField",{attrs:{name:e.code,label:e.name,placeholder:e.placeholder,required:e.required,readonly:e.blocked,state:e.state,errorMsg:e.errorMsg,method:e.dropdown.method,timeout:e.dropdown.timeout,minSymbols:e.dropdown.minSymbols},on:{input:function(n){return t.setState(e)},autocomplete:t.onAutoComplete},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}):n("b-form-group",{staticClass:"uf-group",attrs:{validated:e.validated,state:e.state},scopedSlots:t._u([{key:"label",fn:function(){return[n("span",{domProps:{innerHTML:t._s(t.createLabel(e))}})]},proxy:!0}],null,!0)},[t._v(" "),n("b-form-input",{attrs:{type:e.type,name:"le_"+s,required:e.required,placeholder:e.placeholder,readonly:e.blocked,state:e.state},on:{input:function(n){return t.onInput(e)},focus:function(n){return n.stopPropagation(),t.onFocus(e)}},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}}),t._v(" "),e.errorMsg?n("b-form-invalid-feedback",[t._v("\n "+t._s(e.errorMsg)+"\n ")]):t._e()],1)],1):t._e()})),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-6 col-md-3"},[n("b-button",{attrs:{type:"button",variant:"info",disabled:t.isLoading||!t.isChanged,title:"СоÑ
ÑаниÑÑ Ð²Ð²ÐµÐ´ÐµÐ½Ð½Ñе даннÑе, ÑÑÐ¾Ð±Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½Ð¸ÑÑ Ð¿Ð¾Ð·Ð¶Ðµ"},on:{click:t.onSave}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticStyle:{width:"20px",height:"20px","margin-right":"10px"},attrs:{icon:"spinner",spin:""}}),t._v("\n СоÑ
ÑаниÑÑ\n ")],1)],1),t._v(" "),n("div",{staticClass:"col-6 col-md-3"},[n("b-button",{attrs:{type:"submit",variant:"primary",disabled:!t.isValid||t.isLoading,title:"ÐодÑвеÑдиÑÑ Ð´Ð°Ð½Ð½Ñе и пеÑейÑи к оÑоÑÐ¼Ð»ÐµÐ½Ð¸Ñ ÐºÑедиÑа"}},[n("fai",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticStyle:{width:"20px",height:"20px","margin-right":"10px"},attrs:{icon:"spinner",spin:""}}),t._v("\n ÐодÑвеÑдиÑÑ\n ")],1)],1)])])],2):n("p",{staticClass:"fs-1 mb-3"},[t._v("\n ЧÑÐ¾Ð±Ñ Ð¾ÑÑавиÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð½Ð° кÑÐµÐ´Ð¸Ñ Ð² банке-паÑÑнеÑе нажмиÑе на ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð¸Ð¶Ðµ\n ")])],1)}),[],!1,null,null,null).exports;function Jd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function tp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Jd(Object(n),!0).forEach((function(e){ep(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ep(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const np={name:"ToastsWrapper",props:{},data:function(){return{noAutoHide:!1,positionVariants:["top-right","bottom-right","bottom-left","top-left"]}},computed:tp(tp({},(0,r.Se)(["toastGetEntities"])),{},{position:function(){return this.positionVariants[0]},toasts:function(){return this.toastGetEntities}}),methods:tp({},(0,r.nv)(["toastAppend","toastHide"])),mounted(){}};var sp=(0,bn.Z)(np,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"default-toast-mc"},t._l(t.toasts,(function(e,s){return n("b-toast",{key:"toast-"+s,attrs:{id:"default-toast-"+s,variant:e.variant,toaster:"b-toaster-"+t.position,"no-auto-hide":t.noAutoHide,solid:"","no-close-button":""},scopedSlots:t._u([{key:"toast-title",fn:function(){return[n("span",{domProps:{innerHTML:t._s(e.title)}}),t._v(" "),n("button",{staticClass:"close ml-auto mb-1",attrs:{type:"button","aria-label":"Close"},on:{click:function(){return t.toastHide(s)}}},[t._v("\n Ã\n ")])]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(n){t.$set(e,"visible",n)},expression:"toast.visible"}},[t._v(" "),n("div",{staticClass:"message",domProps:{innerHTML:t._s(e.message)}})])})),1)}),[],!1,null,null,null);const rp=sp.exports;const ip={name:"Doge",props:{},components:{},data:function(){return{latency:3e3,visible:!1,show:!1}},computed:{},methods:{open:function(){this.show=!0,setTimeout((()=>this.visible=!0),500)},close:function(){this.visible=!1,setTimeout((()=>this.show=!1),500)},isShown:function(){return!!getCookies().FOROFFICE_DOGE_JOKE_SHOWN},setShown:function(t){const e=new Date;e.setHours(e.getHours()+1),document.cookie=`FOROFFICE_DOGE_JOKE_SHOWN=1; path=/; expires=${e.toUTCString()}`},handleTimeout:function(){this.isShown()||(this.open(),this.setShown(),setTimeout((()=>this.close()),1500))}},mounted(){_u((()=>this.handleTimeout()),this.latency)}};const ap=(0,bn.Z)(ip,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("div",{staticClass:"doge-mc"},[n("div",{staticClass:"slot",class:{visible:t.visible}},[n("div",{staticClass:"image",on:{click:t.close}},[n("img",{attrs:{src:"/img/doge.svg",alt:"ÐеÑелÑ"}})])])]):t._e()}),[],!1,null,null,null).exports;function op(){const t=document.querySelector("body > jdiv");if(!t)return!1;t.classList.add("d-none")}function cp(){const t=document.querySelector("body > jdiv");if(!t)return!1;t.classList.remove("d-none")}const lp={name:"YandexSmartCaptcha",props:{siteKey:{type:String,required:!0},containerId:{type:String,required:!0},invisible:{type:Boolean,default:!1}},data:function(){return{listeners:[],token:"",coreScriptId:"yandex-smart-captcha",__captchaId:null,__isCoreLoaded:!1}},computed:{captchaId:{get:function(){return this.$data.__captchaId},set:function(t){this.$data.__captchaId=t,t&&this.$emit("rendered",{})}},isCoreLoaded:{get:function(){return this.$data.__isCoreLoaded},set:function(t){this.$data.__isCoreLoaded=t,t&&this.$emit("coreLoaded",{})}},isRendered:function(){return null!==this.captchaId},isInvisible:function(){return!!this.invisible}},methods:{getToken:async function(){return this.token?Promise.resolve(this.token):(window.smartCaptcha.execute(this.captchaId),new Promise(((t,e)=>{const n=setInterval((()=>{if(!this.token)return"";clearInterval(n),t(this.token)}),100)})))},loadCore:function(){if(document.getElementById(this.coreScriptId)&&(this.__isCoreLoaded=!0),!this.isCoreLoaded)return new Promise(((t,e)=>{const n=document.createElement("script");n.id=this.coreScriptId,n.src="https://smartcaptcha.yandexcloud.net/captcha.js?render=onload",n.defer=!0,document.head.appendChild(n),n.onload=()=>{this.isCoreLoaded=!0,t()}}))},renderInvisibleCaptcha:async function(){this.captchaId=window.smartCaptcha.render(this.containerId,{sitekey:this.siteKey,invisible:this.isInvisible,hideShield:this.isInvisible,callback:t=>t})},renderCaptcha:async function(){const t=document.getElementById(this.containerId);if(!t)throw new Error(`Can't mount captcha to container #${this.containerId}`);t.classList.add("captcha-container"),this.captchaId=window.smartCaptcha.render(this.containerId,{sitekey:this.siteKey,callback:t=>t})},onTokenResponse:function(t){this.token=t,this.$emit("success",{token:t})},onTokenExpired:function(){this.token="",this.$emit("token-expired",{})},reset:function(){window.smartCaptcha.reset(this.captchaId),this.$emit("reset",{})}},async mounted(){await this.loadCore(),this.isInvisible?await this.renderInvisibleCaptcha():await this.renderCaptcha(),window.yandexSmartCaptcha=window.yandexSmartCaptcha||{},window.yandexSmartCaptcha[this.captchaId]=this,this.listeners.push(window.smartCaptcha.subscribe(this.captchaId,"success",(t=>this.onTokenResponse(t)))),this.listeners.push(window.smartCaptcha.subscribe(this.captchaId,"token-expired",(()=>this.onTokenExpired())))}
1,beforeDestroy(){this.listeners.forEach((t=>t()))}};const up=(0,bn.Z)(lp,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"captcha-container",attrs:{id:t.containerId}})}),[],!1,null,null,null).exports;function dp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function pp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dp(Object(n),!0).forEach((function(e){fp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fp(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}s.default.config.productionTip=!1,s.default.use(cn.Z),s.default.use(ln.ZP),s.default.use(dn.ZP),(0,pn.l7)("required",pp(pp({},fn.C1),{},{validate:t=>!!t,message:"ÐÑо поле обÑзаÑелÑное"})),(0,pn.l7)("phone_required",pp(pp({},fn.C1),{},{validate:t=>!!t&&(/^8/.test(t)||/^\+7/.test(t)),message:"ÐÑо поле обÑзаÑелÑное"})),(0,pn.l7)("email",pp(pp({},fn.Do),{},{message:"Email не коÑÑекÑен"})),(0,pn.l7)("min",pp(pp({},fn.VV),{},{validate(t,e){return this.message=`ÐинималÑÐ½Ð°Ñ Ð´Ð»Ð¸Ð½Ð° - ${e.length} Ñимволов`,String(t).length>=e.length}})),(0,pn.l7)("phone",{validate:t=>/(\+7|8) \(\d{3}\) \d{3}-\d{2}-\d{2}/.test(t),message:"ÐевеÑнÑй ÑоÑÐ¼Ð°Ñ Ð½Ð¾Ð¼ÐµÑа ÑелеÑона"}),(0,pn.l7)("password",{params:["target"],validate:(t,{target:e})=>t===e,message:"ÐаÑоли не ÑовпадаÑÑ"}),(0,pn.l7)("pass_symbols",{validate:t=>/(?=.*[0-9])(?=.*[!@#$%^&*\-_])(?=.*[a-z])(?=.*[A-Z])[0-9a-zA-Z!@#$%^&*\-_]{6,}/g.test(t),message:"СÑÑока должна ÑодеÑжаÑÑ ÑиÑло, ÑпеÑÑимвол, лаÑинÑкÑÑ Ð±ÑÐºÐ²Ñ Ð² веÑÑ
нем и нижнем ÑегиÑÑÑаÑ
"}),s.default.component("splide",kd.tv),s.default.component("splide-slide",kd.jw),s.default.component("add-to-compare",xd),s.default.component("add-to-favourites",Fd),s.default.component("buy-button",Yd),s.default.component("quantity-field",On),s.default.component("content-item",zr),s.default.component("vendors-portal",Lu),s.default.component("y-market-shield",Uc),s.default.component("certificates-aside",ku),s.default.component("universal-form",vi),s.default.component("vue-recaptcha-v2",Hc),s.default.component("vue-recaptcha-v3",$c),s.default.component("recommends-block",ui),s.default.component("personal-feedback",mo),s.default.component("catalog-shields",Jl),s.default.component("catalog-element-kit",Xl),s.default.component("catalog-fast-buy",ru),s.default.component("catalog-element-price",au),s.default.component("login-registration",Da),s.default.component("pickup-point-del-company",Jc),s.default.component("catalog-add-products-to-tag",fu),s.default.component("catalog-modal-leasing-init",vu),s.default.component("content-page-rating",el),s.default.component("catalog-element-exclusive-offer",Ou),s.default.component("sber-credit",Qd),s.default.component("yandex-id",zn),s.default.component("yandex-smart-captcha",up),s.default.component("toasts-wrapper",rp),s.default.component("doge",ap),s.default.filter("printPrice",wn),s.default.filter("capitalize",(function(t){let e=String(t).split("");return e[0]=e[0].toUpperCase(),e.join("")})),new s.default({el:"#app",store:ue,components:{"cart-controller":or,"select-city":pr,"select-city-row":_r,"foroffice-phone":Ds,"foroffice-address":Or,"foroffice-email":Sr,"working-time-office":kr,"access-select-search-form":qr,"modal
1-form":gi,"fast-buy":Ci,"catalog-search-page":fa,"cool-light-box":un.Z,"personal-area":So,"professional-service":Do,"product-card":Br,"content-slider":jo,"actions-list":Fo,"news-list":No,"actions-detail":Xo,"news-detail":Yo,"brands-list-nav":nc,"foroffice-showroom":ac,"certificate-card":dc,"vacancies-list":hc,"delivery-form":yc,"modal-cart":Zc,"header-personal":fd,"mobile-menu":Od,"catalog-menu":Ad,"catalog-section":qu,"catalog-section-ajax":Wu,"catalog-products":Qi,"catalog-tags":Tu,"catalog-controls":ji,"catalog-filter-controller":Pl,"catalog-pagination":qi,"catalog-compare":nd,"catalog-search-field":oa,"alfa-leasing-form":cd,"catalog-element-images":Pc,"catalog-element-accessories":kl,"catalog-element-pay":Rl,"catalog-element-del":ql,"catalog-element-pickup-points":Bl,"catalog-element-feedback":xc,"items-slider":Jr,"any-query-provider":ol},data:{lbImages:[],lbIndex:null,topSectionDescriptionOpen:!1,loaded:!1,email:null,dropdown:null,hamburgerOpen__:!1,ce:{quantity:1,tabIndex:0,charDescOpened:null},faq:{tabIndex:0,currentItem:null,sectionsOpen:!1},brandsList:{tabIndex:null},brandDetail:{opened:null},cert:{index:0,number:1,count:0},fbSlider:{index:0,number:1,count:5},ps_slider:{index:0},del:{tabIndexCountry:0,tabIndexDelType:0,loading:!1},catalogMenu:{showOldMenuLine:!1,expand:!1,current:{}},cookieAcceptation:{show:!0},bannerOpened:!1,ecommerceProductList:[],RR:O,Ecommerce:y,document,YANDEX_ID_CLIENT_ID:"",PROCESSING_CONSENT:{CHECKBOX_LABEL_HTML:"",CHECKBOX_LABEL_TEXT:"",PARTNER_AUTH_HTML:"",PARTNER_AUTH_TEXT:""},MARKETING_CONSENT:{CHECKBOX_LABEL_HTML:"",CHECKBOX_LABEL_TEXT:"",PARTNER_AUTH_HTML:"",PARTNER_AUTH_TEXT:""}},computed:pp(pp(pp(pp(pp(pp(pp(pp(pp(pp({},(0,r.rn)(["modals"])),(0,r.Se)(["isXL","isLG","isMD","isSM","isXS"])),(0,r.Se)(["userIsAuthorized","userIsAdmin","userIsManager","userIsContentManager"])),(0,r.Se)(["cartIsEmpty","cartCount","cartProductsIds","cartFullCart"])),(0,r.Se)(["compareIsEmpty","compareCount","compareItems"])),(0,r.Se)(["favouritesIsEmpty","favouritesCount"])),(0,r.Se)(["locationId","locationOffice","locationCity","locationEmail","locationIsMoscow","locationIsMoscowRegion","locationIsSPB","locationIsSPBRegion","locationIsNN","locationIsNNRegion","locationIsKzn","locationIsKznRegion","locationIsOtherRegion","locationIsRealFilial","locationPickupPoints","locationIsRU","locationIsKZ"])),(0,r.Se)(["systemCompanyAge"])),(0,r.Se)(["catalogInitiated","catalogControls","catalogOrders","catalogTotal","catalogHasActiveFilters","catalogProductsUndefined","catalogLoading","catalogAdditionalCacheId"])),{},{hamburgerOpen:{get:function(){return this.hamburgerOpen__},set:function(t){this.hamburgerOpen__=t,t?op():cp()}},mobileMenu:function(){return this.$refs["mobile-menu"]}}),methods:pp(pp(pp(pp(pp(pp(pp({},(0,r.nv)(["systemSetScreenWidthHandler","systemUpdateServerTime"])),(0,r.nv)(["catalogSetControls","catalogRequestProducts"])),(0,r.nv)(["cartUpdateClientCart","cartSetDeliveryList","cartSetPayList","cartSetDel2Pay"])),(0,r.nv)(["openModalForm","closeModalForm","openModalCart","closeModalCart"])),(0,r.nv)(["locationDirectCitySelect","locationShowCitySelect"])),(0,r.nv)(["compareOnStorage"])),{},{toggleOldMenu:function(){this.catalogMenu.showOldMenuLine=!this.catalogMenu.showOldMenuLine},toggleCatalogMenu:function(){this.catalogMenu.expand||scrollTo(0,0),this.catalogMenu.expand=!this.catalogMenu.expand},onSelectMenuItem:function(t){this.catalogMenu.current=t},toggleDropdown:function(t){return"favourites"===t||"compare"===t||t===this.dropdown||"cart"===t&&this.cartIsEmpty?this.dropdown=null:this.dropdown=t},toggleHamburger:function(){if(this.hamburgerOpen||scrollTo(0,0),this.hamburgerOpen)return this.hamburgerOpen=!1;this.mobileMenu.setStage(this.mobileMenu.stages.default),this.hamburgerOpen=!0},openCatalogMobile:function(){this.hamburgerOpen=!0,scrollTo(0,0),this.mobileMenu.setStage(this.mobileMenu.stages.catalog)},openSearchMobile:function(){this.hamburgerOpen=!0,scrollTo(0,0),this.mobileMenu.setStage(this.mobileMenu.stages.search)},openCitySelectMobile:function(){this.hamburgerOpen=!0,scrollTo(0,0),this.mobileMenu.setStage(this.mobileMenu.stages.city)},toggleClass:function(t,e="expand"){const n=document.querySelector(t);return!!n&&(n.classList.toggle(e),!0)},onPsSliderMoved:function(t,e,n,s){this.ps_slider.index=e},onFastBuyPageChanged:function(t){if(this.catalogControls.fb.page===t)return!1;let e=window.location.origin+window.location.pathname;const n=["sect"],s=[];return window.location.search.replace("?","").split("&").forEach((function(t){const e=t.split("=");n.includes(e[0])&&s.push([e[0],e[1]])})),t>1&&s.push(["PAGEN_1",t]),s.length>0?window.location.href=e+"?"+s.map((t=>t.join("="))).join("&"):window.location.href=e},skuCopyHandler:function(t){const e=t.target;e.innerText=e.innerText.trim();const n=document.createRange();n.selectNode(e);const s=window.getSelection();s.removeAllRanges(),s.addRange(n);try{document.execCommand("copy"),s.removeAllRanges(),e.classList.add("copied"),setTimeout((function(){e.classList.remove("copied")}),1e3)}catch(t){console.error("Can`t copy")}},onAfterCityChange:function(){this.modals.selectCity.show=!1,this.locationIsMoscow||this.locationIsMoscowRegion?this.del.tabIndexCountry=0:this.locationIsRU?this.del.tabIndexCountry=1:this.locationIsKZ?this.del.tabIndexCountry=2:this.del.tabIndexCountry=3},onBeforeAddToCart:function(t){},onAfterAddToCart:function(t){},retailRocketOnAfterAddToCart:function(t,e){return this.RR.recomAddToCart(t.id,e)},retailRocketOnFollow:function(t,e){},ecommerceOnAfterAddToCart:function(t){return this.Ecommerce.createOperation(t)},ecommerceOnBeforeFollow:function(t){return this.Ecommerce.followProduct(t)},ecommerceOnUpdateProductList:function(t){const e=t.filter((t=>!this.ecommerceProductList.includes(+t.id)));return!!e.length&&(this.ecommerceProductList=[...this.ecommerceProductList,...e.map((t=>+t.id))],this.Ecommerce.showProductList(e))},openTopAlert:function(t=""){this.bannerOpened=!0,document.cookie=`FOROFFICE_SM_TOP_ALERT_${t}_CLOSED=0; path=/; expires=${new Date(Date.now()-864e5).toUTCString()}`},closeTopAlert:function(t=""){this.bannerOpened=!1,document.cookie=`FOROFFICE_SM_TOP_ALERT_${t}_CLOSED=1; path=/; expires=${new Date(Date.now()+2592e6).toUTCString()}`},scrollTo:function(t){const e=document.querySelector(t);if(!e)return!1;const n=Math.round(document.querySelector("header").getBoundingClientRect().height),s=e.offsetHeight,r=e.getBoundingClientRect().top-s-n;window.scrollBy({top:r,behavior:"smooth"})},onBeforeCertSliderMoved:function(t,e,n,s){e!==this.cert.index&&(this.cert.index=e,this.cert.number=e+1)},onBeforeFbSliderMoved:function(t,e,n,s){e!==this.fbSlider.index&&(this.fbSlider.index=e,this.fbSlider.number=e+1)},onClick:function(){this.brandDetail.opened=null,this.dropdown=null,this.ce.charDescOpened=null},ymReachGoal:function(t){return P.reachGoal(t)},arenzaWidgetInit:function(t,e,n){return!!window.ArenzaPartnerWidget&&window.ArenzaPartnerWidget.init({token:t,amount:e,orderItems:n})},feraWidgetInit:function(){return!1},catalogShowMore:function(t){const e=this.catalogControls[t];return this.catalogSetControls({[t]:{limitMultiplier:e.limitMultiplier+1}})},acceptCookies:function(){this.cookieAcceptation.show=!1,document.cookie=`FOROFFICE_SM_COOKIES_ACCEPTED=1; path=/; expires=${new Date(Date.now()+31536e6).toUTCString()}`},showJivoSiteWidget:cp,hideJivoSiteWidget:op,handleCitySelectClick:function(){this.isXS||this.isSM?this.openCitySelectMobile():this.locationShowCitySelect()}}),beforeCreate:function(){window.ym_id=105811;const t=[/api-maps\.yandex\.ru/],e=document.querySelectorAll("#app script"),n=document.querySelector("#app"),s=document.querySelector("#scripts-from-app");e.forEach((function(e){for(let n of t)if(e.src&&n.test(e.src))return;s.appendChild(e)})),n.parentElement.insertBefore(s,n.nextElementSibling)},beforeMount:function(){window.getModalState=()=>pp({}
1,this.modals),window.openModalForm=t=>this.openModalForm(t),window.setLightboxImages=t=>this.lbImages=t,document.dispatchEvent(new CustomEvent("VueRootBeforeMount",{detail:this})),this.systemSetScreenWidthHandler()},mounted:function(){window.addEventListener("storage",this.compareOnStorage),this.locationIsKZ?this.del.tabIndexCountry=3:this.locationIsMoscow||this.locationIsMoscowRegion||(this.del.tabIndexCountry=1),document.querySelectorAll("#service-form-show").forEach((t=>{t.addEventListener("click",(()=>{P.reachGoal("servis_order"),this.openModalForm({code:"SERVICE_REQUEST_NEW",title:"ÐаÑвка на диагноÑÑÐ¸ÐºÑ Ð¸ ÑÐµÐ¼Ð¾Ð½Ñ Ð¾Ð±Ð¾ÑÑдованиÑ"})}))})),document.dispatchEvent(new CustomEvent("VueRootMounted",{detail:this})),document.querySelector(".catalog-element-page")&&(document.querySelectorAll("#more_info .description-mc img").forEach((t=>{t.style.cursor="pointer",t.addEventListener("click",(e=>{this.lbImages=[t.src],this.lbIndex=0}))})),document.querySelectorAll("#more_info .description-mc table").forEach((t=>{t.classList.contains("table")||t.classList.add("table"),["cellspacing","cellpadding","border","align"].forEach((e=>{t.removeAttribute(e)}))}))),["tg","vk"].forEach((t=>{const e=this.$refs[`share-${t}`];if(!e)return!1;e.href=e.dataset.href,e.dataset.href=""})),this.loaded=!0}}),document.addEventListener("DOMContentLoaded",(function(){n(6948)}))},1982:()=>{}},n={};function s(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=e,t=[],s.O=(e,n,r,i)=>{if(!n){var a=1/0;for(u=0;u<t.length;u++){for(var[n,r,i]=t[u],o=!0,c=0;c<n.length;c++)(!1&i||a>=i)&&Object.keys(s.O).every((t=>s.O[t](n[c])))?n.splice(c--,1):(o=!1,i<a&&(a=i));if(o){t.splice(u--,1);var l=r();void 0!==l&&(e=l)}}return e}i=i||0;for(var u=t.length;u>0&&t[u-1][2]>i;u--)t[u]=t[u-1];t[u]=[n,r,i]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),s.j=348,(()=>{var t={348:0};s.O.j=e=>0===t[e];var e=(e,n)=>{var r,i,[a,o,c]=n,l=0;if(a.some((e=>0!==t[e]))){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(c)var u=c(s)}for(e&&e(n);l<a.length;l++)i=a[l],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return s.O(u)},n=self.webpackChunkassets=self.webpackChunkassets||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var r=s.O(void 0,[736],(()=>s(412)));r=s.O(r)})();
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.