yxspeechrecognition 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,27 +11,6 @@
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
-
25
-
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___);
31
-
32
-
33
- /***/ }),
34
-
35
14
  /***/ 258:
36
15
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
37
16
 
@@ -408,6 +387,35 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADy
408
387
 
409
388
  /***/ }),
410
389
 
390
+ /***/ 435:
391
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
392
+
393
+ "use strict";
394
+ __webpack_require__.r(__webpack_exports__);
395
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
396
+ /* 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__);
397
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
398
+ /* 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__);
399
+ // Imports
400
+
401
+
402
+ 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()));
403
+ // Module
404
+ ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-a292773e]{position:absolute;right:calc(var(--292167ed)*81.43);top:calc(var(--292167ed)*6.67);pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .box[data-v-a292773e] ::-webkit-scrollbar{width:0;height:0;display:none;background:transparent}.yx-speech-recognition .box[data-v-a292773e]{display:grid;grid-template-rows:max-content 1fr;position:absolute;pointer-events:all;background:rgba(2,11,72,.6);border-radius:calc(var(--292167ed)*.57);z-index:20}.yx-speech-recognition .box .title[data-v-a292773e]{display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(var(--292167ed)*2.29);padding:0 calc(var(--292167ed)*.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(--292167ed)*.57) calc(var(--292167ed)*.57) 0 0}.yx-speech-recognition .box .title-icon[data-v-a292773e]{display:flex;align-items:center;gap:calc(var(--292167ed)*.38)}.yx-speech-recognition .box .title-icon img[data-v-a292773e]{width:calc(var(--292167ed)*1);height:calc(var(--292167ed)*1)}.yx-speech-recognition .box .title-icon span[data-v-a292773e]{font-size:calc(var(--292167ed)*1.14);font-weight:800;color:#fff}.yx-speech-recognition .box .title .close[data-v-a292773e]{cursor:pointer}.yx-speech-recognition .box .title .close img[data-v-a292773e]{width:calc(var(--292167ed)*1.1)}.yx-speech-recognition .box .content[data-v-a292773e]{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-a292773e]{margin-top:calc(var(--292167ed)*7.5);font-size:calc(var(--292167ed)*1)}.yx-speech-recognition .box .message-list[data-v-a292773e]{overflow:hidden;padding:calc(var(--292167ed)*.58);box-sizing:border-box;padding-right:calc(var(--292167ed)*.29)}.yx-speech-recognition .box .message-list-inner[data-v-a292773e]{height:100%;display:flex;flex-direction:column;gap:calc(var(--292167ed)*.53);overflow-y:overlay;white-space:pre-line}.yx-speech-recognition .displayAssistant[data-v-a292773e]{position:absolute;pointer-events:all;cursor:pointer;z-index:20}.yx-speech-recognition .displayAssistant .icon1[data-v-a292773e]{width:calc(var(--292167ed)*3.76);height:calc(var(--292167ed)*3.88)}.yx-speech-recognition .displayAssistant .icon1 img[data-v-a292773e]{width:100%;height:100%}.yx-speech-recognition .displayAssistant .bubbleBox[data-v-a292773e]{position:absolute;top:0;left:calc(var(--292167ed)*3.76)}.yx-speech-recognition .displayAssistant .bubbleBox span[data-v-a292773e]{display:block;max-width:calc(var(--292167ed)*19.21);font-size:calc(var(--292167ed)*1);color:#fff;padding:calc(var(--292167ed)*.38);box-sizing:border-box}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]{position:fixed;background-color:rgba(70,61,255,.85);box-shadow:inset 0 0 calc(var(--292167ed)*.57) 0 #d4d9ff;border-radius:calc(var(--292167ed)*.27);margin-left:calc(var(--292167ed)*.49);word-break:break-all;white-space:pre-line}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]:after,.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]:before{content:\"\";display:block;position:absolute}.yx-speech-recognition .displayAssistant .bubbleBox-title[data-v-a292773e]:before{border-top:calc(var(--292167ed)*.25) solid transparent;border-bottom:calc(var(--292167ed)*.25) solid transparent;border-right:calc(var(--292167ed)*.5) solid rgba(70,61,255,.85);transform:translateX(calc(var(--292167ed)*-.46));left:0;top:calc(var(--292167ed)*.48)}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-a292773e]{background-color:rgba(98,183,0,.85);box-shadow:inset 0 0 calc(var(--292167ed)*.57) 0 #fff3b4}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-a292773e]:before{border-right:calc(var(--292167ed)*.5) solid transparent}.yx-speech-recognition .displayAssistant .bubbleBox-to[data-v-a292773e]:after{border-top:calc(var(--292167ed)*.25) solid transparent;border-bottom:calc(var(--292167ed)*.25) solid transparent;border-right:calc(var(--292167ed)*.5) solid rgba(98,183,0,.85);transform:translateX(calc(var(--292167ed)*-.46));left:0;top:calc(var(--292167ed)*.48)}.inputContainer[data-v-a292773e]{display:flex;flex:1;justify-content:space-between;align-items:center;background-color:rgba(2,11,72,.3);border-radius:calc(var(--292167ed)*.57)}.inputContainer .inputBox[data-v-a292773e]{margin:4px;flex:1;height:calc(var(--292167ed)*1.8);border-color:transparent;background-color:transparent;border-radius:calc(var(--292167ed)*.57);font-size:calc(var(--292167ed)*1);color:#fff;padding:0 20px;outline:none}.inputContainer .inputButton[data-v-a292773e]{margin-right:20px;flex-shrink:0}", ""]);
405
+ // Exports
406
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
407
+
408
+
409
+ /***/ }),
410
+
411
+ /***/ 462:
412
+ /***/ (function(module) {
413
+
414
+ "use strict";
415
+ module.exports = "data:image/png;base64,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";
416
+
417
+ /***/ }),
418
+
411
419
  /***/ 601:
