boka-human-cliend-v2 0.0.38 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,13 +103,6 @@ return /******/ (function(modules) { // webpackBootstrap
103
103
 
104
104
  /***/ }),
105
105
 
106
- /***/ "2239":
107
- /***/ (function(module, exports, __webpack_require__) {
108
-
109
- // extracted by mini-css-extract-plugin
110
-
111
- /***/ }),
112
-
113
106
  /***/ "5014":
114
107
  /***/ (function(module, exports, __webpack_require__) {
115
108
 
@@ -151,12 +144,12 @@ module.exports = function(module) {
151
144
 
152
145
  /***/ }),
153
146
 
154
- /***/ "bb87":
147
+ /***/ "6b20":
155
148
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
156
149
 
157
150
  "use strict";
158
- /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_41cb9872_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2239");
159
- /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_41cb9872_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_41cb9872_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
151
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_2c9dd339_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dd40");
152
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_2c9dd339_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_2c9dd339_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
160
153
  /* unused harmony reexport * */
161
154
 
162
155
 
@@ -3394,6 +3387,13 @@ module.exports = function(module) {
3394
3387
  }));
3395
3388
 
3396
3389
 
3390
+ /***/ }),
3391
+
3392
+ /***/ "dd40":
3393
+ /***/ (function(module, exports, __webpack_require__) {
3394
+
3395
+ // extracted by mini-css-extract-plugin
3396
+
3397
3397
  /***/ }),
3398
3398
 
3399
3399
  /***/ "fb15":
