boka-human-cliend-v2 0.0.37 → 0.0.39
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.
- package/dist/boka-human-v2.common.js +70 -29
- package/dist/boka-human-v2.css +1 -1
- package/dist/boka-human-v2.umd.js +70 -29
- package/dist/boka-human-v2.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/BokaHumanV2.vue +68 -12
|
@@ -96,11 +96,29 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
+
/***/ "02bc":
|
|
100
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
// extracted by mini-css-extract-plugin
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
99
106
|
/***/ "0808":
|
|
100
107
|
/***/ (function(module, exports, __webpack_require__) {
|
|
101
108
|
|
|
102
109
|
// extracted by mini-css-extract-plugin
|
|
103
110
|
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ "0e42":
|
|
114
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
115
|
+
|
|
116
|
+
"use strict";
|
|
117
|
+
/* 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_75b27358_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("02bc");
|
|
118
|
+
/* 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_75b27358_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_75b27358_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
119
|
+
/* unused harmony reexport * */
|
|
120
|
+
|
|
121
|
+
|
|
104
122
|
/***/ }),
|
|
105
123
|
|
|
106
124
|
/***/ "5014":
|
|
@@ -142,24 +160,6 @@ module.exports = function(module) {
|
|
|
142
160
|
};
|
|
143
161
|
|
|
144
162
|
|
|
145
|
-
/***/ }),
|
|
146
|
-
|
|
147
|
-
/***/ "a1de":
|
|
148
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
149
|
-
|
|
150
|
-
// extracted by mini-css-extract-plugin
|
|
151
|
-
|
|
152
|
-
/***/ }),
|
|
153
|
-
|
|
154
|
-
/***/ "be4b":
|
|
155
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
156
|
-
|
|
157
|
-
"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_5c4d3f36_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a1de");
|
|
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_5c4d3f36_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_5c4d3f36_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
160
|
-
/* unused harmony reexport * */
|
|
161
|
-
|
|
162
|
-
|
|
163
163
|
/***/ }),
|
|
164
164
|
|
|
165
165
|
/***/ "c82c":
|
|
@@ -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":"
|
|
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,iVBORw0KGgoAAAANSUhEUgAAAEIAAABACAYAAACunKHjAAAF70lEQVR4Aeyai5HbIBCGrasnPeSuipQTp5t0kUsRqUf5P45lFoRkJMtInnGGNYjHsvuxoMfl7dLp3ziO75JrlD/KTVQMya6tz7WTaWGah4KQezgfHNRsfyQ/o7wrN1ExJLu2Pj81nsR44NAeOj7i5yEgZD2GjzIY53EA0eWmxFjgAESqx4dEyq4gZKUBwPA5rz/V4OWXrk2sXlWziUgByq5AdgEhAGELyPQ5ADj4ofaPYRhKuQ7DYPKhMjLQVwIgxqqYpRAlmhfwlLPGLRd3g8AYTWxbQMWUcCA4FZ37VE5d6rBUoK8EQEGH+gJFWZYAv0t03AVCEACAMd46nMV4hLJv21yOUIiUKhDZctdW2QRCk9pWKMPylwzeFUBJTvqJkhoQzo7NMDaBkHFEQgkBAJsNkc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CUlI0HXdccnTOF6Mk+3iQQjCAyJLX/1UozYgpOEwnauiHsZRyRqywlbE0XsUAdABDKsfrytTXSVSwIBt/4lA2Dqhg0xH+UMwVqPywBQZPXwh47kWh2yqir2p9FhJROklRUB046NlZgvISDC1GxmsIBvaRSo4hKIPhu2DrrrO9Ylm+CKAfccy3jMRxhPyNz6ghzO/lTP40P20D5qIH0UZYSh/cmCGjoBkLGs4LJKSZvFCKHCAEgUtNx9+HdBUSEMFlBgeAuVRM1ZYmxNQC2FYCcDVh70QVExaiwgjp/OJRrwiGNk5WhoYo2tgFCOVTe89MLhH+rBULLChIppW84jfMI5bJ983UvEN5AD8XXl+VyKwBwdwA26REgOPlLJ82e2ZxtNNu4Q0MvEGWY250gQNFhWubcHTggzcVdt4Ep9XkXEFpNHEH83DiKwzUpI6YE6fXsUu4CIlqKMyWM2LSYcTZsGLeoc9LYDQRRIeGNtRUIznM4ttxhJo6tregGwgwTDJ4bcJBnBcBkonZL9AGGDX1o/h8AAP//85TBrAAAAAZJREFUAwCgHqvQJpFL5wAAAABJRU5ErkJggg==","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":"4bd8d959-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=75b27358
|
|
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":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABACAYAAACunKHjAAAF70lEQVR4Aeyai5HbIBCGrasnPeSuipQTp5t0kUsRqUf5P45lFoRkJMtInnGGNYjHsvuxoMfl7dLp3ziO75JrlD/KTVQMya6tz7WTaWGah4KQezgfHNRsfyQ/o7wrN1ExJLu2Pj81nsR44NAeOj7i5yEgZD2GjzIY53EA0eWmxFjgAESqx4dEyq4gZKUBwPA5rz/V4OWXrk2sXlWziUgByq5AdgEhAGELyPQ5ADj4ofaPYRhKuQ7DYPKhMjLQVwIgxqqYpRAlmhfwlLPGLRd3g8AYTWxbQMWUcCA4FZ37VE5d6rBUoK8EQEGH+gJFWZYAv0t03AVCEACAMd46nMV4hLJv21yOUIiUKhDZctdW2QRCk9pWKMPylwzeFUBJTvqJkhoQzo7NMDaBkHFEQgkBAJsNkc5VCSAaUEYHMLBNTevSahCKhnIiwh8I5Otmv7P3DAyidfWCrAIhCEzgI4ED8BAIxjDC4I5kVeREBrZSbpJmEBFCdjDKiNKApkn37iQ7iMbSFmD4RVuctglEDYK0lhOr6rgUYUzOjFaLmkBUlHF3YBUqTcdVCQbbwcNoPi9ugqhEAxCY8DiPF2aOMPwiNW2RmyA0Z3ku7AJBeh+ZfFQwT+YDFaUsgojR4MeUE/i205QVFUQEYjaxRRYPzkUQ0vJdkpImeIZoMHvLRVuMilsgPMVSsU14ylyLRkQgTfbNgqhsi2alTTP36eQXb3F7zIKQnX5b8AT5dCBiVMiVlGa3xxIIvy3+JlXPV2hawCoIbQsPAdeblNHxhOIXsfQrmVsFodZsQCXE1OVpUtMizoF4Gi/XGlqJ9qCiBUQT0aDthD+t0TwHwt8xuO0I5LjLR9I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lqKMyWM2LSYcTZsGLeoc9LYDQRRIeGNtRUIznM4ttxhJo6tregGwgwTDJ4bcJBnBcBkonZL9AGGDX1o/h8AAP//85TBrAAAAAZJREFUAwCgHqvQJpFL5wAAAABJRU5ErkJggg==","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=
|
|
3428
|
+
// CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=template&id=75b27358
|
|
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: {
|
|
@@ -3487,10 +3499,10 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3487
3499
|
// return "http://192.168.3.12:5173"
|
|
3488
3500
|
},
|
|
3489
3501
|
src(){
|
|
3490
|
-
let {token,product,custType,subCustType,source,terminal=""} = this;
|
|
3502
|
+
let {token,product,custType="",subCustType,source,terminal=""} = this;
|
|
3491
3503
|
// return `https://human.shboka.com/?token=${token}&product=${product}&subCustType=${subCustType}&human=1&isIFrame=true&time=${new Date().getTime()}`;
|
|
3492
|
-
let {protocol,host
|
|
3493
|
-
let domain = `${protocol}//${host}
|
|
3504
|
+
let {protocol,host} = location;
|
|
3505
|
+
let domain = `${protocol}//${host}`
|
|
3494
3506
|
return `${this.host}?token=${token}&product=${product}&custType=${custType}&subCustType=${subCustType}&source=${source}&human=1&isIFrame=true&terminal=${terminal}&domain=${encodeURIComponent(domain)}&time=${new Date().getTime()}`;
|
|
3495
3507
|
}
|
|
3496
3508
|
},
|
|
@@ -3505,8 +3517,15 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3505
3517
|
console.log(`%c 客服组件属性 `, 'background: #f00; color: #fff; padding: 2px 2px; border-radius: 3px;')
|
|
3506
3518
|
console.log(this.$props)
|
|
3507
3519
|
setTimeout(()=>{
|
|
3508
|
-
this.
|
|
3509
|
-
|
|
3520
|
+
if(!this.hideEnter){
|
|
3521
|
+
this.icon();
|
|
3522
|
+
}else{
|
|
3523
|
+
this.visible=true;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
if(!this.fullScreen){
|
|
3527
|
+
this.chatMainInitDrag();
|
|
3528
|
+
}
|
|
3510
3529
|
})
|
|
3511
3530
|
|
|
3512
3531
|
window.humanFunction = {
|
|
@@ -3644,8 +3663,21 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3644
3663
|
inertia: true,
|
|
3645
3664
|
modifiers: [
|
|
3646
3665
|
interact_min_default.a.modifiers.restrictRect({
|
|
3647
|
-
restriction: '
|
|
3666
|
+
restriction: '#humanViewOuter',
|
|
3648
3667
|
endOnly: true
|
|
3668
|
+
/*restriction: () => {
|
|
3669
|
+
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
3670
|
+
const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
|
|
3671
|
+
|
|
3672
|
+
return {
|
|
3673
|
+
left: scrollLeft,
|
|
3674
|
+
top: scrollTop,
|
|
3675
|
+
right: scrollLeft + window.innerWidth,
|
|
3676
|
+
bottom: scrollTop + window.innerHeight
|
|
3677
|
+
};
|
|
3678
|
+
},
|
|
3679
|
+
elementRect: { left: 0, right: 1, top: 0, bottom: 1 },
|
|
3680
|
+
endOnly: false*/
|
|
3649
3681
|
})
|
|
3650
3682
|
],
|
|
3651
3683
|
autoScroll: true,
|
|
@@ -3660,6 +3692,15 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3660
3692
|
// update the posiion attributes
|
|
3661
3693
|
target.setAttribute('data-x', x)
|
|
3662
3694
|
target.setAttribute('data-y', y)
|
|
3695
|
+
|
|
3696
|
+
|
|
3697
|
+
/*const target = event.target;
|
|
3698
|
+
const x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
|
|
3699
|
+
const y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
|
|
3700
|
+
|
|
3701
|
+
target.style.transform = `translate(${x}px, ${y}px)`;
|
|
3702
|
+
target.setAttribute('data-x', x);
|
|
3703
|
+
target.setAttribute('data-y', y);*/
|
|
3663
3704
|
},
|
|
3664
3705
|
end(event) {
|
|
3665
3706
|
}
|
|
@@ -3671,8 +3712,8 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3671
3712
|
|
|
3672
3713
|
// CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=script&lang=js
|
|
3673
3714
|
/* 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=
|
|
3675
|
-
var
|
|
3715
|
+
// EXTERNAL MODULE: ./src/BokaHumanV2.vue?vue&type=style&index=0&id=75b27358&prod&lang=less
|
|
3716
|
+
var BokaHumanV2vue_type_style_index_0_id_75b27358_prod_lang_less = __webpack_require__("0e42");
|
|
3676
3717
|
|
|
3677
3718
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
3678
3719
|
/* globals __VUE_SSR_CONTEXT__ */
|
package/dist/boka-human-v2.css
CHANGED
|
@@ -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
|
|
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}.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)}
|
|
@@ -96,11 +96,29 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
+
/***/ "02bc":
|
|
100
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
// extracted by mini-css-extract-plugin
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
99
106
|
/***/ "0808":
|
|
100
107
|
/***/ (function(module, exports, __webpack_require__) {
|
|
101
108
|
|
|
102
109
|
// extracted by mini-css-extract-plugin
|
|
103
110
|
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ "0e42":
|
|
114
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
115
|
+
|
|
116
|
+
"use strict";
|
|
117
|
+
/* 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_75b27358_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("02bc");
|
|
118
|
+
/* 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_75b27358_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_75b27358_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
119
|
+
/* unused harmony reexport * */
|
|
120
|
+
|
|
121
|
+
|
|
104
122
|
/***/ }),
|
|
105
123
|
|
|
106
124
|
/***/ "5014":
|
|
@@ -142,24 +160,6 @@ module.exports = function(module) {
|
|
|
142
160
|
};
|
|
143
161
|
|
|
144
162
|
|
|
145
|
-
/***/ }),
|
|
146
|
-
|
|
147
|
-
/***/ "a1de":
|
|
148
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
149
|
-
|
|
150
|
-
// extracted by mini-css-extract-plugin
|
|
151
|
-
|
|
152
|
-
/***/ }),
|
|
153
|
-
|
|
154
|
-
/***/ "be4b":
|
|
155
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
156
|
-
|
|
157
|
-
"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_5c4d3f36_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a1de");
|
|
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_5c4d3f36_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_5c4d3f36_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
160
|
-
/* unused harmony reexport * */
|
|
161
|
-
|
|
162
|
-
|
|
163
163
|
/***/ }),
|
|
164
164
|
|
|
165
165
|
/***/ "c82c":
|
|
@@ -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":"
|
|
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,iVBORw0KGgoAAAANSUhEUgAAAEIAAABACAYAAACunKHjAAAF70lEQVR4Aeyai5HbIBCGrasnPeSuipQTp5t0kUsRqUf5P45lFoRkJMtInnGGNYjHsvuxoMfl7dLp3ziO75JrlD/KTVQMya6tz7WTaWGah4KQezgfHNRsfyQ/o7wrN1ExJLu2Pj81nsR44NAeOj7i5yEgZD2GjzIY53EA0eWmxFjgAESqx4dEyq4gZKUBwPA5rz/V4OWXrk2sXlWziUgByq5AdgEhAGELyPQ5ADj4ofaPYRhKuQ7DYPKhMjLQVwIgxqqYpRAlmhfwlLPGLRd3g8AYTWxbQMWUcCA4FZ37VE5d6rBUoK8EQEGH+gJFWZYAv0t03AVCEACAMd46nMV4hLJv21yOUIiUKhDZctdW2QRCk9pWKMPylwzeFUBJTvqJkhoQzo7NMDaBkHFEQgkBAJsNkc5VCSAaUEYHMLBNTevSahCKhnIiwh8I5Otmv7P3DAyidfWCrAIhCEzgI4ED8BAIxjDC4I5kVeREBrZSbpJmEBFCdjDKiNKApkn37iQ7iMbSFmD4RVuctglEDYK0lhOr6rgUYUzOjFaLmkBUlHF3YBUqTcdVCQbbwcNoPi9ugqhEAxCY8DiPF2aOMPwiNW2RmyA0Z3ku7AJBeh+ZfFQwT+YDFaUsgojR4M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ZvFCKHCAEgUtNx9+HdBUSEMFlBgeAuVRM1ZYmxNQC2FYCcDVh70QVExaiwgjp/OJRrwiGNk5WhoYo2tgFCOVTe89MLhH+rBULLChIppW84jfMI5bJ983UvEN5AD8XXl+VyKwBwdwA26REgOPlLJ82e2ZxtNNu4Q0MvEGWY250gQNFhWubcHTggzcVdt4Ep9XkXEFpNHEH83DiKwzUpI6YE6fXsUu4CIlqKMyWM2LSYcTZsGLeoc9LYDQRRIeGNtRUIznM4ttxhJo6tregGwgwTDJ4bcJBnBcBkonZL9AGGDX1o/h8AAP//85TBrAAAAAZJREFUAwCgHqvQJpFL5wAAAABJRU5ErkJggg==","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":"4bd8d959-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=75b27358
|
|
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":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABACAYAAACunKHjAAAF70lEQVR4Aeyai5HbI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skJ0AAMbECLXhg2/jzPhGRPg7xCV2nCiwCrWjBLGqdysckdcWssGOLCroDwhyk0kHayjyrJ+MORSGt00LxYr7qklZffxC0v4DEKdxAos6SgYDEB3nPu9ULxBxbV4gXiAigZi9IuIFIhKI2SsiZkBkT5mxTy0707NH9jxQM3amzvvwj4jYqijprzyppbbehZan3FofQPjHZV5AFh9RpYR2/5Ljx/f2m3ejciHD2+QNQ7z96Pj9VllNXq1xdqJLEAinTMmk0zEV2WLIzqr9mKY2QOEHl0gYS0SkCwpRgKEx41U/JihAYpeQzb6yh1Z+OogW86ppfGSU9hPp4Rum+nkIRANjvz7MREWBjDr6xOqbZArUiT8DBiUqnyEt2c8ClvZjc/q2YhFhZGrKGFAKkZCUlI0HXdccnTOF6Mk+3iQQjCAyJLX/1UozYgpOEwnauiHsZRyRqywlbE0XsUAdABDKsfrytTXSVSwIBt/4lA2Dqhg0xH+UMwVqPywBQZPXwh47kWh2yqir2p9FhJROklRUB046NlZgvISDC1GxmsIBvaRSo4hKIPhu2DrrrO9Ylm+CKAfccy3jMRxhPyNz6ghzO/lTP40P20D5qIH0UZYSh/cmCGjoBkLGs4LJKSZvFCKHCAEgUtNx9+HdBUSEMFlBgeAuVRM1ZYmxNQC2FYCcDVh70QVExaiwgjp/OJRrwiGNk5WhoYo2tgFCOVTe89MLhH+rBULLChIppW84jfMI5bJ983UvEN5AD8XXl+VyKwBwdwA26REgOPlLJ82e2ZxtNNu4Q0MvEGWY250gQNFhWubcHTggzcVdt4Ep9XkXEFpNHEH83DiKwzUpI6YE6fXsUu4CIlqKMyWM2LSYcTZsGLeoc9LYDQRRIeGNtRUIznM4ttxhJo6tregGwgwTDJ4bcJBnBcBkonZL9AGGDX1o/h8AAP//85TBrAAAAAZJREFUAwCgHqvQJpFL5wAAAABJRU5ErkJggg==","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=
|
|
3428
|
+
// CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=template&id=75b27358
|
|
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: {
|
|
@@ -3487,10 +3499,10 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3487
3499
|
// return "http://192.168.3.12:5173"
|
|
3488
3500
|
},
|
|
3489
3501
|
src(){
|
|
3490
|
-
let {token,product,custType,subCustType,source,terminal=""} = this;
|
|
3502
|
+
let {token,product,custType="",subCustType,source,terminal=""} = this;
|
|
3491
3503
|
// return `https://human.shboka.com/?token=${token}&product=${product}&subCustType=${subCustType}&human=1&isIFrame=true&time=${new Date().getTime()}`;
|
|
3492
|
-
let {protocol,host
|
|
3493
|
-
let domain = `${protocol}//${host}
|
|
3504
|
+
let {protocol,host} = location;
|
|
3505
|
+
let domain = `${protocol}//${host}`
|
|
3494
3506
|
return `${this.host}?token=${token}&product=${product}&custType=${custType}&subCustType=${subCustType}&source=${source}&human=1&isIFrame=true&terminal=${terminal}&domain=${encodeURIComponent(domain)}&time=${new Date().getTime()}`;
|
|
3495
3507
|
}
|
|
3496
3508
|
},
|
|
@@ -3505,8 +3517,15 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3505
3517
|
console.log(`%c 客服组件属性 `, 'background: #f00; color: #fff; padding: 2px 2px; border-radius: 3px;')
|
|
3506
3518
|
console.log(this.$props)
|
|
3507
3519
|
setTimeout(()=>{
|
|
3508
|
-
this.
|
|
3509
|
-
|
|
3520
|
+
if(!this.hideEnter){
|
|
3521
|
+
this.icon();
|
|
3522
|
+
}else{
|
|
3523
|
+
this.visible=true;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
if(!this.fullScreen){
|
|
3527
|
+
this.chatMainInitDrag();
|
|
3528
|
+
}
|
|
3510
3529
|
})
|
|
3511
3530
|
|
|
3512
3531
|
window.humanFunction = {
|
|
@@ -3644,8 +3663,21 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3644
3663
|
inertia: true,
|
|
3645
3664
|
modifiers: [
|
|
3646
3665
|
interact_min_default.a.modifiers.restrictRect({
|
|
3647
|
-
restriction: '
|
|
3666
|
+
restriction: '#humanViewOuter',
|
|
3648
3667
|
endOnly: true
|
|
3668
|
+
/*restriction: () => {
|
|
3669
|
+
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
3670
|
+
const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
|
|
3671
|
+
|
|
3672
|
+
return {
|
|
3673
|
+
left: scrollLeft,
|
|
3674
|
+
top: scrollTop,
|
|
3675
|
+
right: scrollLeft + window.innerWidth,
|
|
3676
|
+
bottom: scrollTop + window.innerHeight
|
|
3677
|
+
};
|
|
3678
|
+
},
|
|
3679
|
+
elementRect: { left: 0, right: 1, top: 0, bottom: 1 },
|
|
3680
|
+
endOnly: false*/
|
|
3649
3681
|
})
|
|
3650
3682
|
],
|
|
3651
3683
|
autoScroll: true,
|
|
@@ -3660,6 +3692,15 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3660
3692
|
// update the posiion attributes
|
|
3661
3693
|
target.setAttribute('data-x', x)
|
|
3662
3694
|
target.setAttribute('data-y', y)
|
|
3695
|
+
|
|
3696
|
+
|
|
3697
|
+
/*const target = event.target;
|
|
3698
|
+
const x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx;
|
|
3699
|
+
const y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
|
|
3700
|
+
|
|
3701
|
+
target.style.transform = `translate(${x}px, ${y}px)`;
|
|
3702
|
+
target.setAttribute('data-x', x);
|
|
3703
|
+
target.setAttribute('data-y', y);*/
|
|
3663
3704
|
},
|
|
3664
3705
|
end(event) {
|
|
3665
3706
|
}
|
|
@@ -3671,8 +3712,8 @@ var dist_viewer = __webpack_require__("0808");
|
|
|
3671
3712
|
|
|
3672
3713
|
// CONCATENATED MODULE: ./src/BokaHumanV2.vue?vue&type=script&lang=js
|
|
3673
3714
|
/* 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=
|
|
3675
|
-
var
|
|
3715
|
+
// EXTERNAL MODULE: ./src/BokaHumanV2.vue?vue&type=style&index=0&id=75b27358&prod&lang=less
|
|
3716
|
+
var BokaHumanV2vue_type_style_index_0_id_75b27358_prod_lang_less = __webpack_require__("0e42");
|
|
3676
3717
|
|
|
3677
3718
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
3678
3719
|
/* globals __VUE_SSR_CONTEXT__ */
|