!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r={addContainer:function(t,e,n){var r=document.createElement("div");document.getElementsByTagName("script")[0].parentNode.appendChild(r);var o=function(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})},a=function t(e,n,r){var a={};return"object"===(void 0===e?"undefined":i(e))?Object.keys(e).map(function(i){Object.assign(a,t(e[i],i,void 0!==n?(void 0!==r?r+"-":"")+o(n):void 0))}):a[(void 0!==r?r+"-":"")+o(n)]=e,a}(e);return r.setAttribute("class",n.WIDGET_CLASS+" "+n.WIDGET_CLASS_AUTOINIT),r.setAttribute("data-widget",t),Object.keys(a).map(function(t){"id"!==t&&r.setAttribute("data-"+t,a[t])}),r},mobileDetect:{Android:function(){return null!==navigator.userAgent.match(/Android/i)},BlackBerry:function(){return null!==navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return null!==navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return null!==navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return null!==navigator.userAgent.match(/IEMobile/i)},any:function(){var t=r.mobileDetect;return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()}},getTopZIndex:function(t){return Array.from(document.getElementsByTagName("*")).reduce(function(e,n){var i=parseFloat(window.getComputedStyle(n).zIndex);return n!==t&&i>e&&(e=parseFloat(i)),e},-1)},getStyleString:function(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")},hasMetaTagViewPort:function(){return null!==document.querySelector('meta[name="viewport"]')},log:function(){var t;void 0!==window.console&&void 0!==window.console.info&&(t=window.console).info.apply(t,["Pravoved.ru:"].concat(Array.prototype.slice.call(arguments)))}};e.default=r},function(t,e,n){"use strict";n(2),n(4),n(7)},function(t,e,n){"use strict";n(3)},function(t,e,n){"use strict";var i,r,o,a;!window.addEventListener&&(i=Window.prototype,r=HTMLDocument.prototype,o=Element.prototype,a=[],i.addEventListener=r.addEventListener=o.addEventListener=function(t,e){var n=this;a.unshift([n,t,e,function(t){t.currentTarget=n,t.preventDefault=function(){t.returnValue=!1},t.stopPropagation=function(){t.cancelBubble=!0},t.target=t.srcElement||n,e.call(n,t)}]),this.attachEvent("on"+t,a[0][3])},i.removeEventListener=r.removeEventListener=o.removeEventListener=function(t,e){for(var n,i=0;n=a[i];++i)if(n[0]==this&&n[1]==t&&n[2]==e)return this.detachEvent("on"+t,a.splice(i,1)[0][3])},i.dispatchEvent=r.dispatchEvent=o.dispatchEvent=function(t){return this.fireEvent("on"+t.type,t)})},function(t,e,n){"use strict";n(5),n(6)},function(t,e,n){"use strict";Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),o)},function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!r(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var o,s=a(e.length),u=r(this)?Object(new this(s)):new Array(s),l=0;l0&&(t[n]=parseInt(this.initParams.offsetSide)+"px"),!o.default.mobileDetect.any()&&void 0!==this.initParams.offsetBottom&&Math.abs(parseInt(this.initParams.offsetBottom))>0&&(t.bottom=parseInt(this.initParams.offsetBottom)+"px")}return o.default.getStyleString(t)}},{key:"fixViewport",value:function(){var t=document.querySelector("meta[name=viewport]");null===t?((t=document.createElement("meta")).name="viewport",t.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",document.getElementsByTagName("head")[0].appendChild(t),this.wrapper.dataset.viewportContent=""):this.wrapper.dataset.viewportContent=t.getAttribute("content"),t.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")}},{key:"revertViewport",value:function(){var t=document.querySelector("meta[name=viewport]"),e=this.wrapper.dataset.viewportContent;""===e?t.parent.removeChild(t):t.setAttribute("content",e)}},{key:"releaseScroll",value:function(){if("1"===this.wrapper.dataset.freezed){var t=this.wrapper;this.body.style.cssText=t.dataset.bodyCssText,this.html.style.cssText=t.dataset.htmlCssText,this.window.scrollTo(t.dataset.scrollLeft,t.dataset.scrollTop)}}},{key:"freezeScroll",value:function(){var t=this.body,e=this.html,n=this.wrapper;n.dataset.freezed="1",n.dataset.scrollTop=t.scrollTop||e.scrollTop,n.dataset.scrollLeft=t.scrollLeft||e.scrollLeft,n.dataset.bodyCssText=t.style.cssText,n.dataset.htmlCssText=e.style.cssText,t.style.overflow="hidden",t.style.position="fixed",t.style.padding="0",t.style.margin="0",t.style.left="0px",t.style.right="0px",t.style.width="100%",t.style.height="100%",e.style.overflow="hidden",e.style.position="fixed"}},{key:"on",value:function(t,e){void 0===this.events[t]&&(this.events[t]=[]),this.events[t].push(e)}},{key:"off",value:function(t,e){if(void 0!==this.events[t])if(void 0===e)delete this.events[t];else{var n=this.events[t];this.events[t]=n.reduce(function(t,n){return n!==e&&t.push(n),t},[])}}},{key:"trigger",value:function(t){var e=this;void 0!==this.events[t]&&this.events[t].map(function(t){t.apply(e,[])})}}]),t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.STATES={VISIBLE:"visible",HIDDEN:"hidden",FULLSCREEN:"fullscreen"},e.STYLES={chat:{hidden:{width:0,height:0,opacity:0},initial:{display:"block",position:"fixed",overflow:"hidden",bottom:0,background:"transparent"},"position-right":{right:0,left:"auto"},"position-left":{left:0,right:"auto"},fullscreen:{position:"fixed",width:"100%",height:"100%",padding:0,bottom:0,left:0,right:0,top:0,background:"rgba(255,255,255,0.95)"}},"inline-form":{hidden:{width:"1px",height:"1px",opacity:0,position:"relative"},initial:{width:"100%",minHeight:"1px",opacity:1,display:"block",position:"relative",overflow:"hidden",background:"transparent"}}},e.PARAMS={required:["partnerId","widget"],optional:["restDomain","pollingDomain","forcePop","chan","data1","data2","theme","themeCustom","themeCustomColor1","themeCustomColor2","operatorDescription","operatorAvatar","operatorName","operatorSurname","themeCustomText","themeCustomTextInverted","themeCustomBackground","themeCustomDirection","behavior","versionClient","startOnDialogOpen","disableMobile","disableDesktop","disableDialog","position","offsetSide","offsetBottom","mobileForceExternal","yandexCounter","googleCounter","popupDelay"],overridable:["chan","data1","data2","theme","themeCustom","themeCustomColor1","themeCustomColor2","operatorDescription","operatorAvatar","operatorName","operatorSurname","themeCustomText","themeCustomTextInverted","themeCustomBackground","themeCustomDirection","behavior","versionClient","startOnDialogOpen","position","offsetSide","offsetBottom","disableDialog","popupDelay"]},e.widget2CounterEventsMap={"chat.start":"PRAVOVED.chat.show-widget","chat.dialog.open":"PRAVOVED.chat.open-dialog","chat.form.open":"PRAVOVED.chat.show-form","chat.form.send":"PRAVOVED.chat.click-button","chat.form.success":"PRAVOVED.chat.lead-send","inline-form.start":"PRAVOVED.inline-form.show-widget","inline-form.send":"PRAVOVED.inline-form.click-button","inline-form.success":"PRAVOVED.inline-form.lead-send"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n0){var t=n.queue.shift();n.countersList.map(function(e){n.getCounter(e).reachGoal(t)})}},1e3)}return r(t,null,[{key:"create",value:function(){return new(Function.prototype.bind.apply(t,[null].concat(Array.prototype.slice.call(arguments))))}}]),r(t,[{key:"reachGoal",value:function(t){this.queue.push(t)}},{key:"destroy",value:function(){clearInterval(this.queueInterval)}},{key:"getCounter",value:function(t,e){var n=this,i=void 0===e?0:e;return void 0!==window["yaCounter"+t]&&"function"==typeof window["yaCounter"+t].reachGoal?window["yaCounter"+t]:{reachGoal:function(e){i>10?a.default.log("Yandex counter "+t+" is not accessible, skipping goal "+e):setTimeout(function(){i++,n.getCounter(t,i).reachGoal(e)},100)}}}},{key:"getInstalledCounters",value:function(t){return"auto"===t?Object.keys(window).reduce(function(t,e){return"yaCounter"===e.substr(0,9)&&t.push(e.replace("yaCounter","")),t},[]):t.indexOf(",")>-1?String(t).split(",").reduce(function(t,e){return t.push(String(e).trim()),t},[]):[t]}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=function(){function t(t,e){for(var n=0;n0){var t=e.queue.shift();e.getCounter().reachGoal(t)}},1e3)}return r(t,null,[{key:"create",value:function(){return new(Function.prototype.bind.apply(t,[null].concat(Array.prototype.slice.call(arguments))))}}]),r(t,[{key:"destroy",value:function(){clearInterval(this.queueInterval)}},{key:"reachGoal",value:function(t){this.queue.push(t)}},{key:"getCounter",value:function(t){var e=this,n=void 0===t?0:t;return void 0!==window.ga?{reachGoal:function(t){var e=t.split(".");window.ga("send",{hitType:"event",eventCategory:e[0],eventLabel:e[1],eventValue:e[2]})}}:{reachGoal:function(t){n>10?a.default.log("GA counter is not accessible, skiping goal "+t):setTimeout(function(){n++,e.getCounter(n).reachGoal(t)},100)}}}}]),t}();e.default=s}]);