@@ -3419,13 +3419,13 @@ if (typeof window !== 'undefined') {
3419
3419
  // Indicate to webpack that this file can be concatenated
3420
3420
  /* harmony default export */ var setPublicPath = (null);
3421
3421
 
3422
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1413866d-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/BokaHumanV2.vue?vue&type=template&id=41cb9872
3423
- var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"boka-human-v2"},[_c('div',{staticClass:"humanEnterIcon",class:[_vm.unreadCount>0?'unreadCount':''],attrs:{"id":"humanEnterIcon"}},[(_vm.unreadCount<1)?[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"data:image/png;base64,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","alt":""},on:{"click":_vm.changeChatViewVisible}})]:[_c('span',{on:{"click":_vm.changeChatViewVisible}},[_vm._v(_vm._s(_vm.unreadCount>99?'99+' : _vm.unreadCount))])]],2),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"humanMainView",class:_vm.fullScreen?'full':''},[_c('div',{staticClass:"humanMainHeader my-dialog__header"},[_c('div',{staticClass:"humanMainHeaderLeft"}),_c('div',{staticClass:"humanMainHeaderCenter"},[_vm._v("客服")]),_c('div',{staticClass:"humanMainHeaderRight"},[_c('span',{on:{"click":function($event){_vm.visible=false},"touchstart":function($event){$event.stopPropagation();_vm.visible=false}}},[_c('img',{staticStyle:{"width":"14px"},attrs:{"src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAABzUlEQVR4AbzV207DQAwE0MKPA18Oe6ydKCnZdJNWRXFsj+ei9IXP25v/Evjdcn9b6a299OG5eCfwq0foCH19uvHiyah6An8gvRwQ+3q58eAVg8pIoGMB/YoI6+vpRssjQt6wWwIdAA5mRQAznyka2mh4wmpfBwIcEMyKEGaeKVyacHnBsm++MCACYnYGsOyjjoObOw9Y9ur3X1hgeyEStLEeRrBadl5uODnRwrIvfRSIQEBoVgxh5nXB3ILRwLJv+lEgIiEDs2IMMyszzKxwYebdehRIxICRWQmAKTNM4cDMw5oJJGbE0KwEKbNywzEf1mwgE4aMzeuCua2x4XwmcGhy5nAm0Fesf8bkwNyyH/bZQIaMY+ZnVNndcLIP+0wgI4YxEQRT5uA4sOy7/VEgA0YRC4BlN8Oy48Ky/+tHgYQMImIMy54Oc8tOA8u+6aNAAsKQGcKy33c3nOC0sOxL3wtEJAiJESz7qOPg5s4Dlr36fSACYh3biwGsjVMPLk3IvGDZN/8PHRByJIRln+00tOHzhNWeLwQ4FNheBLA2XnpoeUTMG7Z8ISBHxDoGuNh58Iq8MvKFOeiIIT3befHkUz2BDh8N1Vt76cNz8f4DAAD//8lliLUAAAAGSURBVAMAfghcOXqadykAAAAASUVORK5CYII=","alt":""}})])])]),_c('iframe',{attrs:{"id":"iframe","src":_vm.src,"frameborder":"0","allowfullscreen":""}})])])
3422
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"23f47b26-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/BokaHumanV2.vue?vue&type=template&id=2c9dd339
3423
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"boka-human-v2"},[_c('div',{staticStyle:{"position":"fixed","width":"100vw","height":"100vh","top":"0","left":"0","display":"none"},attrs:{"id":"humanViewOuter"}}),(!_vm.hideEnter)?_c('div',{staticClass:"humanEnterIcon",class:[_vm.unreadCount>0?'unreadCount':''],attrs:{"id":"humanEnterIcon"}},[(_vm.unreadCount<1)?[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"https://static.bokao2o.com/img_humanIcon.png","alt":""},on:{"click":_vm.changeChatViewVisible}})]:[_c('span',{on:{"click":_vm.changeChatViewVisible}},[_vm._v(_vm._s(_vm.unreadCount>99?'99+' : _vm.unreadCount))])]],2):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"humanMainView",class:_vm.fullScreen?'full':''},[_c('div',{staticClass:"humanMainHeader my-dialog__header"},[_c('div',{staticClass:"humanMainHeaderLeft"}),_c('div',{staticClass:"humanMainHeaderCenter"},[_vm._v(_vm._s(_vm.viewTitle||"客服"))]),_c('div',{staticClass:"humanMainHeaderRight"},[(!_vm.hideClose)?_c('span',{on:{"click":function($event){_vm.visible=false},"touchstart":function($event){$event.stopPropagation();_vm.visible=false}}},[_c('img',{staticStyle:{"width":"14px"},attrs:{"src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAABzUlEQVR4AbzV207DQAwE0MKPA18Oe6ydKCnZdJNWRXFsj+ei9IXP25v/Evjdcn9b6a299OG5eCfwq0foCH19uvHiyah6An8gvRwQ+3q58eAVg8pIoGMB/YoI6+vpRssjQt6wWwIdAA5mRQAznyka2mh4wmpfBwIcEMyKEGaeKVyacHnBsm++MCACYnYGsOyjjoObOw9Y9ur3X1hgeyEStLEeRrBadl5uODnRwrIvfRSIQEBoVgxh5nXB3ILRwLJv+lEgIiEDs2IMMyszzKxwYebdehRIxICRWQmAKTNM4cDMw5oJJGbE0KwEKbNywzEf1mwgE4aMzeuCua2x4XwmcGhy5nAm0Fesf8bkwNyyH/bZQIaMY+ZnVNndcLIP+0wgI4YxEQRT5uA4sOy7/VEgA0YRC4BlN8Oy48Ky/+tHgYQMImIMy54Oc8tOA8u+6aNAAsKQGcKy33c3nOC0sOxL3wtEJAiJESz7qOPg5s4Dlr36fSACYh3biwGsjVMPLk3IvGDZN/8PHRByJIRln+00tOHzhNWeLwQ4FNheBLA2XnpoeUTMG7Z8ISBHxDoGuNh58Iq8MvKFOeiIIT3befHkUz2BDh8N1Vt76cNz8f4DAAD//8lliLUAAAAGSURBVAMAfghcOXqadykAAAAASUVORK5CYII=","alt":""}})]):_vm._e()])]),_c('iframe',{attrs:{"id":"iframe","src":_vm.src,"frameborder":"0","allowfullscreen":""}})])])
3424
3424
  }
3425
3425
  var staticRenderFns = []
3426
3426
 
3427
3427
 
3428
- // CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=template&id=41cb9872
3428
+ // CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=template&id=2c9dd339
3429
3429
 
3430
3430
  // EXTERNAL MODULE: ./node_modules/interactjs/dist/interact.min.js
3431
3431
  var interact_min = __webpack_require__("5014");
