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
642
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-20231019.0 to 0.0.0-nightly-20231020.0

6

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

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

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

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

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

*/
const _0x1904=['Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Confident','Edit\x20or\x20review','simplifyLanguage','AIAssistant','Change\x20style','confident','business','Translate\x20the\x20content\x20to\x20Spanish\x20language.','_licenseKeyCheckInterval','Business','Spanish','Make\x20shorter','makeLonger','casual','Translate\x20the\x20content\x20to\x20German\x20language.','concat','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Make\x20longer','Arabic','forEach','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','config','aiAssistant.removeCommands','editOrReview','get','French','translateHindi','translate','Generate\x20from\x20selection','Summarize','generate','makeShorter','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Direct','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','improveWriting','pluginName','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Change\x20tone','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate\x20the\x20content\x20to\x20English\x20language.','Simplified\x20Chinese','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translateGerman','Friendly','Casual','English','poetic','Improve\x20writing','translateSpanish','journalism','aiLicenseKeyTrialLimit:operations','translateFrench','set','Translate','destroy','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20to\x20%0','Continue','Portuguese','groupId','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','aiAssistant.extraCommandGroups','aiLicenseKeyInvalid','commands','changeTone','aiLicenseKeyTrial','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','translateEnglish','continue','summarize','changeStyle','info','translateArabic','define','Simplify\x20language','Hindi','ai-invalid-license-key','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','push','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','friendly','Legal','legal','Professional','translatePortuguese','find','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','aiAssistant.commands','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','locale','aiLicenseKeyValid','requires','ai-trial-license-key-reached-limit-changes','direct','professional','translateChinese'];(function(_0x57b869,_0x1904da){const _0x19a238=function(_0x31d6b2){while(--_0x31d6b2){_0x57b869['push'](_0x57b869['shift']());}};_0x19a238(++_0x1904da);}(_0x1904,0x1d4));const _0x19a2=function(_0x57b869,_0x1904da){_0x57b869=_0x57b869-0x0;let _0x19a238=_0x1904[_0x57b869];return _0x19a238;};import{CKEditorError as _0xd977cd}from'ckeditor5/src/utils';import{Plugin as _0x34bf50}from'ckeditor5/src/core';import _0x52ef92 from'./aiassistantui';import _0x70cf36 from'./aiassistantediting';import _0x37940e from'./aiconnector';import{getTranslation as _0x5d6e7b}from'./utils/common-translations';export const getDefaultCommands=_0x395c49=>[{'groupId':_0x19a2('0x39'),'groupLabel':_0x5d6e7b(_0x395c49,_0x19a2('0x23')),'commands':[{'id':_0x19a2('0x45'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x52')),'prompt':_0x19a2('0x5f')},{'id':_0x19a2('0x41'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x2d')),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':_0x19a2('0x2e'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x33')),'prompt':_0x19a2('0x36')},{'id':_0x19a2('0x24'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x9')),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':_0x19a2('0x40'),'groupLabel':_0x5d6e7b(_0x395c49,_0x19a2('0x3e')),'commands':[{'id':_0x19a2('0x4'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x3f')),'prompt':_0x19a2('0x49')},{'id':_0x19a2('0x3'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x5c')),'prompt':_0x19a2('0x4c')}]},{'groupId':_0x19a2('0x63'),'groupLabel':_0x5d6e7b(_0x395c49,_0x19a2('0x48')),'commands':[{'id':_0x19a2('0x1e'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x13')),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':_0x5d6e7b(_0x395c49,_0x19a2('0x4f')),'prompt':_0x19a2('0x47')},{'id':_0x19a2('0x1d'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x43')),'prompt':_0x19a2('0x5a')},{'id':_0x19a2('0x27'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x22')),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':_0x5d6e7b(_0x395c49,_0x19a2('0x4e')),'prompt':_0x19a2('0x44')}]},{'groupId':_0x19a2('0x5'),'groupLabel':_0x5d6e7b(_0x395c49,_0x19a2('0x26')),'commands':[{'id':_0x19a2('0x28'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x2b')),'prompt':_0x19a2('0xf')},{'id':_0x19a2('0x12'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x11')),'prompt':_0x19a2('0x32')},{'id':_0x19a2('0x54'),'label':_0x5d6e7b(_0x395c49,'Journalism'),'prompt':_0x19a2('0xd')},{'id':_0x19a2('0x51'),'label':_0x5d6e7b(_0x395c49,'Poetic'),'prompt':_0x19a2('0x42')}]},{'groupId':_0x19a2('0x3d'),'groupLabel':_0x5d6e7b(_0x395c49,_0x19a2('0x58')),'commands':[{'id':_0x19a2('0x2'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x5b'),[_0x5d6e7b(_0x395c49,'English')]),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':_0x19a2('0x53'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x5b'),[_0x5d6e7b(_0x395c49,_0x19a2('0x2c'))]),'prompt':_0x19a2('0x29')},{'id':_0x19a2('0x14'),'label':_0x5d6e7b(_0x395c49,'Translate\x20to\x20%0',[_0x5d6e7b(_0x395c49,_0x19a2('0x5d'))]),'prompt':_0x19a2('0x21')},{'id':_0x19a2('0x4d'),'label':_0x5d6e7b(_0x395c49,'Translate\x20to\x20%0',[_0x5d6e7b(_0x395c49,'German')]),'prompt':_0x19a2('0x30')},{'id':_0x19a2('0x56'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x5b'),[_0x5d6e7b(_0x395c49,_0x19a2('0x3b'))]),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':_0x19a2('0x1f'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x5b'),[_0x5d6e7b(_0x395c49,_0x19a2('0x4b'))]),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':_0x19a2('0x3c'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x5b'),[_0x5d6e7b(_0x395c49,_0x19a2('0xa'))]),'prompt':_0x19a2('0xc')},{'id':_0x19a2('0x7'),'label':_0x5d6e7b(_0x395c49,_0x19a2('0x5b'),[_0x5d6e7b(_0x395c49,'Arabic')]),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];export default class l extends _0x34bf50{static get[_0x19a2('0x1b')](){return[_0x52ef92,_0x70cf36,_0x37940e];}static get[_0x19a2('0x46')](){return _0x19a2('0x25');}constructor(_0x4cb784){super(_0x4cb784);const _0x560d7d=_0x4cb784['config'];var _0xf99c5b;_0x560d7d[_0x19a2('0x8')](_0x19a2('0x17'),(_0xf99c5b=_0x4cb784[_0x19a2('0x19')],[{'groupId':'editOrReview','groupLabel':_0x5d6e7b(_0xf99c5b,_0x19a2('0x23')),'commands':[{'id':'improveWriting','label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x52')),'prompt':_0x19a2('0x5f')},{'id':_0x19a2('0x41'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x2d')),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':'makeLonger','label':_0x5d6e7b(_0xf99c5b,'Make\x20longer'),'prompt':_0x19a2('0x36')},{'id':'simplifyLanguage','label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x9')),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':_0x19a2('0x40'),'groupLabel':_0x5d6e7b(_0xf99c5b,'Generate\x20from\x20selection'),'commands':[{'id':_0x19a2('0x4'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x3f')),'prompt':_0x19a2('0x49')},{'id':'continue','label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x5c')),'prompt':_0x19a2('0x4c')}]},{'groupId':_0x19a2('0x63'),'groupLabel':_0x5d6e7b(_0xf99c5b,_0x19a2('0x48')),'commands':[{'id':_0x19a2('0x1e'),'label':_0x5d6e7b(_0xf99c5b,'Professional'),'prompt':_0x19a2('0x18')},{'id':_0x19a2('0x2f'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x4f')),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':_0x19a2('0x1d'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x43')),'prompt':_0x19a2('0x5a')},{'id':_0x19a2('0x27'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x22')),'prompt':_0x19a2('0x16')},{'id':_0x19a2('0x10'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x4e')),'prompt':_0x19a2('0x44')}]},{'groupId':'changeStyle','groupLabel':_0x5d6e7b(_0xf99c5b,'Change\x20style'),'commands':[{'id':_0x19a2('0x28'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x2b')),'prompt':_0x19a2('0xf')},{'id':_0x19a2('0x12'),'label':_0x5d6e7b(_0xf99c5b,'Legal'),'prompt':_0x19a2('0x32')},{'id':_0x19a2('0x54'),'label':_0x5d6e7b(_0xf99c5b,'Journalism'),'prompt':_0x19a2('0xd')},{'id':'poetic','label':_0x5d6e7b(_0xf99c5b,'Poetic'),'prompt':_0x19a2('0x42')}]},{'groupId':'translate','groupLabel':_0x5d6e7b(_0xf99c5b,_0x19a2('0x58')),'commands':[{'id':'translateEnglish','label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x5b'),[_0x5d6e7b(_0xf99c5b,_0x19a2('0x50'))]),'prompt':_0x19a2('0x4a')},{'id':'translateSpanish','label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x5b'),[_0x5d6e7b(_0xf99c5b,_0x19a2('0x2c'))]),'prompt':_0x19a2('0x29')},{'id':_0x19a2('0x14'),'label':_0x5d6e7b(_0xf99c5b,'Translate\x20to\x20%0',[_0x5d6e7b(_0xf99c5b,'Portuguese')]),'prompt':_0x19a2('0x21')},{'id':_0x19a2('0x4d'),'label':_0x5d6e7b(_0xf99c5b,'Translate\x20to\x20%0',[_0x5d6e7b(_0xf99c5b,'German')]),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':_0x19a2('0x56'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x5b'),[_0x5d6e7b(_0xf99c5b,_0x19a2('0x3b'))]),'prompt':_0x19a2('0x20')},{'id':_0x19a2('0x1f'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x5b'),[_0x5d6e7b(_0xf99c5b,_0x19a2('0x4b'))]),'prompt':_0x19a2('0x1')},{'id':_0x19a2('0x3c'),'label':_0x5d6e7b(_0xf99c5b,'Translate\x20to\x20%0',[_0x5d6e7b(_0xf99c5b,_0x19a2('0xa'))]),'prompt':_0x19a2('0xc')},{'id':_0x19a2('0x7'),'label':_0x5d6e7b(_0xf99c5b,_0x19a2('0x5b'),[_0x5d6e7b(_0xf99c5b,_0x19a2('0x34'))]),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}])),_0x560d7d[_0x19a2('0x8')](_0x19a2('0x60'),[]),_0x560d7d['define']('aiAssistant.removeCommands',[]);const _0x36c49e=_0x560d7d[_0x19a2('0x3a')](_0x19a2('0x17')),_0x425655=_0x560d7d[_0x19a2('0x3a')](_0x19a2('0x60')),_0x36f925=_0x560d7d[_0x19a2('0x3a')](_0x19a2('0x38'));_0x425655[_0x19a2('0x35')](_0x454af9=>{const _0x50bc0e=_0x36c49e[_0x19a2('0x15')](_0x2d5473=>_0x2d5473[_0x19a2('0x5e')]===_0x454af9[_0x19a2('0x5e')]);_0x50bc0e?_0x50bc0e['commands']=_0x50bc0e[_0x19a2('0x62')][_0x19a2('0x31')](_0x454af9['commands']):_0x36c49e[_0x19a2('0xe')](_0x454af9);}),_0x36c49e[_0x19a2('0x35')](_0x3c04fb=>{_0x3c04fb[_0x19a2('0x62')]=_0x3c04fb[_0x19a2('0x62')]['filter'](_0xafc62e=>!_0x36f925['includes'](_0xafc62e['id']));}),_0x560d7d[_0x19a2('0x57')]('aiAssistant.commands',_0x36c49e);}['init'](){const _0x42366c=this['editor'];this['licenseKey']=_0x42366c[_0x19a2('0x37')][_0x19a2('0x3a')]('licenseKey'),this[_0x19a2('0x2a')]=setInterval(()=>{let _0xe7c2fc;for(const _0x2f7375 in _0x42366c){const _0x18363c=_0x2f7375,_0x18c35d=_0x42366c[_0x18363c];if(_0x19a2('0x0')===_0x18c35d||_0x19a2('0x61')===_0x18c35d||_0x19a2('0x1a')===_0x18c35d||_0x19a2('0x55')===_0x18c35d){delete _0x42366c[_0x18363c],_0xe7c2fc=_0x18c35d;break;}}if(_0x19a2('0x61')===_0xe7c2fc)throw clearInterval(this[_0x19a2('0x2a')]),new _0xd977cd(_0x19a2('0xb'),null);if('aiLicenseKeyTrial'===_0xe7c2fc&&console[_0x19a2('0x6')]('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.'),'aiLicenseKeyTrialLimit:operations'===_0xe7c2fc)throw clearInterval(this['_licenseKeyCheckInterval']),new _0xd977cd(_0x19a2('0x1c'),null);_0x19a2('0x1a')===_0xe7c2fc&&clearInterval(this[_0x19a2('0x2a')]);},0x3e8);}[_0x19a2('0x59')](){this[_0x19a2('0x2a')]&&clearInterval(this['_licenseKeyCheckInterval']);}}
const _0x2f11=['confident','Professional','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','casual','poetic','aiAssistant.extraCommandGroups','continue','Friendly','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Make\x20shorter','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','init','journalism','includes','improveWriting','Translate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','groupId','translateHindi','Legal','aiLicenseKeyInvalid','editor','set','summarize','aiLicenseKeyValid','commands','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','English','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','forEach','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','_licenseKeyCheckInterval','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Business','translateFrench','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','makeLonger','Improve\x20writing','Translate\x20to\x20%0','translateArabic','licenseKey','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','aiAssistant.commands','aiLicenseKeyTrialLimit:operations','friendly','legal','Poetic','push','Confident','pluginName','translateEnglish','Change\x20style','translateGerman','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','German','French','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20French\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Portuguese','Translate\x20the\x20content\x20to\x20German\x20language.','Make\x20longer','find','generate','Direct','get','info','aiLicenseKeyTrial','business','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20tone','editOrReview','filter','Arabic','Casual','Generate\x20from\x20selection','concat','Summarize','translate','changeTone','Simplify\x20language','define','makeShorter','aiAssistant.removeCommands','Translate\x20the\x20content\x20to\x20Spanish\x20language.','changeStyle','config','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Edit\x20or\x20review','translateSpanish','direct','Continue','Journalism','translatePortuguese'];(function(_0x372483,_0x2f110f){const _0x28c863=function(_0xcd1417){while(--_0xcd1417){_0x372483['push'](_0x372483['shift']());}};_0x28c863(++_0x2f110f);}(_0x2f11,0x14b));const _0x28c8=function(_0x372483,_0x2f110f){_0x372483=_0x372483-0x0;let _0x28c863=_0x2f11[_0x372483];return _0x28c863;};import{CKEditorError as _0x2034e8}from'ckeditor5/src/utils';import{Plugin as _0x3d95a9}from'ckeditor5/src/core';import _0x8ce6a2 from'./aiassistantui';import _0x82429a from'./aiassistantediting';import _0x15e71d from'./aiconnector';import{getTranslation as _0x2dce8c}from'./utils/common-translations';export const getDefaultCommands=_0xc4da8a=>[{'groupId':_0x28c8('0x22'),'groupLabel':_0x2dce8c(_0xc4da8a,_0x28c8('0x33')),'commands':[{'id':_0x28c8('0x47'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x60')),'prompt':_0x28c8('0x10')},{'id':_0x28c8('0x2d'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x42')),'prompt':_0x28c8('0x32')},{'id':_0x28c8('0x5f'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x18')),'prompt':_0x28c8('0x57')},{'id':'simplifyLanguage','label':_0x2dce8c(_0xc4da8a,_0x28c8('0x2b')),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':_0x28c8('0x1a'),'groupLabel':_0x2dce8c(_0xc4da8a,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':_0x2dce8c(_0xc4da8a,_0x28c8('0x28')),'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':_0x28c8('0x3f'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x36')),'prompt':_0x28c8('0x59')}]},{'groupId':_0x28c8('0x2a'),'groupLabel':_0x2dce8c(_0xc4da8a,_0x28c8('0x21')),'commands':[{'id':'professional','label':_0x2dce8c(_0xc4da8a,_0x28c8('0x3a')),'prompt':_0x28c8('0x5a')},{'id':_0x28c8('0x3c'),'label':_0x2dce8c(_0xc4da8a,'Casual'),'prompt':_0x28c8('0x55')},{'id':'direct','label':_0x2dce8c(_0xc4da8a,_0x28c8('0x1b')),'prompt':_0x28c8('0x5d')},{'id':_0x28c8('0x39'),'label':_0x2dce8c(_0xc4da8a,'Confident'),'prompt':_0x28c8('0x13')},{'id':_0x28c8('0x7'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x40')),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':_0x2dce8c(_0xc4da8a,_0x28c8('0xe')),'commands':[{'id':_0x28c8('0x1f'),'label':_0x2dce8c(_0xc4da8a,'Business'),'prompt':_0x28c8('0x15')},{'id':_0x28c8('0x8'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x4c')),'prompt':_0x28c8('0x4')},{'id':_0x28c8('0x45'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x37')),'prompt':_0x28c8('0x20')},{'id':_0x28c8('0x3d'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x9')),'prompt':_0x28c8('0x53')}]},{'groupId':_0x28c8('0x29'),'groupLabel':_0x2dce8c(_0xc4da8a,_0x28c8('0x48')),'commands':[{'id':_0x28c8('0xd'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x0'),[_0x2dce8c(_0xc4da8a,_0x28c8('0x54'))]),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':_0x28c8('0x34'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x0'),[_0x2dce8c(_0xc4da8a,_0x28c8('0x3'))]),'prompt':_0x28c8('0x2f')},{'id':_0x28c8('0x38'),'label':_0x2dce8c(_0xc4da8a,'Translate\x20to\x20%0',[_0x2dce8c(_0xc4da8a,_0x28c8('0x16'))]),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':_0x28c8('0xf'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x0'),[_0x2dce8c(_0xc4da8a,_0x28c8('0x11'))]),'prompt':_0x28c8('0x17')},{'id':_0x28c8('0x5c'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x0'),[_0x2dce8c(_0xc4da8a,_0x28c8('0x12'))]),'prompt':_0x28c8('0x14')},{'id':'translateChinese','label':_0x2dce8c(_0xc4da8a,_0x28c8('0x0'),[_0x2dce8c(_0xc4da8a,'Simplified\x20Chinese')]),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':_0x28c8('0x4b'),'label':_0x2dce8c(_0xc4da8a,_0x28c8('0x0'),[_0x2dce8c(_0xc4da8a,'Hindi')]),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':_0x2dce8c(_0xc4da8a,_0x28c8('0x0'),[_0x2dce8c(_0xc4da8a,_0x28c8('0x24'))]),'prompt':_0x28c8('0x41')}]}];export default class l extends _0x3d95a9{static get['requires'](){return[_0x8ce6a2,_0x82429a,_0x15e71d];}static get[_0x28c8('0xc')](){return'AIAssistant';}constructor(_0x3ad7fc){super(_0x3ad7fc);const _0x5bcac3=_0x3ad7fc[_0x28c8('0x31')];var _0x5fe9b9;_0x5bcac3[_0x28c8('0x2c')](_0x28c8('0x5'),(_0x5fe9b9=_0x3ad7fc['locale'],[{'groupId':_0x28c8('0x22'),'groupLabel':_0x2dce8c(_0x5fe9b9,_0x28c8('0x33')),'commands':[{'id':_0x28c8('0x47'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x60')),'prompt':_0x28c8('0x10')},{'id':'makeShorter','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x42')),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':_0x28c8('0x5f'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x18')),'prompt':_0x28c8('0x57')},{'id':'simplifyLanguage','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x2b')),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':_0x28c8('0x1a'),'groupLabel':_0x2dce8c(_0x5fe9b9,_0x28c8('0x26')),'commands':[{'id':_0x28c8('0x50'),'label':_0x2dce8c(_0x5fe9b9,'Summarize'),'prompt':_0x28c8('0x5e')},{'id':_0x28c8('0x3f'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x36')),'prompt':'Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'}]},{'groupId':_0x28c8('0x2a'),'groupLabel':_0x2dce8c(_0x5fe9b9,_0x28c8('0x21')),'commands':[{'id':'professional','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x3a')),'prompt':_0x28c8('0x5a')},{'id':_0x28c8('0x3c'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x25')),'prompt':_0x28c8('0x55')},{'id':_0x28c8('0x35'),'label':_0x2dce8c(_0x5fe9b9,'Direct'),'prompt':_0x28c8('0x5d')},{'id':'confident','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0xb')),'prompt':_0x28c8('0x13')},{'id':_0x28c8('0x7'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x40')),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':_0x28c8('0x30'),'groupLabel':_0x2dce8c(_0x5fe9b9,_0x28c8('0xe')),'commands':[{'id':_0x28c8('0x1f'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x5b')),'prompt':_0x28c8('0x15')},{'id':_0x28c8('0x8'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x4c')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':_0x2dce8c(_0x5fe9b9,'Journalism'),'prompt':_0x28c8('0x20')},{'id':_0x28c8('0x3d'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x9')),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':_0x28c8('0x29'),'groupLabel':_0x2dce8c(_0x5fe9b9,'Translate'),'commands':[{'id':'translateEnglish','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x0'),[_0x2dce8c(_0x5fe9b9,_0x28c8('0x54'))]),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':_0x2dce8c(_0x5fe9b9,'Translate\x20to\x20%0',[_0x2dce8c(_0x5fe9b9,'Spanish')]),'prompt':_0x28c8('0x2f')},{'id':'translatePortuguese','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x0'),[_0x2dce8c(_0x5fe9b9,_0x28c8('0x16'))]),'prompt':_0x28c8('0x3b')},{'id':'translateGerman','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x0'),[_0x2dce8c(_0x5fe9b9,_0x28c8('0x11'))]),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':_0x28c8('0x5c'),'label':_0x2dce8c(_0x5fe9b9,'Translate\x20to\x20%0',[_0x2dce8c(_0x5fe9b9,_0x28c8('0x12'))]),'prompt':_0x28c8('0x14')},{'id':'translateChinese','label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x0'),[_0x2dce8c(_0x5fe9b9,'Simplified\x20Chinese')]),'prompt':_0x28c8('0x43')},{'id':_0x28c8('0x4b'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x0'),[_0x2dce8c(_0x5fe9b9,'Hindi')]),'prompt':_0x28c8('0x49')},{'id':_0x28c8('0x1'),'label':_0x2dce8c(_0x5fe9b9,_0x28c8('0x0'),[_0x2dce8c(_0x5fe9b9,'Arabic')]),'prompt':_0x28c8('0x41')}]}])),_0x5bcac3['define'](_0x28c8('0x3e'),[]),_0x5bcac3[_0x28c8('0x2c')]('aiAssistant.removeCommands',[]);const _0x669045=_0x5bcac3[_0x28c8('0x1c')](_0x28c8('0x5')),_0x346b7d=_0x5bcac3[_0x28c8('0x1c')](_0x28c8('0x3e')),_0x4b4ee0=_0x5bcac3['get'](_0x28c8('0x2e'));_0x346b7d[_0x28c8('0x56')](_0x29794b=>{const _0x104691=_0x669045[_0x28c8('0x19')](_0x159bdf=>_0x159bdf[_0x28c8('0x4a')]===_0x29794b[_0x28c8('0x4a')]);_0x104691?_0x104691[_0x28c8('0x52')]=_0x104691[_0x28c8('0x52')][_0x28c8('0x27')](_0x29794b[_0x28c8('0x52')]):_0x669045[_0x28c8('0xa')](_0x29794b);}),_0x669045[_0x28c8('0x56')](_0x48cd9c=>{_0x48cd9c[_0x28c8('0x52')]=_0x48cd9c[_0x28c8('0x52')][_0x28c8('0x23')](_0x51a4a6=>!_0x4b4ee0[_0x28c8('0x46')](_0x51a4a6['id']));}),_0x5bcac3[_0x28c8('0x4f')](_0x28c8('0x5'),_0x669045);}[_0x28c8('0x44')](){const _0x3fd16c=this[_0x28c8('0x4e')];this[_0x28c8('0x2')]=_0x3fd16c['config'][_0x28c8('0x1c')]('licenseKey'),this[_0x28c8('0x58')]=setInterval(()=>{let _0x272489;for(const _0x38bb39 in _0x3fd16c){const _0xa57352=_0x38bb39,_0x148692=_0x3fd16c[_0xa57352];if('aiLicenseKeyTrial'===_0x148692||_0x28c8('0x4d')===_0x148692||_0x28c8('0x51')===_0x148692||'aiLicenseKeyTrialLimit:operations'===_0x148692){delete _0x3fd16c[_0xa57352],_0x272489=_0x148692;break;}}if(_0x28c8('0x4d')===_0x272489)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2034e8('ai-invalid-license-key',null);if(_0x28c8('0x1e')===_0x272489&&console[_0x28c8('0x1d')]('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.'),_0x28c8('0x6')===_0x272489)throw clearInterval(this[_0x28c8('0x58')]),new _0x2034e8('ai-trial-license-key-reached-limit-changes',null);_0x28c8('0x51')===_0x272489&&clearInterval(this[_0x28c8('0x58')]);},0x3e8);}['destroy'](){this[_0x28c8('0x58')]&&clearInterval(this[_0x28c8('0x58')]);}}

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

*/
const _0x59eb=['selection','markerToHighlight','toView','canEditAt','document','length','conversion','isAtEnd','isContent','span','end','insertContentBelow','createPositionAfter','pluginName','insertContent','pop','AIAssistantEditing','markers','showFakeVisualSelection','for','markerToElement','removeMarker','editor','data','schema','getLastMatchingPosition','has','model','createRange','change','updateMarker','getSelectedBlocks','getLastPosition','ck-fake-ai-selection','from'];(function(_0x225a23,_0x59eb83){const _0x4c70e6=function(_0x1d4903){while(--_0x1d4903){_0x225a23['push'](_0x225a23['shift']());}};_0x4c70e6(++_0x59eb83);}(_0x59eb,0xf4));const _0x4c70=function(_0x225a23,_0x59eb83){_0x225a23=_0x225a23-0x0;let _0x4c70e6=_0x59eb[_0x225a23];return _0x4c70e6;};import{Plugin as _0x4d505e}from'ckeditor5/src/core';const s='ai-ui';export default class i extends _0x4d505e{static get[_0x4c70('0xe')](){return _0x4c70('0x11');}['init'](){const {editor:_0x4849dd}=this;_0x4849dd[_0x4c70('0x7')][_0x4c70('0x14')]('editingDowncast')[_0x4c70('0x2')]({'model':s,'view':{'classes':[_0x4c70('0x22')]}}),_0x4849dd[_0x4c70('0x7')][_0x4c70('0x14')]('editingDowncast')[_0x4c70('0x15')]({'model':s,'view':{'name':_0x4c70('0xa'),'classes':[_0x4c70('0x22'),'ck-fake-ai-selection_collapsed']}});}[_0x4c70('0x13')](){const _0x580f7f=this[_0x4c70('0x17')][_0x4c70('0x1c')];_0x580f7f[_0x4c70('0x1e')](_0x279ba6=>{const _0x5656b3=_0x580f7f[_0x4c70('0x5')]['selection']['getFirstRange']();if(_0x580f7f[_0x4c70('0x12')][_0x4c70('0x1b')](s))_0x279ba6[_0x4c70('0x1f')](s,{'range':_0x5656b3});else{if(_0x5656b3['start'][_0x4c70('0x8')]){const _0x30aa77=_0x5656b3['start'][_0x4c70('0x1a')](({item:_0x186e86})=>!_0x580f7f[_0x4c70('0x19')][_0x4c70('0x9')](_0x186e86),{'boundaries':_0x5656b3});_0x279ba6['addMarker'](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x279ba6[_0x4c70('0x1d')](_0x30aa77,_0x5656b3[_0x4c70('0xb')])});}else _0x279ba6['addMarker'](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5656b3});}});}['hideFakeVisualSelection'](){this[_0x4c70('0x17')][_0x4c70('0x1c')]['change'](_0x36a615=>{_0x36a615[_0x4c70('0x16')](s);});}[_0x4c70('0xf')](_0x27d31f,_0x3a130a){const _0x2beebe=_0x3a130a||this[_0x4c70('0x17')][_0x4c70('0x1c')][_0x4c70('0x5')][_0x4c70('0x1')];if(!this['editor'][_0x4c70('0x1c')][_0x4c70('0x4')](_0x2beebe))return;const _0x2bf95c=this[_0x4c70('0x17')][_0x4c70('0x18')]['processor'][_0x4c70('0x3')](_0x27d31f),_0x2404a7=this[_0x4c70('0x17')]['data']['toModel'](_0x2bf95c);this[_0x4c70('0x17')]['model'][_0x4c70('0x1e')](_0x223d8c=>{const _0x3d79b7=this[_0x4c70('0x17')][_0x4c70('0x1c')]['insertContent'](_0x2404a7,_0x2beebe);_0x3d79b7&&_0x223d8c['setSelection'](_0x3d79b7);});}[_0x4c70('0xc')](_0x2ad7f7){const {model:_0x23e49e}=this['editor'],_0x29dd89=Array[_0x4c70('0x0')](_0x23e49e[_0x4c70('0x5')][_0x4c70('0x1')][_0x4c70('0x20')]()),_0x207301=_0x29dd89[_0x4c70('0x6')]?_0x23e49e[_0x4c70('0xd')](_0x29dd89[_0x4c70('0x10')]()):_0x23e49e[_0x4c70('0x5')][_0x4c70('0x1')][_0x4c70('0x21')]();this['insertContent'](_0x2ad7f7,_0x207301);}}
const _0x9c6d=['span','setSelection','getFirstRange','change','editor','getSelectedBlocks','selection','getLastPosition','ai-ui','toView','processor','pop','ck-fake-ai-selection','showFakeVisualSelection','isAtEnd','isContent','start','conversion','editingDowncast','markers','toModel','ck-fake-ai-selection_collapsed','end','for','getLastMatchingPosition','model','createPositionAfter','hideFakeVisualSelection','document','insertContent','init','data','addMarker','has','markerToHighlight','updateMarker','AIAssistantEditing'];(function(_0x5d1ebf,_0x9c6d76){const _0x430b81=function(_0x310cd8){while(--_0x310cd8){_0x5d1ebf['push'](_0x5d1ebf['shift']());}};_0x430b81(++_0x9c6d76);}(_0x9c6d,0x1eb));const _0x430b=function(_0x5d1ebf,_0x9c6d76){_0x5d1ebf=_0x5d1ebf-0x0;let _0x430b81=_0x9c6d[_0x5d1ebf];return _0x430b81;};import{Plugin as _0x3446e1}from'ckeditor5/src/core';const s=_0x430b('0x23');export default class i extends _0x3446e1{static get['pluginName'](){return _0x430b('0x1a');}[_0x430b('0x14')](){const {editor:_0x3c43cc}=this;_0x3c43cc[_0x430b('0x7')][_0x430b('0xd')](_0x430b('0x8'))[_0x430b('0x18')]({'model':s,'view':{'classes':[_0x430b('0x2')]}}),_0x3c43cc[_0x430b('0x7')][_0x430b('0xd')](_0x430b('0x8'))['markerToElement']({'model':s,'view':{'name':_0x430b('0x1b'),'classes':[_0x430b('0x2'),_0x430b('0xb')]}});}[_0x430b('0x3')](){const _0x1079d7=this[_0x430b('0x1f')][_0x430b('0xf')];_0x1079d7[_0x430b('0x1e')](_0x562e18=>{const _0x5807b8=_0x1079d7['document'][_0x430b('0x21')][_0x430b('0x1d')]();if(_0x1079d7[_0x430b('0x9')][_0x430b('0x17')](s))_0x562e18[_0x430b('0x19')](s,{'range':_0x5807b8});else{if(_0x5807b8[_0x430b('0x6')][_0x430b('0x4')]){const _0x453c44=_0x5807b8['start'][_0x430b('0xe')](({item:_0x181820})=>!_0x1079d7['schema'][_0x430b('0x5')](_0x181820),{'boundaries':_0x5807b8});_0x562e18['addMarker'](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x562e18['createRange'](_0x453c44,_0x5807b8[_0x430b('0xc')])});}else _0x562e18[_0x430b('0x16')](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5807b8});}});}[_0x430b('0x11')](){this[_0x430b('0x1f')]['model'][_0x430b('0x1e')](_0x1f9f15=>{_0x1f9f15['removeMarker'](s);});}[_0x430b('0x13')](_0x29d046,_0x88d92e){const _0x52c15d=_0x88d92e||this[_0x430b('0x1f')]['model'][_0x430b('0x12')]['selection'];if(!this[_0x430b('0x1f')][_0x430b('0xf')]['canEditAt'](_0x52c15d))return;const _0x2f41e2=this[_0x430b('0x1f')][_0x430b('0x15')][_0x430b('0x0')][_0x430b('0x24')](_0x29d046),_0xd20635=this['editor'][_0x430b('0x15')][_0x430b('0xa')](_0x2f41e2);this['editor'][_0x430b('0xf')][_0x430b('0x1e')](_0x1f4d42=>{const _0x5a0615=this[_0x430b('0x1f')]['model'][_0x430b('0x13')](_0xd20635,_0x52c15d);_0x5a0615&&_0x1f4d42[_0x430b('0x1c')](_0x5a0615);});}['insertContentBelow'](_0x2fb286){const {model:_0x9440ee}=this['editor'],_0x4f17c0=Array['from'](_0x9440ee[_0x430b('0x12')][_0x430b('0x21')][_0x430b('0x20')]()),_0x492a82=_0x4f17c0['length']?_0x9440ee[_0x430b('0x10')](_0x4f17c0[_0x430b('0x1')]()):_0x9440ee['document'][_0x430b('0x21')][_0x430b('0x22')]();this['insertContent'](_0x2fb286,_0x492a82);}}

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

