yxspeechrecognition 1.5.0 → 1.5.1

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.
@@ -11,24 +11,19 @@
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 211:
15
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
-
17
- "use strict";
18
- __webpack_require__.r(__webpack_exports__);
19
- /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
20
- /* 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__);
21
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
22
- /* 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__);
23
- // Imports
24
-
14
+ /***/ 232:
15
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25
16
 
26
- 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()));
27
- // Module
28
- ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-789c2ef2]{position:absolute;right:calc(var(--b882b34a)*81.43);top:calc(var(--b882b34a)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-789c2ef2] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-789c2ef2]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--b882b34a)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-789c2ef2]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--b882b34a)*2.29);padding:0 calc(var(--b882b34a)*.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(--b882b34a)*.57) calc(var(--b882b34a)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-789c2ef2]{display:flex;align-items:center;gap:calc(var(--b882b34a)*.38)}.yx-speech-recognition .box .title-icon img[data-v-789c2ef2]{width:calc(var(--b882b34a)*1);height:calc(var(--b882b34a)*1)}.yx-speech-recognition .box .title-icon span[data-v-789c2ef2]{font-size:calc(var(--b882b34a)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-789c2ef2]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-789c2ef2]{width:calc(var(--b882b34a)*1.1)}.yx-speech-recognition .box .content[data-v-789c2ef2]{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-789c2ef2]{margin-top:calc(var(--b882b34a)*7.5);font-size:calc(var(--b882b34a)*1)}.yx-speech-recognition .box .message-list[data-v-789c2ef2]{overflow:hidden;padding:calc(var(--b882b34a)*.58);box-sizing:border-box;padding-right:calc(var(--b882b34a)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-789c2ef2]{height:100%;display:flex;flex-direction:column;gap:calc(var(--b882b34a)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-789c2ef2]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-789c2ef2]{width:calc(var(--b882b34a)*3.76);height:calc(var(--b882b34a)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-789c2ef2]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-789c2ef2]{position:absolute;top:0;left:calc(var(--b882b34a)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-789c2ef2]{display:block;max-width:calc(var(--b882b34a)*19.21);font-size:calc(var(--b882b34a)*1);color:#fff;padding:calc(var(--b882b34a)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-789c2ef2]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--b882b34a)*.57) 0 #d4d9ff;border-radius:calc(var(--b882b34a)*.27);margin-left:calc(var(--b882b34a)*.49);word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-789c2ef2]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-789c2ef2]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-789c2ef2]:before{border-top:calc(var(--b882b34a)*.25) solid transparent;border-bottom:calc(var(--b882b34a)*.25) solid transparent;border-right:calc(var(--b882b34a)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--b882b34a)*-.46));left:0;top:calc(var(--b882b34a)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-789c2ef2]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--b882b34a)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-789c2ef2]:before{border-right:calc(var(--b882b34a)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-789c2ef2]:after{border-top:calc(var(--b882b34a)*.25) solid transparent;border-bottom:calc(var(--b882b34a)*.25) solid transparent;border-right:calc(var(--b882b34a)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--b882b34a)*-.46));left:0;top:calc(var(--b882b34a)*.48)}", ""]);
29
- // Exports
30
- /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
17
+ // style-loader: Adds some css to the DOM by adding a <style> tag
31
18
 
19
+ // load the styles
20
+ var content = __webpack_require__(476);
21
+ if(content.__esModule) content = content.default;
22
+ if(typeof content === 'string') content = [[module.id, content, '']];
23
+ if(content.locals) module.exports = content.locals;
24
+ // add the styles to the DOM
25
+ var add = (__webpack_require__(258)/* ["default"] */ .A)
26
+ var update = add("4bc9a9a2", content, true, {"sourceMap":false,"shadowMode":false});
32
27
 
33
28
  /***/ }),
34
29
 
@@ -406,6 +401,27 @@ module.exports = function (cssWithMappingToString) {
406
401
  "use strict";
407
402
  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=";
408
403
 
404
+ /***/ }),
405
+
406
+ /***/ 476:
407
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
408
+
409
+ "use strict";
410
+ __webpack_require__.r(__webpack_exports__);
411
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
412
+ /* 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__);
413
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
414
+ /* 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__);
415
+ // Imports
416
+
417
+
418
+ 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()));
419
+ // Module
420
+ ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-2d7ca1c4]{position:absolute;right:calc(var(--4e5d5650)*81.43);top:calc(var(--4e5d5650)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-2d7ca1c4] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-2d7ca1c4]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--4e5d5650)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-2d7ca1c4]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--4e5d5650)*2.29);padding:0 calc(var(--4e5d5650)*.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(--4e5d5650)*.57) calc(var(--4e5d5650)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-2d7ca1c4]{display:flex;align-items:center;gap:calc(var(--4e5d5650)*.38)}.yx-speech-recognition .box .title-icon img[data-v-2d7ca1c4]{width:calc(var(--4e5d5650)*1);height:calc(var(--4e5d5650)*1)}.yx-speech-recognition .box .title-icon span[data-v-2d7ca1c4]{font-size:calc(var(--4e5d5650)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-2d7ca1c4]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-2d7ca1c4]{width:calc(var(--4e5d5650)*1.1)}.yx-speech-recognition .box .content[data-v-2d7ca1c4]{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-2d7ca1c4]{margin-top:calc(var(--4e5d5650)*7.5);font-size:calc(var(--4e5d5650)*1)}.yx-speech-recognition .box .message-list[data-v-2d7ca1c4]{overflow:hidden;padding:calc(var(--4e5d5650)*.58);box-sizing:border-box;padding-right:calc(var(--4e5d5650)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-2d7ca1c4]{height:100%;display:flex;flex-direction:column;gap:calc(var(--4e5d5650)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-2d7ca1c4]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-2d7ca1c4]{width:calc(var(--4e5d5650)*3.76);height:calc(var(--4e5d5650)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-2d7ca1c4]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-2d7ca1c4]{position:absolute;top:0;left:calc(var(--4e5d5650)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-2d7ca1c4]{display:block;max-width:calc(var(--4e5d5650)*19.21);font-size:calc(var(--4e5d5650)*1);color:#fff;padding:calc(var(--4e5d5650)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--4e5d5650)*.57) 0 #d4d9ff;border-radius:calc(var(--4e5d5650)*.27);margin-left:calc(var(--4e5d5650)*.49);word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-2d7ca1c4]:before{border-top:calc(var(--4e5d5650)*.25) solid transparent;border-bottom:calc(var(--4e5d5650)*.25) solid transparent;border-right:calc(var(--4e5d5650)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--4e5d5650)*-.46));left:0;top:calc(var(--4e5d5650)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-2d7ca1c4]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--4e5d5650)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-2d7ca1c4]:before{border-right:calc(var(--4e5d5650)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-2d7ca1c4]:after{border-top:calc(var(--4e5d5650)*.25) solid transparent;border-bottom:calc(var(--4e5d5650)*.25) solid transparent;border-right:calc(var(--4e5d5650)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--4e5d5650)*-.46));left:0;top:calc(var(--4e5d5650)*.48)}", ""]);
421
+ // Exports
422
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
423
+
424
+
409
425
  /***/ }),