@@ -3474,6 +3474,18 @@ var dist_viewer = __webpack_require__("0808");
3474
3474
  fullScreen: {
3475
3475
  type: [Boolean,Number],
3476
3476
  default: 0
3477
+ },
3478
+ hideEnter: {
3479
+ type: Boolean,
3480
+ default: false
3481
+ },
3482
+ hideClose: {
3483
+ type: Boolean,
3484
+ default: false
3485
+ },
3486
+ viewTitle: {
3487
+ type: String,
3488
+ default: '客服'
3477
3489
  }
3478
3490
  },
3479
3491
  computed: {
@@ -3481,13 +3493,15 @@ var dist_viewer = __webpack_require__("0808");
3481
3493
  let {product,subCustType} = this;
3482
3494
  if(product.toLowerCase()==="mase" || (product.toLowerCase()==="aime" && subCustType==="overseas")){
3483
3495
  return "https://service.mase.cloud"
3496
+ }else if(product=="web"){
3497
+ return "https://sale.shboka.com"
3484
3498
  }
3485
3499
  return "https://human.shboka.com"
3486
3500
  // return "https://baidu.com"
3487
3501
  // return "http://192.168.3.12:5173"
3488
3502
  },
3489
3503
  src(){
3490
- let {token,product,custType,subCustType,source,terminal=""} = this;
3504
+ let {token,product,custType="",subCustType,source,terminal=""} = this;
3491
3505
  // return `https://human.shboka.com/?token=${token}&product=${product}&subCustType=${subCustType}&human=1&isIFrame=true&time=${new Date().getTime()}`;
3492
3506
  let {protocol,host} = location;
3493
3507
  let domain = `${protocol}//${host}`
@@ -3505,8 +3519,15 @@ var dist_viewer = __webpack_require__("0808");
3505
3519
  console.log(`%c 客服组件属性 `, 'background: #f00; color: #fff; padding: 2px 2px; border-radius: 3px;')
3506
3520
  console.log(this.$props)
3507
3521
  setTimeout(()=>{
3508
- this.icon();
3509
- this.chatMainInitDrag();
3522
+ if(!this.hideEnter){
3523
+ this.icon();
3524
+ }else{
3525
+ this.visible=true;
3526
+ }
3527
+
3528
+ if(!this.fullScreen){
3529
+ this.chatMainInitDrag();
3530
+ }
3510
3531
  })
3511
3532
 
3512
3533
  window.humanFunction = {
@@ -3530,6 +3551,8 @@ var dist_viewer = __webpack_require__("0808");
3530
3551
  if(type=="add" && !this.visible){
3531
3552
  this.unreadCount+=count;
3532
3553
  }
3554
+ }else if(type=="toAi"){//切换到智能体了,需要隐藏顶部
3555
+
3533
3556
  }
3534
3557
  // console.log("外部[收到]了===>>>>",info);
3535
3558
  }
@@ -3644,8 +3667,21 @@ var dist_viewer = __webpack_require__("0808");
3644
3667
  inertia: true,
3645
3668
  modifiers: [
3646
3669
  interact_min_default.a.modifiers.restrictRect({
3647
- restriction: 'body',
3670
+ restriction: '#humanViewOuter',
3648
3671
  endOnly: true
3672
+ /*restriction: () => {
3673
+ const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
3674
+ const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
3675
+
3676
+ return {
3677
+ left: scrollLeft,
3678
+ top: scrollTop,
3679
+ right: scrollLeft + window.innerWidth,
3680
+ bottom: scrollTop + window.innerHeight
3681
+ };
3682
+ },
3683
+ elementRect: { left: 0, right: 1, top: 0, bottom: 1 },
3684
+ endOnly: false*/
3649
3685
  })
3650
3686
  ],
3651
3687
  autoScroll: true,
@@ -3660,6 +3696,15 @@ var dist_viewer = __webpack_require__("0808");
3660
3696
  // update the posiion attributes
3661
3697
  target.setAttribute('data-x', x)
3662
3698
  target.setAttribute('data-y', y)
3699
+
3700
+
3701
+ /*const target = event.target;
3702
+ const x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
3703
+ const y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
3704
+
3705
+ target.style.transform = `translate(${x}px, ${y}px)`;
3706
+ target.setAttribute('data-x', x);
3707
+ target.setAttribute('data-y', y);*/
3663
3708
  },