412
420
  /***/ (function(module) {
413
421
 
@@ -420,6 +428,22 @@ module.exports = function (i) {
420
428
 
421
429
  /***/ }),
422
430
 
431
+ /***/ 607:
432
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
433
+
434
+ // style-loader: Adds some css to the DOM by adding a <style> tag
435
+
436
+ // load the styles
437
+ var content = __webpack_require__(435);
438
+ if(content.__esModule) content = content.default;
439
+ if(typeof content === 'string') content = [[module.id, content, '']];
440
+ if(content.locals) module.exports = content.locals;
441
+ // add the styles to the DOM
442
+ var add = (__webpack_require__(258)/* ["default"] */ .A)
443
+ var update = add("1fc76832", content, true, {"sourceMap":false,"shadowMode":false});
444
+
445
+ /***/ }),
446
+
423
447
  /***/ 659:
424
448
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
425
449
 
@@ -439,22 +463,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".message-wrapper[data-v-64bd834c]{disp
439
463
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
440
464
 
441
465
 
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
466
  /***/ }),
459
467
 
460
468
  /***/ 751:
@@ -880,7 +888,7 @@ if (typeof window !== 'undefined') {
880
888
  // Indicate to webpack that this file can be concatenated
881
889
  /* harmony default export */ var setPublicPath = (null);
882
890
 
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
891
+ ;// ./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=a292773e&scoped=true
884
892
  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
893
  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
894
  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 +901,16 @@ var render = function render() {
893
901
  return _c('div', {
894
902
  staticClass: "yx-speech-recognition"
895
903
  }, [_vm.boxShow ? _c('div', {
904
+ directives: [{
905
+ name: "Drag",
906
+ rawName: "v-Drag"
907
+ }],
896
908
  staticClass: "box",
897
- style: _objectSpread(_objectSpread({}, _vm.boxPosition), _vm.boxSize)
909
+ style: _objectSpread(_objectSpread({}, _vm.windowStyle), _vm.boxSize)
898
910
  }, [_c('div', {
899
- staticClass: "title"
911
+ staticClass: "title drag-header"
900
912
  }, [_vm._m(0), _c('span', {
901
- staticClass: "iconfont icon-close close",
913
+ staticClass: "iconfont icon-close close closeBtn",
902
914
  on: {
903
915
  "click": _vm.closeClick
904
916
  }
@@ -922,7 +934,33 @@ var render = function render() {
922
934
  "size": _vm.size
923
935
  }
924
936
  }, 'Message', item, false));
925
- }), 1)])]) : _vm._e(), _c('div', {
937
+ }), 1)]), _c('div', {
938
+ staticClass: "inputContainer"
939
+ }, [_c('input', {
940
+ directives: [{
941
+ name: "model",
942
+ rawName: "v-model",
943
+ value: _vm.inputContent,
944
+ expression: "inputContent"
945
+ }],
946
+ staticClass: "inputBox",
947
+ attrs: {
948
+ "placeholder": "请输入内容"
949
+ },
950
+ domProps: {
951
+ "value": _vm.inputContent
952
+ },
953
+ on: {
954
+ "keyup": function keyup($event) {
955
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
956
+ return _vm.submitText.apply(null, arguments);
957
+ },
958
+ "input": function input($event) {
959
+ if ($event.target.composing) return;
960
+ _vm.inputContent = $event.target.value;
961
+ }
962
+ }
963
+ }), _vm._m(1)])]) : _vm._e(), _c('div', {
926
964
  staticClass: "displayAssistant",
927
965
  style: _vm.imgPosition
928
966
  }, [_c('div', {
@@ -955,9 +993,20 @@ var staticRenderFns = [function () {
955
993
  "alt": ""
956
994
  }
957
995
  }), _c('span', [_vm._v("小安助手")])]);
996
+ }, function () {
997
+ var _vm = this,
998
+ _c = _vm._self._c;
999
+ return _c('div', {
1000
+ staticClass: "inputButton"
1001
+ }, [_c('img', {
1002
+ attrs: {
1003
+ "src": __webpack_require__(462),
1004
+ "alt": ""
1005
+ }
1006
+ })]);
958
1007
  }];
