1window.OnlineBookingWidgetAssetVersion="4";function OnlineBookingWidget({project_id:t,widget_id:e,locale:o=null}){this.project_id=t,this.widget_id=e,this.locale=o,this.absolut_button_father_class="sb_absolute_online_booking_button",this.class_open_form=null,this.show_absolute_button=!1,this.button_size="middle",this.widget_button_background_color="#1a53c6",this.widget_icon_right="5",this.widget_icon_bottom="10",this.widget_status="Stop";const i={"salebot.zmservice.ru":"https://salebot.zmservice.ru","127.0.0.1":"https://salebot.zmservice.ru",localhost:"http://localhost:3000","s.mavibot.ai":"https://s.mavibot.ai"},s=window.MAVI_PRODUCTION_JS?"https://mavibot.ai":"https://salebot.pro",n=i[location.hostname]||s;this.getModal=()=>{let t=document.createElement("div");t.classList.add("salebot-modal-bg"),t.innerHTML=`<div class="widget_loader">\n <svg class="form_svg_loading" id="button_spinner" width="36" height="36" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M14.9459 8C15.5281 8 16.0071 7.52605 15.9307 6.94896C15.7751 5.77515 15.3602 4.64591 14.7109 3.64529C13.8696 2.34872 12.6707 1.32364 11.2591 0.693967C9.84758 0.0642966 8.28385 -0.142995 6.75701 0.0971545C5.23016 0.337304 3.80557 1.01461 2.65547 2.04719C1.50537 3.07976 0.679016 4.42339 0.27631 5.91563C-0.126396 7.40786 -0.0882074 8.9848 0.386258 10.4558C0.860724 11.9268 1.75115 13.2288 2.94988 14.2045C3.875 14.9575 4.95316 15.4913 6.10348 15.772C6.66903 15.91 7.19168 15.4846 7.25418 14.9058C7.31669 14.327 6.89347 13.8162 6.33505 13.6517C5.58858 13.4318 4.88961 13.0652 4.28067 12.5695C3.39783 11.851 2.74204 10.892 2.39261 9.80865C2.04317 8.72529 2.01504 7.5639 2.31163 6.46489C2.60822 5.36589 3.21681 4.37633 4.06384 3.61585C4.91087 2.85538 5.96006 2.35655 7.08456 2.17969C8.20905 2.00282 9.36071 2.15549 10.4003 2.61923C11.4399 3.08297 12.3229 3.83793 12.9425 4.79283C13.3699 5.45146 13.6593 6.18576 13.7978 6.95153C13.9014 7.52438 14.3638 8 14.9459 8Z" fill="#fff"/>\n </svg>\n </div>\n <iframe src="${n}/projects/${this.project_id}/widgets/${this.widget_id}/online_booking?embedded=true${this.locale?`&locale=${encodeURIComponent(this.locale)}`:""}" class="salebot_iframe_online_booking"></iframe>`;const e=t.querySelector(".widget_loader");e.style.zIndex="2";const o=t=>{"onlineBookingReady"===t.data&&e&&setTimeout(()=>{e.style.display="none",window.removeEventListener("message",o)},700)};return window.addEventListener("message",o),t};const l=()=>{let t=document.querySelector(".salebot-modal-bg");if(t){let e=t.parentNode;e&&e.removeChild(t)}};this.clickOpenModalOnlineBooking=()=>{l(),document.querySelector("body").appendChild(this.getModal()),document.querySelectorAll(".salebot-modal-bg").forEach(t=>{t.addEventListener("click",l)})},this.getDataForRender=async t=>{let e=`${n}/page_section/get_widget_settings`;return(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()},this.loadStyles=()=>{let t=document.querySelector("head"),e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href=`${n}/css/online_booking_widget.css`,e.media="all",t.appendChild(e)};const a=t=>{this.loadStyles(),this.class_open_form=t.open_modal_class,this.show_absolute_button=t.show_absolute_button,this.button_size=t.button_size,this.widget_status=t.widget_status,this.widget_button_background_color=t.widget_button_background_color,this.widget_icon_right=t.widget_icon_right,this.widget_icon_bottom=t.widget_icon_bottom;try{const e=document.documentElement,o=t.widget_brand_color||"#1a53c6";o&&e.style.setProperty("--widget-acent-color",o)}catch(t){console.error(t)}};this.catchMessage=function(t){"closeModal"===t.data&&l()};const d=()=>{const t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"svg");e.setAttribute("width","24"),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.setAttribute("xmlns",t);const o=document.createElementNS(t,"path");return o.setAttribute("fill-rule","evenodd"),o.setAttribute("clip-rule","evenodd"),o.setAttribute("d","M8.13878 4.88852C8.13878 3.98359 8.87237 3.25 9.7773 3.25H15.1114C16.0163 3.25 16.7499 3.98359 16.7499 4.88852V5.02778H17.7777C19.1737 5.02778 20.3054 6.1595 20.3054 7.55556V18.2222C20.3054 19.6183 19.1737 20.75 17.7777 20.75H10.6666C10.2523 20.75 9.91656 20.4142 9.91656 20C9.91656 19.5858 10.2523 19.25 10.6666 19.25H17.7
1777C18.3453 19.25 18.8054 18.7898 18.8054 18.2222V7.55556C18.8054 6.98793 18.3453 6.52778 17.7777 6.52778H16.7499V6.66704C16.7499 7.57196 16.0163 8.30556 15.1114 8.30556H9.7773C8.87237 8.30556 8.13878 7.57197 8.13878 6.66704V6.52778H7.111C6.54338 6.52778 6.08322 6.98793 6.08322 7.55556V13.7778C6.08322 14.192 5.74744 14.5278 5.33322 14.5278C4.91901 14.5278 4.58322 14.192 4.58322 13.7778V7.55556C4.58322 6.1595 5.71495 5.02778 7.111 5.02778H8.13878V4.88852ZM9.63878 6.66704C9.63878 6.74354 9.7008 6.80556 9.7773 6.80556H15.1114C15.1879 6.80556 15.2499 6.74354 15.2499 6.66704V4.88852C15.2499 4.81202 15.1879 4.75 15.1114 4.75H9.7773C9.7008 4.75 9.63878 4.81202 9.63878 4.88852V6.66704ZM8.13989 11.1111C8.13989 10.6969 8.47568 10.3611 8.88989 10.3611H15.9999C16.4141 10.3611 16.7499 10.6969 16.7499 11.1111C16.7499 11.5253 16.4141 11.8611 15.9999 11.8611H8.88989C8.47568 11.8611 8.13989 11.5253 8.13989 11.1111ZM8.13989 14.6667C8.13989 14.2525 8.47568 13.9167 8.88989 13.9167H15.9999C16.4141 13.9167 16.7499 14.2525 16.7499 14.6667C16.7499 15.0809 16.4141 15.4167 15.9999 15.4167H8.88989C8.47568 15.4167 8.13989 15.0809 8.13989 14.6667ZM6.22211 15.6944C6.63633 15.6944 6.97211 16.0302 6.97211 16.4444V17.4722H7.99989C8.4141 17.4722 8.74989 17.808 8.74989 18.2222C8.74989 18.6364 8.4141 18.9722 7.99989 18.9722H6.97211V20C6.97211 20.4142 6.63633 20.75 6.22211 20.75C5.8079 20.75 5.47211 20.4142 5.47211 20V18.9722H4.44434C4.03012 18.9722 3.69434 18.6364 3.69434 18.2222C3.69434 17.808 4.03012 17.4722 4.44434 17.4722H5.47211V16.4444C5.47211 16.0302 5.8079 15.6944 6.22211 15.6944Z"),o.setAttribute("fill","black"),e.appendChild(o),e},c=()=>{let t=document.querySelectorAll(`.sb_online_booking_btn_${this.widget_id}`),e=this.class_open_form?document.querySelectorAll(`.${this.class_open_form}`):[],o=document.querySelectorAll(`.${this.absolut_button_father_class}`);t.length>0&&t.forEach(t=>{t.removeEventListener("click",this.clickOpenModalOnlineBooking),t.addEventListener("click",this.clickOpenModalOnlineBooking)}),e.length>0&&e.forEach(t=>{t.removeEventListener("click",this.clickOpenModalOnlineBooking),t.addEventListener("click",this.clickOpenModalOnlineBooking)}),o.length>0&&o.forEach(t=>{t.removeEventListener("click",this.clickOpenModalOnlineBooking),t.addEventListener("click",this.clickOpenModalOnlineBooking)}),window.addEventListener("message",this.catchMessage)},r=()=>{if(""===this.show_absolute_button||"false"===this.show_absolute_button||null===this.show_absolute_button||"Work"!==this.widget_status)return!1;let t=document.createElement("div"),e=this.absolut_button_father_class;switch(this.button_size){case"standard":e+=` ${this.absolut_button_father_class}--normal`;break;case"big":e+=` ${this.absolut_button_father_class}--big`}t.classList=e,t.setAttribute("style",`bottom: ${this.widget_icon_bottom}%; right: ${this.widget_icon_right}%; background: ${this.widget_button_background_color};`),t.appendChild(d()),document.body.appendChild(t)};this.loadMoreDate=async t=>{try{const e=await this.getDataForRender(t);if(e.message)console.error(e.message);else{if("Stop"===e.widget_status)return;a(e),r(),c()}}catch(t){console.warn("OnlineBookingWidget settings request failed",t)}};const h=()=>{this.loadMoreDate({project_id:this.project_id,widget_id:this.widget_id})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){h()}):h()}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.