3664
3709
  end(event) {
3665
3710
  }
@@ -3671,8 +3716,8 @@ var dist_viewer = __webpack_require__("0808");
3671
3716
 
3672
3717
  // CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=script&lang=js
3673
3718
  /* harmony default export */ var src_BokaHumanV2vue_type_script_lang_js = (BokaHumanV2vue_type_script_lang_js);
3674
- // EXTERNAL MODULE: ./src/BokaHumanV2.vue?vue&type=style&index=0&id=41cb9872&prod&lang=less
3675
- var BokaHumanV2vue_type_style_index_0_id_41cb9872_prod_lang_less = __webpack_require__("bb87");
3719
+ // EXTERNAL MODULE: ./src/BokaHumanV2.vue?vue&type=style&index=0&id=2c9dd339&prod&lang=less
3720
+ var BokaHumanV2vue_type_style_index_0_id_2c9dd339_prod_lang_less = __webpack_require__("6b20");
3676
3721
 
3677
3722
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js
3678
3723
  /* globals __VUE_SSR_CONTEXT__ */
@@ -6,4 +6,4 @@
6
6
  * Released under the MIT license
7
7
  *
8
8
  * Date: 2024-11-24T04:32:14.526Z
9
- */.viewer-close:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen-exit:before,.viewer-fullscreen:before,.viewer-next:before,.viewer-one-to-one:before,.viewer-play:before,.viewer-prev:before,.viewer-reset:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-zoom-in:before,.viewer-zoom-out:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 40'%3E%3Cpath fill='%23fff' d='M49.6 17.9h20.2v3.9H49.6zm123.1 2l10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0l-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6l-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3l5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7zm14 0h6.2V16h-2v-4.3h-4.2v-2zm6.2 14V30h-6.2v-2h4.2v-4.3h2zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7l7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5l8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 00-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 01-10-10.2 10 10 0 0110-10.2z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container ::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container ::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:rgba(0,0,0,.5);overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;right:0;z-index:1}.viewer-player,.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:rgba(0,0,0,.8)}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:rgba(0,0,0,.8);border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:rgba(0,0,0,.8)}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:rgba(0,0,0,.5)}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid hsla(0,0%,100%,.1);border-left-color:hsla(0,0%,100%,.5);border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width:767px){.viewer-hide-xs-down{display:none}}@media (max-width:991px){.viewer-hide-sm-down{display:none}}@media (max-width:1199px){.viewer-hide-md-down{display:none}}.boka-human-v2{position:fixed;top:0;left:0;z-index:999}.humanEnterIcon{position:fixed;z-index:999;background-color:#0074ff;border-radius:50%;width:40px;height:40px;text-align:center;padding:8px;box-sizing:border-box;transform:translate(50vw,50vh)}.humanEnterIcon>svg{width:100%;height:100%;fill:#fff}.humanEnterIcon.unreadCount{background-color:red;color:#fff;line-height:24px;font-size:14px;font-weight:700}.humanMainView{position:fixed;min-width:360px;max-width:600px;min-height:360px;height:80vh;border:1px solid #ccc}.humanMainView.full{padding-top:env(safe-area-inset-top);width:100vw!important;max-width:100vw!important;height:100vh!important;max-height:100vh!important}.humanMainView .humanMainHeader{width:100%;height:40px;text-align:center;cursor:move;font-size:0;box-sizing:border-box;border-bottom:1px solid #f5f5f5;position:relative;z-index:999;background:#fff;white-space:nowrap}.humanMainView .humanMainHeader .humanMainHeaderRight{text-align:right}.humanMainView .humanMainHeader .humanMainHeaderLeft,.humanMainView .humanMainHeader .humanMainHeaderRight{width:20%;display:inline-block;vertical-align:middle;padding:0 10px;line-height:40px;font-size:14px;box-sizing:border-box}.humanMainView .humanMainHeader .humanMainHeaderCenter{width:60%;display:inline-block;vertical-align:middle;font-size:16px;box-sizing:border-box}.humanMainView>iframe{width:100%;height:calc(100% - 40px)}
9
+ */.viewer-close:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen-exit:before,.viewer-fullscreen:before,.viewer-next:before,.viewer-one-to-one:before,.viewer-play:before,.viewer-prev:before,.viewer-reset:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-zoom-in:before,.viewer-zoom-out:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 40'%3E%3Cpath fill='%23fff' d='M49.6 17.9h20.2v3.9H49.6zm123.1 2l10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0l-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6l-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3l5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7zm14 0h6.2V16h-2v-4.3h-4.2v-2zm6.2 14V30h-6.2v-2h4.2v-4.3h2zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7l7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5l8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 00-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 01-10-10.2 10 10 0 0110-10.2z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container ::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container ::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:rgba(0,0,0,.5);overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;right:0;z-index:1}.viewer-player,.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:rgba(0,0,0,.8)}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:rgba(0,0,0,.8);border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:rgba(0,0,0,.8)}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:rgba(0,0,0,.5)}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid hsla(0,0%,100%,.1);border-left-color:hsla(0,0%,100%,.5);border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width:767px){.viewer-hide-xs-down{display:none}}@media (max-width:991px){.viewer-hide-sm-down{display:none}}@media (max-width:1199px){.viewer-hide-md-down{display:none}}.boka-human-v2{position:fixed;top:0;left:0;z-index:999}.humanEnterIcon{position:fixed;z-index:999;border-radius:50%;width:40px;height:40px;text-align:center;box-sizing:border-box;transform:translate(50vw,50vh)}.humanEnterIcon>svg{width:100%;height:100%;fill:#fff}.humanEnterIcon.unreadCount{background-color:red;color:#fff;line-height:24px;font-size:14px;font-weight:700;padding:8px}.humanMainView{position:fixed;min-width:360px;max-width:600px;min-height:360px;height:80vh}.humanMainView.full{padding-top:env(safe-area-inset-top);width:100vw!important;max-width:100vw!important;height:100vh!important;max-height:100vh!important;position:fixed;top:0;left:0;z-index:999;overflow:hidden}.humanMainView .humanMainHeader{width:100%;height:40px;text-align:center;cursor:move;font-size:0;box-sizing:border-box;position:relative;z-index:999;background:url(https://rs.bokao2o.com/bkWeb/Def_BKWeb_AI_Header.png) top/100% no-repeat #fff;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:1000px;left:50%;transform:translateX(-50%)}.humanMainView .humanMainHeader .humanMainHeaderRight{text-align:right}.humanMainView .humanMainHeader .humanMainHeaderLeft,.humanMainView .humanMainHeader .humanMainHeaderRight{width:20%;display:inline-block;vertical-align:middle;padding:0 10px;line-height:40px;font-size:14px;box-sizing:border-box}.humanMainView .humanMainHeader .humanMainHeaderCenter{width:60%;display:inline-block;vertical-align:middle;font-size:16px;box-sizing:border-box;padding:6px 0}.humanMainView>iframe{width:100%;height:calc(100% - 40px)}
@@ -103,13 +103,6 @@ return /******/ (function(modules) { // webpackBootstrap
103
103
 
104
104
  /***/ }),
105
105
 
106
- /***/ "2239":
107
- /***/ (function(module, exports, __webpack_require__) {
108
-
109
- // extracted by mini-css-extract-plugin
110
-
111
- /***/ }),
112
-
113
106
  /***/ "5014":
114
107
  /***/ (function(module, exports, __webpack_require__) {
115
108
 
@@ -151,12 +144,12 @@ module.exports = function(module) {
151
144
 
152
145
  /***/ }),
153
146
 
154
- /***/ "bb87":
147
+ /***/ "6b20":
155
148
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
156
149
 
157
150
  "use strict";
158
- /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_41cb9872_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2239");
159
- /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_41cb9872_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_41cb9872_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
151
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_2c9dd339_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dd40");
152
+ /* harmony import */ var _node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_2c9dd339_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_cli_service_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_cli_service_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_cli_service_node_modules_vue_loader_lib_index_js_vue_loader_options_BokaHumanV2_vue_vue_type_style_index_0_id_2c9dd339_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
160
153
  /* unused harmony reexport * */
161
154
 
162
155
 
@@ -3394,6 +3387,13 @@ module.exports = function(module) {
3394
3387
  }));
