jodit 4.6.19 → 4.7.4

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.
Files changed (77) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +248 -4
  4. package/es2015/jodit.js +35173 -37099
  5. package/es2015/jodit.min.js +248 -4
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +44 -74
  8. package/es2015/plugins/debug/debug.min.js +5 -4
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +616 -714
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -4
  12. package/es2018/jodit.fat.min.js +248 -4
  13. package/es2018/jodit.min.js +248 -4
  14. package/es2018/plugins/debug/debug.min.js +5 -4
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -4
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +262 -4
  18. package/es2021/jodit.js +34763 -36981
  19. package/es2021/jodit.min.js +262 -4
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +42 -72
  22. package/es2021/plugins/debug/debug.min.js +5 -4
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +614 -712
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -4
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +262 -4
  28. package/es2021.en/jodit.js +33514 -35465
  29. package/es2021.en/jodit.min.js +262 -4
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +42 -72
  32. package/es2021.en/plugins/debug/debug.min.js +5 -4
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +318 -347
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -4
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -4
  38. package/es5/jodit.js +42978 -39182
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -4
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +152 -163
  43. package/es5/plugins/debug/debug.min.js +2 -4
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +755 -777
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -4
  47. package/es5/polyfills.fat.min.js +8 -0
  48. package/es5/{415.js → polyfills.js} +177 -5
  49. package/es5/polyfills.min.js +8 -0
  50. package/esm/config.js +3 -0
  51. package/esm/core/constants.js +1 -1
  52. package/esm/core/helpers/utils/assert.js +4 -0
  53. package/esm/core/ui/form/inputs/input/input.d.ts +1 -0
  54. package/esm/core/view/view.d.ts +2 -2
  55. package/esm/core/view/view.js +1 -1
  56. package/esm/jodit.js +7 -1
  57. package/esm/modules/dialog/dialog.js +5 -5
  58. package/esm/modules/status-bar/status-bar.d.ts +1 -1
  59. package/esm/plugins/tab/cases/on-tab-inside-li.js +1 -1
  60. package/esm/tsconfig.json +1 -1
  61. package/package.json +3 -5
  62. package/types/core/ui/form/inputs/input/input.d.ts +1 -0
  63. package/types/core/view/view.d.ts +2 -2
  64. package/types/modules/status-bar/status-bar.d.ts +1 -1
  65. package/types/tsconfig.json +1 -1
  66. package/es2018/jodit.css +0 -5386
  67. package/es2018/jodit.js +0 -45274
  68. package/es2018/plugins/debug/debug.css +0 -53
  69. package/es2018/plugins/debug/debug.js +0 -236
  70. package/es2018/plugins/speech-recognize/speech-recognize.css +0 -43
  71. package/es2018/plugins/speech-recognize/speech-recognize.js +0 -1199
  72. package/es5/415.fat.min.js +0 -10
  73. package/es5/415.min.js +0 -10
  74. package/es5/5.fat.min.js +0 -10
  75. package/es5/5.js +0 -76
  76. package/es5/5.min.js +0 -10
  77. package/esm/polyfills.js +0 -54
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.6.19
4
+ * Version: v4.7.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -18,61 +18,158 @@
18
18
  })(self, function() {
19
19
  return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[882],{
20
20
 
21
- /***/ 3424:
21
+ /***/ 8858:
22
22
  /***/ (function(module) {
23
23
 
24
+ /*!
25
+ * Jodit Editor (https://xdsoft.net/jodit/)
26
+ * Released under MIT see LICENSE.txt in the project root for license information.
27
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
28
+ */ module.exports = {
29
+ newline: 'חדשות',
30
+ delete: 'מחק',
31
+ space: 'שטח',
32
+ 'Speech Recognize': 'דיבור מזהה',
33
+ Sound: 'קול',
34
+ 'Interim Results': 'תוצאות ביניים'
35
+ };
36
+
37
+
38
+ /***/ }),
39
+
40
+ /***/ 8962:
41
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
42
+
24
43
  "use strict";
44
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
45
+ /* harmony export */ execSpellCommand: function() { return /* binding */ execSpellCommand; }
46
+ /* harmony export */ });
47
+ /* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50684);
48
+ /*!
49
+ * Jodit Editor (https://xdsoft.net/jodit/)
50
+ * Released under MIT see LICENSE.txt in the project root for license information.
51
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
52
+ */ /**
53
+ * @module plugins/speech-recognize
54
+ */
55
+ function execSpellCommand(jodit, commandSentence) {
56
+ var _commandSentence_split = (0,_swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__._)(commandSentence.split('::'), 2), command = _commandSentence_split[0], value = _commandSentence_split[1];
57
+ jodit.execCommand(command, null, value);
58
+ }
59
+
60
+
61
+ /***/ }),
62
+
63
+ /***/ 10179:
64
+ /***/ (function(module) {
25
65
 
26
66
  /*!
27
67
  * Jodit Editor (https://xdsoft.net/jodit/)
28
68
  * Released under MIT see LICENSE.txt in the project root for license information.
29
69
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
30
- */
31
- module.exports = {
32
- newline: 'regel',
33
- delete: 'verwijderen',
34
- space: 'ruimte',
35
- 'Speech Recognize': 'Spraak Herkennen',
36
- Sound: 'Geluid',
37
- 'Interim Results': 'Tussentijdse Resultaten'
70
+ */ module.exports = {
71
+ newline: 'новая строка|перенос|ентер',
72
+ delete: 'видалити',
73
+ space: 'пробел',
74
+ 'Speech Recognize': 'Распознавание речи',
75
+ Sound: 'Звук',
76
+ 'Interim Results': 'Проміжні результати'
38
77
  };
39
78
 
40
79
 
41
80
  /***/ }),
42
81
 
43
- /***/ 13958:
82
+ /***/ 18712:
44
83
  /***/ (function(module) {
45
84
 
46
- "use strict";
85
+ /*!
86
+ * Jodit Editor (https://xdsoft.net/jodit/)
87
+ * Released under MIT see LICENSE.txt in the project root for license information.
88
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
89
+ */ module.exports = {
90
+ newline: '改行',
91
+ delete: '削除',
92
+ space: 'スペース',
93
+ 'Speech Recognize': '音声認識',
94
+ Sound: '音',
95
+ 'Interim Results': '中間結果'
96
+ };
97
+
98
+
99
+ /***/ }),
100
+
101
+ /***/ 19922:
102
+ /***/ (function(module) {
47
103
 
48
104
  /*!
49
105
  * Jodit Editor (https://xdsoft.net/jodit/)
50
106
  * Released under MIT see LICENSE.txt in the project root for license information.
51
107
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
52
- */
53
- module.exports = {
54
- newline: 'nouvelle ligne',
55
- delete: 'supprimer',
56
- space: 'espace',
57
- 'Speech Recognize': 'Reconnaissance Vocale',
58
- Sound: 'Son',
59
- 'Interim Results': 'Résultats Intermédiaires'
108
+ */ module.exports = {
109
+ newline: 'الخط الجديد',
110
+ delete: 'حذف',
111
+ space: 'الفضاء',
112
+ 'Speech Recognize': 'التعرف على الكلام',
113
+ Sound: 'الصوت',
114
+ 'Interim Results': 'النتائج المؤقتة'
60
115
  };
61
116
 
62
117
 
63
118
  /***/ }),
64
119
 
65
- /***/ 14765:
120
+ /***/ 20759:
66
121
  /***/ (function(module) {
67
122
 
68
- "use strict";
123
+ /*!
124
+ * Jodit Editor (https://xdsoft.net/jodit/)
125
+ * Released under MIT see LICENSE.txt in the project root for license information.
126
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
127
+ */ module.exports = {
128
+ newline: 'řádek',
129
+ delete: 'odstranit',
130
+ space: 'prostora',
131
+ 'Speech Recognize': 'Rozpoznání Řeči',
132
+ Sound: 'Zvuk',
133
+ 'Interim Results': 'Průběžné Výsledky'
134
+ };
135
+
136
+
137
+ /***/ }),
138
+
139
+ /***/ 22227:
140
+ /***/ (function(module) {
141
+
142
+ module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z\"/> <path d=\"M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z\"/> </svg>"
143
+
144
+ /***/ }),
145
+
146
+ /***/ 22350:
147
+ /***/ (function(module) {
69
148
 
70
149
  /*!
71
150
  * Jodit Editor (https://xdsoft.net/jodit/)
72
151
  * Released under MIT see LICENSE.txt in the project root for license information.
73
152
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
74
- */
75
- module.exports = {
153
+ */ module.exports = {
154
+ newline: 'Zeilenumbruch',
155
+ delete: 'löschen',
156
+ space: 'Raum',
157
+ 'Speech Recognize': 'Sprache Erkennen',
158
+ Sound: 'Sound',
159
+ 'Interim Results': 'Zwischenergebnis'
160
+ };
161
+
162
+
163
+ /***/ }),
164
+
165
+ /***/ 22922:
166
+ /***/ (function(module) {
167
+
168
+ /*!
169
+ * Jodit Editor (https://xdsoft.net/jodit/)
170
+ * Released under MIT see LICENSE.txt in the project root for license information.
171
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
172
+ */ module.exports = {
76
173
  newline: 'újsor',
77
174
  delete: 'törlés',
78
175
  space: 'tér',
@@ -84,102 +181,296 @@ module.exports = {
84
181
 
85
182
  /***/ }),
86
183
 
87
- /***/ 15603:
184
+ /***/ 29475:
88
185
  /***/ (function(module) {
89
186
 
90
- "use strict";
91
-
92
187
  /*!
93
188
  * Jodit Editor (https://xdsoft.net/jodit/)
94
189
  * Released under MIT see LICENSE.txt in the project root for license information.
95
190
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
96
- */
97
- module.exports = {
98
- newline: 'خط جدید',
99
- delete: 'حذف',
100
- space: 'فضا',
101
- 'Speech Recognize': 'گفتار را تشخیص دهید',
102
- Sound: 'صدا',
103
- 'Interim Results': 'نتایج موقت'
191
+ */ module.exports = {
192
+ newline: '換行',
193
+ delete: '刪除',
194
+ space: '空白',
195
+ 'Speech Recognize': '語音辨識',
196
+ Sound: '聲音',
197
+ 'Interim Results': '階段性辨識結果'
104
198
  };
105
199
 
106
200
 
107
201
  /***/ }),
108
202
 
109
- /***/ 16491:
110
- /***/ (function(module) {
203
+ /***/ 31262:
204
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
111
205
 
112
206
  "use strict";
113
-
207
+ __webpack_require__.r(__webpack_exports__);
208
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
209
+ /* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
210
+ /* harmony export */ });
211
+ /* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69262);
212
+ /* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73104);
213
+ /* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53429);
214
+ /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25045);
215
+ /* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34918);
216
+ /* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38574);
217
+ /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
218
+ /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68616);
219
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23211);
220
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28077);
221
+ /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(71125);
222
+ /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91206);
223
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(75143);
224
+ /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(73302);
225
+ /* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(8962);
226
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(43219);
114
227
  /*!
115
228
  * Jodit Editor (https://xdsoft.net/jodit/)
116
229
  * Released under MIT see LICENSE.txt in the project root for license information.
117
230
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
118
- */
119
- module.exports = {
120
- newline: 'новая строка|перенос|энтер',
121
- delete: 'удалить',
122
- space: 'пробел',
123
- 'Speech Recognize': 'Распознавание речи',
124
- Sound: 'Звук',
125
- 'Interim Results': 'Промежуточные результаты'
126
- };
231
+ */ /**
232
+ * [[include:plugins/speech-recognize/README.md]]
233
+ * @packageDocumentation
234
+ * @module plugins/speech-recognize
235
+ */
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+ var SpeechRecognizeNative = /*#__PURE__*/ function(Plugin) {
253
+ "use strict";
254
+ (0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(SpeechRecognizeNative, Plugin);
255
+ function SpeechRecognizeNative() {
256
+ (0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, SpeechRecognizeNative);
257
+ var _this;
258
+ _this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, SpeechRecognizeNative, arguments), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "buttons", [
259
+ {
260
+ group: 'state',
261
+ name: 'speechRecognize'
262
+ }
263
+ ]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "messagePopup", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "__hidePopupTimeout", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_commandToWord", {});
264
+ return _this;
265
+ }
266
+ (0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(SpeechRecognizeNative, [
267
+ {
268
+ key: "afterInit",
269
+ value: function afterInit(jodit) {
270
+ var _this = this;
271
+ var commands = jodit.o.speechRecognize.commands;
272
+ if (commands) {
273
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_9__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_15__);
274
+ (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_10__.keys)(commands, false).forEach(function(words) {
275
+ var _$keys = words.split('|');
276
+ _$keys.forEach(function(key) {
277
+ key = key.trim().toLowerCase();
278
+ _this._commandToWord[key] = commands[words];
279
+ var translatedKeys = jodit.i18n(key);
280
+ if (translatedKeys !== key) {
281
+ translatedKeys.split('|').forEach(function(translatedKey) {
282
+ _this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
283
+ });
284
+ }
285
+ });
286
+ });
287
+ }
288
+ }
289
+ },
290
+ {
291
+ key: "beforeDestruct",
292
+ value: function beforeDestruct(jodit) {
293
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(this.messagePopup);
294
+ }
295
+ },
296
+ {
297
+ key: "onSpeechRecognizeProgressResult",
298
+ value: function onSpeechRecognizeProgressResult(text) {
299
+ var _this = this;
300
+ if (!this.messagePopup) {
301
+ this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
302
+ }
303
+ this.j.workplace.appendChild(this.messagePopup);
304
+ this.j.async.clearTimeout(this.__hidePopupTimeout);
305
+ this.__hidePopupTimeout = this.j.async.setTimeout(function() {
306
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(_this.messagePopup);
307
+ }, 1000);
308
+ this.messagePopup.innerText = text + '|';
309
+ }
310
+ },
311
+ {
312
+ key: "onSpeechRecognizeResult",
313
+ value: function onSpeechRecognizeResult(text) {
314
+ this.j.async.clearTimeout(this.__hidePopupTimeout);
315
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.safeRemove(this.messagePopup);
316
+ var j = this.j;
317
+ var s = j.s;
318
+ if (!this._checkCommand(text)) {
319
+ var range = s.range, node = s.current();
320
+ if (s.isCollapsed() && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isText(node) && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_8__.Dom.isOrContains(j.editor, node) && node.nodeValue) {
321
+ var sentence = node.nodeValue;
322
+ node.nodeValue = sentence + (/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') + text;
323
+ range.setStartAfter(node);
324
+ s.selectRange(range);
325
+ j.synchronizeValues();
326
+ } else {
327
+ s.insertHTML(text);
328
+ }
329
+ }
330
+ }
331
+ },
332
+ {
333
+ key: "_checkCommand",
334
+ value: function _checkCommand(command) {
335
+ command = command.toLowerCase().replace(/\./g, '');
336
+ if (this._commandToWord[command]) {
337
+ (0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_14__.execSpellCommand)(this.j, this._commandToWord[command]);
338
+ return true;
339
+ }
340
+ return false;
341
+ }
342
+ }
343
+ ]);
344
+ return SpeechRecognizeNative;
345
+ }((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_5__._)(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_11__.Plugin));
346
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
347
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_7__.watch)(':speechRecognizeProgressResult')
348
+ ], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
349
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
350
+ (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_7__.watch)(':speechRecognizeResult')
351
+ ], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
352
+ _jodit__WEBPACK_IMPORTED_MODULE_13__.Jodit.plugins.add('speech-recognize', SpeechRecognizeNative);
127
353
 
128
354
 
129
355
  /***/ }),
130
356
 
131
- /***/ 18717:
132
- /***/ (function(module) {
357
+ /***/ 32560:
358
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
133
359
 
134
360
  "use strict";
361
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
362
+ /* harmony export */ sound: function() { return /* binding */ sound; }
363
+ /* harmony export */ });
364
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
365
+ /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94092);
366
+ /*!
367
+ * Jodit Editor (https://xdsoft.net/jodit/)
368
+ * Released under MIT see LICENSE.txt in the project root for license information.
369
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
370
+ */ /**
371
+ * @module plugins/speech-recognize
372
+ */
373
+
374
+ /**
375
+ * @internal
376
+ */ function sound() {
377
+ var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_sec = _ref.sec, sec = _ref_sec === void 0 ? 0.1 : _ref_sec, _ref_frequency = _ref.frequency, frequency = _ref_frequency === void 0 ? jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__.PII : _ref_frequency, _ref_gain = _ref.gain, gain = _ref_gain === void 0 ? 0.1 : _ref_gain, _ref_type = _ref.type, type = _ref_type === void 0 ? 'sine' : _ref_type;
378
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow || typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext === 'undefined' && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext === 'undefined') {
379
+ return;
380
+ }
381
+ // one context per document
382
+ var context = new (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext)();
383
+ var vol = context.createGain();
384
+ var osc = context.createOscillator();
385
+ osc.type = type;
386
+ osc.frequency.value = frequency; // Hz
387
+ osc.connect(vol);
388
+ vol.connect(context.destination);
389
+ osc.start(); // start the oscillator
390
+ osc.stop(context.currentTime + sec);
391
+ vol.gain.value = gain;
392
+ }
393
+
394
+
395
+ /***/ }),
396
+
397
+ /***/ 33276:
398
+ /***/ (function(module) {
135
399
 
136
400
  /*!
137
401
  * Jodit Editor (https://xdsoft.net/jodit/)
138
402
  * Released under MIT see LICENSE.txt in the project root for license information.
139
403
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
140
- */
141
- module.exports = {
142
- newline: 'חדשות',
143
- delete: 'מחק',
144
- space: 'שטח',
145
- 'Speech Recognize': 'דיבור מזהה',
146
- Sound: 'קול',
147
- 'Interim Results': 'תוצאות ביניים'
404
+ */ module.exports = {
405
+ 'Speech Recognize': 'Puheentunnistus',
406
+ newline: 'uusi rivi',
407
+ delete: 'poistaa',
408
+ space: 'tilaa',
409
+ Sound: 'Ääni',
410
+ 'Interim Results': 'Välitulokset'
148
411
  };
149
412
 
150
413
 
151
414
  /***/ }),
152
415
 
153
- /***/ 20825:
416
+ /***/ 35420:
154
417
  /***/ (function(module) {
155
418
 
156
- "use strict";
419
+ /*!
420
+ * Jodit Editor (https://xdsoft.net/jodit/)
421
+ * Released under MIT see LICENSE.txt in the project root for license information.
422
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
423
+ */ module.exports = {
424
+ newline: 'nuova riga',
425
+ delete: 'eliminare',
426
+ space: 'spazio',
427
+ 'Speech Recognize': 'Discorso Riconoscere',
428
+ Sound: 'Suono',
429
+ 'Interim Results': 'Risultati intermedi'
430
+ };
431
+
432
+
433
+ /***/ }),
434
+
435
+ /***/ 37161:
436
+ /***/ (function(module) {
157
437
 
158
438
  /*!
159
439
  * Jodit Editor (https://xdsoft.net/jodit/)
160
440
  * Released under MIT see LICENSE.txt in the project root for license information.
161
441
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
162
- */
163
- module.exports = {
164
- newline: 'nylinje',
165
- delete: 'slette',
166
- space: 'rom',
167
- 'Speech Recognize': 'Talegjenkjenning',
168
- Sound: 'Lyd',
169
- 'Interim Results': 'Midlertidige resultater'
442
+ */ module.exports = {
443
+ newline: 'newline',
444
+ delete: 'usunąć',
445
+ space: 'przestrzeń',
446
+ 'Speech Recognize': 'Rozpoznawanie Mowy',
447
+ Sound: 'Dźwięk',
448
+ 'Interim Results': 'Wyniki Okresowe'
170
449
  };
171
450
 
172
451
 
173
452
  /***/ }),
174
453
 
175
- /***/ 22227:
454
+ /***/ 39996:
176
455
  /***/ (function(module) {
177
456
 
178
- module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z\"/> <path d=\"M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z\"/> </svg>"
457
+ /*!
458
+ * Jodit Editor (https://xdsoft.net/jodit/)
459
+ * Released under MIT see LICENSE.txt in the project root for license information.
460
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
461
+ */ module.exports = {
462
+ newline: 'новая строка|перенос|энтер',
463
+ delete: 'удалить',
464
+ space: 'пробел',
465
+ 'Speech Recognize': 'Распознавание речи',
466
+ Sound: 'Звук',
467
+ 'Interim Results': 'Промежуточные результаты'
468
+ };
469
+
179
470
 
180
471
  /***/ }),
181
472
 
182
- /***/ 25202:
473
+ /***/ 43219:
183
474
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
184
475
 
185
476
  "use strict";
@@ -209,58 +500,57 @@ __webpack_require__.r(__webpack_exports__);
209
500
  /* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__; },
210
501
  /* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__; }
211
502
  /* harmony export */ });
