{"bm-accordion":{"stylesheet":":host{display:block}.--disabled{opacity:0!important;left:0!important;top:0!important;padding:0!important;margin:0!important;position:fixed!important;pointer-events:none!important;height:auto!important}ul{max-width:760px;position:relative;border-top:1px solid var(--color-separator-line);margin:0 auto;padding:0}ul li{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--color-separator-line)}ul li .expander{position:relative;padding:40px 40px 40px 0;font:var(--font-cat-title);color:var(--color-default);text-transform:uppercase;cursor:pointer}ul li .expander::after{content:\"\";display:inline-block;position:absolute;right:0;top:44px;width:20px;height:20px;background:transparent var(--ico-filter-expander) center center no-repeat;transform:rotate(90deg);transition:transform var(--duration-expand) ease}ul li[expanded] .expander::after{transform:rotate(-90deg)}ul li .content{font:var(--font-texts);padding-bottom:0;overflow:hidden;height:0;transition:all var(--duration-expand) ease}ul li[expanded] .content{padding-bottom:40px}@media screen and (max-width:747px){ul li .expander{padding:20px 40px 20px 0}ul li .expander::after{top:18px}ul li[expanded] .content{padding-bottom:20px}}","template":"<ul></ul>","code":"class bmAccordionElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.render(),window.addEventListener(\"fonts:ready\",(e=>this.calculateBlocks()),{once:!0}),bmSite.fontReady&&this.calculateBlocks(),this._expandedObserver=new MutationObserver(((e,t)=>this.setExpandedByObserve(e))),this._expandedObserver.observe(this._shadow.$q(\"ul\"),{childList:!0,subtree:!0,attributes:!0})}attributeChangedCallback(e,t,i){e.toLowerCase()}render(){this._shadow.$q(\"ul\").innerHTML=\"\",Array.from(this.children).forEach((e=>{let t=$c(\"li\"),i=$c(\"div\"),a=$c(\"div\");e.hasAttribute(\"expanded\")&&t.toggleAttribute(\"exp\",1),i.classList.add(\"expander\"),i.textContent=e.getAttribute(\"caption\"),a.classList.add(\"content\"),a.innerHTML=e.innerHTML,t.appendChild(i),t.appendChild(a),this._shadow.$q(\"ul\").appendChild(t),i.addEventListener(\"click\",(e=>{!this.hasAttribute(\"multiple\")&&this._shadow.$q(\"li[expanded]\")&&this._shadow.$q(\"li[expanded]\").removeAttribute(\"expanded\"),e.target.closest(\"li\").toggleAttribute(\"expanded\")}))}))}async calculateBlocks(){let e=this._shadow.$a(\"li .content\");e.forEach((e=>{let t=e.cloneNode(!0),i=e.getBoundingClientRect();t.classList.add(\"--disabled\"),t.style.width=`${i.width}px`,e.parentNode.appendChild(t)})),await bmSite.pause(1),e.forEach((e=>{let t=e.parentNode.$q(\".--disabled\"),i=t.getBoundingClientRect();e.closest(\"li\").setAttribute(\"h\",`${i.height}px`),t.remove()}));let t=this._shadow.$q(\"li[exp]\");t&&(t.removeAttribute(\"exp\"),t.toggleAttribute(\"expanded\",1))}setExpandedByObserve(e){for(let t=0;t<e.length;t++)if(\"attributes\"==e[t].type&&\"li\"==e[t].target.tagName.toLowerCase()&&\"expanded\"==e[t].attributeName){let i=e[t].target.getAttribute(\"expanded\");e[t].target.$q(\".content\").style.height=null==i?\"\":e[t].target.getAttribute(\"h\")}}}Object.defineProperty(bmAccordionElement,\"observedAttributes\",{get:()=>[]});"},"bm-alphabet":{"stylesheet":".table-of-contents{margin:40px 0;text-align:center;font:var(--font-alphabet-table);color:var(--color-default)}.table-of-contents>span{cursor:pointer;display:inline-block;margin:0 8px;text-transform:uppercase}.table-of-contents>span.disabled{cursor:default;color:var(--color-disabled)}.block{display:flex;align-items:flex-start;justify-content:flex-start;padding:30px 0;border-top:1px solid var(--color-separator-line)}.block .title{font:var(--font-header-base);color:var(--color-default);width:200px;text-transform:uppercase}.block ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;font:var(--font-alphabet-item);line-height:1em}.block ul li{width:300px;padding:.3em 0}.block ul a{color:inherit;text-decoration:none;white-space:normal}.block ul a[disabled]{color:var(--color-item-disabled)}.block ul a[suffix]::after{content:attr(suffix);display:inline-block;padding-left:4px;font-size:.75em;font-style:normal;font-weight:500;white-space:nowrap;transform:scale(.9,1);transform-origin:left center;color:var(--color-item-disabled)}.block ul a:hover{color:var(--color-hover-link)}.block ul a[disabled]:hover{color:var(--color-disabled)}.block ul li[preloader]{background:transparent var(--preloader) left center no-repeat;background-size:18px}.block ul li[preloader] a{visibility:hidden}@media screen and (max-width:1130px){.block ul li{width:220px}}@media screen and (max-width:747px){.table-of-contents>span{margin:0 5px}.block{flex-direction:column}.block ul{width:100%}.block{padding:20px 0}.block ul li{width:50%}}","template":"","code":"class bmAlphabetElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.groups={},this.keys={},this.list=[]}connectedCallback(){this.parseGroups(),this.$a(\"a\").forEach((t=>{let e=t.textContent.charAt(0).toLowerCase();void 0!==this.keys[e]&&(e=this.keys[e]),void 0===this.groups[e]&&(this.groups[e]=[]),this.groups[e].push(t)}));for(let t=97;t<=122;t++)this.groups[String.fromCharCode(t)]||this.keys[String.fromCharCode(t)]||(this.groups[String.fromCharCode(t)]=[]);for(let t in this.groups)this.groups[t].sort(((t,e)=>t.textContent.toLowerCase()<e.textContent.toLowerCase()?-1:t.textContent.toLowerCase()>e.textContent.toLowerCase()?1:0)),this.list.push({title:t,items:this.groups[t]});this.list.sort(((t,e)=>t.title<e.title?-1:t.title>e.title?1:0));let t=$c(\"div\");t.classList.add(\"table-of-contents\"),this._shadow.appendChild(t);let e=1;this.list.forEach((s=>{let i=$c(\"span\");if(i.setAttribute(\"key\",e),i.textContent=s.title,t.appendChild(i),i.addEventListener(\"click\",(t=>{if(t.target.classList.contains(\"disabled\"))return!1;let e=t.target.getAttribute(\"key\"),s=this._shadow.$q(`.block[key=\"${e}\"]`);if(!s)return!1;bmSite.scrollTo(window.currentScrollY+s.getBoundingClientRect().top-100)})),s.items.length){let t=$c(\"div\");t.setAttribute(\"key\",e++),t.classList.add(\"block\"),t.innerHTML=`<span class='title'>${s.title}</span><ul></ul>`,s.items.forEach((e=>{let s=$c(\"li\");s.appendChild(e.cloneNode(!0)),this.hasAttribute(\"manageable\")&&s.addEventListener(\"click\",(t=>{t.preventDefault();let e=s.$q(\"a\").hasAttribute(\"disabled\");return bmSite.confirm(`<div>${e?\"Раз\":\"За\"}блокировать бренд?<strong style=\"display: block; padding: 10px 0; text-align: center; font-size: 1.15em;\">${s.innerText.replace(/^(.*)\\s\\d+$/,\"$1\")}</strong></div>`).then((t=>{this.dispatcher.api.post(\"brands:activity\",{brand:{id:s.$q(\"a\").getAttribute(\"bm-id\"),href:s.$q(\"a\").getAttribute(\"href\"),text:s.innerText},disabled:e},{preloader:s}).then((t=>{s.$q(\"a\").toggleAttribute(\"disabled\",t.disabled),s.$q(\"a\").setAttribute(\"suffix\",t.message||null),this.resizeCallback()}))})).catch((t=>{})),!1})),t.$q(\"ul\").appendChild(s)})),this._shadow.appendChild(t)}else i.classList.add(\"disabled\")})),this.resizeCallback(),window.addEventListener(\"fonts:ready\",(()=>this.resizeCallback()),{once:!0}),window.addEventListener(\"resize\",(()=>this.resizeCallback()))}resizeCallback(){let t=this._shadow.$a(\".block ul\"),e=3;window.innerWidth<930&&(e=2),t.forEach((t=>{let s=0,i=(t.$a(\"li\").forEach((t=>{s+=t.offsetHeight})),19+Math.ceil(s/e));t.style.height=`${i}px`}))}attributeChangedCallback(t,e,s){t.toLowerCase()}parseGroups(){if(this.hasAttribute(\"groups\")){this.getAttribute(\"groups\").split(\";\").forEach((t=>{let[e,s]=t.split(\":\");if(!s)return!1;Array.from(s).forEach((t=>this.keys[t.toLowerCase()]=e))}))}}}Object.defineProperty(bmAlphabetElement,\"observedAttributes\",{get:()=>[]});"},"bm-attacher":{"stylesheet":":host{position:relative;display:block;width:100%}:host([disabled]){pointer-events:none!important}div[button]{display:inline-block;position:relative}:host([selected]) div[button] button,:host([selected]) div[button] input{visibility:hidden;pointer-events:none}div[button]>input{position:absolute;left:0;top:0;width:100%;height:100%;cursor:pointer;opacity:0}div[button] button{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}div[button] button svg{vertical-align:middle;margin-right:10px}div[button] .hint{font:var(--font-breadscrumbs);font-weight:400;display:block;margin-top:8px}div[button] .hint:empty{display:none}ul.files{position:absolute;left:0;top:0;width:100%;height:100%;list-style:none;margin:20px 0 0 0;padding:0}ul.files:empty{display:none}ul.files li{display:flex;align-items:center;justify-content:flex-start;font:var(--font-default);font-weight:500;color:var(--color-input-border-focus);position:relative;width:100%}ul.files li>span{overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 80px);min-height:16px;white-space:nowrap}ul.files li>em{font-style:normal;overflow:hidden;text-overflow:ellipsis;max-width:40px}ul.files li>.-remove{position:relative;width:18px;height:18px;background:transparent url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNSAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMS44ODI5NiA1LjEyMzI1TDIuNjYwMiAxNS41MzE3QzIuNzYzODMgMTYuOTE1NSAzLjkzMzA3IDE4IDUuMzIzMDkgMThIMTAuMzM1N0MxMS43MjU3IDE4IDEyLjg5NSAxNi45MTU1IDEyLjk5ODYgMTUuNTMxN0wxMy43NzU5IDUuMTIzMjVDMTQuMTU2NiA1LjEwMDc1IDE0LjUwOCA0LjkwNzI1IDE0LjcyNjYgNC41OTIyNUMxNC45NTg2IDQuMjU3IDE1LjAxMDQgMy44Mjk1IDE0Ljg2NCAzLjQ0OTI1TDE0LjcwMTggMy4wMjRDMTQuNTE5MyAyLjU0NyAxNC4wNTUyIDIuMjI1MjUgMTMuNTQzOCAyLjIyNTI1SDEwLjQ2NjRMMTAuMzYyOCAxLjM4Mzc1QzEwLjI2NTkgMC41OTQgOS41OTIyOCAwIDguNzk0NzcgMEg2Ljg2NDA2QzYuMDY4NzkgMCA1LjM5NTE5IDAuNTk0IDUuMjk2MDYgMS4zODM3NUw1LjE5MjQzIDIuMjI1MjVIMi4xMTUwMUMxLjYwMzYxIDIuMjI1MjUgMS4xMzcyNiAyLjU0NyAwLjk1NzAzMiAzLjAyNEwwLjc5NDgyNiAzLjQ0OTI1QzAuNjUwNjQyIDMuODI5NSAwLjcwMjQ1OCA0LjI1NyAwLjkzMjI1IDQuNTkyMjVDMS4xNTA3OCA0LjkwNzI1IDEuNTAyMjMgNS4xMDA3NSAxLjg4Mjk2IDUuMTIzMjVaTTEyLjMyNSAxNS40OEMxMi4yNDg0IDE2LjUxNSAxMS4zNzQzIDE3LjMyNSAxMC4zMzU3IDE3LjMyNUg1LjMyMzA5QzQuMjg0NTIgMTcuMzI1IDMuNDEwNDEgMTYuNTE1IDMuMzMzODEgMTUuNDhMMi41NjEwOCA1LjEyNTVIMTMuMUwxMi4zMjczIDE1LjQ3NzdMMTIuMzI1IDE1LjQ4Wk01Ljk2NzQxIDEuNDY3QzYuMDIzNzQgMS4wMTQ3NSA2LjQwODk4IDAuNjc1IDYuODY0MDYgMC42NzVIOC43OTQ3N0M5LjI0OTg1IDAuNjc1IDkuNjM1MDkgMS4wMTQ3NSA5LjY5MTQxIDEuNDY3TDkuNzg2MDMgMi4yMjUyNUg1Ljg3NTA1TDUuOTY5NjcgMS40NjdINS45Njc0MVpNMS40MjU2MyAzLjY5TDEuNTg3ODQgMy4yNjQ3NUMxLjY3MTE5IDMuMDQ4NzUgMS44ODI5NiAyLjkwMjUgMi4xMTUwMSAyLjkwMjVIMTMuNTQ2MUMxMy43NzgxIDIuOTAyNSAxMy45ODk5IDMuMDQ4NzUgMTQuMDczMiAzLjI2NDc1TDE0LjIzNTQgMy42OUMxNC4zMDMgMy44NjU1IDE0LjI3ODMgNC4wNTQ1IDE0LjE3MjQgNC4yMDk3NUMxNC4wNjY1IDQuMzY1IDEzLjg5NzUgNC40NTI3NSAxMy43MDgzIDQuNDUyNzVIMS45NTI4QzEuNzY1ODEgNC40NTI3NSAxLjU5Njg1IDQuMzY1IDEuNDg4NzEgNC4yMDk3NUMxLjM4MjgyIDQuMDU0NSAxLjM1ODA0IDMuODY1NSAxLjQyNTYzIDMuNjlaIiBmaWxsPSIjRTI1RjQxIi8+PHBhdGggZD0iTTUuNDA4NzEgMTUuNzAyOEM1LjQwODcxIDE1LjcwMjggNS40MTc3MiAxNS43MDI4IDUuNDIyMjMgMTUuNzAyOEM1LjYwOTIxIDE1LjY5NjEgNS43NTM0IDE1LjUzODYgNS43NDY2NCAxNS4zNTQxTDUuNDM4IDcuMDc2M0M1LjQzMTI0IDYuODg5NTUgNS4yNzU3OSA2Ljc0NzggNS4wODg4IDYuNzUyM0M0LjkwMTgxIDYuNzU5MDUgNC43NTc2MyA2LjkxNjU1IDQuNzY0MzkgNy4xMDEwNUw1LjA3MzAzIDE1LjM3ODhDNS4wNzk3OSAxNS41NjExIDUuMjMwNzMgMTUuNzAyOCA1LjQxMDk2IDE1LjcwMjhINS40MDg3MVoiIGZpbGw9IiNFMjVGNDEiLz48cGF0aCBkPSJNNy44MzA2MSAxNS43MDI4QzguMDE3NTkgMTUuNzAyOCA4LjE2ODU0IDE1LjU1MiA4LjE2ODU0IDE1LjM2NTJWNy4wODc1QzguMTY4NTQgNi45MDA3NSA4LjAxNzU5IDYuNzUgNy44MzA2MSA2Ljc1QzcuNjQzNjIgNi43NSA3LjQ5MjY4IDYuOTAwNzUgNy40OTI2OCA3LjA4NzVWMTUuMzY1MkM3LjQ5MjY4IDE1LjU1MiA3LjY0MzYyIDE1LjcwMjggNy44MzA2MSAxNS43MDI4WiIgZmlsbD0iI0UyNUY0MSIvPjxwYXRoIGQ9Ik0xMC4yMzg5IDE1LjcwMjhDMTAuMjM4OSAxNS43MDI4IDEwLjI0NzkgMTUuNzAyOCAxMC4yNTI0IDE1LjcwMjhDMTAuNDMyNiAxNS43MDI4IDEwLjU4MzYgMTUuNTU4OCAxMC41OTAzIDE1LjM3ODhMMTAuODk5IDcuMTAxMDVDMTAuOTA1NyA2LjkxNDMgMTAuNzU5MyA2Ljc1OTA1IDEwLjU3NDYgNi43NTIzQzEwLjM4NzYgNi43NDc4IDEwLjIzMjEgNi44ODk1NSAxMC4yMjU0IDcuMDc2M0w5LjkxNjczIDE1LjM1NDFDOS45MDk5NyAxNS41NDA4IDEwLjA1NjQgMTUuNjk2MSAxMC4yNDExIDE1LjcwMjhIMTAuMjM4OVoiIGZpbGw9IiNFMjVGNDEiLz48L3N2Zz4=) center center no-repeat;background-size:contain;margin-left:6px}@media screen and (max-width:480px){ul.files{top:16px}}","template":"<div class=\"field-attach\"><div button><span class=\"hint\"></span> <button><svg width=\"24\" height=\"27\" viewBox=\"0 0 24 27\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6.47244 27C4.75296 27 3.09848 26.3084 1.89792 25.0574-.632639 22.4891-.632639 18.3074 1.89792 15.7391L16.2702 1.31719C17.0815.494019 18.2492 0 19.4498 0 20.6501 0 21.818.493807 22.6617 1.35006 24.4461 3.16109 24.4461 6.05846 22.6617 7.86955L8.28942 22.2915C7.80287 22.7855 7.1538 23.0487 6.47267 23.0487 5.79125 23.0487 5.14245 22.7853 4.6233 22.2915 3.61763 21.2708 3.61763 19.5914 4.6233 18.5707L11.8581 11.3927C12.1177 11.1292 12.5395 11.1292 12.7665 11.3927 13.0261 11.6561 13.0261 12.0842 12.7665 12.3146L5.56415 19.4926C5.0776 19.9864 5.0776 20.8427 5.56415 21.3365 5.82372 21.5999 6.14801 21.7315 6.47256 21.7315 6.82944 21.7315 7.15398 21.5999 7.38096 21.3365L21.7532 6.91456C23.0185 5.63042 23.0185 3.55597 21.7532 2.27183 21.137 1.64616 20.3259 1.31707 19.4499 1.31707 18.5739 1.31707 17.7628 1.64643 17.1463 2.27183L2.8065 16.6937C.795086 18.7351.795086 22.0937 2.8065 24.1352 3.77984 25.1231 5.07745 25.6828 6.47261 25.6828 7.86755 25.6828 9.16539 25.123 10.1387 24.1352L22.5644 11.6889C22.824 11.4254 23.2458 11.4254 23.4728 11.6889 23.7324 11.9523 23.7324 12.3805 23.4728 12.6108L11.0471 25.0901C9.84657 26.3083 8.19209 26.9998 6.47261 26.9998L6.47244 27Z\" fill=\"white\"/></svg><slot></slot></button> <input type=\"file\"></div><ul class=\"files\"></ul></div>","code":"class bmAttacherElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.maxSize=1e9,this.types=[\"*/*\"],this.field=this._shadow.$q(\".field-attach\"),this.fileList=this._shadow.$q(\".files\"),this.field.$q(\"input\").addEventListener(\"change\",(e=>{this.acceptFile(e.target.files),e.target.value=\"\"})),this.hasAttribute(\"hint\")&&(this._shadow.$q(\".hint\").textContent=this.getAttribute(\"hint\")),this._files=[]}get files(){let e=[];return this._files.forEach((t=>{e.push({fileName:t.filename,size:t.size,mimeType:t.mime,contents:t.contents})})),e}get value(){return 0==this.files.length?\"\":JSON.stringify(this.files)}attributeChangedCallback(e,t,i){switch(e.toLowerCase()){case\"caption\":this._shadow.$q(\".header\").innerHTML=null==i?\"\":i;break;case\"info\":this._shadow.$q(\".info\").innerHTML=null==i?\"\":i;break;case\"multiple\":this._shadow.$q(\"input\").toggleAttribute(\"multiple\",null!=i);break;case\"accept\":this.types=null!=i?i.toLowerCase().split(\",\"):[\"*/*\"],this._shadow.$q(\"input\").setAttribute(\"accept\",this.types.join(\",\"))}}acceptFile(e){e.preventDefault&&e.preventDefault();let t=e.dataTransfer?e.dataTransfer.files:e;for(let e=0;e<t.length;e++)this.readFile(t[e]);this.classList.remove(\"-drag\",\"-error\")}addItem(e,t=!1,i=!1){let s=$c(\"li\"),a=`<span>${e.replace(/^(.*)\\.\\w*$/,\"$1\")}</span><em>.${e.replace(/^.*\\.(\\w*)$/,\"$1\")}</em> <a href='#' class='-remove'></a>`;return t&&s.classList.add(\"-error\"),s.innerHTML=a,s.dataset.key=i||null,this.fileList.innerHTML=\"\",this.fileList.appendChild(s),this.toggleAttribute(\"selected\",1),this.dispatcher.sendEvent(\"attached\",{global:0},this),s.$q(\".-remove\").addEventListener(\"click\",(e=>{e.preventDefault();for(let t=0;t<this._files.length;t++)if(e.target.parentNode.dataset.key==this._files[t].domItem){this._files.splice(t,1),this.toggleAttribute(\"selected\",0),this.dispatcher.sendEvent(\"removed\",{global:0},this);break}return e.target.parentNode.remove(),window.dispatchEvent(new Event(\"resize\")),!1})),window.dispatchEvent(new Event(\"resize\")),s}async readFile(e){return new Promise(((t,i)=>{let s=parseInt(this.maxSize),a=`file-${e.name}-${e.size}`;if(isNaN(s)&&(s=1/0),s<e.size)return this.addItem(e.name,!0,a),t();if(this.fileList.$q(`li[data-key=\"${a}\"]`))return this.fileList.innerHTML=\"\",this.fileList.appendChild(this.fileList.$q(`li[data-key=\"${a}\"]`)),t();var l=new FileReader;l.onload=async i=>{let s=i.target.result.replace(/.*?\\;base64\\,/,\"\"),l=this.addItem(e.name,!1,a);this._files.push({filename:e.name,size:e.size,domItem:a,mime:e.type,contents:s}),l.file=this._files[this._files.length-1],t()},l.readAsDataURL(e)}))}dragEnd(e){this.classList.remove(\"-drag\",\"-error\")}checkDragFiles(e){this.classList.add(\"-drag\")}}Object.defineProperty(bmAttacherElement,\"observedAttributes\",{get:()=>[\"caption\",\"info\",\"max-size\",\"multiple\",\"accept\"]});"},"bm-balloon-tooltip":{"stylesheet":":host{position:relative;overflow:visible;width:1.5em;height:1.5em;margin:0 0 -2px 4px;color:var(--color-default)}.tooltip-wrapper:before{content:\"?\";text-align:center;border:1px solid var(--color-default);background-color:var(--color-balloon-hint);float:left;width:100%;height:100%;border-radius:50%}.tooltip-wrapper .tooltip{position:absolute;left:calc(.9em - 101px);bottom:2.75em;width:200px;min-height:100px;border-radius:.5em;font:var(--font-catalogue-menu-normal);background-color:var(--background-tooltip);color:var(--color-balloon-hint)}.tooltip-wrapper .tooltip:before{content:\"\";width:0;height:0;position:absolute;left:100px;bottom:calc(1px - 1em);transform:translate(-50%);border-left:.5em solid transparent;border-right:.5em solid transparent;border-top:1em solid var(--background-tooltip)}.tooltip-description p{margin-block-start:0;margin-block-end:0;max-height:145px;overflow-y:hidden;width:100%;object-fit:cover;max-height:200px}.tooltip-image img{width:100%;object-fit:cover;max-height:200px}.tooltip-wrapper .tooltip .tooltip-description,.tooltip-wrapper .tooltip .tooltip-image{padding:.6em 1em}","template":"<div class=\"tooltip-wrapper\"></div>","code":"class bmBalloonTooltipElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.render(),window.addEventListener(\"click\",this.hideOnOut.bind(this))}hideOnOut(t){let e=t.composedPath()[0],i=this._shadow.$q(\".tooltip\");e.closest(\".tooltip-wrapper\")===i.closest(\".tooltip-wrapper\")||i.hasAttribute(\"hidden\")||(i.hidden=!0)}attributeChangedCallback(t,e,i){t.toLowerCase()}render(){const t=this.getAttribute(\"hintBalloon\"),{img:e,text:i}=JSON.parse(t||\"\"),s=$c(\"div\");s.classList.add(\"tooltip\"),s.hidden=!0,s.innerHTML=`<div class=\"tooltip-description\">\\n      <p>${i}</p>\\n    </div>\\n    <div class=\"tooltip-image\">\\n      <img src=${e}/>\\n    </div>`,this.addEventListener(\"click\",(t=>{s.hidden=!1})),this._shadow.$q(\"div\").append(s)}}Object.defineProperty(bmBalloonTooltipElement,\"observedAttributes\",{get:()=>[]});"},"bm-button":{"stylesheet":":host{font-family:'Open Sans';font-style:normal;display:flex;justify-content:center;align-items:center;border-radius:4px;background:#004ee6;color:#fff;cursor:pointer;user-select:none;white-space:nowrap}:host(:hover){background:#0041be}.link{text-decoration:none;display:inherit;color:inherit;background:inherit;width:100%;border-radius:6px}:host(:not([href])),:host(:not([variant=info])) .link{padding:10px 17px 13px;justify-content:center}:host([left]){justify-content:flex-start}:host([variant=grey]){color:#101110}.image{margin-right:18px}.image:not([src]){display:none}.text{font-family:'Open Sans';font-weight:700;font-size:16px;line-height:22px}:host([variant=grey]){background:#eaeaea;border-radius:6px;color:#101110}:host([variant=info]){box-shadow:0 3px 9px rgba(0,0,0,.07);border-radius:10px;background:#fff}:host([variant=info]) .image{margin-right:20px}:host([variant=info]) .text{font-family:Arial;font-style:normal;font-weight:700;font-size:14px;line-height:19px;color:#002273}:host([variant=printer]){background:rgba(0,103,255,.1);border-radius:30px;min-width:127px}:host([variant=printer]) .text{font-family:inherit;font-size:14px;line-height:19px;color:#004ee6}:host([variant=printer]:hover){color:rgba(0,78,230,.7);background:rgba(0,103,255,.3)}","template":"<img part=\"image\" class=\"image\"><slot part=\"text\" class=\"text\">","code":"class bmButtonElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners(),this._firstRender()}connectedCallback(){this.attr.href&&(this._shadow.innerHTML=`\\n            <a part=\"text\" class=\"link\" href=${this.attr.href}>\\n                ${this._shadow.innerHTML}\\n            </a>\\n        `)}_initVariables(){this.attr={href:this.getAttribute(\"href\"),icon:this.getAttribute(\"icon\")},this.el={image:this._shadow.$q(\".image\"),text:this._shadow.$q(\".text\")},this.lightDOM={},this.shadowDOM={},this.state={},this.dev={}}_addEventListeners(){}_firstRender(){}attributeChangedCallback(t,e,i){if(\"icon\"===t.toLowerCase())this.el.image.setAttribute(\"src\",i)}}Object.defineProperty(bmButtonElement,\"observedAttributes\",{get:()=>[\"href\",\"icon\"]});"},"bm-calendar":{"stylesheet":":host{position:relative;display:block;z-index:95;padding:30px;margin:10px 0 20px 0;background:var(--background-default);box-shadow:0 3px 6px rgba(0,0,0,.3);border-radius:5px;user-select:none}:host(:not([shown])){display:none!important}div.month{display:flex;align-items:center;justify-content:space-between}div.month button{background:transparent var(--ico-filter-expander) right center no-repeat;width:30px;height:30px;border:none;cursor:pointer}div.month button[dir=left]{transform:rotate(180deg)}div.month .title{font:var(--font-calendar-month);text-align:center;white-space:nowrap}div.table{display:grid;grid-template-columns:repeat(7,1fr);font:var(--font-calendar-day);grid-gap:1px}div.table em,div.table i{font:inherit;font-style:inherit;text-align:center;text-transform:capitalize;border:1px solid transparent;border-radius:5px}div.table em:not(.forbidden):not(.foreign):not([busy=full]){cursor:pointer}div.table em.foreign{color:var(--color-item-disabled)}:host(:not(.manager)) div.table em[busy=full],div.table em.forbidden:not(.foreign){opacity:.5;pointer-events:none}:host(.manager) div.table em[busy=full]{pointer-events:none;background-color:#ffd0d0}:host(.manager) div.table em[busy=busy]{background-color:#ffffa0;color:var(--color-default)}div.table em.current{background:var(--background-button-default);color:var(--color-button-default)}div.table em:hover{border-color:var(--background-button-default)}","template":"<div class=\"month\"> <button dir=\"left\"></button><div class=\"title\">XXXX</div> <button dir=\"right\"></button></div><div class=\"table\"> <i>пн</i><i>вт</i><i>ср</i><i>чт</i><i>пт</i><i>сб</i><i>вс</i><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em></div>","code":"class bmDate{constructor(t){if(!t.match(/^\\d+\\-\\d+\\-\\d+$/))return new Date(t);let[e,i,s]=t.split(\"-\");return new Date(`${String(e).padStart(4,\"0\")}-${String(i).padStart(2,\"0\")}-${String(s).padStart(2,\"0\")}`)}}class bmCalendarElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.rendered=!1,this._min=\"1900-01-01\",this._max=\"2099-12-31\",this._excluded=[],this.__d=!1,this.__v=!1,this.__s=!1,this.__z=!1,this._lastReport=!1,this.root=this,this._table=this._shadow.$q(\".table\"),this.monthNames=[\"\",\"Январь\",\"Февраль\",\"Март\",\"Апрель\",\"Май\",\"Июнь\",\"Июль\",\"Август\",\"Сентябрь\",\"Октябрь\",\"Ноябрь\",\"Декабрь\"],this.dayNames=[\"вс\",\"пн\",\"вт\",\"ср\",\"чт\",\"пт\",\"сб\",\"вс\"],Object.freeze(this.monthNames),Object.freeze(this.dayNames),this._shadow.$a(\".month button\").forEach((t=>{t.addEventListener(\"click\",(t=>{this.__s=!0;let e=\"left\"==t.target.getAttribute(\"dir\")?-1:1;this.__z=\"left\"==t.target.getAttribute(\"dir\")?0:1,e<0?this.month--:this.month++,this.__s=!1,this.__z=!1,this.render(!1)}))})),this.value=bmSite.formatDate(new Date),this.render(!1)}attributeChangedCallback(t,e,i){switch(t.toLowerCase()){case\"excluded\":null==i?this._excluded=[]:(this._excluded=i.split(\",\"),this._excluded.forEach(((t,e)=>{t.match(/^(\\d{4})\\-(\\d{2}).*$/)&&(t=t.replace(/^(\\d+)\\-(\\d+)\\-(\\d+).*$/,\"$1-$2-$3\")),this._excluded[e]=7==parseInt(t)?0:t}))),this.validate(!1);break;case\"min\":{let t=new bmDate(i);null==i||isNaN(t.getTime())?this._min=\"1900-01-01\":this._min=bmSite.formatDate(t)}this.validate(!1);break;case\"max\":{let t=new bmDate(i);null==i||isNaN(t.getTime())?this._max=\"2099-12-31\":this._max=bmSite.formatDate(t)}this.validate(!1)}this.render(!1)}show(){this.toggleAttribute(\"shown\",1),this.validate()}hide(){this.toggleAttribute(\"shown\",0)}get yearStr(){let[t,e,i]=this._value.split(\"-\");return t}get monthStr(){let[t,e,i]=this._value.split(\"-\");return e}get dayStr(){let[t,e,i]=this._value.split(\"-\");return i}get year(){let[t,e,i]=this._value.split(\"-\");return parseInt(t)}get month(){let[t,e,i]=this._value.split(\"-\");return parseInt(e)}get day(){let[t,e,i]=this._value.split(\"-\");return parseInt(i)}get date(){return new bmDate(this._value)}get value(){return this._value}toString(){return this.value}set day(t){if(t=parseInt(t),isNaN(t))return!1;let e=this.__s;this.__s=!0,t<1&&(this.month-=1,t=!1);let i=new Date(this.year,this.month,0).getDate(),s=\"\";for(!1===t&&(t=i),t>i&&(this.__d=1,this.month++,this.__d=!1),s=`${this.year}-${this.month}-${t}`;-1!=this._excluded.indexOf(new bmDate(s).getDay())||-1!=this._excluded.indexOf(s);)0===this.__z?t--:t++,t<1&&(t+=new Date(this.year,this.month-1,0).getDate(),this.month--),s=`${this.year}-${this.month}-${t}`;this._value=bmSite.formatDate(new bmDate(s)),this.__s=e,this._value<this._min&&(this._value=this._min),this._value>this._max&&(this._value=this._max),this.validate()}set month(t){if(t=parseInt(t),isNaN(t))return!1;let e=!1!==this.__d?this.__d:this.day;t<1&&(this.year-=1,t+=12),t>12&&(this.year+=1,t-=12);let i=new Date(this.year,t,0).getDate();e>i&&(e=i),this._value=bmSite.formatDate(new bmDate(`${this.year}-${t}-${e}`)),this.validate()}set year(t){if(t=parseInt(t),isNaN(t))return!1;t<100&&(t+=2e3),this._value=bmSite.formatDate(new bmDate(`${t}-${this.month}-${this.day}`)),this.validate()}set value(t){this.__s=!0;let e=new bmDate(t);e.getTime()>0&&(this._value=bmSite.formatDate(e),this.day*=1),this.__s=!1}validate(t=!0){if(this.__v||!1!==this.__s)return!0;if(this.__v=!0,this.day*=1,this._min>this._max){let t=this._min;this._min=this._max,this._max=t}this.__s||(this._value<this._min&&(this._value=this._min),this._value>this._max&&(this._value=this._max)),this.__v=!1,this.render(t)}next(t=1){this.__z=1,this.day+=t,this.__z=!1}prev(t=1){this.__z=0,this.day-=t,this.__z=!1}render(t=!0){if(!1!==this.__s)return!1;this.rendered=this._value,this.classList.toggle(\"manager\",document.body.classList.contains(\"manager\"));let[e,i,s]=this._value.split(\"-\"),a=!1,h=JSON.parse(this.getAttribute(\"busy\"))||!1;this._shadow.$q(\".month .title\").textContent=`${this.monthNames[this.month]} ${this.year}`,this._table.$a(\"em\").forEach((t=>t.remove()));let r=new bmDate(this._value.replace(/^(.*)\\-(\\d+)$/,\"$1\")+\"-01\");for(;1!=r.getDay();)r.setTime(r.getTime()-864e5);for(;!a;){for(let t=0;t<7;t++){a=r.getMonth()!=this.month-1;let t=$c(\"em\");t.textContent=r.getDate(),a&&t.classList.add(\"foreign\"),bmSite.formatDate(r)==this._value&&t.classList.add(\"current\"),(-1!=this._excluded.indexOf(r.getDay())||-1!=this._excluded.indexOf(bmSite.formatDate(r))||this._min>bmSite.formatDate(r)||this._max<bmSite.formatDate(r))&&t.classList.add(\"forbidden\");let e=bmSite.formatDate(r);t.setAttribute(\"value\",e),h[e]&&\"default\"!=h[e]&&t.setAttribute(\"busy\",h[e]),this._table.appendChild(t),r.setTime(r.getTime()+864e5),t.addEventListener(\"click\",(t=>{this.value=t.target.getAttribute(\"value\"),this._lastReport=-1,this.render()}))}a=r.getMonth()!=this.month-1}this.value!=this._lastReport&&(this._lastReport=this.value,t&&this.dispatcher.sendEvent(\"change\",{global:0},this))}}Object.defineProperty(bmCalendarElement,\"observedAttributes\",{get:()=>[\"min\",\"max\",\"excluded\",\"for\",\"busy\"]});"},"bm-catalogue":{"stylesheet":"","template":".","code":"class bmCatalogueElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.updater=!1,this.topPosition=0,this.lastRequestURL=!1,this.lastScrollHandled=0,this.$q(\"bm-catalogue-selections\")&&this.$q(\"bm-catalogue-selections\").toggleAttribute(\"nojump\",!0),this.$q(\"bm-catalogue-filters\")&&(this.$q(\"bm-catalogue-filters\").addEventListener(\"change\",(async t=>await this.update(!!t.detail.scroll,!1,t.detail.url,!0))),this.$q(\"bm-catalogue-filters\").addEventListener(\"close\",(t=>this.removeAttribute(\"full-filters\")))),this.$q(\"bm-catalogue-order\")&&this.$q(\"bm-catalogue-order\").addEventListener(\"change\",(async t=>await this.update(!1,!1,t.detail.url))),this.$q(\"bm-catalogue-selections\")&&this.$q(\"bm-catalogue-selections\").addEventListener(\"change\",(async t=>await this.update(!1,!1,t.detail.url))),this.$q(\"bm-pages-list\").addEventListener(\"change\",(async t=>await this.update(!0,!1,t.detail.url))),this.$q(\"bm-pages-list\").addEventListener(\"next\",(async t=>await this.update(!0,!1,t.detail.url))),this.toggleAttribute(\"no-selections\",0==this.$a(\"bm-catalogue-selections\").length),this.$q(\".left-panel > ul\")&&(this.$q(\".left-panel > ul\").hasAttribute(\"direct\")||this.$q(\".left-panel > ul\").addEventListener(\"click\",(t=>{t.preventDefault(),t.path||(t.path=t.composedPath());let e=Array.from(t.path);if(\"strong\"==e[0].tagName.toLowerCase()&&e.shift(),\"a\"!=e[0].tagName.toLowerCase())return!1;this.$q(\"bm-pages-list\").setCurrent(1,!0),this.update(!1,!1,e[0].getAttribute(\"href\"))})));let t=$q(\"bm-catalogue .left-panel > ul.bottom\");t&&(t=t.cloneNode(!0),t.classList.add(\"-mob\"),$q(\"bm-catalogue .bm-catalogue-items\").insertBefore(t,$q(\".catalogue-info\"))),window.addEventListener(\"popstate\",(async t=>{if(t.state&&null!==t.state&&t.state.ok)t.state&&t.state.ok&&this.setUpdaterData(t.state);else{let e=$q('link[rel=\"updateCatalogueOnBack\"]'),s=window.currentScrollY;if(null!==t.state&&void 0!==t.state.st&&(s=t.state.st),!e)return!1;this.updater&&this.updater.abort();let a=await this.dispatcher.api.post(e.getAttribute(\"href\"),{},{preloader:this,requestURL:e.getAttribute(\"data-request-url\")});a.st=s,history.replaceState(a,\"\",location.href),this.setUpdaterData(a)}})),void 0!==history.state&&history.state&&history.state.st&&setTimeout((()=>{bmSite.scrollTo(history.state.st,!1),$a(\"bm-catalogue-selections\").forEach((t=>t.resizeCallback()))}),50),window.addEventListener(\"scroll\",(t=>this.onscroll()),{passive:!0}),document.body.addEventListener(\"scroll\",(t=>this.onscroll()),{passive:!0})}onscroll(){const t=Date.now();if(t-this.lastScrollHandled<300)return;this.lastScrollHandled=t;let e={};history.state&&void 0===history.state||(e=history.state),\"object\"==typeof history.state&&null!==history.state||(e={}),e.st=window.currentScrollY,history.replaceState(e,\"\",location.href)}setUpdaterData(t=!1,e=!1,s=!1){let a;if(!t)return!1;if(t.itemsHTML&&(e?this.$q(\"bm-catalogue-items\").innerHTML+=`<div class='separator' data-page='${t.pages.current}'></div>`+t.itemsHTML:this.$q(\"bm-catalogue-items\").innerHTML=t.itemsHTML),t.pageTitle&&document.body.$q(\"h1\")&&(document.body.$q(\"h1\").innerHTML=`${t.pageTitle}`),!document.body.$q(\"main > .h1_wrap + sup\")){let t=document.createElement(\"sup\");document.body.$q(\"main > .h1_wrap\").insertAdjacentElement(\"afterend\",t)}if(t.totalCount&&document.body.$q(\"main > .h1_wrap + sup\")&&(document.body.$q(\"main > .h1_wrap + sup\").textContent=t.totalCount),t.totalCount&&this.hasAttribute(\"full-filters\")?this.$q(\"bm-catalogue-filters\").setAttribute(\"total\",t.totalCount):this.$q(\"bm-catalogue-filters\")&&this.$q(\"bm-catalogue-filters\").removeAttribute(\"total\"),void 0!==t.selectedFiltersCount&&this.$q(\"bm-catalogue-filters\").setAttribute(\"selected-filters-count\",t.selectedFiltersCount),t.pages&&(a=this.$q(\"bm-pages-list\"),a.total=t.pages.total,a.setCurrent(t.pages.current,1),t.pages.url&&a.setAttribute(\"href\",t.pages.url),t.pages.firstPageUrl&&a.setAttribute(\"first-page-href\",t.pages.firstPageUrl)),t.seoText&&$q(\".catalogue-info\")&&($q(\".catalogue-info\").innerHTML=t.seoText),t.selections&&this.$q(\"bm-catalogue-selections > ul\")&&(this.$q(\"bm-catalogue-selections > ul\").innerHTML=t.selections),t.selectionsSecondary&&this.$q(\".left-panel > ul.bottom\")&&(this.$q(\".left-panel > ul.bottom\").innerHTML=t.selectionsSecondary),t.filters&&this.$q(\"bm-catalogue-filters\")&&this.$q(\"bm-catalogue-filters\").render(JSON.parse(t.filters)),t.order){let[e,s]=t.order.split(\":\"),a=this.$q(\"bm-catalogue-order\")._shadow;a.$q(\"li[selected]\").removeAttribute(\"selected\"),a.$q(`li[value=\"${e}\"]`).toggleAttribute(\"selected\",1),a.$q(`li[value=\"${e}\"]`).toggleAttribute(\"desc\",\"desc\"==s)}if(t.orderHTML){this.$q(\"bm-catalogue-order ul\").innerHTML=t.orderHTML}if(t.links&&this.$q(\".left-panel\")){let e=this.$q(\".left-panel > ul\");e.innerHTML=\"\",t.links.forEach((t=>{let s=$c(\"li\");s.innerHTML=`<a href='${t.url}'>${t.current?\"<strong>\":\"\"}${t.title}${t.current?\"</strong>\":\"\"}</a>`,e.appendChild(s)}))}!s&&t.st&&bmSite.scrollTo(t.st,!1),this.$q(\"bm-catalogue-filters\")&&t.enabledFilters&&this.$q(\"bm-catalogue-filters\").toggleEnableStatus(t.enabledFilters)}async update(t=!1,e=!1,s=!1,a=!1){this.updater&&this.updater.abort(),this.lastRequestURL&&!s&&(s=this.lastRequestURL,this.lastRequestURL=!1),this.$q(\"bm-catalogue-filters\")&&this.$q(\"bm-catalogue-filters\").initialRender&&this.$q(\"bm-catalogue-filters\").firstRender();let i=this.hasAttribute(\"full-filters\")?\"count\":\"refresh\";if(this.updater=this.dispatcher.api.post(\"catalogue:refresh\",{filters:this.$q(\"bm-catalogue-filters\")?this.$q(\"bm-catalogue-filters\").all:void 0,enabledFilters:this.$q(\"bm-catalogue-filters\")?this.$q(\"bm-catalogue-filters\").visibleItems:void 0,expanded:this.$q(\"bm-catalogue-filters\")?this.$q(\"bm-catalogue-filters\").expanded:void 0,selections:this.$q(\"bm-catalogue-selections\")?this.$q(\"bm-catalogue-selections\").value:void 0,order:this.$q(\"bm-catalogue-order\")?this.$q(\"bm-catalogue-order\").value:void 0,page:this.$q(\"bm-pages-list\").current,mode:i,filterChanged:a},{preloader:this,requestURL:s,timeout:3e4}),\"count\"==i&&(this.lastRequestURL=s),t){let t=\"h1\";$q('bm-catalogue[bm-role=\"brands\"]')&&(t='bm-catalogue[bm-role=\"brands\"]'),history.state&&history.state.st&&delete history.state.st,$q(t)||(t=\".breadscrumbs\");let e=document.body.$q(t).getBoundingClientRect().top;bmSite.scrollTo(window.currentScrollY+e-100)}this.updater.then((s=>{s.st=window.currentScrollY,this.setUpdaterData(s,e,t),s.location&&history.pushState(s,\"\",s.location),document.documentElement.classList.contains(\"-ios\")&&bmSite.triggerReflowIos()})).catch((t=>{-2!=t.code&&console.log(\"can't fetch catalogue\",t)}))}attributeChangedCallback(t,e,s){if(\"full-filters\"===t.toLowerCase())null==s?this.resetFilters():this.setFilters()}setFilters(){this.topPosition=window.currentScrollY,$q(\"h1\").classList.add(\"hidden\"),$q(\"sup\").classList.add(\"hidden\"),this.$q(\"bm-catalogue-filters\").toggleAttribute(\"expanded\",1),this.$q(\"bm-catalogue-filters\").relocate(1,!0),window.scrollTo({top:this.offsetTop-$q(\"header\").offsetHeight+50})}resetFilters(){$q(\"h1\").classList.remove(\"hidden\"),$q(\"sup\").classList.remove(\"hidden\"),this.$q(\"bm-catalogue-filters\").toggleAttribute(\"expanded\",0),this.$q(\"bm-catalogue-filters\").relocate(2,!0),window.scrollTo({top:this.topPosition})}resizeCallback(){}}Object.defineProperty(bmCatalogueElement,\"observedAttributes\",{get:()=>[\"full-filters\"]});"},"bm-catalogue-filters":{"stylesheet":":host{position:relative;display:block}:host(:not([expanded]))>.grid>div>:not([visible]):not(button),:host(:not([expanded]))>:not([visible]):not(button){display:none}button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}button>*{font:inherit}button[bm-type=icon]{position:relative;background-color:transparent;background-position:left center;background-repeat:no-repeat;border:none;font:var(--font-filters-options);color:var(--color-breadscrumbs);cursor:pointer;padding:5px 0 5px 18px}button.-full-expander{background:var(--background-button-default);color:var(--color-button-default);font:var(--font-button-default);text-transform:uppercase;padding:0 25px;border:none;border-radius:5px;cursor:pointer}button.-full-expander.-omb{display:none!important}:host([expanded]) button.-full-expander{display:none!important}button[bm-type=icon][bm-role=close]{background-image:var(--ico-delete-button)}button[bm-type=icon][bm-role=back]{background-image:var(--ico-back-button);padding-left:15px}:host(:not([total])) button[bm-type=default][bm-role=show-items]{display:none}button.-full-expander::before{content:\"Все фильтры\"}:host([expanded]) div.header{position:sticky;top:60px;background:#fff;z-index:10}div.header .title{font:var(--font-header-base);text-align:center;text-transform:uppercase;padding:20px 0 20px 0}div.header .board{padding:25px 0;display:flex;align-items:center;margin:0 0 25px 0;justify-content:space-between;border-top:1px solid var(--color-separator-line);border-bottom:1px solid var(--color-separator-line)}div.grid{display:contents!important}:host([expanded]) div.grid{display:grid!important;grid-template-columns:repeat(4,1fr)}@media screen and (max-width:1280px){:host([expanded]) div.grid{grid-template-columns:repeat(3,1fr)}}@media screen and (max-width:1080px){:host([expanded]) div.grid{grid-template-columns:repeat(2,1fr)}}@media screen and (max-width:747px){:host(:not([expanded]))>.grid,:host(:not([expanded]))>[caption][key]{display:none!important}:host([expanded]) div.header{top:0;margin:0 -15px 30px -15px;padding:10px 15px 0 15px}div.header .board{flex-wrap:wrap;padding:12px 0}div.header .title{padding-top:0}div.header .board button[bm-role=show-items]{order:5;width:100%;margin-top:15px}button.-full-expander{font:var(--font-catalogue-tool);white-space:nowrap;color:var(--color-default);background:transparent var(--ico-filters) right center no-repeat;text-transform:none;padding:0 30px 0 0;margin-top:5px}button.-full-expander::before{content:\"Фильтры\"}button.-full-expander span{max-width:20px;display:inline-block;transform:translateX(5px)}:host([expanded]) div.grid{grid-template-columns:repeat(1,1fr)}button.-full-expander.-omb{display:block!important}}","template":"<div class=\"header\"><div class=\"title\">Все фильтры</div><div class=\"board\"> <button bm-type=\"icon\" bm-role=\"back\">Вернуться в каталог</button> <button bm-type=\"default\" bm-role=\"show-items\">Показать <i>0</i> предложен<b>ий</b></button> <button bm-type=\"icon\" bm-role=\"close\">Сбросить фильтры</button></div></div><div class=\"grid\"><div></div><div></div><div></div><div></div></div>","code":"class bmCatalogueFiltersElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.states={},this.filterTypes=[],this._all={},this._lastW=-1,this.initialRender=!0,window.addEventListener(\"site:change\",(t=>{let e=t.detail.url.new;this.states[e]&&this.render(this.states[e])})),this._shadow.$q('button[bm-type=\"icon\"][bm-role=\"back\"]').addEventListener(\"click\",(t=>{this.dispatcher.sendEvent(\"close\",{global:0},this)})),this._shadow.$q('button[bm-type=\"icon\"][bm-role=\"close\"]').addEventListener(\"click\",(t=>{this._shadow.$a(this.filterTypes.join(\",\")).forEach((t=>{t._stored=!1,t.reset()})),this.dispatcher.sendEvent(\"close\",{global:0},this),this.dispatcher.sendEvent(\"change\",{value:\"\",url:this.getAttribute(\"reset-url\")||!1,scroll:!0,global:0},this)})),this._shadow.$q('button[bm-type=\"default\"]').addEventListener(\"click\",(t=>{this.dispatcher.sendEvent(\"close\",{global:0},this),this.dispatcher.sendEvent(\"change\",{scroll:!0,global:0},this)}))}get all(){return this._all}get visibleItems(){let t=this._shadow.$a(this.filterTypes.join(\",\")),e={};for(let i=0;i<t.length;i++){if(\"slider\"==t[i].config.type)continue;let s={},l=t.item(i).getAttribute(\"key\"),r=Object.keys(t[i].config.values);for(let e=0;e<r.length;e++){let l=!0,a=t[i]._shadow.$q(`li[value=\"${r[e]}\"]`);a&&(l=a.hasAttribute(\"disabled\")),s[r[e]]=l}e[l]=s}return e}get expanded(){let t=this._shadow.$a(this.filterTypes.join(\",\")),e=[],i=this.hasAttribute(\"expanded\")?\"exp\":\"expanded\";return t.forEach((t=>{t.hasAttribute(i)&&e.push(t.getAttribute(\"key\"))})),e}attributeChangedCallback(t,e,i){if(\"total\"===t.toLowerCase())this._shadow.$q('button[bm-type=\"default\"] i').textContent=null==i?\"\":i,this._shadow.$q('button[bm-type=\"default\"] b').textContent=null==i?\"\":bmSite.getSuffix(i,[\"ие\",\"ия\",\"ий\"])}connectedCallback(){this.render({});let t=this;document.body.classList.contains(\"--mobile\")&&(t=this._shadow.$q(\".header\")),this.observer=new IntersectionObserver(((t,e)=>{t[0].isIntersecting&&(this.initialRender&&this.firstRender(),e.unobserve(t[0].target))}),{threshold:0}).observe(t)}firstRender(){this.render(JSON.parse(this.$q(\"script\").textContent)),this.initialRender=!1,window.addEventListener(\"resize\",(t=>this.relocate()))}saveState(t=!1){if(!t){t={},this._shadow.$a(this.filterTypes.join(\",\")).forEach((e=>{let i=e.getAttribute(\"key\");t[i]=e.config}))}this.states[location.href]=t}render(t){this.filters={},this._all={};let e=!1;this.filterTypes.length&&this._shadow.$a(this.filterTypes.join(\",\")).forEach((t=>t.remove())),this._shadow.$a(\"*:not(.board)>button\").forEach((t=>t.remove()));for(let i in t){let s=`bm-filter-${t[i].type.toLowerCase()}`,l=$c(s);this.filterTypes.includes(s)||this.filterTypes.push(s),this.initialRender&&\"bm-filter-sel\"===s&&l.setAttribute(\"initial-render\",\"1\"),l.setAttribute(\"key\",i),l.setAttribute(\"caption\",t[i].title),l.setAttribute(\"hint\",t[i].hint),l.setAttribute(\"data\",JSON.stringify(t[i].values)),l.toggleAttribute(\"visible\",Boolean(t[i].base)),Boolean(t[i].base)||(e=!0),l.toggleAttribute(\"expanded\",Boolean(t[i].expanded)),t[i].url&&l.setAttribute(\"href\",t[i].url),t[i].filter&&t[i].filter.search&&l.setAttribute(\"filter-search\",t[i].filter.placeholder||\"поиск\"),t[i].maxVisibleElements&&l.setAttribute(\"max-visible-elements\",t[i].maxVisibleElements),this.filters[i]=l,l.addEventListener(\"beforechange\",(t=>{this.saveState()})),l.addEventListener(\"change\",(t=>{let e={};for(let t in this.filters){let i=String(this.filters[t]);\"\"!=i&&(e[t]=i)}let i=t.target,s=!1;if(i.getAttribute(\"href\")&&(s=i.getAttribute(\"href\"),s.match(/\\{min\\}/)||s.match(/\\{max\\}/))){let[e,i]=t.detail.value.split(\";\");s=s.replace(/\\{min\\}/,e).replace(/\\{max\\}/,i)}t.detail.url&&(s=t.detail.url),this._all=e,this.dispatcher.sendEvent(\"change\",{key:i.getAttribute(\"key\"),value:t.detail.value,all:e,global:0,url:s},this)})),l.addEventListener(\"ready\",(t=>{let e={};for(let t in this.filters){let i=String(this.filters[t]);\"\"!=i&&(e[t]=i)}this._all=e})),this._shadow.appendChild(l)}let i={};for(let t in this.filters){let e=String(this.filters[t]);\"\"!=e&&(i[t]=e)}this._all=i;let s=this._shadow.$q(\".-full-expander\");s&&s.remove();let l=$c(\"button\");l.classList.add(\"-full-expander\"),0<this.getAttribute(\"selected-filters-count\")&&(l.innerHTML=`<span>(${this.getAttribute(\"selected-filters-count\")})</span>`),this._shadow.appendChild(l),e||l.classList.add(\"-omb\"),l.addEventListener(\"click\",(t=>{this.closest(\"bm-catalogue\").toggleAttribute(\"full-filters\"),document.documentElement.classList.contains(\"-ios\")&&bmSite.triggerReflowIos()})),this.saveState(t)}toggleEnableStatus(t){for(let e in t){let i=this._shadow.$q(`[key=\"${e}\"]`);if(i)for(let s in t[e]){let l=i._shadow.$q(`[value=\"${s}\"]`);l&&l.toggleAttribute(\"disabled\",!t[e][s])}}}relocate(t=0,e=!1){if(this._lastW==window.innerWidth)return!0;this._lastW=window.innerWidth;let i=Array.from(this._shadow.$a(this.filterTypes.join(\",\"))),s=this._shadow.$q(\".grid\").offsetWidth/this._shadow.$q(\".grid>*:first-child\").offsetWidth,l=this._shadow.$a(\".grid>*\"),r=0,a=Math.ceil(i.length/s),n=0;for(let h=0;h<i.length;h++)l[r].appendChild(i[h]),n++,n==a&&(n=0,r++),1==t&&(i[h].toggleAttribute(\"exp\",i[h].hasAttribute(\"expanded\")),i[h].toggleAttribute(\"expanded\",i[h].value.length||s>1),e&&i[h].store()),2==t&&(i[h].toggleAttribute(\"expanded\",i[h].hasAttribute(\"exp\")),i[h].removeAttribute(\"exp\"),e&&i[h].restore())}}Object.defineProperty(bmCatalogueFiltersElement,\"observedAttributes\",{get:()=>[\"total\",\"selected-filters-count\"]});"},"bm-catalogue-items":{"stylesheet":":host{display:block}","template":".","code":"class bmCatalogueItemsElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this)}connectedCallback(){null!==this.getAttribute(\"animate-items\")&&(this.observer=new IntersectionObserver(((e,t)=>{e[0].isIntersecting&&(this.animateItems(),t.unobserve(e[0].target))}),{threshold:.1}).observe(this))}animateItems(){const e=this.querySelectorAll(\"bm-item-cell\");let t=-1;!function s(){if(t++,t===e.length)return;e[t].classList.add(\"animate\"),setTimeout((()=>{s()}),200)}()}attributeChangedCallback(e,t,s){e.toLowerCase()}}Object.defineProperty(bmCatalogueItemsElement,\"observedAttributes\",{get:()=>[]});"},"bm-catalogue-menu":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}:host{display:block}:host button::before{content:\"\";display:inline-block;width:18px;height:14px;background:transparent var(--ico-burger-white) center center no-repeat;background-size:contain;margin-right:17px;vertical-align:middle}@media screen and (max-width:1279px){:host{margin-right:0;display:flex;align-items:center}:host button::before{display:none}:host button[bm-type=default]{position:relative;border:none;cursor:pointer;font-size:0;line-height:0;color:transparent;padding:0;width:30px;height:30px;background:transparent var(--ico-burger-black) center center no-repeat}}","template":"<button bm-type=\"default\">Каталог</button>","code":"class bmCatalogueMenuElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.firstShown=!0,this._shown=!1;let t=$c(\"div\");t.classList.add(\"-catalogue-menu-overlay\"),this.$q(\"ul\").classList.add(\"-root\");let e=$c(\"a\");e.classList.add(\"-close-menu\"),e.addEventListener(\"click\",(t=>{this.removeAttribute(\"shown\")})),t.appendChild(e),t.appendChild(this.$q(\"ul\").cloneNode(!0)),this.menuContainer=t,this._shadow.$q(\"button\").addEventListener(\"click\",(t=>{this.toggleAttribute(\"shown\")})),window.addEventListener(\"resize\",(t=>this.resizeCallback())),this.menuContainer.$a(\"li[icon]\").forEach((t=>{let e=t.getAttribute(\"icon\")-1;t.setAttribute(\"ix\",e%10),t.setAttribute(\"iy\",Math.floor(e/10))})),this.menuContainer.$a(\"ul.-root>li>ul\").forEach((t=>{t.parentNode.classList.add(\"-expandable\"),t.setAttribute(\"bm-title\",t.parentNode.$q(\"a\").textContent),t.addEventListener(\"click\",(t=>{t.path||(t.path=t.composedPath()),\"ul\"==t.path[0].tagName.toLowerCase()&&t.path[0].hasAttribute(\"bm-title\")&&t.path[1].removeAttribute(\"bm-expanded\")}))})),this.menuContainer.$a(\"ul.-root>li>ul>li>ul\").forEach((t=>{let e=t.$q(\"li\").offsetHeight;0>=e&&(e=34);var i=0;t.$a(\"li:not(.-service)\").forEach((t=>{let e=t.offsetHeight;0>=e&&(e=34),t.classList.contains(\"delimiter\")&&(e=18),i+=e}));t.$a(\"li:not(.-service)\");let n=i/2;t.style.height=`${n}px`,t.setAttribute(\"bm-expanded\",1)})),this.menuContainer.addEventListener(\"scroll\",(t=>{let e=this.menuContainer.$a(\".-root>li>ul\"),i=t.target.scrollTop;e.forEach((t=>{t.style.top=`${i}px`,t.style.height=`calc(100% - ${i+40}px)`}))}),{passive:!0}),this.menuContainer.$a(\"ul.-root>li>a\").forEach((t=>{t.addEventListener(\"click\",(t=>{let e=t.target.parentNode;return!e.classList.contains(\"-expandable\")||(t.preventDefault(),e.hasAttribute(\"bm-expanded\")?e.removeAttribute(\"bm-expanded\"):(this.menuContainer.$a(\"ul.-root>li[bm-expanded]\").forEach((t=>t.removeAttribute(\"bm-expanded\"))),e.setAttribute(\"bm-expanded\",1)),!1)}))}))}connectedCallback(){}attributeChangedCallback(t,e,i){switch(t.toLowerCase()){case\"caption\":this._shadow.$q(\"button\").textContent=i;break;case\"shown\":null==i?this.close():this.open()}}open(){this.firstShown&&(this.$q(\"ul\").remove(),this.firstShown=!1),$q(\"body\").appendChild(this.menuContainer),$q(\"html\").classList.add(\"-no-scroll\"),$q(\"html\").scrollTop=0,$q(\"body\").scrollTop=0,this._shown=!0,this.resizeCallback()}close(){this.menuContainer.$a(\"ul.-root>li[bm-expanded]\").forEach((t=>{t.removeAttribute(\"bm-expanded\")})),this.menuContainer.$a(\"ul.-root>li[style]\").forEach((t=>t.removeAttribute(\"style\"))),this.menuContainer&&$q(\"body\").removeChild(this.menuContainer),$q(\"html\").classList.remove(\"-no-scroll\"),this._shown=!1}resizeCallback(){let t=$q(\"main\").getBoundingClientRect(),e=$q(\"body>header\").getBoundingClientRect(),i=$q(\"header a.-logo\").getBoundingClientRect(),n=e.height;$q(\"#header-information\")&&(n+=$q(\"#header-information\").getBoundingClientRect().height),$q(\"bm-warning\")&&$a(\"bm-warning\").forEach((t=>{n+=t.getBoundingClientRect().height})),this.menuContainer.style.left=`${t.left}px`,this.menuContainer.style.top=`${t.top}px`,this.menuContainer.style.width=`${t.width}px`,this.menuContainer.style.height=window.innerHeight-n+\"px\";let o=window.innerWidth>747?i.left-t.left+\"px\":\"\";this.menuContainer.$a(\".-root\").forEach((t=>{t.style.paddingLeft=o}))}}Object.defineProperty(bmCatalogueMenuElement,\"observedAttributes\",{get:()=>[\"caption\",\"shown\"]});"},"bm-catalogue-order":{"stylesheet":":host{display:flex;align-items:center;justify-content:space-between}.order-list{position:relative;display:flex;align-items:flex-start;justify-content:flex-start}.order-list .title{font:var(--font-catalogue-tool);color:var(--color-default);padding:14px 20px 14px 0;user-select:none;border:2px solid transparent;white-space:nowrap}:host(:not([collapsed])) .order-list .title::after{content:\":\"}:host([collapsed]) .order-list .title{cursor:pointer;padding:14px 40px 14px 20px;margin-left:-20px}:host([collapsed]) .order-list .title::after{position:relative;display:inline-block;content:\"\";background:transparent var(--ico-filter-expander) center center no-repeat;width:24px;height:24px;vertical-align:middle;transform:rotate(90deg)}.order-list ul{display:flex;padding:14px 0;align-items:center;justify-content:flex-start;white-space:nowrap;list-style:none;margin:2px 0 0 0;font:var(--font-catalogue-order)}:host([collapsed]) .order-list ul{display:none}.order-list ul li{padding-right:20px;color:var(--color-item-disabled);cursor:pointer}.order-list ul li[selected]:not(:hover){color:inherit}.order-list ul li>a{color:inherit;text-decoration:none;pointer-events:none}.order-list ul li:hover{color:var(--color-hover-link)}:host([collapsed][expanded]) .order-list .title{border-color:var(--color-default);border-radius:5px}:host([collapsed][expanded]) .order-list ul{position:absolute;left:-20px;top:100%;display:flex;flex-direction:column;z-index:100;background:var(--background-select-list);color:var(--color-select-list);align-items:flex-start;border-radius:5px;box-shadow:0 3px 5px rgba(0,0,0,.2);font:var(--font-header-icon);padding:0;max-height:350px;overflow:auto}:host([collapsed][expanded]) .order-list ul li{padding:14px 40px 8px 20px;color:var(--color-select-list);width:calc(100% - 60px);border-bottom:1px solid var(--color-separator-line)}:host([collapsed][expanded]) .order-list ul li::last-of-type{border-bottom:none}:host([collapsed][expanded]) .order-list ul li:hover{background-color:var(--background-select-hover)}:host([collapsed][expanded]) .order-list ul li[selected]{background-color:var(--background-select-hover);color:var(--color-select-selected)}.view-mode{display:none!important;align-items:center;justify-content:flex-start}.view-mode::before{content:\"Вид:\";font:var(--font-catalogue-tool)}.view-mode button{background:transparent none center center no-repeat;border:none;width:20px;height:20px;margin-left:10px;padding:0;cursor:pointer}.view-mode button[type=list]{background-image:var(--ico-cat-view-list)}.view-mode button[type=table]{background-image:var(--ico-cat-view-table)}.view-mode button:not([selected]){filter:grayscale(1) brightness(240%)}@media screen and (max-width:747px){:host([collapsed]) .order-list .title{padding:5px 25px 5px 10px}.view-mode::before{display:none}}","template":"<div class=\"order-list\"><div class=\"title\"></div><ul></ul></div><div class=\"view-mode\"> <button type=\"table\" selected></button> <button type=\"list\"></button></div>","code":"class bmCatalogueOrderElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.render(),this._service=!1,this.observer=new MutationObserver(((e,t)=>this.setByObserve(e))),this.observer.observe(this.$q(\"ul\"),{childList:!0,subtree:!0,attributes:!0}),window.addEventListener(\"resize\",(e=>this.resizeCallback())),window.addEventListener(\"fonts:ready\",(e=>this.resizeCallback()),{once:!0}),this._shadow.$q(\".title\").addEventListener(\"click\",(e=>{this.toggleAttribute(\"expanded\")})),this._shadow.$a(\".view-mode button\").forEach((e=>{e.addEventListener(\"click\",(e=>{let t=e.target;t.parentNode.$a(\"*[selected]\").forEach((e=>e.removeAttribute(\"selected\"))),t.toggleAttribute(\"selected\"),this.closest(\"bm-catalogue\").toggleAttribute(\"view-list\",\"list\"==t.getAttribute(\"type\"))}))}))}get value(){return`${this._shadow.$q(\"li[selected]\").getAttribute(\"value\")}:${this._shadow.$q(\"li[selected]\").hasAttribute(\"desc\")?\"desc\":\"asc\"}`}attributeChangedCallback(e,t,i){if(\"caption\"===e.toLowerCase())this._shadow.$q(\".title\").textContent=i}render(){let e=this._shadow.$q(\"ul\"),t=this.$q(\"ul\");e.innerHTML=\"\",t.$a(\"li\").forEach((t=>{let i=t.cloneNode(!0);e.appendChild(i),i.addEventListener(\"click\",(e=>{let t=e.target;t.hasAttribute(\"selected\")&&t.toggleAttribute(\"desc\"),t.parentNode.$a(\"*[selected]\").forEach((e=>e.removeAttribute(\"selected\"))),t.toggleAttribute(\"selected\"),this._service=!0,this.$q(\"*[selected]\").removeAttribute(\"selected\");let i=this.$q(`li[value=\"${t.getAttribute(\"value\")}\"]`);i.toggleAttribute(\"selected\"),i.toggleAttribute(\"desc\",t.hasAttribute(\"desc\")),this._service=!1;let s=!1;t.$q(\"a\")&&(s=t.$q(\"a\").getAttribute(\"href\")),this.dispatcher.sendEvent(\"change\",{url:s,global:0},this),this.removeAttribute(\"expanded\")}))}))}resizeCallback(){this.removeAttribute(\"collapsed\");let e=this._shadow.$a(\"li\"),t=window.innerWidth-this.closest(\"bm-catalogue\").$q(\"bm-catalogue-filters\").getBoundingClientRect().width-this._shadow.$q(\".title\").getBoundingClientRect().width-this._shadow.$q(\".view-mode\").getBoundingClientRect().width-50,i=0;e.forEach((e=>i+=e.getBoundingClientRect().width)),this.toggleAttribute(\"collapsed\",i>t),this.removeAttribute(\"expanded\")}setByObserve(e,t){if(this._service)return!1;this.render()}}Object.defineProperty(bmCatalogueOrderElement,\"observedAttributes\",{get:()=>[\"caption\"]});"},"bm-catalogue-selections":{"stylesheet":":host{font:var(--font-catalogue-selections);display:block;user-select:none}.items{position:relative;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;padding-bottom:20px}.items>span{position:relative;padding:10px 15px 0 0;display:block}:host(:not([expanded])) .items>span{display:none;overflow:hidden}:host(:not([expanded])) .items>span:not([data-line]){display:block}:host(:not([expanded])) .items>span[data-line=\"0\"],:host(:not([expanded])) .items>span[data-line=\"1\"],:host(:not([expanded])) .items>span[data-line=\"2\"]{display:block;height:auto}.items>span a{display:block;position:relative;background:var(--background-input-field);color:var(--color-default);padding:0 12px;border-radius:5px;text-decoration:none}.items>span a::after{display:inline-block;content:attr(count);color:var(--color-hover-link);opacity:.3;padding-left:4px}.items>span[selected] a{background:var(--background-button-default);color:var(--color-button-default)}.items>span[selected] a::after{color:var(--color-item-disabled);opacity:1}button{display:inline-block;border:none;order:100;background:transparent var(--ico-catalogue-selections-more) right calc(50% + 6px) no-repeat;color:var(--color-hover-link);font:var(--font-catalogue-menu-subheader);padding:10px 20px 0 0;cursor:pointer}button[hidden]{pointer-evetns:none;visibility:hidden!important}:host([expanded])>button{color:transparent;display:inline-block;position:relative;transform:rotate(180deg) translateX(20px);top:5px;background-position:left center}:host([expanded]) button::before{transform:rotate(180deg);position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-hover-link);content:\"Свернуть\"}@media screen and (max-width:747px){.items{padding-bottom:0}}","template":"<slot></slot>","code":"class bmCatalogueSelectionsElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.currentWidth=-1,this.started=!1,this.$a(\"li\").forEach((e=>this.setListener(e))),this.showMore=$c(\"button\"),this.showMore.toggleAttribute(\"hidden\",1),this._shadow.append(this.showMore),this.resizeCallback(),window.addEventListener(\"resize\",(e=>this.resizeCallback())),window.addEventListener(\"fonts:ready\",(e=>this.resizeCallback()),{once:!0}),this.contentsObserver=new MutationObserver(((e,t)=>this.observer(e))),this.contentsObserver.observe(this.$q(\"ul\"),{childList:!0,subtree:!0,attributes:!0}),this._shadow.$q(\"button\").addEventListener(\"click\",(e=>this.toggleAttribute(\"expanded\")))}get value(){let e=this.$a(\"li[selected]\"),t=[];return e.forEach((e=>t.push(e.getAttribute(\"key\")))),t.join(\",\")}connectedCallback(){const e=this.$q(\".dummy\");e&&e.remove();const t=this.$q(\"ul\");this.showMore.toggleAttribute(\"hidden\",!(t&&t.clientHeight<t.scrollHeight)),this.getAttribute(\"more\")||this.toggleAttribute(\"expanded\")}attributeChangedCallback(e,t,s){switch(e.toLowerCase()){case\"more\":this._shadow.$q(\"button\").innerHTML=s;break;case\"expanded\":this.resizeCallback(!0)}}async resizeCallback(e){if(e)return;const t=this.$q(\"ul\");this.showMore.toggleAttribute(\"hidden\",!(t&&t.clientHeight<t.scrollHeight))}setListener(e){if(1==e.dataset.i)return!0;e.addEventListener(\"click\",(e=>{if(this.hasAttribute(\"nojump\"))return e.preventDefault(),e.target.parentNode.toggleAttribute(\"selected\"),this.dispatcher.sendEvent(\"change\",{url:e.target.getAttribute(\"href\"),global:0},this),!1})),e.dataset.i=1}observer(e){for(let t=0;t<e.length;t++){let s=e[t];s.target;if(\"childList\"===s.type)this.$a(\"li\").forEach((e=>this.setListener(e)))}this.resizeCallback()}}Object.defineProperty(bmCatalogueSelectionsElement,\"observedAttributes\",{get:()=>[\"more\",\"expanded\"]});"},"bm-cell-item":{"stylesheet":":host{display:block}:host *{margin:0;padding:0}.cell-content:not(:last-child){margin-bottom:13px}.cell{display:flex;justify-content:space-between;margin-bottom:11px;font-weight:600;font-size:12px;line-height:150%;color:#101110}:host([total]) .right-part{font-weight:400}","template":"<div class=\"cell\"><p class=\"name\">Ячейка<span class=\"value\"></span></p><div class=\"cell\" style=\"margin-bottom: 0;\"><p class=\"right-part\"><span class=\"count\">25</span> <span class=\"tovar\">товаров</span></p><div class=\"action-print-wrapper\" style=\"margin-left: 10px; margin-right: 10px;\"> <img class=\"action-print\" src=\"/components/bm-good-item/images/printer.svg\" data-src=\"/components/bm-good-item/images/printer.svg\" data-selected-src=\"/components/bm-good-item/images/printer-selected.svg\"> </img></div></div></div><slot></slot>","code":"class bmCellItemElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners(),this._firstRender(),this._observers()}_observers(){new MutationObserver(this.handleGoodListContentChange).observe(this.$q(\".good-list\"),{childList:!0})}connectedCallback(){this.handleGoodListContentChange([{target:this.$q(\".good-list\")}])}getArticles(){let t=[];return this.$a(\"bm-good-item\").forEach((e=>{t.push(e.getAttribute(\"article\"))})),t}handleGoodListContentChange=t=>{const e=t[0].target.querySelectorAll(\".good-list-item\").length;this.setAttribute(\"count\",e),this.el.count.innerHTML=e,this.el.tovar.innerHTML=this._getTovar(e)};_getTovar(t){return t>4?\"товаров\":t>1?\"товара\":1===t?\"товар\":void 0}_initVariables(){this.el={cellName:this._shadow.$q(\".value\"),count:this._shadow.$q(\".count\"),tovar:this._shadow.$q(\".tovar\"),printButton:this._shadow.$q(\".action-print\")},this.lightDOM={},this.shadowDOM={},this.state={},this.dev={},this._shadow}_addEventListeners(){this.customEvents={print:new CustomEvent(\"print\",{detail:this})},this.addEventListener(\"slotchange\",(()=>{console.log(\"slotchange\")})),this.el.printButton.addEventListener(\"click\",(()=>{this.dispatchEvent(this.customEvents.print)}))}_firstRender(){}attributeChangedCallback(t,e,s){switch(t.toLowerCase()){case\"name\":this.el.cellName.innerHTML=s;break;case\"count\":this.el.count.innerHTML=s,this.el.tovar.innerHTML=this._getTovar(Number(s))}}}Object.defineProperty(bmCellItemElement,\"observedAttributes\",{get:()=>[\"name\",\"count\",\"number\"]});"},"bm-characteristics":{"stylesheet":":host{position:relative;display:block;margin-bottom:20px}ul{margin:0;padding:0;list-style:none}:host([type=order-small]) ul,:host([type=order]) ul{user-select:none}li{padding:6px 0;display:flex;align-items:flex-end;justify-content:flex-start;border-bottom:1px dashed var(--color-separator-line)}li[hidden]{display:none}:host([type=order]) ul{margin-bottom:50px}:host([type=order]) li{margin:15px 0}li>*{transform:translateY(8px)}:host(:not([type=order]):not([type=order-small]):not([large]):not([warning]):not([header])) li:hover{color:var(--color-hover-link);cursor:default}li span:first-of-type{display:flex;font:var(--font-catalogue-menu-default);flex-shrink:0;background:var(--background-default);padding-right:4px;max-width:60%}li span:nth-of-type(2){font:var(--font-catalogue-menu-normal);text-align:right;max-width:60%}:host([large]) li span:first-of-type{font:var(--font-texts);font-weight:500}:host([large]) li:last-child span:nth-of-type(2){font:var(--font-item-page-price)}:host([large]) li:last-child span:nth-of-type(2)>*{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}:host([large]) li:last-child span:nth-of-type(2)>*>*{font:inherit}:host([large]) li:last-child span:nth-of-type(2)>*>:first-child:not(:last-child){text-decoration:line-through;font-size:.575em}:host([large]) li:last-child span:nth-of-type(2)>*>:last-child:not(:first-child){color:var(--color-item-cell-price)}:host([type=order]) li span:nth-of-type(2){font:var(--font-item-cell-price)}:host([type=order]) li:last-child span:nth-of-type(2){font:var(--font-item-page-price)}:host([type=order-small]) li span:nth-of-type(2){font:var(--font-texts);font-weight:500}:host([type=order-small]) li:last-child span:nth-of-type(2){font:var(--font-cat-title);font-size:1.5em;position:relative;top:-4px}:host([type=order]) li:last-child{margin-top:-15px}li span:nth-of-type(2) em{background:var(--background-default);font:inherit}li[changed] span:nth-of-type(2) em{color:var(--color-ok)}li span:nth-of-type(2) em u{text-decoration:none;color:var(--color-item-disabled);font-size:.8em}li span:nth-of-type(2) em bm-link{display:inline-block;font:var(--font-breadscrumbs);background:var(--background-button-default);color:var(--color-button-default);padding:5px;border-radius:3px;cursor:pointer;margin-right:6px;position:relative;z-index:5}li span:nth-of-type(2) em bm-link.done{background:var(--color-item-disabled);pointer-events:none!important}li[warning]{font-weight:400;background-color:var(--color-warning-soft);margin-top:4px;margin-inline-start:-8px;margin-inline-end:-8px;padding:4px 8px;border:none;font:var(--font-catalogue-menu-normal)}li[header]{margin-top:4px;margin-inline-start:-8px;margin-inline-end:-8px;padding:4px 8px;margin-top:30px;border:none;font:var(--font-catalogue-menu-normal);font-weight:500;font-size:1.1em}li i{flex-grow:1;min-width:20px}a.show-more{display:inline-block;position:relative;color:var(--color-hover-link);font:var(--font-catalogue-menu-subheader);text-decoration:none;margin-top:15px;cursor:pointer}a.show-more::after{content:\"\";position:relative;display:inline-block;width:20px;height:20px;background:transparent var(--ico-catalogue-expander) center center no-repeat;vertical-align:middle;transform:rotate(90deg);margin-left:5px}.-toggle{text-decoration:none;display:inline-block;font:var(--font-texts);padding-right:22px;background:transparent var(--ico-catalogue-selections-more) right center no-repeat;line-height:30px;color:var(--color-hover-link);margin-top:12px}.-toggle[hidden]{display:none}","template":"<ul></ul> <a href='#' class='-toggle'>Показать еще</a>","code":"class bmCharacteristicsElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.render(),this.expanded=!1,this.contentsObserver=new MutationObserver(((t,e)=>this.render())),this.contentsObserver.observe(this,{childList:!0,subtree:!0,attributes:!0}),this.observer=new MutationObserver(((t,e)=>this.render())),this.observer.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),this._shadow.$q(\".-toggle\").addEventListener(\"click\",(t=>(t.preventDefault(),this.expanded=!0,this.render(),!1)))}attributeChangedCallback(t,e,i){if(\"show-tab\"===t.toLowerCase()){let t=this._shadow.$q(\"a.show-more\");t&&t.remove();let e=$c(\"a\"),s=0,r=\"\";\"string\"==typeof i&&(i.match(/\\:/)?[s,r]=i.split(\":\"):s=Number(i)),e.classList.add(\"show-more\"),e.textContent=r,this._shadow.appendChild(e),e.addEventListener(\"click\",(t=>this.closest(\"bm-tab-view\").show(s)))}}render(){let t=this.$a(\"li,div\"),e=!1;this._shadow.$q(\"ul\").innerHTML=\"\",t.forEach((t=>{let i=$c(\"li\");if(this.expanded||!t.hasAttribute(\"hidden\")&&\"bm-spoiler\"!=t.parentNode.tagName.toLowerCase()||(i.toggleAttribute(\"hidden\",1),e=!0),i.toggleAttribute(\"changed\",t.hasAttribute(\"changed\")),t.hasAttribute(\"warning\"))i.setAttribute(\"warning\",\"\"),i.innerHTML=t.innerHTML;else if(t.hasAttribute(\"header\"))i.setAttribute(\"header\",\"\"),i.innerHTML=t.innerHTML;else{let e=`<span>${t.getAttribute(\"caption\")||\"\"}</span><i></i><span><em>${t.innerHTML}</em></span>`;t.hasAttribute(\"hintBalloon\")&&(e=`\\n                        <span>${t.getAttribute(\"caption\")||\"\"}<bm-balloon-tooltip hintBalloon='${t.getAttribute(\"hintBalloon\")}'></bm-balloon-tooltip></span>\\n                        <i></i>\\n                        <span><em>${t.innerHTML}</em></span>`),i.innerHTML=e}this._shadow.$q(\"ul\").appendChild(i)})),\"order\"==this.getAttribute(\"type\")&&(e=!1),this._shadow.$q(\".-toggle\").toggleAttribute(\"hidden\",!e)}}Object.defineProperty(bmCharacteristicsElement,\"observedAttributes\",{get:()=>[\"show-tab\"]});"},"bm-checkbox":{"stylesheet":":host(:not([type=block])){display:inline-block}:host([type=block]){display:table;box-sizing:border-box;border:2px solid var(--color-input-border);border-radius:5px;table-layout:fixed}:host([type=inline]){display:inline-table;box-sizing:border-box;border:2px solid var(--color-input-border);border-radius:5px;text-align:center}label{display:flex;align-items:flex-start;justify-content:flex-start;cursor:pointer}label input[type=checkbox]{opacity:0;width:0;height:0;position:absolute}label input[type=checkbox]+span{position:relative;padding-left:30px;background:transparent var(--ico-checkbox-empty) left top no-repeat}label input[type=checkbox]:checked+span{background-image:var(--ico-checkbox)}:host([type=block]) label,:host([type=inline]) label{display:table-row;position:relative;box-sizing:border-box;width:100%;height:100%;font:var(--font-checkbox-block)}:host([type=inline]) label{display:table-cell}:host([type=inline]) label slot{padding:10px;display:block;font:var(--font-item-info)}:host([group=userTime]) label slot{height:calc(100% - 20px);display:flex;align-items:center;justify-content:center}:host([type=block][checked]) label,:host([type=inline][checked]) label{color:var(--color-hover-link)}:host([type=block][checked]),:host([type=inline][checked]){border-color:var(--color-input-border-focus);box-shadow:0 3px 6px rgba(0,0,0,.3)}:host([type=block]) label>*{display:table-cell;padding:18px 0;vertical-align:middle}:host([type=block]) label .checkbox{width:20px;padding:18px 18px 0 18px;overflow:hidden;vertical-align:top}:host([type=block]) label input[type=checkbox]:not(:checked)+span{filter:grayscale(1) opacity(.5)}:host([type=block][bm-var=delivery]) label .icon,:host([type=block][bm-var=pickup]) label .icon{width:20px;padding:18px 24px 18px 18px;background:transparent var(--ico-item-pickup) 18px 20px no-repeat}:host([type=block][bm-var=delivery]) label .icon{background-image:var(--ico-item-delivery)}:host(:not([bm-var])) label .icon{display:none}:host(:not([bm-var])) label .text{padding-left:18px;vertical-align:top}:host([type=block][checked]) label .icon{filter:hue-rotate(4deg) saturate(1.65) brightness(1.38)}:host([type=block]) label .text strong{display:block;font:inherit}:host([type=block]) label .text em{display:block;color:var(--color-second-links);font:var(--font-item-info)}:host([type=block][capbyset]:not([checked])) label .text em{display:none}:host([type=block][capbyset]) label .text em bm-input{height:32px;line-height:32px;width:120px;margin-top:12px}","template":"<label type=\"default\"><input type=\"checkbox\"><span><slot></slot></span></label><label type=\"block\"><div class=\"icon\"></div><div class=\"text\"><strong><slot></slot></strong><em></em></div><div class=\"checkbox\"> <input type=\"checkbox\"><span></span></div></label> <label type=\"inline\"><input type=\"checkbox\"><slot></slot></label>","code":"class bmCheckboxElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.typesTemplate={},this.showOnSetElements=[],this._shadow.$a(\"label[type]\").forEach((e=>{let t=e.getAttribute(\"type\"),s=`<label type=\"${t}\">${e.innerHTML}</label>`;this.typesTemplate[t]=s})),this.observer=new MutationObserver(((e,t)=>this.render())),this.observer.observe(this,{childList:!0,subtree:!0,characterData:!0}),this.render()}get checked(){return this._shadow.$q(\"input\").hasAttribute(\"checked\")}get value(){if(this.hasAttribute(\"group\")){let e=this.getAttribute(\"group\"),t=$q(`bm-checkbox[group=\"${e}\"][checked]`);return t||(t=this.parentNode.$q(`bm-checkbox[group=\"${e}\"][checked]`)),!!t&&(t.getAttribute(\"value\")||1)}return this.getAttribute(\"value\")||1}get fields(){return this._shadow.$a(\"bm-input\")}get selected(){if(this.hasAttribute(\"group\")){let e=this.getAttribute(\"group\"),t=$q(`bm-checkbox[group=\"${e}\"][checked]`);return t||(t=this.parentNode.$q(`bm-checkbox[group=\"${e}\"][checked]`)),t||!1}return this}render(){let e=this.getAttribute(\"type\")||\"default\";this._shadow.$a(\"label\").forEach((e=>e.remove())),this._shadow.innerHTML+=void 0!==this.typesTemplate[e]?this.typesTemplate[e]:\"\",this._shadow.$q(\".text em\")&&(this._shadow.$q(\".text em\").innerHTML=this.getAttribute(\"caption\")),this._shadow.$q(\"input\").addEventListener(\"click\",(e=>{if(this.hasAttribute(\"group\")){let t=$a(`bm-checkbox[group=\"${this.getAttribute(\"group\")}\"]`);t.length||(t=this.parentNode.$a(`bm-checkbox[group=\"${this.getAttribute(\"group\")}\"]`)),t.forEach((t=>{t.removeAttribute(\"checked\"),t.changeOnSetElements(),this.dispatcher.sendEvent(\"change\",{global:0,realClick:e.isTrusted},t)})),this.toggleAttribute(\"checked\",1)}else this.toggleAttribute(\"checked\",e.target.checked);e.target.checked&&this._shadow.$q(\"bm-input\")&&this._shadow.$q(\"bm-input\").focus(),this.changeOnSetElements(),this.dispatcher.sendEvent(\"change\",{global:0,realClick:e.isTrusted},this)})),\"block\"==this.getAttribute(\"type\")&&setTimeout((()=>{let e=this._shadow.$q(\".text strong\").getBoundingClientRect().top-this._shadow.$q(\"label\").getBoundingClientRect().top+6;this._shadow.$q(\".icon\").style.backgroundPositionY=`${e}px`,this._shadow.$q('input[type=\"checkbox\"]').checked=this.hasAttribute(\"checked\")}))}changeOnSetElements(){this.showOnSetElements.forEach((e=>{e.toggleAttribute(\"hidden\",!this.hasAttribute(\"checked\"));const t=e.closest(\"section\");t&&t.toggleAttribute(\"ignore\",!t.$q(\"bm-checkbox:not([hidden])\"))}))}attributeChangedCallback(e,t,s){switch(e.toLowerCase()){case\"checked\":this._shadow.$q('input[type=\"checkbox\"]').checked=null!==s,this.dispatcher.sendEvent(\"change\",{global:0,realClick:!1},this);break;case\"disabled\":this._shadow.$q(\"input\").toggleAttribute(\"disabled\",null!==s);break;case\"type\":this.render();break;case\"caption\":this._shadow.$q(\".text em\").innerHTML=s||\"\";break;case\"show-on-set\":void 0===s||\"\"==s.trim()?this.showOnSetElements=[]:this.showOnSetElements=Array.from($a(s)),this.changeOnSetElements()}}}Object.defineProperty(bmCheckboxElement,\"observedAttributes\",{get:()=>[\"checked\",\"disabled\",\"type\",\"caption\",\"group\",\"show-on-set\"]});"},"bm-combobox":{"stylesheet":":host{display:block;position:relative}:host([loading])::after{content:'';width:37px;height:37px;background:url(/components/bm-combobox/loading.svg);position:absolute;top:50%;transform:translateY(-50%);right:10px;z-index:1000}bm-expandable-item{z-index:200}:host([no-arrow]) bm-expandable-item::part(caption)::after{content:none}.caption{display:block;border:0 none;width:100%;outline:0}","template":"<bm-expandable-item absolute no-expand-by-click> <input class=\"caption\" autofocus slot=\"caption\" contenteditable placeholder=\"\"></input><div slot=\"content\" style=\"overflow: auto; max-height: calc(37px * 6)\"><slot></slot></ul></div></bm-expandable-item>","code":"class bmComboboxElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners(),this._firstRender()}_firstRender(){this.el.caption.setAttribute(\"placeholder\",this.attr.placeholder)}_initVariables(){this.el={bmExpandableItem:this._shadow.$q(\"bm-expandable-item\"),caption:this._shadow.$q(\".caption\"),items:()=>this.$a(\"li\")},this.attr={placeholder:this.getAttribute(\"placeholder\"),index:this.getAttribute(\"index\")||0,expanded:()=>this.hasAttribute(\"expanded\")},this.customEvents={change:e=>new CustomEvent(\"change\",{detail:e}),keydown:e=>new CustomEvent(\"input:keydown\",{detail:e})},this.lightDOM={},this.shadowDOM={},this.state={items:null},this.dev={}}_addEventListeners(){[...this.el.items()].forEach((e=>e.addEventListener(\"click\",this.handleItemClick))),this.el.caption.addEventListener(\"input\",this.handleCaptionKeydown)}handleCaptionKeydown=e=>{this.dispatchEvent(this.customEvents.keydown({value:e.target.value}))};createItemList=e=>{const t=`\\n        <ul class=\"list\">\\n            ${e.map((({id:e,name:t})=>`<li uid=${e} class=\"item\">${t}</li>`)).join(\"\")}\\n        </ul>\\n        `;this.innerHTML=t,[...this.el.items()].forEach((e=>e.addEventListener(\"click\",this.handleItemClick)))};handleItemClick=e=>{const t=[...this.el.items()].indexOf(e.target);this.setAttribute(\"index\",t),this.el.items()[t].setAttribute(\"selected\",\"\");const i=this.el.items()[t].getAttribute(\"uid\"),s=this.el.items()[t].innerText;this.dispatchEvent(this.customEvents.change({index:t,id:i,name:s})),this.el.bmExpandableItem.hide()};connectedCallback(){this.el.items().length?this.el.items()[0].setAttribute(\"selected\",\"\"):this.el.caption.innerHTML=this.attr.placeholder}addItems(e){this.innerHTML=`\\n            <ul class=\"list\">\\n              ${Object.keys(e).map((t=>`<li uid=${t} class=\"item\">${e[t]}</li>`)).join(\"\")}\\n            </ul>\\n        `,this._addEventListeners(),this.el.items().length&&(this.el.caption.innerHTML=this.el.items()[this.attr.index].innerHTML,this.el.items()[this.attr.index].setAttribute(\"selected\",\"\"))}getSelectedItem(){return this.state.selectedItem}getSelectedItemId(){return this.state}getSelectedItemName(){return this.state.selectedItem[this.getSelectedItemId]}get value(){return this.el.bmExpandableItem.value()}show=()=>{this.el.bmExpandableItem.show()};hide=()=>{this.el.bmExpandableItem.hide()};attributeChangedCallback(e,t,i){switch(e.toLowerCase()){case\"index\":this.el.items().length&&(this.el.caption.value=this.el.items()[i].innerHTML);break;case\"expanded\":this.attr.expanded()?this.el.bmExpandableItem.setAttribute(\"expanded\",\"\"):this.el.bmExpandableItem.removeAttribute(\"expanded\")}}}Object.defineProperty(bmComboboxElement,\"observedAttributes\",{get:()=>[\"index\",\"expanded\"]});"},"bm-contacts-block":{"stylesheet":".-max,.-telegram,.-whatsapp{cursor:pointer;display:inline-block;vertical-align:baseline;margin-right:16px;text-decoration:none;color:inherit}.-max::before,.-telegram::before,.-whatsapp::before{content:\"\";display:inline-block;vertical-align:middle;background:transparent center center no-repeat;width:16px;height:16px;margin-right:8px;position:relative;top:-2px}.-whatsapp::before{background-image:var(--ico-whatsapp)}.-telegram::before{background-image:var(--ico-tg-blue);background-size:contain}.-max::before{background-image:var(--ico-max-blue);background-size:contain}@media screen and (max-width:1279px){:host.show .-max,:host.show .-telegram,:host.show .-whatsapp{display:inline-block}}","template":"<a href=\"\" class=\"-telegram\" target=\"_blank\">Telegram</a> <a href=\"\" class=\"-max\" target=\"_blank\">MAX</a><slot></slot>","code":"class bmContactsBlockElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this)}attributeChangedCallback(t,e,s){switch(t.toLowerCase()){case\"wa-deprecated\":this._shadow.$q(\".-whatsapp\")&&(this._shadow.$q(\".-whatsapp\").toggleAttribute(\"visible\",null!==s),this._shadow.$q(\".-whatsapp\").setAttribute(\"href\",`https://wa.me/${s.replace(/\\D/g,\"\")}`));break;case\"te\":this._shadow.$q(\".-telegram\")&&(this._shadow.$q(\".-telegram\").toggleAttribute(\"visible\",null!==s),this._shadow.$q(\".-telegram\").setAttribute(\"href\",`https://t.me/${s}`));break;case\"max\":this._shadow.$q(\".-max\")&&(this._shadow.$q(\".-max\").toggleAttribute(\"visible\",null!==s),this._shadow.$q(\".-max\").setAttribute(\"href\",`https://max.ru/u/${s}`))}}}Object.defineProperty(bmContactsBlockElement,\"observedAttributes\",{get:()=>[\"wa\",\"te\",\"max\"]});"},"bm-container":{"stylesheet":"","template":"","code":"class bmContainerElement extends HTMLElement{constructor(){super()}connectedCallback(){Array.from(this.children).forEach((e=>{this.parentElement.insertBefore(e,this)})),this.remove()}}"},"bm-context":{"stylesheet":":host{position:fixed;z-index:10005;background:var(--background-default);color:var(--color-default);border-radius:5px;box-shadow:0 3px 6px rgba(0,0,0,.2)}:host([type=basket-list]){max-height:360px;overflow-y:auto}:host([type=basket-list]) .basket-list{position:relative;list-style:none;margin:0;padding:0}:host([type=basket-list]) .basket-list[preloader]{pointer-events:none!important;opacity:.75}:host([type=basket-list]) .basket-list li{font:var(--font-default);padding:10px 40px;min-width:150px;white-space:nowrap;cursor:pointer;background:transparent var(--ico-basket-header) 15px 12px no-repeat;background-size:16px;position:relative}:host([type=basket-list]) .basket-list li[basket-id=\"-1\"]{background-image:var(--ico-plus);background-size:14px}:host([type=basket-list]) .basket-list li[current]::after{position:absolute;content:\"\";right:0;top:0;width:30px;height:100%;background:transparent var(--ico-tick) center center no-repeat}:host([type=basket-list]) .basket-list[preloader] li[current]::after{background-image:var(--preloader);background-size:18px}:host([type=basket-list]) .basket-list li:hover{background-color:var(--background-input-field)}:host([type=basket-list]) .basket-list li:not(:last-child){border-bottom:1px solid var(--color-separator-line)}:host([type=basket-list]) .basket-list li span{display:block}:host([type=basket-list]) .basket-list li span.caption{color:var(--color-default);font:var(--font-breadscrumbs)}:host([type=basket-list]) .basket-list li span.caption:empty{display:none}:host([type=basket-list]) .basket-list li span.content{color:var(--color-default);font:var(--font-item-cell-price)}:host([type=basket-list]) .basket-list li span.count{color:var(--color-breadscrumbs);font:var(--font-breadscrumbs)}:host([type=basket-list]) .basket-list li[basket-id=\"-1\"] span.count{display:none}:host([type=basket-list]) .basket-list li[basket-id=\"-1\"] span.content{color:var(--color-select-selected);font:var(--font-footer-menu)}","template":"<ul class=\"basket-list\"></ul>","code":"class bmContextElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.contentsObserver=new MutationObserver(((t,e)=>this.observer(t))),this.contentsObserver.observe(this,{childList:!0,subtree:!0,attributes:!0}),this.forElement=!1}connectedCallback(){this.forElement&&this.attachTo(this.forElement)}attributeChangedCallback(t,e,s){t.toLowerCase()}async attachTo(t){this.style.transform=\"translate(0, 0)\",this.style.opacity=0,await bmSite.pause(0);let e=t.getBoundingClientRect(),s=this.getBoundingClientRect(),i=e.left-s.left,r=e.top-s.top+e.height;this.style.transform=`translate(${i}px, ${r}px)`,s=this.getBoundingClientRect(),s.right>window.innerWidth&&(i-=s.right-window.innerWidth+10),s.bottom>window.innerHeight&&(r-=s.bottom-window.innerHeight+10),this.style.transform=`translate(${i}px, ${r}px)`,this.style.opacity=\"\"}setCurrentBasket(t){let e=t.getAttribute(\"basket-id\");t.closest(\"ul\").$q(\"[current]\")&&t.closest(\"ul\").$q(\"[current]\").removeAttribute(\"current\"),t.toggleAttribute(\"current\",1),t.closest(\"ul\").toggleAttribute(\"preloader\",1);let s=\"to-basket\"==this.forElement.getAttribute(\"bm-type\")||\"to-basket\"==this.forElement.getAttribute(\"bm-role\");this.dispatcher.api.post(\"basket:set-current\",{id:e,mode:s?\"put\":\"switch\"}).then((t=>{t.listHTML&&($q('[bm-role=\"basket\"]').innerHTML=t.listHTML),void 0!==t.count&&($q('[bm-role=\"basket\"]').setAttribute(\"bm-sticked\",t.count),$q('[bm-role=\"basket\"]').toggleAttribute(\"bm-sticked\",Boolean(t.count)))})).catch((t=>{bmSite.alert(t.message)})).finally((()=>{t.closest(\"ul\").toggleAttribute(\"preloader\",0),s&&setTimeout((()=>{this.forElement.dispatchEvent(new Event(\"click\")),this.remove()}))}))}observer(t){for(let e=0;e<t.length;e++)if(\"childList\"==t[e].type&&\"basket-list\"===this.type){if(!t[e].addedNodes||!t[e].addedNodes.length)continue;this._shadow.$q(\".basket-list\").textContent=\"\";let s=t[e].addedNodes[0].children;Array.from(s).forEach((t=>{let e=$c(\"li\"),s=t.getAttribute(\"count\")||0;e.setAttribute(\"basket-id\",t.getAttribute(\"basket-id\")),e.toggleAttribute(\"current\",t.hasAttribute(\"current\")),e.innerHTML=`<span class=\"caption\">${t.getAttribute(\"caption\")}</span>\\n                                          <span class=\"content\">${t.innerHTML}</span>\\n                                          <span class=\"count\">${s} товар${bmSite.getSuffix(s,[\"\",\"а\",\"ов\"])}</span>`,e.addEventListener(\"click\",(t=>{this.setCurrentBasket(t.target.closest(\"li\"))})),this._shadow.$q(\".basket-list\").appendChild(e)}))}}}Object.defineProperty(bmContextElement,\"observedAttributes\",{get:()=>[\"type\"]});"},"bm-count":{"stylesheet":":host{display:inline-block;position:relative;user-select:none}:host([detailed]){cursor:pointer}.display{display:block;border:2px solid var(--color-default);border-radius:5px;background:var(--background-default);color:var(--color-default);width:126px;height:46px;text-align:center;font:var(--font-item-cell-default);line-height:46px}:host([supplier][confirmed][ovl]) .display{color:var(--color-ok)}button{position:absolute;top:0;width:40px;height:50px;border:none;cursor:pointer;background-position:center center;background-repeat:no-repeat;background-color:transparent;z-index:5}:host([detailed]) button{pointer-events:none}button[type=plus]{right:0;background-image:var(--ico-plus)}button[type=minus]{left:0;background-image:var(--ico-minus)}button[disabled]{filter:grayscale(1);opacity:.35;pointer-events:none}ul[bm-role=units]{position:relative;display:flex;align-items:center;justify-content:space-between;list-style:none;margin:12px 0 0 0;padding:0;font:var(--font-item-cell-default);color:var(--color-header-sup);min-width:100%}:host([short]) ul[bm-role=units]{display:none!important}ul[bm-role=units] li{cursor:pointer;margin:0 3px}ul[bm-role=units] li[default]{color:var(--color-default)}","template":"<span class=\"display\"></span> <button type=\"minus\"></button> <button type=\"plus\"></button>","code":"class bmCountElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.mode=\"default\",this.contains=!1,this._unit=!1,this._val=1}connectedCallback(){if(this.step||(this.step=1),this.min||0===this.min||(this.min=this.step),this.max||0===this.max||(this.max=10),this._shadow.$a(\"button\").forEach((t=>{t.addEventListener(\"click\",(t=>{this.doStep(\"minus\"==t.target.getAttribute(\"type\")?-1:1),this.dispatcher.sendEvent(\"change\",{global:0},this)}))})),this._checkUnits(),this.render(),this.contentsObserver=new MutationObserver(((t,e)=>this.observer(t))),this.contentsObserver.observe(this,{childList:!0,subtree:!0,attributes:!1}),document.body.classList.contains(\"manager\")){let t=this.getRootNode();if(!t||!t.host||\"bm-item-counter\"!=t.host.tagName.toLowerCase())return!0;t=t.host;let e=t.$q('ul[bm-role=\"contains\"]');if(e){this.contains={},e.$a(\"li\").forEach((t=>{this.contains[t.getAttribute(\"key\")]={name:t.textContent,contains:Number(t.getAttribute(\"contains\"))||0,max:Number(t.getAttribute(\"max\"))||0,is_stall:t.hasAttribute(\"stall\"),is_supplier:t.hasAttribute(\"supplier\")}})),this.mode=\"manager\",this.toggleAttribute(\"detailed\",1),this._shadow.$q(\".display\").addEventListener(\"click\",(()=>this.showDetails(t)))}}}get unit(){return this._unit}get unitVal(){return this._unit?this._shadow.$q(\".display\").textContent:this.value}get calcVal(){let t=Number(this.value),e=this.$q('ul[bm-role=\"units\"] li[base]')||this.$q('ul[bm-role=\"units\"] li[calc]');return e?(t*=this.units[e.getAttribute(\"key\")],t):t}get unitDivider(){let t=this._shadow.$q('ul[bm-role=\"units\"] li[calc]')||this._shadow.$q('ul[bm-role=\"units\"] li[default]')||this._shadow.$q('ul[bm-role=\"units\"] li:first-child');return t?(t=Number(t.getAttribute(\"multiplier\"))||1,this.units[this.unit]/t||1):1}get units(){if(!this._shadow.$q('ul[bm-role=\"units\"]'))return!1;let t={};return this._shadow.$a('ul[bm-role=\"units\"] li').forEach((e=>{t[e.getAttribute(\"key\")]=parseFloat(e.getAttribute(\"multiplier\"))||1})),t}get details(){if(!this.contains)return;let t={},e=this.$q('ul[bm-role=\"units\"] li[calc]');e=e?1*e.getAttribute(\"multiplier\"):1;for(let i in this.contains)t[i]=this.contains[i].contains*e;return t}attributeChangedCallback(t,e,i){if(\"value\"===t.toLowerCase())this._val=this.round(i);this.render()}render(){0!=this.min&&this.min<this.step&&(this.min=this.step),this._shadow.$q('*[type=\"minus\"]').toggleAttribute(\"disabled\",this._val<=0),document.body.classList.contains(\"manager\")&&this._shadow.$q('*[type=\"plus\"]').toggleAttribute(\"disabled\",this._val>=this.max&&!this.hasAttribute(\"supplier\")),this.toggleAttribute(\"ovl\",Number(this._val)>Number(this.max)),this.valToUnit()}round(t){return Number(t)}doStep(t){let e=this.getAttribute(\"group-count\"),i=this.value,s=t*this.step+this._val;if(0!=s||null!==e&&e!=this.step){if(s>this.max)document.body.classList.contains(\"manager\")?this.value=s:(this.value=this.max,this.showMaxLimitModal());else if(this.value=s,null!==e){let i=e;i=+i+t*this.step,this.closest('ul[bm-role=\"places\"]').querySelectorAll(\"bm-count\").forEach((t=>{t.setAttribute(\"group-count\",i)}))}}else bmSite.confirm(\"Удалить товар из корзины?\",\"Да\",\"Нет\").then((()=>{const t=this.getAttribute(\"bm-id\");let e=this.getRootNode().$q('button[bm-role=\"remove\"]')||document.querySelector(`bm-item-counter[bm-id=\"${t}\"]`)._shadow.$q('button[bm-role=\"remove\"]');e&&e.click();let i=document.querySelector(`bm-modal[type=\"detailedcounter\"][bm-id=\"${t}\"]`);i&&i.close()}));Number(this.value)>Number(this.max)&&this.hasAttribute(\"supplier\")&&!this.hasAttribute(\"confirmed\")?bmSite.confirm(\"Поставщику звонили, у него точно есть?\",\"Да, есть, я звонил\",\"Нет\").then((()=>{this.toggleAttribute(\"confirmed\",1),this.render()})).catch((()=>{this.value=i,this.render()})):this.render()}valToUnit(){if(!this.units)return this._shadow.$q(\".display\").textContent=this._val;let t=this.units[this._unit]?this.units[this._unit]*this._val:_val;return t=Math.round(1e3*t)/1e3,this._shadow.$q(\".display\").textContent=t}getUnits(){let t=this._shadow.$q('ul[bm-role=\"units\"]');if(!t)return this._init=!1;t.$a(\"li\").forEach((t=>{t.hasAttribute(\"default\")&&(this._unit=t.getAttribute(\"key\"))})),this.render()}_checkUnits(){let t=this._shadow.$q('ul[bm-role=\"units\"]'),e=this.$q('ul[bm-role=\"units\"]');if(t&&t.remove(),!e)return!0;this._shadow.appendChild(e.cloneNode(!0)),this._shadow.$a('ul[bm-role=\"units\"] li').forEach((t=>{t.addEventListener(\"click\",(t=>{let e=t.target;if(e.hasAttribute(\"default\"))return!1;e.parentNode.$q(\"[default]\").removeAttribute(\"default\"),e.toggleAttribute(\"default\",1),this._unit=e.getAttribute(\"key\"),this.valToUnit(),this.dispatcher.sendEvent(\"change\",{global:0},this)}))})),this.getUnits()}showDetails(t){let e=$c(\"bm-modal\");e.setAttribute(\"type\",\"detailedcounter\"),e.setAttribute(\"bm-id\",t.getAttribute(\"bm-id\")),document.body.appendChild(e),e.addEventListener(\"close\",(t=>{e.remove()}),{once:!0}),e.rooter.setData({article:t.getAttribute(\"bm-id\"),url:t.getAttribute(\"href\"),title:t.getAttribute(\"caption\"),contains:Object.assign({},this.contains),units:this._shadow.$q(\"ul[bm-role='units']\"),step:this.getAttribute(\"step\"),unit:this._shadow.$q(\"ul[bm-role='units']\")?this._shadow.$q(\"ul[bm-role='units'] li[default]\").textContent:\"шт\",onset:t=>{this.value=t.value,Object.assign(this.contains,t.contains),this.render(),this.dispatcher.sendEvent(\"change\",{global:0},this)},onchange:t=>{}}),e.show()}showMaxLimitModal(){let t=$c(\"bm-modal\");t.classList.add(\"-alert\"),t.setAttribute(\"type\",\"info\"),t.addEventListener(\"close\",(e=>{t.remove()}),{once:!0}),t.windowElement.$q(\".window-content\").innerHTML='\\n        <div class=\"alert-content\">\\n            <div>\\n                Вы выбрали максимальное количество —<br/>\\n                больше товара в наличии нет, но свяжитесь<br/>\\n                с нами по телефону <a href=\"tel:+7-495-540-51-52\">+7-495-540-51-52</a><br/>\\n                и мы попробуем найти даже то, чего нет :)\\n            </div>\\n        </div>\\n        <div class=\"footer-buttons\">\\n            <button bm-type=\"default\">OK</button>\\n        </div>\\n        ',document.body.appendChild(t),t.windowElement.$q('button[bm-type=\"default\"]').addEventListener(\"click\",(e=>{t.close()})),t.show()}observer(t){for(let e=0;e<t.length;e++)\"childList\"==t[e].type&&this._checkUnits()}}Object.defineProperty(bmCountElement,\"observedAttributes\",{get:()=>[\"value\",\"min\",\"max\",\"step\"]});"},"bm-credit-frame":{"stylesheet":"*{box-sizing:border-box}:host{width:100%;display:flex;flex-direction:column;align-items:center}:host iframe{width:100%;height:1193px;border:none}:host iframe.mini{height:650px;max-width:650px;border:1px solid #cfcfcf;box-shadow:0 0 14px 0 rgba(3,5,7,.35)}","template":"<iframe title=\"Окно кредитования\"></iframe>","code":"class bmCreditFrameElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.iFrame=this._shadow.$q(\"iframe\"),this.iFrame.setAttribute(\"src\",this.getAttribute(\"iframe-url\")),this.sInt=null}connectedCallback(){localStorage.getItem(\"redirected\")?(clearInterval(this.sInt),document.body.classList.add(\"from-credit\"),this.iFrame.classList.add(\"mini\"),setTimeout((()=>{this.remove()}),5e3),localStorage.removeItem(\"redirected\")):this.iFrame.classList.remove(\"mini\")}disconnectedCallback(){localStorage.removeItem(\"redirected\"),clearInterval(this.sInt)}attributeChangedCallback(e,t,r){switch(e.toLowerCase()){case\"iframe-url\":r&&this.iFrame.setAttribute(\"src\",r);break;case\"check-credit-status-query\":r&&(this.sInt=setInterval(this.checkCreditStatus.bind(this),5e3,r))}}checkCreditStatus(e){document.body.classList.contains(\"from-credit\")||this.dispatcher.api.request(`order:credit/status${e}`).then((e=>(e&&\"created\"===e.status||(clearInterval(this.sInt),setTimeout((()=>{localStorage.setItem(\"redirected\",!0),top.location.href=this.getAttribute(\"top-redirect-url\")||top.location.href}),3e3)),e))).catch((e=>{console.log(e.message)}))}}Object.defineProperty(bmCreditFrameElement,\"observedAttributes\",{get:()=>[\"iframe-url\",\"top-redirect-url\",\"check-credit-status-query\"]});"},"bm-credit-row":{"stylesheet":":host{color:var(--color-hard);font:var(--font-family-default)}:host .monthly-payment{font-size:16px}.price-line{position:relative;display:flex;align-items:center;padding:0 0 20px}.info-button{margin-left:8px;background-image:var(--ico-info-hint);background-repeat:no-repeat;width:17px;height:17px}.info-tooltip{z-index:50;padding:25px 20px 20px;position:absolute;top:40px;left:50%;transform:translateX(-50%);box-sizing:border-box;width:370px;min-height:100px;border-radius:1.2em;font:var(--font-catalogue-menu-normal);background-color:var(--color-texts-grey);background-color:#e8e8e8;display:flex;flex-direction:column;align-items:flex-start}.info-tooltip .description{font-size:16px}.info-tooltip .license{margin:20px 0 15px}.info-tooltip button{align-self:center}button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 40px;height:50px;font:var(--font-button-default);font-size:16px;font-weight:400;text-transform:uppercase;cursor:pointer}.hidden{display:none}","template":"<div class=\"price-line\"> <b>или от&nbsp;<strong class=\"monthly-payment\"></strong> месяц в онлайн-кредит</b><span class=\"info-button\"></span><div class=\"info-tooltip hidden\"><div class=\"description\"></div><div class=\"license\"></div> <button bm-type=\"default\">OK</button></div></div>","code":"class bmCreditRowElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._shadow.$q(\".info-button\").addEventListener(\"click\",(()=>{this._shadow.$q(\".info-tooltip\").classList.remove(\"hidden\")})),this._shadow.$q(\".info-tooltip button\").addEventListener(\"click\",(()=>{console.log(this._shadow.$q(\".info-tooltip\")),this._shadow.$q(\".info-tooltip\").classList.add(\"hidden\")})),this.render()}attributeChangedCallback(t,e,n){if(\"price\"===t.toLowerCase())n&&(this._shadow.$q(\"strong.monthly-payment\").innerHTML=`${n} ₽ /`)}render(){this._shadow.$q(\".info-tooltip .description\").innerHTML=\"\\n            Чтобы купить сантехнику в кредит,<br/>\\n            при оформлении заказа выберите<br/>\\n            вариант оплаты «в кредит» и следуйте<br/>\\n            инструкциям на экране.\\n            <br/>\\n            Возможно безбумажное подписание.\\n        \",this._shadow.$q(\".info-tooltip .license\").innerHTML=\"\\n            Услуги кредитования предоставляются:<br/>\\n            Тинькофф Банк, лицензия № 2673<br/>\\n            Хоум Кредит энд Финанс Банк, лицензия №316<br/>\\n            Совкомбанк, лицензия №963<br/>\\n            МКК Купи не копи, № в МФО 651403045004829<br/>\\n            МТС Банк, лицензия №2268\\n        \"}}Object.defineProperty(bmCreditRowElement,\"observedAttributes\",{get:()=>[\"price\",\"type\"]});"},"bm-delivery-calculator":{"stylesheet":":host{max-width:470px;margin:20px 0;display:block}bm-input{font:var(--font-header-icon);text-transform:uppercase;margin-bottom:10px}bm-checkbox{font:var(--font-texts);margin-bottom:15px;padding:15px 0}bm-select{display:block;margin:0 0 20px 0}:host([map]) .map{position:relative;margin-bottom:30px}.map>a{font:var(--font-select-default);color:var(--color-hover-link)}:host([mode=order]) .map>a{display:none}.details{position:relative}:host([external-delivery]) .details>*{display:none}:host([external-delivery]) .details>.comment{display:block;margin-top:30px}:host([external-delivery]) .details>.-overlay{display:block;position:fixed;left:0;top:0;width:100%;height:100%;z-index:15000;background:rgba(0,0,0,.8);overflow:auto}:host([external-delivery]) .details>.-overlay .-alert-msg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:440px;padding:20px;background:var(--background-modal);color:var(--color-default);display:flex;flex-direction:column}:host([external-delivery]) .details>.-overlay .-alert-msg .buttons{width:100%;display:flex;flex-wrap:wrap;justify-content:space-around}:host([external-delivery]) .details>.-overlay .-alert-msg .buttons button{background:var(--background-select-hover);font:var(--font-button-default);font-weight:600;padding:0 20px;line-height:40px;height:40px;border-radius:5px;width:fit-content;white-space:nowrap;cursor:pointer}:host([external-delivery]) .details>.-overlay .-alert-msg .buttons .continue{background-color:var(--background-button-default);color:var(--color-button-default);border:none;padding:0 20px}:host([external-delivery]) .details>.-overlay .-alert-msg .buttons .change-address{background-color:var(--background-default);color:var(--color-default);border:1px solid var(--color-default);box-sizing:border-box}:host([external-delivery]) .details>.-overlay .-alert-msg .buttons .change-address:hover{color:var(--background-button-default);border-color:var(--background-button-default)}@media screen and (max-width:460px){:host([external-delivery]) .details>.-overlay .-alert-msg{width:95%}:host([external-delivery]) .details>.-overlay .-alert-msg .buttons button{margin-top:4px}}.details bm-checkbox:not([checked])+.elevation{display:none}.details .parking>div{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between}.delivery-address{position:relative;display:block}.delivery-address bm-input[name=appartement],.delivery-address bm-input[name=porch]{display:none;width:calc(50% - 8px)}:host([mode=order]) .delivery-address .ap-po{display:flex;align-items:flex-start;justify-content:space-between}:host([mode=order]) .delivery-address bm-input[name=appartement],:host([mode=order]) .delivery-address bm-input[name=porch]{display:inline-block}div.comment{display:none}:host([mode=order][selected]) div.comment{display:block}div.comment p,div.parking p{font:var(--font-header-icon);text-transform:uppercase;margin-bottom:2px;padding-left:22px}:host([mode=order]) div.comment textarea{position:relative;display:block;border:2px solid var(--color-input-border);border-radius:5px;font:var(--font-modal-default);color:var(--color-default);height:120px;resize:none;width:100%;padding:10px 20px;box-sizing:border-box}:host([mode=order]) div.comment textarea:focus{outline:0;border-color:var(--color-input-border-focus)}:host(:not([mode=order])) div.parking{display:none}:host(:not([selected])) .details .parking,:host(:not([selected])) .details bm-checkbox,:host(:not([selected])) .details bm-select{display:none}:host([preloader]) .details bm-select,:host([preloader]) .details>.elevation,:host([preloader]) .details>bm-checkbox,:host([preloader]) slot[name=summary]{visibility:hidden}:host([preloader]) .details{min-height:100px;position:relative;background:transparent var(--preloader) 50% 50% no-repeat;background-size:20px;display:block}.elevation{display:inline}.elevation bm-input{width:120px;display:inline-block;margin-left:20px;vertical-align:middle;position:absolute;right:0}:host([mode=order]:not([map])) .elevation bm-input{position:absolute;margin-left:20px;width:120px;right:0}:host([mode=order]) bm-select[name=delivery-date],:host([mode=order]) bm-select[name=delivery-interval]{display:none}div.parking p{padding-left:0;margin-bottom:10px}div.parking bm-checkbox{padding:3px 4px;text-align:left;width:100%}","template":"<div class=\"delivery-address\"><bm-input multiline type=\"address\" placeholder=\"Адрес\" maxlength=\"256\" name=\"address\"></bm-input><div class=\"ap-po\"><bm-input type=\"text\" placeholder=\"Квартира\" maxlength=\"32\" name=\"appartement\"></bm-input><bm-input type=\"text\" placeholder=\"Подъезд\" maxlength=\"3\" name=\"porch\"></bm-input></div></div><div class=\"map\"> <a href=\"#\" class=\"-toggle\">Показать карту</a><slot name=\"map\"></slot></div><div class=\"details\"><bm-checkbox>Нужен подъем на этаж</bm-checkbox><div class=\"elevation\"><bm-input type=\"number\" maxlength=\"2\" placeholder=\"Этаж\"></bm-input><bm-select name=\"elevator-type\"></bm-select></div><bm-select name=\"delivery-date\"></bm-select><bm-select name=\"delivery-interval\"></bm-select><div class=\"parking\"><p>Можно ли заехать во двор к подъезду?</p><div><bm-checkbox type=\"inline\" value=\"1\" group=\"parking\">Да, без проблем<b class=\"parking-price\" value=\"1\"></b></bm-checkbox><bm-checkbox type=\"inline\" value=\"2\" group=\"parking\">Да, есть ограничение по высоте<br/>— подземный паркинг<b class=\"parking-price\" value=\"2\"></b></bm-checkbox><bm-checkbox type=\"inline\" value=\"0\" group=\"parking\">Нет, заезд во двор невозможен<b class=\"parking-price\" value=\"0\"></b></bm-checkbox></div></div><div class=\"comment\"><p>Комментарий</p><textarea name=\"comments\"></textarea></div><div class=\"-overlay\"></div></div><slot name=\"summary\"></slot>","code":"class bmDeliveryCalculatorElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._data=!1,this._response={},this.appartementChecked=!1,this.reqCache={},this.toggleAttribute(\"calculated\",!1),this._shadow.$q(\".map>a\").addEventListener(\"click\",(t=>(t.preventDefault(),this.toggleAttribute(\"map\"),this.mapRefresh(),!1))),this._shadow.$q('bm-input[type=\"address\"]').addEventListener(\"paste\",(t=>(t.preventDefault(),!1))),this._shadow.$q('bm-input[type=\"address\"]').addEventListener(\"set\",(t=>{this.appartementChecked=!1,this.mapRefresh({coordinates:t.detail.coordinates,placemark:t.detail.coordinates}),this.update({coordinates:t.detail.coordinates,region:t.detail.regionCode,kladr:t.detail.regionKladr}),this._shadow.$q('bm-input[name=\"appartement\"]').value=t.detail.appartements||\"\",this.dispatcher.sendEvent(\"address:set\",{global:0},this)})),this._shadow.$q('bm-input[name=\"appartement\"]').addEventListener(\"change\",(t=>{this.appartementChecked=!1})),window.addEventListener(\"click\",(t=>{t.path||(t.path=t.composedPath());let e=t.path?t.path[0]:t.originalTarget?t.originalTarget:null;if(t.target!=this)this.removeAttribute(\"expanded\");else{let t=e;for(;t&&t.tagName&&\"bm-select\"!=t.tagName.toLowerCase();)t=t.parentNode,t&&t.host&&(t=t.host);t&&t.tagName&&\"bm-select\"==t.tagName.toLowerCase()||this.removeAttribute(\"expanded\")}})),this._shadow.$a(\"bm-select\").forEach((t=>{t.addEventListener(\"expand\",(t=>{this._shadow.$a(\"bm-select\").forEach((e=>{t.target!==e&&e.removeAttribute(\"expanded\")})),this.toggleAttribute(\"expanded\",1)})),t.addEventListener(\"collapse\",(t=>{this.toggleAttribute(\"expanded\",0)})),t.addEventListener(\"change\",(t=>{this._data.lift=this._shadow.$q('bm-select[name=\"elevator-type\"]').value,this.calculate()}))})),this._shadow.$q(\".details bm-checkbox\").addEventListener(\"change\",(t=>{setTimeout((()=>this.calculate()),10),this._data.lift=0,t.target.hasAttribute(\"checked\")&&(setTimeout((()=>this.update({},!0)),10),this._data.lift=this._shadow.$q('bm-select[name=\"elevator-type\"]').value,this._shadow.$q(\".elevation bm-input\").focus(),this._data.floor=this._shadow.$q(\".elevation bm-input\").value)})),this._shadow.$q(\".details bm-checkbox\").addEventListener(\"change\",(t=>{let e;e=this.hasAttribute(\"map\")&&\"order\"==this.getAttribute(\"mode\")?\"\":\"Этаж\",this._shadow.$q(\".elevation bm-input\").placeholder=e})),this._shadow.$q(\".elevation bm-input\").addEventListener(\"change\",(t=>{setTimeout((()=>this.update({},!0)),10),this._data.floor=this._shadow.$q(\".elevation bm-input\").value})),this._shadow.$q(\"textarea\").addEventListener(\"input\",(t=>{this._data||(this._data={}),this._data.comment=t.target.value}));let t=$c(\"div\");if(t.setAttribute(\"id\",\"_map_container\"),t.setAttribute(\"slot\",\"map\"),t.classList.add(\"_map_container\"),this.appendChild(t),$q(\"script#__ymap\"))\"address\"==this.type&&this.yamapInit();else{let t=$c(\"script\");t.setAttribute(\"type\",\"text/javascript\"),t.setAttribute(\"src\",\"//api-maps.yandex.ru/2.1/?lang=ru_RU&apikey=c7f74370-a35f-4501-b0bf-d83f6e01e6e4\"),t.setAttribute(\"id\",\"__sug\"),t.toggleAttribute(\"async\",!0),t.addEventListener(\"load\",(t=>{this.yamapInit()})),$q(\"head\").appendChild(t)}this._shadow.$a(\".parking bm-checkbox\").forEach((t=>{t.addEventListener(\"change\",(t=>{this.update({},!0),this.checkAppartement()}))}))}get value(){return this._data&&(this._data.appartement=this._shadow.$q('bm-input[name=\"appartement\"]').value,this._data.porch=this._shadow.$q('bm-input[name=\"porch\"]').value,this._data.parking=this._shadow.$q('bm-checkbox[group=\"parking\"]').value,this._data.lift||(this._data.lift=0)),this._data}attributeChangedCallback(t,e,a){switch(t.toLowerCase()){case\"map\":this._shadow.$q(\".map>a\").textContent=null!==a?\"Скрыть карту\":\"Показать карту\";break;case\"expanded\":if(null===a){this._shadow.$a(\"bm-select\").forEach((t=>t.removeAttribute(\"expanded\")))}}}update(t={},e=!1){this.updater&&this.updater.abort(),this.updater=!1,t.coordinates?this._coords=t.coordinates:this._coords&&(t.coordinates=this._coords);let a=[],i=this.getAttribute(\"bm-id\").split(\";\");if(a.push({id:i[0],quantity:1}),i[1]){let t=i[1].split(\",\");for(let e=0;e<t.length;e++)a.push({id:t[e],quantity:1})}!t.region&&this.dataRegion&&(t.region=this.dataRegion,t.kladr=this.dataKladr),this.dataRegion=t.region,this.dataKladr=t.kladr;let s=this._shadow.$q('bm-checkbox[group=\"parking\"][checked]'),r={address:this._shadow.$q('bm-input[type=\"address\"]').value,coordinates:t.coordinates?t.coordinates:null,region:t.region,kladr:t.kladr,articles:a,parking:!!s&&s.getAttribute(\"value\"),elevateRequested:this._shadow.$q(\".details bm-checkbox\").hasAttribute(\"checked\")};r.elevateRequested&&(r.lift=this._shadow.$q('.elevation bm-select[name=\"elevator-type\"]').value),!1===this._data&&(this._data={}),this._data.coordinates=r.coordinates,this._data.address=r.address,this._data.region=r.region,this._shadow.$q(\".details bm-checkbox\").hasAttribute(\"checked\")&&(r.floor=this._shadow.$q(\".elevation bm-input\").value||1);let o=JSON.stringify(r);if(void 0!==this.reqCache[o])return this._response=this.reqCache[o],this.renderForm(this.reqCache[o]),!0;this.updater=this.dispatcher.api.post(\"delivery:calculate\",r,{timeout:6e4,preloader:e?this.$q('[slot=\"summary\"]'):this}),this.updater.then((t=>{o||(o=1e6*Math.random()/1e6),this.reqCache[o]=t,this._response=this.reqCache[o],this.renderForm(t)})).catch((t=>{-2!=t.code&&console.log(\"can't fetch catalogue\",t)}))}renderForm(t){let e=this._shadow.$q('bm-select[name=\"delivery-date\"]'),a=this._shadow.$q('bm-select[name=\"elevator-type\"]'),i=this._shadow.$q('bm-select[name=\"delivery-interval\"]'),s=e.value,r=a.value,o=i.value,l=!0;e.innerHTML=\"\";let d=(t,e=0)=>{let a,i={\"01\":\"января\",\"02\":\"февраля\",\"03\":\"марта\",\"04\":\"апреля\",\"05\":\"мая\",\"06\":\"июня\",\"07\":\"июля\",\"08\":\"августа\",\"09\":\"сентября\",10:\"октября\",11:\"ноября\",12:\"декабря\"},s=t.toLowerCase().replace(/^(\\d+).(\\d+)\\;(.*)$/,\"$1-$2-$3\").split(\"-\");return 0==e&&(a=`${parseInt(s[0])} ${i[s[1]]}, ${{\"пн\":\"понедельник\",\"вт\":\"вторник\",\"ср\":\"среда\",\"чт\":\"четверг\",\"пт\":\"пятница\",\"сб\":\"суббота\",\"вс\":\"воскресенье\"}[s[2]]}`),1==e&&(a=`${parseInt(s[0])} ${i[s[1]]}`),a};for(let a in t.availableDates){let i=$c(\"bm-option\");l&&(i.toggleAttribute(\"selected\",l),l=!1),i.setAttribute(\"value\",a),i.setAttribute(\"info\",d(t.availableDates[a].title,1)),i.textContent=d(t.availableDates[a].title),i.setAttribute(\"price\",t.availableDates[a].price),e.appendChild(i)}e.setValue(s),this._shadow.querySelectorAll(\".parking-price\").forEach((e=>{if(!t.parkingPrices)return!0;void 0!==t.parkingPrices[e.getAttribute(\"value\")]&&0!=t.parkingPrices[e.getAttribute(\"value\")]&&(e.textContent=\" +\"+t.parkingPrices[e.getAttribute(\"value\")]+\" ₽\")})),a.innerHTML=\"\",l=!0;for(let e in t.lifts){let i=$c(\"bm-option\");t.lifts[e].default&&(i.toggleAttribute(\"selected\",l),l=!1),i.setAttribute(\"value\",e),i.setAttribute(\"info\",t.lifts[e].shortTitle),t.lifts[e].caption&&i.setAttribute(\"caption\",t.lifts[e].caption),i.textContent=t.lifts[e].title,i.setAttribute(\"price\",t.lifts[e].price),t.lifts[e].disabled&&i.toggleAttribute(\"disabled\",1),a.appendChild(i)}l&&a.$q(\"bm-option:first-child\").toggleAttribute(\"selected\",1),a.setValue(r),i.innerHTML=\"\",l=!0;for(let e in t.times){let a=$c(\"bm-option\");l&&(a.toggleAttribute(\"selected\",l),l=!1),a.setAttribute(\"value\",e),a.setAttribute(\"info\",t.times[e].title.replace(/^(.*);(.*)$/,\"с $1 до $2\")),a.textContent=t.times[e].title.replace(/^(.*);(.*)$/,\"с $1 до $2\"),a.setAttribute(\"price\",t.times[e].price),i.appendChild(a)}i.setValue(o),!0===t.ownDelivery?(this.toggleAttribute(\"external-delivery\",0),this._shadow.$q(\".details > .-overlay\").innerHTML=\"\",$q(\"#date-time\").toggleAttribute(\"ignore\",0),$q(\"#installation\")&&$q(\"#installation\").toggleAttribute(\"ignore\",0),this.scrollToDetails()):\"string\"==typeof t.ownDelivery&&(this.toggleAttribute(\"external-delivery\",1),this.openExternalDeliveryModal(t),$q(\"#date-time\").toggleAttribute(\"ignore\",1),$q(\"#installation\")&&$q(\"#installation\").toggleAttribute(\"ignore\",1)),this.toggleAttribute(\"selected\",1),setTimeout((()=>this.calculate()))}scrollToDetails(){let t=this._shadow.$q(\".details\").getBoundingClientRect().top;t>150&&bmSite.scrollTo(window.currentScrollY+t-150)}openExternalDeliveryModal(t){const e=this._shadow.$q(\".details > .-overlay\");if(!e)return;const a=this._shadow.$q(\".delivery-address > bm-input\");a.blur(),e.style.display=\"block\",e.innerHTML=`\\n            <div class=\"-alert-msg\">\\n                <div class=\"message\">\\n                    ${t.ownDelivery}\\n                </div>\\n                <br/>\\n                <div class=\"buttons\">\\n                    <button class=\"continue\">Понятно</button>\\n                    <button class=\"change-address\">Указать другой адрес</button>\\n                </div>\\n            </div>\\n        `;e.$q(\"button.continue\").addEventListener(\"click\",(()=>{e.style.display=\"none\",$q(\"#date-time + section\").toggleAttribute(\"ready\",1),$q(\"#date-time\").toggleAttribute(\"ignore\",0),$q(\"#installation\")&&$q(\"#installation\").toggleAttribute(\"ignore\",0)}));e.$q(\"button.change-address\").addEventListener(\"click\",(()=>{e.style.display=\"none\",$q(\"#date-time + section\").toggleAttribute(\"ready\",0),a.field.value=\"\",a.focus();const t=this.closest(\"section\"),i=window.currentScrollY+t.getBoundingClientRect().top-100;bmSite.scrollTo(i)}))}checkAppartement(t){if(t&&(!t.detail||0!=t.detail.global||!t.detail.realClick)&&t&&!t.isTrusted)return!1;if(this.hasAttribute(\"external-delivery\"))return!0;if(\"delivery\"!=$q(\"#obtaining bm-checkbox\").value)return!0;if(this.appartementChecked||\"order\"!=this.getAttribute(\"mode\"))return!0;if($q('bm-modal[type=\"info\"].-alert'))return!1;let e=this._shadow.$q('bm-input[name=\"address\"]'),a=/( д )/g.exec(e.value),i=this._shadow.$q('bm-input[name=\"appartement\"]');if(\"\"!=i.value.trim()&&a)return!0;let s=\"Укажите номер дома!\",r=\"Укажу\",o=\"Адрес без дома\";return a&&(s=\"Номер квартиры не забыли?\",r=\"Ой, да!\",o=\"Нет, частный дом\"),bmSite.confirm(s,r,o).then((()=>{let t=e.getBoundingClientRect().top+window.currentScrollY-window.innerHeight/2;if(bmSite.scrollTo(t),a)setTimeout((()=>i.focus()),200);else{let t=e.value.replace(\", д\",\"\");t+=\", д \",this._shadow.$q('bm-input[type=\"address\"]').value=t,setTimeout((()=>e.focus()),200)}})).catch((()=>{a||(i.value=\"\"),this.appartementChecked=!0})),!1}calculate(){let t=0,e=this._shadow.$a(\"bm-select\"),a=this._shadow.$q(\".details bm-checkbox\").hasAttribute(\"checked\"),i=!1;if(e.forEach((e=>{let s=e._shadow.$q(\"bm-option[selected]\");if(s||(i=!0),!s||\"elevator-type\"==e.getAttribute(\"name\")&&!a)return!0;t+=1*s.getAttribute(\"price\")})),i)this.removeAttribute(\"calculated\"),setTimeout((()=>this.calculate()),10);else{let e=`на ${this._shadow.$q('bm-select[name=\"delivery-date\"]').info}`;if(a){e+=`, включая подъём на ${this._shadow.$q(\".elevation bm-input\").value||1} этаж ${this._shadow.$q('bm-select[name=\"elevator-type\"]').info}`}else e+=\", без подъёма на этаж\";e+=`, ${this._shadow.$q('bm-select[name=\"delivery-interval\"]').info.toLowerCase()}`,this.toggleAttribute(\"calculated\",1),this.dispatcher.sendEvent(\"calculated\",{global:0,total:t,details:e,data:this._response},this)}}yamapInit(){let t=()=>{let t=[55.65064256909375,37.83097599999998];ymaps.ready((()=>{this.yamap=new ymaps.Map(this.$q(\"#_map_container\"),{center:t,zoom:14,controls:[\"fullscreenControl\",\"rulerControl\"]}),this.yamap.controls.add(\"zoomControl\",{size:\"small\",position:{top:10,left:10}}),this.yamap.events.add(\"click\",(t=>{let e=t.get(\"coords\");this.mapGetAddressDadata(e),this.mapRefresh({placemark:e})})),bmSite.mapScrollStore=!1,this.yamap.events.add(\"boundschange\",(t=>{document.body.className.match(/ymaps(.+)fullscreen/)?(bmSite.mapScrollStore=window.currentScrollY,$q(\"body\").scrollTop=0,$q(\"body\").toggleAttribute(\"ymfs\",1)):(!1!==bmSite.mapScrollStore&&($q(\"body\").scrollTop=bmSite.mapScrollStore),bmSite.mapScrollStore=!1,$q(\"body\").toggleAttribute(\"ymfs\",0))})),this._shadow.$q('bm-input[type=\"address\"]').setYaMap(this.yamap,ymaps)}))};!function(){if(\"undefined\"==typeof ymaps)return setTimeout(this.YmapInitInterval,100);t()}()}mapRefresh(t={}){this.mapPlacemark||(this.mapPlacemark=new ymaps.Placemark(this.yamap.getCenter(),{},{iconLayout:\"default#image\",iconImageHref:\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNTMuNjIzIiBoZWlnaHQ9IjYxLjU0IiB2aWV3Qm94PSIwIDAgNTMuNjIzIDYxLjU0Ij48ZGVmcz48ZmlsdGVyIGlkPSLQmtC+0L3RgtGD0YBfNjE1IiB4PSIwIiB5PSIwIiB3aWR0aD0iNTMuNjIzIiBoZWlnaHQ9IjYxLjU0IiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPjxmZU9mZnNldCBkeT0iMyIgaW5wdXQ9IlNvdXJjZUFscGhhIi8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMyIgcmVzdWx0PSJibHVyIi8+PGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMC4xNjEiLz48ZmVDb21wb3NpdGUgb3BlcmF0b3I9ImluIiBpbjI9ImJsdXIiLz48ZmVDb21wb3NpdGUgaW49IlNvdXJjZUdyYXBoaWMiLz48L2ZpbHRlcj48L2RlZnM+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgMCwgMCkiIGZpbHRlcj0idXJsKCPQmtC+0L3RgtGD0YBfNjE1KSI+PHBhdGggaWQ9ItCa0L7QvdGC0YPRgF82MTUtMiIgZGF0YS1uYW1lPSLQmtC+0L3RgtGD0YAgNjE1IiBkPSJNMzguNjIzLDE4LjgxMmMwLDEzLjg1My0xNy44MTIsMjUuNzI4LTE3LjgxMiwyNS43MjhTMywzMi42NjUsMywxOC44MTJhMTcuODEyLDE3LjgxMiwwLDEsMSwzNS42MjMsMFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDYgNSkiIGZpbGw9IiMwMDRlZTYiLz48L2c+PC9zdmc+\",iconImageSize:[54,62],iconImageOffset:[-27,-50]}),this.yamap.geoObjects.add(this.mapPlacemark)),t.coordinates&&this.yamap.setCenter(t.coordinates),t.placemark&&this.mapPlacemark.geometry.setCoordinates(t.placemark),setTimeout((()=>this.yamap.container.fitToViewport()),25)}mapGetAddress(t){ymaps.geocode(t).then((async e=>{let a=e.geoObjects.get(0),i=(a.properties.getAll(),a.getAddressLine().replace(/^Россия\\,\\s+/i,\"\").replace(/\\s+Область/i,\" Обл\"));this._shadow.$q('bm-input[type=\"address\"]').value=i;let s=await this._shadow.$q('bm-input[type=\"address\"]').getFirstSuggestionByAddress(i);!1===s&&(s={data:{region_iso_code:\"unknown\",region_kladr_id:0}}),this.yamap.container.exitFullscreen(),this.dispatcher.sendEvent(\"set\",{global:0,coordinates:t,regionCode:s.data.region_iso_code,regionKladr:s.data.region_kladr_id},this._shadow.$q('bm-input[type=\"address\"]'))}))}async mapGetAddressDadata(t){let e,a,i,s={method:\"POST\",mode:\"cors\",headers:{\"Content-Type\":\"application/json\",Accept:\"application/json\",Authorization:`Token ${bmSite.suggestionToken}`},body:JSON.stringify({lat:t[0],lon:t[1]})};if(e=await fetch(bmSite.suggestionGeocode,s),a=await e.json(),!a.suggestions.length)return this.mapGetAddress(t);i=a.suggestions[0],this._shadow.$q('bm-input[type=\"address\"]').value=i.value,this.yamap.container.exitFullscreen(),this.dispatcher.sendEvent(\"set\",{global:0,coordinates:t,regionCode:i.data.region_iso_code,regionKladr:i.data.region_kladr_id},this._shadow.$q('bm-input[type=\"address\"]'))}}Object.defineProperty(bmDeliveryCalculatorElement,\"observedAttributes\",{get:()=>[\"map\",\"address\",\"expanded\"]});"},"bm-doc-caption":{"stylesheet":":host *{margin:0;padding:0}.caption{display:inline-block;font-weight:600;font-size:12px;line-height:150%;color:#002273;position:relative}.datetime,.username{position:relative}:host([skeleton]) .caption,:host([skeleton]) .datetime,:host([skeleton]) .line,:host([skeleton]) .username{color:transparent}:host([skeleton]) .caption::after,:host([skeleton]) .datetime::after,:host([skeleton]) .line::after,:host([skeleton]) .username::after{content:'';position:absolute;top:0;bottom:0;left:-2px;right:0;background:#e8e8e8;border-radius:5px}:host([skeleton]) .line{position:relative;color:#e8e8e8}:host([skeleton]) .line::after{margin:0 3px}:host([skeleton]) .datetime,:host([skeleton]) .line,:host([skeleton]) .username{top:4px}.sub-caption{display:inline-block;font-weight:400;font-size:10px;line-height:150%;color:#8e8e8e}","template":"<p class=\"caption\">Документ №<span class=\"number\"></span></p><div class=\"sub-caption-wrapper\"><p class=\"sub-caption\"><span class=\"datetime\"></span> <span class=\"line\">|</span><span class=\"username\"></span></p></div>","code":"class bmDocCaptionElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners(),this._firstRender()}connectedCallback(){this.el.number.innerHTML=this.attr.number,this.el.datetime.innerHTML=this.attr.datetime,this.el.username.innerHTML=this.attr.username}_initVariables(){this.el={number:this._shadow.$q(\".number\"),datetime:this._shadow.$q(\".datetime\"),username:this._shadow.$q(\".username\")},this.attr={number:this.getAttribute(\"number\"),datetime:this.getAttribute(\"datetime\"),username:this.getAttribute(\"username\")}}_addEventListeners(){}_firstRender(){}attributeChangedCallback(e,t,i){e.toLowerCase()}}Object.defineProperty(bmDocCaptionElement,\"observedAttributes\",{get:()=>[\"some-attr\"]});"},"bm-empty-element":{"stylesheet":"","template":"","code":"class bmEmptyElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this)}attributeChangedCallback(e,t,s){e.toLowerCase()}}Object.defineProperty(bmEmptyElement,\"observedAttributes\",{get:()=>[]});"},"bm-example":{"stylesheet":"","template":"<div>Example</div>","code":"class bmExampleElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners(),this._firstRender()}connectedCallback(){}_initVariables(){this.el={},this.lightDOM={},this.shadowDOM={},this.state={},this.dev={}}_addEventListeners(){}_firstRender(){}attributeChangedCallback(e,t,s){e.toLowerCase()}}Object.defineProperty(bmExampleElement,\"observedAttributes\",{get:()=>[\"some-attr\"]});"},"bm-expandable-item":{"stylesheet":":host{display:block;padding:0 15px;border-bottom:1px dashed #c9c980;cursor:pointer;user-select:none}:host *{margin:0;padding:0}:host([skeleton]){pointer-events:none}.caption{position:relative;margin-bottom:13px}.caption::after{content:'';position:absolute;right:10px;top:50%;transform:translateY(-50%) rotate(45deg);width:11px;height:11px;border-right:1px solid #101110;border-bottom:1px solid #101110;transition:all 250ms}:host([skeleton]) .caption::after{border-right:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8}:host([expanded]) .caption::after{transform:translateY(-50%) rotate(225deg);top:calc(50% + 11px / 2);transition:all 250ms}.content{max-height:0;overflow:hidden;transition:max-height .2s ease-out}.cell{display:flex;justify-content:space-between;margin-bottom:11px;font-weight:600;font-size:12px;line-height:150%;color:#101110}:host(:not([total])) .cell.total{display:none}:host([total]) cell-item::part(.right-part){font-weight:400}:host([absolute]){background:#fff;border:0;box-shadow:0 2px 5px rgba(0,0,0,.1);border-radius:4px;position:relative;padding:10px 15px;font-family:Arial;font-style:normal;font-weight:400;font-size:14px;line-height:21px;color:#101110}:host([absolute][expanded]){border-bottom-left-radius:0;border-bottom-right-radius:0}:host([absolute]) .caption{margin-bottom:0}:host([absolute]) .caption::after{right:17px}:host([absolute]) .content{left:0;top:100%;width:100%;position:absolute;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.1)}:host([absolute]) .caption::after{top:calc(50% - 10px);transform:rotate(45deg)}","template":"<div class=\"item\"><div class=\"caption\" part=\"caption\"><slot name=\"caption\"></slot></div><div class=\"content\"><div class=\"cell total\"><p class=\"name\">Всего утилизировано</p><p><span class=\"count\">6</span class=\"tovarov\"> товаров</p></div><slot name=\"content\"></slot></div></div>","code":"class bmExpandableItemElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners()}_initVariables(){this.el={caption:this._shadow.$q(\".caption\"),content:this._shadow.$q(\".content\"),count:this._shadow.$q(\".count\")},this.lightDOM={caption:this.$q(\".caption\"),bmDocCaption:this.$q(\"bm-doc-caption\")},this.attr={expanded:this.hasAttribute(\"expanded\"),skeleton:this.hasAttribute(\"skeleton\"),total:this.hasAttribute(\"total\"),absolute:this.hasAttribute(\"absolute\"),noExpandByClick:this.hasAttribute(\"no-expand-by-click\")},this.shadowDOM={},this.state={},this.dev={}}connectedCallback(){setTimeout((()=>{if(this.attr.expanded&&(this.el.content.style.maxHeight=this.el.content.scrollHeight+\"px\"),this.attr.total){const t=this.$a(\"bm-good-item\").length;this.el.count.innerHTML=t}}))}_firstRender(){}_addEventListeners(){this.attr.noExpandByClick||this.el.caption.addEventListener(\"click\",this.handleCaptionClick)}handleCaptionClick=()=>{this.toggleAttribute(\"expanded\");const{content:t}=this.el;t.style.maxHeight=t.style.maxHeight?null:t.scrollHeight+\"px\"};hide=()=>{this.removeAttribute(\"expanded\");const{content:t}=this.el;t.style.maxHeight=null};show=()=>{this.setAttribute(\"expanded\",\"\");const{content:t}=this.el;t.style.maxHeight=t.scrollHeight+\"px\"};value=()=>this.lightDOM.caption.value;attributeChangedCallback(t,e,i){switch(t.toLowerCase()){case\"expanded\":break;case\"skeleton\":this.lightDOM.bmDocCaption.setAttribute(\"skeleton\",\"\")}}}Object.defineProperty(bmExpandableItemElement,\"observedAttributes\",{get:()=>[\"expanded\",\"skeleton\"]});"},"bm-filter-color":{"stylesheet":":host{display:block;margin-bottom:30px}.caption{position:relative;font:var(--font-filters-header);padding:6px 0 0 24px;cursor:pointer;user-select:none}.caption::before{position:absolute;content:\"\";left:0;top:5px;width:20px;height:20px;background:transparent var(--ico-filter-expander) center center no-repeat;transform:rotate(90deg);transition:transform var(--duration-expand) ease}:host([expanded]) .caption::before{transform:rotate(-90deg)}ul{display:none}:host([expanded]) ul{display:flex;list-style:none;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;padding:0}ul li{position:relative;width:23px;height:23px;margin:0 10px 10px 0;border:1px solid transparent;border-radius:50%;cursor:pointer}ul li[selected]:not([disabled])::before{position:absolute;content:\"\";left:0;top:0;width:100%;height:100%;background:transparent var(--ico-tick) center center no-repeat}ul li[inv][selected]:not([disabled])::before{background-image:var(--ico-tick-white)}ul li:not([inv]):not([disabled]){border-color:var(--color-default)}ul li[disabled]{display:none}","template":"<div class=\"caption\"></div><ul></ul>","code":"class bmFilterColorElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._shadow.$q(\".caption\").addEventListener(\"click\",(t=>{this.toggleAttribute(\"expanded\"),this.hasAttribute(\"expanded\")||this.removeAttribute(\"full\")}))}attributeChangedCallback(t,e,s){switch(t.toLowerCase()){case\"caption\":this._shadow.$q(\"div.caption\").textContent=s;break;case\"data\":null!=s&&(this.render(s),this.removeAttribute(\"data\"))}}get value(){let t=[];for(let e in this._data)this._data[e].selected&&!this._data[e].disabled&&t.push(e);return t}get config(){let t={type:\"sel\",base:this.hasAttribute(\"visible\"),expanded:this.hasAttribute(\"expanded\"),title:this.getAttribute(\"caption\"),values:{}};return this._shadow.$a(\"ul li\").forEach((e=>{let s=e.getAttribute(\"value\"),i=e.hasAttribute(\"selected\"),a=e.getAttribute(\"title\").trim();i&&(a={title:a,selected:!0}),t.values[s]=a})),t}toString(){return this.value.join(\",\")}render(t){let e=JSON.parse(t);this._shadow.$q(\"ul\").textContent=\"\";for(let t in e){\"string\"!=typeof e[t]&&\"number\"!=typeof e[t]||(e[t]={title:e[t],selected:!1});let s=$c(\"li\");if(e[t].selected=e[t].selected?1:0,e[t].disabled=e[t].disabled?1:0,s.setAttribute(\"value\",t),e[t].url&&s.setAttribute(\"href\",e[t].url),s.toggleAttribute(\"selected\",e[t].selected),s.toggleAttribute(\"disabled\",e[t].disabled),e[t].rgb){s.style.backgroundColor=`#${e[t].rgb}`;let i=e[t].rgb.replace(/[^0-9a-fA-f]*(\\w{2})(\\w{2})(\\w{2})$/,\"$1,$2,$3\").split(\",\");i.forEach(((t,e)=>i[e]=parseInt(t,16)));let a=.299*i[0]+.587*i[1]+.114*i[2];s.toggleAttribute(\"inv\",a<192)}s.setAttribute(\"title\",e[t].title),this._shadow.$q(\"ul\").appendChild(s),s.addEventListener(\"click\",(t=>{this.dispatcher.sendEvent(\"beforechange\",{value:this.value,global:0},this);let e=t.target.getAttribute(\"value\");t.target.toggleAttribute(\"selected\"),this._data[e].selected=t.target.hasAttribute(\"selected\"),this.dispatcher.sendEvent(\"change\",{value:this.value,url:t.target.getAttribute(\"href\")||!1,global:0},this)}))}this._data=e,this.dispatcher.sendEvent(\"ready\",{global:0},this)}reset(){this._shadow.$a(\"ul li\").forEach((t=>{t.removeAttribute(\"selected\"),this._data[t.getAttribute(\"value\")].selected=!1})),this.dispatcher.sendEvent(\"ready\",{global:0},this)}store(){this._stored=JSON.parse(JSON.stringify(this._data))}restore(){this._stored&&(this._data=this._stored,this._shadow.$a(\"ul li\").forEach((t=>{t.toggleAttribute(\"selected\",this._data[t.getAttribute(\"value\")].selected)}))),this.dispatcher.sendEvent(\"ready\",{global:0},this)}}Object.defineProperty(bmFilterColorElement,\"observedAttributes\",{get:()=>[\"caption\",\"data\"]});"},"bm-filter-sel":{"stylesheet":":host{display:block;margin-bottom:30px}.caption{position:relative;font:var(--font-filters-header);padding:6px 0 0 24px;cursor:pointer;user-select:none}.caption::before{position:absolute;content:\"\";left:0;top:5px;width:20px;height:20px;background:transparent var(--ico-filter-expander) center center no-repeat;transform:rotate(90deg);transition:transform var(--duration-expand) ease}.hint{font:var(--font-filters-options);position:relative;top:10px}:host([expanded]) .caption::before{transform:rotate(-90deg)}ul{display:none}:host([expanded]) ul{display:flex;flex-direction:column;list-style:none;font:var(--font-filters-options);padding:0;user-select:none}ul li{position:relative;padding:var(--sel-filter-padding);cursor:pointer;background:transparent var(--ico-filter-checkbox) left center no-repeat;order:2}ul li[selected]:not([disabled]){background-image:var(--ico-filter-checked)}ul li[selected]{order:1}ul li[disabled]{background-image:var(--ico-filter-disabled);color:var(--color-item-disabled);pointer-events:none}ul li[inactive]{text-decoration:line-through}:host(:not([full])) ul li{display:none}:host(:not([full])) ul li.init_visible,:host(:not([full])) ul li[selected]{display:block}.filter{margin-top:10px;width:180px;display:none;position:relative}:host([expanded]) .filter{display:block}.filter input{width:100%;border:2px solid var(--color-input-border);height:44px;padding:0 10px;box-sizing:border-box;border-radius:5px;font:var(--font-input);color:var(--color-default);caret-color:#000;outline:0}.filter input::placeholder{color:var(--color-default)}.filter input:focus{border-color:var(--color-input-border-focus)}.filter[filled]~.-full-toggle{display:none}.hidden{display:none!important}.filtered{display:block!important}span.-full-toggle{position:relative;display:block;margin-top:-10px;padding:5px 0 5px 0;cursor:pointer;font:var(--font-filters-options);color:var(--color-hover-link);user-select:none}:host(:not([expanded])) span.-full-toggle,:host([full]) span.-full-toggle{display:none}","template":"<div class=\"caption\"></div><div class=\"hint\"></div><ul></ul>","code":"class bmFilterSelElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.isRendered=!1,this.showAllItems=!1,this.data={},this._shadow.$q(\".caption\").addEventListener(\"click\",(t=>{this.toggleAttribute(\"expanded\"),this.hasAttribute(\"expanded\")?this.isRendered||this.firstRender():this.removeAttribute(\"full\")}))}connectedCallback(){this.hasAttribute(\"initial-render\")||(this.showAllItems=!0),this._shadow.$q(\"div.caption\").textContent=this.getAttribute(\"caption\");const t=this.getAttribute(\"hint\");void 0!==this.getAttribute(\"hint\")&&null!==t&&\"undefined\"!=t&&(this._shadow.$q(\"div.hint\").textContent=t),null!==this.getAttribute(\"filter-search\")&&this.addFilter(this.getAttribute(\"filter-search\")),null!==this.getAttribute(\"data\")&&this.hasAttribute(\"expanded\")&&this.firstRender()}firstRender(){this.data=JSON.parse(this.getAttribute(\"data\")),this.render(this.data),this.removeAttribute(\"data\"),this.isRendered=!0}get value(){let t=[];for(let e in this._data)this._data[e].selected&&!this._data[e].disabled&&t.push(e);return t}get config(){let t={type:\"sel\",base:this.hasAttribute(\"visible\"),expanded:this.hasAttribute(\"expanded\"),title:this.getAttribute(\"caption\"),values:{}};return this._shadow.$a(\"ul li\").forEach((e=>{let i=e.getAttribute(\"value\"),s=e.hasAttribute(\"selected\"),r=e.textContent.trim();s&&(r={title:r,selected:!0}),t.values[i]=r})),t}toString(){return this.value.join(\",\")}render(t){let e={},i=this.getAttribute(\"max-visible-elements\")||7;for(let i in t){let s=i,r=0;i.match(/\\:/)&&(r=i.replace(/^(.*?)\\:.*$/,\"$1\"),s=i.replace(/^.*?\\:(.*)$/,\"$1\")),\"object\"==typeof t[i]&&(t[i]._order=r),e[s]=t[i]}t=e,this._shadow.$q(\"ul\").textContent=\"\";for(let e in t){if(\"string\"!=typeof t[e]&&\"number\"!=typeof t[e]||(t[e]={title:t[e],selected:!1}),!t[e].selected&&!this.showAllItems&&t[e]._order>i)continue;let s=$c(\"li\"),r=e;t[e]._order&&s.setAttribute(\"order\",t[e]._order),t[e].selected=t[e].selected?1:0,t[e].disabled=t[e].disabled?1:0,s.setAttribute(\"value\",r),t[e].url&&s.setAttribute(\"href\",t[e].url),s.setAttribute(\"name\",t[e].title),s.textContent=t[e].title,s.toggleAttribute(\"selected\",t[e].selected),s.toggleAttribute(\"disabled\",t[e].disabled),s.toggleAttribute(\"inactive\",Boolean(t[e].inactive)),this._shadow.$q(\"ul\").appendChild(s),s.addEventListener(\"click\",(t=>{this.dispatcher.sendEvent(\"beforechange\",{value:this.value,global:0},this);let e=t.target.getAttribute(\"value\");t.target.toggleAttribute(\"selected\"),this._data[e].selected=t.target.hasAttribute(\"selected\"),this.dispatcher.sendEvent(\"change\",{value:this.value,url:t.target.getAttribute(\"href\")||!1,global:0},this),null!==this.getAttribute(\"filter-search\")&&this._shadow.$q(\".filter input\").value&&(window[this.getAttribute(\"key\")+\"FilterValStored\"]=this._shadow.$q(\".filter input\").value)}))}let s=Array.from(this._shadow.$a(\"ul li\"));if(s.sort(((t,e)=>t.getAttribute(\"order\")<e.getAttribute(\"order\")?-1:t.getAttribute(\"order\")>e.getAttribute(\"order\")?1:0)),s.forEach(((t,e)=>{e<i&&t.classList.add(\"init_visible\"),t.parentNode.appendChild(t)})),!this._shadow.$q(\".-full-toggle\")&&Object.keys(t).length>i){let t=$c(\"span\");t.classList.add(\"-full-toggle\"),t.textContent=\"Показать всё\",this._shadow.appendChild(t),t.addEventListener(\"click\",(t=>{this.showAllItems||(this.showAllItems=!0,this.render(this.data)),this.toggleAttribute(\"full\")}))}this._data=t,this.dispatcher.sendEvent(\"ready\",{global:0},this)}reset(){this._shadow.$a(\"ul li\").forEach((t=>{t.removeAttribute(\"selected\"),this._data[t.getAttribute(\"value\")].selected=!1})),this.dispatcher.sendEvent(\"ready\",{global:0},this)}store(){this._stored=JSON.parse(JSON.stringify(this._data))}restore(){this._stored&&(this._data=this._stored,this._shadow.$a(\"ul li\").forEach((t=>{t.toggleAttribute(\"selected\",this._data[t.getAttribute(\"value\")].selected)}))),this.dispatcher.sendEvent(\"ready\",{global:0},this)}addFilter(t){const e=$c(\"div\"),i=$c(\"input\");function s(t,e){const i={layout:{\"й\":\"q\",\"ц\":\"w\",\"у\":\"e\",\"к\":\"r\",\"е\":\"t\",\"н\":\"y\",\"г\":\"u\",\"ш\":\"i\",\"щ\":\"o\",\"з\":\"p\",\"ф\":\"a\",\"ы\":\"s\",\"в\":\"d\",\"а\":\"f\",\"п\":\"g\",\"р\":\"h\",\"о\":\"j\",\"л\":\"k\",\"д\":\"l\",\"я\":\"z\",\"ч\":\"x\",\"с\":\"c\",\"м\":\"v\",\"и\":\"b\",\"т\":\"n\",\"ь\":\"m\",\"ю\":\".\"},translit:{\"а\":\"a\",\"б\":\"b\",\"в\":\"v\",\"г\":\"g\",\"д\":\"d\",\"е\":\"e\",\"ж\":\"j\",\"з\":\"z\",\"и\":\"i\",\"к\":\"k\",\"л\":\"l\",\"м\":\"m\",\"н\":\"n\",\"о\":\"o\",\"п\":\"p\",\"р\":\"r\",\"с\":\"s\",\"т\":\"t\",\"у\":\"u\",\"ф\":\"f\",\"х\":\"h\",\"ц\":\"c\"}}[e];let s=\"\";for(let e=0;e<t.length;e++)s+=i[t[e]]||t[e];if(\"translit\"===e&&s.includes(\"ks\")){let t=s.split(\"ks\");s=t.join(\"x\")}return s}e.classList.add(\"filter\"),i.setAttribute(\"placeholder\",t),e.appendChild(i),this._shadow.insertBefore(e,this._shadow.$q(\"ul\")),i.addEventListener(\"click\",(t=>{this.showAllItems||(this.showAllItems=!0,this.render(this.data))})),i.addEventListener(\"keyup\",(t=>{const r=i.value,l=new RegExp(`${r.toLowerCase()}`),a=new RegExp(`${s(r.toLowerCase(),\"translit\")}`),d=new RegExp(`${s(r.toLowerCase(),\"layout\")}`),h=[],n=[],o=[];let u=null;r.trim()?e.setAttribute(\"filled\",\"\"):e.removeAttribute(\"filled\");const c=t=>{this._shadow.$a(\"li\").forEach((e=>{const i=e.getAttribute(\"name\");if(!r.trim())return e.classList.remove(\"hidden\"),void e.classList.remove(\"filtered\");t.includes(i)?(u||(u=e),e.classList.remove(\"hidden\"),e.classList.add(\"filtered\")):(e.classList.add(\"hidden\"),e.classList.remove(\"filtered\"))}))};this._shadow.$a(\"li\").forEach((t=>{const e=t.getAttribute(\"name\");l.test(e.toLowerCase())?h.push(e):a.test(e.toLowerCase())?n.push(e):d.test(e.toLowerCase())&&o.push(e)})),h.length?c(h):n.length?c(n):o.length?c(o):c([]),(\"Enter\"===t.code||13===t.keyCode&&u)&&u.click()})),window[this.getAttribute(\"key\")+\"FilterValStored\"]&&setTimeout((()=>{i.value=window[this.getAttribute(\"key\")+\"FilterValStored\"],i.dispatchEvent(new KeyboardEvent(\"keyup\",{})),window[this.getAttribute(\"key\")+\"FilterValStored\"]=void 0}),0)}}Object.defineProperty(bmFilterSelElement,\"observedAttributes\",{get:()=>[]});"},"bm-filter-slider":{"stylesheet":":host{display:block;max-width:180px;margin-bottom:30px}.caption{position:relative;font:var(--font-filters-header);padding:6px 0 0 24px;cursor:pointer;user-select:none}.caption::before{position:absolute;content:\"\";left:0;top:5px;width:20px;height:20px;background:transparent var(--ico-filter-expander) center center no-repeat;transform:rotate(90deg);transition:transform var(--duration-expand) ease}:host([expanded]) .caption::before{transform:rotate(-90deg)}.fields,.slider-line{display:none}:host([expanded]) .fields,:host([expanded]) .slider-line{display:block}.slider-line{position:relative;margin:15px 0;height:24px}.scale,.slider-line::before{content:\"\";position:absolute;left:0;top:calc(50% - 1px);background:var(--background-input-field);height:2px;width:100%}.scale{background-color:var(--background-button-default);width:auto;pointer-events:none}.slider-line .ruler{position:absolute;top:50%;width:24px;height:24px;border-radius:50%;background-color:var(--background-button-default);margin-top:-12px;margin-left:-12px;cursor:pointer}:host([sliding]) .slider-line .ruler{pointer-events:none!important}input::-webkit-inner-spin-button{display:none!important}input{border:2px solid var(--color-input-border);height:40px;padding:0 10px;border-radius:5px;margin-bottom:10px;font:var(--font-input);color:var(--color-default);outline:0;width:calc(100% - 24px)}input:focus{border-color:var(--color-input-border-focus)}input::placeholder{color:var(--color-default)}","template":"<div class=\"caption\"></div><div class=\"slider-line\"><div class=\"scale\"></div><div class=\"ruler min\"></div><div class=\"ruler max\"></div></div><div class=\"fields\"> <input type=\"number\" data-type=\"min\"> <input type=\"number\" data-type=\"max\"></div>","code":"class bmFilterSliderElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.silent=!1,this._sliding=!1,this._shadow.$q(\".caption\").addEventListener(\"click\",(t=>{this.toggleAttribute(\"expanded\"),this.hasAttribute(\"expanded\")||this.removeAttribute(\"full\")})),this._shadow.$a(\"input\").forEach((t=>{t.addEventListener(\"focus\",(t=>{\"min\"==t.target.dataset.type&&(t.target.value=this._val1==this.min?\"\":this._val1),\"max\"==t.target.dataset.type&&(t.target.value=this._val2==this.max?\"\":this._val2),t.target.setAttribute(\"placeholder\",\"\")})),t.addEventListener(\"blur\",(t=>{\"min\"==t.target.dataset.type?this._val1=t.target.value:this._val2=\"\"==t.target.value?this._val2:t.target.value,this.value=`${this._val1};${this._val2}`,t.target.value=\"\"})),t.addEventListener(\"keydown\",(t=>{13==t.which&&t.target.blur()}))})),this._shadow.$q(\".slider-line\").addEventListener(\"click\",(t=>{this.setValueByClick(t.offsetX)})),this._shadow.$q(\".slider-line\").addEventListener(\"mouseleave\",(t=>{if(!this.sliding)return;let i=this.getBoundingClientRect(),s=t.screenX;i.left+i.width/4>s&&(this._val1=this.min),i.right-i.width/4<s&&(this._val2=this.max),this.silent=1,this.value=this.value,this.silent=0})),window.addEventListener(\"mouseup\",(t=>{this.setChanged(1),this.sliding=!1})),window.addEventListener(\"touchend\",(t=>{this.setChanged(1),this.sliding=!1}),{passive:!0}),this._shadow.$q(\".slider-line\").addEventListener(\"mousemove\",(t=>{this.__moveSlide(t)})),this._shadow.$q(\".slider-line\").addEventListener(\"touchmove\",(t=>{let i=t.touches[0].clientX-t.target.offsetWidth/2;this.__moveSlide({offsetX:i})}),{passive:!0}),this._shadow.$a(\".ruler\").forEach((t=>{t.addEventListener(\"mousedown\",(t=>this.sliding=t.target.classList.contains(\"min\")?-1:1)),t.addEventListener(\"touchstart\",(t=>this.sliding=t.target.classList.contains(\"min\")?-1:1),{passive:!0})}))}__moveStart(t){}__moveSlide(t){if(!this.sliding)return!0;let i=\"\",s=t.offsetX/this.offsetWidth,e=this.max-this.min,a=(this._val1-this.min)/e,h=(this._val2-this.min)/e,l=(Math.abs(s-a),Math.abs(s-h),10*Math.round((this.min+s*e)/10));i=this.sliding<0?`${l};${this._val2}`:`${this._val1};${l}`,this.value=i}attributeChangedCallback(t,i,s){switch(t.toLowerCase()){case\"caption\":this._shadow.$q(\"div.caption\").textContent=s;break;case\"data\":null!=s&&(this.render(s),this.removeAttribute(\"data\"))}}set sliding(t){this._sliding=t,this.toggleAttribute(\"sliding\",Boolean(t))}get sliding(){return this._sliding}get config(){return{type:\"slider\",base:this.hasAttribute(\"visible\"),expanded:this.hasAttribute(\"expanded\"),title:this.getAttribute(\"caption\"),values:{min:this.min,max:this.max,selMax:this._val2||this.max,selMin:this._val1||this.min,step:this.step}}}toString(){return this.value.replace(/\\;/g,\",\")}get value(){return`${this._val1};${this._val2}`}set value(t){if(t||(t=this.value),this.dispatcher.sendEvent(\"beforechange\",{value:this.value,global:0},this),\"string\"==typeof t&&(t=t.split(\";\")),!Array.isArray(t))return!1;this.min=Math.min(this.min,this.max),this.max=Math.max(this.min,this.max),this._val1=bmSite.roundVal(Math.min(Number(t[0]),Number(t[1])),this.step,this.min),this._val2=bmSite.roundVal(Math.max(Number(t[0]),Number(t[1])),this.step,this.min),this._val1<this.min&&(this._val1=this.min),this._val1>this.max&&(this._val1=this.max),this._val2>this.max&&(this._val2=this.max),this._val2<this.min&&(this._val2=this.min);let i=this.max-this.min,s=(this._val1-this.min)/i,e=(this.max-this._val2)/i;if(this._val1=Math.round(this._val1),this._val2=Math.round(this._val2),this._shadow.$q(\".ruler.min\").style.left=100*s+\"%\",this._shadow.$q(\".ruler.max\").style.left=100*(1-e)+\"%\",this._shadow.$q(\".scale\").style.left=100*s+\"%\",this._shadow.$q(\".scale\").style.right=100*e+\"%\",this._shadow.$q('input[data-type=\"min\"]').setAttribute(\"placeholder\",`от ${bmSite.formatPrice(this._val1)}`),this._shadow.$q('input[data-type=\"max\"]').setAttribute(\"placeholder\",`до ${bmSite.formatPrice(this._val2)}`),this._old==this.value||this.sliding)return!0;this._old=this.value,this.setChanged()}setChanged(t=!1){if(t&&!this.sliding)return!1;this.silent||this.dispatcher.sendEvent(\"change\",{value:this.value,global:0},this)}setValueByClick(t){let i=t/this.offsetWidth,s=this.max-this.min,e=(this._val1-this.min)/s,a=(this._val2-this.min)/s,h=Math.abs(i-e)<Math.abs(i-a),l=Math.round(10*(this.min+i*s))/10;h?this._val1=l:this._val2=l,this.value=this.value}render(t){let i=JSON.parse(t);this.min=Number(i.min),this.max=Number(i.max),this.step=Number(i.step),this.silent=!0,this.value=`${i.selMin};${i.selMax}`,this.silent=!1,this.dispatcher.sendEvent(\"ready\",{global:0},this)}reset(){this.silent=!0,this.value=`${this.min};${this.max}`,this.dispatcher.sendEvent(\"ready\",{global:0},this),this.silent=!1}store(){this._stored=this.value}restore(){this._stored&&(this.silent=!0,this.value=this._stored,this.dispatcher.sendEvent(\"ready\",{global:0},this),this.silent=!1)}}Object.defineProperty(bmFilterSliderElement,\"observedAttributes\",{get:()=>[\"caption\",\"data\"]});"},"bm-footer-menu-block":{"stylesheet":":host{font:var(--font-footer-menu)}::slotted(.menu-block-caption){text-transform:uppercase;display:block;font:var(--font-footer-menu)}","template":"<slot></slot>","code":"class bmFooterMenuBlockElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.$q(\".menu-block-caption\").addEventListener(\"click\",(e=>{this.toggleAttribute(\"expanded\")}))}attributeChangedCallback(e,t,o){if(\"expanded\"===e.toLowerCase())null!==o&&this.closest(\".footer-menu\").$a(\"bm-footer-menu-block\").forEach((e=>{e!=this&&e.removeAttribute(\"expanded\")}))}}Object.defineProperty(bmFooterMenuBlockElement,\"observedAttributes\",{get:()=>[\"expanded\"]});"},"bm-gallery":{"stylesheet":":host{position:relative;display:flex;align-items:stretch;justify-content:flex-start}.bm-items-roller ul:empty{height:440px;min-height:440px;background-color:red}::slotted(ul){position:relative;width:90px;height:100%;overflow:hidden;margin-right:30px}:host([no-thumbs]) slot[name=thumbs]{display:none}.slider{max-width:800px;position:relative;width:calc(100% - 90px);overflow:visible}:host([no-thumbs]) .slider{width:100%}:host(:not([bm-sub=cell])){height:var(--size-item-image-height)}:host([expandable]) .slider{cursor:pointer;overflow:visible}.scroll-board{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:space-between;left:0;top:0;width:80px;height:100%;pointer-events:none;z-index:10}.scroll-board[hidden]{display:none!important}.scroll-board button[hidden]{display:block;visibility:hidden}.scroll-board button{display:block;position:relative;width:100%;height:30px;background:linear-gradient(180deg,#fff 0,#fff 45%,rgba(255,255,255,0) 100%);border:none;pointer-events:all;cursor:pointer}.scroll-board button[data-s=\"1\"]{transform:rotate(180deg)}.scroll-board button::before{display:block;position:absolute;left:calc(50% - 15px);top:calc(50% - 15px);width:30px;height:30px;background:transparent var(--ico-arrow-button) center center no-repeat;transform:rotate(-90deg);content:\"\";background-size:8px}.stickers{position:absolute;display:flex;align-items:flex-start;justify-content:flex-start;left:20px;top:0;z-index:10}.stickers>div{position:relative;background:var(--background-button-default);color:var(--color-button-default);font:var(--font-sticker-cell-default);padding:0 15px;margin-right:25px;text-transform:uppercase;border-radius:0 0 15px 15px;display:none}:host([cap]) .stickers>div[bm-role=cap]{position:relative;top:-10px;width:55px;height:55px;background:transparent var(--ico-cap) center center no-repeat;background-size:contain;display:block;padding:0;margin-right:15px}.stickers>div[bm-role=user-photo]{display:none}:host([user-photo]) .stickers>div[bm-role=user-photo]{display:block}:host([user-photo]) .stickers>div[bm-role=user-photo]::after{content:\"Фото покупателя\";white-space:nowrap}.stickers>div[bm-role=new]{background-color:var(--background-sticker-new)}.stickers>div[bm-role=outlet]{background-color:var(--background-sticker-outlet)}.stickers>[bm-role=discount]:not(:empty)+[bm-role=outlet]{margin-left:-20px}:host([discount]) .stickers>div[bm-role=discount]{display:block}:host([outlet]) .stickers>div[bm-role=outlet]{display:block}:host([new]) .stickers>div[bm-role=new]{display:block}@media screen and (max-width:747px){:host{height:380px;display:block}::slotted(ul){display:none}.slider{width:100vw;height:100%;margin:0 -15px}.scroll-board{display:none}}li[video-local]{position:relative;cursor:pointer}li[video-local] .video-poster{position:absolute;top:0;left:0;width:100%;height:100%;background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#000;z-index:2;cursor:pointer}li[video-local] .video-poster:after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:70px;height:70px;background-color:#004ee6;border-radius:50%;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='8,5 8,19 19,12'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:55% center;background-size:35px;transition:transform .2s ease,background-color .2s ease;pointer-events:none}li[video-local] .video-poster:hover:after{transform:translate(-50%,-50%) scale(1.1);background-color:#0040c0}li[video-local].playing .video-poster{display:none}li[video-local] video{width:100%;height:100%;object-fit:contain;background:#000}@media screen and (max-width:747px){li[video-local] .video-poster:after{width:50px;height:50px;background-size:25px}}","template":"<slot name=\"thumbs\"></slot><div class=\"slider\"><bm-items-roller bm-role=\"gallery\"><ul></ul></bm-items-roller><div class=\"stickers\"><div bm-role=\"discount\"></div><div bm-role=\"outlet\">Акция</div><div bm-role=\"new\">new</div><div bm-role=\"cap\"></div><div bm-role=\"user-photo\"></div></div></div>","code":"class bmGalleryElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.current=1,this.display=this._shadow.$q(\".slider bm-items-roller\"),this.thumbs=this.$q('ul[slot=\"thumbs\"]'),this.board=$c(\"div\"),this.board.classList.add(\"scroll-board\"),this.board.innerHTML='<button data-s=\"-1\"></button><button data-s=\"1\"></button>',this._shadow.prepend(this.board),this.board.$a(\"button\").forEach((t=>{t.addEventListener(\"click\",(t=>{let e=1*t.target.dataset.s,i=this.thumbs.$a(\"li\").item(1).offsetTop,s=this.thumbs.offsetHeight,a=this.thumbs.scrollHeight-s,l=this.thumbs.scrollTop+e*s;l=i*Math.round(l/i),this.thumbs.scrollTo({top:l,behavior:\"smooth\"}),this.board.$q('button[data-s=\"-1\"]').toggleAttribute(\"hidden\",l<=0),this.board.$q('button[data-s=\"1\"]').toggleAttribute(\"hidden\",l>=a-8)}))})),this.render(),this.display.addEventListener(\"scrollend\",(t=>{let e=t.detail.n,i=this.$q(`ul li[data-n=\"${e}\"]`);this.applyAlreadyLoadedImageFromCarousel(e),this.pauseAllVideos(),i&&(this.$q(\"ul li[selected]\")&&this.$q(\"ul li[selected]\").removeAttribute(\"selected\"),i.toggleAttribute(\"selected\",1)),this.current=e,this.display.thumSelectedIndex=e,this.centerThumb(e),this.toggleAttribute(\"user-photo\",i.hasAttribute(\"user-photo\"))})),this.display.addEventListener(\"gallery:full\",(t=>{this.__expnd()})),window.addEventListener(\"resize\",(t=>{this.hasAttribute(\"dim\")})),this.centerThumb(1)}pauseAllVideos(){const t=this.display.$a(\"video\");t&&t.forEach((t=>{t.pause();const e=t.closest(\"li\");e&&e.classList.remove(\"playing\")}))}playVideo(t){const e=t.$q(\"video\");e&&(t.classList.add(\"playing\"),e.play())}applyAlreadyLoadedImageFromCarousel(t){if(!this.hasAttribute(\"expand\"))return;[...this.display._shadow.$a(`ul li[data-n=\"${t}\"]`)].forEach((t=>this.lazyLoadImage(t)))}lazyLoadImage(t){const e=t.$q(\"iframe, img, video\");!e.hasAttribute(\"src\")&&(e.setAttribute(\"src\",t.getAttribute(\"full\")),e.setAttribute(\"alt\",t.getAttribute(\"alt\")))}attributeChangedCallback(t,e,i){switch(t.toLowerCase()){case\"dim\":if(this.style.width=\"\",this.style.height=\"\",String(i).match(/x/)){let[t,e]=String(i).split(\"x\"),s=window.innerWidth,a=\"\",l=\"\",o=1;if(s<768){o=t/e,t>e&&(o=1);let i=Math.round(s/o);i>.7*window.innerHeight&&(i=Math.round(.7*window.innerHeight)),o=t/e,a=`${Math.round(s)}px`,l=`${i}px`}else{a=`${this.getBoundingClientRect().width}px`,l=\"var(--size-item-image-height)\"}this.style.width=a,this.style.height=l,$q(\".item-page\").style.gridTemplateRows=`${l} 1fr`}break;case\"expandable\":this.display.removeEventListener(\"click\",this.__expnd),null!=i&&this.display.addEventListener(\"click\",(t=>this.__expnd(t)));break;case\"discount\":this._shadow.$q('.stickers>div[bm-role=\"discount\"]').innerHTML=i}}__expnd(t){if(t&&t.target){const e=t.composedPath?t.composedPath():t.path||[];for(let t of e)if(1===t.nodeType){if(t.classList&&t.classList.contains(\"video-poster\")){const e=t.closest(\"li[video-local]\");if(e)return void this.playVideo(e)}if(\"VIDEO\"===t.tagName||t.closest(\"li[video-local]\")){const e=t.closest(\"li[video-local]\");if(e&&e.classList.contains(\"playing\"))return}}}PhotoGalleryModal.open(parseInt(this.current-1)||0)}render(){let t=this.$a(\"ul li\"),e=1;this.display.innerHTML=\"<ul></ul>\",this._shadow.$q(\".scroll-board\").toggleAttribute(\"hidden\",t.length<=5),t.forEach(((t,i)=>{let s=$c(\"li\");if(t.hasAttribute(\"video-local\")){s.setAttribute(\"video-local\",\"\");const e=t.style.backgroundImage;let i=\"\";if(e){const t=e.match(/url$['\"]?([^'\"]+)['\"]?$/);t&&(i=t[1])}const a=$c(\"div\");a.className=\"video-poster\",i&&(a.style.backgroundImage=`url('${i}')`);const l=t.$q(\"video\");l&&(s.innerHTML=l.outerHTML),s.appendChild(a),a.addEventListener(\"click\",(t=>{t.stopPropagation(),this.playVideo(s)}))}else if(t.hasAttribute(\"video\"))s.innerHTML=t.innerHTML;else{const e=0==i?'fetchpriority=\"high\"':'loading=\"lazy\"';s.innerHTML=`<img width=\"${t.getAttribute(\"width\")}\" height=\"${t.getAttribute(\"height\")}\" src='${t.getAttribute(\"preview\")||t.getAttribute(\"full\")}' alt='${t.getAttribute(\"title\")}' ${e} />`}s.dataset.n=e,t.dataset.n=e++,this.display.$q(\"ul\").appendChild(s),t.addEventListener(\"click\",(t=>{t.path||(t.path=t.composedPath());let e=0,i=t.path[e];for(;e<t.path.length&&!i.dataset.n;)i=t.path[e++];this.display.setPosition(i.dataset.n)}))}))}sleep(t){const e=Date.now();let i=null;do{i=Date.now()}while(i-e<t)}centerThumb(t=0){if(0==t){let e=this.thumbs.$q(\"li[selected]\");if(!e)return!1;t=1*e.dataset.n}let e=this.thumbs.$q(`li[data-n=\"${t}\"]`),i=this.thumbs.$a(\"li\").item(1);if(e&&i){let e=i.offsetTop,s=i.clientHeight,a=this.thumbs.offsetHeight,l=Math.round((t-1)*e-(a-s)/2),o=this.thumbs.scrollHeight-a;this.thumbs.scrollTo({top:l,behavior:\"smooth\"}),this.board.$q('button[data-s=\"-1\"]').toggleAttribute(\"hidden\",l<=0),this.board.$q('button[data-s=\"1\"]').toggleAttribute(\"hidden\",l>=o-8)}}}Object.defineProperty(bmGalleryElement,\"observedAttributes\",{get:()=>[\"dim\",\"expandable\",\"new\",\"discount\"]});"},"bm-giraffe":{"stylesheet":":host{position:fixed;left:0;top:calc(50% - 200px);height:360px;width:400px;z-index:1000;pointer-events:none}button{pointer-events:all}button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:44px;line-height:42px!important;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}button[bm-type=default][preloader],form[preloader] button[bm-type=default]{background:var(--background-default) var(--preloader) center center no-repeat;color:transparent;border:2px solid var(--background-button-default);background-size:24px;pointer-events:none}button[bm-type=default]:hover{opacity:.85}button[bm-type=white]{background-color:var(--background-default);color:var(--color-default);border-radius:5px;border:2px solid var(--color-default);padding:0 20px;height:46px;font:var(--font-button-default);line-height:42px;text-transform:uppercase;cursor:pointer}button[bm-type=white]:hover{color:var(--background-button-default);border-color:var(--background-button-default)}.giraffe-container{position:relative;margin-bottom:50px;pointer-events:all}.giraffe-container .giraffe-image{position:absolute;top:0;left:0;background:transparent var(--ico-giraffe-photo) center center no-repeat;background-size:contain;width:250px;width:237px;height:300px;transform:rotate(-90deg) translateX(-50px);transform-origin:left bottom;transition:transform .5s ease;transition-delay:.5s}:host([visible]) .giraffe-container .giraffe-image{transform:rotate(0) translateX(0);transition-delay:0}:host([closing]) .giraffe-container .giraffe-image{transform:rotate(0) translateX(-300px);transition-delay:.25s!important;transition-duration:2s}.giraffe-container .balloon{position:absolute;left:100px;top:220px;width:220px;min-height:110px;background:var(--color-default);border-radius:50%;padding:40px;color:var(--color-button-default);box-shadow:3px 3px 5px rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;flex-direction:column;font:var(--font-giraffe);transform:scale(0) translateX(0);transform-origin:left top;transition:transform .2s ease;transition-delay:1s}:host([visible]) .giraffe-container .balloon{transform:scale(1) translateX(0)}:host([closing]) .giraffe-container .balloon{transition-delay:0s!important;transform:scale(0) translateX(0)!important}.giraffe-container .balloon slot{display:block}.giraffe-container .balloon::before{content:\"\";position:absolute;background:transparent var(--ico-giraffe-balloon) left top no-repeat;width:75px;height:60px;left:-58px;top:calc(50% - 36px)}.giraffe-container .balloon .buttons{padding-top:16px;display:flex;align-items:center;justify-content:space-between;width:calc(100% - 40px)}.giraffe-container .balloon .buttons button{pointer-events:all}.done-text,.form{position:absolute;left:0;top:0;width:100%;height:100%;box-sizing:border-box;padding:50px 40px 40px 40px;display:none}.done-text{padding-top:20px;font:var(--font-texts)}.done-text .close-buttons{text-align:center;padding-top:12px}.done-text .close-buttons button{height:30px;line-height:30px!important}:host([done]) .balloon>*{display:none!important}:host([done]) .balloon>.done-text{display:block!important;padding:15px 0 0 80px;width:230px}:host([form]) .form{display:block}:host([form]) .balloon>:not(.form){display:none}.form bm-input{background:var(--background-default);pointer-events:all;margin:20px auto 0 auto;width:calc(100% - 40px)}.form>div:first-child{text-align:center}.buttons button[close]:empty,.form button[close]{position:absolute;right:0;top:0}:host([preloader]) .form button[close]{display:none}:host([preloader]) .form bm-input{pointer-events:none;color:transparent;background-image:var(--preloader);background-position:calc(100% - 10px) center;background-repeat:no-repeat;background-size:20px}.buttons button[close]:empty,.form button[close]{background:transparent var(--ico-sel-close) center center no-repeat;border:none;width:30px;height:30px;cursor:pointer}@media screen and (max-width:747px){:host{transform:scale(.8);transform-origin:left bottom}}","template":"<div class=\"giraffe-container\"><div class=\"giraffe-image\"></div><div class=\"balloon\"><slot></slot><div class=\"buttons\"> <button show-form bm-type=\"white\">Да</button> <button close bm-type=\"default\">Нет</button> <button close></button></div><div class=\"form\"><div>Пришлю смс-кой,<br> на какой номер?<br/><bm-input type=\"number\" mask=\"+7 (___) ___-__-__\"></bm-input> <button close></button></div><div class=\"done-text\"><p></p><div class=\"close-buttons\"> <button close bm-type=\"default\">OK</button></div></div></div></div>","code":"class bmGiraffeElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.sent=!1,this.lastSent=!1,this.focused=!1,this.currentRepeats=0;let t={t:0,s:0,m:0,v:{}};this.storedData=localStorage.getItem(\"_ginf\"),this.storedData?this.storedData=JSON.parse(this.storedData):this.storedData=t,Date.now()-864e5>this.storedData.m&&0!=this.storedData.m&&(this.storedData=t);let e=location.pathname.split(\"/\");for(;e.length&&\"\"==e[0].trim();)e.shift();e[0]||e.push(\"_main_\"),e[1]||e.push(\"_root_\");let s=e[0];e[1];void 0===this.storedData.v[s]&&(this.storedData.v[s]=0),this.storedData.v[s]++,this.storedData.t++,this.storedData.skip&&this.storedData.skip--,this.currentRepeats=Number(this.storedData.v[s]),localStorage.setItem(\"_ginf\",JSON.stringify(this.storedData)),this._shadow.$q(\".buttons button[show-form]\").addEventListener(\"click\",(t=>{this.toggleAttribute(\"form\",1),this._shadow.$q(\"bm-input\").focus()})),this._shadow.$a(\"button[close]\").forEach((t=>t.addEventListener(\"click\",(t=>{if(this.toggleAttribute(\"closing\",1),this.removeAttribute(\"visible\"),this.removeAttribute(\"form\"),this.hasAttribute(\"service-reject\")&&\"default\"==t.target.getAttribute(\"bm-type\")){let t={};for(let e in this.dataset)t[e]=this.dataset[e];this.dispatcher.api.post(this.getAttribute(\"service-reject\"),t),this.storedData.skip=4,this.storedData.rejected=1,this.storedData.t=0,localStorage.setItem(\"_ginf\",JSON.stringify(this.storedData))}else this.storedData.skip=4,this.storedData.t=0,this.storedData.rejected=1,localStorage.setItem(\"_ginf\",JSON.stringify(this.storedData))})))),this._shadow.$q(\"bm-input\").addEventListener(\"change\",(t=>{let e=t.target.value;if(e.match(/^(\\d{10})$/)){if(this.sent||this.lastSent==e)return!0;let s=this.getAttribute(\"service\")||\"giraffe:set\",i={phone:e};for(let t in this.dataset)i[t]=this.dataset[t];this.sent=!0,this.lastSent=e,t.target.blur(),this.dispatcher.api.post(s,i,{preloader:this}).then((t=>{t.ok?(this._shadow.$q(\".done-text > p\").innerHTML=t.message,this.toggleAttribute(\"done\",1),this.hasAttribute(\"done-timeout\")&&setTimeout((()=>this.toggleAttribute(\"closing\",1)),Number(this.getAttribute(\"done-timeout\")))):setTimeout((()=>{this.sent=!1,this.lastSent=!1,bmSite.alert(t.message)}),50)})).catch((t=>{setTimeout((()=>{this.sent=!1,this.lastSent=!1,bmSite.alert(\"Что-то пошло не так, попробуйте повторить запрос позже\")}),50)}))}})),setTimeout((()=>this.check()),50),this.addEventListener(\"touchstart\",(t=>{this.touch=t.touches[0]}),{passive:!0}),this.addEventListener(\"touchmove\",(t=>{this.touch.screenX-t.touches[0].screenX>30&&this._shadow.$q(\"[close]:empty\").click()}),{passive:!0})}check(){Number(this.getAttribute(\"ontotal\"));let t=Number(this.getAttribute(\"onrepeat\"))||1,e=Number(this.getAttribute(\"force\"))||0;e||!this.storedData.skip&&(this.currentRepeats>=t||this.storedData.t);let s=this.storedData.t,i=0<this.storedData.rejected,a=!1;!a&&e&&(a=!0),!a&&!i&&0<=[1,3,10].indexOf(s)&&(a=!0),!a&&i&&0<=[10].indexOf(s)&&(a=!0),console.log(\"giraffe\",s,i,a),a&&this.show()}show(){this.storedData.m=Date.now(),this.storedData.s=1,localStorage.setItem(\"_ginf\",JSON.stringify(this.storedData)),this.toggleAttribute(\"visible\")}attributeChangedCallback(t,e,s){t.toLowerCase()}}Object.defineProperty(bmGiraffeElement,\"observedAttributes\",{get:()=>[]});"},"bm-good-item":{"stylesheet":":host{display:flex;position:relative;background:0 0;font-family:'Open Sans';font-size:10px;line-height:13.5px;color:#101110;height:54px;transition:height .6s ease-out;will-change:height}*,::after,::before{box-sizing:border-box}:host(:not([need-animate])){height:54px}:host([need-animate]){height:0}:host([need-close]){transition:transform .4s,opacity .4s,height .4s .2s;transform:scale(0);opacity:0;height:0}.good-item-wrapper{display:flex;border-radius:8px;padding:5px 12px;height:54px;width:100%}:host .good-item-wrapper{z-index:100;background:#fff;transition:all .6s ease-out}:host(:not([need-animate])) .good-item-wrapper{transform:translateY(0);opacity:1}:host([need-animate]) .good-item-wrapper{transform:translateY(-114px);opacity:0}.image{width:35px;height:35px;align-self:center;margin-right:12px}.info{width:100%}.article{font-weight:700}.text{max-width:88%}.action-close{cursor:pointer;position:absolute;right:9px;top:8px}.action-print{cursor:pointer;position:absolute;right:26px;bottom:8px}:host([read-only]) .action-close{display:none}:host([read-only]) .action-print{right:7px}:host([no-print]) .action-print{display:none}:host([theme=delete]),:host([theme=delete]) .good-item-wrapper{height:122px}:host([theme=delete]) .image{width:97px;height:113px;margin-right:27px}:host([theme=delete]) .price{margin-top:11px}:host([theme=delete]) .info{text-align:left;margin-top:20px}:host([theme=delete]) .vendor-code{font-size:12px;font-weight:700;line-height:16px}:host([theme=delete]) .description{font-size:12px;font-weight:400;line-height:16px}:host([theme=delete]) .action-close,:host([theme=delete]) .action-print{display:none}","template":"<div class=\"good-item-wrapper\"> <img class=\"image\" src=\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMzUiIHZpZXdCb3g9IjAgMCAzNSAzNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTcuNSIgY3k9IjE3LjUiIHI9IjE3LjUiIGZpbGw9IiNGN0Y3RjciLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzMzXzExMjAwKSI+CjxwYXRoIGQ9Ik0yNi42NjY3IDIyLjkxMTdDMjYuNjY2NyAyMy4zNTM3IDI2LjY2NjcgMjQuMTYxNyAyNi42NjY2IDI0LjU3ODRDMjYuMjUgMjQuNTc4NCAyNS40NDIxIDI0LjU3ODQgMjUgMjQuNTc4NEgxMEM5LjU1ODAxIDI0LjU3ODQgOC43NTAyNCAyNC41Nzg0IDguMzMzMzEgMjQuNTc4NEM4LjMzMzMxIDI0LjE2MTcgOC4zMzMzNyAyMy4zNTM3IDguMzMzMzcgMjIuOTExN1YxMy43NDVDOC4zMzMzNyAxMy4zMDMgOC4zMzMzNyAxMi40OTUgOC4zMzMzOSAxMi4wNzg0QzguNzUwMyAxMi4wNzg0IDkuNTU4MDEgMTIuMDc4NCAxMCAxMi4wNzg0SDEzLjMzMzRMMTUgOS41NzgzN0gyMEwyMS42NjY3IDEyLjA3ODRIMjVDMjUuNDQyMSAxMi4wNzg0IDI2LjI1IDEyLjA3ODQgMjYuNjY2NyAxMi4wNzg0QzI2LjY2NjcgMTIuNDk1IDI2LjY2NjcgMTMuMzAzIDI2LjY2NjcgMTMuNzQ1VjIyLjkxMTdaIiBzdHJva2U9IiNDOUM5QzkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTcuNTAwMSAyMS4yNDVDMTkuMzQxIDIxLjI0NSAyMC44MzM0IDE5Ljc1MjcgMjAuODMzNCAxNy45MTE3QzIwLjgzMzQgMTYuMDcwOCAxOS4zNDEgMTQuNTc4NCAxNy41MDAxIDE0LjU3ODRDMTUuNjU5MSAxNC41Nzg0IDE0LjE2NjcgMTYuMDcwOCAxNC4xNjY3IDE3LjkxMTdDMTQuMTY2NyAxOS43NTI3IDE1LjY1OTEgMjEuMjQ1IDE3LjUwMDEgMjEuMjQ1WiIgc3Ryb2tlPSIjQzlDOUM5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8zM18xMTIwMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcuNTAwMDYgNy4wNzgzNykiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K\"/><div class=\"info\"><div class=\"text\"><span class=\"article\"></span><span class=\"description\"></span></div><div><span class=\"price\"></span> <span class=\"currency\">₽</span></div></div> <img class=\"action-close\" src=\"/components/bm-good-item/images/x.svg\"></img><div class=\"action-print-wrapper\"> <img class=\"action-print\" src=\"/components/bm-good-item/images/printer.svg\" data-src=\"/components/bm-good-item/images/printer.svg\" data-selected-src=\"/components/bm-good-item/images/printer-selected.svg\"> </img></div></div>","code":"class bmGoodItemElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.el={image:this._shadow.$q(\".image\"),article:this._shadow.$q(\".article\"),description:this._shadow.$q(\".description\"),price:this._shadow.$q(\".price\"),closeButton:this._shadow.$q(\".action-close\"),printButton:this._shadow.$q(\".action-print\")},this.customEvents={delete:new CustomEvent(\"delete\",{detail:{itemToBeRemoved:this}}),print:new CustomEvent(\"print\",{detail:this})},this.el.closeButton.addEventListener(\"click\",(()=>{document.querySelector(\".js-dialog-remove-item\").setAttribute(\"shown\",\"\"),this.parentNode.setAttribute(\"delete-request\",\"\"),this.dispatchEvent(this.customEvents.delete)})),this.el.printButton.addEventListener(\"click\",(()=>{this.dispatchEvent(this.customEvents.print)}))}connectedCallback(){}static create({article:e,description:t,image:i,price:s}){const r=$c(\"bm-good-item\");return r.setAttribute(\"article\",e),r.setAttribute(\"description\",t),i&&r.setAttribute(\"image\",i),r.setAttribute(\"price\",s),r.setAttribute(\"need-animate\",\"\"),r.addEventListener(\"delete\",this.handleGoodDelete),r}render(){}renderedCallback(){}attributeChangedCallback(e,t,i){switch(e.toLowerCase()){case\"image\":i.length&&(this.el.image.src=i);break;case\"article\":this.el.article.innerHTML=i;break;case\"description\":this.el.description.innerHTML=i;break;case\"price\":this.el.price.innerHTML=i;break;case\"selected\":null===i?this.el.printButton.setAttribute(\"src\",this.el.printButton.dataset.src):this.el.printButton.setAttribute(\"src\",this.el.printButton.dataset.selectedSrc)}}}Object.defineProperty(bmGoodItemElement,\"observedAttributes\",{get:()=>[\"image\",\"article\",\"need-animate\",\"description\",\"price\",\"selected\"]});"},"bm-input":{"stylesheet":":host{position:relative;display:block;border:2px solid var(--color-input-border);border-radius:5px;font:var(--font-modal-default);color:var(--color-default);height:46px}:host([focused]:not([blured])){border-color:var(--color-input-border-focus)}:host([disabled]){pointer-events:none!important}@keyframes bm_cursor{0%{background-color:var(--color-default)}49%{background-color:var(--color-default)}50%{background-color:rgba(0,0,0,0)}99%{background-color:rgba(0,0,0,0)}}input,textarea{position:absolute;left:0;top:0;width:calc(100% - 40px);min-height:100%;padding:0 20px;border:none!important;outline:0;background:0 0;font:inherit;text-transform:inherit;color:transparent;caret-color:transparent;resize:none}input::placeholder,textarea::placeholder{font:inherit;text-transform:inherit;color:inherit}textarea{min-height:1px;padding:11px 20px;box-sizing:border-box}:host([disabled]) input,:host([disabled]) textarea{visibility:hidden}:host([correct]) .display{background:#f7fef2}:host([type=address]) input,:host([type=address]) textarea{color:var(--color-default);caret-color:var(--color-default)}:host(:not([type=address])) input::selection,:host(:not([type=address])) textarea::selection{background:0 0;color:transparent}:host(:not([multiline])) textarea{display:none}:host([multiline]) input{display:none}div.display{position:absolute;left:0;top:0;width:calc(100% - 40px);height:100%;padding:0 20px;display:flex;align-items:center;justify-content:flex-start;font:inherit;color:var(--color-default);overflow:hidden;pointer-events:none;white-space:pre}:host([type=address]) div.display{visibility:hidden!important}:host([invalid]) div.display:not([placeholder]){color:var(--color-error)}:host([disabled]) div.display{color:var(--color-disabled)}div.display[placeholder]{text-transform:uppercase;font:var(--font-header-icon)}:host([install]) div.display[placeholder]{font:inherit}:host([obligate]) div.display[placeholder]::after{content:\" *\";display:inline-block;color:var(--color-error)}div.display *{flex-shrink:0}div.display i{display:inline-block;font:inherit}div.display span{color:var(--color-selection-default);background:var(--background-selection-default)}div.display span:empty{background-color:var(--color-default);height:1.5em;width:1px;margin-right:-1px;animation:1.2s linear infinite bm_cursor}:host(:not([focused])) div.display span:empty{opacity:0}:host(:not([focused])) div.display span:not(:empty){background:inherit;color:inherit}ul{position:absolute;display:block;left:-2px;top:calc(100% + 2px);background:var(--background-default);color:var(--color-default);border-radius:5px;box-shadow:0 3px 6px rgba(0,0,0,.1);width:calc(100% + 4px);max-height:275px;overflow:auto;list-style:none;margin:0;padding:0;z-index:10}:host(:not([focused]):not([type=address])):not([type=firm]):not([type=name]) ul{display:none!important}ul li{position:relative;border-bottom:1px solid var(--color-separator-line);cursor:pointer;padding:12px 20px;display:block}ul li>*{pointer-events:none}ul li em{display:block;font:inherit;color:var(--color-header-sup);pointer-events:none!important}ul li em.inn::before{content:\"ИНН \"}ul li:hover{background-color:var(--background-input-field)}button.toggle{display:none}:host([pwd]) button.toggle{position:absolute;display:block;right:0;top:-2px;height:50px;width:50px;cursor:pointer;background:transparent var(--ico-show-pwd) center center no-repeat;background-size:16px;border:none;filter:grayscale(1) brightness(2);transition:filter .35s ease}:host([type=text][pwd]) button.toggle{background-image:var(--ico-hide-pwd);filter:grayscale(0) brightness(1)}div.errorMessage{position:absolute;right:0;bottom:-1.5em;left:0;text-align:center;color:var(--color-error);white-space:nowrap}@media screen and (max-width:440px){:host([type=number]) .errorMessage{font-size:3.3vw;line-height:2.5;bottom:-2em}}","template":"<div class=\"display\"></div> <input autocomplete=\"off\" part=\"input\"><textarea autocomplete=\"off\"></textarea> <button class=\"toggle\"></div>","code":"class bmInputElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._type=\"text\",this._mask=\"\",this._placeholder=\"\",this._maxlength=64,this._suffix=!1,this._fake=!1,this.sugHistory={},this.__firm=!1,this.yamap=!1,this._keyUpTimeOut=null,this._service=!1,this.field=this._shadow.$q(\"input\"),this.fields=this._shadow.$a(\"input,textarea\"),this.fields.forEach((t=>t.addEventListener(\"focus\",(t=>{this.toggleAttribute(\"focused\",1),this.dispatcher.sendEvent(\"focus\",{global:0},this)})))),this.fields.forEach((t=>t.addEventListener(\"blur\",(t=>{setTimeout((()=>{this.toggleAttribute(\"focused\",!1),this.toggleAttribute(\"blured\",!1)}),100),this.toggleAttribute(\"blured\",!0),this.renderMask(),this.dispatcher.sendEvent(\"blur\",{global:0},this),setTimeout((()=>{let t=this._shadow.$q(\"ul.suggestions\");t&&t.remove()}),200)})))),this.fields.forEach((t=>t.addEventListener(\"click\",(t=>{this.renderMask()})))),this.fields.forEach((t=>t.addEventListener(\"mousemove\",(t=>{0!=t.button&&this.renderMask()})))),this.fields.forEach((t=>{t.addEventListener(\"input\",(t=>{this.renderMask(),this._service||this.dispatcher.sendEvent(\"change\",{global:0},this),this.validate(),this.hasAttribute(\"multiline\")?(this.field.style.height=\"1px\",this.field.style.height=`${this.field.scrollHeight}px`,this.style.height=`${this.field.scrollHeight}px`):this.style.height=\"\"}))})),this.fields.forEach((t=>t.addEventListener(\"keyup\",(t=>{if(this.renderMask(),\"address\"==this.type)this.suggestions(this.field.value);else if(\"firm\"==this.type)this.suggestions(this.field.value,\"firm\");else if(\"name\"==this.type)this.suggestions(this.field.value,\"fio\");else if(\"number\"==this.type&&10==this.maxlength){this._keyUpTimeOut&&(clearTimeout(this._keyUpTimeOut),this._keyUpTimeOut=null);const t=this._shadow.$q(\".errorMessage\");t&&10===this.field.value.length&&t.remove(),this._keyUpTimeOut=setTimeout((()=>{if(this.field.value.length<10){const e=$c(\"div\");t||(e.className=\"errorMessage\",e.innerText=\"Введите номер полностью\",this._shadow.appendChild(e))}else if(this.getAttribute(\"save-on-input\")&&!document.body.classList.contains(\"manager\")){const t={phone:this.field.value,name:this.closest(\"form\").querySelector(\"[type=name]\").value};fetch(\"/api/basket/missed/\",{method:\"post\",body:JSON.stringify(t)})}}),2e3)}this.dispatcher.sendEvent(\"keypress\",{global:0,key:t.which},this)})))),this.fields.forEach((t=>t.addEventListener(\"change\",(t=>{this.renderMask(),this._service||this.dispatcher.sendEvent(\"change\",{global:0},this)})))),this.fields.forEach((t=>t.addEventListener(\"paste\",(t=>this.onPasteEvent(t))))),this.hasAttribute(\"metrika-fake\")&&this.renderFake()}connectedCallback(){this.renderMask(),\"address\"!=this.type&&\"firm\"!=this.type||\"\"!=this.field.value.trim()&&this.dispatcher.sendEvent(\"set\",{global:0,coordinates:this.getAttribute(\"coordinates\").split(\",\")},this),this._shadow.$q(\"button.toggle\").addEventListener(\"click\",(t=>{\"password\"==this._type?this.setAttribute(\"type\",\"text\"):this.setAttribute(\"type\",\"password\"),this.focus()}))}renderFake(){if(this._fake)return!0;const t=$c(\"input\");t.toggleAttribute(\"m-fake\",1),t.setAttribute(\"tabindex\",\"-1\"),this.parentNode.insertBefore(t,this),this._fake=t}focus(){this.field.focus()}get value(){return\"firm\"==this.getAttribute(\"type\")?{firmName:this.field.value.trim(),details:this.__firm}:this.field.value.trim()}set value(t){this.field.value=t.trim(),this.dispatcher.sendEvent(\"input\",{global:0},this.field),this.renderMask()}renderMask(){if(this._service)return!0;let t=this.field.value,e=[],s={s:this.field.selectionStart,e:this.field.selectionEnd},i=\"\"==t,a=this.field.scrollLeft;if(this._shadow.$q(\".display\").toggleAttribute(\"placeholder\",i),this.field.toggleAttribute(\"placeholder\",i),i)t=this._placeholder,this.field.setAttribute(\"placeholder\",t);else if(\"number\"==this._type){let e=t;if(t=t.replace(/\\D/g,\"\"),this._mask.match(/\\d/)){let e=this._mask.replace(/^.*?(\\d).*$/,\"$1\");t=t.replace(new RegExp(`^${e}`),\"\")}e!=t&&(this.field.value=t)}if(!i&&t.length>this._maxlength&&(t=t.substr(0,this._maxlength)),\"\"!=this._mask){let e=\"\",i=0,a=!1,h=!1;for(let r=0;r<this._mask.length;r++)\"_\"!=this._mask.charAt(r)||\"\"==t.charAt(i)?(\"_\"==this._mask.charAt(r)&&(s.s==i&&!1===a&&(a=r),s.e==i&&!1===h&&(h=r)),e+=this._mask.charAt(r)):(s.s==i&&(a=r),s.e==i&&(h=r),e+=t.charAt(i++));t=e,s.s=!1!==a?a:this._mask.length,s.e=!1!==h?h:this._mask.length}for(let a=0;a<t.length;a++){let h=\"\",r=t.charAt(a);i||\"password\"!=this.type||(r=\"•\"),s.s==a&&(h=\"<span>\"),s.e==a&&(h+=\"</span>\"),h+=`<i>${r}</i>`,e.push(h)}s.s>=t.length&&e.push(\"<span>\"),s.e>=t.length&&e.push(\"</span>\"),this._suffix&&!i&&e.push(`<i class='suffix'>${this._suffix}</i>`),this._shadow.$q(\".display\").innerHTML=e.join(\"\"),this._shadow.$q(\".display\").scrollLeft=a,this._fake&&(this._fake.value=t)}attributeChangedCallback(t,e,s){switch(t.toLowerCase()){case\"mask\":this._mask=s||\"\",this._mask=String(this._mask).trim(),this.renderMask();break;case\"maxlength\":this._maxlength=s||64,this.renderMask(),this.field.setAttribute(\"maxlength\",this._maxlength);break;case\"type\":this._type=null!=s?String(s).toLowerCase():\"text\",\"password\"==this._type?(this.toggleAttribute(\"pwd\",1),this.field.setAttribute(\"type\",\"password\")):this.field.setAttribute(\"type\",\"text\"),this.renderMask();break;case\"placeholder\":this._placeholder=s||\"\",this.renderMask();break;case\"val\":this.value=s;break;case\"obligate\":this.validate();break;case\"multiline\":let t=this.value;this.field=\"null\"!==s?this._shadow.$q(\"textarea\"):this._shadow.$q(\"input\"),this.field.value=t,this.field.focus(),this.renderMask();break;case\"suffix\":this._suffix=s||!1,this.renderMask()}this._fake&&(s?this._fake.setAttribute(t,s):this._fake.removeAttribute(t))}validate(){let t=!0,e=this.value;switch(this._type){case\"number\":String(e).match(/\\D/)&&(t=!1),this.hasAttribute(\"maxlength\")&&String(e).length>this.getAttribute(\"maxlength\")&&(t=!1);break;case\"email\":let s=new RegExp(\"^s*[-a-z0-9!#$%&'*+/=?^_`{|}~]+(?:.[-a-z0-9!#$%&'*+/=?^_`{|}~]+)*@(?:[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?.)*(?:aero|arpa|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|[a-z][a-z])s*$\",\"i\");String(e).match(s)||(t=!1);break;default:\"\"==String(e).trim()&&(t=!1)}return this.hasAttribute(\"obligate\")||(t=!0),this.toggleAttribute(\"invalid\",!t),this.toggleAttribute(\"correct\",t),t}setSuggestions(){let t=this.field;$(t).suggestions({token:\"0bb9876cbd5d802426809feafddb7d41d173fbff\",type:\"ADDRESS\",count:10,onSelect:function(t){setTimeout((()=>this.focus()),75)}})}async suggestions(t=\"\",e=\"\"){if(this._q&&(this._q.abort(),this._q=!1),t.trim().length<3)return!0;let s=t.toLowerCase().trim().replace(/\\s+/g,\"_\");if(this.sugHistory[s])return this.renderSuggestions(this.sugHistory[s]);this._q=new AbortController;let i={method:\"POST\",signal:this._q.signal,mode:\"cors\",headers:{\"Content-Type\":\"application/json\",Accept:\"application/json\",Authorization:`Token ${bmSite.suggestionToken}`},body:JSON.stringify({query:t})};await new Promise((t=>setTimeout(t,400))),fetch(\"firm\"==e?bmSite.suggestionAPIFirm:\"fio\"==e?bmSite.suggestionAPIName:bmSite.suggestionAPI,i).then((t=>t.json())).then((i=>{this.sugHistory[s]=i.suggestions,this.renderSuggestions(i.suggestions,e),\"\"!=e&&\"address\"!=e||i.suggestions.length||this.trySetByGeoCode(t)})).catch((t=>{}))}async getFirstSuggestionByAddress(t=\"\"){let e,s,i={method:\"POST\",mode:\"cors\",headers:{\"Content-Type\":\"application/json\",Accept:\"application/json\",Authorization:`Token ${bmSite.suggestionToken}`},body:JSON.stringify({query:t})};return e=await fetch(bmSite.suggestionAPI,i),s=await e.json(),!(!s.suggestions||!s.suggestions.length)&&s.suggestions[0]}renderSuggestions(t,e=\"\"){let s=this._shadow.$q(\"ul.suggestions\");s||(s=$c(\"ul\"),s.classList.add(\"suggestions\"),this._shadow.appendChild(s)),s.innerHTML=\"\";for(let i=0;i<t.length;i++){let a=$c(\"li\");if(a.innerHTML=`<span>${t[i].value.replace(/\\</g,\"&lt;\")}</span>`,t[i].data.geo_lat&&t[i].data.geo_lon?a.setAttribute(\"coordinates\",`${t[i].data.geo_lat},${t[i].data.geo_lon}`):a.setAttribute(\"coordinates\",\"0,0\"),t[i].data.inn){let e=$c(\"em\");e.classList.add(\"inn\"),e.innerHTML=t[i].data.inn,a.appendChild(e),a.__firm=t[i],this.__firm=t[i]}t[i].data.flat&&(a.dataset.f=t[i].data.flat),t[i].data.region_iso_code&&(a.dataset.rg=t[i].data.region_iso_code),t[i].data.region_kladr_id&&(a.dataset.rk=t[i].data.region_kladr_id),s.appendChild(a),a.addEventListener(\"click\",(t=>this.setBySuggestion(t.target,e)))}}setBySuggestion(t,e=\"\"){if(\"\"==e&&t.$q(\".inn\")&&(e=\"firm\"),\"firm\"===e)this.setFirmBySuggestion(t);else this.setAddressBySuggestion(t,t.dataset.f);setTimeout((()=>this.focus()),125)}setAddressBySuggestion(t,e=!1){this.value=t.textContent,this.dispatcher.sendEvent(\"set\",{global:0,coordinates:t.getAttribute(\"coordinates\").split(\",\"),regionCode:t.dataset.rg,regionKladr:t.dataset.rk,appartements:e},this),setTimeout((()=>{let t=this._shadow.$q(\"ul.suggestions\");t&&t.remove()}),100)}setFirmBySuggestion(t){let e=t.cloneNode(!0);e.$q(\"em\").remove(),this.value=e.textContent,this.dispatcher.sendEvent(\"set\",{global:0,firm:t.__firm},this),setTimeout((()=>{let t=this._shadow.$q(\"ul.suggestions\");t&&t.remove()}),100)}onPasteEvent(t){let e=(t.clipboardData||window.clipboardData).getData(\"text\");if(\"number\"==this.type&&(\"phone\"==this.getAttribute(\"name\")||this.hasAttribute(\"mask\")&&this.getAttribute(\"mask\").match(/^\\+7/)))return t.preventDefault(),e=e.replace(/\\D/g,\"\"),11!=e.length||\"7\"!=e.charAt(0)&&\"8\"!=e.charAt(0)||(e=e.substr(1)),this.value=e,!1}setYaMap(t,e){this.yamap=t,this.ymaps=e}trySetByGeoCode(t){if(!this.yamap)return!0;this.ymaps.geocode(t,{json:!0}).then((t=>{const e=t.GeoObjectCollection.metaDataProperty.GeocoderResponseMetaData;if(!Number(e.found))return!1;this.dispatcher.sendEvent(\"set\",{global:0,coordinates:Array.from(e.Point.coordinates).reverse(),regionCode:\"unknown\",regionKladr:0,appartements:!1},this),setTimeout((()=>{let t=this._shadow.$q(\"ul.suggestions\");t&&t.remove()}),100)})).catch((t=>{}))}}Object.defineProperty(bmInputElement,\"observedAttributes\",{get:()=>[\"mask\",\"maxlength\",\"placeholder\",\"type\",\"val\",\"obligate\",\"suffix\",\"multiline\",\"name\"]});"},"bm-item-action":{"stylesheet":".container{position:relative;display:block;width:100%;height:100%;background:var(--background-footer-default)}slot{position:absolute;left:0;top:0;width:100%;height:100%;z-index:5}::slotted(img){max-width:100%;width:100%;height:100%;object-fit:cover;object-position:center top}.caption{position:absolute;left:0;bottom:0;padding:30px 20px;background:var(--background-footer-default);color:var(--color-footer-default);font:var(--font-item-action);text-transform:uppercase;width:calc(100% - 40px);z-index:10}","template":"<a class=\"container\"><slot></slot><div class=\"caption\">11</div></a>","code":"class bmItemActionElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this)}attributeChangedCallback(t,e,s){switch(t.toLowerCase()){case\"caption\":this._shadow.$q(\".caption\").textContent=s;break;case\"href\":this._shadow.$q(\".container\").setAttribute(\"href\",s)}}}Object.defineProperty(bmItemActionElement,\"observedAttributes\",{get:()=>[\"caption\",\"href\"]});"},"bm-item-cell":{"stylesheet":"@charset utf-8;button[bm-type=icon]{position:relative;background-color:transparent;background-position:center center;background-repeat:no-repeat;border:none;cursor:pointer}button[bm-type=expand-item],button[bm-type=to-basket]{width:36px;height:36px;border-radius:50%;border:2px solid var(--background-button-default);background:var(--background-button-default) var(--ico-basket-white) center center no-repeat;box-shadow:0 3px 6px rgba(0,0,0,.2);cursor:pointer}:host([plus]) button[bm-type=expand-item],:host([plus]) button[bm-type=to-basket]{background-size:28px;background-image:var(--ico-basket-add-white);width:40px;height:40px}button[bm-type=expand-item]{background:var(--background-button-second) var(--ico-arrow-button) center center no-repeat;border-color:var(--background-button-second)}:host([unit]) button[bm-type=to-basket]{display:none!important}:host(:not([unit])) button[bm-type=expand-item]{display:none!important}:host([basket-disable]) button[bm-type=to-basket]{display:none!important}.cell-wrapper{position:relative;width:100%;height:100%;display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;font:var(--font-item-cell-default);text-align:left;user-select:none}.cell-wrapper a{font:inherit;text-decoration:none;color:inherit;width:100%}.top-part-wrap{display:contents}.cell-wrapper .article{padding-bottom:10px;position:relative}:host([float]) .cell-wrapper .article{display:none}:host([bm-role=slide-goods]) .article{position:absolute;top:0;right:0;left:0;z-index:11}:host([bm-role=slide-goods]) .cell-wrapper .article_num{opacity:0}:host([bm-role=slide-goods]) .icons button[bm-role=comparison]{background-color:#fff}:host .cell-wrapper .today{display:none}.cell-wrapper .article .icons{position:absolute;right:20px;top:0;height:20px;display:flex;align-items:center;justify-content:flex-start;opacity:1}.cell-wrapper .article .icons button{width:20px;height:20px;margin-left:10px;opacity:0;transition:opacity .25s ease}.cell-wrapper:hover .article .icons button{opacity:1}.cell-wrapper .article .icons button[bm-role=comparison]{display:none!important;background-image:var(--ico-comparison-gray)}.cell-wrapper .article .icons button[bm-role=favorites]{background-image:var(--ico-favorites-gray);background-size:contain}:host([fav]) .cell-wrapper .article .icons button[bm-role=favorites]{background-image:var(--ico-favorites-header);opacity:1}.cell-wrapper .article .icons button[bm-role=video]{display:none!important;background-image:var(--ico-video-gray);background-size:contain;width:25px}.cell-wrapper .stickers{position:absolute;display:flex;align-items:flex-start;justify-content:flex-start;z-index:10;height:35px;width:100%}.cell-wrapper .stickers>div{position:relative;background:var(--background-button-default);color:var(--color-button-default);font:var(--font-sticker-cell-default);padding:0 15px;margin-right:25px;text-transform:uppercase;border-radius:0 0 15px 15px;display:none}:host([cap]) .cell-wrapper .stickers>div[bm-role=cap]{position:absolute;right:0;top:0;width:55px;height:55px;background:transparent var(--ico-cap) center center no-repeat;background-size:contain;display:block;padding:0;margin-right:15px}.cell-wrapper .stickers>div[bm-role=today]{display:block;padding:0 10px;position:absolute;right:0;margin-right:0;white-space:nowrap;font:var(--font-sticker-cell-default);font-size:.7em}.cell-wrapper .stickers>div.visible{display:block}.cell-wrapper .stickers>div[bm-role=new]{background-color:var(--background-sticker-new)}.cell-wrapper .stickers>div[bm-role=outlet]{background-color:var(--background-sticker-outlet)}.cell-wrapper .stickers>[bm-role=discount].visible+[bm-role=outlet]{margin-left:-20px}.cell-wrapper a .image{width:100%;height:230px;display:flex;align-items:center;justify-content:center;position:relative;outline:3px solid #fff;outline-offset:-3px}:host([class=animate]) .cell-wrapper a .image{animation:.2s linear fade}@keyframes fade{0%{opacity:1}50%{opacity:0}100%{opacity:1}}:host([bm-id=banner]) .cell-wrapper a{height:100%}:host([bm-id=banner]) .cell-wrapper a .image{outline:0}:host([bm-id=banner]) .cell-wrapper .info-list{height:0;min-height:auto;padding:0}:host([float]) .cell-wrapper a .image{height:160px}.cell-wrapper a .image.no-photo{background:transparent var(--image-nophoto) center center no-repeat;background-size:75%}.cell-wrapper a .image img{display:none;max-width:100%;max-height:100%;object-fit:contain}.cell-wrapper a .image img[current]{display:block}.cell-wrapper a .item-title{margin:10px 0 0 0;position:relative}.cell-wrapper a .item-title bm-star{width:24px;height:24px;font-size:75%;vertical-align:bottom;margin-right:5px;cursor:pointer}.cell-wrapper a .item-title strong{font-weight:800;text-transform:uppercase;display:block}:host([float]) .cell-wrapper a .item-title strong{display:none}.cell-wrapper a .item-title>span{position:relative}:host([available]) .cell-wrapper a .item-title>span::after{position:relative;display:block;content:\"в наличии\";padding-left:25px;background:transparent var(--ico-available) 2px center no-repeat;background-size:16px;color:var(--color-item-cell-available);line-height:36px;height:36px}:host([available][float]) .cell-wrapper a .item-title>span::after{position:absolute;top:-180px;left:-10px;white-space:nowrap}.cell-wrapper .board{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column}:host([float]) .cell-wrapper .board{padding:0}.cell-wrapper .board .price{color:var(--color-item-cell-price);font:var(--font-item-cell-price);display:flex;align-items:center;justify-content:flex-start;position:relative;width:100%;white-space:nowrap}.cell-wrapper .board .price strong{font:inherit;position:relative}.cell-wrapper .board .price strong::after{content:\" ₽\"}.cell-wrapper .board .price strong:empty{display:none}.cell-wrapper .board .price strong:first-of-type{margin-right:16px}:host([disabled]) .cell-wrapper .board .price strong:first-of-type{text-decoration:line-through}:host([unit]) .cell-wrapper .board .price strong:first-of-type{display:flex;align-items:flex-end}:host([unit]) .cell-wrapper .board .price strong:first-of-type small{position:relative;top:1px;font:var(--font-price-prefix)}:host([unit]) .cell-wrapper .board .price strong:first-of-type small:last-of-type{order:5}:host([unit]) .cell-wrapper .board .price strong:first-of-type small:last-of-type:not(:empty)::before{font-size:1.333em;content:\"/\"}:host([unit]) .cell-wrapper .board .price strong:first-of-type::after{order:2;padding-left:8px}.cell-wrapper .board .price strong:not(:first-of-type){color:var(--color-item-cell-price-discounted);font-size:.8em;text-decoration:line-through}.cell-wrapper .price button{opacity:0;vertical-align:middle;margin-left:10px}.cell-wrapper .price.no-buy button[bm-type=to-basket]{display:none!important}.cell-wrapper .price bm-checkbox{margin-left:15px}:host(:not([bm-mode=checkbox])) .cell-wrapper .price bm-checkbox{display:none!important}:host([bm-mode=checkbox]) .cell-wrapper .price button{display:none!important}.cell-wrapper .price button[in-basket]{opacity:1;background-color:transparent;background-image:var(--ico-tick);border-color:var(--color-default)}.cell-wrapper:hover .price button{opacity:1;transition:opacity .25s ease}.cell-wrapper .info-list{min-height:72px;padding:15px 0 20px 0;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column}:host([float]) .cell-wrapper .info-list{min-height:0;padding:5px 0}.cell-wrapper .info-list .info{color:var(--color-item-cell-price);padding:3px 0 3px 25px;background-position:left center;background-repeat:no-repeat;display:none;order:5}.cell-wrapper .info-list[empty]{opacity:0;pointer-events:none;overflow:hidden}.cell-wrapper .info-list .info:empty::before{content:\" \";white-space:pre-wrap}.cell-wrapper .info-list .info.visible{display:block;order:1}.cell-wrapper .info-list .info[bm-type=showroom]{background-image:var(--ico-in-showroom)}.cell-wrapper .info-list .info[bm-type=delivery]{background-image:var(--ico-item-delivery-green);color:var(--color-item-cell-delivery);background-size:18px}.cell-wrapper .info-list .info[bm-type=pickup]{background-image:var(--ico-item-pickup-green);color:var(--color-item-cell-delivery);background-size:15px}:host([bm-id=banner][bm-text]) .cell-wrapper{max-width:244px}.banner_info{color:#fff;max-width:244px;position:absolute;top:366px;padding:0 20px;box-sizing:border-box}.banner_info .title{font-size:19px;font-weight:800;display:block;text-transform:uppercase;line-height:1.4}.banner_info .min-price{font-size:20px;font-weight:400;display:block;text-align:right;margin-top:23px}.banner_info .min-price span{font-size:36px}:host([finalsale]) .article,:host([finalsale]) .info-list,:host([finalsale]) .item-title,:host([finalsale]) .stickers,:host([finalsale]) [bm-type=to-basket]{display:none}:host([finalsale]) .board{background-color:#ffffffcc;border-radius:10px;padding:6px 8px;position:absolute;right:0;bottom:5px;line-height:1.3;pointer-events:none}:host([finalsale]) .price{flex-direction:column-reverse;align-items:flex-start}:host([finalsale]) .price strong:nth-of-type(1){color:#e60087;font-size:16px}:host([finalsale]) .price strong:nth-of-type(2){color:#004ee6;font-size:12px}.sold_out_title{height:fit-content;text-align:center;color:#004ee6;font-size:16px;font-weight:800;text-transform:uppercase;line-height:1.3;position:absolute;top:0;bottom:12px;left:0;margin:auto;pointer-events:none}.cell-wrapper.sold_out .board,.cell-wrapper.sold_out .image{opacity:.2}@media screen and (max-width:747px){:host([finalsale]) .top-part-wrap{display:none}.cell-wrapper .article{margin-top:8px;width:100%}.cell-wrapper .article .icons{right:0;top:20px}.cell-wrapper .article .icons button:not([bm-role=favorites]){display:none}.cell-wrapper .article .icons button[bm-role=favorites]{opacity:1}:host([plus]) .cell-wrapper{gap:15px}.cell-wrapper a .image{width:calc(100% + 20px);margin:0 -10px;height:250px}.cell-wrapper .board{width:100%}:host([finalsale]) .board{width:auto}.cell-wrapper .info-list{min-height:72px;height:auto;padding-bottom:20px}.cell-wrapper .info-list[empty]{height:48px}.cell-wrapper .board .price{flex-direction:column;align-items:flex-start;padding-bottom:0}.cell-wrapper .board .price strong:nth-of-type(1){order:2}.cell-wrapper .board .price strong:nth-of-type(2){order:1}:host([bm-mode=checkbox]) .cell-wrapper .board .price{padding-bottom:20px}.cell-wrapper .board .price bm-checkbox{position:absolute;right:0;bottom:20px}.cell-wrapper .board .price button{order:3;position:absolute;opacity:1;transform:scale(1.2);right:0;top:10px}.cell-wrapper .board .price strong:first-child+button,.cell-wrapper .board .price strong:first-child+button+button,.cell-wrapper .board .price strong:first-child+strong:empty+button,.cell-wrapper .board .price strong:first-child+strong:empty+button+button{top:-10px}.top-part-wrap{display:flex;position:relative;z-index:10;height:35px;align-items:flex-start;justify-content:flex-start}.top-part-wrap .article{white-space:nowrap;order:100}.top-part-wrap .stickers{display:contents}.cell-wrapper .stickers>div.visible+div,.cell-wrapper .stickers>div.visible+div.visible{display:none}.cell-wrapper .stickers>div.visible{display:block;margin-right:15px!important}.cell-wrapper .stickers>div[bm-role=outlet].visible{font-size:12px}.cell-wrapper .stickers>div.visible+div[bm-role=outlet].visible{display:block!important;margin-left:0!important;position:absolute;top:23px;padding:0 0;width:64px;text-align:center;z-index:-1;height:34px;padding-top:7px}:host([cap]) .cell-wrapper .stickers>div[bm-role=cap]{top:30px;margin-right:0}}@media screen and (max-width:480px){.banner_info{top:75vw}.banner_info .min-price,.banner_info .title{font-size:3.5vw}.banner_info .min-price span{font-size:7vw}}","template":"<div class=\"cell-wrapper\"><a href=\"\" class='top-part'><div class=\"top-part-wrap\"><div class=\"article\"><div class=\"article_num\">Арт.&nbsp;<span></span></div><div class=\"icons\" bm-id=\"\"> <button bm-type=\"icon\" bm-role=\"video\"></button> <button bm-type=\"icon\" bm-role=\"comparison\"></button> <button bm-type=\"icon\" bm-role=\"favorites\"></button></div></div><div class=\"stickers\"><div bm-role=\"discount\"></div><div bm-role=\"outlet\">Акция</div><div bm-role=\"new\">new</div><div bm-role=\"today\"></div><div bm-role=\"cap\"></div></div></div><div class=\"image\"> <img src=\"\"></div><div class=\"item-title\"><strong></strong><span></span></div></a><div class=\"board\"><div class=\"price\"><strong></strong><strong></strong> <button bm-type=\"to-basket\" bm-id=\"\" bm-sku=\"\"></button> <button bm-type=\"expand-item\"></button><bm-checkbox>&nbsp;</bm-checkbox></div><div class=\"info-list\"><div class=\"info\" bm-type=\"showroom\">есть на витрине</div><div class=\"info\" bm-type=\"delivery\"></div><div class=\"info\" bm-type=\"pickup\"></div></div></div></div>","alias":[],"code":"class bmItemCellElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._observeAttributesEnabled=!0;let e=this.$q(\"a\"),t=this.$q(\".image\");this._titleObserver=new MutationObserver(((e,t)=>this.setTitleByObserve(e))),this._titleObserver.observe(e,{childList:!0,subtree:!0,attributes:!0}),this._imageObserver=new MutationObserver(((e,t)=>this.setImageByObserve(e))),this._imageObserver.observe(t,{childList:!0,subtree:!0,attributes:!0}),e.setAttribute(\"href\",e.getAttribute(\"href\"));let i=t.$a(\"img\");if(t.classList.toggle(\"no-photo\",0==i.length),i.length>0&&i.forEach(((e,t)=>{e.setAttribute(\"src\",e.getAttribute(\"src\")),0==t&&e.toggleAttribute(\"current\",1)})),this.imageContainer=t,this._shadow.$q(\".info-list\").toggleAttribute(\"empty\",1),this._shadow.$q('button[bm-type=\"to-basket\"]').addEventListener(\"pointer:hold\",(e=>{$q('[bm-role=\"basket\"] ul')&&(new bmSite).basket.showContextBaskets(this._shadow.$q('button[bm-type=\"to-basket\"]'),!0)})),this._shadow.$q('button[bm-type=\"to-basket\"]').addEventListener(\"click\",(e=>{if(-1==bmSite.calcHold)return bmSite.calcHold=0,e.preventDefault(),e.stopPropagation(),!1;e.preventDefault();let t=this.getRootNode().host,i=e.target;return t&&(t=t.hasAttribute(\"modal\")),(new bmSite).basket.add(i.getAttribute(\"bm-sku\"),1,t).then((e=>{i.toggleAttribute(\"in-basket\",1)})),!1})),this._shadow.$q('button[bm-type=\"expand-item\"]').addEventListener(\"click\",(e=>{this._shadow.$q(\"a.top-part\").click()})),this._shadow.$a(\".article .icons button\").forEach((e=>{e.addEventListener(\"click\",(e=>{e.preventDefault(),e.stopPropagation();let t=e.target.closest(\".icons\").getAttribute(\"bm-id\");switch(e.target.getAttribute(\"bm-role\")){case\"video\":alert(\"Show video\");break;case\"comparison\":(new bmSite).comparison.toggle(t);break;case\"favorites\":(new bmSite).favorites.toggle(t,this)}}))})),this._shadow.$q(\"bm-checkbox\").addEventListener(\"change\",(e=>{this._realClick=e.detail.realClick,e.detail.realClick&&(bmSite.lastItemCellChecked=this.getAttribute(\"bm-id\")),this._observeAttributesEnabled=!1,this.toggleAttribute(\"bm-checked\",e.target.hasAttribute(\"checked\")),this._realClick&&this.dispatcher.sendEvent(\"change\",{global:1,realClick:this._realClick},this),this._observeAttributesEnabled=!0})),this.addEventListener(\"change\",(e=>{if(this.hasAttribute(\"xtmp\"))return!0;if(this.hasAttribute(\"bm-group\")&&this.hasAttribute(\"bm-checked\")&&this.closest(\"ul\")){let e=this.getAttribute(\"bm-group\"),t=this.getAttribute(\"bm-id\");this.closest(\"ul\").$a(`bm-item-cell[bm-mode=\"checkbox\"][bm-group=\"${e}\"],bm-i[bm-mode=\"checkbox\"][bm-group=\"${e}\"]`).forEach((e=>{e.getAttribute(\"bm-id\")!=t?e.removeAttribute(\"bm-checked\"):(e.toggleAttribute(\"xtmp\",1),e.toggleAttribute(\"bm-checked\",1),e.toggleAttribute(\"xtmp\",0))})),this.toggleAttribute(\"xtmp\",0)}})),\"1\"===this.getAttribute(\"sold-out\")){this._shadow.$q(\".cell-wrapper\").classList.add(\"sold_out\");const e=document.createElement(\"div\");e.className=\"sold_out_title\",e.innerHTML=this.getAttribute(\"sold-out-title\"),this._shadow.$q(\".cell-wrapper\").appendChild(e)}}connectedCallback(){}attributeChangedCallback(e,t,i){let s=!1;switch(e.toLowerCase()){case\"bm-id\":\"banner\"==i?(this._shadow.$q(\".article\").style.display=\"none\",this._shadow.$q(\".price\").style.display=\"none\"):(this._shadow.$a(\"*[bm-id]\").forEach((t=>t.setAttribute(e,i))),this._shadow.$q(\".article span\").textContent=i);break;case\"bm-sku\":\"banner\"!==i&&this._shadow.$a(\"*[bm-sku]\").forEach((t=>t.setAttribute(e,i)));break;case\"bm-background\":i&&(this._shadow.$a(\".cell-wrapper\").item(0).style.backgroundImage=\"url('\"+i+\"')\",this._shadow.$a(\".cell-wrapper\").item(0).style.backgroundSize=\"contain\",this._shadow.$a(\".cell-wrapper\").item(0).style.backgroundRepeat=\"no-repeat\",this._shadow.$a(\".cell-wrapper\").item(0).style.backgroundPosition=\"center\");break;case\"bm-text\":const t=`<div class=\"banner_info\">${i}</div>`;this._shadow.$q(\".top-part\").innerHTML+=t;case\"is-base\":s=!0;case\"bm-group\":this.hasAttribute(\"bm-group\")&&this.hasAttribute(\"is-base\")?this._shadow.$q(\"bm-checkbox\").setAttribute(\"group\",1):this._shadow.$q(\"bm-checkbox\").removeAttribute(\"group\");break;case\"bm-checked\":this.attributeRollers(null!==i),this._observeAttributesEnabled&&this._shadow.$q(\"bm-checkbox\").toggleAttribute(\"checked\",null!==i),this.dispatcher.sendEvent(\"change\",{global:1,realClick:this._realClick},this);break;case\"bm-fixed\":this._shadow.$q(\"bm-checkbox\").toggleAttribute(\"disabled\",null!==i);break;case\"brand\":this._shadow.$q(\".item-title strong\").textContent=i.trim();break;case\"discount\":{let t=this._shadow.$q(`.stickers *[bm-role=\"${e}\"]`),s=Boolean(i);t&&(t.classList.toggle(\"visible\",Boolean(s)),t.textContent=i)}break;case\"outlet\":{let t=this._shadow.$q(`.stickers *[bm-role=\"${e}\"]`);t&&t.classList.toggle(\"visible\",Boolean(i))}break;case\"fullprice\":{let e=bmSite.formatPrice(Number(i));this._shadow.$a(\".cell-wrapper .price strong\").item(1).textContent=i>0?e:\"\"}break;case\"new\":{let t=this._shadow.$q(`.stickers *[bm-role=\"${e}\"]`),s=null!=i;t&&t.classList.toggle(\"visible\",Boolean(s))}break;case\"price\":{let e=bmSite.formatPrice(Number(i)),t=this._shadow.$a(\".cell-wrapper .price strong small\");this._shadow.$a(\".cell-wrapper .price strong\").item(0).textContent=e,t.length&&(t.length>1&&this._shadow.$a(\".cell-wrapper .price strong\").item(0).prepend(t[0]),this._shadow.$a(\".cell-wrapper .price strong\").item(0).appendChild(t[1==t.length?0:1]))}break;case\"showroom\":case\"delivery\":case\"pickup\":{let t=this._shadow.$a(`*[bm-type=\"${e}\"]`),s=null!=i;t&&t.forEach((e=>{e.classList.toggle(\"visible\",Boolean(s)),e.innerHTML=i})),this._shadow.$q(\".info-list\").toggleAttribute(\"empty\",0==this._shadow.$a(\".info.visible\").length)}break;case\"in-basket\":this._shadow.$q('*[bm-type=\"to-basket\"]').toggleAttribute(\"in-basket\",null!==i);break;case\"bm-today\":this._shadow.$q('[bm-role=\"today\"]').innerHTML=i;break;case\"unit\":let r=this._shadow.$q(\".price strong:first-of-type\");if(r.$a(\"small\").length&&r.$a(\"small\").forEach((e=>e.remove())),i){this._shadow.$q(\".price\").classList.remove(\"no-buy\");let e=$c(\"small\"),t=i.trim();if(\"+\"==t.charAt(0)){let e=$c(\"small\");e.innerHTML=\"от&nbsp;\",r.prepend(e),t=t.substr(1),this._shadow.$q(\".price\").classList.add(\"no-buy\")}e.textContent=t,r.appendChild(e)}break;case\"price-suffix\":this._shadow.$q(\".cell-wrapper .board .price\").setAttribute(\"title\",i)}}setTitleByObserve(e){e.forEach((e=>{\"a\"==e.target.tagName.toLowerCase()&&this._shadow.$a(\"a\").forEach((t=>{t.setAttribute(\"href\",e.target.getAttribute(\"href\")),t.$q(\".item-title span\").innerHTML=e.target.innerHTML}))}))}setImageByObserve(e){let t=this._shadow.$q(\".image\");t.innerHTML=\"\",t.parentNode.insertBefore(this.imageContainer.cloneNode(!0),t),t.remove(),this._shadow.$a(\".image img:not([bm-cut])\").forEach((e=>{})),this._shadow.$a(\".image img[bm-cut]\").forEach((e=>{this.cutImages(e)})),this._shadow.$q(\".image\").addEventListener(\"mousemove\",(e=>{if(bmSite.isTouchable)return!0;let t=this._shadow.$q(\".image\").getBoundingClientRect().width,i=this._shadow.$q(\".image\").getBoundingClientRect().left,s=(e.screenX-i)/t,r=this._shadow.$a(\".image>img\").length-1,a=Math.round(r*s);if(r<0)return!0;this._shadow.$q(\".image>img[current]\").removeAttribute(\"current\"),this._shadow.$a(\".image>img\").item(a).toggleAttribute(\"current\",1)}))}cutImages(e){if(!(e instanceof HTMLImageElement))return!0;let t=new Image,i=e.src,s=e.getAttribute(\"bm-cut\"),r=e.parentNode,a=document.createElement(\"ul\");t.onload=async function(){await bmSite.pause(10);let e=this.height,t=Math.floor(this.width/s);for(let i=0;i<s;i++){let s=document.createElement(\"img\"),r=document.createElement(\"li\"),o=document.createElement(\"canvas\");o.width=t,o.height=e,o.getContext(\"2d\").drawImage(this,i*-t,0),s.src=o.toDataURL(\"image/jpeg\"),0==i&&s.toggleAttribute(\"current\",1),r.appendChild(s),a.appendChild(r)}let i=$c(\"bm-items-roller\");i.setAttribute(\"bm-role\",\"gallery\"),i.setAttribute(\"bm-sub\",\"cell\"),i.append(a),r.append(i)},e.remove(),t.src=i}attributeRollers(e){const t=this.getRootNode().host;if(!t||\"bm-items-roller\"!==t.nodeName.toLowerCase())return;let i=t.getAttribute(\"linked-recommended\"),s=t.getAttribute(\"linked-required\");i&&(i=i.split(\",\")),s&&(s=s.split(\",\")),t.parentNode.querySelectorAll(\"bm-items-roller[bm-role=goods][group-id]\").forEach((t=>{const r=t.getAttribute(\"group-id\"),a=t.shadowRoot.querySelector(\"bm-items-list-title\").querySelector(\"i\").textContent;i&&i.includes(r)&&(e?t.setAttribute(\"recommended\",a):t.removeAttribute(\"recommended\")),s&&s.includes(r)&&(e?t.setAttribute(\"required\",a):t.removeAttribute(\"required\"))}))}}Object.defineProperty(bmItemCellElement,\"observedAttributes\",{get:()=>[\"bm-id\",\"bm-sku\",\"bm-background\",\"bm-text\",\"bm-today\",\"bm-checked\",\"bm-fixed\",\"in-basket\",\"bm-group\",\"is-base\",\"brand\",\"discount\",\"outlet\",\"disabled\",\"fullprice\",\"new\",\"price\",\"price-suffix\",\"showroom\",\"delivery\",\"pickup\",\"unit\",\"plus\"]});"},"bm-i":{"stylesheet":"@charset utf-8;button[bm-type=icon]{position:relative;background-color:transparent;background-position:center center;background-repeat:no-repeat;border:none;cursor:pointer}button[bm-type=expand-item],button[bm-type=to-basket]{width:36px;height:36px;border-radius:50%;border:2px solid var(--background-button-default);background:var(--background-button-default) var(--ico-basket-white) center center no-repeat;box-shadow:0 3px 6px rgba(0,0,0,.2);cursor:pointer}:host([plus]) button[bm-type=expand-item],:host([plus]) button[bm-type=to-basket]{background-size:28px;background-image:var(--ico-basket-add-white);width:40px;height:40px}button[bm-type=expand-item]{background:var(--background-button-second) var(--ico-arrow-button) center center no-repeat;border-color:var(--background-button-second)}:host([unit]) button[bm-type=to-basket]{display:none!important}:host(:not([unit])) button[bm-type=expand-item]{display:none!important}:host([basket-disable]) button[bm-type=to-basket]{display:none!important}.cell-wrapper{position:relative;width:100%;height:100%;display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;font:var(--font-item-cell-default);text-align:left;user-select:none}.cell-wrapper a{font:inherit;text-decoration:none;color:inherit;width:100%}.top-part-wrap{display:contents}.cell-wrapper .article{padding-bottom:10px;position:relative}:host([float]) .cell-wrapper .article{display:none}:host([bm-role=slide-goods]) .article{position:absolute;top:0;right:0;left:0;z-index:11}:host([bm-role=slide-goods]) .cell-wrapper .article_num{opacity:0}:host([bm-role=slide-goods]) .icons button[bm-role=comparison]{background-color:#fff}:host .cell-wrapper .today{display:none}.cell-wrapper .article .icons{position:absolute;right:20px;top:0;height:20px;display:flex;align-items:center;justify-content:flex-start;opacity:1}.cell-wrapper .article .icons button{width:20px;height:20px;margin-left:10px;opacity:0;transition:opacity .25s ease}.cell-wrapper:hover .article .icons button{opacity:1}.cell-wrapper .article .icons button[bm-role=comparison]{display:none!important;background-image:var(--ico-comparison-gray)}.cell-wrapper .article .icons button[bm-role=favorites]{background-image:var(--ico-favorites-gray);background-size:contain}:host([fav]) .cell-wrapper .article .icons button[bm-role=favorites]{background-image:var(--ico-favorites-header);opacity:1}.cell-wrapper .article .icons button[bm-role=video]{display:none!important;background-image:var(--ico-video-gray);background-size:contain;width:25px}.cell-wrapper .stickers{position:absolute;display:flex;align-items:flex-start;justify-content:flex-start;z-index:10;height:35px;width:100%}.cell-wrapper .stickers>div{position:relative;background:var(--background-button-default);color:var(--color-button-default);font:var(--font-sticker-cell-default);padding:0 15px;margin-right:25px;text-transform:uppercase;border-radius:0 0 15px 15px;display:none}:host([cap]) .cell-wrapper .stickers>div[bm-role=cap]{position:absolute;right:0;top:0;width:55px;height:55px;background:transparent var(--ico-cap) center center no-repeat;background-size:contain;display:block;padding:0;margin-right:15px}.cell-wrapper .stickers>div[bm-role=today]{display:block;padding:0 10px;position:absolute;right:0;margin-right:0;white-space:nowrap;font:var(--font-sticker-cell-default);font-size:.7em}.cell-wrapper .stickers>div.visible{display:block}.cell-wrapper .stickers>div[bm-role=new]{background-color:var(--background-sticker-new)}.cell-wrapper .stickers>div[bm-role=outlet]{background-color:var(--background-sticker-outlet)}.cell-wrapper .stickers>[bm-role=discount].visible+[bm-role=outlet]{margin-left:-20px}.cell-wrapper a .image{width:100%;height:230px;display:flex;align-items:center;justify-content:center;position:relative;outline:3px solid #fff;outline-offset:-3px}:host([class=animate]) .cell-wrapper a .image{animation:.2s linear fade}@keyframes fade{0%{opacity:1}50%{opacity:0}100%{opacity:1}}:host([bm-id=banner]) .cell-wrapper a{height:100%}:host([bm-id=banner]) .cell-wrapper a .image{outline:0}:host([bm-id=banner]) .cell-wrapper .info-list{height:0;min-height:auto;padding:0}:host([float]) .cell-wrapper a .image{height:160px}.cell-wrapper a .image.no-photo{background:transparent var(--image-nophoto) center center no-repeat;background-size:75%}.cell-wrapper a .image img{display:none;max-width:100%;max-height:100%;object-fit:contain}.cell-wrapper a .image img[current]{display:block}.cell-wrapper a .item-title{margin:10px 0 0 0;position:relative}.cell-wrapper a .item-title bm-star{width:24px;height:24px;font-size:75%;vertical-align:bottom;margin-right:5px;cursor:pointer}.cell-wrapper a .item-title strong{font-weight:800;text-transform:uppercase;display:block}:host([float]) .cell-wrapper a .item-title strong{display:none}.cell-wrapper a .item-title>span{position:relative}:host([available]) .cell-wrapper a .item-title>span::after{position:relative;display:block;content:\"в наличии\";padding-left:25px;background:transparent var(--ico-available) 2px center no-repeat;background-size:16px;color:var(--color-item-cell-available);line-height:36px;height:36px}:host([available][float]) .cell-wrapper a .item-title>span::after{position:absolute;top:-180px;left:-10px;white-space:nowrap}.cell-wrapper .board{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column}:host([float]) .cell-wrapper .board{padding:0}.cell-wrapper .board .price{color:var(--color-item-cell-price);font:var(--font-item-cell-price);display:flex;align-items:center;justify-content:flex-start;position:relative;width:100%;white-space:nowrap}.cell-wrapper .board .price strong{font:inherit;position:relative}.cell-wrapper .board .price strong::after{content:\" ₽\"}.cell-wrapper .board .price strong:empty{display:none}.cell-wrapper .board .price strong:first-of-type{margin-right:16px}:host([disabled]) .cell-wrapper .board .price strong:first-of-type{text-decoration:line-through}:host([unit]) .cell-wrapper .board .price strong:first-of-type{display:flex;align-items:flex-end}:host([unit]) .cell-wrapper .board .price strong:first-of-type small{position:relative;top:1px;font:var(--font-price-prefix)}:host([unit]) .cell-wrapper .board .price strong:first-of-type small:last-of-type{order:5}:host([unit]) .cell-wrapper .board .price strong:first-of-type small:last-of-type:not(:empty)::before{font-size:1.333em;content:\"/\"}:host([unit]) .cell-wrapper .board .price strong:first-of-type::after{order:2;padding-left:8px}.cell-wrapper .board .price strong:not(:first-of-type){color:var(--color-item-cell-price-discounted);font-size:.8em;text-decoration:line-through}.cell-wrapper .price button{opacity:0;vertical-align:middle;margin-left:10px}.cell-wrapper .price.no-buy button[bm-type=to-basket]{display:none!important}.cell-wrapper .price bm-checkbox{margin-left:15px}:host(:not([bm-mode=checkbox])) .cell-wrapper .price bm-checkbox{display:none!important}:host([bm-mode=checkbox]) .cell-wrapper .price button{display:none!important}.cell-wrapper .price button[in-basket]{opacity:1;background-color:transparent;background-image:var(--ico-tick);border-color:var(--color-default)}.cell-wrapper:hover .price button{opacity:1;transition:opacity .25s ease}.cell-wrapper .info-list{min-height:72px;padding:15px 0 20px 0;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column}:host([float]) .cell-wrapper .info-list{min-height:0;padding:5px 0}.cell-wrapper .info-list .info{color:var(--color-item-cell-price);padding:3px 0 3px 25px;background-position:left center;background-repeat:no-repeat;display:none;order:5}.cell-wrapper .info-list[empty]{opacity:0;pointer-events:none;overflow:hidden}.cell-wrapper .info-list .info:empty::before{content:\" \";white-space:pre-wrap}.cell-wrapper .info-list .info.visible{display:block;order:1}.cell-wrapper .info-list .info[bm-type=showroom]{background-image:var(--ico-in-showroom)}.cell-wrapper .info-list .info[bm-type=delivery]{background-image:var(--ico-item-delivery-green);color:var(--color-item-cell-delivery);background-size:18px}.cell-wrapper .info-list .info[bm-type=pickup]{background-image:var(--ico-item-pickup-green);color:var(--color-item-cell-delivery);background-size:15px}:host([bm-id=banner][bm-text]) .cell-wrapper{max-width:244px}.banner_info{color:#fff;max-width:244px;position:absolute;top:366px;padding:0 20px;box-sizing:border-box}.banner_info .title{font-size:19px;font-weight:800;display:block;text-transform:uppercase;line-height:1.4}.banner_info .min-price{font-size:20px;font-weight:400;display:block;text-align:right;margin-top:23px}.banner_info .min-price span{font-size:36px}:host([finalsale]) .article,:host([finalsale]) .info-list,:host([finalsale]) .item-title,:host([finalsale]) .stickers,:host([finalsale]) [bm-type=to-basket]{display:none}:host([finalsale]) .board{background-color:#ffffffcc;border-radius:10px;padding:6px 8px;position:absolute;right:0;bottom:5px;line-height:1.3;pointer-events:none}:host([finalsale]) .price{flex-direction:column-reverse;align-items:flex-start}:host([finalsale]) .price strong:nth-of-type(1){color:#e60087;font-size:16px}:host([finalsale]) .price strong:nth-of-type(2){color:#004ee6;font-size:12px}.sold_out_title{height:fit-content;text-align:center;color:#004ee6;font-size:16px;font-weight:800;text-transform:uppercase;line-height:1.3;position:absolute;top:0;bottom:12px;left:0;margin:auto;pointer-events:none}.cell-wrapper.sold_out .board,.cell-wrapper.sold_out .image{opacity:.2}@media screen and (max-width:747px){:host([finalsale]) .top-part-wrap{display:none}.cell-wrapper .article{margin-top:8px;width:100%}.cell-wrapper .article .icons{right:0;top:20px}.cell-wrapper .article .icons button:not([bm-role=favorites]){display:none}.cell-wrapper .article .icons button[bm-role=favorites]{opacity:1}:host([plus]) .cell-wrapper{gap:15px}.cell-wrapper a .image{width:calc(100% + 20px);margin:0 -10px;height:250px}.cell-wrapper .board{width:100%}:host([finalsale]) .board{width:auto}.cell-wrapper .info-list{min-height:72px;height:auto;padding-bottom:20px}.cell-wrapper .info-list[empty]{height:48px}.cell-wrapper .board .price{flex-direction:column;align-items:flex-start;padding-bottom:0}.cell-wrapper .board .price strong:nth-of-type(1){order:2}.cell-wrapper .board .price strong:nth-of-type(2){order:1}:host([bm-mode=checkbox]) .cell-wrapper .board .price{padding-bottom:20px}.cell-wrapper .board .price bm-checkbox{position:absolute;right:0;bottom:20px}.cell-wrapper .board .price button{order:3;position:absolute;opacity:1;transform:scale(1.2);right:0;top:10px}.cell-wrapper .board .price strong:first-child+button,.cell-wrapper .board .price strong:first-child+button+button,.cell-wrapper .board .price strong:first-child+strong:empty+button,.cell-wrapper .board .price strong:first-child+strong:empty+button+button{top:-10px}.top-part-wrap{display:flex;position:relative;z-index:10;height:35px;align-items:flex-start;justify-content:flex-start}.top-part-wrap .article{white-space:nowrap;order:100}.top-part-wrap .stickers{display:contents}.cell-wrapper .stickers>div.visible+div,.cell-wrapper .stickers>div.visible+div.visible{display:none}.cell-wrapper .stickers>div.visible{display:block;margin-right:15px!important}.cell-wrapper .stickers>div[bm-role=outlet].visible{font-size:12px}.cell-wrapper .stickers>div.visible+div[bm-role=outlet].visible{display:block!important;margin-left:0!important;position:absolute;top:23px;padding:0 0;width:64px;text-align:center;z-index:-1;height:34px;padding-top:7px}:host([cap]) .cell-wrapper .stickers>div[bm-role=cap]{top:30px;margin-right:0}}@media screen and (max-width:480px){.banner_info{top:75vw}.banner_info .min-price,.banner_info .title{font-size:3.5vw}.banner_info .min-price span{font-size:7vw}}","code":"{}","template":"<div class=\"cell-wrapper\"><a href=\"\" class='top-part'><div class=\"top-part-wrap\"><div class=\"article\"><div class=\"article_num\">Арт.&nbsp;<span></span></div><div class=\"icons\" bm-id=\"\"> <button bm-type=\"icon\" bm-role=\"video\"></button> <button bm-type=\"icon\" bm-role=\"comparison\"></button> <button bm-type=\"icon\" bm-role=\"favorites\"></button></div></div><div class=\"stickers\"><div bm-role=\"discount\"></div><div bm-role=\"outlet\">Акция</div><div bm-role=\"new\">new</div><div bm-role=\"today\"></div><div bm-role=\"cap\"></div></div></div><div class=\"image\"> <img src=\"\"></div><div class=\"item-title\"><strong></strong><span></span></div></a><div class=\"board\"><div class=\"price\"><strong></strong><strong></strong> <button bm-type=\"to-basket\" bm-id=\"\" bm-sku=\"\"></button> <button bm-type=\"expand-item\"></button><bm-checkbox>&nbsp;</bm-checkbox></div><div class=\"info-list\"><div class=\"info\" bm-type=\"showroom\">есть на витрине</div><div class=\"info\" bm-type=\"delivery\"></div><div class=\"info\" bm-type=\"pickup\"></div></div></div></div>","aliasOf":"bm-item-cell"},"bm-item-counter":{"stylesheet":":host{display:block;margin-bottom:30px;opacity:1;transition:opacity .5s ease}:host(.removing){opacity:0}button[bm-type=icon]{position:relative;background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;background-position:left center;color:var(--color-item-disabled);padding-left:28px;font:var(--font-header-icon);margin-right:20px}button[bm-type=icon][bm-role=favorites]{background-image:var(--ico-favorites-gray);background-size:20px}button[bm-type=icon][bm-role=comparison]{display:none;background-image:var(--ico-comparison-gray);background-size:20px}button[bm-type=icon][bm-role=remove]{background-image:var(--ico-delete-button);background-size:12px;padding-left:20px}:host([is_modal]) button[bm-type=icon][bm-role=remove]{margin-left:4px;padding-left:24px}.item-line{display:flex;align-items:center;justify-content:flex-start;padding:15px 0}.item-line .title{width:60%;display:grid;grid-template-columns:100px 1fr}:host([info]) .item-line .title{width:100%}.item-line .title a[article]{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;font:var(--font-item-cell-default);color:var(--color-default);text-decoration:none;padding-right:30px}.item-line .title a[article]::before{display:block;color:var(--color-item-disabled);content:\"Арт. \" attr(article);padding-bottom:10px}.item-line .packing{font:var(--font-item-cell-default)}.item-line .title .image{max-height:200px;position:relative}.item-line .title .image img{width:75%;height:100%;object-fit:contain;display:block}.item-line .title .board{padding-top:15px}:host([info]) .item-line .title .board{display:none!important}.board a[bm-role=alt]{max-width:175px;display:block;margin-bottom:30px;text-transform:uppercase;color:var(--color-outlet-link);font-weight:600;text-decoration:none}.board a[bm-role=alt]::after{content:'';width:11px;height:11px;background-image:var(--ico-arrow-top-right);background-size:11px;display:inline-block;margin-left:6px}.board a[bm-role=alt]:empty{display:none}.count-block>::before{display:block;position:relative;font:var(--font-item-cell-default);color:var(--color-header-sup);padding-bottom:5px}.count-block{display:flex;align-items:flex-start;justify-content:space-between;white-space:nowrap;margin-left:50px;width:calc(40% - 50px);min-width:400px}:host([info]) .count-block{display:none!important;pointer-events:none}:host(:not([base])) .count-block .notdiscounted-price{display:none}:host([base]) .count-block .notdiscounted-price{font-size:.75em;text-decoration:line-through}:host .count-block .price div[bm-role=to-basket]{display:none}.count-block>*{position:relative}.count-block>.price::before{content:\"Цена\";position:absolute;top:0;left:0}.count-block>.amount::before{content:\"Сумма\";position:absolute;top:0;left:0}.count-block>.input::before{content:\"Кол-во\"}.count-block .amount,.count-block .price{font:var(--font-item-cell-price);display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;padding-top:1.2em}.price.warning{text-decoration:underline;text-decoration-style:wavy;text-decoration-color:red;position:relative}.price.warning:hover::after{content:attr(data-warningmsg);position:absolute;color:#000;font-size:14px;font-weight:400;border:1px solid #000;padding:5px;line-height:1;background-color:#fff;top:100%;right:0;white-space:nowrap;z-index:10}@media screen and (max-width:767px){:host{overflow:hidden}.count-block .price{align-items:flex-start}}.count-block .amount i,.count-block .price i{font:inherit}.count-block .amount i::after,.count-block .notdiscounted-price::after,.count-block .price i::after{content:\" ₽\"}.count-block>.input{margin:0 50px}:host([mode-info]){max-width:760px}:host([mode-info]) .count-block>.amount,:host([mode-info]) .count-block>.input{display:none}:host([mode-info]) .item-line .title{width:90%}:host([mode-info]) .count-block{min-width:50px;width:10%}:host([mode-info]) .count-block .price div[bm-role=to-basket]{display:block;background:var(--background-button-default) var(--ico-basket-white) center center no-repeat;border-radius:50px;width:44px;height:44px;background-size:24px;margin:20px auto;cursor:pointer;border:2px solid transparent}:host([mode-info]) .count-block .price div[bm-role=to-basket][in-basket]{background-color:transparent;background-image:var(--ico-tick);border-color:var(--color-default)}:host([mode-info][complect=\"1\"]) .count-block .price div[bm-role=to-basket]{display:none}:host([fav]) button[bm-type=icon][bm-role=favorites]{display:none}:host([is_modal]) button[bm-type=icon][bm-role=favorites]{display:none}:host([mode-info]) .count-block{width:90%;padding-left:100px;margin-left:0;box-sizing:border-box}:host([mode-info]) .count-block .price{flex-direction:row;align-items:center;justify-content:space-between;width:100%;min-height:48px}:host([mode-info]) .count-block>.price::before{top:13px}:host([mode-info]) .count-block .price div[bm-role=to-basket]{margin:0}@media screen and (max-width:1279px){.item-line{flex-direction:column;align-items:flex-start}.count-block{margin-left:100px;padding-top:30px;width:auto}.item-line .title{width:100%}.price.warning:hover::after{right:auto;left:0}}@media screen and (max-width:580px){.item-line .title i{display:none}.item-line .title .board{grid-column:span 2}.count-block{margin-left:0;flex-wrap:wrap;width:100%;justify-content:space-between;padding-top:0;min-width:unset}.count-block .input{order:1;width:100%;margin:15px 0}.count-block .price{order:5;width:50%}.count-block .amount{order:9}:host([mode-info]) .count-block{padding-left:0}:host([mode-info]) .count-block .price{padding-top:33px}:host([mode-info]) .count-block>.price::before{top:20px}}","template":"<div class=\"item-line\"><div class=\"title\"><div class=\"image\"><img></div><div><a></a><div class=\"packing\"></div></div><i></i><div class=\"board\"><a href=\"\" bm-role=\"alt\" target=\"_blank\"></a> <button bm-type=\"icon\" bm-role=\"comparison\" bm-id>В сравнение</button> <button bm-type=\"icon\" bm-role=\"favorites\" bm-id>В избранное</button> <button bm-type=\"icon\" bm-role=\"remove\" bm-id>Удалить</button></div></div><div class=\"count-block\"><span class=\"price\"><i></i><span class=\"notdiscounted-price\"></span><div bm-role=\"to-basket\" bm-id></div> <button bm-type=\"expand-item\"></button></span><span class=\"input\"><bm-count bm-id></bm-count></span><span class=\"amount\"><i></i><span class=\"notdiscounted-price\"></span></span></div></div><slot name=\"accessories\"></slot><style>\n    button[bm-type=\"expand-item\"]{\n        background: var(--background-button-second) var(--ico-arrow-button) center center no-repeat;\n        border-color: var(--background-button-second);\n        width: 36px;\n        height: 36px;\n        border-radius: 50%;\n        border: 2px solid var(--background-button-default);\n        box-shadow: 0 3px 6px rgba(0, 0, 0, .2);\n        cursor: pointer;\n        display: none;\n    }\n\n</style>","code":"class bmItemCounterElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.notObserve=!1;let t=(t,e=!1)=>{this.notObserve=!0,this.count=this._shadow.$q(\"bm-count\").value,e||this.dispatcher.sendEvent(\"update\",{global:0},this),this.notObserve=!1;let i=this.price/this._shadow.$q(\"bm-count\").unitDivider,s=this.base/this._shadow.$q(\"bm-count\").unitDivider;this._shadow.$q(\"span.price>i\").textContent=bmSite.formatPrice(i),this._shadow.$q(\"span.price .notdiscounted-price\").textContent=s?bmSite.formatPrice(s):\"\"};this._shadow.$q(\"bm-count\").addEventListener(\"change\",t),this._shadow.$q(\"bm-count\").addEventListener(\"init\",(e=>t(0,1))),this._shadow.$q('button[bm-role=\"remove\"]').addEventListener(\"click\",(t=>{this.hasAttribute(\"fav\")?((new bmSite).favorites.remove(this.getAttribute(\"bm-id\")),this.removeItem()):(new bmSite).basket.remove(this.getAttribute(\"bm-id\")).then((t=>{this.removeItem()}))})),this.hasAttribute(\"remove_add_to_basket\")&&(this._shadow.$q('[bm-role=\"to-basket\"]').style.display=\"none\",this._shadow.$q('[bm-type=\"expand-item\"]').style.display=\"block\",this._shadow.$q('[bm-type=\"expand-item\"]').addEventListener(\"click\",(t=>{window.location=this.getAttribute(\"href\")}))),this._shadow.$q('button[bm-role=\"favorites\"]').addEventListener(\"click\",(t=>{(new bmSite).favorites.toggle(this.getAttribute(\"bm-id\"))})),this._shadow.$q('.price div[bm-role=\"to-basket\"]').addEventListener(\"click\",(t=>{(new bmSite).basket.add(this.getAttribute(\"bm-id\")).then((t=>{this._shadow.$q('.price div[bm-role=\"to-basket\"]').toggleAttribute(\"in-basket\",1)}))}))}connectedCallback(){setTimeout((()=>this.calculate()),5),this.$q('ul[bm-role=\"units\"]')&&this._shadow.$q(\"bm-count\").appendChild(this.$q('ul[bm-role=\"units\"]').cloneNode(!0)),setTimeout((()=>this._shadow.$q(\"bm-count\").dispatchEvent(new Event(\"init\"))))}get value(){let t=this.price/this._shadow.$q(\"bm-count\").unitDivider;return Number(this._shadow.$q(\"bm-count\").unitVal).toFixed(8)*t}get baseValue(){return!!this.base&&Number(this.count).toFixed(8)*this.base}get unit(){return this._shadow.$q(\"bm-count\").unit||void 0}get details(){return this._shadow.$q(\"bm-count\").details||void 0}get unitVal(){return this._shadow.$q(\"bm-count\").unitVal||void 0}get calcVal(){return this._shadow.$q(\"bm-count\").calcVal}removeItem(){this.classList.add(\"removing\"),this.addEventListener(\"transitionend\",(t=>{const e=1===this.closest(\".removable-items-container\").children.length;this.dispatcher.sendEvent(\"remove\",{global:0},this),e&&this.dispatcher.sendEvent(\"modal:close\",{global:0,isEmpty:e}),this.remove()}))}attributeChangedCallback(t,e,i){switch(t.toLowerCase()){case\"caption\":this._shadow.$q(\".title a\").textContent=i;break;case\"href\":this._shadow.$q(\".title a\").setAttribute(\"href\",i);break;case\"thumb\":this._shadow.$q(\".title img\").setAttribute(\"src\",i);break;case\"count\":this.notObserve||this._shadow.$q(\"bm-count\").setAttribute(\"value\",i);break;case\"max\":this._shadow.$q(\"bm-count\").setAttribute(\"max\",i);break;case\"min\":this._shadow.$q(\"bm-count\").setAttribute(\"min\",i);break;case\"step\":this._shadow.$q(\"bm-count\").setAttribute(\"step\",i);break;case\"price\":this._shadow.$q(\".count-block .price > i\").textContent=bmSite.formatPrice(i);break;case\"base\":this._shadow.$q(\".count-block .price .notdiscounted-price\").textContent=bmSite.formatPrice(i);break;case\"info\":this._shadow.$q(\".title a\").setAttribute(\"target\",null==i?\"\":\"_blank\");break;case\"bm-id\":this._shadow.$q(\".title a\").setAttribute(\"article\",i),this._shadow.$a('[bm-id=\"\"]').forEach((t=>t.setAttribute(\"bm-id\",i)));break;case\"outlet_link\":this._shadow.$q('a[bm-role=\"alt\"]').href=i,this._shadow.$q('a[bm-role=\"alt\"]').textContent=\"Есть такой же, только уцененный\";break;case\"nonoutlet_link\":this._shadow.$q('a[bm-role=\"alt\"]').href=i,this._shadow.$q('a[bm-role=\"alt\"]').textContent=\"Есть такой же, только новый\";case\"packing\":i&&(this._shadow.$q(\".packing\").innerText=\"В упаковке: \"+i);break;case\"total_remains\":if(\"0\"==i){const t=this._shadow.$q(\".price\");t.classList.add(\"warning\"),t.setAttribute(\"data-warningmsg\",\"Требуется актуализировать цену и наличие\")}}this._shadow.$q(\"bm-count\")&&this._shadow.$q(\"bm-count\").render&&this._shadow.$q(\"bm-count\").render(),this.calculate()}calculate(){this._shadow.$q(\".count-block .amount i\").textContent=bmSite.formatPrice(this.value),this._shadow.$q(\".count-block .amount .notdiscounted-price\").textContent=bmSite.formatPrice(this.baseValue)}}Object.defineProperty(bmItemCounterElement,\"observedAttributes\",{get:()=>[\"bm-id\",\"caption\",\"count\",\"href\",\"max\",\"min\",\"price\",\"base\",\"step\",\"thumb\",\"info\",\"outlet_link\",\"nonoutlet_link\",\"packing\",\"total_remains\",\"add_to_basket\"]});"},"bm-items-expander":{"stylesheet":"","template":""},"bm-items-list-title":{"stylesheet":"button[bm-type=arrow]{position:relative;background:var(--background-default);border:none;cursor:pointer;width:50px;height:50px;box-shadow:0 3px 6px rgba(0,0,0,.1);border-radius:50%}button[bm-type=arrow]::before{position:absolute;content:\"\";left:0;top:0;width:100%;height:100%;background:transparent var(--ico-arrow-button) center center no-repeat}button[bm-type=arrow][bm-dir=left]::before{transform:rotate(180deg)}:host{position:relative;text-align:center;font:var(--font-header-base);color:var(--color-default);text-transform:uppercase;min-height:20px;display:flex;align-items:flex-end;justify-content:center;--nav-top:calc(100% + 120px)}:host([bm-role=slide-goods]){color:var(--color-hover-link);cursor:default;margin-bottom:20px;z-index:50}:host-context([bm-role=brands]){margin-bottom:20px}:host([collapsible]){font:var(--font-catalogue-menu-subheader);text-align:left;text-transform:none;height:auto;position:static}:host([collapsible]) span{display:block;cursor:pointer;margin:-15px;padding:15px}:host([modal]) span{display:none!important}:host([collapsible]) span::after{content:\"\";display:inline-block;position:relative;width:20px;height:20px;vertical-align:middle;margin-left:6px;background:transparent var(--ico-arrow-button) center center no-repeat;transform:rotate(90deg)}:host([collapsible][expanded]) span::after{transform:rotate(-90deg)}:host-context([inner]){text-align:left;font:var(--font-header-inner)}:host-context([type=catalogue-page]){text-align:left;font:var(--font-header-inner)}::slotted(*){color:inherit;text-decoration:inherit;font-style:inherit}::slotted(a){color:var(--color-hover-link);display:block}::slotted(ia){text-decoration:none}::slotted(ia:not([href])){cursor:default}:host([bm-role=slide-goods]) ::slotted(i)::after{display:inline-block;position:absolute;margin-left:-20px;width:24px;height:24px;background:transparent var(--ico-full-arrow-right) center center no-repeat;content:\"\";background-size:14px;vertical-align:middle}nav{position:absolute;right:0;top:0;height:100%;display:none}:host([nav]) nav{display:flex}:host([nav][blank]) nav{position:relative;top:-20px;width:calc(100% - 40px);justify-content:space-between}:host([nav][collapsible]) nav{position:absolute;left:0;top:0;width:100%;height:100%;align-items:center;justify-content:space-between;pointer-events:none;z-index:20}:host([nav][bm-role]) nav button,:host([nav][collapsible]) nav button,:host([nav][inline]) nav button{pointer-events:all}:host([nav][bm-role]) nav{position:absolute;top:0;width:calc(100% - 20px);pointer-events:none;justify-content:space-between;right:auto;left:0;z-index:10}nav button{margin-left:16px}:host([nav][bm-role]) nav button[hidden]{display:block;pointer-events:none;opacity:0}@media screen and (max-width:1279px){:host{min-height:40px}}@media screen and (max-width:747px){:host([collapsible]),:host([inline]){padding:15px 20px;position:static}:host([nav]:not([collapsible]):not([inline])) nav,nav{display:none}:host([nav][collapsible]) nav,:host([nav][inline]) nav{left:0;top:0;width:100%;height:100%;z-index:20;justify-content:space-between;align-items:center;pointer-events:none}button[bm-type=arrow]{margin-left:0;pointer-events:all}:host([nav][inline]) nav{position:absolute;left:0;top:0;width:100%;height:100%;align-items:center;justify-content:space-between;pointer-events:none;z-index:20}:host([nav][inline]) nav button{margin-bottom:100px}}","template":"<span><slot></slot></span><nav> <button bm-type=\"arrow\" bm-dir=\"left\"></button> <button bm-type=\"arrow\" bm-dir=\"right\"></button></nav>","code":"class bmItemsListTitleElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._shadow.$a(\"nav button\").forEach((t=>t.addEventListener(\"click\",(t=>{let e=t.target.getAttribute(\"bm-dir\").toLowerCase();this._shadow.$q('nav button[bm-dir=\"left\"]').toggleAttribute(\"hidden\",0),this.dispatcher.sendEvent(\"scroll\",{internal:!0,direction:e,dir:\"left\"==e?-1:\"right\"==e?1:0},this)})))),window.addEventListener(\"resize\",(()=>this.resizeCallback())),this._shadow.$q(\"span\").addEventListener(\"click\",(t=>{if(!this.hasAttribute(\"collapsible\"))return!0;this.toggleAttribute(\"expanded\"),this.dispatcher.sendEvent(this.hasAttribute(\"expanded\")?\"expand\":\"collapse\",{global:0},this)}))}connectedCallback(){this.hasAttribute(\"bm-role\")&&this._shadow.$q('nav button[bm-dir=\"left\"]').toggleAttribute(\"hidden\",1)}attributeChangedCallback(t,e,i){if(\"bm-role\"===t.toLowerCase())i&&this._shadow.$q('nav button[bm-dir=\"left\"]').toggleAttribute(\"hidden\",1)}resizeCallback(){let t=this.parentNode.querySelector(\"ul\");if(t){let e=this.getBoundingClientRect(),i=t.getBoundingClientRect(),s=i.y-e.y+.25*i.height;this.style.setProperty(\"--nav-top\",`${Math.floor(s)}px`)}}}Object.defineProperty(bmItemsListTitleElement,\"observedAttributes\",{get:()=>[\"bm-role\"]});"},"bm-items-roller":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}:host{display:block;position:relative;padding-bottom:50px;border-bottom:1px solid var(--color-separator-line);margin-bottom:40px}:host([bm-role=slide-goods]){border-bottom:none}:host([collapsible]){padding:15px;border:1px solid var(--color-blocks-border);margin:20px 0}:host([type=catalogue-page]){margin-top:40px}:host button[bm-role=show-more]{display:none}:host button[bm-role=show-more].-disabled{display:none!important}:host([bm-role=gallery]){border-bottom:none;height:100%;width:100%;padding-bottom:0;margin-bottom:0}:host([bm-role=gallery])>ul li [loading]{background:#e6e6e6}:host([bm-role=gallery])>ul li *{background:0 0}:host([bm-role=gallery])>ul li::before{content:\"\";display:block;height:100%;position:absolute;top:0;left:0;width:100%;background-color:rgba(255,255,255,.1)}:host([bm-role=gallery]) bm-items-list-title{height:0;z-index:10}bm-items-list-title[blank] i{display:none!important}bm-items-list-title i a{text-decoration:none;color:var(--color-hover-link)}bm-items-list-title i a::after{content:\"\\A0\\A0\\A0\\A0\"}:host>ul{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;margin-top:30px;padding:0}:host>bm-items-list-title.none{display:none}:host>bm-items-list-title.none+ul{margin-top:0}:host([collapsible])>ul{margin-top:30px;margin:30px -10px;display:none}:host([collapsible][expanded])>ul{display:flex}:host([modal])>ul{margin:0}:host([type=catalogue-page])>ul{margin-top:25px}:host([preloader])>ul li{background:transparent var(--preloader) center 60px no-repeat;background-size:30px}:host([preloader])>ul li *{visibility:hidden!important}:host([bm-role=goods])>ul,:host([bm-role=slide-goods])>ul{align-items:stretch;transform:translateX(0)}:host([bm-role=goods])>ul.-moving,:host([bm-role=slide-goods])>ul.-moving{transition:transform 0s ease;transform:translateX(160px)}:host([bm-role=goods])>ul.-moving2,:host([bm-role=slide-goods])>ul.-moving2{transition:transform .45s ease;transform:translateX(0)}:host([full])>ul{flex-wrap:wrap}:host>ul li{position:relative;width:20%;flex-shrink:0;text-align:center;display:block}:host([bm-role=icons])>ul li{min-height:330px}:host>ul:not(.-touched) li{transform:translateX(0);transition:transform .1s ease}:host([bm-role=goods])>ul li{width:calc(20% - 20px);padding:0 10px}:host([bm-role=goods])>ul li[incompatible]{opacity:.4}:host([bm-role=slide-goods])>ul li{width:calc(20% - 20px)}:host([bm-role=slide-goods][reviews])>ul li{width:calc(45% - 40px)}:host([bm-role=slide-goods][reviews])>bm-items-list-title{justify-content:flex-start}:host([bm-role=slide-goods][reviews])>ul li:not(:last-child){margin-right:30px}:host([bm-role=slide-goods][search])>ul li{width:calc(28% - 40px);padding:0 20px}:host([bm-role=goods][modal])>ul li{width:calc(33.3% - 20px)}:host([bm-role=gallery])>ul{margin-top:0;height:100%}:host([bm-role=gallery]:not([bm-sub=cell]))>ul{height:var(--size-item-image-height)}:host([bm-role=gallery])>ul li{width:100%;height:100%}:host([bm-role=gallery])>ul li.no-image{display:block}:host([bm-role=actions])>ul li{width:calc(50% - 10px);margin-right:20px}:host>ul li[data-sticker]::after{position:absolute;content:attr(data-sticker);left:20px;top:0;background-color:var(--background-button-default);color:var(--color-button-default);font:var(--font-sticker-default);padding:0 20px;border-radius:0 0 25px 25px}:host>ul li bm-img,:host>ul li img{position:relative;display:inline-block;width:95%;height:95%;max-width:256px;max-height:256px;object-fit:cover}:host>ul li bm-img[bm-cut],:host>ul li img[bm-cut]{visibility:hidden}:host>ul li bm-img[rounded],:host>ul li img[rounded]{border-radius:50%;transform:scale(.67)}:host([bm-role=gallery])>ul li{display:flex;align-items:center;justify-content:center}:host([bm-role=gallery][bm-sub=cell])>ul{align-items:center}:host([bm-role=gallery][bm-sub=cell])>ul li{max-height:230px}:host([bm-role=gallery])>ul li>*{max-width:94%;max-height:100%;width:100%;object-fit:contain}:host([bm-role=gallery]:not([bm-sub=cell]))>ul li>img{max-height:var(--size-item-image-height);max-width:100%;width:auto;height:100%}:host([bm-role=gallery]:not([bm-sub=cell]))>ul li>iframe{max-height:var(--size-item-image-height);max-width:100%;width:calc(100% - 32px);height:100%}:host([bm-role=brands])>ul li a{display:inline-flex;height:120px;width:95%;align-items:center;justify-content:center;box-shadow:0 3px 6px rgba(0,0,0,.1);margin:10px 0;border-radius:5px}:host([bm-role=brands])>ul li img{width:auto;height:auto;max-width:90%;max-height:90%}:host([bm-role=actions])>ul li img{width:100%;max-width:100vw;max-height:315px;border-radius:10px}:host>ul li a{text-decoration:none;display:block;position:relative}:host>ul li .title{font:var(--font-cat-title);color:var(--color-default);text-transform:uppercase;display:block;margin:0 2em}:host([bm-role=icons])>ul li .title{position:relative;margin-top:-20px;padding-bottom:20px;display:block;z-index:10}:host>ul li .title[data-count]::after{display:inline-block;position:relative;content:attr(data-count);color:var(--color-header-sup);font:var(--font-cat-title-info);padding:0 5px}:host>ul li.no-image a::before{position:relative;display:block;width:95%;padding-top:95%;max-width:256px;max-height:256px;content:\" \";transform:scale(.63);border-radius:50%;background:var(--background-button-second);opacity:.35}:host([bm-role=actions])>ul li .title{text-align:left;margin-left:0;padding-top:20px}:host([bm-role=actions])>ul li .title small{display:block;font:var(--font-date-interval);margin-top:.6em;text-transform:none}.dots{display:none;position:absolute;bottom:0;left:0;width:100%;height:15px;align-items:center;justify-content:center;pointer-events:none;z-index:50}.dots em{margin:0 3px;background:var(--color-gallery-thumb);width:6px;height:6px;border-radius:3px;transition:all .25s ease;box-shadow:0 0 2px rgba(255,255,255,.4)}.dots em.current{background:var(--color-select-selected)}:host([reviews-install]) li{padding:20px;border:1px solid #ccc;border-radius:12px;width:calc(33% - 60px)!important;margin-right:20px}@media screen and (max-width:747px){:host([reviews-install]) ul{margin-left:5px!important}:host([bm-role=slide-goods][reviews-install]) ul li{width:calc(90% - 80px)!important;box-sizing:border-box;overflow:hidden}:host([reviews-install]) li [text]{min-height:168px!important}:host([reviews-install]) li>img{max-height:168px}}:host([reviews-install]) li [info]{display:grid;grid-template-columns:120px 1fr;margin:20px;text-align:left;color:#000}:host([reviews-install]) li [info]>img{width:100px;height:100px;margin-right:20px;grid-row:1/3}:host([reviews-install]) li [info] [date]{font:var(--font-text);font-size:.8em;padding-top:1em}:host([reviews-install]) li [info] [date] b{float:right}:host([reviews-install]) li [info] [date] b u{display:inline-block;background:transparent url(data:image/svg+xml;base64,77u/PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNi41NDMzIDAuMzA3MDY4QzYuNzIyMzQgLTAuMTAyMzU1IDcuMjc3NjUgLTAuMTAyMzU3IDcuNDU2NyAwLjMwNzA2N0w5LjE0MDQgNC4xNTcxOEM5LjIxMzU1IDQuMzI0NDUgOS4zNjQ3OCA0LjQzOTU1IDkuNTM5MjUgNC40NjA3NUwxMy41NTQ5IDQuOTQ4NDlDMTMuOTgxOSA1LjAwMDM1IDE0LjE1MzUgNS41NTM2MSAxMy44MzcxIDUuODU4NTJMMTAuODYyMSA4LjcyNTc2QzEwLjczMjggOC44NTAzMyAxMC42NzUxIDkuMDM2NTcgMTAuNzA5NyA5LjIxNjk0TDExLjUwNzggMTMuMzY4NUMxMS41OTI3IDEzLjgxIDExLjE0MzUgMTQuMTUxOSAxMC43Njg5IDEzLjkzMDlMNy4yNDY1IDExLjg1MjlDNy4wOTM0NiAxMS43NjI2IDYuOTA2NTMgMTEuNzYyNiA2Ljc1MzUgMTEuODUyOUwzLjIzMTExIDEzLjkzMDlDMi44NTY1NCAxNC4xNTE5IDIuNDA3MjggMTMuODEgMi40OTIxNSAxMy4zNjg1TDMuMjkwMjUgOS4yMTY5NEMzLjMyNDkzIDkuMDM2NTcgMy4yNjcxNiA4Ljg1MDMzIDMuMTM3OTEgOC43MjU3NkwwLjE2Mjg1IDUuODU4NTJDLTAuMTUzNTIgNS41NTM2MSAwLjAxODA3ODYgNS4wMDAzNSAwLjQ0NTEwNSA0Ljk0ODQ5TDQuNDYwNzUgNC40NjA3NUM0LjYzNTIxIDQuNDM5NTUgNC43ODY0NSA0LjMyNDQ1IDQuODU5NiA0LjE1NzE4TDYuNTQzMyAwLjMwNzA2OFoiIGZpbGw9IiNGRkM5NjEiLz48L3N2Zz4NCg==) center center no-repeat;width:12px;height:12px;margin-right:4px;background-size:cover}:host([reviews-install]) li [text]{min-height:144px;font:var(--font-text);margin:20px 0;text-align:left;color:#000}:host([reviews-install]) li>img{max-width:100vw;width:100%!important;border-radius:10px}@media screen and (max-width:1439px){:host(:not([bm-role=actions]):not([bm-role=gallery]):not([reviews-install]))>ul li{width:25%}:host([bm-role=goods]:not([reviews-install]))>ul li{width:calc(25% - 20px)}:host([bm-role=slide-goods]:not([reviews-install]))>ul li{width:calc(25% - 20px)}:host([bm-role=actions])>ul li img{max-height:290px}:host([reviews-install]) li [info]{margin:5px;grid-template-columns:75px 1fr}:host([reviews-install]) li [info]>img{width:60px;height:60px}:host([reviews-install]) li [info] [date] b{float:none;display:block}}@media screen and (max-width:1279px){:host(:not([bm-role=actions]):not([bm-role=gallery]):not([reviews-install]))>ul li{width:33.3%}:host([bm-role=goods]:not([bm-role=gallery]))>ul li{width:calc(33.3% - 20px)}:host([bm-role=slide-goods]:not([bm-role=gallery]):not([reviews-install]))>ul li{width:calc(50% - 30px);padding:0 10px;box-sizing:border-box}:host>ul li[data-sticker]::after{border-radius:0 0 15px 15px}:host([bm-role=actions])>ul li img{max-height:230px}:host(:not([reviews-install])) ul{margin-right:-20px}:host([reviews-install]) ul li{width:33%!important;box-sizing:border-box;padding:8px}}@media screen and (max-width:1439px) and (min-width:747px){:host([reviews-install]) ul li{width:33%!important;box-sizing:border-box;padding:8px}}@media screen and (max-width:747px){:host{padding-bottom:30px;margin-bottom:30px}:host([bm-role=slide-goods][reviews]:not([bm-role=gallery]))>ul li{width:calc(100% - 80px);margin-right:10px}:host>ul{margin-left:-15px;margin-right:-15px;margin-top:20px;align-items:stretch;width:calc(100% + 30px)}:host(:not([bm-role=slide-goods]))>ul li{height:100%}:host([bm-role=icons])>ul li{min-height:50vw}:host([bm-role=icons])>ul li img{width:100%;height:50vw!important}:host(:not([bm-role=icons]))>ul li img{height:auto}:host(:not([bm-role=actions]))>ul li{width:40%}:host([full])>ul li{width:50%!important}:host([bm-role=actions])>ul li{width:70%;padding-left:20px;margin-right:0;box-sizing:border-box}:host>ul li[data-sticker]::after{border-radius:0 0 10px 10px}:host([bm-role=actions])>ul li img{max-height:160px}:host(:not([bm-role=actions]):not([bm-role=actions]))>ul li .title{margin:0 6px}:host([bm-role=icons])>ul li .title{margin-top:-20px!important;padding-bottom:20px!important}:host([bm-role=actions])>ul li .title{margin:0}:host([bm-role=goods]:not([collapsible]):not([inline]))>ul{margin:0 -15px;display:grid;grid-template-columns:1fr 1fr;grid-gap:0}:host([bm-role=goods]:not([collapsible]):not([inline]))>ul li{border:1px solid var(--color-separator-line);width:auto;margin:0;display:none;position:relative;overflow:hidden}:host([bm-role=slide-goods]:not([reviews]):not([collapsible]):not([inline]))>ul li:not(first-child){border-left:1px solid var(--color-separator-line)}:host([bm-role=goods]:not([collapsible]):not([inline]))>ul li:nth-child(1),:host([bm-role=goods]:not([collapsible]):not([inline]))>ul li:nth-child(2),:host([bm-role=goods]:not([collapsible]):not([inline]))>ul li:nth-child(3),:host([bm-role=goods]:not([collapsible]):not([inline]))>ul li:nth-child(4){display:block;width:calc(100% - 20px)}:host([bm-role=goods]:not([collapsible]:not([inline]))){border-bottom:none}:host([bm-role=goods]:not([collapsible]:not([inline]))) button[bm-role=show-more]{display:block;margin:20px 0;width:100%}:host([bm-role=brands])>ul li img{width:auto;height:auto;max-width:75%;max-height:90%}:host([bm-role=gallery])>ul{margin-left:0;margin-right:0;width:100%}:host([bm-role=gallery])>ul li{width:100%;max-height:100vh;height:auto}:host([collapsible]),:host([inline]){padding:0}:host([inline])>ul{margin:0 -15px;width:100vw}:host([inline])>ul{grid-template-columns:repeat(300,50%)}:host([collapsible]:not([bm-role=actions]):not([bm-role=gallery]):not([modal]))>ul li{width:100%;padding:0 7.5%;box-sizing:border-box}:host([collapsible][modal]:not([bm-role=actions]):not([bm-role=gallery]))>ul{grid-gap:15px}:host([collapsible][modal]:not([bm-role=actions]):not([bm-role=gallery]))>ul li{width:100%;padding:0 15% 0 0;box-sizing:border-box}:host([collapsible][expanded])>ul,:host([inline])>ul,:host([modal])>ul{margin:0;width:calc(100% - 10px);display:grid;grid-template-columns:repeat(500,75%)}:host([collapsible][expanded])>ul{width:100%;grid-template-columns:repeat(500,50%)}:host([collapsible][expanded][modal])>ul{width:100%;grid-template-columns:repeat(500,65%)}:host([inline])>ul li{width:90%!important;padding:0 5%}:host([bm-role=gallery])>ul li>*{width:100%;max-width:calc(100% - 4px);max-height:100%}:host([bm-role=gallery]) ul{height:100%;width:100%;margin:0}:host([bm-role=gallery]) .dots{display:flex}:host([bm-role=gallery]:not([bm-sub=cell]))>ul{height:100%}:host([bm-role=gallery]:not([bm-sub=cell]))>ul li>iframe{max-height:none;max-width:none;width:100%;height:100%;object-fit:initial}:host([bm-role=gallery]:not([bm-sub=cell]))>ul li>img{max-height:none;width:auto;height:100%}}li[video-local]{position:relative;cursor:pointer}li[video-local] .video-poster{position:absolute;top:0;left:0;width:100%;height:100%;background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#000;z-index:2;cursor:pointer}li[video-local] .video-poster:after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:70px;height:70px;background-color:#004ee6;border-radius:50%;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='8,5 8,19 19,12'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:55% center;background-size:35px;transition:transform .2s ease,background-color .2s ease;pointer-events:none}li[video-local] .video-poster:hover:after{transform:translate(-50%,-50%) scale(1.1);background-color:#0040c0}li[video-local].playing .video-poster{display:none}li[video-local] video{width:100%;height:100%;object-fit:contain;background:#000}@media screen and (max-width:747px){li[video-local] .video-poster:after{width:50px;height:50px;background-size:25px}}","template":"<bm-items-list-title nav></bm-items-list-title><slot name=\"pre\"></slot><ul></ul><div class='dots'></div> <button bm-type=\"default\" bm-role=\"show-more\">Смотреть все</button>","code":"class bmItemsRollerElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.inprogress=!1,this.dragTypes=[\"gallery\",\"goods\",\"slide-goods\"],this.viewport=this._shadow.$q(\"ul\"),this._thumSelectedIndex=null,this.startIndex=1,window.addEventListener(\"fav:change\",(t=>{this._shadow.$a(`bm-item-cell[bm-id=\"${t.detail.id}\"], bm-i[bm-id=\"${t.detail.id}\"]`).forEach((e=>{e.toggleAttribute(\"fav\",t.detail.state)}))}));this.$a(\"ul>li\");if(this.sourceHeader=this.$q(\"h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6\"),this.sourceHeader){let t=this._shadow.$q(\"bm-items-list-title\");t.innerHTML=`<i>${this.sourceHeader.innerHTML}</i>`;for(let e=0;e<t.childElementCount;e++)\"i\"!=t.children[e].tagName.toLowerCase()||t.children[e].$q(\"a\")||t.children[e].append($c(\"a\"));t.toggleAttribute(\"blank\",\"\"==this.sourceHeader.innerHTML.trim()),this._titleObserver=new MutationObserver(((t,e)=>this.setTitleByObserve(t))),this._titleObserver.observe(this.sourceHeader,{childList:!0,subtree:!0,attributes:!0})}else this._shadow.$q(\"bm-items-list-title\").classList.add(\"none\");this.dragInited=!1,this.touch={},this.viewport.addEventListener(\"touchstart\",(t=>this.touchStart(t))),this.viewport.addEventListener(\"touchmove\",(t=>this.touchMove(t))),this.viewport.addEventListener(\"touchend\",(t=>this.touchEnd(t))),window.addEventListener(\"resize\",(t=>this.resizeCallback(t))),this._shadow.$q(\"ul\").addEventListener(\"mousemove\",(t=>{if(window.innerWidth<748||!this.hasAttribute(\"bm-role\")||\"gallery\"!=this.getAttribute(\"bm-role\")||\"cell\"!=this.getAttribute(\"bm-sub\")||!this._shadow.$q(\"li\"))return!1;this.dragInited||this.prepareTouchScroll();let e=this.getBoundingClientRect(),i=Math.round((t.screenX-e.left)/e.width*this.sourceImagesLength);this.setPosition(i)})),this._shadow.$q(\"ul\").addEventListener(\"mouseleave\",(t=>{if(window.innerWidth<748||!this.hasAttribute(\"bm-role\")||\"gallery\"!=this.getAttribute(\"bm-role\")||\"cell\"!=this.getAttribute(\"bm-sub\")||!this._shadow.$q(\"li\"))return!1;this.setPosition(1)})),this._shadow.$q(\"bm-items-list-title a[href]\")&&!this._shadow.$q(\"bm-items-list-title a[href]\").getAttribute(\"href\").match(/^\\#/)?this._shadow.$q('[bm-role=\"show-more\"]').addEventListener(\"click\",(t=>{this._shadow.$q(\"bm-items-list-title a\").click()})):this._shadow.$q('[bm-role=\"show-more\"]').classList.add(\"-disabled\"),this._shadow.$q(\"bm-items-list-title\").addEventListener(\"collapse\",(t=>this.toggleAttribute(\"expanded\",0))),this._shadow.$q(\"bm-items-list-title\").addEventListener(\"expand\",(t=>this.toggleAttribute(\"expanded\",1))),this._shadow.$q(\"bm-items-list-title\").addEventListener(\"scroll\",(t=>{this.scroll(t.detail.dir||0,t.detail.offset||0)}))}prepareTouchScroll(){if(this.dragInited=!0,this.hasAttribute(\"empty\"))return!0;let t=Array.from(this.viewport.children),e=screen.width/this.itemWidth,i=0,s=parseInt(getComputedStyle(this.viewport).gridGap.replace(/^(\\d+).*$/,\"$1\"))||0,r=[0,t.length-1];this.leftAdded=Math.max(t.length,e),this.sourceImagesLength=t.length;for(let e=0;e<this.leftAdded;e++){let e=t[r[0]].cloneNode(!0),h=t[r[1]].cloneNode(!0);e.classList.toggle(\"-clone\",1),h.classList.toggle(\"-clone\",1),this.viewport.append(e),this.viewport.prepend(h),i+=Math.floor(t[r[1]].getBoundingClientRect().width)+s,r[0]++,r[0]>=t.length&&(r[0]=0),r[1]--,r[1]<0&&(r[1]=t.length-1)}this.viewport.scrollLeft=i}touchStart(t){if(this.hasAttribute(\"empty\"))return!0;if(-1==this.dragTypes.indexOf(this.getAttribute(\"bm-role\")))return!1;this.dragInited||this.prepareTouchScroll(),this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY,this.touch.hasstarted=!1,this.touch.speed=0,this.touch.started=performance.now(),Array.from(this.viewport.children).forEach((t=>{t.style.transition=\"none\"}))}touchMove(t){if(this.hasAttribute(\"empty\"))return!0;if(-1==this.dragTypes.indexOf(this.getAttribute(\"bm-role\")))return!1;this.touch.x=t.touches[0].clientX,this.touch.y=t.touches[0].clientY;const e=this.touch.x-this.touch.startX,i=this.touch.y-this.touch.startY;if(this.touch.hasstarted||Math.abs(e)-Math.abs(i)>15){return Array.from(this.viewport.children).forEach((t=>{t.style.transform=`translateX(${e}px)`})),this.touch.hasstarted=!0,this.touch.dx=e,!1}}touchEnd(){if(this.hasAttribute(\"empty\"))return!0;if(-1==this.dragTypes.indexOf(this.getAttribute(\"bm-role\")))return!1;if(!this.touch.hasstarted)return!0;this.touch.speed=this.touch.dx/(performance.now()-this.touch.started)*1e3,this.relocateBeforeScroll(),this.touch.hasstarted=!1;this._shadow.$a(\"li\").forEach((t=>t.removeAttribute(\"current\")));const t=this.parentNode.parentNode.querySelector(\"slot[name=thumbs]\"),e=t?.assignedElements()[0].querySelector(\"li[selected]\");e&&e.removeAttribute(\"selected\");const i=t.assignedElements()[0].querySelector(`li[data-n=\"${this.currentPosition}\"]`);i&&i.setAttribute(\"selected\",\"\")}relocateBeforeScroll(){this._shadow.querySelectorAll(\".dots .current\").forEach((t=>t.classList.remove(\"current\")));let t,e=Math.abs(this.touch.dx)<this.itemWidth?Math.sign(this.touch.dx):Math.round(this.touch.dx/this.itemWidth),i=this.touch.speed/1e3,s=0,r=this.touch.speed/1e3;r<.25&&(r=.25),r>1.5&&(r=1.5),e*=Math.ceil(Math.abs(i)),s=this.itemWidth*e;for(let t=0;t<Math.abs(e);t++)e<0?this.viewport.append(this.viewport.children[0]):this.viewport.prepend(this.viewport.children[this.viewport.childElementCount-1]);t=Array.from(this.viewport.children),t.forEach((t=>{t.style.transform=`translateX(${this.touch.dx-s}px)`})),setTimeout((()=>{if(t.forEach((t=>{t.style.transition=`transform ${r}s ease-out`})),t.forEach((t=>{t.style.transform=\"translateX(0)\"})),this.leftAdded>=t.length)return;let e=t[this.leftAdded].dataset.n;this._shadow.querySelector(`.dots em:nth-child(${e})`).classList.add(\"current\"),this.dispatcher.sendEvent(\"scrollend\",{dir:void 0,internal:!0,n:this.currentPosition},this)}),10)}connectedCallback(){this.viewport.innerHTML=\"\";const t=this.parentNode.parentNode.host;t&&void 0!==t.getBoundingClientRect&&setTimeout((()=>{t.getBoundingClientRect().width}));let e=this.$a(\"ul>li\"),i=1,s=\"\";e.forEach((t=>{let e=t.cloneNode(!0);if(e.dataset.n||(e.dataset.n=i),i++,e.$q(\"img\")||e.classList.add(\"no-image\"),this.viewport.appendChild(e),s+=`<em${\"\"==s?\" class='current'\":\"\"}></em>`,e.$q(\"iframe\")){e.$q(\"iframe\")}})),i<3&&(s=\"\"),this._shadow.querySelector(\".dots\").innerHTML=s,this._listObserver||(this._listObserver=new MutationObserver(((t,e)=>this.setListByObserve(t))),this._listObserver.observe(this.$q(\"ul\"),{childList:!0,subtree:!0,attributes:!0})),this.resizeCallback()}get realCount(){return this.$a(\"ul>li\").length}get minLength(){if(this.viewport){let t=this.viewport.getBoundingClientRect().width;return Math.floor(t/this.itemWidth)}return 5}get itemWidth(){if(this.realCount<1)return 0;if(this.realCount<2)return this._shadow.$q(\"ul>li\").getBoundingClientRect().width;let t=this._shadow.$a(\"ul>li\").item(0).getBoundingClientRect(),e=this._shadow.$a(\"ul>li\").item(1).getBoundingClientRect();return Math.round(e.left-t.left)}get currentPosition(){return 1*this.viewport.$q(\"li\").dataset.n}setPosition(t=1){this.dragInited||this.prepareTouchScroll(),t<0&&(t=1),this._shadow.$a(\".dots .current\").forEach((t=>t.classList.remove(\"current\")));let e=this.viewport.$a(`li[data-n=\"${t}\"]`),i=1;if(!e.length)return!1;e.length<2&&(i=0);let s=this.viewport.scrollLeft,r=this.viewport.getBoundingClientRect(),h=e[i].getBoundingClientRect().left-r.left+s;this.viewport.scrollLeft=h,this.dispatcher.sendEvent(\"scrollend\",{dir:0,internal:!0,n:t},this,{passive:!0});try{this._shadow.querySelector(`.dots em:nth-child(${t})`).classList.add(\"current\")}catch(t){}}scroll(t=1,e=0){if(this.inprogress||this.realCount<2)return!1;this.dragInited||this.prepareTouchScroll(),this.inprogress=!0,this.dispatcher.sendEvent(\"scrollstart\",{dir:t,internal:!0},this);let i=this.viewport.$a(\"li\");t<0&&(this.viewport.prepend(i.item(i.length-1)),this.viewport.scrollLeft=this.itemWidth);this.viewport.scrollLeft;let s=t>0?-this.itemWidth:this.itemWidth;this.viewport.$a(\"li\").forEach((t=>{t.style=`transform: translateX(${s}px)`})),this.viewport.$q(\"li\").addEventListener(\"transitionend\",(e=>{i.forEach((t=>{t.style=\"transition: transform 0s ease; transform: translateX(0);\"})),t>0&&this.viewport.appendChild(i.item(0)),this.viewport.scrollLeft=0,this.inprogress=!1,this.dispatcher.sendEvent(\"scrollend\",{dir:t,internal:!0,n:this.currentPosition},this,{passive:!0})}),{once:!0})}attributeChangedCallback(t,e,i){switch(t){case\"empty\":case\"full\":null!=i?this._shadow.$q(\"bm-items-list-title\").removeAttribute(\"nav\"):this._shadow.$q(\"bm-items-list-title\").toggleAttribute(\"nav\",\"1\");break;case\"collapsible\":this._shadow.$q(\"bm-items-list-title\").toggleAttribute(\"collapsible\",null!==i);break;case\"inline\":this._shadow.$q(\"bm-items-list-title\").toggleAttribute(\"inline\",null!==i);break;case\"modal\":this._shadow.$q(\"bm-items-list-title\").toggleAttribute(\"modal\",null!==i);break;case\"expanded\":setTimeout((()=>this.resizeCallback()),15);break;case\"bm-role\":let t=i;$q(\".item-page\")&&\"complect\"==$q(\".item-page\").getAttribute(\"bm-type\")&&\"goods\"==t&&(t=\"slide-goods\"),this._shadow.$a(\"bm-item-cell,bm-i\").forEach((t=>t.setAttribute(\"bm-role\",i))),this.$a(\"bm-item-cell,bm-i\").forEach((t=>t.setAttribute(\"bm-role\",i))),this._shadow.$q(\"bm-items-list-title\").setAttribute(\"bm-role\",t)}}resizeCallback(){this.realCount>this.minLength?this.removeAttribute(\"empty\"):this.toggleAttribute(\"empty\",1)}setTitleByObserve(t){t.forEach((t=>{this._shadow.$q(\"bm-items-list-title\").innerHTML=this.sourceHeader.innerHTML,this._shadow.$q(\"bm-items-list-title\").toggleAttribute(\"blank\",\"\"==this.sourceHeader.innerHTML.trim())}))}setListByObserve(t){this.connectedCallback()}}Object.defineProperty(bmItemsRollerElement,\"observedAttributes\",{get:()=>[\"empty\",\"expanded\",\"collapsible\",\"inline\",\"modal\",\"full\",\"bm-role\"]});"},"bm-link":{"stylesheet":"","template":".","code":"class bmLinkElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.addEventListener(\"click\",(t=>{var e=this.getAttribute(\"service\")||null,s=JSON.parse(this.getAttribute(\"params\"))||{};this.classList.add(\"preloader\"),this.dispatcher.api.request(e,s,{}).then((t=>{this.classList.remove(\"preloader\"),this.innerHTML=this.getAttribute(\"alt\")||\"Ok\",this.classList.add(\"done\")})).catch((t=>{alert(t)}))}))}attributeChangedCallback(t,e,s){t.toLowerCase()}}Object.defineProperty(bmLinkElement,\"observedAttributes\",{get:()=>[]});"},"bm-manager-message":{"stylesheet":":host{position:fixed;left:0;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:40000}:host>div{position:absolute;overflow:hidden;left:-12px;background:var(--background-button-default);padding:12px 24px;border-radius:10px;transform:translateX(0);max-width:min(75vw,340px);pointer-events:all;box-shadow:0 0 8px rgba(255,255,255,.35)}:host([dir=right])>div{left:auto;right:-12px}:host>div[mode=hidden]{transform:translateX(-50vw);visibility:hidden;pointer-events:none}:host>div[mode=counter]{pointer-events:none}:host>div[mode=counter],:host>div[mode=message]{transition:all .4s ease}:host>div>span{pointer-events:none}:host>div[mode=counter]>span{color:var(--color-button-default);font:var(--font-button-default);font-size:2em;font-weight:500;transform:translateX(5px);text-align:center}:host>div[mode=message]>span{color:var(--color-button-default);font:var(--font-button-default);font-size:1.6em;line-height:1em;font-weight:500;position:absolute;max-width:min(75vw,340px)}:host>div[mode=message].refill{padding:20px 25px;width:auto!important;height:auto!important}:host>div[mode=message].refill>span{position:static;font-size:1.4em;font-weight:400;line-height:1.2}:host>div[mode=message].refill>span div{white-space:nowrap}:host>div[mode=message].refill>span div:last-child{font-weight:500}","template":"<div message mode=\"hidden\"><span></span></div>","code":"class bmManagerMessageElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._block=this._shadow.$q(\"div\"),this._block.style.top=`${Math.floor(Math.random()*(window.innerHeight-300))}px`,this._block.addEventListener(\"click\",(t=>{this.closeMessage()}))}connectedCallback(){if(\"refill\"===this.getAttribute(\"type\"))if(this._block.classList.add(\"refill\"),this.showMessage(),\"1\"==this.getAttribute(\"mute\")){const t=500*this.getAttribute(\"bm-count\")+5e3;setTimeout((()=>{this.closeMessage()}),t)}else this.playSound();else setTimeout((()=>{$q(\"bm-brain-widget\")&&\"left\"==$q(\"bm-brain-widget\").dir&&this.setAttribute(\"dir\",\"right\"),this._block.setAttribute(\"mode\",\"counter\"),this._block.$q(\"span\").textContent=\"3\",this._block.style.width=\"20px\",this.startCounter()}),1500)}attributeChangedCallback(t,e,s){t.toLowerCase()}closeMessage(){this._block.setAttribute(\"mode\",\"hidden\"),this._block.style.width=\"\",this._block.style.height=\"\",this._block.$q(\"span\").innerHTML=\"\",\"refill\"===this.getAttribute(\"type\")&&(this.soundInterval&&clearInterval(this.soundInterval),localStorage.removeItem(\"msgRecieved\"),this.parentNode.removeChild(this))}startCounter(){let t=Number(this._block.$q(\"span\").textContent);if(t--,t<0)return this.showMessage();setTimeout((()=>{this._block.$q(\"span\").textContent=t,this.startCounter()}),1e3)}showMessage(){this._block.$q(\"span\").style.width=\"100vw\",this._block.setAttribute(\"mode\",\"message\"),this._block.$q(\"span\").innerHTML=this.innerHTML,setTimeout((()=>{let t=this._block.$q(\"span\").getBoundingClientRect();if(document.createRange){let e=document.createRange();if(e.selectNodeContents(this._block.$q(\"span\").firstChild),window._R=e,e.getBoundingClientRect){let s=e.getBoundingClientRect();s&&(t=s)}}this._block.style.width=`${t.width}px`,this._block.style.height=`${t.height}px`}))}playSound(){let t=\"/files/\"+(\"1\"==this.getAttribute(\"bm-isown\")?\"bonus.mp3\":\"collect.mp3\"),e=+this.getAttribute(\"bm-count\");if(!e)return;let s=0;this.soundInterval=setInterval((()=>{try{const i=new Audio(t);s++,s<=e&&i.play(),s===e+10&&this.closeMessage()}catch(t){console.log(t)}}),500)}}Object.defineProperty(bmManagerMessageElement,\"observedAttributes\",{get:()=>[]});"},"bm-modal":{"stylesheet":"button.close-window{position:absolute;right:15px;top:15px;width:45px;height:45px;background:var(--background-button-default) var(--ico-close) center center no-repeat;border-radius:50%;border:none;cursor:pointer;z-index:30}:host([nonclosable]) button.close-window{display:none!important}button[bm-type=close-window],button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}button[bm-type=close-window]{background-color:var(--background-button-second);color:var(--color-default)}button[bm-type=default][preloader]{background:var(--background-default) var(--preloader) center center no-repeat;color:transparent;border:2px solid var(--background-button-default);background-size:24px;pointer-events:none;filter:hue-rotate(30deg) saturate(1.4) brightness(1.25)}button[bm-type=white]{background-color:var(--background-default);color:var(--color-default);border-radius:5px;border:2px solid var(--color-default);padding:0 20px;height:46px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}button[bm-type=white]:hover{color:var(--background-button-default);border-color:var(--background-button-default)}button[bm-type=icon]{position:relative;background-color:transparent;background-position:center center;background-repeat:no-repeat;border:none;cursor:pointer;color:var(--color-item-disabled);font:var(--font-header-icon)}:host{position:fixed;left:0;top:0;width:100%;height:100%;z-index:10000;background:var(--background-overlay);backdrop-filter:var(--background-filter);font:var(--font-modal-default)}:host([auto]){display:flex;align-items:center;justify-content:center}:host(:not([shown])){display:none}.window{background:var(--background-modal);color:var(--color-modal);position:absolute;max-width:calc(100vw - 60px);max-height:calc(100vh - 50px);border-radius:10px;overflow:hidden}.window form[preloader] button[bm-type=default],.window[preloader] button[bm-type=default]{color:transparent!important;border:2px solid var(--background-button-default)!important;background-size:24px!important;pointer-events:none!important;pointer-events:none;position:relative}.window form[preloader] button[bm-type=default]::after,.window[preloader] button[bm-type=default]::after{content:\"\";background:transparent var(--preloader) center center no-repeat!important;left:0;top:0;width:100%;height:100%;filter:brightness(1.5);position:absolute;background-size:24px!important}.window-content{position:relative;display:block;left:0;top:0;overflow:auto;max-height:calc(100% - 60px);max-width:calc(100% - 60px);padding:30px;width:100%}.footer-buttons{display:flex;align-items:flex-start;justify-content:space-around;flex-wrap:wrap;padding-top:20px;margin-top:20px}.footer-buttons button{margin-bottom:20px}.footer-buttons[preloader]{pointer-events:none;background:transparent var(--preloader) center center no-repeat;background-size:25px}.footer-buttons[preloader]>*{visibility:hidden;pointer-events:none}:host([subtype=install]) h2{margin:50px 0 25px;text-transform:uppercase}:host([subtype=install]) h2.fail{color:#eb5757}:host([subtype=install]) p{margin:15px 0}:host([subtype=install]) button[bm-type=default]{width:100%;height:36px;line-height:36px;margin-top:15px;font-weight:500}:host([subtype=install]) a{margin-top:10px;display:block;font-size:30px;font-weight:600;color:#0050f0;text-decoration:none}:host([subtype=install]) h2.fail~button{margin-top:40px}@media screen and (max-width:747px){button.close-window{width:36px;height:36px;right:8px;top:8px}.window-content{padding:40px 22px;max-width:calc(100% - 44px);max-height:calc(100% - 80px)}}:host([type=login]) .window{top:25%}@media screen and (max-width:600px){:host([type=login]) .window{transition:top .4s}}","template":"<div class=\"window\" part=\"window-deprecated\"> <button class=\"close-window\"></button><div class=\"window-content\" subtemplate></div></div>","code":"class bmModalElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.windowElement=this._shadow.$q(\".window\"),this.state={isMobile:document.body.classList.contains(\"--mobile\")},window.addEventListener(\"resize\",(t=>this.resizeCallback())),window.addEventListener(\"fonts:ready\",(t=>this.resizeCallback()),{once:!0}),this.windowElement.$q(\".close-window\").addEventListener(\"click\",(t=>{this.close(),this.dispatcher.sendEvent(\"close\",{global:0},this)})),this.addEventListener(\"click\",(t=>{if(this.hasAttribute(\"nonclosable\"))return!0;t.path||(t.path=t.composedPath());let e=t.path?t.path[0]:t.originalTarget?t.originalTarget:null;if(!e)return!1;\"bm-modal\"==e.tagName.toLowerCase()&&this.windowElement.$q(\".close-window\").click()}))}attributeChangedCallback(attr,old,val){switch(attr.toLowerCase()){case\"type\":{let type=val||\"alert\",cls=`bmModal_${type}`,exists=eval(`typeof(${cls})`);if(!exists)throw new Error(\"Unknown dialog element\");let ss=$c(\"style\"),exs=this._shadow.$q(\"style[bytype]\");exs&&exs.remove(),ss.toggleAttribute(\"bytype\",1),this.contentElement=this._shadow.$q(\"*[subtemplate]\"),console.log(\"type\",type),this.contentElement.innerHTML=this.dispatcher._templates[`bm-modal-${type}`].template,ss.textContent=this.dispatcher._templates[`bm-modal-${type}`].stylesheet,this._shadow.appendChild(ss),this.rooter=eval(`new ${cls}(this._shadow)`),this.rooter.close=()=>this.close(),this.rooter.window=this,this.rooter.windowElement=this.windowElement}break;case\"shown\":document.firstElementChild.classList.toggle(\"-no-scroll\",Boolean(null!=val)),this.resizeCallback(),this._shadow.$q(\"form\")&&\"info\"==this.type&&setTimeout((()=>{this._shadow.$q(\"form\").$q('bm-input, textarea, input:not([type=\"hidden\"])').focus()}));break;case\"items-collection\":const collection=JSON.parse(val);if(!collection||!Array.isArray(collection))return;this.dispatcher.sendEvent(\"search-items\",{global:0,collection:collection})}}show(){$a(\"video\").forEach((t=>!!t.hasAttribute(\"frozen\")||(!!t.paused||(t.toggleAttribute(\"frozen\",1),void t.pause())))),this.toggleAttribute(\"shown\",1),this.dispatcher.sendEvent(\"modal:show\",{global:0,w:this})}close(t=!1){$a(\"video\").forEach((t=>!t.hasAttribute(\"frozen\")||(!t.paused||(t.toggleAttribute(\"frozen\",0),void t.play())))),this.toggleAttribute(\"shown\",0),t&&setTimeout((()=>this.remove()),5),this.dispatcher.sendEvent(\"modal:close\",{global:0,w:this})}connectedCallback(){this.rooter&&this.rooter.connectedCallback&&this.rooter.connectedCallback(),this.toggleAttribute(\"manager-mode\",Boolean(Number(document.body.dataset.managerMode)));const t=this._shadow.$a(\"bm-input\");setTimeout((()=>{this.state.isMobile&&\"login\"==this.getAttribute(\"type\")&&(this.windowElement.style.top=0,t.forEach((t=>t.addEventListener(\"focusin\",(()=>{this.windowElement.style.top=0})))),t.forEach((t=>t.addEventListener(\"focusout\",(()=>{this.windowElement.style.top=\"\"})))))}),20)}disconnectedCallback(){this.rooter&&this.rooter.disconnectedCallback&&this.rooter.disconnectedCallback(),$a(\"bm-modal\").length||$q(\"html\").classList.remove(\"-no-scroll\")}resizeCallback(){if(this.windowElement.style.left=\"\",\"login\"===this.getAttribute(\"type\")&&this.state.isMobile||(this.windowElement.style.top=\"\"),this.windowElement.style.width=\"\",this.windowElement.style.height=\"\",\"fullgallery\"==this.type)return!0;let t=this.getBoundingClientRect(),e=t.width,s=t.height,i=this.contentElement.getBoundingClientRect().width,o=this.contentElement.scrollHeight,l=(s-o)/2,n=(e-i)/2;this.hasAttribute(\"autosize\")&&(i=this.contentElement.scrollWidth,o=this.contentElement.scrollHeight,n=(e-i)/2,s=(s-o)/2),l<30&&(l=30),n<0&&(n=20),this.windowElement.style.left=`${n}px`,\"login\"===this.getAttribute(\"type\")&&this.state.isMobile||(this.windowElement.style.top=`${l}px`),this.windowElement.style.width=`${i}px`,this.hasAttribute(\"autosize\")||(this.windowElement.style.height=`${o}px`)}}Object.defineProperty(bmModalElement,\"observedAttributes\",{get:()=>[\"type\",\"shown\",\"items-collection\"]});"},"bm-modal-background":{"stylesheet":":host{position:fixed;background:rgba(0,0,0,.5);z-index:9999999;width:100vw;height:100vh;top:0;left:0;display:flex;justify-content:center;align-items:center}:host([hidden]){visibility:hidden}","template":"<slot name=\"content\"></slot>","code":"class bmModalBackgroundElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this)}connectedCallback(){}show(){this.removeAttribute(\"hidden\")}hide(){this.setAttribute(\"hidden\",\"\")}attibuteChangedCallback(e,t,s){e.toLowerCase()}}Object.defineProperty(bmModalBackgroundElement,\"observedAttributes\",{get:()=>[\"some-attr\"]});"},"bm-modal-basketitems":{"stylesheet":":host{overflow-x:hidden;overflow-y:auto}.window{max-height:none}@media screen and (min-width:1200px){.window{max-width:800px!important}}:host([autosize]) .window-content{max-width:none;max-height:none;overflow:auto;overflow-x:hidden}.basket-form{width:calc(100% - 60px)}[bm-role=set-order]{color:inherit}button[bm-type=close-window],button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer;width:100%;margin-top:15px;width:auto;white-space:nowrap}button[bm-type=close-window]{background-color:var(--background-button-second);color:var(--color-default)}h1{font:var(--font-modal-header-basket);text-transform:uppercase;text-align:center}h2{font:var(--font-modal-header);text-transform:uppercase;text-align:center}h3{font:var(--font-modal-header);text-transform:uppercase;text-align:center;max-width:400px;margin:40px auto 20px auto}.window{max-width:calc(100vw - 40px)}bm-item-counter{margin-bottom:0;border-bottom:1px solid var(--color-separator-line)}.basket-items{border-top:1px solid var(--color-separator-line)}.buttons{display:flex;align-items:center;justify-content:space-between;position:relative}.buttons button{max-width:250px;width:100%}.buttons a{height:40px;display:flex;align-items:flex-end;justify-content:center;width:auto;white-space:nowrap;font:var(--font-default);color:var(--color-hover-link);font-weight:500;text-decoration:none}:host([manager-mode]) .buttons a{display:none}bm-items-roller{padding-bottom:0;overflow:hidden}@media screen and (max-width:747px){.basket-form{width:calc(100% - 40px)}.buttons{flex-direction:column}.buttons button{max-width:100%;margin-top:20px}.window{max-width:calc(100vw - 40px)!important}.buttons a{order:10}}","template":"<div class=\"basket-form\"><h1>Моя корзина</h1><h2><span class=\"modal-title\"></span>, <a href=\"#\" bm-role=\"set-order\">Оформить&nbsp;заказ</a></h2><div class=\"basket-items removable-items-container\"></div><div class=\"accessories\"></div><div class=\"buttons\"> <button bm-type=\"close-window\">Продолжить покупки</button> <a href=\"#\" class=\"-one-click\" modal-id=\"buy1click\" bm-goal=\"TheOneClick\">Купить в 1 клик</a> <button bm-type=\"default\" href=\"/basket/\">Перейти в корзину</button></div></div>","code":"class bmModal_basketitems{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t,this._shadow.$q('[bm-role=\"set-order\"]').setAttribute(\"href\",bmSite.orderLink),window.addEventListener(\"modal:close\",(t=>{t.detail.isEmpty&&this.close()})),setTimeout((()=>{this._shadow.querySelectorAll(\".basket-items bm-item-counter\").forEach((t=>{t._shadow.$q(\"bm-count\").addEventListener(\"change\",(t=>{this._shadow.$q('.buttons button[bm-type=\"default\"]').toggleAttribute(\"preloader\",1),window.addEventListener(\"basket:updatedone\",(t=>{this._shadow.$q('.buttons button[bm-type=\"default\"]').toggleAttribute(\"preloader\",0)}))}))}))}))}attributeChangedCallback(t,e,i){t.toLowerCase()}addItem(t){let e=$c(\"bm-item-counter\");e.setAttribute(\"is_modal\",\"\"),e.setAttribute(\"bm-id\",t.itemId),e.setAttribute(\"href\",t.url),e.setAttribute(\"price\",t.price),e.setAttribute(\"count\",t.count),e.setAttribute(\"step\",t.step||1),e.setAttribute(\"min\",t.min),e.setAttribute(\"max\",t.max),e.setAttribute(\"thumb\",t.image),e.setAttribute(\"caption\",t.title),e.setAttribute(\"total_remains\",t.canShowPacking?t.totalRemains:\"\"),e.setAttribute(\"packing\",t.canShowPacking?t.packing:\"\"),t.outletProductLink&&e.setAttribute(\"outlet_link\",t.outletProductLink),t.nonOutletProductLink&&e.setAttribute(\"nonoutlet_link\",t.nonOutletProductLink);let i=!1;if(void 0!==t.units)for(let e in t.units)t.units[e].current&&(i=e);if(this.addModalTitle(t.count,i),t.units){let i=$c(\"ul\");i.setAttribute(\"bm-role\",\"units\");for(let e in t.units){let s=$c(\"li\");s.setAttribute(\"key\",e),s.setAttribute(\"multiplier\",t.units[e].multiplier),t.units[e].current&&s.toggleAttribute(\"default\",!0),t.units[e].calc&&s.toggleAttribute(\"calc\",!0),s.innerHTML=t.units[e].title,i.appendChild(s)}e.appendChild(i)}this._shadow.$q(\".basket-items\").appendChild(e),e.addEventListener(\"update\",(t=>{let e={};this.addModalTitle(t.target.count,t.target.unit),e[t.target.getAttribute(\"bm-id\")]={count:t.target.count,price:t.target.price,unit:t.target.unit,unitValue:t.target.unitVal},(new bmSite).basket.update(e)}))}addModalTitle(t,e){var i=\"Товар успешно добавлен в&nbsp;корзину\";1<t&&\"meters\"!=e&&(i=\"Товары успешно добавлены в&nbsp;корзину\"),this._shadow.$q(\".modal-title\").innerHTML=i}addAccessories(t){this._shadow.$q(\".accessories\").innerHTML=`<h3>${t.title}</h3>${t.items}`}}Object.defineProperty(bmModal_basketitems,\"observedAttributes\",{get:()=>[]});"},"bm-modal-callback":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer;width:100%;margin-top:15px}button[bm-type=default][disabled]{pointer-events:none;opacity:.5}h3{font:var(--font-header-inner)}:host{min-width:360px;overflow-x:hidden;overflow-y:auto}.window{max-height:none;max-width:none}.window-content{overflow:visible;max-height:none;max-width:none;width:auto;padding:30px}h2{text-align:center;text-transform:uppercase;padding:20px 0 0 0;white-space:nowrap}.agreement,.button,.form,h2,p{max-width:380px;margin-right:50px;margin-left:50px}.agreement{margin:30px 0}.step-2{display:flex;align-items:center;justify-content:center;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;visibility:hidden}:host([done]) .step-1{visibility:hidden}:host([done]) .step-2{visibility:visible}:host([preloader]) button[bm-type=default]{pointer-events:none;background:transparent var(--preloader) center center no-repeat;background-size:24px;color:transparent}:host([preloader]) .agreement{pointer-events:none;opacity:.5}@media screen and (max-width:747px){.agreement,.button,.form,h2,p{margin-right:0;margin-left:0}}","template":"<div class=\"step-1\"><h2>Заинтересовал товар?</h2><p>Наш продавец покажет его онлайн и ответит на ваши вопросы в чате.</p><div class=\"form\"><bm-input mask=\"+7 (___) ___–__–__\" type=\"number\" maxlength=\"10\"></bm-input> <button bm-type=\"default\">Отправить</button><div class=\"agreement\"> Нажимая кнопку \"отправить\", я выражаю согласие на обработку <a href=\"/agreement/\" target=\"_blank\">персональных данных</a>.</div></div></div><div class=\"step-2\"><p>Спасибо!<br><br> Скоро мы свяжемся с вами<br><br> Будьте на связи!</div>","code":"class bmModal_callback{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t}connectedCallback(){let t=localStorage.getItem(\"login\");if(t&&t.match(/^\\#/)){let e=t.replace(/^\\#(.*)$/,\"$1\");this._shadow.$q(\"bm-input\").val=e}setTimeout((()=>{this._shadow.$q(\"bm-input\").focus()}),10),this._shadow.$q('button[bm-type=\"default\"]').addEventListener(\"click\",(t=>{this.window.toggleAttribute(\"preloader\",1);let e=this.window.getAttribute(\"bm-data\")||\"default\",a={phone:this._shadow.$q(\"bm-input\").value.trim()};for(let t in this.window.dataset)a[t]=this.window.dataset[t];this.dispatcher.api.post(`callback:${e}`,a).then((t=>{this.window.toggleAttribute(\"preloader\",0),t.ok?(this.window.toggleAttribute(\"done\",1),this._shadow.$q(\".step-2 p\").innerHTML=t.message,setTimeout((()=>this.window.close(!0)),3e3)):alert(t.message)})).catch((t=>{this.window.toggleAttribute(\"preloader\",0),alert(t.message)}))})),this._shadow.$q(\"bm-checkbox\")&&this._shadow.$q(\"bm-checkbox\").addEventListener(\"change\",(()=>this.validate())),this._shadow.$q(\"bm-input\").addEventListener(\"change\",(()=>this.validate())),this.validate()}attributeChangedCallback(t,e,a){t.toLowerCase()}validate(){let t=!0;10!=this._shadow.$q(\"bm-input\").value.trim().length&&(t=!1),this._shadow.$q(\"bm-checkbox\")&&null==this._shadow.$q(\"bm-checkbox\").checked&&(t=!1),this._shadow.$q('button[bm-type=\"default\"]').toggleAttribute(\"disabled\",!t)}}Object.defineProperty(bmModal_callback,\"observedAttributes\",{get:()=>[]});"},"bm-modal-detailedcounter":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 50px;height:45px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer;width:50%}button[bm-type=default][disabled]{pointer-events:none;opacity:.5}button[bm-type=white]{background-color:var(--background-default);color:var(--color-default);border-radius:5px;border:2px solid var(--color-default);padding:0 20px;height:45px;font:var(--font-button-default);line-height:45px;text-transform:uppercase;cursor:pointer;margin-left:50px}button[bm-type=white]:hover{color:var(--background-button-default);border-color:var(--background-button-default)}h3{font:var(--font-catalogue-menu-subheader)}:host{min-width:360px;overflow-x:hidden;overflow-y:auto}.window{max-height:none;max-width:540px}.window-content{overflow:visible;max-height:none;max-width:400px;width:auto;padding:30px}h2{text-align:center;text-transform:uppercase;padding:20px 0 0 0;white-space:nowrap}.agreement,.button,.form,h2,p{max-width:380px;margin-right:50px;margin-left:50px}div.article{display:block}div.article a{color:var(--color-item-cell-price);text-decoration:none}div.article a::before{content:\"Артикул \"}div.buttons{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--color-separator-line);padding-top:20px}ul[bm-role=places]{list-style:none;margin:20px 0 0 0;padding:0}ul[bm-role=places] li{display:flex;margin:0 0 12px 0;align-items:center;justify-content:space-between}ul[bm-role=places] li.display em{font:var(--font-catalogue-menu-subheader);width:130px;text-align:center;white-space:nowrap}@media screen and (max-width:747px){.agreement,.button,.form,h2,p{margin-right:0;margin-left:0}}","template":"<div class=\"article\"><a href=\"\"></a></div><h3 class=\"title\"></h3><ul bm-role=\"places\"></ul><div class=\"buttons\"> <button bm-type=\"default\">OK</button> <button bm-type=\"white\">Отмена</button></div>","code":"class bmModal_detailedcounter{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t,this.unit=\"\",this.total=0,this._onset=()=>{},this.contains={}}connectedCallback(){this._shadow.$q('button[bm-type=\"white\"]').addEventListener(\"click\",(t=>{this.window.close(!0)})),this._shadow.$q('button[bm-type=\"default\"]').addEventListener(\"click\",(t=>{this.setValues()}))}setData(t){if(this._shadow.$q(\".article a\").setAttribute(\"href\",t.url),this._shadow.$q(\".article a\").innerHTML=t.article,this._shadow.$q(\"h3.title\").innerHTML=t.title,this.contains=JSON.parse(JSON.stringify(t.contains)),this._onset=t.onset||(()=>{}),this._onchange=t.onchange||(()=>{}),this.unit=t.unit,this.contains){let e=this._shadow.$q('ul[bm-role=\"places\"]'),i=t.units,s=0;e.innerHTML=\"\";for(let t in this.contains)s+=this.contains[t].contains;for(let n in this.contains){let a=$c(\"li\"),o=$c(\"bm-count\");a.setAttribute(\"key\",n),a.innerHTML=`<span>${this.contains[n].name}</span>`,i&&o.appendChild(i.cloneNode(!0)),o.setAttribute(\"bm-id\",this._shadow.host.getAttribute(\"bm-id\")),o.setAttribute(\"step\",t.step),o.setAttribute(\"min\",0),o.setAttribute(\"max\",this.contains[n].max),o.setAttribute(\"value\",this.contains[n].contains),o.setAttribute(\"group-count\",s),o.toggleAttribute(\"supplier\",this.contains[n].is_supplier),o.toggleAttribute(\"confirmed\",Boolean(this.contains[n].confirmed)),o.toggleAttribute(\"short\",1),a.appendChild(o),e.appendChild(a),o.addEventListener(\"change\",(t=>{this._onchange(t.target),this.calculate()}))}let n=$c(\"li\");n.classList.add(\"display\"),n.innerHTML=\"<span></span><em></em>\",e.appendChild(n),this.calculate()}}setValues(){this._onset({value:this.total,contains:this.contains}),this.window.close(!0)}calculate(){let t=this._shadow.$a(\"bm-count\"),e=0;this.total=0,t.forEach((t=>{e+=Number(t.unitVal||t.value),this.total+=Number(t.value),this.contains[t.parentNode.getAttribute(\"key\")].contains=Number(t.value),t.hasAttribute(\"confirmed\")&&(this.contains[t.parentNode.getAttribute(\"key\")].confirmed=!0)})),e!=Math.round(e)&&(e=e.toFixed(3)),this._shadow.$q(\"li.display em\").textContent=`${e} ${this.unit}`}attributeChangedCallback(t,e,i){t.toLowerCase()}}Object.defineProperty(bmModal_detailedcounter,\"observedAttributes\",{get:()=>[]});"},"bm-modal-fullgallery":{"stylesheet":"button[bm-type=arrow]{position:relative;background:var(--background-default);border:none;cursor:pointer;width:50px;height:50px;box-shadow:0 3px 6px rgba(0,0,0,.1);border-radius:50%}button[bm-type=arrow]::before{position:absolute;content:\"\";left:0;top:0;width:100%;height:100%;background:transparent var(--ico-arrow-button) center center no-repeat}button[bm-type=arrow][bm-dir=left]::before{transform:rotate(180deg)}.item[overlay]::before{content:\"\";display:block;height:100%;position:absolute;top:0;left:0;width:100%;background-color:rgba(255,255,255,.1)}:host .window{max-width:100vw;max-height:90vh;left:0;top:5%;width:100%;height:90%;background-color:transparent}:host .window-content{padding:0;max-width:unset;max-height:unset;width:100%;height:100%}.-board{position:absolute;left:5px;top:0;width:calc(100% - 10px);height:100%;pointer-events:none;display:flex;align-items:center;justify-content:space-between;z-index:10}.-board button{pointer-events:all}.f-display{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;z-index:5}.f-display[single]{justify-content:center}.f-display:not([ready]){background:transparent var(--preloader) center center fixed no-repeat;opacity:.5;pointer-events:none;background-size:32px}.f-display:not([ready]) .item{opacity:0;pointer-events:none}.f-display .item{display:flex;align-items:center;justify-content:center;position:relative;z-index:5}.f-display .item[current][zoom]{z-index:10}.f-display .item[invisible]{opacity:0;visibility:hidden}.f-display .item>span{background:var(--background-default);padding:16px;overflow:hidden;border-radius:16px;max-height:100%;pointer-events:none;text-align:center}.f-display .item>span iframe{pointer-events:all}.f-display .item>span>*{max-height:calc(90vh - 60px)}@media screen and (min-aspect-ratio:1/1){.f-display .item>span{margin:0}.f-display .item>span>iframe{width:calc(75vw - 40px);height:calc(42.2vw - 40px);max-height:calc(90vh - 60px)}.f-display .item>span>img{max-width:calc(75vw - 20px)}}@media screen and (max-aspect-ratio:1/1){.f-display .item>span{margin:0}.f-display .item>span>iframe{width:calc(90vw - 20px);height:calc(50vw - 20px);max-height:calc(90vh - 60px);position:relative;object-fit:initial}.f-display .item>span>img{max-width:calc(90vw - 20px)}}@media screen and (max-width:1024px){:host .window{max-height:100%;height:100%;top:0;border-radius:0}.f-display{align-items:stretch;background:var(--background-default)}.f-display .item{width:100vw;height:100vh;flex-shrink:0;flex-grow:0}.f-display .item>span,.f-display .item[invisible]{padding:0;height:100%;width:100%;border-radius:0;transform:none!important;opacity:1!important}.f-display .item>span>*{max-width:100vw;max-height:100vh;min-width:100vw;min-height:100vh;object-fit:contain}}","template":"","code":"class bmModal_fullgallery{constructor(t=!1){this.maxZoom=4,this.dispatcher=new bmCoreDispatcher,this._shadow=t,this.zoomMode=!1,this.currentZoom=1,this.currentMove={x:0,y:0},this.display=!1,this.currentItem=!1,this.maxItem=0,this.animated=!1,this.touches={}}connectedCallback(){}attributeChangedCallback(t,e,i){t.toLowerCase()}resizer(){let t=$q('bm-modal[type=\"fullgallery\"]');if(!t)return!1;let e=this.display.getBoundingClientRect().height;window.innerWidth<768&&(e=0),this.display.$a(\".item > span\").forEach((t=>t.style.minWidth=`${e}px`)),t.rooter.setCurrent(!1,!1)}keymapper(t){let e=$q('bm-modal[type=\"fullgallery\"]');if(!e)return!1;switch(t.which){case 37:case 33:e.rooter.board.$q('button[bm-dir=\"left\"]').dispatchEvent(new Event(\"click\"));break;case 39:case 34:e.rooter.board.$q('button[bm-dir=\"right\"]').dispatchEvent(new Event(\"click\"));break;case 27:window.removeEventListener(\"resize\",(t=>this.resizer(t))),window.removeEventListener(\"keydown\",(t=>this.keymapper(t))),e.close(!0),e.dispatcher.sendEvent(\"close\",{global:0},e);break;default:return!0}}lazyLoadImage(t){const e=t.$q(\"iframe, img, video\");!e.hasAttribute(\"src\")&&e.setAttribute(\"src\",t.getAttribute(\"full\"))}lazyLoadingImages(t){let e=null,i=null,s=null;const r=t.$a(\".item\"),h=r.length;for(let t=0;t<h;t++){if(r[t].hasAttribute(\"current\")){if(i=r[t],1===h.length)break;switch(t){case 0:s=r[t+1];break;case h-1:e=r[t-1];break;default:e=r[t-1],s=r[t+1]}}}e&&this.lazyLoadImage(e),s&&this.lazyLoadImage(s)}render(t){this.display?this.display.innerHTML=\"\":(this.display=$c(\"div\"),this.board=$c(\"div\"),this.board.classList.add(\"-board\"),this.board.innerHTML='<button bm-type=\"arrow\" bm-dir=\"left\"></button><button bm-type=\"arrow\" bm-dir=\"right\"></button>',this.board.$a(\"button\").forEach((t=>{t.addEventListener(\"click\",(e=>{if(this.animated)return!1;this.zoomMode&&this._exitZoomMode(),this.setCurrent(\"left\"==t.getAttribute(\"bm-dir\")?-2:-1,!0)}))})),this.display.addEventListener(\"scroll\",(t=>this.itemsPositions())),this.display.addEventListener(\"touchstart\",(t=>this._tstart(t))),this.display.addEventListener(\"touchmove\",(t=>this._tmov(t))),this.display.addEventListener(\"touchend\",(t=>this._tend(t))),this.display.addEventListener(\"click\",(t=>{t.path||(t.path=t.composedPath()),t.path[0].classList.contains(\"f-display\")&&this.window.close(1)})),window.removeEventListener(\"resize\",(t=>this.resizer(t))),window.addEventListener(\"resize\",(t=>this.resizer(t))),window.removeEventListener(\"keydown\",(t=>this.keymapper(t))),window.addEventListener(\"keydown\",(t=>this.keymapper(t)))),this.display.classList.add(\"f-display\"),this.display.toggleAttribute(\"single\",1==t.length);let e=0;for(let i=0;i<t.length;i++){let s=t.item(i),r=$c(\"div\");r.classList.add(\"item\"),r.setAttribute(\"id\",(1e4*Math.random()).toFixed());const h=s.hasAttribute(\"selected\");if(s.hasAttribute(\"video\"))r.toggleAttribute(\"video\",!0),r.toggleAttribute(\"overlay\",!0),r.toggleAttribute(\"iframeSwipe\",!0),r.innerHTML=`<span>${s.innerHTML}</span>`,r.setAttribute(\"full\",s.getAttribute(\"full\")),r.addEventListener(\"click\",(()=>{r.removeAttribute(\"overlay\")})),r.setAttribute(\"src\",s.getAttribute(\"src\"));else{const t=Number(s.getAttribute(\"width\")),e=Number(s.getAttribute(\"height\"));r.setAttribute(\"full\",s.getAttribute(\"full\")),r.innerHTML=`<span><img width=${t} height=${e} ></span>`,r.querySelector(\"img\").addEventListener(\"load\",(t=>{this.resizer()})),h&&r.querySelector(\"img, iframe\").setAttribute(\"src\",s.getAttribute(\"full\"))}r.dataset.n=s.dataset.n,h&&(e=i),this.display.appendChild(r)}this.window.contentElement.appendChild(this.display),this.display.$a(\".item>span:empty\").forEach((t=>t.parentNode.remove()));let i=this.display.$a(\".item\");for(let t=0;t<i.length;t++)i.item(t).dataset.n=t+1,this.maxItem=t+1;if(this.display.$a(\".item\").length>1){this.display.innerHTML;this.display.innerHTML=this.display.innerHTML+this.display.innerHTML+this.display.innerHTML,this.window.contentElement.appendChild(this.board),this.board.toggleAttribute(\"hidden\",0),this.display.$a(\".item\").item(e+i.length).toggleAttribute(\"current\",1)}else{if(0==this.display.$a(\".item\").length)return this.window.close();this.display.$a(\".item\").item(0).toggleAttribute(\"current\",1),this.board.toggleAttribute(\"hidden\",1)}this.display.$a(\".item\").forEach((t=>{t.addEventListener(\"click\",(t=>{this.zoomMode||this.setCurrent(t.target.dataset.n,!0)}))})),setTimeout((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{this.display.setAttribute(\"ready\",1),this.setCurrent(!1,!1),this.itemsPositions()}))}))}),25),this.resizer()}setCurrent(t=!1,e=!0){if(this.zoomMode)return!0;let i=[];if(!1===t||t>=0?i=Array.from(this.display.$a(`[${!1===t?\"current\":'data-n=\"'+t+'\"'}]`)):t<0&&(i=this.display.$q(\"[current]\"),window._C=i,i=-1==t?[i.nextElementSibling]:[i.previousElementSibling]),!1!==t||i.length){if(!1!==t&&!i.length)return!0;3==i.length&&i.shift()}else{let t=this.display.$a(\".item\");t.item(Math.floor(t.length/3)).toggleAttribute(\"current\",1),i=Array.from(this.display.$a(\"[current]\").item(0))}if(!i.length)return!0;if(i=i[0],null==i)return!0;let s=this.display.scrollLeft,r=i.getBoundingClientRect(),h=0;h=s+r.x-(this.display.offsetWidth-r.width)/2,e?(this.display.scrollTo({left:h,behavior:\"smooth\"}),this.to=setTimeout((()=>{this.display.scrollLeft=h,this.replaceGhosts()}),500),this.animated=!0):(this.display.scrollLeft=h,this.animated=!1,this.replaceGhosts()),i.parentNode.$a(\"[current]\").forEach((t=>t.removeAttribute(\"current\"))),i.toggleAttribute(\"current\",1),this.currentItem=i.dataset.n,this.currentItemEl=i,this.dispatcher.sendEvent(\"scroll\",{global:0,n:this.currentItem},this.window)}replaceGhosts(){let t,e=this.display.$a(\".item\"),i=-1,s=0,r=0,h=(this.display.scrollLeft,0);for(let t=0;t<e.length;t++)e.item(t).hasAttribute(\"current\")&&(i=t);if(-1==i)return!1;for(s=Math.sign(Math.floor(e.length/2)-i),r=Math.abs(Math.floor(e.length/2)-i);r>0&&(t=s<0?this.display.$q(\".item:first-of-type\"):this.display.$q(\".item:last-of-type\"),t);){h+=t.getBoundingClientRect().width,s<0?this.display.appendChild(t):this.display.prepend(t),r--}this.display.scrollLeft+=s*h,this.animated=!1}itemsPositions(){let t=this.display.$q(\"[current]\"),e=this.display.$a(\".item\");if(!t){let e=this.display.$a(\".item\");e.item(Math.floor(e.length/3)).toggleAttribute(\"current\",1),t=this.display.$q(\"[current]\")}let i=window.innerWidth/2,s=this.display.scrollLeft+i;for(let t=0;t<e.length;t++){let r,h,n=e.item(t),o=e.item(t).$q(\"span\"),a=n.getBoundingClientRect(),l=a.right<0||a.left>2*i;if(n.dataset.w=Math.floor(a.width),n.dataset.h=Math.floor(a.height),n.toggleAttribute(\"invisible\",l),l)continue;r=this.display.scrollLeft+a.left+a.width/2,h=1-Math.abs(s-r)/(i+a.width/2);let c=.5+.5*h,d=.5+.5*h;o.style.transform=`scale(${c})`,o.style.opacity=d}this.lazyLoadingImages(this._shadow.$q(\".f-display\"))}_tstart(t){return t.preventDefault(),t.touches.length>2||(this.touches.s=Object.assign({},t.touches),this.to&&clearTimeout(this.to),this.animated&&this.setCurrent(!1,!1),(t.touches.length>1||this.zoomMode)&&(this.zoomMode=!0,this.currentItemEl.setAttribute(\"style\",\"\"),this.currentItemEl.toggleAttribute(\"zoom\",1),1==t.touches.length&&(this.touches.s[1]={screenX:this.touches.s[0].screenX,screenY:this.touches.s[0].screenY}),this.touches.center={x:(this.touches.s[0].screenX+this.touches.s[1].screenX)/2,y:(this.touches.s[0].screenY+this.touches.s[1].screenY)/2},this.touches.center.d=Math.sqrt(Math.pow(this.touches.s[0].screenX-this.touches.s[1].screenX,2)+Math.pow(this.touches.s[0].screenY-this.touches.s[1].screenY,2))),this.touches.z=this.display.scrollLeft,this._tmov(t),!1)}_tmov(t){if(t.preventDefault(),t.touches.length>2)return!0;if(this.touches.m=Object.assign({},t.touches),this.zoomMode&&1==t.touches.length&&(this.touches.m[1]={screenX:this.touches.m[0].screenX,screenY:this.touches.m[0].screenY}),this.zoomMode){let t=(this.touches.m[0].screenX+this.touches.m[1].screenX)/2,e=(this.touches.m[0].screenY+this.touches.m[1].screenY)/2,i=Math.sqrt(Math.pow(this.touches.m[0].screenX-this.touches.m[1].screenX,2)+Math.pow(this.touches.m[0].screenY-this.touches.m[1].screenY,2))/this.touches.center.d-1||0;i<0&&(i*=this.currentZoom);let s=this.currentZoom+i,r=0,h=0,n=e-this.touches.center.y,o=t-this.touches.center.x,a=this.currentItemEl.dataset.w,l=this.currentItemEl.getBoundingClientRect(),c=this.display.getBoundingClientRect(),d=this.currentItemEl.dataset.h;this.currentZoom>1&&s<1&&(s=1),this.currentZoom<=1&&s<.75&&(s=.75),s>this.maxZoom&&(s=this.maxZoom),r=n/s,h=o/s,l.left>=0&&l.right<window.innerWidth&&(h=0),l.top>=c.top&&l.bottom<=c.bottom&&(r=0),h<0&h<window.innerWidth/2/s-this.currentMove.x-a/2&&(h=window.innerWidth/2/s-this.currentMove.x-a/2),h>0&h>a/2-this.currentMove.x-window.innerWidth/2/s&&(h=-this.currentMove.x+a/2-window.innerWidth/2/s),r<0&r<c.height/2/s-this.currentMove.y-d/2&&(r=c.height/2/s-this.currentMove.y-d/2),r>0&r>d/2-this.currentMove.y-c.height/2/s&&(r=-this.currentMove.y+d/2-c.height/2/s),this.touches.mX=h,this.touches.mY=r,this.currentItemEl.style.transform=`scale(${s}) translate(${this.currentMove.x+h}px, ${this.currentMove.y+r}px)`,this.touches.mZ=s}else{let t=this.touches.s[0].screenX-this.touches.m[0].screenX;this.display.scrollLeft=this.touches.z+t,this.itemsPositions()}}_tend(t){if(t.preventDefault(),this.touches.mZ<1)return window.removeEventListener(\"resize\",(t=>this.resizer(t))),window.removeEventListener(\"keydown\",(t=>this.keymapper(t))),this.window.close(!0);if(t.touches.length>1)return!0;if(this.zoomMode)return this.currentZoom=this.touches.mZ,this.currentMove={x:this.currentMove.x+this.touches.mX,y:this.currentMove.y+this.touches.mY},1==t.touches.length&&this._tstart({preventDefault:()=>{},touches:t.touches}),void(0==t.touches.length&&1==this.currentZoom&&this._exitZoomMode());this.animated&&(this.animated=!1);let e=this.touches.s[0].screenX-this.touches.m[0].screenX,i=this.touches.s[0].radiusX||10;Math.abs(e)<i?this.display.dispatchEvent(new Event(\"click\")):Math.abs(e)<2*i?this.setCurrent(!1,!0):this.setCurrent(Math.sign(e)>0?-1:-2,!0)}_exitZoomMode(){this.currentItemEl.style=\"\",this.currentItemEl.toggleAttribute(\"zoom\",0),this.currentZoom=1,this.currentMove={x:0,y:0},this.zoomMode=!1}}Object.defineProperty(bmModal_fullgallery,\"observedAttributes\",{get:()=>[]});"},"bm-modal-getqr":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}button[bm-type=white]{height:50px}button[bm-type=default]:first-child:last-child{width:100%;margin-top:15px}#screen{position:relative;display:block;max-width:340px;max-height:300px;width:calc(100vw - 100px);height:calc(100vw - 100px);margin:20px 0 0 0;outline:1px solid var(--color-separator-line)}#screen canvas{position:absolute;left:0;top:0;width:100%;height:100%}p{text-transform:uppercase;font:var(--font-header-inner);text-align:center}","template":"<p>Отсканируйте QR-код</p><div id=\"screen\"></div><div class=\"buttons\"><button bm-type=\"default\">Отмена</button></div>","code":"class bmModal_getqr{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t,this.scrn=this._shadow.$q(\"#screen\"),this.readerReady=!1,this.qrModuleReady=!1,this.qrReaderEnabled=!1,this._shadow.$q(\".buttons button\").addEventListener(\"click\",(()=>this.window.close(1)))}connectedCallback(){let t=()=>{if(document.body.$q(\"script#qrmodule\")){if(\"undefined\"==typeof jsQR)return setTimeout(t,50);this.qrModuleReady=!0,this.qrReaderInit()}else{let e=$c(\"script\");e.setAttribute(\"id\",\"qrmodule\"),e.setAttribute(\"src\",\"/js/jsqr.js\"),document.body.appendChild(e),setTimeout(t,50)}};setTimeout((()=>{this.scrn.innerHTML=\"\",this.canvas=$c(\"canvas\");let e=this.scrn.getBoundingClientRect();this.canvas.width=Math.floor(e.width),this.canvas.height=Math.floor(e.height),this.scrn.appendChild(this.canvas),t()}))}qrIsReady(t){this.dispatcher.sendEvent(\"qr:ready\",{global:0,qr:t.data},this.window),this.window.close(1)}attributeChangedCallback(t,e,i){t.toLowerCase()}qrReaderInit(){let t=document.createElement(\"video\"),e=this.canvas.getContext(\"2d\"),i=!1;this.window.addEventListener(\"close\",(e=>{try{t.pause(),i.getTracks().forEach((function(t){t.stop()})),this.readerReady=!1}catch(e){}}),{once:!0});let a=(t,i,a)=>{e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.lineWidth=4,e.strokeStyle=a,e.stroke()};if(!navigator.mediaDevices)return!1;navigator.mediaDevices.getUserMedia({audio:!1,video:{facingMode:\"environment\"}}).then((e=>{t.setAttribute(\"playsinline\",!0),t.srcObject=e,i=e,window._S=i,window._V=t,t.play().then((()=>{this.readerReady=!0,this.qrReaderEnabled=!0,requestAnimationFrame(r)}))})).catch((t=>{console.log(t)}));let o=0,r=async()=>{let n=performance.now();if(this.readerReady&&requestAnimationFrame(r),n-o<25)return!1;if(o=n,t.readyState===t.HAVE_ENOUGH_DATA){e.drawImage(t,0,0,this.canvas.width,this.canvas.height);let o=e.getImageData(0,0,this.canvas.width,this.canvas.height),r=await jsQR(o.data,o.width,o.height,{inversionAttempts:\"dontInvert\"});r&&(r.location&&r.location.topLeftCorner&&(a(r.location.topLeftCorner,r.location.topRightCorner,\"#FF3B58\"),a(r.location.topRightCorner,r.location.bottomRightCorner,\"#FF3B58\"),a(r.location.bottomRightCorner,r.location.bottomLeftCorner,\"#FF3B58\"),a(r.location.bottomLeftCorner,r.location.topLeftCorner,\"#FF3B58\")),\"string\"==typeof r.data&&r.data.match(/^http/)&&(this.qrReaderEnabled&&(t.pause(),i.getTracks().forEach((function(t){t.stop()})),this.readerReady=!1),this.readerReady=!1,this.qrIsReady(r)))}}}}Object.defineProperty(bmModal_getqr,\"observedAttributes\",{get:()=>[]});"},"bm-modal-info":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}button[bm-type=white]{height:50px}button[bm-type=default]:first-child:last-child{width:100%;margin-top:15px}button[bm-type=default][disabled]{pointer-events:none;opacity:.5}h3{font:var(--font-header-inner)}h4{font-size:1.2em;line-height:1.2em;padding-right:30px}h3.info{text-transform:uppercase;white-space:nowrap;padding-top:20px}:host{min-width:360px;overflow-x:hidden;overflow-y:auto}.window{max-height:none;max-width:none}.window-content{overflow:visible;max-height:none;max-width:none;width:auto;padding:30px 50px}:host(.-freeform) .window-content{padding:20px}:host([subtype=install]) .window-content{font-size:1.5em;text-align:center}:host(.-freeform) .agreement,:host(.-freeform) .button,:host(.-freeform) .form,:host(.-freeform) h2,:host(.-freeform) p{margin-left:0;margin-right:0;text-align:left}h2{text-align:center;text-transform:uppercase;padding:20px 0 0 0;white-space:nowrap}.agreement,.button,.form,h2,p{max-width:380px;margin-right:50px;margin-left:50px}.agreement{margin:30px 0}:host([preloader]) button[bm-type=default]{pointer-events:none;background:transparent var(--preloader) center center no-repeat;background-size:24px;color:transparent}:host([preloader]) .agreement{pointer-events:none;opacity:.5}.rating-table{margin:0 auto 30px auto;max-width:300px}.rating-table .line{white-space:nowrap;margin-bottom:6px}.rating-table .line>em{padding:5px 10px;display:inline-block;vertical-align:middle;height:22px;line-height:22px;color:#fff;background:linear-gradient(90deg,rgba(255,0,0,.2) 0,red 60%,red 100%);width:calc(100% - 56px);text-align:right;font-weight:700;font-style:normal;letter-spacing:1px}.rating-table .line>bm-star[value='1']{background:linear-gradient(90deg,rgba(61,171,255,0) 0,rgba(61,171,255,0) 40%,rgba(61,171,255,.2) 100%)}.rating-table .line>bm-star[value='2']{background:linear-gradient(90deg,rgba(70,159,249,0) 0,rgba(70,159,249,0) 40%,rgba(70,159,249,.2) 100%)}.rating-table .line>bm-star[value='3']{background:linear-gradient(90deg,rgba(81,149,241,0) 0,rgba(81,149,241,0) 40%,rgba(81,149,241,.2) 100%)}.rating-table .line>bm-star[value='4']{background:linear-gradient(90deg,rgba(94,132,234,0) 0,rgba(94,132,234,0) 40%,rgba(94,132,234,.2) 100%)}.rating-table .line>bm-star[value='5']{background:linear-gradient(90deg,rgba(106,115,225,0) 0,rgba(106,115,225,0) 40%,rgba(106,115,225,.2) 100%)}.rating-table .line>bm-star[value='6']{background:linear-gradient(90deg,rgba(123,95,214,0) 0,rgba(123,95,214,0) 40%,rgba(123,95,214,.2) 100%)}.rating-table .line>bm-star[value='7']{background:linear-gradient(90deg,rgba(137,78,205,0) 0,rgba(137,78,205,0) 40%,rgba(137,78,205,.2) 100%)}.rating-table .line>bm-star[value='8']{background:linear-gradient(90deg,rgba(153,95,195,0) 0,rgba(153,95,195,0) 40%,rgba(153,95,195,.2) 100%)}.rating-table .line>bm-star[value='9']{background:linear-gradient(90deg,rgba(167,42,185,0) 0,rgba(167,42,185,0) 40%,rgba(167,42,185,.2) 100%)}.rating-table .line>bm-star[value='10']{background:linear-gradient(90deg,rgba(179,26,177,0) 0,rgba(179,26,177,0) 40%,rgba(179,26,177,.2) 100%)}.rating-table .line>bm-star[value='11']{background:linear-gradient(90deg,rgba(190,13,171,0) 0,rgba(190,13,171,0) 40%,rgba(190,13,171,.2) 100%)}.rating-table .line>bm-star[value='12']{background:linear-gradient(90deg,rgba(200,1,163,0) 0,rgba(200,1,163,0) 40%,rgba(200,1,163,.2) 100%)}.rating-table .line>bm-star[value='В']{background:linear-gradient(90deg,rgba(155,255,117,0) 0,rgba(155,255,117,0) 40%,rgba(155,255,117,.2) 100%);color:#000}.rating-table .line>bm-star[value='1']+em{background:linear-gradient(90deg,rgba(61,171,255,.2) 0,#3dabff 60%,#3dabff 100%)}.rating-table .line>bm-star[value='2']+em{background:linear-gradient(90deg,rgba(70,159,249,.2) 0,#469ff9 60%,#469ff9 100%)}.rating-table .line>bm-star[value='3']+em{background:linear-gradient(90deg,rgba(81,149,241,.2) 0,#5195f1 60%,#5195f1 100%)}.rating-table .line>bm-star[value='4']+em{background:linear-gradient(90deg,rgba(94,132,234,.2) 0,#5e84ea 60%,#5e84ea 100%)}.rating-table .line>bm-star[value='5']+em{background:linear-gradient(90deg,rgba(106,115,225,.2) 0,#6a73e1 60%,#6a73e1 100%)}.rating-table .line>bm-star[value='6']+em{background:linear-gradient(90deg,rgba(123,95,214,.2) 0,#7b5fd6 60%,#7b5fd6 100%)}.rating-table .line>bm-star[value='7']+em{background:linear-gradient(90deg,rgba(137,78,205,.2) 0,#894ecd 60%,#894ecd 100%)}.rating-table .line>bm-star[value='8']+em{background:linear-gradient(90deg,rgba(153,95,195,.2) 0,#995fc3 60%,#995fc3 100%)}.rating-table .line>bm-star[value='9']+em{background:linear-gradient(90deg,rgba(167,42,185,.2) 0,#a72ab9 60%,#a72ab9 100%)}.rating-table .line>bm-star[value='10']+em{background:linear-gradient(90deg,rgba(179,26,177,.2) 0,#b31ab1 60%,#b31ab1 100%)}.rating-table .line>bm-star[value='11']+em{background:linear-gradient(90deg,rgba(190,13,171,.2) 0,#be0dab 60%,#be0dab 100%)}.rating-table .line>bm-star[value='12']+em{background:linear-gradient(90deg,rgba(200,1,163,.2) 0,#c801a3 60%,#c801a3 100%)}.rating-table .line>bm-star[value='В']+em{background:linear-gradient(90deg,rgba(155,255,117,.2) 0,#9bff75 60%,#9bff75 100%);color:#000}.item-info .-buttons{display:block;text-align:center}.item-info .-buttons button{border:none;background:var(--background-button-default);color:var(--color-button-default);font:inherit;font-size:18px;font-weight:700;height:40px;line-height:40px;padding:0 20px;border-radius:5px;cursor:pointer}.delivery-change .-buttons{display:flex;align-items:center;justify-content:space-between}.request-content{padding:20px 0 0 0}bm-item-counter{max-width:700px}bm-item-counter:last-of-type{margin-bottom:0}.option-list{display:flex;align-items:flex-start;justify-content:space-between;padding-top:40px}.delivery-component{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;white-space:nowrap}.delivery-component bm-input{width:80px;height:36px;margin-left:20px}.delivery-component.summary{align-items:flex-end}.delivery-component.summary span{font:var(--font-catalogue-menu-default);line-height:36px}.delivery-component.summary strong{display:inline-block;width:110px;font:var(--font-cat-title);text-align:right;line-height:36px}.delivery-component.summary strong::after{content:\" ₽\"}:host(:not(.-alert)) .footer-buttons{border-top:1px solid var(--color-separator-line)}:host(.-alert) .window{min-width:450px}:host(.-alert) .window .alert-content{padding:30px 0 0 0;display:flex;align-items:center;justify-content:center;font-size:1.2em;line-height:1.4em}:host(.-alert) button.close-window{visibility:hidden}form .form-line{display:table;width:calc(100% + 40px);table-layout:fixed;border-collapse:separate;border-spacing:20px 0;margin:0 -20px 20px -20px}form .form-line>*{display:table-cell}form .form-line p{line-height:50px;vertical-align:baseline}form button[bm-type=default]{box-sizing:border-box;width:100%}form button[bm-type=default][disabled]{pointer-events:none;opacity:.5}form .agreement{margin:30px 0;text-align:left}form .agreement a{color:var(--color-hover-link)}form .agreement bm-checkbox{text-align:left}form[done] .agreement,form[done] .form-line,form[done] bm-uploader,form[done] button[bm-type=default],form[done]>p{display:none}form .message{display:none}form[done] .message,form[error] .message{display:block;padding:0 0 50px 0;max-width:360px;text-align:center;margin:auto}form[done] .message{padding:50px 0 50px 0}form[error] .message{color:var(--color-file-not-accepted)}.window-content>p{font:var(--font-texts)}:host([bm-id=shedule-window]) .window-content>p>a,:host([bm-id=shedule-window]) .window-content>p>b{font-weight:500;font-size:1.15em}.window-type-outlet .window-content{padding-right:30px;padding-left:30px;padding-bottom:10px}.window-type-outlet h4{margin:0;font-size:22px;text-transform:uppercase;color:#000;font-weight:500}.window-type-outlet ul{margin:0;padding:0;color:var(--background-sticker-outlet);list-style-type:none;font-size:15px;font-weight:500}.window-type-outlet li{padding-left:34px}.window-type-outlet li::before{content:'';width:24px;height:24px;background-image:var(--ico-alert-circle);margin-left:-34px;margin-right:10px;display:inline-block;vertical-align:top;transform:translateY(-2px)}.window-type-outlet li+li{margin-top:13px}.window-type-outlet li a{color:inherit;text-decoration:underline;text-decoration-style:dotted}.window-type-outlet .footer-buttons{border-top:none!important;padding-top:0}.window-type-outlet .footer-buttons button{font-size:14px;font-weight:500}.window-type-outlet .footer-buttons button[bm-type=white]{color:var(--color-outlet-link);background-color:var(--color-outlet-link-bg);border:none;display:flex;align-items:center;justify-content:center;gap:10px}.window-type-outlet .footer-buttons button[bm-type=white]::after{content:'';width:12px;height:12px;background-image:var(--ico-arrow-top-right);background-size:12px}:host([bm-id=shedule-window]){overflow-y:hidden}:host([bm-id=shedule-window]) .window{overflow-y:auto;max-height:calc(100vh - 35px)}:host([bm-id=shedule-window]) .window::-webkit-scrollbar-thumb{background:#666;border-radius:5px}:host([bm-id=shedule-window]) .window::-webkit-scrollbar{-webkit-appearance:none;background:#aaa;width:10px}@media screen and (max-width:747px){.agreement,.button,.form,h2,p{margin-right:0;margin-left:0}.option-list{flex-direction:column}.option-list>*{margin-bottom:20px;width:100%}:host(.-alert) .window{min-width:calc(100vw - 40px)}.window-content{padding:20px}:host([bm-id=shedule-window]) .window{width:350px!important;max-height:92vh!important;top:0!important;box-sizing:border-box;overflow-y:auto}:host([bm-id=shedule-window]) p{margin:3px 0}}@media screen and (max-width:414px){.window-type-outlet .window-content{padding-right:15px;padding-left:15px}.window-type-outlet ul{font-size:inherit}.window-type-outlet .footer-buttons button{width:100%;font-size:12px}.window-type-outlet .footer-buttons button[bm-type=default]{margin-bottom:10px}.window-type-outlet .footer-buttons button[bm-type=white]::after{width:10px;height:10px;background-size:10px}}","template":"","code":"class bmModal_info{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t}connectedCallback(){\"\"!=this.window.innerHTML.trim()&&(Array.from(this.window.children).forEach((t=>{this._shadow.$q(\".window-content\").appendChild(t)})),this._shadow.$q(\"form\")&&(this._shadow.$a(\"form\").forEach((t=>(new bmSite)._setForm(t))),this.window.classList.add(\"-freeform\")))}attributeChangedCallback(t,o,e){t.toLowerCase()}}Object.defineProperty(bmModal_info,\"observedAttributes\",{get:()=>[]});"},"bm-modal-login":{"stylesheet":":host{overflow-y:auto;z-index:30020}button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer;width:100%;margin-top:15px}.login-form{padding:40px 50px;max-width:350px}h1{font:var(--font-modal-header);text-transform:uppercase;text-align:center}.field{display:block;max-width:350px;margin:15px 0}.field .caption{margin:10px 0 0 0}.options{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.options>a{color:var(--color-second-links)}.error-text{position:relative;margin:15px 0;max-width:100%;padding-left:30px;background:transparent var(--ico-error) left top no-repeat;color:var(--color-error)}.login-form:not(.error):not(.ok) .error-text{display:none}.ok .error-text{color:var(--color-default);background-image:var(--ico-ok-message)}.recovery-form{display:none}.window{max-height:none}.window-content[recovery] .recovery-form{display:block;padding:40px 50px;max-width:350px}.window-content[recovery] .login-form{display:none}@media screen and (max-width:747px){.login-form,.window-content[recovery] .recovery-form{padding:0}}","template":"<div class=\"login-form\"><h1>вход в личный кабинет</h1><div class=\"field\" key=\"login\"><bm-input class=\"login\" type=\"text\" maxlength=\"64\" placeholder=\"Логин\"></bm-input><div class=\"caption\">Для авторизации по номеру телефона введите его&nbsp;в&nbsp;формате: 7XXXXXXXXXX</div></div><div class=\"field\" key=\"password\"><bm-input type=\"password\" value=\"\" maxlength=\"32\" placeholder=\"ПАРОЛЬ\"></bm-input></div> <button bm-type=\"default\">Вход</button><div class=\"options\"><bm-checkbox checked name=\"remember-me\">Запомнить меня</bm-checkbox> <a href=\"#\" class=\"recovery\">Забыли пароль?</a></div><div class=\"error-text\"></div></div><div class=\"recovery-form\"><h1>Восстановление пароля</h1><div class=\"field\"><div class=\"caption\">Укажите ваш мобильный номер телефона указанный при регистрации — код для смены пароля вам будет выслан в SMS.</div></div><div class=\"field\" key=\"phone\"><bm-input type=\"text\" maxlength=\"64\"></bm-input></div> <button bm-type=\"default\">Отправить</button><div class=\"options\"><em></em> <a href=\"#\" class=\"recovery\">Отмена</a></div><div class=\"error-text\"></div></div>","code":"class bmModal_login{constructor(e=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=e,this._shadow.$q(\".login-form button\").addEventListener(\"click\",(e=>this.login())),this._shadow.$a(\".login-form bm-input\").forEach((e=>{e.addEventListener(\"keypress\",(e=>{this._shadow.$q(\".login-form\").classList.remove(\"error\",\"ok\"),13==e.detail.key&&this.login()}))})),this._shadow.$q(\".recovery-form button\").addEventListener(\"click\",(e=>this.recovery())),this._shadow.$a(\".recovery-form bm-input\").forEach((e=>{e.addEventListener(\"keypress\",(e=>{this._shadow.$q(\".recovery-form\").classList.remove(\"error\"),13==e.detail.key&&this.recovery()}))})),this._shadow.$a(\"a.recovery\").forEach((e=>{e.addEventListener(\"click\",(e=>(e.preventDefault(),this._shadow.$q(\".window-content\").toggleAttribute(\"recovery\"),this._shadow.$q(\".window-content\").hasAttribute(\"recovery\")?this._shadow.$q('.field[key=\"phone\"] bm-input').focus():this._shadow.$q('.field[key=\"login\"] bm-input').focus(),window.dispatchEvent(new Event(\"resize\")),!1)))}))}connectedCallback(){let e=localStorage.getItem(\"login\");if(e&&e.match(/^\\#/)){let t=e.replace(/^\\#(.*)$/,\"$1\");this._shadow.$q('.login-form .field[key=\"login\"] bm-input').val=t,setTimeout((()=>this._shadow.$q('.field[key=\"password\"] bm-input').focus()))}else setTimeout((()=>this._shadow.$q('.field[key=\"login\"] bm-input').focus()));document.body.classList.contains(\"login\")&&this.window.toggleAttribute(\"nonclosable\",1),document.onkeydown=e=>{(\"key\"in(e=e||window.event)?\"Escape\"===e.key||\"Esc\"===e.key:27===e.keyCode)&&this.close()}}attributeChangedCallback(e,t,o){e.toLowerCase()}login(){let e={login:this._shadow.$q('.field[key=\"login\"] bm-input').value,password:this._shadow.$q('.field[key=\"password\"] bm-input').value};this.dispatcher.api.get(\"cabinet:login\",e,{preloader:this.windowElement}).then((t=>{let o=e.login,i=this._shadow.$q('bm-checkbox[name=\"remember-me\"]').value;this.close(),i&&localStorage.setItem(\"login\",`#${o}`),this.dispatcher.sendEvent(\"login\",{internal:!1},window),t.location&&setTimeout((()=>{location.href=t.location}),5)})).catch((e=>{let t;t=e.data?e.data:{error:\"Ошибка сервера, повторите запрос позднее\"},this._shadow.$q(\".error-text\").innerHTML=t.error??t.message,this._shadow.$q(\".login-form\").classList.add(\"error\"),window.dispatchEvent(new Event(\"resize\"))}))}recovery(){let e={login:this._shadow.$q('.field[key=\"phone\"] bm-input').value};this.dispatcher.api.get(\"cabinet:recovery\",e,{preloader:this.windowElement}).then((e=>{this._shadow.$q(\".window-content\").toggleAttribute(\"recovery\",!1),this._shadow.$q(\".error-text\").innerHTML=e.message,this._shadow.$q(\".login-form\").classList.add(\"ok\"),this._shadow.$q('.field[key=\"login\"] bm-input').focus()})).catch((e=>{let t;t=e.data?e.data:{error:\"Ошибка сервера, повторите запрос позднее\"},this._shadow.$q(\".recovery-form .error-text\").innerHTML=t.error,this._shadow.$q(\".recovery-form\").classList.add(\"error\"),window.dispatchEvent(new Event(\"resize\"))}))}}Object.defineProperty(bmModal_login,\"observedAttributes\",{get:()=>[]});"},"bm-modal-myprice":{"stylesheet":".window{max-width:460px}form .form-line{display:flex;gap:20px;width:100%;margin:0 0 20px 0}form .form-line>*{flex-grow:1}form button[bm-type=default]{box-sizing:border-box;width:100%}form button[bm-type=default][disabled]{pointer-events:none;opacity:.5}form .agreement{margin:30px 0;text-align:left}form .agreement bm-checkbox{text-align:left}form[done] .agreement,form[done] .form-line,form[done] bm-uploader,form[done] button[bm-type=default],form[done]>p{display:none}form .message{display:none}form[done] .message,form[error] .message{display:block;padding:0 0 50px 0;max-width:360px;text-align:center;margin:auto}form[done] .message{padding:50px 0 50px 0;font-weight:500}form[error] .message{color:var(--color-file-not-accepted)}.form{position:relative}","template":"<h2>Моя цена</h2><div class=\"form\"><form><p>Обычно цены на сантехнику у нас равны минимальным разрешеным розничным ценам, установленным производителем.<p><strong>Но!</strong><p>Если вы где-то найдете более выгодное предложение&nbsp;— сообщите нам об этом, и мы обязательно что-нибудь придумаем :)<p>&nbsp;</p> <input type=\"hidden\" name=\"formId\" value=\"my-price\"> <input type=\"hidden\" name=\"itemId\" value=\"\"><div class=\"form-line\"><bm-input type=\"text\" placeholder=\"Ссылка на товар\" name=\"link\" obligate></bm-input></div><div class=\"form-line\"><bm-input type=\"text\" placeholder=\"Имя\" name=\"name\" obligate></bm-input><bm-input mask=\"+7 (___) ___–__–__\" type=\"number\" name=\"phone\" maxlength=\"10\" obligate></bm-input></div><div class=\"form-line\"><bm-input type=\"email\" placeholder=\"E-mail\" name=\"email\"></bm-input></div><div class=\"form-line\"><bm-input type=\"number\" maxlength=\"3\" placeholder=\"Желаемое количество\" value=\"1\" name=\"count\" obligate></bm-input></div><div class=\"message\"></div> <button bm-type=\"default\">Отправить</button><div class=\"agreement\"> Нажимая кнопку \"отправить\", я выражаю согласие на обработку <a href=\"/agreement/\" target=\"_blank\">персональных данных</a>.</div></form></div>","code":"class bmModal_myprice{constructor(e=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=e,(new bmSite)._setForm(this._shadow.$q(\"form\"))}connectedCallback(){}attributeChangedCallback(e,t,r){e.toLowerCase()}}Object.defineProperty(bmModal_myprice,\"observedAttributes\",{get:()=>[]});"},"bm-modal-shops":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer;width:100%;margin-top:15px}h3{font:var(--font-header-inner)}:host{min-width:360px;overflow-x:hidden;overflow-y:auto}.window{max-height:none;max-width:none}.window-content{overflow:visible;max-height:none;max-width:none;width:auto}h2{text-align:center;text-transform:uppercase;padding:20px 0 0 0;white-space:normal}:host([single]) h2{display:none}.shops-info{display:flex;align-items:stretch;justify-content:flex-start;margin-top:20px}:host([single]) .shops-info{margin:40px 0 0 0}.shops-info .shop{border:2px solid var(--color-separator-line);border-radius:5px;padding:20px 25px 40px 25px}.shops-info .shop[hidden]{display:none}:host(:not([single])) .shops-info .shop{margin:0 10px}.list{width:320px}.list dl{margin:0;font:var(--font-texts);display:block;display:flex;align-items:flex-start;justify-content:flex-start}.list dl dt{font:var(--font-tabs-title);margin-right:8px}.list dl dt::after{content:\":\"}.list dl dd{margin:0}.list dl dd a{text-decoration:none;color:inherit}.list p{margin:0}.list p a{display:inline-block;margin-right:12px;margin-bottom:20px}.list p a.-scheme{padding-left:35px;background:transparent var(--ico-map) left center no-repeat;color:var(--color-hover-link)}.shops-info .shop img{display:block;width:320px;height:190px;border-radius:10px;object-fit:cover}@media screen and (max-width:747px){:host([single]) .shops-info{margin:0}.window-content{padding:20px 15px}.shops-info{flex-direction:column}.shops-info .shop{padding:10px 15px 20px 15px}:host(:not([single])) .shops-info .shop{margin:10px 0}.list{width:calc(100vw - 65px)}.shops-info .shop img{width:calc(100vw - 65px);height:120px}.list dl,.list p{padding:8px 0}.list dl dd{padding:2px 0 0 0}}","template":"<h2>Самовывоз из гипермаркета</h2><div class=\"shops-info\"><div class=\"shop\" data-id=\"2\"><h3>BLUMART FAMILY ROOM</h3><div class=\"list\"><dl><dt>Адрес</dt><dd>г. Москва, 23 км Киевского шоссе, 8с1</dd></dl><dl><dt>Время работы</dt><dd>10:00–22:00, все дни</dd></dl><dl><dt>Контакты</dt><dd class=\"ct-phone\"><a href=\"tel:+79685880740\">7 968 588-07-40</a></dd></dl><p><a href=\"/contacts/fr/\" class=\"-scheme\">Схема проезда</a></p></div> <img src=\"/images/shops/shop-02.jpg\"> <button bm-type=\"default\">Забрать отсюда</button></div><div class=\"shop\" data-id=\"1\"><h3>BLUMART МКАД</h3><div class=\"list\"><dl><dt>Адрес</dt><dd>г. Москва, 14 км МКАД, дом 10</dd></dl><dl><dt>Время работы</dt><dd>09:00–20:00, все дни</dd></dl><dl><dt>Контакты</dt><dd class=\"ct-phone\"><a href=\"tel:+79533717615\">+7 953 371-76-15</a></dd></dl><p><a href=\"/contacts/mkad/\" class=\"-scheme\">Схема проезда</a></p></div><br> <img src=\"/images/shops/shop-01.jpg\"> <button bm-type=\"default\">Забрать отсюда</button></div></div>","code":"class bmModal_shops{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t}connectedCallback(){let t=this._shadow.host.getAttribute(\"options\");t&&(t=JSON.parse(t));let e=t.shop?t.shop:0,o=this._shadow.$a(\".shop\");this.window.toggleAttribute(\"single\",0!==e),o.forEach((t=>{t.toggleAttribute(\"hidden\",0!=e&&e!=t.getAttribute(\"data-id\"))})),$q(\".santehbaza_call_phone_495_1_override\")&&this._shadow.$a(\".ct-phone\").forEach((t=>{t.innerHTML=$q(\".santehbaza_call_phone_495_1_override\").innerHTML}))}attributeChangedCallback(t,e,o){t.toLowerCase()}}Object.defineProperty(bmModal_shops,\"observedAttributes\",{get:()=>[]});"},"bm-modal-showqr":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer}button[bm-type=white]{height:50px}button[bm-type=default]:first-child:last-child{width:100%;margin-top:15px}#screen{position:relative;display:block;max-width:340px;max-height:340px;width:calc(100vw - 100px);height:calc(100vw - 100px);margin:20px 0 0 0;outline:1px solid var(--color-separator-line);aspect-ratio:1/1}#screen canvas,#screen img{position:absolute;left:0;top:0;width:100%;height:100%;aspect-ratio:1/1}#screen.error{display:flex;align-items:center;justify-content:center;color:red}#screen.error::before{content:\"Не удалось загрузить QR\";font:var(--font-texts);font-weight:500}#screen[done]{display:flex;align-items:center;justify-content:center;color:var(--color-hover-link);font:var(--font-texts);font-weight:500}#screen[done]>img{display:none}#screen[done]::before{content:attr(done)}p{font:var(--font-texts);font-weight:700;text-align:left}small{display:block;text-transform:uppercase;font:var(--font-texts);color:var(--color-texts-grey);text-align:center}small[bottom]{margin-top:15px;text-transform:none;text-align:left}del{text-decoration:none}","template":"<p></p> <small>отсканируйте QR-код для оплаты</small><div id=\"screen\"></div> <small bottom>Кассовый чек будет отправлен в смс<del><br><br>Проверка оплаты может занять<br>минуту, оставайтесь на этом экране</del></small><div class=\"buttons\"><button bm-type=\"default\">Отмена</button></div>","code":"class bmModal_showqr{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t,this.scrn=this._shadow.$q(\"#screen\"),this.interval=0,this._shadow.$q(\".buttons button\").addEventListener(\"click\",(()=>this.window.close(1))),setTimeout((()=>this.render()),10)}connectedCallback(){}async render(){const t=new Image,e=this;t.onload=function(){e._shadow.$q(\"#screen\").append(t),e.checkQRPaid()},t.onerror=function(){e._shadow.$q(\"#screen\").classList.add(\"error\")},t.src=this.window.getAttribute(\"qr\"),this.interval=1e3*this.window.getAttribute(\"qrcheckdelay\")||3e4,this.checkURL=this.window.getAttribute(\"qrcheck\")||\"qr:check\",this._shadow.$q(\"p\").innerHTML=this.window.getAttribute(\"info\"),this.window.resizeCallback()}checkQRPaid(){this.dispatcher.api.post(this.checkURL).then((t=>{t.ok&&(this._shadow.$q(\"#screen\").setAttribute(\"done\",t.message),this._shadow.$q('.buttons button[bm-type=\"default\"]:first-child:last-child').textContent=\"OK\",this._shadow.$q(\"del\").remove(),this._shadow.$q(\"small:not([bottom])\").remove(),this.window.resizeCallback(),setTimeout((()=>{void 0!==t.redirect?location.href=t.redirect:this._shadow.$q(\".close-window\").click()}),5e3))})).catch((t=>{setTimeout((()=>this.checkQRPaid()),this.interval||3e4)}))}}"},"bm-modal-tobasket":{"stylesheet":".window-content .buttons{display:flex;flex-wrap:wrap}.window-content .buttons button{white-space:nowrap}button[bm-type=white]{height:50px;margin-right:10px}.window-content[preloader]{background:transparent var(--preloader) center center no-repeat;background-size:26px}.window-content[preloader] *{visibility:hidden}","template":"<h3>В корзине уже есть товары<br>Очистить корзину перед добавлением?</h3><div class=\"buttons\"> <button bm-type=\"white\" class=\"clear-add-button\">Да, очистить</button> <button bm-type=\"default\" class=\"add-button\">Нет, добавить к существующим</button></div>","code":"class bmModal_tobasket{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t,window.addEventListener(\"search-items\",(t=>{this.collection=t.detail.collection}))}connectedCallback(){const t=this._shadow.$q(\".clear-add-button\");t&&t.addEventListener(\"click\",(()=>{bmSite.confirm(\"Вы действительно хотите очистить корзину?\",\"Да\",\"Нет\").then((()=>{this.dispatcher.api.post(\"basket:clear\",{result_only:!0}).finally((()=>{(new bmSite).basket.addMultiple(this.collection).finally((()=>this.close(!0)))}))})),this._shadow.$q(\".window-content\").toggleAttribute(\"preloader\")}));const e=this._shadow.$q(\".add-button\");e&&e.addEventListener(\"click\",(()=>{(new bmSite).basket.addMultiple(this.collection).finally((()=>this.close(!0))),this._shadow.$q(\".window-content\").toggleAttribute(\"preloader\")}))}attributeChangedCallback(t,e,i){t.toLowerCase()}}Object.defineProperty(bmModal_tobasket,\"observedAttributes\",{get:()=>[]});"},"bm-modal-vacancie":{"stylesheet":"button[bm-type=default]{background-color:var(--background-button-default);color:var(--color-button-default);border-radius:5px;border:none;padding:0 20px;height:50px;font:var(--font-button-default);text-transform:uppercase;cursor:pointer;width:100%;margin-top:15px}h3{font:var(--font-header-inner);text-transform:uppercase}h4{font:var(--font-tabs-title);text-transform:uppercase}:host{min-width:360px;overflow-x:hidden;overflow-y:auto}.window{max-height:none;max-width:none}.window-content{overflow:visible;max-height:none;max-width:none;width:auto;max-width:560px;padding:30px 60px}section{border-bottom:1px solid var(--color-separator-line);padding:0 0 30px 0;font:var(--font-texts)}section ul{margin:0;padding:0 0 0 20px}:host form{display:none!important}section ul li{padding:20px 0 0 0;list-style:disc}@media screen and (max-width:747px){:host([single]) .shops-info{margin:0}.window-content{padding:20px 15px}.shops-info{flex-direction:column}.shops-info .shop{padding:10px 15px 20px 15px}:host(:not([single])) .shops-info .shop{margin:10px 0}.list{width:calc(100vw - 120px)}.shops-info .shop img{width:calc(100vw - 120px);height:120px}}","template":"<div class=\"description\"></div><h3>Откликнуться на&nbsp;вакансию</h3><form slot=\"resume-form\" bm-id><div class=\"form-line\"><bm-input type=\"text\" placeholder=\"Имя\" name=\"name\" obligate></bm-input><bm-input mask=\"+7 (___) ___–__–__\" type=\"number\" name=\"phone\" maxlength=\"10\"></bm-input></div><div class=\"form-line\"><bm-input type=\"email\" placeholder=\"E-mail\" name=\"email\" obligate></bm-input></div><div class=\"form-line\"><textarea placeholder=\"Обращение\" name=\"message\" obligate></textarea></div><div class=\"form-line\" name=\"resume\"><bm-uploader name=\"attached\" caption=\"Прикрепить резюме\" info=\"doc, docx, pdf, jpg, png, rar или zip размером до 10 Мб\" max-size=\"10485760\" multiple accept=\"doc,docx,pdf,jpg,jpeg,png,rar,zip\"></bm-uploader></div><div class=\"message\"></div> <button bm-type=\"default\">Отправить</button><div class=\"agreement\"> Нажимая кнопку \"отправить\", я выражаю согласие на обработку <a href=\"/agreement/\" target=\"_blank\">персональных данных</a>.</div></form><slot name=\"resume-form\"></slot>","code":"class bmModal_vacancie{constructor(t=!1){this.dispatcher=new bmCoreDispatcher,this._shadow=t}connectedCallback(){let t=\"\";this.window.$q(\".description\")&&(t=this.window.$q(\".description\").innerHTML),this._shadow.$q(\".description\").innerHTML=t;let i=this._shadow.$q(\"form\").cloneNode(!0);this.window.hasAttribute(\"bm-id\")&&i.setAttribute(\"bm-id\",this.window.getAttribute(\"bm-id\")),this.window.appendChild(i)}attributeChangedCallback(t,i,e){t.toLowerCase()}}Object.defineProperty(bmModal_vacancie,\"observedAttributes\",{get:()=>[]});"},"bm-option":{"stylesheet":":host{display:flex;position:relative;align-items:flex-start;justify-content:flex-start}:host([disabled]){opacity:.5;filter:grayscale(1);pointer-events:none!important}button[bm-type=to-basket]{width:40px;height:40px;border-radius:50%;border:none;background:var(--background-button-default) var(--ico-basket-white) center center no-repeat;box-shadow:0 3px 6px rgba(0,0,0,.2);cursor:pointer;transform:scale(.75);transform-origin:right top}.image:empty,.title b:empty,.title strong:empty{display:none}.image{width:60px;height:60px;margin:0 20px 0 0;background:var(--background-default);flex-shrink:0;padding:3px}:host([type=default]) .image,:host([type=default]) .title b,:host([type=default]) .title strong{display:none}.image img{width:100%;height:100%;object-fit:contain}.option{display:flex;margin:0 15px;padding:10px 0;font:var(--font-select-default);width:100%}.option strong{font:var(--font-select-header);text-transform:uppercase;display:block}.option .title b{display:block;padding-top:6px}.option span a{color:inherit!important;font:inherit!important;text-decoration:none}.icon{flex-shrink:0;width:20px}:host([bm-id]) .icon{width:30px}:host(:not([bm-id]):hover) .icon,:host([bm-id][in-basket]) .icon{background:transparent var(--ico-tick) right top no-repeat}:host([bm-id][in-basket]) button[bm-type=to-basket]{display:none}:host([type=default]) .icon{transform:translateY(10px)}:host([type=default][selected]) .icon{background:transparent var(--ico-tick) right top no-repeat}:host([type=default]) .title{display:flex;align-items:center;justify-content:space-between;width:100%;padding:7px 0;font-size:1.167em}:host([type=default][caption]) .title{flex-direction:column;align-items:flex-start}:host([type=default][caption]) .title u{text-decoration:none;padding-top:5px;font-size:.75em}:host([type=default]) .title>span{font:inherit;text-transform:uppercase}","template":"<div class=\"option\"><div class=\"image\"></div><div class=\"title\"><strong></strong><span></span><b></b><u></u></div><div class=\"icon\"></div></div>","code":"class bmOptionElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.addEventListener(\"click\",(t=>{this._shadow.$q(\"a\")&&\"button\"!=t.target.tagName.toLowerCase()&&this._shadow.$q(\"a\").click(),this.dispatcher.sendEvent(\"set\",{global:0},this)}))}connectedCallback(){this.render()}attributeChangedCallback(t,e,i){switch(t.toLowerCase()){case\"brand\":this._shadow.$q(\".title strong\").textContent=i||\"\";break;case\"image\":this._shadow.$q(\".image\").innerHTML=i?`<img src='${i}'>`:\"\";break;case\"price\":this._shadow.$q(\".title b\").innerHTML=i?`${bmSite.formatPrice(Number(i))} ₽`:\"\";break;case\"caption\":this.render();break;case\"bm-id\":this._shadow.$q(\".icon\").innerHTML=i?`<button bm-type='to-basket' bm-id='${i}'></button>`:\"\",i&&this._shadow.$q(\"button\").addEventListener(\"click\",(t=>{(new bmSite).basket.add(t.target.getAttribute(\"bm-id\"))}));break;case\"selected\":this.dispatchEvent(new Event(\"click\"))}}render(){this.type||(this.type=\"default\"),this._shadow.$q(\".title>span\").innerHTML=this.innerHTML,this._shadow.$q(\".title>u\").innerHTML=this.getAttribute(\"caption\")||\"\"}}Object.defineProperty(bmOptionElement,\"observedAttributes\",{get:()=>[\"bm-id\",\"brand\",\"image\",\"price\",\"type\",\"caption\",\"value\"]});"},"bm-page-banner":{"stylesheet":"button[bm-type=arrow]{position:relative;background:var(--background-default);border:none;cursor:pointer;width:50px;height:50px;box-shadow:0 3px 6px rgba(0,0,0,.1);border-radius:50%}button[bm-type=arrow]::before{position:absolute;content:\"\";left:0;top:0;width:100%;height:100%;background:transparent var(--ico-arrow-button) center center no-repeat}button[bm-type=arrow][bm-dir=left]::before{transform:rotate(180deg)}:host{display:block}:host ul.nav{position:absolute;left:60px;bottom:50px;display:flex;list-style:none;padding:0}:host(:not([bm-role])) ul.nav{left:calc(42% + 50px);bottom:20px}:host ul.nav li{position:relative;width:12px;height:12px;border-radius:50%;background:var(--color-banner-text);box-shadow:0 2px 3px rgba(0,0,0,.15);margin:0 6px;opacity:.5;cursor:pointer}:host ul.nav li:first-child:last-child{display:none!important}:host ul.nav li[bm-current]{opacity:1}div.scroll{position:absolute;left:-20px;top:calc(50% - 25px);height:50px;width:calc(100% + 40px)}:host([single]) div.scroll,div.scroll[tmphidden]{visibility:hidden}:host([bm-role=main-page]) div.scroll{display:none}div.scroll button{position:absolute}div.scroll button[bm-dir=right]{right:0}@media screen and (max-width:1279px){:host ul.nav{left:40px}:host(:not([bm-role])) ul.nav{bottom:10px;left:calc(42% + 20px)}}@media screen and (max-width:747px){:host ul.nav,:host(:not([bm-role])) ul.nav{left:0;bottom:40px;width:100%;justify-content:center}:host(:not([bm-role])) ul.nav{bottom:0}div.scroll{display:none}}","template":"<slot></slot><ul class=\"nav\"></ul><div class=\"scroll\"> <button bm-type=\"arrow\" bm-dir=\"left\"></button> <button bm-type=\"arrow\" bm-dir=\"right\"></button></div>","code":"class bmPageBannerElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.paused=!1,this.tout=0,this.defaultTimeout=6e3;let t=this.$a(\"bm-page-banner-slide\"),e=1;this.toggleAttribute(\"single\",t.length<2),t.forEach((i=>{let s=$c(\"li\");i.setAttribute(\"index\",e),s.setAttribute(\"index\",e),e++,i.hasAttribute(\"shown\")&&s.setAttribute(\"bm-current\",1),this._shadow.$q(\"ul\").appendChild(s),i.addEventListener(\"show\",(e=>{t.forEach((t=>{t!==e.target&&(t.removeAttribute(\"shown\"),t.$q(\"video\")&&t.$q(\"video\").stopVideo())}));try{this._shadow.$q(\"ul.nav li[bm-current]\").removeAttribute(\"bm-current\")}catch(e){}this._shadow.$q(`ul.nav li[index=\"${e.target.index}\"]`).setAttribute(\"bm-current\",\"\"),e.target.$q(\"video\")&&e.target.playVideo()})),i.addEventListener(\"updatetime\",(t=>{this.defineNext()})),s.addEventListener(\"click\",(t=>{let e=t.target.getAttribute(\"index\");this.$q(`bm-page-banner-slide[index=\"${e}\"]`).shown=1}))})),this._shadow.$a(\".scroll button\").forEach((t=>{t.addEventListener(\"click\",(t=>{let e=\"right\"==t.target.getAttribute(\"bm-dir\")?1:-1;this.tout&&(clearTimeout(this.tout),this.tout=!1),this.defineNext(!0,e<0)}))})),this.addEventListener(\"mouseenter\",(t=>this.paused=!0)),this.addEventListener(\"mouseleave\",(t=>{this.paused=!1,this.defineNext()})),window.addEventListener(\"root:class:change\",(t=>{this._shadow.$q(\".scroll\").toggleAttribute(\"tmphidden\",t.detail.classes.contains(\"-no-scroll\"))}))}connectedCallback(){this.defineNext()}defineNext(t=!1,e=!1){let i=this.defaultTimeout,s=this.$a(\"bm-page-banner-slide\"),n=this.$q(\"bm-page-banner-slide[shown]\"),a=e?n.previousElementSibling:n.nextElementSibling;a||(a=e?s.item(s.length-1):s.item(0)),i=Number(n.getAttribute(\"showtime\"))||i,t&&(i=0),this.tout&&clearTimeout(this.tout),this.tout=setTimeout((()=>{if(this.paused&&!t)return!0;a.shown=1,this.defineNext()}),i)}attributeChangedCallback(t,e,i){switch(t.toLowerCase()){case\"showtime\":this.defaultTimeout=Number(i),isNaN(this.defaultTimeout)&&(this.defaultTimeout=6e3);break;case\"bm-role\":this.$a(\"bm-page-banner-slide\").forEach((t=>t.setAttribute(\"bm-role\",i)))}}}Object.defineProperty(bmPageBannerElement,\"observedAttributes\",{get:()=>[\"showtime\",\"bm-role\"]});"},"bm-page-banner-slide":{"stylesheet":":host{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity var(--duration-banner-slide) ease;overflow:hidden;border-radius:5px;background-color:#d7d5c7}:host([shown]){opacity:1}:host>*{width:50%}:host .title{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;z-index:30}:host slot.image{display:block;width:75%}:host #video-poster,:host #video-poster+iframe{display:none;position:absolute;right:0;top:0;height:100%;width:75%;z-index:20;background-position:center center;background-repeat:no-repeat;background-size:cover;border:none;background-color:transparent}:host([poster]) #video-poster,:host([poster]) #video-poster+iframe{display:block}:host([poster]) slot.image{pointer-events:none;opacity:0}:host([bm-role=main-page]) #video-poster,:host([bm-role=main-page]) #video-poster+iframe{width:50%}::slotted(*){object-fit:cover;width:100%;height:100%}:host .title{background:var(--background-banner-text);color:var(--color-banner-text);text-transform:uppercase;font:var(--font-banner-inner);padding:0 40px 0 30px;width:calc(25% - 70px)}:host([bm-role=main-page]) .title{font:var(--font-banner-default);padding:0 100px 15px 60px;width:calc(50% - 160px)}:host .title strong{display:inline-block;position:relative;top:10px;font-size:.78em;line-height:1.7em;font-weight:inherit;padding:0 .45em;transform-origin:left center;transform:rotate(-11deg);box-shadow:0 10px 10px rgba(0,0,0,.2);background:rgba(0,34,115,.7);border-radius:12px}.banner_slide_sale{font-family:Circe,sans-serif;width:75%;height:100%;padding:29px 0 0 25px;position:absolute;top:0;right:0;color:#fff;font-size:44px;font-weight:800;z-index:21;text-transform:uppercase;line-height:1.2;box-sizing:border-box;text-decoration:none}.banner_slide_sale::before{content:'';background:#000;opacity:.2;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.banner_slide_sale div{background-image:linear-gradient(to bottom,#d80f0e,#a20001);border-radius:16px;font-size:28px;color:inherit;padding:8px 20px 6px;display:inline-block;transform:translate(20px,-7px)}:host([bm-role=main-page]) .banner_slide_sale{width:50%;font-size:44px;line-height:62px;padding:144px 0 0 55px}:host([bm-role=main-page]) .banner_slide_sale div{font-size:44px;border-radius:30px;padding:8px 30px 6px;transform:translate(30px,33px)}@media screen and (max-width:1279px){:host .title,:host(:not([bm-role])) .title{padding:0 20px 0 40px;width:calc(42% - 60px)}.banner_slide_sale{width:58%;font-size:30px;padding-top:20px;line-height:1.8}.banner_slide_sale div{font-size:20px;padding:5px 20px 3px;transform:translate(15px,-3px)}:host([bm-role=main-page]) .banner_slide_sale{width:50%;font-size:50px;padding:30px 0 0 35px;line-height:1.2}:host([bm-role=main-page]) .banner_slide_sale div{font-size:35px;border-radius:16px;padding:8px 30px 6px}}@media screen and (max-width:1063px){.banner_slide_sale{width:58%;font-size:20px;padding-top:20px;line-height:1.8}.banner_slide_sale div{font-size:20px;padding:0 20px;display:block;max-width:147px;transform:translate(15px,5px)}:host([bm-role=main-page]) .banner_slide_sale{width:50%;font-size:40px;padding:30px 0 0 35px;line-height:1.2}:host([bm-role=main-page]) .banner_slide_sale div{border-radius:16px;padding:8px 30px 6px;font-size:24px;max-width:none;transform:translate(20px,30px);display:inline-block}}@media screen and (max-width:747px){:host([bm-role=main-page]){flex-direction:column}:host([bm-role=main-page]) .title{order:2;width:calc(100% - 80px);padding:10px 40px 10px 40px;height:calc(50% - 20px);display:flex;align-items:center;justify-content:flex-start}:host([bm-role=main-page]) slot.image{width:100%;height:50%}:host([bm-role=main-page]) #video-poster,:host([bm-role=main-page]) #video-poster+iframe{width:67%}:host([bm-role=main-page]) #video-poster,:host([bm-role=main-page]) #video-poster+iframe{width:100%;height:50%}:host(:not([bm-role])) .title{padding:0;width:max(27%,120px)}:host(:not([bm-role])) .title>span{padding:0 8px 0 8px;box-sizing:border-box;max-width:102px;display:block;line-height:1.3em}:host(:not([bm-role])) slot.image{width:67%}:host .title nobr{white-space:normal}:host .title strong{top:5px}.banner_slide_sale{width:73%}:host([bm-role=main-page]) .banner_slide_sale{width:100%;padding:12px 5px 0 5px;font-size:22px;text-align:center;line-height:1.2}:host([bm-role=main-page]) .banner_slide_sale div{font-size:16px;transform:translate(0,11px)}}@media screen and (max-width:460px){.banner_slide_sale{padding-top:17px;padding-left:36px;font-size:18px;line-height:1.3}.banner_slide_sale div{max-width:120px;font-size:14px;padding:5px 20px 3px}}","template":"<span class=\"title\"><slot name=\"slogan\"></slot></span><slot class=\"image\" name=\"image\"></slot><div id=\"video-poster\"></div>","code":"class bmPageBannerSlideElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.video=this.$q(\"video\")||!1,this.updated=!1,this.video.hasAttribute(\"poster\")&&(this._shadow.$q(\"#video-poster\").style.backgroundImage=`url(${this.video.getAttribute(\"poster\")})`),this.video.hasAttribute(\"poster-delayed\")&&setTimeout((()=>{this._shadow.$q(\"#video-poster\").style.backgroundImage=`url(${this.video.getAttribute(\"poster-delayed\")})`}),1e3),this.video&&!this.updated&&(this.video.addEventListener(\"canplay\",(t=>{this.setAttribute(\"showtime\",Math.floor(1e3*this.video.duration)-1e3),this.dispatcher.sendEvent(\"updatetime\",{global:0},this)}),{once:!0}),this.updated=!0),this.stopVideo(),this.hasAttribute(\"data-is-sale\")&&this.showSaleText()}attributeChangedCallback(t,e,i){if(\"shown\"===t.toLowerCase())null==e&&null!=i&&(this.dispatcher.sendEvent(\"show\",{internal:!0},this),this.playVideo()),null!=e&&null==i&&(this.dispatcher.sendEvent(\"hide\",{internal:!0},this),this.stopVideo())}stopVideo(){if(!this.video||document.body.hasAttribute(\"simple-mode\"))return!0;this.video.removeAttribute(\"autoplay\"),this.video.pause(),this.toggleAttribute(\"poster\",1)}playVideo(){if(!this.video||document.body.hasAttribute(\"simple-mode\"))return!0;this.video.currentTime=0,this.video.play().then((async t=>{this.removeAttribute(\"poster\")})).catch((t=>{if(this.toggleAttribute(\"poster\",1),document.body.parentElement.classList.contains(\"-ios\")&&this.video.hasAttribute(\"ios-alt\")&&!this._shadow.$q(\"iframe\")){let t=$c(\"iframe\");t.src=`/video/ios-fr.php?src=${this.video.getAttribute(\"ios-alt\")}`,this._shadow.append(t),console.log(t)}return!0}))}showSaleText(){let t=[],e=\"до&nbsp;15&nbsp;января\";new Date>new Date(2026,0,16)&&(e=\"до&nbsp;30&nbsp;апреля\"),t=this.hasAttribute(\"inner-banner\")?this.hasAttribute(\"mobile-banner\")?[\"Новый гипермаркет <br />\",\"у м. Пражская <br>\",\"и скидки до 50% \",\"везде! \",\"<div>\"+e+\"</div>\"]:[\"Новый гипермаркет \",\"у м. Пражская <br>\",\"и скидки до 50% \",\"везде! \",\"<div>\"+e+\"</div>\"]:this.hasAttribute(\"mobile-banner\")?[\"Новый \",\"гипермаркет <br />\",\"у м. Пражская <br>\",\"и скидки до 50% \",\"везде! <br />\",\"<div>\"+e+\"</div>\"]:[\"Новый \",\"гипермаркет <br>\",\"у м. Пражская <br />\",\"и скидки \",\"до 50% <br />\",\"везде! <br />\",\"<div>\"+e+\"</div>\"];const i=$c(\"a\");i.href=\"/finalsale/\",i.classList=\"banner_slide_sale\",this._shadow.appendChild(i);let s=0;!function e(){setTimeout((()=>{i.innerHTML+=t[s],s++,s<t.length&&e()}),200)}()}}Object.defineProperty(bmPageBannerSlideElement,\"observedAttributes\",{get:()=>[\"index\",\"shown\",\"showtime\"]});"},"bm-pages-list":{"stylesheet":"ul{display:flex;align-items:center;justify-content:flex-start;list-style:none;padding:0;margin:20px 0}:host([center]) ul{justify-content:center}ul li{position:relative;width:36px;height:36px;font:var(--font-page-number);color:var(--color-default);text-align:center;cursor:pointer;flex-shrink:0}ul li[current]{background:var(--background-button-default);color:var(--color-button-default);border-radius:50%}ul li[hidden]{display:none}ul li[hidden]:not(.move)+li:not([hidden]){margin-left:40px}ul li[hidden]:not(.move)+li:not([hidden])::before{position:absolute;content:\"...\";display:block;width:40px;height:40px;left:-40px;top:0;color:var(--color-default);pointer-events:none}ul li.move{box-shadow:0 3px 6px rgb(0 0 0 / 10%);border-radius:50%;overflow:hidden}ul li.move::after{position:absolute;content:\"\";left:0;top:0;width:100%;height:100%;background:var(--background-default) var(--ico-arrow-button) center center no-repeat}ul li.move.back::after{transform:rotate(180deg)}","template":"<ul></ul>","code":"class bmPagesListElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._total=1,this._current=1,this.attr={hasPreventDefault:this.hasAttribute(\"prevent-default\")},this.customEvents={changed:t=>new CustomEvent(\"button:clicked\",{detail:{page:t}})},this.$a(\"a\").forEach((t=>{let e=Number(t.textContent);if(!(e>0))return!1;t.hasAttribute(\"selected\")&&(this._current=e),e>this._total&&(this._total=e)})),this.render(),window.addEventListener(\"resize\",(t=>this.setCurrent(this._current,!0))),window.addEventListener(\"fonts:ready\",(t=>this.setCurrent(this._current,!0)),{once:!0})}attributeChangedCallback(t,e,r){t.toLowerCase()}get total(){return this._total}set total(t){t>0||(t=1),this._total=t,this.render()}get current(){return this._current}set current(t){t>0||(t=1),this.setCurrent(1*t)}setCurrent(t=0,e=!1){if(0===t&&(t=this._current),this._total||(this._total=1),t>0||(t=1),t>this._total&&(t=this._total),this._shadow.$a(\"li[current]\").forEach((t=>t.removeAttribute(\"current\"))),this._shadow.$q(`li[value=\"${t}\"]`).toggleAttribute(\"current\"),!e&&t==this._current)return!0;this._current=t,e||this.dispatcher.sendEvent(\"beforechange\",{global:0},this);let r=new Uint8Array(this._total),i=Math.floor(this.parentNode.getBoundingClientRect().width/this._shadow.$q(\"li\").getBoundingClientRect().width);this.parentNode.getBoundingClientRect().width<=390&&this._current>4&&(i=8);let s=1,h=(i-(1==this._current||this._current==this._total?1:2)-(this._total>i?2:1)-2)/2;h>3&&(h=3),i>12&&(i=12),r[0]=r[this._total-1]=1;for(let t=this._current-h;t<=this._current+h;t++)t>0&&(r[t-1]=1);let a=!1;for(;!a;){a=!0;for(let t=1;t<this._total-1;t++)1==r[t-1]&&1==r[t+1]&&0==r[t]&&(a=!1,r[t]=1)}if(this._shadow.$q(\"li.move.forward\").toggleAttribute(\"hidden\",this._current==this._total),this._shadow.$q(\"li.move.back\").toggleAttribute(\"hidden\",this._current<=1),s<i){let t=this._total;a=0;for(let t=0;t<this._total;t++)1==r[t]?s++:t>0&&t<this._total-1&&1==r[t-1]&&0==r[t]&&a++;s+=a;for(let e=this._current-1;e<this._total;e++)if(0==r[e]){t=e;break}let e=1;for(;s<i-2;){if(t>=this._total){for(let e=this._current-1;e>=0;e--)if(0==r[e]){t=e;break}e=-1}r[t]=1,t+=e,s++}}for(let t=0;t<this._total;t++)this._shadow.$q(`li[value=\"${t+1}\"]`).toggleAttribute(\"hidden\",0==r[t]);this._shadow.$q('li[value=\"1\"]').toggleAttribute(\"hidden\",1==this._total);var n=this.getAttribute(\"href\");this.hasAttribute(\"first-page-href\")&&1==this.current&&(n=this.getAttribute(\"first-page-href\")),n.match(/\\{page\\}/)&&(n=n.replace(/\\{page\\}/,this.current)),e||this.dispatcher.sendEvent(\"change\",{url:n,page:this.current,global:0},this)}render(){this._total||(this._total=1),this._current||(this._current=1),this._current>this._total&&(this._current=this._total);let t=this._shadow.$q(\"ul\");t.innerHTML=\"\";for(let e=1;e<=this._total;e++){let r=$c(\"li\");r.setAttribute(\"value\",e),r.textContent=e,r.addEventListener(\"click\",(t=>{if(!this.attr.hasPreventDefault){const e=t.target.getAttribute(\"value\");this.current=e}})),t.appendChild(r)}let e=$c(\"li\");e.classList.add(\"move\",\"forward\"),e.addEventListener(\"click\",(t=>{if(this._current==this._total)return!0;this.setCurrent(this._current+1,!0);var e=this.getAttribute(\"href\");e.match(/\\{page\\}/)&&(e=e.replace(/\\{page\\}/,this.current)),this.dispatcher.sendEvent(\"next\",{url:e,global:0},this),this.dispatcher.sendEvent(\"change\",{url:e,page:this.current,global:0},this)})),t.appendChild(e);let r=$c(\"li\");r.classList.add(\"move\",\"back\"),r.addEventListener(\"click\",(t=>{if(this._current==this._total)return!0;this.setCurrent(this._current-1,!0);var e=this.getAttribute(\"href\");e.match(/\\{page\\}/)&&(e=e.replace(/\\{page\\}/,this.current)),this.dispatcher.sendEvent(\"next\",{url:e,global:0},this),this.dispatcher.sendEvent(\"change\",{url:e,page:this.current,global:0},this)})),t.prepend(r),this.setCurrent(this._current,!0)}}Object.defineProperty(bmPagesListElement,\"observedAttributes\",{get:()=>[]});"},"bm-printer-list":{"stylesheet":":host{display:inline-block;font-family:'Open Sans';background:rgba(0,34,115,.05);border:1px solid #cad9f9;border-radius:11px;padding:16px 18px 18px;margin-top:24px}:host([hidden]){display:none}:host([hidden]){margin-top:0}.text{margin:0;margin-bottom:15px;padding:0 18px;font-style:normal;font-weight:600;font-size:14px;line-height:135%;text-align:center;font-feature-settings:'pnum' on,'lnum' on;color:#002273}slot{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;max-height:120px;overflow:hidden;overflow-y:auto}bm-button{width:127px}","template":"<p class=\"text\"> Выберите принтер, на который будут отправлены<span class=\"price-lists\"></span> <span class=\"cennik\">ценников</span></p><slot class=\"buttons\"></slot>","code":"class bmPrinterListElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners(),this._firstRender()}connectedCallback(){}_initVariables(){this.el={priceLists:this._shadow.$q(\".price-lists\"),cennik:this._shadow.$q(\".cennik\")},this.lightDOM={},this.shadowDOM={},this.state={},this.dev={}}_addEventListeners(){}_firstRender(){}getRightWord(t){const e=Number(t);return 1===e?\"ценник\":e<5?\"ценника\":\"ценников\"}attributeChangedCallback(t,e,i){if(\"count\"===t.toLowerCase())this.el.priceLists.innerText=i,this.el.cennik.innerText=this.getRightWord(i)}}Object.defineProperty(bmPrinterListElement,\"observedAttributes\",{get:()=>[\"count\"]});"},"bm-rating":{"stylesheet":":host span{margin:0 0 20px 0;display:flex;align-items:center;justify-content:flex-start}:host([large]) span{display:inline-flex;vertical-align:baseline;position:relative;top:3px;margin-right:12px;height:12px;margin-bottom:0}:host span i{width:20px;height:20px;background-color:var(--color-hover-link);display:flex;align-items:center;justify-content:center;position:relative;-webkit-mask-image:var(--ico-star);-webkit-mask-size:contain;mask-image:var(--ico-star);mask-size:contain;opacity:.5;pointer-events:none}:host([large]) span i{width:24px;height:24px}:host([value=\"5\"]) i:nth-child(1),:host([value=\"5\"]) i:nth-child(2),:host([value=\"5\"]) i:nth-child(3),:host([value=\"5\"]) i:nth-child(4),:host([value=\"5\"]) i:nth-child(5){opacity:1}:host([value=\"4\"]) i:nth-child(1),:host([value=\"4\"]) i:nth-child(2),:host([value=\"4\"]) i:nth-child(3),:host([value=\"4\"]) i:nth-child(4){opacity:1}:host([value=\"3\"]) i:nth-child(1),:host([value=\"3\"]) i:nth-child(2),:host([value=\"3\"]) i:nth-child(3){opacity:1}:host([value=\"2\"]) i:nth-child(1),:host([value=\"2\"]) i:nth-child(2){opacity:1}:host([value=\"1\"]) i:nth-child(1){opacity:1}","template":"<span><i></i><i></i><i></i><i></i><i></i></span>","code":"class bmRatingElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this)}}Object.defineProperty(bmRatingElement,\"observedAttributes\",{get:()=>[]});"},"bm-region-selector":{"stylesheet":":host{display:flex;visibility:hidden!important;align-items:center;justify-content:flex-start}:host>span{display:block;background:transparent var(--ico-region-selector) left center no-repeat;padding-left:20px;font:var(--font-header-icon);white-space:nowrap;cursor:pointer}","template":"<span bm-role=\"value\">Москва</span>","code":"class bmRegionSelectorElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this)}attributeChangedCallback(e,t,s){if(\"value\"===e.toLowerCase())this._shadow.$a('[bm-role=\"value\"]').forEach((e=>e.textContent=s)),this.dispatcher.sendEvent(\"change\",{value:s,global:1},this)}}Object.defineProperty(bmRegionSelectorElement,\"observedAttributes\",{get:()=>[\"value\"]});"},"bm-review":{"stylesheet":":host{display:block;background:var(--background-default);padding:25px 15px;border-radius:10px;box-shadow:1px 1px 7px rgba(0,0,0,.35);margin:5px;font:var(--font-texts);text-align:left}p{color:var(--color-texts-grey);padding-bottom:20px;margin:0}p.review-text{color:var(--color-default);font-weight:700;font-style:italic}div.photos{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px}div.photos>div[full]{aspect-ratio:4/3;max-height:190px;position:relative;display:flex;align-items:center;justify-content:center}div.photos>div[full]:first-child:last-child{grid-column:span 2;aspect-ratio:8/3}div.photos>div[full] img{max-width:100%;max-height:100%;object-fit:contain;cursor:pointer}@media screen and (max-width:747px){:host{margin:8px 0}}","template":"<bm-rating value=\"0\"></bm-rating>","code":"class bmReviewElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this);const e=this.$q(\".photos\"),t=this.$q(\".description\");t&&this._shadow.append(t.cloneNode(!0)),e&&this._shadow.append(e.cloneNode(!0)),this._shadow.$a(\"[full]\").forEach((e=>e.addEventListener(\"click\",(e=>this.__expnd(e)))))}connectedCallback(){}attributeChangedCallback(e,t,s){if(\"rating\"===e.toLowerCase())this._shadow.$a(\"bm-rating\").forEach((e=>e.setAttribute(\"value\",s)))}__expnd(e){let t=e.target.closest(\"[full]\");t&&t.toggleAttribute(\"selected\",1);let s=$c(\"bm-modal\");s.setAttribute(\"type\",\"fullgallery\"),s.rooter.render(this._shadow.$a(\"[full]\")),document.body.appendChild(s),s.show(),s.addEventListener(\"close\",(e=>s.remove())),t&&t.toggleAttribute(\"selected\",0)}}Object.defineProperty(bmReviewElement,\"observedAttributes\",{get:()=>[\"rating\"]});"},"bm-search-panel":{"stylesheet":":host{position:relative;z-index:5}:host([expanded]){z-index:10000}:host form{display:flex;width:100%;height:100%;align-items:flex-start;justify-content:flex-start;position:relative;z-index:10005}:host form input[type=text]{width:calc(100% - 102px);background:var(--background-input-field);color:var(--color-default);font:var(--font-default);font-size:var(--font-size-header-search);font-weight:500;border:2px solid var(--background-input-field);height:calc(100% - 4px);padding:0 0 0 20px;border-top-left-radius:5px;border-bottom-left-radius:5px;border-right:none;outline:0}:host form input[type=text]:focus{border-color:var(--background-button-default)}:host form input[type=text]::placeholder{color:var(--color-input-placeholder);text-transform:uppercase;font-weight:500}button[bm-type=search]{height:100%;width:80px;border:none;border-top-right-radius:5px;border-bottom-right-radius:5px;cursor:pointer;background:var(--background-button-default) var(--ico-search-button) center center no-repeat}:host([expanded]) .overlay{position:fixed;left:0;top:0;width:100%;height:100%;background:red;z-index:10000;z-index:10000;background:var(--background-overlay);backdrop-filter:var(--background-filter);font:var(--font-modal-default)}.results{display:none;position:absolute;width:calc(100% + 200px);background:var(--background-default);z-index:10001;padding:20px 20px 0 20px;margin:-20px 0 0 -20px;border-radius:5px;max-height:calc(100vh - 120px);overflow:auto;padding-top:60px}:host([expanded]) .results{display:block}:host([expanded]) .results:empty{padding-top:40px;padding-bottom:90px}:host([expanded]) .results:empty::after{position:absolute;left:0;bottom:20px;text-align:center;width:100%;content:\"Ничего не найдено\";color:var(--color-texts-grey);font-size:.8em}:host([expanded][preloader]) .results{padding-bottom:30px}:host([expanded][preloader]) .results:empty::after{content:\"\"}:host([expanded]) form::before{position:absolute;left:0;top:-20px;width:100%;height:20px;background:var(--background-default);content:\"\"}:host([expanded]) .results>div:not(.top-row){display:flex;padding-top:30px;align-items:flex-start;justify-content:flex-start;flex-shrink:0}:host([expanded]) .results>div:not(.top-row) .caption{width:120px;padding-right:15px;padding-top:6px;font:var(--font-search-results-header)}:host([expanded]) .results>div.top-row{display:grid;grid-template-columns:1fr 1fr 1fr;margin:40px 0 0 0;column-gap:15px}:host([expanded]) .results>div.top-row>div .caption{font:var(--font-search-results-header);padding-bottom:8px}:host([expanded]) .results>div.top-row>div:first-of-type .caption{padding-left:20px}:host([preloader]) .results:empty{background:var(--background-default) var(--preloader) center calc(100% - 20px) no-repeat;background-size:20px;padding-top:110px}:host([preloader]) .results:not(:empty)::before{position:absolute;left:20px;top:75px;background:var(--background-default) var(--preloader) center center no-repeat;background-size:contain;width:20px;height:20px;content:\"\";z-index:20}:host([expanded]) .results ul{list-style:none;margin:0;padding:0;font:var(--font-texts)}:host([expanded]) .results ul a{text-decoration:none;color:var(--color-default);display:inline-block;padding:2px 0}:host([expanded]) .results .top-row ul a{padding:0;margin:4px 0;font:var(--font-search-results-items)}:host([expanded]) .results .top-row div:first-of-type ul a{background:transparent var(--ico-search-grey) left top no-repeat;background-size:15px;padding-left:20px}:host([expanded]) .results ul a:hover{color:var(--color-hover-link)}form input[type=text]+a.reset{display:none}:host([expanded]) form input[type=text]+a.reset{background:transparent var(--ico-reset-button) center center no-repeat;display:block;position:absolute;right:90px;top:0;height:100%;width:50px}:host([expanded]) form input[type=text]~a.reset~a[bm-type]{right:130px}form a[bm-type]{display:block;position:absolute;right:90px;height:100%;width:50px;top:0;background:transparent center center no-repeat;background-size:30px;border:none}:host([qr]) form a[bm-type=qr]{background-image:var(--ico-qr)}form a[bm-type=to-basket]{background-image:var(--ico-basket-add-blue);display:none}:host([expanded]) .results article h3{display:flex;align-items:center;justify-content:flex-start;font:var(--font-search-results-header)}:host([expanded]) .results article h3[hidden]{display:none}:host([expanded]) .results article h3>span::after{display:inline-block;width:16px;height:16px;vertical-align:middle;content:\"\";margin-left:4px;background:transparent var(--ico-full-arrow-right-dark) center center no-repeat;background-size:contain}:host([expanded]) .results article h3 bm-toggle{position:relative;top:-3px}:host([expanded]) .results bm-items-roller{padding-bottom:0;margin-bottom:12px;margin-right:-20px}:host([expanded]) .results .-goods>[toggled]{display:none!important}:host([expanded]) .results .-buttons{position:sticky;bottom:-1px;z-index:10;background:var(--background-default);display:flex;align-items:center;justify-content:space-around;padding:15px 0;margin-right:-20px}:host([expanded]) .results .-buttons button{font:var(--font-button-default);text-transform:uppercase;border:none;border-radius:4px;background:var(--background-button-default);color:var(--color-button-default);padding:0 20px;cursor:pointer}:host([expanded]) .results .goods-by-titles ul{display:grid;gap:4px;grid-template-columns:repeat(1,1fr);font:var(--font-search-results-items)}@media screen and (max-width:1279px){:host form input[type=text]{width:calc(100% - 80px)}button[bm-type=search]{width:60px}:host([expanded]) form input[type=text]+a.reset{right:60px}:host([preloader]) .results:not(:empty)::before{right:20px;left:auto}form a[bm-type]{right:60px}:host([expanded]) form input[type=text]~a.reset~a[bm-type]{right:100px}}@media screen and (max-width:747px){:host([expanded]) .results>div{flex-direction:column;padding-top:12px}:host([expanded]) form input[type=text]+a.reset{right:65px;margin-top:5px}form a[bm-type]{right:65px}:host([expanded]) .results>div ul{padding-left:20px;padding-top:12px}:host([preloader]) .results:not(:empty)::before{right:20px;left:auto}:host([collapsed]) form{display:none}:host([collapsed]){background:transparent var(--ico-search-button-dark) center center no-repeat;background-size:22px;--warn-shift:0px}:host(:not([collapsed])) form{position:fixed;width:calc(100vw - 20px);height:40px;left:0;top:var(--warn-shift);padding:10px 10px 0 10px}form a[bm-type]{margin-top:5px}:host([expanded]) .results{position:fixed;left:0;top:var(--warn-shift);width:calc(100vw - 40px);max-height:75vh;margin:0}:host([expanded]) .results::before{content:\"\";position:fixed;left:10px;top:0;width:calc(100% - 20px);height:15px;background:var(--background-default);z-index:50}:host([expanded][with-goods]) .results{padding:20px!important;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}:host([expanded][with-goods]) .results>div.top-row>div:first-of-type .caption{padding-left:0}:host([expanded][with-goods]) .results>div ul{padding-left:0}:host([expanded][with-goods]) .results>div.top-row{display:flex;flex-direction:row-reverse}:host([expanded][with-goods]) .results>div ul{padding-top:0;padding-bottom:15px}:host([expanded][with-goods]) .results article h3 bm-toggle{display:none}:host([expanded]) .results bm-items-roller{display:none!important}:host([expanded]) .results .-goods>.goods-by-titles[toggled],:host([expanded]) .results .goods-by-titles{display:flex!important}:host([expanded]) .results .goods-by-titles ul{grid-template-columns:1fr;gap:10px}:host([expanded]) .results .top-row{order:10}:host([expanded]) .results .-goods{order:20}:host([expanded]) .results.product-search .top-row{order:20;margin:0!important}:host([expanded]) .results.product-search .-goods{order:10;margin:40px 0 0 0}:host([expanded]) .results .-buttons{order:30;width:100%;bottom:-20px}}","template":"<div class=\"overlay\"></div><div class=\"results\"></div><form method=\"get\"> <input type=\"text\" placeholder=\"\" name=\"q\" autocomplete=\"off\" value=\"\"><a href='#' class=\"reset\"></a><a href='#' bm-type=\"qr\"></a><a href='#' bm-type=\"to-basket\"></a> <button bm-type=\"search\"></button></form>","code":"class bmSearchPanelElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.input=this._shadow.$q('input[type=\"text\"]'),this.updater=!1,this.waiting=!1,this.results=!1,this.remItems={},this.input.addEventListener(\"input\",(t=>this.enterSearch(t))),this.input.addEventListener(\"focus\",(t=>this.enterSearch(t,1))),this._shadow.$q(\".overlay\").addEventListener(\"click\",(t=>{this.collapse()})),this._shadow.$q(\".reset\").addEventListener(\"click\",(t=>{this.input.value=\"\",this.collapse(),this.toggleAttribute(\"collapsed\",1)})),this._shadow.$q(\"input\").addEventListener(\"blur\",(t=>{setTimeout((()=>{\"\"==this._shadow.$q(\"input\").value.trim()&&this.toggleAttribute(\"collapsed\",1)}),5)})),this._shadow.$q('a[bm-type=\"qr\"]').addEventListener(\"click\",(t=>{if(!this.hasAttribute(\"qr\"))return;t.preventDefault();let e=$c(\"bm-modal\");return e.setAttribute(\"type\",\"getqr\"),document.body.appendChild(e),e.show(),e.addEventListener(\"qr:ready\",(t=>{t.detail.qr&&(location.href=this._shadow.$q(\"form\").getAttribute(\"action\")+`?${this._shadow.$q('form input[type=\"text\"]').getAttribute(\"name\")}=${encodeURIComponent(t.detail.qr)}`)})),!1}));const t=this._shadow.$q('a[bm-type=\"to-basket\"]');t&&t.addEventListener(\"click\",this.toBasketHandler.bind(this)),this.addEventListener(\"touchstart\",(t=>{this.hasAttribute(\"collapsed\")&&(this.removeAttribute(\"collapsed\"),document.body.$q(\"bm-warning\")?this.style.setProperty(\"--warn-shift\",`${document.body.$q(\"bm-warning\").getBoundingClientRect().height}px`):this.style.setProperty(\"--warn-shift\",\"0px\"))}),{passive:!0}),window.addEventListener(\"basket:update\",(t=>{t.detail.closeSearchPanel&&this._shadow.$q(\".reset\").click()}))}attributeChangedCallback(t,e,s){switch(t.toLowerCase()){case\"placeholder\":this.input.setAttribute(\"placeholder\",s);break;case\"value\":this.input.value=s;break;case\"action\":this._shadow.$q(\"form\").setAttribute(\"action\",s)}}toBasketHandler(t){if(!document.body.classList.contains(\"manager\"))return!1;if(t.preventDefault(),t.stopPropagation(),\"object\"==typeof this.remItems){let t=[],e=[],s=[];if(Object.entries(this.remItems).forEach((([i,a])=>{a?(s.push({itemId:i,count:1}),e.push(`№${i}`)):t.push(`№${i}`)})),t.length)return void(e.length?bmSite.confirm(`\\n                        Следующие артикулы нельзя добавить в корзину: ${t.join(\", \")}.\\n                        <br/>\\n                        Добавить остальные: ${e.join(\", \")}?\\n                    `,\"Да\",\"Нет\").then((()=>{this.manageAddingToBasket(s)})).catch((()=>{this.value=e.map((t=>t.replace(/\\D/g,\"\"))).join(\", \"),this.enterSearch()})):bmSite.alert(`Артикулы нельзя добавить в корзину: ${t.join(\", \")}`));this.manageAddingToBasket(s)}return!1}manageAddingToBasket(t){const e=document.body.$q('header button[bm-role=\"basket\"]');if(e&&!e.getAttribute(\"bm-sticked\"))return(new bmSite).basket.addMultiple(t),!1;if(0===t.length)alert(\"Нечего добавлять в корзину\");else{let e=$c(\"bm-modal\");e.setAttribute(\"type\",\"tobasket\"),e.setAttribute(\"items-collection\",JSON.stringify(t)),document.body.append(e),e.show()}}expand(){this.toggleAttribute(\"expanded\",1),document.firstElementChild.classList.add(\"-no-scroll\")}collapse(){this.toggleAttribute(\"expanded\",0),document.firstElementChild.classList.remove(\"-no-scroll\"),this.getInit()}getInit(){const t=this._shadow.$q('a[bm-type=\"qr\"]');this._shadow.$q('a[bm-type=\"to-basket\"]').style.display=\"none\",t.style.display=\"block\"}get expanded(){return this.hasAttribute(\"expanded\")}render(t){this.removeAttribute(\"with-goods\");let e=this._shadow.$q(\".results\");e.innerHTML=\"\",t.productSearch?e.classList.add(\"product-search\"):e.classList.remove(\"product-search\");for(let s=0;s<t.length;s++){let i=$c(\"div\");i.innerHTML=`<div class='caption'>${t[s].title}</div><ul class='items'></ul>`;for(let e=0;e<t[s].items.length;e++){let a=$c(\"li\");a.innerHTML=`<a href='${t[s].items[e].href}'>${t[s].items[e].title}</a>`,i.$q(\"ul\").appendChild(a)}e.appendChild(i)}}renderWithGoods(t){this.toggleAttribute(\"with-goods\",1);const e=t.multipleAdd&&document.body.classList.contains(\"manager\");let s=this._shadow.$q(\".results\");s.innerHTML=\"<div class='top-row'></div>\",t.productSearch?s.classList.add(\"product-search\"):s.classList.remove(\"product-search\");for(let e=0;e<t.items.length;e++){let i=$c(\"div\");i.innerHTML=`<div class='caption'>${t.items[e].title}</div><ul class='items'></ul>`;for(let s=0;s<t.items[e].items.length;s++){let a=$c(\"li\");a.innerHTML=`<a href='${t.items[e].items[s].href}'>${t.items[e].items[s].title}</a>`,i.$q(\"ul\").appendChild(a)}s.$q(\".top-row\").appendChild(i)}let i=$c(\"article\");i.classList.add(\"-goods\"),i.innerHTML=`<h3><span>Товары с выгодой</span><bm-toggle caption=\"галереей|списком\" elements=\"bm-items-roller,.goods-by-titles\"></bm-toggle></h3><bm-items-roller search bm-role=\"slide-goods\" type=\"catalogue-page\"><h4></h4><ul>${t.goods}</ul></bm-items-roller><div class='goods-by-titles' toggled></div>`;let a=$c(\"ul\"),r=i.$a(\"bm-items-roller ul li > * > a\");for(let t=0;t<r.length;t++){let e=$c(\"li\");e.append(r[t].cloneNode(1)),a.append(e)}i.$q(\".goods-by-titles\").append(a),s.append(i),void 0!==t.itemCellPreview&&(i.querySelector(\"h3\").toggleAttribute(\"hidden\",1),s.querySelector(\"bm-items-roller\").toggleAttribute(\"toggled\",!t.itemCellPreview),s.querySelector(\".goods-by-titles\").toggleAttribute(\"toggled\",t.itemCellPreview));let n=$c(\"article\");n.classList.add(\"-buttons\");for(let e=0;e<t.buttons.length;e++){let s=$c(\"button\");s.setAttribute(\"href\",t.buttons[e].href),s.textContent=t.buttons[e].text,n.append(s)}const{remainsItems:l}=t;if(l&&(this.remItems=l),e){n.innerHTML=\"\";const t=$c(\"button\");t.textContent=\"Добавить все в корзину\",t.addEventListener(\"click\",this.toBasketHandler.bind(this)),n.append(t),this._shadow.$q(\"form\").onsubmit=this.toBasketHandler.bind(this)}s.append(n),s.$q(\"bm-toggle\").queryShadow=this._shadow}enterSearch(t,e=!1){this.waiting&&clearTimeout(this.waiting),this.waiting=setTimeout((()=>this.search(t,e)),500)}search(t,e=!1){this.updater&&this.updater.abort();let s=this.input.value.trim();if(e&&(this._shadow.$q(\".results\").innerHTML=\"\"),!this.expanded&&s.length<3)return!1;this.expand(),this.updater=this.dispatcher.api.get(\"search:search\",{query:s},{preloader:this}),this.updater.then((t=>{if(this.getInit(),document.body.classList.contains(\"manager\")){const e=this._shadow.$q('a[bm-type=\"qr\"]'),s=this._shadow.$q('a[bm-type=\"to-basket\"]');t.multipleAdd?(e.style.display=\"none\",s.style.display=\"block\",s.setAttribute(\"multipleAdd\",!0)):(s.style.display=\"none\",s.setAttribute(\"multipleAdd\",!1),e.style.display=\"block\")}t.goods?this.renderWithGoods(t):this.render(t.items)})).catch((t=>{-2!=t.code&&console.log(\"can't fetch search\",t)}))}}Object.defineProperty(bmSearchPanelElement,\"observedAttributes\",{get:()=>[\"placeholder\",\"value\",\"action\"]});"},"bm-select":{"stylesheet":":host{position:relative;display:inline-block}:host([expanded]){z-index:10!important}.expander{position:relative;display:block;border:2px solid var(--color-input-border);height:46px;font:var(--font-header-icon);padding:0 30px 0 20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;border-radius:5px;background:var(--background-default) var(--ico-sel-marker) calc(100% - 16px) center no-repeat}:host([type=default]) .expander{text-transform:uppercase}:host([type=default][obligate][value='']) .expander::after{content:\" *\";display:inline-block;color:var(--color-error)}.expander:hover{border-color:var(--color-hover-link)}ul{position:absolute;left:0;top:100%;background:var(--background-default);color:var(--color-default);border-radius:5px;box-shadow:0 3px 6px rgba(0,0,0,.1);width:100%;max-height:275px;overflow:auto;list-style:none;margin:0;padding:0}:host(:not([expanded])) ul{display:none}:host([expanded]) .expander{border-color:var(--color-hover-link);background-image:var(--ico-sel-close)}ul bm-option,ul li{position:relative;border-bottom:1px solid var(--color-separator-line);cursor:pointer}ul bm-option:hover,ul bm-option[type=default][selected],ul li:hover{background-color:var(--background-input-field)}","template":"<div class=\"expander\"></div><ul></ul>","code":"class bmSelectElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.value=\"\",this._shadow.$q(\".expander\").addEventListener(\"click\",(t=>{this.toggleAttribute(\"expanded\"),document.body.$a(\"bm-select\").forEach((t=>{if(t==this)return!0;t.removeAttribute(\"expanded\")})),this.dispatcher.sendEvent(this.hasAttribute(\"expanded\")?\"expand\":\"collapse\",{global:0},this)})),this._shadow.$q(\"ul\").addEventListener(\"click\",(t=>{if(t.path||(t.path=t.composedPath()),t.path[0].hasAttribute(\"bm-id\"))return!0;this.removeAttribute(\"expanded\"),this.dispatcher.sendEvent(\"collapse\",{global:0},this)})),this.contentsObserver=new MutationObserver(((t,e)=>this.observer(t))),this.contentsObserver.observe(this,{childList:!0,subtree:!0,attributes:!0})}attributeChangedCallback(t,e,s){if(\"caption\"===t.toLowerCase())this._shadow.$q(\".expander\").innerHTML=s}connectedCallback(){this.render(),window.addEventListener(\"basket:update\",(t=>this.checkInBasket(t)))}disconnectedCallback(){window.removeEventListener(\"basket:update\",(t=>this.checkInBasket(t)))}checkInBasket(t){if(t.detail.items){this._shadow.$a(\"*[bm-id]\").forEach((e=>{e.toggleAttribute(\"in-basket\",void 0!==t.detail.items[e.getAttribute(\"bm-id\")])}))}}get info(){let t=this._shadow.$q(\"*[selected]\");return t?t.getAttribute(\"info\")||t.textContent:\"\"}setValue(t){let e=this.$q(`bm-option[value=\"${t}\"]`);e&&(this.$q(\"bm-option[selected]\").removeAttribute(\"selected\"),e.toggleAttribute(\"selected\",1))}render(){this.type||(this.type=\"default\"),this._shadow.$q(\"ul\").innerHTML=this.innerHTML;let t=this._shadow.$q(\"ul *[selected]\");t&&(this.setAttribute(\"caption\",t.innerHTML),this.value=t.value||t.textContent),this._shadow.$a(\"bm-option\").forEach((t=>{t.addEventListener(\"set\",(t=>{if(t.target.hasAttribute(\"bm-id\"))return!0;this._shadow.$a(\"bm-option\").forEach((t=>t.toggleAttribute(\"selected\",!1))),t.target.toggleAttribute(\"selected\",!0),this.setAttribute(\"caption\",t.target.innerHTML),this.value=t.target.value||t.target.textContent,this.dispatcher.sendEvent(\"change\",{global:0},this)}))}))}_setValue(t){}observer(t){for(let e=0;e<t.length;e++){let s=t[e];s.target;switch(s.type){case\"attributes\":break;case\"childList\":this.render()}}}}Object.defineProperty(bmSelectElement,\"observedAttributes\",{get:()=>[\"caption\",\"type\",\"value\"]});"},"bm-spoiler":{"stylesheet":".expander{text-decoration:none;display:inline-block;font:var(--font-texts);padding-right:22px;background:transparent var(--ico-catalogue-selections-more) right center no-repeat;line-height:inherit;color:var(--color-hover-link);cursor:pointer}.expander:hover{color:var(--color-hover-link)}.content{position:relative;overflow:hidden;height:0}:host([shown]) .content{height:auto;display:contents}","template":"<span class=\"expander\"></span><div class=\"content\"><slot></slot></div>","code":"class bmSpoilerElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._titleExpanded=this._titleCollapsed=\"\",this._expanded=!1,this._shadow.$q(\".expander\").addEventListener(\"click\",(e=>{this.toggleAttribute(\"shown\"),window.dispatchEvent(new Event(\"resize\"))}))}attributeChangedCallback(e,t,s){switch(e.toLowerCase()){case\"expander\":let[e,t]=s?s.split(\"|\"):[\"\",\"\"];this._titleExpanded=t,this._titleCollapsed=e,this._shadow.$q(\".expander\").innerHTML=this._expanded?this._titleExpanded:this._titleCollapsed;break;case\"shown\":this._expanded=Boolean(null!==s),this._shadow.$q(\".expander\").innerHTML=this._expanded?this._titleExpanded:this._titleCollapsed,this._expanded?this._shadow.append(this._shadow.$q(\".expander\")):this._shadow.prepend(this._shadow.$q(\".expander\"))}}}Object.defineProperty(bmSpoilerElement,\"observedAttributes\",{get:()=>[\"expander\",\"shown\"]});"},"bm-star":{"stylesheet":":host{display:inline-block;vertical-align:middle;width:32px;height:32px;background:var(--background-default);cursor:default;font:var(--font-catalogue-menu-default);color:var(--color-button-default)}:host([info]){cursor:pointer}.star-container{background-color:var(--color-item-disabled);display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;-webkit-mask-image:var(--ico-star);-webkit-mask-size:contain;mask-image:var(--ico-star);mask-size:contain}:host([value='1']) .star-container{background-color:#3dabff}:host([value='2']) .star-container{background-color:#469ff9}:host([value='3']) .star-container{background-color:#5192f1}:host([value='4']) .star-container{background-color:#5e84ea}:host([value='5']) .star-container{background-color:#6a73e1}:host([value='6']) .star-container{background-color:#7b5fd6}:host([value='7']) .star-container{background-color:#894ecd}:host([value='8']) .star-container{background-color:#993bc3}:host([value='9']) .star-container{background-color:#a72ab9}:host([value='10']) .star-container{background-color:#b31ab1}:host([value='11']) .star-container{background-color:#be0dab}:host([value='12']) .star-container{background-color:#c801a3}:host([value='В']) .star-container{background-color:#9bff75;color:#000}:host([value='100']) .star-container{background-color:#9bff75;color:#000}:host([value='101']) .star-container{background-color:#9bff75;color:#000}","template":"<div class=\"star-container\"></div>","code":"class bmStarElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.addEventListener(\"click\",this.showModal)}attributeChangedCallback(t,e,n){if(\"value\"===t.toLowerCase())this._shadow.$q(\".star-container\").innerText=String(n)}showModal(){let t=JSON.parse(this.getAttribute(\"info\"));if(!t)return!1;let e=$c(\"bm-modal\");e.setAttribute(\"type\",\"info\"),document.body.appendChild(e),e.addEventListener(\"close\",(t=>{e.remove()}),{once:!0});let n=e.windowElement.$q(\".window-content\"),i=$c(\"h3\"),a=$c(\"div\"),s=$c(\"div\");for(var d in i.classList.add(\"info\"),a.classList.add(\"rating-table\"),s.classList.add(\"rating-footer\"),t.table){var r=$c(\"div\");r.classList.add(\"line\"),r.innerHTML=`<bm-star value=\"${d}\"></bm-star><em>${t.table[d]}</em>`,a.appendChild(r)}i.innerHTML=t.intro,s.innerHTML=`<button bm-type=\"default\">${t.button}</button>`,n.appendChild(i),n.appendChild(a),n.appendChild(s),s.$q(\"button\").addEventListener(\"click\",(t=>{e.close(!0)})),e.show()}}Object.defineProperty(bmStarElement,\"observedAttributes\",{get:()=>[\"value\"]});"},"bm-tab-view":{"stylesheet":":host>ul{position:relative;display:flex;align-items:flex-end;justify-content:flex-start;list-style:none;margin:30px 10px 0 0;padding:0;font:var(--font-tabs-title);color:var(--color-item-disabled);border-bottom:1px solid var(--color-separator-line);flex-wrap:wrap}:host>ul li{margin-right:20px;padding:5px 0 12px 0;position:relative;cursor:pointer}:host>ul li[selected]{color:var(--color-hover-link)}:host>ul li[selected]::before{content:\"\";height:0;border-bottom:5px solid var(--color-hover-link);position:absolute;bottom:-1px;left:0;width:100%}@media screen and (max-width:747px){:host>ul{display:none}}","template":"<ul class=\"tabs\"></ul><slot></slot>","code":"class bmTabViewElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.shown=-1,this.render()&&this.show(this._shadow.$q(\"li[selected]\").dataset.ix)}attributeChangedCallback(t,e,s){t.toLowerCase()}render(){this._shadow.$q(\"ul\").innerHTML=\"\";let t=Array.from(this.children);if(0==t.length)return!1;let e=1;return t.forEach((t=>{if(t.classList.contains(\"-expander\"))return!0;let s=$c(\"li\");t.hasAttribute(\"selected\")&&s.toggleAttribute(\"selected\",1),s.textContent=t.getAttribute(\"caption\")||\"Tab\",s.connected=t,this._shadow.$q(\"ul\").appendChild(s);let i=$c(\"span\");i.classList.add(\"-expander\"),i.dataset.ix=e,t.dataset.ix=e,s.dataset.ix=e++,i.textContent=s.textContent,t.parentNode.insertBefore(i,t),s.addEventListener(\"click\",(t=>this.show(t.target.dataset.ix))),i.addEventListener(\"click\",(t=>this.show(t.target.dataset.ix)))})),this._shadow.$q(\"li[selected\")||this._shadow.$q(\"li\").toggleAttribute(\"selected\",1),!0}showByName(t,e=!1){let s=this.$q(`[name=\"${t}\"]`);if(s){let t=s.dataset.ix;this.show(t,e)}}show(t,e=!1){if(this.shown==t)return!0;this._shadow.$q(\"li[selected]\").removeAttribute(\"selected\");let s=this._shadow.$q(`li[data-ix=\"${t}\"]`);Array.from(this.children).forEach((e=>{if(e.classList.contains(\"-expander\"))return!0;e.toggleAttribute(\"selected\",e.dataset.ix==t),e.previousSibling.classList.toggle(\"expanded\",e.dataset.ix==t)})),s.toggleAttribute(\"selected\",1);let i=this.getBoundingClientRect();(i.top<0||e)&&bmSite.scrollTo(window.currentScrollY+i.top-20),this.dispatcher.sendEvent(\"change\",{global:0,tab:t},this)}}Object.defineProperty(bmTabViewElement,\"observedAttributes\",{get:()=>[]});"},"bm-toggle":{"stylesheet":":host{display:inline-block;height:40px;line-height:40px;margin-left:8px}:host>div{position:relative;border:1px solid var(--color-disabled-direct);border-radius:20px;display:flex;align-items:center;justify-content:space-around;cursor:pointer}:host>div::before{content:\"\";position:absolute;width:100px;height:100%;left:0;z-index:5;border-radius:19px;background:var(--color-disabled-direct);transition:all .15s ease}:host>div>span{width:100px;pointer-events:none;text-align:center;white-space:nowrap;position:relative;z-index:10;color:var(--color-hover-link)}:host([on])>div::before{left:calc(50% + 1px)}","template":"<div part=\"root\"><span></span><span></span></div>","code":"class bmToggleElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.els=!1,this.caps=[\"\",\"\"],this.queryShadow=!1,\"ontouchstart\"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?this.addEventListener(\"touchstart\",(t=>this.changeEvent(t)),{passive:!0}):this.addEventListener(\"mousedown\",(t=>this.changeEvent(t)))}changeEvent(t){this.toggleAttribute(\"on\"),this.dispatcher.sendEvent(\"change\",{global:0},this),this.els&&(this.queryShadow?this.queryShadow.$a(this.els).forEach((t=>t.toggleAttribute(\"toggled\"))):$a(this.els).forEach((t=>t.toggleAttribute(\"toggled\"))),this.dispatcher.sendEvent(\"toggle\",{},this))}connectedCallback(){}attributeChangedCallback(t,e,s){switch(t.toLowerCase()){case\"caption\":this.caps=s?s.split(\"|\"):\"|\",this._shadow.querySelectorAll(\"div>span\").forEach(((t,e)=>t.textContent=this.caps[e]));break;case\"elements\":this.els=s||!1}}}Object.defineProperty(bmToggleElement,\"observedAttributes\",{get:()=>[\"caption\",\"elements\"]});"},"bm-uploader":{"stylesheet":":host{display:block;width:100%;border:2px dashed var(--color-input-border);border-radius:10px;margin-bottom:20px;background:var(--background-default);transition:all var(--duration-expand) ease}.field{position:relative;display:block;box-sizing:border-box;width:100%;padding:40px 0;text-align:center}.header{font:var(--font-form-title);color:var(--color-default);text-transform:uppercase;padding:0 40px}.field.-drag:not(.-error) .header{color:var(--color-file-accepted)}.info{font:var(--font-form-subtitle);color:var(--color-second-links);padding:0 40px}.field.-drag.-error .info{color:var(--color-file-not-accepted)}input[type=file]{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;cursor:pointer}:host(:hover){border-color:var(--color-input-border-focus);background:var(--background-file-hover)}:host(.-drag){border-color:var(--color-input-border-focus);background-color:var(--background-file-accepted)}:host(.-error.-drag){border-color:var(--color-input-border-focus);background-color:var(--background-file-not-accepted)}ul.files{position:relative;display:block;margin:0;padding:20px 20px 0 20px;text-align:left;pointer-events:none;margin-bottom:-20px}ul.files:empty{padding:0;margin-bottom:0}ul.files li{list-style:none;display:inline-flex;align-items:center;justify-content:flex-start;white-space:nowrap;padding:5px 0 5px 10px;margin:0 10px 10px 0;border-radius:5px;background-color:var(--background-button-second);color:var(--color-default);cursor:default;pointer-events:all}ul.files li>span{max-width:120px;overflow:hidden;text-overflow:ellipsis;pointer-events:none;user-select:none}ul.files li>em{font-style:inherit;pointer-events:none;user-select:none}ul.files li>a.-remove{width:30px;height:30px;margin-left:15px;background:transparent var(--ico-sel-close) center center no-repeat;background-size:14px}ul.files li.-error{background:var(--background-file-not-accepted);color:var(--color-file-not-accepted);text-decoration:line-through}","template":"<div class=\"field\"><div class=\"header\"></div><div class=\"info\"></div> <input type=\"file\"><ul class=\"files\"></ul></div>","code":"class bmUploaderElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.field=this._shadow.$q(\".field\"),this.fileList=this._shadow.$q(\".files\"),this.field.addEventListener(\"drop\",(e=>this.acceptFile(e))),this.field.addEventListener(\"dragover\",(e=>this.checkDragFiles(e)),{passive:!0}),this.field.addEventListener(\"dragleave\",(e=>this.dragEnd(e)),{passive:!0}),this.field.$q(\"input\").addEventListener(\"change\",(e=>{this.acceptFile(e.target.files),e.target.value=\"\"})),this._files=[],this._filesBin=[],this.postType=\"\"}connectedCallback(){this.postType=this.dataset.postType||\"json\"}get files(){let e=[];return this._files.forEach((t=>{e.push({fileName:t.filename,size:t.size,mimeType:t.mime,contents:t.contents})})),e}get value(){return 0==this.files.length?\"\":\"formdata\"===this.postType?this._filesBin:JSON.stringify(this.files)}attributeChangedCallback(e,t,i){switch(e.toLowerCase()){case\"caption\":this._shadow.$q(\".header\").innerHTML=null==i?\"\":i;break;case\"info\":this._shadow.$q(\".info\").innerHTML=null==i?\"\":i;break;case\"multiple\":this._shadow.$q(\"input\").toggleAttribute(\"multiple\",null!=i);break;case\"accept\":this.types=null!=i?i.toLowerCase().split(\",\"):\"*/*\"}}acceptFile(e){e.preventDefault&&e.preventDefault();let t=e.dataTransfer?e.dataTransfer.files:e;for(let e=0;e<t.length;e++)this.readFile(t[e]);this.classList.remove(\"-drag\",\"-error\")}addItem(e,t=!1,i=!1){let s=$c(\"li\"),a=`<span>${e.replace(/^(.*)\\.\\w*$/,\"$1\")}</span><em>.${e.replace(/^.*\\.(\\w*)$/,\"$1\")}</em> <a href='#' class='-remove'></a>`;return t&&s.classList.add(\"-error\"),s.innerHTML=a,s.dataset.key=i||null,this.fileList.appendChild(s),s.$q(\".-remove\").addEventListener(\"click\",(e=>{e.preventDefault();for(let t=0;t<this._files.length;t++)if(e.target.parentNode.dataset.key==this._files[t].domItem){this._files.splice(t,1),\"formdata\"===this.postType&&this._filesBin.splice(t,1);break}return e.target.parentNode.remove(),window.dispatchEvent(new Event(\"resize\")),!1})),window.dispatchEvent(new Event(\"resize\")),s}async readFile(e){return new Promise(((t,i)=>{let s=parseInt(this.maxSize),a=`file-${e.name}-${e.size}`;if(isNaN(s)&&(s=1/0),-1==this.types.indexOf(e.name.toLowerCase().replace(/^.*\\.(\\w*)$/,\"$1\"))||s<e.size)return this.addItem(e.name,!0,a),t();if(this.fileList.$q(`li[data-key=\"${a}\"]`))return this.fileList.appendChild(this.fileList.$q(`li[data-key=\"${a}\"]`)),t();var l=new FileReader;l.onload=async i=>{let s=i.target.result.replace(/.*?\\;base64\\,/,\"\"),l=this.addItem(e.name,!1,a);this._files.push({filename:e.name,size:e.size,domItem:a,mime:e.type,contents:s}),l.file=this._files[this._files.length-1],\"formdata\"===this.postType&&this._filesBin.push(e),t()},l.readAsDataURL(e)}))}dragEnd(e){this.classList.remove(\"-drag\",\"-error\")}checkDragFiles(e){this.classList.add(\"-drag\")}}Object.defineProperty(bmUploaderElement,\"observedAttributes\",{get:()=>[\"caption\",\"info\",\"max-size\",\"multiple\",\"accept\"]});"},"bm-video-player":{"stylesheet":":host{position:relative;display:inline-block}img{visibility:hidden}img[src]{visibility:visible;position:absolute;left:0;top:0;width:100%;height:100%;cursor:pointer;object-fit:cover}video{display:none}video::-webkit-media-controls-fullscreen-button{display:none!important}button.close{display:none}:host(.-ios-fullscreen){position:fixed;left:0;top:0;width:100vw!important;height:100vh!important;z-index:50000;background:#000}:host(:fullscreen){width:100vw!important;height:100vh!important;border:none!important}:host(.-ios-fullscreen){width:100vw!important;height:100vh!important;border:none!important}:host(:fullscreen) img{display:none}:host(.-ios-fullscreen) img{display:none!important}:host(:fullscreen) video{display:block;position:absolute;left:0;top:0;width:100vw;height:100vh;z-index:10;object-fit:contain}:host(.-ios-fullscreen) video{display:block;position:absolute;left:0;top:0;width:100vw;height:100vh;z-index:10;object-fit:contain}:host(:fullscreen) button.close{position:absolute;z-index:30;right:5px;top:5px;width:40px;height:40px;border-radius:50%;background:var(--background-button-default);color:var(--color-button-default);display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #fff;opacity:1;transition:opacity 1s ease;transition-delay:0s}:host(:fullscreen) button.close.-hidden{opacity:0;transition-delay:3s}:host(.-ios-fullscreen) button.close{position:absolute;z-index:30;right:5px;top:5px;width:38px;height:38px;border-radius:50%;background:var(--background-button-default);color:var(--color-button-default);display:flex;align-items:center;justify-content:center;cursor:pointer;border:none}:host(:fullscreen) button.close::before{content:\"✕\";font-size:18px}:host(.-ios-fullscreen) button.close::before{content:\"✕\";font-size:20px;margin-top:-2px}:host([fill]:fullscreen) video{object-fit:contain}:host(.-ios-fullscreen[fill]) video{object-fit:fill;overflow-y:hidden}:host(:fullscreen) slot{display:none}:host(.-ios-fullscreen) slot{display:none}","template":"<img class=\"poster\"><video playsinline><source type=\"video/mp4\"></video><slot></slot> <button class=\"close\"></button>","code":"class bmVideoPlayerElement extends HTMLElement{constructor(){super(),this.sources={v:!1,h:!1},this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this.expanded=!1,this._orientation=!1,this.addEventListener(\"click\",(e=>{this.expanded||this.showFullScreen(),this._shadow.$q(\".close\").classList.remove(\"-hidden\"),setTimeout((()=>{this._shadow.$q(\".close\").classList.add(\"-hidden\")}),3e3)})),this.addEventListener(\"touchstart\",(e=>{this._shadow.$q(\".close\").classList.remove(\"-hidden\"),setTimeout((()=>{this._shadow.$q(\".close\").classList.add(\"-hidden\")}),3e3)}),{passive:!0}),this._shadow.$q(\"button.close\").addEventListener(\"click\",(e=>(this.expanded=!1,e.stopPropagation(),this.classList.contains(\"-ios-fullscreen\")?(this.classList.remove(\"-ios-fullscreen\"),this._shadow.$q(\"video\").pause()):document.exitFullscreen(),!1))),document.addEventListener(\"fullscreenchange\",(e=>{document.fullscreenElement||(this._shadow.$q(\"video\").pause(),this.expanded=!1)})),this._shadow.$q(\"video\").addEventListener(\"dblclick\",(e=>(e.preventDefault(),!1)))}showFullScreen(){if(this.expanded=!0,void 0===this.requestFullscreen)return this.classList.add(\"-ios-fullscreen\"),setTimeout((()=>{this._shadow.$q(\"video\").currentTime=0,this._shadow.$q(\"video\").play()}),10),!1;this.requestFullscreen().then((e=>{this._orientation&&screen.orientation.lock(this._orientation).catch((e=>{})),this._shadow.$q(\"video\").currentTime=0,this._shadow.$q(\"video\").play(),this._shadow.$q(\".close\").classList.add(\"-hidden\")})).catch((e=>{alert(e)}))}attributeChangedCallback(e,s,t){const i=()=>{let e=window.innerWidth/window.innerHeight>1?\"h\":\"v\";this._shadow.$a(\"video source\").forEach((e=>e.remove())),this._shadow.$q(\"video\").innerHTML=`<source type=\"video/mp4\" src=\"${this.sources[e]}\">`};switch(e.toLowerCase()){case\"poster\":t?this._shadow.$q(\"img.poster\").setAttribute(\"src\",t):(this._shadow.$q(\"img.poster\").remove(),this.style.height=0);break;case\"source-v\":this.sources.v=t,i();break;case\"source-h\":this.sources.h=t,i();break;case\"source\":this.sources.h=t,this.sources.v=t,i();break;case\"controls\":this._shadow.$q(\"video\").toggleAttribute(\"controls\",this.hasAttribute(\"controls\"));break;case\"orientation\":this._orientation=t}}}Object.defineProperty(bmVideoPlayerElement,\"observedAttributes\",{get:()=>[\"source-v\",\"source-h\",\"poster\",\"source\",\"controls\",\"orientation\"]});"},"bm-warning":{"stylesheet":":host{color:var(--color-button-default)!important}:host[hidden]{display:none}:host([center]) [caption]{text-align:center}a{color:#fff}button{position:absolute;right:20px;top:calc(50% - 23px);width:45px;height:45px;background:var(--background-button-default) var(--ico-close) center center no-repeat;border:none;cursor:pointer;transition:.25s ease all;transform:scale(1)}button:hover{transform:scale(1.3)}","template":"<div caption></div> <button class=\"close_warning\" close></button>","code":"class bmWarningElement extends HTMLElement{constructor(){super(),this.srcHg=0,this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._shadow.$q(\"[caption]\").innerHTML=this.innerHTML,this.innerHTML=\"\"}connectedCallback(){this._shadow.$a(\".close_warning\").forEach((e=>{e.addEventListener(\"click\",(t=>{$q(\"body>header\").style.top=\"0\";return null!==e.getAttribute(\"close\")&&set_cookie(\"hide_header_info\",1),this.remove(),$a(\"bm-search-panel\").forEach((e=>e.toggleAttribute(\"collapsed\",1))),$a(\"bm-search-panel\").forEach((e=>e.collapse())),$q(\"bm-warning + header\")&&$q(\"bm-warning + header\").style.setProperty(\"--banner-padding\",0),window.dispatchEvent(new Event(\"resize\")),!0}))}));const e=this.getBoundingClientRect().height;$q(\"body>header\").style.top=`${e}px`,this.srcHg=$q(\".-catalogue-menu-overlay\")?$q(\".-catalogue-menu-overlay\").style.height:window.innerHeight}attributeChangedCallback(e,t,n){e.toLowerCase()}}Object.defineProperty(bmWarningElement,\"observedAttributes\",{get:()=>[]});"},"bm-window-vitrina":{"stylesheet":":host(:not([shown])){pointer-events:none;opacity:0}:host([shown]){opacity:1}.dialog{display:block;background:#fff;border-radius:8px;color:#000;width:calc(100% - 36px);margin:18px;box-sizing:border-box;padding:50px 18px 26px;position:relative}.close{position:absolute;right:12px;top:13px;cursor:pointer;display:none}:host([close-button]) .close{display:block}.icon{display:block;margin:auto;margin-bottom:20px}.icon-and-content{text-align:center;font-weight:600;font-size:16px;line-height:22px;color:#101110;margin-bottom:24px}:host([vertical-buttons]) ::slotted(button:not(:last-child)){margin-bottom:10px}.action-buttons{display:flex}.action-buttons-wrapper{overflow-x:hidden;overflow-y:auto;display:flex;width:100%;gap:7px}:host .action-buttons .button{flex-grow:1;width:calc(50% - 7px)}:host([vertical-buttons]) .action-buttons .button{width:100%}:host .action-buttons .button.one{width:100%;flex-shrink:0}:host([vertical-buttons]) .action-buttons-wrapper{flex-direction:column}:host .action-buttons .button1{margin-right:7px}:host(:not([vertical-buttons])) .action-buttons .button1{margin-right:0}:host(:not([icon])) .dialog{padding-top:28px}:host(:not([icon])) .icon-and-content .icon{margin:0}.action-buttons .button.one{display:none}.action-buttons[many] .button.one,.action-buttons[one] .button.one{display:block}.action-buttons[many] div.button1,.action-buttons[many] div.button2,.action-buttons[many] div.button3,.action-buttons[one] div.button1,.action-buttons[one] div.button2,.action-buttons[one] div.button3{display:none}.action-buttons[many] .button.one slot[name=button]::slotted(bm-button){margin-bottom:10px}.button.one{max-height:305px}","template":"<bm-modal-background><div class=\"dialog\" slot=\"content\"> <img class=\"close\" width=\"18px\" height=\"18px\" src=\"/components/bm-window-vitrina/images/x.svg\" alt=\"close button\"/><div class=\"icon-and-content\"> <img class=\"icon\"/><slot name=\"content\"></slot></div><div class=\"action-buttons\"><div class=\"action-buttons-wrapper\"><div class=\"button button1\"><slot name=\"button1\"></slot></div><div class=\"button button2\"><slot name=\"button2\"></slot></div><div class=\"button button3\"><slot name=\"button3\"></slot></div><div class=\"button one\"><slot name=\"button\"></slot></div></div></div></div></bm-modal-background>","code":"class bmWindowVitrinaElement extends HTMLElement{constructor(){super(),this.dispatcher=new bmCoreDispatcher,this.dispatcher.fillComponent(this),this._initVariables(),this._addEventListeners(),this._firstRender()}_initVariables(){const t=\"/components/bm-window-vitrina/images/icons/\";this.iconType={\"!\":`${t}!.svg`,\"?\":`${t}question.svg`,x:`${t}x.svg`,end:`${t}end.svg`,print:`${t}print.svg`},this.attr={icon:this.getAttribute(\"icon\"),hasCloseButton:this.hasAttribute(\"close-button\")},this.el={actionButtons:this._shadow.$q(\".action-buttons\"),closeButton:this._shadow.$q(\".close\"),icon:this._shadow.$q(\".icon\"),button1:this._shadow.$q(\"div.button.button1\"),button2:this._shadow.$q(\"div.button.button2\"),one:this._shadow.$q(\"div.button.one\")},this.lightDOM={actionButtons:this.$q(\".action-buttons\"),buttons:()=>this.$a(\"bm-button[slot]\"),manyButtons:()=>this.$a('[slot=\"button\"]')},this._customActions={handleCloseButtonClick:null},this.customEvents={buttonClicked:t=>new CustomEvent(\"button:clicked\",{detail:t})}}setCAHandleCloseButtonClick(t){this._customActions.handleCloseButtonClick=t}_addEventListeners(){this.attr.hasCloseButton&&this.el.closeButton.addEventListener(\"click\",this.handleCloseButtonClick),this.addClickEventToButtons()}addClickEventToButtons(){[...this.lightDOM.buttons()].forEach(((t,i)=>{t.addEventListener(\"click\",(()=>{this.dispatchEvent(this.customEvents.buttonClicked({button:t.getAttribute(\"slot\"),payload:t.dataset.payload,index:i,htmlButton:t}))}))}))}handleCloseButtonClick=()=>{this.hide()};_firstRender(){}connectedCallback(){}show(t){if(1===this.lightDOM.buttons().length&&this.el.actionButtons.setAttribute(\"one\",\"\"),this.lightDOM.manyButtons().length>1&&this.el.actionButtons.setAttribute(\"many\",\"\"),t)for(let i in t)this.$q(`.${i}`).innerHTML=t[i];return this.setAttribute(\"shown\",\"\"),new Promise(((t,i)=>{this.addEventListener(\"button:clicked\",(i=>{t(i.detail),this.hide()}))}))}hide(){this.removeAttribute(\"shown\")}attributeChangedCallback(t,i,s){if(\"icon\"===t.toLowerCase())this._applyIcon(s)}_applyIcon(t){const i=this.iconType[t];i?this.el.icon.setAttribute(\"src\",i):(t||t.length)&&this.el.icon.setAttribute(\"src\",t)}}Object.defineProperty(bmWindowVitrinaElement,\"observedAttributes\",{get:()=>[\"icon\"]});"}}