3395
3388
 
3396
3389
 
3390
+ /***/ }),
3391
+
3392
+ /***/ "dd40":
3393
+ /***/ (function(module, exports, __webpack_require__) {
3394
+
3395
+ // extracted by mini-css-extract-plugin
3396
+
3397
3397
  /***/ }),
3398
3398
 
3399
3399
  /***/ "fb15":
@@ -3419,13 +3419,13 @@ if (typeof window !== 'undefined') {
3419
3419
  // Indicate to webpack that this file can be concatenated
3420
3420
  /* harmony default export */ var setPublicPath = (null);
3421
3421
 
3422
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1413866d-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/BokaHumanV2.vue?vue&type=template&id=41cb9872
3423
- var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"boka-human-v2"},[_c('div',{staticClass:"humanEnterIcon",class:[_vm.unreadCount>0?'unreadCount':''],attrs:{"id":"humanEnterIcon"}},[(_vm.unreadCount<1)?[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"data:image/png;base64,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","alt":""},on:{"click":_vm.changeChatViewVisible}})]:[_c('span',{on:{"click":_vm.changeChatViewVisible}},[_vm._v(_vm._s(_vm.unreadCount>99?'99+' : _vm.unreadCount))])]],2),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"humanMainView",class:_vm.fullScreen?'full':''},[_c('div',{staticClass:"humanMainHeader my-dialog__header"},[_c('div',{staticClass:"humanMainHeaderLeft"}),_c('div',{staticClass:"humanMainHeaderCenter"},[_vm._v("客服")]),_c('div',{staticClass:"humanMainHeaderRight"},[_c('span',{on:{"click":function($event){_vm.visible=false},"touchstart":function($event){$event.stopPropagation();_vm.visible=false}}},[_c('img',{staticStyle:{"width":"14px"},attrs:{"src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAABzUlEQVR4AbzV207DQAwE0MKPA18Oe6ydKCnZdJNWRXFsj+ei9IXP25v/Evjdcn9b6a299OG5eCfwq0foCH19uvHiyah6An8gvRwQ+3q58eAVg8pIoGMB/YoI6+vpRssjQt6wWwIdAA5mRQAznyka2mh4wmpfBwIcEMyKEGaeKVyacHnBsm++MCACYnYGsOyjjoObOw9Y9ur3X1hgeyEStLEeRrBadl5uODnRwrIvfRSIQEBoVgxh5nXB3ILRwLJv+lEgIiEDs2IMMyszzKxwYebdehRIxICRWQmAKTNM4cDMw5oJJGbE0KwEKbNywzEf1mwgE4aMzeuCua2x4XwmcGhy5nAm0Fesf8bkwNyyH/bZQIaMY+ZnVNndcLIP+0wgI4YxEQRT5uA4sOy7/VEgA0YRC4BlN8Oy48Ky/+tHgYQMImIMy54Oc8tOA8u+6aNAAsKQGcKy33c3nOC0sOxL3wtEJAiJESz7qOPg5s4Dlr36fSACYh3biwGsjVMPLk3IvGDZN/8PHRByJIRln+00tOHzhNWeLwQ4FNheBLA2XnpoeUTMG7Z8ISBHxDoGuNh58Iq8MvKFOeiIIT3befHkUz2BDh8N1Vt76cNz8f4DAAD//8lliLUAAAAGSURBVAMAfghcOXqadykAAAAASUVORK5CYII=","alt":""}})])])]),_c('iframe',{attrs:{"id":"iframe","src":_vm.src,"frameborder":"0","allowfullscreen":""}})])])
3422
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"23f47b26-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/BokaHumanV2.vue?vue&type=template&id=2c9dd339
3423
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"boka-human-v2"},[_c('div',{staticStyle:{"position":"fixed","width":"100vw","height":"100vh","top":"0","left":"0","display":"none"},attrs:{"id":"humanViewOuter"}}),(!_vm.hideEnter)?_c('div',{staticClass:"humanEnterIcon",class:[_vm.unreadCount>0?'unreadCount':''],attrs:{"id":"humanEnterIcon"}},[(_vm.unreadCount<1)?[_c('img',{staticStyle:{"width":"100%"},attrs:{"src":"https://static.bokao2o.com/img_humanIcon.png","alt":""},on:{"click":_vm.changeChatViewVisible}})]:[_c('span',{on:{"click":_vm.changeChatViewVisible}},[_vm._v(_vm._s(_vm.unreadCount>99?'99+' : _vm.unreadCount))])]],2):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"humanMainView",class:_vm.fullScreen?'full':''},[_c('div',{staticClass:"humanMainHeader my-dialog__header"},[_c('div',{staticClass:"humanMainHeaderLeft"}),_c('div',{staticClass:"humanMainHeaderCenter"},[_vm._v(_vm._s(_vm.viewTitle||"客服"))]),_c('div',{staticClass:"humanMainHeaderRight"},[(!_vm.hideClose)?_c('span',{on:{"click":function($event){_vm.visible=false},"touchstart":function($event){$event.stopPropagation();_vm.visible=false}}},[_c('img',{staticStyle:{"width":"14px"},attrs:{"src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAABzUlEQVR4AbzV207DQAwE0MKPA18Oe6ydKCnZdJNWRXFsj+ei9IXP25v/Evjdcn9b6a299OG5eCfwq0foCH19uvHiyah6An8gvRwQ+3q58eAVg8pIoGMB/YoI6+vpRssjQt6wWwIdAA5mRQAznyka2mh4wmpfBwIcEMyKEGaeKVyacHnBsm++MCACYnYGsOyjjoObOw9Y9ur3X1hgeyEStLEeRrBadl5uODnRwrIvfRSIQEBoVgxh5nXB3ILRwLJv+lEgIiEDs2IMMyszzKxwYebdehRIxICRWQmAKTNM4cDMw5oJJGbE0KwEKbNywzEf1mwgE4aMzeuCua2x4XwmcGhy5nAm0Fesf8bkwNyyH/bZQIaMY+ZnVNndcLIP+0wgI4YxEQRT5uA4sOy7/VEgA0YRC4BlN8Oy48Ky/+tHgYQMImIMy54Oc8tOA8u+6aNAAsKQGcKy33c3nOC0sOxL3wtEJAiJESz7qOPg5s4Dlr36fSACYh3biwGsjVMPLk3IvGDZN/8PHRByJIRln+00tOHzhNWeLwQ4FNheBLA2XnpoeUTMG7Z8ISBHxDoGuNh58Iq8MvKFOeiIIT3befHkUz2BDh8N1Vt76cNz8f4DAAD//8lliLUAAAAGSURBVAMAfghcOXqadykAAAAASUVORK5CYII=","alt":""}})]):_vm._e()])]),_c('iframe',{attrs:{"id":"iframe","src":_vm.src,"frameborder":"0","allowfullscreen":""}})])])
3424
3424
  }