959
1008
 
960
- ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=789c2ef2&scoped=true
1009
+ ;// ./package/SpeechRecognition/index.vue?vue&type=template&id=a292773e&scoped=true
961
1010
 
962
1011
  // EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
963
1012
  var cryptojs = __webpack_require__(950);
@@ -1219,7 +1268,7 @@ var NewCredential = /*#__PURE__*/function () {
1219
1268
  key: "formatSignString",
1220
1269
  value: function formatSignString(params) {
1221
1270
  var strParam = '';
1222
- var signStr = '10.97.36.102:9090/realtime_asr_ws_private';
1271
+ var signStr = 'ws://10.97.36.102:9090/realtime_asr_ws_private';
1223
1272
  // let signStr = 'asr.cloud.tencent.com/asr/v2/'
1224
1273
  // let signStr = "aiasr.baoan.gov.cn:9191/realtime_asr_ws_private";
1225
1274
  if (this.config['appid']) {
@@ -1454,7 +1503,7 @@ var SpeechRecognizer = /*#__PURE__*/function () {
1454
1503
  break;
1455
1504
  }
1456
1505
  // const wsUrl = `${servicepath}?${urlParams.toString()}`;
1457
- this.socket = new WebSocket("ws://".concat(url));
1506
+ this.socket = new WebSocket("".concat(url));
1458
1507
  // this.socket = new WebSocket('ws://10.97.36.102:9090/realtime_asr_ws_private')
1459
1508
  // this.socket = new _WebSocket(servicepath,
1460
1509
  // {
@@ -16515,6 +16564,118 @@ var onQuit = function onQuit(opt) {
16515
16564
  // }
16516
16565
 
16517
16566
  // export { wakeUpState, wakeUpState as default }
16567
+ ;// ./package/SpeechRecognition/directive/drag.js
16568
+ 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); }
16569
+ var Drag = {
16570
+ bind: function bind(el, binding, vnode) {
16571
+ var dragDom = el.querySelector('.drag-box') || el;
16572
+ var dragHeaderEl = el.querySelector('.drag-header') || el.querySelector('.header');
16573
+ if (!dragHeaderEl) {
16574
+ console.warn('未找到拖拽头部元素');
16575
+ return;
16576
+ }
16577
+ var boxWidth = dragDom.style.width.replace('px', '');
16578
+ var boxHeight = dragDom.style.height.replace('px', '');
16579
+ var isDragging = false;
16580
+ var startX = 0,
16581
+ startY = 0,
16582
+ initialLeft = 0,
16583
+ initialTop = 0;
16584
+ var vm = vnode.context;
16585
+ var startDrag = function startDrag(e) {
16586
+ // 鼠标按下,计算当前元素距离可视区的距离 (鼠标点击位置距离可视窗口的距离)
16587
+ if (e.target.closest('.closeBtn')) return;
16588
+ if (e.button != 0) return;
16589
+ isDragging = true;
16590
+
16591
+ // 获取当前实际位置
16592
+ var rect = dragDom.getBoundingClientRect();
16593
+ // const containerRect = dragDom.parentElement.getBoundingClientRect()
16594
+
16595
+ initialLeft = rect.left;
16596
+ initialTop = rect.top;
16597
+ // initialLeft = rect.left - containerRect.left
16598
+ // initialTop = rect.top - containerRect.top
16599
+
16600
+ startX = e.clientX;
16601
+ startY = e.clientY;
16602
+ dragDom.classList.add('dragging');
16603
+ document.addEventListener('mousemove', onDrag);
16604
+ document.addEventListener('mouseup', _stopDrag);
16605
+ e.preventDefault();
16606
+ e.stopPropagation();
16607
+ };
16608
+ var onDrag = function onDrag(e) {
16609
+ if (!isDragging) return;
16610
+ var deltaX = e.clientX - startX;
16611
+ var deltaY = e.clientY - startY;
16612
+ var maxX = window.innerWidth - boxWidth;
16613
+ var maxY = window.innerHeight - boxHeight;
16614
+ var newLeft = Math.max(0, Math.min(initialLeft + deltaX, maxX));
16615
+ var newTop = Math.max(0, Math.min(initialTop + deltaY, maxY));
16616
+
16617
+ // 直接更新样式
16618
+ dragDom.style.left = newLeft + 'px';
16619
+ dragDom.style.top = newTop + 'px';
16620
+
16621
+ // 关键:更新 Vue 数据,确保响应式更新
16622
+ updateVueData(newLeft, newTop);
16623
+ };
16624
+ var _stopDrag = function stopDrag() {
16625
+ isDragging = false;
16626
+ dragDom.classList.remove('dragging');
16627
+ document.removeEventListener('mousemove', onDrag);
16628
+ document.removeEventListener('mouseup', _stopDrag);
16629
+ };
16630
+
16631
+ // 更新 Vue 数据的函数
16632
+ var updateVueData = function updateVueData(left, top) {
16633
+ if (!vm) return;
16634
+
16635
+ // 方式1:如果指令有绑定值,使用绑定值作为数据路径
16636
+ if (binding.value) {
16637
+ var dataPath = binding.value;
16638
+ if (vm[dataPath]) {
16639
+ vm[dataPath].left = left + 'px';
16640
+ vm[dataPath].top = top + 'px';
16641
+ }
16642
+ }
16643
+ // 方式2:如果没有绑定值,尝试自动更新常见的样式对象
16644
+ else {
16645
+ // 常见的样式数据属性名
16646
+ var possibleStyleProps = ['style', 'windowStyle', 'dragStyle', 'position', 'pos'];
16647
+ for (var _i = 0, _possibleStyleProps = possibleStyleProps; _i < _possibleStyleProps.length; _i++) {
16648
+ var prop = _possibleStyleProps[_i];
16649
+ if (vm[prop] && drag_typeof(vm[prop]) === 'object') {
16650
+ vm.$set(vm[prop], 'left', left + 'px');
16651
+ vm.$set(vm[prop], 'top', top + 'px');
16652
+ break;
16653
+ }
16654
+ }
16655
+
16656
+ // 或者更新独立的 x, y 数据
16657
+ if (vm.x !== undefined) vm.x = left;
16658
+ if (vm.y !== undefined) vm.y = top;
16659
+ }
16660
+ };
16661
+
16662
+ // 确保有定位
16663
+ if (window.getComputedStyle(dragDom).position === 'static') {
16664
+ dragDom.style.position = 'absolute';
16665
+ }
16666
+ dragHeaderEl.style.cursor = 'move';
16667
+ dragHeaderEl.addEventListener('mousedown', startDrag);
16668
+ el._cleanupDrag = function () {
16669
+ dragHeaderEl.removeEventListener('mousedown', startDrag);
16670
+ };
16671
+ },
16672
+ unbind: function unbind(el) {
16673
+ if (el._cleanupDrag) {
16674
+ el._cleanupDrag();
16675
+ }
16676
+ }
16677
+ };
16678
+ /* harmony default export */ var drag = ((/* unused pure expression or super */ null && (Drag)));
16518
16679
  ;// ./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
16680
  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
16681
  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 +16692,12 @@ function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("objec
16531
16692
 
16532
16693
 
16533
16694
 
16695
+
16534
16696
  var SpeechRecognitionvue_type_script_lang_js_default_ = {
16535
16697
  name: "yx-speech-recognition",
16698
+ directives: {
16699
+ Drag: Drag
16700
+ },
16536
16701
  components: {
16537
16702
  Message: Message
16538
16703
  },
@@ -16575,6 +16740,11 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16575
16740
  },
16576
16741
  data: function data() {
16577
16742
  return {
16743
+ inputContent: "",
16744
+ windowStyle: {
16745
+ left: "100px",
16746
+ top: "400px"
16747
+ },
16578
16748
  systemId: "msq_dp_a7x9",
16579
16749
  webSocketId: guid(),
16580
16750
  oneQuestionOneAnswer: true,
@@ -16646,6 +16816,14 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16646
16816
  _this.autoQuitAssistant();
16647
16817
  }, 1000 * 60);
16648
16818
  }
16819
+ },
16820
+ boxPosition: {
16821
+ handler: function handler(val) {
16822
+ if (Object.keys(val)) {
16823
+ this.windowStyle = val;
16824
+ }
16825
+ },
16826
+ deep: true
16649
16827
  }
16650
16828
  },
