text: /*!
   * Codebase - v3.2.0
   * @author pixelcave - https://pixelcave.com
   * Copyright (c) 2019
   */
  !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}({6:function(e,t,n){e.exports=n(7)},7:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r,a,i,o,u,c,l,s,d,h,f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,f,p;return t=e,p=[{key:"initChat",value:function(){var e=this;switch(r=jQuery(window),a=jQuery("#page-header"),i=jQuery("#page-footer"),o=jQuery(".js-chat-container"),u=o.data("chat-height"),c=jQuery(".js-chat-head"),l=jQuery(".js-chat-talk"),s=jQuery(".js-chat-people"),d=jQuery(".js-chat-form"),u){case"auto":jQuery(window).on("resize.cb.chat orientationchange.cb.chat",function(t){clearTimeout(h),h=setTimeout(function(t){e.initChatWindows()},150)}).triggerHandler("resize.cb.chat");break;default:e.initChatWindows(u)}l.scrollLock("enable"),s.length&&s.scrollLock("enable"),jQuery("form",d).on("submit",function(t){t.preventDefault();var n=jQuery(".js-chat-input",jQuery(t.currentTarget));e.chatAddMessage(n.data("target-chat-id"),n.val(),"self",n)})}},{key:"initChatWindows",value:function(e){var t;(t=e?parseInt(e):r.height()-(a.length?a.outerHeight():0)-(i.length?i.outerHeight():0)-(parseInt(o.css("padding-top"))+parseInt(o.css("padding-bottom")))-c.outerHeight())<200&&(t=200),l.css("height",t-d.outerHeight()),s.length&&s.css("height",t)}},{key:"chatAddHeader",value:function(e,t){var n=jQuery('.js-chat-talk[data-chat-id="'+e+'"]');t&&n.length&&(n.append('<div class="font-size-sm font-italic text-muted text-center mt-20 mb-10">'+jQuery("<div />").text(t).html()+"</div>"),n.animate({scrollTop:n[0].scrollHeight},150))}},{key:"chatAddMessage",value:function(e,t,n,r){var a=jQuery('.js-chat-talk[data-chat-id="'+e+'"]');t&&a.length&&(a.append('<div class="rounded font-w600 p-10 mb-10 animated fadeIn '+("self"===n?"ml-50 bg-primary-lighter text-primary-darker":"mr-50 bg-body-light")+'">'+jQuery("<div />").text(t).html()+"</div>"),a.animate({scrollTop:a[0].scrollHeight},150),r&&r.val(""))}},{key:"init",value:function(){this.initChat()}},{key:"addHeader",value:function(e,t){this.chatAddHeader(e,t)}},{key:"addMessage",value:function(e,t,n){this.chatAddMessage(e,t,n,!1)}}],(f=null)&&n(t.prototype,f),p&&n(t,p),e}();jQuery(function(){f.init(),window.BeCompChat=f})}});