jodit 4.5.11 → 4.5.12

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