16651
16829
  methods: {
@@ -16740,7 +16918,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16740
16918
  _this2.bubbleBoxType = type;
16741
16919
  _this2.bubbleBoxTitle = content;
16742
16920
  if (!(type === "TO" && res.result.slice_type === 2)) {
16743
- _context.next = 39;
16921
+ _context.next = 40;
16744
16922
  break;
16745
16923
  }
16746
16924
  voice_id = res.voice_id, session_id = res.sessionId;
@@ -16759,7 +16937,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16759
16937
  _res = _context.sent;
16760
16938
  code = _res.code, msg = _res.msg, obj = _res.obj;
16761
16939
  if (!(code == 200)) {
16762
- _context.next = 29;
16940
+ _context.next = 30;
16763
16941
  break;
16764
16942
  }
16765
16943
  _content = "";
@@ -16788,45 +16966,48 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
16788
16966
  content: _content
16789
16967
  },
16790
16968
  sentenceId: Math.floor(Math.random() * 1000000).toString()
16791
- };
16792
- _this2.handlePlayTTS({
16793
- content: _content,
16794
- onStart: function onStart() {
16795
- _this2.pushMessage(_opts);
16796
- }
16969
+ }; // this.handlePlayTTS({
16970
+ // content: _content,
16971
+ // onStart: () => {
16972
+ // this.pushMessage(_opts)
16973
+ // }
16974
+ // })
16975
+ _this2.openAide();
16976
+ _this2.updateSession({
16977
+ res: {},
16978
+ messages: {
16979
+ type: "FROM",
16980
+ content: _content
16981
+ },
16982
+ sentenceId: Math.floor(Math.random() * 1000000).toString()
16797
16983
  });
16798
- // this.updateSession({
16799
- // res: {},
16800
- // messages: { type: "FROM", content: _content },
16801
- // sentenceId: Math.floor(Math.random() * 1000000).toString()
16802
- // });
16803
- case 29:
16804
- _context.next = 34;
16984
+ case 30:
16985
+ _context.next = 35;
16805
16986
  break;
16806
- case 31:
16807
- _context.prev = 31;
16987
+ case 32:
16988
+ _context.prev = 32;
16808
16989
  _context.t0 = _context["catch"](11);
16809
16990
  console.log("speech2speech2 ->", _context.t0);
16810
- case 34:
16811
- _context.prev = 34;
16991
+ case 35:
16992
+ _context.prev = 35;
16812
16993
  _this2.oneQuestionOneAnswer = true;
16813
- return _context.finish(34);
16814
- case 37:
16815
- _context.next = 40;
16994
+ return _context.finish(35);
16995
+ case 38:
16996
+ _context.next = 41;
16816
16997
  break;
16817
- case 39:
16998
+ case 40:
16818
16999
  if (type === "FROM") {
16819
17000
  _this2.handlePlayTTS({
16820
17001
  content: content
16821
17002
  });
16822
17003
  }
16823
- case 40:
16824
- _this2.wakeUpTime = new Date().getTime();
16825
17004
  case 41:
17005
+ _this2.wakeUpTime = new Date().getTime();
17006
+ case 42:
16826
17007
  case "end":
16827
17008
  return _context.stop();
16828
17009
  }