212
- /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61593);
503
+ /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19922);
213
504
  /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
214
- /* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64458);
505
+ /* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20759);
215
506
  /* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_cs_cz_js__WEBPACK_IMPORTED_MODULE_1__);
216
- /* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89601);
507
+ /* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22350);
217
508
  /* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_de_js__WEBPACK_IMPORTED_MODULE_2__);
218
- /* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87710);
509
+ /* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97509);
219
510
  /* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_es_js__WEBPACK_IMPORTED_MODULE_3__);
220
- /* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15603);
511
+ /* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49668);
221
512
  /* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_fa_js__WEBPACK_IMPORTED_MODULE_4__);
222
- /* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84059);
513
+ /* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33276);
223
514
  /* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_fi_js__WEBPACK_IMPORTED_MODULE_5__);
224
- /* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13958);
515
+ /* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43517);
225
516
  /* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_fr_js__WEBPACK_IMPORTED_MODULE_6__);
226
- /* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18717);
517
+ /* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8858);
227
518
  /* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_he_js__WEBPACK_IMPORTED_MODULE_7__);
228
- /* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14765);
519
+ /* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22922);
229
520
  /* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_hu_js__WEBPACK_IMPORTED_MODULE_8__);
230
- /* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(77995);
521
+ /* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(81900);
231
522
  /* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_id_js__WEBPACK_IMPORTED_MODULE_9__);
232
- /* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(92315);
523
+ /* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(35420);
233
524
  /* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_it_js__WEBPACK_IMPORTED_MODULE_10__);
234
- /* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(54711);
525
+ /* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18712);
235
526
  /* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_ja_js__WEBPACK_IMPORTED_MODULE_11__);
236
- /* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(68632);
527
+ /* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(73363);
237
528
  /* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_ko_js__WEBPACK_IMPORTED_MODULE_12__);
238
- /* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(76769);
529
+ /* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(74762);
239
530
  /* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_mn_js__WEBPACK_IMPORTED_MODULE_13__);
240
- /* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(3424);
531
+ /* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(73759);
241
532
  /* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_nl_js__WEBPACK_IMPORTED_MODULE_14__);
242
- /* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(20825);
533
+ /* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(72850);
243
534
  /* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_no_js__WEBPACK_IMPORTED_MODULE_15__);
244
- /* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(85454);
535
+ /* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(37161);
245
536
  /* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_pl_js__WEBPACK_IMPORTED_MODULE_16__);
246
- /* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(64149);
537
+ /* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62896);
247
538
  /* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_pt_br_js__WEBPACK_IMPORTED_MODULE_17__);
248
- /* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(16491);
539
+ /* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(39996);
249
540
  /* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_18__);
250
- /* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(48948);
541
+ /* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(93423);
251
542
  /* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_19__);
252
- /* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(95700);
543
+ /* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(10179);
253
544
  /* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_20__);
254
- /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(84370);
545
+ /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(62547);
255
546
  /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_21__);
256
- /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(56646);
547
+ /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(29475);
257
548
  /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_22__);
258
549
  /*!
259
550
  * Jodit Editor (https://xdsoft.net/jodit/)
260
551
  * Released under MIT see LICENSE.txt in the project root for license information.
261
552
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
262
- */
263
- // @ts-nocheck
553
+ */ // @ts-nocheck
264
554
 
265
555
 
266
556
 
@@ -289,331 +579,422 @@ __webpack_require__.r(__webpack_exports__);
289
579
 
290
580
  /***/ }),
291
581
 
292
- /***/ 37873:
293
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
582
+ /***/ 43517:
583
+ /***/ (function(module) {
294
584
 
295
- "use strict";
296
- __webpack_require__.r(__webpack_exports__);
297
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
298
- /* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
299
- /* harmony export */ });
300
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
301
- /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66927);
302
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
303
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56298);
304
- /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84976);
305
- /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71005);
306
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71096);
307
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(46173);
308
- /* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50834);
309
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25202);
310
585
  /*!
311
586
  * Jodit Editor (https://xdsoft.net/jodit/)
312
587
  * Released under MIT see LICENSE.txt in the project root for license information.
313
588
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
314
- */
315
-
316
-
317
-
318
-
589
+ */ module.exports = {
590
+ newline: 'nouvelle ligne',
591
+ delete: 'supprimer',
592
+ space: 'espace',
593
+ 'Speech Recognize': 'Reconnaissance Vocale',
594
+ Sound: 'Son',
595
+ 'Interim Results': 'Résultats Intermédiaires'
596
+ };
319
597
 
320
598
 
599
+ /***/ }),
321
600
 
601
+ /***/ 49668:
602
+ /***/ (function(module) {
322
603
 
604
+ /*!
605
+ * Jodit Editor (https://xdsoft.net/jodit/)
606
+ * Released under MIT see LICENSE.txt in the project root for license information.
607
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
608
+ */ module.exports = {
609
+ newline: 'خط جدید',
610
+ delete: 'حذف',
611
+ space: 'فضا',
612
+ 'Speech Recognize': 'گفتار را تشخیص دهید',
613
+ Sound: 'صدا',
614
+ 'Interim Results': 'نتایج موقت'
615
+ };
323
616
 
324
617
 
618
+ /***/ }),
325
619
 
326
- var SpeechRecognizeNative = /** @class */ (function (_super) {
327
- (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(SpeechRecognizeNative, _super);
328
- function SpeechRecognizeNative() {
329
- var _this = _super.apply(this, (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__spreadArray */ .fX)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .zs)(arguments), false)) || this;
330
- _this.buttons = [
331
- {
332
- group: 'state',
333
- name: 'speechRecognize'
334
- }
335
- ];
336
- _this._commandToWord = {};
337
- return _this;
338
- }
339
- SpeechRecognizeNative.prototype.afterInit = function (jodit) {
340
- var _this = this;
341
- var commands = jodit.o.speechRecognize.commands;
342
- if (commands) {
343
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_9__);
344
- (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_4__/* .keys */ .HP)(commands, false).forEach(function (words) {
345
- var keys = words.split('|');
346
- keys.forEach(function (key) {
347
- key = key.trim().toLowerCase();
348
- _this._commandToWord[key] = commands[words];
349
- var translatedKeys = jodit.i18n(key);
350
- if (translatedKeys !== key) {
351
- translatedKeys.split('|').forEach(function (translatedKey) {
352
- _this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
353
- });
354
- }
355
- });
356
- });
357
- }
358
- };
359
- SpeechRecognizeNative.prototype.beforeDestruct = function (jodit) {
360
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
361
- };
362
- SpeechRecognizeNative.prototype.onSpeechRecognizeProgressResult = function (text) {
363
- var _this = this;
364
- if (!this.messagePopup) {
365
- this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
366
- }
367
- this.j.workplace.appendChild(this.messagePopup);
368
- this.j.async.clearTimeout(this.__hidePopupTimeout);
369
- this.__hidePopupTimeout = this.j.async.setTimeout(function () {
370
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(_this.messagePopup);
371
- }, 1000);
372
- this.messagePopup.innerText = text + '|';
373
- };
374
- SpeechRecognizeNative.prototype.onSpeechRecognizeResult = function (text) {
375
- this.j.async.clearTimeout(this.__hidePopupTimeout);
376
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeRemove(this.messagePopup);
377
- var j = this.j;
378
- var s = j.s;
379
- if (!this._checkCommand(text)) {
380
- var range = s.range, node = s.current();
381
- if (s.isCollapsed() &&
382
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node) &&
383
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(j.editor, node) &&
384
- node.nodeValue) {
385
- var sentence = node.nodeValue;
386
- node.nodeValue =
387
- sentence +
388
- (/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') +
389
- text;
390
- range.setStartAfter(node);
391
- s.selectRange(range);
392
- j.synchronizeValues();
393
- }
394
- else {
395
- s.insertHTML(text);
396
- }
397
- }
398
- };
399
- SpeechRecognizeNative.prototype._checkCommand = function (command) {
400
- command = command.toLowerCase().replace(/\./g, '');
401
- if (this._commandToWord[command]) {
402
- (0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_8__/* .execSpellCommand */ .F)(this.j, this._commandToWord[command]);
403
- return true;
404
- }
405
- return false;
406
- };
407
- (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
408
- (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':speechRecognizeProgressResult')
409
- ], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
410
- (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
411
- (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':speechRecognizeResult')
412
- ], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
413
- return SpeechRecognizeNative;
414
- }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */ .k));
620
+ /***/ 62547:
621
+ /***/ (function(module) {
415
622
 
416
- _jodit__WEBPACK_IMPORTED_MODULE_7__/* .Jodit */ .x.plugins.add('speech-recognize', SpeechRecognizeNative);
623
+ /*!
624
+ * Jodit Editor (https://xdsoft.net/jodit/)
625
+ * Released under MIT see LICENSE.txt in the project root for license information.
626
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
627
+ */ module.exports = {
628
+ newline: '新行',
629
+ delete: '删除',
630
+ space: '空间',
631
+ 'Speech Recognize': '言语识别',
632
+ Sound: '声音',
633
+ 'Interim Results': '中期业绩'
634
+ };
417
635
 
418
636
 
419
637
  /***/ }),
420
638
 
421
- /***/ 48948:
639
+ /***/ 62896:
422
640
  /***/ (function(module) {
423
641
 
424
- "use strict";
425
-
426
642
  /*!
427
643
  * Jodit Editor (https://xdsoft.net/jodit/)
428
644
  * Released under MIT see LICENSE.txt in the project root for license information.
429
645
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
430
- */
431
- module.exports = {
432
- newline: 'yeni satır',
433
- delete: 'silmek',
434
- space: 'uzay',
435
- 'Speech Recognize': 'Konuşma Tanıma',
436
- Sound: 'Ses',
437
- 'Interim Results': 'Ara Sonuçlar'
646
+ */ module.exports = {
647
+ newline: 'linha',
648
+ delete: 'excluir',
649
+ space: 'espaco',
650
+ 'Speech Recognize': 'Discurso Reconhecer',
651
+ Sound: 'Som',
652
+ 'Interim Results': 'Resultados Provisórios'
438
653
  };
439
654
 
440
655
 
441
656
  /***/ }),
442
657
 
443
- /***/ 50834:
658
+ /***/ 68097:
444
659
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
445
660
 
446
661
  "use strict";
447
662
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
448
- /* harmony export */ F: function() { return /* binding */ execSpellCommand; }
663
+ /* harmony export */ RecognizeManager: function() { return /* binding */ RecognizeManager; }
449
664
  /* harmony export */ });
450
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
665
+ /* harmony import */ var _swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69262);
666
+ /* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73104);
667
+ /* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53429);
668
+ /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25045);
669
+ /* harmony import */ var _swc_helpers_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22248);
670
+ /* harmony import */ var _swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66773);
671
+ /* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34918);
672
+ /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
673
+ /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(84839);
674
+ /* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(60216);
675
+ /* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32560);
676
+ /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(94092);
451
677
  /*!
452
678
  * Jodit Editor (https://xdsoft.net/jodit/)
453
679
  * Released under MIT see LICENSE.txt in the project root for license information.
454
680
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
455
- */
681
+ */ /**
682
+ * @module plugins/speech-recognize
683
+ */
456
684
 
457
- function execSpellCommand(jodit, commandSentence) {
458
- var _a = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__read */ .zs)(commandSentence.split('::'), 2), command = _a[0], value = _a[1];
459
- jodit.execCommand(command, null, value);
460
- }
461
685
 
462
686
 
463
- /***/ }),
464
687
 
465
- /***/ 54711:
466
- /***/ (function(module) {
467
688
 
468
- "use strict";
469
689
 
470
- /*!
471
- * Jodit Editor (https://xdsoft.net/jodit/)
472
- * Released under MIT see LICENSE.txt in the project root for license information.
473
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
474
- */
475
- module.exports = {
476
- newline: '改行',
477
- delete: '削除',
478
- space: 'スペース',
479
- 'Speech Recognize': '音声認識',
480
- Sound: '音',
481
- 'Interim Results': '中間結果'
482
- };
483
690
 
484
691
 
485
- /***/ }),
486
692
 
