yxspeechrecognition 2.1.2 → 2.1.3
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/YxSpeechRecognition.common.js +2647 -1118
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +2649 -1120
- package/YxSpeechRecognition.umd.js.map +1 -1
- package/YxSpeechRecognition.umd.min.js +2 -2
- package/YxSpeechRecognition.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -35,35 +35,56 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAABECAYAAAAs
|
|
|
35
35
|
|
|
36
36
|
/***/ }),
|
|
37
37
|
|
|
38
|
-
/***/
|
|
38
|
+
/***/ 73:
|
|
39
39
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
40
40
|
|
|
41
41
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
42
42
|
|
|
43
43
|
// load the styles
|
|
44
|
-
var content = __webpack_require__(
|
|
44
|
+
var content = __webpack_require__(229);
|
|
45
45
|
if(content.__esModule) content = content.default;
|
|
46
46
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
47
47
|
if(content.locals) module.exports = content.locals;
|
|
48
48
|
// add the styles to the DOM
|
|
49
49
|
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
50
|
-
var update = add("
|
|
50
|
+
var update = add("b75df392", content, true, {"sourceMap":false,"shadowMode":false});
|
|
51
51
|
|
|
52
52
|
/***/ }),
|
|
53
53
|
|
|
54
|
-
/***/
|
|
54
|
+
/***/ 107:
|
|
55
55
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
56
56
|
|
|
57
57
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
58
58
|
|
|
59
59
|
// load the styles
|
|
60
|
-
var content = __webpack_require__(
|
|
60
|
+
var content = __webpack_require__(871);
|
|
61
61
|
if(content.__esModule) content = content.default;
|
|
62
62
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
63
63
|
if(content.locals) module.exports = content.locals;
|
|
64
64
|
// add the styles to the DOM
|
|
65
65
|
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
66
|
-
var update = add("
|
|
66
|
+
var update = add("1d20db1b", content, true, {"sourceMap":false,"shadowMode":false});
|
|
67
|
+
|
|
68
|
+
/***/ }),
|
|
69
|
+
|
|
70
|
+
/***/ 229:
|
|
71
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72
|
+
|
|
73
|
+
"use strict";
|
|
74
|
+
__webpack_require__.r(__webpack_exports__);
|
|
75
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
76
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
77
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
78
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
79
|
+
// Imports
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
83
|
+
// Module
|
|
84
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-03712d72] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.box[data-v-03712d72]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--2e19521b)*.57);z-index:20}.box .title[data-v-03712d72]{justify-content:space-between;width:100%;height:calc(var(--2e19521b)*2.29);padding:0 calc(var(--2e19521b)*.76);box-sizing:border-box;background:linear-gradient(270deg,rgba(0,126,245,.94),rgba(54,141,253,.75) 70%,rgba(60,125,255,.51));border-radius:calc(var(--2e19521b)*.57) calc(var(--2e19521b)*.57) 0 0}.box .title[data-v-03712d72],.box .title-icon[data-v-03712d72]{display:flex;align-items:center}.box .title-icon[data-v-03712d72]{gap:calc(var(--2e19521b)*.38)}.box .title-icon img[data-v-03712d72]{width:calc(var(--2e19521b)*1);height:calc(var(--2e19521b)*1)}.box .title-icon span[data-v-03712d72]{font-size:calc(var(--2e19521b)*1.14);font-weight:800;color:#fff}.box .title .close[data-v-03712d72]{cursor:pointer}.box .title .close img[data-v-03712d72]{width:calc(var(--2e19521b)*1.1)}.box .content[data-v-03712d72]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:url(http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon9-pl26do__.png) no-repeat center 35%;color:#fff;background-size:45%}.box .content span[data-v-03712d72]{margin-top:calc(var(--2e19521b)*6.5);font-size:calc(var(--2e19521b)*1)}.box .message-list[data-v-03712d72]{overflow:hidden;padding:calc(var(--2e19521b)*.58);box-sizing:border-box;padding-right:calc(var(--2e19521b)*.29)}.box .message-list-inner[data-v-03712d72]{height:100%;display:flex;flex-direction:column;gap:calc(var(--2e19521b)*.53);overflow-y:overlay}.displayAssistant[data-v-03712d72]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.displayAssistant .icon1[data-v-03712d72]{width:calc(var(--2e19521b)*3.76);height:calc(var(--2e19521b)*3.88)}.displayAssistant .icon1 img[data-v-03712d72]{width:100%;height:100%}.displayAssistant .bubbleBox[data-v-03712d72]{position:absolute;top:0;left:calc(var(--2e19521b)*3.76);width:-moz-max-content;width:max-content;min-width:-moz-min-content;min-width:min-content}.displayAssistant .bubbleBox .loading-box[data-v-03712d72]{font-size:calc(var(--2e19521b)*.8);display:flex;align-items:center}.displayAssistant .bubbleBox .loging-icon[data-v-03712d72]{width:calc(var(--2e19521b)*1.26);height:calc(var(--2e19521b)*1.28);margin-right:calc(var(--2e19521b)*.4)}.displayAssistant .bubbleBox .loging-icon img[data-v-03712d72]{width:100%;height:100%}.displayAssistant .bubbleBox .box-container[data-v-03712d72]{border-top:calc(var(--2e19521b)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--2e19521b)*.2)}.displayAssistant .bubbleBox .box-container .mr-l-20[data-v-03712d72]{margin-left:calc(var(--2e19521b)*.416)}.displayAssistant .bubbleBox .item-box[data-v-03712d72]{display:flex;overflow:hidden;margin:calc(var(--2e19521b)*.208) 0}.displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-03712d72]{background-color:#ff4e4e}.displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-03712d72]{background-color:#ff6e1d}.displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-03712d72]{background-color:#4fc94d}.displayAssistant .bubbleBox .item-box .item-box-index[data-v-03712d72]{flex-shrink:0;width:calc(var(--2e19521b)*1.2);font-size:calc(var(--2e19521b)*.9);height:calc(var(--2e19521b)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--2e19521b)*.1);margin-right:calc(var(--2e19521b)*.1)}.displayAssistant .bubbleBox .item-box .item-box-content[data-v-03712d72]{overflow:hidden}.displayAssistant .bubbleBox .item-box .item-box-label[data-v-03712d72]{display:inline-block;width:auto;font-size:calc(var(--2e19521b)*.9);border-radius:calc(var(--2e19521b)*.104);padding:0 calc(var(--2e19521b)*.167)}.displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-03712d72]{font-size:calc(var(--2e19521b)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.displayAssistant .bubbleBox span[data-v-03712d72]{display:block;max-width:calc(var(--2e19521b)*19.21);font-size:calc(var(--2e19521b)*1);color:#fff;word-break:break-all}.displayAssistant .bubbleBox-suggest[data-v-03712d72],.displayAssistant .bubbleBox-title[data-v-03712d72]{border-radius:calc(var(--2e19521b)*.27);padding:calc(var(--2e19521b)*.38);box-sizing:border-box}.displayAssistant .bubbleBox-suggest[data-v-03712d72]{background-color:rgba(13,23,135,.85);box-shadow:0 calc(var(--2e19521b)*.083) calc(var(--2e19521b)*.314) rgba(106,17,203,.3)}.displayAssistant .bubbleBox-title-hi[data-v-03712d72]{max-width:calc(var(--2e19521b)*9.21)}.displayAssistant .bubbleBox-title[data-v-03712d72]{margin-bottom:calc(var(--2e19521b)*.3125);background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--2e19521b)*.57) 0 #d4d9ff;max-height:calc(var(--2e19521b)*41.6);overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.displayAssistant .bubbleBox-title[data-v-03712d72]::-webkit-scrollbar{display:none;width:0;height:0}.displayAssistant .bubbleBox-title[data-v-03712d72]:after,.displayAssistant .bubbleBox-title[data-v-03712d72]:before{content:\"\";display:block;position:absolute}.displayAssistant .bubbleBox-to[data-v-03712d72]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--2e19521b)*.57) 0 #fff3b4}.displayAssistant .bubbleBox-to[data-v-03712d72]:before{border-right:calc(var(--2e19521b)*.5) solid transparent}.displayAssistant .bubbleBox-to[data-v-03712d72]:after{border-top:calc(var(--2e19521b)*.25) solid transparent;border-bottom:calc(var(--2e19521b)*.25) solid transparent;border-right:calc(var(--2e19521b)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--2e19521b)*-.46));left:0;top:calc(var(--2e19521b)*.48)}.inputContainer[data-v-03712d72]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--2e19521b)*.57)}.inputContainer .inputBox[data-v-03712d72]{margin:calc(var(--2e19521b)*.083);flex:1;width:100%;height:calc(var(--2e19521b)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--2e19521b)*.57);font-size:calc(var(--2e19521b)*1);color:#fff;padding:0 calc(var(--2e19521b)*.417);outline:none}.inputContainer .inputButton[data-v-03712d72]{margin-right:calc(var(--2e19521b)*.417);flex-shrink:0}.inputContainer .inputButton img[data-v-03712d72]{width:calc(var(--2e19521b)*1.5);height:calc(var(--2e19521b)*1.5)}.dropdown[data-v-03712d72]{display:flex;position:relative;width:calc(var(--2e19521b)*3.75);align-items:center;justify-content:center;font-size:calc(var(--2e19521b)*.8);color:#fff;padding:calc(var(--2e19521b)*.104) calc(var(--2e19521b)*.3125);margin:calc(var(--2e19521b)*.208) calc(var(--2e19521b)*.625) calc(var(--2e19521b)*.208);border-radius:calc(var(--2e19521b)*.18);background:rgba(51,136,255,.52)}.dropdown .dropdown-btn[data-v-03712d72]{cursor:pointer}.dropdown .dropdown-options[data-v-03712d72]{position:absolute;bottom:100%;left:0;right:0;border-radius:calc(var(--2e19521b)*.167);margin-bottom:calc(var(--2e19521b)*.208);width:100%;min-width:calc(var(--2e19521b)*3.33);background-color:rgba(13,23,135,.85);box-shadow:0 calc(var(--2e19521b)*.083) calc(var(--2e19521b)*.3125) rgba(106,17,203,.3);z-index:10;max-height:calc(var(--2e19521b)*8.33);overflow-y:auto}.dropdown .dropdown-item[data-v-03712d72]{padding:calc(var(--2e19521b)*.104) calc(var(--2e19521b)*.416);cursor:pointer;transition:background .2s}.dropdown .dropdown-item[data-v-03712d72]:hover{background-color:rgba(51,136,255,.3)}.dropdown .dropdown-item.selected[data-v-03712d72]{background-color:rgba(51,136,255,.51);color:hsla(0,0%,100%,.9)}", ""]);
|
|
85
|
+
// Exports
|
|
86
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
87
|
+
|
|
67
88
|
|
|
68
89
|
/***/ }),
|
|
69
90
|
|
|
@@ -447,7 +468,7 @@ module.exports = function (cssWithMappingToString) {
|
|
|
447
468
|
/***/ (function(module) {
|
|
448
469
|
|
|
449
470
|
"use strict";
|
|
450
|
-
module.exports = "data:image/png;base64,
|
|
471
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAByFBMVEUAAACPyf+z2f+z2v+nzv/R6Pzb7/3j6vjM5f3s9Pyj0v232f/e7Pqm1P7H4v3A4P2y2P6f0P7D4f7F4/7F4/2s1f7J5P+Ryf/V6vzl8fuo1P693v2m0/7s9fu73f7C4f3g8Pzc7fym0//L5f2Uy//s9Pva7Pzj8PvL5f2p1f/o8vu22/7s9fzD4fzP5/3q8/uu1/7Y6/2Wy/+l0v+02f3I4/zr9PrJ5Pyn1P/M5/+z2P7r8/vI4/uVzP+czv/q9f2Syv2p1P/m8fyVyP+o1/+y4f+Wy//M5vydz/7e7fyv1/3e7vyTyf+QyP+q1f6Qyf/G4v242/242/6h0P6Zzf6p0/6u1v6l0v/B4P6y2f6bzv+Vyv7T6PzT6vyQyf+k0v/B4P3I5f2Syf+02f3m8vvm8vvB4P2czv2Px//M5P3P5/2z2/zI4fmQw//Q5/2s1v7M5fyw2P2/3/263f242/222v3T6PzY6/zV6vzB4P2i0f6f0P6dz/7o8/zc7fyZzf+bzv6z2f2k0v7K5Pze7vuUyv+Xy/7G4v3I4/zh7/um0/7D4fyo1P7j8PvZ7Pu93f3l8fuSyf6Syf+93v283v3a7PzD4f2p1f5WYUP6AAAAbnRSTlMA+UoFCC8kB+/tkko1Jfr47uvUsIVjNPz7+/r5+Pjt7Orq5ePY1c/PzLW1sK6smJiTjYyIgYCAXlJKQD8/PjYwMC8uJRYQ+/rz8/Ly7uzo5NzW1dDQzMm9vby7trW0rqadmpiTjYyDg4B8a1sqHqwtFkwAAAHmSURBVDjLjc6FV9tQGAXwy5KmAvVS3N3dYQybu7u7VOZsY1vHNhjMOjr4d3kv0nyhJM0v57y8e993XgIj58RwZ5O7qsrd1Dk84YS56R73EuHumcbuZtuXcrTPIpfzbtnfXZTdy/kNqeWXiRYJBkW1P0zVFhkmD321cITMSnUfLdVJUDmb/zO/c7BS7ZtFKPre5NUHmaP0bV6lDnBXX9twTb40Zgu/tjuWUB6Gd3KI8UibRDcguNTyQCQ61pqgXI8dIw3ZIGByWfUIwELDMjEG4KlPS5MYWlVJYG6t6lzgWrU4hPCKKgqma0XnE8Gc1GIYoXVVWACivs1NvlfWCICRdU0INYuaUOSmf9Hg4v0uPdTA/9wmPyo2Nv6oMhm+194Zhu+08wpUv7CpGqde2nQaHa9s6sBgigg82cMUFirrnRQ1iPEkk0olZZdAeeVOOx+HEEjqDgsgipNEQAB640QxiPP0pJd/Jpu2tuLH58mlcWoGTNtP4twCVKPltG8D561cI+pHwc171qjyGcgGvhjU3xjwXKg0dh4oxOC7PM6IUHneWwt6oXnwwdLBvci6/NlKkExOfbJydg5ZYuN3c/v7Rej6v5m7sg/EXEk6/Y9Jy/heS0dvs0Hq2YmCnUoKjjVefzglwGAbp2FhRMz/ntsAAAAASUVORK5CYII=";
|
|
451
472
|
|
|
452
473
|
/***/ }),
|
|
453
474
|
|
|
@@ -470,6 +491,27 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".message-wrapper[data-v-ed23ed2a]{disp
|
|
|
470
491
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
471
492
|
|
|
472
493
|
|
|
494
|
+
/***/ }),
|
|
495
|
+
|
|
496
|
+
/***/ 363:
|
|
497
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
498
|
+
|
|
499
|
+
"use strict";
|
|
500
|
+
__webpack_require__.r(__webpack_exports__);
|
|
501
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
502
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
503
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
504
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
505
|
+
// Imports
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
509
|
+
// Module
|
|
510
|
+
___CSS_LOADER_EXPORT___.push([module.id, "p{padding:0;margin:0;line-height:normal}h1,h2,h3,h4,h5,h6{margin:calc(var(--0cedb6d6)*.5) 0}.html-content ul,ol{margin-left:calc(var(--0cedb6d6)*1.2)}.html-content table{min-width:-moz-min-content!important;min-width:min-content!important}.html-content table td,.html-content table tr th{padding:calc(var(--0cedb6d6)*.2)!important}.html-content table,td,th{border:calc(var(--0cedb6d6)*.083) solid #fff;border-collapse:collapse}", ""]);
|
|
511
|
+
// Exports
|
|
512
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
513
|
+
|
|
514
|
+
|
|
473
515
|
/***/ }),
|
|
474
516
|
|
|
475
517
|
/***/ 417:
|
|
@@ -511,48 +553,6 @@ module.exports = function (url, options) {
|
|
|
511
553
|
"use strict";
|
|
512
554
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAJKElEQVR4AeybCaweVRXHp4oocYlIMArFaKIBl2hAjLIVqgFTBRTEiEKIoBbcqIK4oCBQQAlUpCoCyqKgCRBFwKhABC0UBcq+7wlQlhIgYV/z+P1e5jT3fd9s38x8vBL6cv7fOXc799xz79y5y7xXZa/wv5UOeIUPgGzlCFg5AqbBAxMTE6uCdcCGOdaGv3oaTBn/I0DD3gW+AS4AN4CHaegz4C5wWY574M+TtgxcDU4HO4G3ET9WGsscgOEbgH3BBVh/B/gN2AK8F6wOymhNEj4IdgCngPvQcQ74IVifcO/UqwMwciY4HCv/Bw4BNho2Sfby2UjHgQPB7mAbsC34OjgYnAjOBY+BoK0QfgYWo/sg8Cbk3qgXB2CUz/T3sMqGy1dFls7j5/tg/RkzZqwDtgW7gwPAceDv4GxwDNgP7AY+CWzkppTbDziKYNlq/Bi+mPq+jNwLdXYAxtiLNtyen5lbdSp8IxqyFTgcXEV4JKLMYnAw+DgFNwLqhGXv5+dE6j0DrIfciTo5AAN+Tu1ngQ2AtIif7TF6R/B/5F5IXWBHlG0PrAOWfTbLskXYsDO8NbV2ABVfRK0/AEE/xsjNwRkR0TdXN9gcvT4KsMxJ82RsOcpAG7RyABVOUNkmQHqBn69g2KHwl4Soywnzu0lle2LTP5JwY3FkBwxUtJSanNxOgL+khBN+SYWzQNAcbPt2BJrykRxABfuieA6QrsSImeA+A9MB6r4QzEjqXoiNvlaTqKniYKixA1D8VQr7bodlT/LjzAxbIeijiRVnYmsaTpKGxUYOQOGHKfo7EOS72uVshKeVMwouxYBvgaCjsTnWIhFXyBs5gJJzQdDeVOgbIMIrBMcml9t/zI3xtbxnLleyWgfgSXs/HLCIin5RqXF6E12MPZ6bMA/bY2GWRw2zWgdQJBqPmDnzZivqH51zHbaFjTZ+HuFKqnQAHkx7/1QqGNsiZ9BK6l4FbAEOAG6lYRNL+dl6MO9AWAfcmse5PvBxyIPDrNIBZP8UCFJxyL1zGrYaWN5gKngOuBH6KTx2lWshbwhKiU56iMSw1Ynw04RLqc4BW+Yl3Zj0trZXJ419I9gSTPYwcb5aBxtM9BB5kDIUORDhxunRPC7akAenslIHYNjaZN0MSJ1nffStDlytHQi3oRro3j/tYeuqwjJ6uHbVSR5HgbrVtRn12RblIZQ6gJyx4kPM3NfLG4NK1wTbgEOADfYozPX6/iiJIY04Ern7bFrAw5fIm7Yl4iZ5Ewc8jkf/PZm74odGrgW2A4eB/5J1GXCr7PK5bYNRsZy048jloXrhz2RxowbLWjnAszkLX+xPGWjsArCYdDdGf4V7ApRuUojqhRaMooVOe5780XHvRi6kqhEQhWxYYWEa7nt3LxI3BuMkGzPK8A9bwva3R8QgL3QADYvGmz+UKA8iVl2D8X2Hf02PPt1CadjufFR471DoACp6DwgKJRFO+W4ETgZtyQ3WfxoUPqxBnqIsqe2FdwxlDmg0AuiVG8Au1OzB6PnwpuS5nmXcV3isVVXuJOq4vypDRdrSJK3wMShzQFKuXsRAj7c/Qc49wE2gjO4lYS/ye653LbKXH57yIpZSm2e/VNlgQpkDbksyli4ikjyTIg07FsEJ8SB4erlBMDuan03JcyRzjMPxT4Tda8BK6TTy31yaWp+Q2l54clXmgNhMWEWqxHAlMPgR4OrOEyNvgIT3A98k/k4a/2YU2PNxqEqwlEZ69RVoSW0vfIwKHYChrUZAagA6rgfeAInJlSSNfx15bLyPC2IleWPkSU9lpprEcMCD2BKLoilFCh2Q5wgnhJI8uhNz2FfuzhLtv0rktmLYXjj8VVrlgLjOciibtxPofd8s3uw00XMePTY5appkLspDfb73Y6TdUpTHuCoH/M0MwG1rk+eVrJXk8K/MkCS6PkiCrURfszrBwtEW5SmockCsoy0w258uoEddNvutQJ2ai8h7el2mBunp/UDalilFSx2AEc6asaf2hnZKwZaBMxuUO75BnsosDH/fNF6emu/cvC3KQyh1QJ7TfbzibJR+TKEj3B5XqViCsSdVZWiY9iXyxZco0QaihqnOAelE9J3h4qPF0DjX/X4pUlawj95fA+Vh67PIMYoRh6nSARh8OUX8pAWWfYFRsJ1CR5xTUv466jumJG2UaBsfm7mF6LyiqnClA/KC4QCDKpd3wT9LCtee9ZWUWx5NB32AQNjoSKv9bqDWAXgwHQWzqORHVNKFnAc8Lkt13E4gdTTBVuTx2xvykkdhu07Ig8Ws1gF5sdS4Q3FC64+UMMrz/sHH4Hjin8jrasWw6QgKfhFIDvuFCnVo5ACMcxSkl43HUuHr65RXpP8rSfPQotPwx5bPo29vkIGngBe4ToCI1dTIAarACa7NhUFvXFzYKI8MdHlia4/5ytuZ8AMjK5la4LQkOBd9vm2SqHKxsQNUgWJHQSxm3onn/fTVRYfJIwFd+4BdQWNjByug/nWB3ytF0jz0uduMcC0fyQFqowJXWDGT++mr3/d2XiqrexTQcJe66emT2+5Gz31az8gOsDBO8NLU0WDwNfycj0HxDBIcL1GXdw8xEq1sFjZ58KI8Elo5wBqo0PngM8o5jsCwJSD9niBP6oepGyxBW5wSX4K8HrZcCG9FrR1gbVTsO909gq8dozzj8w0x6QiMbTU/qCiAjjXAXGDDPXO0DpP/ws8cbOhyZtj9/wUwwF7w0GQfDIqFh0Zq7O0Yfgpw3iC5GZHfjyN2gbstdgutLnWq4Hp+nDx3oO5HkDtRpxEQNWPIs8DXmo6Qxzv4LeTZCfhh80M06CzgCPGbAHt1a8LeIO8Bnw9OAC6SvAX6A+X8vwG/HEfMfL/PR9iYunx9InanXhwQZmDYPcCRoCOclBwdkawzPKVxjvDU2F71CtvH6Ldk+gnYFfj/AXGSQzDz+fZKfRN07w/8rsD4XtCrA8IijLwC+FpyfliXeP+HwPf9jchVw/ZB0q8B3jJ/De6XqM7w89F3JeHeaSwOSK3E8FvAAjAbvA84El5LnneAj+Twi65VSHsr+BD4HPg9cJlMlvHR2B1QZDoNc864G+4JkFiKXHhuX1S+z7hpcUCfDeiqa6UDunrw5V7+ZT8CunbAiwAAAP//1lJoRwAAAAZJREFUAwC0WPKfAOfAQQAAAABJRU5ErkJggg==";
|
|
513
555
|
|
|
514
|
-
/***/ }),
|
|
515
|
-
|
|
516
|
-
/***/ 508:
|
|
517
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
518
|
-
|
|
519
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
520
|
-
|
|
521
|
-
// load the styles
|
|
522
|
-
var content = __webpack_require__(576);
|
|
523
|
-
if(content.__esModule) content = content.default;
|
|
524
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
525
|
-
if(content.locals) module.exports = content.locals;
|
|
526
|
-
// add the styles to the DOM
|
|
527
|
-
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
528
|
-
var update = add("41139053", content, true, {"sourceMap":false,"shadowMode":false});
|
|
529
|
-
|
|
530
|
-
/***/ }),
|
|
531
|
-
|
|
532
|
-
/***/ 576:
|
|
533
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
534
|
-
|
|
535
|
-
"use strict";
|
|
536
|
-
__webpack_require__.r(__webpack_exports__);
|
|
537
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
538
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
539
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
540
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
541
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(417);
|
|
542
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
543
|
-
// Imports
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require__(286), __webpack_require__.b);
|
|
548
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
549
|
-
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
550
|
-
// Module
|
|
551
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-87642bf4] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-87642bf4]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--704480ac)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-87642bf4]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--704480ac)*2.29);padding:0 calc(var(--704480ac)*.76);box-sizing:border-box;background:linear-gradient(270deg,rgba(0,126,245,.94),rgba(54,141,253,.75) 70%,rgba(60,125,255,.51));border-radius:calc(var(--704480ac)*.57) calc(var(--704480ac)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-87642bf4]{display:flex;align-items:center;gap:calc(var(--704480ac)*.38)}.yx-speech-recognition .box .title-icon img[data-v-87642bf4]{width:calc(var(--704480ac)*1);height:calc(var(--704480ac)*1)}.yx-speech-recognition .box .title-icon span[data-v-87642bf4]{font-size:calc(var(--704480ac)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-87642bf4]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-87642bf4]{width:calc(var(--704480ac)*1.1)}.yx-speech-recognition .box .content[data-v-87642bf4]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:url(http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon9-pl26do__.png) no-repeat center 35%;color:#fff;background-size:45%}.yx-speech-recognition .box .content span[data-v-87642bf4]{margin-top:calc(var(--704480ac)*6.5);font-size:calc(var(--704480ac)*1)}.yx-speech-recognition .box .message-list[data-v-87642bf4]{overflow:hidden;padding:calc(var(--704480ac)*.58);box-sizing:border-box;padding-right:calc(var(--704480ac)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-87642bf4]{height:100%;display:flex;flex-direction:column;gap:calc(var(--704480ac)*.53);overflow-y:overlay}.yx-speech-recognition .displayAssistant[data-v-87642bf4]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-87642bf4]{width:calc(var(--704480ac)*3.76);height:calc(var(--704480ac)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-87642bf4]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-87642bf4]{position:absolute;top:0;left:calc(var(--704480ac)*3.76);width:-moz-max-content;width:max-content;min-width:-moz-min-content;min-width:min-content}.yx-speech-recognition .displayAssistant .bubbleBox .loading-box[data-v-87642bf4]{font-size:calc(var(--704480ac)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-87642bf4]{width:calc(var(--704480ac)*1.26);height:calc(var(--704480ac)*1.28);margin-right:calc(var(--704480ac)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-87642bf4]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-87642bf4]{border-top:calc(var(--704480ac)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--704480ac)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .box-container .mr-l-20[data-v-87642bf4]{margin-left:calc(var(--704480ac)*.416)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-87642bf4]{display:flex;overflow:hidden;margin:calc(var(--704480ac)*.208) 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-87642bf4]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-87642bf4]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-87642bf4]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-87642bf4]{flex-shrink:0;width:calc(var(--704480ac)*1.2);font-size:calc(var(--704480ac)*.9);height:calc(var(--704480ac)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--704480ac)*.1);margin-right:calc(var(--704480ac)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-87642bf4]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-87642bf4]{display:inline-block;width:auto;font-size:calc(var(--704480ac)*.9);border-radius:calc(var(--704480ac)*.104);padding:0 calc(var(--704480ac)*.167)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-87642bf4]{font-size:calc(var(--704480ac)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-87642bf4]{display:block;max-width:calc(var(--704480ac)*19.21);font-size:calc(var(--704480ac)*1);color:#fff;word-break:break-all}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-87642bf4],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-87642bf4]{border-radius:calc(var(--704480ac)*.27);padding:calc(var(--704480ac)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-87642bf4]{background-color:rgba(13,23,135,.85);box-shadow:0 calc(var(--704480ac)*.083) calc(var(--704480ac)*.314) rgba(106,17,203,.3)}.yx-speech-recognition .displayAssistant .bubbleBox-title-hi[data-v-87642bf4]{max-width:calc(var(--704480ac)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-87642bf4]{margin-bottom:calc(var(--704480ac)*.3125);background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--704480ac)*.57) 0 #d4d9ff;max-height:calc(var(--704480ac)*41.6);overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-87642bf4]::-webkit-scrollbar{display:none;width:0;height:0}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-87642bf4]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-87642bf4]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-87642bf4]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--704480ac)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-87642bf4]:before{border-right:calc(var(--704480ac)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-87642bf4]:after{border-top:calc(var(--704480ac)*.25) solid transparent;border-bottom:calc(var(--704480ac)*.25) solid transparent;border-right:calc(var(--704480ac)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--704480ac)*-.46));left:0;top:calc(var(--704480ac)*.48)}.yx-speech-recognition .leader-assistant[data-v-87642bf4]{position:absolute;top:calc(var(--704480ac)*-1.67);left:calc(var(--704480ac)*.27);cursor:pointer;z-index:20}.yx-speech-recognition .leader-assistant .icon1[data-v-87642bf4]{width:calc(var(--704480ac)*3.76);height:calc(var(--704480ac)*3.88)}.yx-speech-recognition .leader-assistant .icon1 img[data-v-87642bf4]{width:100%;height:100%}.yx-speech-recognition .leader-box[data-v-87642bf4] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .leader-box[data-v-87642bf4]{width:calc(var(--704480ac)*25);display:grid;grid-template-rows:max-content 1fr;position:absolute;left:calc(var(--704480ac)*1.33);top:calc(var(--704480ac)*8.5);pointer-events:all;background:#020b48;border:1px solid #1366e8;border-radius:calc(var(--704480ac)*.48);z-index:20;opacity:.84}.yx-speech-recognition .leader-box .title[data-v-87642bf4]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--704480ac)*2.33);padding:0 calc(var(--704480ac)*.76) 0 calc(var(--704480ac)*3.2);box-sizing:border-box;background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat 50%;background-size:cover;border-radius:calc(var(--704480ac)*.48) calc(var(--704480ac)*.48) 0 0}.yx-speech-recognition .leader-box .title .title-left[data-v-87642bf4]{position:relative}.yx-speech-recognition .leader-box .title .title-left img[data-v-87642bf4]{width:calc(var(--704480ac)*2.83);height:calc(var(--704480ac)*3.78);position:absolute;top:calc(var(--704480ac)*-1.8);left:calc(var(--704480ac)*-2.84)}.yx-speech-recognition .leader-box .title .title-left .title-text[data-v-87642bf4]{font-family:SourceHanSansCN;font-weight:700;font-size:calc(var(--704480ac)*1.33);color:#fff}.yx-speech-recognition .leader-box .title .title-broadcast-text .broadcast-text-point[data-v-87642bf4]{font-size:calc(var(--704480ac)*3);color:#ff5151;line-height:calc(var(--704480ac)*.5)}.yx-speech-recognition .leader-box .title .title-broadcast-text .broadcast-text[data-v-87642bf4]{font-size:calc(var(--704480ac)*1.11);color:#ff5151}.yx-speech-recognition .leader-box .title .fold[data-v-87642bf4]{cursor:pointer}.yx-speech-recognition .leader-box .title .fold img[data-v-87642bf4]{width:calc(var(--704480ac)*1.1)}.yx-speech-recognition .leader-box .title .isfold[data-v-87642bf4]{transform:rotate(180deg)}.yx-speech-recognition .leader-box .bubbleBox[data-v-87642bf4]{position:absolute;top:0;left:calc(var(--704480ac)*3.76);width:-moz-max-content;width:max-content;min-width:-moz-min-content;min-width:min-content}.yx-speech-recognition .leader-box .bubbleBox .loading-box[data-v-87642bf4]{font-size:calc(var(--704480ac)*.8);display:flex;align-items:center}.yx-speech-recognition .leader-box .bubbleBox .loging-icon[data-v-87642bf4]{width:calc(var(--704480ac)*1.26);height:calc(var(--704480ac)*1.28);margin-right:calc(var(--704480ac)*.4)}.yx-speech-recognition .leader-box .bubbleBox .loging-icon img[data-v-87642bf4]{width:100%;height:100%}.yx-speech-recognition .leader-box .bubbleBox .box-container[data-v-87642bf4]{border-top:calc(var(--704480ac)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--704480ac)*.2)}.yx-speech-recognition .leader-box .bubbleBox .box-container .mr-l-20[data-v-87642bf4]{margin-left:calc(var(--704480ac)*.416)}.yx-speech-recognition .leader-box .bubbleBox .item-box[data-v-87642bf4]{display:flex;overflow:hidden;margin:calc(var(--704480ac)*.208) 0}.yx-speech-recognition .leader-box .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-87642bf4]{background-color:#ff4e4e}.yx-speech-recognition .leader-box .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-87642bf4]{background-color:#ff6e1d}.yx-speech-recognition .leader-box .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-87642bf4]{background-color:#4fc94d}.yx-speech-recognition .leader-box .bubbleBox .item-box .item-box-index[data-v-87642bf4]{flex-shrink:0;width:calc(var(--704480ac)*1.2);font-size:calc(var(--704480ac)*.9);height:calc(var(--704480ac)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--704480ac)*.1);margin-right:calc(var(--704480ac)*.1)}.yx-speech-recognition .leader-box .bubbleBox .item-box .item-box-content[data-v-87642bf4]{overflow:hidden}.yx-speech-recognition .leader-box .bubbleBox .item-box .item-box-label[data-v-87642bf4]{display:inline-block;width:auto;font-size:calc(var(--704480ac)*.9);border-radius:calc(var(--704480ac)*.104);padding:0 calc(var(--704480ac)*.167)}.yx-speech-recognition .leader-box .bubbleBox .item-box .item-box-descriptions[data-v-87642bf4]{font-size:calc(var(--704480ac)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .leader-box .bubbleBox span[data-v-87642bf4]{display:block;max-width:calc(var(--704480ac)*19.21);font-size:calc(var(--704480ac)*1);color:#fff;word-break:break-all}.yx-speech-recognition .leader-box .bubbleBox-suggest[data-v-87642bf4],.yx-speech-recognition .leader-box .bubbleBox-title[data-v-87642bf4]{border-radius:calc(var(--704480ac)*.27);padding:calc(var(--704480ac)*.38);box-sizing:border-box}.yx-speech-recognition .leader-box .bubbleBox-suggest[data-v-87642bf4]{background-color:rgba(13,23,135,.85);box-shadow:0 calc(var(--704480ac)*.083) calc(var(--704480ac)*.314) rgba(106,17,203,.3)}.yx-speech-recognition .leader-box .bubbleBox-title-hi[data-v-87642bf4]{max-width:calc(var(--704480ac)*9.21)}.yx-speech-recognition .leader-box .bubbleBox-title[data-v-87642bf4]{margin-bottom:calc(var(--704480ac)*.3125);background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--704480ac)*.57) 0 #d4d9ff;max-height:calc(var(--704480ac)*41.6);overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.yx-speech-recognition .leader-box .bubbleBox-title[data-v-87642bf4]::-webkit-scrollbar{display:none;width:0;height:0}.yx-speech-recognition .leader-box .bubbleBox-title[data-v-87642bf4]:after,.yx-speech-recognition .leader-box .bubbleBox-title[data-v-87642bf4]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .leader-box .bubbleBox-to[data-v-87642bf4]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--704480ac)*.57) 0 #fff3b4}.yx-speech-recognition .leader-box .bubbleBox-to[data-v-87642bf4]:before{border-right:calc(var(--704480ac)*.5) solid transparent}.yx-speech-recognition .leader-box .bubbleBox-to[data-v-87642bf4]:after{border-top:calc(var(--704480ac)*.25) solid transparent;border-bottom:calc(var(--704480ac)*.25) solid transparent;border-right:calc(var(--704480ac)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--704480ac)*-.46));left:0;top:calc(var(--704480ac)*.48)}.yx-speech-recognition .leader-box .leader-box-content[data-v-87642bf4]{width:100%;height:calc(var(--704480ac)*28.56);padding:calc(var(--704480ac)*.67);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:calc(var(--704480ac)*.6)}.yx-speech-recognition .leader-box .leader-box-content .message-list[data-v-87642bf4]{overflow:hidden;box-sizing:border-box;height:calc(100% - var(--704480ac)*2.44);width:100%}.yx-speech-recognition .leader-box .leader-box-content .message-list-inner[data-v-87642bf4]{height:100%;display:flex;flex-direction:column;gap:calc(var(--704480ac)*.53);overflow-y:overlay}.yx-speech-recognition .leader-box .leader-box-content .message-list .message-list-empty[data-v-87642bf4]{color:#fff;font-size:calc(var(--704480ac)*1.22)}.yx-speech-recognition .leader-box .leader-box-content .message-list .message-list-empty .recommendation-text[data-v-87642bf4]{color:#33fffc;cursor:pointer}.yx-speech-recognition .leader-box .leader-box-content .message-list .message-list-empty .recommendation-tip[data-v-87642bf4]{margin-top:calc(var(--704480ac)*.3);display:flex;align-items:center;gap:calc(var(--704480ac)*.2);background:rgba(9,51,132,.8);padding:calc(var(--704480ac)*.2) calc(var(--704480ac)*.4);width:calc(var(--704480ac)*20.8)}.yx-speech-recognition .leader-box .leader-box-content .message-list .message-list-empty .recommendation-tip img[data-v-87642bf4]{width:calc(var(--704480ac)*1.2);height:calc(var(--704480ac)*1.2)}.yx-speech-recognition .leader-box .leader-box-content .leader-inputContainer[data-v-87642bf4]{width:calc(var(--704480ac)*23.33);height:calc(var(--704480ac)*2.44);background:rgba(9,51,132,.8);border-radius:calc(var(--704480ac)*.11);border:0 solid #1b64cf;padding:0 calc(var(--704480ac)*.39) 0 calc(var(--704480ac)*.5);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.yx-speech-recognition .leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-87642bf4]{width:100%;height:100%;box-sizing:border-box;background-color:transparent;border:none;outline:none;font-family:MicrosoftYaHei;font-size:calc(var(--704480ac)*1.33);color:#8595b6;line-height:calc(var(--704480ac)*.88)}.yx-speech-recognition .leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-87642bf4]::placeholder{font-size:calc(var(--704480ac)*1.22)}.yx-speech-recognition .leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-87642bf4]::-webkit-input-placeholder{font-size:calc(var(--704480ac)*1.22)}.yx-speech-recognition .leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-87642bf4]::-moz-placeholder{font-size:calc(var(--704480ac)*1.22)}.yx-speech-recognition .leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-87642bf4]:-ms-input-placeholder{font-size:calc(var(--704480ac)*1.22)}.yx-speech-recognition .leader-box .leader-box-content .leader-inputContainer .inputButton[data-v-87642bf4]{width:calc(var(--704480ac)*2.39);height:calc(var(--704480ac)*2.39);cursor:pointer}.yx-speech-recognition .leader-box .leader-box-content-empty[data-v-87642bf4]{height:calc(var(--704480ac)*22.22)}.inputContainer[data-v-87642bf4]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--704480ac)*.57)}.inputContainer .inputBox[data-v-87642bf4]{margin:calc(var(--704480ac)*.083);flex:1;width:100%;height:calc(var(--704480ac)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--704480ac)*.57);font-size:calc(var(--704480ac)*1);color:#fff;padding:0 calc(var(--704480ac)*.417);outline:none}.inputContainer .inputButton[data-v-87642bf4]{margin-right:calc(var(--704480ac)*.417);flex-shrink:0}.inputContainer .inputButton img[data-v-87642bf4]{width:calc(var(--704480ac)*1.5);height:calc(var(--704480ac)*1.5)}.dropdown[data-v-87642bf4]{display:flex;position:relative;width:calc(var(--704480ac)*3.75);align-items:center;justify-content:center;font-size:calc(var(--704480ac)*.8);color:#fff;padding:calc(var(--704480ac)*.104) calc(var(--704480ac)*.3125);margin:calc(var(--704480ac)*.208) calc(var(--704480ac)*.625) calc(var(--704480ac)*.208);border-radius:calc(var(--704480ac)*.18);background:rgba(51,136,255,.52)}.dropdown .dropdown-btn[data-v-87642bf4]{cursor:pointer}.dropdown .dropdown-options[data-v-87642bf4]{position:absolute;bottom:100%;left:0;right:0;border-radius:calc(var(--704480ac)*.167);margin-bottom:calc(var(--704480ac)*.208);width:100%;min-width:calc(var(--704480ac)*3.33);background-color:rgba(13,23,135,.85);box-shadow:0 calc(var(--704480ac)*.083) calc(var(--704480ac)*.3125) rgba(106,17,203,.3);z-index:10;max-height:calc(var(--704480ac)*8.33);overflow-y:auto}.dropdown .dropdown-item[data-v-87642bf4]{padding:calc(var(--704480ac)*.104) calc(var(--704480ac)*.416);cursor:pointer;transition:background .2s}.dropdown .dropdown-item[data-v-87642bf4]:hover{background-color:rgba(51,136,255,.3)}.dropdown .dropdown-item.selected[data-v-87642bf4]{background-color:rgba(51,136,255,.51);color:hsla(0,0%,100%,.9)}", ""]);
|
|
552
|
-
// Exports
|
|
553
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
554
|
-
|
|
555
|
-
|
|
556
556
|
/***/ }),
|
|
557
557
|
|
|
558
558
|
/***/ 594:
|
|
@@ -575,7 +575,23 @@ module.exports = function (i) {
|
|
|
575
575
|
|
|
576
576
|
/***/ }),
|
|
577
577
|
|
|
578
|
-
/***/
|
|
578
|
+
/***/ 623:
|
|
579
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
580
|
+
|
|
581
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
582
|
+
|
|
583
|
+
// load the styles
|
|
584
|
+
var content = __webpack_require__(363);
|
|
585
|
+
if(content.__esModule) content = content.default;
|
|
586
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
587
|
+
if(content.locals) module.exports = content.locals;
|
|
588
|
+
// add the styles to the DOM
|
|
589
|
+
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
590
|
+
var update = add("352d4554", content, true, {"sourceMap":false,"shadowMode":false});
|
|
591
|
+
|
|
592
|
+
/***/ }),
|
|
593
|
+
|
|
594
|
+
/***/ 659:
|
|
579
595
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
580
596
|
|
|
581
597
|
"use strict";
|
|
@@ -584,12 +600,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
584
600
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
585
601
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
586
602
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
603
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(417);
|
|
604
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
587
605
|
// Imports
|
|
588
606
|
|
|
589
607
|
|
|
608
|
+
|
|
609
|
+
var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require__(286), __webpack_require__.b);
|
|
590
610
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
611
|
+
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
591
612
|
// Module
|
|
592
|
-
___CSS_LOADER_EXPORT___.push([module.id, "p{padding:0;margin:0;line-height:normal}h1,h2,h3,h4,h5,h6{margin:calc(var(--704480ac)*.5) 0}.html-content ul,ol{margin-left:calc(var(--704480ac)*1.2)}.html-content table{min-width:-moz-min-content!important;min-width:min-content!important}.html-content table td,.html-content table tr th{padding:calc(var(--704480ac)*.2)!important}.html-content table,td,th{border:calc(var(--704480ac)*.083) solid #fff;border-collapse:collapse}", ""]);
|
|
613
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".leader-assistant[data-v-37926bb0]{position:absolute;top:calc(var(--497d1bb0)*-1.67);left:calc(var(--497d1bb0)*.27);cursor:pointer;z-index:20}.leader-assistant .icon1[data-v-37926bb0]{width:calc(var(--497d1bb0)*3.76);height:calc(var(--497d1bb0)*3.88)}.leader-assistant .icon1 img[data-v-37926bb0]{width:100%;height:100%}.leader-box[data-v-37926bb0] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.leader-box[data-v-37926bb0]{width:calc(var(--497d1bb0)*25);display:grid;grid-template-rows:max-content 1fr;position:absolute;left:calc(var(--497d1bb0)*1.33);top:calc(var(--497d1bb0)*8.5);pointer-events:all;background:#020b48;border:1px solid #1366e8;border-radius:calc(var(--497d1bb0)*.48);z-index:20;opacity:.84}.leader-box .title[data-v-37926bb0]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--497d1bb0)*2.33);padding:0 calc(var(--497d1bb0)*.76) 0 calc(var(--497d1bb0)*3.2);box-sizing:border-box;background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat 50%;background-size:cover;border-radius:calc(var(--497d1bb0)*.48) calc(var(--497d1bb0)*.48) 0 0}.leader-box .title .title-left[data-v-37926bb0]{position:relative}.leader-box .title .title-left img[data-v-37926bb0]{width:calc(var(--497d1bb0)*2.83);height:calc(var(--497d1bb0)*3.78);position:absolute;top:calc(var(--497d1bb0)*-1.8);left:calc(var(--497d1bb0)*-2.84)}.leader-box .title .title-left .title-text[data-v-37926bb0]{font-family:SourceHanSansCN;font-weight:700;font-size:calc(var(--497d1bb0)*1.33);color:#fff}.leader-box .title .title-broadcast-text .broadcast-text-point[data-v-37926bb0]{font-size:calc(var(--497d1bb0)*3);color:#ff5151;line-height:calc(var(--497d1bb0)*.5)}.leader-box .title .title-broadcast-text .broadcast-text[data-v-37926bb0]{font-size:calc(var(--497d1bb0)*1.11);color:#ff5151}.leader-box .title .fold[data-v-37926bb0]{cursor:pointer}.leader-box .title .fold img[data-v-37926bb0]{width:calc(var(--497d1bb0)*1.1)}.leader-box .title .isfold[data-v-37926bb0]{transform:rotate(180deg)}.leader-box .bubbleBox[data-v-37926bb0]{position:absolute;top:0;left:calc(var(--497d1bb0)*3.76);width:-moz-max-content;width:max-content;min-width:-moz-min-content;min-width:min-content}.leader-box .bubbleBox .loading-box[data-v-37926bb0]{font-size:calc(var(--497d1bb0)*.8);display:flex;align-items:center}.leader-box .bubbleBox .loging-icon[data-v-37926bb0]{width:calc(var(--497d1bb0)*1.26);height:calc(var(--497d1bb0)*1.28);margin-right:calc(var(--497d1bb0)*.4)}.leader-box .bubbleBox .loging-icon img[data-v-37926bb0]{width:100%;height:100%}.leader-box .bubbleBox .box-container[data-v-37926bb0]{border-top:calc(var(--497d1bb0)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--497d1bb0)*.2)}.leader-box .bubbleBox .box-container .mr-l-20[data-v-37926bb0]{margin-left:calc(var(--497d1bb0)*.416)}.leader-box .bubbleBox .item-box[data-v-37926bb0]{display:flex;overflow:hidden;margin:calc(var(--497d1bb0)*.208) 0}.leader-box .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-37926bb0]{background-color:#ff4e4e}.leader-box .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-37926bb0]{background-color:#ff6e1d}.leader-box .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-37926bb0]{background-color:#4fc94d}.leader-box .bubbleBox .item-box .item-box-index[data-v-37926bb0]{flex-shrink:0;width:calc(var(--497d1bb0)*1.2);font-size:calc(var(--497d1bb0)*.9);height:calc(var(--497d1bb0)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--497d1bb0)*.1);margin-right:calc(var(--497d1bb0)*.1)}.leader-box .bubbleBox .item-box .item-box-content[data-v-37926bb0]{overflow:hidden}.leader-box .bubbleBox .item-box .item-box-label[data-v-37926bb0]{display:inline-block;width:auto;font-size:calc(var(--497d1bb0)*.9);border-radius:calc(var(--497d1bb0)*.104);padding:0 calc(var(--497d1bb0)*.167)}.leader-box .bubbleBox .item-box .item-box-descriptions[data-v-37926bb0]{font-size:calc(var(--497d1bb0)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leader-box .bubbleBox span[data-v-37926bb0]{display:block;max-width:calc(var(--497d1bb0)*19.21);font-size:calc(var(--497d1bb0)*1);color:#fff;word-break:break-all}.leader-box .bubbleBox-suggest[data-v-37926bb0],.leader-box .bubbleBox-title[data-v-37926bb0]{border-radius:calc(var(--497d1bb0)*.27);padding:calc(var(--497d1bb0)*.38);box-sizing:border-box}.leader-box .bubbleBox-suggest[data-v-37926bb0]{background-color:rgba(13,23,135,.85);box-shadow:0 calc(var(--497d1bb0)*.083) calc(var(--497d1bb0)*.314) rgba(106,17,203,.3)}.leader-box .bubbleBox-title-hi[data-v-37926bb0]{max-width:calc(var(--497d1bb0)*9.21)}.leader-box .bubbleBox-title[data-v-37926bb0]{margin-bottom:calc(var(--497d1bb0)*.3125);background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--497d1bb0)*.57) 0 #d4d9ff;max-height:calc(var(--497d1bb0)*41.6);overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.leader-box .bubbleBox-title[data-v-37926bb0]::-webkit-scrollbar{display:none;width:0;height:0}.leader-box .bubbleBox-title[data-v-37926bb0]:after,.leader-box .bubbleBox-title[data-v-37926bb0]:before{content:\"\";display:block;position:absolute}.leader-box .bubbleBox-to[data-v-37926bb0]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--497d1bb0)*.57) 0 #fff3b4}.leader-box .bubbleBox-to[data-v-37926bb0]:before{border-right:calc(var(--497d1bb0)*.5) solid transparent}.leader-box .bubbleBox-to[data-v-37926bb0]:after{border-top:calc(var(--497d1bb0)*.25) solid transparent;border-bottom:calc(var(--497d1bb0)*.25) solid transparent;border-right:calc(var(--497d1bb0)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--497d1bb0)*-.46));left:0;top:calc(var(--497d1bb0)*.48)}.leader-box .leader-box-content[data-v-37926bb0]{width:100%;height:calc(var(--497d1bb0)*28.56);padding:calc(var(--497d1bb0)*.67);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:calc(var(--497d1bb0)*.6)}.leader-box .leader-box-content .message-list[data-v-37926bb0]{overflow:hidden;box-sizing:border-box;height:calc(100% - var(--497d1bb0)*2.44);width:100%}.leader-box .leader-box-content .message-list-inner[data-v-37926bb0]{height:100%;display:flex;flex-direction:column;gap:calc(var(--497d1bb0)*.53);overflow-y:overlay}.leader-box .leader-box-content .message-list .message-list-empty[data-v-37926bb0]{color:#fff;font-size:calc(var(--497d1bb0)*1.22)}.leader-box .leader-box-content .message-list .message-list-empty .recommendation-text[data-v-37926bb0]{color:#33fffc;cursor:pointer}.leader-box .leader-box-content .message-list .message-list-empty .recommendation-tip[data-v-37926bb0]{margin-top:calc(var(--497d1bb0)*.3);display:flex;align-items:center;gap:calc(var(--497d1bb0)*.2);background:rgba(9,51,132,.8);padding:calc(var(--497d1bb0)*.2) calc(var(--497d1bb0)*.4);width:calc(var(--497d1bb0)*20.8)}.leader-box .leader-box-content .message-list .message-list-empty .recommendation-tip img[data-v-37926bb0]{width:calc(var(--497d1bb0)*1.2);height:calc(var(--497d1bb0)*1.2)}.leader-box .leader-box-content .leader-inputContainer[data-v-37926bb0]{width:calc(var(--497d1bb0)*23.33);height:calc(var(--497d1bb0)*2.44);background:rgba(9,51,132,.8);border-radius:calc(var(--497d1bb0)*.11);border:0 solid #1b64cf;padding:0 calc(var(--497d1bb0)*.39) 0 calc(var(--497d1bb0)*.5);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-37926bb0]{width:100%;height:100%;box-sizing:border-box;background-color:transparent;border:none;outline:none;font-family:MicrosoftYaHei;font-size:calc(var(--497d1bb0)*1.33);color:#8595b6;line-height:calc(var(--497d1bb0)*.88)}.leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-37926bb0]::placeholder{font-size:calc(var(--497d1bb0)*1.22)}.leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-37926bb0]::-webkit-input-placeholder{font-size:calc(var(--497d1bb0)*1.22)}.leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-37926bb0]::-moz-placeholder{font-size:calc(var(--497d1bb0)*1.22)}.leader-box .leader-box-content .leader-inputContainer .inputBox[data-v-37926bb0]:-ms-input-placeholder{font-size:calc(var(--497d1bb0)*1.22)}.leader-box .leader-box-content .leader-inputContainer .inputButton[data-v-37926bb0]{width:calc(var(--497d1bb0)*2.39);height:calc(var(--497d1bb0)*2.39);cursor:pointer}.leader-box .leader-box-content-empty[data-v-37926bb0]{height:calc(var(--497d1bb0)*22.22)}.inputContainer[data-v-37926bb0]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--497d1bb0)*.57)}.inputContainer .inputBox[data-v-37926bb0]{margin:calc(var(--497d1bb0)*.083);flex:1;width:100%;height:calc(var(--497d1bb0)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--497d1bb0)*.57);font-size:calc(var(--497d1bb0)*1);color:#fff;padding:0 calc(var(--497d1bb0)*.417);outline:none}.inputContainer .inputButton[data-v-37926bb0]{margin-right:calc(var(--497d1bb0)*.417);flex-shrink:0}.inputContainer .inputButton img[data-v-37926bb0]{width:calc(var(--497d1bb0)*1.5);height:calc(var(--497d1bb0)*1.5)}.dropdown[data-v-37926bb0]{display:flex;position:relative;width:calc(var(--497d1bb0)*3.75);align-items:center;justify-content:center;font-size:calc(var(--497d1bb0)*.8);color:#fff;padding:calc(var(--497d1bb0)*.104) calc(var(--497d1bb0)*.3125);margin:calc(var(--497d1bb0)*.208) calc(var(--497d1bb0)*.625) calc(var(--497d1bb0)*.208);border-radius:calc(var(--497d1bb0)*.18);background:rgba(51,136,255,.52)}.dropdown .dropdown-btn[data-v-37926bb0]{cursor:pointer}.dropdown .dropdown-options[data-v-37926bb0]{position:absolute;bottom:100%;left:0;right:0;border-radius:calc(var(--497d1bb0)*.167);margin-bottom:calc(var(--497d1bb0)*.208);width:100%;min-width:calc(var(--497d1bb0)*3.33);background-color:rgba(13,23,135,.85);box-shadow:0 calc(var(--497d1bb0)*.083) calc(var(--497d1bb0)*.3125) rgba(106,17,203,.3);z-index:10;max-height:calc(var(--497d1bb0)*8.33);overflow-y:auto}.dropdown .dropdown-item[data-v-37926bb0]{padding:calc(var(--497d1bb0)*.104) calc(var(--497d1bb0)*.416);cursor:pointer;transition:background .2s}.dropdown .dropdown-item[data-v-37926bb0]:hover{background-color:rgba(51,136,255,.3)}.dropdown .dropdown-item.selected[data-v-37926bb0]{background-color:rgba(51,136,255,.51);color:hsla(0,0%,100%,.9)}", ""]);
|
|
593
614
|
// Exports
|
|
594
615
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
595
616
|
|
|
@@ -970,7 +991,7 @@ window && (window.CryptoJSTest = CryptoJS);
|
|
|
970
991
|
/***/ (function(module) {
|
|
971
992
|
|
|
972
993
|
"use strict";
|
|
973
|
-
module.exports = "data:image/png;base64,
|
|
994
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAI9UlEQVR4AeyWe3BU1R3Hv+fefWSzm2QDBEKSDVCkWIMkgQhmUDoUWqeWgnaqOAqKkFDaf+xUR6lUm5laKjNa6nQ600pSWqnYTgYLKq2DD+qjI50i2SjlFR5ClpDNbjbJvpPdvae/382uZMNuQgD/cCY797fn3PP4/T7ne37n3qvgS/Qbh/2iNmtc2XFlSYFrToOSDYcmOepb1pbVO18qr3e+W17nPO6oc3ZQ2VJe17qvbH3Lb8rXty5FwwEDxbum66phS+tab3XUtb6laEpnWIZ29MY61nRFzyy5GD4++2LoyNTOaFuVZ+CzOwPS+0i/iLztcBV6aPw2XtzVEo8Ztmyjs9RR59wtEf+oJ+Za1tHbovq6WhFyn0B/52nE3eeQ6HIh1nkGUXcb/O6j6PI6cTH0P3tA8/1Ykepp2oEn0CDHHHtME8o2tC4UcRzyJzzf6/S1INR1ErLbDXR36SaoHDQPRLeH2ti4zw1eQJ/nCNyBo/kRLfJsmat176R1x/PGovIVwzrqW1dIqb3njZwp9nuOQfoI0ueB8Hkhesh6fUBfT5oJahM93RDc3+MBaAFxrwteH+1Eome5RYl+NJa0uCLY0vqWKgLd5Q0cN0e9ZwEG6CUIhvP3AgE/ECQLBYBwcNC4zhaktkAfLaIXgsfTAkAL7PUegT/uqVA1dff8DYeMV6LwqLClD/5noiKVvb7IZ9YBn4uC9kD4ewA/ATAMw0XCQDQCDESB/qTpdWqLUl+YjRYR7KO5Seg+H/zeY4gkAou7NPWF6wIrjKangnFveaSbFCVAQQERILUYMEIwDBXrB+IxIEbGJRvXPzfq50XweF4c7YIgX/D3wuc7igQSGx3rDteMBjyistPqWmdIIX/o953Ut1mwkqEQqUeQHDw+ACQSg6ZpAJuUQMr4XqP+eBxg40VFSXleaCgIQdDSTwqHXUIqytZrgtUgHw32u01akLYuHAQ4SD+BDpBSCVKRQRkoBTcsmsViwpLFc9GweTUO/ONXOHHo9wRN83g3OG3YXySEUM8ZJLSBb/DTZpiLtNsRlJWCRt4VDlCect6xc1YzxmqSUhkgrdYcLF1SjV88/RDee+s5+C7sxtv7nsVTm+7H4kVzEI3SXFY6QfN5waSyYGDK6XC/B0jIuylm1isrrKPeWRPToqXxoA9CByU1OReHqGnLzcG3ls3HLxvW4sN3fo1uVzP2v74FTz5+H26rrYDJlP6GPdzSBj1V2EcqLRiaRIiG6FEosDIrKXUoZBkvqYmF/QN+gJ3xQWFQDsDKkKqvNTeg+0Iz/rnnGWx6bBVqF34NRmM63HDHHzMsN9J8SMplhh4YgKAYAyEv9SRuvOGBg/lUyXhlhRWKLNFilJ86ZIy2iLaOg2h0gMhVi/MUDAaVapdfvX0hvL7vIJ0pAhrSfbjlFNIOH8Nq5JfznwSJUxm35pYMmZJWzQoLqZQkEmEgTgF1SDrtfJBAsFT+/JmdeOyn2yk23Sddck4+/8JurF63FV+ngzV0MYmEBuenp5MjqSAfgylBfpPQdMggNTl2WAGpSnYoyRnD6kz0x20Ui69tv30VD//gefT3x7Djpf2YXbkeu/d8gF1/2oT8vFwe8rkdP9mOcJjyPtVCrsC+UqbvmCQptMzbRfOyKyvQoSomGjLytXPXOyiefh/qfrQNpSUT8eZrWy4DZQ96CnAlq0moipH4lYvZhmSHlfKiouYAgoYIeorRBf5xncsh5g+E9ZP/yp+fzAjKQz9OHS4AfA/2x77Y+EZRCNZEyho69P4Mf0SSoZWaNMBpNttBHshUgJwh5VgvadCQq3bhTbjr3gZ0uum7YUh7qsoHMlXXS/bBxn5VBUZzARRhaHc1VfiQ5adkaYerr+0Dk9HmUy30yWmgR5KaBFZExil//9vTWH7nQty+7Cc4fTZ9JzXKx5ZPkoeLAVOm+yS/BiMs+XSuBPZmdJ5szAqL5nvpMSDfyLWXAwbKXdUIqATNSrBxwKSTaeWTUZBv1d9cK75Ti9uXPorWT88ke4ETbS6EQlEgNUcogEKQ7M9IeWo0Icc2FUITezDCTxmhD5rANpt9poTFBpjNADmGkgTmwGzkYE7FDPoH/tr8LzTueBPurh4sueNxvP/vI3q7/uZKjoWiQE8tUhMmEoD8WibOgNmY5zzfNPddfUKWP5qZpYeaL2yvdhoU08t5xRUES4fNyMCk8jDgNlJu7Ybn8MDDWxEM0YuE5vb5Q/j2ys14de+HOPD+J9RCFwPrihKkifyYciAtVuQX3QR6Qj4BCH6gIdtvRFiepErtZ3kTZvaaJk0DcunZmcPARlKHjFUigJOnO7DzlctF4ZfEPau3YMfO/RhUlHaFt55BzRaAQO2OBbRhtr3tf6yiQRwxu40Ke7Zp3jmhKasmOGoTSuEUPQAsBM0BeSs5OKtF0HpODi95QXyQDAYQFZBDO5RD861W5JbNgc0+45g5EnkwO+KlHuVSNXuNV62qxkeKZi6TBlbYagNIFXBQU1JpzmeGZ6iUpdo4fWjL9fE8Ly8ftmnzUFhc7ZYyvuLUy7fSF1P2+KmeK4Llwe2N1b8zquZVk2ctDVvK5gL5+QBD51qhQ/C2mnMABmNjODZu553IpQXa8iDsk2D/6hLYJ891JhLqLa6m+fR1wxFGN2X0IZdGnG+qblah3jbRscA5ac5KmKbeQNAFACkFax6QS0C8AN2s0NsIkPtFQSGsX7kFxTffrdkKHI1xJb6oY8fN7Ze8j15TRh+SPuJcU1XL+cbKeSZL4ZqiWd88O7nqHuTNXgxT6WyoRfRgtxcCBXaIwskwTJmGnOmVsFfcgeKqVbJgavUbimKuPN9YXd/xYg190qX7Hu1uzLCDDoV0NVb9pb2xcqbRbF2QX3TjlqJZyw4Wz/2+q7TmoXhJzRqUzLs/OKVixckJ0xfts+WXbzQYRSnN+W57U+Xgw3fQ0Zj+rxI2FUPI9u3V/6V83tzeWFVL5qAFmDRVWqmeRzbbtb1q+fmmqj+ce7Em/R2ccjGG8hphM0US8mq2OJOn4W1fAOzwENfvfhz2+mmZ7mlc2XQ9rt/d/wEAAP//Wy3H2QAAAAZJREFUAwBZ2+OEHj0WgQAAAABJRU5ErkJggg==";
|
|
974
995
|
|
|
975
996
|
/***/ }),
|
|
976
997
|
|
|
@@ -997,6 +1018,22 @@ ___CSS_LOADER_EXPORT___.push([module.id, "@font-face{font-family:iconfont;src:ur
|
|
|
997
1018
|
/* harmony default export */ __webpack_exports__.A = (___CSS_LOADER_EXPORT___);
|
|
998
1019
|
|
|
999
1020
|
|
|
1021
|
+
/***/ }),
|
|
1022
|
+
|
|
1023
|
+
/***/ 983:
|
|
1024
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1025
|
+
|
|
1026
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1027
|
+
|
|
1028
|
+
// load the styles
|
|
1029
|
+
var content = __webpack_require__(659);
|
|
1030
|
+
if(content.__esModule) content = content.default;
|
|
1031
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1032
|
+
if(content.locals) module.exports = content.locals;
|
|
1033
|
+
// add the styles to the DOM
|
|
1034
|
+
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
1035
|
+
var update = add("392959d4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1036
|
+
|
|
1000
1037
|
/***/ }),
|
|
1001
1038
|
|
|
1002
1039
|
/***/ 999:
|
|
@@ -1158,54 +1195,156 @@ if (typeof window !== 'undefined') {
|
|
|
1158
1195
|
// Indicate to webpack that this file can be concatenated
|
|
1159
1196
|
/* harmony default export */ var setPublicPath = (null);
|
|
1160
1197
|
|
|
1161
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
1198
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=template&id=4c3b92d2
|
|
1199
|
+
var render = function render() {
|
|
1200
|
+
var _vm = this,
|
|
1201
|
+
_c = _vm._self._c;
|
|
1202
|
+
return _c('div', {
|
|
1203
|
+
staticClass: "yx-speech-recognition"
|
|
1204
|
+
}, [_vm.isLeaderPc ? _c('LeaderCpt', {
|
|
1205
|
+
attrs: {
|
|
1206
|
+
"version": _vm.version
|
|
1207
|
+
}
|
|
1208
|
+
}) : _c('IotCpt', {
|
|
1209
|
+
attrs: {
|
|
1210
|
+
"imgPosition": _vm.imgPosition,
|
|
1211
|
+
"boxPosition": _vm.boxPosition,
|
|
1212
|
+
"boxSize": _vm.boxSize,
|
|
1213
|
+
"size": _vm.size,
|
|
1214
|
+
"screenType": _vm.screenType,
|
|
1215
|
+
"isPro": _vm.isPro,
|
|
1216
|
+
"version": _vm.version
|
|
1217
|
+
}
|
|
1218
|
+
})], 1);
|
|
1219
|
+
};
|
|
1220
|
+
var staticRenderFns = [];
|
|
1221
|
+
|
|
1222
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/IotCpt.vue?vue&type=template&id=03712d72&scoped=true
|
|
1162
1223
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1163
1224
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1164
1225
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1165
1226
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
1166
1227
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
1167
1228
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1168
|
-
var
|
|
1229
|
+
var IotCptvue_type_template_id_03712d72_scoped_true_render = function render() {
|
|
1169
1230
|
var _vm = this,
|
|
1170
1231
|
_c = _vm._self._c;
|
|
1171
|
-
return _c('div', {
|
|
1172
|
-
staticClass: "yx-speech-recognition"
|
|
1173
|
-
}, [_vm.isLeaderPc ? [_c('div', {
|
|
1232
|
+
return _c('div', [_vm.boxShow ? _c('div', {
|
|
1174
1233
|
directives: [{
|
|
1175
|
-
name: "
|
|
1176
|
-
rawName: "v-
|
|
1234
|
+
name: "Drag",
|
|
1235
|
+
rawName: "v-Drag"
|
|
1177
1236
|
}],
|
|
1178
|
-
staticClass: "
|
|
1237
|
+
staticClass: "box",
|
|
1238
|
+
style: _objectSpread(_objectSpread({}, _vm.windowStyle), _vm.boxSize)
|
|
1179
1239
|
}, [_c('div', {
|
|
1180
1240
|
staticClass: "title drag-header"
|
|
1181
|
-
}, [_c('
|
|
1182
|
-
staticClass: "
|
|
1241
|
+
}, [_vm._m(0), _c('span', {
|
|
1242
|
+
staticClass: "iconfont icon-close close closeBtn",
|
|
1243
|
+
on: {
|
|
1244
|
+
"click": _vm.closeClick
|
|
1245
|
+
}
|
|
1183
1246
|
}, [_c('img', {
|
|
1184
1247
|
attrs: {
|
|
1185
|
-
"src": __webpack_require__(
|
|
1186
|
-
|
|
1248
|
+
"src": __webpack_require__(780)
|
|
1249
|
+
}
|
|
1250
|
+
})])]), _vm.messagesList.length == 0 ? _c('div', {
|
|
1251
|
+
staticClass: "content"
|
|
1252
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.boxTitle))])]) : _c('div', {
|
|
1253
|
+
staticClass: "message-list"
|
|
1254
|
+
}, [_c('div', {
|
|
1255
|
+
staticClass: "message-list-inner",
|
|
1256
|
+
attrs: {
|
|
1257
|
+
"id": "messageListRef"
|
|
1258
|
+
}
|
|
1259
|
+
}, _vm._l(_vm.messagesList, function (item) {
|
|
1260
|
+
return _c('Message', _vm._b({
|
|
1261
|
+
key: item.id,
|
|
1262
|
+
attrs: {
|
|
1263
|
+
"size": _vm.size
|
|
1264
|
+
}
|
|
1265
|
+
}, 'Message', item, false));
|
|
1266
|
+
}), 1)]), _c('div', {
|
|
1267
|
+
staticClass: "inputContainer"
|
|
1268
|
+
}, [_c('input', {
|
|
1269
|
+
directives: [{
|
|
1270
|
+
name: "model",
|
|
1271
|
+
rawName: "v-model",
|
|
1272
|
+
value: _vm.inputContent,
|
|
1273
|
+
expression: "inputContent"
|
|
1274
|
+
}],
|
|
1275
|
+
staticClass: "inputBox",
|
|
1276
|
+
attrs: {
|
|
1277
|
+
"placeholder": "请输入内容"
|
|
1278
|
+
},
|
|
1279
|
+
domProps: {
|
|
1280
|
+
"value": _vm.inputContent
|
|
1187
1281
|
},
|
|
1188
1282
|
on: {
|
|
1189
|
-
"
|
|
1283
|
+
"keyup": function keyup($event) {
|
|
1284
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
1285
|
+
return _vm.submitText.apply(null, arguments);
|
|
1286
|
+
},
|
|
1287
|
+
"input": function input($event) {
|
|
1288
|
+
if ($event.target.composing) return;
|
|
1289
|
+
_vm.inputContent = $event.target.value;
|
|
1290
|
+
}
|
|
1190
1291
|
}
|
|
1191
|
-
}), _c('
|
|
1192
|
-
staticClass: "
|
|
1193
|
-
}, [_vm._v("小安助手")])]), !_vm.isShowContent && _vm.isReading ? _c('div', {
|
|
1194
|
-
staticClass: "title-broadcast-text"
|
|
1195
|
-
}, [_c('span', {
|
|
1196
|
-
staticClass: "broadcast-text-point"
|
|
1197
|
-
}, [_vm._v("...")]), _c('span', {
|
|
1198
|
-
staticClass: "broadcast-text"
|
|
1199
|
-
}, [_vm._v("正在播报")])]) : _vm._e(), _c('span', {
|
|
1200
|
-
class: ['iconfont fold', _vm.isShowContent ? '' : 'isfold'],
|
|
1292
|
+
}), _c('div', {
|
|
1293
|
+
staticClass: "inputButton",
|
|
1201
1294
|
on: {
|
|
1202
|
-
"click": _vm.
|
|
1295
|
+
"click": _vm.submitText
|
|
1203
1296
|
}
|
|
1204
1297
|
}, [_c('img', {
|
|
1205
1298
|
attrs: {
|
|
1206
|
-
"src": __webpack_require__(
|
|
1299
|
+
"src": __webpack_require__(462),
|
|
1300
|
+
"alt": ""
|
|
1207
1301
|
}
|
|
1208
|
-
})])]),
|
|
1302
|
+
})])]), _c('div', {
|
|
1303
|
+
staticClass: "input-select dropdown"
|
|
1304
|
+
}, [_c('div', {
|
|
1305
|
+
staticClass: "dropdown-btn",
|
|
1306
|
+
on: {
|
|
1307
|
+
"click": _vm.toggleModal
|
|
1308
|
+
}
|
|
1309
|
+
}, [_vm._v(_vm._s(_vm.mode))]), _c('div', {
|
|
1310
|
+
directives: [{
|
|
1311
|
+
name: "show",
|
|
1312
|
+
rawName: "v-show",
|
|
1313
|
+
value: _vm.isShowSelect,
|
|
1314
|
+
expression: "isShowSelect"
|
|
1315
|
+
}],
|
|
1316
|
+
staticClass: "dropdown-options"
|
|
1317
|
+
}, _vm._l(_vm.options, function (option) {
|
|
1318
|
+
return _c('div', {
|
|
1319
|
+
key: option.value,
|
|
1320
|
+
staticClass: "dropdown-item",
|
|
1321
|
+
class: {
|
|
1322
|
+
selected: _vm.mode === option.value
|
|
1323
|
+
},
|
|
1324
|
+
on: {
|
|
1325
|
+
"click": function click($event) {
|
|
1326
|
+
return _vm.selectModal(option);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
}, [_vm._v(" " + _vm._s(option.label) + " ")]);
|
|
1330
|
+
}), 0)])]) : _vm._e(), _c('div', {
|
|
1331
|
+
directives: [{
|
|
1332
|
+
name: "DragBubble",
|
|
1333
|
+
rawName: "v-DragBubble"
|
|
1334
|
+
}],
|
|
1335
|
+
staticClass: "displayAssistant",
|
|
1336
|
+
style: _vm.bubbleStyle
|
|
1337
|
+
}, [_c('div', {
|
|
1338
|
+
staticClass: "icon1 drag-bubble-header"
|
|
1339
|
+
}, [_c('img', {
|
|
1340
|
+
attrs: {
|
|
1341
|
+
"src": "http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon8-BTvF9JNL.png",
|
|
1342
|
+
"alt": ""
|
|
1343
|
+
},
|
|
1344
|
+
on: {
|
|
1345
|
+
"click": _vm.handleSpeechClick
|
|
1346
|
+
}
|
|
1347
|
+
})]), _vm.bubbleBoxTitle || _vm.bubbleBoxQuestion || _vm.streamItems.length > 0 ? _c('div', {
|
|
1209
1348
|
staticClass: "bubbleBox"
|
|
1210
1349
|
}, [_vm.bubbleBoxQuestion ? _c('div', {
|
|
1211
1350
|
staticClass: "bubbleBox-title",
|
|
@@ -1265,387 +1404,119 @@ var render = function render() {
|
|
|
1265
1404
|
}, [_vm._v(_vm._s(index2 + 1))]), _c('div', {
|
|
1266
1405
|
staticClass: "item-box-content"
|
|
1267
1406
|
}, [_c('div', [_vm._v(_vm._s(item2))])])]);
|
|
1268
|
-
})], 2)]) : _vm._e()]) :
|
|
1407
|
+
})], 2)]) : _vm._e()]) : _c('div', {
|
|
1269
1408
|
directives: [{
|
|
1270
1409
|
name: "show",
|
|
1271
1410
|
rawName: "v-show",
|
|
1272
|
-
value: _vm.
|
|
1273
|
-
expression: "
|
|
1411
|
+
value: _vm.isShowPopover,
|
|
1412
|
+
expression: "isShowPopover"
|
|
1274
1413
|
}],
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
"id": "messageListRef"
|
|
1284
|
-
}
|
|
1285
|
-
}, _vm._l(_vm.messagesList, function (item) {
|
|
1286
|
-
return _c('LeaderMessage', _vm._b({
|
|
1287
|
-
key: item.id,
|
|
1288
|
-
attrs: {
|
|
1289
|
-
"size": _vm.size
|
|
1290
|
-
},
|
|
1291
|
-
on: {
|
|
1292
|
-
"clickRecommendation": _vm.onclickRecommendation
|
|
1293
|
-
}
|
|
1294
|
-
}, 'LeaderMessage', item, false));
|
|
1295
|
-
}), 1)] : [_c('div', {
|
|
1296
|
-
staticClass: "message-list-empty"
|
|
1297
|
-
}, [_c('div', [_vm._v("书记您好,您可以这样问我:")]), _vm.emptyRecommendation.length > 0 ? _vm._l(_vm.emptyRecommendation, function (c, i) {
|
|
1298
|
-
return _c('div', {
|
|
1299
|
-
key: i,
|
|
1300
|
-
staticClass: "recommendation-text",
|
|
1301
|
-
on: {
|
|
1302
|
-
"click": function click($event) {
|
|
1303
|
-
return _vm.onclickRecommendation(c);
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
}, [_vm._v(_vm._s(i + 1) + ". " + _vm._s(c))]);
|
|
1307
|
-
}) : [_c('div', {
|
|
1308
|
-
staticClass: "recommendation-text",
|
|
1309
|
-
on: {
|
|
1310
|
-
"click": function click($event) {
|
|
1311
|
-
return _vm.onclickRecommendation('哪里有水涝事件?');
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
}, [_vm._v("1. 哪里有水涝事件?")])], _vm._m(0)], 2)]], 2), _c('div', {
|
|
1315
|
-
staticClass: "leader-inputContainer"
|
|
1316
|
-
}, [_c('input', {
|
|
1317
|
-
directives: [{
|
|
1318
|
-
name: "model",
|
|
1319
|
-
rawName: "v-model",
|
|
1320
|
-
value: _vm.inputContent,
|
|
1321
|
-
expression: "inputContent"
|
|
1322
|
-
}],
|
|
1323
|
-
staticClass: "inputBox",
|
|
1324
|
-
attrs: {
|
|
1325
|
-
"placeholder": "请输入您的问题"
|
|
1326
|
-
},
|
|
1327
|
-
domProps: {
|
|
1328
|
-
"value": _vm.inputContent
|
|
1329
|
-
},
|
|
1330
|
-
on: {
|
|
1331
|
-
"keyup": function keyup($event) {
|
|
1332
|
-
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
1333
|
-
return _vm.submitText.apply(null, arguments);
|
|
1334
|
-
},
|
|
1335
|
-
"input": function input($event) {
|
|
1336
|
-
if ($event.target.composing) return;
|
|
1337
|
-
_vm.inputContent = $event.target.value;
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
}), _c('div', {
|
|
1341
|
-
staticClass: "inputButton",
|
|
1342
|
-
on: {
|
|
1343
|
-
"click": _vm.submitText
|
|
1344
|
-
}
|
|
1414
|
+
staticClass: "bubbleBox"
|
|
1415
|
+
}, [_vm._m(1)])])]);
|
|
1416
|
+
};
|
|
1417
|
+
var IotCptvue_type_template_id_03712d72_scoped_true_staticRenderFns = [function () {
|
|
1418
|
+
var _vm = this,
|
|
1419
|
+
_c = _vm._self._c;
|
|
1420
|
+
return _c('div', {
|
|
1421
|
+
staticClass: "title-icon"
|
|
1345
1422
|
}, [_c('img', {
|
|
1346
1423
|
attrs: {
|
|
1347
1424
|
"src": __webpack_require__(344),
|
|
1348
1425
|
"alt": ""
|
|
1349
1426
|
}
|
|
1350
|
-
})
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
staticClass: "
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1427
|
+
}), _c('span', [_vm._v("小安助手")])]);
|
|
1428
|
+
}, function () {
|
|
1429
|
+
var _vm = this,
|
|
1430
|
+
_c = _vm._self._c;
|
|
1431
|
+
return _c('div', {
|
|
1432
|
+
staticClass: "bubbleBox-title bubbleBox-title-hi"
|
|
1433
|
+
}, [_c('span', [_vm._v("Hi,我是小安,有问题,尽管问。")])]);
|
|
1434
|
+
}];
|
|
1435
|
+
|
|
1436
|
+
;// ./package/SpeechRecognition/cpts/IotCpt.vue?vue&type=template&id=03712d72&scoped=true
|
|
1437
|
+
|
|
1438
|
+
;// ./node_modules/marked/lib/marked.esm.js
|
|
1439
|
+
var _Class3;
|
|
1440
|
+
function marked_esm_typeof(o) { "@babel/helpers - typeof"; return marked_esm_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, marked_esm_typeof(o); }
|
|
1441
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == marked_esm_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(marked_esm_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
1442
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
1443
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
1444
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
1445
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1446
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
1447
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
1448
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
1449
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, marked_esm_toPropertyKey(o.key), o); } }
|
|
1450
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
1451
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
1452
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1453
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
1454
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
1455
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
1456
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
1457
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1458
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { if ("" === t) return e; var p = o[r]; return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != marked_esm_typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
|
|
1459
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
1460
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
1461
|
+
function marked_esm_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1462
|
+
function marked_esm_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? marked_esm_ownKeys(Object(t), !0).forEach(function (r) { marked_esm_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : marked_esm_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1463
|
+
function marked_esm_defineProperty(e, r, t) { return (r = marked_esm_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
1464
|
+
function marked_esm_toPropertyKey(t) { var i = marked_esm_toPrimitive(t, "string"); return "symbol" == marked_esm_typeof(i) ? i : i + ""; }
|
|
1465
|
+
function marked_esm_toPrimitive(t, r) { if ("object" != marked_esm_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != marked_esm_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1466
|
+
/**
|
|
1467
|
+
* marked v17.0.3 - a markdown parser
|
|
1468
|
+
* Copyright (c) 2018-2026, MarkedJS. (MIT License)
|
|
1469
|
+
* Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
|
|
1470
|
+
* https://github.com/markedjs/marked
|
|
1471
|
+
*/
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* DO NOT EDIT THIS FILE
|
|
1475
|
+
* The code in this file is generated from files in ./src/
|
|
1476
|
+
*/
|
|
1477
|
+
|
|
1478
|
+
function M() {
|
|
1479
|
+
return {
|
|
1480
|
+
async: !1,
|
|
1481
|
+
breaks: !1,
|
|
1482
|
+
extensions: null,
|
|
1483
|
+
gfm: !0,
|
|
1484
|
+
hooks: null,
|
|
1485
|
+
pedantic: !1,
|
|
1486
|
+
renderer: null,
|
|
1487
|
+
silent: !1,
|
|
1488
|
+
tokenizer: null,
|
|
1489
|
+
walkTokens: null
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
var T = M();
|
|
1493
|
+
function H(u) {
|
|
1494
|
+
T = u;
|
|
1495
|
+
}
|
|
1496
|
+
var _ = {
|
|
1497
|
+
exec: function exec() {
|
|
1498
|
+
return null;
|
|
1499
|
+
}
|
|
1500
|
+
};
|
|
1501
|
+
function k(u) {
|
|
1502
|
+
var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
1503
|
+
var t = typeof u == "string" ? u : u.source,
|
|
1504
|
+
n = {
|
|
1505
|
+
replace: function replace(r, i) {
|
|
1506
|
+
var s = typeof i == "string" ? i : i.source;
|
|
1507
|
+
return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
|
|
1404
1508
|
},
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
_vm.inputContent = $event.target.value;
|
|
1509
|
+
getRegex: function getRegex() {
|
|
1510
|
+
return new RegExp(t, e);
|
|
1408
1511
|
}
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
"src": __webpack_require__(462),
|
|
1418
|
-
"alt": ""
|
|
1419
|
-
}
|
|
1420
|
-
})])]), _c('div', {
|
|
1421
|
-
staticClass: "input-select dropdown"
|
|
1422
|
-
}, [_c('div', {
|
|
1423
|
-
staticClass: "dropdown-btn",
|
|
1424
|
-
on: {
|
|
1425
|
-
"click": _vm.toggleModal
|
|
1426
|
-
}
|
|
1427
|
-
}, [_vm._v(_vm._s(_vm.mode))]), _c('div', {
|
|
1428
|
-
directives: [{
|
|
1429
|
-
name: "show",
|
|
1430
|
-
rawName: "v-show",
|
|
1431
|
-
value: _vm.isShowSelect,
|
|
1432
|
-
expression: "isShowSelect"
|
|
1433
|
-
}],
|
|
1434
|
-
staticClass: "dropdown-options"
|
|
1435
|
-
}, _vm._l(_vm.options, function (option) {
|
|
1436
|
-
return _c('div', {
|
|
1437
|
-
key: option.value,
|
|
1438
|
-
staticClass: "dropdown-item",
|
|
1439
|
-
class: {
|
|
1440
|
-
selected: _vm.mode === option.value
|
|
1441
|
-
},
|
|
1442
|
-
on: {
|
|
1443
|
-
"click": function click($event) {
|
|
1444
|
-
return _vm.selectModal(option);
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
}, [_vm._v(" " + _vm._s(option.label) + " ")]);
|
|
1448
|
-
}), 0)])]) : _vm._e(), _c('div', {
|
|
1449
|
-
directives: [{
|
|
1450
|
-
name: "DragBubble",
|
|
1451
|
-
rawName: "v-DragBubble"
|
|
1452
|
-
}],
|
|
1453
|
-
staticClass: "displayAssistant",
|
|
1454
|
-
style: _vm.bubbleStyle
|
|
1455
|
-
}, [_c('div', {
|
|
1456
|
-
staticClass: "icon1 drag-bubble-header"
|
|
1457
|
-
}, [_c('img', {
|
|
1458
|
-
attrs: {
|
|
1459
|
-
"src": "http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon8-BTvF9JNL.png",
|
|
1460
|
-
"alt": ""
|
|
1461
|
-
},
|
|
1462
|
-
on: {
|
|
1463
|
-
"click": _vm.handleSpeechClick
|
|
1464
|
-
}
|
|
1465
|
-
})]), _vm.bubbleBoxTitle || _vm.bubbleBoxQuestion || _vm.streamItems.length > 0 ? _c('div', {
|
|
1466
|
-
staticClass: "bubbleBox"
|
|
1467
|
-
}, [_vm.bubbleBoxQuestion ? _c('div', {
|
|
1468
|
-
staticClass: "bubbleBox-title",
|
|
1469
|
-
class: {
|
|
1470
|
-
'bubbleBox-to': true
|
|
1471
|
-
}
|
|
1472
|
-
}, [_c('span', {
|
|
1473
|
-
staticClass: "html-content",
|
|
1474
|
-
domProps: {
|
|
1475
|
-
"innerHTML": _vm._s(_vm.bubbleBoxQuestion)
|
|
1476
|
-
}
|
|
1477
|
-
})]) : _vm._e(), _vm.bubbleBoxTitle ? _c('div', {
|
|
1478
|
-
staticClass: "bubbleBox-title"
|
|
1479
|
-
}, [_c('span', {
|
|
1480
|
-
staticClass: "html-content",
|
|
1481
|
-
domProps: {
|
|
1482
|
-
"innerHTML": _vm._s(_vm.bubbleBoxTitle)
|
|
1483
|
-
}
|
|
1484
|
-
}), _vm.bubbleBoxBackList.length ? _c('span', {
|
|
1485
|
-
staticClass: "box-container"
|
|
1486
|
-
}, [_vm._l(_vm.bubbleBoxBackList, function (item1, index1) {
|
|
1487
|
-
return item1.name ? _c('span', {
|
|
1488
|
-
staticClass: "item-box"
|
|
1489
|
-
}, [_c('div', {
|
|
1490
|
-
staticClass: "item-box-index"
|
|
1491
|
-
}, [_vm._v(_vm._s(item1.index ? item1.index : index1 + 1))]), _c('div', {
|
|
1492
|
-
staticClass: "item-box-content"
|
|
1493
|
-
}, [_c('div', [item1.label ? _c('span', {
|
|
1494
|
-
staticClass: "item-box-label",
|
|
1495
|
-
style: {
|
|
1496
|
-
background: item1.label_color ? item1.label_color : '#0086BB'
|
|
1497
|
-
}
|
|
1498
|
-
}, [_vm._v(_vm._s(item1.label))]) : _vm._e(), _vm._v(" " + _vm._s(item1.name) + " ")]), _c('div', {
|
|
1499
|
-
staticClass: "item-box-descriptions"
|
|
1500
|
-
}, [_vm._v(_vm._s(item1 === null || item1 === void 0 ? void 0 : item1.address))])])]) : _vm._e();
|
|
1501
|
-
}), _c('span', {
|
|
1502
|
-
staticStyle: {
|
|
1503
|
-
"display": "flex",
|
|
1504
|
-
"justify-content": "end"
|
|
1505
|
-
}
|
|
1506
|
-
}, [_vm.showPrevPage ? _c('span', [_vm._v("上一页")]) : _vm._e(), _vm.showNextPage ? _c('span', {
|
|
1507
|
-
staticClass: "mr-l-20"
|
|
1508
|
-
}, [_vm._v("下一页")]) : _vm._e()])], 2) : _vm._e()]) : _vm._e(), _vm.streamItems.length > 0 && !_vm.bubbleBoxTitle ? _c('div', {
|
|
1509
|
-
staticClass: "bubbleBox-title"
|
|
1510
|
-
}, [_c('span', [_c('StreamInput', {
|
|
1511
|
-
attrs: {
|
|
1512
|
-
"items": _vm.streamItems,
|
|
1513
|
-
"size": _vm.size
|
|
1514
|
-
}
|
|
1515
|
-
})], 1)]) : _vm._e(), _vm.bubbleBoxRecommandList.length ? _c('div', {
|
|
1516
|
-
staticClass: "bubbleBox-suggest"
|
|
1517
|
-
}, [_c('span', [_c('span', [_vm._v("您可能想了解:")]), _vm._l(_vm.bubbleBoxRecommandList, function (item2, index2) {
|
|
1518
|
-
return _c('span', {
|
|
1519
|
-
staticClass: "item-box"
|
|
1520
|
-
}, [_c('div', {
|
|
1521
|
-
staticClass: "item-box-index"
|
|
1522
|
-
}, [_vm._v(_vm._s(index2 + 1))]), _c('div', {
|
|
1523
|
-
staticClass: "item-box-content"
|
|
1524
|
-
}, [_c('div', [_vm._v(_vm._s(item2))])])]);
|
|
1525
|
-
})], 2)]) : _vm._e()]) : _c('div', {
|
|
1526
|
-
directives: [{
|
|
1527
|
-
name: "show",
|
|
1528
|
-
rawName: "v-show",
|
|
1529
|
-
value: _vm.isShowPopover,
|
|
1530
|
-
expression: "isShowPopover"
|
|
1531
|
-
}],
|
|
1532
|
-
staticClass: "bubbleBox"
|
|
1533
|
-
}, [_vm._m(2)])])]], 2);
|
|
1534
|
-
};
|
|
1535
|
-
var staticRenderFns = [function () {
|
|
1536
|
-
var _vm = this,
|
|
1537
|
-
_c = _vm._self._c;
|
|
1538
|
-
return _c('div', {
|
|
1539
|
-
staticClass: "recommendation-tip"
|
|
1540
|
-
}, [_c('img', {
|
|
1541
|
-
attrs: {
|
|
1542
|
-
"src": __webpack_require__(594),
|
|
1543
|
-
"alt": ""
|
|
1544
|
-
}
|
|
1545
|
-
}), _c('span', [_vm._v("您也可以在左上角切换场景主题。")])]);
|
|
1546
|
-
}, function () {
|
|
1547
|
-
var _vm = this,
|
|
1548
|
-
_c = _vm._self._c;
|
|
1549
|
-
return _c('div', {
|
|
1550
|
-
staticClass: "title-icon"
|
|
1551
|
-
}, [_c('img', {
|
|
1552
|
-
attrs: {
|
|
1553
|
-
"src": __webpack_require__(963),
|
|
1554
|
-
"alt": ""
|
|
1555
|
-
}
|
|
1556
|
-
}), _c('span', [_vm._v("小安助手")])]);
|
|
1557
|
-
}, function () {
|
|
1558
|
-
var _vm = this,
|
|
1559
|
-
_c = _vm._self._c;
|
|
1560
|
-
return _c('div', {
|
|
1561
|
-
staticClass: "bubbleBox-title bubbleBox-title-hi"
|
|
1562
|
-
}, [_c('span', [_vm._v("Hi,我是小安,有问题,尽管问。")])]);
|
|
1563
|
-
}];
|
|
1564
|
-
|
|
1565
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=87642bf4&scoped=true
|
|
1566
|
-
|
|
1567
|
-
;// ./node_modules/marked/lib/marked.esm.js
|
|
1568
|
-
var _Class3;
|
|
1569
|
-
function marked_esm_typeof(o) { "@babel/helpers - typeof"; return marked_esm_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, marked_esm_typeof(o); }
|
|
1570
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == marked_esm_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(marked_esm_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
1571
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
1572
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
1573
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
1574
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1575
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
1576
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
1577
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
1578
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, marked_esm_toPropertyKey(o.key), o); } }
|
|
1579
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
1580
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
1581
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1582
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
1583
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
1584
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
1585
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
1586
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1587
|
-
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { if ("" === t) return e; var p = o[r]; return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != marked_esm_typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
|
|
1588
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
1589
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
1590
|
-
function marked_esm_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1591
|
-
function marked_esm_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? marked_esm_ownKeys(Object(t), !0).forEach(function (r) { marked_esm_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : marked_esm_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1592
|
-
function marked_esm_defineProperty(e, r, t) { return (r = marked_esm_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
1593
|
-
function marked_esm_toPropertyKey(t) { var i = marked_esm_toPrimitive(t, "string"); return "symbol" == marked_esm_typeof(i) ? i : i + ""; }
|
|
1594
|
-
function marked_esm_toPrimitive(t, r) { if ("object" != marked_esm_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != marked_esm_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1595
|
-
/**
|
|
1596
|
-
* marked v17.0.3 - a markdown parser
|
|
1597
|
-
* Copyright (c) 2018-2026, MarkedJS. (MIT License)
|
|
1598
|
-
* Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
|
|
1599
|
-
* https://github.com/markedjs/marked
|
|
1600
|
-
*/
|
|
1601
|
-
|
|
1602
|
-
/**
|
|
1603
|
-
* DO NOT EDIT THIS FILE
|
|
1604
|
-
* The code in this file is generated from files in ./src/
|
|
1605
|
-
*/
|
|
1606
|
-
|
|
1607
|
-
function M() {
|
|
1608
|
-
return {
|
|
1609
|
-
async: !1,
|
|
1610
|
-
breaks: !1,
|
|
1611
|
-
extensions: null,
|
|
1612
|
-
gfm: !0,
|
|
1613
|
-
hooks: null,
|
|
1614
|
-
pedantic: !1,
|
|
1615
|
-
renderer: null,
|
|
1616
|
-
silent: !1,
|
|
1617
|
-
tokenizer: null,
|
|
1618
|
-
walkTokens: null
|
|
1619
|
-
};
|
|
1620
|
-
}
|
|
1621
|
-
var T = M();
|
|
1622
|
-
function H(u) {
|
|
1623
|
-
T = u;
|
|
1624
|
-
}
|
|
1625
|
-
var _ = {
|
|
1626
|
-
exec: function exec() {
|
|
1627
|
-
return null;
|
|
1628
|
-
}
|
|
1629
|
-
};
|
|
1630
|
-
function k(u) {
|
|
1631
|
-
var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
1632
|
-
var t = typeof u == "string" ? u : u.source,
|
|
1633
|
-
n = {
|
|
1634
|
-
replace: function replace(r, i) {
|
|
1635
|
-
var s = typeof i == "string" ? i : i.source;
|
|
1636
|
-
return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
|
|
1637
|
-
},
|
|
1638
|
-
getRegex: function getRegex() {
|
|
1639
|
-
return new RegExp(t, e);
|
|
1640
|
-
}
|
|
1641
|
-
};
|
|
1642
|
-
return n;
|
|
1643
|
-
}
|
|
1644
|
-
var Re = function () {
|
|
1645
|
-
try {
|
|
1646
|
-
return !!new RegExp("(?<=1)(?<!1)");
|
|
1647
|
-
} catch (_unused) {
|
|
1648
|
-
return !1;
|
|
1512
|
+
};
|
|
1513
|
+
return n;
|
|
1514
|
+
}
|
|
1515
|
+
var Re = function () {
|
|
1516
|
+
try {
|
|
1517
|
+
return !!new RegExp("(?<=1)(?<!1)");
|
|
1518
|
+
} catch (_unused) {
|
|
1519
|
+
return !1;
|
|
1649
1520
|
}
|
|
1650
1521
|
}(),
|
|
1651
1522
|
m = {
|
|
@@ -4491,8 +4362,8 @@ var WebAudioSpeechRecognizer = /*#__PURE__*/function () {
|
|
|
4491
4362
|
}();
|
|
4492
4363
|
|
|
4493
4364
|
window && (window.WebAudioSpeechRecognizer = WebAudioSpeechRecognizer);
|
|
4494
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/
|
|
4495
|
-
var
|
|
4365
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/Message.vue?vue&type=template&id=30e9b7a9&scoped=true
|
|
4366
|
+
var Messagevue_type_template_id_30e9b7a9_scoped_true_render = function render() {
|
|
4496
4367
|
var _vm = this,
|
|
4497
4368
|
_c = _vm._self._c;
|
|
4498
4369
|
return _c('div', {
|
|
@@ -4503,24 +4374,22 @@ var LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_render = function r
|
|
|
4503
4374
|
'message-type__none': _vm.type === _vm.IMessageType.NONE
|
|
4504
4375
|
}
|
|
4505
4376
|
}, [_c('div', {
|
|
4377
|
+
staticClass: "message-avatar message-avatar__from"
|
|
4378
|
+
}, [_c('img', {
|
|
4379
|
+
directives: [{
|
|
4380
|
+
name: "show",
|
|
4381
|
+
rawName: "v-show",
|
|
4382
|
+
value: _vm.type === _vm.IMessageType.FROM,
|
|
4383
|
+
expression: "type === IMessageType.FROM"
|
|
4384
|
+
}],
|
|
4385
|
+
attrs: {
|
|
4386
|
+
"src": "http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon8-BTvF9JNL.png"
|
|
4387
|
+
}
|
|
4388
|
+
})]), _c('div', {
|
|
4506
4389
|
staticClass: "message-content"
|
|
4507
4390
|
}, [_c('div', {
|
|
4508
4391
|
staticClass: "message-content-inner"
|
|
4509
|
-
}, [_vm.
|
|
4510
|
-
staticClass: "inner-event-recommand"
|
|
4511
|
-
}, [_c('div', {
|
|
4512
|
-
staticClass: "event-recommand-title"
|
|
4513
|
-
}, [_vm._v("您可以进行以下操作:")]), _vm._l(_vm.recommandList, function (c, idx) {
|
|
4514
|
-
return _c('div', {
|
|
4515
|
-
key: idx,
|
|
4516
|
-
staticClass: "event-recommand-item",
|
|
4517
|
-
on: {
|
|
4518
|
-
"click": function click($event) {
|
|
4519
|
-
return _vm.onClickRecommendation(c);
|
|
4520
|
-
}
|
|
4521
|
-
}
|
|
4522
|
-
}, [_vm._v(" " + _vm._s(idx + 1) + ". " + _vm._s(c) + " ")]);
|
|
4523
|
-
})], 2)] : [_vm.streamItems.length > 0 ? _c('div', {
|
|
4392
|
+
}, [_vm.streamItems.length > 0 ? _c('div', {
|
|
4524
4393
|
staticClass: "normal__stream"
|
|
4525
4394
|
}, [_c('div', {
|
|
4526
4395
|
staticClass: "stream-header",
|
|
@@ -4538,19 +4407,7 @@ var LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_render = function r
|
|
|
4538
4407
|
"items": _vm.streamItems,
|
|
4539
4408
|
"size": _vm.size
|
|
4540
4409
|
}
|
|
4541
|
-
}) : _vm._e()], 1) : _vm._e(),
|
|
4542
|
-
staticClass: "message-content__text html-content broadcast-content",
|
|
4543
|
-
style: _vm.contentStyle
|
|
4544
|
-
}, [_c('img', {
|
|
4545
|
-
attrs: {
|
|
4546
|
-
"src": __webpack_require__(907),
|
|
4547
|
-
"alt": ""
|
|
4548
|
-
}
|
|
4549
|
-
}), _vm._v(" 【"), _c('span', {
|
|
4550
|
-
staticClass: "street"
|
|
4551
|
-
}, [_vm._v(_vm._s(_vm.content.street))]), _vm._v("】【"), _c('span', [_vm._v(_vm._s(_vm.content.adress))]), _vm._v("】于今日"), _c('span', [_vm._v(_vm._s(_vm.content.time))]), _vm._v("发生一起"), _c('span', {
|
|
4552
|
-
staticClass: "level"
|
|
4553
|
-
}, [_vm._v("严重")]), _vm._v("等级"), _c('span', [_vm._v(_vm._s(_vm.content.type))]), _vm._v("事件,请您关注。 ")]) : _c('div', {
|
|
4410
|
+
}) : _vm._e()], 1) : _vm._e(), _c('div', {
|
|
4554
4411
|
staticClass: "message-content__text html-content",
|
|
4555
4412
|
style: _vm.contentStyle,
|
|
4556
4413
|
domProps: {
|
|
@@ -4582,22 +4439,33 @@ var LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_render = function r
|
|
|
4582
4439
|
staticClass: "normal__text"
|
|
4583
4440
|
}, [_c('div', [_vm._v("您可能想了解:")]), _vm._l(_vm.recommandList, function (item2, index2) {
|
|
4584
4441
|
return _c('div', {
|
|
4585
|
-
key: index2,
|
|
4586
4442
|
staticClass: "item-box"
|
|
4587
4443
|
}, [_c('div', {
|
|
4588
4444
|
staticClass: "item-box-index"
|
|
4589
4445
|
}, [_vm._v(_vm._s(index2 + 1))]), _c('div', {
|
|
4590
4446
|
staticClass: "item-box-content"
|
|
4591
4447
|
}, [_c('div', [_vm._v(_vm._s(item2))])])]);
|
|
4592
|
-
})], 2) : _vm._e()]],
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4448
|
+
})], 2) : _vm._e()])]), _c('div', {
|
|
4449
|
+
staticClass: "message-avatar message-avatar__to"
|
|
4450
|
+
}, [_c('img', {
|
|
4451
|
+
directives: [{
|
|
4452
|
+
name: "show",
|
|
4453
|
+
rawName: "v-show",
|
|
4454
|
+
value: _vm.type === _vm.IMessageType.TO,
|
|
4455
|
+
expression: "type === IMessageType.TO"
|
|
4456
|
+
}],
|
|
4457
|
+
attrs: {
|
|
4458
|
+
"src": __webpack_require__(812)
|
|
4459
|
+
}
|
|
4460
|
+
})])]);
|
|
4461
|
+
};
|
|
4462
|
+
var Messagevue_type_template_id_30e9b7a9_scoped_true_staticRenderFns = [];
|
|
4463
|
+
|
|
4464
|
+
;// ./package/SpeechRecognition/cpts/Message.vue?vue&type=template&id=30e9b7a9&scoped=true
|
|
4465
|
+
|
|
4466
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/StreamInput.vue?vue&type=template&id=39c6bdf0&scoped=true
|
|
4467
|
+
var StreamInputvue_type_template_id_39c6bdf0_scoped_true_render = function render() {
|
|
4468
|
+
var _vm = this,
|
|
4601
4469
|
_c = _vm._self._c;
|
|
4602
4470
|
return _c('div', {
|
|
4603
4471
|
staticClass: "stream-input"
|
|
@@ -4833,241 +4701,6 @@ var component = normalizeComponent(
|
|
|
4833
4701
|
)
|
|
4834
4702
|
|
|
4835
4703
|
/* harmony default export */ var StreamInput = (component.exports);
|
|
4836
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=script&lang=js
|
|
4837
|
-
|
|
4838
|
-
var LeaderPcMessagevue_type_script_lang_js_default_ = {
|
|
4839
|
-
components: {
|
|
4840
|
-
StreamInput: StreamInput
|
|
4841
|
-
},
|
|
4842
|
-
props: {
|
|
4843
|
-
type: {
|
|
4844
|
-
type: String,
|
|
4845
|
-
default: ""
|
|
4846
|
-
},
|
|
4847
|
-
content: {
|
|
4848
|
-
type: [String, Object],
|
|
4849
|
-
default: null
|
|
4850
|
-
},
|
|
4851
|
-
backList: {
|
|
4852
|
-
type: Array,
|
|
4853
|
-
default: function _default() {
|
|
4854
|
-
return [];
|
|
4855
|
-
}
|
|
4856
|
-
},
|
|
4857
|
-
showNextPage: {
|
|
4858
|
-
type: Boolean,
|
|
4859
|
-
default: false
|
|
4860
|
-
},
|
|
4861
|
-
showPrevPage: {
|
|
4862
|
-
type: Boolean,
|
|
4863
|
-
default: false
|
|
4864
|
-
},
|
|
4865
|
-
recommandList: {
|
|
4866
|
-
type: Array,
|
|
4867
|
-
default: function _default() {
|
|
4868
|
-
return [];
|
|
4869
|
-
}
|
|
4870
|
-
},
|
|
4871
|
-
contentStyle: {
|
|
4872
|
-
type: String,
|
|
4873
|
-
default: ""
|
|
4874
|
-
},
|
|
4875
|
-
size: {
|
|
4876
|
-
type: String,
|
|
4877
|
-
default: ""
|
|
4878
|
-
},
|
|
4879
|
-
streamItems: {
|
|
4880
|
-
type: Array,
|
|
4881
|
-
default: function _default() {
|
|
4882
|
-
return [];
|
|
4883
|
-
}
|
|
4884
|
-
},
|
|
4885
|
-
isBroadcast: {
|
|
4886
|
-
type: Boolean,
|
|
4887
|
-
default: false
|
|
4888
|
-
},
|
|
4889
|
-
isEventRecommand: {
|
|
4890
|
-
type: Boolean,
|
|
4891
|
-
default: false
|
|
4892
|
-
}
|
|
4893
|
-
},
|
|
4894
|
-
data: function data() {
|
|
4895
|
-
return {
|
|
4896
|
-
manuallyExpanded: false,
|
|
4897
|
-
IMessageType: {
|
|
4898
|
-
NONE: "NONE",
|
|
4899
|
-
FROM: "FROM",
|
|
4900
|
-
TO: "TO"
|
|
4901
|
-
}
|
|
4902
|
-
};
|
|
4903
|
-
},
|
|
4904
|
-
computed: {
|
|
4905
|
-
htmlFontSize: function htmlFontSize() {
|
|
4906
|
-
var fontSize = "42px";
|
|
4907
|
-
if (this.size == "medium") {
|
|
4908
|
-
fontSize = "18px";
|
|
4909
|
-
} else {
|
|
4910
|
-
fontSize = "42px";
|
|
4911
|
-
}
|
|
4912
|
-
return fontSize;
|
|
4913
|
-
},
|
|
4914
|
-
collapsed: function collapsed() {
|
|
4915
|
-
// 如果用户手动展开,则不折叠
|
|
4916
|
-
if (this.manuallyExpanded) {
|
|
4917
|
-
return false;
|
|
4918
|
-
}
|
|
4919
|
-
// 否则根据content是否有内容自动折叠
|
|
4920
|
-
return !!this.content;
|
|
4921
|
-
}
|
|
4922
|
-
},
|
|
4923
|
-
methods: {
|
|
4924
|
-
onClickRecommendation: function onClickRecommendation(item2) {
|
|
4925
|
-
this.$emit('clickRecommendation', item2);
|
|
4926
|
-
}
|
|
4927
|
-
}
|
|
4928
|
-
};
|
|
4929
|
-
|
|
4930
|
-
var LeaderPcMessagevue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
4931
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
4932
|
-
return {
|
|
4933
|
-
"c90b9fc2": _vm.htmlFontSize
|
|
4934
|
-
};
|
|
4935
|
-
});
|
|
4936
|
-
};
|
|
4937
|
-
var LeaderPcMessagevue_type_script_lang_js_setup_ = LeaderPcMessagevue_type_script_lang_js_default_.setup;
|
|
4938
|
-
LeaderPcMessagevue_type_script_lang_js_default_.setup = LeaderPcMessagevue_type_script_lang_js_setup_ ? function (props, ctx) {
|
|
4939
|
-
LeaderPcMessagevue_type_script_lang_js_injectCSSVars_();
|
|
4940
|
-
return LeaderPcMessagevue_type_script_lang_js_setup_(props, ctx);
|
|
4941
|
-
} : LeaderPcMessagevue_type_script_lang_js_injectCSSVars_;
|
|
4942
|
-
/* harmony default export */ var LeaderPcMessagevue_type_script_lang_js = (LeaderPcMessagevue_type_script_lang_js_default_);
|
|
4943
|
-
;// ./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=script&lang=js
|
|
4944
|
-
/* harmony default export */ var cpts_LeaderPcMessagevue_type_script_lang_js = (LeaderPcMessagevue_type_script_lang_js);
|
|
4945
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=style&index=0&id=ed23ed2a&prod&lang=scss&scoped=true
|
|
4946
|
-
var LeaderPcMessagevue_type_style_index_0_id_ed23ed2a_prod_lang_scss_scoped_true = __webpack_require__(801);
|
|
4947
|
-
;// ./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=style&index=0&id=ed23ed2a&prod&lang=scss&scoped=true
|
|
4948
|
-
|
|
4949
|
-
;// ./package/SpeechRecognition/cpts/LeaderPcMessage.vue
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
;
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
/* normalize component */
|
|
4957
|
-
|
|
4958
|
-
var LeaderPcMessage_component = normalizeComponent(
|
|
4959
|
-
cpts_LeaderPcMessagevue_type_script_lang_js,
|
|
4960
|
-
LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_render,
|
|
4961
|
-
LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_staticRenderFns,
|
|
4962
|
-
false,
|
|
4963
|
-
null,
|
|
4964
|
-
"ed23ed2a",
|
|
4965
|
-
null
|
|
4966
|
-
|
|
4967
|
-
)
|
|
4968
|
-
|
|
4969
|
-
/* harmony default export */ var LeaderPcMessage = (LeaderPcMessage_component.exports);
|
|
4970
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/Message.vue?vue&type=template&id=30e9b7a9&scoped=true
|
|
4971
|
-
var Messagevue_type_template_id_30e9b7a9_scoped_true_render = function render() {
|
|
4972
|
-
var _vm = this,
|
|
4973
|
-
_c = _vm._self._c;
|
|
4974
|
-
return _c('div', {
|
|
4975
|
-
staticClass: "message-wrapper",
|
|
4976
|
-
class: {
|
|
4977
|
-
'message-type__from': _vm.type === _vm.IMessageType.FROM,
|
|
4978
|
-
'message-type__to': _vm.type === _vm.IMessageType.TO,
|
|
4979
|
-
'message-type__none': _vm.type === _vm.IMessageType.NONE
|
|
4980
|
-
}
|
|
4981
|
-
}, [_c('div', {
|
|
4982
|
-
staticClass: "message-avatar message-avatar__from"
|
|
4983
|
-
}, [_c('img', {
|
|
4984
|
-
directives: [{
|
|
4985
|
-
name: "show",
|
|
4986
|
-
rawName: "v-show",
|
|
4987
|
-
value: _vm.type === _vm.IMessageType.FROM,
|
|
4988
|
-
expression: "type === IMessageType.FROM"
|
|
4989
|
-
}],
|
|
4990
|
-
attrs: {
|
|
4991
|
-
"src": "http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon8-BTvF9JNL.png"
|
|
4992
|
-
}
|
|
4993
|
-
})]), _c('div', {
|
|
4994
|
-
staticClass: "message-content"
|
|
4995
|
-
}, [_c('div', {
|
|
4996
|
-
staticClass: "message-content-inner"
|
|
4997
|
-
}, [_vm.streamItems.length > 0 ? _c('div', {
|
|
4998
|
-
staticClass: "normal__stream"
|
|
4999
|
-
}, [_c('div', {
|
|
5000
|
-
staticClass: "stream-header",
|
|
5001
|
-
on: {
|
|
5002
|
-
"click": function click($event) {
|
|
5003
|
-
_vm.manuallyExpanded = !_vm.manuallyExpanded;
|
|
5004
|
-
}
|
|
5005
|
-
}
|
|
5006
|
-
}, [_c('h3', [_vm._v("执行过程")]), _vm.content ? _c('span', {
|
|
5007
|
-
staticClass: "collapse-icon",
|
|
5008
|
-
class: _vm.collapsed ? 'arrow-up' : 'arrow-down'
|
|
5009
|
-
}) : _vm._e()]), !_vm.collapsed ? _c('StreamInput', {
|
|
5010
|
-
attrs: {
|
|
5011
|
-
"showBorder": true,
|
|
5012
|
-
"items": _vm.streamItems,
|
|
5013
|
-
"size": _vm.size
|
|
5014
|
-
}
|
|
5015
|
-
}) : _vm._e()], 1) : _vm._e(), _c('div', {
|
|
5016
|
-
staticClass: "message-content__text html-content",
|
|
5017
|
-
style: _vm.contentStyle,
|
|
5018
|
-
domProps: {
|
|
5019
|
-
"innerHTML": _vm._s(_vm.content)
|
|
5020
|
-
}
|
|
5021
|
-
}), _vm.backList.length ? _c('div', {
|
|
5022
|
-
staticClass: "normal__text"
|
|
5023
|
-
}, [_vm._l(_vm.backList, function (item1, index1) {
|
|
5024
|
-
return _c('div', {
|
|
5025
|
-
staticClass: "item-box"
|
|
5026
|
-
}, [_c('div', {
|
|
5027
|
-
staticClass: "item-box-index"
|
|
5028
|
-
}, [_vm._v(_vm._s(item1.index ? item1.index : index1 + 1))]), _c('div', [_c('div', [item1.label ? _c('span', {
|
|
5029
|
-
staticClass: "item-box-label",
|
|
5030
|
-
style: {
|
|
5031
|
-
background: item1.label_color ? item1.label_color : '#0086BB'
|
|
5032
|
-
}
|
|
5033
|
-
}, [_vm._v(_vm._s(item1.label))]) : _vm._e(), _vm._v(" " + _vm._s(item1.name) + " ")]), _c('div', {
|
|
5034
|
-
staticClass: "item-box-description"
|
|
5035
|
-
}, [_vm._v(_vm._s(item1 === null || item1 === void 0 ? void 0 : item1.address))])])]);
|
|
5036
|
-
}), _c('span', {
|
|
5037
|
-
staticStyle: {
|
|
5038
|
-
"display": "flex",
|
|
5039
|
-
"justify-content": "end"
|
|
5040
|
-
}
|
|
5041
|
-
}, [_vm.showPrevPage ? _c('span', [_vm._v("上一页")]) : _vm._e(), _vm.showNextPage ? _c('span', {
|
|
5042
|
-
staticClass: "mr-l-20"
|
|
5043
|
-
}, [_vm._v("下一页")]) : _vm._e()])], 2) : _vm._e(), _vm.recommandList.length ? _c('div', {
|
|
5044
|
-
staticClass: "normal__text"
|
|
5045
|
-
}, [_c('div', [_vm._v("您可能想了解:")]), _vm._l(_vm.recommandList, function (item2, index2) {
|
|
5046
|
-
return _c('div', {
|
|
5047
|
-
staticClass: "item-box"
|
|
5048
|
-
}, [_c('div', {
|
|
5049
|
-
staticClass: "item-box-index"
|
|
5050
|
-
}, [_vm._v(_vm._s(index2 + 1))]), _c('div', {
|
|
5051
|
-
staticClass: "item-box-content"
|
|
5052
|
-
}, [_c('div', [_vm._v(_vm._s(item2))])])]);
|
|
5053
|
-
})], 2) : _vm._e()])]), _c('div', {
|
|
5054
|
-
staticClass: "message-avatar message-avatar__to"
|
|
5055
|
-
}, [_c('img', {
|
|
5056
|
-
directives: [{
|
|
5057
|
-
name: "show",
|
|
5058
|
-
rawName: "v-show",
|
|
5059
|
-
value: _vm.type === _vm.IMessageType.TO,
|
|
5060
|
-
expression: "type === IMessageType.TO"
|
|
5061
|
-
}],
|
|
5062
|
-
attrs: {
|
|
5063
|
-
"src": __webpack_require__(812)
|
|
5064
|
-
}
|
|
5065
|
-
})])]);
|
|
5066
|
-
};
|
|
5067
|
-
var Messagevue_type_template_id_30e9b7a9_scoped_true_staticRenderFns = [];
|
|
5068
|
-
|
|
5069
|
-
;// ./package/SpeechRecognition/cpts/Message.vue?vue&type=template&id=30e9b7a9&scoped=true
|
|
5070
|
-
|
|
5071
4704
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/Message.vue?vue&type=script&lang=js
|
|
5072
4705
|
|
|
5073
4706
|
var Messagevue_type_script_lang_js_default_ = {
|
|
@@ -9223,8 +8856,8 @@ var Tx = /*#__PURE__*/function () {
|
|
|
9223
8856
|
}
|
|
9224
8857
|
}, {
|
|
9225
8858
|
key: "getLeaderSpeechRecommend",
|
|
9226
|
-
value: function getLeaderSpeechRecommend() {
|
|
9227
|
-
return gridRequest.get(
|
|
8859
|
+
value: function getLeaderSpeechRecommend(params) {
|
|
8860
|
+
return gridRequest.get("/sjzpts/speech2speech/speech_recommend?page_type=".concat(params.page_type));
|
|
9228
8861
|
}
|
|
9229
8862
|
}]);
|
|
9230
8863
|
}();
|
|
@@ -19802,214 +19435,6 @@ var onQuit = function onQuit(opt) {
|
|
|
19802
19435
|
// }
|
|
19803
19436
|
|
|
19804
19437
|
// export { wakeUpState, wakeUpState as default }
|
|
19805
|
-
;// ./package/SpeechRecognition/directive/leaderDrag.js
|
|
19806
|
-
function leaderDrag_typeof(o) { "@babel/helpers - typeof"; return leaderDrag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, leaderDrag_typeof(o); }
|
|
19807
|
-
function leaderDrag_toConsumableArray(r) { return leaderDrag_arrayWithoutHoles(r) || leaderDrag_iterableToArray(r) || leaderDrag_unsupportedIterableToArray(r) || leaderDrag_nonIterableSpread(); }
|
|
19808
|
-
function leaderDrag_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19809
|
-
function leaderDrag_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return leaderDrag_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? leaderDrag_arrayLikeToArray(r, a) : void 0; } }
|
|
19810
|
-
function leaderDrag_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
19811
|
-
function leaderDrag_arrayWithoutHoles(r) { if (Array.isArray(r)) return leaderDrag_arrayLikeToArray(r); }
|
|
19812
|
-
function leaderDrag_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19813
|
-
var LeaderDrag = {
|
|
19814
|
-
bind: function bind(el, binding, vnode) {
|
|
19815
|
-
var dragDom = el.querySelector('.drag-box') || el;
|
|
19816
|
-
var dragHeaderEl = el.querySelector('.drag-header') || el.querySelector('.header');
|
|
19817
|
-
if (!dragHeaderEl) {
|
|
19818
|
-
console.warn('未找到拖拽头部元素');
|
|
19819
|
-
return;
|
|
19820
|
-
}
|
|
19821
|
-
var boxWidth = dragDom.style.width.replace('px', '');
|
|
19822
|
-
var boxHeight = dragDom.style.height.replace('px', '');
|
|
19823
|
-
var isDragging = false;
|
|
19824
|
-
var hasDragged = false;
|
|
19825
|
-
var startX = 0,
|
|
19826
|
-
startY = 0,
|
|
19827
|
-
initialLeft = 0,
|
|
19828
|
-
initialTop = 0;
|
|
19829
|
-
var vm = vnode.context;
|
|
19830
|
-
var DRAG_THRESHOLD = 5;
|
|
19831
|
-
|
|
19832
|
-
// 鼠标事件处理
|
|
19833
|
-
var startDragMouse = function startDragMouse(e) {
|
|
19834
|
-
if (e.target.closest('.closeBtn')) return;
|
|
19835
|
-
if (e.button !== 0) return;
|
|
19836
|
-
isDragging = true;
|
|
19837
|
-
hasDragged = false;
|
|
19838
|
-
var rect = dragDom.getBoundingClientRect();
|
|
19839
|
-
initialLeft = rect.left;
|
|
19840
|
-
initialTop = rect.top;
|
|
19841
|
-
startX = e.clientX;
|
|
19842
|
-
startY = e.clientY;
|
|
19843
|
-
dragDom.classList.add('dragging');
|
|
19844
|
-
document.addEventListener('mousemove', onDragMouse);
|
|
19845
|
-
document.addEventListener('mouseup', _stopDragMouse);
|
|
19846
|
-
e.preventDefault();
|
|
19847
|
-
e.stopPropagation();
|
|
19848
|
-
};
|
|
19849
|
-
var onDragMouse = function onDragMouse(e) {
|
|
19850
|
-
if (!isDragging) return;
|
|
19851
|
-
var deltaX = e.clientX - startX;
|
|
19852
|
-
var deltaY = e.clientY - startY;
|
|
19853
|
-
var maxX = window.innerWidth - boxWidth;
|
|
19854
|
-
var maxY = window.innerHeight - boxHeight;
|
|
19855
|
-
var newLeft = Math.max(0, Math.min(initialLeft + deltaX, maxX));
|
|
19856
|
-
var newTop = Math.max(0, Math.min(initialTop + deltaY, maxY));
|
|
19857
|
-
dragDom.style.left = newLeft + 'px';
|
|
19858
|
-
dragDom.style.top = newTop + 'px';
|
|
19859
|
-
updateVueData(newLeft, newTop);
|
|
19860
|
-
var dragDistance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
|
|
19861
|
-
if (dragDistance > DRAG_THRESHOLD) {
|
|
19862
|
-
hasDragged = true;
|
|
19863
|
-
}
|
|
19864
|
-
};
|
|
19865
|
-
var _stopDragMouse = function stopDragMouse() {
|
|
19866
|
-
isDragging = false;
|
|
19867
|
-
dragDom.classList.remove('dragging');
|
|
19868
|
-
document.removeEventListener('mousemove', onDragMouse);
|
|
19869
|
-
document.removeEventListener('mouseup', _stopDragMouse);
|
|
19870
|
-
if (hasDragged) {
|
|
19871
|
-
var preventClick = function preventClick(e) {
|
|
19872
|
-
e.preventDefault();
|
|
19873
|
-
e.stopPropagation();
|
|
19874
|
-
};
|
|
19875
|
-
var allElements = [dragDom].concat(leaderDrag_toConsumableArray(dragDom.querySelectorAll('*')));
|
|
19876
|
-
allElements.forEach(function (element) {
|
|
19877
|
-
element.addEventListener('click', preventClick, {
|
|
19878
|
-
once: true,
|
|
19879
|
-
capture: true
|
|
19880
|
-
});
|
|
19881
|
-
});
|
|
19882
|
-
setTimeout(function () {
|
|
19883
|
-
allElements.forEach(function (element) {
|
|
19884
|
-
element.removeEventListener('click', preventClick, {
|
|
19885
|
-
capture: true
|
|
19886
|
-
});
|
|
19887
|
-
});
|
|
19888
|
-
}, 100);
|
|
19889
|
-
}
|
|
19890
|
-
};
|
|
19891
|
-
|
|
19892
|
-
// 触摸事件处理
|
|
19893
|
-
var startDragTouch = function startDragTouch(e) {
|
|
19894
|
-
if (e.target.closest('.closeBtn')) return;
|
|
19895
|
-
if (e.touches.length !== 1) return;
|
|
19896
|
-
isDragging = true;
|
|
19897
|
-
hasDragged = false;
|
|
19898
|
-
var rect = dragDom.getBoundingClientRect();
|
|
19899
|
-
initialLeft = rect.left;
|
|
19900
|
-
initialTop = rect.top;
|
|
19901
|
-
var touch = e.touches[0];
|
|
19902
|
-
startX = touch.clientX;
|
|
19903
|
-
startY = touch.clientY;
|
|
19904
|
-
dragDom.classList.add('dragging');
|
|
19905
|
-
document.addEventListener('touchmove', onDragTouch, {
|
|
19906
|
-
passive: false
|
|
19907
|
-
});
|
|
19908
|
-
document.addEventListener('touchend', _stopDragTouch);
|
|
19909
|
-
e.stopPropagation();
|
|
19910
|
-
};
|
|
19911
|
-
var onDragTouch = function onDragTouch(e) {
|
|
19912
|
-
if (!isDragging) return;
|
|
19913
|
-
var touch = e.touches[0];
|
|
19914
|
-
var deltaX = touch.clientX - startX;
|
|
19915
|
-
var deltaY = touch.clientY - startY;
|
|
19916
|
-
var maxX = window.innerWidth - boxWidth;
|
|
19917
|
-
var maxY = window.innerHeight - boxHeight;
|
|
19918
|
-
var newLeft = Math.max(0, Math.min(initialLeft + deltaX, maxX));
|
|
19919
|
-
var newTop = Math.max(0, Math.min(initialTop + deltaY, maxY));
|
|
19920
|
-
dragDom.style.left = newLeft + 'px';
|
|
19921
|
-
dragDom.style.top = newTop + 'px';
|
|
19922
|
-
updateVueData(newLeft, newTop);
|
|
19923
|
-
var dragDistance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
|
|
19924
|
-
if (dragDistance > DRAG_THRESHOLD) {
|
|
19925
|
-
hasDragged = true;
|
|
19926
|
-
e.preventDefault();
|
|
19927
|
-
e.stopPropagation();
|
|
19928
|
-
}
|
|
19929
|
-
};
|
|
19930
|
-
var _stopDragTouch = function stopDragTouch() {
|
|
19931
|
-
isDragging = false;
|
|
19932
|
-
dragDom.classList.remove('dragging');
|
|
19933
|
-
document.removeEventListener('touchmove', onDragTouch);
|
|
19934
|
-
document.removeEventListener('touchend', _stopDragTouch);
|
|
19935
|
-
if (hasDragged) {
|
|
19936
|
-
var preventClick = function preventClick(e) {
|
|
19937
|
-
e.preventDefault();
|
|
19938
|
-
e.stopPropagation();
|
|
19939
|
-
};
|
|
19940
|
-
var allElements = [dragDom].concat(leaderDrag_toConsumableArray(dragDom.querySelectorAll('*')));
|
|
19941
|
-
allElements.forEach(function (element) {
|
|
19942
|
-
element.addEventListener('click', preventClick, {
|
|
19943
|
-
once: true,
|
|
19944
|
-
capture: true
|
|
19945
|
-
});
|
|
19946
|
-
});
|
|
19947
|
-
setTimeout(function () {
|
|
19948
|
-
allElements.forEach(function (element) {
|
|
19949
|
-
element.removeEventListener('click', preventClick, {
|
|
19950
|
-
capture: true
|
|
19951
|
-
});
|
|
19952
|
-
});
|
|
19953
|
-
}, 100);
|
|
19954
|
-
}
|
|
19955
|
-
};
|
|
19956
|
-
|
|
19957
|
-
// 更新 Vue 数据的函数
|
|
19958
|
-
var updateVueData = function updateVueData(left, top) {
|
|
19959
|
-
if (!vm) return;
|
|
19960
|
-
|
|
19961
|
-
// 方式1:如果指令有绑定值,使用绑定值作为数据路径
|
|
19962
|
-
if (binding.value) {
|
|
19963
|
-
var dataPath = binding.value;
|
|
19964
|
-
if (vm[dataPath]) {
|
|
19965
|
-
vm[dataPath].left = left + 'px';
|
|
19966
|
-
vm[dataPath].top = top + 'px';
|
|
19967
|
-
}
|
|
19968
|
-
}
|
|
19969
|
-
// 方式2:如果没有绑定值,尝试自动更新常见的样式对象
|
|
19970
|
-
else {
|
|
19971
|
-
// 常见的样式数据属性名
|
|
19972
|
-
var possibleStyleProps = ['style', 'windowStyle', 'dragStyle', 'position', 'pos'];
|
|
19973
|
-
for (var _i = 0, _possibleStyleProps = possibleStyleProps; _i < _possibleStyleProps.length; _i++) {
|
|
19974
|
-
var prop = _possibleStyleProps[_i];
|
|
19975
|
-
if (vm[prop] && leaderDrag_typeof(vm[prop]) === 'object') {
|
|
19976
|
-
vm.$set(vm[prop], 'left', left + 'px');
|
|
19977
|
-
vm.$set(vm[prop], 'top', top + 'px');
|
|
19978
|
-
break;
|
|
19979
|
-
}
|
|
19980
|
-
}
|
|
19981
|
-
|
|
19982
|
-
// 或者更新独立的 x, y 数据
|
|
19983
|
-
if (vm.x !== undefined) vm.x = left;
|
|
19984
|
-
if (vm.y !== undefined) vm.y = top;
|
|
19985
|
-
}
|
|
19986
|
-
};
|
|
19987
|
-
|
|
19988
|
-
// 确保有定位
|
|
19989
|
-
if (window.getComputedStyle(dragDom).position === 'static') {
|
|
19990
|
-
dragDom.style.position = 'absolute';
|
|
19991
|
-
}
|
|
19992
|
-
dragHeaderEl.style.cursor = 'move';
|
|
19993
|
-
dragHeaderEl.addEventListener('mousedown', startDragMouse);
|
|
19994
|
-
dragHeaderEl.addEventListener('touchstart', startDragTouch, {
|
|
19995
|
-
passive: false
|
|
19996
|
-
});
|
|
19997
|
-
el._cleanupDrag = function () {
|
|
19998
|
-
dragHeaderEl.removeEventListener('mousedown', startDragMouse);
|
|
19999
|
-
dragHeaderEl.removeEventListener('touchstart', startDragTouch);
|
|
20000
|
-
document.removeEventListener('mousemove', onDragMouse);
|
|
20001
|
-
document.removeEventListener('mouseup', _stopDragMouse);
|
|
20002
|
-
document.removeEventListener('touchmove', onDragTouch);
|
|
20003
|
-
document.removeEventListener('touchend', _stopDragTouch);
|
|
20004
|
-
};
|
|
20005
|
-
},
|
|
20006
|
-
unbind: function unbind(el) {
|
|
20007
|
-
if (el._cleanupDrag) {
|
|
20008
|
-
el._cleanupDrag();
|
|
20009
|
-
}
|
|
20010
|
-
}
|
|
20011
|
-
};
|
|
20012
|
-
/* harmony default export */ var leaderDrag = ((/* unused pure expression or super */ null && (LeaderDrag)));
|
|
20013
19438
|
;// ./package/SpeechRecognition/directive/drag.js
|
|
20014
19439
|
function drag_typeof(o) { "@babel/helpers - typeof"; return drag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, drag_typeof(o); }
|
|
20015
19440
|
function drag_toConsumableArray(r) { return drag_arrayWithoutHoles(r) || drag_iterableToArray(r) || drag_unsupportedIterableToArray(r) || drag_nonIterableSpread(); }
|
|
@@ -21121,89 +20546,2111 @@ var mockDataSequence = [{
|
|
|
21121
20546
|
"parent_id": 2,
|
|
21122
20547
|
"status": "generating"
|
|
21123
20548
|
},
|
|
21124
|
-
"request_back": {},
|
|
21125
|
-
"cim": "cim",
|
|
21126
|
-
"has_next_page": false,
|
|
21127
|
-
"has_prev_page": false
|
|
21128
|
-
}, {
|
|
21129
|
-
"name": "",
|
|
21130
|
-
"command_name": "",
|
|
21131
|
-
"request_id": "r-1773145887",
|
|
21132
|
-
"sentence_id": "8078ea4b-5dba-3fde-2047-c62d018fdb3e",
|
|
21133
|
-
"answer_id": "09d12a2d62b0050a",
|
|
21134
|
-
"require_ack": false,
|
|
21135
|
-
"par": {},
|
|
21136
|
-
"standard_back": "",
|
|
21137
|
-
"back_list": [],
|
|
21138
|
-
"recommand_list": [],
|
|
21139
|
-
"show_text": "",
|
|
21140
|
-
"reply": {
|
|
21141
|
-
"id": 5,
|
|
21142
|
-
"level": 2,
|
|
21143
|
-
"text": "调用查看地理实体周边违停情况工具",
|
|
21144
|
-
"parent_id": 2,
|
|
21145
|
-
"status": "completed"
|
|
20549
|
+
"request_back": {},
|
|
20550
|
+
"cim": "cim",
|
|
20551
|
+
"has_next_page": false,
|
|
20552
|
+
"has_prev_page": false
|
|
20553
|
+
}, {
|
|
20554
|
+
"name": "",
|
|
20555
|
+
"command_name": "",
|
|
20556
|
+
"request_id": "r-1773145887",
|
|
20557
|
+
"sentence_id": "8078ea4b-5dba-3fde-2047-c62d018fdb3e",
|
|
20558
|
+
"answer_id": "09d12a2d62b0050a",
|
|
20559
|
+
"require_ack": false,
|
|
20560
|
+
"par": {},
|
|
20561
|
+
"standard_back": "",
|
|
20562
|
+
"back_list": [],
|
|
20563
|
+
"recommand_list": [],
|
|
20564
|
+
"show_text": "",
|
|
20565
|
+
"reply": {
|
|
20566
|
+
"id": 5,
|
|
20567
|
+
"level": 2,
|
|
20568
|
+
"text": "调用查看地理实体周边违停情况工具",
|
|
20569
|
+
"parent_id": 2,
|
|
20570
|
+
"status": "completed"
|
|
20571
|
+
},
|
|
20572
|
+
"request_back": {},
|
|
20573
|
+
"cim": "cim",
|
|
20574
|
+
"has_next_page": false,
|
|
20575
|
+
"has_prev_page": false
|
|
20576
|
+
}, {
|
|
20577
|
+
"name": "",
|
|
20578
|
+
"command_name": "",
|
|
20579
|
+
"request_id": "r-1773145888",
|
|
20580
|
+
"sentence_id": "8078ea4b-5dba-3fde-2047-c62d018fdb3e",
|
|
20581
|
+
"answer_id": "09d12a2d62b0050a",
|
|
20582
|
+
"require_ack": false,
|
|
20583
|
+
"par": {},
|
|
20584
|
+
"standard_back": "已在深圳大悦城购物中心周边1公里范围内查询到3条违停记录,",
|
|
20585
|
+
"back_list": [{
|
|
20586
|
+
"index": 1,
|
|
20587
|
+
"name": "【粤BCD9272】在广深公路城家公寓段违停(876米)",
|
|
20588
|
+
"label": "一般",
|
|
20589
|
+
"label_color": "#FF8E09"
|
|
20590
|
+
}, {
|
|
20591
|
+
"index": 2,
|
|
20592
|
+
"name": "【粤BCD9272】在广深公路城家公寓段违停(876米)",
|
|
20593
|
+
"label": "一般",
|
|
20594
|
+
"label_color": "#FF8E09"
|
|
20595
|
+
}, {
|
|
20596
|
+
"index": 3,
|
|
20597
|
+
"name": "【粤B30200】在创业一路宝晖酒店段违停(946米)",
|
|
20598
|
+
"label": "一般",
|
|
20599
|
+
"label_color": "#FF8E09"
|
|
20600
|
+
}],
|
|
20601
|
+
"recommand_list": [],
|
|
20602
|
+
"show_text": "已在深圳大悦城购物中心周边1公里范围内查询到3条违停记录,涉及车辆:粤BCD9272(重复出现)、粤B30200。可能存在同一车辆多次抓拍或不同时间违停的情况。如需查看某一辆车的详细违停信息(如位置、时长、是否驶离等),请指定车牌号。",
|
|
20603
|
+
"reply": {
|
|
20604
|
+
"id": 6,
|
|
20605
|
+
"level": 1,
|
|
20606
|
+
"text": "生成回复",
|
|
20607
|
+
"parent_id": null,
|
|
20608
|
+
"status": "completed"
|
|
20609
|
+
},
|
|
20610
|
+
"request_back": {},
|
|
20611
|
+
"cim": "cim",
|
|
20612
|
+
"has_next_page": false,
|
|
20613
|
+
"has_prev_page": false
|
|
20614
|
+
}];
|
|
20615
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/IotCpt.vue?vue&type=script&lang=js
|
|
20616
|
+
function IotCptvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return IotCptvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, IotCptvue_type_script_lang_js_typeof(o); }
|
|
20617
|
+
function IotCptvue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ IotCptvue_type_script_lang_js_regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == IotCptvue_type_script_lang_js_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(IotCptvue_type_script_lang_js_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
20618
|
+
function IotCptvue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
20619
|
+
function IotCptvue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { IotCptvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { IotCptvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
20620
|
+
function IotCptvue_type_script_lang_js_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = IotCptvue_type_script_lang_js_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
20621
|
+
function IotCptvue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return IotCptvue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? IotCptvue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
20622
|
+
function IotCptvue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20623
|
+
function IotCptvue_type_script_lang_js_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20624
|
+
function IotCptvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? IotCptvue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { IotCptvue_type_script_lang_js_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : IotCptvue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20625
|
+
function IotCptvue_type_script_lang_js_defineProperty(e, r, t) { return (r = IotCptvue_type_script_lang_js_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
20626
|
+
function IotCptvue_type_script_lang_js_toPropertyKey(t) { var i = IotCptvue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == IotCptvue_type_script_lang_js_typeof(i) ? i : i + ""; }
|
|
20627
|
+
function IotCptvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != IotCptvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != IotCptvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20628
|
+
|
|
20629
|
+
|
|
20630
|
+
|
|
20631
|
+
|
|
20632
|
+
|
|
20633
|
+
|
|
20634
|
+
|
|
20635
|
+
|
|
20636
|
+
|
|
20637
|
+
|
|
20638
|
+
|
|
20639
|
+
|
|
20640
|
+
var iconTip = __webpack_require__(907);
|
|
20641
|
+
var IotCptvue_type_script_lang_js_default_ = {
|
|
20642
|
+
name: "IotCpt",
|
|
20643
|
+
directives: {
|
|
20644
|
+
Drag: Drag,
|
|
20645
|
+
DragBubble: DragBubble
|
|
20646
|
+
},
|
|
20647
|
+
components: {
|
|
20648
|
+
Message: Message,
|
|
20649
|
+
StreamInput: StreamInput
|
|
20650
|
+
},
|
|
20651
|
+
props: {
|
|
20652
|
+
// 小宝语音框位置
|
|
20653
|
+
imgPosition: {
|
|
20654
|
+
type: Object,
|
|
20655
|
+
default: function _default() {
|
|
20656
|
+
return {
|
|
20657
|
+
left: "100px",
|
|
20658
|
+
top: "134px"
|
|
20659
|
+
};
|
|
20660
|
+
}
|
|
20661
|
+
},
|
|
20662
|
+
// 弹窗位置
|
|
20663
|
+
boxPosition: {
|
|
20664
|
+
type: Object,
|
|
20665
|
+
default: function _default() {
|
|
20666
|
+
return {
|
|
20667
|
+
left: "100px",
|
|
20668
|
+
top: "400px"
|
|
20669
|
+
};
|
|
20670
|
+
}
|
|
20671
|
+
},
|
|
20672
|
+
// 弹窗大小
|
|
20673
|
+
boxSize: {
|
|
20674
|
+
type: Object,
|
|
20675
|
+
default: function _default() {
|
|
20676
|
+
return {
|
|
20677
|
+
width: "750px",
|
|
20678
|
+
height: "676px"
|
|
20679
|
+
};
|
|
20680
|
+
}
|
|
20681
|
+
},
|
|
20682
|
+
// 字体大小
|
|
20683
|
+
size: {
|
|
20684
|
+
type: String,
|
|
20685
|
+
default: "medium" // ["large", "medium"]
|
|
20686
|
+
},
|
|
20687
|
+
// 是否大屏
|
|
20688
|
+
screenType: {
|
|
20689
|
+
type: String,
|
|
20690
|
+
default: "BIG" // ["BIG", "NORMAL"]
|
|
20691
|
+
},
|
|
20692
|
+
// 是否生产环境
|
|
20693
|
+
isPro: {
|
|
20694
|
+
type: Boolean,
|
|
20695
|
+
default: false
|
|
20696
|
+
},
|
|
20697
|
+
// 版本号
|
|
20698
|
+
version: {
|
|
20699
|
+
type: String,
|
|
20700
|
+
default: "1.0.0"
|
|
20701
|
+
}
|
|
20702
|
+
},
|
|
20703
|
+
data: function data() {
|
|
20704
|
+
return {
|
|
20705
|
+
wakeEndTime: 20,
|
|
20706
|
+
options: [{
|
|
20707
|
+
label: "mode1",
|
|
20708
|
+
value: "mode1"
|
|
20709
|
+
}, {
|
|
20710
|
+
label: "mode2",
|
|
20711
|
+
value: "mode2"
|
|
20712
|
+
}, {
|
|
20713
|
+
label: "mode3",
|
|
20714
|
+
value: "mode3"
|
|
20715
|
+
}],
|
|
20716
|
+
isShowSelect: false,
|
|
20717
|
+
mode: "mode1",
|
|
20718
|
+
appId: "cim",
|
|
20719
|
+
inputContent: "",
|
|
20720
|
+
windowStyle: {
|
|
20721
|
+
left: "100px",
|
|
20722
|
+
top: "400px"
|
|
20723
|
+
},
|
|
20724
|
+
systemId: "msq_dp_a7x9",
|
|
20725
|
+
webSocketId: guid(),
|
|
20726
|
+
clientId: "demo-client-".concat(parseInt(Math.random() * Math.pow(10, 9))),
|
|
20727
|
+
oneQuestionOneAnswer: true,
|
|
20728
|
+
boxShow: false,
|
|
20729
|
+
// 展示聊天框
|
|
20730
|
+
bubbleShow: false,
|
|
20731
|
+
// 唤醒
|
|
20732
|
+
boxTitle: "我在",
|
|
20733
|
+
wakeUpBool: false,
|
|
20734
|
+
wakeUpTime: 0,
|
|
20735
|
+
endTimeOut: null,
|
|
20736
|
+
bubbleBoxType: "",
|
|
20737
|
+
bubbleBoxQuestion: "",
|
|
20738
|
+
isReading: false,
|
|
20739
|
+
bubbleBoxTitle: "",
|
|
20740
|
+
bubbleBoxBackList: [],
|
|
20741
|
+
bubbleBoxRecommandList: [],
|
|
20742
|
+
tempBubbleBoxBackList: [],
|
|
20743
|
+
tempBubbleBoxRecommandList: [],
|
|
20744
|
+
messagesList: [],
|
|
20745
|
+
voiecContent: "",
|
|
20746
|
+
sessionId: guid(),
|
|
20747
|
+
wasr: undefined,
|
|
20748
|
+
setIntervalWebsocket: null,
|
|
20749
|
+
socket: null,
|
|
20750
|
+
eventCode: [
|
|
20751
|
+
// 跳转的指令
|
|
20752
|
+
"clearScreen",
|
|
20753
|
+
// 清屏
|
|
20754
|
+
"openEventDistrib",
|
|
20755
|
+
// 打开事件分布面板
|
|
20756
|
+
"openEventDetail",
|
|
20757
|
+
// 打开事件详情
|
|
20758
|
+
"switchPanelState",
|
|
20759
|
+
// 切换详情面板状态
|
|
20760
|
+
"operateCamera",
|
|
20761
|
+
// 镜头控制
|
|
20762
|
+
"linkCameraHighLow",
|
|
20763
|
+
// 联动高低空镜头
|
|
20764
|
+
"openTrafficCond" // 打开周边路况
|
|
20765
|
+
],
|
|
20766
|
+
selfCode: ["generateEventReport"],
|
|
20767
|
+
// 生成事件报告
|
|
20768
|
+
reconnectTimerId: null,
|
|
20769
|
+
// 保存重连定时器 id
|
|
20770
|
+
currentAudio: null,
|
|
20771
|
+
// 当前播放的 Audio 对象
|
|
20772
|
+
currentAudioUrl: null,
|
|
20773
|
+
// 当前音频的 objectURL,便于 revoke
|
|
20774
|
+
isShowPopover: false,
|
|
20775
|
+
waitAnswerTimer: null,
|
|
20776
|
+
waitSentenceId: "",
|
|
20777
|
+
isWaitAnswer: false,
|
|
20778
|
+
showNextPage: false,
|
|
20779
|
+
showPrevPage: false,
|
|
20780
|
+
streamItems: [],
|
|
20781
|
+
currentIndex: 0,
|
|
20782
|
+
userInfo: {
|
|
20783
|
+
username: ""
|
|
20784
|
+
},
|
|
20785
|
+
isShowContent: true // 是否展示对话列表
|
|
20786
|
+
};
|
|
20787
|
+
},
|
|
20788
|
+
computed: {
|
|
20789
|
+
htmlFontSize: function htmlFontSize() {
|
|
20790
|
+
var fontSize = "42px";
|
|
20791
|
+
if (this.size == "medium") {
|
|
20792
|
+
fontSize = "18px";
|
|
20793
|
+
} else {
|
|
20794
|
+
fontSize = "42px";
|
|
20795
|
+
}
|
|
20796
|
+
return fontSize;
|
|
20797
|
+
},
|
|
20798
|
+
baseURL: function baseURL() {
|
|
20799
|
+
var ipURL = "10.99.16.155";
|
|
20800
|
+
if (this.isPro) {
|
|
20801
|
+
ipURL = "10.97.38.102";
|
|
20802
|
+
}
|
|
20803
|
+
return ipURL;
|
|
20804
|
+
}
|
|
20805
|
+
},
|
|
20806
|
+
watch: {
|
|
20807
|
+
voiecContent: function voiecContent(val) {
|
|
20808
|
+
console.log("===============getContent==============", val);
|
|
20809
|
+
if (Object.keys(val).length > 0) {
|
|
20810
|
+
this.$emit("getContent", IotCptvue_type_script_lang_js_objectSpread({}, val));
|
|
20811
|
+
}
|
|
20812
|
+
},
|
|
20813
|
+
bubbleShow: function bubbleShow(val) {
|
|
20814
|
+
// if (val) this.wakeUpTime = new Date().getTime();
|
|
20815
|
+
// else this.wakeUpTime = 0;
|
|
20816
|
+
},
|
|
20817
|
+
wakeUpTime: function wakeUpTime(val) {
|
|
20818
|
+
var _this = this;
|
|
20819
|
+
if (val > 0) {
|
|
20820
|
+
if (this.endTimeOut) {
|
|
20821
|
+
clearTimeout(this.endTimeOut);
|
|
20822
|
+
this.endTimeOut = null;
|
|
20823
|
+
}
|
|
20824
|
+
this.endTimeOut = setTimeout(function () {
|
|
20825
|
+
// 去除静默退出
|
|
20826
|
+
_this.autoQuitAssistant();
|
|
20827
|
+
}, 1000 * this.wakeEndTime);
|
|
20828
|
+
}
|
|
20829
|
+
},
|
|
20830
|
+
boxPosition: {
|
|
20831
|
+
handler: function handler(val) {
|
|
20832
|
+
console.log("小安box位置: ", val);
|
|
20833
|
+
if (Object.keys(val)) {
|
|
20834
|
+
this.windowStyle = val;
|
|
20835
|
+
}
|
|
20836
|
+
},
|
|
20837
|
+
immediate: true,
|
|
20838
|
+
deep: true
|
|
20839
|
+
},
|
|
20840
|
+
imgPosition: {
|
|
20841
|
+
handler: function handler(val) {
|
|
20842
|
+
console.log("小安img位置:", val);
|
|
20843
|
+
if (Object.keys(val)) {
|
|
20844
|
+
this.bubbleStyle = val;
|
|
20845
|
+
}
|
|
20846
|
+
},
|
|
20847
|
+
immediate: true,
|
|
20848
|
+
deep: true
|
|
20849
|
+
}
|
|
20850
|
+
},
|
|
20851
|
+
methods: {
|
|
20852
|
+
clearWakeTime: function clearWakeTime() {
|
|
20853
|
+
this.wakeUpTime = 0;
|
|
20854
|
+
if (this.endTimeOut) {
|
|
20855
|
+
clearTimeout(this.endTimeOut);
|
|
20856
|
+
this.endTimeOut = null;
|
|
20857
|
+
}
|
|
20858
|
+
},
|
|
20859
|
+
selectModal: function selectModal(item) {
|
|
20860
|
+
this.mode = item.value;
|
|
20861
|
+
this.isShowSelect = false;
|
|
20862
|
+
},
|
|
20863
|
+
toggleModal: function toggleModal() {
|
|
20864
|
+
this.isShowSelect = !this.isShowSelect;
|
|
20865
|
+
},
|
|
20866
|
+
// 处理返回结果
|
|
20867
|
+
operation: function operation(opt) {
|
|
20868
|
+
var _opt$quitState;
|
|
20869
|
+
// 一问一答状态
|
|
20870
|
+
var quitState = (_opt$quitState = opt === null || opt === void 0 ? void 0 : opt.quitState) !== null && _opt$quitState !== void 0 ? _opt$quitState : false;
|
|
20871
|
+
if (quitState) this.voiceQuitAssistant();else {
|
|
20872
|
+
var _opt$result;
|
|
20873
|
+
var _content2 = opt === null || opt === void 0 || (_opt$result = opt.result) === null || _opt$result === void 0 ? void 0 : _opt$result.voice_text_str;
|
|
20874
|
+
var _content = _content2.endsWith("。") ? _content2.slice(0, -1) : _content2;
|
|
20875
|
+
if (!this.oneQuestionOneAnswer) {
|
|
20876
|
+
console.log(_content, _content2);
|
|
20877
|
+
if (this.isReading && _content) {
|
|
20878
|
+
// console.log("正在播报内容", _content);
|
|
20879
|
+
this.bubbleBoxQuestion = _content2;
|
|
20880
|
+
this.updateSession({
|
|
20881
|
+
res: opt,
|
|
20882
|
+
messages: {
|
|
20883
|
+
type: "TO",
|
|
20884
|
+
isReading: true,
|
|
20885
|
+
content: _content2
|
|
20886
|
+
}
|
|
20887
|
+
});
|
|
20888
|
+
}
|
|
20889
|
+
}
|
|
20890
|
+
if (_content.length >= 2 && this.oneQuestionOneAnswer) this.updateSession({
|
|
20891
|
+
res: opt,
|
|
20892
|
+
messages: {
|
|
20893
|
+
type: "TO",
|
|
20894
|
+
content: _content2
|
|
20895
|
+
}
|
|
20896
|
+
});
|
|
20897
|
+
}
|
|
20898
|
+
},
|
|
20899
|
+
wakeUpAide: function wakeUpAide() {
|
|
20900
|
+
this.bubbleShow = true;
|
|
20901
|
+
// this.messagesList.length = 0;
|
|
20902
|
+
|
|
20903
|
+
var content = "我在";
|
|
20904
|
+
if (this.messagesList.length == 0) {
|
|
20905
|
+
var slot = getTimeSlot();
|
|
20906
|
+
if (slot != "凌晨") content = "\u5728\u5462\uFF0C".concat(slot, "\u597D");
|
|
20907
|
+
}
|
|
20908
|
+
this.oneQuestionOneAnswer = true;
|
|
20909
|
+
this.bubbleBoxType = "FROM";
|
|
20910
|
+
this.bubbleBoxTitle = content;
|
|
20911
|
+
this.boxTitle = content;
|
|
20912
|
+
this.handlePlayTTS({
|
|
20913
|
+
content: content
|
|
20914
|
+
});
|
|
20915
|
+
},
|
|
20916
|
+
// 直接打开面板唤醒
|
|
20917
|
+
openAide: function openAide() {
|
|
20918
|
+
this.bubbleShow = true;
|
|
20919
|
+
this.wakeUpBool = true;
|
|
20920
|
+
this.scrollMessageBox('auto');
|
|
20921
|
+
},
|
|
20922
|
+
// 3 退出小宝助手
|
|
20923
|
+
exitAide: function exitAide() {
|
|
20924
|
+
this.boxShow = false;
|
|
20925
|
+
this.bubbleShow = false;
|
|
20926
|
+
this.wakeUpBool = false;
|
|
20927
|
+
this.bubbleBoxBackList = [];
|
|
20928
|
+
this.bubbleBoxRecommandList = [];
|
|
20929
|
+
// this.onStop()
|
|
20930
|
+
},
|
|
20931
|
+
// 点击小宝助手图标
|
|
20932
|
+
handleSpeechClick: function handleSpeechClick() {
|
|
20933
|
+
var _this2 = this;
|
|
20934
|
+
// this.onStart();
|
|
20935
|
+
this.boxShow = true;
|
|
20936
|
+
setTimeout(function () {
|
|
20937
|
+
_this2.scrollMessageBox('auto');
|
|
20938
|
+
}, 100);
|
|
20939
|
+
if (this.bubbleShow) return;
|
|
20940
|
+
this.wakeUpAide();
|
|
20941
|
+
this.wakeUpBool = true;
|
|
20942
|
+
},
|
|
20943
|
+
// 识别到唤醒词
|
|
20944
|
+
setWakeUp: function setWakeUp() {
|
|
20945
|
+
// this.oneQuestionOneAnswer = false;
|
|
20946
|
+
this.wakeUpAide();
|
|
20947
|
+
},
|
|
20948
|
+
// 递归查找项目
|
|
20949
|
+
findItemById: function findItemById(items, id) {
|
|
20950
|
+
var _iterator = IotCptvue_type_script_lang_js_createForOfIteratorHelper(items),
|
|
20951
|
+
_step;
|
|
20952
|
+
try {
|
|
20953
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
20954
|
+
var item = _step.value;
|
|
20955
|
+
if (item.id === id) {
|
|
20956
|
+
return item;
|
|
20957
|
+
}
|
|
20958
|
+
if (item.children && item.children.length > 0) {
|
|
20959
|
+
var found = this.findItemById(item.children, id);
|
|
20960
|
+
if (found) {
|
|
20961
|
+
return found;
|
|
20962
|
+
}
|
|
20963
|
+
}
|
|
20964
|
+
}
|
|
20965
|
+
} catch (err) {
|
|
20966
|
+
_iterator.e(err);
|
|
20967
|
+
} finally {
|
|
20968
|
+
_iterator.f();
|
|
20969
|
+
}
|
|
20970
|
+
return null;
|
|
20971
|
+
},
|
|
20972
|
+
// 映射状态值
|
|
20973
|
+
mapStatus: function mapStatus(status) {
|
|
20974
|
+
switch (status) {
|
|
20975
|
+
case 'generating':
|
|
20976
|
+
return 'loadings';
|
|
20977
|
+
case 'completed':
|
|
20978
|
+
return 'success';
|
|
20979
|
+
case 'failed':
|
|
20980
|
+
return 'error';
|
|
20981
|
+
default:
|
|
20982
|
+
return status;
|
|
20983
|
+
}
|
|
20984
|
+
},
|
|
20985
|
+
processReceivedData: function processReceivedData(data) {
|
|
20986
|
+
// 处理新格式的数据
|
|
20987
|
+
if (data.reply && Object.keys(data.reply).length) {
|
|
20988
|
+
// 处理reply中的内容
|
|
20989
|
+
var reply = data.reply;
|
|
20990
|
+
var mappedStatus = this.mapStatus(reply.status);
|
|
20991
|
+
|
|
20992
|
+
// 构建项目对象
|
|
20993
|
+
var item = {
|
|
20994
|
+
id: reply.id,
|
|
20995
|
+
title: reply.text,
|
|
20996
|
+
status: mappedStatus
|
|
20997
|
+
};
|
|
20998
|
+
|
|
20999
|
+
// 检查是否已经存在相同id的项目
|
|
21000
|
+
var existingItem = this.findItemById(this.streamItems, reply.id);
|
|
21001
|
+
if (existingItem) {
|
|
21002
|
+
// 更新现有项目的状态
|
|
21003
|
+
this.$set(existingItem, 'status', mappedStatus);
|
|
21004
|
+
} else {
|
|
21005
|
+
// 添加新项目
|
|
21006
|
+
if (reply.level === 1 || reply.parent_id === null || !reply.parent_id) {
|
|
21007
|
+
// 顶级项目
|
|
21008
|
+
this.$set(this.streamItems, this.streamItems.length, item);
|
|
21009
|
+
} else {
|
|
21010
|
+
// 子项目,找到父项目
|
|
21011
|
+
var parentItem = this.findItemById(this.streamItems, reply.parent_id);
|
|
21012
|
+
if (parentItem) {
|
|
21013
|
+
// 确保父项目有children数组
|
|
21014
|
+
if (!parentItem.children) {
|
|
21015
|
+
this.$set(parentItem, 'children', []);
|
|
21016
|
+
}
|
|
21017
|
+
|
|
21018
|
+
// 检查子项目是否已存在
|
|
21019
|
+
var existingChild = parentItem.children.find(function (child) {
|
|
21020
|
+
return child.id === reply.id;
|
|
21021
|
+
});
|
|
21022
|
+
if (existingChild) {
|
|
21023
|
+
this.$set(existingChild, 'status', mappedStatus);
|
|
21024
|
+
} else {
|
|
21025
|
+
this.$set(parentItem.children, parentItem.children.length, item);
|
|
21026
|
+
}
|
|
21027
|
+
} else {
|
|
21028
|
+
// 父项目不存在,先创建父项目
|
|
21029
|
+
// const newParentItem = {
|
|
21030
|
+
// id: reply.parent_id,
|
|
21031
|
+
// title: '父项目',
|
|
21032
|
+
// status: 'completed',
|
|
21033
|
+
// children: [item]
|
|
21034
|
+
// };
|
|
21035
|
+
// this.$set(this.streamItems, this.streamItems.length, newParentItem);
|
|
21036
|
+
}
|
|
21037
|
+
}
|
|
21038
|
+
}
|
|
21039
|
+
}
|
|
21040
|
+
},
|
|
21041
|
+
pushMessage: function pushMessage(opt) {
|
|
21042
|
+
var messages = opt.messages,
|
|
21043
|
+
res = opt.res;
|
|
21044
|
+
var type = messages.type,
|
|
21045
|
+
content = messages.content,
|
|
21046
|
+
backList = messages.back_list,
|
|
21047
|
+
recommandList = messages.recommand_list,
|
|
21048
|
+
reply = messages.reply,
|
|
21049
|
+
_messages$showNextPag = messages.showNextPage,
|
|
21050
|
+
showNextPage = _messages$showNextPag === void 0 ? false : _messages$showNextPag,
|
|
21051
|
+
_messages$showPrevPag = messages.showPrevPage,
|
|
21052
|
+
showPrevPage = _messages$showPrevPag === void 0 ? false : _messages$showPrevPag,
|
|
21053
|
+
_messages$contentStat = messages.contentStatus,
|
|
21054
|
+
contentStatus = _messages$contentStat === void 0 ? 0 : _messages$contentStat;
|
|
21055
|
+
var _messages = this.messagesList.find(function (item) {
|
|
21056
|
+
return item.sentenceId == res.sentenceId;
|
|
21057
|
+
});
|
|
21058
|
+
var back_list = backList;
|
|
21059
|
+
var recommand_list = recommandList;
|
|
21060
|
+
if (reply) {
|
|
21061
|
+
this.processReceivedData(messages);
|
|
21062
|
+
}
|
|
21063
|
+
if (type === "FROM") {
|
|
21064
|
+
if (contentStatus == '1') {
|
|
21065
|
+
back_list = this.tempBubbleBoxBackList || [];
|
|
21066
|
+
recommand_list = this.tempBubbleBoxRecommandList || [];
|
|
21067
|
+
}
|
|
21068
|
+
}
|
|
21069
|
+
if (_messages) {
|
|
21070
|
+
var _back_list;
|
|
21071
|
+
content && (_messages.content = g.parse(content));
|
|
21072
|
+
_messages.streamItems = this.streamItems || [];
|
|
21073
|
+
((_back_list = back_list) === null || _back_list === void 0 ? void 0 : _back_list.length) && (_messages.backList = back_list);
|
|
21074
|
+
recommand_list.length && (_messages.recommandList = recommand_list);
|
|
21075
|
+
messages.showPrevPage = showPrevPage;
|
|
21076
|
+
messages.showNextPage = showNextPage;
|
|
21077
|
+
} else {
|
|
21078
|
+
var _text = messages.content ? g.parse(messages.content) : messages.content;
|
|
21079
|
+
var flag = false;
|
|
21080
|
+
if (content || recommand_list.length > 0 || back_list.length > 0 || this.streamItems.length > 0) flag = true;
|
|
21081
|
+
if (!flag) return;
|
|
21082
|
+
this.messagesList.push(IotCptvue_type_script_lang_js_objectSpread(IotCptvue_type_script_lang_js_objectSpread({}, messages), {}, {
|
|
21083
|
+
content: _text,
|
|
21084
|
+
sentenceId: res.sentenceId,
|
|
21085
|
+
backList: back_list,
|
|
21086
|
+
recommandList: recommand_list,
|
|
21087
|
+
streamItems: this.streamItems || [],
|
|
21088
|
+
showNextPage: showNextPage,
|
|
21089
|
+
showPrevPage: showPrevPage
|
|
21090
|
+
}));
|
|
21091
|
+
}
|
|
21092
|
+
this.bubbleBoxBackList = back_list || [];
|
|
21093
|
+
this.bubbleBoxRecommandList = recommand_list || [];
|
|
21094
|
+
this.tempBubbleBoxRecommandList = recommand_list;
|
|
21095
|
+
this.tempBubbleBoxBackList = back_list;
|
|
21096
|
+
this.showNextPage = showNextPage;
|
|
21097
|
+
this.showPrevPage = showPrevPage;
|
|
21098
|
+
this.scrollMessageBox();
|
|
21099
|
+
this.bubbleBoxType = type;
|
|
21100
|
+
if (type == "TO") {
|
|
21101
|
+
this.bubbleBoxQuestion = content ? g.parse(content) : content;
|
|
21102
|
+
this.streamItems = [];
|
|
21103
|
+
} else {
|
|
21104
|
+
this.bubbleBoxTitle = content ? g.parse(content) : content;
|
|
21105
|
+
}
|
|
21106
|
+
|
|
21107
|
+
// this.wakeUpTime = new Date().getTime();
|
|
21108
|
+
},
|
|
21109
|
+
updateSession: function updateSession(opt) {
|
|
21110
|
+
var _this3 = this;
|
|
21111
|
+
return IotCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/IotCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
21112
|
+
var messages, res, type, content, _messages$isReading, isReading, back_list, recommand_list, _messages$showNextPag2, showNextPage, _messages$showPrevPag2, showPrevPage, _messages, _text, _this3$userInfo, voice_id, session_id, sentenceId, _formData, resp, _res, code, msg, status, obj, _content, standard_back, show_text, command_type, _back_list2, _recommand_list, has_next_page, has_prev_page, _opt, _showNextPage, _showPrevPage, _opts, _opt2, _error$message, _error$message2;
|
|
21113
|
+
return IotCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21114
|
+
while (1) switch (_context.prev = _context.next) {
|
|
21115
|
+
case 0:
|
|
21116
|
+
_this3.clearWakeTime();
|
|
21117
|
+
messages = opt.messages, res = opt.res;
|
|
21118
|
+
type = messages.type, content = messages.content, _messages$isReading = messages.isReading, isReading = _messages$isReading === void 0 ? false : _messages$isReading, back_list = messages.back_list, recommand_list = messages.recommand_list, _messages$showNextPag2 = messages.showNextPage, showNextPage = _messages$showNextPag2 === void 0 ? false : _messages$showNextPag2, _messages$showPrevPag2 = messages.showPrevPage, showPrevPage = _messages$showPrevPag2 === void 0 ? false : _messages$showPrevPag2;
|
|
21119
|
+
_messages = _this3.messagesList.find(function (item) {
|
|
21120
|
+
return item.sentenceId == res.sentenceId;
|
|
21121
|
+
});
|
|
21122
|
+
if (_messages && type == "TO" && !isReading) _messages.content = content;else if (!isReading) {
|
|
21123
|
+
_text = messages.content ? g.parse(messages.content) : messages.content;
|
|
21124
|
+
_this3.messagesList.push(IotCptvue_type_script_lang_js_objectSpread(IotCptvue_type_script_lang_js_objectSpread({}, messages), {}, {
|
|
21125
|
+
content: _text,
|
|
21126
|
+
sentenceId: res.sentenceId,
|
|
21127
|
+
backList: back_list,
|
|
21128
|
+
recommandList: recommand_list,
|
|
21129
|
+
showNextPage: showNextPage,
|
|
21130
|
+
showPrevPage: showPrevPage
|
|
21131
|
+
}));
|
|
21132
|
+
}
|
|
21133
|
+
_this3.bubbleBoxBackList = back_list || [];
|
|
21134
|
+
_this3.bubbleBoxRecommandList = recommand_list || [];
|
|
21135
|
+
_this3.showNextPage = showNextPage;
|
|
21136
|
+
_this3.showPrevPage = showPrevPage;
|
|
21137
|
+
_this3.scrollMessageBox();
|
|
21138
|
+
_this3.bubbleBoxType = type;
|
|
21139
|
+
if (type == "TO") {
|
|
21140
|
+
_this3.bubbleBoxQuestion = g.parse(content);
|
|
21141
|
+
} else {
|
|
21142
|
+
_this3.bubbleBoxTitle = g.parse(content);
|
|
21143
|
+
}
|
|
21144
|
+
if (!(type === "TO" && res.result.slice_type === 2)) {
|
|
21145
|
+
_context.next = 67;
|
|
21146
|
+
break;
|
|
21147
|
+
}
|
|
21148
|
+
_this3.getSystem();
|
|
21149
|
+
voice_id = res.voice_id, session_id = res.sessionId, sentenceId = res.sentenceId;
|
|
21150
|
+
_formData = {
|
|
21151
|
+
version: _this3.version,
|
|
21152
|
+
screenType: _this3.screenType,
|
|
21153
|
+
appId: _this3.appId,
|
|
21154
|
+
userName: ((_this3$userInfo = _this3.userInfo) === null || _this3$userInfo === void 0 ? void 0 : _this3$userInfo.username) || "",
|
|
21155
|
+
mode: _this3.mode,
|
|
21156
|
+
prompt: content,
|
|
21157
|
+
system_id: _this3.systemId,
|
|
21158
|
+
session_id: session_id,
|
|
21159
|
+
voice_id: voice_id,
|
|
21160
|
+
webSocketId: _this3.webSocketId,
|
|
21161
|
+
sentence_id: sentenceId,
|
|
21162
|
+
client_id: _this3.clientId,
|
|
21163
|
+
eventStatus: {},
|
|
21164
|
+
isReading: isReading
|
|
21165
|
+
};
|
|
21166
|
+
_this3.oneQuestionOneAnswer = false;
|
|
21167
|
+
// 获取iot面板打开状态 、cim底座状态不用获取
|
|
21168
|
+
if (!(_this3.appId == 'cimapp-iot' || _this3.appId == 'cimapp-iotm')) {
|
|
21169
|
+
_context.next = 29;
|
|
21170
|
+
break;
|
|
21171
|
+
}
|
|
21172
|
+
_context.prev = 18;
|
|
21173
|
+
_this3.getEventStatus();
|
|
21174
|
+
_context.next = 22;
|
|
21175
|
+
return _this3.waitGetEventStatus();
|
|
21176
|
+
case 22:
|
|
21177
|
+
resp = _context.sent;
|
|
21178
|
+
if (resp) {
|
|
21179
|
+
_formData.eventStatus = resp;
|
|
21180
|
+
}
|
|
21181
|
+
_context.next = 29;
|
|
21182
|
+
break;
|
|
21183
|
+
case 26:
|
|
21184
|
+
_context.prev = 26;
|
|
21185
|
+
_context.t0 = _context["catch"](18);
|
|
21186
|
+
console.log("获取当前状态异常", _context.t0);
|
|
21187
|
+
case 29:
|
|
21188
|
+
_this3.streamItems = [];
|
|
21189
|
+
_context.prev = 30;
|
|
21190
|
+
_context.next = 33;
|
|
21191
|
+
return Tx.speech2speech2(_formData);
|
|
21192
|
+
case 33:
|
|
21193
|
+
_res = _context.sent;
|
|
21194
|
+
code = _res.code, msg = _res.msg, status = _res.status, obj = _res.obj;
|
|
21195
|
+
if (!(code == 200 || code == 300 && status == '3' && obj !== null && obj !== void 0 && obj.standard_back)) {
|
|
21196
|
+
_context.next = 54;
|
|
21197
|
+
break;
|
|
21198
|
+
}
|
|
21199
|
+
_content = "";
|
|
21200
|
+
standard_back = obj.standard_back, show_text = obj.show_text, command_type = obj.command_type, _back_list2 = obj.back_list, _recommand_list = obj.recommand_list, has_next_page = obj.has_next_page, has_prev_page = obj.has_prev_page;
|
|
21201
|
+
if (!(Object.keys(obj).length > 0)) {
|
|
21202
|
+
_context.next = 44;
|
|
21203
|
+
break;
|
|
21204
|
+
}
|
|
21205
|
+
_content = standard_back || "抱歉,我还在学习中";
|
|
21206
|
+
if (!(command_type === "地理实体页面定位" && _content != "抱歉,我还在学习中")) {
|
|
21207
|
+
_context.next = 42;
|
|
21208
|
+
break;
|
|
21209
|
+
}
|
|
21210
|
+
return _context.abrupt("return");
|
|
21211
|
+
case 42:
|
|
21212
|
+
_context.next = 45;
|
|
21213
|
+
break;
|
|
21214
|
+
case 44:
|
|
21215
|
+
_content = "抱歉,我还在学习中";
|
|
21216
|
+
case 45:
|
|
21217
|
+
_this3.voiecContent = obj;
|
|
21218
|
+
if (status == '3' || isReading) {
|
|
21219
|
+
_opt = {
|
|
21220
|
+
res: {
|
|
21221
|
+
sentenceId: guid()
|
|
21222
|
+
},
|
|
21223
|
+
messages: {
|
|
21224
|
+
type: "TO",
|
|
21225
|
+
content: content
|
|
21226
|
+
}
|
|
21227
|
+
};
|
|
21228
|
+
_this3.pushMessage(_opt);
|
|
21229
|
+
// this.pauseAudio();
|
|
21230
|
+
}
|
|
21231
|
+
_showNextPage = has_next_page ? true : false;
|
|
21232
|
+
_showPrevPage = has_prev_page ? true : false;
|
|
21233
|
+
_opts = {
|
|
21234
|
+
res: {
|
|
21235
|
+
sentenceId: guid()
|
|
21236
|
+
},
|
|
21237
|
+
messages: {
|
|
21238
|
+
type: "FROM",
|
|
21239
|
+
content: show_text || _content,
|
|
21240
|
+
contentStatus: status,
|
|
21241
|
+
back_list: _back_list2 || [],
|
|
21242
|
+
recommand_list: _recommand_list || [],
|
|
21243
|
+
showNextPage: _showNextPage,
|
|
21244
|
+
showPrevPage: _showPrevPage
|
|
21245
|
+
}
|
|
21246
|
+
};
|
|
21247
|
+
_this3.oneQuestionOneAnswer = true; // 暂时直接改为一收到指令就视为已经收到答案了
|
|
21248
|
+
if (standard_back || show_text) {
|
|
21249
|
+
_this3.pushMessage(_opts);
|
|
21250
|
+
_this3.handlePlayTTS({
|
|
21251
|
+
content: _content,
|
|
21252
|
+
// onStart: () => {
|
|
21253
|
+
// this.pushMessage(_opts)
|
|
21254
|
+
// },
|
|
21255
|
+
onEnded: function onEnded() {
|
|
21256
|
+
if (status == '2') {
|
|
21257
|
+
_this3.autoQuitAssistant();
|
|
21258
|
+
}
|
|
21259
|
+
}
|
|
21260
|
+
});
|
|
21261
|
+
}
|
|
21262
|
+
// this.openAide()
|
|
21263
|
+
// this.updateSession({
|
|
21264
|
+
// res: {},
|
|
21265
|
+
// messages: { type: "FROM", content: _content },
|
|
21266
|
+
// sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
21267
|
+
// });
|
|
21268
|
+
_context.next = 55;
|
|
21269
|
+
break;
|
|
21270
|
+
case 54:
|
|
21271
|
+
if (code === 504) {
|
|
21272
|
+
_this3.timeOutContent();
|
|
21273
|
+
} else if (code === 300) {
|
|
21274
|
+
_this3.waitSentenceId = _formData.sentence_id;
|
|
21275
|
+
// console.log("设置超时", this.waitSentenceId)
|
|
21276
|
+
// this.timeOutContent()
|
|
21277
|
+
// this.startWaitAnswer()
|
|
21278
|
+
if (status == '3') {
|
|
21279
|
+
_opt2 = {
|
|
21280
|
+
res: {
|
|
21281
|
+
sentenceId: guid()
|
|
21282
|
+
},
|
|
21283
|
+
messages: {
|
|
21284
|
+
type: "TO",
|
|
21285
|
+
content: content
|
|
21286
|
+
}
|
|
21287
|
+
};
|
|
21288
|
+
_this3.pushMessage(_opt2);
|
|
21289
|
+
// this.pauseAudio();
|
|
21290
|
+
}
|
|
21291
|
+
}
|
|
21292
|
+
case 55:
|
|
21293
|
+
_context.next = 63;
|
|
21294
|
+
break;
|
|
21295
|
+
case 57:
|
|
21296
|
+
_context.prev = 57;
|
|
21297
|
+
_context.t1 = _context["catch"](30);
|
|
21298
|
+
console.log("speech2speech2 ->", _context.t1);
|
|
21299
|
+
console.log(_context.t1.message);
|
|
21300
|
+
console.log(_context.t1 === null || _context.t1 === void 0 || (_error$message = _context.t1.message) === null || _error$message === void 0 ? void 0 : _error$message.includes("timeout"));
|
|
21301
|
+
if (_context.t1 !== null && _context.t1 !== void 0 && (_error$message2 = _context.t1.message) !== null && _error$message2 !== void 0 && _error$message2.includes('timeout')) {
|
|
21302
|
+
_this3.waitSentenceId = _formData.sentence_id;
|
|
21303
|
+
_this3.timeOutContent();
|
|
21304
|
+
} else {
|
|
21305
|
+
_this3.oneQuestionOneAnswer = true;
|
|
21306
|
+
}
|
|
21307
|
+
case 63:
|
|
21308
|
+
_context.prev = 63;
|
|
21309
|
+
return _context.finish(63);
|
|
21310
|
+
case 65:
|
|
21311
|
+
_context.next = 68;
|
|
21312
|
+
break;
|
|
21313
|
+
case 67:
|
|
21314
|
+
if (type === "FROM") {
|
|
21315
|
+
_this3.handlePlayTTS({
|
|
21316
|
+
content: content
|
|
21317
|
+
});
|
|
21318
|
+
}
|
|
21319
|
+
case 68:
|
|
21320
|
+
case "end":
|
|
21321
|
+
return _context.stop();
|
|
21322
|
+
}
|
|
21323
|
+
}, _callee, null, [[18, 26], [30, 57, 63, 65]]);
|
|
21324
|
+
}))();
|
|
21325
|
+
},
|
|
21326
|
+
timeOutContent: function timeOutContent() {
|
|
21327
|
+
var _this4 = this;
|
|
21328
|
+
this.isWaitAnswer = true;
|
|
21329
|
+
var message = "抱歉,请求已超时,请再试一下。";
|
|
21330
|
+
var _opts = {
|
|
21331
|
+
res: {
|
|
21332
|
+
sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
21333
|
+
},
|
|
21334
|
+
messages: {
|
|
21335
|
+
type: "FROM",
|
|
21336
|
+
content: message
|
|
21337
|
+
}
|
|
21338
|
+
};
|
|
21339
|
+
// this.updateSession(_opts)
|
|
21340
|
+
if (this.isWaitAnswer) {
|
|
21341
|
+
this.handlePlayTTS({
|
|
21342
|
+
content: message,
|
|
21343
|
+
onStart: function onStart() {
|
|
21344
|
+
_this4.pushMessage(_opts);
|
|
21345
|
+
}
|
|
21346
|
+
});
|
|
21347
|
+
}
|
|
21348
|
+
},
|
|
21349
|
+
startWaitAnswer: function startWaitAnswer() {
|
|
21350
|
+
var _this5 = this;
|
|
21351
|
+
if (this.waitAnswerTimer) {
|
|
21352
|
+
this.endWaitAnswer();
|
|
21353
|
+
}
|
|
21354
|
+
this.isWaitAnswer = true;
|
|
21355
|
+
// const _that = this
|
|
21356
|
+
this.waitAnswerTimer = setTimeout(function () {
|
|
21357
|
+
_this5.timeOutContent();
|
|
21358
|
+
}, 3000);
|
|
21359
|
+
},
|
|
21360
|
+
endWaitAnswer: function endWaitAnswer() {
|
|
21361
|
+
if (this.waitAnswerTimer) {
|
|
21362
|
+
clearTimeout(this.waitAnswerTimer);
|
|
21363
|
+
this.waitAnswerTimer = null;
|
|
21364
|
+
}
|
|
21365
|
+
this.isWaitAnswer = false;
|
|
21366
|
+
},
|
|
21367
|
+
// 自动退出(静默20s) - 小宝助手
|
|
21368
|
+
autoQuitAssistant: function autoQuitAssistant() {
|
|
21369
|
+
// if (this.isReading) {
|
|
21370
|
+
// this.wakeUpTime = new Date().getTime();
|
|
21371
|
+
// return;
|
|
21372
|
+
// }
|
|
21373
|
+
this.exitAide();
|
|
21374
|
+
this.bubbleBoxTitle = "";
|
|
21375
|
+
this.bubbleBoxQuestion = "";
|
|
21376
|
+
this.bubbleBoxType = "";
|
|
21377
|
+
this.streamItems = [];
|
|
21378
|
+
},
|
|
21379
|
+
// 语音退出 - 小宝助手
|
|
21380
|
+
voiceQuitAssistant: function voiceQuitAssistant() {
|
|
21381
|
+
var _this6 = this;
|
|
21382
|
+
this.handlePlayTTS({
|
|
21383
|
+
content: "好的,下次见",
|
|
21384
|
+
onEnded: function onEnded() {
|
|
21385
|
+
setTimeout(function () {
|
|
21386
|
+
_this6.exitAide();
|
|
21387
|
+
_this6.bubbleBoxTitle = "";
|
|
21388
|
+
_this6.bubbleBoxQuestion = "";
|
|
21389
|
+
_this6.bubbleBoxType = "";
|
|
21390
|
+
// this.messagesList = [];
|
|
21391
|
+
// this.tempBubbleBoxBackList = [];
|
|
21392
|
+
// this.tempBubbleBoxRecommandList = [];
|
|
21393
|
+
}, 1000);
|
|
21394
|
+
}
|
|
21395
|
+
});
|
|
21396
|
+
},
|
|
21397
|
+
// 手动退出 - 小宝助手
|
|
21398
|
+
closeClick: function closeClick() {
|
|
21399
|
+
this.exitAide();
|
|
21400
|
+
this.bubbleBoxTitle = "";
|
|
21401
|
+
this.bubbleBoxQuestion = "";
|
|
21402
|
+
this.bubbleBoxType = "";
|
|
21403
|
+
this.streamItems = [];
|
|
21404
|
+
// this.updateSessionId()
|
|
21405
|
+
// this.messagesList = [];
|
|
21406
|
+
// this.tempBubbleBoxBackList = [];
|
|
21407
|
+
// this.tempBubbleBoxRecommandList = [];
|
|
21408
|
+
// this.onStop()
|
|
21409
|
+
},
|
|
21410
|
+
// 语音播放
|
|
21411
|
+
handlePlayTTS: function handlePlayTTS(opt) {
|
|
21412
|
+
var _this7 = this;
|
|
21413
|
+
return IotCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/IotCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
21414
|
+
var _content3, onStart, onEnded, _opt$isExit, isExit, res, arrayBuffer, blob, url, audio, _onEndedHandler;
|
|
21415
|
+
return IotCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
21416
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
21417
|
+
case 0:
|
|
21418
|
+
_context2.prev = 0;
|
|
21419
|
+
_content3 = opt.content, onStart = opt.onStart, onEnded = opt.onEnded, _opt$isExit = opt.isExit, isExit = _opt$isExit === void 0 ? true : _opt$isExit;
|
|
21420
|
+
_context2.next = 4;
|
|
21421
|
+
return Tx.TextToVoice(_content3);
|
|
21422
|
+
case 4:
|
|
21423
|
+
res = _context2.sent;
|
|
21424
|
+
arrayBuffer = base64ToArrayBuffer(res.Audio);
|
|
21425
|
+
blob = new Blob([arrayBuffer], {
|
|
21426
|
+
type: "audio/wav"
|
|
21427
|
+
});
|
|
21428
|
+
url = URL.createObjectURL(blob); // 清理上一个 audio
|
|
21429
|
+
if (_this7.currentAudio) {
|
|
21430
|
+
_this7.isReading = false;
|
|
21431
|
+
try {
|
|
21432
|
+
_this7.currentAudio.pause();
|
|
21433
|
+
} catch (e) {}
|
|
21434
|
+
try {
|
|
21435
|
+
_this7.currentAudio.src = "";
|
|
21436
|
+
} catch (e) {}
|
|
21437
|
+
if (_this7.currentAudioUrl) {
|
|
21438
|
+
URL.revokeObjectURL(_this7.currentAudioUrl);
|
|
21439
|
+
_this7.currentAudioUrl = null;
|
|
21440
|
+
}
|
|
21441
|
+
_this7.currentAudio = null;
|
|
21442
|
+
}
|
|
21443
|
+
audio = new Audio(url);
|
|
21444
|
+
_this7.currentAudio = audio;
|
|
21445
|
+
_this7.currentAudioUrl = url;
|
|
21446
|
+
_onEndedHandler = function onEndedHandler(e) {
|
|
21447
|
+
// revoke url
|
|
21448
|
+
try {
|
|
21449
|
+
if (_this7.currentAudioUrl) {
|
|
21450
|
+
URL.revokeObjectURL(_this7.currentAudioUrl);
|
|
21451
|
+
_this7.currentAudioUrl = null;
|
|
21452
|
+
}
|
|
21453
|
+
} catch (e) {}
|
|
21454
|
+
try {
|
|
21455
|
+
audio.pause();
|
|
21456
|
+
} catch (e) {}
|
|
21457
|
+
try {
|
|
21458
|
+
audio.src = "";
|
|
21459
|
+
} catch (e) {}
|
|
21460
|
+
if (_this7.currentAudio === audio) _this7.currentAudio = null;
|
|
21461
|
+
audio.removeEventListener("ended", _onEndedHandler);
|
|
21462
|
+
if (isExit) _this7.wakeUpTime = new Date().getTime();
|
|
21463
|
+
_this7.oneQuestionOneAnswer = true;
|
|
21464
|
+
onEnded && onEnded();
|
|
21465
|
+
_this7.isReading = false;
|
|
21466
|
+
};
|
|
21467
|
+
audio.addEventListener("ended", _onEndedHandler);
|
|
21468
|
+
_this7.isReading = true;
|
|
21469
|
+
onStart && onStart();
|
|
21470
|
+
audio.play().catch(function (err) {
|
|
21471
|
+
return console.warn('audio play failed', err);
|
|
21472
|
+
});
|
|
21473
|
+
_context2.next = 25;
|
|
21474
|
+
break;
|
|
21475
|
+
case 19:
|
|
21476
|
+
_context2.prev = 19;
|
|
21477
|
+
_context2.t0 = _context2["catch"](0);
|
|
21478
|
+
console.log("handlePlayTTS error", _context2.t0);
|
|
21479
|
+
_this7.oneQuestionOneAnswer = true;
|
|
21480
|
+
_this7.isReading = false;
|
|
21481
|
+
opt.onStart && opt.onStart();
|
|
21482
|
+
case 25:
|
|
21483
|
+
case "end":
|
|
21484
|
+
return _context2.stop();
|
|
21485
|
+
}
|
|
21486
|
+
}, _callee2, null, [[0, 19]]);
|
|
21487
|
+
}))();
|
|
21488
|
+
},
|
|
21489
|
+
updateSessionId: function updateSessionId() {
|
|
21490
|
+
this.sessionId = guid();
|
|
21491
|
+
this.wakeUpBool = false;
|
|
21492
|
+
},
|
|
21493
|
+
// 处理识别结果
|
|
21494
|
+
onResult: function onResult(res) {
|
|
21495
|
+
if (!this.wakeUpBool) {
|
|
21496
|
+
this.wakeUpBool = wakeUp(res); // 是否唤醒
|
|
21497
|
+
if (this.wakeUpBool && this.setWakeUp) this.setWakeUp();
|
|
21498
|
+
} else {
|
|
21499
|
+
if (!this.bubbleShow) {
|
|
21500
|
+
this.wakeUpBool = false;
|
|
21501
|
+
return;
|
|
21502
|
+
}
|
|
21503
|
+
var quitState = onQuit(res); // 操作前判断是否退出
|
|
21504
|
+
// if (quitState) this.updateSessionId();
|
|
21505
|
+
var _opt = IotCptvue_type_script_lang_js_objectSpread(IotCptvue_type_script_lang_js_objectSpread({}, res), {}, {
|
|
21506
|
+
sessionId: this.sessionId,
|
|
21507
|
+
quitState: quitState
|
|
21508
|
+
});
|
|
21509
|
+
this.operation(_opt);
|
|
21510
|
+
}
|
|
21511
|
+
},
|
|
21512
|
+
onStop: function onStop() {
|
|
21513
|
+
var _this$wasr, _this$wasr$stop;
|
|
21514
|
+
(_this$wasr = this.wasr) === null || _this$wasr === void 0 || (_this$wasr$stop = _this$wasr.stop) === null || _this$wasr$stop === void 0 || _this$wasr$stop.call(_this$wasr);
|
|
21515
|
+
this.wasr = undefined;
|
|
21516
|
+
},
|
|
21517
|
+
onStart: function onStart(options) {
|
|
21518
|
+
var _this8 = this;
|
|
21519
|
+
if (this.wasr) {
|
|
21520
|
+
this.onStop();
|
|
21521
|
+
// this.updateSessionId();
|
|
21522
|
+
}
|
|
21523
|
+
return new Promise(function (resolve, reject) {
|
|
21524
|
+
var params = {
|
|
21525
|
+
signCallback: getSignature,
|
|
21526
|
+
// 鉴权函数
|
|
21527
|
+
// 用户参数
|
|
21528
|
+
secretid: "AKID0ueLqATfq5D8FD0c5e5vc9WjmeLp8HFI",
|
|
21529
|
+
// 'AKIDJFZif6KKF5xQtx9Azc3UBh7NNAl8HFDi',
|
|
21530
|
+
appid: "",
|
|
21531
|
+
// '1307944521', // '1317692689',
|
|
21532
|
+
// 实时识别接口参数
|
|
21533
|
+
engine_model_type: "16k_zh",
|
|
21534
|
+
// 因为内置WebRecorder采样16k的数据,所以参数 engineModelType 需要选择16k的引擎,为 '16k_zh'
|
|
21535
|
+
// 以下为非必填参数,可跟据业务自行修改
|
|
21536
|
+
voice_format: 1,
|
|
21537
|
+
hotword_id: "1a59c3abe45e11ef959406b1cf581094",
|
|
21538
|
+
// 热词
|
|
21539
|
+
// reinforce_hotword: 1,
|
|
21540
|
+
needvad: 1,
|
|
21541
|
+
filter_dirty: 1,
|
|
21542
|
+
filter_modal: 2,
|
|
21543
|
+
filter_punc: 0,
|
|
21544
|
+
convert_num_mode: 1,
|
|
21545
|
+
result_text_format: 0,
|
|
21546
|
+
word_info: 2,
|
|
21547
|
+
vad_silence_time: 1000
|
|
21548
|
+
};
|
|
21549
|
+
var webAudioSpeechRecognizer = new WebAudioSpeechRecognizer(params);
|
|
21550
|
+
|
|
21551
|
+
// 开始识别
|
|
21552
|
+
webAudioSpeechRecognizer.OnRecognitionStart = function (res) {
|
|
21553
|
+
// console.log("开始识别", res);
|
|
21554
|
+
};
|
|
21555
|
+
var start = false;
|
|
21556
|
+
var sentenceId = "";
|
|
21557
|
+
// 一句话开始
|
|
21558
|
+
webAudioSpeechRecognizer.OnSentenceBegin = function (res) {
|
|
21559
|
+
if (start) {
|
|
21560
|
+
return;
|
|
21561
|
+
}
|
|
21562
|
+
// console.log("一句话开始", res);
|
|
21563
|
+
sentenceId = guid();
|
|
21564
|
+
_this8.onResult(IotCptvue_type_script_lang_js_objectSpread({
|
|
21565
|
+
sentenceId: sentenceId
|
|
21566
|
+
}, res), options);
|
|
21567
|
+
start = true;
|
|
21568
|
+
};
|
|
21569
|
+
// 识别变化时
|
|
21570
|
+
webAudioSpeechRecognizer.OnRecognitionResultChange = function (res) {
|
|
21571
|
+
// console.log("==> 识别变化时", res);
|
|
21572
|
+
_this8.onResult(IotCptvue_type_script_lang_js_objectSpread({
|
|
21573
|
+
sentenceId: sentenceId
|
|
21574
|
+
}, res), options);
|
|
21575
|
+
};
|
|
21576
|
+
// 一句话结束
|
|
21577
|
+
webAudioSpeechRecognizer.OnSentenceEnd = function (res) {
|
|
21578
|
+
start = false;
|
|
21579
|
+
// console.log("一句话结束", res);
|
|
21580
|
+
_this8.onResult(IotCptvue_type_script_lang_js_objectSpread({
|
|
21581
|
+
sentenceId: sentenceId
|
|
21582
|
+
}, res), options);
|
|
21583
|
+
};
|
|
21584
|
+
// 识别结束
|
|
21585
|
+
webAudioSpeechRecognizer.OnRecognitionComplete = function (res) {
|
|
21586
|
+
// console.log("识别结束", res);
|
|
21587
|
+
// this.updateSessionId();
|
|
21588
|
+
};
|
|
21589
|
+
// 识别错误
|
|
21590
|
+
webAudioSpeechRecognizer.OnError = function (res) {
|
|
21591
|
+
console.log("OnError 识别失败: ", res);
|
|
21592
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === 1006 || (res === null || res === void 0 ? void 0 : res.code) === 4000) {
|
|
21593
|
+
if (_this8.wasr) {
|
|
21594
|
+
_this8.onStop();
|
|
21595
|
+
_this8.onStart();
|
|
21596
|
+
}
|
|
21597
|
+
}
|
|
21598
|
+
};
|
|
21599
|
+
webAudioSpeechRecognizer.start();
|
|
21600
|
+
_this8.wasr = webAudioSpeechRecognizer;
|
|
21601
|
+
});
|
|
21602
|
+
},
|
|
21603
|
+
scrollMessageBox: function scrollMessageBox() {
|
|
21604
|
+
var _this9 = this;
|
|
21605
|
+
var behavior = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'smooth';
|
|
21606
|
+
setTimeout(function () {
|
|
21607
|
+
_this9.$nextTick(function () {
|
|
21608
|
+
var e = document.getElementById("messageListRef");
|
|
21609
|
+
if (e) e.scrollTo({
|
|
21610
|
+
top: e.scrollHeight,
|
|
21611
|
+
// 滚动的垂直位置
|
|
21612
|
+
left: 0,
|
|
21613
|
+
// 滚动的水平位置(不滚动则设置为 0)
|
|
21614
|
+
behavior: behavior // 可选,'auto' 或 'smooth'(平滑滚动)
|
|
21615
|
+
});
|
|
21616
|
+
});
|
|
21617
|
+
}, 100);
|
|
21618
|
+
},
|
|
21619
|
+
getMessage: function getMessage() {
|
|
21620
|
+
var _this0 = this;
|
|
21621
|
+
var _that = this;
|
|
21622
|
+
// 如果已有 socket,先关闭
|
|
21623
|
+
if (this.socket) {
|
|
21624
|
+
try {
|
|
21625
|
+
this.socket.close();
|
|
21626
|
+
} catch (e) {}
|
|
21627
|
+
this.socket = null;
|
|
21628
|
+
}
|
|
21629
|
+
this.clientId = "demo-client-".concat(parseInt(Math.random() * Math.pow(10, 9)));
|
|
21630
|
+
sessionStorage.setItem('xiaoan_clientId', this.clientId);
|
|
21631
|
+
// this.socket = new WebSocket(`ws://${this.baseURL}:8995/speech2speechws/v1/ws/${this.clientId}`);
|
|
21632
|
+
this.socket = new WebSocket("ws://".concat(this.baseURL, ":8995/sjzpwsts/v1/ws/").concat(this.clientId));
|
|
21633
|
+
this.socket.onopen = function (event) {
|
|
21634
|
+
console.log("WebSocket 连接已打开");
|
|
21635
|
+
_that.startHeart();
|
|
21636
|
+
};
|
|
21637
|
+
this.socket.onmessage = function (event) {
|
|
21638
|
+
try {
|
|
21639
|
+
_that.disposeMessage(JSON.parse(event.data));
|
|
21640
|
+
} catch (e) {
|
|
21641
|
+
console.error(e);
|
|
21642
|
+
}
|
|
21643
|
+
};
|
|
21644
|
+
this.socket.onerror = function (e) {
|
|
21645
|
+
console.log('链接异常', e);
|
|
21646
|
+
};
|
|
21647
|
+
this.socket.onclose = function (e) {
|
|
21648
|
+
console.log("链接关闭了, 重新连接", e);
|
|
21649
|
+
if (_this0._isDestroyed) return;
|
|
21650
|
+
// 清理老的重连id
|
|
21651
|
+
if (_this0.reconnectTimerId) {
|
|
21652
|
+
clearTimeout(_this0.reconnectTimerId);
|
|
21653
|
+
_this0.reconnectTimerId = null;
|
|
21654
|
+
}
|
|
21655
|
+
_this0.reconnectTimerId = setTimeout(function () {
|
|
21656
|
+
_this0.reconnectTimerId = null;
|
|
21657
|
+
if (!_this0._isDestroyed) _this0.getMessage();
|
|
21658
|
+
}, 2000);
|
|
21659
|
+
};
|
|
21660
|
+
},
|
|
21661
|
+
startHeart: function startHeart() {
|
|
21662
|
+
var _this1 = this;
|
|
21663
|
+
if (this.setIntervalWebsocket) {
|
|
21664
|
+
clearInterval(this.setIntervalWebsocket);
|
|
21665
|
+
this.setIntervalWebsocket = null;
|
|
21666
|
+
}
|
|
21667
|
+
this.sendPing();
|
|
21668
|
+
this.setIntervalWebsocket = setInterval(function () {
|
|
21669
|
+
_this1.sendPing();
|
|
21670
|
+
}, 60000);
|
|
21671
|
+
},
|
|
21672
|
+
sendPing: function sendPing() {
|
|
21673
|
+
if (!this.socket || this.socket.readyState !== WebSocket.OPEN) return;
|
|
21674
|
+
var heartBeat = {
|
|
21675
|
+
type: "ping",
|
|
21676
|
+
timestamp: new Date().getTime()
|
|
21677
|
+
};
|
|
21678
|
+
try {
|
|
21679
|
+
this.socket.send(JSON.stringify(heartBeat));
|
|
21680
|
+
} catch (e) {
|
|
21681
|
+
console.warn(e);
|
|
21682
|
+
}
|
|
21683
|
+
},
|
|
21684
|
+
disposeMessage: function disposeMessage(message) {
|
|
21685
|
+
var _this10 = this;
|
|
21686
|
+
var type = message.type,
|
|
21687
|
+
data = message.data;
|
|
21688
|
+
if (type === 'broadcast') {
|
|
21689
|
+
var obj = data.obj,
|
|
21690
|
+
status = data.status;
|
|
21691
|
+
var par = obj.par,
|
|
21692
|
+
standard_back = obj.standard_back,
|
|
21693
|
+
answer_id = obj.answer_id,
|
|
21694
|
+
show_text = obj.show_text,
|
|
21695
|
+
require_ack = obj.require_ack,
|
|
21696
|
+
request_id = obj.request_id,
|
|
21697
|
+
back_list = obj.back_list,
|
|
21698
|
+
recommand_list = obj.recommand_list,
|
|
21699
|
+
has_next_page = obj.has_next_page,
|
|
21700
|
+
has_prev_page = obj.has_prev_page,
|
|
21701
|
+
sentence_id = obj.sentence_id,
|
|
21702
|
+
reply = obj.reply;
|
|
21703
|
+
var commandName = par === null || par === void 0 ? void 0 : par.command_name;
|
|
21704
|
+
console.log(standard_back, data);
|
|
21705
|
+
// console.log(this.isWaitAnswer, sentence_id, this.waitAnswerTimer, this.waitSentenceId, sentence_id == this.waitSentenceId)
|
|
21706
|
+
// if (this.isWaitAnswer && sentence_id && this.waitSentenceId && sentence_id == this.waitSentenceId) {
|
|
21707
|
+
// if (require_ack) {
|
|
21708
|
+
// this.sendMessage({
|
|
21709
|
+
// request_id,
|
|
21710
|
+
// execute_state: 'ok',
|
|
21711
|
+
// execute_info: {}
|
|
21712
|
+
// })
|
|
21713
|
+
// }
|
|
21714
|
+
// return; // 超时直接拒收
|
|
21715
|
+
// }
|
|
21716
|
+
// this.endWaitAnswer()
|
|
21717
|
+
// this.isWaitAnswer = false
|
|
21718
|
+
if (!this.selfCode.includes(commandName)) {
|
|
21719
|
+
//发送指令
|
|
21720
|
+
this.oneQuestionOneAnswer = true; // 暂时直接改为一收到指令就视为已经收到答案了
|
|
21721
|
+
this.voiecContent = data.obj;
|
|
21722
|
+
// if (standard_back) {
|
|
21723
|
+
var showNextPage = has_next_page ? true : false;
|
|
21724
|
+
var showPrevPage = has_prev_page ? true : false;
|
|
21725
|
+
var _opts = {
|
|
21726
|
+
res: {
|
|
21727
|
+
sentenceId: answer_id || guid()
|
|
21728
|
+
},
|
|
21729
|
+
messages: {
|
|
21730
|
+
type: "FROM",
|
|
21731
|
+
content: show_text || standard_back,
|
|
21732
|
+
standard_back: standard_back,
|
|
21733
|
+
contentStatus: status,
|
|
21734
|
+
back_list: back_list || [],
|
|
21735
|
+
recommand_list: recommand_list || [],
|
|
21736
|
+
showNextPage: showNextPage,
|
|
21737
|
+
showPrevPage: showPrevPage,
|
|
21738
|
+
reply: reply
|
|
21739
|
+
}
|
|
21740
|
+
};
|
|
21741
|
+
var isFlag = false;
|
|
21742
|
+
if (reply) isFlag = true;
|
|
21743
|
+
if (standard_back) {
|
|
21744
|
+
this.openAide();
|
|
21745
|
+
this.pushMessage(_opts);
|
|
21746
|
+
this.handlePlayTTS({
|
|
21747
|
+
content: standard_back,
|
|
21748
|
+
onEnded: function onEnded() {
|
|
21749
|
+
if (status == '2') {
|
|
21750
|
+
_this10.autoQuitAssistant();
|
|
21751
|
+
}
|
|
21752
|
+
}
|
|
21753
|
+
});
|
|
21754
|
+
} else {
|
|
21755
|
+
if (this.isReading) this.pauseAudio();
|
|
21756
|
+
if (show_text || standard_back || reply || Object.keys(reply).length > 0) {
|
|
21757
|
+
this.openAide();
|
|
21758
|
+
this.pushMessage(_opts);
|
|
21759
|
+
}
|
|
21760
|
+
}
|
|
21761
|
+
// this.openAide()
|
|
21762
|
+
// this.updateSession({
|
|
21763
|
+
// res: {},
|
|
21764
|
+
// messages: { type: "FROM", content: standard_back, back_list: back_list || [], recommand_list: recommand_list || [] },
|
|
21765
|
+
// sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
21766
|
+
// });
|
|
21767
|
+
// } else {
|
|
21768
|
+
// this.oneQuestionOneAnswer = true;
|
|
21769
|
+
// // if (!require_ack) this.oneQuestionOneAnswer = true;
|
|
21770
|
+
// }
|
|
21771
|
+
}
|
|
21772
|
+
} else if (type === "environment") {
|
|
21773
|
+
this.getEnvironment();
|
|
21774
|
+
}
|
|
21775
|
+
},
|
|
21776
|
+
getEnvironment: function getEnvironment() {
|
|
21777
|
+
var _this$userInfo;
|
|
21778
|
+
this.getSystem();
|
|
21779
|
+
var query = {
|
|
21780
|
+
type: "environment",
|
|
21781
|
+
session_id: this.sessionId,
|
|
21782
|
+
appId: this.appId,
|
|
21783
|
+
userName: ((_this$userInfo = this.userInfo) === null || _this$userInfo === void 0 ? void 0 : _this$userInfo.username) || "",
|
|
21784
|
+
screenType: this.screenType,
|
|
21785
|
+
data: {
|
|
21786
|
+
target: this.appId
|
|
21787
|
+
}
|
|
21788
|
+
};
|
|
21789
|
+
try {
|
|
21790
|
+
this.socket.send(JSON.stringify(query));
|
|
21791
|
+
} catch (e) {}
|
|
21792
|
+
},
|
|
21793
|
+
getUserInfo: function getUserInfo() {
|
|
21794
|
+
var user = localStorage.getItem('pro__Login_Userinfo');
|
|
21795
|
+
if (user) {
|
|
21796
|
+
var info = JSON.parse(user).value;
|
|
21797
|
+
if (info) {
|
|
21798
|
+
this.userInfo = info;
|
|
21799
|
+
}
|
|
21800
|
+
}
|
|
21801
|
+
console.log("userInfo", this.userInfo);
|
|
21802
|
+
},
|
|
21803
|
+
getSystem: function getSystem() {
|
|
21804
|
+
var path = window.location.pathname;
|
|
21805
|
+
var _list = path.split('/');
|
|
21806
|
+
var target = _list.find(function (item) {
|
|
21807
|
+
return item.includes('cimapp-');
|
|
21808
|
+
});
|
|
21809
|
+
// target = target?.endsWith('m') ? target?.slice(0, -1) : target
|
|
21810
|
+
if (target) {
|
|
21811
|
+
this.appId = target;
|
|
21812
|
+
} else {
|
|
21813
|
+
this.appId = 'cim';
|
|
21814
|
+
}
|
|
21815
|
+
},
|
|
21816
|
+
testClick: function testClick() {
|
|
21817
|
+
// this.sendMessage({
|
|
21818
|
+
// isEventStatus: true,
|
|
21819
|
+
// isBroadcast: true,
|
|
21820
|
+
// data: {
|
|
21821
|
+
// BROADCAST_INFO: "新安街道宝民一路-国道辅道于10时25分发生了一件严重等级的积水事件,请您关注。"
|
|
21822
|
+
// },
|
|
21823
|
+
// eventData: {
|
|
21824
|
+
// street: '新安街道',
|
|
21825
|
+
// adress: '宝民一路-国道辅道',
|
|
21826
|
+
// time: '10时25分',
|
|
21827
|
+
// type: '积水'
|
|
21828
|
+
// }
|
|
21829
|
+
// })
|
|
21830
|
+
},
|
|
21831
|
+
sendMessage: function sendMessage(data) {
|
|
21832
|
+
this.getSystem();
|
|
21833
|
+
if (data !== null && data !== void 0 && data.isEventStatus) {
|
|
21834
|
+
console.log("回传当前事件状态");
|
|
21835
|
+
if (data !== null && data !== void 0 && data.isBroadcast) {
|
|
21836
|
+
this.handleBroadcastData(data);
|
|
21837
|
+
} else {
|
|
21838
|
+
bus.emit('callBackStatus', data.data);
|
|
21839
|
+
}
|
|
21840
|
+
} else {
|
|
21841
|
+
var query = {
|
|
21842
|
+
type: "response",
|
|
21843
|
+
session_id: this.sessionId,
|
|
21844
|
+
data: data,
|
|
21845
|
+
appId: this.appId,
|
|
21846
|
+
screenType: this.screenType
|
|
21847
|
+
};
|
|
21848
|
+
console.log("回传信息:\n", data, query);
|
|
21849
|
+
this.socket.send(JSON.stringify(query));
|
|
21850
|
+
}
|
|
21851
|
+
},
|
|
21852
|
+
// 处理事件播报内容
|
|
21853
|
+
handleBroadcastData: function handleBroadcastData(data) {
|
|
21854
|
+
var _this11 = this;
|
|
21855
|
+
return IotCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/IotCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
|
|
21856
|
+
var _data$eventData, _data$data$BROADCAST_, _data$data;
|
|
21857
|
+
var eventData, broadcastInfo, info, broadcastInfoHtml, _this11$userInfo, _formData2, _res, code, status, obj, _obj$recommand_list, recommand_list, _opts, _opt, _error$message3, _error$message4;
|
|
21858
|
+
return IotCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
21859
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
21860
|
+
case 0:
|
|
21861
|
+
eventData = (_data$eventData = data === null || data === void 0 ? void 0 : data.eventData) !== null && _data$eventData !== void 0 ? _data$eventData : {};
|
|
21862
|
+
broadcastInfo = (_data$data$BROADCAST_ = data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.BROADCAST_INFO) !== null && _data$data$BROADCAST_ !== void 0 ? _data$data$BROADCAST_ : '';
|
|
21863
|
+
if (!broadcastInfo) {
|
|
21864
|
+
_context3.next = 24;
|
|
21865
|
+
break;
|
|
21866
|
+
}
|
|
21867
|
+
info = IotCptvue_type_script_lang_js_objectSpread(IotCptvue_type_script_lang_js_objectSpread({}, eventData), {}, {
|
|
21868
|
+
type: "FROM",
|
|
21869
|
+
content: eventData,
|
|
21870
|
+
sentenceId: guid(),
|
|
21871
|
+
isBroadcast: true
|
|
21872
|
+
});
|
|
21873
|
+
_this11.messagesList.push(info);
|
|
21874
|
+
_this11.scrollMessageBox();
|
|
21875
|
+
broadcastInfoHtml = "\n <div class=\"bubblebox-broadcast-content\">\n <img src=\"".concat(iconTip, "\" alt=\"\">\n \u3010<span style=\"color: #FFDF05;\">").concat(eventData === null || eventData === void 0 ? void 0 : eventData.street, "</span>\u3011\u3010<span\n >").concat(eventData === null || eventData === void 0 ? void 0 : eventData.adress, "</span>\u3011\u4E8E\u4ECA\u65E5<span>").concat(eventData === null || eventData === void 0 ? void 0 : eventData.time, "</span>\u53D1\u751F\u4E00\u8D77<span style=\"color: #FF5151;\"\n >\u4E25\u91CD</span>\u7B49\u7EA7<span>").concat(eventData === null || eventData === void 0 ? void 0 : eventData.type, "</span>\u4E8B\u4EF6\uFF0C\u8BF7\u60A8\u5173\u6CE8\u3002\n </div>\n ");
|
|
21876
|
+
_this11.bubbleBoxTitle = broadcastInfoHtml;
|
|
21877
|
+
_this11.handlePlayTTS({
|
|
21878
|
+
content: broadcastInfo
|
|
21879
|
+
});
|
|
21880
|
+
_context3.prev = 9;
|
|
21881
|
+
_formData2 = {
|
|
21882
|
+
version: _this11.version,
|
|
21883
|
+
screenType: _this11.screenType,
|
|
21884
|
+
appId: _this11.appId,
|
|
21885
|
+
userName: ((_this11$userInfo = _this11.userInfo) === null || _this11$userInfo === void 0 ? void 0 : _this11$userInfo.username) || "",
|
|
21886
|
+
mode: _this11.mode,
|
|
21887
|
+
prompt: "\u53D1\u751F\u4E86\u4E00\u4EF6".concat(eventData === null || eventData === void 0 ? void 0 : eventData.type, "\u4E8B\u4EF6"),
|
|
21888
|
+
system_id: _this11.systemId,
|
|
21889
|
+
session_id: guid(),
|
|
21890
|
+
voice_id: guid(),
|
|
21891
|
+
webSocketId: _this11.webSocketId,
|
|
21892
|
+
sentence_id: guid(),
|
|
21893
|
+
client_id: _this11.clientId,
|
|
21894
|
+
eventStatus: data === null || data === void 0 ? void 0 : data.data,
|
|
21895
|
+
isReading: false
|
|
21896
|
+
};
|
|
21897
|
+
_context3.next = 13;
|
|
21898
|
+
return Tx.leaderSpeech(_formData2);
|
|
21899
|
+
case 13:
|
|
21900
|
+
_res = _context3.sent;
|
|
21901
|
+
code = _res.code, status = _res.status, obj = _res.obj;
|
|
21902
|
+
if (code == 200 || code == 300 && status == '3' && obj !== null && obj !== void 0 && obj.standard_back) {
|
|
21903
|
+
_this11.oneQuestionOneAnswer = true;
|
|
21904
|
+
_obj$recommand_list = obj.recommand_list, recommand_list = _obj$recommand_list === void 0 ? [] : _obj$recommand_list;
|
|
21905
|
+
_opts = {
|
|
21906
|
+
res: {
|
|
21907
|
+
sentenceId: guid()
|
|
21908
|
+
},
|
|
21909
|
+
messages: {
|
|
21910
|
+
type: "",
|
|
21911
|
+
recommand_list: recommand_list || [],
|
|
21912
|
+
isEventRecommand: true
|
|
21913
|
+
}
|
|
21914
|
+
};
|
|
21915
|
+
_this11.pushMessage(_opts);
|
|
21916
|
+
} else if (code === 504) {
|
|
21917
|
+
_this11.timeOutContent();
|
|
21918
|
+
} else if (code === 300) {
|
|
21919
|
+
_this11.waitSentenceId = _formData2.sentence_id;
|
|
21920
|
+
if (status == '3') {
|
|
21921
|
+
_opt = {
|
|
21922
|
+
res: {
|
|
21923
|
+
sentenceId: guid()
|
|
21924
|
+
},
|
|
21925
|
+
messages: {
|
|
21926
|
+
type: "TO",
|
|
21927
|
+
content: content
|
|
21928
|
+
}
|
|
21929
|
+
};
|
|
21930
|
+
_this11.pushMessage(_opt);
|
|
21931
|
+
}
|
|
21932
|
+
}
|
|
21933
|
+
_context3.next = 24;
|
|
21934
|
+
break;
|
|
21935
|
+
case 18:
|
|
21936
|
+
_context3.prev = 18;
|
|
21937
|
+
_context3.t0 = _context3["catch"](9);
|
|
21938
|
+
console.log("speech2speech2 ->", _context3.t0);
|
|
21939
|
+
console.log(_context3.t0.message);
|
|
21940
|
+
console.log(_context3.t0 === null || _context3.t0 === void 0 || (_error$message3 = _context3.t0.message) === null || _error$message3 === void 0 ? void 0 : _error$message3.includes("timeout"));
|
|
21941
|
+
if (_context3.t0 !== null && _context3.t0 !== void 0 && (_error$message4 = _context3.t0.message) !== null && _error$message4 !== void 0 && _error$message4.includes('timeout')) {
|
|
21942
|
+
_this11.waitSentenceId = formData.sentence_id;
|
|
21943
|
+
_this11.timeOutContent();
|
|
21944
|
+
} else {
|
|
21945
|
+
_this11.oneQuestionOneAnswer = true;
|
|
21946
|
+
}
|
|
21947
|
+
case 24:
|
|
21948
|
+
case "end":
|
|
21949
|
+
return _context3.stop();
|
|
21950
|
+
}
|
|
21951
|
+
}, _callee3, null, [[9, 18]]);
|
|
21952
|
+
}))();
|
|
21953
|
+
},
|
|
21954
|
+
getEventStatus: function getEventStatus() {
|
|
21955
|
+
this.voiecContent = {
|
|
21956
|
+
cim: this.appId || "cimapp-iot",
|
|
21957
|
+
par: {},
|
|
21958
|
+
eventStatus: true,
|
|
21959
|
+
request_back: {}
|
|
21960
|
+
};
|
|
21961
|
+
},
|
|
21962
|
+
waitGetEventStatus: function waitGetEventStatus() {
|
|
21963
|
+
return new Promise(function (resolve, reject) {
|
|
21964
|
+
var _handler = function handler(info) {
|
|
21965
|
+
bus.off('callBackStatus', _handler);
|
|
21966
|
+
clearTimeout(timeOutId);
|
|
21967
|
+
resolve(info);
|
|
21968
|
+
};
|
|
21969
|
+
bus.on('callBackStatus', _handler);
|
|
21970
|
+
var timeOutId = setTimeout(function () {
|
|
21971
|
+
bus.off('callBackStatus', _handler);
|
|
21972
|
+
reject(new Error('等待状态回传超时'));
|
|
21973
|
+
}, 5 * 1000);
|
|
21974
|
+
});
|
|
21975
|
+
},
|
|
21976
|
+
submitText: function submitText() {
|
|
21977
|
+
var quitState = onQuit({
|
|
21978
|
+
result: {
|
|
21979
|
+
voice_text_str: this.inputContent
|
|
21980
|
+
}
|
|
21981
|
+
});
|
|
21982
|
+
if (!this.inputContent || !this.oneQuestionOneAnswer) return;
|
|
21983
|
+
var _opt = {
|
|
21984
|
+
sessionId: this.sessionId,
|
|
21985
|
+
sentenceId: guid(),
|
|
21986
|
+
voice_id: guid(),
|
|
21987
|
+
quitState: quitState,
|
|
21988
|
+
result: {
|
|
21989
|
+
slice_type: 2,
|
|
21990
|
+
voice_text_str: this.inputContent
|
|
21991
|
+
}
|
|
21992
|
+
};
|
|
21993
|
+
this.operation(_opt);
|
|
21994
|
+
this.inputContent = "";
|
|
21995
|
+
},
|
|
21996
|
+
showPopover: function showPopover() {
|
|
21997
|
+
var _this12 = this;
|
|
21998
|
+
this.isShowPopover = true;
|
|
21999
|
+
this.timer = setTimeout(function () {
|
|
22000
|
+
_this12.hiddenPopover();
|
|
22001
|
+
}, 3000);
|
|
22002
|
+
},
|
|
22003
|
+
hiddenPopover: function hiddenPopover() {
|
|
22004
|
+
this.isShowPopover = false;
|
|
22005
|
+
if (this.timer) {
|
|
22006
|
+
clearTimeout(this.timer);
|
|
22007
|
+
this.timer = null;
|
|
22008
|
+
}
|
|
22009
|
+
// this.timer = setTimeout(() => {
|
|
22010
|
+
// this.showPopover();
|
|
22011
|
+
// }, 1500);
|
|
22012
|
+
},
|
|
22013
|
+
pauseAudio: function pauseAudio() {
|
|
22014
|
+
// 停止并释放 audio
|
|
22015
|
+
try {
|
|
22016
|
+
this.isReading = false;
|
|
22017
|
+
if (this.currentAudio) {
|
|
22018
|
+
try {
|
|
22019
|
+
this.currentAudio.pause();
|
|
22020
|
+
} catch (e) {}
|
|
22021
|
+
try {
|
|
22022
|
+
this.currentAudio.src = "";
|
|
22023
|
+
} catch (e) {}
|
|
22024
|
+
this.currentAudio = null;
|
|
22025
|
+
}
|
|
22026
|
+
if (this.currentAudioUrl) {
|
|
22027
|
+
try {
|
|
22028
|
+
URL.revokeObjectURL(this.currentAudioUrl);
|
|
22029
|
+
} catch (e) {}
|
|
22030
|
+
this.currentAudioUrl = null;
|
|
22031
|
+
}
|
|
22032
|
+
} catch (e) {
|
|
22033
|
+
console.warn(e);
|
|
22034
|
+
}
|
|
22035
|
+
},
|
|
22036
|
+
cleanupResources: function cleanupResources() {
|
|
22037
|
+
this._isDestroyed = true;
|
|
22038
|
+
this.onStop();
|
|
22039
|
+
try {
|
|
22040
|
+
if (this.wasr && this.wasr.stop) {
|
|
22041
|
+
this.wasr.stop();
|
|
22042
|
+
}
|
|
22043
|
+
} catch (e) {
|
|
22044
|
+
console.warn(e);
|
|
22045
|
+
}
|
|
22046
|
+
this.wasr = undefined;
|
|
22047
|
+
if (this.setIntervalWebsocket) {
|
|
22048
|
+
clearInterval(this.setIntervalWebsocket);
|
|
22049
|
+
this.setIntervalWebsocket = null;
|
|
22050
|
+
}
|
|
22051
|
+
if (this.endTimeOut) {
|
|
22052
|
+
clearTimeout(this.endTimeOut);
|
|
22053
|
+
this.endTimeOut = null;
|
|
22054
|
+
}
|
|
22055
|
+
if (this.reconnectTimerId) {
|
|
22056
|
+
clearTimeout(this.reconnectTimerId);
|
|
22057
|
+
this.reconnectTimerId = null;
|
|
22058
|
+
}
|
|
22059
|
+
if (this.timer) {
|
|
22060
|
+
clearTimeout(this.timer);
|
|
22061
|
+
this.timer = null;
|
|
22062
|
+
}
|
|
22063
|
+
this.endWaitAnswer();
|
|
22064
|
+
// 关闭 socket 并移除监听
|
|
22065
|
+
try {
|
|
22066
|
+
if (this.socket) {
|
|
22067
|
+
try {
|
|
22068
|
+
this.socket.onopen = null;
|
|
22069
|
+
} catch (e) {}
|
|
22070
|
+
try {
|
|
22071
|
+
this.socket.onmessage = null;
|
|
22072
|
+
} catch (e) {}
|
|
22073
|
+
try {
|
|
22074
|
+
this.socket.onerror = null;
|
|
22075
|
+
} catch (e) {}
|
|
22076
|
+
try {
|
|
22077
|
+
this.socket.onclose = null;
|
|
22078
|
+
} catch (e) {}
|
|
22079
|
+
try {
|
|
22080
|
+
this.socket.close();
|
|
22081
|
+
} catch (e) {}
|
|
22082
|
+
this.socket = null;
|
|
22083
|
+
}
|
|
22084
|
+
} catch (e) {
|
|
22085
|
+
console.warn(e);
|
|
22086
|
+
}
|
|
22087
|
+
|
|
22088
|
+
// 停止并释放 audio
|
|
22089
|
+
this.pauseAudio();
|
|
22090
|
+
},
|
|
22091
|
+
receiveNextData: function receiveNextData() {
|
|
22092
|
+
var _this13 = this;
|
|
22093
|
+
if (this.currentIndex < mockDataSequence.length) {
|
|
22094
|
+
var data = mockDataSequence[this.currentIndex];
|
|
22095
|
+
// this.processReceivedData(data);
|
|
22096
|
+
this.disposeMessage({
|
|
22097
|
+
type: 'broadcast',
|
|
22098
|
+
data: {
|
|
22099
|
+
obj: data
|
|
22100
|
+
}
|
|
22101
|
+
});
|
|
22102
|
+
this.currentIndex++;
|
|
22103
|
+
console.log(this.currentIndex, data, "sendData", mockDataSequence.length, mockDataSequence);
|
|
22104
|
+
// 模拟接口响应延迟
|
|
22105
|
+
this.intervalId = setTimeout(function () {
|
|
22106
|
+
_this13.receiveNextData();
|
|
22107
|
+
}, 1000);
|
|
22108
|
+
} else {
|
|
22109
|
+
// this.isReceiving = false;
|
|
22110
|
+
}
|
|
22111
|
+
},
|
|
22112
|
+
getSpeechSilence: function getSpeechSilence() {
|
|
22113
|
+
var _this14 = this;
|
|
22114
|
+
return IotCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/IotCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
22115
|
+
var resp, _resp$obj;
|
|
22116
|
+
return IotCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
22117
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
22118
|
+
case 0:
|
|
22119
|
+
_context4.prev = 0;
|
|
22120
|
+
_context4.next = 3;
|
|
22121
|
+
return Tx.getSpeechSilence();
|
|
22122
|
+
case 3:
|
|
22123
|
+
resp = _context4.sent;
|
|
22124
|
+
if ((resp === null || resp === void 0 ? void 0 : resp.code) == 200 && resp !== null && resp !== void 0 && resp.obj) {
|
|
22125
|
+
_this14.wakeEndTime = resp === null || resp === void 0 || (_resp$obj = resp.obj) === null || _resp$obj === void 0 ? void 0 : _resp$obj.stay_time;
|
|
22126
|
+
}
|
|
22127
|
+
_context4.next = 10;
|
|
22128
|
+
break;
|
|
22129
|
+
case 7:
|
|
22130
|
+
_context4.prev = 7;
|
|
22131
|
+
_context4.t0 = _context4["catch"](0);
|
|
22132
|
+
console.log("时长获取失败");
|
|
22133
|
+
case 10:
|
|
22134
|
+
case "end":
|
|
22135
|
+
return _context4.stop();
|
|
22136
|
+
}
|
|
22137
|
+
}, _callee4, null, [[0, 7]]);
|
|
22138
|
+
}))();
|
|
22139
|
+
},
|
|
22140
|
+
// 会话框折叠
|
|
22141
|
+
onClickFold: function onClickFold() {
|
|
22142
|
+
this.isShowContent = !this.isShowContent;
|
|
22143
|
+
}
|
|
22144
|
+
},
|
|
22145
|
+
beforeDestroy: function beforeDestroy() {
|
|
22146
|
+
this.cleanupResources();
|
|
22147
|
+
},
|
|
22148
|
+
mounted: function mounted() {
|
|
22149
|
+
var _this15 = this;
|
|
22150
|
+
console.log("小安当前版本", this.version);
|
|
22151
|
+
this._isDestroyed = false;
|
|
22152
|
+
this.showPopover();
|
|
22153
|
+
this.getSpeechSilence();
|
|
22154
|
+
this.onStart();
|
|
22155
|
+
this.getMessage();
|
|
22156
|
+
document.addEventListener('click', function (e) {
|
|
22157
|
+
if (!e.target.closest('.dropdown')) {
|
|
22158
|
+
_this15.isShowSelect = false;
|
|
22159
|
+
}
|
|
22160
|
+
});
|
|
22161
|
+
this.getUserInfo();
|
|
22162
|
+
}
|
|
22163
|
+
};
|
|
22164
|
+
|
|
22165
|
+
var IotCptvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
22166
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
22167
|
+
return {
|
|
22168
|
+
"2e19521b": _vm.htmlFontSize
|
|
22169
|
+
};
|
|
22170
|
+
});
|
|
22171
|
+
};
|
|
22172
|
+
var IotCptvue_type_script_lang_js_setup_ = IotCptvue_type_script_lang_js_default_.setup;
|
|
22173
|
+
IotCptvue_type_script_lang_js_default_.setup = IotCptvue_type_script_lang_js_setup_ ? function (props, ctx) {
|
|
22174
|
+
IotCptvue_type_script_lang_js_injectCSSVars_();
|
|
22175
|
+
return IotCptvue_type_script_lang_js_setup_(props, ctx);
|
|
22176
|
+
} : IotCptvue_type_script_lang_js_injectCSSVars_;
|
|
22177
|
+
/* harmony default export */ var IotCptvue_type_script_lang_js = (IotCptvue_type_script_lang_js_default_);
|
|
22178
|
+
;// ./package/SpeechRecognition/cpts/IotCpt.vue?vue&type=script&lang=js
|
|
22179
|
+
/* harmony default export */ var cpts_IotCptvue_type_script_lang_js = (IotCptvue_type_script_lang_js);
|
|
22180
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/IotCpt.vue?vue&type=style&index=0&id=03712d72&prod&lang=scss&scoped=true
|
|
22181
|
+
var IotCptvue_type_style_index_0_id_03712d72_prod_lang_scss_scoped_true = __webpack_require__(73);
|
|
22182
|
+
;// ./package/SpeechRecognition/cpts/IotCpt.vue?vue&type=style&index=0&id=03712d72&prod&lang=scss&scoped=true
|
|
22183
|
+
|
|
22184
|
+
;// ./package/SpeechRecognition/cpts/IotCpt.vue
|
|
22185
|
+
|
|
22186
|
+
|
|
22187
|
+
|
|
22188
|
+
;
|
|
22189
|
+
|
|
22190
|
+
|
|
22191
|
+
/* normalize component */
|
|
22192
|
+
|
|
22193
|
+
var IotCpt_component = normalizeComponent(
|
|
22194
|
+
cpts_IotCptvue_type_script_lang_js,
|
|
22195
|
+
IotCptvue_type_template_id_03712d72_scoped_true_render,
|
|
22196
|
+
IotCptvue_type_template_id_03712d72_scoped_true_staticRenderFns,
|
|
22197
|
+
false,
|
|
22198
|
+
null,
|
|
22199
|
+
"03712d72",
|
|
22200
|
+
null
|
|
22201
|
+
|
|
22202
|
+
)
|
|
22203
|
+
|
|
22204
|
+
/* harmony default export */ var IotCpt = (IotCpt_component.exports);
|
|
22205
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderCpt.vue?vue&type=template&id=37926bb0&scoped=true
|
|
22206
|
+
var LeaderCptvue_type_template_id_37926bb0_scoped_true_render = function render() {
|
|
22207
|
+
var _vm = this,
|
|
22208
|
+
_c = _vm._self._c;
|
|
22209
|
+
return _c('div', {
|
|
22210
|
+
directives: [{
|
|
22211
|
+
name: "Drag",
|
|
22212
|
+
rawName: "v-Drag"
|
|
22213
|
+
}],
|
|
22214
|
+
staticClass: "leader-box"
|
|
22215
|
+
}, [_c('div', {
|
|
22216
|
+
staticClass: "title drag-header"
|
|
22217
|
+
}, [_c('div', {
|
|
22218
|
+
staticClass: "title-left"
|
|
22219
|
+
}, [_c('img', {
|
|
22220
|
+
attrs: {
|
|
22221
|
+
"src": __webpack_require__(62),
|
|
22222
|
+
"alt": ""
|
|
22223
|
+
},
|
|
22224
|
+
on: {
|
|
22225
|
+
"click": _vm.testClick
|
|
22226
|
+
}
|
|
22227
|
+
}), _c('span', {
|
|
22228
|
+
staticClass: "title-text"
|
|
22229
|
+
}, [_vm._v("小安助手")])]), !_vm.isShowContent && _vm.isReading ? _c('div', {
|
|
22230
|
+
staticClass: "title-broadcast-text"
|
|
22231
|
+
}, [_c('span', {
|
|
22232
|
+
staticClass: "broadcast-text-point"
|
|
22233
|
+
}, [_vm._v("...")]), _c('span', {
|
|
22234
|
+
staticClass: "broadcast-text"
|
|
22235
|
+
}, [_vm._v("正在播报")])]) : _vm._e(), _c('span', {
|
|
22236
|
+
class: ['iconfont fold', _vm.isShowContent ? '' : 'isfold'],
|
|
22237
|
+
on: {
|
|
22238
|
+
"click": _vm.onClickFold
|
|
22239
|
+
}
|
|
22240
|
+
}, [_c('img', {
|
|
22241
|
+
attrs: {
|
|
22242
|
+
"src": __webpack_require__(823)
|
|
22243
|
+
}
|
|
22244
|
+
})])]), !_vm.isShowContent && (_vm.bubbleBoxTitle || _vm.bubbleBoxQuestion || _vm.streamItems.length > 0) ? _c('div', {
|
|
22245
|
+
staticClass: "bubbleBox"
|
|
22246
|
+
}, [_vm.bubbleBoxQuestion ? _c('div', {
|
|
22247
|
+
staticClass: "bubbleBox-title",
|
|
22248
|
+
class: {
|
|
22249
|
+
'bubbleBox-to': true
|
|
22250
|
+
}
|
|
22251
|
+
}, [_c('span', {
|
|
22252
|
+
staticClass: "html-content",
|
|
22253
|
+
domProps: {
|
|
22254
|
+
"innerHTML": _vm._s(_vm.bubbleBoxQuestion)
|
|
22255
|
+
}
|
|
22256
|
+
})]) : _vm._e(), _vm.bubbleBoxTitle ? _c('div', {
|
|
22257
|
+
staticClass: "bubbleBox-title"
|
|
22258
|
+
}, [_c('span', {
|
|
22259
|
+
staticClass: "html-content",
|
|
22260
|
+
domProps: {
|
|
22261
|
+
"innerHTML": _vm._s(_vm.bubbleBoxTitle)
|
|
22262
|
+
}
|
|
22263
|
+
}), _vm.bubbleBoxBackList.length ? _c('span', {
|
|
22264
|
+
staticClass: "box-container"
|
|
22265
|
+
}, [_vm._l(_vm.bubbleBoxBackList, function (item1, index1) {
|
|
22266
|
+
return item1.name ? _c('span', {
|
|
22267
|
+
staticClass: "item-box"
|
|
22268
|
+
}, [_c('div', {
|
|
22269
|
+
staticClass: "item-box-index"
|
|
22270
|
+
}, [_vm._v(_vm._s(item1.index ? item1.index : index1 + 1))]), _c('div', {
|
|
22271
|
+
staticClass: "item-box-content"
|
|
22272
|
+
}, [_c('div', [item1.label ? _c('span', {
|
|
22273
|
+
staticClass: "item-box-label",
|
|
22274
|
+
style: {
|
|
22275
|
+
background: item1.label_color ? item1.label_color : '#0086BB'
|
|
22276
|
+
}
|
|
22277
|
+
}, [_vm._v(_vm._s(item1.label))]) : _vm._e(), _vm._v(" " + _vm._s(item1.name) + " ")]), _c('div', {
|
|
22278
|
+
staticClass: "item-box-descriptions"
|
|
22279
|
+
}, [_vm._v(_vm._s(item1 === null || item1 === void 0 ? void 0 : item1.address))])])]) : _vm._e();
|
|
22280
|
+
}), _c('span', {
|
|
22281
|
+
staticStyle: {
|
|
22282
|
+
"display": "flex",
|
|
22283
|
+
"justify-content": "end"
|
|
22284
|
+
}
|
|
22285
|
+
}, [_vm.showPrevPage ? _c('span', [_vm._v("上一页")]) : _vm._e(), _vm.showNextPage ? _c('span', {
|
|
22286
|
+
staticClass: "mr-l-20"
|
|
22287
|
+
}, [_vm._v("下一页")]) : _vm._e()])], 2) : _vm._e()]) : _vm._e(), _vm.streamItems.length > 0 && !_vm.bubbleBoxTitle ? _c('div', {
|
|
22288
|
+
staticClass: "bubbleBox-title"
|
|
22289
|
+
}, [_c('span', [_c('StreamInput', {
|
|
22290
|
+
attrs: {
|
|
22291
|
+
"items": _vm.streamItems,
|
|
22292
|
+
"size": _vm.size
|
|
22293
|
+
}
|
|
22294
|
+
})], 1)]) : _vm._e(), _vm.bubbleBoxRecommandList.length ? _c('div', {
|
|
22295
|
+
staticClass: "bubbleBox-suggest"
|
|
22296
|
+
}, [_c('span', [_c('span', [_vm._v("您可能想了解:")]), _vm._l(_vm.bubbleBoxRecommandList, function (item2, index2) {
|
|
22297
|
+
return _c('span', {
|
|
22298
|
+
staticClass: "item-box"
|
|
22299
|
+
}, [_c('div', {
|
|
22300
|
+
staticClass: "item-box-index"
|
|
22301
|
+
}, [_vm._v(_vm._s(index2 + 1))]), _c('div', {
|
|
22302
|
+
staticClass: "item-box-content"
|
|
22303
|
+
}, [_c('div', [_vm._v(_vm._s(item2))])])]);
|
|
22304
|
+
})], 2)]) : _vm._e()]) : _vm._e(), _c('div', {
|
|
22305
|
+
directives: [{
|
|
22306
|
+
name: "show",
|
|
22307
|
+
rawName: "v-show",
|
|
22308
|
+
value: _vm.isShowContent,
|
|
22309
|
+
expression: "isShowContent"
|
|
22310
|
+
}],
|
|
22311
|
+
class: ['leader-box-content', {
|
|
22312
|
+
'leader-box-content-empty': _vm.messagesList.length == 0
|
|
22313
|
+
}]
|
|
22314
|
+
}, [_c('div', {
|
|
22315
|
+
staticClass: "message-list"
|
|
22316
|
+
}, [_vm.messagesList.length > 0 ? [_c('div', {
|
|
22317
|
+
staticClass: "message-list-inner",
|
|
22318
|
+
attrs: {
|
|
22319
|
+
"id": "messageListRef"
|
|
22320
|
+
}
|
|
22321
|
+
}, _vm._l(_vm.messagesList, function (item) {
|
|
22322
|
+
return _c('LeaderMessage', _vm._b({
|
|
22323
|
+
key: item.id,
|
|
22324
|
+
attrs: {
|
|
22325
|
+
"size": _vm.size
|
|
22326
|
+
},
|
|
22327
|
+
on: {
|
|
22328
|
+
"clickRecommendation": _vm.onclickRecommendation
|
|
22329
|
+
}
|
|
22330
|
+
}, 'LeaderMessage', item, false));
|
|
22331
|
+
}), 1)] : [_c('div', {
|
|
22332
|
+
staticClass: "message-list-empty"
|
|
22333
|
+
}, [_c('div', [_vm._v("书记您好,您可以这样问我:")]), _vm.emptyRecommendation.length > 0 ? _vm._l(_vm.emptyRecommendation, function (c, i) {
|
|
22334
|
+
return _c('div', {
|
|
22335
|
+
key: i,
|
|
22336
|
+
staticClass: "recommendation-text",
|
|
22337
|
+
on: {
|
|
22338
|
+
"click": function click($event) {
|
|
22339
|
+
return _vm.onclickRecommendation(c);
|
|
22340
|
+
}
|
|
22341
|
+
}
|
|
22342
|
+
}, [_vm._v(_vm._s(i + 1) + ". " + _vm._s(c))]);
|
|
22343
|
+
}) : [_c('div', {
|
|
22344
|
+
staticClass: "recommendation-text",
|
|
22345
|
+
on: {
|
|
22346
|
+
"click": function click($event) {
|
|
22347
|
+
return _vm.onclickRecommendation('哪里有水涝事件?');
|
|
22348
|
+
}
|
|
22349
|
+
}
|
|
22350
|
+
}, [_vm._v("1. 哪里有水涝事件?")])], _vm._m(0)], 2)]], 2), _c('div', {
|
|
22351
|
+
staticClass: "leader-inputContainer"
|
|
22352
|
+
}, [_c('input', {
|
|
22353
|
+
directives: [{
|
|
22354
|
+
name: "model",
|
|
22355
|
+
rawName: "v-model",
|
|
22356
|
+
value: _vm.inputContent,
|
|
22357
|
+
expression: "inputContent"
|
|
22358
|
+
}],
|
|
22359
|
+
staticClass: "inputBox",
|
|
22360
|
+
attrs: {
|
|
22361
|
+
"placeholder": "请输入您的问题"
|
|
22362
|
+
},
|
|
22363
|
+
domProps: {
|
|
22364
|
+
"value": _vm.inputContent
|
|
22365
|
+
},
|
|
22366
|
+
on: {
|
|
22367
|
+
"keyup": function keyup($event) {
|
|
22368
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
22369
|
+
return _vm.submitText.apply(null, arguments);
|
|
22370
|
+
},
|
|
22371
|
+
"input": function input($event) {
|
|
22372
|
+
if ($event.target.composing) return;
|
|
22373
|
+
_vm.inputContent = $event.target.value;
|
|
22374
|
+
}
|
|
22375
|
+
}
|
|
22376
|
+
}), _c('div', {
|
|
22377
|
+
staticClass: "inputButton",
|
|
22378
|
+
on: {
|
|
22379
|
+
"click": _vm.submitText
|
|
22380
|
+
}
|
|
22381
|
+
}, [_c('img', {
|
|
22382
|
+
attrs: {
|
|
22383
|
+
"src": __webpack_require__(963),
|
|
22384
|
+
"alt": ""
|
|
22385
|
+
}
|
|
22386
|
+
})])])])]);
|
|
22387
|
+
};
|
|
22388
|
+
var LeaderCptvue_type_template_id_37926bb0_scoped_true_staticRenderFns = [function () {
|
|
22389
|
+
var _vm = this,
|
|
22390
|
+
_c = _vm._self._c;
|
|
22391
|
+
return _c('div', {
|
|
22392
|
+
staticClass: "recommendation-tip"
|
|
22393
|
+
}, [_c('img', {
|
|
22394
|
+
attrs: {
|
|
22395
|
+
"src": __webpack_require__(594),
|
|
22396
|
+
"alt": ""
|
|
22397
|
+
}
|
|
22398
|
+
}), _c('span', [_vm._v("您也可以在左上角切换场景主题。")])]);
|
|
22399
|
+
}];
|
|
22400
|
+
|
|
22401
|
+
;// ./package/SpeechRecognition/cpts/LeaderCpt.vue?vue&type=template&id=37926bb0&scoped=true
|
|
22402
|
+
|
|
22403
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=template&id=ed23ed2a&scoped=true
|
|
22404
|
+
var LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_render = function render() {
|
|
22405
|
+
var _vm = this,
|
|
22406
|
+
_c = _vm._self._c;
|
|
22407
|
+
return _c('div', {
|
|
22408
|
+
staticClass: "message-wrapper",
|
|
22409
|
+
class: {
|
|
22410
|
+
'message-type__from': _vm.type === _vm.IMessageType.FROM,
|
|
22411
|
+
'message-type__to': _vm.type === _vm.IMessageType.TO,
|
|
22412
|
+
'message-type__none': _vm.type === _vm.IMessageType.NONE
|
|
22413
|
+
}
|
|
22414
|
+
}, [_c('div', {
|
|
22415
|
+
staticClass: "message-content"
|
|
22416
|
+
}, [_c('div', {
|
|
22417
|
+
staticClass: "message-content-inner"
|
|
22418
|
+
}, [_vm.isEventRecommand ? [_c('div', {
|
|
22419
|
+
staticClass: "inner-event-recommand"
|
|
22420
|
+
}, [_c('div', {
|
|
22421
|
+
staticClass: "event-recommand-title"
|
|
22422
|
+
}, [_vm._v("您可以进行以下操作:")]), _vm._l(_vm.recommandList, function (c, idx) {
|
|
22423
|
+
return _c('div', {
|
|
22424
|
+
key: idx,
|
|
22425
|
+
staticClass: "event-recommand-item",
|
|
22426
|
+
on: {
|
|
22427
|
+
"click": function click($event) {
|
|
22428
|
+
return _vm.onClickRecommendation(c);
|
|
22429
|
+
}
|
|
22430
|
+
}
|
|
22431
|
+
}, [_vm._v(" " + _vm._s(idx + 1) + ". " + _vm._s(c) + " ")]);
|
|
22432
|
+
})], 2)] : [_vm.streamItems.length > 0 ? _c('div', {
|
|
22433
|
+
staticClass: "normal__stream"
|
|
22434
|
+
}, [_c('div', {
|
|
22435
|
+
staticClass: "stream-header",
|
|
22436
|
+
on: {
|
|
22437
|
+
"click": function click($event) {
|
|
22438
|
+
_vm.manuallyExpanded = !_vm.manuallyExpanded;
|
|
22439
|
+
}
|
|
22440
|
+
}
|
|
22441
|
+
}, [_c('h3', [_vm._v("执行过程")]), _vm.content ? _c('span', {
|
|
22442
|
+
staticClass: "collapse-icon",
|
|
22443
|
+
class: _vm.collapsed ? 'arrow-up' : 'arrow-down'
|
|
22444
|
+
}) : _vm._e()]), !_vm.collapsed ? _c('StreamInput', {
|
|
22445
|
+
attrs: {
|
|
22446
|
+
"showBorder": true,
|
|
22447
|
+
"items": _vm.streamItems,
|
|
22448
|
+
"size": _vm.size
|
|
22449
|
+
}
|
|
22450
|
+
}) : _vm._e()], 1) : _vm._e(), _vm.isBroadcast ? _c('div', {
|
|
22451
|
+
staticClass: "message-content__text html-content broadcast-content",
|
|
22452
|
+
style: _vm.contentStyle
|
|
22453
|
+
}, [_c('img', {
|
|
22454
|
+
attrs: {
|
|
22455
|
+
"src": __webpack_require__(907),
|
|
22456
|
+
"alt": ""
|
|
22457
|
+
}
|
|
22458
|
+
}), _vm._v(" 【"), _c('span', {
|
|
22459
|
+
staticClass: "street"
|
|
22460
|
+
}, [_vm._v(_vm._s(_vm.content.street))]), _vm._v("】【"), _c('span', [_vm._v(_vm._s(_vm.content.adress))]), _vm._v("】于今日"), _c('span', [_vm._v(_vm._s(_vm.content.time))]), _vm._v("发生一起"), _c('span', {
|
|
22461
|
+
staticClass: "level"
|
|
22462
|
+
}, [_vm._v("严重")]), _vm._v("等级"), _c('span', [_vm._v(_vm._s(_vm.content.type))]), _vm._v("事件,请您关注。 ")]) : _c('div', {
|
|
22463
|
+
staticClass: "message-content__text html-content",
|
|
22464
|
+
style: _vm.contentStyle,
|
|
22465
|
+
domProps: {
|
|
22466
|
+
"innerHTML": _vm._s(_vm.content)
|
|
22467
|
+
}
|
|
22468
|
+
}), _vm.backList.length ? _c('div', {
|
|
22469
|
+
staticClass: "normal__text"
|
|
22470
|
+
}, [_vm._l(_vm.backList, function (item1, index1) {
|
|
22471
|
+
return _c('div', {
|
|
22472
|
+
staticClass: "item-box"
|
|
22473
|
+
}, [_c('div', {
|
|
22474
|
+
staticClass: "item-box-index"
|
|
22475
|
+
}, [_vm._v(_vm._s(item1.index ? item1.index : index1 + 1))]), _c('div', [_c('div', [item1.label ? _c('span', {
|
|
22476
|
+
staticClass: "item-box-label",
|
|
22477
|
+
style: {
|
|
22478
|
+
background: item1.label_color ? item1.label_color : '#0086BB'
|
|
22479
|
+
}
|
|
22480
|
+
}, [_vm._v(_vm._s(item1.label))]) : _vm._e(), _vm._v(" " + _vm._s(item1.name) + " ")]), _c('div', {
|
|
22481
|
+
staticClass: "item-box-description"
|
|
22482
|
+
}, [_vm._v(_vm._s(item1 === null || item1 === void 0 ? void 0 : item1.address))])])]);
|
|
22483
|
+
}), _c('span', {
|
|
22484
|
+
staticStyle: {
|
|
22485
|
+
"display": "flex",
|
|
22486
|
+
"justify-content": "end"
|
|
22487
|
+
}
|
|
22488
|
+
}, [_vm.showPrevPage ? _c('span', [_vm._v("上一页")]) : _vm._e(), _vm.showNextPage ? _c('span', {
|
|
22489
|
+
staticClass: "mr-l-20"
|
|
22490
|
+
}, [_vm._v("下一页")]) : _vm._e()])], 2) : _vm._e(), _vm.recommandList.length ? _c('div', {
|
|
22491
|
+
staticClass: "normal__text"
|
|
22492
|
+
}, [_c('div', [_vm._v("您可能想了解:")]), _vm._l(_vm.recommandList, function (item2, index2) {
|
|
22493
|
+
return _c('div', {
|
|
22494
|
+
key: index2,
|
|
22495
|
+
staticClass: "item-box"
|
|
22496
|
+
}, [_c('div', {
|
|
22497
|
+
staticClass: "item-box-index"
|
|
22498
|
+
}, [_vm._v(_vm._s(index2 + 1))]), _c('div', {
|
|
22499
|
+
staticClass: "item-box-content"
|
|
22500
|
+
}, [_c('div', [_vm._v(_vm._s(item2))])])]);
|
|
22501
|
+
})], 2) : _vm._e()]], 2)])]);
|
|
22502
|
+
};
|
|
22503
|
+
var LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_staticRenderFns = [];
|
|
22504
|
+
|
|
22505
|
+
;// ./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=template&id=ed23ed2a&scoped=true
|
|
22506
|
+
|
|
22507
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=script&lang=js
|
|
22508
|
+
|
|
22509
|
+
var LeaderPcMessagevue_type_script_lang_js_default_ = {
|
|
22510
|
+
components: {
|
|
22511
|
+
StreamInput: StreamInput
|
|
22512
|
+
},
|
|
22513
|
+
props: {
|
|
22514
|
+
type: {
|
|
22515
|
+
type: String,
|
|
22516
|
+
default: ""
|
|
22517
|
+
},
|
|
22518
|
+
content: {
|
|
22519
|
+
type: [String, Object],
|
|
22520
|
+
default: null
|
|
22521
|
+
},
|
|
22522
|
+
backList: {
|
|
22523
|
+
type: Array,
|
|
22524
|
+
default: function _default() {
|
|
22525
|
+
return [];
|
|
22526
|
+
}
|
|
22527
|
+
},
|
|
22528
|
+
showNextPage: {
|
|
22529
|
+
type: Boolean,
|
|
22530
|
+
default: false
|
|
22531
|
+
},
|
|
22532
|
+
showPrevPage: {
|
|
22533
|
+
type: Boolean,
|
|
22534
|
+
default: false
|
|
22535
|
+
},
|
|
22536
|
+
recommandList: {
|
|
22537
|
+
type: Array,
|
|
22538
|
+
default: function _default() {
|
|
22539
|
+
return [];
|
|
22540
|
+
}
|
|
22541
|
+
},
|
|
22542
|
+
contentStyle: {
|
|
22543
|
+
type: String,
|
|
22544
|
+
default: ""
|
|
22545
|
+
},
|
|
22546
|
+
size: {
|
|
22547
|
+
type: String,
|
|
22548
|
+
default: ""
|
|
22549
|
+
},
|
|
22550
|
+
streamItems: {
|
|
22551
|
+
type: Array,
|
|
22552
|
+
default: function _default() {
|
|
22553
|
+
return [];
|
|
22554
|
+
}
|
|
22555
|
+
},
|
|
22556
|
+
isBroadcast: {
|
|
22557
|
+
type: Boolean,
|
|
22558
|
+
default: false
|
|
22559
|
+
},
|
|
22560
|
+
isEventRecommand: {
|
|
22561
|
+
type: Boolean,
|
|
22562
|
+
default: false
|
|
22563
|
+
}
|
|
22564
|
+
},
|
|
22565
|
+
data: function data() {
|
|
22566
|
+
return {
|
|
22567
|
+
manuallyExpanded: false,
|
|
22568
|
+
IMessageType: {
|
|
22569
|
+
NONE: "NONE",
|
|
22570
|
+
FROM: "FROM",
|
|
22571
|
+
TO: "TO"
|
|
22572
|
+
}
|
|
22573
|
+
};
|
|
21146
22574
|
},
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
}, {
|
|
21166
|
-
"index": 2,
|
|
21167
|
-
"name": "【粤BCD9272】在广深公路城家公寓段违停(876米)",
|
|
21168
|
-
"label": "一般",
|
|
21169
|
-
"label_color": "#FF8E09"
|
|
21170
|
-
}, {
|
|
21171
|
-
"index": 3,
|
|
21172
|
-
"name": "【粤B30200】在创业一路宝晖酒店段违停(946米)",
|
|
21173
|
-
"label": "一般",
|
|
21174
|
-
"label_color": "#FF8E09"
|
|
21175
|
-
}],
|
|
21176
|
-
"recommand_list": [],
|
|
21177
|
-
"show_text": "已在深圳大悦城购物中心周边1公里范围内查询到3条违停记录,涉及车辆:粤BCD9272(重复出现)、粤B30200。可能存在同一车辆多次抓拍或不同时间违停的情况。如需查看某一辆车的详细违停信息(如位置、时长、是否驶离等),请指定车牌号。",
|
|
21178
|
-
"reply": {
|
|
21179
|
-
"id": 6,
|
|
21180
|
-
"level": 1,
|
|
21181
|
-
"text": "生成回复",
|
|
21182
|
-
"parent_id": null,
|
|
21183
|
-
"status": "completed"
|
|
22575
|
+
computed: {
|
|
22576
|
+
htmlFontSize: function htmlFontSize() {
|
|
22577
|
+
var fontSize = "42px";
|
|
22578
|
+
if (this.size == "medium") {
|
|
22579
|
+
fontSize = "18px";
|
|
22580
|
+
} else {
|
|
22581
|
+
fontSize = "42px";
|
|
22582
|
+
}
|
|
22583
|
+
return fontSize;
|
|
22584
|
+
},
|
|
22585
|
+
collapsed: function collapsed() {
|
|
22586
|
+
// 如果用户手动展开,则不折叠
|
|
22587
|
+
if (this.manuallyExpanded) {
|
|
22588
|
+
return false;
|
|
22589
|
+
}
|
|
22590
|
+
// 否则根据content是否有内容自动折叠
|
|
22591
|
+
return !!this.content;
|
|
22592
|
+
}
|
|
21184
22593
|
},
|
|
21185
|
-
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
}
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21197
|
-
|
|
21198
|
-
|
|
21199
|
-
|
|
21200
|
-
|
|
21201
|
-
|
|
21202
|
-
|
|
21203
|
-
|
|
22594
|
+
methods: {
|
|
22595
|
+
onClickRecommendation: function onClickRecommendation(item2) {
|
|
22596
|
+
this.$emit('clickRecommendation', item2);
|
|
22597
|
+
}
|
|
22598
|
+
}
|
|
22599
|
+
};
|
|
22600
|
+
|
|
22601
|
+
var LeaderPcMessagevue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
22602
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
22603
|
+
return {
|
|
22604
|
+
"c90b9fc2": _vm.htmlFontSize
|
|
22605
|
+
};
|
|
22606
|
+
});
|
|
22607
|
+
};
|
|
22608
|
+
var LeaderPcMessagevue_type_script_lang_js_setup_ = LeaderPcMessagevue_type_script_lang_js_default_.setup;
|
|
22609
|
+
LeaderPcMessagevue_type_script_lang_js_default_.setup = LeaderPcMessagevue_type_script_lang_js_setup_ ? function (props, ctx) {
|
|
22610
|
+
LeaderPcMessagevue_type_script_lang_js_injectCSSVars_();
|
|
22611
|
+
return LeaderPcMessagevue_type_script_lang_js_setup_(props, ctx);
|
|
22612
|
+
} : LeaderPcMessagevue_type_script_lang_js_injectCSSVars_;
|
|
22613
|
+
/* harmony default export */ var LeaderPcMessagevue_type_script_lang_js = (LeaderPcMessagevue_type_script_lang_js_default_);
|
|
22614
|
+
;// ./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=script&lang=js
|
|
22615
|
+
/* harmony default export */ var cpts_LeaderPcMessagevue_type_script_lang_js = (LeaderPcMessagevue_type_script_lang_js);
|
|
22616
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=style&index=0&id=ed23ed2a&prod&lang=scss&scoped=true
|
|
22617
|
+
var LeaderPcMessagevue_type_style_index_0_id_ed23ed2a_prod_lang_scss_scoped_true = __webpack_require__(801);
|
|
22618
|
+
;// ./package/SpeechRecognition/cpts/LeaderPcMessage.vue?vue&type=style&index=0&id=ed23ed2a&prod&lang=scss&scoped=true
|
|
21204
22619
|
|
|
22620
|
+
;// ./package/SpeechRecognition/cpts/LeaderPcMessage.vue
|
|
22621
|
+
|
|
22622
|
+
|
|
22623
|
+
|
|
22624
|
+
;
|
|
22625
|
+
|
|
22626
|
+
|
|
22627
|
+
/* normalize component */
|
|
21205
22628
|
|
|
22629
|
+
var LeaderPcMessage_component = normalizeComponent(
|
|
22630
|
+
cpts_LeaderPcMessagevue_type_script_lang_js,
|
|
22631
|
+
LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_render,
|
|
22632
|
+
LeaderPcMessagevue_type_template_id_ed23ed2a_scoped_true_staticRenderFns,
|
|
22633
|
+
false,
|
|
22634
|
+
null,
|
|
22635
|
+
"ed23ed2a",
|
|
22636
|
+
null
|
|
22637
|
+
|
|
22638
|
+
)
|
|
21206
22639
|
|
|
22640
|
+
/* harmony default export */ var LeaderPcMessage = (LeaderPcMessage_component.exports);
|
|
22641
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderCpt.vue?vue&type=script&lang=js
|
|
22642
|
+
function LeaderCptvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return LeaderCptvue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, LeaderCptvue_type_script_lang_js_typeof(o); }
|
|
22643
|
+
function LeaderCptvue_type_script_lang_js_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = LeaderCptvue_type_script_lang_js_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
22644
|
+
function LeaderCptvue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return LeaderCptvue_type_script_lang_js_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? LeaderCptvue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
22645
|
+
function LeaderCptvue_type_script_lang_js_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22646
|
+
function LeaderCptvue_type_script_lang_js_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ LeaderCptvue_type_script_lang_js_regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == LeaderCptvue_type_script_lang_js_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(LeaderCptvue_type_script_lang_js_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
22647
|
+
function LeaderCptvue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
22648
|
+
function LeaderCptvue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { LeaderCptvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { LeaderCptvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
22649
|
+
function LeaderCptvue_type_script_lang_js_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22650
|
+
function LeaderCptvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? LeaderCptvue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { LeaderCptvue_type_script_lang_js_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : LeaderCptvue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22651
|
+
function LeaderCptvue_type_script_lang_js_defineProperty(e, r, t) { return (r = LeaderCptvue_type_script_lang_js_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22652
|
+
function LeaderCptvue_type_script_lang_js_toPropertyKey(t) { var i = LeaderCptvue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == LeaderCptvue_type_script_lang_js_typeof(i) ? i : i + ""; }
|
|
22653
|
+
function LeaderCptvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != LeaderCptvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != LeaderCptvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21207
22654
|
|
|
21208
22655
|
|
|
21209
22656
|
|
|
@@ -21215,17 +22662,14 @@ function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("objec
|
|
|
21215
22662
|
|
|
21216
22663
|
|
|
21217
22664
|
|
|
21218
|
-
var
|
|
21219
|
-
var
|
|
21220
|
-
name:
|
|
22665
|
+
var LeaderCptvue_type_script_lang_js_iconTip = __webpack_require__(907);
|
|
22666
|
+
var LeaderCptvue_type_script_lang_js_default_ = {
|
|
22667
|
+
name: 'LeaderCpt',
|
|
21221
22668
|
directives: {
|
|
21222
|
-
|
|
21223
|
-
Drag: Drag,
|
|
21224
|
-
DragBubble: DragBubble
|
|
22669
|
+
Drag: Drag
|
|
21225
22670
|
},
|
|
21226
22671
|
components: {
|
|
21227
22672
|
LeaderMessage: LeaderPcMessage,
|
|
21228
|
-
Message: Message,
|
|
21229
22673
|
StreamInput: StreamInput
|
|
21230
22674
|
},
|
|
21231
22675
|
props: {
|
|
@@ -21273,11 +22717,16 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21273
22717
|
isPro: {
|
|
21274
22718
|
type: Boolean,
|
|
21275
22719
|
default: false
|
|
22720
|
+
},
|
|
22721
|
+
// 版本号
|
|
22722
|
+
version: {
|
|
22723
|
+
type: String,
|
|
22724
|
+
default: "1.0.0"
|
|
21276
22725
|
}
|
|
21277
22726
|
},
|
|
21278
22727
|
data: function data() {
|
|
21279
22728
|
return {
|
|
21280
|
-
|
|
22729
|
+
pcMeunType: 'home',
|
|
21281
22730
|
wakeEndTime: 20,
|
|
21282
22731
|
options: [{
|
|
21283
22732
|
label: "mode1",
|
|
@@ -21358,8 +22807,6 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21358
22807
|
userInfo: {
|
|
21359
22808
|
username: ""
|
|
21360
22809
|
},
|
|
21361
|
-
isLeaderPc: false,
|
|
21362
|
-
// 是否书记中屏
|
|
21363
22810
|
isShowContent: true,
|
|
21364
22811
|
// 是否展示对话列表
|
|
21365
22812
|
emptyRecommendation: [] // 无事件推荐问题
|
|
@@ -21384,16 +22831,13 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21384
22831
|
}
|
|
21385
22832
|
},
|
|
21386
22833
|
watch: {
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
this.isLeaderPc = to.name == 'cimapp-zpzhdd';
|
|
21390
|
-
if (this.isLeaderPc || from.name == 'cimapp-zpzhdd') this.messagesList = [];
|
|
21391
|
-
if (this.isLeaderPc) this.getLeaderSpeechRecommend();
|
|
22834
|
+
pcMeunType: function pcMeunType(val) {
|
|
22835
|
+
this.getLeaderSpeechRecommend();
|
|
21392
22836
|
},
|
|
21393
22837
|
voiecContent: function voiecContent(val) {
|
|
21394
22838
|
console.log("===============getContent==============", val);
|
|
21395
22839
|
if (Object.keys(val).length > 0) {
|
|
21396
|
-
this.$emit("getContent",
|
|
22840
|
+
this.$emit("getContent", LeaderCptvue_type_script_lang_js_objectSpread({}, val));
|
|
21397
22841
|
}
|
|
21398
22842
|
},
|
|
21399
22843
|
bubbleShow: function bubbleShow(val) {
|
|
@@ -21443,14 +22887,16 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21443
22887
|
// 书记中屏获取首页无事件推荐问题
|
|
21444
22888
|
getLeaderSpeechRecommend: function getLeaderSpeechRecommend() {
|
|
21445
22889
|
var _this2 = this;
|
|
21446
|
-
return
|
|
22890
|
+
return LeaderCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/LeaderCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
21447
22891
|
var _res;
|
|
21448
|
-
return
|
|
22892
|
+
return LeaderCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21449
22893
|
while (1) switch (_context.prev = _context.next) {
|
|
21450
22894
|
case 0:
|
|
21451
22895
|
_this2.emptyRecommendation = [];
|
|
21452
22896
|
_context.next = 3;
|
|
21453
|
-
return Tx.getLeaderSpeechRecommend(
|
|
22897
|
+
return Tx.getLeaderSpeechRecommend({
|
|
22898
|
+
page_type: _this2.pcMeunType
|
|
22899
|
+
});
|
|
21454
22900
|
case 3:
|
|
21455
22901
|
_res = _context.sent;
|
|
21456
22902
|
if ((_res === null || _res === void 0 ? void 0 : _res.code) == 200) {
|
|
@@ -21561,7 +23007,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21561
23007
|
},
|
|
21562
23008
|
// 递归查找项目
|
|
21563
23009
|
findItemById: function findItemById(items, id) {
|
|
21564
|
-
var _iterator =
|
|
23010
|
+
var _iterator = LeaderCptvue_type_script_lang_js_createForOfIteratorHelper(items),
|
|
21565
23011
|
_step;
|
|
21566
23012
|
try {
|
|
21567
23013
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -21693,7 +23139,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21693
23139
|
var flag = false;
|
|
21694
23140
|
if (content || recommand_list.length > 0 || back_list.length > 0 || this.streamItems.length > 0) flag = true;
|
|
21695
23141
|
if (!flag) return;
|
|
21696
|
-
this.messagesList.push(
|
|
23142
|
+
this.messagesList.push(LeaderCptvue_type_script_lang_js_objectSpread(LeaderCptvue_type_script_lang_js_objectSpread({}, messages), {}, {
|
|
21697
23143
|
content: _text,
|
|
21698
23144
|
sentenceId: res.sentenceId,
|
|
21699
23145
|
backList: back_list,
|
|
@@ -21722,9 +23168,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21722
23168
|
},
|
|
21723
23169
|
updateSession: function updateSession(opt) {
|
|
21724
23170
|
var _this4 = this;
|
|
21725
|
-
return
|
|
21726
|
-
var messages, res, type, content, _messages$isReading, isReading, back_list, recommand_list, _messages$showNextPag2, showNextPage, _messages$showPrevPag2, showPrevPage, _messages, _text, _this4$userInfo, voice_id, session_id, sentenceId, _formData, resp, _res,
|
|
21727
|
-
return
|
|
23171
|
+
return LeaderCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/LeaderCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
23172
|
+
var messages, res, type, content, _messages$isReading, isReading, back_list, recommand_list, _messages$showNextPag2, showNextPage, _messages$showPrevPag2, showPrevPage, _messages, _text, _this4$userInfo, voice_id, session_id, sentenceId, _formData, resp, _res, code, msg, status, obj, _content, standard_back, show_text, command_type, _back_list2, _recommand_list, has_next_page, has_prev_page, _opt, _showNextPage, _showPrevPage, _opts, _opt2, _error$message, _error$message2;
|
|
23173
|
+
return LeaderCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
21728
23174
|
while (1) switch (_context2.prev = _context2.next) {
|
|
21729
23175
|
case 0:
|
|
21730
23176
|
_this4.clearWakeTime();
|
|
@@ -21735,7 +23181,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21735
23181
|
});
|
|
21736
23182
|
if (_messages && type == "TO" && !isReading) _messages.content = content;else if (!isReading) {
|
|
21737
23183
|
_text = messages.content ? g.parse(messages.content) : messages.content;
|
|
21738
|
-
_this4.messagesList.push(
|
|
23184
|
+
_this4.messagesList.push(LeaderCptvue_type_script_lang_js_objectSpread(LeaderCptvue_type_script_lang_js_objectSpread({}, messages), {}, {
|
|
21739
23185
|
content: _text,
|
|
21740
23186
|
sentenceId: res.sentenceId,
|
|
21741
23187
|
backList: back_list,
|
|
@@ -21756,7 +23202,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21756
23202
|
_this4.bubbleBoxTitle = g.parse(content);
|
|
21757
23203
|
}
|
|
21758
23204
|
if (!(type === "TO" && res.result.slice_type === 2)) {
|
|
21759
|
-
_context2.next =
|
|
23205
|
+
_context2.next = 67;
|
|
21760
23206
|
break;
|
|
21761
23207
|
}
|
|
21762
23208
|
_this4.getSystem();
|
|
@@ -21801,46 +23247,33 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21801
23247
|
case 29:
|
|
21802
23248
|
_this4.streamItems = [];
|
|
21803
23249
|
_context2.prev = 30;
|
|
21804
|
-
|
|
21805
|
-
if (!_this4.isLeaderPc) {
|
|
21806
|
-
_context2.next = 38;
|
|
21807
|
-
break;
|
|
21808
|
-
}
|
|
21809
|
-
_context2.next = 35;
|
|
23250
|
+
_context2.next = 33;
|
|
21810
23251
|
return Tx.leaderSpeech(_formData);
|
|
21811
|
-
case
|
|
21812
|
-
_res = _context2.sent;
|
|
21813
|
-
_context2.next = 41;
|
|
21814
|
-
break;
|
|
21815
|
-
case 38:
|
|
21816
|
-
_context2.next = 40;
|
|
21817
|
-
return Tx.speech2speech2(_formData);
|
|
21818
|
-
case 40:
|
|
23252
|
+
case 33:
|
|
21819
23253
|
_res = _context2.sent;
|
|
21820
|
-
|
|
21821
|
-
_res2 = _res, code = _res2.code, msg = _res2.msg, status = _res2.status, obj = _res2.obj;
|
|
23254
|
+
code = _res.code, msg = _res.msg, status = _res.status, obj = _res.obj;
|
|
21822
23255
|
if (!(code == 200 || code == 300 && status == '3' && obj !== null && obj !== void 0 && obj.standard_back)) {
|
|
21823
|
-
_context2.next =
|
|
23256
|
+
_context2.next = 54;
|
|
21824
23257
|
break;
|
|
21825
23258
|
}
|
|
21826
23259
|
_content = "";
|
|
21827
23260
|
standard_back = obj.standard_back, show_text = obj.show_text, command_type = obj.command_type, _back_list2 = obj.back_list, _recommand_list = obj.recommand_list, has_next_page = obj.has_next_page, has_prev_page = obj.has_prev_page;
|
|
21828
23261
|
if (!(Object.keys(obj).length > 0)) {
|
|
21829
|
-
_context2.next =
|
|
23262
|
+
_context2.next = 44;
|
|
21830
23263
|
break;
|
|
21831
23264
|
}
|
|
21832
23265
|
_content = standard_back || "抱歉,我还在学习中";
|
|
21833
23266
|
if (!(command_type === "地理实体页面定位" && _content != "抱歉,我还在学习中")) {
|
|
21834
|
-
_context2.next =
|
|
23267
|
+
_context2.next = 42;
|
|
21835
23268
|
break;
|
|
21836
23269
|
}
|
|
21837
23270
|
return _context2.abrupt("return");
|
|
21838
|
-
case
|
|
21839
|
-
_context2.next =
|
|
23271
|
+
case 42:
|
|
23272
|
+
_context2.next = 45;
|
|
21840
23273
|
break;
|
|
21841
|
-
case
|
|
23274
|
+
case 44:
|
|
21842
23275
|
_content = "抱歉,我还在学习中";
|
|
21843
|
-
case
|
|
23276
|
+
case 45:
|
|
21844
23277
|
_this4.voiecContent = obj;
|
|
21845
23278
|
if (status == '3' || isReading) {
|
|
21846
23279
|
_opt = {
|
|
@@ -21892,9 +23325,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21892
23325
|
// messages: { type: "FROM", content: _content },
|
|
21893
23326
|
// sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
21894
23327
|
// });
|
|
21895
|
-
_context2.next =
|
|
23328
|
+
_context2.next = 55;
|
|
21896
23329
|
break;
|
|
21897
|
-
case
|
|
23330
|
+
case 54:
|
|
21898
23331
|
if (code === 504) {
|
|
21899
23332
|
_this4.timeOutContent();
|
|
21900
23333
|
} else if (code === 300) {
|
|
@@ -21916,11 +23349,11 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21916
23349
|
// this.pauseAudio();
|
|
21917
23350
|
}
|
|
21918
23351
|
}
|
|
21919
|
-
case
|
|
21920
|
-
_context2.next =
|
|
23352
|
+
case 55:
|
|
23353
|
+
_context2.next = 63;
|
|
21921
23354
|
break;
|
|
21922
|
-
case
|
|
21923
|
-
_context2.prev =
|
|
23355
|
+
case 57:
|
|
23356
|
+
_context2.prev = 57;
|
|
21924
23357
|
_context2.t1 = _context2["catch"](30);
|
|
21925
23358
|
console.log("speech2speech2 ->", _context2.t1);
|
|
21926
23359
|
console.log(_context2.t1.message);
|
|
@@ -21931,23 +23364,23 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
21931
23364
|
} else {
|
|
21932
23365
|
_this4.oneQuestionOneAnswer = true;
|
|
21933
23366
|
}
|
|
21934
|
-
case
|
|
21935
|
-
_context2.prev =
|
|
21936
|
-
return _context2.finish(
|
|
21937
|
-
case
|
|
21938
|
-
_context2.next =
|
|
23367
|
+
case 63:
|
|
23368
|
+
_context2.prev = 63;
|
|
23369
|
+
return _context2.finish(63);
|
|
23370
|
+
case 65:
|
|
23371
|
+
_context2.next = 68;
|
|
21939
23372
|
break;
|
|
21940
|
-
case
|
|
23373
|
+
case 67:
|
|
21941
23374
|
if (type === "FROM") {
|
|
21942
23375
|
_this4.handlePlayTTS({
|
|
21943
23376
|
content: content
|
|
21944
23377
|
});
|
|
21945
23378
|
}
|
|
21946
|
-
case
|
|
23379
|
+
case 68:
|
|
21947
23380
|
case "end":
|
|
21948
23381
|
return _context2.stop();
|
|
21949
23382
|
}
|
|
21950
|
-
}, _callee2, null, [[18, 26], [30,
|
|
23383
|
+
}, _callee2, null, [[18, 26], [30, 57, 63, 65]]);
|
|
21951
23384
|
}))();
|
|
21952
23385
|
},
|
|
21953
23386
|
timeOutContent: function timeOutContent() {
|
|
@@ -22037,9 +23470,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22037
23470
|
// 语音播放
|
|
22038
23471
|
handlePlayTTS: function handlePlayTTS(opt) {
|
|
22039
23472
|
var _this8 = this;
|
|
22040
|
-
return
|
|
23473
|
+
return LeaderCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/LeaderCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee3() {
|
|
22041
23474
|
var _content3, onStart, onEnded, _opt$isExit, isExit, res, arrayBuffer, blob, url, audio, _onEndedHandler;
|
|
22042
|
-
return
|
|
23475
|
+
return LeaderCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
22043
23476
|
while (1) switch (_context3.prev = _context3.next) {
|
|
22044
23477
|
case 0:
|
|
22045
23478
|
_context3.prev = 0;
|
|
@@ -22129,7 +23562,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22129
23562
|
}
|
|
22130
23563
|
var quitState = onQuit(res); // 操作前判断是否退出
|
|
22131
23564
|
// if (quitState) this.updateSessionId();
|
|
22132
|
-
var _opt =
|
|
23565
|
+
var _opt = LeaderCptvue_type_script_lang_js_objectSpread(LeaderCptvue_type_script_lang_js_objectSpread({}, res), {}, {
|
|
22133
23566
|
sessionId: this.sessionId,
|
|
22134
23567
|
quitState: quitState
|
|
22135
23568
|
});
|
|
@@ -22188,7 +23621,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22188
23621
|
}
|
|
22189
23622
|
// console.log("一句话开始", res);
|
|
22190
23623
|
sentenceId = guid();
|
|
22191
|
-
_this9.onResult(
|
|
23624
|
+
_this9.onResult(LeaderCptvue_type_script_lang_js_objectSpread({
|
|
22192
23625
|
sentenceId: sentenceId
|
|
22193
23626
|
}, res), options);
|
|
22194
23627
|
start = true;
|
|
@@ -22196,7 +23629,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22196
23629
|
// 识别变化时
|
|
22197
23630
|
webAudioSpeechRecognizer.OnRecognitionResultChange = function (res) {
|
|
22198
23631
|
// console.log("==> 识别变化时", res);
|
|
22199
|
-
_this9.onResult(
|
|
23632
|
+
_this9.onResult(LeaderCptvue_type_script_lang_js_objectSpread({
|
|
22200
23633
|
sentenceId: sentenceId
|
|
22201
23634
|
}, res), options);
|
|
22202
23635
|
};
|
|
@@ -22204,7 +23637,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22204
23637
|
webAudioSpeechRecognizer.OnSentenceEnd = function (res) {
|
|
22205
23638
|
start = false;
|
|
22206
23639
|
// console.log("一句话结束", res);
|
|
22207
|
-
_this9.onResult(
|
|
23640
|
+
_this9.onResult(LeaderCptvue_type_script_lang_js_objectSpread({
|
|
22208
23641
|
sentenceId: sentenceId
|
|
22209
23642
|
}, res), options);
|
|
22210
23643
|
};
|
|
@@ -22461,6 +23894,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22461
23894
|
console.log("回传当前事件状态");
|
|
22462
23895
|
if (data !== null && data !== void 0 && data.isBroadcast) {
|
|
22463
23896
|
this.handleBroadcastData(data);
|
|
23897
|
+
} else if (data !== null && data !== void 0 && data.isSendMeunType) {
|
|
23898
|
+
this.pcMeunType = (data === null || data === void 0 ? void 0 : data.meunType) || 'home';
|
|
22464
23899
|
} else {
|
|
22465
23900
|
bus.emit('callBackStatus', data.data);
|
|
22466
23901
|
}
|
|
@@ -22479,10 +23914,10 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22479
23914
|
// 处理事件播报内容
|
|
22480
23915
|
handleBroadcastData: function handleBroadcastData(data) {
|
|
22481
23916
|
var _this12 = this;
|
|
22482
|
-
return
|
|
23917
|
+
return LeaderCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/LeaderCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
22483
23918
|
var _data$eventData, _data$data$BROADCAST_, _data$data;
|
|
22484
23919
|
var eventData, broadcastInfo, info, broadcastInfoHtml, _this12$userInfo, _formData2, _res, code, status, obj, _obj$recommand_list, recommand_list, _opts, _opt, _error$message3, _error$message4;
|
|
22485
|
-
return
|
|
23920
|
+
return LeaderCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
22486
23921
|
while (1) switch (_context4.prev = _context4.next) {
|
|
22487
23922
|
case 0:
|
|
22488
23923
|
eventData = (_data$eventData = data === null || data === void 0 ? void 0 : data.eventData) !== null && _data$eventData !== void 0 ? _data$eventData : {};
|
|
@@ -22491,7 +23926,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22491
23926
|
_context4.next = 24;
|
|
22492
23927
|
break;
|
|
22493
23928
|
}
|
|
22494
|
-
info =
|
|
23929
|
+
info = LeaderCptvue_type_script_lang_js_objectSpread(LeaderCptvue_type_script_lang_js_objectSpread({}, eventData), {}, {
|
|
22495
23930
|
type: "FROM",
|
|
22496
23931
|
content: eventData,
|
|
22497
23932
|
sentenceId: guid(),
|
|
@@ -22499,7 +23934,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22499
23934
|
});
|
|
22500
23935
|
_this12.messagesList.push(info);
|
|
22501
23936
|
_this12.scrollMessageBox();
|
|
22502
|
-
broadcastInfoHtml = "\n <div class=\"bubblebox-broadcast-content\">\n <img src=\"".concat(
|
|
23937
|
+
broadcastInfoHtml = "\n <div class=\"bubblebox-broadcast-content\">\n <img src=\"".concat(LeaderCptvue_type_script_lang_js_iconTip, "\" alt=\"\">\n \u3010<span style=\"color: #FFDF05;\">").concat(eventData === null || eventData === void 0 ? void 0 : eventData.street, "</span>\u3011\u3010<span\n >").concat(eventData === null || eventData === void 0 ? void 0 : eventData.adress, "</span>\u3011\u4E8E\u4ECA\u65E5<span>").concat(eventData === null || eventData === void 0 ? void 0 : eventData.time, "</span>\u53D1\u751F\u4E00\u8D77<span style=\"color: #FF5151;\"\n >\u4E25\u91CD</span>\u7B49\u7EA7<span>").concat(eventData === null || eventData === void 0 ? void 0 : eventData.type, "</span>\u4E8B\u4EF6\uFF0C\u8BF7\u60A8\u5173\u6CE8\u3002\n </div>\n ");
|
|
22503
23938
|
_this12.bubbleBoxTitle = broadcastInfoHtml;
|
|
22504
23939
|
_this12.handlePlayTTS({
|
|
22505
23940
|
content: broadcastInfo
|
|
@@ -22738,43 +24173,30 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22738
24173
|
},
|
|
22739
24174
|
getSpeechSilence: function getSpeechSilence() {
|
|
22740
24175
|
var _this15 = this;
|
|
22741
|
-
return
|
|
22742
|
-
var
|
|
22743
|
-
return
|
|
24176
|
+
return LeaderCptvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/LeaderCptvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
24177
|
+
var resp, _resp$obj;
|
|
24178
|
+
return LeaderCptvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
22744
24179
|
while (1) switch (_context5.prev = _context5.next) {
|
|
22745
24180
|
case 0:
|
|
22746
24181
|
_context5.prev = 0;
|
|
22747
|
-
|
|
22748
|
-
if (!_this15.isLeaderPc) {
|
|
22749
|
-
_context5.next = 8;
|
|
22750
|
-
break;
|
|
22751
|
-
}
|
|
22752
|
-
_context5.next = 5;
|
|
24182
|
+
_context5.next = 3;
|
|
22753
24183
|
return Tx.getLeaderSpeechSilence();
|
|
22754
|
-
case
|
|
22755
|
-
|
|
22756
|
-
|
|
22757
|
-
|
|
22758
|
-
case 8:
|
|
22759
|
-
_context5.next = 10;
|
|
22760
|
-
return Tx.getSpeechSilence();
|
|
22761
|
-
case 10:
|
|
22762
|
-
_readOnlyError("resp");
|
|
22763
|
-
case 11:
|
|
22764
|
-
if (((_resp = resp) === null || _resp === void 0 ? void 0 : _resp.code) == 200 && (_resp2 = resp) !== null && _resp2 !== void 0 && _resp2.obj) {
|
|
22765
|
-
_this15.wakeEndTime = (_resp3 = resp) === null || _resp3 === void 0 || (_resp3 = _resp3.obj) === null || _resp3 === void 0 ? void 0 : _resp3.stay_time;
|
|
24184
|
+
case 3:
|
|
24185
|
+
resp = _context5.sent;
|
|
24186
|
+
if ((resp === null || resp === void 0 ? void 0 : resp.code) == 200 && resp !== null && resp !== void 0 && resp.obj) {
|
|
24187
|
+
_this15.wakeEndTime = resp === null || resp === void 0 || (_resp$obj = resp.obj) === null || _resp$obj === void 0 ? void 0 : _resp$obj.stay_time;
|
|
22766
24188
|
}
|
|
22767
|
-
_context5.next =
|
|
24189
|
+
_context5.next = 10;
|
|
22768
24190
|
break;
|
|
22769
|
-
case
|
|
22770
|
-
_context5.prev =
|
|
24191
|
+
case 7:
|
|
24192
|
+
_context5.prev = 7;
|
|
22771
24193
|
_context5.t0 = _context5["catch"](0);
|
|
22772
24194
|
console.log("时长获取失败");
|
|
22773
|
-
case
|
|
24195
|
+
case 10:
|
|
22774
24196
|
case "end":
|
|
22775
24197
|
return _context5.stop();
|
|
22776
24198
|
}
|
|
22777
|
-
}, _callee5, null, [[0,
|
|
24199
|
+
}, _callee5, null, [[0, 7]]);
|
|
22778
24200
|
}))();
|
|
22779
24201
|
},
|
|
22780
24202
|
// 会话框折叠
|
|
@@ -22799,13 +24221,125 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
22799
24221
|
}
|
|
22800
24222
|
});
|
|
22801
24223
|
this.getUserInfo();
|
|
24224
|
+
this.getLeaderSpeechRecommend();
|
|
24225
|
+
}
|
|
24226
|
+
};
|
|
24227
|
+
|
|
24228
|
+
var LeaderCptvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
24229
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
24230
|
+
return {
|
|
24231
|
+
"497d1bb0": _vm.htmlFontSize
|
|
24232
|
+
};
|
|
24233
|
+
});
|
|
24234
|
+
};
|
|
24235
|
+
var LeaderCptvue_type_script_lang_js_setup_ = LeaderCptvue_type_script_lang_js_default_.setup;
|
|
24236
|
+
LeaderCptvue_type_script_lang_js_default_.setup = LeaderCptvue_type_script_lang_js_setup_ ? function (props, ctx) {
|
|
24237
|
+
LeaderCptvue_type_script_lang_js_injectCSSVars_();
|
|
24238
|
+
return LeaderCptvue_type_script_lang_js_setup_(props, ctx);
|
|
24239
|
+
} : LeaderCptvue_type_script_lang_js_injectCSSVars_;
|
|
24240
|
+
/* harmony default export */ var LeaderCptvue_type_script_lang_js = (LeaderCptvue_type_script_lang_js_default_);
|
|
24241
|
+
;// ./package/SpeechRecognition/cpts/LeaderCpt.vue?vue&type=script&lang=js
|
|
24242
|
+
/* harmony default export */ var cpts_LeaderCptvue_type_script_lang_js = (LeaderCptvue_type_script_lang_js);
|
|
24243
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/cpts/LeaderCpt.vue?vue&type=style&index=0&id=37926bb0&prod&lang=scss&scoped=true
|
|
24244
|
+
var LeaderCptvue_type_style_index_0_id_37926bb0_prod_lang_scss_scoped_true = __webpack_require__(983);
|
|
24245
|
+
;// ./package/SpeechRecognition/cpts/LeaderCpt.vue?vue&type=style&index=0&id=37926bb0&prod&lang=scss&scoped=true
|
|
24246
|
+
|
|
24247
|
+
;// ./package/SpeechRecognition/cpts/LeaderCpt.vue
|
|
24248
|
+
|
|
24249
|
+
|
|
24250
|
+
|
|
24251
|
+
;
|
|
24252
|
+
|
|
24253
|
+
|
|
24254
|
+
/* normalize component */
|
|
24255
|
+
|
|
24256
|
+
var LeaderCpt_component = normalizeComponent(
|
|
24257
|
+
cpts_LeaderCptvue_type_script_lang_js,
|
|
24258
|
+
LeaderCptvue_type_template_id_37926bb0_scoped_true_render,
|
|
24259
|
+
LeaderCptvue_type_template_id_37926bb0_scoped_true_staticRenderFns,
|
|
24260
|
+
false,
|
|
24261
|
+
null,
|
|
24262
|
+
"37926bb0",
|
|
24263
|
+
null
|
|
24264
|
+
|
|
24265
|
+
)
|
|
24266
|
+
|
|
24267
|
+
/* harmony default export */ var LeaderCpt = (LeaderCpt_component.exports);
|
|
24268
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
24269
|
+
|
|
24270
|
+
|
|
24271
|
+
var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
24272
|
+
name: "yx-speech-recognition",
|
|
24273
|
+
components: {
|
|
24274
|
+
IotCpt: IotCpt,
|
|
24275
|
+
LeaderCpt: LeaderCpt
|
|
24276
|
+
},
|
|
24277
|
+
props: {
|
|
24278
|
+
// 小宝语音框位置
|
|
24279
|
+
imgPosition: {
|
|
24280
|
+
type: Object,
|
|
24281
|
+
default: function _default() {
|
|
24282
|
+
return {
|
|
24283
|
+
left: "100px",
|
|
24284
|
+
top: "134px"
|
|
24285
|
+
};
|
|
24286
|
+
}
|
|
24287
|
+
},
|
|
24288
|
+
// 弹窗位置
|
|
24289
|
+
boxPosition: {
|
|
24290
|
+
type: Object,
|
|
24291
|
+
default: function _default() {
|
|
24292
|
+
return {
|
|
24293
|
+
left: "100px",
|
|
24294
|
+
top: "400px"
|
|
24295
|
+
};
|
|
24296
|
+
}
|
|
24297
|
+
},
|
|
24298
|
+
// 弹窗大小
|
|
24299
|
+
boxSize: {
|
|
24300
|
+
type: Object,
|
|
24301
|
+
default: function _default() {
|
|
24302
|
+
return {
|
|
24303
|
+
width: "750px",
|
|
24304
|
+
height: "676px"
|
|
24305
|
+
};
|
|
24306
|
+
}
|
|
24307
|
+
},
|
|
24308
|
+
// 字体大小
|
|
24309
|
+
size: {
|
|
24310
|
+
type: String,
|
|
24311
|
+
default: "medium" // ["large", "medium"]
|
|
24312
|
+
},
|
|
24313
|
+
// 是否大屏
|
|
24314
|
+
screenType: {
|
|
24315
|
+
type: String,
|
|
24316
|
+
default: "BIG" // ["BIG", "NORMAL"]
|
|
24317
|
+
},
|
|
24318
|
+
// 是否生产环境
|
|
24319
|
+
isPro: {
|
|
24320
|
+
type: Boolean,
|
|
24321
|
+
default: false
|
|
24322
|
+
}
|
|
24323
|
+
},
|
|
24324
|
+
data: function data() {
|
|
24325
|
+
return {
|
|
24326
|
+
version: '2.1.3',
|
|
24327
|
+
// 版本号
|
|
24328
|
+
isLeaderPc: false // 是否书记中屏
|
|
24329
|
+
};
|
|
24330
|
+
},
|
|
24331
|
+
watch: {
|
|
24332
|
+
$route: function $route(to, from) {
|
|
24333
|
+
console.log('路由变化:', to, from);
|
|
24334
|
+
this.isLeaderPc = to.name == 'cimapp-zpzhdd';
|
|
24335
|
+
}
|
|
22802
24336
|
}
|
|
22803
24337
|
};
|
|
22804
24338
|
|
|
22805
24339
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
22806
24340
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
22807
24341
|
return {
|
|
22808
|
-
"
|
|
24342
|
+
"0cedb6d6": _vm.htmlFontSize
|
|
22809
24343
|
};
|
|
22810
24344
|
});
|
|
22811
24345
|
};
|
|
@@ -22817,13 +24351,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
22817
24351
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
22818
24352
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
22819
24353
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
22820
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
22821
|
-
var
|
|
22822
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
22823
|
-
|
|
22824
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=1&id=87642bf4&prod&lang=scss
|
|
22825
|
-
var SpeechRecognitionvue_type_style_index_1_id_87642bf4_prod_lang_scss = __webpack_require__(108);
|
|
22826
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=1&id=87642bf4&prod&lang=scss
|
|
24354
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=4c3b92d2&prod&lang=scss
|
|
24355
|
+
var SpeechRecognitionvue_type_style_index_0_id_4c3b92d2_prod_lang_scss = __webpack_require__(623);
|
|
24356
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=4c3b92d2&prod&lang=scss
|
|
22827
24357
|
|
|
22828
24358
|
;// ./package/SpeechRecognition/index.vue
|
|
22829
24359
|
|
|
@@ -22832,7 +24362,6 @@ var SpeechRecognitionvue_type_style_index_1_id_87642bf4_prod_lang_scss = __webpa
|
|
|
22832
24362
|
;
|
|
22833
24363
|
|
|
22834
24364
|
|
|
22835
|
-
|
|
22836
24365
|
/* normalize component */
|
|
22837
24366
|
|
|
22838
24367
|
var SpeechRecognition_component = normalizeComponent(
|
|
@@ -22841,7 +24370,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
22841
24370
|
staticRenderFns,
|
|
22842
24371
|
false,
|
|
22843
24372
|
null,
|
|
22844
|
-
|
|
24373
|
+
null,
|
|
22845
24374
|
null
|
|
22846
24375
|
|
|
22847
24376
|
)
|