3425
3425
  var staticRenderFns = []
3426
3426
 
3427
3427
 
3428
- // CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=template&id=41cb9872
3428
+ // CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=template&id=2c9dd339
3429
3429
 
3430
3430
  // EXTERNAL MODULE: ./node_modules/interactjs/dist/interact.min.js
3431
3431
  var interact_min = __webpack_require__("5014");
@@ -3474,6 +3474,18 @@ var dist_viewer = __webpack_require__("0808");
3474
3474
  fullScreen: {
3475
3475
  type: [Boolean,Number],
3476
3476
  default: 0
3477
+ },
3478
+ hideEnter: {
3479
+ type: Boolean,
3480
+ default: false
3481
+ },
3482
+ hideClose: {
3483
+ type: Boolean,
3484
+ default: false
3485
+ },
3486
+ viewTitle: {
3487
+ type: String,
3488
+ default: '客服'
3477
3489
  }
3478
3490
  },
3479
3491
  computed: {
@@ -3481,13 +3493,15 @@ var dist_viewer = __webpack_require__("0808");
3481
3493
  let {product,subCustType} = this;
3482
3494
  if(product.toLowerCase()==="mase" || (product.toLowerCase()==="aime" && subCustType==="overseas")){
3483
3495
  return "https://service.mase.cloud"
3496
+ }else if(product=="web"){
3497
+ return "https://sale.shboka.com"
3484
3498
  }
3485
3499
  return "https://human.shboka.com"
3486
3500
  // return "https://baidu.com"
3487
3501
  // return "http://192.168.3.12:5173"
3488
3502
  },