410
426
 
411
427
  /***/ 601:
@@ -439,22 +455,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".message-wrapper[data-v-64bd834c]{disp
439
455
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
440
456
 
441
457
 
442
- /***/ }),
443
-
444
- /***/ 687:
445
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
446
-
447
- // style-loader: Adds some css to the DOM by adding a <style> tag
448
-
449
- // load the styles
450
- var content = __webpack_require__(211);
451
- if(content.__esModule) content = content.default;
452
- if(typeof content === 'string') content = [[module.id, content, '']];
453
- if(content.locals) module.exports = content.locals;
454
- // add the styles to the DOM
455
- var add = (__webpack_require__(258)/* ["default"] */ .A)
456
- var update = add("0d43d984", content, true, {"sourceMap":false,"shadowMode":false});
457
-
458
458
  /***/ }),
459
459
 
460
460
  /***/ 751:
@@ -880,7 +880,7 @@ if (typeof window !== 'undefined') {
880
880
  // Indicate to webpack that this file can be concatenated
881
881
  /* harmony default export */ var setPublicPath = (null);
882
882
 
883
- ;// ./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=789c2ef2&scoped=true
883
+ ;// ./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=2d7ca1c4&scoped=true
884
884
  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); }
885
885
  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; }
886
886
  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; }