16829
- }, _callee, null, [[11, 31, 34, 37]]);
17010
+ }, _callee, null, [[11, 32, 35, 38]]);
16830
17011
  }))();
16831
17012
  },
16832
17013
  // 自动退出(静默20s) - 小宝助手
@@ -17056,7 +17237,7 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17056
17237
  startHeart: function startHeart() {
17057
17238
  var _this7 = this;
17058
17239
  if (this.setIntervalWebsocket) {
17059
- clearInterval(setIntervalWebsocket);
17240
+ clearInterval(this.setIntervalWebsocket);
17060
17241
  this.setIntervalWebsocket = null;
17061
17242
  }
17062
17243
  this.sendPing();
@@ -17072,7 +17253,6 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17072
17253
  this.socket.send(JSON.stringify(heartBeat));
17073
17254
  },
17074
17255
  disposeMessage: function disposeMessage(message) {
17075
- var _this8 = this;
17076
17256
  var type = message.type,
17077
17257
  data = message.data;
17078
17258
  if (type === 'broadcast') {
@@ -17093,12 +17273,21 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17093
17273
  },
17094
17274
  sentenceId: Math.floor(Math.random() * 1000000).toString()
17095
17275
  };
17096
- this.handlePlayTTS({
17097
- content: standard_back,
17098
- onStart: function onStart() {
17099
- _this8.openAide();
17100
- _this8.pushMessage(_opts);
17101
- }
17276
+ // this.handlePlayTTS({
17277
+ // content: standard_back,
17278
+ // onStart: () => {
17279
+ // this.openAide()
17280
+ // this.pushMessage(_opts)
17281
+ // }
17282
+ // })
17283
+ this.openAide();
17284
+ this.updateSession({
17285
+ res: {},
17286
+ messages: {
17287
+ type: "FROM",
17288
+ content: standard_back
17289
+ },
17290
+ sentenceId: Math.floor(Math.random() * 1000000).toString()
17102
17291
  });
17103
17292
  }
17104
17293
  } else {}