3489
3503
  src(){
3490
- let {token,product,custType,subCustType,source,terminal=""} = this;
3504
+ let {token,product,custType="",subCustType,source,terminal=""} = this;
3491
3505
  // return `https://human.shboka.com/?token=${token}&product=${product}&subCustType=${subCustType}&human=1&isIFrame=true&time=${new Date().getTime()}`;
3492
3506
  let {protocol,host} = location;
3493
3507
  let domain = `${protocol}//${host}`
@@ -3505,8 +3519,15 @@ var dist_viewer = __webpack_require__("0808");
3505
3519
  console.log(`%c 客服组件属性 `, 'background: #f00; color: #fff; padding: 2px 2px; border-radius: 3px;')
3506
3520
  console.log(this.$props)
3507
3521
  setTimeout(()=>{
3508
- this.icon();
3509
- this.chatMainInitDrag();
3522
+ if(!this.hideEnter){
3523
+ this.icon();
3524
+ }else{
3525
+ this.visible=true;
3526
+ }
3527
+
3528
+ if(!this.fullScreen){
3529
+ this.chatMainInitDrag();
3530
+ }
3510
3531
  })
3511
3532
 
3512
3533
  window.humanFunction = {
@@ -3530,6 +3551,8 @@ var dist_viewer = __webpack_require__("0808");
3530
3551
  if(type=="add" && !this.visible){
3531
3552
  this.unreadCount+=count;
3532
3553
  }
3554
+ }else if(type=="toAi"){//切换到智能体了,需要隐藏顶部
3555
+
3533
3556
  }
3534
3557
  // console.log("外部[收到]了===>>>>",info);
3535
3558
  }