*/
const _0x5b05=['read','serializeToString','_authKey','reject','string','abort','_normalizeResponseHeadings','data','Authorization','_requestParameters','match','rename','processor','editor','content','AbortError','document','Bearer\x20','config','AI_ERROR_CONTEXT_LENGTH','error','_isBufferIncomplete','aborted','catch','context_length_exceeded','pluginName','get','stringify','aiconnector-send-prompt-failed','name','temperature','POST','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.','max_tokens','define','adapter','<span>','Moderation','_domParser','_cleanUpData','processPrompt','</span>','model','_processStream','signal','data:\x20','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','AIConnector','_xmlSerializer','delta','body','top_p','authKey','locale','resolve','length','_prepareMessages','_apiUrl','view','toModel','editing','filter','map','_abortController','decode','split','aiAssistant.requestParameters','aiAssistant.apiUrl','aiAssistant','push','[DONE]','sendPrompt','_parseAndNormalizeContent','AI_ERROR_MODERATION','includes','parse','aiAssistant.requestParameters.top_p','user','text/html','Instruction:\x0a','text'];(function(_0x5c17a8,_0x5b0523){const _0x381b85=function(_0x229312){while(--_0x229312){_0x5c17a8['push'](_0x5c17a8['shift']());}};_0x381b85(++_0x5b0523);}(_0x5b05,0x1e7));const _0x381b=function(_0x5c17a8,_0x5b0523){_0x5c17a8=_0x5c17a8-0x0;let _0x381b85=_0x5b05[_0x5c17a8];return _0x381b85;};import{Matcher as _0x1a5ad6,UpcastWriter as _0x584016}from'ckeditor5/src/engine';import{Plugin as _0x5e15d3}from'ckeditor5/src/core';import{CKEditorError as _0x3e204e}from'ckeditor5/src/utils';import{getTranslation as _0x8ef2f1}from'./utils/common-translations';export default class o extends _0x5e15d3{static get[_0x381b('0x18')](){return _0x381b('0x2e');}constructor(_0x112fc0){super(_0x112fc0),_0x112fc0[_0x381b('0x11')][_0x381b('0x21')](_0x381b('0x42'),'https://api.openai.com/v1/chat/completions'),_0x112fc0[_0x381b('0x11')]['define']('aiAssistant.requestParameters.model','gpt-3.5-turbo'),_0x112fc0[_0x381b('0x11')][_0x381b('0x21')]('aiAssistant.requestParameters.max_tokens',0x7d0),_0x112fc0[_0x381b('0x11')]['define']('aiAssistant.requestParameters.temperature',0x1),_0x112fc0[_0x381b('0x11')]['define'](_0x381b('0x4b'),0x1);const _0x3ac260=_0x112fc0[_0x381b('0x11')][_0x381b('0x19')](_0x381b('0x42')),_0x58846c=_0x112fc0['config'][_0x381b('0x19')](_0x381b('0x43'))[_0x381b('0x33')],_0x10f41a=_0x112fc0['config'][_0x381b('0x19')](_0x381b('0x41'));this['_abortController']=new AbortController(),this[_0x381b('0x22')]=new OpenAIAdapter(_0x112fc0,_0x3ac260,_0x10f41a,_0x58846c);}async[_0x381b('0x27')](_0x4317d1,_0x592c85,_0x22f15a){const {systemMessage:_0x386eeb,userMessage:_0x9c1a8e}=this[_0x381b('0x37')](_0x4317d1,_0x592c85);return this[_0x381b('0x22')]['sendPrompt'](_0x386eeb,_0x9c1a8e,this[_0x381b('0x3e')][_0x381b('0x2b')],_0x22f15a)[_0x381b('0x16')](_0x4a5ef9=>{if(_0x4a5ef9 instanceof AIRequestError)return Promise[_0x381b('0x2')](_0x4a5ef9);if(_0x381b('0xe')==_0x4a5ef9['name'])return Promise['resolve']();throw console[_0x381b('0x13')](_0x4a5ef9),new _0x3e204e(_0x381b('0x1b'),null);});}[_0x381b('0x4')](){this[_0x381b('0x3e')]['signal'][_0x381b('0x15')]||(this[_0x381b('0x3e')][_0x381b('0x4')](),this['_abortController']=new AbortController());}[_0x381b('0x37')](_0x281865,_0x359e18){let _0x26f732,_0x42af6c;return _0x359e18?(_0x26f732=_0x381b('0x1f'),_0x42af6c=_0x381b('0x4e')+_0x281865+_0x381b('0x2d')+(_0x359e18['startsWith']('<')?_0x359e18:_0x381b('0x23')+_0x359e18+_0x381b('0x28'))):(_0x26f732='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.',_0x42af6c=_0x281865),{'systemMessage':_0x26f732,'userMessage':_0x42af6c};}}export class OpenAIAdapter{constructor(_0xc5a25d,_0x4c4d64,_0x3817c2,_0x1f3eac){this[_0x381b('0xc')]=_0xc5a25d,this[_0x381b('0x38')]=_0x4c4d64,this[_0x381b('0x1')]=_0x1f3eac,this[_0x381b('0x8')]=_0x3817c2,this[_0x381b('0x25')]=new DOMParser(),this[_0x381b('0x2f')]=new XMLSerializer();}async[_0x381b('0x46')](_0x3ff36f,_0x24fa7b,_0x91fdc5,_0x3d6753){const _0x51f5ff=this[_0x381b('0xc')][_0x381b('0x34')],_0x315ff2={'Content-Type':'application/json'};if(_0x381b('0x3')==typeof this[_0x381b('0x1')])_0x315ff2[_0x381b('0x7')]=_0x381b('0x10')+this['_authKey'];else{if(this['_authKey'])try{const _0x444fc3=await this[_0x381b('0x1')]();_0x315ff2['Authorization']=_0x381b('0x10')+_0x444fc3;}catch(_0xff0ef){return Promise[_0x381b('0x2')](new AIRequestError(_0x8ef2f1(_0x51f5ff,'AI_ERROR_AUTH_REQUEST')));}}const _0x4e43d7={'model':this[_0x381b('0x8')][_0x381b('0x29')],'messages':[{'role':'system','content':_0x3ff36f},{'role':'user','content':_0x24fa7b}],'stream':!0x0,'max_tokens':this[_0x381b('0x8')][_0x381b('0x20')],'temperature':this[_0x381b('0x8')][_0x381b('0x1d')],'top_p':this['_requestParameters'][_0x381b('0x32')]};this['_requestParameters'][_0x381b('0x4c')]&&(_0x4e43d7[_0x381b('0x4c')]=this['_requestParameters'][_0x381b('0x4c')]);const _0x2b9d36={'method':_0x381b('0x1e'),'headers':_0x315ff2,'body':JSON[_0x381b('0x1a')](_0x4e43d7),'signal':_0x91fdc5},_0x1b2b08=await fetch(this[_0x381b('0x38')],_0x2b9d36);if(_0x1b2b08['ok']){const _0x550e94=_0x1b2b08[_0x381b('0x31')];return await this[_0x381b('0x2a')](_0x550e94,_0x3d6753),Promise[_0x381b('0x35')]();}{const _0x17c103=await _0x1b2b08[_0x381b('0x4f')]();return _0x17c103[_0x381b('0x49')](_0x381b('0x17'))?Promise['reject'](new AIRequestError(_0x8ef2f1(_0x51f5ff,_0x381b('0x12')))):_0x17c103[_0x381b('0x49')](_0x381b('0x24'))?Promise['reject'](new AIRequestError(_0x8ef2f1(_0x51f5ff,_0x381b('0x48')))):Promise['reject'](new Error(_0x17c103));}}async[_0x381b('0x2a')](_0x1dda9c,_0x5c911d){const _0x23084e=_0x1dda9c['getReader'](),_0x343783=new TextDecoder();let _0x54fda5='',_0xde3a5f='',_0x23fb64='',_0x455b29=!0x1;for(;!_0x455b29;){const {done:_0x7eb0b7,value:_0x55b13a}=await _0x23084e[_0x381b('0x50')](),_0x540d78=_0x54fda5+_0x343783[_0x381b('0x3f')](_0x55b13a);let _0x4327a4='';_0x455b29=_0x7eb0b7;try{_0x4327a4=this[_0x381b('0x26')](_0x540d78),_0x54fda5='';}catch(_0xd61c05){_0x54fda5+=_0x540d78;continue;}_0xde3a5f+=_0x4327a4,!_0x7eb0b7&&this[_0x381b('0x14')](_0xde3a5f)||_0xde3a5f&&(_0x23fb64+=_0xde3a5f,_0x5c911d(this[_0x381b('0x47')](_0x23fb64)),_0xde3a5f='');}return Promise[_0x381b('0x35')]();}[_0x381b('0x14')](_0x43f2bf){const _0x397e32=_0x43f2bf[_0x381b('0x40')]('<')['length']!==_0x43f2bf['split']('>')['length'],_0x202bbb=_0x43f2bf[_0x381b('0x36')]<0x1e;return _0x397e32&&_0x202bbb;}[_0x381b('0x47')](_0x3be343){const _0x3075ec=this[_0x381b('0x25')]['parseFromString'](_0x3be343,_0x381b('0x4d')),_0x21be7f=this['editor'][_0x381b('0x6')][_0x381b('0xb')]['toView'](this[_0x381b('0x2f')][_0x381b('0x0')](_0x3075ec[_0x381b('0x31')]));return this[_0x381b('0x5')](_0x21be7f),this[_0x381b('0xc')][_0x381b('0x6')]['stringify'](this[_0x381b('0xc')][_0x381b('0x6')][_0x381b('0x3a')](_0x21be7f));}[_0x381b('0x5')](_0x42368e){const _0x4ad33a=new _0x584016(this['editor'][_0x381b('0x3b')][_0x381b('0x39')][_0x381b('0xf')]),_0x2aa2f4=new _0x1a5ad6({'name':/^h[1-5]$/}),_0x2f32e1=[];let _0x15cd08=!0x1;for(const _0x2a20af of _0x42368e)_0x2a20af['is']('element')&&_0x2aa2f4[_0x381b('0x9')](_0x2a20af)&&(_0x2f32e1[_0x381b('0x44')](_0x2a20af),'h1'==_0x2a20af[_0x381b('0x1c')]&&(_0x15cd08=!0x0));if(_0x15cd08)for(const _0x503f88 of _0x2f32e1)_0x4ad33a[_0x381b('0xa')]('h'+(parseInt(_0x503f88['name'][0x1])+0x1),_0x503f88);}[_0x381b('0x26')](_0x3b5e34){return _0x3b5e34['split'](/\n(?![^{]*\})/g)[_0x381b('0x3d')](_0x558e36=>_0x558e36['replace'](_0x381b('0x2c'),''))['filter'](_0x4a28e8=>_0x4a28e8&&_0x4a28e8[_0x381b('0x36')]>0x0&&_0x381b('0x45')!==_0x4a28e8)[_0x381b('0x3d')](_0x2cb07d=>{const {choices:_0x3566d5}=JSON[_0x381b('0x4a')](_0x2cb07d);if(_0x3566d5[0x0]&&_0x3566d5[0x0]['delta']&&_0x3566d5[0x0][_0x381b('0x30')][_0x381b('0xd')])return _0x3566d5[0x0]['delta'][_0x381b('0xd')];})[_0x381b('0x3c')](_0x45e00e=>_0x45e00e)['join']('');}}export class AIRequestError extends Error{constructor(_0x34cdba){super(_0x34cdba),this[_0x381b('0x1c')]='AIRequestError';}}
const _0x298b=['aiconnector-send-prompt-failed','delta','_processStream','https://api.openai.com/v1/chat/completions','authKey','stringify','top_p','define','_abortController','map','decode','signal','system','string','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.','aiAssistant.requestParameters.model','length','name','get','catch','Moderation','error','aiAssistant.requestParameters.top_p','user','Instruction:\x0a','document','join','element','_prepareMessages','temperature','filter','locale','_authKey','resolve','_xmlSerializer','getReader','editing','reject','_isBufferIncomplete','Authorization','split','abort','match','_apiUrl','gpt-3.5-turbo','aiAssistant','max_tokens','content','</span>','application/json','aiAssistant.apiUrl','body','includes','toView','pluginName','parseFromString','sendPrompt','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','editor','aiAssistant.requestParameters','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.','_cleanUpData','replace','_parseAndNormalizeContent','data','read','parse','Bearer\x20','[DONE]','_normalizeResponseHeadings','push','_requestParameters','processor','startsWith','text','config','adapter','model','AI_ERROR_AUTH_REQUEST','aborted'];(function(_0x112a9d,_0x298bf9){const _0x334800=function(_0x379268){while(--_0x379268){_0x112a9d['push'](_0x112a9d['shift']());}};_0x334800(++_0x298bf9);}(_0x298b,0xac));const _0x3348=function(_0x112a9d,_0x298bf9){_0x112a9d=_0x112a9d-0x0;let _0x334800=_0x298b[_0x112a9d];return _0x334800;};import{Matcher as _0x57e0c8,UpcastWriter as _0x5649d7}from'ckeditor5/src/engine';import{Plugin as _0x5f55ad}from'ckeditor5/src/core';import{CKEditorError as _0x501047}from'ckeditor5/src/utils';import{getTranslation as _0x410bdd}from'./utils/common-translations';export default class o extends _0x5f55ad{static get[_0x3348('0x2a')](){return'AIConnector';}constructor(_0x3f60bf){super(_0x3f60bf),_0x3f60bf[_0x3348('0x3f')][_0x3348('0x4b')](_0x3348('0x26'),_0x3348('0x47')),_0x3f60bf[_0x3348('0x3f')][_0x3348('0x4b')](_0x3348('0x3'),_0x3348('0x20')),_0x3f60bf['config'][_0x3348('0x4b')]('aiAssistant.requestParameters.max_tokens',0x7d0),_0x3f60bf[_0x3348('0x3f')][_0x3348('0x4b')]('aiAssistant.requestParameters.temperature',0x1),_0x3f60bf['config'][_0x3348('0x4b')](_0x3348('0xa'),0x1);const _0x4c2a25=_0x3f60bf[_0x3348('0x3f')][_0x3348('0x6')](_0x3348('0x26')),_0x4614b0=_0x3f60bf[_0x3348('0x3f')][_0x3348('0x6')](_0x3348('0x21'))[_0x3348('0x48')],_0x6c8a9d=_0x3f60bf[_0x3348('0x3f')][_0x3348('0x6')](_0x3348('0x2f'));this[_0x3348('0x4c')]=new AbortController(),this[_0x3348('0x40')]=new OpenAIAdapter(_0x3f60bf,_0x4c2a25,_0x6c8a9d,_0x4614b0);}async['processPrompt'](_0x38092a,_0x47f4a4,_0x2031d2){const {systemMessage:_0x332117,userMessage:_0x5327b5}=this[_0x3348('0x10')](_0x38092a,_0x47f4a4);return this['adapter']['sendPrompt'](_0x332117,_0x5327b5,this[_0x3348('0x4c')][_0x3348('0x4f')],_0x2031d2)[_0x3348('0x7')](_0x4c78b9=>{if(_0x4c78b9 instanceof AIRequestError)return Promise[_0x3348('0x19')](_0x4c78b9);if('AbortError'==_0x4c78b9['name'])return Promise[_0x3348('0x15')]();throw console[_0x3348('0x9')](_0x4c78b9),new _0x501047(_0x3348('0x44'),null);});}[_0x3348('0x1d')](){this[_0x3348('0x4c')][_0x3348('0x4f')][_0x3348('0x43')]||(this[_0x3348('0x4c')][_0x3348('0x1d')](),this[_0x3348('0x4c')]=new AbortController());}[_0x3348('0x10')](_0x49c7ea,_0x3242f8){let _0x33a2e8,_0x2f45b1;return _0x3242f8?(_0x33a2e8=_0x3348('0x30'),_0x2f45b1=_0x3348('0xc')+_0x49c7ea+_0x3348('0x2d')+(_0x3242f8[_0x3348('0x3d')]('<')?_0x3242f8:'<span>'+_0x3242f8+_0x3348('0x24'))):(_0x33a2e8=_0x3348('0x2'),_0x2f45b1=_0x49c7ea),{'systemMessage':_0x33a2e8,'userMessage':_0x2f45b1};}}export class OpenAIAdapter{constructor(_0x38e565,_0x68f3f,_0x246a7d,_0x505e8b){this[_0x3348('0x2e')]=_0x38e565,this[_0x3348('0x1f')]=_0x68f3f,this['_authKey']=_0x505e8b,this['_requestParameters']=_0x246a7d,this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer();}async[_0x3348('0x2c')](_0x2e2b9a,_0x49e4e0,_0x1522b5,_0x3a6f3e){const _0xb2404d=this[_0x3348('0x2e')][_0x3348('0x13')],_0x616d28={'Content-Type':_0x3348('0x25')};if(_0x3348('0x1')==typeof this[_0x3348('0x14')])_0x616d28[_0x3348('0x1b')]=_0x3348('0x37')+this[_0x3348('0x14')];else{if(this[_0x3348('0x14')])try{const _0x1931cf=await this[_0x3348('0x14')]();_0x616d28[_0x3348('0x1b')]=_0x3348('0x37')+_0x1931cf;}catch(_0x3352a0){return Promise['reject'](new AIRequestError(_0x410bdd(_0xb2404d,_0x3348('0x42'))));}}const _0x3b6756={'model':this[_0x3348('0x3b')][_0x3348('0x41')],'messages':[{'role':_0x3348('0x0'),'content':_0x2e2b9a},{'role':'user','content':_0x49e4e0}],'stream':!0x0,'max_tokens':this[_0x3348('0x3b')][_0x3348('0x22')],'temperature':this[_0x3348('0x3b')][_0x3348('0x11')],'top_p':this[_0x3348('0x3b')][_0x3348('0x4a')]};this[_0x3348('0x3b')]['user']&&(_0x3b6756[_0x3348('0xb')]=this[_0x3348('0x3b')][_0x3348('0xb')]);const _0x4beb24={'method':'POST','headers':_0x616d28,'body':JSON[_0x3348('0x49')](_0x3b6756),'signal':_0x1522b5},_0x8747fd=await fetch(this[_0x3348('0x1f')],_0x4beb24);if(_0x8747fd['ok']){const _0x5364ee=_0x8747fd[_0x3348('0x27')];return await this[_0x3348('0x46')](_0x5364ee,_0x3a6f3e),Promise['resolve']();}{const _0x52bee4=await _0x8747fd[_0x3348('0x3e')]();return _0x52bee4[_0x3348('0x28')]('context_length_exceeded')?Promise[_0x3348('0x19')](new AIRequestError(_0x410bdd(_0xb2404d,'AI_ERROR_CONTEXT_LENGTH'))):_0x52bee4[_0x3348('0x28')](_0x3348('0x8'))?Promise[_0x3348('0x19')](new AIRequestError(_0x410bdd(_0xb2404d,'AI_ERROR_MODERATION'))):Promise[_0x3348('0x19')](new Error(_0x52bee4));}}async['_processStream'](_0x1a7414,_0x11efb8){const _0x39675a=_0x1a7414[_0x3348('0x17')](),_0x43d7c6=new TextDecoder();let _0x50804e='',_0x2df81c='',_0x372fb3='',_0x4ef9dc=!0x1;for(;!_0x4ef9dc;){const {done:_0x331c92,value:_0x2c6f9b}=await _0x39675a[_0x3348('0x35')](),_0x282c62=_0x50804e+_0x43d7c6[_0x3348('0x4e')](_0x2c6f9b);let _0x175ea0='';_0x4ef9dc=_0x331c92;try{_0x175ea0=this[_0x3348('0x31')](_0x282c62),_0x50804e='';}catch(_0x2a373b){_0x50804e+=_0x282c62;continue;}_0x2df81c+=_0x175ea0,!_0x331c92&&this['_isBufferIncomplete'](_0x2df81c)||_0x2df81c&&(_0x372fb3+=_0x2df81c,_0x11efb8(this['_parseAndNormalizeContent'](_0x372fb3)),_0x2df81c='');}return Promise['resolve']();}[_0x3348('0x1a')](_0x378613){const _0x353586=_0x378613['split']('<')['length']!==_0x378613[_0x3348('0x1c')]('>')[_0x3348('0x4')],_0x17cca5=_0x378613[_0x3348('0x4')]<0x1e;return _0x353586&&_0x17cca5;}[_0x3348('0x33')](_0xb81b7){const _0x3e05ef=this['_domParser'][_0x3348('0x2b')](_0xb81b7,'text/html'),_0x2285cc=this[_0x3348('0x2e')][_0x3348('0x34')][_0x3348('0x3c')][_0x3348('0x29')](this[_0x3348('0x16')]['serializeToString'](_0x3e05ef[_0x3348('0x27')]));return this[_0x3348('0x39')](_0x2285cc),this[_0x3348('0x2e')]['data']['stringify'](this['editor'][_0x3348('0x34')]['toModel'](_0x2285cc));}['_normalizeResponseHeadings'](_0x2200d1){const _0x177a95=new _0x5649d7(this['editor'][_0x3348('0x18')]['view'][_0x3348('0xd')]),_0x30eecc=new _0x57e0c8({'name':/^h[1-5]$/}),_0x1e41c6=[];let _0x50f157=!0x1;for(const _0x5a2df1 of _0x2200d1)_0x5a2df1['is'](_0x3348('0xf'))&&_0x30eecc[_0x3348('0x1e')](_0x5a2df1)&&(_0x1e41c6[_0x3348('0x3a')](_0x5a2df1),'h1'==_0x5a2df1['name']&&(_0x50f157=!0x0));if(_0x50f157)for(const _0xc42c3b of _0x1e41c6)_0x177a95['rename']('h'+(parseInt(_0xc42c3b['name'][0x1])+0x1),_0xc42c3b);}['_cleanUpData'](_0xc18ac){return _0xc18ac[_0x3348('0x1c')](/\n(?![^{]*\})/g)[_0x3348('0x4d')](_0x108b86=>_0x108b86[_0x3348('0x32')]('data:\x20',''))[_0x3348('0x12')](_0x3e79bd=>_0x3e79bd&&_0x3e79bd[_0x3348('0x4')]>0x0&&_0x3348('0x38')!==_0x3e79bd)[_0x3348('0x4d')](_0x572968=>{const {choices:_0x2f56e0}=JSON[_0x3348('0x36')](_0x572968);if(_0x2f56e0[0x0]&&_0x2f56e0[0x0][_0x3348('0x45')]&&_0x2f56e0[0x0][_0x3348('0x45')][_0x3348('0x23')])return _0x2f56e0[0x0]['delta'][_0x3348('0x23')];})[_0x3348('0x12')](_0x4ccb7d=>_0x4ccb7d)[_0x3348('0xe')]('');}}export class AIRequestError extends Error{constructor(_0x5936ce){super(_0x5936ce),this[_0x3348('0x5')]='AIRequestError';}}

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

