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