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