@@ -17111,18 +17300,37 @@ var SpeechRecognitionvue_type_script_lang_js_default_ = {
17111
17300
  };
17112
17301
  console.log("回传信息:\n", data, query);
17113
17302
  this.socket.send(JSON.stringify(query));
17303
+ },
17304
+ submitText: function submitText() {
17305
+ console.log(this.inputContent);
17306
+ this.updateSession({
17307
+ res: {
17308
+ sessionId: this.sessionId,
17309
+ voice_id: guid(),
17310
+ sentenceId: Math.floor(Math.random() * 1000000).toString(),
17311
+ result: {
17312
+ slice_type: 2
17313
+ }
17314
+ },
17315
+ messages: {
17316
+ type: "TO",
17317
+ content: this.inputContent
17318
+ }
17319
+ });
17320
+ this.inputContent = "";
17114
17321
  }
17115
17322
  },
17116
17323
  mounted: function mounted() {
17117
17324
  this.onStart();
17118
17325
  this.getMessage();
17326
+ console.log("".concat(this.htmlFontSize, "px"));
17119
17327
  }
17120
17328
  };
17121
17329
 
17122
17330
  var SpeechRecognitionvue_type_script_lang_js_injectCSSVars_ = function __injectCSSVars__() {
17123
17331
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(function (_vm, _setup) {
17124
17332
  return {
17125
- "b882b34a": _vm.htmlFontSize
17333
+ "292167ed": _vm.htmlFontSize
17126
17334
  };
17127
17335
  });
17128
17336
  };
@@ -17134,9 +17342,9 @@ SpeechRecognitionvue_type_script_lang_js_default_.setup = SpeechRecognitionvue_t
17134
17342
  /* harmony default export */ var SpeechRecognitionvue_type_script_lang_js = (SpeechRecognitionvue_type_script_lang_js_default_);
17135
17343
  ;// ./package/SpeechRecognition/index.vue?vue&type=script&lang=js
17136
17344
  /* 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
17345
+ // 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=a292773e&prod&lang=scss&scoped=true
17346
+ var SpeechRecognitionvue_type_style_index_0_id_a292773e_prod_lang_scss_scoped_true = __webpack_require__(607);
17347
+ ;// ./package/SpeechRecognition/index.vue?vue&type=style&index=0&id=a292773e&prod&lang=scss&scoped=true
17140
17348
 
17141
17349
  ;// ./package/SpeechRecognition/index.vue
17142
17350
 
@@ -17153,7 +17361,7 @@ var SpeechRecognition_component = normalizeComponent(
17153
17361
  staticRenderFns,
17154
17362
  false,
17155
17363
  null,
17156
- "789c2ef2",
17364
+ "a292773e",
17157
17365
  null
17158
17366
 
17159
17367
  )