yxspeechrecognition 1.7.6 → 1.7.7
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 +286 -82
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +282 -78
- 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,6 +19,22 @@ module.exports = "data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
+
/***/ 59:
|
|
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__(321);
|
|
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__(459)/* ["default"] */ .A)
|
|
34
|
+
var update = add("3ba1f9e2", content, true, {"sourceMap":false,"shadowMode":false});
|
|
35
|
+
|
|
36
|
+
/***/ }),
|
|
37
|
+
|
|
22
38
|
/***/ 260:
|
|
23
39
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
24
40
|
|
|
@@ -140,27 +156,32 @@ module.exports = function (cssWithMappingToString) {
|
|
|
140
156
|
|
|
141
157
|
/***/ }),
|
|
142
158
|
|
|
143
|
-
/***/
|
|
144
|
-
/***/ (function(module) {
|
|
159
|
+
/***/ 321:
|
|
160
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
145
161
|
|
|
146
162
|
"use strict";
|
|
147
|
-
|
|
163
|
+
__webpack_require__.r(__webpack_exports__);
|
|
164
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
165
|
+
/* 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__);
|
|
166
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
167
|
+
/* 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__);
|
|
168
|
+
// Imports
|
|
148
169
|
|
|
149
|
-
/***/ }),
|
|
150
170
|
|
|
151
|
-
|
|
152
|
-
|
|
171
|
+
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()));
|
|
172
|
+
// Module
|
|
173
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-4d58385e] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-4d58385e]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--05f90279)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-4d58385e]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--05f90279)*2.29);padding:0 calc(var(--05f90279)*.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(--05f90279)*.57) calc(var(--05f90279)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-4d58385e]{display:flex;align-items:center;gap:calc(var(--05f90279)*.38)}.yx-speech-recognition .box .title-icon img[data-v-4d58385e]{width:calc(var(--05f90279)*1);height:calc(var(--05f90279)*1)}.yx-speech-recognition .box .title-icon span[data-v-4d58385e]{font-size:calc(var(--05f90279)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-4d58385e]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-4d58385e]{width:calc(var(--05f90279)*1.1)}.yx-speech-recognition .box .content[data-v-4d58385e]{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-4d58385e]{margin-top:calc(var(--05f90279)*7.5);font-size:calc(var(--05f90279)*1)}.yx-speech-recognition .box .message-list[data-v-4d58385e]{overflow:hidden;padding:calc(var(--05f90279)*.58);box-sizing:border-box;padding-right:calc(var(--05f90279)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-4d58385e]{height:100%;display:flex;flex-direction:column;gap:calc(var(--05f90279)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-4d58385e]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-4d58385e]{width:calc(var(--05f90279)*3.76);height:calc(var(--05f90279)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-4d58385e]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-4d58385e]{position:absolute;top:0;left:calc(var(--05f90279)*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-4d58385e]{font-size:calc(var(--05f90279)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-4d58385e]{width:calc(var(--05f90279)*1.26);height:calc(var(--05f90279)*1.28);margin-right:calc(var(--05f90279)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-4d58385e]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-4d58385e]{border-top:calc(var(--05f90279)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--05f90279)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-4d58385e]{display:flex;overflow:hidden;margin:10px 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-4d58385e]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-4d58385e]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-4d58385e]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-4d58385e]{flex-shrink:0;width:calc(var(--05f90279)*1.2);font-size:calc(var(--05f90279)*.9);height:calc(var(--05f90279)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--05f90279)*.1);margin-right:calc(var(--05f90279)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-4d58385e]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-4d58385e]{display:inline-block;width:auto;font-size:calc(var(--05f90279)*.9);border-radius:5px;padding:0 8px}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-4d58385e]{font-size:calc(var(--05f90279)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-4d58385e]{display:block;max-width:calc(var(--05f90279)*19.21);font-size:calc(var(--05f90279)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-4d58385e],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]{border-radius:calc(var(--05f90279)*.27);padding:calc(var(--05f90279)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-4d58385e]{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-4d58385e]{max-width:calc(var(--05f90279)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--05f90279)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-4d58385e]:before{border-top:calc(var(--05f90279)*.25) solid transparent;border-bottom:calc(var(--05f90279)*.25) solid transparent;border-right:calc(var(--05f90279)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--05f90279)*-.46));left:0;top:calc(var(--05f90279)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-4d58385e]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--05f90279)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-4d58385e]:before{border-right:calc(var(--05f90279)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-4d58385e]:after{border-top:calc(var(--05f90279)*.25) solid transparent;border-bottom:calc(var(--05f90279)*.25) solid transparent;border-right:calc(var(--05f90279)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--05f90279)*-.46));left:0;top:calc(var(--05f90279)*.48)}.inputContainer[data-v-4d58385e]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--05f90279)*.57)}.inputContainer .inputBox[data-v-4d58385e]{margin:4px;flex:1;height:calc(var(--05f90279)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--05f90279)*.57);font-size:calc(var(--05f90279)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-4d58385e]{margin-right:20px;flex-shrink:0}", ""]);
|
|
174
|
+
// Exports
|
|
175
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
153
176
|
|
|
154
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
155
177
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
var update = add("47f308ad", content, true, {"sourceMap":false,"shadowMode":false});
|
|
178
|
+
/***/ }),
|
|
179
|
+
|
|
180
|
+
/***/ 344:
|
|
181
|
+
/***/ (function(module) {
|
|
182
|
+
|
|
183
|
+
"use strict";
|
|
184
|
+
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=";
|
|
164
185
|
|
|
165
186
|
/***/ }),
|
|
166
187
|
|
|
@@ -759,27 +780,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABX
|
|
|
759
780
|
"use strict";
|
|
760
781
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABGS8AGAAAC+lBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////J4P8UW7f41rtWRjJ2rf/////+/v9QlKHbwKLX6P/4+//M4v/r8//8/f/2+v/o8f/e7P/c6//b6v/P5P/9/f7K4P7T5v8bYbvI3/9+sv9tXkz6/P/h7f/U5v8kaMNaSjfv9f/t9f/N4v+Muv91rP5zq/331boXXbn107iQvf/C2/5upvpxqflpovbx2MUfZL8YXrrdwqRfUD9cTTmz0v+hx//H3v3h6vb38u7V3e6YvOuQtulFhNszdc5Phcuqt8hDfcgubcAiZbtZmrmgqbZhn6qHt//4+/z09/vM3/vp8fiwzvVln/Jgmu/Y5+tZlerZ3ehXkue7zuZNi+Fqmtqzw9lmotjk2tdilNZhkc+hxszs2csqbsg9eMYpasDn07/21r6Ds7zvzrTszLCdpLDnyK2ZoKrkxqlamqaXnaXbwKPHq5LCpY21m4VwaGCHclxsWkZYSDSmyv+XwP94r//l7/6tzv78+vjN3vjF2/i40/jn7vfb5fRwqvNmoPPn8PLT4PGgwu+/0+65zumzyujT5OdSj+Wow+SmweRppeKbueCVtd/g2959p95vntvw5Nc/f9d6otZynNPo2dKwvtJtmdJsmNI5etJWjNFoltBLg8pfnsczcsTz18LRyMIhZbzy0bZyqLPhyLFSlqjfxadUlqPOsZeEg4R9e3iiiXGSgW9sZFppX1O71v6awv681vquzvqixffD2PWDtfXv8PSryvOgwe690Optp+rc3OJ/qeHz6uDy6uC4yeDE29+91tt+sdpSi9jb1NVvqNRbkNOmyM8vccqMucGJtr/ey7zAvLzizbZ4rLbpzLVZma/Xw67hwajbvKLHsqCKjI+ulH2qkHmbg2yGd2hybGSQeWN0YUxjV0l5KC0lAAAAInRSTlMA7sIrBvr46+Pf3dzJxa+onZOIgHx3bWVeXFFQKSMgBdLRppE8rQAABtJJREFUWMOk1jlvGlEUhuGBeF8xGLBZvBxd9I00ww4yhcFiKSwqFyBZSkXjxl1kyUrhznEsWd5Lt/4LyQ+IUniv0qRKkz5S9lXKMIrtAHPGLI9EyavRmXsuSE3weZ0262x/b09Pb/+s1eb0+qTOPXKNWNDAMuJ61EnV7xiARs1FY0oqWSAqJFNKLJpToRlw+NvMTg5Xo6F4khok46FqfHiy9WqXexAIhxRiKaEwMOjuaq070QdEYkEyFYxFgL6JVt6YVcsmqAkJLW1t9j1O27uRjlOT4ml026eb6U4NQY4GqWnBqIyhqYe7HgvUBWrJggqL56HuOJAPUouCeWDcvDsGOUNtyMgYMzu8o5AT1JaEjFH+SI8irFCblDBG+TmEU9S2VJibxjhkhTqgyMZv0MPMt6U5ewz2woIMdSgDy1TDHg8hT6be7VzclLOlgy8viZXHUP1226Ga7cXJ9nXgzkGF3RQV9rr7rFs22ePlnVKgxsUpt91yd+1dZ0WUWOs3gXp/uHlEYa2515HmB7GVDTTKVphhpDHx3yr3gb9/dwKGsuvM/Yy++9V2I0KclQDjYJkMReC+Cw+CXY21kl45NiivMGuCwbvfeZMHPtcbR2cG4Z/EPfLtv4JhxIjxplxNlD+J7wblNTIUw7Ck8yPMHomKXtgTonjYGN5iDkYYfj3sQMj81V0KzeLXhlN3TsZCcOjhASj8Gda+P18Uus39X79r4tfc/YkBfZuhEmtbH8S94sfdb4e39RIxVFT32oWQafj4lajz7PLf6TthZ+HSwiOIk9mM50Wjs7Iefkvc9o1oYQuSxKoYh8Wu2XmjJCyS5INKvHUmLPTTd8oP2Sd5kSPe+xIT3g382D9aJkYOXslpdhPPiX0mvFneFK+JE4VTsiFmFi4eGYfFlfZZJUYMNskKhXhLYo8JfzYLK7BKM0gR74VYvDIOfxBiiTgpzEj9SBLviRDPBecpcZLol3pRIN7ckuA9Jk4BvVIPyMzqBtvdmCMWev42ZyY/TQdRHD/4B3jwH9D8knHag/FUQxu1l1IrBcQmIDsBjUJAQQJRQNYQAuHIatgJCMgOCassInJ0i0vc4hL3JfofOPM6084Ab2Lixe+lv868fDJ5s773JBgf89XdsaeSgYuCwRVGJe8OvgyduCtg8sxDrt6NuwrjNUyeXG7GJbeLxqELX24H5AYxLrmdqr4OXaYNAlva7ItVdAmbtjQcQmaN4wPGDyHs2DTvkheyCz82xUFvVvIJnVtlNoeDXlxNZsV/08i1vxPM9nA1wWVqlt/1PVAbQp+st6+ReNmHX6Zw/RvljCJrdntj3e0THFvXaA8kEZcfuvDrXzxYjGoi5MldO1Ogvh5+p6iLeJxGF+8xP7FAD1sIcSQF7CFdo9RDCLjZ9MQyPwo7JjJ7CHFR+qpRcqsclEYRQh45cU/sMz9j/anLPquIMS5QSl8Hwlx6nzXGVn5M9ePPWPzh/bRk3bKsdMIURZmSfjDsnSnOpQm8dciyIhZTnMjDGwkVnKmZFiiWI5opqD2pnQbVRLhOc4PK4rydoQIa3KSsWEKRYsSgt/niIwHAbmFTkYIENxCOaVxLKo4Q8DGot+F8LwU1Q3O5tIrI08MxNIDMCIF9lzjBBbTsDZttIwc+Pby1wAppUQ8gsZD3AThPDKaHMw5xWpmNqYZP3mHedskXtvJ1qCEvGqS/tBTFRTPIEUa7YQN9Yp/HWVN0hGo1qQTpeFqhwlLk5uuijdFqguAy9hnPmrxpKjnLqaQVsERInootjITZYw7I3+Lcnw7pYhKdprjsmZIIwVI3k2HzdIYFtTLceTngQ0SoKGxZoqRukGSTMytsXu4ViHsS/IV9+EVjjDtsWekUySY8PdZvKVoQDI9DgBuy+REEikxXLftFegxP6JVYqgoF+ZhcFW9oq2hK0wyLIaFnSEGeWdfsfRcJqE2uiq+wJmB/aFqBFKQhaZpq6YqLAYwr3xbUVq4LGmIjdLvlowf3GtO8E9Y2fSagDzahd/DX69atSrNlmhfzhmNmO3kaSN0S3A1/F3SbGQf4wZxKHzwrrPUJPBfkntNXMOjsoEylm5P/iZk6+DRM4M0g+Ip2AIEyE/XkP16ucIzqg3bHcK9uAph/Rsepwx11aOUKc4Eld0kjw9a+JT3hLVe6lnKRAgtWEuorVclp4AvhiWllMfShJSG8iNU1pyzVAraFN4OeGApdAnNdaBHLXHbLGckIQWKZL8ATF8VhmTGSYy67mQuFncPzWcBxe8lz7gmYuKz54U4oFP5baTNxYGw2o+K9q+VXw2NP8ezYQKIobf5/xVi1fLw/WD7e/7fl4z8i0wTTxNNsyQAAAABJRU5ErkJggg==";
|
|
761
782
|
|
|
762
|
-
/***/ }),
|
|
763
|
-
|
|
764
|
-
/***/ 936:
|
|
765
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
766
|
-
|
|
767
|
-
"use strict";
|
|
768
|
-
__webpack_require__.r(__webpack_exports__);
|
|
769
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
|
|
770
|
-
/* 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__);
|
|
771
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
|
772
|
-
/* 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__);
|
|
773
|
-
// Imports
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
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()));
|
|
777
|
-
// Module
|
|
778
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .box[data-v-bf98a528] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-bf98a528]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--3aabf14e)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-bf98a528]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--3aabf14e)*2.29);padding:0 calc(var(--3aabf14e)*.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(--3aabf14e)*.57) calc(var(--3aabf14e)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-bf98a528]{display:flex;align-items:center;gap:calc(var(--3aabf14e)*.38)}.yx-speech-recognition .box .title-icon img[data-v-bf98a528]{width:calc(var(--3aabf14e)*1);height:calc(var(--3aabf14e)*1)}.yx-speech-recognition .box .title-icon span[data-v-bf98a528]{font-size:calc(var(--3aabf14e)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-bf98a528]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-bf98a528]{width:calc(var(--3aabf14e)*1.1)}.yx-speech-recognition .box .content[data-v-bf98a528]{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-bf98a528]{margin-top:calc(var(--3aabf14e)*7.5);font-size:calc(var(--3aabf14e)*1)}.yx-speech-recognition .box .message-list[data-v-bf98a528]{overflow:hidden;padding:calc(var(--3aabf14e)*.58);box-sizing:border-box;padding-right:calc(var(--3aabf14e)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-bf98a528]{height:100%;display:flex;flex-direction:column;gap:calc(var(--3aabf14e)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-bf98a528]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-bf98a528]{width:calc(var(--3aabf14e)*3.76);height:calc(var(--3aabf14e)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-bf98a528]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-bf98a528]{position:absolute;top:0;left:calc(var(--3aabf14e)*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-bf98a528]{font-size:calc(var(--3aabf14e)*.8);display:flex;align-items:center}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon[data-v-bf98a528]{width:calc(var(--3aabf14e)*1.26);height:calc(var(--3aabf14e)*1.28);margin-right:calc(var(--3aabf14e)*.4)}.yx-speech-recognition .displayAssistant .bubbleBox .loging-icon img[data-v-bf98a528]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox .box-container[data-v-bf98a528]{border-top:calc(var(--3aabf14e)*.1) solid rgba(117,178,255,.61);margin-top:calc(var(--3aabf14e)*.2)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box[data-v-bf98a528]{display:flex;overflow:hidden;margin:10px 0}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(2) .item-box-number[data-v-bf98a528]{background-color:#ff4e4e}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(3) .item-box-number[data-v-bf98a528]{background-color:#ff6e1d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box:nth-child(4) .item-box-number[data-v-bf98a528]{background-color:#4fc94d}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-index[data-v-bf98a528]{flex-shrink:0;width:calc(var(--3aabf14e)*1.2);font-size:calc(var(--3aabf14e)*.9);height:calc(var(--3aabf14e)*1.2);background-color:rgba(117,178,255,.61);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:calc(var(--3aabf14e)*.1);margin-right:calc(var(--3aabf14e)*.1)}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-content[data-v-bf98a528]{overflow:hidden}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-label[data-v-bf98a528]{display:inline-block;width:auto;font-size:calc(var(--3aabf14e)*.9);border-radius:5px;padding:0 8px}.yx-speech-recognition .displayAssistant .bubbleBox .item-box .item-box-descriptions[data-v-bf98a528]{font-size:calc(var(--3aabf14e)*.9);color:hsla(0,0%,100%,.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-bf98a528]{display:block;max-width:calc(var(--3aabf14e)*19.21);font-size:calc(var(--3aabf14e)*1);color:#fff;word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-bf98a528],.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-bf98a528]{border-radius:calc(var(--3aabf14e)*.27);padding:calc(var(--3aabf14e)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-suggest[data-v-bf98a528]{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-bf98a528]{max-width:calc(var(--3aabf14e)*9.21)}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-bf98a528]{margin-bottom:15px;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--3aabf14e)*.57) 0 #d4d9ff}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-bf98a528]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-bf98a528]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-bf98a528]:before{border-top:calc(var(--3aabf14e)*.25) solid transparent;border-bottom:calc(var(--3aabf14e)*.25) solid transparent;border-right:calc(var(--3aabf14e)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--3aabf14e)*-.46));left:0;top:calc(var(--3aabf14e)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-bf98a528]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--3aabf14e)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-bf98a528]:before{border-right:calc(var(--3aabf14e)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-bf98a528]:after{border-top:calc(var(--3aabf14e)*.25) solid transparent;border-bottom:calc(var(--3aabf14e)*.25) solid transparent;border-right:calc(var(--3aabf14e)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--3aabf14e)*-.46));left:0;top:calc(var(--3aabf14e)*.48)}.inputContainer[data-v-bf98a528]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--3aabf14e)*.57)}.inputContainer .inputBox[data-v-bf98a528]{margin:4px;flex:1;height:calc(var(--3aabf14e)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--3aabf14e)*.57);font-size:calc(var(--3aabf14e)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-bf98a528]{margin-right:20px;flex-shrink:0}", ""]);
|
|
779
|
-
// Exports
|
|
780
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
781
|
-
|
|
782
|
-
|
|
783
783
|
/***/ })
|
|
784
784
|
|
|
785
785
|
/******/ });
|
|
@@ -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-40.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-40.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=4d58385e&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; }
|
|
@@ -979,10 +979,14 @@ var render = function render() {
|
|
|
979
979
|
"alt": ""
|
|
980
980
|
}
|
|
981
981
|
})])])]) : _vm._e(), _c('div', {
|
|
982
|
+
directives: [{
|
|
983
|
+
name: "DragBubble",
|
|
984
|
+
rawName: "v-DragBubble"
|
|
985
|
+
}],
|
|
982
986
|
staticClass: "displayAssistant",
|
|
983
|
-
style: _vm.
|
|
987
|
+
style: _vm.bubbleStyle
|
|
984
988
|
}, [_c('div', {
|
|
985
|
-
staticClass: "icon1"
|
|
989
|
+
staticClass: "icon1 drag-bubble-header"
|
|
986
990
|
}, [_c('img', {
|
|
987
991
|
attrs: {
|
|
988
992
|
"src": "http://10.99.16.155:8995/mysb/l/main/app/assets/png/icon8-BTvF9JNL.png",
|
|
@@ -1008,12 +1012,12 @@ var render = function render() {
|
|
|
1008
1012
|
}
|
|
1009
1013
|
}), _vm._v(" 努力思考中··· ")]) : _vm._e(), _vm.bubbleBoxBackList.length ? _c('span', {
|
|
1010
1014
|
staticClass: "box-container"
|
|
1011
|
-
}, _vm._l(_vm.bubbleBoxBackList, function (item1, index1) {
|
|
1015
|
+
}, [_vm._l(_vm.bubbleBoxBackList.slice(_vm.currentPage * _vm.pageSize, (_vm.currentPage + 1) * _vm.pageSize), function (item1, index1) {
|
|
1012
1016
|
return item1.name ? _c('span', {
|
|
1013
1017
|
staticClass: "item-box"
|
|
1014
1018
|
}, [_c('div', {
|
|
1015
1019
|
staticClass: "item-box-index"
|
|
1016
|
-
}, [_vm._v(_vm._s(
|
|
1020
|
+
}, [_vm._v(_vm._s(item1.index + 1))]), _c('div', {
|
|
1017
1021
|
staticClass: "item-box-content"
|
|
1018
1022
|
}, [_c('div', [item1.label ? _c('span', {
|
|
1019
1023
|
staticClass: "item-box-label",
|
|
@@ -1023,7 +1027,12 @@ var render = function render() {
|
|
|
1023
1027
|
}, [_vm._v(_vm._s(item1.label))]) : _vm._e(), _vm._v(" " + _vm._s(item1.name) + " ")]), _c('div', {
|
|
1024
1028
|
staticClass: "item-box-descriptions"
|
|
1025
1029
|
}, [_vm._v(_vm._s(item1 === null || item1 === void 0 ? void 0 : item1.address))])])]) : _vm._e();
|
|
1026
|
-
}),
|
|
1030
|
+
}), _vm.bubbleBoxBackList.length > _vm.pageSize ? _c('span', {
|
|
1031
|
+
staticStyle: {
|
|
1032
|
+
"display": "flex",
|
|
1033
|
+
"justify-content": "end"
|
|
1034
|
+
}
|
|
1035
|
+
}, [_vm._v("换一批")]) : _vm._e()], 2) : _vm._e()]), _vm.bubbleBoxRecommandList.length ? _c('div', {
|
|
1027
1036
|
staticClass: "bubbleBox-suggest"
|
|
1028
1037
|
}, [_c('span', [_c('span', [_vm._v("您可以这样问我:")]), _vm._l(_vm.bubbleBoxRecommandList, function (item2, index2) {
|
|
1029
1038
|
return _c('span', {
|
|
@@ -1062,7 +1071,7 @@ var staticRenderFns = [function () {
|
|
|
1062
1071
|
}, [_c('span', [_vm._v("Hi,我是小安,有问题,尽管问。")])]);
|
|
1063
1072
|
}];
|
|
1064
1073
|
|
|
1065
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=
|
|
1074
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=4d58385e&scoped=true
|
|
1066
1075
|
|
|
1067
1076
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1068
1077
|
var cryptojs = __webpack_require__(672);
|
|
@@ -6086,7 +6095,7 @@ var Tx = /*#__PURE__*/function () {
|
|
|
6086
6095
|
key: "speech2speech2",
|
|
6087
6096
|
value: function speech2speech2(formData) {
|
|
6088
6097
|
return gridRequest.post('/speech2speech/speech2speech2', formData, {
|
|
6089
|
-
timeout:
|
|
6098
|
+
timeout: 60 * 1000,
|
|
6090
6099
|
headers: {
|
|
6091
6100
|
'Content-Type': "application/json;"
|
|
6092
6101
|
}
|
|
@@ -16780,9 +16789,127 @@ var Drag = {
|
|
|
16780
16789
|
}
|
|
16781
16790
|
};
|
|
16782
16791
|
/* harmony default export */ var drag = ((/* unused pure expression or super */ null && (Drag)));
|
|
16792
|
+
;// ./package/SpeechRecognition/directive/dragBubble.js
|
|
16793
|
+
function dragBubble_typeof(o) { "@babel/helpers - typeof"; return dragBubble_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; }, dragBubble_typeof(o); }
|
|
16794
|
+
var DragBubble = {
|
|
16795
|
+
bind: function bind(el, binding, vnode) {
|
|
16796
|
+
var dragDom = el.querySelector('.drag-box') || el;
|
|
16797
|
+
var dragHeaderEl = el.querySelector('.drag-bubble-header') || el.querySelector('.header');
|
|
16798
|
+
if (!dragHeaderEl) {
|
|
16799
|
+
console.warn('未找到拖拽头部元素');
|
|
16800
|
+
return;
|
|
16801
|
+
}
|
|
16802
|
+
var boxWidth = dragDom.style.width.replace('px', '') || 160;
|
|
16803
|
+
var boxHeight = dragDom.style.height.replace('px', '') || 165;
|
|
16804
|
+
var isDragging = false;
|
|
16805
|
+
var startX = 0,
|
|
16806
|
+
startY = 0,
|
|
16807
|
+
initialLeft = 0,
|
|
16808
|
+
initialTop = 0;
|
|
16809
|
+
var vm = vnode.context;
|
|
16810
|
+
var startDrag = function startDrag(e) {
|
|
16811
|
+
// 鼠标按下,计算当前元素距离可视区的距离 (鼠标点击位置距离可视窗口的距离)
|
|
16812
|
+
if (e.target.closest('.closeBtn')) return;
|
|
16813
|
+
if (e.button != 0) return;
|
|
16814
|
+
isDragging = true;
|
|
16815
|
+
|
|
16816
|
+
// 获取当前实际位置
|
|
16817
|
+
var rect = dragDom.getBoundingClientRect();
|
|
16818
|
+
// const containerRect = dragDom.parentElement.getBoundingClientRect()
|
|
16819
|
+
|
|
16820
|
+
initialLeft = rect.left;
|
|
16821
|
+
initialTop = rect.top;
|
|
16822
|
+
// initialLeft = rect.left - containerRect.left
|
|
16823
|
+
// initialTop = rect.top - containerRect.top
|
|
16824
|
+
|
|
16825
|
+
startX = e.clientX;
|
|
16826
|
+
startY = e.clientY;
|
|
16827
|
+
dragDom.classList.add('dragging');
|
|
16828
|
+
document.addEventListener('mousemove', onDrag);
|
|
16829
|
+
document.addEventListener('mouseup', _stopDrag);
|
|
16830
|
+
e.preventDefault();
|
|
16831
|
+
e.stopPropagation();
|
|
16832
|
+
};
|
|
16833
|
+
var onDrag = function onDrag(e) {
|
|
16834
|
+
if (!isDragging) return;
|
|
16835
|
+
var deltaX = e.clientX - startX;
|
|
16836
|
+
var deltaY = e.clientY - startY;
|
|
16837
|
+
var maxX = window.innerWidth - boxWidth;
|
|
16838
|
+
var maxY = window.innerHeight - boxHeight;
|
|
16839
|
+
var newLeft = Math.max(0, Math.min(initialLeft + deltaX, maxX));
|
|
16840
|
+
var newTop = Math.max(0, Math.min(initialTop + deltaY, maxY));
|
|
16841
|
+
|
|
16842
|
+
// 直接更新样式
|
|
16843
|
+
dragDom.style.left = newLeft + 'px';
|
|
16844
|
+
dragDom.style.top = newTop + 'px';
|
|
16845
|
+
|
|
16846
|
+
// 关键:更新 Vue 数据,确保响应式更新
|
|
16847
|
+
updateVueData(newLeft, newTop);
|
|
16848
|
+
};
|
|
16849
|
+
var _stopDrag = function stopDrag() {
|
|
16850
|
+
isDragging = false;
|
|
16851
|
+
dragDom.classList.remove('dragging');
|
|
16852
|
+
document.removeEventListener('mousemove', onDrag);
|
|
16853
|
+
document.removeEventListener('mouseup', _stopDrag);
|
|
16854
|
+
};
|
|
16855
|
+
|
|
16856
|
+
// 更新 Vue 数据的函数
|
|
16857
|
+
var updateVueData = function updateVueData(left, top) {
|
|
16858
|
+
if (!vm) return;
|
|
16859
|
+
|
|
16860
|
+
// 方式1:如果指令有绑定值,使用绑定值作为数据路径
|
|
16861
|
+
if (binding.value) {
|
|
16862
|
+
var dataPath = binding.value;
|
|
16863
|
+
if (vm[dataPath]) {
|
|
16864
|
+
vm[dataPath].left = left + 'px';
|
|
16865
|
+
vm[dataPath].top = top + 'px';
|
|
16866
|
+
}
|
|
16867
|
+
}
|
|
16868
|
+
// 方式2:如果没有绑定值,尝试自动更新常见的样式对象
|
|
16869
|
+
else {
|
|
16870
|
+
// 常见的样式数据属性名
|
|
16871
|
+
var possibleStyleProps = ['bubbleStyle'];
|
|
16872
|
+
for (var _i = 0, _possibleStyleProps = possibleStyleProps; _i < _possibleStyleProps.length; _i++) {
|
|
16873
|
+
var prop = _possibleStyleProps[_i];
|
|
16874
|
+
if (vm[prop] && dragBubble_typeof(vm[prop]) === 'object') {
|
|
16875
|
+
vm.$set(vm[prop], 'left', left + 'px');
|
|
16876
|
+
vm.$set(vm[prop], 'top', top + 'px');
|
|
16877
|
+
break;
|
|
16878
|
+
}
|
|
16879
|
+
}
|
|
16880
|
+
|
|
16881
|
+
// 或者更新独立的 x, y 数据
|
|
16882
|
+
if (vm.x !== undefined) vm.x = left;
|
|
16883
|
+
if (vm.y !== undefined) vm.y = top;
|
|
16884
|
+
}
|
|
16885
|
+
};
|
|
16886
|
+
|
|
16887
|
+
// 确保有定位
|
|
16888
|
+
if (window.getComputedStyle(dragDom).position === 'static') {
|
|
16889
|
+
dragDom.style.position = 'absolute';
|
|
16890
|
+
}
|
|
16891
|
+
dragHeaderEl.style.cursor = 'move';
|
|
16892
|
+
dragHeaderEl.addEventListener('mousedown', startDrag);
|
|
16893
|
+
el._cleanupDrag = function () {
|
|
16894
|
+
dragHeaderEl.removeEventListener('mousedown', startDrag);
|
|
16895
|
+
};
|
|
16896
|
+
},
|
|
16897
|
+
unbind: function unbind(el) {
|
|
16898
|
+
if (el._cleanupDrag) {
|
|
16899
|
+
el._cleanupDrag();
|
|
16900
|
+
}
|
|
16901
|
+
}
|
|
16902
|
+
};
|
|
16903
|
+
/* harmony default export */ var dragBubble = ((/* unused pure expression or super */ null && (DragBubble)));
|
|
16783
16904
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
16784
16905
|
function SpeechRecognitionvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return SpeechRecognitionvue_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; }, SpeechRecognitionvue_type_script_lang_js_typeof(o); }
|
|
16785
16906
|
function SpeechRecognitionvue_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 */ SpeechRecognitionvue_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" == SpeechRecognitionvue_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(SpeechRecognitionvue_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; }
|
|
16907
|
+
function SpeechRecognitionvue_type_script_lang_js_toConsumableArray(r) { return SpeechRecognitionvue_type_script_lang_js_arrayWithoutHoles(r) || SpeechRecognitionvue_type_script_lang_js_iterableToArray(r) || SpeechRecognitionvue_type_script_lang_js_unsupportedIterableToArray(r) || SpeechRecognitionvue_type_script_lang_js_nonIterableSpread(); }
|
|
16908
|
+
function SpeechRecognitionvue_type_script_lang_js_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."); }
|
|
16909
|
+
function SpeechRecognitionvue_type_script_lang_js_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return SpeechRecognitionvue_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) ? SpeechRecognitionvue_type_script_lang_js_arrayLikeToArray(r, a) : void 0; } }
|
|
16910
|
+
function SpeechRecognitionvue_type_script_lang_js_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
16911
|
+
function SpeechRecognitionvue_type_script_lang_js_arrayWithoutHoles(r) { if (Array.isArray(r)) return SpeechRecognitionvue_type_script_lang_js_arrayLikeToArray(r); }
|
|
16912
|
+
function SpeechRecognitionvue_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; }
|
|
16786
16913
|
function SpeechRecognitionvue_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); }
|
|
16787
16914
|
function SpeechRecognitionvue_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) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
16788
16915
|
function SpeechRecognitionvue_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; }
|
|
@@ -16797,10 +16924,12 @@ function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("objec
|
|
|
16797
16924
|
|
|
16798
16925
|
|
|
16799
16926
|
|
|
16927
|
+
|
|
16800
16928
|
var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
16801
16929
|
name: "yx-speech-recognition",
|
|
16802
16930
|
directives: {
|
|
16803
|
-
Drag: Drag
|
|
16931
|
+
Drag: Drag,
|
|
16932
|
+
DragBubble: DragBubble
|
|
16804
16933
|
},
|
|
16805
16934
|
components: {
|
|
16806
16935
|
Message: Message
|
|
@@ -16870,7 +16999,13 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16870
16999
|
bubbleBoxType: "",
|
|
16871
17000
|
bubbleBoxTitle: "",
|
|
16872
17001
|
bubbleBoxBackList: [],
|
|
17002
|
+
tempBoxTitle: "",
|
|
17003
|
+
tempBackList: [],
|
|
17004
|
+
currentPage: 0,
|
|
17005
|
+
pageSize: 5,
|
|
16873
17006
|
bubbleBoxRecommandList: [],
|
|
17007
|
+
leftList: ['上一批', '上一页'],
|
|
17008
|
+
rightList: ['下一批', '下一页', '换一批', '换一页'],
|
|
16874
17009
|
messagesList: [],
|
|
16875
17010
|
voiecContent: "",
|
|
16876
17011
|
sessionId: guid(),
|
|
@@ -16955,6 +17090,15 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
16955
17090
|
},
|
|
16956
17091
|
immediate: true,
|
|
16957
17092
|
deep: true
|
|
17093
|
+
},
|
|
17094
|
+
imgPosition: {
|
|
17095
|
+
handler: function handler(val) {
|
|
17096
|
+
if (Object.keys(val)) {
|
|
17097
|
+
this.bubbleStyle = val;
|
|
17098
|
+
}
|
|
17099
|
+
},
|
|
17100
|
+
immediate: true,
|
|
17101
|
+
deep: true
|
|
16958
17102
|
}
|
|
16959
17103
|
},
|
|
16960
17104
|
methods: {
|
|
@@ -17032,7 +17176,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17032
17176
|
var type = messages.type,
|
|
17033
17177
|
content = messages.content,
|
|
17034
17178
|
back_list = messages.back_list,
|
|
17035
|
-
recommand_list = messages.recommand_list
|
|
17179
|
+
recommand_list = messages.recommand_list,
|
|
17180
|
+
_messages$resetPage = messages.resetPage,
|
|
17181
|
+
resetPage = _messages$resetPage === void 0 ? true : _messages$resetPage;
|
|
17036
17182
|
var _messages = this.messagesList.find(function (item) {
|
|
17037
17183
|
return item.sentenceId == res.sentenceId;
|
|
17038
17184
|
});
|
|
@@ -17043,7 +17189,12 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17043
17189
|
recommandList: recommand_list
|
|
17044
17190
|
}));
|
|
17045
17191
|
}
|
|
17192
|
+
if (type == 'FROM') this.tempBoxTitle = content;
|
|
17046
17193
|
this.bubbleBoxBackList = back_list || [];
|
|
17194
|
+
if (this.bubbleBoxBackList.length) {
|
|
17195
|
+
this.tempBackList = this.bubbleBoxBackList;
|
|
17196
|
+
resetPage && (this.currentPage = 0);
|
|
17197
|
+
}
|
|
17047
17198
|
this.bubbleBoxRecommandList = recommand_list || [];
|
|
17048
17199
|
this.scrollMessageBox();
|
|
17049
17200
|
this.bubbleBoxType = type;
|
|
@@ -17053,7 +17204,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17053
17204
|
updateSession: function updateSession(opt) {
|
|
17054
17205
|
var _this3 = this;
|
|
17055
17206
|
return SpeechRecognitionvue_type_script_lang_js_asyncToGenerator(/*#__PURE__*/SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
17056
|
-
var messages, res, type, content, back_list, recommand_list, _messages, voice_id, session_id, sentenceId, formData, _res, code, msg, obj, _content, standard_back, command_type,
|
|
17207
|
+
var messages, res, type, content, back_list, recommand_list, _messages, totalList, tempObj, _opts, voice_id, session_id, sentenceId, formData, _res, code, msg, obj, _content, standard_back, command_type, _opts2, _error$message, _error$message2;
|
|
17057
17208
|
return SpeechRecognitionvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17058
17209
|
while (1) switch (_context.prev = _context.next) {
|
|
17059
17210
|
case 0:
|
|
@@ -17074,8 +17225,42 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17074
17225
|
_this3.scrollMessageBox();
|
|
17075
17226
|
_this3.bubbleBoxType = type;
|
|
17076
17227
|
_this3.bubbleBoxTitle = content;
|
|
17228
|
+
totalList = [].concat(SpeechRecognitionvue_type_script_lang_js_toConsumableArray(_this3.leftList), SpeechRecognitionvue_type_script_lang_js_toConsumableArray(_this3.rightList));
|
|
17229
|
+
tempObj = content.endsWith("。") ? content.slice(0, -1) : content;
|
|
17230
|
+
if (!(type === "TO" && res.result.slice_type === 2 && totalList.includes(tempObj) && _this3.tempBackList.length > _this3.pageSize)) {
|
|
17231
|
+
_context.next = 18;
|
|
17232
|
+
break;
|
|
17233
|
+
}
|
|
17234
|
+
_this3.oneQuestionOneAnswer = false;
|
|
17235
|
+
if (_this3.leftList.includes(tempObj)) {
|
|
17236
|
+
//上一页
|
|
17237
|
+
_this3.handleChange(0);
|
|
17238
|
+
} else if (_this3.rightList.includes(tempObj)) {
|
|
17239
|
+
// 下一页
|
|
17240
|
+
_this3.handleChange(1);
|
|
17241
|
+
}
|
|
17242
|
+
_opts = {
|
|
17243
|
+
res: {},
|
|
17244
|
+
messages: {
|
|
17245
|
+
type: "FROM",
|
|
17246
|
+
content: _this3.tempBoxTitle,
|
|
17247
|
+
back_list: _this3.tempBackList,
|
|
17248
|
+
resetPage: false
|
|
17249
|
+
},
|
|
17250
|
+
sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17251
|
+
}; // this.pushMessage(_opts)
|
|
17252
|
+
// this.oneQuestionOneAnswer = true
|
|
17253
|
+
_this3.handlePlayTTS({
|
|
17254
|
+
content: _this3.tempBoxTitle,
|
|
17255
|
+
onStart: function onStart() {
|
|
17256
|
+
_this3.pushMessage(_opts);
|
|
17257
|
+
}
|
|
17258
|
+
});
|
|
17259
|
+
_context.next = 57;
|
|
17260
|
+
break;
|
|
17261
|
+
case 18:
|
|
17077
17262
|
if (!(type === "TO" && res.result.slice_type === 2)) {
|
|
17078
|
-
_context.next =
|
|
17263
|
+
_context.next = 56;
|
|
17079
17264
|
break;
|
|
17080
17265
|
}
|
|
17081
17266
|
_this3.getSystem();
|
|
@@ -17091,36 +17276,36 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17091
17276
|
client_id: _this3.clientId
|
|
17092
17277
|
};
|
|
17093
17278
|
_this3.oneQuestionOneAnswer = false;
|
|
17094
|
-
_context.prev =
|
|
17095
|
-
_context.next =
|
|
17279
|
+
_context.prev = 23;
|
|
17280
|
+
_context.next = 26;
|
|
17096
17281
|
return Tx.speech2speech2(formData);
|
|
17097
|
-
case
|
|
17282
|
+
case 26:
|
|
17098
17283
|
_res = _context.sent;
|
|
17099
17284
|
code = _res.code, msg = _res.msg, obj = _res.obj;
|
|
17100
17285
|
if (!(code == 200)) {
|
|
17101
|
-
_context.next =
|
|
17286
|
+
_context.next = 43;
|
|
17102
17287
|
break;
|
|
17103
17288
|
}
|
|
17104
17289
|
_content = "";
|
|
17105
17290
|
standard_back = obj.standard_back, command_type = obj.command_type;
|
|
17106
17291
|
if (!(Object.keys(obj).length > 0)) {
|
|
17107
|
-
_context.next =
|
|
17292
|
+
_context.next = 37;
|
|
17108
17293
|
break;
|
|
17109
17294
|
}
|
|
17110
17295
|
_content = standard_back || "抱歉,我还在学习中";
|
|
17111
17296
|
if (!(command_type === "地理实体页面定位" && _content != "抱歉,我还在学习中")) {
|
|
17112
|
-
_context.next =
|
|
17297
|
+
_context.next = 35;
|
|
17113
17298
|
break;
|
|
17114
17299
|
}
|
|
17115
17300
|
return _context.abrupt("return");
|
|
17116
|
-
case
|
|
17117
|
-
_context.next =
|
|
17301
|
+
case 35:
|
|
17302
|
+
_context.next = 38;
|
|
17118
17303
|
break;
|
|
17119
|
-
case
|
|
17304
|
+
case 37:
|
|
17120
17305
|
_content = "抱歉,我还在学习中";
|
|
17121
|
-
case
|
|
17306
|
+
case 38:
|
|
17122
17307
|
_this3.voiecContent = obj;
|
|
17123
|
-
|
|
17308
|
+
_opts2 = {
|
|
17124
17309
|
res: {},
|
|
17125
17310
|
messages: {
|
|
17126
17311
|
type: "FROM",
|
|
@@ -17131,7 +17316,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17131
17316
|
_this3.handlePlayTTS({
|
|
17132
17317
|
content: _content,
|
|
17133
17318
|
onStart: function onStart() {
|
|
17134
|
-
_this3.pushMessage(
|
|
17319
|
+
_this3.pushMessage(_opts2);
|
|
17135
17320
|
}
|
|
17136
17321
|
});
|
|
17137
17322
|
// this.openAide()
|
|
@@ -17140,9 +17325,9 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17140
17325
|
// messages: { type: "FROM", content: _content },
|
|
17141
17326
|
// sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
17142
17327
|
// });
|
|
17143
|
-
_context.next =
|
|
17328
|
+
_context.next = 44;
|
|
17144
17329
|
break;
|
|
17145
|
-
case
|
|
17330
|
+
case 43:
|
|
17146
17331
|
if (code === 504) {
|
|
17147
17332
|
_this3.timeOutContent();
|
|
17148
17333
|
} else if (code === 300) {
|
|
@@ -17151,12 +17336,12 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17151
17336
|
// this.timeOutContent()
|
|
17152
17337
|
// this.startWaitAnswer()
|
|
17153
17338
|
}
|
|
17154
|
-
case
|
|
17155
|
-
_context.next =
|
|
17339
|
+
case 44:
|
|
17340
|
+
_context.next = 52;
|
|
17156
17341
|
break;
|
|
17157
|
-
case
|
|
17158
|
-
_context.prev =
|
|
17159
|
-
_context.t0 = _context["catch"](
|
|
17342
|
+
case 46:
|
|
17343
|
+
_context.prev = 46;
|
|
17344
|
+
_context.t0 = _context["catch"](23);
|
|
17160
17345
|
console.log("speech2speech2 ->", _context.t0);
|
|
17161
17346
|
console.log(_context.t0.message);
|
|
17162
17347
|
console.log(_context.t0 === null || _context.t0 === void 0 || (_error$message = _context.t0.message) === null || _error$message === void 0 ? void 0 : _error$message.includes("timeout"));
|
|
@@ -17166,27 +17351,37 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17166
17351
|
} else {
|
|
17167
17352
|
_this3.oneQuestionOneAnswer = true;
|
|
17168
17353
|
}
|
|
17169
|
-
case
|
|
17170
|
-
_context.prev =
|
|
17171
|
-
return _context.finish(
|
|
17172
|
-
case
|
|
17173
|
-
_context.next =
|
|
17354
|
+
case 52:
|
|
17355
|
+
_context.prev = 52;
|
|
17356
|
+
return _context.finish(52);
|
|
17357
|
+
case 54:
|
|
17358
|
+
_context.next = 57;
|
|
17174
17359
|
break;
|
|
17175
|
-
case
|
|
17360
|
+
case 56:
|
|
17176
17361
|
if (type === "FROM") {
|
|
17177
17362
|
_this3.handlePlayTTS({
|
|
17178
17363
|
content: content
|
|
17179
17364
|
});
|
|
17180
17365
|
}
|
|
17181
|
-
case
|
|
17366
|
+
case 57:
|
|
17182
17367
|
_this3.wakeUpTime = new Date().getTime();
|
|
17183
|
-
case
|
|
17368
|
+
case 58:
|
|
17184
17369
|
case "end":
|
|
17185
17370
|
return _context.stop();
|
|
17186
17371
|
}
|
|
17187
|
-
}, _callee, null, [[
|
|
17372
|
+
}, _callee, null, [[23, 46, 52, 54]]);
|
|
17188
17373
|
}))();
|
|
17189
17374
|
},
|
|
17375
|
+
handleChange: function handleChange(type) {
|
|
17376
|
+
var page = this.currentPage;
|
|
17377
|
+
if (type == 1) {
|
|
17378
|
+
page += 1;
|
|
17379
|
+
} else if (type == 0) {
|
|
17380
|
+
page -= 1;
|
|
17381
|
+
}
|
|
17382
|
+
if (page * this.pageSize > this.tempBackList.length || page <= 0) page = 0;
|
|
17383
|
+
this.currentPage = page;
|
|
17384
|
+
},
|
|
17190
17385
|
timeOutContent: function timeOutContent() {
|
|
17191
17386
|
var _this4 = this;
|
|
17192
17387
|
this.isWaitAnswer = true;
|
|
@@ -17243,6 +17438,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17243
17438
|
_this6.exitAide();
|
|
17244
17439
|
_this6.bubbleBoxTitle = "";
|
|
17245
17440
|
_this6.bubbleBoxType = "";
|
|
17441
|
+
_this6.tempBoxTitle = "";
|
|
17442
|
+
_this6.tempBackList = [];
|
|
17246
17443
|
}, 1000);
|
|
17247
17444
|
}
|
|
17248
17445
|
});
|
|
@@ -17253,6 +17450,8 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17253
17450
|
this.bubbleBoxTitle = "";
|
|
17254
17451
|
this.bubbleBoxType = "";
|
|
17255
17452
|
this.updateSessionId();
|
|
17453
|
+
this.tempBoxTitle = "";
|
|
17454
|
+
this.tempBackList = [];
|
|
17256
17455
|
// this.onStop()
|
|
17257
17456
|
},
|
|
17258
17457
|
// 语音播放
|
|
@@ -17553,12 +17752,17 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17553
17752
|
//发送指令
|
|
17554
17753
|
this.voiecContent = data.obj;
|
|
17555
17754
|
if (standard_back) {
|
|
17755
|
+
var _back_list = (back_list === null || back_list === void 0 ? void 0 : back_list.map(function (item, index) {
|
|
17756
|
+
return SpeechRecognitionvue_type_script_lang_js_objectSpread(SpeechRecognitionvue_type_script_lang_js_objectSpread({}, item), {}, {
|
|
17757
|
+
index: index
|
|
17758
|
+
});
|
|
17759
|
+
})) || [];
|
|
17556
17760
|
var _opts = {
|
|
17557
17761
|
res: {},
|
|
17558
17762
|
messages: {
|
|
17559
17763
|
type: "FROM",
|
|
17560
17764
|
content: standard_back,
|
|
17561
|
-
back_list:
|
|
17765
|
+
back_list: _back_list || [],
|
|
17562
17766
|
recommand_list: recommand_list || []
|
|
17563
17767
|
},
|
|
17564
17768
|
sentenceId: Math.floor(Math.random() * 1000000).toString()
|
|
@@ -17747,7 +17951,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
|
|
|
17747
17951
|
var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
|
|
17748
17952
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
|
|
17749
17953
|
return {
|
|
17750
|
-
"
|
|
17954
|
+
"05f90279": _vm.htmlFontSize
|
|
17751
17955
|
};
|
|
17752
17956
|
});
|
|
17753
17957
|
};
|
|
@@ -17759,9 +17963,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
|
|
|
17759
17963
|
/* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
|
|
17760
17964
|
;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17761
17965
|
/* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
|
|
17762
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17763
|
-
var
|
|
17764
|
-
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=
|
|
17966
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=4d58385e&prod&lang=scss&scoped=true
|
|
17967
|
+
var SpeechRecognitionvue_type_style_index_0_id_4d58385e_prod_lang_scss_scoped_true = __webpack_require__(59);
|
|
17968
|
+
;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=4d58385e&prod&lang=scss&scoped=true
|
|
17765
17969
|
|
|
17766
17970
|
;// ./package/SpeechRecognition/index.vue
|
|
17767
17971
|
|
|
@@ -17778,7 +17982,7 @@ var SpeechRecognition_component = normalizeComponent(
|
|
|
17778
17982
|
staticRenderFns,
|
|
17779
17983
|
false,
|
|
17780
17984
|
null,
|
|
17781
|
-
"
|
|
17985
|
+
"4d58385e",
|
|
17782
17986
|
null
|
|
17783
17987
|
|
|
17784
17988
|
)
|