*/
const _0x4487=['previousContext','abort','stopProcessing','prompt','_handlePrompt','finally','reset','isProcessing','previousLabel','render','previousPrompt','once','_updateValue','destroy','startProcessing','connector','set','message','finishProcessing','submitPrompt','updateView','currentContext','view','bind','tryAgainEvent','listenTo','handleError','initialContext'];(function(_0x10a42b,_0x448753){const _0x33cfcf=function(_0x338459){while(--_0x338459){_0x10a42b['push'](_0x10a42b['shift']());}};_0x33cfcf(++_0x448753);}(_0x4487,0xa9));const _0x33cf=function(_0x10a42b,_0x448753){_0x10a42b=_0x10a42b-0x0;let _0x33cfcf=_0x4487[_0x10a42b];return _0x33cfcf;};import{ObservableMixin as _0x4d2930}from'ckeditor5/src/utils';import{AIRequestError as _0x19aa16}from'../aiconnector';export default class g extends _0x4d2930(){constructor(_0x9e39ff,_0x560e69){super(),this[_0x33cf('0xe')]=_0x9e39ff,this[_0x33cf('0x15')]=_0x560e69,this[_0x33cf('0xf')]({'initialContext':'','currentContext':'','previousContext':void 0x0,'previousPrompt':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this[_0x33cf('0x15')][_0x33cf('0x16')]('value')['to'](this,_0x33cf('0x14')),this[_0x33cf('0x18')](this[_0x33cf('0x15')],_0x33cf('0x12'),(_0x1500dc,_0x359c01)=>{const _0x9b5dc4=this[_0x33cf('0x14')]||this['initialContext'];this[_0x33cf('0x3')](_0x359c01,_0x9b5dc4);}),this[_0x33cf('0x18')](this['view'],_0x33cf('0x17'),()=>{this[_0x33cf('0x15')][_0x33cf('0x2')]=this['previousLabel'],this['_handlePrompt'](this[_0x33cf('0x9')],this[_0x33cf('0x1b')],this[_0x33cf('0x7')]);}),this[_0x33cf('0x18')](this[_0x33cf('0x15')],_0x33cf('0x1'),()=>{this[_0x33cf('0x1')]();});}[_0x33cf('0xc')](){this['stopListening']();}async[_0x33cf('0x13')]({prompt:_0xc1c90,htmlContent:_0x52e5b5,label:_0x490ae0,mainAction:_0x26b9ea}){this[_0x33cf('0x15')][_0x33cf('0x2')]=_0x490ae0,this[_0x33cf('0x15')]['mainAction']=_0x26b9ea,this[_0x33cf('0x1a')]=_0x52e5b5,_0xc1c90&&(this[_0x33cf('0x15')]['isRendered']?this[_0x33cf('0x3')](_0xc1c90,_0x52e5b5,_0x490ae0):this[_0x33cf('0x15')][_0x33cf('0xa')](_0x33cf('0x8'),()=>{this[_0x33cf('0x3')](_0xc1c90,_0x52e5b5,_0x490ae0);}));}[_0x33cf('0x1')](){this[_0x33cf('0x6')]&&(this[_0x33cf('0x6')]=!0x1,this['view'][_0x33cf('0x11')](),this[_0x33cf('0xe')][_0x33cf('0x0')]());}[_0x33cf('0x5')](){this[_0x33cf('0x1a')]='',this[_0x33cf('0x14')]='',this[_0x33cf('0x1b')]='',this[_0x33cf('0x9')]='',this[_0x33cf('0x7')]='',this[_0x33cf('0x15')][_0x33cf('0x5')](),this[_0x33cf('0x1')]();}async['_handlePrompt'](_0x234623,_0xd72c9d,_0x10d97f){return this[_0x33cf('0x6')]=!0x0,this['view'][_0x33cf('0xd')](),this[_0x33cf('0x1b')]=_0xd72c9d,this['previousPrompt']=_0x234623,this[_0x33cf('0x7')]=_0x10d97f||_0x234623,new Promise(_0x1372ff=>{this['connector']['processPrompt'](_0x234623,_0xd72c9d,_0xa8a5ed=>this[_0x33cf('0xb')](_0xa8a5ed))['catch'](_0x25fc00=>{_0x25fc00 instanceof _0x19aa16?this[_0x33cf('0x15')][_0x33cf('0x19')](_0x25fc00[_0x33cf('0x10')]):this[_0x33cf('0x15')][_0x33cf('0x19')](),_0x1372ff();})[_0x33cf('0x4')](()=>{this['stopProcessing'](),_0x1372ff();});});}['_updateValue'](_0x2b1868){this['currentContext']=''+_0x2b1868;}}
const _0x5323=['listenTo','set','message','abort','view','submitPrompt','handleError','prompt','finishProcessing','once','finally','connector','currentContext','previousLabel','initialContext','stopProcessing','render','reset','stopListening','catch','_handlePrompt','isRendered','previousPrompt','bind','previousContext','_updateValue','isProcessing'];(function(_0x3ab094,_0x532364){const _0x40ad74=function(_0x5c0704){while(--_0x5c0704){_0x3ab094['push'](_0x3ab094['shift']());}};_0x40ad74(++_0x532364);}(_0x5323,0x15a));const _0x40ad=function(_0x3ab094,_0x532364){_0x3ab094=_0x3ab094-0x0;let _0x40ad74=_0x5323[_0x3ab094];return _0x40ad74;};import{ObservableMixin as _0x20397d}from'ckeditor5/src/utils';import{AIRequestError as _0x21009d}from'../aiconnector';export default class g extends _0x20397d(){constructor(_0x4facc4,_0x2d879a){super(),this[_0x40ad('0x10')]=_0x4facc4,this[_0x40ad('0x9')]=_0x2d879a,this[_0x40ad('0x6')]({'initialContext':'','currentContext':'','previousContext':void 0x0,'previousPrompt':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this[_0x40ad('0x9')][_0x40ad('0x1')]('value')['to'](this,_0x40ad('0x11')),this['listenTo'](this[_0x40ad('0x9')],_0x40ad('0xa'),(_0x56eca6,_0xa35660)=>{const _0x43388b=this[_0x40ad('0x11')]||this[_0x40ad('0x13')];this[_0x40ad('0x19')](_0xa35660,_0x43388b);}),this[_0x40ad('0x5')](this[_0x40ad('0x9')],'tryAgainEvent',()=>{this[_0x40ad('0x9')][_0x40ad('0xc')]=this['previousLabel'],this['_handlePrompt'](this[_0x40ad('0x0')],this[_0x40ad('0x2')],this[_0x40ad('0x12')]);}),this[_0x40ad('0x5')](this[_0x40ad('0x9')],'stopProcessing',()=>{this[_0x40ad('0x14')]();});}['destroy'](){this[_0x40ad('0x17')]();}async['updateView']({prompt:_0x5a1955,htmlContent:_0x5b6172,label:_0x2ed4a3,mainAction:_0x3bf501}){this['view'][_0x40ad('0xc')]=_0x2ed4a3,this['view']['mainAction']=_0x3bf501,this[_0x40ad('0x13')]=_0x5b6172,_0x5a1955&&(this['view'][_0x40ad('0x1a')]?this[_0x40ad('0x19')](_0x5a1955,_0x5b6172,_0x2ed4a3):this[_0x40ad('0x9')][_0x40ad('0xe')](_0x40ad('0x15'),()=>{this['_handlePrompt'](_0x5a1955,_0x5b6172,_0x2ed4a3);}));}[_0x40ad('0x14')](){this[_0x40ad('0x4')]&&(this[_0x40ad('0x4')]=!0x1,this[_0x40ad('0x9')][_0x40ad('0xd')](),this[_0x40ad('0x10')][_0x40ad('0x8')]());}[_0x40ad('0x16')](){this[_0x40ad('0x13')]='',this[_0x40ad('0x11')]='',this['previousContext']='',this['previousPrompt']='',this[_0x40ad('0x12')]='',this['view'][_0x40ad('0x16')](),this[_0x40ad('0x14')]();}async[_0x40ad('0x19')](_0x5141d4,_0x4a04c9,_0x2065e4){return this[_0x40ad('0x4')]=!0x0,this[_0x40ad('0x9')]['startProcessing'](),this[_0x40ad('0x2')]=_0x4a04c9,this['previousPrompt']=_0x5141d4,this[_0x40ad('0x12')]=_0x2065e4||_0x5141d4,new Promise(_0x2b9729=>{this['connector']['processPrompt'](_0x5141d4,_0x4a04c9,_0x5d745d=>this['_updateValue'](_0x5d745d))[_0x40ad('0x18')](_0x5ab0b9=>{_0x5ab0b9 instanceof _0x21009d?this['view'][_0x40ad('0xb')](_0x5ab0b9[_0x40ad('0x7')]):this[_0x40ad('0x9')][_0x40ad('0xb')](),_0x2b9729();})[_0x40ad('0xf')](()=>{this[_0x40ad('0x14')](),_0x2b9729();});});}[_0x40ad('0x3')](_0x307de3){this[_0x40ad('0x11')]=''+_0x307de3;}}

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

*/
const _0x22b3=['labelView','match','highlightText','isVisible','filter','length','children','label','items'];(function(_0x859ec3,_0x22b308){const _0x44b0e0=function(_0x12f47b){while(--_0x12f47b){_0x859ec3['push'](_0x859ec3['shift']());}};_0x44b0e0(++_0x22b308);}(_0x22b3,0x87));const _0x44b0=function(_0x859ec3,_0x22b308){_0x859ec3=_0x859ec3-0x0;let _0x44b0e0=_0x22b3[_0x859ec3];return _0x44b0e0;};import{ListView as _0x579824}from'ckeditor5/src/ui';export default class C extends _0x579824{[_0x44b0('0x4')](_0x48a839){let _0x167066=0x0,_0xc59e92=0x0;for(const _0x4f11b4 of this[_0x44b0('0x8')]){const _0x4636a7=_0x4f11b4,_0x200001=_0x48a839&&!!_0x4636a7['label'][_0x44b0('0x1')](_0x48a839);_0x4636a7[_0x44b0('0x0')][_0x44b0('0x2')](_0x200001?_0x48a839:null);for(const _0x3f28ae of _0x4636a7[_0x44b0('0x8')]){const _0x361bd9=_0x3f28ae[_0x44b0('0x6')]['first'],_0x18e5c0=_0x361bd9[_0x44b0('0x0')];if(_0x48a839){const _0x1a1a5e=!!_0x361bd9[_0x44b0('0x7')][_0x44b0('0x1')](_0x48a839);_0x18e5c0[_0x44b0('0x2')](_0x1a1a5e?_0x48a839:null),_0x3f28ae[_0x44b0('0x3')]=_0x200001||_0x1a1a5e;}else _0x3f28ae[_0x44b0('0x3')]=!0x0,_0x18e5c0[_0x44b0('0x2')](null);}const _0x1e9d8a=_0x4636a7[_0x44b0('0x8')][_0x44b0('0x4')](_0xbbb66c=>_0xbbb66c[_0x44b0('0x3')])[_0x44b0('0x5')];_0x167066+=_0x4636a7[_0x44b0('0x8')][_0x44b0('0x5')],_0xc59e92+=_0x200001?_0x4636a7['items'][_0x44b0('0x5')]:_0x1e9d8a,_0x4636a7[_0x44b0('0x3')]=_0x200001||!!_0x1e9d8a;}return{'resultsCount':_0xc59e92,'totalItemsCount':_0x167066};}}
const _0x9043=['filter','items','length','first','highlightText','isVisible','labelView'];(function(_0x155c17,_0x9043c6){const _0x23fb77=function(_0x1e3a4d){while(--_0x1e3a4d){_0x155c17['push'](_0x155c17['shift']());}};_0x23fb77(++_0x9043c6);}(_0x9043,0x69));const _0x23fb=function(_0x155c17,_0x9043c6){_0x155c17=_0x155c17-0x0;let _0x23fb77=_0x9043[_0x155c17];return _0x23fb77;};import{ListView as _0x57ecf9}from'ckeditor5/src/ui';export default class C extends _0x57ecf9{['filter'](_0xd6538b){let _0x4b67ad=0x0,_0x2e1973=0x0;for(const _0x2aa6e4 of this[_0x23fb('0x1')]){const _0x726bc6=_0x2aa6e4,_0x43b026=_0xd6538b&&!!_0x726bc6['label']['match'](_0xd6538b);_0x726bc6['labelView'][_0x23fb('0x4')](_0x43b026?_0xd6538b:null);for(const _0x50c74f of _0x726bc6['items']){const _0xc514f9=_0x50c74f['children'][_0x23fb('0x3')],_0x3bfbfc=_0xc514f9[_0x23fb('0x6')];if(_0xd6538b){const _0x396e2e=!!_0xc514f9['label']['match'](_0xd6538b);_0x3bfbfc['highlightText'](_0x396e2e?_0xd6538b:null),_0x50c74f[_0x23fb('0x5')]=_0x43b026||_0x396e2e;}else _0x50c74f[_0x23fb('0x5')]=!0x0,_0x3bfbfc[_0x23fb('0x4')](null);}const _0x58785c=_0x726bc6[_0x23fb('0x1')][_0x23fb('0x0')](_0x2402f3=>_0x2402f3['isVisible'])[_0x23fb('0x2')];_0x4b67ad+=_0x726bc6['items'][_0x23fb('0x2')],_0x2e1973+=_0x43b026?_0x726bc6[_0x23fb('0x1')]['length']:_0x58785c,_0x726bc6[_0x23fb('0x5')]=_0x43b026||!!_0x58785c;}return{'resultsCount':_0x2e1973,'totalItemsCount':_0x4b67ad};}}

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

*/
const _0x1b8c=['bindTemplate','set','style'];(function(_0x344bfa,_0x1b8c19){const _0x54b568=function(_0x59bec){while(--_0x59bec){_0x344bfa['push'](_0x344bfa['shift']());}};_0x54b568(++_0x1b8c19);}(_0x1b8c,0x13f));const _0x54b5=function(_0x344bfa,_0x1b8c19){_0x344bfa=_0x344bfa-0x0;let _0x54b568=_0x1b8c[_0x344bfa];return _0x54b568;};import{HighlightedTextView as _0x3bd9fa}from'ckeditor5/src/ui';export default class v extends _0x3bd9fa{constructor(){super(),this[_0x54b5('0x0')]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x4567bc=this[_0x54b5('0x2')];this['extendTemplate']({'attributes':{'class':['ck-button__label'],'style':_0x4567bc['to'](_0x54b5('0x1')),'id':_0x4567bc['to']('id')}});}}
const _0xd030=['set','bindTemplate'];(function(_0x5eca64,_0xd03027){const _0x573fca=function(_0x55d19f){while(--_0x55d19f){_0x5eca64['push'](_0x5eca64['shift']());}};_0x573fca(++_0xd03027);}(_0xd030,0x1f2));const _0x573f=function(_0x5eca64,_0xd03027){_0x5eca64=_0x5eca64-0x0;let _0x573fca=_0xd030[_0x5eca64];return _0x573fca;};import{HighlightedTextView as _0x37ef25}from'ckeditor5/src/ui';export default class v extends _0x37ef25{constructor(){super(),this[_0x573f('0x0')]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x413754=this[_0x573f('0x1')];this['extendTemplate']({'attributes':{'class':['ck-button__label'],'style':_0x413754['to']('style'),'id':_0x413754['to']('id')}});}}

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

*/
const _0x395d=['for','extendTemplate','ck-editor__label_','set','ck-label'];(function(_0x77dd39,_0x395d1b){const _0x40bac8=function(_0x88c1ae){while(--_0x88c1ae){_0x77dd39['push'](_0x77dd39['shift']());}};_0x40bac8(++_0x395d1b);}(_0x395d,0x83));const _0x40ba=function(_0x77dd39,_0x395d1b){_0x77dd39=_0x77dd39-0x0;let _0x40bac8=_0x395d[_0x77dd39];return _0x40bac8;};import{HighlightedTextView as _0x2c06ad}from'ckeditor5/src/ui';import{uid as _0x130ec3}from'ckeditor5/src/utils';export default class k extends _0x2c06ad{constructor(){super(),this[_0x40ba('0x2')]('for',void 0x0);const _0x41da99=this['bindTemplate'];this['id']=_0x40ba('0x1')+_0x130ec3(),this[_0x40ba('0x0')]({'attributes':{'class':['ck',_0x40ba('0x3')],'id':this['id'],'for':_0x41da99['to'](_0x40ba('0x4'))}});}}
const _0x4524=['set','extendTemplate','ck-label','bindTemplate','for'];(function(_0x38f357,_0x452428){const _0x34b2b7=function(_0x1106fd){while(--_0x1106fd){_0x38f357['push'](_0x38f357['shift']());}};_0x34b2b7(++_0x452428);}(_0x4524,0x153));const _0x34b2=function(_0x38f357,_0x452428){_0x38f357=_0x38f357-0x0;let _0x34b2b7=_0x4524[_0x38f357];return _0x34b2b7;};import{HighlightedTextView as _0x7417be}from'ckeditor5/src/ui';import{uid as _0x4f07a5}from'ckeditor5/src/utils';export default class k extends _0x7417be{constructor(){super(),this[_0x34b2('0x1')](_0x34b2('0x0'),void 0x0);const _0xc0331e=this[_0x34b2('0x4')];this['id']='ck-editor__label_'+_0x4f07a5(),this[_0x34b2('0x2')]({'attributes':{'class':['ck',_0x34b2('0x3')],'id':this['id'],'for':_0xc0331e['to'](_0x34b2('0x0'))}});}}

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

*/
const _0x1bf2=['element','setTemplate','execute','ck-ai-form__copy-button','body','left','smooth','text/plain','isProcessing','loaderView','class','div','Copy','ck-ai-form__copy-button-wrapper','contentFieldView','absolute','isEnabled','style','bindTemplate','.ck-ai-form__loader','position','clipboard','querySelector','remove','innerHTML','isVisible','appendChild','locale','ck-ai-form__loader','_copyHTMLToClipboard','focus','render','listenTo','setContent','_createCopyButton','change:isProcessing','selectNodeContents','scrollTo','write','bind','mousedown','scrollHeight','ClipboardItem','ck-hidden','copyButtonView','_createLoader','ck-ai-form__content-area','set','-9999px','ck-reset_all-excluded','value','icon','appendLoader','copy'];(function(_0x5772ec,_0x1bf237){const _0x5353d3=function(_0x463c50){while(--_0x463c50){_0x5772ec['push'](_0x5772ec['shift']());}};_0x5353d3(++_0x1bf237);}(_0x1bf2,0x1d3));const _0x5353=function(_0x5772ec,_0x1bf237){_0x5772ec=_0x5772ec-0x0;let _0x5353d3=_0x1bf2[_0x5772ec];return _0x5353d3;};import{global as _0x34a61d}from'ckeditor5/src/utils';import{View as _0x3175f4,ButtonView as _0x2de44a,SpinnerView as _0x1bdfab}from'ckeditor5/src/ui';import _0x50410f from'../../../theme/icons/copy.svg';import{getTranslation as _0x33ca83}from'../../utils/common-translations';import{icons as _0x552344}from'ckeditor5/src/core';export default class D extends _0x3175f4{constructor(_0x1f1576,_0x4f15ee=''){super(_0x1f1576),this[_0x5353('0xc')]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x27df86=this[_0x5353('0x25')];this[_0x5353('0x21')]=new ContentFieldView(_0x1f1576,_0x4f15ee),this[_0x5353('0x9')]=this[_0x5353('0x35')](),this[_0x5353('0x14')]({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x27df86['if'](_0x5353('0x2c'),_0x5353('0x8'),_0x2d4140=>!_0x2d4140)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck',_0x5353('0xb'),_0x27df86['if']('isProcessing','ck-ai-form__content-area--processing')]},'children':[this[_0x5353('0x21')],{'tag':_0x5353('0x1e'),'attributes':{'class':['ck',_0x5353('0x20')]},'children':[this['copyButtonView']]}]}]});}[_0x5353('0x32')](){super[_0x5353('0x32')](),this[_0x5353('0xf')]&&this[_0x5353('0x21')][_0x5353('0x34')](this['value']);let _0x309bef=!0x1;this['on']('change:value',(_0x19679b,_0xafe6f0,_0x3b794f)=>{const _0x10bd65=!this[_0x5353('0x21')]['element'][_0x5353('0x29')](_0x5353('0x26'));this[_0x5353('0x21')]['setContent'](_0x3b794f),this[_0x5353('0x1b')]&&_0x10bd65&&!_0x309bef&&this[_0x5353('0x13')][_0x5353('0x2')]({'top':this['element'][_0x5353('0x6')],'behavior':_0x5353('0x19')});}),this['on'](_0x5353('0x0'),(_0xfffaae,_0x4098bf,_0x583f5e)=>{_0x309bef=!0x1,_0x583f5e?(this[_0x5353('0xf')]=null,this[_0x5353('0x21')]['appendLoader']()):this['value']||this['contentFieldView'][_0x5353('0x34')]('');}),this[_0x5353('0x33')](this[_0x5353('0x13')],'wheel',()=>{_0x309bef=!0x0;}),this[_0x5353('0x33')](this['element'],_0x5353('0x5'),()=>{_0x309bef=!0x0;});}['focus'](){this[_0x5353('0x13')][_0x5353('0x31')]();}[_0x5353('0x35')](){const _0x452a29=this[_0x5353('0x2e')],_0x903708=new _0x2de44a(this[_0x5353('0x2e')]),_0x50a46c=_0x5353('0x16');return _0x903708[_0x5353('0xc')]({'label':_0x33ca83(_0x452a29,_0x5353('0x1f')),'icon':_0x50410f,'class':_0x50a46c,'tooltip':!0x0}),_0x903708[_0x5353('0x4')](_0x5353('0x2c'))['to'](this,'value',_0x2c622a=>!!_0x2c622a),_0x903708[_0x5353('0x4')](_0x5353('0x23'))['to'](this,_0x5353('0x1b'),_0x458a9f=>!_0x458a9f),_0x903708['on'](_0x5353('0x15'),()=>{this['_copyHTMLToClipboard'](this['contentFieldView'][_0x5353('0x13')]),_0x903708['icon']=_0x552344['check'],_0x903708[_0x5353('0x1d')]=_0x50a46c+'\x20ck-ai-form__copy-button--copied',this[_0x5353('0x31')](),setTimeout(()=>{_0x903708[_0x5353('0x10')]=_0x50410f,_0x903708[_0x5353('0x1d')]=_0x50a46c;},0x3e8);}),_0x903708;}[_0x5353('0x30')](_0xb3f84d){const {window:_0x10ca7b,document:_0x3f3e6a}=_0x34a61d;if(_0x10ca7b[_0x5353('0x7')]){const {Blob:_0x22adf7,ClipboardItem:_0x49d684}=_0x10ca7b,_0x57459e=[new _0x49d684({'text/html':new _0x22adf7([_0xb3f84d[_0x5353('0x2b')]],{'type':'text/html'}),'text/plain':new _0x22adf7([_0xb3f84d['textContent']||''],{'type':_0x5353('0x1a')})})];navigator[_0x5353('0x28')][_0x5353('0x3')](_0x57459e);}else{const _0x6beb44=_0x3f3e6a['createElement']('div');_0x6beb44[_0x5353('0x24')][_0x5353('0x27')]=_0x5353('0x22'),_0x6beb44[_0x5353('0x24')][_0x5353('0x18')]=_0x5353('0xd'),_0x6beb44[_0x5353('0x2b')]=_0xb3f84d[_0x5353('0x2b')],_0x3f3e6a[_0x5353('0x17')][_0x5353('0x2d')](_0x6beb44);const _0x25303d=_0x3f3e6a['createRange']();_0x25303d[_0x5353('0x1')](_0x6beb44);const _0xd30d7b=_0x10ca7b['getSelection']();_0xd30d7b['removeAllRanges'](),_0xd30d7b['addRange'](_0x25303d),_0x3f3e6a['execCommand'](_0x5353('0x12')),_0x6beb44[_0x5353('0x2a')]();}}}export class ContentFieldView extends _0x3175f4{constructor(_0x452aa0,_0x31ab99=''){super(_0x452aa0),this[_0x5353('0x1c')]=this[_0x5353('0xa')](),this['setTemplate']({'tag':_0x5353('0x1e'),'attributes':{'class':['ck','ck-content',_0x31ab99,_0x5353('0xe'),'ck-ai-form__content-field']}});}[_0x5353('0x34')](_0x87d18e){this[_0x5353('0x13')][_0x5353('0x2b')]=_0x87d18e;}[_0x5353('0x11')](){this[_0x5353('0x13')]['appendChild'](this[_0x5353('0x1c')][_0x5353('0x13')]);}['_createLoader'](){const _0x32379b=new _0x3175f4(),_0x1146fe=this[_0x5353('0x2e')],_0x397bd6=new _0x1bdfab();return _0x397bd6[_0x5353('0x2c')]=!0x0,_0x32379b[_0x5353('0x14')]({'tag':'div','attributes':{'class':['ck',_0x5353('0x2f')]},'children':[_0x397bd6,{'text':_0x33ca83(_0x1146fe,'AI\x20is\x20writing...')}]}),_0x32379b['render'](),_0x32379b;}}
const _0x3ac2=['check','icon','.ck-ai-form__loader','ck-ai-form__copy-button','setContent','listenTo','write','addRange','_createCopyButton','execute','ck-ai-form__content-area-wrapper','left','wheel','removeAllRanges','style','scrollTo','ck-reset_all-excluded','ck-ai-form__content-area','innerHTML','AI\x20is\x20writing...','copy','change:value','appendLoader','value','ck-hidden','-9999px','remove','clipboard','contentFieldView','body','bindTemplate','smooth','text/plain','text/html','_copyHTMLToClipboard','_createLoader','isVisible','ck-ai-form__content-area--processing','Copy','element','set','loaderView','locale','querySelector','createRange','appendChild','selectNodeContents','position','render','div','mousedown','ck-content','bind','ck-ai-form__content-field','getSelection','setTemplate','absolute','isProcessing','focus','change:isProcessing'];(function(_0x27176c,_0x3ac215){const _0x950ba4=function(_0x33889e){while(--_0x33889e){_0x27176c['push'](_0x27176c['shift']());}};_0x950ba4(++_0x3ac215);}(_0x3ac2,0x108));const _0x950b=function(_0x27176c,_0x3ac215){_0x27176c=_0x27176c-0x0;let _0x950ba4=_0x3ac2[_0x27176c];return _0x950ba4;};import{global as _0x3c3843}from'ckeditor5/src/utils';import{View as _0x529bdd,ButtonView as _0x1c34e7,SpinnerView as _0x2af348}from'ckeditor5/src/ui';import _0x476d24 from'../../../theme/icons/copy.svg';import{getTranslation as _0x2a9f54}from'../../utils/common-translations';import{icons as _0x416e1a}from'ckeditor5/src/core';export default class D extends _0x529bdd{constructor(_0x1d7211,_0x2fb3b8=''){super(_0x1d7211),this[_0x950b('0x10')]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x375b4e=this[_0x950b('0x6')];this[_0x950b('0x4')]=new ContentFieldView(_0x1d7211,_0x2fb3b8),this['copyButtonView']=this[_0x950b('0x2c')](),this[_0x950b('0x1f')]({'tag':_0x950b('0x19'),'attributes':{'class':['ck',_0x950b('0x2e'),_0x375b4e['if'](_0x950b('0xc'),_0x950b('0x0'),_0x462d35=>!_0x462d35)],'tabindex':'-1'},'children':[{'tag':_0x950b('0x19'),'attributes':{'class':['ck',_0x950b('0x35'),_0x375b4e['if'](_0x950b('0x21'),_0x950b('0xd'))]},'children':[this[_0x950b('0x4')],{'tag':_0x950b('0x19'),'attributes':{'class':['ck','ck-ai-form__copy-button-wrapper']},'children':[this['copyButtonView']]}]}]});}[_0x950b('0x18')](){super[_0x950b('0x18')](),this[_0x950b('0x3b')]&&this[_0x950b('0x4')][_0x950b('0x28')](this[_0x950b('0x3b')]);let _0x4714c7=!0x1;this['on'](_0x950b('0x39'),(_0x355def,_0x3749ab,_0x2105f7)=>{const _0x43c36f=!this['contentFieldView'][_0x950b('0xf')][_0x950b('0x13')](_0x950b('0x26'));this[_0x950b('0x4')][_0x950b('0x28')](_0x2105f7),this[_0x950b('0x21')]&&_0x43c36f&&!_0x4714c7&&this['element'][_0x950b('0x33')]({'top':this[_0x950b('0xf')]['scrollHeight'],'behavior':_0x950b('0x7')});}),this['on'](_0x950b('0x23'),(_0x206c8a,_0x276ceb,_0x48a0cb)=>{_0x4714c7=!0x1,_0x48a0cb?(this[_0x950b('0x3b')]=null,this['contentFieldView']['appendLoader']()):this['value']||this[_0x950b('0x4')][_0x950b('0x28')]('');}),this['listenTo'](this[_0x950b('0xf')],_0x950b('0x30'),()=>{_0x4714c7=!0x0;}),this[_0x950b('0x29')](this[_0x950b('0xf')],_0x950b('0x1a'),()=>{_0x4714c7=!0x0;});}['focus'](){this[_0x950b('0xf')][_0x950b('0x22')]();}[_0x950b('0x2c')](){const _0x5d0104=this[_0x950b('0x12')],_0x4f6a75=new _0x1c34e7(this['locale']),_0x122289=_0x950b('0x27');return _0x4f6a75['set']({'label':_0x2a9f54(_0x5d0104,_0x950b('0xe')),'icon':_0x476d24,'class':_0x122289,'tooltip':!0x0}),_0x4f6a75['bind'](_0x950b('0xc'))['to'](this,_0x950b('0x3b'),_0x38e051=>!!_0x38e051),_0x4f6a75[_0x950b('0x1c')]('isEnabled')['to'](this,_0x950b('0x21'),_0x1ba661=>!_0x1ba661),_0x4f6a75['on'](_0x950b('0x2d'),()=>{this[_0x950b('0xa')](this['contentFieldView'][_0x950b('0xf')]),_0x4f6a75['icon']=_0x416e1a[_0x950b('0x24')],_0x4f6a75['class']=_0x122289+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x4f6a75[_0x950b('0x25')]=_0x476d24,_0x4f6a75['class']=_0x122289;},0x3e8);}),_0x4f6a75;}[_0x950b('0xa')](_0x2a3d77){const {window:_0x40c2ef,document:_0x32a61f}=_0x3c3843;if(_0x40c2ef['ClipboardItem']){const {Blob:_0x4e171b,ClipboardItem:_0x505c6f}=_0x40c2ef,_0x584826=[new _0x505c6f({'text/html':new _0x4e171b([_0x2a3d77[_0x950b('0x36')]],{'type':_0x950b('0x9')}),'text/plain':new _0x4e171b([_0x2a3d77['textContent']||''],{'type':_0x950b('0x8')})})];navigator[_0x950b('0x3')][_0x950b('0x2a')](_0x584826);}else{const _0x4ac9c4=_0x32a61f['createElement']('div');_0x4ac9c4[_0x950b('0x32')][_0x950b('0x17')]=_0x950b('0x20'),_0x4ac9c4[_0x950b('0x32')][_0x950b('0x2f')]=_0x950b('0x1'),_0x4ac9c4[_0x950b('0x36')]=_0x2a3d77[_0x950b('0x36')],_0x32a61f[_0x950b('0x5')][_0x950b('0x15')](_0x4ac9c4);const _0x47e37a=_0x32a61f[_0x950b('0x14')]();_0x47e37a[_0x950b('0x16')](_0x4ac9c4);const _0x470d69=_0x40c2ef[_0x950b('0x1e')]();_0x470d69[_0x950b('0x31')](),_0x470d69[_0x950b('0x2b')](_0x47e37a),_0x32a61f['execCommand'](_0x950b('0x38')),_0x4ac9c4[_0x950b('0x2')]();}}}export class ContentFieldView extends _0x529bdd{constructor(_0xdbd340,_0x317915=''){super(_0xdbd340),this['loaderView']=this[_0x950b('0xb')](),this[_0x950b('0x1f')]({'tag':_0x950b('0x19'),'attributes':{'class':['ck',_0x950b('0x1b'),_0x317915,_0x950b('0x34'),_0x950b('0x1d')]}});}[_0x950b('0x28')](_0x14771d){this['element']['innerHTML']=_0x14771d;}[_0x950b('0x3a')](){this[_0x950b('0xf')][_0x950b('0x15')](this[_0x950b('0x11')]['element']);}['_createLoader'](){const _0x59f553=new _0x529bdd(),_0x1d513d=this[_0x950b('0x12')],_0x4f4c21=new _0x2af348();return _0x4f4c21[_0x950b('0xc')]=!0x0,_0x59f553[_0x950b('0x1f')]({'tag':_0x950b('0x19'),'attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x4f4c21,{'text':_0x2a9f54(_0x1d513d,_0x950b('0x37'))}]}),_0x59f553[_0x950b('0x18')](),_0x59f553;}}

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

*/
const _0x36c1=['ck-ai-form__error','setTemplate','bindTemplate','text','set'];(function(_0x58fdef,_0x36c1b9){const _0x4cbc45=function(_0x172e28){while(--_0x172e28){_0x58fdef['push'](_0x58fdef['shift']());}};_0x4cbc45(++_0x36c1b9);}(_0x36c1,0x1da));const _0x4cbc=function(_0x58fdef,_0x36c1b9){_0x58fdef=_0x58fdef-0x0;let _0x4cbc45=_0x36c1[_0x58fdef];return _0x4cbc45;};import{View as _0x346c7a,IconView as _0x519cee}from'ckeditor5/src/ui';import _0x58294d from'../../../theme/icons/error.svg';export default class K extends _0x346c7a{constructor(_0x4cf8b9,_0x50ccbd=''){super(_0x4cf8b9);const _0x366497=new _0x519cee(),_0x325d6c=this[_0x4cbc('0x3')];this[_0x4cbc('0x0')](_0x4cbc('0x4'),_0x50ccbd),_0x366497['content']=_0x58294d,this[_0x4cbc('0x2')]({'tag':'div','attributes':{'class':['ck',_0x4cbc('0x1')]},'children':[_0x366497,{'text':_0x325d6c['to']('text')}]});}}
const _0x13f0=['bindTemplate','text','div','setTemplate','ck-ai-form__error'];(function(_0x429e31,_0x13f0ce){const _0x3954c4=function(_0x46226b){while(--_0x46226b){_0x429e31['push'](_0x429e31['shift']());}};_0x3954c4(++_0x13f0ce);}(_0x13f0,0x75));const _0x3954=function(_0x429e31,_0x13f0ce){_0x429e31=_0x429e31-0x0;let _0x3954c4=_0x13f0[_0x429e31];return _0x3954c4;};import{View as _0x3c4c63,IconView as _0x5b0adb}from'ckeditor5/src/ui';import _0x4c7202 from'../../../theme/icons/error.svg';export default class K extends _0x3c4c63{constructor(_0x100cf2,_0x29023c=''){super(_0x100cf2);const _0x2d7dac=new _0x5b0adb(),_0x3d4d65=this[_0x3954('0x3')];this['set']('text',_0x29023c),_0x2d7dac['content']=_0x4c7202,this[_0x3954('0x1')]({'tag':_0x3954('0x0'),'attributes':{'class':['ck',_0x3954('0x2')]},'children':[_0x2d7dac,{'text':_0x3d4d65['to'](_0x3954('0x4'))}]});}}

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

*/
const _0x4df2=['focusLast','render','right','execute','value','focus','isOn','add','element','locale','fieldWrapperChildren','requestAnimationFrame','isVisible','submitButtonView','width','set','_createSubmitButton','style','filteredView','left','showHistoryButtonView','maxRows','keystrokes','minRows','isEnabled','bind','excludeScrollbarsAndBorders','ck-ai-form__toggle-history','queryView','fieldView','_createShowHistoryButton','fire','Submit','focusCycler','window','history','ck-ai-form__submit','History','submit','children'];(function(_0x475d74,_0x4df255){const _0x2f65bb=function(_0x12351b){while(--_0x12351b){_0x475d74['push'](_0x475d74['shift']());}};_0x2f65bb(++_0x4df255);}(_0x4df2,0x190));const _0x2f65=function(_0x475d74,_0x4df255){_0x475d74=_0x475d74-0x0;let _0x2f65bb=_0x4df2[_0x475d74];return _0x2f65bb;};import{Rect as _0x4e26cb,global as _0x40ccaa,isVisible as _0x4c4f0b}from'ckeditor5/src/utils';import{AutocompleteView as _0x14ea36,ButtonView as _0x5e3dcf}from'ckeditor5/src/ui';import{icons as _0x50333e}from'ckeditor5/src/core';import{escape as _0x5a46f7}from'lodash-es';import{getTranslation as _0x363b5e}from'../../utils/common-translations';import _0x593c44 from'../../../theme/icons/submit.svg';export default class Y extends _0x14ea36{constructor(_0x2f8e15,_0x3dd744){super(_0x2f8e15,_0x3dd744),this[_0x2f65('0x1c')][_0x2f65('0x1d')][_0x2f65('0x17')]=0x1,this[_0x2f65('0x1c')][_0x2f65('0x1d')][_0x2f65('0x15')]=0x3,this[_0x2f65('0xd')]=this[_0x2f65('0x10')](),this[_0x2f65('0x14')]=this['_createShowHistoryButton'](),this['focusableChildren'][_0x2f65('0x7')](this[_0x2f65('0x14')],0x1),this['focusableChildren'][_0x2f65('0x7')](this[_0x2f65('0xd')]);}[_0x2f65('0x1')](){super[_0x2f65('0x1')](),this[_0x2f65('0x1c')][_0x2f65('0xa')][_0x2f65('0x7')](this[_0x2f65('0x14')]),this[_0x2f65('0x27')][_0x2f65('0x7')](this[_0x2f65('0xd')]),this[_0x2f65('0x16')][_0x2f65('0xf')]('enter',(_0x296591,_0x30ad2c)=>{_0x296591['target']==this['queryView'][_0x2f65('0x1d')][_0x2f65('0x8')]&&(this[_0x2f65('0x26')](),_0x30ad2c());});}[_0x2f65('0x10')](){const _0x2c5460=new _0x5e3dcf(this[_0x2f65('0x9')]),_0x425f6e=this[_0x2f65('0x9')];return _0x2c5460['set']({'icon':_0x593c44,'label':_0x363b5e(_0x425f6e,_0x2f65('0x20')),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2f65('0x24')}),_0x2c5460['on'](_0x2f65('0x3'),()=>{this[_0x2f65('0x26')]();}),_0x2c5460[_0x2f65('0x19')]('isEnabled')['to'](this[_0x2f65('0x1c')]['fieldView'],'isEmpty',this,_0x2f65('0x18'),(_0x28ea8b,_0x5ba4ca)=>!_0x28ea8b&&_0x5ba4ca),_0x2c5460;}[_0x2f65('0x1e')](){const _0x52760c=new _0x5e3dcf(this[_0x2f65('0x9')]),_0x9c1250=this['resultsView'],_0x5112a0=this[_0x2f65('0x9')];_0x52760c[_0x2f65('0xf')]({'label':_0x363b5e(_0x5112a0,_0x2f65('0x25')),'withText':!0x1,'icon':_0x50333e[_0x2f65('0x23')],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2f65('0x1b')}),_0x52760c['bind'](_0x2f65('0x6'))['to'](_0x9c1250,_0x2f65('0xc')),_0x52760c[_0x2f65('0x19')](_0x2f65('0x18'))['to'](this,'isEnabled'),_0x52760c['on'](_0x2f65('0x3'),()=>{_0x9c1250[_0x2f65('0xc')]=!_0x9c1250[_0x2f65('0xc')],_0x9c1250['isVisible']?this[_0x2f65('0x12')][_0x2f65('0x5')]():this[_0x2f65('0x5')]();});const _0x18af01=()=>{_0x40ccaa[_0x2f65('0x22')][_0x2f65('0xb')](()=>{if(_0x4c4f0b(this[_0x2f65('0x8')])){const _0x96da2d=new _0x4e26cb(this[_0x2f65('0x1c')][_0x2f65('0x1d')][_0x2f65('0x8')]),_0x5c338f=_0x96da2d[_0x2f65('0xe')],_0x55e52b='rtl'===_0x5112a0['uiLanguageDirection']?_0x2f65('0x13'):_0x2f65('0x2');_0x96da2d[_0x2f65('0x1a')](),_0x52760c['element'][_0x2f65('0x11')][_0x55e52b]=_0x5c338f-_0x96da2d[_0x2f65('0xe')]+0x1+'px';}});};return this[_0x2f65('0x1c')][_0x2f65('0x1d')]['on']('update',_0x18af01),this['on'](_0x2f65('0x1'),_0x18af01),_0x52760c;}['submit'](){const _0x2fc4a6=this[_0x2f65('0x1c')][_0x2f65('0x1d')][_0x2f65('0x8')][_0x2f65('0x4')];this[_0x2f65('0x1f')]('submit',_0x5a46f7(_0x2fc4a6));}[_0x2f65('0x5')](_0x168579){-0x1===_0x168579?this[_0x2f65('0x21')][_0x2f65('0x0')]():this[_0x2f65('0x21')]['focusFirst']();}}
const _0x35cb=['fieldView','execute','submit','maxRows','isEmpty','width','left','History','isOn','focusLast','locale','_createSubmitButton','window','uiLanguageDirection','bind','submitButtonView','right','render','_createShowHistoryButton','set','enter','isEnabled','showHistoryButtonView','children','rtl','element','focus','history','isVisible','filteredView','minRows','keystrokes','focusCycler','queryView','add'];(function(_0x212d32,_0x35cb26){const _0x1d9c44=function(_0x4b8e95){while(--_0x4b8e95){_0x212d32['push'](_0x212d32['shift']());}};_0x1d9c44(++_0x35cb26);}(_0x35cb,0xef));const _0x1d9c=function(_0x212d32,_0x35cb26){_0x212d32=_0x212d32-0x0;let _0x1d9c44=_0x35cb[_0x212d32];return _0x1d9c44;};import{Rect as _0x301bc8,global as _0x113d6a,isVisible as _0x3207aa}from'ckeditor5/src/utils';import{AutocompleteView as _0x42af95,ButtonView as _0x39ed55}from'ckeditor5/src/ui';import{icons as _0x111cc6}from'ckeditor5/src/core';import{escape as _0xeb90c2}from'lodash-es';import{getTranslation as _0x4ae053}from'../../utils/common-translations';import _0x5c7b42 from'../../../theme/icons/submit.svg';export default class Y extends _0x42af95{constructor(_0x4401ae,_0x30e06e){super(_0x4401ae,_0x30e06e),this[_0x1d9c('0x4')][_0x1d9c('0x6')][_0x1d9c('0x1')]=0x1,this[_0x1d9c('0x4')]['fieldView'][_0x1d9c('0x9')]=0x3,this[_0x1d9c('0x15')]=this[_0x1d9c('0x11')](),this[_0x1d9c('0x1c')]=this[_0x1d9c('0x18')](),this['focusableChildren'][_0x1d9c('0x5')](this[_0x1d9c('0x1c')],0x1),this['focusableChildren']['add'](this['submitButtonView']);}[_0x1d9c('0x17')](){super[_0x1d9c('0x17')](),this[_0x1d9c('0x4')]['fieldWrapperChildren'][_0x1d9c('0x5')](this[_0x1d9c('0x1c')]),this[_0x1d9c('0x1d')]['add'](this[_0x1d9c('0x15')]),this[_0x1d9c('0x2')][_0x1d9c('0x19')](_0x1d9c('0x1a'),(_0x3246b3,_0x2fe846)=>{_0x3246b3['target']==this['queryView'][_0x1d9c('0x6')][_0x1d9c('0x1f')]&&(this['submit'](),_0x2fe846());});}[_0x1d9c('0x11')](){const _0x116bde=new _0x39ed55(this['locale']),_0x2bfc22=this[_0x1d9c('0x10')];return _0x116bde['set']({'icon':_0x5c7b42,'label':_0x4ae053(_0x2bfc22,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x116bde['on'](_0x1d9c('0x7'),()=>{this[_0x1d9c('0x8')]();}),_0x116bde[_0x1d9c('0x14')](_0x1d9c('0x1b'))['to'](this[_0x1d9c('0x4')][_0x1d9c('0x6')],_0x1d9c('0xa'),this,_0x1d9c('0x1b'),(_0x344fb7,_0x3486a9)=>!_0x344fb7&&_0x3486a9),_0x116bde;}[_0x1d9c('0x18')](){const _0x47c60c=new _0x39ed55(this['locale']),_0x362b48=this['resultsView'],_0x5e8337=this['locale'];_0x47c60c[_0x1d9c('0x19')]({'label':_0x4ae053(_0x5e8337,_0x1d9c('0xd')),'withText':!0x1,'icon':_0x111cc6[_0x1d9c('0x21')],'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x47c60c['bind'](_0x1d9c('0xe'))['to'](_0x362b48,_0x1d9c('0x22')),_0x47c60c[_0x1d9c('0x14')](_0x1d9c('0x1b'))['to'](this,_0x1d9c('0x1b')),_0x47c60c['on'](_0x1d9c('0x7'),()=>{_0x362b48['isVisible']=!_0x362b48[_0x1d9c('0x22')],_0x362b48['isVisible']?this[_0x1d9c('0x0')][_0x1d9c('0x20')]():this[_0x1d9c('0x20')]();});const _0x25e0ad=()=>{_0x113d6a[_0x1d9c('0x12')]['requestAnimationFrame'](()=>{if(_0x3207aa(this[_0x1d9c('0x1f')])){const _0x5e750f=new _0x301bc8(this['queryView']['fieldView'][_0x1d9c('0x1f')]),_0x38abc1=_0x5e750f[_0x1d9c('0xb')],_0xe6a306=_0x1d9c('0x1e')===_0x5e8337[_0x1d9c('0x13')]?_0x1d9c('0xc'):_0x1d9c('0x16');_0x5e750f['excludeScrollbarsAndBorders'](),_0x47c60c[_0x1d9c('0x1f')]['style'][_0xe6a306]=_0x38abc1-_0x5e750f[_0x1d9c('0xb')]+0x1+'px';}});};return this[_0x1d9c('0x4')][_0x1d9c('0x6')]['on']('update',_0x25e0ad),this['on'](_0x1d9c('0x17'),_0x25e0ad),_0x47c60c;}['submit'](){const _0x2d6379=this[_0x1d9c('0x4')][_0x1d9c('0x6')]['element']['value'];this['fire'](_0x1d9c('0x8'),_0xeb90c2(_0x2d6379));}[_0x1d9c('0x20')](_0x20e766){-0x1===_0x20e766?this[_0x1d9c('0x3')][_0x1d9c('0xf')]():this[_0x1d9c('0x3')]['focusFirst']();}}

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

*/
const _0x22d1=['tryAgainButton','stopButton','extendTemplate','replace','insert','_createButton','REPLACE','mainAction','Try\x20again','set','insertButton','ck-hidden','Insert\x20below','addMany','replaceButton','isVisible','INSERT','toUpperCase','ck-button-action','label'];(function(_0x1990f9,_0x22d167){const _0x32f153=function(_0x5ea938){while(--_0x5ea938){_0x1990f9['push'](_0x1990f9['shift']());}};_0x32f153(++_0x22d167);}(_0x22d1,0xcf));const _0x32f1=function(_0x1990f9,_0x22d167){_0x1990f9=_0x1990f9-0x0;let _0x32f153=_0x22d1[_0x1990f9];return _0x32f153;};import{ToolbarView as _0x2444e3,ButtonView as _0x263f47}from'ckeditor5/src/ui';import{getTranslation as _0x4c3cbd}from'../../utils/common-translations';export var AIFormToolbarViewMainAction;!function(_0x403f30){_0x403f30[_0x32f1('0x13')]=_0x32f1('0x10'),_0x403f30[_0x32f1('0x9')]=_0x32f1('0x11');}(AIFormToolbarViewMainAction||(AIFormToolbarViewMainAction={}));export default class ii extends _0x2444e3{constructor(_0x49b6a7){super(_0x49b6a7),this[_0x32f1('0x2')]('isVisible',!0x1),this[_0x32f1('0x2')](_0x32f1('0x0'),AIFormToolbarViewMainAction[_0x32f1('0x13')]),this[_0x32f1('0x7')]=this[_0x32f1('0x12')]('',_0x32f1('0xb')),this['replaceButton']['bind'](_0x32f1('0xc'))['to'](this,_0x32f1('0x0'),_0x11e2a9=>_0x4c3cbd(_0x49b6a7,'AI_'+_0x11e2a9[_0x32f1('0xa')]()+'_CONTENT')),this[_0x32f1('0x3')]=this[_0x32f1('0x12')](_0x4c3cbd(_0x49b6a7,_0x32f1('0x5'))),this['tryAgainButton']=this[_0x32f1('0x12')](_0x4c3cbd(_0x49b6a7,_0x32f1('0x1'))),this[_0x32f1('0xe')]=this['_createButton'](_0x4c3cbd(_0x49b6a7,'Stop'));const _0x9495ff=this['bindTemplate'];this[_0x32f1('0xf')]({'attributes':{'class':['ck-ai-form__toolbar',_0x9495ff['if'](_0x32f1('0x8'),_0x32f1('0x4'),_0xf0221d=>!_0xf0221d)]}}),this['items'][_0x32f1('0x6')]([this[_0x32f1('0x7')],this[_0x32f1('0x3')],this[_0x32f1('0xd')],this[_0x32f1('0xe')]]);}[_0x32f1('0x12')](_0x50e474,_0x354470){const _0x208f16=new _0x263f47(this['locale']);return _0x208f16[_0x32f1('0x2')]({'label':_0x50e474,'class':_0x354470||'','isVisible':!0x0,'withText':!0x0}),_0x208f16;}}
const _0x29d6=['insertButton','bindTemplate','_createButton','toUpperCase','REPLACE','Stop','bind','replace','ck-ai-form__toolbar','items','addMany','isVisible','label','stopButton','_CONTENT','ck-button-action','extendTemplate','locale','Try\x20again','AI_','set','mainAction','replaceButton','tryAgainButton'];(function(_0xcc1b86,_0x29d671){const _0x88adce=function(_0x1e30c7){while(--_0x1e30c7){_0xcc1b86['push'](_0xcc1b86['shift']());}};_0x88adce(++_0x29d671);}(_0x29d6,0x99));const _0x88ad=function(_0xcc1b86,_0x29d671){_0xcc1b86=_0xcc1b86-0x0;let _0x88adce=_0x29d6[_0xcc1b86];return _0x88adce;};import{ToolbarView as _0x673d79,ButtonView as _0x51dfcb}from'ckeditor5/src/ui';import{getTranslation as _0x1d4ddb}from'../../utils/common-translations';export var AIFormToolbarViewMainAction;!function(_0x12511f){_0x12511f['REPLACE']=_0x88ad('0x16'),_0x12511f['INSERT']='insert';}(AIFormToolbarViewMainAction||(AIFormToolbarViewMainAction={}));export default class ii extends _0x673d79{constructor(_0x4dfc71){super(_0x4dfc71),this[_0x88ad('0xb')](_0x88ad('0x2'),!0x1),this[_0x88ad('0xb')](_0x88ad('0xc'),AIFormToolbarViewMainAction[_0x88ad('0x13')]),this['replaceButton']=this[_0x88ad('0x11')]('',_0x88ad('0x6')),this[_0x88ad('0xd')][_0x88ad('0x15')](_0x88ad('0x3'))['to'](this,_0x88ad('0xc'),_0xe3b17d=>_0x1d4ddb(_0x4dfc71,_0x88ad('0xa')+_0xe3b17d[_0x88ad('0x12')]()+_0x88ad('0x5'))),this['insertButton']=this['_createButton'](_0x1d4ddb(_0x4dfc71,'Insert\x20below')),this[_0x88ad('0xe')]=this[_0x88ad('0x11')](_0x1d4ddb(_0x4dfc71,_0x88ad('0x9'))),this['stopButton']=this[_0x88ad('0x11')](_0x1d4ddb(_0x4dfc71,_0x88ad('0x14')));const _0x21bc9b=this[_0x88ad('0x10')];this[_0x88ad('0x7')]({'attributes':{'class':[_0x88ad('0x17'),_0x21bc9b['if'](_0x88ad('0x2'),'ck-hidden',_0x5164b5=>!_0x5164b5)]}}),this[_0x88ad('0x0')][_0x88ad('0x1')]([this[_0x88ad('0xd')],this[_0x88ad('0xf')],this[_0x88ad('0xe')],this[_0x88ad('0x4')]]);}[_0x88ad('0x11')](_0x29b8d2,_0x269c82){const _0x100d83=new _0x51dfcb(this[_0x88ad('0x8')]);return _0x100d83[_0x88ad('0xb')]({'label':_0x29b8d2,'class':_0x269c82||'','isVisible':!0x0,'withText':!0x0}),_0x100d83;}}

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

*/
const _0x4162=['tab','isEnabled','_createPromptView','finishProcessing','shift\x20+\x20tab','_focusables','_promptHistory','fire','set','_focusCycler','insertButton','execute','render','REPLACE','keystrokes','isVisible','isProcessing','focusFirst','_createHistoryView','submitPrompt','_createToolbar','stopButton','stop','focusPrevious','insertContentBelow','element','promptView','submit','backwardCycle','Ask\x20AI\x20to\x20improve\x20generated\x20text','contentArea','handleError','high','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','ck-ai-form','createCollection','focusTracker','AI\x20Assistant','fieldView','bind','isError','bindTemplate','ck-ai-form-content','bindTo','label','focus','tryAgainEvent','add','focusCycler','focusNext','forwardCycle','value','queryView','reset','replaceButton','prompt','AI_ERROR_FAILED','mainAction','tryAgainButton','trim','historyGroupView','setTemplate','locale','clear','listenTo','ck-hidden','toolbar','div'];(function(_0xa28325,_0x416217){const _0x11b963=function(_0x5e1bb6){while(--_0x5e1bb6){_0xa28325['push'](_0xa28325['shift']());}};_0x11b963(++_0x416217);}(_0x4162,0x8e));const _0x11b9=function(_0xa28325,_0x416217){_0xa28325=_0xa28325-0x0;let _0x11b963=_0x4162[_0xa28325];return _0x11b963;};import{FocusTracker as _0x2f09b9,KeystrokeHandler as _0x3ce801}from'ckeditor5/src/utils';import{View as _0x1e5d87,FocusCycler as _0x59e4ab,createLabeledTextarea as _0x473634,FormHeaderView as _0xe8d1aa}from'ckeditor5/src/ui';import _0xad4595,{AIFormToolbarViewMainAction as _0xa3998b}from'./aiformtoolbarview';import _0x50a1e9 from'./aiformcontentarea';import _0x485985 from'./aiformerrorview';import _0x4edcb3 from'./aiformpromptview';import _0xc86c12 from'./aihistorylistview';import _0x1adc0a from'./aihistorylistitemview';import _0x34f255 from'./prompthistory';import{getTranslation as _0x1bdea4}from'../../utils/common-translations';import _0x32f7d6 from'../../../theme/icons/robot-pencil.svg';export default class y extends _0x1e5d87{constructor(_0x3c68e6,_0x5a7c0b,_0x2c7733=''){super(_0x3c68e6),this[_0x11b9('0x2')](_0x11b9('0x3f'),!0x0),this[_0x11b9('0x2')](_0x11b9('0xa'),!0x1),this['set']('prompt',''),this[_0x11b9('0x2')](_0x11b9('0x2d'),''),this[_0x11b9('0x2')](_0x11b9('0x22'),!0x1),this[_0x11b9('0x2')](_0x11b9('0x33'),_0xa3998b[_0x11b9('0x7')]),this[_0x11b9('0x0')]=new _0x34f255(),this['errorView']=new _0x485985(_0x3c68e6),this['header']=new _0xe8d1aa(_0x3c68e6,{'label':_0x1bdea4(_0x3c68e6,_0x11b9('0x1f')),'icon':_0x32f7d6}),this['contentArea']=new _0x50a1e9(_0x3c68e6,_0x2c7733),this[_0x11b9('0x18')][_0x11b9('0x21')](_0x11b9('0xa'))['to'](this),this[_0x11b9('0x18')][_0x11b9('0x21')]('value')['to'](this),this[_0x11b9('0x3c')]=this[_0x11b9('0xe')](),this['toolbar'][_0x11b9('0x21')](_0x11b9('0x33'))['to'](this),this[_0x11b9('0x14')]=this[_0x11b9('0x40')](),this['focusTracker']=new _0x2f09b9(),this['keystrokes']=new _0x3ce801(),this[_0x11b9('0x43')]=this[_0x11b9('0x1d')]([this[_0x11b9('0x18')],this[_0x11b9('0x18')]['copyButtonView'],this[_0x11b9('0x3c')],this[_0x11b9('0x14')]]),this[_0x11b9('0x3')]=new _0x59e4ab({'focusables':this[_0x11b9('0x43')],'focusTracker':this[_0x11b9('0x1e')],'keystrokeHandler':this[_0x11b9('0x8')],'actions':{'focusPrevious':_0x11b9('0x42'),'focusNext':_0x11b9('0x3e')}}),this[_0x11b9('0x14')][_0x11b9('0x2a')]['on'](_0x11b9('0x2c'),_0x2f7032=>{this['_focusCycler'][_0x11b9('0x2b')](),_0x2f7032[_0x11b9('0x10')]();}),this[_0x11b9('0x14')]['focusCycler']['on'](_0x11b9('0x16'),_0x287833=>{this[_0x11b9('0x3')][_0x11b9('0x11')](),_0x287833[_0x11b9('0x10')]();}),this['promptView'][_0x11b9('0x2e')][_0x11b9('0x20')]['bind'](_0x11b9('0x2d'))['to'](this,_0x11b9('0x31'));const _0x4ba73c=this[_0x11b9('0x23')];this[_0x11b9('0x37')]({'tag':_0x11b9('0x3d'),'attributes':{'class':['ck',_0x11b9('0x1c'),_0x5a7c0b],'tabindex':'-1'},'children':[this['header'],{'tag':'div','attributes':{'class':['ck',_0x11b9('0x24')]},'children':[{'tag':_0x11b9('0x3d'),'attributes':{'class':[_0x4ba73c['if'](_0x11b9('0x22'),_0x11b9('0x3b'),_0x59564a=>!_0x59564a)]},'children':[this['errorView']]},this[_0x11b9('0x18')],this[_0x11b9('0x3c')],this[_0x11b9('0x14')]]}]});}['render'](){super[_0x11b9('0x6')](),this[_0x11b9('0x1e')][_0x11b9('0x29')](this[_0x11b9('0x18')][_0x11b9('0x13')]),this['focusTracker']['add'](this[_0x11b9('0x18')]['copyButtonView']['element']),this[_0x11b9('0x1e')][_0x11b9('0x29')](this[_0x11b9('0x3c')][_0x11b9('0x13')]),this[_0x11b9('0x1e')]['add'](this[_0x11b9('0x14')]['element']),this[_0x11b9('0x8')][_0x11b9('0x3a')](this[_0x11b9('0x13')]);}[_0x11b9('0x27')](){this[_0x11b9('0x3')][_0x11b9('0xb')]();}[_0x11b9('0x2f')](){this['prompt']='',this[_0x11b9('0x2d')]='',this['promptView'][_0x11b9('0x2f')](),this[_0x11b9('0x18')][_0x11b9('0x9')]=!0x1,this[_0x11b9('0x3c')][_0x11b9('0x9')]=!0x1;}[_0x11b9('0x40')](){const _0x29200a=this['locale'],_0x5e5058=new _0x4edcb3(_0x29200a,{'queryView':{'label':_0x1bdea4(_0x29200a,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':_0x473634,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1bdea4(_0x29200a,'Empty\x20history'),'secondary':_0x1bdea4(_0x29200a,_0x11b9('0x1b'))}}},'filteredView':this[_0x11b9('0xc')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5e5058['bind'](_0x11b9('0x3f'))['to'](this,_0x11b9('0x3f'),this,_0x11b9('0xa'),(_0x421bb2,_0xbdb499)=>_0x421bb2&&!_0xbdb499),this[_0x11b9('0x3a')](_0x5e5058,_0x11b9('0x15'),(_0x343dfb,_0x2ed804)=>{this['prompt']=_0x2ed804,this[_0x11b9('0x1')](_0x11b9('0xd'),this[_0x11b9('0x31')]),_0x2ed804[_0x11b9('0x35')]()&&this[_0x11b9('0x0')][_0x11b9('0x29')]({'prompt':_0x2ed804[_0x11b9('0x35')]()},0x0);},{'priority':_0x11b9('0x1a')}),_0x5e5058;}['_createHistoryView'](){const _0x4d35af=new _0xc86c12(this[_0x11b9('0x38')]);return _0x4d35af[_0x11b9('0x36')]['items'][_0x11b9('0x25')](this['_promptHistory'])['as'](_0x1adc0a),_0x4d35af['on']('clearHistory',()=>{this['_promptHistory'][_0x11b9('0x39')](),this[_0x11b9('0x14')]['search'](''),this[_0x11b9('0x14')]['focus']();}),_0x4d35af;}[_0x11b9('0xe')](){const _0x4ab2a4=new _0xad4595(this[_0x11b9('0x38')]);return _0x4ab2a4[_0x11b9('0x30')]['bind'](_0x11b9('0x3f'))['to'](this,_0x11b9('0x3f'),this,_0x11b9('0xa'),this,_0x11b9('0x2d'),(_0x57fc61,_0x38651b,_0x16b162)=>_0x57fc61&&!_0x38651b&&!!_0x16b162),_0x4ab2a4[_0x11b9('0x30')]['on'](_0x11b9('0x5'),()=>{this[_0x11b9('0x1')]('replaceContent',this['value']);}),_0x4ab2a4[_0x11b9('0x4')][_0x11b9('0x21')]('isEnabled')['to'](this,_0x11b9('0x3f'),this,_0x11b9('0xa'),this,_0x11b9('0x2d'),(_0x3a166b,_0x144584,_0x1bf954)=>_0x3a166b&&!_0x144584&&!!_0x1bf954),_0x4ab2a4[_0x11b9('0x4')]['on']('execute',()=>{this['fire'](_0x11b9('0x12'),this[_0x11b9('0x2d')]);}),_0x4ab2a4[_0x11b9('0x34')][_0x11b9('0x21')](_0x11b9('0x3f'))['to'](this,_0x11b9('0x3f'),this,_0x11b9('0xa'),(_0x26b79d,_0x2f012e)=>_0x26b79d&&!_0x2f012e),_0x4ab2a4[_0x11b9('0x34')]['on'](_0x11b9('0x5'),()=>{this[_0x11b9('0x1')](_0x11b9('0x28'));}),_0x4ab2a4[_0x11b9('0xf')][_0x11b9('0x21')](_0x11b9('0x3f'))['to'](this,_0x11b9('0xa')),_0x4ab2a4[_0x11b9('0xf')]['on']('execute',()=>{this[_0x11b9('0x1')]('stopProcessing');}),_0x4ab2a4;}['startProcessing'](){this[_0x11b9('0x2d')]='',this[_0x11b9('0x22')]=!0x1,this[_0x11b9('0xa')]=!0x0,this[_0x11b9('0x18')][_0x11b9('0x9')]=!0x0,this['toolbar'][_0x11b9('0x9')]=!0x0,this[_0x11b9('0x18')]['focus']();}[_0x11b9('0x41')](){const _0xaae9f1=this[_0x11b9('0x38')];this['isProcessing']=!0x1,this[_0x11b9('0x31')]='',this[_0x11b9('0x14')][_0x11b9('0x2f')](),this[_0x11b9('0x2d')]&&(this[_0x11b9('0x14')][_0x11b9('0x2e')][_0x11b9('0x26')]=_0x1bdea4(_0xaae9f1,_0x11b9('0x17')));}[_0x11b9('0x19')](_0x426873){const _0x3a8b92=this[_0x11b9('0x38')];this[_0x11b9('0x41')](),this[_0x11b9('0x22')]=!0x0,this['errorView']['text']=_0x426873||_0x1bdea4(_0x3a8b92,_0x11b9('0x32')),this[_0x11b9('0x2d')]||(this[_0x11b9('0x18')][_0x11b9('0x9')]=!0x1);}}
const _0x2816=['toolbar','stopButton','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','header','contentArea','set','queryView','handleError','ck-ai-form','backwardCycle','finishProcessing','value','isProcessing','tryAgainEvent','AI_ERROR_FAILED','listenTo','element','replaceButton','promptView','keystrokes','high','trim','focus','_createHistoryView','label','reset','_createToolbar','execute','focusNext','tryAgainButton','errorView','_focusables','_focusCycler','fire','createCollection','insertContentBelow','text','insertButton','bind','_createPromptView','AI\x20Assistant','add','submitPrompt','bindTo','isEnabled','focusFirst','_promptHistory','search','bindTemplate','isVisible','REPLACE','stop','render','copyButtonView','shift\x20+\x20tab','locale','historyGroupView','tab','prompt','startProcessing','clearHistory','ck-hidden','focusTracker','Ask\x20AI\x20to\x20edit\x20or\x20generate','div','focusPrevious','focusCycler','mainAction'];(function(_0x5c807e,_0x2816bb){const _0x604d5c=function(_0x1100be){while(--_0x1100be){_0x5c807e['push'](_0x5c807e['shift']());}};_0x604d5c(++_0x2816bb);}(_0x2816,0x1e8));const _0x604d=function(_0x5c807e,_0x2816bb){_0x5c807e=_0x5c807e-0x0;let _0x604d5c=_0x2816[_0x5c807e];return _0x604d5c;};import{FocusTracker as _0x52c025,KeystrokeHandler as _0x417f2c}from'ckeditor5/src/utils';import{View as _0x4039ad,FocusCycler as _0x11e4da,createLabeledTextarea as _0x22fa47,FormHeaderView as _0xca1ede}from'ckeditor5/src/ui';import _0x1f3b3c,{AIFormToolbarViewMainAction as _0x37b917}from'./aiformtoolbarview';import _0x4e3b18 from'./aiformcontentarea';import _0x334f8d from'./aiformerrorview';import _0x2ff00a from'./aiformpromptview';import _0x283c7e from'./aihistorylistview';import _0x3e6e0a from'./aihistorylistitemview';import _0x1a196d from'./prompthistory';import{getTranslation as _0x474032}from'../../utils/common-translations';import _0x3cb635 from'../../../theme/icons/robot-pencil.svg';export default class y extends _0x4039ad{constructor(_0x351ecd,_0x21105c,_0x26ca08=''){super(_0x351ecd),this[_0x604d('0x3d')](_0x604d('0x20'),!0x0),this[_0x604d('0x3d')]('isProcessing',!0x1),this['set'](_0x604d('0x2e'),''),this[_0x604d('0x3d')](_0x604d('0x43'),''),this[_0x604d('0x3d')]('isError',!0x1),this[_0x604d('0x3d')](_0x604d('0x37'),_0x37b917[_0x604d('0x26')]),this[_0x604d('0x22')]=new _0x1a196d(),this[_0x604d('0x12')]=new _0x334f8d(_0x351ecd),this[_0x604d('0x3b')]=new _0xca1ede(_0x351ecd,{'label':_0x474032(_0x351ecd,_0x604d('0x1c')),'icon':_0x3cb635}),this[_0x604d('0x3c')]=new _0x4e3b18(_0x351ecd,_0x26ca08),this[_0x604d('0x3c')][_0x604d('0x1a')](_0x604d('0x0'))['to'](this),this[_0x604d('0x3c')][_0x604d('0x1a')](_0x604d('0x43'))['to'](this),this[_0x604d('0x38')]=this[_0x604d('0xe')](),this['toolbar']['bind'](_0x604d('0x37'))['to'](this),this[_0x604d('0x6')]=this[_0x604d('0x1b')](),this[_0x604d('0x32')]=new _0x52c025(),this['keystrokes']=new _0x417f2c(),this[_0x604d('0x13')]=this[_0x604d('0x16')]([this[_0x604d('0x3c')],this[_0x604d('0x3c')][_0x604d('0x29')],this[_0x604d('0x38')],this[_0x604d('0x6')]]),this['_focusCycler']=new _0x11e4da({'focusables':this[_0x604d('0x13')],'focusTracker':this[_0x604d('0x32')],'keystrokeHandler':this[_0x604d('0x7')],'actions':{'focusPrevious':_0x604d('0x2a'),'focusNext':_0x604d('0x2d')}}),this[_0x604d('0x6')][_0x604d('0x36')]['on']('forwardCycle',_0x16f237=>{this[_0x604d('0x14')][_0x604d('0x10')](),_0x16f237[_0x604d('0x27')]();}),this[_0x604d('0x6')][_0x604d('0x36')]['on'](_0x604d('0x41'),_0xe9bf2a=>{this['_focusCycler'][_0x604d('0x35')](),_0xe9bf2a[_0x604d('0x27')]();}),this['promptView'][_0x604d('0x3e')]['fieldView'][_0x604d('0x1a')]('value')['to'](this,'prompt');const _0x2ebae4=this[_0x604d('0x24')];this['setTemplate']({'tag':_0x604d('0x34'),'attributes':{'class':['ck',_0x604d('0x40'),_0x21105c],'tabindex':'-1'},'children':[this['header'],{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':_0x604d('0x34'),'attributes':{'class':[_0x2ebae4['if']('isError',_0x604d('0x31'),_0x472a75=>!_0x472a75)]},'children':[this['errorView']]},this['contentArea'],this[_0x604d('0x38')],this[_0x604d('0x6')]]}]});}[_0x604d('0x28')](){super[_0x604d('0x28')](),this[_0x604d('0x32')][_0x604d('0x1d')](this[_0x604d('0x3c')][_0x604d('0x4')]),this[_0x604d('0x32')][_0x604d('0x1d')](this[_0x604d('0x3c')][_0x604d('0x29')][_0x604d('0x4')]),this[_0x604d('0x32')][_0x604d('0x1d')](this[_0x604d('0x38')][_0x604d('0x4')]),this[_0x604d('0x32')][_0x604d('0x1d')](this['promptView'][_0x604d('0x4')]),this[_0x604d('0x7')]['listenTo'](this[_0x604d('0x4')]);}['focus'](){this[_0x604d('0x14')][_0x604d('0x21')]();}[_0x604d('0xd')](){this[_0x604d('0x2e')]='',this[_0x604d('0x43')]='',this['promptView'][_0x604d('0xd')](),this[_0x604d('0x3c')]['isVisible']=!0x1,this[_0x604d('0x38')][_0x604d('0x25')]=!0x1;}[_0x604d('0x1b')](){const _0x19a79d=this[_0x604d('0x2b')],_0x4e3017=new _0x2ff00a(_0x19a79d,{'queryView':{'label':_0x474032(_0x19a79d,_0x604d('0x33')),'creator':_0x22fa47,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x474032(_0x19a79d,'Empty\x20history'),'secondary':_0x474032(_0x19a79d,_0x604d('0x3a'))}}},'filteredView':this[_0x604d('0xb')](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4e3017['bind'](_0x604d('0x20'))['to'](this,_0x604d('0x20'),this,_0x604d('0x0'),(_0x88eaa7,_0xfbda9f)=>_0x88eaa7&&!_0xfbda9f),this[_0x604d('0x3')](_0x4e3017,'submit',(_0xc48f05,_0x5f3bc2)=>{this['prompt']=_0x5f3bc2,this['fire'](_0x604d('0x1e'),this['prompt']),_0x5f3bc2[_0x604d('0x9')]()&&this[_0x604d('0x22')][_0x604d('0x1d')]({'prompt':_0x5f3bc2['trim']()},0x0);},{'priority':_0x604d('0x8')}),_0x4e3017;}['_createHistoryView'](){const _0x54f722=new _0x283c7e(this[_0x604d('0x2b')]);return _0x54f722[_0x604d('0x2c')]['items'][_0x604d('0x1f')](this[_0x604d('0x22')])['as'](_0x3e6e0a),_0x54f722['on'](_0x604d('0x30'),()=>{this['_promptHistory']['clear'](),this[_0x604d('0x6')][_0x604d('0x23')](''),this['promptView'][_0x604d('0xa')]();}),_0x54f722;}['_createToolbar'](){const _0x1d2857=new _0x1f3b3c(this[_0x604d('0x2b')]);return _0x1d2857[_0x604d('0x5')]['bind'](_0x604d('0x20'))['to'](this,_0x604d('0x20'),this,_0x604d('0x0'),this,'value',(_0x4ff09f,_0x2a41d0,_0x30b508)=>_0x4ff09f&&!_0x2a41d0&&!!_0x30b508),_0x1d2857[_0x604d('0x5')]['on'](_0x604d('0xf'),()=>{this['fire']('replaceContent',this[_0x604d('0x43')]);}),_0x1d2857[_0x604d('0x19')][_0x604d('0x1a')]('isEnabled')['to'](this,_0x604d('0x20'),this,'isProcessing',this,_0x604d('0x43'),(_0x604f2d,_0x22471d,_0x27b4b8)=>_0x604f2d&&!_0x22471d&&!!_0x27b4b8),_0x1d2857[_0x604d('0x19')]['on'](_0x604d('0xf'),()=>{this[_0x604d('0x15')](_0x604d('0x17'),this[_0x604d('0x43')]);}),_0x1d2857[_0x604d('0x11')]['bind'](_0x604d('0x20'))['to'](this,_0x604d('0x20'),this,_0x604d('0x0'),(_0x889e53,_0x558838)=>_0x889e53&&!_0x558838),_0x1d2857['tryAgainButton']['on'](_0x604d('0xf'),()=>{this[_0x604d('0x15')](_0x604d('0x1'));}),_0x1d2857[_0x604d('0x39')][_0x604d('0x1a')]('isEnabled')['to'](this,'isProcessing'),_0x1d2857[_0x604d('0x39')]['on'](_0x604d('0xf'),()=>{this['fire']('stopProcessing');}),_0x1d2857;}[_0x604d('0x2f')](){this[_0x604d('0x43')]='',this['isError']=!0x1,this[_0x604d('0x0')]=!0x0,this['contentArea'][_0x604d('0x25')]=!0x0,this['toolbar'][_0x604d('0x25')]=!0x0,this[_0x604d('0x3c')]['focus']();}[_0x604d('0x42')](){const _0x5d54da=this[_0x604d('0x2b')];this[_0x604d('0x0')]=!0x1,this[_0x604d('0x2e')]='',this[_0x604d('0x6')][_0x604d('0xd')](),this[_0x604d('0x43')]&&(this['promptView'][_0x604d('0x3e')][_0x604d('0xc')]=_0x474032(_0x5d54da,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}[_0x604d('0x3f')](_0x2a22c1){const _0x29b1dc=this[_0x604d('0x2b')];this[_0x604d('0x42')](),this['isError']=!0x0,this['errorView'][_0x604d('0x18')]=_0x2a22c1||_0x474032(_0x29b1dc,_0x604d('0x2')),this['value']||(this['contentArea'][_0x604d('0x25')]=!0x1);}}

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

*/
const _0x1515=['add','locale','execute','set','prompt'];(function(_0x2cd563,_0x151575){const _0x2bf37d=function(_0x438c5c){while(--_0x438c5c){_0x2cd563['push'](_0x2cd563['shift']());}};_0x2bf37d(++_0x151575);}(_0x1515,0x120));const _0x2bf3=function(_0x2cd563,_0x151575){_0x2cd563=_0x2cd563-0x0;let _0x2bf37d=_0x1515[_0x2cd563];return _0x2bf37d;};import{ListItemView as _0x57d1c2,ButtonView as _0x15199d}from'ckeditor5/src/ui';import _0x3a490a from'../dropdown/buttonlabelwithhighlightview';import{unescape as _0x4a76eb}from'lodash-es';export default class ot extends _0x57d1c2{constructor(_0x2b38d3){super();const _0x2e66dd=new _0x3a490a(),_0xadfab9=new _0x15199d(this[_0x2bf3('0x3')],_0x2e66dd);this['children'][_0x2bf3('0x2')](_0xadfab9),_0xadfab9[_0x2bf3('0x0')]({'label':_0x2b38d3[_0x2bf3('0x1')],'withText':!0x0}),_0xadfab9['on'](_0x2bf3('0x4'),()=>{this['fire'](_0x2bf3('0x4'),{'value':_0x4a76eb(_0x2b38d3[_0x2bf3('0x1')])});});}}
const _0x407c=['prompt','add','locale','execute','fire','set'];(function(_0x21e6f5,_0x407c7e){const _0x4da0c7=function(_0x100dba){while(--_0x100dba){_0x21e6f5['push'](_0x21e6f5['shift']());}};_0x4da0c7(++_0x407c7e);}(_0x407c,0xf2));const _0x4da0=function(_0x21e6f5,_0x407c7e){_0x21e6f5=_0x21e6f5-0x0;let _0x4da0c7=_0x407c[_0x21e6f5];return _0x4da0c7;};import{ListItemView as _0x1093e4,ButtonView as _0x16b950}from'ckeditor5/src/ui';import _0x31e8f1 from'../dropdown/buttonlabelwithhighlightview';import{unescape as _0x106907}from'lodash-es';export default class ot extends _0x1093e4{constructor(_0x4622e6){super();const _0x1c4841=new _0x31e8f1(),_0x4b92fe=new _0x16b950(this[_0x4da0('0x0')],_0x1c4841);this['children'][_0x4da0('0x5')](_0x4b92fe),_0x4b92fe[_0x4da0('0x3')]({'label':_0x4622e6[_0x4da0('0x4')],'withText':!0x0}),_0x4b92fe['on']('execute',()=>{this[_0x4da0('0x2')](_0x4da0('0x1'),{'value':_0x106907(_0x4622e6[_0x4da0('0x4')])});});}}

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

*/
const _0x5528=['clearHistoryButton','locale','label','children','execute','filter','delegate','clearHistory','items','historyGroupView','Clear','Prompt\x20history','_createClearHistoryButton','fire','set','add'];(function(_0xdbe333,_0x55284c){const _0x2e98cd=function(_0x36b8ff){while(--_0x36b8ff){_0xdbe333['push'](_0xdbe333['shift']());}};_0x2e98cd(++_0x55284c);}(_0x5528,0x9d));const _0x2e98=function(_0xdbe333,_0x55284c){_0xdbe333=_0xdbe333-0x0;let _0x2e98cd=_0x5528[_0xdbe333];return _0x2e98cd;};import{ListView as _0x158989,ListItemGroupView as _0x171265,ButtonView as _0xec287f}from'ckeditor5/src/ui';import{getTranslation as _0x54a823}from'../../utils/common-translations';export default class ht extends _0x158989{constructor(_0x43ef50){super(_0x43ef50),this[_0x2e98('0x3')]=this[_0x2e98('0xf')](),this[_0x2e98('0xc')]=new _0x171265(),this['historyGroupView'][_0x2e98('0x6')][_0x2e98('0x2')](this[_0x2e98('0x3')],0x1),this['historyGroupView'][_0x2e98('0x5')]=_0x54a823(_0x43ef50,_0x2e98('0xe')),this[_0x2e98('0xc')][_0x2e98('0xb')][_0x2e98('0x9')](_0x2e98('0x7'))['to'](this),this[_0x2e98('0xb')][_0x2e98('0x2')](this[_0x2e98('0xc')]);}[_0x2e98('0x8')](){let _0x7019ab=0x0;for(const _0x3270eb of this[_0x2e98('0xb')])_0x7019ab+=_0x3270eb[_0x2e98('0xb')]['length'];return{'resultsCount':_0x7019ab,'totalItemsCount':_0x7019ab};}[_0x2e98('0xf')](){const _0x1c6754=this[_0x2e98('0x4')],_0x541f5f=new _0xec287f(this['locale']);return _0x541f5f[_0x2e98('0x1')]({'label':'('+_0x54a823(_0x1c6754,_0x2e98('0xd'))+')','withText':!0x0}),_0x541f5f['on']('execute',()=>this[_0x2e98('0x0')](_0x2e98('0xa'))),_0x541f5f;}}
const _0x9779=['Clear','_createClearHistoryButton','label','clearHistoryButton','clearHistory','add','fire','items','length','filter','locale','set','delegate','Prompt\x20history','historyGroupView'];(function(_0x3049e9,_0x9779d1){const _0x332ddf=function(_0x4e0d27){while(--_0x4e0d27){_0x3049e9['push'](_0x3049e9['shift']());}};_0x332ddf(++_0x9779d1);}(_0x9779,0x12f));const _0x332d=function(_0x3049e9,_0x9779d1){_0x3049e9=_0x3049e9-0x0;let _0x332ddf=_0x9779[_0x3049e9];return _0x332ddf;};import{ListView as _0x38d9e7,ListItemGroupView as _0x4c81f1,ButtonView as _0x5a66a1}from'ckeditor5/src/ui';import{getTranslation as _0x3bb98f}from'../../utils/common-translations';export default class ht extends _0x38d9e7{constructor(_0x3eb2e1){super(_0x3eb2e1),this[_0x332d('0x0')]=this[_0x332d('0xd')](),this[_0x332d('0xb')]=new _0x4c81f1(),this[_0x332d('0xb')]['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView'][_0x332d('0xe')]=_0x3bb98f(_0x3eb2e1,_0x332d('0xa')),this[_0x332d('0xb')]['items'][_0x332d('0x9')]('execute')['to'](this),this[_0x332d('0x4')][_0x332d('0x2')](this[_0x332d('0xb')]);}[_0x332d('0x6')](){let _0x1873b=0x0;for(const _0x457756 of this['items'])_0x1873b+=_0x457756[_0x332d('0x4')][_0x332d('0x5')];return{'resultsCount':_0x1873b,'totalItemsCount':_0x1873b};}[_0x332d('0xd')](){const _0x263e26=this[_0x332d('0x7')],_0x42b183=new _0x5a66a1(this['locale']);return _0x42b183[_0x332d('0x8')]({'label':'('+_0x3bb98f(_0x263e26,_0x332d('0xc'))+')','withText':!0x0}),_0x42b183['on']('execute',()=>this[_0x332d('0x3')](_0x332d('0x1'))),_0x42b183;}}

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

*/
const _0x1268=['_saveToSessionStorage','last','_loadFromSessionStorage','setItem','map','trim','length','remove','CKEditor/AIFormView/PromptHistory','toLowerCase','prompt','getItem'];(function(_0xd0d903,_0x126853){const _0x557bf3=function(_0x25e2aa){while(--_0x25e2aa){_0xd0d903['push'](_0xd0d903['shift']());}};_0x557bf3(++_0x126853);}(_0x1268,0x9a));const _0x557b=function(_0xd0d903,_0x126853){_0xd0d903=_0xd0d903-0x0;let _0x557bf3=_0x1268[_0xd0d903];return _0x557bf3;};import{Collection as _0x332ac2}from'ckeditor5/src/utils';const ts=_0x557b('0xa');export default class nt extends _0x332ac2{constructor(){super(),this[_0x557b('0x4')](),this['on']('add',(_0x4970c7,_0x2ebc2b)=>{const _0x3d8cdf=os(_0x2ebc2b[_0x557b('0x0')]);for(const _0x403134 of this)if(_0x403134!=_0x2ebc2b&&os(_0x403134[_0x557b('0x0')])===_0x3d8cdf){this['remove'](_0x403134);break;}this[_0x557b('0x8')]>0x14&&this['remove'](this[_0x557b('0x3')]),this[_0x557b('0x2')]();}),this['on'](_0x557b('0x9'),()=>{this[_0x557b('0x2')]();});}[_0x557b('0x4')](){const _0x276554=sessionStorage[_0x557b('0x1')](ts)||'[]';this['addMany'](JSON['parse'](_0x276554));}[_0x557b('0x2')](){sessionStorage[_0x557b('0x5')](ts,JSON['stringify'](this[_0x557b('0x6')](_0x4bfe44=>_0x4bfe44)));}}function os(_0x51022e){return _0x51022e[_0x557b('0xb')]()[_0x557b('0x7')]();}
const _0xbd2f=['stringify','CKEditor/AIFormView/PromptHistory','last','_loadFromSessionStorage','remove','parse','map','trim','_saveToSessionStorage','setItem','prompt','toLowerCase'];(function(_0x544eed,_0xbd2fcb){const _0xe410c1=function(_0xb8c65e){while(--_0xb8c65e){_0x544eed['push'](_0x544eed['shift']());}};_0xe410c1(++_0xbd2fcb);}(_0xbd2f,0x1c6));const _0xe410=function(_0x544eed,_0xbd2fcb){_0x544eed=_0x544eed-0x0;let _0xe410c1=_0xbd2f[_0x544eed];return _0xe410c1;};import{Collection as _0x39c7a1}from'ckeditor5/src/utils';const ts=_0xe410('0x3');export default class nt extends _0x39c7a1{constructor(){super(),this[_0xe410('0x5')](),this['on']('add',(_0x52b2ae,_0x1f8b1b)=>{const _0x1eb111=os(_0x1f8b1b[_0xe410('0x0')]);for(const _0x1ae0a0 of this)if(_0x1ae0a0!=_0x1f8b1b&&os(_0x1ae0a0['prompt'])===_0x1eb111){this['remove'](_0x1ae0a0);break;}this['length']>0x14&&this[_0xe410('0x6')](this[_0xe410('0x4')]),this[_0xe410('0xa')]();}),this['on'](_0xe410('0x6'),()=>{this[_0xe410('0xa')]();});}[_0xe410('0x5')](){const _0x303fde=sessionStorage['getItem'](ts)||'[]';this['addMany'](JSON[_0xe410('0x7')](_0x303fde));}['_saveToSessionStorage'](){sessionStorage[_0xe410('0xb')](ts,JSON[_0xe410('0x2')](this[_0xe410('0x8')](_0x3566da=>_0x3566da)));}}function os(_0x5906ac){return _0x5906ac[_0xe410('0x1')]()[_0xe410('0x9')]();}

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

*/
const _0x3d89=['get','plugins','getItems','getRanges','editor','document','execute','name','element','showUI','includes'];(function(_0x377b61,_0x3d8925){const _0x441c71=function(_0x415556){while(--_0x415556){_0x377b61['push'](_0x377b61['shift']());}};_0x441c71(++_0x3d8925);}(_0x3d89,0x14d));const _0x441c=function(_0x377b61,_0x3d8925){_0x377b61=_0x377b61-0x0;let _0x441c71=_0x3d89[_0x377b61];return _0x441c71;};import{Command as _0x39f260}from'ckeditor5/src/core';import _0x308863 from'../aiassistantui';export default class I extends _0x39f260{['refresh'](){const _0x5a7c46=this[_0x441c('0x1')]['model'][_0x441c('0x2')]['selection'],_0x3f474d=this[_0x441c('0x1')]['config'][_0x441c('0x8')]('aiAssistant.disabledElements');for(const _0x43cb63 of _0x5a7c46[_0x441c('0x0')]())for(const _0x2350ec of _0x43cb63[_0x441c('0xa')]())if(_0x2350ec['is'](_0x441c('0x5'))&&_0x3f474d[_0x441c('0x7')](_0x2350ec[_0x441c('0x4')]))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}[_0x441c('0x3')](_0x5406bd='',_0x15ebd0=''){this[_0x441c('0x1')][_0x441c('0x9')]['get'](_0x308863)[_0x441c('0x6')](_0x5406bd,_0x15ebd0);}}
const _0x3dbd=['plugins','name','execute','includes','element','editor','config','isEnabled','aiAssistant.disabledElements','get','selection','showUI','getRanges'];(function(_0x16e3ff,_0x3dbd5c){const _0x10164e=function(_0xf9b614){while(--_0xf9b614){_0x16e3ff['push'](_0x16e3ff['shift']());}};_0x10164e(++_0x3dbd5c);}(_0x3dbd,0xc4));const _0x1016=function(_0x16e3ff,_0x3dbd5c){_0x16e3ff=_0x16e3ff-0x0;let _0x10164e=_0x3dbd[_0x16e3ff];return _0x10164e;};import{Command as _0x48d858}from'ckeditor5/src/core';import _0x3ae8f7 from'../aiassistantui';export default class I extends _0x48d858{['refresh'](){const _0x5bec7a=this[_0x1016('0x4')]['model']['document'][_0x1016('0x9')],_0x444dcc=this['editor'][_0x1016('0x5')]['get'](_0x1016('0x7'));for(const _0x877e8 of _0x5bec7a[_0x1016('0xb')]())for(const _0xb0b1f2 of _0x877e8['getItems']())if(_0xb0b1f2['is'](_0x1016('0x3'))&&_0x444dcc[_0x1016('0x2')](_0xb0b1f2[_0x1016('0x0')]))return void(this[_0x1016('0x6')]=!0x1);this['isEnabled']=!0x0;}[_0x1016('0x1')](_0xe511ff='',_0x29762=''){this['editor'][_0x1016('0xc')][_0x1016('0x8')](_0x3ae8f7)[_0x1016('0xa')](_0xe511ff,_0x29762);}}

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

*/
export function getTranslation(_0x3b63d3,_0x274d14,_0x21897a){const t=_0x3b63d3['t'];switch(_0x274d14){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',_0x21897a);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 _0x274d14;}}
export function getTranslation(_0x113f40,_0x4e4c56,_0x4c3a30){const t=_0x113f40['t'];switch(_0x4e4c56){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',_0x4c3a30);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 _0x4e4c56;}}

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