@@ -893,12 +893,16 @@ var render = function render() {
893
893
  return _c('div', {
894
894
  staticClass: "yx-speech-recognition"
895
895
  }, [_vm.boxShow ? _c('div', {
896
+ directives: [{
897
+ name: "Drag",
898
+ rawName: "v-Drag"
899
+ }],
896
900
  staticClass: "box",
897
- style: _objectSpread(_objectSpread({}, _vm.boxPosition), _vm.boxSize)
901
+ style: _objectSpread(_objectSpread({}, _vm.windowStyle), _vm.boxSize)
898
902
  }, [_c('div', {
899
- staticClass: "title"
903
+ staticClass: "title drag-header"
900
904
  }, [_vm._m(0), _c('span', {
901
- staticClass: "iconfont icon-close close",
905
+ staticClass: "iconfont icon-close close closeBtn",
902
906
  on: {
903
907
  "click": _vm.closeClick
904
908
  }
@@ -957,7 +961,7 @@ var staticRenderFns = [function () {
957
961
  }), _c('span', [_vm._v("小安助手")])]);
958
962
  }];
959
963
 
960
- ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=789c2ef2&scoped=true
964
+ ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=2d7ca1c4&scoped=true
961
965
 
962
966
  // EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
963
967
  var cryptojs = __webpack_require__(950);
@@ -1219,7 +1223,7 @@ var NewCredential = /*#__PURE__*/function () {
1219
1223
  key: "formatSignString",
1220
1224
  value: function formatSignString(params) {
1221
1225
  var strParam = '';
1222
- var signStr = '10.97.36.102:9090/realtime_asr_ws_private';
1226
+ var signStr = 'ws://10.97.36.102:9090/realtime_asr_ws_private';
1223
1227
  // let signStr = 'asr.cloud.tencent.com/asr/v2/'
1224
1228
  // let signStr = "aiasr.baoan.gov.cn:9191/realtime_asr_ws_private";
1225
1229
  if (this.config['appid']) {
@@ -1454,7 +1458,7 @@ var SpeechRecognizer = /*#__PURE__*/function () {
1454
1458
  break;
1455
1459
  }
1456
1460
  // const wsUrl = `${servicepath}?${urlParams.toString()}`;
1457
- this.socket = new WebSocket("ws://".concat(url));
1461
+ this.socket = new WebSocket("".concat(url));
1458
1462
  // this.socket = new WebSocket('ws://10.97.36.102:9090/realtime_asr_ws_private')
1459
1463
  // this.socket = new _WebSocket(servicepath,
1460
1464
  // {
@@ -16515,6 +16519,118 @@ var onQuit = function onQuit(opt) {
16515
16519
  // }
16516
16520
 
16517
16521
  // export { wakeUpState, wakeUpState as default }
16522
+ ;// ./package/SpeechRecognition/directive/drag.js
16523
+ function drag_typeof(o) { "@babel/helpers - typeof"; return drag_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, drag_typeof(o); }
16524
+ var Drag = {
16525
+ bind: function bind(el, binding, vnode) {
16526
+ var dragDom = el.querySelector('.drag-box') || el;
16527
+ var dragHeaderEl = el.querySelector('.drag-header') || el.querySelector('.header');
16528
+ if (!dragHeaderEl) {
16529
+ console.warn('未找到拖拽头部元素');
16530
+ return;
16531
+ }
16532
+ var boxWidth = dragDom.style.width.replace('px', '');
16533
+ var boxHeight = dragDom.style.height.replace('px', '');
16534
+ var isDragging = false;
16535
+ var startX = 0,
16536
+ startY = 0,
16537
+ initialLeft = 0,
16538
+ initialTop = 0;
16539
+ var vm = vnode.context;
16540
+ var startDrag = function startDrag(e) {
16541
+ // 鼠标按下,计算当前元素距离可视区的距离 (鼠标点击位置距离可视窗口的距离)
16542
+ if (e.target.closest('.closeBtn')) return;
16543
+ if (e.button != 0) return;
16544
+ isDragging = true;
16545
+
16546
+ // 获取当前实际位置
16547
+ var rect = dragDom.getBoundingClientRect();
16548
+ // const containerRect = dragDom.parentElement.getBoundingClientRect()
16549
+
16550
+ initialLeft = rect.left;
16551
+ initialTop = rect.top;
16552
+ // initialLeft = rect.left - containerRect.left
16553
+ // initialTop = rect.top - containerRect.top
16554
+
16555
+ startX = e.clientX;
16556
+ startY = e.clientY;
16557
+ dragDom.classList.add('dragging');
16558
+ document.addEventListener('mousemove', onDrag);
16559
+ document.addEventListener('mouseup', _stopDrag);
16560
+ e.preventDefault();
16561
+ e.stopPropagation();
16562
+ };
16563
+ var onDrag = function onDrag(e) {
16564
+ if (!isDragging) return;
16565
+ var deltaX = e.clientX - startX;
16566
+ var deltaY = e.clientY - startY;
16567
+ var maxX = window.innerWidth - boxWidth;
16568
+ var maxY = window.innerHeight - boxHeight;
16569
+ var newLeft = Math.max(0, Math.min(initialLeft + deltaX, maxX));
16570
+ var newTop = Math.max(0, Math.min(initialTop + deltaY, maxY));
16571
+
16572
+ // 直接更新样式
16573
+ dragDom.style.left = newLeft + 'px';
16574
+ dragDom.style.top = newTop + 'px';
16575
+
16576
+ // 关键:更新 Vue 数据,确保响应式更新
16577
+ updateVueData(newLeft, newTop);
16578
+ };
16579
+ var _stopDrag = function stopDrag() {
16580
+ isDragging = false;
16581
+ dragDom.classList.remove('dragging');
16582
+ document.removeEventListener('mousemove', onDrag);
16583
+ document.removeEventListener('mouseup', _stopDrag);
16584
+ };
16585
+
16586
+ // 更新 Vue 数据的函数
16587
+ var updateVueData = function updateVueData(left, top) {
16588
+ if (!vm) return;
16589
+
16590
+ // 方式1:如果指令有绑定值,使用绑定值作为数据路径
16591
+ if (binding.value) {
16592
+ var dataPath = binding.value;
16593
+ if (vm[dataPath]) {
16594
+ vm[dataPath].left = left + 'px';
16595
+ vm[dataPath].top = top + 'px';
16596
+ }
16597
+ }
16598
+ // 方式2:如果没有绑定值,尝试自动更新常见的样式对象
16599
+ else {
16600
+ // 常见的样式数据属性名
16601
+ var possibleStyleProps = ['style', 'windowStyle', 'dragStyle', 'position', 'pos'];
16602
+ for (var _i = 0, _possibleStyleProps = possibleStyleProps; _i < _possibleStyleProps.length; _i++) {
16603
+ var prop = _possibleStyleProps[_i];
16604
+ if (vm[prop] && drag_typeof(vm[prop]) === 'object') {
16605
+ vm.$set(vm[prop], 'left', left + 'px');
16606
+ vm.$set(vm[prop], 'top', top + 'px');
16607
+ break;
16608
+ }
16609
+ }
16610
+
16611
+ // 或者更新独立的 x, y 数据
16612
+ if (vm.x !== undefined) vm.x = left;
16613
+ if (vm.y !== undefined) vm.y = top;
16614
+ }
16615
+ };
16616
+
16617
+ // 确保有定位
16618
+ if (window.getComputedStyle(dragDom).position === 'static') {
16619
+ dragDom.style.position = 'absolute';
16620
+ }
16621
+ dragHeaderEl.style.cursor = 'move';
16622
+ dragHeaderEl.addEventListener('mousedown', startDrag);
16623
+ el._cleanupDrag = function () {
16624
+ dragHeaderEl.removeEventListener('mousedown', startDrag);
16625
+ };
16626
+ },
16627
+ unbind: function unbind(el) {
16628
+ if (el._cleanupDrag) {
16629
+ el._cleanupDrag();
16630
+ }
16631
+ }
16632
+ };
16633
+ /* harmony default export */ var drag = ((/* unused pure expression or super */ null && (Drag)));
16518
16634
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=script&lang=js
16519
16635
  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); }
16520
16636
  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; }
@@ -16531,8 +16647,12 @@ function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("objec
16531
16647
 
16532
16648
 
16533
16649
 
16650
+
16534
16651
  var SpeechRecognitionvue_type_script_lang_js_default_ = {
16535
16652
  name: "yx-speech-recognition",
16653
+ directives: {
16654
+ Drag: Drag
16655
+ },
16536
16656
  components: {
16537
16657
  Message: Message
16538
16658
  },
@@ -16575,6 +16695,10 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16575
16695
  },
16576
16696
  data: function data() {
16577
16697
  return {
16698
+ windowStyle: {
16699
+ left: "100px",
16700
+ top: "400px"
16701
+ },
16578
16702
  systemId: "msq_dp_a7x9",
16579
16703
  webSocketId: guid(),
16580
16704
  oneQuestionOneAnswer: true,
@@ -16646,6 +16770,14 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16646
16770
  _this.autoQuitAssistant();
16647
16771
  }, 1000 * 60);
16648
16772
  }
16773
+ },
16774
+ boxPosition: {
16775
+ handler: function handler(val) {
16776
+ if (Object.keys(val)) {
16777
+ this.windowStyle = val;
16778
+ }
16779
+ },
16780
+ deep: true
16649
16781
  }
16650
16782
  },
16651
16783
  methods: {
@@ -17122,7 +17254,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17122
17254
  var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
17123
17255
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
17124
17256
  return {
17125
- "b882b34a": _vm.htmlFontSize
17257
+ "4e5d5650": _vm.htmlFontSize
17126
17258
  };
17127
17259
  });
17128
17260
  };
@@ -17134,9 +17266,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
17134
17266
  /* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
17135
17267
  ;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
17136
17268
  /* harmony default export */ var package_SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js);
17137
- // 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=789c2ef2&prod&lang=scss&scoped=true
17138
- var SpeechRecognitionvue_type_style_index_0_id_789c2ef2_prod_lang_scss_scoped_true = __webpack_require__(687);
17139
- ;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=789c2ef2&prod&lang=scss&scoped=true
17269
+ // 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=2d7ca1c4&prod&lang=scss&scoped=true
17270
+ var SpeechRecognitionvue_type_style_index_0_id_2d7ca1c4_prod_lang_scss_scoped_true = __webpack_require__(232);
17271
+ ;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=2d7ca1c4&prod&lang=scss&scoped=true
17140
17272
 
17141
17273
  ;// ./package/SpeechRecognition/index.vue
17142
17274
 
@@ -17153,7 +17285,7 @@ var SpeechRecognition_component = normalizeComponent(
17153
17285
  staticRenderFns,
17154
17286
  false,
17155
17287
  null,
17156
- "789c2ef2",
17288
+ "2d7ca1c4",
17157
17289
  null
17158
17290
 
17159
17291
  )