487
- /***/ 56646:
488
- /***/ (function(module) {
489
693
 
490
- "use strict";
491
694
 
492
- /*!
493
- * Jodit Editor (https://xdsoft.net/jodit/)
494
- * Released under MIT see LICENSE.txt in the project root for license information.
495
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
496
- */
497
- module.exports = {
498
- newline: '換行',
499
- delete: '刪除',
500
- space: '空白',
501
- 'Speech Recognize': '語音辨識',
502
- Sound: '聲音',
503
- 'Interim Results': '階段性辨識結果'
504
- };
695
+ var RecognizeManager = /*#__PURE__*/ function(Eventify) {
696
+ "use strict";
697
+ (0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__._)(RecognizeManager, Eventify);
698
+ function RecognizeManager(async, api) {
699
+ (0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_1__._)(this, RecognizeManager);
700
+ var _this;
701
+ _this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, RecognizeManager), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "async", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_lang", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_continuous", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_interimResults", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "sound", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_isEnabled", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_restartTimeout", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_onSpeechStart", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "_api", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "__interimResults", void 0), _this.async = async, _this._continuous = false, _this._interimResults = false, _this.sound = true, _this._isEnabled = false, _this._restartTimeout = 0, _this._onSpeechStart = function(e) {
702
+ if (!_this._isEnabled) {
703
+ return;
704
+ }
705
+ _this.async.clearTimeout(_this._restartTimeout);
706
+ _this._restartTimeout = _this.async.setTimeout(function() {
707
+ _this.restart();
708
+ _this.emit('pulse', false);
709
+ _this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_11__.WARN);
710
+ }, 5000);
711
+ _this.emit('pulse', true);
712
+ }, _this.__interimResults = '';
713
+ _this._api = api;
714
+ RecognizeManager._instances.add(_this);
715
+ return _this;
716
+ }
717
+ (0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(RecognizeManager, [
718
+ {
719
+ key: "lang",
720
+ get: function get() {
721
+ return this._lang;
722
+ },
723
+ set: function set(v) {
724
+ this._lang = v;
725
+ this._api.lang = v;
726
+ }
727
+ },
728
+ {
729
+ key: "continuous",
730
+ get: function get() {
731
+ return this._continuous;
732
+ },
733
+ set: function set(v) {
734
+ this._continuous = v;
735
+ this._api.continuous = v;
736
+ }
737
+ },
738
+ {
739
+ key: "interimResults",
740
+ get: function get() {
741
+ return this._interimResults;
742
+ },
743
+ set: function set(v) {
744
+ this._interimResults = v;
745
+ this._api.interimResults = v;
746
+ }
747
+ },
748
+ {
749
+ key: "destruct",
750
+ value: function destruct() {
751
+ this.stop();
752
+ RecognizeManager._instances.delete(this);
753
+ (0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_5__._)(RecognizeManager.prototype), "destruct", this).call(this);
754
+ }
755
+ },
756
+ {
757
+ key: "isEnabled",
758
+ get: function get() {
759
+ return this._isEnabled;
760
+ }
761
+ },
762
+ {
763
+ key: "start",
764
+ value: function start() {
765
+ var _this = this;
766
+ if (this._isEnabled) {
767
+ return;
768
+ }
769
+ this._isEnabled = true;
770
+ RecognizeManager._instances.forEach(function(instance) {
771
+ if (instance !== _this) {
772
+ instance.stop();
773
+ }
774
+ });
775
+ try {
776
+ this._api.start();
777
+ } catch (e) {
778
+ this._onError(e);
779
+ this.stop();
780
+ return;
781
+ }
782
+ this.__on('speechstart', this._onSpeechStart).__on('error', this._onError).__on('result', this._onProgress).__on('end', this._onResults);
783
+ }
784
+ },
785
+ {
786
+ key: "stop",
787
+ value: function stop() {
788
+ if (!this._isEnabled) {
789
+ return;
790
+ }
791
+ this._api.abort();
792
+ this._api.stop();
793
+ this.__off('speechstart', this._onSpeechStart).__off('error', this._onError).__off('result', this._onProgress).__off('end', this._onResults);
794
+ this.async.clearTimeout(this._restartTimeout);
795
+ this._isEnabled = false;
796
+ this.emit('pulse', false);
797
+ }
798
+ },
799
+ {
800
+ key: "toggle",
801
+ value: function toggle() {
802
+ if (!this._isEnabled) {
803
+ this.start();
804
+ } else {
805
+ this.stop();
806
+ }
807
+ }
808
+ },
809
+ {
810
+ key: "restart",
811
+ value: function restart() {
812
+ this.stop();
813
+ this.start();
814
+ }
815
+ },
816
+ {
817
+ key: "__on",
818
+ value: function __on(event, callback) {
819
+ this._api.addEventListener(event, callback);
820
+ return this;
821
+ }
822
+ },
823
+ {
824
+ key: "__off",
825
+ value: function __off(event, callback) {
826
+ this._api.removeEventListener(event, callback);
827
+ return this;
828
+ }
829
+ },
830
+ {
831
+ key: "_onResults",
832
+ value: function _onResults(e) {
833
+ this.emit('pulse', false);
834
+ this.emit('result', this.__interimResults);
835
+ this.__interimResults = '';
836
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_11__.PII);
837
+ this.restart();
838
+ }
839
+ },
840
+ {
841
+ key: "_onProgress",
842
+ value: function _onProgress(e) {
843
+ if (!this._isEnabled) {
844
+ return;
845
+ }
846
+ this.__interimResults = '';
847
+ if (!e.results) {
848
+ return;
849
+ }
850
+ for(var i = 0; i < e.results.length; i++){
851
+ var resultItem = e.results.item(i);
852
+ if (resultItem.length) {
853
+ var transcript = resultItem.item(0).transcript;
854
+ this.__interimResults += transcript;
855
+ }
856
+ }
857
+ if (this.__interimResults) {
858
+ this.emit('progress', this.__interimResults);
859
+ }
860
+ }
861
+ },
862
+ {
863
+ key: "_onError",
864
+ value: function _onError(e) {
865
+ if (e.error === 'voice-unavailable') {
866
+ this.emit('error', 'Voice unavailable');
867
+ }
868
+ if (e.error === 'not-allowed') {
869
+ this.emit('error', 'Not allowed');
870
+ }
871
+ if (e.error === 'language-unavailable' || // @ts-ignore
872
+ e.error === 'language-not-supported') {
873
+ this.emit('error', 'Language unavailable');
874
+ }
875
+ this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_11__.WARN);
876
+ this.emit('pulse', false);
877
+ this.stop();
878
+ }
879
+ },
880
+ {
881
+ key: "_makeSound",
882
+ value: function _makeSound(frequency) {
883
+ if (this.sound) {
884
+ (0,_sound__WEBPACK_IMPORTED_MODULE_10__.sound)({
885
+ frequency: frequency
886
+ });
887
+ }
888
+ }
889
+ }
890
+ ]);
891
+ return RecognizeManager;
892
+ }(jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_9__.Eventify);
893
+ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(RecognizeManager, "_instances", new Set());
894
+ RecognizeManager = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
895
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.autobind
896
+ ], RecognizeManager);
505
897
 
506
898
 
507
899
  /***/ }),
508
900
 
