yxspeechrecognition 1.8.1 → 1.8.2
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 +66 -53
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +66 -53
- 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
|
@@ -19,22 +19,6 @@ module.exports = "data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/ 212:
|
|
23
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24
|
-
|
|
25
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26
|
-
|
|
27
|
-
// load the styles
|
|
28
|
-
var content = __webpack_require__(408);
|
|
29
|
-
if(content.__esModule) content = content.default;
|
|
30
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
31
|
-
if(content.locals) module.exports = content.locals;
|
|
32
|
-
// add the styles to the DOM
|
|
33
|
-
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
34
|
-
var update = add("2b224172", content, true, {"sourceMap":false,"shadowMode":false});
|
|
35
|
-
|
|
36
|
-
/***/ }),
|
|
37
|
-
|
|
38
22
|
/***/ 258:
|
|
39
23
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40
24
|
|
|
@@ -409,27 +393,6 @@ module.exports = function (cssWithMappingToString) {
|
|
|
409
393
|
"use strict";
|
|
410
394
|
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=";
|
|
411
395
|
|
|
412
|
-
/***/ }),
|
|
413
|
-
|
|
414
|
-
/***/ 408:
|
|
415
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
416
|
-
|
|
417
|
-
"use strict";
|
|
418
|
-
__webpack_require__.r(__webpack_exports__);
|
|
419
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
420
|
-
/* 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__);
|
|
421
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
422
|
-
/* 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__);
|
|
423
|
-
// Imports
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
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()));
|
|
427
|
-
// Module
|
|
428
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-494acfe7] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-494acfe7]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--e062d190)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-494acfe7]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--e062d190)*2.29);padding:0 calc(var(--e062d190)*.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(--e062d190)*.57) calc(var(--e062d190)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-494acfe7]{display:flex;align-items:center;gap:calc(var(--e062d190)*.38)}.yx-speech-recognition .box .title-icon img[data-v-494acfe7]{width:calc(var(--e062d190)*1);height:calc(var(--e062d190)*1)}.yx-speech-recognition .box .title-icon span[data-v-494acfe7]{font-size:calc(var(--e062d190)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-494acfe7]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-494acfe7]{width:calc(var(--e062d190)*1.1)}.yx-speech-recognition .box .content[data-v-494acfe7]{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}.yx-speech-recognition .box .content span[data-v-494acfe7]{margin-top:calc(var(--e062d190)*7.5);font-size:calc(var(--e062d190)*1)}.yx-speech-recognition .box .message-list[data-v-494acfe7]{overflow:hidden;padding:calc(var(--e062d190)*.58);box-sizing:border-box;padding-right:calc(var(--e062d190)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-494acfe7]{height:100%;display:flex;flex-direction:column;gap:calc(var(--e062d190)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-494acfe7]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-494acfe7]{width:calc(var(--e062d190)*3.76);height:calc(var(--e062d190)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-494acfe7]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-494acfe7]{position:absolute;top:0;left:calc(var(--e062d190)*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-494acfe7]{font-size:calc(var(--e062d190)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-494acfe7]{width:calc(var(--e062d190)*1.26);height:calc(var(--e062d190)*1.28);margin-right:calc(var(--e062d190)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-494acfe7]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-494acfe7]{border-top:calc(var(--e062d190)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--e062d190)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-494acfe7]{display:flex;overflow:hidden;margin:10px 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-494acfe7]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-494acfe7]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-494acfe7]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-494acfe7]{flex-shrink:0;width:calc(var(--e062d190)*1.2);font-size:calc(var(--e062d190)*.9);height:calc(var(--e062d190)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--e062d190)*.1);margin-right:calc(var(--e062d190)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-494acfe7]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-494acfe7]{display:inline-block;width:auto;font-size:calc(var(--e062d190)*.9);border-radius:5px;padding:0 8px}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-494acfe7]{font-size:calc(var(--e062d190)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-494acfe7]{display:block;max-width:calc(var(--e062d190)*19.21);font-size:calc(var(--e062d190)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-494acfe7],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]{border-radius:calc(var(--e062d190)*.27);padding:calc(var(--e062d190)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-494acfe7]{background-color:rgba(13,23,135,.85);box-shadow:0 4px 15px rgba(106,17,203,.3)}.yx-speech-recognition .displayAssistant .bubbleBox-title-hi[data-v-494acfe7]{max-width:calc(var(--e062d190)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--e062d190)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-494acfe7]:before{border-top:calc(var(--e062d190)*.25) solid transparent;border-bottom:calc(var(--e062d190)*.25) solid transparent;border-right:calc(var(--e062d190)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--e062d190)*-.46));left:0;top:calc(var(--e062d190)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-494acfe7]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--e062d190)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-494acfe7]:before{border-right:calc(var(--e062d190)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-494acfe7]:after{border-top:calc(var(--e062d190)*.25) solid transparent;border-bottom:calc(var(--e062d190)*.25) solid transparent;border-right:calc(var(--e062d190)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--e062d190)*-.46));left:0;top:calc(var(--e062d190)*.48)}.inputContainer[data-v-494acfe7]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--e062d190)*.57)}.inputContainer .inputBox[data-v-494acfe7]{margin:4px;flex:1;height:calc(var(--e062d190)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--e062d190)*.57);font-size:calc(var(--e062d190)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-494acfe7]{margin-right:20px;flex-shrink:0}", ""]);
|
|
429
|
-
// Exports
|
|
430
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
431
|
-
|
|
432
|
-
|
|
433
396
|
/***/ }),
|
|
434
397
|
|
|
435
398
|
/***/ 443:
|
|
@@ -461,6 +424,22 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACq
|
|
|
461
424
|
|
|
462
425
|
/***/ }),
|
|
463
426
|
|
|
427
|
+
/***/ 486:
|
|
428
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
429
|
+
|
|
430
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
431
|
+
|
|
432
|
+
// load the styles
|
|
433
|
+
var content = __webpack_require__(922);
|
|
434
|
+
if(content.__esModule) content = content.default;
|
|
435
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
436
|
+
if(content.locals) module.exports = content.locals;
|
|
437
|
+
// add the styles to the DOM
|
|
438
|
+
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
439
|
+
var update = add("3b0d84f1", content, true, {"sourceMap":false,"shadowMode":false});
|
|
440
|
+
|
|
441
|
+
/***/ }),
|
|
442
|
+
|
|
464
443
|
/***/ 601:
|
|
465
444
|
/***/ (function(module) {
|
|
466
445
|
|
|
@@ -503,6 +482,27 @@ if(content.locals) module.exports = content.locals;
|
|
|
503
482
|
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
504
483
|
var update = add("55477c15", content, true, {"sourceMap":false,"shadowMode":false});
|
|
505
484
|
|
|
485
|
+
/***/ }),
|
|
486
|
+
|
|
487
|
+
/***/ 922:
|
|
488
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
489
|
+
|
|
490
|
+
"use strict";
|
|
491
|
+
__webpack_require__.r(__webpack_exports__);
|
|
492
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
493
|
+
/* 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__);
|
|
494
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
495
|
+
/* 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__);
|
|
496
|
+
// Imports
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
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()));
|
|
500
|
+
// Module
|
|
501
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-7c4a3348] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-7c4a3348]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--f4b06364)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-7c4a3348]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--f4b06364)*2.29);padding:0 calc(var(--f4b06364)*.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(--f4b06364)*.57) calc(var(--f4b06364)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-7c4a3348]{display:flex;align-items:center;gap:calc(var(--f4b06364)*.38)}.yx-speech-recognition .box .title-icon img[data-v-7c4a3348]{width:calc(var(--f4b06364)*1);height:calc(var(--f4b06364)*1)}.yx-speech-recognition .box .title-icon span[data-v-7c4a3348]{font-size:calc(var(--f4b06364)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-7c4a3348]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-7c4a3348]{width:calc(var(--f4b06364)*1.1)}.yx-speech-recognition .box .content[data-v-7c4a3348]{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}.yx-speech-recognition .box .content span[data-v-7c4a3348]{margin-top:calc(var(--f4b06364)*7.5);font-size:calc(var(--f4b06364)*1)}.yx-speech-recognition .box .message-list[data-v-7c4a3348]{overflow:hidden;padding:calc(var(--f4b06364)*.58);box-sizing:border-box;padding-right:calc(var(--f4b06364)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-7c4a3348]{height:100%;display:flex;flex-direction:column;gap:calc(var(--f4b06364)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-7c4a3348]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-7c4a3348]{width:calc(var(--f4b06364)*3.76);height:calc(var(--f4b06364)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-7c4a3348]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-7c4a3348]{position:absolute;top:0;left:calc(var(--f4b06364)*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-7c4a3348]{font-size:calc(var(--f4b06364)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-7c4a3348]{width:calc(var(--f4b06364)*1.26);height:calc(var(--f4b06364)*1.28);margin-right:calc(var(--f4b06364)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-7c4a3348]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-7c4a3348]{border-top:calc(var(--f4b06364)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--f4b06364)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-7c4a3348]{display:flex;overflow:hidden;margin:10px 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-7c4a3348]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-7c4a3348]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-7c4a3348]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-7c4a3348]{flex-shrink:0;width:calc(var(--f4b06364)*1.2);font-size:calc(var(--f4b06364)*.9);height:calc(var(--f4b06364)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--f4b06364)*.1);margin-right:calc(var(--f4b06364)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-7c4a3348]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-7c4a3348]{display:inline-block;width:auto;font-size:calc(var(--f4b06364)*.9);border-radius:5px;padding:0 8px}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-7c4a3348]{font-size:calc(var(--f4b06364)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-7c4a3348]{display:block;max-width:calc(var(--f4b06364)*19.21);font-size:calc(var(--f4b06364)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-7c4a3348],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-7c4a3348]{border-radius:calc(var(--f4b06364)*.27);padding:calc(var(--f4b06364)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-7c4a3348]{background-color:rgba(13,23,135,.85);box-shadow:0 4px 15px rgba(106,17,203,.3)}.yx-speech-recognition .displayAssistant .bubbleBox-title-hi[data-v-7c4a3348]{max-width:calc(var(--f4b06364)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-7c4a3348]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--f4b06364)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-7c4a3348]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-7c4a3348]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-7c4a3348]:before{border-top:calc(var(--f4b06364)*.25) solid transparent;border-bottom:calc(var(--f4b06364)*.25) solid transparent;border-right:calc(var(--f4b06364)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--f4b06364)*-.46));left:0;top:calc(var(--f4b06364)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-7c4a3348]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--f4b06364)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-7c4a3348]:before{border-right:calc(var(--f4b06364)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-7c4a3348]:after{border-top:calc(var(--f4b06364)*.25) solid transparent;border-bottom:calc(var(--f4b06364)*.25) solid transparent;border-right:calc(var(--f4b06364)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--f4b06364)*-.46));left:0;top:calc(var(--f4b06364)*.48)}.inputContainer[data-v-7c4a3348]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--f4b06364)*.57)}.inputContainer .inputBox[data-v-7c4a3348]{margin:4px;flex:1;height:calc(var(--f4b06364)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--f4b06364)*.57);font-size:calc(var(--f4b06364)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-7c4a3348]{margin-right:20px;flex-shrink:0}", ""]);
|
|
502
|
+
// Exports
|
|
503
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
504
|
+
|
|
505
|
+
|
|
506
506
|
/***/ }),
|
|
507
507
|
|
|
508
508
|
/***/ 950:
|
|
@@ -896,7 +896,7 @@ if (typeof window !== 'undefined') {
|
|
|
896
896
|
// Indicate to webpack that this file can be concatenated
|
|
897
897
|
/* harmony default export */ var setPublicPath = (null);
|
|
898
898
|
|
|
899
|
-
;// ./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=
|
|
899
|
+
;// ./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=7c4a3348&scoped=true
|
|
900
900
|
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); }
|
|
901
901
|
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; }
|
|
902
902
|
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; }
|
|
@@ -1075,7 +1075,7 @@ var staticRenderFns = [function () {
|
|
|
1075
1075
|
}, [_c('span', [_vm._v("Hi,我是小安,有问题,尽管问。")])]);
|
|
1076
1076
|
}];
|
|
1077
1077
|
|
|
1078
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
1078
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=7c4a3348&scoped=true
|
|
1079
1079
|
|
|
1080
1080
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1081
1081
|
var cryptojs = __webpack_require__(950);
|
|
@@ -6091,7 +6091,7 @@ var Tx = /*#__PURE__*/function () {
|
|
|
6091
6091
|
return Tx_createClass(Tx, null, [{
|
|
6092
6092
|
key: "TextToVoice",
|
|
6093
6093
|
value: function TextToVoice(text) {
|
|
6094
|
-
return gridRequest.post("
|
|
6094
|
+
return gridRequest.post("/dxwh/gateway/TextToVoice", {
|
|
6095
6095
|
Action: 'TextToVoice',
|
|
6096
6096
|
Text: text,
|
|
6097
6097
|
SessionId: 'session-1234',
|
|
@@ -17041,6 +17041,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17041
17041
|
bubbleBoxTitle: "",
|
|
17042
17042
|
bubbleBoxBackList: [],
|
|
17043
17043
|
bubbleBoxRecommandList: [],
|
|
17044
|
+
tempBubbleBoxRecommandList: [],
|
|
17044
17045
|
messagesList: [],
|
|
17045
17046
|
voiecContent: "",
|
|
17046
17047
|
sessionId: guid(),
|
|
@@ -17212,15 +17213,24 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17212
17213
|
res = opt.res;
|
|
17213
17214
|
var type = messages.type,
|
|
17214
17215
|
content = messages.content,
|
|
17215
|
-
|
|
17216
|
-
|
|
17216
|
+
backList = messages.back_list,
|
|
17217
|
+
recommandList = messages.recommand_list,
|
|
17217
17218
|
_messages$showNextPag = messages.showNextPage,
|
|
17218
17219
|
showNextPage = _messages$showNextPag === void 0 ? false : _messages$showNextPag,
|
|
17219
17220
|
_messages$showPrevPag = messages.showPrevPage,
|
|
17220
|
-
showPrevPage = _messages$showPrevPag === void 0 ?
|
|
17221
|
+
showPrevPage = _messages$showPrevPag === void 0 ? false : _messages$showPrevPag,
|
|
17222
|
+
contentStatus = messages.contentStatus;
|
|
17221
17223
|
var _messages = this.messagesList.find(function (item) {
|
|
17222
17224
|
return item.sentenceId == res.sentenceId;
|
|
17223
17225
|
});
|
|
17226
|
+
var back_list = backList;
|
|
17227
|
+
var recommand_list = recommandList;
|
|
17228
|
+
if (type === "FROM") {
|
|
17229
|
+
if (contentStatus) {
|
|
17230
|
+
// back_list = this.tempBubbleBoxRecommandList || []
|
|
17231
|
+
recommand_list = this.tempBubbleBoxRecommandList || [];
|
|
17232
|
+
}
|
|
17233
|
+
}
|
|
17224
17234
|
if (_messages && type == "TO") _messages.content = content;else {
|
|
17225
17235
|
this.messagesList.push(SpeechRecognitionvue_type_script_lang_js_objectSpread(SpeechRecognitionvue_type_script_lang_js_objectSpread({}, messages), {}, {
|
|
17226
17236
|
sentenceId: res.sentenceId,
|
|
@@ -17232,6 +17242,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17232
17242
|
}
|
|
17233
17243
|
this.bubbleBoxBackList = back_list || [];
|
|
17234
17244
|
this.bubbleBoxRecommandList = recommand_list || [];
|
|
17245
|
+
this.tempBubbleBoxRecommandList = recommand_list;
|
|
17246
|
+
// this.tempBubbleBoxRecommandList = back_list
|
|
17235
17247
|
this.showNextPage = showNextPage;
|
|
17236
17248
|
this.showPrevPage = showPrevPage;
|
|
17237
17249
|
this.scrollMessageBox();
|
|
@@ -17242,7 +17254,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17242
17254
|
updateSession: function updateSession(opt) {
|
|
17243
17255
|
var _this3 = this;
|
|
17244
17256
|
return SpeechRecognitionvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
17245
|
-
var messages, res, type, content, back_list, recommand_list, _messages$showNextPag2, showNextPage, _messages$showPrevPag2, showPrevPage, _messages, voice_id, session_id, sentenceId, formData, resp, _res, code, msg, obj, _content, standard_back, command_type, _opts, _error$message, _error$message2;
|
|
17257
|
+
var messages, res, type, content, back_list, recommand_list, _messages$showNextPag2, showNextPage, _messages$showPrevPag2, showPrevPage, _messages, voice_id, session_id, sentenceId, formData, resp, _res, code, msg, status, obj, _content, standard_back, command_type, _opts, _error$message, _error$message2;
|
|
17246
17258
|
return SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17247
17259
|
while (1) switch (_context.prev = _context.next) {
|
|
17248
17260
|
case 0:
|
|
@@ -17286,7 +17298,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17286
17298
|
};
|
|
17287
17299
|
_this3.oneQuestionOneAnswer = false;
|
|
17288
17300
|
// 获取iot面板打开状态 、cim底座状态不用获取
|
|
17289
|
-
if (!(_this3.
|
|
17301
|
+
if (!(_this3.appId == 'cimapp-iot')) {
|
|
17290
17302
|
_context.next = 29;
|
|
17291
17303
|
break;
|
|
17292
17304
|
}
|
|
@@ -17312,7 +17324,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17312
17324
|
return Tx.speech2speech2(formData);
|
|
17313
17325
|
case 32:
|
|
17314
17326
|
_res = _context.sent;
|
|
17315
|
-
code = _res.code, msg = _res.msg, obj = _res.obj;
|
|
17327
|
+
code = _res.code, msg = _res.msg, status = _res.status, obj = _res.obj;
|
|
17316
17328
|
if (!(code == 200)) {
|
|
17317
17329
|
_context.next = 49;
|
|
17318
17330
|
break;
|
|
@@ -17340,7 +17352,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17340
17352
|
res: {},
|
|
17341
17353
|
messages: {
|
|
17342
17354
|
type: "FROM",
|
|
17343
|
-
content: _content
|
|
17355
|
+
content: _content,
|
|
17356
|
+
contentStatus: status
|
|
17344
17357
|
},
|
|
17345
17358
|
sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17346
17359
|
};
|
|
@@ -17874,7 +17887,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17874
17887
|
bus.on('callBackStatus', _handler);
|
|
17875
17888
|
var timeOutId = setTimeout(function () {
|
|
17876
17889
|
bus.off('callBackStatus', _handler);
|
|
17877
|
-
reject(new Error('
|
|
17890
|
+
reject(new Error('等待状态回传超时'));
|
|
17878
17891
|
}, 5 * 1000);
|
|
17879
17892
|
});
|
|
17880
17893
|
},
|
|
@@ -18001,7 +18014,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
18001
18014
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
18002
18015
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
18003
18016
|
return {
|
|
18004
|
-
"
|
|
18017
|
+
"f4b06364": _vm.htmlFontSize
|
|
18005
18018
|
};
|
|
18006
18019
|
});
|
|
18007
18020
|
};
|
|
@@ -18013,9 +18026,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
18013
18026
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
18014
18027
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
18015
18028
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
18016
|
-
// 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=
|
|
18017
|
-
var
|
|
18018
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
18029
|
+
// 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=7c4a3348&prod&lang=scss&scoped=true
|
|
18030
|
+
var SpeechRecognitionvue_type_style_index_0_id_7c4a3348_prod_lang_scss_scoped_true = __webpack_require__(486);
|
|
18031
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=7c4a3348&prod&lang=scss&scoped=true
|
|
18019
18032
|
|
|
18020
18033
|
;// ./package/SpeechRecognition/index.vue
|
|
18021
18034
|
|
|
@@ -18032,7 +18045,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
18032
18045
|
staticRenderFns,
|
|
18033
18046
|
false,
|
|
18034
18047
|
null,
|
|
18035
|
-
"
|
|
18048
|
+
"7c4a3348",
|
|
18036
18049
|
null
|
|
18037
18050
|
|
|
18038
18051
|
)
|