From 041801b83f0dbf01bf5fa1a4b5eab68a51ce4626 Mon Sep 17 00:00:00 2001 From: "oe.sonnh" Date: Wed, 18 Sep 2024 17:44:58 +0700 Subject: [PATCH] Rebuild v0.2.9 --- dist/vue-bot-ui.common.js | 37 ++++++++++++++++++++++++++++++++++--- dist/vue-bot-ui.umd.js | 37 ++++++++++++++++++++++++++++++++++--- dist/vue-bot-ui.umd.min.js | 2 +- 3 files changed, 69 insertions(+), 7 deletions(-) diff --git a/dist/vue-bot-ui.common.js b/dist/vue-bot-ui.common.js index c799b57..bebf259 100644 --- a/dist/vue-bot-ui.common.js +++ b/dist/vue-bot-ui.common.js @@ -571,12 +571,12 @@ if (typeof window !== 'undefined') { // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daad578-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BotUI.vue?vue&type=template&id=31f28b46&lang=pug& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"qkb-bot-ui",class:_vm.uiClasses},[_c('transition',{attrs:{"name":"qkb-fadeUp"}},[(_vm.botActive)?_c('div',{staticClass:"qkb-board"},[_c('BoardHeader',{attrs:{"bot-title":_vm.optionsMain.botTitle},on:{"close-bot":_vm.botToggle}}),_c('BoardContent',{attrs:{"bot-typing":_vm.botTyping,"main-data":_vm.messages}}),_c('BoardAction',{attrs:{"input-disable":_vm.inputDisable,"input-placeholder":_vm.optionsMain.inputPlaceholder,"input-disable-placeholder":_vm.optionsMain.inputDisablePlaceholder},on:{"msg-send":_vm.sendMessage}})],1):_vm._e()]),_c('div',{staticClass:"qkb-bot-bubble"},[_c('button',{staticClass:"qkb-bubble-btn",on:{"click":_vm.botToggle}},[_vm._t("bubbleButton",[_c('transition',{attrs:{"name":"qkb-scaleUp"}},[(!_vm.botActive)?_c('BubbleIcon',{key:"1",staticClass:"qkb-bubble-btn-icon"}):_c('CloseIcon',{key:"2",staticClass:"qkb-bubble-btn-icon qkb-bubble-btn-icon--close"})],1)])],2)]),_c('AppStyle',{attrs:{"options":_vm.optionsMain}}),_c('div',{staticClass:"qkb-preload-image"},[(_vm.optionsMain.botAvatarImg)?_c('div',{staticClass:"qkb-msg-avatar__img"}):_vm._e()])],1)} +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daad578-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BotUI.vue?vue&type=template&id=4de9bbee&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"qkb-bot-ui",class:_vm.uiClasses},[_c('transition',{attrs:{"name":"qkb-fadeUp"}},[(_vm.botActive)?_c('div',{staticClass:"qkb-board"},[_c('BoardHeader',{attrs:{"bot-title":_vm.optionsMain.botTitle},on:{"close-bot":_vm.botToggle},scopedSlots:_vm._u([{key:"header",fn:function(){return [_vm._t("header")]},proxy:true}],null,true)}),_c('BoardContent',{attrs:{"bot-typing":_vm.botTyping,"main-data":_vm.messages},scopedSlots:_vm._u([{key:"botTyping",fn:function(){return [_vm._t("botTyping")]},proxy:true}],null,true)}),_c('BoardAction',{attrs:{"input-disable":_vm.inputDisable,"input-placeholder":_vm.optionsMain.inputPlaceholder,"input-disable-placeholder":_vm.optionsMain.inputDisablePlaceholder},on:{"msg-send":_vm.sendMessage},scopedSlots:_vm._u([{key:"actions",fn:function(){return [_vm._t("actions")]},proxy:true},{key:"sendButton",fn:function(){return [_vm._t("sendButton")]},proxy:true}],null,true)})],1):_vm._e()]),_c('div',{staticClass:"qkb-bot-bubble"},[_c('button',{staticClass:"qkb-bubble-btn",on:{"click":_vm.botToggle}},[_vm._t("bubbleButton",[_c('transition',{attrs:{"name":"qkb-scaleUp"}},[(!_vm.botActive)?_c('BubbleIcon',{key:"1",staticClass:"qkb-bubble-btn-icon"}):_c('CloseIcon',{key:"2",staticClass:"qkb-bubble-btn-icon qkb-bubble-btn-icon--close"})],1)])],2)]),_c('AppStyle',{attrs:{"options":_vm.optionsMain}}),_c('div',{staticClass:"qkb-preload-image"},[(_vm.optionsMain.botAvatarImg)?_c('div',{staticClass:"qkb-msg-avatar__img"}):_vm._e()])],1)} var staticRenderFns = [] -// CONCATENATED MODULE: ./src/components/BotUI.vue?vue&type=template&id=31f28b46&lang=pug& +// CONCATENATED MODULE: ./src/components/BotUI.vue?vue&type=template&id=4de9bbee&lang=pug& // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf"); @@ -586,6 +586,12 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac var EventBus = new external_commonjs_vue_commonjs2_vue_root_Vue_default.a(); /* harmony default export */ var event_bus = (EventBus); +// CONCATENATED MODULE: ./src/config/index.js +/* harmony default export */ var config = ({ + EVENT_OPEN: 'botui-open', + EVENT_CLOSE: 'botui-close', + EVENT_TOGGLE: 'botui-toggle' +}); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daad578-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Board/Header.vue?vue&type=template&id=b70ffcbe&lang=pug& var Headervue_type_template_id_b70ffcbe_lang_pug_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"qkb-board-header"},[_vm._t("header",[_c('div',{staticClass:"qkb-board-header__title"},[_vm._v(_vm._s(_vm.botTitle))])])],2)} var Headervue_type_template_id_b70ffcbe_lang_pug_staticRenderFns = [] @@ -1356,6 +1362,15 @@ function BotUIvue_type_script_lang_js_defineProperty(obj, key, value) { if (key // // // +// +// +// +// +// +// +// +// + @@ -1445,6 +1460,17 @@ function BotUIvue_type_script_lang_js_defineProperty(obj, key, value) { if (key } } }, + mounted: function mounted() { + document.addEventListener(config.EVENT_OPEN, function () { + this.botOpen(); + }); + document.addEventListener(config.EVENT_CLOSE, function () { + this.botClose(); + }); + document.addEventListener(config.EVENT_TOGGLE, function () { + this.botToggle(); + }); + }, beforeDestroy: function beforeDestroy() { event_bus.$off('select-button-option'); }, @@ -1454,6 +1480,11 @@ function BotUIvue_type_script_lang_js_defineProperty(obj, key, value) { if (key this.botToggle(); } }, + botClose: function botClose() { + if (this.botActive) { + this.botToggle(); + } + }, botToggle: function botToggle() { this.botActive = !this.botActive; diff --git a/dist/vue-bot-ui.umd.js b/dist/vue-bot-ui.umd.js index d3c950a..424015b 100644 --- a/dist/vue-bot-ui.umd.js +++ b/dist/vue-bot-ui.umd.js @@ -580,12 +580,12 @@ if (typeof window !== 'undefined') { // Indicate to webpack that this file can be concatenated /* harmony default export */ var setPublicPath = (null); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daad578-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BotUI.vue?vue&type=template&id=31f28b46&lang=pug& -var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"qkb-bot-ui",class:_vm.uiClasses},[_c('transition',{attrs:{"name":"qkb-fadeUp"}},[(_vm.botActive)?_c('div',{staticClass:"qkb-board"},[_c('BoardHeader',{attrs:{"bot-title":_vm.optionsMain.botTitle},on:{"close-bot":_vm.botToggle}}),_c('BoardContent',{attrs:{"bot-typing":_vm.botTyping,"main-data":_vm.messages}}),_c('BoardAction',{attrs:{"input-disable":_vm.inputDisable,"input-placeholder":_vm.optionsMain.inputPlaceholder,"input-disable-placeholder":_vm.optionsMain.inputDisablePlaceholder},on:{"msg-send":_vm.sendMessage}})],1):_vm._e()]),_c('div',{staticClass:"qkb-bot-bubble"},[_c('button',{staticClass:"qkb-bubble-btn",on:{"click":_vm.botToggle}},[_vm._t("bubbleButton",[_c('transition',{attrs:{"name":"qkb-scaleUp"}},[(!_vm.botActive)?_c('BubbleIcon',{key:"1",staticClass:"qkb-bubble-btn-icon"}):_c('CloseIcon',{key:"2",staticClass:"qkb-bubble-btn-icon qkb-bubble-btn-icon--close"})],1)])],2)]),_c('AppStyle',{attrs:{"options":_vm.optionsMain}}),_c('div',{staticClass:"qkb-preload-image"},[(_vm.optionsMain.botAvatarImg)?_c('div',{staticClass:"qkb-msg-avatar__img"}):_vm._e()])],1)} +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daad578-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BotUI.vue?vue&type=template&id=4de9bbee&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"qkb-bot-ui",class:_vm.uiClasses},[_c('transition',{attrs:{"name":"qkb-fadeUp"}},[(_vm.botActive)?_c('div',{staticClass:"qkb-board"},[_c('BoardHeader',{attrs:{"bot-title":_vm.optionsMain.botTitle},on:{"close-bot":_vm.botToggle},scopedSlots:_vm._u([{key:"header",fn:function(){return [_vm._t("header")]},proxy:true}],null,true)}),_c('BoardContent',{attrs:{"bot-typing":_vm.botTyping,"main-data":_vm.messages},scopedSlots:_vm._u([{key:"botTyping",fn:function(){return [_vm._t("botTyping")]},proxy:true}],null,true)}),_c('BoardAction',{attrs:{"input-disable":_vm.inputDisable,"input-placeholder":_vm.optionsMain.inputPlaceholder,"input-disable-placeholder":_vm.optionsMain.inputDisablePlaceholder},on:{"msg-send":_vm.sendMessage},scopedSlots:_vm._u([{key:"actions",fn:function(){return [_vm._t("actions")]},proxy:true},{key:"sendButton",fn:function(){return [_vm._t("sendButton")]},proxy:true}],null,true)})],1):_vm._e()]),_c('div',{staticClass:"qkb-bot-bubble"},[_c('button',{staticClass:"qkb-bubble-btn",on:{"click":_vm.botToggle}},[_vm._t("bubbleButton",[_c('transition',{attrs:{"name":"qkb-scaleUp"}},[(!_vm.botActive)?_c('BubbleIcon',{key:"1",staticClass:"qkb-bubble-btn-icon"}):_c('CloseIcon',{key:"2",staticClass:"qkb-bubble-btn-icon qkb-bubble-btn-icon--close"})],1)])],2)]),_c('AppStyle',{attrs:{"options":_vm.optionsMain}}),_c('div',{staticClass:"qkb-preload-image"},[(_vm.optionsMain.botAvatarImg)?_c('div',{staticClass:"qkb-msg-avatar__img"}):_vm._e()])],1)} var staticRenderFns = [] -// CONCATENATED MODULE: ./src/components/BotUI.vue?vue&type=template&id=31f28b46&lang=pug& +// CONCATENATED MODULE: ./src/components/BotUI.vue?vue&type=template&id=4de9bbee&lang=pug& // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf"); @@ -595,6 +595,12 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac var EventBus = new external_commonjs_vue_commonjs2_vue_root_Vue_default.a(); /* harmony default export */ var event_bus = (EventBus); +// CONCATENATED MODULE: ./src/config/index.js +/* harmony default export */ var config = ({ + EVENT_OPEN: 'botui-open', + EVENT_CLOSE: 'botui-close', + EVENT_TOGGLE: 'botui-toggle' +}); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5daad578-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Board/Header.vue?vue&type=template&id=b70ffcbe&lang=pug& var Headervue_type_template_id_b70ffcbe_lang_pug_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"qkb-board-header"},[_vm._t("header",[_c('div',{staticClass:"qkb-board-header__title"},[_vm._v(_vm._s(_vm.botTitle))])])],2)} var Headervue_type_template_id_b70ffcbe_lang_pug_staticRenderFns = [] @@ -1365,6 +1371,15 @@ function BotUIvue_type_script_lang_js_defineProperty(obj, key, value) { if (key // // // +// +// +// +// +// +// +// +// + @@ -1454,6 +1469,17 @@ function BotUIvue_type_script_lang_js_defineProperty(obj, key, value) { if (key } } }, + mounted: function mounted() { + document.addEventListener(config.EVENT_OPEN, function () { + this.botOpen(); + }); + document.addEventListener(config.EVENT_CLOSE, function () { + this.botClose(); + }); + document.addEventListener(config.EVENT_TOGGLE, function () { + this.botToggle(); + }); + }, beforeDestroy: function beforeDestroy() { event_bus.$off('select-button-option'); }, @@ -1463,6 +1489,11 @@ function BotUIvue_type_script_lang_js_defineProperty(obj, key, value) { if (key this.botToggle(); } }, + botClose: function botClose() { + if (this.botActive) { + this.botToggle(); + } + }, botToggle: function botToggle() { this.botActive = !this.botActive; diff --git a/dist/vue-bot-ui.umd.min.js b/dist/vue-bot-ui.umd.min.js index e97a27e..e8f16db 100644 --- a/dist/vue-bot-ui.umd.min.js +++ b/dist/vue-bot-ui.umd.min.js @@ -1 +1 @@ -(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-bot-ui"]=e(require("vue")):t["vue-bot-ui"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},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="fb15")}({"24fb":function(t,e,n){"use strict";function o(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"===typeof btoa){var i=r(o),a=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=o(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var i=0;in.parts.length&&(o.parts.length=n.parts.length)}else{var a=[];for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Q(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o=0||(r[n]=t[n]);return r}var Z={functional:!0,render:function(t,e){var n=e._c,o=(e._v,e.data),r=e.children,i=void 0===r?[]:r,a=o["class"],s=o.staticClass,b=o.style,c=o.staticStyle,l=o.attrs,u=void 0===l?{}:l,p=K(o,["class","staticClass","style","staticStyle","attrs"]);return n("svg",F({class:[a,s],style:[b,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488.721 488.721"},u)},p),i.concat([n("path",{attrs:{d:"M483.589 222.024a51.197 51.197 0 00-23.762-23.762L73.522 11.331C48.074-.998 17.451 9.638 5.122 35.086A51.2 51.2 0 003.669 76.44l67.174 167.902L3.669 412.261c-10.463 26.341 2.409 56.177 28.75 66.639a51.314 51.314 0 0018.712 3.624c7.754 0 15.408-1.75 22.391-5.12l386.304-186.982c25.45-12.326 36.089-42.949 23.763-68.398zM58.657 446.633c-8.484 4.107-18.691.559-22.798-7.925a17.065 17.065 0 01-.481-13.784l65.399-163.516h340.668L58.657 446.633zm42.121-219.358L35.379 63.759a16.64 16.64 0 014.215-18.773 16.537 16.537 0 0119.063-2.884l382.788 185.173H100.778z"}})]))}},tt={components:{IconSend:Z},props:{inputPlaceholder:{type:String},inputDisablePlaceholder:{type:String},inputDisable:{type:Boolean,default:!1}},data:function(){return{messageText:null}},computed:{actionClass:function(){var t=[];return this.inputDisable&&t.push("qkb-board-action--disabled"),this.messageText&&t.push("qkb-board-aciton--typing"),t}},mounted:function(){this.$refs.qkbMessageInput.focus()},methods:{sendMessage:function(){this.messageText&&(this.$emit("msg-send",{text:this.messageText}),this.messageText=null)}}},et=tt,nt=f(et,V,G,!1,null,null,null),ot=nt.exports,rt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qkb-bot-style",staticStyle:{display:"none"},domProps:{innerHTML:t._s(t.style)}})},it=[],at={props:["options"],computed:{style:function(){if(!this.options)return"";var t=this.options,e=t.colorScheme,n=t.textColor,o=t.boardContentBg,r=t.bubbleBtnSize,i=t.botAvatarImg,a=t.botAvatarSize,s=t.inputDisableBg,b=t.msgBubbleBgBot,c=t.msgBubbleColorBot,l=t.msgBubbleBgUser,u=t.msgBubbleColorUser,p='\n\n ");return p}}},st=at,bt=f(st,rt,it,!1,null,null,null),ct=bt.exports;function lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function ut(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ft(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o=0||(r[n]=t[n]);return r}var mt={functional:!0,render:function(t,e){var n=e._c,o=(e._v,e.data),r=e.children,i=void 0===r?[]:r,a=o["class"],s=o.staticClass,b=o.style,c=o.staticStyle,l=o.attrs,u=void 0===l?{}:l,p=dt(o,["class","staticClass","style","staticStyle","attrs"]);return n("svg",ut({class:[a,s],style:[b,c],attrs:Object.assign({height:"511pt",viewBox:"1 -31 512 511",width:"511pt",xmlns:"http://www.w3.org/2000/svg"},u)},p),i.concat([n("path",{attrs:{d:"M128 448.5c-8.836 0-16-7.164-16-16v-80H48c-26.512 0-48-21.492-48-48v-256C0 21.988 21.488.5 48 .5h416c26.512 0 48 21.488 48 48v256c0 26.508-21.488 48-48 48H230.625l-91.313 91.313c-3 3-7.07 4.687-11.312 4.687zm-80-416c-8.836 0-16 7.164-16 16v256c0 8.836 7.164 16 16 16h80c8.836 0 16 7.164 16 16v57.375l68.688-68.688c3-3 7.07-4.687 11.312-4.687h240c8.836 0 16-7.164 16-16v-256c0-8.836-7.164-16-16-16zm0 0"}}),n("path",{attrs:{d:"M160 144.5c-17.672 0-32-14.328-32-32s14.328-32 32-32 32 14.328 32 32-14.328 32-32 32zm0 0M352 144.5c-17.672 0-32-14.328-32-32s14.328-32 32-32 32 14.328 32 32-14.328 32-32 32zm0 0M256 288.5c-52.996-.05-95.945-43.004-96-96 0-8.836 7.164-16 16-16s16 7.164 16 16c0 35.348 28.652 64 64 64s64-28.652 64-64c0-8.836 7.164-16 16-16s16 7.164 16 16c-.055 52.996-43.004 95.945-96 96zm0 0"}})]))}};function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function ht(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function kt(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o=0||(r[n]=t[n]);return r}var _t={functional:!0,render:function(t,e){var n=e._c,o=(e._v,e.data),r=e.children,i=void 0===r?[]:r,a=o["class"],s=o.staticClass,b=o.style,c=o.staticStyle,l=o.attrs,u=void 0===l?{}:l,p=vt(o,["class","staticClass","style","staticStyle","attrs"]);return n("svg",ht({class:[a,s],style:[b,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512.001 512.001"},u)},p),i.concat([n("path",{attrs:{d:"M284.286 256.002L506.143 34.144c7.811-7.811 7.811-20.475 0-28.285-7.811-7.81-20.475-7.811-28.285 0L256 227.717 34.143 5.859c-7.811-7.811-20.475-7.811-28.285 0-7.81 7.811-7.811 20.475 0 28.285l221.857 221.857L5.858 477.859c-7.811 7.811-7.811 20.475 0 28.285a19.938 19.938 0 0014.143 5.857 19.94 19.94 0 0014.143-5.857L256 284.287l221.857 221.857c3.905 3.905 9.024 5.857 14.143 5.857s10.237-1.952 14.143-5.857c7.811-7.811 7.811-20.475 0-28.285L284.286 256.002z"}})]))}};function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function xt(t){for(var e=1;en.parts.length&&(o.parts.length=n.parts.length)}else{var a=[];for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o=0||(r[n]=t[n]);return r}var tt={functional:!0,render:function(t,e){var n=e._c,o=(e._v,e.data),r=e.children,i=void 0===r?[]:r,a=o["class"],s=o.staticClass,b=o.style,c=o.staticStyle,l=o.attrs,u=void 0===l?{}:l,p=Q(o,["class","staticClass","style","staticStyle","attrs"]);return n("svg",W({class:[a,s],style:[b,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488.721 488.721"},u)},p),i.concat([n("path",{attrs:{d:"M483.589 222.024a51.197 51.197 0 00-23.762-23.762L73.522 11.331C48.074-.998 17.451 9.638 5.122 35.086A51.2 51.2 0 003.669 76.44l67.174 167.902L3.669 412.261c-10.463 26.341 2.409 56.177 28.75 66.639a51.314 51.314 0 0018.712 3.624c7.754 0 15.408-1.75 22.391-5.12l386.304-186.982c25.45-12.326 36.089-42.949 23.763-68.398zM58.657 446.633c-8.484 4.107-18.691.559-22.798-7.925a17.065 17.065 0 01-.481-13.784l65.399-163.516h340.668L58.657 446.633zm42.121-219.358L35.379 63.759a16.64 16.64 0 014.215-18.773 16.537 16.537 0 0119.063-2.884l382.788 185.173H100.778z"}})]))}},et={components:{IconSend:tt},props:{inputPlaceholder:{type:String},inputDisablePlaceholder:{type:String},inputDisable:{type:Boolean,default:!1}},data:function(){return{messageText:null}},computed:{actionClass:function(){var t=[];return this.inputDisable&&t.push("qkb-board-action--disabled"),this.messageText&&t.push("qkb-board-aciton--typing"),t}},mounted:function(){this.$refs.qkbMessageInput.focus()},methods:{sendMessage:function(){this.messageText&&(this.$emit("msg-send",{text:this.messageText}),this.messageText=null)}}},nt=et,ot=m(nt,J,X,!1,null,null,null),rt=ot.exports,it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qkb-bot-style",staticStyle:{display:"none"},domProps:{innerHTML:t._s(t.style)}})},at=[],st={props:["options"],computed:{style:function(){if(!this.options)return"";var t=this.options,e=t.colorScheme,n=t.textColor,o=t.boardContentBg,r=t.bubbleBtnSize,i=t.botAvatarImg,a=t.botAvatarSize,s=t.inputDisableBg,b=t.msgBubbleBgBot,c=t.msgBubbleColorBot,l=t.msgBubbleBgUser,u=t.msgBubbleColorUser,p='\n\n ");return p}}},bt=st,ct=m(bt,it,at,!1,null,null,null),lt=ct.exports;function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function pt(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function mt(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o=0||(r[n]=t[n]);return r}var gt={functional:!0,render:function(t,e){var n=e._c,o=(e._v,e.data),r=e.children,i=void 0===r?[]:r,a=o["class"],s=o.staticClass,b=o.style,c=o.staticStyle,l=o.attrs,u=void 0===l?{}:l,p=ft(o,["class","staticClass","style","staticStyle","attrs"]);return n("svg",pt({class:[a,s],style:[b,c],attrs:Object.assign({height:"511pt",viewBox:"1 -31 512 511",width:"511pt",xmlns:"http://www.w3.org/2000/svg"},u)},p),i.concat([n("path",{attrs:{d:"M128 448.5c-8.836 0-16-7.164-16-16v-80H48c-26.512 0-48-21.492-48-48v-256C0 21.988 21.488.5 48 .5h416c26.512 0 48 21.488 48 48v256c0 26.508-21.488 48-48 48H230.625l-91.313 91.313c-3 3-7.07 4.687-11.312 4.687zm-80-416c-8.836 0-16 7.164-16 16v256c0 8.836 7.164 16 16 16h80c8.836 0 16 7.164 16 16v57.375l68.688-68.688c3-3 7.07-4.687 11.312-4.687h240c8.836 0 16-7.164 16-16v-256c0-8.836-7.164-16-16-16zm0 0"}}),n("path",{attrs:{d:"M160 144.5c-17.672 0-32-14.328-32-32s14.328-32 32-32 32 14.328 32 32-14.328 32-32 32zm0 0M352 144.5c-17.672 0-32-14.328-32-32s14.328-32 32-32 32 14.328 32 32-14.328 32-32 32zm0 0M256 288.5c-52.996-.05-95.945-43.004-96-96 0-8.836 7.164-16 16-16s16 7.164 16 16c0 35.348 28.652 64 64 64s64-28.652 64-64c0-8.836 7.164-16 16-16s16 7.164 16 16c-.055 52.996-43.004 95.945-96 96zm0 0"}})]))}};function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function yt(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function _t(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o=0||(r[n]=t[n]);return r}var qt={functional:!0,render:function(t,e){var n=e._c,o=(e._v,e.data),r=e.children,i=void 0===r?[]:r,a=o["class"],s=o.staticClass,b=o.style,c=o.staticStyle,l=o.attrs,u=void 0===l?{}:l,p=kt(o,["class","staticClass","style","staticStyle","attrs"]);return n("svg",yt({class:[a,s],style:[b,c],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512.001 512.001"},u)},p),i.concat([n("path",{attrs:{d:"M284.286 256.002L506.143 34.144c7.811-7.811 7.811-20.475 0-28.285-7.811-7.81-20.475-7.811-28.285 0L256 227.717 34.143 5.859c-7.811-7.811-20.475-7.811-28.285 0-7.81 7.811-7.811 20.475 0 28.285l221.857 221.857L5.858 477.859c-7.811 7.811-7.811 20.475 0 28.285a19.938 19.938 0 0014.143 5.857 19.94 19.94 0 0014.143-5.857L256 284.287l221.857 221.857c3.905 3.905 9.024 5.857 14.143 5.857s10.237-1.952 14.143-5.857c7.811-7.811 7.811-20.475 0-28.285L284.286 256.002z"}})]))}};function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Ot(t){for(var e=1;e