509
- /***/ 61593:
901
+ /***/ 72850:
510
902
  /***/ (function(module) {
511
903
 
512
- "use strict";
513
-
514
904
  /*!
515
905
  * Jodit Editor (https://xdsoft.net/jodit/)
516
906
  * Released under MIT see LICENSE.txt in the project root for license information.
517
907
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
518
- */
519
- module.exports = {
520
- newline: 'الخط الجديد',
521
- delete: 'حذف',
522
- space: 'الفضاء',
523
- 'Speech Recognize': 'التعرف على الكلام',
524
- Sound: 'الصوت',
525
- 'Interim Results': 'النتائج المؤقتة'
908
+ */ module.exports = {
909
+ newline: 'nylinje',
910
+ delete: 'slette',
911
+ space: 'rom',
912
+ 'Speech Recognize': 'Talegjenkjenning',
913
+ Sound: 'Lyd',
914
+ 'Interim Results': 'Midlertidige resultater'
526
915
  };
527
916
 
528
917
 
529
918
  /***/ }),
530
919
 
531
- /***/ 64149:
920
+ /***/ 73363:
532
921
  /***/ (function(module) {
533
922
 
534
- "use strict";
535
-
536
923
  /*!
537
924
  * Jodit Editor (https://xdsoft.net/jodit/)
538
925
  * Released under MIT see LICENSE.txt in the project root for license information.
539
926
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
540
- */
541
- module.exports = {
542
- newline: 'linha',
543
- delete: 'excluir',
544
- space: 'espaco',
545
- 'Speech Recognize': 'Discurso Reconhecer',
546
- Sound: 'Som',
547
- 'Interim Results': 'Resultados Provisórios'
927
+ */ module.exports = {
928
+ newline: '줄 바꿈',
929
+ delete: '삭제',
930
+ space: '공간',
931
+ 'Speech Recognize': '음성 인식',
932
+ Sound: '소리',
933
+ 'Interim Results': '중간 결과'
548
934
  };
549
935
 
550
936
 
551
937
  /***/ }),
552
938
 
553
- /***/ 64458:
939
+ /***/ 73759:
554
940
  /***/ (function(module) {
555
941
 
556
- "use strict";
557
-
558
942
  /*!
559
943
  * Jodit Editor (https://xdsoft.net/jodit/)
560
944
  * Released under MIT see LICENSE.txt in the project root for license information.
561
945
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
562
- */
563
- module.exports = {
564
- newline: 'řádek',
565
- delete: 'odstranit',
566
- space: 'prostora',
567
- 'Speech Recognize': 'Rozpoznání Řeči',
568
- Sound: 'Zvuk',
569
- 'Interim Results': 'Průběžné Výsledky'
946
+ */ module.exports = {
947
+ newline: 'regel',
948
+ delete: 'verwijderen',
949
+ space: 'ruimte',
950
+ 'Speech Recognize': 'Spraak Herkennen',
951
+ Sound: 'Geluid',
952
+ 'Interim Results': 'Tussentijdse Resultaten'
570
953
  };
571
954
 
572
955
 
573
956
  /***/ }),
574
957
 
575
- /***/ 68632:
958
+ /***/ 74762:
576
959
  /***/ (function(module) {
577
960
 
578
- "use strict";
579
-
580
961
  /*!
581
962
  * Jodit Editor (https://xdsoft.net/jodit/)
582
963
  * Released under MIT see LICENSE.txt in the project root for license information.
583
964
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
584
- */
585
- module.exports = {
586
- newline: '줄 바꿈',
587
- delete: '삭제',
588
- space: '공간',
589
- 'Speech Recognize': '음성 인식',
590
- Sound: '소리',
591
- 'Interim Results': '중간 결과'
965
+ */ module.exports = {
966
+ newline: 'Шинэ мөр',
967
+ delete: 'Устгах',
968
+ space: 'Зай',
969
+ 'Speech Recognize': 'Дуу хоолой таних',
970
+ Sound: 'Дуу',
971
+ 'Interim Results': 'Түр зуурын үр дүн'
592
972
  };
593
973
 
594
974
 
595
975
  /***/ }),
596
976
 
597
- /***/ 71096:
977
+ /***/ 75143:
598
978
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
599
979
 
600
980
  "use strict";
601
- /* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9810);
602
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98253);
603
- /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26150);
604
- /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72197);
605
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
606
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
607
- /* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71722);
608
- /* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(93676);
981
+ /* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22289);
982
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
983
+ /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
984
+ /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36400);
985
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
986
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
987
+ /* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97743);
988
+ /* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68097);
609
989
  /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22227);
610
990
  /* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__);
611
991
  /*!
612
992
  * Jodit Editor (https://xdsoft.net/jodit/)
613
993
  * Released under MIT see LICENSE.txt in the project root for license information.
614
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
615
- */
616
-
994
+ * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
995
+ */ /**
996
+ * @module plugins/speech-recognize
997
+ */
617
998
 
618
999
 
619
1000
 
@@ -622,8 +1003,8 @@ module.exports = {
622
1003
 
623
1004
 
624
1005
 
625
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.speechRecognize = {
626
- api: typeof _helpers_api__WEBPACK_IMPORTED_MODULE_6__/* .SpeechRecognition */ .o !== 'undefined' ? _helpers_api__WEBPACK_IMPORTED_MODULE_6__/* .SpeechRecognition */ .o : null,
1006
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.speechRecognize = {
1007
+ api: typeof _helpers_api__WEBPACK_IMPORTED_MODULE_6__.SpeechRecognition !== 'undefined' ? _helpers_api__WEBPACK_IMPORTED_MODULE_6__.SpeechRecognition : null,
627
1008
  sound: true,
628
1009
  continuous: false,
629
1010
  interimResults: true,
@@ -641,55 +1022,55 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.speechRecogn
641
1022
  'select all': 'selectall'
642
1023
  }
643
1024
  };
644
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default()));
645
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.speechRecognize = {
646
- isVisible: function (j) {
1025
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default()));
1026
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.speechRecognize = {
1027
+ isVisible: function isVisible(j) {
647
1028
  return Boolean(j.o.speechRecognize.api);
648
1029
  },
649
- isActive: function (jodit, _) {
650
- var api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
1030
+ isActive: function isActive(jodit, _) {
1031
+ var api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech');
651
1032
  return Boolean(api === null || api === void 0 ? void 0 : api.isEnabled);
652
1033
  },
653
- isDisabled: function (jodit) {
1034
+ isDisabled: function isDisabled(jodit) {
654
1035
  return !jodit.o.speechRecognize.api;
655
1036
  },
656
- exec: function (jodit, current, _a) {
657
- var _b;
658
- var button = _a.button, control = _a.control;
659
- var _c = jodit.o.speechRecognize, ApiConstructor = _c.api, lang = _c.lang, continuous = _c.continuous, interimResults = _c.interimResults, sound = _c.sound;
1037
+ exec: function exec(jodit, current, param) {
1038
+ var button = param.button, control = param.control;
1039
+ var _jodit_o_speechRecognize = jodit.o.speechRecognize, ApiConstructor = _jodit_o_speechRecognize.api, lang = _jodit_o_speechRecognize.lang, continuous = _jodit_o_speechRecognize.continuous, interimResults = _jodit_o_speechRecognize.interimResults, sound = _jodit_o_speechRecognize.sound;
660
1040
  if (!ApiConstructor) {
661
1041
  jodit.alert('Speech recognize API unsupported in your browser');
662
1042
  return;
663
1043
  }
664
- var api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech');
1044
+ var api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech');
665
1045
  if (!api) {
666
1046
  var nativeApi = new ApiConstructor();
667
- api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__/* .RecognizeManager */ .g(jodit.async, nativeApi);
668
- api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(lang)
669
- ? lang
670
- : ((_b = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__/* .attr */ .C)(jodit.od.documentElement, 'lang')) !== null && _b !== void 0 ? _b : undefined);
1047
+ api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__.RecognizeManager(jodit.async, nativeApi);
1048
+ var _attr;
1049
+ api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString)(lang) ? lang : (_attr = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(jodit.od.documentElement, 'lang')) !== null && _attr !== void 0 ? _attr : undefined;
671
1050
  api.continuous = continuous;
672
1051
  api.interimResults = interimResults;
673
1052
  api.sound = sound;
674
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', api);
675
- api.on('pulse', function (enable) {
1053
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech', api);
1054
+ api.on('pulse', function(enable) {
676
1055
  button.setMod('pulse', enable);
677
1056
  });
678
- api.on('result', function (text) {
1057
+ api.on('result', function(text) {
679
1058
  return jodit.e.fire('speechRecognizeResult', text);
680
1059
  });
681
- api.on('progress', function (text) {
1060
+ api.on('progress', function(text) {
682
1061
  return jodit.e.fire('speechRecognizeProgressResult', text);
683
1062
  });
684
- api.on('error', function (text) { return jodit.message.error(text); });
685
- button.hookStatus('beforeDestruct', function () {
686
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech', null);
1063
+ api.on('error', function(text) {
1064
+ return jodit.message.error(text);
1065
+ });
1066
+ button.hookStatus('beforeDestruct', function() {
1067
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech', null);
687
1068
  api.destruct();
688
1069
  });
689
1070
  }
690
1071
  if (control.args) {
691
1072
  var key = control.args[0];
692
- if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__/* .isBoolean */ .L)(api[key])) {
1073
+ if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__.isBoolean)(api[key])) {
693
1074
  api[key] = !api[key];
694
1075
  if (api.isEnabled) {
695
1076
  api.restart();
@@ -710,9 +1091,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.spe
710
1091
  sound: 'Sound',
711
1092
  interimResults: 'Interim Results'
712
1093
  },
713
- childTemplate: function (jodit, key, value) {
714
- var _a;
715
- var api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__/* .dataBind */ .m)(jodit, 'speech'), checked = (_a = api === null || api === void 0 ? void 0 : api[key]) !== null && _a !== void 0 ? _a : jodit.o.speechRecognize[key];
1094
+ childTemplate: function childTemplate(jodit, key, value) {
1095
+ var _api_key;
1096
+ var api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech'), checked = (_api_key = api === null || api === void 0 ? void 0 : api[key]) !== null && _api_key !== void 0 ? _api_key : jodit.o.speechRecognize[key];
716
1097
  return "<span class='jodit-speech-recognize__list-item'><input ".concat(checked ? 'checked' : '', " class='jodit-checkbox' type='checkbox'>&nbsp;").concat(value, "</span>");
717
1098
  },
718
1099
  mods: {
@@ -723,61 +1104,14 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.spe
723
1104
 
724
1105
  /***/ }),
725
1106
 
726
- /***/ 71722:
727
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
728
-
729
- "use strict";
730
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
731
- /* harmony export */ o: function() { return /* binding */ SpeechRecognition; }
732
- /* harmony export */ });
733
- /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
734
- /*!
735
- * Jodit Editor (https://xdsoft.net/jodit/)
736
- * Released under MIT see LICENSE.txt in the project root for license information.
737
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
738
- */
739
-
740
- var SpeechRecognition = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow
741
- ? jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.SpeechRecognition ||
742
- jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitSpeechRecognition
743
- : undefined;
744
-
745
-
746
- /***/ }),
747
-
748
- /***/ 76769:
749
- /***/ (function(module) {
750
-
751
- "use strict";
752
-
753
- /*!
754
- * Jodit Editor (https://xdsoft.net/jodit/)
755
- * Released under MIT see LICENSE.txt in the project root for license information.
756
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
757
- */
758
- module.exports = {
759
- newline: 'Шинэ мөр',
760
- delete: 'Устгах',
761
- space: 'Зай',
762
- 'Speech Recognize': 'Дуу хоолой таних',
763
- Sound: 'Дуу',
764
- 'Interim Results': 'Түр зуурын үр дүн'
765
- };
766
-
767
-
768
- /***/ }),
769
-
770
- /***/ 77995:
1107
+ /***/ 81900:
771
1108
  /***/ (function(module) {
772
1109
 
773
- "use strict";
774
-
775
1110
  /*!
776
1111
  * Jodit Editor (https://xdsoft.net/jodit/)
777
1112
  * Released under MIT see LICENSE.txt in the project root for license information.
778
1113
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
779
- */
780
- module.exports = {
1114
+ */ module.exports = {
781
1115
  newline: 'newline',
782
1116
  delete: 'Hapus',
783
1117
  space: 'ruang',
@@ -789,106 +1123,54 @@ module.exports = {
789
1123
 
790
1124
  /***/ }),
791
1125
 
792
- /***/ 81629:
793
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
794
-
795
- "use strict";
796
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
797
- /* harmony export */ N: function() { return /* binding */ PII; },
798
- /* harmony export */ Z: function() { return /* binding */ WARN; }
799
- /* harmony export */ });
800
- /*!
801
- * Jodit Editor (https://xdsoft.net/jodit/)
802
- * Released under MIT see LICENSE.txt in the project root for license information.
803
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
804
- */
805
- /**
806
- * @module plugins/speech-recognize
807
- * @internal
808
- */
809
- var PII = 440;
810
- var WARN = 940;
811
-
812
-
813
- /***/ }),
814
-
815
- /***/ 84059:
816
- /***/ (function(module) {
817
-
818
- "use strict";
819
-
820
- /*!
821
- * Jodit Editor (https://xdsoft.net/jodit/)
822
- * Released under MIT see LICENSE.txt in the project root for license information.
823
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
824
- */
825
- module.exports = {
826
- 'Speech Recognize': 'Puheentunnistus',
827
- newline: 'uusi rivi',
828
- delete: 'poistaa',
829
- space: 'tilaa',
830
- Sound: 'Ääni',
831
- 'Interim Results': 'Välitulokset'
832
- };
833
-
834
-
835
- /***/ }),
836
-
837
- /***/ 84370:
1126
+ /***/ 93423:
838
1127
  /***/ (function(module) {
839
1128
 
840
- "use strict";
841
-
842
1129
  /*!
843
1130
  * Jodit Editor (https://xdsoft.net/jodit/)
844
1131
  * Released under MIT see LICENSE.txt in the project root for license information.
845
1132
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
846
- */
847
- module.exports = {
848
- newline: '新行',
849
- delete: '删除',
850
- space: '空间',
851
- 'Speech Recognize': '言语识别',
852
- Sound: '声音',
853
- 'Interim Results': '中期业绩'
1133
+ */ module.exports = {
1134
+ newline: 'yeni satır',
1135
+ delete: 'silmek',
1136
+ space: 'uzay',
1137
+ 'Speech Recognize': 'Konuşma Tanıma',
1138
+ Sound: 'Ses',
1139
+ 'Interim Results': 'Ara Sonuçlar'
854
1140
  };
855
1141
 
856
1142
 
857
1143
  /***/ }),
858
1144
 
859
- /***/ 85454:
860
- /***/ (function(module) {
1145
+ /***/ 94092:
1146
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
861
1147
 
862
1148
  "use strict";
863
-
1149
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1150
+ /* harmony export */ PII: function() { return /* binding */ PII; },
1151
+ /* harmony export */ WARN: function() { return /* binding */ WARN; }
1152
+ /* harmony export */ });
864
1153
  /*!
865
1154
  * Jodit Editor (https://xdsoft.net/jodit/)
866
1155
  * Released under MIT see LICENSE.txt in the project root for license information.
867
1156
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
868
- */
869
- module.exports = {
870
- newline: 'newline',
871
- delete: 'usunąć',
872
- space: 'przestrzeń',
873
- 'Speech Recognize': 'Rozpoznawanie Mowy',
874
- Sound: 'Dźwięk',
875
- 'Interim Results': 'Wyniki Okresowe'
876
- };
1157
+ */ /**
1158
+ * @module plugins/speech-recognize
1159
+ * @internal
1160
+ */ var PII = 440;
1161
+ var WARN = 940;
877
1162
 
878
1163
 
879
1164
  /***/ }),
880
1165
 
881
- /***/ 87710:
1166
+ /***/ 97509:
882
1167
  /***/ (function(module) {
883
1168
 
884
- "use strict";
885
-
886
1169
  /*!
887
1170
  * Jodit Editor (https://xdsoft.net/jodit/)
888
1171
  * Released under MIT see LICENSE.txt in the project root for license information.
889
1172
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
890
- */
891
- module.exports = {
1173
+ */ module.exports = {
892
1174
  newline: 'nueva línea',
893
1175
  delete: 'eliminar',
894
1176
  space: 'espacio',
@@ -900,326 +1182,22 @@ module.exports = {
900
1182
 
901
1183
  /***/ }),
902
1184
 
903
- /***/ 89601:
904
- /***/ (function(module) {
905
-
906
- "use strict";
907
-
908
- /*!
909
- * Jodit Editor (https://xdsoft.net/jodit/)
910
- * Released under MIT see LICENSE.txt in the project root for license information.
911
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
912
- */
913
- module.exports = {
914
- newline: 'Zeilenumbruch',
915
- delete: 'löschen',
916
- space: 'Raum',
917
- 'Speech Recognize': 'Sprache Erkennen',
918
- Sound: 'Sound',
919
- 'Interim Results': 'Zwischenergebnis'
920
- };
921
-
922
-
923
- /***/ }),
924
-
925
- /***/ 92315:
926
- /***/ (function(module) {
927
-
928
- "use strict";
929
-
930
- /*!
931
- * Jodit Editor (https://xdsoft.net/jodit/)
932
- * Released under MIT see LICENSE.txt in the project root for license information.
933
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
934
- */
935
- module.exports = {
936
- newline: 'nuova riga',
937
- delete: 'eliminare',
938
- space: 'spazio',
939
- 'Speech Recognize': 'Discorso Riconoscere',
940
- Sound: 'Suono',
941
- 'Interim Results': 'Risultati intermedi'
942
- };
943
-
944
-
945
- /***/ }),
946
-
947
- /***/ 93676:
948
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
949
-
950
- "use strict";
951
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
952
- /* harmony export */ g: function() { return /* binding */ RecognizeManager; }
953
- /* harmony export */ });
954
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
955
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
956
- /* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43431);
957
- /* harmony import */ var _sound__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95473);
958
- /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81629);
959
- /*!
960
- * Jodit Editor (https://xdsoft.net/jodit/)
961
- * Released under MIT see LICENSE.txt in the project root for license information.
962
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
963
- */
964
-
965
-
966
-
967
-
968
-
969
- var RecognizeManager = /** @class */ (function (_super) {
970
- (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__extends */ .C6)(RecognizeManager, _super);
971
- function RecognizeManager(async, api) {
972
- var _this = _super.call(this) || this;
973
- _this.async = async;
974
- _this._continuous = false;
975
- _this._interimResults = false;
976
- _this.sound = true;
977
- _this._isEnabled = false;
978
- _this._restartTimeout = 0;
979
- _this._onSpeechStart = function (e) {
980
- if (!_this._isEnabled) {
981
- return;
982
- }
983
- _this.async.clearTimeout(_this._restartTimeout);
984
- _this._restartTimeout = _this.async.setTimeout(function () {
985
- _this.restart();
986
- _this.emit('pulse', false);
987
- _this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
988
- }, 5000);
989
- _this.emit('pulse', true);
990
- };
991
- _this.__interimResults = '';
992
- _this._api = api;
993
- RecognizeManager_1._instances.add(_this);
994
- return _this;
995
- }
996
- RecognizeManager_1 = RecognizeManager;
997
- Object.defineProperty(RecognizeManager.prototype, "lang", {
998
- get: function () {
999
- return this._lang;
1000
- },
1001
- set: function (v) {
1002
- this._lang = v;
1003
- this._api.lang = v;
1004
- },
1005
- enumerable: false,
1006
- configurable: true
1007
- });
1008
- Object.defineProperty(RecognizeManager.prototype, "continuous", {
1009
- get: function () {
1010
- return this._continuous;
1011
- },
1012
- set: function (v) {
1013
- this._continuous = v;
1014
- this._api.continuous = v;
1015
- },
1016
- enumerable: false,
1017
- configurable: true
1018
- });
1019
- Object.defineProperty(RecognizeManager.prototype, "interimResults", {
1020
- get: function () {
1021
- return this._interimResults;
1022
- },
1023
- set: function (v) {
1024
- this._interimResults = v;
1025
- this._api.interimResults = v;
1026
- },
1027
- enumerable: false,
1028
- configurable: true
1029
- });
1030
- RecognizeManager.prototype.destruct = function () {
1031
- this.stop();
1032
- RecognizeManager_1._instances.delete(this);
1033
- _super.prototype.destruct.call(this);
1034
- };
1035
- Object.defineProperty(RecognizeManager.prototype, "isEnabled", {
1036
- get: function () {
1037
- return this._isEnabled;
1038
- },
1039
- enumerable: false,
1040
- configurable: true
1041
- });
1042
- RecognizeManager.prototype.start = function () {
1043
- var _this = this;
1044
- if (this._isEnabled) {
1045
- return;
1046
- }
1047
- this._isEnabled = true;
1048
- RecognizeManager_1._instances.forEach(function (instance) {
1049
- if (instance !== _this) {
1050
- instance.stop();
1051
- }
1052
- });
1053
- try {
1054
- this._api.start();
1055
- }
1056
- catch (e) {
1057
- this._onError(e);
1058
- this.stop();
1059
- return;
1060
- }
1061
- this.__on('speechstart', this._onSpeechStart)
1062
- .__on('error', this._onError)
1063
- .__on('result', this._onProgress)
1064
- .__on('end', this._onResults);
1065
- };
1066
- RecognizeManager.prototype.stop = function () {
1067
- if (!this._isEnabled) {
1068
- return;
1069
- }
1070
- this._api.abort();
1071
- this._api.stop();
1072
- this.__off('speechstart', this._onSpeechStart)
1073
- .__off('error', this._onError)
1074
- .__off('result', this._onProgress)
1075
- .__off('end', this._onResults);
1076
- this.async.clearTimeout(this._restartTimeout);
1077
- this._isEnabled = false;
1078
- this.emit('pulse', false);
1079
- };
1080
- RecognizeManager.prototype.toggle = function () {
1081
- if (!this._isEnabled) {
1082
- this.start();
1083
- }
1084
- else {
1085
- this.stop();
1086
- }
1087
- };
1088
- RecognizeManager.prototype.restart = function () {
1089
- this.stop();
1090
- this.start();
1091
- };
1092
- RecognizeManager.prototype.__on = function (event, callback) {
1093
- this._api.addEventListener(event, callback);
1094
- return this;
1095
- };
1096
- RecognizeManager.prototype.__off = function (event, callback) {
1097
- this._api.removeEventListener(event, callback);
1098
- return this;
1099
- };
1100
- RecognizeManager.prototype._onResults = function (e) {
1101
- this.emit('pulse', false);
1102
- this.emit('result', this.__interimResults);
1103
- this.__interimResults = '';
1104
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .PII */ .N);
1105
- this.restart();
1106
- };
1107
- RecognizeManager.prototype._onProgress = function (e) {
1108
- if (!this._isEnabled) {
1109
- return;
1110
- }
1111
- this.__interimResults = '';
1112
- if (!e.results) {
1113
- return;
1114
- }
1115
- for (var i = 0; i < e.results.length; i++) {
1116
- var resultItem = e.results.item(i);
1117
- if (resultItem.length) {
1118
- var transcript = resultItem.item(0).transcript;
1119
- this.__interimResults += transcript;
1120
- }
1121
- }
1122
- if (this.__interimResults) {
1123
- this.emit('progress', this.__interimResults);
1124
- }
1125
- };
1126
- RecognizeManager.prototype._onError = function (e) {
1127
- if (e.error === 'voice-unavailable') {
1128
- this.emit('error', 'Voice unavailable');
1129
- }
1130
- if (e.error === 'not-allowed') {
1131
- this.emit('error', 'Not allowed');
1132
- }
1133
- if (e.error === 'language-unavailable' ||
1134
- // @ts-ignore
1135
- e.error === 'language-not-supported') {
1136
- this.emit('error', 'Language unavailable');
1137
- }
1138
- this._makeSound(jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_4__/* .WARN */ .Z);
1139
- this.emit('pulse', false);
1140
- this.stop();
1141
- };
1142
- RecognizeManager.prototype._makeSound = function (frequency) {
1143
- if (this.sound) {
1144
- (0,_sound__WEBPACK_IMPORTED_MODULE_3__/* .sound */ .s)({ frequency: frequency });
1145
- }
1146
- };
1147
- var RecognizeManager_1;
1148
- RecognizeManager._instances = new Set();
1149
- RecognizeManager = RecognizeManager_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
1150
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
1151
- ], RecognizeManager);
1152
- return RecognizeManager;
1153
- }(jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_2__/* .Eventify */ .h));
1154
-
1155
-
1156
-
1157
- /***/ }),
1158
-
1159
- /***/ 95473:
1185
+ /***/ 97743:
1160
1186
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1161
1187
 