@@ -3644,8 +3667,21 @@ var dist_viewer = __webpack_require__("0808");
3644
3667
  inertia: true,
3645
3668
  modifiers: [
3646
3669
  interact_min_default.a.modifiers.restrictRect({
3647
- restriction: 'body',
3670
+ restriction: '#humanViewOuter',
3648
3671
  endOnly: true
3672
+ /*restriction: () => {
3673
+ const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
3674
+ const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
3675
+
3676
+ return {
3677
+ left: scrollLeft,
3678
+ top: scrollTop,
3679
+ right: scrollLeft + window.innerWidth,
3680
+ bottom: scrollTop + window.innerHeight
3681
+ };
3682
+ },
3683
+ elementRect: { left: 0, right: 1, top: 0, bottom: 1 },
3684
+ endOnly: false*/
3649
3685
  })
3650
3686
  ],
3651
3687
  autoScroll: true,
@@ -3660,6 +3696,15 @@ var dist_viewer = __webpack_require__("0808");
3660
3696
  // update the posiion attributes
3661
3697
  target.setAttribute('data-x', x)
3662
3698
  target.setAttribute('data-y', y)
3699
+
3700
+
3701
+ /*const target = event.target;
3702
+ const x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
3703
+ const y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
3704
+
3705
+ target.style.transform = `translate(${x}px, ${y}px)`;
3706
+ target.setAttribute('data-x', x);
3707
+ target.setAttribute('data-y', y);*/
3663
3708
  },
3664
3709
  end(event) {
3665
3710
  }
@@ -3671,8 +3716,8 @@ var dist_viewer = __webpack_require__("0808");
3671
3716
 
3672
3717
  // CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=script&lang=js
3673
3718
  /* harmony default export */ var src_BokaHumanV2vue_type_script_lang_js = (BokaHumanV2vue_type_script_lang_js);
3674
- // EXTERNAL MODULE: ./src/BokaHumanV2.vue?vue&type=style&index=0&id=41cb9872&prod&lang=less
3675
- var BokaHumanV2vue_type_style_index_0_id_41cb9872_prod_lang_less = __webpack_require__("bb87");
3719
+ // EXTERNAL MODULE: ./src/BokaHumanV2.vue?vue&type=style&index=0&id=2c9dd339&prod&lang=less
3720
+ var BokaHumanV2vue_type_style_index_0_id_2c9dd339_prod_lang_less = __webpack_require__("6b20");
3676
3721
 
3677
3722
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js
3678
3723
  /* globals __VUE_SSR_CONTEXT__ */