jodit 4.10.2 → 4.10.3

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