1162
1188
  "use strict";
1163
1189
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1164
- /* harmony export */ s: function() { return /* binding */ sound; }
1190
+ /* harmony export */ SpeechRecognition: function() { return /* binding */ SpeechRecognition; }
1165
1191
  /* harmony export */ });
1166
- /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
1167
- /* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81629);
1192
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
1168
1193
  /*!
1169
1194
  * Jodit Editor (https://xdsoft.net/jodit/)
1170
1195
  * Released under MIT see LICENSE.txt in the project root for license information.
1171
1196
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1172
- */
1173
- /**
1197
+ */ /**
1174
1198
  * @module plugins/speech-recognize
1175
- */
1176
-
1177
-
1178
- /**
1179
- * @internal
1180
- */
1181
- function sound(_a) {
1182
- var _b = _a === void 0 ? {} : _a, _c = _b.sec, sec = _c === void 0 ? 0.1 : _c, _d = _b.frequency, frequency = _d === void 0 ? jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__/* .PII */ .N : _d, _e = _b.gain, gain = _e === void 0 ? 0.1 : _e, _f = _b.type, type = _f === void 0 ? 'sine' : _f;
1183
- if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow ||
1184
- (typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext === 'undefined' &&
1185
- typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext === 'undefined')) {
1186
- return;
1187
- }
1188
- // one context per document
1189
- var context = new (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext ||
1190
- jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext)();
1191
- var vol = context.createGain();
1192
- var osc = context.createOscillator();
1193
- osc.type = type;
1194
- osc.frequency.value = frequency; // Hz
1195
- osc.connect(vol);
1196
- vol.connect(context.destination);
1197
- osc.start(); // start the oscillator
1198
- osc.stop(context.currentTime + sec);
1199
- vol.gain.value = gain;
1200
- }
1201
-
1202
-
1203
- /***/ }),
1204
-
1205
- /***/ 95700:
1206
- /***/ (function(module) {
1207
-
1208
- "use strict";
1209
-
1210
- /*!
1211
- * Jodit Editor (https://xdsoft.net/jodit/)
1212
- * Released under MIT see LICENSE.txt in the project root for license information.
1213
- * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1214
- */
1215
- module.exports = {
1216
- newline: 'новая строка|перенос|ентер',
1217
- delete: 'видалити',
1218
- space: 'пробел',
1219
- 'Speech Recognize': 'Распознавание речи',
1220
- Sound: 'Звук',
1221
- 'Interim Results': 'Проміжні результати'
1222
- };
1199
+ */
1200
+ var SpeechRecognition = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow ? jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.SpeechRecognition || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitSpeechRecognition : undefined;
1223
1201
 
1224
1202
 
1225
1203
  /***/ })
@@ -1227,7 +1205,7 @@ module.exports = {
1227
1205
  },
1228
1206
  /******/ function(__webpack_require__) { // webpackRuntimeModules
1229
1207
  /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
1230
- /******/ var __webpack_exports__ = (__webpack_exec__(37873));
1208
+ /******/ var __webpack_exports__ = (__webpack_exec__(31262));
1231
1209
  /******/ return __webpack_exports__;
1232
1210
  /******/ }
1233
1211
  ]);