New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-ai

Package Overview
Dependencies
Maintainers
1
Versions
653
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-ai - npm Package Compare versions

Comparing version 0.0.0-nightly-20231031.0 to 0.0.0-nightly-20231101.0

6

package.json
{
"name": "@ckeditor/ckeditor5-ai",
"version": "0.0.0-nightly-20231031.0",
"version": "0.0.0-nightly-20231101.0",
"description": "AI-powered features for CKEditor 5.",

@@ -26,4 +26,4 @@ "license": "SEE LICENSE IN LICENSE.md",

"dependencies": {
"ckeditor5": "0.0.0-nightly-20231031.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231031.0",
"ckeditor5": "0.0.0-nightly-20231101.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20231101.0",
"lodash-es": "4.17.21"

@@ -30,0 +30,0 @@ },

@@ -23,2 +23,2 @@ /*

*/
const _0x5a7d=['Translate\x20the\x20content\x20to\x20Spanish\x20language.','casual','pluginName','English','German','French','Arabic','poetic','ai-invalid-license-key','forEach','changeTone','Translate\x20the\x20content\x20to\x20German\x20language.','aiAssistant.extraCommandGroups','translatePortuguese','Continue','translateFrench','Legal','define','aiLicenseKeyTrial','changeStyle','translateEnglish','Summarize','makeShorter','Professional','Simplify\x20language','summarize','friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','aiLicenseKeyTrialLimit:operations','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Casual','Improve\x20writing','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Edit\x20or\x20review','Direct','ai-trial-license-key-reached-limit-changes','Translate\x20to\x20%0','editOrReview','requires','generate','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translateChinese','filter','Change\x20style','Translate\x20the\x20content\x20to\x20French\x20language.','AIAssistant','aiAssistant.commands','Confident','Make\x20longer','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','config','Business','aiLicenseKeyInvalid','Journalism','continue','Hindi','get','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','includes','commands','concat','simplifyLanguage','Make\x20shorter','Poetic','translateSpanish','_licenseKeyCheckInterval','translateGerman','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','makeLonger','Portuguese','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','licenseKey','translateArabic','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Spanish','groupId','aiLicenseKeyValid','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Change\x20tone','translate','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Friendly','journalism','confident','Translate\x20the\x20content\x20to\x20Arabic\x20language.','legal','editor','push','find','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translateHindi','Simplified\x20Chinese','professional','Generate\x20from\x20selection','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','improveWriting','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','locale','set','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','direct','Translate\x20the\x20content\x20to\x20English\x20language.'];(function(_0x48654f,_0x5a7d4e){const _0x2af99b=function(_0x53954b){while(--_0x53954b){_0x48654f['push'](_0x48654f['shift']());}};_0x2af99b(++_0x5a7d4e);}(_0x5a7d,0x194));const _0x2af9=function(_0x48654f,_0x5a7d4e){_0x48654f=_0x48654f-0x0;let _0x2af99b=_0x5a7d[_0x48654f];return _0x2af99b;};import{CKEditorError as _0x5eb60a}from'ckeditor5/src/utils';import{Plugin as _0x197aa4}from'ckeditor5/src/core';import _0x160c3e from'./aiassistantui';import _0x469e45 from'./aiassistantediting';import _0x1163dc from'./aiconnector';import{getTranslation as _0x14cf54}from'./utils/common-translations';export const getDefaultCommands=_0x56012c=>[{'groupId':_0x2af9('0x31'),'groupLabel':_0x14cf54(_0x56012c,_0x2af9('0x2d')),'commands':[{'id':_0x2af9('0x4'),'label':_0x14cf54(_0x56012c,'Improve\x20writing'),'prompt':_0x2af9('0x5')},{'id':'makeShorter','label':_0x14cf54(_0x56012c,_0x2af9('0x4a')),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':_0x2af9('0x51'),'label':_0x14cf54(_0x56012c,_0x2af9('0x3c')),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':_0x14cf54(_0x56012c,_0x2af9('0x24')),'prompt':_0x2af9('0x4f')}]},{'groupId':_0x2af9('0x33'),'groupLabel':_0x14cf54(_0x56012c,_0x2af9('0x2')),'commands':[{'id':_0x2af9('0x25'),'label':_0x14cf54(_0x56012c,_0x2af9('0x21')),'prompt':_0x2af9('0x66')},{'id':_0x2af9('0x42'),'label':_0x14cf54(_0x56012c,_0x2af9('0x1a')),'prompt':_0x2af9('0x34')}]},{'groupId':_0x2af9('0x16'),'groupLabel':_0x14cf54(_0x56012c,_0x2af9('0x5b')),'commands':[{'id':_0x2af9('0x1'),'label':_0x14cf54(_0x56012c,_0x2af9('0x23')),'prompt':_0x2af9('0x8')},{'id':_0x2af9('0xd'),'label':_0x14cf54(_0x56012c,_0x2af9('0x2a')),'prompt':_0x2af9('0x45')},{'id':_0x2af9('0xa'),'label':_0x14cf54(_0x56012c,_0x2af9('0x2e')),'prompt':_0x2af9('0x50')},{'id':'confident','label':_0x14cf54(_0x56012c,_0x2af9('0x3b')),'prompt':_0x2af9('0x3d')},{'id':_0x2af9('0x26'),'label':_0x14cf54(_0x56012c,_0x2af9('0x5e')),'prompt':_0x2af9('0x5a')}]},{'groupId':_0x2af9('0x1f'),'groupLabel':_0x14cf54(_0x56012c,'Change\x20style'),'commands':[{'id':'business','label':_0x14cf54(_0x56012c,_0x2af9('0x3f')),'prompt':_0x2af9('0x27')},{'id':'legal','label':_0x14cf54(_0x56012c,'Legal'),'prompt':_0x2af9('0x53')},{'id':'journalism','label':_0x14cf54(_0x56012c,_0x2af9('0x41')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':_0x2af9('0x13'),'label':_0x14cf54(_0x56012c,_0x2af9('0x4b')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':_0x2af9('0x5c'),'groupLabel':_0x14cf54(_0x56012c,'Translate'),'commands':[{'id':'translateEnglish','label':_0x14cf54(_0x56012c,_0x2af9('0x30'),[_0x14cf54(_0x56012c,_0x2af9('0xf'))]),'prompt':_0x2af9('0xb')},{'id':_0x2af9('0x4c'),'label':_0x14cf54(_0x56012c,_0x2af9('0x30'),[_0x14cf54(_0x56012c,_0x2af9('0x57'))]),'prompt':_0x2af9('0xc')},{'id':_0x2af9('0x19'),'label':_0x14cf54(_0x56012c,_0x2af9('0x30'),[_0x14cf54(_0x56012c,_0x2af9('0x52'))]),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':_0x2af9('0x4e'),'label':_0x14cf54(_0x56012c,_0x2af9('0x30'),[_0x14cf54(_0x56012c,_0x2af9('0x10'))]),'prompt':_0x2af9('0x17')},{'id':_0x2af9('0x1b'),'label':_0x14cf54(_0x56012c,_0x2af9('0x30'),[_0x14cf54(_0x56012c,_0x2af9('0x11'))]),'prompt':_0x2af9('0x38')},{'id':_0x2af9('0x35'),'label':_0x14cf54(_0x56012c,_0x2af9('0x30'),[_0x14cf54(_0x56012c,_0x2af9('0x0'))]),'prompt':_0x2af9('0x29')},{'id':'translateHindi','label':_0x14cf54(_0x56012c,'Translate\x20to\x20%0',[_0x14cf54(_0x56012c,_0x2af9('0x43'))]),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':_0x2af9('0x55'),'label':_0x14cf54(_0x56012c,_0x2af9('0x30'),[_0x14cf54(_0x56012c,_0x2af9('0x12'))]),'prompt':_0x2af9('0x61')}]}];export default class l extends _0x197aa4{static get[_0x2af9('0x32')](){return[_0x160c3e,_0x469e45,_0x1163dc];}static get[_0x2af9('0xe')](){return _0x2af9('0x39');}constructor(_0xa27621){super(_0xa27621);const _0x368f91=_0xa27621[_0x2af9('0x3e')];var _0x38aa97;_0x368f91[_0x2af9('0x1d')](_0x2af9('0x3a'),(_0x38aa97=_0xa27621[_0x2af9('0x6')],[{'groupId':_0x2af9('0x31'),'groupLabel':_0x14cf54(_0x38aa97,_0x2af9('0x2d')),'commands':[{'id':_0x2af9('0x4'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x2b')),'prompt':_0x2af9('0x5')},{'id':_0x2af9('0x22'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x4a')),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':_0x2af9('0x51'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x3c')),'prompt':_0x2af9('0x56')},{'id':_0x2af9('0x49'),'label':_0x14cf54(_0x38aa97,'Simplify\x20language'),'prompt':_0x2af9('0x4f')}]},{'groupId':_0x2af9('0x33'),'groupLabel':_0x14cf54(_0x38aa97,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':_0x14cf54(_0x38aa97,_0x2af9('0x21')),'prompt':_0x2af9('0x66')},{'id':_0x2af9('0x42'),'label':_0x14cf54(_0x38aa97,'Continue'),'prompt':_0x2af9('0x34')}]},{'groupId':_0x2af9('0x16'),'groupLabel':_0x14cf54(_0x38aa97,_0x2af9('0x5b')),'commands':[{'id':_0x2af9('0x1'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x23')),'prompt':_0x2af9('0x8')},{'id':_0x2af9('0xd'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x2a')),'prompt':_0x2af9('0x45')},{'id':_0x2af9('0xa'),'label':_0x14cf54(_0x38aa97,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':_0x2af9('0x60'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x3b')),'prompt':_0x2af9('0x3d')},{'id':_0x2af9('0x26'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x5e')),'prompt':_0x2af9('0x5a')}]},{'groupId':_0x2af9('0x1f'),'groupLabel':_0x14cf54(_0x38aa97,_0x2af9('0x37')),'commands':[{'id':'business','label':_0x14cf54(_0x38aa97,_0x2af9('0x3f')),'prompt':_0x2af9('0x27')},{'id':_0x2af9('0x62'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x1c')),'prompt':_0x2af9('0x53')},{'id':_0x2af9('0x5f'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x41')),'prompt':_0x2af9('0x9')},{'id':_0x2af9('0x13'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x4b')),'prompt':_0x2af9('0x5d')}]},{'groupId':_0x2af9('0x5c'),'groupLabel':_0x14cf54(_0x38aa97,'Translate'),'commands':[{'id':_0x2af9('0x20'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x30'),[_0x14cf54(_0x38aa97,'English')]),'prompt':_0x2af9('0xb')},{'id':_0x2af9('0x4c'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x30'),[_0x14cf54(_0x38aa97,_0x2af9('0x57'))]),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':_0x2af9('0x19'),'label':_0x14cf54(_0x38aa97,'Translate\x20to\x20%0',[_0x14cf54(_0x38aa97,'Portuguese')]),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':_0x2af9('0x4e'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x30'),[_0x14cf54(_0x38aa97,_0x2af9('0x10'))]),'prompt':_0x2af9('0x17')},{'id':'translateFrench','label':_0x14cf54(_0x38aa97,_0x2af9('0x30'),[_0x14cf54(_0x38aa97,'French')]),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':_0x2af9('0x35'),'label':_0x14cf54(_0x38aa97,_0x2af9('0x30'),[_0x14cf54(_0x38aa97,'Simplified\x20Chinese')]),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':_0x2af9('0x67'),'label':_0x14cf54(_0x38aa97,'Translate\x20to\x20%0',[_0x14cf54(_0x38aa97,_0x2af9('0x43'))]),'prompt':_0x2af9('0x2c')},{'id':_0x2af9('0x55'),'label':_0x14cf54(_0x38aa97,'Translate\x20to\x20%0',[_0x14cf54(_0x38aa97,'Arabic')]),'prompt':_0x2af9('0x61')}]}])),_0x368f91['define'](_0x2af9('0x18'),[]),_0x368f91[_0x2af9('0x1d')]('aiAssistant.removeCommands',[]);const _0x4ec7a2=_0x368f91[_0x2af9('0x44')]('aiAssistant.commands'),_0x48f874=_0x368f91[_0x2af9('0x44')]('aiAssistant.extraCommandGroups'),_0x2278ea=_0x368f91[_0x2af9('0x44')]('aiAssistant.removeCommands');_0x48f874['forEach'](_0xcca2d3=>{const _0x10133e=_0x4ec7a2[_0x2af9('0x65')](_0x4225ca=>_0x4225ca[_0x2af9('0x58')]===_0xcca2d3['groupId']);_0x10133e?_0x10133e[_0x2af9('0x47')]=_0x10133e[_0x2af9('0x47')][_0x2af9('0x48')](_0xcca2d3[_0x2af9('0x47')]):_0x4ec7a2[_0x2af9('0x64')](_0xcca2d3);}),_0x4ec7a2[_0x2af9('0x15')](_0x4def37=>{_0x4def37[_0x2af9('0x47')]=_0x4def37[_0x2af9('0x47')][_0x2af9('0x36')](_0xa84346=>!_0x2278ea[_0x2af9('0x46')](_0xa84346['id']));}),_0x368f91[_0x2af9('0x7')]('aiAssistant.commands',_0x4ec7a2);}['init'](){const _0x1fd277=this[_0x2af9('0x63')];this[_0x2af9('0x54')]=_0x1fd277[_0x2af9('0x3e')]['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34263c;for(const _0x1ac777 in _0x1fd277){const _0x37796d=_0x1ac777,_0x588a2f=_0x1fd277[_0x37796d];if(_0x2af9('0x1e')===_0x588a2f||_0x2af9('0x40')===_0x588a2f||'aiLicenseKeyValid'===_0x588a2f||_0x2af9('0x28')===_0x588a2f){delete _0x1fd277[_0x37796d],_0x34263c=_0x588a2f;break;}}if('aiLicenseKeyInvalid'===_0x34263c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5eb60a(_0x2af9('0x14'),null);if('aiLicenseKeyTrial'===_0x34263c&&console['info'](_0x2af9('0x3')),'aiLicenseKeyTrialLimit:operations'===_0x34263c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5eb60a(_0x2af9('0x2f'),null);_0x2af9('0x59')===_0x34263c&&clearInterval(this[_0x2af9('0x4d')]);},0x3e8);}['destroy'](){this[_0x2af9('0x4d')]&&clearInterval(this[_0x2af9('0x4d')]);}}
const _0x25ba=['licenseKey','changeStyle','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','translateSpanish','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','improveWriting','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','aiAssistant.removeCommands','Continue','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','friendly','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Arabic','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','aiLicenseKeyTrialLimit:operations','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Make\x20longer','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translatePortuguese','aiLicenseKeyTrial','Poetic','concat','Translate\x20the\x20content\x20to\x20English\x20language.','push','Casual','editor','makeShorter','groupId','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','_licenseKeyCheckInterval','define','Translate\x20to\x20%0','Generate\x20from\x20selection','Change\x20style','French','info','continue','Summarize','filter','forEach','pluginName','makeLonger','requires','Change\x20tone','Translate\x20the\x20content\x20to\x20German\x20language.','Friendly','includes','translateGerman','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','simplifyLanguage','Portuguese','changeTone','aiAssistant.commands','summarize','direct','locale','English','journalism','Simplify\x20language','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Business','legal','aiLicenseKeyInvalid','ai-trial-license-key-reached-limit-changes','German','Confident','Journalism','Improve\x20writing','init','confident','professional','translateFrench','translateHindi','translateChinese','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Legal','Edit\x20or\x20review','Direct','Spanish','editOrReview','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','translateEnglish','get','generate','casual','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','find','Make\x20shorter','config','Simplified\x20Chinese','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','commands','destroy','aiLicenseKeyValid','poetic','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Translate','Hindi'];(function(_0x55627e,_0x25ba64){const _0x24d3ea=function(_0x5d0fca){while(--_0x5d0fca){_0x55627e['push'](_0x55627e['shift']());}};_0x24d3ea(++_0x25ba64);}(_0x25ba,0x1cb));const _0x24d3=function(_0x55627e,_0x25ba64){_0x55627e=_0x55627e-0x0;let _0x24d3ea=_0x25ba[_0x55627e];return _0x24d3ea;};import{CKEditorError as _0x400a94}from'ckeditor5/src/utils';import{Plugin as _0x33d8fa}from'ckeditor5/src/core';import _0x46b741 from'./aiassistantui';import _0x5b176c from'./aiassistantediting';import _0x4b8e12 from'./aiconnector';import{getTranslation as _0x335bd2}from'./utils/common-translations';export const getDefaultCommands=_0x56367c=>[{'groupId':_0x24d3('0x28'),'groupLabel':_0x335bd2(_0x56367c,_0x24d3('0x25')),'commands':[{'id':_0x24d3('0x43'),'label':_0x335bd2(_0x56367c,_0x24d3('0x1c')),'prompt':_0x24d3('0x48')},{'id':_0x24d3('0x5b'),'label':_0x335bd2(_0x56367c,_0x24d3('0x30')),'prompt':_0x24d3('0x47')},{'id':_0x24d3('0x2'),'label':_0x335bd2(_0x56367c,'Make\x20longer'),'prompt':_0x24d3('0x29')},{'id':_0x24d3('0xa'),'label':_0x335bd2(_0x56367c,_0x24d3('0x13')),'prompt':_0x24d3('0x40')}]},{'groupId':_0x24d3('0x2c'),'groupLabel':_0x335bd2(_0x56367c,_0x24d3('0x61')),'commands':[{'id':_0x24d3('0xe'),'label':_0x335bd2(_0x56367c,'Summarize'),'prompt':_0x24d3('0x35')},{'id':_0x24d3('0x65'),'label':_0x335bd2(_0x56367c,_0x24d3('0x46')),'prompt':_0x24d3('0x44')}]},{'groupId':_0x24d3('0xc'),'groupLabel':_0x335bd2(_0x56367c,_0x24d3('0x4')),'commands':[{'id':'professional','label':_0x335bd2(_0x56367c,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':_0x335bd2(_0x56367c,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':_0x24d3('0xf'),'label':_0x335bd2(_0x56367c,_0x24d3('0x26')),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':_0x24d3('0x1e'),'label':_0x335bd2(_0x56367c,_0x24d3('0x1a')),'prompt':_0x24d3('0x4a')},{'id':_0x24d3('0x49'),'label':_0x335bd2(_0x56367c,_0x24d3('0x6')),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':_0x24d3('0x3e'),'groupLabel':_0x335bd2(_0x56367c,_0x24d3('0x62')),'commands':[{'id':'business','label':_0x335bd2(_0x56367c,'Business'),'prompt':_0x24d3('0x34')},{'id':_0x24d3('0x16'),'label':_0x335bd2(_0x56367c,_0x24d3('0x24')),'prompt':_0x24d3('0x2e')},{'id':_0x24d3('0x12'),'label':_0x335bd2(_0x56367c,_0x24d3('0x1b')),'prompt':_0x24d3('0x14')},{'id':_0x24d3('0x39'),'label':_0x335bd2(_0x56367c,_0x24d3('0x55')),'prompt':_0x24d3('0x4f')}]},{'groupId':'translate','groupLabel':_0x335bd2(_0x56367c,'Translate'),'commands':[{'id':_0x24d3('0x2a'),'label':_0x335bd2(_0x56367c,_0x24d3('0x60'),[_0x335bd2(_0x56367c,_0x24d3('0x11'))]),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':_0x24d3('0x41'),'label':_0x335bd2(_0x56367c,_0x24d3('0x60'),[_0x335bd2(_0x56367c,_0x24d3('0x27'))]),'prompt':_0x24d3('0x50')},{'id':'translatePortuguese','label':_0x335bd2(_0x56367c,_0x24d3('0x60'),[_0x335bd2(_0x56367c,_0x24d3('0xb'))]),'prompt':_0x24d3('0x23')},{'id':_0x24d3('0x8'),'label':_0x335bd2(_0x56367c,'Translate\x20to\x20%0',[_0x335bd2(_0x56367c,_0x24d3('0x19'))]),'prompt':_0x24d3('0x5')},{'id':_0x24d3('0x20'),'label':_0x335bd2(_0x56367c,_0x24d3('0x60'),[_0x335bd2(_0x56367c,'French')]),'prompt':_0x24d3('0x4c')},{'id':_0x24d3('0x22'),'label':_0x335bd2(_0x56367c,_0x24d3('0x60'),[_0x335bd2(_0x56367c,_0x24d3('0x32'))]),'prompt':_0x24d3('0x42')},{'id':'translateHindi','label':_0x335bd2(_0x56367c,_0x24d3('0x60'),[_0x335bd2(_0x56367c,_0x24d3('0x3c'))]),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':_0x24d3('0x33'),'label':_0x335bd2(_0x56367c,_0x24d3('0x60'),[_0x335bd2(_0x56367c,_0x24d3('0x4b'))]),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];export default class l extends _0x33d8fa{static get[_0x24d3('0x3')](){return[_0x46b741,_0x5b176c,_0x4b8e12];}static get[_0x24d3('0x1')](){return'AIAssistant';}constructor(_0x554891){super(_0x554891);const _0x4053ff=_0x554891[_0x24d3('0x31')];var _0x3b99fa;_0x4053ff[_0x24d3('0x5f')](_0x24d3('0xd'),(_0x3b99fa=_0x554891[_0x24d3('0x10')],[{'groupId':'editOrReview','groupLabel':_0x335bd2(_0x3b99fa,_0x24d3('0x25')),'commands':[{'id':_0x24d3('0x43'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x1c')),'prompt':_0x24d3('0x48')},{'id':_0x24d3('0x5b'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x30')),'prompt':_0x24d3('0x47')},{'id':_0x24d3('0x2'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x51')),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':_0x24d3('0xa'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x13')),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':_0x24d3('0x2c'),'groupLabel':_0x335bd2(_0x3b99fa,'Generate\x20from\x20selection'),'commands':[{'id':_0x24d3('0xe'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x66')),'prompt':'Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.'},{'id':'continue','label':_0x335bd2(_0x3b99fa,_0x24d3('0x46')),'prompt':_0x24d3('0x44')}]},{'groupId':_0x24d3('0xc'),'groupLabel':_0x335bd2(_0x3b99fa,_0x24d3('0x4')),'commands':[{'id':_0x24d3('0x1f'),'label':_0x335bd2(_0x3b99fa,'Professional'),'prompt':_0x24d3('0x3f')},{'id':_0x24d3('0x2d'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x59')),'prompt':_0x24d3('0x4d')},{'id':'direct','label':_0x335bd2(_0x3b99fa,_0x24d3('0x26')),'prompt':_0x24d3('0x5d')},{'id':_0x24d3('0x1e'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x1a')),'prompt':_0x24d3('0x4a')},{'id':'friendly','label':_0x335bd2(_0x3b99fa,_0x24d3('0x6')),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':_0x24d3('0x3e'),'groupLabel':_0x335bd2(_0x3b99fa,_0x24d3('0x62')),'commands':[{'id':'business','label':_0x335bd2(_0x3b99fa,_0x24d3('0x15')),'prompt':_0x24d3('0x34')},{'id':_0x24d3('0x16'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x24')),'prompt':_0x24d3('0x2e')},{'id':_0x24d3('0x12'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x1b')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':_0x24d3('0x39'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x55')),'prompt':_0x24d3('0x4f')}]},{'groupId':'translate','groupLabel':_0x335bd2(_0x3b99fa,_0x24d3('0x3b')),'commands':[{'id':'translateEnglish','label':_0x335bd2(_0x3b99fa,_0x24d3('0x60'),[_0x335bd2(_0x3b99fa,_0x24d3('0x11'))]),'prompt':_0x24d3('0x57')},{'id':_0x24d3('0x41'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x60'),[_0x335bd2(_0x3b99fa,'Spanish')]),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':_0x24d3('0x53'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x60'),[_0x335bd2(_0x3b99fa,'Portuguese')]),'prompt':_0x24d3('0x23')},{'id':_0x24d3('0x8'),'label':_0x335bd2(_0x3b99fa,'Translate\x20to\x20%0',[_0x335bd2(_0x3b99fa,_0x24d3('0x19'))]),'prompt':_0x24d3('0x5')},{'id':'translateFrench','label':_0x335bd2(_0x3b99fa,_0x24d3('0x60'),[_0x335bd2(_0x3b99fa,_0x24d3('0x63'))]),'prompt':_0x24d3('0x4c')},{'id':_0x24d3('0x22'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x60'),[_0x335bd2(_0x3b99fa,_0x24d3('0x32'))]),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':_0x24d3('0x21'),'label':_0x335bd2(_0x3b99fa,'Translate\x20to\x20%0',[_0x335bd2(_0x3b99fa,_0x24d3('0x3c'))]),'prompt':_0x24d3('0x52')},{'id':_0x24d3('0x33'),'label':_0x335bd2(_0x3b99fa,_0x24d3('0x60'),[_0x335bd2(_0x3b99fa,_0x24d3('0x4b'))]),'prompt':_0x24d3('0x3a')}]}])),_0x4053ff['define']('aiAssistant.extraCommandGroups',[]),_0x4053ff[_0x24d3('0x5f')](_0x24d3('0x45'),[]);const _0x1d91f3=_0x4053ff['get']('aiAssistant.commands'),_0x203a4e=_0x4053ff[_0x24d3('0x2b')]('aiAssistant.extraCommandGroups'),_0x17d09d=_0x4053ff[_0x24d3('0x2b')](_0x24d3('0x45'));_0x203a4e[_0x24d3('0x0')](_0x25e943=>{const _0x305602=_0x1d91f3[_0x24d3('0x2f')](_0x35b39b=>_0x35b39b[_0x24d3('0x5c')]===_0x25e943[_0x24d3('0x5c')]);_0x305602?_0x305602[_0x24d3('0x36')]=_0x305602[_0x24d3('0x36')][_0x24d3('0x56')](_0x25e943[_0x24d3('0x36')]):_0x1d91f3[_0x24d3('0x58')](_0x25e943);}),_0x1d91f3['forEach'](_0x547e52=>{_0x547e52[_0x24d3('0x36')]=_0x547e52[_0x24d3('0x36')][_0x24d3('0x67')](_0x390110=>!_0x17d09d[_0x24d3('0x7')](_0x390110['id']));}),_0x4053ff['set'](_0x24d3('0xd'),_0x1d91f3);}[_0x24d3('0x1d')](){const _0x4db516=this[_0x24d3('0x5a')];this[_0x24d3('0x3d')]=_0x4db516['config']['get'](_0x24d3('0x3d')),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35d3a2;for(const _0xc68173 in _0x4db516){const _0x2e0e24=_0xc68173,_0x2c35a1=_0x4db516[_0x2e0e24];if(_0x24d3('0x54')===_0x2c35a1||_0x24d3('0x17')===_0x2c35a1||'aiLicenseKeyValid'===_0x2c35a1||_0x24d3('0x4e')===_0x2c35a1){delete _0x4db516[_0x2e0e24],_0x35d3a2=_0x2c35a1;break;}}if(_0x24d3('0x17')===_0x35d3a2)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x400a94('ai-invalid-license-key',null);if('aiLicenseKeyTrial'===_0x35d3a2&&console[_0x24d3('0x64')](_0x24d3('0x9')),_0x24d3('0x4e')===_0x35d3a2)throw clearInterval(this[_0x24d3('0x5e')]),new _0x400a94(_0x24d3('0x18'),null);_0x24d3('0x38')===_0x35d3a2&&clearInterval(this[_0x24d3('0x5e')]);},0x3e8);}[_0x24d3('0x37')](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}

@@ -23,2 +23,2 @@ /*

*/
const _0x2d28=['start','insertContent','data','processor','editingDowncast','schema','pluginName','setSelection','document','toModel','from','getLastPosition','length','ai-ui','getLastMatchingPosition','model','isContent','for','markers','AIAssistantEditing','ck-fake-ai-selection_collapsed','markerToElement','createPositionAfter','editor','addMarker','getSelectedBlocks','showFakeVisualSelection','canEditAt','markerToHighlight','init','has','change','selection','createRange'];(function(_0x3416e9,_0x2d2897){const _0x569764=function(_0x4ab535){while(--_0x4ab535){_0x3416e9['push'](_0x3416e9['shift']());}};_0x569764(++_0x2d2897);}(_0x2d28,0x13f));const _0x5697=function(_0x3416e9,_0x2d2897){_0x3416e9=_0x3416e9-0x0;let _0x569764=_0x2d28[_0x3416e9];return _0x569764;};import{Plugin as _0x85a6e}from'ckeditor5/src/core';const s=_0x5697('0x0');export default class i extends _0x85a6e{static get[_0x5697('0x1b')](){return _0x5697('0x6');}[_0x5697('0x10')](){const {editor:_0x12a799}=this;_0x12a799['conversion'][_0x5697('0x4')](_0x5697('0x19'))[_0x5697('0xf')]({'model':s,'view':{'classes':['ck-fake-ai-selection']}}),_0x12a799['conversion'][_0x5697('0x4')](_0x5697('0x19'))[_0x5697('0x8')]({'model':s,'view':{'name':'span','classes':['ck-fake-ai-selection',_0x5697('0x7')]}});}[_0x5697('0xd')](){const _0xb7bba2=this['editor'][_0x5697('0x2')];_0xb7bba2[_0x5697('0x12')](_0x4e8fa0=>{const _0x43c6e4=_0xb7bba2[_0x5697('0x1d')][_0x5697('0x13')]['getFirstRange']();if(_0xb7bba2[_0x5697('0x5')][_0x5697('0x11')](s))_0x4e8fa0['updateMarker'](s,{'range':_0x43c6e4});else{if(_0x43c6e4['start']['isAtEnd']){const _0x36a22a=_0x43c6e4[_0x5697('0x15')][_0x5697('0x1')](({item:_0x3a111a})=>!_0xb7bba2[_0x5697('0x1a')][_0x5697('0x3')](_0x3a111a),{'boundaries':_0x43c6e4});_0x4e8fa0['addMarker'](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4e8fa0[_0x5697('0x14')](_0x36a22a,_0x43c6e4['end'])});}else _0x4e8fa0[_0x5697('0xb')](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x43c6e4});}});}['hideFakeVisualSelection'](){this[_0x5697('0xa')]['model'][_0x5697('0x12')](_0x1c3184=>{_0x1c3184['removeMarker'](s);});}[_0x5697('0x16')](_0x90ba49,_0x4c3e06){const _0x70466d=_0x4c3e06||this[_0x5697('0xa')]['model']['document'][_0x5697('0x13')];if(!this['editor'][_0x5697('0x2')][_0x5697('0xe')](_0x70466d))return;const _0x38e6e8=this[_0x5697('0xa')]['data'][_0x5697('0x18')]['toView'](_0x90ba49),_0x39fe2d=this['editor'][_0x5697('0x17')][_0x5697('0x1e')](_0x38e6e8);this[_0x5697('0xa')]['model'][_0x5697('0x12')](_0x40b989=>{const _0x4f883c=this[_0x5697('0xa')][_0x5697('0x2')][_0x5697('0x16')](_0x39fe2d,_0x70466d);_0x4f883c&&_0x40b989[_0x5697('0x1c')](_0x4f883c);});}['insertContentBelow'](_0x279d56){const {model:_0x31169a}=this[_0x5697('0xa')],_0x1d1a09=Array[_0x5697('0x1f')](_0x31169a[_0x5697('0x1d')][_0x5697('0x13')][_0x5697('0xc')]()),_0x1f6790=_0x1d1a09[_0x5697('0x21')]?_0x31169a[_0x5697('0x9')](_0x1d1a09['pop']()):_0x31169a[_0x5697('0x1d')][_0x5697('0x13')][_0x5697('0x20')]();this['insertContent'](_0x279d56,_0x1f6790);}}
const _0x2bcf=['markerToElement','editingDowncast','AIAssistantEditing','end','createRange','conversion','length','markers','insertContent','model','updateMarker','isAtEnd','span','removeMarker','pop','addMarker','pluginName','canEditAt','has','getSelectedBlocks','init','processor','document','from','schema','toModel','createPositionAfter','setSelection','isContent','change','selection','for','getLastMatchingPosition','editor','start','getFirstRange','data','showFakeVisualSelection'];(function(_0x20ad2a,_0x2bcf25){const _0x571dab=function(_0xaf544f){while(--_0xaf544f){_0x20ad2a['push'](_0x20ad2a['shift']());}};_0x571dab(++_0x2bcf25);}(_0x2bcf,0xed));const _0x571d=function(_0x20ad2a,_0x2bcf25){_0x20ad2a=_0x20ad2a-0x0;let _0x571dab=_0x2bcf[_0x20ad2a];return _0x571dab;};import{Plugin as _0x3630ac}from'ckeditor5/src/core';const s='ai-ui';export default class i extends _0x3630ac{static get[_0x571d('0x7')](){return _0x571d('0x1f');}[_0x571d('0xb')](){const {editor:_0x30ab5b}=this;_0x30ab5b[_0x571d('0x22')][_0x571d('0x16')]('editingDowncast')['markerToHighlight']({'model':s,'view':{'classes':['ck-fake-ai-selection']}}),_0x30ab5b[_0x571d('0x22')][_0x571d('0x16')](_0x571d('0x1e'))[_0x571d('0x1d')]({'model':s,'view':{'name':_0x571d('0x3'),'classes':['ck-fake-ai-selection','ck-fake-ai-selection_collapsed']}});}[_0x571d('0x1c')](){const _0x5e0947=this['editor'][_0x571d('0x0')];_0x5e0947[_0x571d('0x14')](_0x1ee766=>{const _0x51423a=_0x5e0947['document'][_0x571d('0x15')][_0x571d('0x1a')]();if(_0x5e0947[_0x571d('0x24')][_0x571d('0x9')](s))_0x1ee766[_0x571d('0x1')](s,{'range':_0x51423a});else{if(_0x51423a[_0x571d('0x19')][_0x571d('0x2')]){const _0x35670c=_0x51423a[_0x571d('0x19')][_0x571d('0x17')](({item:_0x4126b7})=>!_0x5e0947[_0x571d('0xf')][_0x571d('0x13')](_0x4126b7),{'boundaries':_0x51423a});_0x1ee766[_0x571d('0x6')](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1ee766[_0x571d('0x21')](_0x35670c,_0x51423a[_0x571d('0x20')])});}else _0x1ee766['addMarker'](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x51423a});}});}['hideFakeVisualSelection'](){this['editor'][_0x571d('0x0')][_0x571d('0x14')](_0xb65a6e=>{_0xb65a6e[_0x571d('0x4')](s);});}[_0x571d('0x25')](_0x5c1f29,_0x74fe69){const _0xd7cbab=_0x74fe69||this['editor'][_0x571d('0x0')][_0x571d('0xd')]['selection'];if(!this[_0x571d('0x18')][_0x571d('0x0')][_0x571d('0x8')](_0xd7cbab))return;const _0x596146=this[_0x571d('0x18')][_0x571d('0x1b')][_0x571d('0xc')]['toView'](_0x5c1f29),_0x89e6a7=this['editor'][_0x571d('0x1b')][_0x571d('0x10')](_0x596146);this[_0x571d('0x18')]['model'][_0x571d('0x14')](_0x32b01d=>{const _0x4fe210=this['editor']['model'][_0x571d('0x25')](_0x89e6a7,_0xd7cbab);_0x4fe210&&_0x32b01d[_0x571d('0x12')](_0x4fe210);});}['insertContentBelow'](_0x2a6847){const {model:_0x1202f4}=this['editor'],_0x2af9e8=Array[_0x571d('0xe')](_0x1202f4[_0x571d('0xd')][_0x571d('0x15')][_0x571d('0xa')]()),_0xd00ed6=_0x2af9e8[_0x571d('0x23')]?_0x1202f4[_0x571d('0x11')](_0x2af9e8[_0x571d('0x5')]()):_0x1202f4[_0x571d('0xd')][_0x571d('0x15')]['getLastPosition']();this[_0x571d('0x25')](_0x2a6847,_0xd00ed6);}}

@@ -23,2 +23,2 @@ /*

*/
const _0x28c6=['aiAssistant','parse','_abortController','stringify','getReader','_authKey','locale','read','editing','top_p','choices','replace','_apiUrl','POST','user','adapter','toView','authKey','error','AI_ERROR_MODERATION','application/json','decode','_readStreamableResponse','[DONE]','string','delta','parseFromString','body','signal','_isBufferIncomplete','split','filter','view','Bearer\x20','_normalizeResponseHeadings','aiAssistant.apiUrl','includes','_cleanUpData','aiconnector-send-prompt-failed','get','AIRequestError','join','</span>','element','AbortError','abort','match','length','processor','content','text/html','https://api.openai.com/v1/chat/completions','name','<span>','temperature','_xmlSerializer','config','model','pluginName','aiAssistant.requestParameters.max_tokens','reject','editor','resolve','context_length_exceeded','gpt-3.5-turbo','Moderation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_prepareMessages','_parseAndNormalizeContent','rename','_requestParameters','Instruction:\x0a','define','aiAssistant.requestParameters.stream','push','AI_ERROR_AUTH_REQUEST','stream','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_CONTEXT_LENGTH','system','processPrompt','_domParser','_readStaticResponse','data'];(function(_0x436783,_0x28c677){const _0x4705c7=function(_0x797390){while(--_0x797390){_0x436783['push'](_0x436783['shift']());}};_0x4705c7(++_0x28c677);}(_0x28c6,0x17f));const _0x4705=function(_0x436783,_0x28c677){_0x436783=_0x436783-0x0;let _0x4705c7=_0x28c6[_0x436783];return _0x4705c7;};import{Matcher as _0xf15c53,UpcastWriter as _0x140bbe}from'ckeditor5/src/engine';import{Plugin as _0x2cc4f8}from'ckeditor5/src/core';import{CKEditorError as _0x29065a}from'ckeditor5/src/utils';import{getTranslation as _0x48480b}from'./utils/common-translations';export default class o extends _0x2cc4f8{static get[_0x4705('0xb')](){return'AIConnector';}constructor(_0x4659ae){super(_0x4659ae),_0x4659ae[_0x4705('0x9')][_0x4705('0x19')]('aiAssistant.apiUrl',_0x4705('0x4')),_0x4659ae[_0x4705('0x9')][_0x4705('0x19')]('aiAssistant.requestParameters.model',_0x4705('0x11')),_0x4659ae[_0x4705('0x9')][_0x4705('0x19')](_0x4705('0xc'),0x7d0),_0x4659ae[_0x4705('0x9')][_0x4705('0x19')]('aiAssistant.requestParameters.temperature',0x1),_0x4659ae[_0x4705('0x9')][_0x4705('0x19')]('aiAssistant.requestParameters.top_p',0x1),_0x4659ae[_0x4705('0x9')][_0x4705('0x19')](_0x4705('0x1a'),!0x0);const _0x38ea4b=_0x4659ae[_0x4705('0x9')][_0x4705('0x4c')](_0x4705('0x48')),_0x3a7b18=_0x4659ae[_0x4705('0x9')][_0x4705('0x4c')](_0x4705('0x25'))[_0x4705('0x36')],_0x4a4b19=_0x4659ae[_0x4705('0x9')]['get']('aiAssistant.requestParameters');this['_abortController']=new AbortController(),this['adapter']=new OpenAIAdapter(_0x4659ae,_0x38ea4b,_0x4a4b19,_0x3a7b18);}async[_0x4705('0x21')](_0x44b867,_0x52cd1b,_0x377c4e){const {systemMessage:_0xdd87,userMessage:_0x38916e}=this[_0x4705('0x14')](_0x44b867,_0x52cd1b);return this[_0x4705('0x34')]['sendPrompt'](_0xdd87,_0x38916e,this['_abortController'][_0x4705('0x41')],_0x377c4e)['catch'](_0x4f538a=>{if(_0x4f538a instanceof AIRequestError)return Promise[_0x4705('0xd')](_0x4f538a);if(_0x4705('0x51')==_0x4f538a[_0x4705('0x5')])return Promise[_0x4705('0xf')]();throw console[_0x4705('0x37')](_0x4f538a),new _0x29065a(_0x4705('0x4b'),null);});}[_0x4705('0x52')](){this[_0x4705('0x27')][_0x4705('0x41')]['aborted']||(this[_0x4705('0x27')][_0x4705('0x52')](),this[_0x4705('0x27')]=new AbortController());}[_0x4705('0x14')](_0x545d13,_0x468c6a){let _0x14e8d7,_0xcb997a;return _0x468c6a?(_0x14e8d7='Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0xcb997a=_0x4705('0x18')+_0x545d13+_0x4705('0x13')+(_0x468c6a['startsWith']('<')?_0x468c6a:_0x4705('0x6')+_0x468c6a+_0x4705('0x4f'))):(_0x14e8d7=_0x4705('0x1e'),_0xcb997a=_0x545d13),{'systemMessage':_0x14e8d7,'userMessage':_0xcb997a};}}export class OpenAIAdapter{constructor(_0x23f4d1,_0x285849,_0x66466a,_0x14303a){this[_0x4705('0xe')]=_0x23f4d1,this[_0x4705('0x31')]=_0x285849,this[_0x4705('0x2a')]=_0x14303a,this[_0x4705('0x17')]=_0x66466a,this[_0x4705('0x22')]=new DOMParser(),this[_0x4705('0x8')]=new XMLSerializer();}async['sendPrompt'](_0x5dc043,_0x29e943,_0x3eb4b1,_0x156e57){const _0x33c41b=this[_0x4705('0xe')][_0x4705('0x2b')],_0x22ce85={'Content-Type':_0x4705('0x39')};if(_0x4705('0x3d')==typeof this[_0x4705('0x2a')])_0x22ce85['Authorization']=_0x4705('0x46')+this['_authKey'];else{if(this[_0x4705('0x2a')])try{const _0x21867f=await this[_0x4705('0x2a')]();_0x22ce85['Authorization']='Bearer\x20'+_0x21867f;}catch(_0x4b749f){return Promise[_0x4705('0xd')](new AIRequestError(_0x48480b(_0x33c41b,_0x4705('0x1c'))));}}const _0x4c6d30={'model':this[_0x4705('0x17')][_0x4705('0xa')],'messages':[{'role':_0x4705('0x20'),'content':_0x5dc043},{'role':_0x4705('0x33'),'content':_0x29e943}],'stream':this[_0x4705('0x17')][_0x4705('0x1d')],'max_tokens':this[_0x4705('0x17')]['max_tokens'],'temperature':this[_0x4705('0x17')][_0x4705('0x7')],'top_p':this[_0x4705('0x17')][_0x4705('0x2e')]};this[_0x4705('0x17')]['user']&&(_0x4c6d30['user']=this[_0x4705('0x17')][_0x4705('0x33')]);const _0x220c98={'method':_0x4705('0x32'),'headers':_0x22ce85,'body':JSON[_0x4705('0x28')](_0x4c6d30),'signal':_0x3eb4b1},_0x2c697d=await fetch(this[_0x4705('0x31')],_0x220c98);if(_0x2c697d['ok'])return this[_0x4705('0x17')][_0x4705('0x1d')]?await this[_0x4705('0x3b')](_0x2c697d,_0x156e57):await this[_0x4705('0x23')](_0x2c697d,_0x156e57),Promise['resolve']();{const _0x54c131=await _0x2c697d['text']();return _0x54c131[_0x4705('0x49')](_0x4705('0x10'))?Promise[_0x4705('0xd')](new AIRequestError(_0x48480b(_0x33c41b,_0x4705('0x1f')))):_0x54c131[_0x4705('0x49')](_0x4705('0x12'))?Promise['reject'](new AIRequestError(_0x48480b(_0x33c41b,_0x4705('0x38')))):Promise[_0x4705('0xd')](new Error(_0x54c131));}}async[_0x4705('0x3b')](_0x69b8a9,_0x13dfcd){const _0x5026bd=_0x69b8a9[_0x4705('0x40')][_0x4705('0x29')](),_0x29ee57=new TextDecoder();let _0x164ba9='',_0x4b4a25='',_0x40940b='',_0x20a03a=!0x1;for(;!_0x20a03a;){const {done:_0x4991dd,value:_0x220670}=await _0x5026bd[_0x4705('0x2c')](),_0x203fe5=_0x164ba9+_0x29ee57[_0x4705('0x3a')](_0x220670);let _0x1f98f1='';_0x20a03a=_0x4991dd;try{_0x1f98f1=this[_0x4705('0x4a')](_0x203fe5),_0x164ba9='';}catch(_0x387978){_0x164ba9+=_0x203fe5;continue;}_0x4b4a25+=_0x1f98f1,!_0x4991dd&&this[_0x4705('0x42')](_0x4b4a25)||_0x4b4a25&&(_0x40940b+=_0x4b4a25,_0x13dfcd(this[_0x4705('0x15')](_0x40940b)),_0x4b4a25='');}return Promise[_0x4705('0xf')]();}async[_0x4705('0x23')](_0x2aafa0,_0x545155){const _0xc5648=(await _0x2aafa0['json']())[_0x4705('0x2f')][0x0]['message'][_0x4705('0x2')];return _0x545155(this[_0x4705('0x15')](_0xc5648)),Promise[_0x4705('0xf')]();}[_0x4705('0x42')](_0x462c52){const _0x1a8503=_0x462c52[_0x4705('0x43')]('<')[_0x4705('0x0')]!==_0x462c52[_0x4705('0x43')]('>')['length'],_0x354d1f=_0x462c52[_0x4705('0x0')]<0x1e;return _0x1a8503&&_0x354d1f;}[_0x4705('0x15')](_0x3a9efb){const _0x3a0339=this[_0x4705('0x22')][_0x4705('0x3f')](_0x3a9efb,_0x4705('0x3')),_0x267027=this[_0x4705('0xe')][_0x4705('0x24')][_0x4705('0x1')][_0x4705('0x35')](this[_0x4705('0x8')]['serializeToString'](_0x3a0339['body']));return this[_0x4705('0x47')](_0x267027),this[_0x4705('0xe')][_0x4705('0x24')][_0x4705('0x28')](this[_0x4705('0xe')][_0x4705('0x24')]['toModel'](_0x267027));}[_0x4705('0x47')](_0x174998){const _0x54ec91=new _0x140bbe(this[_0x4705('0xe')][_0x4705('0x2d')][_0x4705('0x45')]['document']),_0x359645=new _0xf15c53({'name':/^h[1-5]$/}),_0x466eaf=[];let _0x1cf64c=!0x1;for(const _0x102fda of _0x174998)_0x102fda['is'](_0x4705('0x50'))&&_0x359645[_0x4705('0x53')](_0x102fda)&&(_0x466eaf[_0x4705('0x1b')](_0x102fda),'h1'==_0x102fda[_0x4705('0x5')]&&(_0x1cf64c=!0x0));if(_0x1cf64c)for(const _0x248ecd of _0x466eaf)_0x54ec91[_0x4705('0x16')]('h'+(parseInt(_0x248ecd['name'][0x1])+0x1),_0x248ecd);}[_0x4705('0x4a')](_0x4b5a51){return _0x4b5a51[_0x4705('0x43')](/\n(?![^{]*\})/g)['map'](_0x3898bc=>_0x3898bc[_0x4705('0x30')]('data:\x20',''))[_0x4705('0x44')](_0x1d7452=>_0x1d7452&&_0x1d7452[_0x4705('0x0')]>0x0&&_0x4705('0x3c')!==_0x1d7452)['map'](_0x8c5c4=>{const {choices:_0x1ae688}=JSON[_0x4705('0x26')](_0x8c5c4);if(_0x1ae688[0x0]&&_0x1ae688[0x0][_0x4705('0x3e')]&&_0x1ae688[0x0][_0x4705('0x3e')][_0x4705('0x2')])return _0x1ae688[0x0][_0x4705('0x3e')][_0x4705('0x2')];})[_0x4705('0x44')](_0xb5a71=>_0xb5a71)[_0x4705('0x4e')]('');}}export class AIRequestError extends Error{constructor(_0x411a44){super(_0x411a44),this[_0x4705('0x5')]=_0x4705('0x4d');}}
const _0x5805=['top_p','system','aiAssistant','stringify','sendPrompt','document','text/html','_cleanUpData','parseFromString','<span>','POST','user','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_xmlSerializer','editing','content','application/json','data','config','reject','</span>','gpt-3.5-turbo','read','string','startsWith','Authorization','filter','catch','AIRequestError','stream','signal','includes','_isBufferIncomplete','_apiUrl','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','aiAssistant.requestParameters.temperature','_authKey','_abortController','_readStreamableResponse','map','processPrompt','data:\x20','temperature','json','split','_parseAndNormalizeContent','resolve','aiAssistant.apiUrl','model','editor','view','text','aiAssistant.requestParameters.model','message','replace','_readStaticResponse','abort','choices','define','_prepareMessages','length','locale','adapter','name','[DONE]','getReader','parse','Bearer\x20','_domParser','aiAssistant.requestParameters','serializeToString','decode','_requestParameters','delta','toModel','Moderation','aiAssistant.requestParameters.top_p','AI_ERROR_MODERATION','max_tokens','authKey','processor','_normalizeResponseHeadings'];(function(_0x1203c8,_0x5805cf){const _0x17469b=function(_0x34b451){while(--_0x34b451){_0x1203c8['push'](_0x1203c8['shift']());}};_0x17469b(++_0x5805cf);}(_0x5805,0xaf));const _0x1746=function(_0x1203c8,_0x5805cf){_0x1203c8=_0x1203c8-0x0;let _0x17469b=_0x5805[_0x1203c8];return _0x17469b;};import{Matcher as _0x401a5b,UpcastWriter as _0x45f694}from'ckeditor5/src/engine';import{Plugin as _0x50aba3}from'ckeditor5/src/core';import{CKEditorError as _0x51fde0}from'ckeditor5/src/utils';import{getTranslation as _0x43fb77}from'./utils/common-translations';export default class o extends _0x50aba3{static get['pluginName'](){return'AIConnector';}constructor(_0x375040){super(_0x375040),_0x375040[_0x1746('0x9')][_0x1746('0x32')](_0x1746('0x27'),'https://api.openai.com/v1/chat/completions'),_0x375040[_0x1746('0x9')][_0x1746('0x32')](_0x1746('0x2c'),_0x1746('0xc')),_0x375040[_0x1746('0x9')][_0x1746('0x32')]('aiAssistant.requestParameters.max_tokens',0x7d0),_0x375040[_0x1746('0x9')][_0x1746('0x32')](_0x1746('0x1b'),0x1),_0x375040['config'][_0x1746('0x32')](_0x1746('0x44'),0x1),_0x375040[_0x1746('0x9')][_0x1746('0x32')]('aiAssistant.requestParameters.stream',!0x0);const _0x4d33f3=_0x375040[_0x1746('0x9')][_0x1746('0x19')](_0x1746('0x27')),_0x37c70e=_0x375040[_0x1746('0x9')]['get'](_0x1746('0x4c'))[_0x1746('0x47')],_0xbc15a1=_0x375040[_0x1746('0x9')][_0x1746('0x19')](_0x1746('0x3d'));this['_abortController']=new AbortController(),this[_0x1746('0x36')]=new OpenAIAdapter(_0x375040,_0x4d33f3,_0xbc15a1,_0x37c70e);}async[_0x1746('0x20')](_0x1fe167,_0x265a28,_0x11ecd3){const {systemMessage:_0x59dd75,userMessage:_0x38b752}=this[_0x1746('0x33')](_0x1fe167,_0x265a28);return this[_0x1746('0x36')][_0x1746('0x4e')](_0x59dd75,_0x38b752,this['_abortController'][_0x1746('0x15')],_0x11ecd3)[_0x1746('0x12')](_0x41f494=>{if(_0x41f494 instanceof AIRequestError)return Promise['reject'](_0x41f494);if('AbortError'==_0x41f494[_0x1746('0x37')])return Promise[_0x1746('0x26')]();throw console['error'](_0x41f494),new _0x51fde0('aiconnector-send-prompt-failed',null);});}[_0x1746('0x30')](){this[_0x1746('0x1d')][_0x1746('0x15')]['aborted']||(this[_0x1746('0x1d')][_0x1746('0x30')](),this[_0x1746('0x1d')]=new AbortController());}['_prepareMessages'](_0x3261ed,_0x1fe9d3){let _0x3601c3,_0x12878a;return _0x1fe9d3?(_0x3601c3=_0x1746('0x3'),_0x12878a='Instruction:\x0a'+_0x3261ed+_0x1746('0x1a')+(_0x1fe9d3[_0x1746('0xf')]('<')?_0x1fe9d3:_0x1746('0x0')+_0x1fe9d3+_0x1746('0xb'))):(_0x3601c3='Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x12878a=_0x3261ed),{'systemMessage':_0x3601c3,'userMessage':_0x12878a};}}export class OpenAIAdapter{constructor(_0x3be75d,_0x56f60a,_0x2b69d1,_0x39ae91){this['editor']=_0x3be75d,this[_0x1746('0x18')]=_0x56f60a,this[_0x1746('0x1c')]=_0x39ae91,this['_requestParameters']=_0x2b69d1,this[_0x1746('0x3c')]=new DOMParser(),this[_0x1746('0x4')]=new XMLSerializer();}async['sendPrompt'](_0x248209,_0x3d8187,_0x465451,_0x171564){const _0xad7354=this[_0x1746('0x29')][_0x1746('0x35')],_0xe143fd={'Content-Type':_0x1746('0x7')};if(_0x1746('0xe')==typeof this['_authKey'])_0xe143fd[_0x1746('0x10')]=_0x1746('0x3b')+this[_0x1746('0x1c')];else{if(this[_0x1746('0x1c')])try{const _0xfff88f=await this[_0x1746('0x1c')]();_0xe143fd[_0x1746('0x10')]=_0x1746('0x3b')+_0xfff88f;}catch(_0x24b9dd){return Promise[_0x1746('0xa')](new AIRequestError(_0x43fb77(_0xad7354,'AI_ERROR_AUTH_REQUEST')));}}const _0x597ee7={'model':this[_0x1746('0x40')][_0x1746('0x28')],'messages':[{'role':_0x1746('0x4b'),'content':_0x248209},{'role':'user','content':_0x3d8187}],'stream':this[_0x1746('0x40')][_0x1746('0x14')],'max_tokens':this[_0x1746('0x40')][_0x1746('0x46')],'temperature':this[_0x1746('0x40')][_0x1746('0x22')],'top_p':this[_0x1746('0x40')][_0x1746('0x4a')]};this[_0x1746('0x40')][_0x1746('0x2')]&&(_0x597ee7[_0x1746('0x2')]=this['_requestParameters'][_0x1746('0x2')]);const _0x129bef={'method':_0x1746('0x1'),'headers':_0xe143fd,'body':JSON[_0x1746('0x4d')](_0x597ee7),'signal':_0x465451},_0x584abe=await fetch(this[_0x1746('0x18')],_0x129bef);if(_0x584abe['ok'])return this[_0x1746('0x40')][_0x1746('0x14')]?await this[_0x1746('0x1e')](_0x584abe,_0x171564):await this[_0x1746('0x2f')](_0x584abe,_0x171564),Promise['resolve']();{const _0x4bdba2=await _0x584abe[_0x1746('0x2b')]();return _0x4bdba2[_0x1746('0x16')]('context_length_exceeded')?Promise['reject'](new AIRequestError(_0x43fb77(_0xad7354,'AI_ERROR_CONTEXT_LENGTH'))):_0x4bdba2[_0x1746('0x16')](_0x1746('0x43'))?Promise[_0x1746('0xa')](new AIRequestError(_0x43fb77(_0xad7354,_0x1746('0x45')))):Promise[_0x1746('0xa')](new Error(_0x4bdba2));}}async[_0x1746('0x1e')](_0x423428,_0xe0e679){const _0x384f40=_0x423428['body'][_0x1746('0x39')](),_0x32e215=new TextDecoder();let _0x555d84='',_0x4470d8='',_0x5d4c82='',_0x2bb807=!0x1;for(;!_0x2bb807;){const {done:_0x4d69c7,value:_0xf8af25}=await _0x384f40[_0x1746('0xd')](),_0x364e5b=_0x555d84+_0x32e215[_0x1746('0x3f')](_0xf8af25);let _0x236cfb='';_0x2bb807=_0x4d69c7;try{_0x236cfb=this[_0x1746('0x51')](_0x364e5b),_0x555d84='';}catch(_0x2d17a4){_0x555d84+=_0x364e5b;continue;}_0x4470d8+=_0x236cfb,!_0x4d69c7&&this['_isBufferIncomplete'](_0x4470d8)||_0x4470d8&&(_0x5d4c82+=_0x4470d8,_0xe0e679(this[_0x1746('0x25')](_0x5d4c82)),_0x4470d8='');}return Promise[_0x1746('0x26')]();}async[_0x1746('0x2f')](_0x12892a,_0x57a0d1){const _0x142827=(await _0x12892a[_0x1746('0x23')]())[_0x1746('0x31')][0x0][_0x1746('0x2d')]['content'];return _0x57a0d1(this['_parseAndNormalizeContent'](_0x142827)),Promise[_0x1746('0x26')]();}[_0x1746('0x17')](_0x54526b){const _0x12f287=_0x54526b['split']('<')['length']!==_0x54526b[_0x1746('0x24')]('>')[_0x1746('0x34')],_0x3bf3ea=_0x54526b[_0x1746('0x34')]<0x1e;return _0x12f287&&_0x3bf3ea;}['_parseAndNormalizeContent'](_0x5d1460){const _0x53460c=this[_0x1746('0x3c')][_0x1746('0x52')](_0x5d1460,_0x1746('0x50')),_0x1f4e86=this['editor'][_0x1746('0x8')][_0x1746('0x48')]['toView'](this[_0x1746('0x4')][_0x1746('0x3e')](_0x53460c['body']));return this[_0x1746('0x49')](_0x1f4e86),this[_0x1746('0x29')][_0x1746('0x8')]['stringify'](this['editor'][_0x1746('0x8')][_0x1746('0x42')](_0x1f4e86));}[_0x1746('0x49')](_0x3145fc){const _0x1d13ea=new _0x45f694(this[_0x1746('0x29')][_0x1746('0x5')][_0x1746('0x2a')][_0x1746('0x4f')]),_0xd09b05=new _0x401a5b({'name':/^h[1-5]$/}),_0xca6621=[];let _0x37c47c=!0x1;for(const _0x3eb9e8 of _0x3145fc)_0x3eb9e8['is']('element')&&_0xd09b05['match'](_0x3eb9e8)&&(_0xca6621['push'](_0x3eb9e8),'h1'==_0x3eb9e8[_0x1746('0x37')]&&(_0x37c47c=!0x0));if(_0x37c47c)for(const _0x19fae5 of _0xca6621)_0x1d13ea['rename']('h'+(parseInt(_0x19fae5['name'][0x1])+0x1),_0x19fae5);}['_cleanUpData'](_0x1ed79e){return _0x1ed79e[_0x1746('0x24')](/\n(?![^{]*\})/g)[_0x1746('0x1f')](_0x30c311=>_0x30c311[_0x1746('0x2e')](_0x1746('0x21'),''))[_0x1746('0x11')](_0x5e5889=>_0x5e5889&&_0x5e5889[_0x1746('0x34')]>0x0&&_0x1746('0x38')!==_0x5e5889)[_0x1746('0x1f')](_0x533c9d=>{const {choices:_0x313536}=JSON[_0x1746('0x3a')](_0x533c9d);if(_0x313536[0x0]&&_0x313536[0x0][_0x1746('0x41')]&&_0x313536[0x0][_0x1746('0x41')][_0x1746('0x6')])return _0x313536[0x0][_0x1746('0x41')][_0x1746('0x6')];})[_0x1746('0x11')](_0x345cd9=>_0x345cd9)['join']('');}}export class AIRequestError extends Error{constructor(_0x282356){super(_0x282356),this[_0x1746('0x37')]=_0x1746('0x13');}}

@@ -23,2 +23,2 @@ /*

*/
const _0x26bd=['abort','currentContext','bind','catch','isRendered','finishProcessing','set','render','view','initialContext','stopProcessing','mainAction','handleError','previousLabel','previousContext','once','prompt','message','_updateValue','finally','previousPrompt','_handlePrompt','value','connector','listenTo','isProcessing','processPrompt','submitPrompt','reset'];(function(_0x4f754a,_0x26bd84){const _0x228f27=function(_0x24698f){while(--_0x24698f){_0x4f754a['push'](_0x4f754a['shift']());}};_0x228f27(++_0x26bd84);}(_0x26bd,0x1b2));const _0x228f=function(_0x4f754a,_0x26bd84){_0x4f754a=_0x4f754a-0x0;let _0x228f27=_0x26bd[_0x4f754a];return _0x228f27;};import{ObservableMixin as _0xc0cb5d}from'ckeditor5/src/utils';import{AIRequestError as _0x5afde5}from'../aiconnector';export default class g extends _0xc0cb5d(){constructor(_0x1376ee,_0x14ba6e){super(),this['connector']=_0x1376ee,this['view']=_0x14ba6e,this[_0x228f('0x7')]({'initialContext':'','currentContext':'','previousContext':void 0x0,'previousPrompt':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this[_0x228f('0x9')][_0x228f('0x3')](_0x228f('0x17'))['to'](this,_0x228f('0x2')),this[_0x228f('0x19')](this[_0x228f('0x9')],_0x228f('0x1c'),(_0x312866,_0x42890f)=>{const _0x4c3989=this['currentContext']||this[_0x228f('0xa')];this['_handlePrompt'](_0x42890f,_0x4c3989);}),this[_0x228f('0x19')](this['view'],'tryAgainEvent',()=>{this[_0x228f('0x9')][_0x228f('0x11')]=this[_0x228f('0xe')],this[_0x228f('0x16')](this[_0x228f('0x15')],this[_0x228f('0xf')],this[_0x228f('0xe')]);}),this[_0x228f('0x19')](this[_0x228f('0x9')],_0x228f('0xb'),()=>{this[_0x228f('0xb')]();});}['destroy'](){this['stopListening']();}async['updateView']({prompt:_0x4919c8,htmlContent:_0x58719a,label:_0x589499,mainAction:_0x5b6966}){this['view'][_0x228f('0x11')]=_0x589499,this[_0x228f('0x9')][_0x228f('0xc')]=_0x5b6966,this[_0x228f('0xa')]=_0x58719a,_0x4919c8&&(this[_0x228f('0x9')][_0x228f('0x5')]?this[_0x228f('0x16')](_0x4919c8,_0x58719a,_0x589499):this['view'][_0x228f('0x10')](_0x228f('0x8'),()=>{this[_0x228f('0x16')](_0x4919c8,_0x58719a,_0x589499);}));}[_0x228f('0xb')](){this[_0x228f('0x1a')]&&(this[_0x228f('0x1a')]=!0x1,this[_0x228f('0x9')][_0x228f('0x6')](),this['connector'][_0x228f('0x1')]());}[_0x228f('0x0')](){this[_0x228f('0xa')]='',this[_0x228f('0x2')]='',this[_0x228f('0xf')]='',this[_0x228f('0x15')]='',this[_0x228f('0xe')]='',this[_0x228f('0x9')]['reset'](),this['stopProcessing']();}async[_0x228f('0x16')](_0x2c39d7,_0x42f867,_0x408e23){return this['isProcessing']=!0x0,this[_0x228f('0x9')]['startProcessing'](),this[_0x228f('0xf')]=_0x42f867,this['previousPrompt']=_0x2c39d7,this[_0x228f('0xe')]=_0x408e23||_0x2c39d7,new Promise(_0x31b543=>{this[_0x228f('0x18')][_0x228f('0x1b')](_0x2c39d7,_0x42f867,_0x2281a1=>this['_updateValue'](_0x2281a1))[_0x228f('0x4')](_0x485b0e=>{_0x485b0e instanceof _0x5afde5?this[_0x228f('0x9')][_0x228f('0xd')](_0x485b0e[_0x228f('0x12')]):this['view'][_0x228f('0xd')](),_0x31b543();})[_0x228f('0x14')](()=>{this['stopProcessing'](),_0x31b543();});});}[_0x228f('0x13')](_0x3792ae){this[_0x228f('0x2')]=''+_0x3792ae;}}
const _0x38e4=['processPrompt','connector','once','reset','set','currentContext','finally','updateView','isProcessing','submitPrompt','render','finishProcessing','mainAction','bind','value','_handlePrompt','prompt','stopProcessing','handleError','startProcessing','listenTo','isRendered','previousPrompt','view','tryAgainEvent','abort','previousContext'];(function(_0x375f64,_0x38e4db){const _0x53b153=function(_0x14412e){while(--_0x14412e){_0x375f64['push'](_0x375f64['shift']());}};_0x53b153(++_0x38e4db);}(_0x38e4,0x14c));const _0x53b1=function(_0x375f64,_0x38e4db){_0x375f64=_0x375f64-0x0;let _0x53b153=_0x38e4[_0x375f64];return _0x53b153;};import{ObservableMixin as _0x2870ed}from'ckeditor5/src/utils';import{AIRequestError as _0x2f8e19}from'../aiconnector';export default class g extends _0x2870ed(){constructor(_0x5d8ccd,_0x59b01c){super(),this['connector']=_0x5d8ccd,this[_0x53b1('0xf')]=_0x59b01c,this[_0x53b1('0x17')]({'initialContext':'','currentContext':'','previousContext':void 0x0,'previousPrompt':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this[_0x53b1('0xf')][_0x53b1('0x5')](_0x53b1('0x6'))['to'](this,_0x53b1('0x18')),this['listenTo'](this[_0x53b1('0xf')],_0x53b1('0x1'),(_0x6414ec,_0x303d02)=>{const _0x44f810=this[_0x53b1('0x18')]||this['initialContext'];this[_0x53b1('0x7')](_0x303d02,_0x44f810);}),this[_0x53b1('0xc')](this[_0x53b1('0xf')],_0x53b1('0x10'),()=>{this['view'][_0x53b1('0x8')]=this['previousLabel'],this['_handlePrompt'](this[_0x53b1('0xe')],this[_0x53b1('0x12')],this['previousLabel']);}),this[_0x53b1('0xc')](this[_0x53b1('0xf')],_0x53b1('0x9'),()=>{this[_0x53b1('0x9')]();});}['destroy'](){this['stopListening']();}async[_0x53b1('0x1a')]({prompt:_0x858cd,htmlContent:_0x4408da,label:_0x395704,mainAction:_0x226aed}){this[_0x53b1('0xf')][_0x53b1('0x8')]=_0x395704,this['view'][_0x53b1('0x4')]=_0x226aed,this['initialContext']=_0x4408da,_0x858cd&&(this['view'][_0x53b1('0xd')]?this[_0x53b1('0x7')](_0x858cd,_0x4408da,_0x395704):this[_0x53b1('0xf')][_0x53b1('0x15')](_0x53b1('0x2'),()=>{this[_0x53b1('0x7')](_0x858cd,_0x4408da,_0x395704);}));}['stopProcessing'](){this['isProcessing']&&(this[_0x53b1('0x0')]=!0x1,this[_0x53b1('0xf')][_0x53b1('0x3')](),this[_0x53b1('0x14')][_0x53b1('0x11')]());}[_0x53b1('0x16')](){this['initialContext']='',this[_0x53b1('0x18')]='',this[_0x53b1('0x12')]='',this['previousPrompt']='',this['previousLabel']='',this['view'][_0x53b1('0x16')](),this['stopProcessing']();}async[_0x53b1('0x7')](_0x5b706f,_0x1d7d12,_0x5ef3a7){return this['isProcessing']=!0x0,this[_0x53b1('0xf')][_0x53b1('0xb')](),this[_0x53b1('0x12')]=_0x1d7d12,this['previousPrompt']=_0x5b706f,this['previousLabel']=_0x5ef3a7||_0x5b706f,new Promise(_0x50a01d=>{this[_0x53b1('0x14')][_0x53b1('0x13')](_0x5b706f,_0x1d7d12,_0x271e99=>this['_updateValue'](_0x271e99))['catch'](_0x32f034=>{_0x32f034 instanceof _0x2f8e19?this[_0x53b1('0xf')][_0x53b1('0xa')](_0x32f034['message']):this[_0x53b1('0xf')][_0x53b1('0xa')](),_0x50a01d();})[_0x53b1('0x19')](()=>{this[_0x53b1('0x9')](),_0x50a01d();});});}['_updateValue'](_0x20d514){this['currentContext']=''+_0x20d514;}}

@@ -23,2 +23,2 @@ /*

*/
const _0x2c56=['labelView','match','filter','label','first','isVisible','length','items','highlightText'];(function(_0xa90d83,_0x2c5619){const _0x1564f7=function(_0x111715){while(--_0x111715){_0xa90d83['push'](_0xa90d83['shift']());}};_0x1564f7(++_0x2c5619);}(_0x2c56,0x90));const _0x1564=function(_0xa90d83,_0x2c5619){_0xa90d83=_0xa90d83-0x0;let _0x1564f7=_0x2c56[_0xa90d83];return _0x1564f7;};import{ListView as _0x59e8ed}from'ckeditor5/src/ui';export default class v extends _0x59e8ed{['filter'](_0x21c973){let _0x34e29a=0x0,_0x2dae69=0x0;for(const _0x22a1fb of this[_0x1564('0x7')]){const _0x3f5506=_0x22a1fb,_0x309c78=_0x21c973&&!!_0x3f5506[_0x1564('0x3')][_0x1564('0x1')](_0x21c973);_0x3f5506[_0x1564('0x0')][_0x1564('0x8')](_0x309c78?_0x21c973:null);for(const _0x597eb5 of _0x3f5506[_0x1564('0x7')]){const _0x328fe2=_0x597eb5['children'][_0x1564('0x4')],_0x5a33d1=_0x328fe2[_0x1564('0x0')];if(_0x21c973){const _0x19d010=!!_0x328fe2[_0x1564('0x3')][_0x1564('0x1')](_0x21c973);_0x5a33d1[_0x1564('0x8')](_0x19d010?_0x21c973:null),_0x597eb5['isVisible']=_0x309c78||_0x19d010;}else _0x597eb5[_0x1564('0x5')]=!0x0,_0x5a33d1[_0x1564('0x8')](null);}const _0x37663f=_0x3f5506[_0x1564('0x7')][_0x1564('0x2')](_0x201a5c=>_0x201a5c[_0x1564('0x5')])[_0x1564('0x6')];_0x34e29a+=_0x3f5506['items'][_0x1564('0x6')],_0x2dae69+=_0x309c78?_0x3f5506['items'][_0x1564('0x6')]:_0x37663f,_0x3f5506['isVisible']=_0x309c78||!!_0x37663f;}return{'resultsCount':_0x2dae69,'totalItemsCount':_0x34e29a};}}
const _0x1330=['match','items','highlightText','isVisible','label','length','children','filter'];(function(_0x2145d0,_0x13302e){const _0x584016=function(_0x5b01f0){while(--_0x5b01f0){_0x2145d0['push'](_0x2145d0['shift']());}};_0x584016(++_0x13302e);}(_0x1330,0xef));const _0x5840=function(_0x2145d0,_0x13302e){_0x2145d0=_0x2145d0-0x0;let _0x584016=_0x1330[_0x2145d0];return _0x584016;};import{ListView as _0x4a3d0f}from'ckeditor5/src/ui';export default class v extends _0x4a3d0f{['filter'](_0x439334){let _0x266164=0x0,_0x1283a0=0x0;for(const _0x2b4303 of this[_0x5840('0x2')]){const _0x322be2=_0x2b4303,_0x5016e2=_0x439334&&!!_0x322be2[_0x5840('0x5')][_0x5840('0x1')](_0x439334);_0x322be2['labelView']['highlightText'](_0x5016e2?_0x439334:null);for(const _0x106cf3 of _0x322be2[_0x5840('0x2')]){const _0x56caaf=_0x106cf3[_0x5840('0x7')]['first'],_0x1cac2e=_0x56caaf['labelView'];if(_0x439334){const _0x9deb3b=!!_0x56caaf[_0x5840('0x5')][_0x5840('0x1')](_0x439334);_0x1cac2e[_0x5840('0x3')](_0x9deb3b?_0x439334:null),_0x106cf3[_0x5840('0x4')]=_0x5016e2||_0x9deb3b;}else _0x106cf3[_0x5840('0x4')]=!0x0,_0x1cac2e[_0x5840('0x3')](null);}const _0xbfbe9a=_0x322be2[_0x5840('0x2')][_0x5840('0x0')](_0x52260b=>_0x52260b[_0x5840('0x4')])[_0x5840('0x6')];_0x266164+=_0x322be2[_0x5840('0x2')][_0x5840('0x6')],_0x1283a0+=_0x5016e2?_0x322be2[_0x5840('0x2')][_0x5840('0x6')]:_0xbfbe9a,_0x322be2[_0x5840('0x4')]=_0x5016e2||!!_0xbfbe9a;}return{'resultsCount':_0x1283a0,'totalItemsCount':_0x266164};}}

@@ -23,2 +23,2 @@ /*

*/
const _0x40f0=['style','set','ck-button__label'];(function(_0x33c6c7,_0x40f008){const _0x3c7536=function(_0x4be16f){while(--_0x4be16f){_0x33c6c7['push'](_0x33c6c7['shift']());}};_0x3c7536(++_0x40f008);}(_0x40f0,0x13d));const _0x3c75=function(_0x33c6c7,_0x40f008){_0x33c6c7=_0x33c6c7-0x0;let _0x3c7536=_0x40f0[_0x33c6c7];return _0x3c7536;};import{HighlightedTextView as _0x48cbe6}from'ckeditor5/src/ui';export default class C extends _0x48cbe6{constructor(){super(),this[_0x3c75('0x2')]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x16a6b1=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x3c75('0x0')],'style':_0x16a6b1['to'](_0x3c75('0x1')),'id':_0x16a6b1['to']('id')}});}}
const _0x206c=['ck-button__label'];(function(_0x42ce47,_0x206c2a){const _0x290584=function(_0xce6669){while(--_0xce6669){_0x42ce47['push'](_0x42ce47['shift']());}};_0x290584(++_0x206c2a);}(_0x206c,0x17c));const _0x2905=function(_0x42ce47,_0x206c2a){_0x42ce47=_0x42ce47-0x0;let _0x290584=_0x206c[_0x42ce47];return _0x290584;};import{HighlightedTextView as _0xd160fb}from'ckeditor5/src/ui';export default class C extends _0xd160fb{constructor(){super(),this['set']({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x5543e8=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x2905('0x0')],'style':_0x5543e8['to']('style'),'id':_0x5543e8['to']('id')}});}}

@@ -23,2 +23,2 @@ /*

*/
const _0x5071=['extendTemplate','ck-label','bindTemplate','set','for','ck-editor__label_'];(function(_0x252689,_0x5071ed){const _0x51cf5a=function(_0x36e7e6){while(--_0x36e7e6){_0x252689['push'](_0x252689['shift']());}};_0x51cf5a(++_0x5071ed);}(_0x5071,0x100));const _0x51cf=function(_0x252689,_0x5071ed){_0x252689=_0x252689-0x0;let _0x51cf5a=_0x5071[_0x252689];return _0x51cf5a;};import{HighlightedTextView as _0x54d041}from'ckeditor5/src/ui';import{uid as _0x496a93}from'ckeditor5/src/utils';export default class k extends _0x54d041{constructor(){super(),this[_0x51cf('0x5')](_0x51cf('0x0'),void 0x0);const _0x325a7b=this[_0x51cf('0x4')];this['id']=_0x51cf('0x1')+_0x496a93(),this[_0x51cf('0x2')]({'attributes':{'class':['ck',_0x51cf('0x3')],'id':this['id'],'for':_0x325a7b['to']('for')}});}}
const _0x4904=['ck-label','for','bindTemplate','ck-editor__label_'];(function(_0x4038e9,_0x490436){const _0x3fa721=function(_0x17699a){while(--_0x17699a){_0x4038e9['push'](_0x4038e9['shift']());}};_0x3fa721(++_0x490436);}(_0x4904,0x172));const _0x3fa7=function(_0x4038e9,_0x490436){_0x4038e9=_0x4038e9-0x0;let _0x3fa721=_0x4904[_0x4038e9];return _0x3fa721;};import{HighlightedTextView as _0x592d83}from'ckeditor5/src/ui';import{uid as _0x4ed213}from'ckeditor5/src/utils';export default class k extends _0x592d83{constructor(){super(),this['set']('for',void 0x0);const _0x97cb50=this[_0x3fa7('0x0')];this['id']=_0x3fa7('0x1')+_0x4ed213(),this['extendTemplate']({'attributes':{'class':['ck',_0x3fa7('0x2')],'id':this['id'],'for':_0x97cb50['to'](_0x3fa7('0x3'))}});}}

@@ -23,2 +23,2 @@ /*

*/
const _0x1d56=['ck-hidden','appendChild','_copyHTMLToClipboard','style','text/html','element','ClipboardItem','write','check','_createCopyButton','innerHTML','div','bind','loaderView','ck-reset_all-excluded','setTemplate','body','execute','createElement','locale','scrollTo','contentFieldView','render','position','remove','ck-ai-form__content-area','_createLoader','isVisible','left','clipboard','ck-ai-form__copy-button-wrapper','AI\x20is\x20writing...','set','absolute','focus','removeAllRanges','execCommand','scrollHeight','copyButtonView','bindTemplate','.ck-ai-form__loader','ck-ai-form__content-field','getSelection','ck-ai-form__content-area--processing','setContent','addRange','class','value','ck-content','selectNodeContents','Copy','text/plain','\x20ck-ai-form__copy-button--copied','appendLoader','ck-ai-form__copy-button','ck-ai-form__content-area-wrapper','isProcessing'];(function(_0x161eb4,_0x1d569b){const _0x1e7804=function(_0x559314){while(--_0x559314){_0x161eb4['push'](_0x161eb4['shift']());}};_0x1e7804(++_0x1d569b);}(_0x1d56,0xc0));const _0x1e78=function(_0x161eb4,_0x1d569b){_0x161eb4=_0x161eb4-0x0;let _0x1e7804=_0x1d56[_0x161eb4];return _0x1e7804;};import{global as _0x1c5495}from'ckeditor5/src/utils';import{View as _0x15d419,ButtonView as _0x5caccf,SpinnerView as _0x23626a}from'ckeditor5/src/ui';import _0x58d1ee from'../../../theme/icons/copy.svg';import{getTranslation as _0x12583c}from'../../utils/common-translations';import{icons as _0x1c12b8}from'ckeditor5/src/core';export default class D extends _0x15d419{constructor(_0x5ab94d,_0x5ef22c=''){super(_0x5ab94d),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x315b0c=this[_0x1e78('0x12')];this[_0x1e78('0x0')]=new ContentFieldView(_0x5ab94d,_0x5ef22c),this['copyButtonView']=this[_0x1e78('0x2d')](),this[_0x1e78('0x33')]({'tag':'div','attributes':{'class':['ck',_0x1e78('0x22'),_0x315b0c['if']('isVisible',_0x1e78('0x24'),_0x2aaadd=>!_0x2aaadd)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck',_0x1e78('0x4'),_0x315b0c['if'](_0x1e78('0x23'),_0x1e78('0x16'))]},'children':[this[_0x1e78('0x0')],{'tag':_0x1e78('0x2f'),'attributes':{'class':['ck',_0x1e78('0x9')]},'children':[this[_0x1e78('0x11')]]}]}]});}[_0x1e78('0x1')](){super['render'](),this[_0x1e78('0x1a')]&&this[_0x1e78('0x0')][_0x1e78('0x17')](this['value']);let _0x7c21bb=!0x1;this['on']('change:value',(_0x10abb4,_0x2d9886,_0x233e68)=>{const _0x1161a4=!this[_0x1e78('0x0')][_0x1e78('0x29')]['querySelector'](_0x1e78('0x13'));this[_0x1e78('0x0')][_0x1e78('0x17')](_0x233e68),this[_0x1e78('0x23')]&&_0x1161a4&&!_0x7c21bb&&this[_0x1e78('0x29')][_0x1e78('0x38')]({'top':this[_0x1e78('0x29')][_0x1e78('0x10')],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x4c90f1,_0x4de034,_0x4bbfc7)=>{_0x7c21bb=!0x1,_0x4bbfc7?(this[_0x1e78('0x1a')]=null,this[_0x1e78('0x0')]['appendLoader']()):this[_0x1e78('0x1a')]||this[_0x1e78('0x0')][_0x1e78('0x17')]('');}),this['listenTo'](this[_0x1e78('0x29')],'wheel',()=>{_0x7c21bb=!0x0;}),this['listenTo'](this[_0x1e78('0x29')],'mousedown',()=>{_0x7c21bb=!0x0;});}[_0x1e78('0xd')](){this[_0x1e78('0x29')][_0x1e78('0xd')]();}['_createCopyButton'](){const _0x5511b7=this[_0x1e78('0x37')],_0xd2d097=new _0x5caccf(this[_0x1e78('0x37')]),_0x1cff2d=_0x1e78('0x21');return _0xd2d097[_0x1e78('0xb')]({'label':_0x12583c(_0x5511b7,_0x1e78('0x1d')),'icon':_0x58d1ee,'class':_0x1cff2d,'tooltip':!0x0}),_0xd2d097[_0x1e78('0x30')](_0x1e78('0x6'))['to'](this,_0x1e78('0x1a'),_0x58aafe=>!!_0x58aafe),_0xd2d097[_0x1e78('0x30')]('isEnabled')['to'](this,_0x1e78('0x23'),_0x31365c=>!_0x31365c),_0xd2d097['on'](_0x1e78('0x35'),()=>{this[_0x1e78('0x26')](this[_0x1e78('0x0')][_0x1e78('0x29')]),_0xd2d097['icon']=_0x1c12b8[_0x1e78('0x2c')],_0xd2d097[_0x1e78('0x19')]=_0x1cff2d+_0x1e78('0x1f'),this[_0x1e78('0xd')](),setTimeout(()=>{_0xd2d097['icon']=_0x58d1ee,_0xd2d097[_0x1e78('0x19')]=_0x1cff2d;},0x3e8);}),_0xd2d097;}[_0x1e78('0x26')](_0x24963f){const {window:_0x124dbb,document:_0x3db3cc}=_0x1c5495;if(_0x124dbb[_0x1e78('0x2a')]){const {Blob:_0x4dd01a,ClipboardItem:_0x24737b}=_0x124dbb,_0x41d748=[new _0x24737b({'text/html':new _0x4dd01a([_0x24963f[_0x1e78('0x2e')]],{'type':_0x1e78('0x28')}),'text/plain':new _0x4dd01a([_0x24963f['textContent']||''],{'type':_0x1e78('0x1e')})})];navigator[_0x1e78('0x8')][_0x1e78('0x2b')](_0x41d748);}else{const _0x56e9f0=_0x3db3cc[_0x1e78('0x36')]('div');_0x56e9f0['style'][_0x1e78('0x2')]=_0x1e78('0xc'),_0x56e9f0[_0x1e78('0x27')][_0x1e78('0x7')]='-9999px',_0x56e9f0[_0x1e78('0x2e')]=_0x24963f[_0x1e78('0x2e')],_0x3db3cc[_0x1e78('0x34')]['appendChild'](_0x56e9f0);const _0x5df234=_0x3db3cc['createRange']();_0x5df234[_0x1e78('0x1c')](_0x56e9f0);const _0x36b4e7=_0x124dbb[_0x1e78('0x15')]();_0x36b4e7[_0x1e78('0xe')](),_0x36b4e7[_0x1e78('0x18')](_0x5df234),_0x3db3cc[_0x1e78('0xf')]('copy'),_0x56e9f0[_0x1e78('0x3')]();}}}export class ContentFieldView extends _0x15d419{constructor(_0x5a4182,_0x434f9c=''){super(_0x5a4182),this[_0x1e78('0x31')]=this[_0x1e78('0x5')](),this[_0x1e78('0x33')]({'tag':'div','attributes':{'class':['ck',_0x1e78('0x1b'),_0x434f9c,_0x1e78('0x32'),_0x1e78('0x14')]}});}[_0x1e78('0x17')](_0x90b929){this[_0x1e78('0x29')][_0x1e78('0x2e')]=_0x90b929;}[_0x1e78('0x20')](){this['element'][_0x1e78('0x25')](this[_0x1e78('0x31')][_0x1e78('0x29')]);}[_0x1e78('0x5')](){const _0x57b9b3=new _0x15d419(),_0x482140=this[_0x1e78('0x37')],_0x5c9405=new _0x23626a();return _0x5c9405[_0x1e78('0x6')]=!0x0,_0x57b9b3['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x5c9405,{'text':_0x12583c(_0x482140,_0x1e78('0xa'))}]}),_0x57b9b3[_0x1e78('0x1')](),_0x57b9b3;}}
const _0x544d=['appendChild','ck-ai-form__content-field','remove','class','getSelection','write','bind','setTemplate','removeAllRanges','innerHTML','ck-ai-form__copy-button-wrapper','appendLoader','ck-content','locale','setContent','listenTo','_createLoader','text/html','_copyHTMLToClipboard','absolute','execute','_createCopyButton','div','scrollHeight','ClipboardItem','createElement','-9999px','AI\x20is\x20writing...','style','value','copy','body','createRange','render','scrollTo','wheel','copyButtonView','element','smooth','Copy','loaderView','isVisible','check','position','text/plain','isProcessing','ck-ai-form__content-area-wrapper','textContent','mousedown','selectNodeContents','left','addRange','focus','change:value','.ck-ai-form__loader','execCommand','clipboard','contentFieldView','set','icon'];(function(_0x56ba88,_0x544d68){const _0x1689e5=function(_0x20b63a){while(--_0x20b63a){_0x56ba88['push'](_0x56ba88['shift']());}};_0x1689e5(++_0x544d68);}(_0x544d,0x1d0));const _0x1689=function(_0x56ba88,_0x544d68){_0x56ba88=_0x56ba88-0x0;let _0x1689e5=_0x544d[_0x56ba88];return _0x1689e5;};import{global as _0x22e675}from'ckeditor5/src/utils';import{View as _0x59a3fb,ButtonView as _0x438dcd,SpinnerView as _0x2fe068}from'ckeditor5/src/ui';import _0x4de345 from'../../../theme/icons/copy.svg';import{getTranslation as _0x556c68}from'../../utils/common-translations';import{icons as _0x4e2ce}from'ckeditor5/src/core';export default class D extends _0x59a3fb{constructor(_0xf65ca1,_0x5c4943=''){super(_0xf65ca1),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x19530e=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0xf65ca1,_0x5c4943),this['copyButtonView']=this[_0x1689('0x25')](),this[_0x1689('0x17')]({'tag':'div','attributes':{'class':['ck',_0x1689('0x2'),_0x19530e['if'](_0x1689('0x39'),'ck-hidden',_0x50dd28=>!_0x50dd28)],'tabindex':'-1'},'children':[{'tag':_0x1689('0x26'),'attributes':{'class':['ck','ck-ai-form__content-area',_0x19530e['if'](_0x1689('0x1'),'ck-ai-form__content-area--processing')]},'children':[this['contentFieldView'],{'tag':_0x1689('0x26'),'attributes':{'class':['ck',_0x1689('0x1a')]},'children':[this[_0x1689('0x34')]]}]}]});}[_0x1689('0x31')](){super['render'](),this[_0x1689('0x2d')]&&this[_0x1689('0xd')][_0x1689('0x1e')](this[_0x1689('0x2d')]);let _0x3fe504=!0x1;this['on'](_0x1689('0x9'),(_0x17ec42,_0x3fdded,_0x145e39)=>{const _0x569182=!this[_0x1689('0xd')][_0x1689('0x35')]['querySelector'](_0x1689('0xa'));this['contentFieldView']['setContent'](_0x145e39),this[_0x1689('0x1')]&&_0x569182&&!_0x3fe504&&this['element'][_0x1689('0x32')]({'top':this[_0x1689('0x35')][_0x1689('0x27')],'behavior':_0x1689('0x36')});}),this['on']('change:isProcessing',(_0x2d79bf,_0x4c0937,_0x3a80eb)=>{_0x3fe504=!0x1,_0x3a80eb?(this[_0x1689('0x2d')]=null,this[_0x1689('0xd')][_0x1689('0x1b')]()):this['value']||this[_0x1689('0xd')]['setContent']('');}),this['listenTo'](this[_0x1689('0x35')],_0x1689('0x33'),()=>{_0x3fe504=!0x0;}),this[_0x1689('0x1f')](this[_0x1689('0x35')],_0x1689('0x4'),()=>{_0x3fe504=!0x0;});}[_0x1689('0x8')](){this[_0x1689('0x35')]['focus']();}[_0x1689('0x25')](){const _0x14c37d=this[_0x1689('0x1d')],_0x28c324=new _0x438dcd(this['locale']),_0x35e114='ck-ai-form__copy-button';return _0x28c324[_0x1689('0xe')]({'label':_0x556c68(_0x14c37d,_0x1689('0x37')),'icon':_0x4de345,'class':_0x35e114,'tooltip':!0x0}),_0x28c324[_0x1689('0x16')](_0x1689('0x39'))['to'](this,_0x1689('0x2d'),_0x3eaa99=>!!_0x3eaa99),_0x28c324[_0x1689('0x16')]('isEnabled')['to'](this,_0x1689('0x1'),_0x24a48c=>!_0x24a48c),_0x28c324['on'](_0x1689('0x24'),()=>{this[_0x1689('0x22')](this['contentFieldView']['element']),_0x28c324[_0x1689('0xf')]=_0x4e2ce[_0x1689('0x3a')],_0x28c324[_0x1689('0x13')]=_0x35e114+'\x20ck-ai-form__copy-button--copied',this[_0x1689('0x8')](),setTimeout(()=>{_0x28c324[_0x1689('0xf')]=_0x4de345,_0x28c324[_0x1689('0x13')]=_0x35e114;},0x3e8);}),_0x28c324;}['_copyHTMLToClipboard'](_0x431205){const {window:_0x15821b,document:_0x349aa2}=_0x22e675;if(_0x15821b[_0x1689('0x28')]){const {Blob:_0x538f63,ClipboardItem:_0x72d099}=_0x15821b,_0x1a0d63=[new _0x72d099({'text/html':new _0x538f63([_0x431205[_0x1689('0x19')]],{'type':_0x1689('0x21')}),'text/plain':new _0x538f63([_0x431205[_0x1689('0x3')]||''],{'type':_0x1689('0x0')})})];navigator[_0x1689('0xc')][_0x1689('0x15')](_0x1a0d63);}else{const _0x3b3764=_0x349aa2[_0x1689('0x29')]('div');_0x3b3764[_0x1689('0x2c')][_0x1689('0x3b')]=_0x1689('0x23'),_0x3b3764[_0x1689('0x2c')][_0x1689('0x6')]=_0x1689('0x2a'),_0x3b3764[_0x1689('0x19')]=_0x431205['innerHTML'],_0x349aa2[_0x1689('0x2f')][_0x1689('0x10')](_0x3b3764);const _0x2d3134=_0x349aa2[_0x1689('0x30')]();_0x2d3134[_0x1689('0x5')](_0x3b3764);const _0x107aed=_0x15821b[_0x1689('0x14')]();_0x107aed[_0x1689('0x18')](),_0x107aed[_0x1689('0x7')](_0x2d3134),_0x349aa2[_0x1689('0xb')](_0x1689('0x2e')),_0x3b3764[_0x1689('0x12')]();}}}export class ContentFieldView extends _0x59a3fb{constructor(_0x1dec50,_0x5db835=''){super(_0x1dec50),this[_0x1689('0x38')]=this[_0x1689('0x20')](),this[_0x1689('0x17')]({'tag':_0x1689('0x26'),'attributes':{'class':['ck',_0x1689('0x1c'),_0x5db835,'ck-reset_all-excluded',_0x1689('0x11')]}});}[_0x1689('0x1e')](_0x241800){this[_0x1689('0x35')][_0x1689('0x19')]=_0x241800;}[_0x1689('0x1b')](){this[_0x1689('0x35')][_0x1689('0x10')](this['loaderView'][_0x1689('0x35')]);}[_0x1689('0x20')](){const _0x3417b0=new _0x59a3fb(),_0x56d981=this['locale'],_0x329cdd=new _0x2fe068();return _0x329cdd[_0x1689('0x39')]=!0x0,_0x3417b0['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x329cdd,{'text':_0x556c68(_0x56d981,_0x1689('0x2b'))}]}),_0x3417b0[_0x1689('0x31')](),_0x3417b0;}}

@@ -23,2 +23,2 @@ /*

*/
const _0x2300=['bindTemplate','text','div','content','ck-ai-form__error','setTemplate'];(function(_0x38b6fb,_0x2300c0){const _0x4b7191=function(_0x26dda8){while(--_0x26dda8){_0x38b6fb['push'](_0x38b6fb['shift']());}};_0x4b7191(++_0x2300c0);}(_0x2300,0x152));const _0x4b71=function(_0x38b6fb,_0x2300c0){_0x38b6fb=_0x38b6fb-0x0;let _0x4b7191=_0x2300[_0x38b6fb];return _0x4b7191;};import{View as _0x2079d6,IconView as _0x23db96}from'ckeditor5/src/ui';import _0x137659 from'../../../theme/icons/error.svg';export default class K extends _0x2079d6{constructor(_0x28b08b,_0x5a73d7=''){super(_0x28b08b);const _0x3ed628=new _0x23db96(),_0x499d13=this[_0x4b71('0x4')];this['set'](_0x4b71('0x5'),_0x5a73d7),_0x3ed628[_0x4b71('0x1')]=_0x137659,this[_0x4b71('0x3')]({'tag':_0x4b71('0x0'),'attributes':{'class':['ck',_0x4b71('0x2')]},'children':[_0x3ed628,{'text':_0x499d13['to'](_0x4b71('0x5'))}]});}}
const _0x4590=['content','set','bindTemplate','text','setTemplate','ck-ai-form__error'];(function(_0x16e6af,_0x4590ab){const _0x1e0ac0=function(_0x2125c7){while(--_0x2125c7){_0x16e6af['push'](_0x16e6af['shift']());}};_0x1e0ac0(++_0x4590ab);}(_0x4590,0xc4));const _0x1e0a=function(_0x16e6af,_0x4590ab){_0x16e6af=_0x16e6af-0x0;let _0x1e0ac0=_0x4590[_0x16e6af];return _0x1e0ac0;};import{View as _0x284285,IconView as _0xcc9122}from'ckeditor5/src/ui';import _0x5414ce from'../../../theme/icons/error.svg';export default class K extends _0x284285{constructor(_0x2d17e9,_0x618868=''){super(_0x2d17e9);const _0x15da1c=new _0xcc9122(),_0x37380b=this[_0x1e0a('0x4')];this[_0x1e0a('0x3')]('text',_0x618868),_0x15da1c[_0x1e0a('0x2')]=_0x5414ce,this[_0x1e0a('0x0')]({'tag':'div','attributes':{'class':['ck',_0x1e0a('0x1')]},'children':[_0x15da1c,{'text':_0x37380b['to'](_0x1e0a('0x5'))}]});}}

@@ -23,2 +23,2 @@ /*

*/
const _0x1e28=['fire','queryView','enter','element','keystrokes','resultsView','excludeScrollbarsAndBorders','focus','width','submitButtonView','uiLanguageDirection','right','target','set','_createSubmitButton','execute','ck-ai-form__submit','ck-ai-form__toggle-history','Submit','History','fieldView','bind','filteredView','requestAnimationFrame','isVisible','render','focusCycler','submit','showHistoryButtonView','locale','isEnabled','focusLast','value','window','children','left','add','focusableChildren','maxRows','focusFirst'];(function(_0x4b8144,_0x1e288c){const _0x3540ec=function(_0x3818dd){while(--_0x3818dd){_0x4b8144['push'](_0x4b8144['shift']());}};_0x3540ec(++_0x1e288c);}(_0x1e28,0x1a1));const _0x3540=function(_0x4b8144,_0x1e288c){_0x4b8144=_0x4b8144-0x0;let _0x3540ec=_0x1e28[_0x4b8144];return _0x3540ec;};import{Rect as _0xa2dbb3,global as _0x381356,isVisible as _0x81ac91}from'ckeditor5/src/utils';import{AutocompleteView as _0x1b659d,ButtonView as _0x26caaf}from'ckeditor5/src/ui';import{icons as _0x3dd74e}from'ckeditor5/src/core';import{escape as _0x2deca6}from'lodash-es';import{getTranslation as _0x307598}from'../../utils/common-translations';import _0x137be2 from'../../../theme/icons/submit.svg';export default class Y extends _0x1b659d{constructor(_0x14db6d,_0x1b7798){super(_0x14db6d,_0x1b7798),this[_0x3540('0x18')]['fieldView']['minRows']=0x1,this[_0x3540('0x18')]['fieldView'][_0x3540('0x15')]=0x3,this['submitButtonView']=this['_createSubmitButton'](),this[_0x3540('0xb')]=this['_createShowHistoryButton'](),this['focusableChildren']['add'](this['showHistoryButtonView'],0x1),this[_0x3540('0x14')][_0x3540('0x13')](this[_0x3540('0x20')]);}[_0x3540('0x8')](){super[_0x3540('0x8')](),this[_0x3540('0x18')]['fieldWrapperChildren'][_0x3540('0x13')](this[_0x3540('0xb')]),this[_0x3540('0x11')][_0x3540('0x13')](this[_0x3540('0x20')]),this[_0x3540('0x1b')]['set'](_0x3540('0x19'),(_0x261349,_0x2782d7)=>{_0x261349[_0x3540('0x23')]==this[_0x3540('0x18')][_0x3540('0x3')][_0x3540('0x1a')]&&(this[_0x3540('0xa')](),_0x2782d7());});}[_0x3540('0x25')](){const _0x48e560=new _0x26caaf(this[_0x3540('0xc')]),_0x3ef9f7=this[_0x3540('0xc')];return _0x48e560[_0x3540('0x24')]({'icon':_0x137be2,'label':_0x307598(_0x3ef9f7,_0x3540('0x1')),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3540('0x27')}),_0x48e560['on']('execute',()=>{this[_0x3540('0xa')]();}),_0x48e560[_0x3540('0x4')](_0x3540('0xd'))['to'](this[_0x3540('0x18')][_0x3540('0x3')],'isEmpty',this,'isEnabled',(_0x50ba3e,_0x1ae142)=>!_0x50ba3e&&_0x1ae142),_0x48e560;}['_createShowHistoryButton'](){const _0x9b135e=new _0x26caaf(this[_0x3540('0xc')]),_0x495e22=this[_0x3540('0x1c')],_0x50054f=this[_0x3540('0xc')];_0x9b135e['set']({'label':_0x307598(_0x50054f,_0x3540('0x2')),'withText':!0x1,'icon':_0x3dd74e['history'],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x3540('0x0')}),_0x9b135e[_0x3540('0x4')]('isOn')['to'](_0x495e22,_0x3540('0x7')),_0x9b135e[_0x3540('0x4')](_0x3540('0xd'))['to'](this,_0x3540('0xd')),_0x9b135e['on'](_0x3540('0x26'),()=>{_0x495e22[_0x3540('0x7')]=!_0x495e22[_0x3540('0x7')],_0x495e22[_0x3540('0x7')]?this[_0x3540('0x5')]['focus']():this[_0x3540('0x1e')]();});const _0x18708b=()=>{_0x381356[_0x3540('0x10')][_0x3540('0x6')](()=>{if(_0x81ac91(this[_0x3540('0x1a')])){const _0x39f331=new _0xa2dbb3(this[_0x3540('0x18')]['fieldView'][_0x3540('0x1a')]),_0x213bae=_0x39f331[_0x3540('0x1f')],_0x47d7ce='rtl'===_0x50054f[_0x3540('0x21')]?_0x3540('0x12'):_0x3540('0x22');_0x39f331[_0x3540('0x1d')](),_0x9b135e[_0x3540('0x1a')]['style'][_0x47d7ce]=_0x213bae-_0x39f331[_0x3540('0x1f')]+0x1+'px';}});};return this['queryView'][_0x3540('0x3')]['on']('update',_0x18708b),this['on'](_0x3540('0x8'),_0x18708b),_0x9b135e;}[_0x3540('0xa')](){const _0x3302a1=this[_0x3540('0x18')][_0x3540('0x3')][_0x3540('0x1a')][_0x3540('0xf')];this[_0x3540('0x17')](_0x3540('0xa'),_0x2deca6(_0x3302a1));}[_0x3540('0x1e')](_0x19a59a){-0x1===_0x19a59a?this['focusCycler'][_0x3540('0xe')]():this[_0x3540('0x9')][_0x3540('0x16')]();}}
const _0xa8b0=['fire','focus','element','locale','isVisible','execute','requestAnimationFrame','bind','focusFirst','history','ck-ai-form__toggle-history','fieldView','minRows','target','window','render','focusCycler','resultsView','maxRows','isEmpty','isEnabled','children','set','rtl','value','keystrokes','uiLanguageDirection','queryView','add','style','submit','excludeScrollbarsAndBorders','History','isOn','focusLast','focusableChildren','Submit','showHistoryButtonView','_createShowHistoryButton','submitButtonView','enter'];(function(_0x46111f,_0xa8b09){const _0x1fea2e=function(_0x5335c8){while(--_0x5335c8){_0x46111f['push'](_0x46111f['shift']());}};_0x1fea2e(++_0xa8b09);}(_0xa8b0,0x18a));const _0x1fea=function(_0x46111f,_0xa8b09){_0x46111f=_0x46111f-0x0;let _0x1fea2e=_0xa8b0[_0x46111f];return _0x1fea2e;};import{Rect as _0x3b8675,global as _0x58197d,isVisible as _0x501d2e}from'ckeditor5/src/utils';import{AutocompleteView as _0xacf9b7,ButtonView as _0x2c581e}from'ckeditor5/src/ui';import{icons as _0x4210dc}from'ckeditor5/src/core';import{escape as _0xdf1c18}from'lodash-es';import{getTranslation as _0x2321eb}from'../../utils/common-translations';import _0x3e6bf9 from'../../../theme/icons/submit.svg';export default class Y extends _0xacf9b7{constructor(_0x5e28cb,_0x2590e4){super(_0x5e28cb,_0x2590e4),this[_0x1fea('0x2')][_0x1fea('0x1b')][_0x1fea('0x1c')]=0x1,this[_0x1fea('0x2')]['fieldView'][_0x1fea('0x22')]=0x3,this[_0x1fea('0xe')]=this['_createSubmitButton'](),this[_0x1fea('0xc')]=this[_0x1fea('0xd')](),this[_0x1fea('0xa')][_0x1fea('0x3')](this[_0x1fea('0xc')],0x1),this['focusableChildren'][_0x1fea('0x3')](this['submitButtonView']);}[_0x1fea('0x1f')](){super[_0x1fea('0x1f')](),this[_0x1fea('0x2')]['fieldWrapperChildren'][_0x1fea('0x3')](this['showHistoryButtonView']),this[_0x1fea('0x25')]['add'](this[_0x1fea('0xe')]),this[_0x1fea('0x0')][_0x1fea('0x26')](_0x1fea('0xf'),(_0x6d294f,_0xca84aa)=>{_0x6d294f[_0x1fea('0x1d')]==this[_0x1fea('0x2')][_0x1fea('0x1b')][_0x1fea('0x12')]&&(this['submit'](),_0xca84aa());});}['_createSubmitButton'](){const _0x271988=new _0x2c581e(this['locale']),_0x18666e=this[_0x1fea('0x13')];return _0x271988[_0x1fea('0x26')]({'icon':_0x3e6bf9,'label':_0x2321eb(_0x18666e,_0x1fea('0xb')),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x271988['on'](_0x1fea('0x15'),()=>{this['submit']();}),_0x271988[_0x1fea('0x17')](_0x1fea('0x24'))['to'](this[_0x1fea('0x2')]['fieldView'],_0x1fea('0x23'),this,'isEnabled',(_0x13bdf8,_0xa47b69)=>!_0x13bdf8&&_0xa47b69),_0x271988;}[_0x1fea('0xd')](){const _0x371037=new _0x2c581e(this['locale']),_0x4e2b9c=this[_0x1fea('0x21')],_0x4c8bc0=this[_0x1fea('0x13')];_0x371037[_0x1fea('0x26')]({'label':_0x2321eb(_0x4c8bc0,_0x1fea('0x7')),'withText':!0x1,'icon':_0x4210dc[_0x1fea('0x19')],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1fea('0x1a')}),_0x371037['bind'](_0x1fea('0x8'))['to'](_0x4e2b9c,_0x1fea('0x14')),_0x371037[_0x1fea('0x17')](_0x1fea('0x24'))['to'](this,_0x1fea('0x24')),_0x371037['on']('execute',()=>{_0x4e2b9c[_0x1fea('0x14')]=!_0x4e2b9c[_0x1fea('0x14')],_0x4e2b9c['isVisible']?this['filteredView'][_0x1fea('0x11')]():this[_0x1fea('0x11')]();});const _0x11a6bd=()=>{_0x58197d[_0x1fea('0x1e')][_0x1fea('0x16')](()=>{if(_0x501d2e(this[_0x1fea('0x12')])){const _0x48c4f2=new _0x3b8675(this[_0x1fea('0x2')]['fieldView']['element']),_0x30898a=_0x48c4f2['width'],_0x380d86=_0x1fea('0x27')===_0x4c8bc0[_0x1fea('0x1')]?'left':'right';_0x48c4f2[_0x1fea('0x6')](),_0x371037[_0x1fea('0x12')][_0x1fea('0x4')][_0x380d86]=_0x30898a-_0x48c4f2['width']+0x1+'px';}});};return this[_0x1fea('0x2')][_0x1fea('0x1b')]['on']('update',_0x11a6bd),this['on'](_0x1fea('0x1f'),_0x11a6bd),_0x371037;}[_0x1fea('0x5')](){const _0x43dca8=this[_0x1fea('0x2')][_0x1fea('0x1b')][_0x1fea('0x12')][_0x1fea('0x28')];this[_0x1fea('0x10')](_0x1fea('0x5'),_0xdf1c18(_0x43dca8));}[_0x1fea('0x11')](_0x3dfc98){-0x1===_0x3dfc98?this[_0x1fea('0x20')][_0x1fea('0x9')]():this[_0x1fea('0x20')][_0x1fea('0x18')]();}}

@@ -23,2 +23,2 @@ /*

*/
const _0x9f6f=['locale','replace','ck-button-action','_createButton','Try\x20again','_CONTENT','tryAgainButton','INSERT','isVisible','toUpperCase','bindTemplate','insertButton','REPLACE','stopButton','Stop','Insert\x20below','ck-hidden','replaceButton','bind','AI_','mainAction','set'];(function(_0x5ab595,_0x9f6f62){const _0xbaf976=function(_0x3756e6){while(--_0x3756e6){_0x5ab595['push'](_0x5ab595['shift']());}};_0xbaf976(++_0x9f6f62);}(_0x9f6f,0x1e1));const _0xbaf9=function(_0x5ab595,_0x9f6f62){_0x5ab595=_0x5ab595-0x0;let _0xbaf976=_0x9f6f[_0x5ab595];return _0xbaf976;};import{ToolbarView as _0x3cca7f,ButtonView as _0x52a9be}from'ckeditor5/src/ui';import{getTranslation as _0x3d6b4a}from'../../utils/common-translations';export var AIFormToolbarViewMainAction;!function(_0x302204){_0x302204[_0xbaf9('0xf')]=_0xbaf9('0x4'),_0x302204[_0xbaf9('0xa')]='insert';}(AIFormToolbarViewMainAction||(AIFormToolbarViewMainAction={}));export default class ii extends _0x3cca7f{constructor(_0x3b1ca1){super(_0x3b1ca1),this['set'](_0xbaf9('0xb'),!0x1),this[_0xbaf9('0x2')](_0xbaf9('0x1'),AIFormToolbarViewMainAction[_0xbaf9('0xf')]),this['replaceButton']=this['_createButton']('',_0xbaf9('0x5')),this[_0xbaf9('0x14')][_0xbaf9('0x15')]('label')['to'](this,'mainAction',_0x41d4f0=>_0x3d6b4a(_0x3b1ca1,_0xbaf9('0x0')+_0x41d4f0[_0xbaf9('0xc')]()+_0xbaf9('0x8'))),this[_0xbaf9('0xe')]=this['_createButton'](_0x3d6b4a(_0x3b1ca1,_0xbaf9('0x12'))),this[_0xbaf9('0x9')]=this[_0xbaf9('0x6')](_0x3d6b4a(_0x3b1ca1,_0xbaf9('0x7'))),this[_0xbaf9('0x10')]=this[_0xbaf9('0x6')](_0x3d6b4a(_0x3b1ca1,_0xbaf9('0x11')));const _0xbb4f9e=this[_0xbaf9('0xd')];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0xbb4f9e['if']('isVisible',_0xbaf9('0x13'),_0x34e087=>!_0x34e087)]}}),this['items']['addMany']([this[_0xbaf9('0x14')],this[_0xbaf9('0xe')],this[_0xbaf9('0x9')],this[_0xbaf9('0x10')]]);}['_createButton'](_0xb0a4c8,_0x2ead63){const _0x4636a7=new _0x52a9be(this[_0xbaf9('0x3')]);return _0x4636a7[_0xbaf9('0x2')]({'label':_0xb0a4c8,'class':_0x2ead63||'','isVisible':!0x0,'withText':!0x0}),_0x4636a7;}}
const _0x4061=['INSERT','replaceButton','AI_','label','mainAction','REPLACE','bind','insertButton','ck-ai-form__toolbar','items','_CONTENT','stopButton','Try\x20again','replace','set','ck-button-action','bindTemplate','isVisible','insert','_createButton','Stop'];(function(_0x370ec4,_0x40619d){const _0x15b453=function(_0xc07031){while(--_0xc07031){_0x370ec4['push'](_0x370ec4['shift']());}};_0x15b453(++_0x40619d);}(_0x4061,0x14b));const _0x15b4=function(_0x370ec4,_0x40619d){_0x370ec4=_0x370ec4-0x0;let _0x15b453=_0x4061[_0x370ec4];return _0x15b453;};import{ToolbarView as _0x5af7be,ButtonView as _0x34b6ae}from'ckeditor5/src/ui';import{getTranslation as _0x3ed115}from'../../utils/common-translations';export var AIFormToolbarViewMainAction;!function(_0x145ac1){_0x145ac1[_0x15b4('0xa')]=_0x15b4('0x12'),_0x145ac1[_0x15b4('0x5')]=_0x15b4('0x2');}(AIFormToolbarViewMainAction||(AIFormToolbarViewMainAction={}));export default class ii extends _0x5af7be{constructor(_0x5de140){super(_0x5de140),this[_0x15b4('0x13')](_0x15b4('0x1'),!0x1),this[_0x15b4('0x13')](_0x15b4('0x9'),AIFormToolbarViewMainAction[_0x15b4('0xa')]),this[_0x15b4('0x6')]=this[_0x15b4('0x3')]('',_0x15b4('0x14')),this[_0x15b4('0x6')][_0x15b4('0xb')](_0x15b4('0x8'))['to'](this,_0x15b4('0x9'),_0x576725=>_0x3ed115(_0x5de140,_0x15b4('0x7')+_0x576725['toUpperCase']()+_0x15b4('0xf'))),this[_0x15b4('0xc')]=this[_0x15b4('0x3')](_0x3ed115(_0x5de140,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](_0x3ed115(_0x5de140,_0x15b4('0x11'))),this[_0x15b4('0x10')]=this['_createButton'](_0x3ed115(_0x5de140,_0x15b4('0x4')));const _0x5a7d79=this[_0x15b4('0x0')];this['extendTemplate']({'attributes':{'class':[_0x15b4('0xd'),_0x5a7d79['if'](_0x15b4('0x1'),'ck-hidden',_0x501b19=>!_0x501b19)]}}),this[_0x15b4('0xe')]['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this[_0x15b4('0x10')]]);}['_createButton'](_0x17b9c3,_0x2554c2){const _0x428df4=new _0x34b6ae(this['locale']);return _0x428df4[_0x15b4('0x13')]({'label':_0x17b9c3,'class':_0x2554c2||'','isVisible':!0x0,'withText':!0x0}),_0x428df4;}}

@@ -23,2 +23,2 @@ /*

*/
const _0x5529=['focus','set','isError','value','contentArea','listenTo','shift\x20+\x20tab','search','tryAgainEvent','prompt','tryAgainButton','insertButton','focusTracker','tab','clearHistory','replaceContent','trim','historyGroupView','fieldView','startProcessing','forwardCycle','errorView','createCollection','Ask\x20AI\x20to\x20improve\x20generated\x20text','execute','focusCycler','ck-hidden','insertContentBelow','queryView','setTemplate','toolbar','_promptHistory','fire','reset','element','_focusCycler','items','Ask\x20AI\x20to\x20edit\x20or\x20generate','stop','submitPrompt','label','locale','mainAction','isVisible','promptView','bindTo','AI_ERROR_FAILED','header','_createPromptView','add','isProcessing','div','render','AI\x20Assistant','submit','Empty\x20history','keystrokes','isEnabled','stopButton','_focusables','replaceButton','ck-ai-form','_createToolbar','bind','text','focusPrevious','backwardCycle','finishProcessing','_createHistoryView','copyButtonView'];(function(_0x4101d5,_0x55296f){const _0x45744b=function(_0x3c8b5b){while(--_0x3c8b5b){_0x4101d5['push'](_0x4101d5['shift']());}};_0x45744b(++_0x55296f);}(_0x5529,0x175));const _0x4574=function(_0x4101d5,_0x55296f){_0x4101d5=_0x4101d5-0x0;let _0x45744b=_0x5529[_0x4101d5];return _0x45744b;};import{FocusTracker as _0x31351c,KeystrokeHandler as _0x3c4c8c}from'ckeditor5/src/utils';import{View as _0x35f540,FocusCycler as _0x59afc5,createLabeledTextarea as _0x1bd59f,FormHeaderView as _0xe48ff5}from'ckeditor5/src/ui';import _0x185884,{AIFormToolbarViewMainAction as _0x2b8573}from'./aiformtoolbarview';import _0x578de9 from'./aiformcontentarea';import _0xa4020d from'./aiformerrorview';import _0x1702fd from'./aiformpromptview';import _0x36030a from'./aihistorylistview';import _0x5f22fb from'./aihistorylistitemview';import _0x1fcab3 from'./prompthistory';import{getTranslation as _0x4f4ba2}from'../../utils/common-translations';import _0x178424 from'../../../theme/icons/robot-pencil.svg';export default class y extends _0x35f540{constructor(_0x296312,_0x1f55cf,_0x1c29e1=''){super(_0x296312),this[_0x4574('0x30')](_0x4574('0x22'),!0x0),this[_0x4574('0x30')](_0x4574('0x1b'),!0x1),this['set'](_0x4574('0x38'),''),this[_0x4574('0x30')](_0x4574('0x32'),''),this[_0x4574('0x30')](_0x4574('0x31'),!0x1),this['set']('mainAction',_0x2b8573['REPLACE']),this['_promptHistory']=new _0x1fcab3(),this['errorView']=new _0xa4020d(_0x296312),this['header']=new _0xe48ff5(_0x296312,{'label':_0x4f4ba2(_0x296312,_0x4574('0x1e')),'icon':_0x178424}),this[_0x4574('0x33')]=new _0x578de9(_0x296312,_0x1c29e1),this[_0x4574('0x33')]['bind'](_0x4574('0x1b'))['to'](this),this[_0x4574('0x33')][_0x4574('0x28')](_0x4574('0x32'))['to'](this),this[_0x4574('0x7')]=this[_0x4574('0x27')](),this[_0x4574('0x7')][_0x4574('0x28')](_0x4574('0x13'))['to'](this),this[_0x4574('0x15')]=this['_createPromptView'](),this[_0x4574('0x3b')]=new _0x31351c(),this[_0x4574('0x21')]=new _0x3c4c8c(),this[_0x4574('0x24')]=this[_0x4574('0x45')]([this['contentArea'],this[_0x4574('0x33')][_0x4574('0x2e')],this['toolbar'],this[_0x4574('0x15')]]),this[_0x4574('0xc')]=new _0x59afc5({'focusables':this[_0x4574('0x24')],'focusTracker':this[_0x4574('0x3b')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x4574('0x35'),'focusNext':_0x4574('0x3c')}}),this[_0x4574('0x15')][_0x4574('0x2')]['on'](_0x4574('0x43'),_0x43639e=>{this[_0x4574('0xc')]['focusNext'](),_0x43639e[_0x4574('0xf')]();}),this[_0x4574('0x15')]['focusCycler']['on'](_0x4574('0x2b'),_0x1dbcc6=>{this[_0x4574('0xc')][_0x4574('0x2a')](),_0x1dbcc6[_0x4574('0xf')]();}),this[_0x4574('0x15')][_0x4574('0x5')][_0x4574('0x41')]['bind'](_0x4574('0x32'))['to'](this,_0x4574('0x38'));const _0x41a912=this['bindTemplate'];this[_0x4574('0x6')]({'tag':_0x4574('0x1c'),'attributes':{'class':['ck',_0x4574('0x26'),_0x1f55cf],'tabindex':'-1'},'children':[this[_0x4574('0x18')],{'tag':_0x4574('0x1c'),'attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':_0x4574('0x1c'),'attributes':{'class':[_0x41a912['if'](_0x4574('0x31'),_0x4574('0x3'),_0x17b3aa=>!_0x17b3aa)]},'children':[this[_0x4574('0x44')]]},this['contentArea'],this[_0x4574('0x7')],this[_0x4574('0x15')]]}]});}[_0x4574('0x1d')](){super[_0x4574('0x1d')](),this[_0x4574('0x3b')][_0x4574('0x1a')](this['contentArea'][_0x4574('0xb')]),this['focusTracker'][_0x4574('0x1a')](this[_0x4574('0x33')]['copyButtonView'][_0x4574('0xb')]),this[_0x4574('0x3b')][_0x4574('0x1a')](this[_0x4574('0x7')]['element']),this[_0x4574('0x3b')][_0x4574('0x1a')](this[_0x4574('0x15')][_0x4574('0xb')]),this[_0x4574('0x21')][_0x4574('0x34')](this[_0x4574('0xb')]);}[_0x4574('0x2f')](){this[_0x4574('0xc')]['focusFirst']();}['reset'](){this[_0x4574('0x38')]='',this[_0x4574('0x32')]='',this[_0x4574('0x15')][_0x4574('0xa')](),this['contentArea'][_0x4574('0x14')]=!0x1,this[_0x4574('0x7')]['isVisible']=!0x1;}[_0x4574('0x19')](){const _0x52e528=this[_0x4574('0x12')],_0x40b019=new _0x1702fd(_0x52e528,{'queryView':{'label':_0x4f4ba2(_0x52e528,_0x4574('0xe')),'creator':_0x1bd59f,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4f4ba2(_0x52e528,_0x4574('0x20')),'secondary':_0x4f4ba2(_0x52e528,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this[_0x4574('0x2d')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x40b019[_0x4574('0x28')]('isEnabled')['to'](this,_0x4574('0x22'),this,_0x4574('0x1b'),(_0x3c710a,_0x3d369e)=>_0x3c710a&&!_0x3d369e),this[_0x4574('0x34')](_0x40b019,_0x4574('0x1f'),(_0x3232d7,_0x57b5eb)=>{this[_0x4574('0x38')]=_0x57b5eb,this['fire'](_0x4574('0x10'),this[_0x4574('0x38')]),_0x57b5eb[_0x4574('0x3f')]()&&this[_0x4574('0x8')][_0x4574('0x1a')]({'prompt':_0x57b5eb[_0x4574('0x3f')]()},0x0);},{'priority':'high'}),_0x40b019;}[_0x4574('0x2d')](){const _0x2135fc=new _0x36030a(this[_0x4574('0x12')]);return _0x2135fc[_0x4574('0x40')][_0x4574('0xd')][_0x4574('0x16')](this[_0x4574('0x8')])['as'](_0x5f22fb),_0x2135fc['on'](_0x4574('0x3d'),()=>{this['_promptHistory']['clear'](),this[_0x4574('0x15')][_0x4574('0x36')](''),this[_0x4574('0x15')][_0x4574('0x2f')]();}),_0x2135fc;}[_0x4574('0x27')](){const _0x4bc377=new _0x185884(this['locale']);return _0x4bc377['replaceButton'][_0x4574('0x28')](_0x4574('0x22'))['to'](this,'isEnabled',this,_0x4574('0x1b'),this,'value',(_0xe5842a,_0x39e98f,_0x116173)=>_0xe5842a&&!_0x39e98f&&!!_0x116173),_0x4bc377[_0x4574('0x25')]['on']('execute',()=>{this[_0x4574('0x9')](_0x4574('0x3e'),this['value']);}),_0x4bc377[_0x4574('0x3a')][_0x4574('0x28')](_0x4574('0x22'))['to'](this,_0x4574('0x22'),this,_0x4574('0x1b'),this,_0x4574('0x32'),(_0xe7d8a8,_0x34fa47,_0x461780)=>_0xe7d8a8&&!_0x34fa47&&!!_0x461780),_0x4bc377[_0x4574('0x3a')]['on'](_0x4574('0x1'),()=>{this[_0x4574('0x9')](_0x4574('0x4'),this[_0x4574('0x32')]);}),_0x4bc377[_0x4574('0x39')][_0x4574('0x28')](_0x4574('0x22'))['to'](this,_0x4574('0x22'),this,_0x4574('0x1b'),(_0x49fae6,_0x19fd49)=>_0x49fae6&&!_0x19fd49),_0x4bc377[_0x4574('0x39')]['on']('execute',()=>{this[_0x4574('0x9')](_0x4574('0x37'));}),_0x4bc377[_0x4574('0x23')][_0x4574('0x28')](_0x4574('0x22'))['to'](this,_0x4574('0x1b')),_0x4bc377[_0x4574('0x23')]['on'](_0x4574('0x1'),()=>{this[_0x4574('0x9')]('stopProcessing');}),_0x4bc377;}[_0x4574('0x42')](){this[_0x4574('0x32')]='',this[_0x4574('0x31')]=!0x1,this[_0x4574('0x1b')]=!0x0,this[_0x4574('0x33')][_0x4574('0x14')]=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea'][_0x4574('0x2f')]();}[_0x4574('0x2c')](){const _0x476c5d=this[_0x4574('0x12')];this[_0x4574('0x1b')]=!0x1,this['prompt']='',this[_0x4574('0x15')]['reset'](),this['value']&&(this[_0x4574('0x15')][_0x4574('0x5')][_0x4574('0x11')]=_0x4f4ba2(_0x476c5d,_0x4574('0x0')));}['handleError'](_0x46604c){const _0x3e6b65=this[_0x4574('0x12')];this[_0x4574('0x2c')](),this[_0x4574('0x31')]=!0x0,this[_0x4574('0x44')][_0x4574('0x29')]=_0x46604c||_0x4f4ba2(_0x3e6b65,_0x4574('0x17')),this['value']||(this[_0x4574('0x33')][_0x4574('0x14')]=!0x1);}}
const _0x8c8e=['isError','historyGroupView','bindTo','tryAgainEvent','value','stopProcessing','tab','replaceContent','set','ck-hidden','Empty\x20history','shift\x20+\x20tab','high','fieldView','toolbar','add','fire','isEnabled','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','reset','_focusCycler','queryView','trim','_focusables','element','_createHistoryView','copyButtonView','AI_ERROR_FAILED','createCollection','mainAction','handleError','focusPrevious','startProcessing','listenTo','forwardCycle','search','tryAgainButton','insertButton','focusNext','submit','focusFirst','focus','stop','_createToolbar','locale','focusTracker','bindTemplate','backwardCycle','header','isVisible','render','keystrokes','ck-ai-form-content','errorView','finishProcessing','replaceButton','execute','ck-ai-form','promptView','isProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','focusCycler','contentArea','REPLACE','_promptHistory','div','prompt','setTemplate','clear','bind','stopButton'];(function(_0x165591,_0x8c8e96){const _0x4b3ebb=function(_0x1dc038){while(--_0x1dc038){_0x165591['push'](_0x165591['shift']());}};_0x4b3ebb(++_0x8c8e96);}(_0x8c8e,0xc1));const _0x4b3e=function(_0x165591,_0x8c8e96){_0x165591=_0x165591-0x0;let _0x4b3ebb=_0x8c8e[_0x165591];return _0x4b3ebb;};import{FocusTracker as _0x2edf27,KeystrokeHandler as _0x5d7d54}from'ckeditor5/src/utils';import{View as _0x44582b,FocusCycler as _0x23f3ca,createLabeledTextarea as _0x55d488,FormHeaderView as _0x1efa6f}from'ckeditor5/src/ui';import _0x6a703a,{AIFormToolbarViewMainAction as _0x1e2f98}from'./aiformtoolbarview';import _0xc8411 from'./aiformcontentarea';import _0x10fa88 from'./aiformerrorview';import _0x206ab1 from'./aiformpromptview';import _0x3e1f13 from'./aihistorylistview';import _0x28ac51 from'./aihistorylistitemview';import _0x210e87 from'./prompthistory';import{getTranslation as _0x4a54cc}from'../../utils/common-translations';import _0x267bad from'../../../theme/icons/robot-pencil.svg';export default class y extends _0x44582b{constructor(_0x2901d9,_0x4c0aab,_0x48a817=''){super(_0x2901d9),this[_0x4b3e('0x1c')](_0x4b3e('0x25'),!0x0),this[_0x4b3e('0x1c')]('isProcessing',!0x1),this[_0x4b3e('0x1c')](_0x4b3e('0xf'),''),this['set']('value',''),this[_0x4b3e('0x1c')](_0x4b3e('0x14'),!0x1),this[_0x4b3e('0x1c')](_0x4b3e('0x31'),_0x1e2f98[_0x4b3e('0xc')]),this[_0x4b3e('0xd')]=new _0x210e87(),this[_0x4b3e('0x2')]=new _0x10fa88(_0x2901d9),this[_0x4b3e('0x44')]=new _0x1efa6f(_0x2901d9,{'label':_0x4a54cc(_0x2901d9,'AI\x20Assistant'),'icon':_0x267bad}),this['contentArea']=new _0xc8411(_0x2901d9,_0x48a817),this[_0x4b3e('0xb')]['bind']('isProcessing')['to'](this),this[_0x4b3e('0xb')][_0x4b3e('0x12')](_0x4b3e('0x18'))['to'](this),this[_0x4b3e('0x22')]=this[_0x4b3e('0x3f')](),this[_0x4b3e('0x22')][_0x4b3e('0x12')](_0x4b3e('0x31'))['to'](this),this[_0x4b3e('0x7')]=this['_createPromptView'](),this[_0x4b3e('0x41')]=new _0x2edf27(),this['keystrokes']=new _0x5d7d54(),this['_focusables']=this[_0x4b3e('0x30')]([this['contentArea'],this[_0x4b3e('0xb')][_0x4b3e('0x2e')],this[_0x4b3e('0x22')],this[_0x4b3e('0x7')]]),this[_0x4b3e('0x28')]=new _0x23f3ca({'focusables':this[_0x4b3e('0x2b')],'focusTracker':this[_0x4b3e('0x41')],'keystrokeHandler':this[_0x4b3e('0x0')],'actions':{'focusPrevious':_0x4b3e('0x1f'),'focusNext':_0x4b3e('0x1a')}}),this[_0x4b3e('0x7')][_0x4b3e('0xa')]['on'](_0x4b3e('0x36'),_0x1ab003=>{this[_0x4b3e('0x28')][_0x4b3e('0x3a')](),_0x1ab003['stop']();}),this[_0x4b3e('0x7')][_0x4b3e('0xa')]['on'](_0x4b3e('0x43'),_0x356866=>{this[_0x4b3e('0x28')][_0x4b3e('0x33')](),_0x356866[_0x4b3e('0x3e')]();}),this[_0x4b3e('0x7')][_0x4b3e('0x29')][_0x4b3e('0x21')][_0x4b3e('0x12')](_0x4b3e('0x18'))['to'](this,_0x4b3e('0xf'));const _0x4f7867=this[_0x4b3e('0x42')];this[_0x4b3e('0x10')]({'tag':_0x4b3e('0xe'),'attributes':{'class':['ck',_0x4b3e('0x6'),_0x4c0aab],'tabindex':'-1'},'children':[this['header'],{'tag':_0x4b3e('0xe'),'attributes':{'class':['ck',_0x4b3e('0x1')]},'children':[{'tag':_0x4b3e('0xe'),'attributes':{'class':[_0x4f7867['if'](_0x4b3e('0x14'),_0x4b3e('0x1d'),_0x37ee4c=>!_0x37ee4c)]},'children':[this[_0x4b3e('0x2')]]},this[_0x4b3e('0xb')],this[_0x4b3e('0x22')],this[_0x4b3e('0x7')]]}]});}['render'](){super[_0x4b3e('0x46')](),this[_0x4b3e('0x41')][_0x4b3e('0x23')](this[_0x4b3e('0xb')][_0x4b3e('0x2c')]),this['focusTracker'][_0x4b3e('0x23')](this[_0x4b3e('0xb')][_0x4b3e('0x2e')][_0x4b3e('0x2c')]),this[_0x4b3e('0x41')][_0x4b3e('0x23')](this['toolbar'][_0x4b3e('0x2c')]),this[_0x4b3e('0x41')][_0x4b3e('0x23')](this[_0x4b3e('0x7')][_0x4b3e('0x2c')]),this[_0x4b3e('0x0')][_0x4b3e('0x35')](this[_0x4b3e('0x2c')]);}[_0x4b3e('0x3d')](){this[_0x4b3e('0x28')][_0x4b3e('0x3c')]();}[_0x4b3e('0x27')](){this[_0x4b3e('0xf')]='',this[_0x4b3e('0x18')]='',this[_0x4b3e('0x7')]['reset'](),this[_0x4b3e('0xb')][_0x4b3e('0x45')]=!0x1,this['toolbar'][_0x4b3e('0x45')]=!0x1;}['_createPromptView'](){const _0x700f60=this[_0x4b3e('0x40')],_0x544aea=new _0x206ab1(_0x700f60,{'queryView':{'label':_0x4a54cc(_0x700f60,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':_0x55d488,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4a54cc(_0x700f60,_0x4b3e('0x1e')),'secondary':_0x4a54cc(_0x700f60,_0x4b3e('0x26'))}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x544aea[_0x4b3e('0x12')](_0x4b3e('0x25'))['to'](this,_0x4b3e('0x25'),this,'isProcessing',(_0xeada01,_0x169d00)=>_0xeada01&&!_0x169d00),this['listenTo'](_0x544aea,_0x4b3e('0x3b'),(_0x34cdeb,_0x2b050b)=>{this[_0x4b3e('0xf')]=_0x2b050b,this[_0x4b3e('0x24')]('submitPrompt',this['prompt']),_0x2b050b[_0x4b3e('0x2a')]()&&this[_0x4b3e('0xd')][_0x4b3e('0x23')]({'prompt':_0x2b050b['trim']()},0x0);},{'priority':_0x4b3e('0x20')}),_0x544aea;}[_0x4b3e('0x2d')](){const _0x42db2e=new _0x3e1f13(this[_0x4b3e('0x40')]);return _0x42db2e[_0x4b3e('0x15')]['items'][_0x4b3e('0x16')](this[_0x4b3e('0xd')])['as'](_0x28ac51),_0x42db2e['on']('clearHistory',()=>{this['_promptHistory'][_0x4b3e('0x11')](),this['promptView'][_0x4b3e('0x37')](''),this['promptView']['focus']();}),_0x42db2e;}['_createToolbar'](){const _0x45f766=new _0x6a703a(this[_0x4b3e('0x40')]);return _0x45f766[_0x4b3e('0x4')][_0x4b3e('0x12')](_0x4b3e('0x25'))['to'](this,_0x4b3e('0x25'),this,'isProcessing',this,'value',(_0x13f101,_0x16d228,_0x17abde)=>_0x13f101&&!_0x16d228&&!!_0x17abde),_0x45f766[_0x4b3e('0x4')]['on'](_0x4b3e('0x5'),()=>{this['fire'](_0x4b3e('0x1b'),this[_0x4b3e('0x18')]);}),_0x45f766['insertButton'][_0x4b3e('0x12')]('isEnabled')['to'](this,_0x4b3e('0x25'),this,_0x4b3e('0x8'),this,_0x4b3e('0x18'),(_0x5f2158,_0x56a44b,_0x331a3a)=>_0x5f2158&&!_0x56a44b&&!!_0x331a3a),_0x45f766[_0x4b3e('0x39')]['on'](_0x4b3e('0x5'),()=>{this[_0x4b3e('0x24')]('insertContentBelow',this[_0x4b3e('0x18')]);}),_0x45f766[_0x4b3e('0x38')][_0x4b3e('0x12')](_0x4b3e('0x25'))['to'](this,_0x4b3e('0x25'),this,'isProcessing',(_0x48b026,_0x1e9788)=>_0x48b026&&!_0x1e9788),_0x45f766[_0x4b3e('0x38')]['on'](_0x4b3e('0x5'),()=>{this[_0x4b3e('0x24')](_0x4b3e('0x17'));}),_0x45f766['stopButton'][_0x4b3e('0x12')](_0x4b3e('0x25'))['to'](this,_0x4b3e('0x8')),_0x45f766[_0x4b3e('0x13')]['on'](_0x4b3e('0x5'),()=>{this[_0x4b3e('0x24')](_0x4b3e('0x19'));}),_0x45f766;}[_0x4b3e('0x34')](){this[_0x4b3e('0x18')]='',this[_0x4b3e('0x14')]=!0x1,this['isProcessing']=!0x0,this[_0x4b3e('0xb')][_0x4b3e('0x45')]=!0x0,this['toolbar'][_0x4b3e('0x45')]=!0x0,this[_0x4b3e('0xb')][_0x4b3e('0x3d')]();}[_0x4b3e('0x3')](){const _0x161f79=this[_0x4b3e('0x40')];this['isProcessing']=!0x1,this[_0x4b3e('0xf')]='',this[_0x4b3e('0x7')]['reset'](),this['value']&&(this[_0x4b3e('0x7')]['queryView']['label']=_0x4a54cc(_0x161f79,_0x4b3e('0x9')));}[_0x4b3e('0x32')](_0x3c7c21){const _0xdf4add=this[_0x4b3e('0x40')];this[_0x4b3e('0x3')](),this[_0x4b3e('0x14')]=!0x0,this['errorView']['text']=_0x3c7c21||_0x4a54cc(_0xdf4add,_0x4b3e('0x2f')),this[_0x4b3e('0x18')]||(this[_0x4b3e('0xb')][_0x4b3e('0x45')]=!0x1);}}

@@ -23,2 +23,2 @@ /*

*/
const _0x2aff=['execute','set','add','prompt','children','fire'];(function(_0x5b8367,_0x2aff3b){const _0x19fe73=function(_0x4943c0){while(--_0x4943c0){_0x5b8367['push'](_0x5b8367['shift']());}};_0x19fe73(++_0x2aff3b);}(_0x2aff,0x1e4));const _0x19fe=function(_0x5b8367,_0x2aff3b){_0x5b8367=_0x5b8367-0x0;let _0x19fe73=_0x2aff[_0x5b8367];return _0x19fe73;};import{ListItemView as _0x4f7bab,ButtonView as _0x3e9ac1}from'ckeditor5/src/ui';import _0x6a0b33 from'../dropdown/buttonlabelwithhighlightview';import{unescape as _0x5e93b6}from'lodash-es';export default class ot extends _0x4f7bab{constructor(_0xd02a8f){super();const _0x1f97ce=new _0x6a0b33(),_0x1e6055=new _0x3e9ac1(this['locale'],_0x1f97ce);this[_0x19fe('0x0')][_0x19fe('0x4')](_0x1e6055),_0x1e6055[_0x19fe('0x3')]({'label':_0xd02a8f[_0x19fe('0x5')],'withText':!0x0}),_0x1e6055['on']('execute',()=>{this[_0x19fe('0x1')](_0x19fe('0x2'),{'value':_0x5e93b6(_0xd02a8f[_0x19fe('0x5')])});});}}
const _0x1ad0=['add','execute','locale','children','set'];(function(_0x3f2bca,_0x1ad09f){const _0x1c6b99=function(_0x69d2a4){while(--_0x69d2a4){_0x3f2bca['push'](_0x3f2bca['shift']());}};_0x1c6b99(++_0x1ad09f);}(_0x1ad0,0x16d));const _0x1c6b=function(_0x3f2bca,_0x1ad09f){_0x3f2bca=_0x3f2bca-0x0;let _0x1c6b99=_0x1ad0[_0x3f2bca];return _0x1c6b99;};import{ListItemView as _0x131612,ButtonView as _0xe9cda7}from'ckeditor5/src/ui';import _0x4f0db8 from'../dropdown/buttonlabelwithhighlightview';import{unescape as _0x435e19}from'lodash-es';export default class ot extends _0x131612{constructor(_0x248eb3){super();const _0x3e5abf=new _0x4f0db8(),_0x3b1590=new _0xe9cda7(this[_0x1c6b('0x2')],_0x3e5abf);this[_0x1c6b('0x3')][_0x1c6b('0x0')](_0x3b1590),_0x3b1590[_0x1c6b('0x4')]({'label':_0x248eb3['prompt'],'withText':!0x0}),_0x3b1590['on']('execute',()=>{this['fire'](_0x1c6b('0x1'),{'value':_0x435e19(_0x248eb3['prompt'])});});}}

@@ -23,2 +23,2 @@ /*

*/
const _0x143b=['set','Clear','Prompt\x20history','add','items','_createClearHistoryButton','fire','length','clearHistoryButton','locale','children','clearHistory','label','historyGroupView','execute'];(function(_0x42f773,_0x143b29){const _0x589a37=function(_0x2548b6){while(--_0x2548b6){_0x42f773['push'](_0x42f773['shift']());}};_0x589a37(++_0x143b29);}(_0x143b,0x17d));const _0x589a=function(_0x42f773,_0x143b29){_0x42f773=_0x42f773-0x0;let _0x589a37=_0x143b[_0x42f773];return _0x589a37;};import{ListView as _0x3e306d,ListItemGroupView as _0xd86254,ButtonView as _0x4d1f13}from'ckeditor5/src/ui';import{getTranslation as _0x152353}from'../../utils/common-translations';export default class ht extends _0x3e306d{constructor(_0x420c3b){super(_0x420c3b),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new _0xd86254(),this[_0x589a('0x7')][_0x589a('0x4')]['add'](this[_0x589a('0x2')],0x1),this[_0x589a('0x7')][_0x589a('0x6')]=_0x152353(_0x420c3b,_0x589a('0xb')),this[_0x589a('0x7')][_0x589a('0xd')]['delegate'](_0x589a('0x8'))['to'](this),this['items'][_0x589a('0xc')](this[_0x589a('0x7')]);}['filter'](){let _0x3f5fab=0x0;for(const _0x5dc24e of this[_0x589a('0xd')])_0x3f5fab+=_0x5dc24e[_0x589a('0xd')][_0x589a('0x1')];return{'resultsCount':_0x3f5fab,'totalItemsCount':_0x3f5fab};}[_0x589a('0xe')](){const _0x52adb2=this[_0x589a('0x3')],_0x334ba0=new _0x4d1f13(this[_0x589a('0x3')]);return _0x334ba0[_0x589a('0x9')]({'label':'('+_0x152353(_0x52adb2,_0x589a('0xa'))+')','withText':!0x0}),_0x334ba0['on'](_0x589a('0x8'),()=>this[_0x589a('0x0')](_0x589a('0x5'))),_0x334ba0;}}
const _0x3777=['Prompt\x20history','fire','historyGroupView','clearHistoryButton','delegate','add','length','label','children','locale','filter','items','Clear','execute','_createClearHistoryButton'];(function(_0x473f7e,_0x3777f7){const _0x330c4f=function(_0x1a9246){while(--_0x1a9246){_0x473f7e['push'](_0x473f7e['shift']());}};_0x330c4f(++_0x3777f7);}(_0x3777,0x18f));const _0x330c=function(_0x473f7e,_0x3777f7){_0x473f7e=_0x473f7e-0x0;let _0x330c4f=_0x3777[_0x473f7e];return _0x330c4f;};import{ListView as _0x218552,ListItemGroupView as _0x8ec090,ButtonView as _0xb4c51}from'ckeditor5/src/ui';import{getTranslation as _0xb02bd}from'../../utils/common-translations';export default class ht extends _0x218552{constructor(_0x12cc8a){super(_0x12cc8a),this[_0x330c('0x9')]=this[_0x330c('0x5')](),this['historyGroupView']=new _0x8ec090(),this[_0x330c('0x8')][_0x330c('0xe')][_0x330c('0xb')](this[_0x330c('0x9')],0x1),this['historyGroupView'][_0x330c('0xd')]=_0xb02bd(_0x12cc8a,_0x330c('0x6')),this[_0x330c('0x8')][_0x330c('0x2')][_0x330c('0xa')](_0x330c('0x4'))['to'](this),this[_0x330c('0x2')]['add'](this[_0x330c('0x8')]);}[_0x330c('0x1')](){let _0x3f16e0=0x0;for(const _0x2b033c of this[_0x330c('0x2')])_0x3f16e0+=_0x2b033c[_0x330c('0x2')][_0x330c('0xc')];return{'resultsCount':_0x3f16e0,'totalItemsCount':_0x3f16e0};}[_0x330c('0x5')](){const _0x27b08e=this[_0x330c('0x0')],_0x153c7e=new _0xb4c51(this[_0x330c('0x0')]);return _0x153c7e['set']({'label':'('+_0xb02bd(_0x27b08e,_0x330c('0x3'))+')','withText':!0x0}),_0x153c7e['on'](_0x330c('0x4'),()=>this[_0x330c('0x7')]('clearHistory')),_0x153c7e;}}

@@ -23,2 +23,2 @@ /*

*/
const _0x3128=['remove','stringify','trim','length','toLowerCase','prompt','_saveToSessionStorage','setItem','last','_loadFromSessionStorage','map','addMany','parse'];(function(_0x44d7cf,_0x3128dc){const _0x21fb22=function(_0x52dbbc){while(--_0x52dbbc){_0x44d7cf['push'](_0x44d7cf['shift']());}};_0x21fb22(++_0x3128dc);}(_0x3128,0x185));const _0x21fb=function(_0x44d7cf,_0x3128dc){_0x44d7cf=_0x44d7cf-0x0;let _0x21fb22=_0x3128[_0x44d7cf];return _0x21fb22;};import{Collection as _0x8da568}from'ckeditor5/src/utils';const ts='CKEditor/AIFormView/PromptHistory';export default class nt extends _0x8da568{constructor(){super(),this[_0x21fb('0xa')](),this['on']('add',(_0x1e26ee,_0x339f64)=>{const _0x10d011=os(_0x339f64['prompt']);for(const _0x41fc9b of this)if(_0x41fc9b!=_0x339f64&&os(_0x41fc9b[_0x21fb('0x6')])===_0x10d011){this['remove'](_0x41fc9b);break;}this[_0x21fb('0x4')]>0x14&&this[_0x21fb('0x1')](this[_0x21fb('0x9')]),this[_0x21fb('0x7')]();}),this['on']('remove',()=>{this[_0x21fb('0x7')]();});}[_0x21fb('0xa')](){const _0x4bd924=sessionStorage['getItem'](ts)||'[]';this[_0x21fb('0xc')](JSON[_0x21fb('0x0')](_0x4bd924));}['_saveToSessionStorage'](){sessionStorage[_0x21fb('0x8')](ts,JSON[_0x21fb('0x2')](this[_0x21fb('0xb')](_0x509ae5=>_0x509ae5)));}}function os(_0x1b506f){return _0x1b506f[_0x21fb('0x5')]()[_0x21fb('0x3')]();}
const _0x5b20=['parse','last','length','stringify','setItem','map','addMany','remove','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','getItem','prompt'];(function(_0x39a41c,_0x5b206b){const _0x5169e5=function(_0x243b27){while(--_0x243b27){_0x39a41c['push'](_0x39a41c['shift']());}};_0x5169e5(++_0x5b206b);}(_0x5b20,0x156));const _0x5169=function(_0x39a41c,_0x5b206b){_0x39a41c=_0x39a41c-0x0;let _0x5169e5=_0x5b20[_0x39a41c];return _0x5169e5;};import{Collection as _0x40a828}from'ckeditor5/src/utils';const ts=_0x5169('0x3');export default class nt extends _0x40a828{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x2fc197,_0x2cf878)=>{const _0xd2496b=os(_0x2cf878[_0x5169('0x5')]);for(const _0x599ea4 of this)if(_0x599ea4!=_0x2cf878&&os(_0x599ea4[_0x5169('0x5')])===_0xd2496b){this['remove'](_0x599ea4);break;}this[_0x5169('0x8')]>0x14&&this[_0x5169('0x1')](this[_0x5169('0x7')]),this[_0x5169('0x2')]();}),this['on'](_0x5169('0x1'),()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x117d37=sessionStorage[_0x5169('0x4')](ts)||'[]';this[_0x5169('0x0')](JSON[_0x5169('0x6')](_0x117d37));}['_saveToSessionStorage'](){sessionStorage[_0x5169('0xa')](ts,JSON[_0x5169('0x9')](this[_0x5169('0xb')](_0x58f346=>_0x58f346)));}}function os(_0x4579db){return _0x4579db['toLowerCase']()['trim']();}

@@ -23,2 +23,2 @@ /*

*/
const _0x5af2=['document','aiAssistant.disabledElements','get','element','model','editor','getItems','refresh','plugins','name','execute','config','selection'];(function(_0x1ec21f,_0x5af254){const _0x457c95=function(_0x1cc1e1){while(--_0x1cc1e1){_0x1ec21f['push'](_0x1ec21f['shift']());}};_0x457c95(++_0x5af254);}(_0x5af2,0xe5));const _0x457c=function(_0x1ec21f,_0x5af254){_0x1ec21f=_0x1ec21f-0x0;let _0x457c95=_0x5af2[_0x1ec21f];return _0x457c95;};import{Command as _0x4b35ac}from'ckeditor5/src/core';import _0x570232 from'../aiassistantui';export default class I extends _0x4b35ac{[_0x457c('0xc')](){const _0x5d9da8=this[_0x457c('0xa')][_0x457c('0x9')][_0x457c('0x5')][_0x457c('0x4')],_0x4b67cc=this[_0x457c('0xa')][_0x457c('0x3')][_0x457c('0x7')](_0x457c('0x6'));for(const _0x609fc5 of _0x5d9da8['getRanges']())for(const _0x206155 of _0x609fc5[_0x457c('0xb')]())if(_0x206155['is'](_0x457c('0x8'))&&_0x4b67cc['includes'](_0x206155[_0x457c('0x1')]))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}[_0x457c('0x2')](_0x23e3b4='',_0x20a8d4=''){this['editor'][_0x457c('0x0')][_0x457c('0x7')](_0x570232)['showUI'](_0x23e3b4,_0x20a8d4);}}
const _0x3b93=['execute','name','editor','showUI','model','selection','isEnabled','refresh','aiAssistant.disabledElements','getRanges','get','element','config'];(function(_0xeeb7b8,_0x3b93ca){const _0x3f9b33=function(_0x4b125e){while(--_0x4b125e){_0xeeb7b8['push'](_0xeeb7b8['shift']());}};_0x3f9b33(++_0x3b93ca);}(_0x3b93,0xa2));const _0x3f9b=function(_0xeeb7b8,_0x3b93ca){_0xeeb7b8=_0xeeb7b8-0x0;let _0x3f9b33=_0x3b93[_0xeeb7b8];return _0x3f9b33;};import{Command as _0x213e67}from'ckeditor5/src/core';import _0x110357 from'../aiassistantui';export default class I extends _0x213e67{[_0x3f9b('0x1')](){const _0x27bd8d=this[_0x3f9b('0x9')][_0x3f9b('0xb')]['document'][_0x3f9b('0xc')],_0x3f1d01=this[_0x3f9b('0x9')][_0x3f9b('0x6')][_0x3f9b('0x4')](_0x3f9b('0x2'));for(const _0x594941 of _0x27bd8d[_0x3f9b('0x3')]())for(const _0x30b026 of _0x594941['getItems']())if(_0x30b026['is'](_0x3f9b('0x5'))&&_0x3f1d01['includes'](_0x30b026[_0x3f9b('0x8')]))return void(this['isEnabled']=!0x1);this[_0x3f9b('0x0')]=!0x0;}[_0x3f9b('0x7')](_0x4740cd='',_0xa968fd=''){this[_0x3f9b('0x9')]['plugins'][_0x3f9b('0x4')](_0x110357)[_0x3f9b('0xa')](_0x4740cd,_0xa968fd);}}

@@ -23,2 +23,2 @@ /*

*/
export function getTranslation(_0x1f3f87,_0x307e9d,_0x3e5dd5){const t=_0x1f3f87['t'];switch(_0x307e9d){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0x3e5dd5);case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_AUTH_REQUEST':return t({'id':'AI_ERROR_AUTH_REQUEST','string':'Authorization\x20request\x20failed'});case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x307e9d;}}
export function getTranslation(_0x5103ba,_0x2190df,_0xf62ceb){const t=_0x5103ba['t'];switch(_0x2190df){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'Translate\x20to\x20%0':return t('Translate\x20to\x20%0',_0xf62ceb);case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Search\x20AI\x20command':return t('Search\x20AI\x20command');case'No\x20commands\x20found':return t('No\x20commands\x20found');case'No\x20commands\x20available':return t('No\x20commands\x20available');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_AUTH_REQUEST':return t({'id':'AI_ERROR_AUTH_REQUEST','string':'Authorization\x20request\x20failed'});case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x2190df;}}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc