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

@ckeditor/ckeditor5-ai

Package Overview
Dependencies
Maintainers
1
Versions
653
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-ai - npm Package Compare versions

Comparing version 0.0.0-nightly-20231018.0 to 0.0.0-nightly-20231019.0

src/ui/dropdown/labelwithhighlightview.d.ts

6

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

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

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

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

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

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

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

*/
const _0x17d0=['schema','from','ck-fake-ai-selection_collapsed','length','toModel','addMarker','for','data','canEditAt','isContent','document','selection','span','isAtEnd','createRange','getLastPosition','setSelection','editor','init','removeMarker','getFirstRange','editingDowncast','getLastMatchingPosition','getSelectedBlocks','ck-fake-ai-selection','end','insertContent','model','markers','start','markerToHighlight','change','toView','showFakeVisualSelection','updateMarker','markerToElement','conversion','createPositionAfter'];(function(_0x5965d3,_0x17d01e){const _0x411d71=function(_0xa99e86){while(--_0xa99e86){_0x5965d3['push'](_0x5965d3['shift']());}};_0x411d71(++_0x17d01e);}(_0x17d0,0x1db));const _0x411d=function(_0x5965d3,_0x17d01e){_0x5965d3=_0x5965d3-0x0;let _0x411d71=_0x17d0[_0x5965d3];return _0x411d71;};import{Plugin as _0x253ba5}from'ckeditor5/src/core';const s='ai-ui';export default class i extends _0x253ba5{static get['pluginName'](){return'AIAssistantEditing';}[_0x411d('0x25')](){const {editor:_0x540415}=this;_0x540415[_0x411d('0x11')][_0x411d('0x19')](_0x411d('0x2'))[_0x411d('0xb')]({'model':s,'view':{'classes':[_0x411d('0x5')]}}),_0x540415['conversion'][_0x411d('0x19')](_0x411d('0x2'))[_0x411d('0x10')]({'model':s,'view':{'name':_0x411d('0x1f'),'classes':[_0x411d('0x5'),_0x411d('0x15')]}});}[_0x411d('0xe')](){const _0x37c4fb=this['editor'][_0x411d('0x8')];_0x37c4fb[_0x411d('0xc')](_0x277b97=>{const _0x4bfa55=_0x37c4fb['document']['selection'][_0x411d('0x1')]();if(_0x37c4fb[_0x411d('0x9')]['has'](s))_0x277b97[_0x411d('0xf')](s,{'range':_0x4bfa55});else{if(_0x4bfa55['start'][_0x411d('0x20')]){const _0x54508e=_0x4bfa55[_0x411d('0xa')][_0x411d('0x3')](({item:_0x281d11})=>!_0x37c4fb[_0x411d('0x13')][_0x411d('0x1c')](_0x281d11),{'boundaries':_0x4bfa55});_0x277b97[_0x411d('0x18')](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x277b97[_0x411d('0x21')](_0x54508e,_0x4bfa55[_0x411d('0x6')])});}else _0x277b97[_0x411d('0x18')](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4bfa55});}});}['hideFakeVisualSelection'](){this['editor'][_0x411d('0x8')][_0x411d('0xc')](_0xdb34ce=>{_0xdb34ce[_0x411d('0x0')](s);});}[_0x411d('0x7')](_0x4ffbfc,_0xcaf190){const _0x509e9e=_0xcaf190||this['editor']['model'][_0x411d('0x1d')][_0x411d('0x1e')];if(!this[_0x411d('0x24')][_0x411d('0x8')][_0x411d('0x1b')](_0x509e9e))return;const _0x36a3c4=this[_0x411d('0x24')][_0x411d('0x1a')]['processor'][_0x411d('0xd')](_0x4ffbfc),_0x32e65d=this[_0x411d('0x24')][_0x411d('0x1a')][_0x411d('0x17')](_0x36a3c4);this[_0x411d('0x24')]['model'][_0x411d('0xc')](_0x3e3e72=>{const _0x286ede=this[_0x411d('0x24')][_0x411d('0x8')][_0x411d('0x7')](_0x32e65d,_0x509e9e);_0x286ede&&_0x3e3e72[_0x411d('0x23')](_0x286ede);});}['insertContentBelow'](_0x57548d){const {model:_0x54bcb8}=this[_0x411d('0x24')],_0x143fda=Array[_0x411d('0x14')](_0x54bcb8['document'][_0x411d('0x1e')][_0x411d('0x4')]()),_0x43dc8e=_0x143fda[_0x411d('0x16')]?_0x54bcb8[_0x411d('0x12')](_0x143fda['pop']()):_0x54bcb8[_0x411d('0x1d')]['selection'][_0x411d('0x22')]();this[_0x411d('0x7')](_0x57548d,_0x43dc8e);}}
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);}}

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

*/
const _0x3e2a=['editing','pluginName','processor','toView','error','signal','startsWith','replace','_processStream','AIRequestError','aborted','text','split','getReader','aiAssistant.requestParameters','processPrompt','user','text/html','_parseAndNormalizeContent','get','aiAssistant.requestParameters.temperature','aiAssistant','config','_requestParameters','_apiUrl','view','aiAssistant.requestParameters.max_tokens','top_p','filter','_domParser','catch','Instruction:\x0a','Bearer\x20','parseFromString','delta','sendPrompt','rename','<span>','_normalizeResponseHeadings','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','stringify','AbortError','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','locale','name','string','join','body','aiAssistant.apiUrl','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.','application/json','reject','Authorization','aiAssistant.requestParameters.top_p','https://api.openai.com/v1/chat/completions','max_tokens','POST','editor','_isBufferIncomplete','resolve','</span>','_prepareMessages','AI_ERROR_CONTEXT_LENGTH','define','aiAssistant.requestParameters.model','length','_abortController','decode','gpt-3.5-turbo','map','aiconnector-send-prompt-failed','push','abort','adapter','system','includes','data','_xmlSerializer','_authKey','model'];(function(_0xb29998,_0x3e2a13){const _0x18e5f4=function(_0x51cb76){while(--_0x51cb76){_0xb29998['push'](_0xb29998['shift']());}};_0x18e5f4(++_0x3e2a13);}(_0x3e2a,0x92));const _0x18e5=function(_0xb29998,_0x3e2a13){_0xb29998=_0xb29998-0x0;let _0x18e5f4=_0x3e2a[_0xb29998];return _0x18e5f4;};import{Matcher as _0x230560,UpcastWriter as _0x24dad4}from'ckeditor5/src/engine';import{Plugin as _0x42834d}from'ckeditor5/src/core';import{CKEditorError as _0x1f6465}from'ckeditor5/src/utils';import{getTranslation as _0x5bd207}from'./utils/common-translations';export default class o extends _0x42834d{static get[_0x18e5('0x11')](){return'AIConnector';}constructor(_0x38997c){super(_0x38997c),_0x38997c[_0x18e5('0x26')][_0x18e5('0x50')](_0x18e5('0x41'),_0x18e5('0x47')),_0x38997c['config'][_0x18e5('0x50')](_0x18e5('0x0'),_0x18e5('0x4')),_0x38997c['config'][_0x18e5('0x50')](_0x18e5('0x2a'),0x7d0),_0x38997c[_0x18e5('0x26')][_0x18e5('0x50')](_0x18e5('0x24'),0x1),_0x38997c[_0x18e5('0x26')][_0x18e5('0x50')](_0x18e5('0x46'),0x1);const _0x31f9e3=_0x38997c[_0x18e5('0x26')][_0x18e5('0x23')]('aiAssistant.apiUrl'),_0x571ca3=_0x38997c[_0x18e5('0x26')][_0x18e5('0x23')](_0x18e5('0x25'))['authKey'],_0x2aae4c=_0x38997c[_0x18e5('0x26')][_0x18e5('0x23')](_0x18e5('0x1e'));this['_abortController']=new AbortController(),this[_0x18e5('0x9')]=new OpenAIAdapter(_0x38997c,_0x31f9e3,_0x2aae4c,_0x571ca3);}async[_0x18e5('0x1f')](_0x4b60ac,_0x13314d,_0x3c8730){const {systemMessage:_0x3c90c7,userMessage:_0x3d85fa}=this[_0x18e5('0x4e')](_0x4b60ac,_0x13314d);return this[_0x18e5('0x9')][_0x18e5('0x33')](_0x3c90c7,_0x3d85fa,this['_abortController'][_0x18e5('0x15')],_0x3c8730)[_0x18e5('0x2e')](_0x33cdc6=>{if(_0x33cdc6 instanceof AIRequestError)return Promise[_0x18e5('0x44')](_0x33cdc6);if(_0x18e5('0x39')==_0x33cdc6[_0x18e5('0x3d')])return Promise['resolve']();throw console[_0x18e5('0x14')](_0x33cdc6),new _0x1f6465(_0x18e5('0x6'),null);});}['abort'](){this['_abortController'][_0x18e5('0x15')][_0x18e5('0x1a')]||(this[_0x18e5('0x2')][_0x18e5('0x8')](),this[_0x18e5('0x2')]=new AbortController());}[_0x18e5('0x4e')](_0x36d22f,_0x2b1ada){let _0x39af63,_0x717c76;return _0x2b1ada?(_0x39af63=_0x18e5('0x3a'),_0x717c76=_0x18e5('0x2f')+_0x36d22f+_0x18e5('0x37')+(_0x2b1ada[_0x18e5('0x16')]('<')?_0x2b1ada:_0x18e5('0x35')+_0x2b1ada+_0x18e5('0x4d'))):(_0x39af63=_0x18e5('0x42'),_0x717c76=_0x36d22f),{'systemMessage':_0x39af63,'userMessage':_0x717c76};}}export class OpenAIAdapter{constructor(_0x402c42,_0x13d7f5,_0x22ba3b,_0x1fd388){this['editor']=_0x402c42,this['_apiUrl']=_0x13d7f5,this[_0x18e5('0xe')]=_0x1fd388,this[_0x18e5('0x27')]=_0x22ba3b,this[_0x18e5('0x2d')]=new DOMParser(),this[_0x18e5('0xd')]=new XMLSerializer();}async[_0x18e5('0x33')](_0x42acd4,_0x3bcc32,_0x2508a3,_0x2fb7d9){const _0xadf9b0=this['editor'][_0x18e5('0x3c')],_0x2445b8={'Content-Type':_0x18e5('0x43')};if(_0x18e5('0x3e')==typeof this[_0x18e5('0xe')])_0x2445b8[_0x18e5('0x45')]=_0x18e5('0x30')+this['_authKey'];else{if(this['_authKey'])try{const _0x30e07a=await this['_authKey']();_0x2445b8[_0x18e5('0x45')]=_0x18e5('0x30')+_0x30e07a;}catch(_0x25c65c){return Promise[_0x18e5('0x44')](new AIRequestError(_0x5bd207(_0xadf9b0,'AI_ERROR_AUTH_REQUEST')));}}const _0x44dc18={'model':this['_requestParameters'][_0x18e5('0xf')],'messages':[{'role':_0x18e5('0xa'),'content':_0x42acd4},{'role':_0x18e5('0x20'),'content':_0x3bcc32}],'stream':!0x0,'max_tokens':this[_0x18e5('0x27')][_0x18e5('0x48')],'temperature':this[_0x18e5('0x27')]['temperature'],'top_p':this[_0x18e5('0x27')][_0x18e5('0x2b')]};this['_requestParameters'][_0x18e5('0x20')]&&(_0x44dc18[_0x18e5('0x20')]=this[_0x18e5('0x27')][_0x18e5('0x20')]);const _0x8288e5={'method':_0x18e5('0x49'),'headers':_0x2445b8,'body':JSON[_0x18e5('0x38')](_0x44dc18),'signal':_0x2508a3},_0xf2be44=await fetch(this[_0x18e5('0x28')],_0x8288e5);if(_0xf2be44['ok']){const _0x1129b2=_0xf2be44[_0x18e5('0x40')];return await this[_0x18e5('0x18')](_0x1129b2,_0x2fb7d9),Promise[_0x18e5('0x4c')]();}{const _0x1b616e=await _0xf2be44[_0x18e5('0x1b')]();return _0x1b616e[_0x18e5('0xb')]('context_length_exceeded')?Promise[_0x18e5('0x44')](new AIRequestError(_0x5bd207(_0xadf9b0,_0x18e5('0x4f')))):_0x1b616e['includes']('Moderation')?Promise[_0x18e5('0x44')](new AIRequestError(_0x5bd207(_0xadf9b0,'AI_ERROR_MODERATION'))):Promise[_0x18e5('0x44')](new Error(_0x1b616e));}}async[_0x18e5('0x18')](_0x1e3327,_0x344f4d){const _0x4e6629=_0x1e3327[_0x18e5('0x1d')](),_0x2e1356=new TextDecoder();let _0x5cf351='',_0x4c1fb2='',_0x1b4af3='',_0x1e1ae2=!0x1;for(;!_0x1e1ae2;){const {done:_0x100b37,value:_0x115d28}=await _0x4e6629['read'](),_0x3dcc30=_0x5cf351+_0x2e1356[_0x18e5('0x3')](_0x115d28);let _0x530a20='';_0x1e1ae2=_0x100b37;try{_0x530a20=this[_0x18e5('0x3b')](_0x3dcc30),_0x5cf351='';}catch(_0x3499bb){_0x5cf351+=_0x3dcc30;continue;}_0x4c1fb2+=_0x530a20,!_0x100b37&&this[_0x18e5('0x4b')](_0x4c1fb2)||_0x4c1fb2&&(_0x1b4af3+=_0x4c1fb2,_0x344f4d(this[_0x18e5('0x22')](_0x1b4af3)),_0x4c1fb2='');}return Promise['resolve']();}['_isBufferIncomplete'](_0x259d3c){const _0x41f5d0=_0x259d3c[_0x18e5('0x1c')]('<')[_0x18e5('0x1')]!==_0x259d3c[_0x18e5('0x1c')]('>')[_0x18e5('0x1')],_0xf2addf=_0x259d3c['length']<0x1e;return _0x41f5d0&&_0xf2addf;}[_0x18e5('0x22')](_0x10f223){const _0x1937ac=this[_0x18e5('0x2d')][_0x18e5('0x31')](_0x10f223,_0x18e5('0x21')),_0x783317=this[_0x18e5('0x4a')][_0x18e5('0xc')][_0x18e5('0x12')][_0x18e5('0x13')](this[_0x18e5('0xd')]['serializeToString'](_0x1937ac[_0x18e5('0x40')]));return this[_0x18e5('0x36')](_0x783317),this[_0x18e5('0x4a')][_0x18e5('0xc')][_0x18e5('0x38')](this[_0x18e5('0x4a')]['data']['toModel'](_0x783317));}[_0x18e5('0x36')](_0xeaa508){const _0x59684b=new _0x24dad4(this[_0x18e5('0x4a')][_0x18e5('0x10')][_0x18e5('0x29')]['document']),_0x28ca63=new _0x230560({'name':/^h[1-5]$/}),_0x3bf079=[];let _0x4df615=!0x1;for(const _0x5ecfc6 of _0xeaa508)_0x5ecfc6['is']('element')&&_0x28ca63['match'](_0x5ecfc6)&&(_0x3bf079[_0x18e5('0x7')](_0x5ecfc6),'h1'==_0x5ecfc6[_0x18e5('0x3d')]&&(_0x4df615=!0x0));if(_0x4df615)for(const _0x402407 of _0x3bf079)_0x59684b[_0x18e5('0x34')]('h'+(parseInt(_0x402407['name'][0x1])+0x1),_0x402407);}[_0x18e5('0x3b')](_0x2fb98a){return _0x2fb98a['split'](/\n(?![^{]*\})/g)[_0x18e5('0x5')](_0x4085e3=>_0x4085e3[_0x18e5('0x17')]('data:\x20',''))[_0x18e5('0x2c')](_0x485f62=>_0x485f62&&_0x485f62['length']>0x0&&'[DONE]'!==_0x485f62)[_0x18e5('0x5')](_0x53bcf7=>{const {choices:_0xff46f4}=JSON['parse'](_0x53bcf7);if(_0xff46f4[0x0]&&_0xff46f4[0x0]['delta']&&_0xff46f4[0x0][_0x18e5('0x32')]['content'])return _0xff46f4[0x0][_0x18e5('0x32')]['content'];})[_0x18e5('0x2c')](_0x1c4d6d=>_0x1c4d6d)[_0x18e5('0x3f')]('');}}export class AIRequestError extends Error{constructor(_0x33ad06){super(_0x33ad06),this[_0x18e5('0x3d')]=_0x18e5('0x19');}}
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';}}

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

*/
const _0x3227=['listenTo','handleError','previousContext','stopProcessing','destroy','render','bind','stopListening','_updateValue','value','previousPrompt','previousLabel','isProcessing','processPrompt','reset','prompt','isRendered','message','_handlePrompt','initialContext','once','view','connector','catch','currentContext','tryAgainEvent'];(function(_0x255cb,_0x3227ce){const _0x174ee5=function(_0x518764){while(--_0x518764){_0x255cb['push'](_0x255cb['shift']());}};_0x174ee5(++_0x3227ce);}(_0x3227,0x64));const _0x174e=function(_0x255cb,_0x3227ce){_0x255cb=_0x255cb-0x0;let _0x174ee5=_0x3227[_0x255cb];return _0x174ee5;};import{ObservableMixin as _0x1ed53f}from'ckeditor5/src/utils';import{AIRequestError as _0x4ad8b0}from'../aiconnector';export default class y extends _0x1ed53f(){constructor(_0x35974e,_0x472d24){super(),this[_0x174e('0x0')]=_0x35974e,this[_0x174e('0x19')]=_0x472d24,this['set']({'initialContext':'','currentContext':'','previousContext':void 0x0,'previousPrompt':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this[_0x174e('0x19')][_0x174e('0xa')](_0x174e('0xd'))['to'](this,_0x174e('0x2')),this['listenTo'](this['view'],'submitPrompt',(_0xc3144b,_0x883976)=>{const _0x15b382=this[_0x174e('0x2')]||this[_0x174e('0x17')];this[_0x174e('0x16')](_0x883976,_0x15b382);}),this[_0x174e('0x4')](this[_0x174e('0x19')],_0x174e('0x3'),()=>{this['view'][_0x174e('0x13')]=this[_0x174e('0xf')],this[_0x174e('0x16')](this[_0x174e('0xe')],this['previousContext'],this['previousLabel']);}),this[_0x174e('0x4')](this[_0x174e('0x19')],_0x174e('0x7'),()=>{this[_0x174e('0x7')]();});}[_0x174e('0x8')](){this[_0x174e('0xb')]();}async['updateView']({prompt:_0x4a8cc2,htmlContent:_0x5daaaf,label:_0xaea18d,mainAction:_0x227eb7}){this['view']['prompt']=_0xaea18d,this['view']['mainAction']=_0x227eb7,this[_0x174e('0x17')]=_0x5daaaf,_0x4a8cc2&&(this[_0x174e('0x19')][_0x174e('0x14')]?this['_handlePrompt'](_0x4a8cc2,_0x5daaaf,_0xaea18d):this[_0x174e('0x19')][_0x174e('0x18')](_0x174e('0x9'),()=>{this['_handlePrompt'](_0x4a8cc2,_0x5daaaf,_0xaea18d);}));}[_0x174e('0x7')](){this[_0x174e('0x10')]&&(this[_0x174e('0x10')]=!0x1,this[_0x174e('0x19')]['finishProcessing'](),this[_0x174e('0x0')]['abort']());}['reset'](){this[_0x174e('0x17')]='',this[_0x174e('0x2')]='',this['previousContext']='',this[_0x174e('0xe')]='',this[_0x174e('0xf')]='',this[_0x174e('0x19')][_0x174e('0x12')](),this[_0x174e('0x7')]();}async[_0x174e('0x16')](_0x409819,_0x26aec3,_0x2a9a78){return this[_0x174e('0x10')]=!0x0,this[_0x174e('0x19')]['startProcessing'](),this[_0x174e('0x6')]=_0x26aec3,this[_0x174e('0xe')]=_0x409819,this['previousLabel']=_0x2a9a78||_0x409819,new Promise(_0x3bbbf5=>{this['connector'][_0x174e('0x11')](_0x409819,_0x26aec3,_0x29b168=>this[_0x174e('0xc')](_0x29b168))[_0x174e('0x1')](_0x3a0903=>{_0x3a0903 instanceof _0x4ad8b0?this['view']['handleError'](_0x3a0903[_0x174e('0x15')]):this[_0x174e('0x19')][_0x174e('0x5')](),_0x3bbbf5();})['finally'](()=>{this[_0x174e('0x7')](),_0x3bbbf5();});});}[_0x174e('0xc')](_0x508732){this[_0x174e('0x2')]=''+_0x508732;}}
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;}}

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

*/
const _0xeda7=['first','labelView','highlightText','label','isVisible','items','filter'];(function(_0x3b4f4f,_0xeda70b){const _0xc14e06=function(_0x30e653){while(--_0x30e653){_0x3b4f4f['push'](_0x3b4f4f['shift']());}};_0xc14e06(++_0xeda70b);}(_0xeda7,0x73));const _0xc14e=function(_0x3b4f4f,_0xeda70b){_0x3b4f4f=_0x3b4f4f-0x0;let _0xc14e06=_0xeda7[_0x3b4f4f];return _0xc14e06;};import{ListView as _0x15a030}from'ckeditor5/src/ui';export default class C extends _0x15a030{[_0xc14e('0x3')](_0x320ab8){let _0x1c36f0=0x0,_0x13faad=0x0;for(const _0x106e28 of this[_0xc14e('0x2')]){const _0x329a88=_0x106e28;for(const _0x33e79b of _0x329a88[_0xc14e('0x2')]){const _0x230a5c=_0x33e79b['children'][_0xc14e('0x4')],_0x3bf2de=_0x230a5c[_0xc14e('0x5')];_0x320ab8?(_0x33e79b[_0xc14e('0x1')]=!!_0x230a5c[_0xc14e('0x0')]['match'](_0x320ab8),_0x33e79b[_0xc14e('0x1')]&&(_0x3bf2de[_0xc14e('0x6')](_0x320ab8),_0x13faad++)):(_0x33e79b[_0xc14e('0x1')]=!0x0,_0x3bf2de[_0xc14e('0x6')](null),_0x13faad++),_0x1c36f0++;}_0x329a88['isVisible']=!!_0x329a88[_0xc14e('0x2')][_0xc14e('0x3')](_0x8d25c1=>_0x8d25c1[_0xc14e('0x1')])['length'];}return{'resultsCount':_0x13faad,'totalItemsCount':_0x1c36f0};}}
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};}}

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

*/
const _0x2cf2=['set','bindTemplate','extendTemplate'];(function(_0x1ba5c4,_0x2cf2df){const _0x3a7959=function(_0x25c5c8){while(--_0x25c5c8){_0x1ba5c4['push'](_0x1ba5c4['shift']());}};_0x3a7959(++_0x2cf2df);}(_0x2cf2,0xd8));const _0x3a79=function(_0x1ba5c4,_0x2cf2df){_0x1ba5c4=_0x1ba5c4-0x0;let _0x3a7959=_0x2cf2[_0x1ba5c4];return _0x3a7959;};import{HighlightedTextView as _0x472863}from'ckeditor5/src/ui';export default class v extends _0x472863{constructor(){super(),this[_0x3a79('0x0')]({'style':void 0x0,'text':void 0x0,'id':void 0x0});const _0x4b5f30=this[_0x3a79('0x1')];this[_0x3a79('0x2')]({'attributes':{'class':['ck-button__label'],'style':_0x4b5f30['to']('style'),'id':_0x4b5f30['to']('id')}});}}
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')}});}}

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

*/
const _0x185d=['-9999px','value','createRange','icon','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button-wrapper','class','clipboard','_createCopyButton','ck-ai-form__content-area--processing','text/plain','position','ck-ai-form__loader','_createLoader','isProcessing','selectNodeContents','absolute','ck-reset_all-excluded','setContent','createElement','scrollTo','style','element','innerHTML','set','smooth','div','execute','ClipboardItem','textContent','locale','ck-content','appendChild','scrollHeight','copy','copyButtonView','bind','.ck-ai-form__loader','isVisible','text/html','body','loaderView','execCommand','remove','appendLoader','check','left','_copyHTMLToClipboard','render','mousedown','Copy','contentFieldView','write','isEnabled','setTemplate','ck-hidden','ck-ai-form__copy-button','focus','querySelector','change:isProcessing','ck-ai-form__content-area','listenTo'];(function(_0x5dd066,_0x185d83){const _0x5217cf=function(_0x1341c2){while(--_0x1341c2){_0x5dd066['push'](_0x5dd066['shift']());}};_0x5217cf(++_0x185d83);}(_0x185d,0x1ee));const _0x5217=function(_0x5dd066,_0x185d83){_0x5dd066=_0x5dd066-0x0;let _0x5217cf=_0x185d[_0x5dd066];return _0x5217cf;};import{global as _0x12799f}from'ckeditor5/src/utils';import{View as _0x140dac,ButtonView as _0x55c68c,SpinnerView as _0x9cdb5a}from'ckeditor5/src/ui';import _0x4e0f78 from'../../../theme/icons/copy.svg';import{getTranslation as _0x14b4f5}from'../../utils/common-translations';import{icons as _0x10a7a5}from'ckeditor5/src/core';export default class M extends _0x140dac{constructor(_0x788627,_0x43d4bf=''){super(_0x788627),this[_0x5217('0x1a')]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x2e8908=this['bindTemplate'];this[_0x5217('0x35')]=new ContentFieldView(_0x788627,_0x43d4bf),this[_0x5217('0x25')]=this['_createCopyButton'](),this['setTemplate']({'tag':_0x5217('0x1c'),'attributes':{'class':['ck',_0x5217('0x6'),_0x2e8908['if']('isVisible',_0x5217('0x39'),_0x55d60=>!_0x55d60)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck',_0x5217('0x0'),_0x2e8908['if']('isProcessing',_0x5217('0xb'))]},'children':[this['contentFieldView'],{'tag':_0x5217('0x1c'),'attributes':{'class':['ck',_0x5217('0x7')]},'children':[this['copyButtonView']]}]}]});}['render'](){super[_0x5217('0x32')](),this['value']&&this[_0x5217('0x35')][_0x5217('0x14')](this[_0x5217('0x3')]);let _0x5a427c=!0x1;this['on']('change:value',(_0x1653bc,_0x19338a,_0x39ac0f)=>{const _0x10de61=!this[_0x5217('0x35')][_0x5217('0x18')][_0x5217('0x3c')](_0x5217('0x27'));this['contentFieldView'][_0x5217('0x14')](_0x39ac0f),this['isProcessing']&&_0x10de61&&!_0x5a427c&&this['element'][_0x5217('0x16')]({'top':this[_0x5217('0x18')][_0x5217('0x23')],'behavior':_0x5217('0x1b')});}),this['on'](_0x5217('0x3d'),(_0x2f0b59,_0x53b455,_0x4295c1)=>{_0x5a427c=!0x1,_0x4295c1?(this[_0x5217('0x3')]=null,this['contentFieldView']['appendLoader']()):this[_0x5217('0x3')]||this[_0x5217('0x35')][_0x5217('0x14')]('');}),this[_0x5217('0x1')](this[_0x5217('0x18')],'wheel',()=>{_0x5a427c=!0x0;}),this[_0x5217('0x1')](this[_0x5217('0x18')],_0x5217('0x33'),()=>{_0x5a427c=!0x0;});}[_0x5217('0x3b')](){this[_0x5217('0x18')][_0x5217('0x3b')]();}[_0x5217('0xa')](){const _0xe4c2f5=this[_0x5217('0x20')],_0x3f2281=new _0x55c68c(this[_0x5217('0x20')]),_0xab699=_0x5217('0x3a');return _0x3f2281[_0x5217('0x1a')]({'label':_0x14b4f5(_0xe4c2f5,_0x5217('0x34')),'icon':_0x4e0f78,'class':_0xab699,'tooltip':!0x0}),_0x3f2281[_0x5217('0x26')](_0x5217('0x28'))['to'](this,_0x5217('0x3'),_0x2b838b=>!!_0x2b838b),_0x3f2281[_0x5217('0x26')](_0x5217('0x37'))['to'](this,_0x5217('0x10'),_0xe7852e=>!_0xe7852e),_0x3f2281['on'](_0x5217('0x1d'),()=>{this[_0x5217('0x31')](this[_0x5217('0x35')]['element']),_0x3f2281['icon']=_0x10a7a5[_0x5217('0x2f')],_0x3f2281[_0x5217('0x8')]=_0xab699+'\x20ck-ai-form__copy-button--copied',this[_0x5217('0x3b')](),setTimeout(()=>{_0x3f2281[_0x5217('0x5')]=_0x4e0f78,_0x3f2281[_0x5217('0x8')]=_0xab699;},0x3e8);}),_0x3f2281;}[_0x5217('0x31')](_0x527538){const {window:_0x54c8fc,document:_0x4ee8b0}=_0x12799f;if(_0x54c8fc[_0x5217('0x1e')]){const {Blob:_0x25da3c,ClipboardItem:_0xef3b18}=_0x54c8fc,_0x436441=[new _0xef3b18({'text/html':new _0x25da3c([_0x527538['innerHTML']],{'type':_0x5217('0x29')}),'text/plain':new _0x25da3c([_0x527538[_0x5217('0x1f')]||''],{'type':_0x5217('0xc')})})];navigator[_0x5217('0x9')][_0x5217('0x36')](_0x436441);}else{const _0x432c50=_0x4ee8b0[_0x5217('0x15')](_0x5217('0x1c'));_0x432c50[_0x5217('0x17')][_0x5217('0xd')]=_0x5217('0x12'),_0x432c50[_0x5217('0x17')][_0x5217('0x30')]=_0x5217('0x2'),_0x432c50[_0x5217('0x19')]=_0x527538[_0x5217('0x19')],_0x4ee8b0[_0x5217('0x2a')][_0x5217('0x22')](_0x432c50);const _0x4a4633=_0x4ee8b0[_0x5217('0x4')]();_0x4a4633[_0x5217('0x11')](_0x432c50);const _0x89abbf=_0x54c8fc['getSelection']();_0x89abbf['removeAllRanges'](),_0x89abbf['addRange'](_0x4a4633),_0x4ee8b0[_0x5217('0x2c')](_0x5217('0x24')),_0x432c50[_0x5217('0x2d')]();}}}export class ContentFieldView extends _0x140dac{constructor(_0x28deff,_0x237c42=''){super(_0x28deff),this[_0x5217('0x2b')]=this[_0x5217('0xf')](),this[_0x5217('0x38')]({'tag':_0x5217('0x1c'),'attributes':{'class':['ck',_0x5217('0x21'),_0x237c42,_0x5217('0x13'),'ck-ai-form__content-field']}});}[_0x5217('0x14')](_0x4ec079){this[_0x5217('0x18')][_0x5217('0x19')]=_0x4ec079;}[_0x5217('0x2e')](){this[_0x5217('0x18')][_0x5217('0x22')](this[_0x5217('0x2b')][_0x5217('0x18')]);}[_0x5217('0xf')](){const _0x30b7ea=new _0x140dac(),_0x37a6bc=this['locale'],_0x3c41f8=new _0x9cdb5a();return _0x3c41f8[_0x5217('0x28')]=!0x0,_0x30b7ea['setTemplate']({'tag':_0x5217('0x1c'),'attributes':{'class':['ck',_0x5217('0xe')]},'children':[_0x3c41f8,{'text':_0x14b4f5(_0x37a6bc,'AI\x20is\x20writing...')}]}),_0x30b7ea['render'](),_0x30b7ea;}}
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;}}

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

*/
const _0x1cc2=['bindTemplate','set','setTemplate','text','div','content'];(function(_0x5e2e40,_0x1cc298){const _0xb03db8=function(_0x141565){while(--_0x141565){_0x5e2e40['push'](_0x5e2e40['shift']());}};_0xb03db8(++_0x1cc298);}(_0x1cc2,0x1f0));const _0xb03d=function(_0x5e2e40,_0x1cc298){_0x5e2e40=_0x5e2e40-0x0;let _0xb03db8=_0x1cc2[_0x5e2e40];return _0xb03db8;};import{View as _0x3066c4,IconView as _0x5c67f5}from'ckeditor5/src/ui';import _0x4a8fc1 from'../../../theme/icons/error.svg';export default class J extends _0x3066c4{constructor(_0xecb37e,_0x1da9bf=''){super(_0xecb37e);const _0x2292d3=new _0x5c67f5(),_0x338af6=this[_0xb03d('0x2')];this[_0xb03d('0x3')](_0xb03d('0x5'),_0x1da9bf),_0x2292d3[_0xb03d('0x1')]=_0x4a8fc1,this[_0xb03d('0x4')]({'tag':_0xb03d('0x0'),'attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x2292d3,{'text':_0x338af6['to'](_0xb03d('0x5'))}]});}}
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')}]});}}

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

*/
const _0x11c1=['fieldView','value','bind','fire','ck-ai-form__submit','width','rtl','isOn','_createShowHistoryButton','left','focusableChildren','children','_createSubmitButton','target','isEnabled','History','filteredView','focusLast','ck-ai-form__toggle-history','isEmpty','execute','locale','requestAnimationFrame','style','enter','add','focus','resultsView','focusCycler','history','submitButtonView','queryView','showHistoryButtonView','minRows','submit','window','focusFirst','keystrokes','isVisible','excludeScrollbarsAndBorders','set','render','element','maxRows'];(function(_0x371050,_0x11c12d){const _0x782675=function(_0x139b55){while(--_0x139b55){_0x371050['push'](_0x371050['shift']());}};_0x782675(++_0x11c12d);}(_0x11c1,0x14b));const _0x7826=function(_0x371050,_0x11c12d){_0x371050=_0x371050-0x0;let _0x782675=_0x11c1[_0x371050];return _0x782675;};import{Rect as _0x127751,global as _0x2bebd2,isVisible as _0xefb12f}from'ckeditor5/src/utils';import{AutocompleteView as _0xb85a91,ButtonView as _0x4b8cd2}from'ckeditor5/src/ui';import{icons as _0x46edd4}from'ckeditor5/src/core';import{escape as _0x3d8550}from'lodash-es';import{getTranslation as _0x78f8a9}from'../../utils/common-translations';import _0x4d62ee from'../../../theme/icons/submit.svg';export default class X extends _0xb85a91{constructor(_0x369826,_0x25858a){super(_0x369826,_0x25858a),this['queryView'][_0x7826('0x15')][_0x7826('0xa')]=0x1,this['queryView']['fieldView'][_0x7826('0x14')]=0x3,this[_0x7826('0x7')]=this[_0x7826('0x21')](),this[_0x7826('0x9')]=this[_0x7826('0x1d')](),this[_0x7826('0x1f')][_0x7826('0x2')](this[_0x7826('0x9')],0x1),this[_0x7826('0x1f')]['add'](this[_0x7826('0x7')]);}[_0x7826('0x12')](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this[_0x7826('0x9')]),this[_0x7826('0x20')][_0x7826('0x2')](this[_0x7826('0x7')]),this[_0x7826('0xe')]['set'](_0x7826('0x1'),(_0x1a468e,_0x25f888)=>{_0x1a468e[_0x7826('0x22')]==this[_0x7826('0x8')][_0x7826('0x15')][_0x7826('0x13')]&&(this[_0x7826('0xb')](),_0x25f888());});}['_createSubmitButton'](){const _0x1790e6=new _0x4b8cd2(this['locale']),_0x224a3b=this[_0x7826('0x2a')];return _0x1790e6[_0x7826('0x11')]({'icon':_0x4d62ee,'label':_0x78f8a9(_0x224a3b,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':_0x7826('0x19')}),_0x1790e6['on'](_0x7826('0x29'),()=>{this['submit']();}),_0x1790e6['bind'](_0x7826('0x23'))['to'](this[_0x7826('0x8')][_0x7826('0x15')],_0x7826('0x28'),this,'isEnabled',(_0x2b8f3a,_0x20c984)=>!_0x2b8f3a&&_0x20c984),_0x1790e6;}['_createShowHistoryButton'](){const _0x10cc25=new _0x4b8cd2(this[_0x7826('0x2a')]),_0x1d5354=this[_0x7826('0x4')],_0x42ab8f=this['locale'];_0x10cc25[_0x7826('0x11')]({'label':_0x78f8a9(_0x42ab8f,_0x7826('0x24')),'withText':!0x1,'icon':_0x46edd4[_0x7826('0x6')],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x7826('0x27')}),_0x10cc25[_0x7826('0x17')](_0x7826('0x1c'))['to'](_0x1d5354,_0x7826('0xf')),_0x10cc25[_0x7826('0x17')](_0x7826('0x23'))['to'](this,_0x7826('0x23')),_0x10cc25['on'](_0x7826('0x29'),()=>{_0x1d5354[_0x7826('0xf')]=!_0x1d5354[_0x7826('0xf')],_0x1d5354[_0x7826('0xf')]?this[_0x7826('0x25')]['focus']():this[_0x7826('0x3')]();});const _0x45781d=()=>{_0x2bebd2[_0x7826('0xc')][_0x7826('0x2b')](()=>{if(_0xefb12f(this[_0x7826('0x13')])){const _0xbc1737=new _0x127751(this[_0x7826('0x8')][_0x7826('0x15')][_0x7826('0x13')]),_0x3df83e=_0xbc1737[_0x7826('0x1a')],_0x288d41=_0x7826('0x1b')===_0x42ab8f['uiLanguageDirection']?_0x7826('0x1e'):'right';_0xbc1737[_0x7826('0x10')](),_0x10cc25[_0x7826('0x13')][_0x7826('0x0')][_0x288d41]=_0x3df83e-_0xbc1737[_0x7826('0x1a')]+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x45781d),this['on'](_0x7826('0x12'),_0x45781d),_0x10cc25;}[_0x7826('0xb')](){const _0x472b47=this[_0x7826('0x8')][_0x7826('0x15')][_0x7826('0x13')][_0x7826('0x16')];this[_0x7826('0x18')](_0x7826('0xb'),_0x3d8550(_0x472b47));}[_0x7826('0x3')](_0x561f88){-0x1===_0x561f88?this[_0x7826('0x5')][_0x7826('0x26')]():this[_0x7826('0x5')][_0x7826('0xd')]();}}
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']();}}

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

*/
const _0xb390=['bindTemplate','_CONTENT','insertButton','items','_createButton','tryAgainButton','stopButton','replaceButton','label','replace','toUpperCase','set','ck-hidden','isVisible','ck-ai-form__toolbar','AI_','mainAction','extendTemplate','ck-button-action','Try\x20again','REPLACE','Stop'];(function(_0x335851,_0xb390ec){const _0x33c3d2=function(_0x2d7f86){while(--_0x2d7f86){_0x335851['push'](_0x335851['shift']());}};_0x33c3d2(++_0xb390ec);}(_0xb390,0x71));const _0x33c3=function(_0x335851,_0xb390ec){_0x335851=_0x335851-0x0;let _0x33c3d2=_0xb390[_0x335851];return _0x33c3d2;};import{ToolbarView as _0x50f81b,ButtonView as _0x13e512}from'ckeditor5/src/ui';import{getTranslation as _0x31f0f8}from'../../utils/common-translations';export var AIFormToolbarViewMainAction;!function(_0x4685f3){_0x4685f3[_0x33c3('0x11')]=_0x33c3('0x6'),_0x4685f3['INSERT']='insert';}(AIFormToolbarViewMainAction||(AIFormToolbarViewMainAction={}));export default class Y extends _0x50f81b{constructor(_0x50e0e4){super(_0x50e0e4),this[_0x33c3('0x8')](_0x33c3('0xa'),!0x1),this['set'](_0x33c3('0xd'),AIFormToolbarViewMainAction[_0x33c3('0x11')]),this['replaceButton']=this[_0x33c3('0x1')]('',_0x33c3('0xf')),this[_0x33c3('0x4')]['bind'](_0x33c3('0x5'))['to'](this,_0x33c3('0xd'),_0x18858d=>_0x31f0f8(_0x50e0e4,_0x33c3('0xc')+_0x18858d[_0x33c3('0x7')]()+_0x33c3('0x14'))),this[_0x33c3('0x15')]=this[_0x33c3('0x1')](_0x31f0f8(_0x50e0e4,'Insert\x20below')),this['tryAgainButton']=this[_0x33c3('0x1')](_0x31f0f8(_0x50e0e4,_0x33c3('0x10'))),this[_0x33c3('0x3')]=this[_0x33c3('0x1')](_0x31f0f8(_0x50e0e4,_0x33c3('0x12')));const _0x36f53a=this[_0x33c3('0x13')];this[_0x33c3('0xe')]({'attributes':{'class':[_0x33c3('0xb'),_0x36f53a['if'](_0x33c3('0xa'),_0x33c3('0x9'),_0x13363e=>!_0x13363e)]}}),this[_0x33c3('0x0')]['addMany']([this[_0x33c3('0x4')],this['insertButton'],this[_0x33c3('0x2')],this[_0x33c3('0x3')]]);}[_0x33c3('0x1')](_0x307dea,_0x3bc44c){const _0x46ea25=new _0x13e512(this['locale']);return _0x46ea25[_0x33c3('0x8')]({'label':_0x307dea,'class':_0x3bc44c||'','isVisible':!0x0,'withText':!0x0}),_0x46ea25;}}
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;}}

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

*/
const _0x4657=['search','bindTemplate','submit','errorView','toolbar','_focusables','_promptHistory','Ask\x20AI\x20to\x20edit\x20or\x20generate','startProcessing','add','finishProcessing','isEnabled','execute','high','isVisible','createCollection','value','fieldView','stopProcessing','stopButton','submitPrompt','fire','ck-ai-form','items','element','mainAction','div','contentArea','insertButton','set','promptView','Ask\x20AI\x20to\x20improve\x20generated\x20text','listenTo','bindTo','isProcessing','stop','tryAgainEvent','insertContentBelow','keystrokes','reset','replaceButton','tab','prompt','clear','label','backwardCycle','replaceContent','focusNext','setTemplate','AI\x20Assistant','ck-hidden','focusCycler','clearHistory','focus','AI_ERROR_FAILED','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','trim','locale','queryView','tryAgainButton','render','focusTracker','isError','text','header','bind','copyButtonView','focusPrevious','historyGroupView','_focusCycler'];(function(_0x39e760,_0x465792){const _0x23d08c=function(_0x1b0edd){while(--_0x1b0edd){_0x39e760['push'](_0x39e760['shift']());}};_0x23d08c(++_0x465792);}(_0x4657,0x157));const _0x23d0=function(_0x39e760,_0x465792){_0x39e760=_0x39e760-0x0;let _0x23d08c=_0x4657[_0x39e760];return _0x23d08c;};import{FocusTracker as _0x2eb5a0,KeystrokeHandler as _0x24d55d}from'ckeditor5/src/utils';import{View as _0x4161f4,FocusCycler as _0x4f62aa,createLabeledTextarea as _0x265810,FormHeaderView as _0x19c92b}from'ckeditor5/src/ui';import _0x38adb2,{AIFormToolbarViewMainAction as _0x5e7095}from'./aiformtoolbarview';import _0x14dbd1 from'./aiformcontentarea';import _0x533433 from'./aiformerrorview';import _0x535817 from'./aiformpromptview';import _0x242918 from'./aihistorylistview';import _0x3576d6 from'./aihistorylistitemview';import _0x1c6212 from'./prompthistory';import{getTranslation as _0x2208f0}from'../../utils/common-translations';import _0x2a248f from'../../../theme/icons/robot-pencil.svg';export default class g extends _0x4161f4{constructor(_0x31b0c3,_0x70e2e1,_0x18cc68=''){super(_0x31b0c3),this[_0x23d0('0x24')](_0x23d0('0x12'),!0x0),this[_0x23d0('0x24')](_0x23d0('0x29'),!0x1),this[_0x23d0('0x24')](_0x23d0('0x31'),''),this['set']('value',''),this[_0x23d0('0x24')]('isError',!0x1),this[_0x23d0('0x24')]('mainAction',_0x5e7095['REPLACE']),this[_0x23d0('0xd')]=new _0x1c6212(),this[_0x23d0('0xa')]=new _0x533433(_0x31b0c3),this[_0x23d0('0x1')]=new _0x19c92b(_0x31b0c3,{'label':_0x2208f0(_0x31b0c3,_0x23d0('0x38')),'icon':_0x2a248f}),this['contentArea']=new _0x14dbd1(_0x31b0c3,_0x18cc68),this[_0x23d0('0x22')][_0x23d0('0x2')](_0x23d0('0x29'))['to'](this),this['contentArea']['bind'](_0x23d0('0x17'))['to'](this),this[_0x23d0('0xb')]=this['_createToolbar'](),this['toolbar']['bind'](_0x23d0('0x20'))['to'](this),this[_0x23d0('0x25')]=this['_createPromptView'](),this['focusTracker']=new _0x2eb5a0(),this[_0x23d0('0x2d')]=new _0x24d55d(),this[_0x23d0('0xc')]=this[_0x23d0('0x16')]([this[_0x23d0('0x22')],this[_0x23d0('0x22')]['copyButtonView'],this['toolbar'],this['promptView']]),this[_0x23d0('0x6')]=new _0x4f62aa({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x23d0('0x2d')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x23d0('0x30')}}),this[_0x23d0('0x25')]['focusCycler']['on']('forwardCycle',_0x3ac2a3=>{this['_focusCycler'][_0x23d0('0x36')](),_0x3ac2a3[_0x23d0('0x2a')]();}),this[_0x23d0('0x25')][_0x23d0('0x3a')]['on'](_0x23d0('0x34'),_0x50db05=>{this[_0x23d0('0x6')][_0x23d0('0x4')](),_0x50db05[_0x23d0('0x2a')]();}),this[_0x23d0('0x25')][_0x23d0('0x41')][_0x23d0('0x18')][_0x23d0('0x2')]('value')['to'](this,'prompt');const _0x1d09dc=this[_0x23d0('0x8')];this[_0x23d0('0x37')]({'tag':_0x23d0('0x21'),'attributes':{'class':['ck',_0x23d0('0x1d'),_0x70e2e1],'tabindex':'-1'},'children':[this[_0x23d0('0x1')],{'tag':_0x23d0('0x21'),'attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x1d09dc['if'](_0x23d0('0x45'),_0x23d0('0x39'),_0x5b62f1=>!_0x5b62f1)]},'children':[this[_0x23d0('0xa')]]},this['contentArea'],this[_0x23d0('0xb')],this[_0x23d0('0x25')]]}]});}[_0x23d0('0x43')](){super[_0x23d0('0x43')](),this['focusTracker'][_0x23d0('0x10')](this['contentArea'][_0x23d0('0x1f')]),this[_0x23d0('0x44')][_0x23d0('0x10')](this[_0x23d0('0x22')][_0x23d0('0x3')][_0x23d0('0x1f')]),this[_0x23d0('0x44')][_0x23d0('0x10')](this[_0x23d0('0xb')][_0x23d0('0x1f')]),this[_0x23d0('0x44')][_0x23d0('0x10')](this[_0x23d0('0x25')][_0x23d0('0x1f')]),this[_0x23d0('0x2d')][_0x23d0('0x27')](this[_0x23d0('0x1f')]);}[_0x23d0('0x3c')](){this[_0x23d0('0x6')]['focusFirst']();}[_0x23d0('0x2e')](){this[_0x23d0('0x31')]='',this[_0x23d0('0x17')]='',this['promptView']['reset'](),this[_0x23d0('0x22')][_0x23d0('0x15')]=!0x1,this[_0x23d0('0xb')][_0x23d0('0x15')]=!0x1;}['_createPromptView'](){const _0x54f5bd=this[_0x23d0('0x40')],_0xc9934e=new _0x535817(_0x54f5bd,{'queryView':{'label':_0x2208f0(_0x54f5bd,_0x23d0('0xe')),'creator':_0x265810,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2208f0(_0x54f5bd,'Empty\x20history'),'secondary':_0x2208f0(_0x54f5bd,_0x23d0('0x3e'))}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0xc9934e[_0x23d0('0x2')](_0x23d0('0x12'))['to'](this,_0x23d0('0x12'),this,_0x23d0('0x29'),(_0x330b50,_0x310f33)=>_0x330b50&&!_0x310f33),this[_0x23d0('0x27')](_0xc9934e,_0x23d0('0x9'),(_0x3628bf,_0xe2cae8)=>{this[_0x23d0('0x31')]=_0xe2cae8,this[_0x23d0('0x1c')](_0x23d0('0x1b'),this[_0x23d0('0x31')]),_0xe2cae8[_0x23d0('0x3f')]()&&this[_0x23d0('0xd')][_0x23d0('0x10')]({'prompt':_0xe2cae8['trim']()},0x0);},{'priority':_0x23d0('0x14')}),_0xc9934e;}['_createHistoryView'](){const _0x232c15=new _0x242918(this[_0x23d0('0x40')]);return _0x232c15[_0x23d0('0x5')][_0x23d0('0x1e')][_0x23d0('0x28')](this[_0x23d0('0xd')])['as'](_0x3576d6),_0x232c15['on'](_0x23d0('0x3b'),()=>{this[_0x23d0('0xd')][_0x23d0('0x32')](),this['promptView'][_0x23d0('0x7')](''),this[_0x23d0('0x25')][_0x23d0('0x3c')]();}),_0x232c15;}['_createToolbar'](){const _0x564f5e=new _0x38adb2(this[_0x23d0('0x40')]);return _0x564f5e[_0x23d0('0x2f')]['bind']('isEnabled')['to'](this,_0x23d0('0x12'),this,_0x23d0('0x29'),this,_0x23d0('0x17'),(_0x502f7c,_0xfd670e,_0x2b4386)=>_0x502f7c&&!_0xfd670e&&!!_0x2b4386),_0x564f5e[_0x23d0('0x2f')]['on']('execute',()=>{this[_0x23d0('0x1c')](_0x23d0('0x35'),this[_0x23d0('0x17')]);}),_0x564f5e[_0x23d0('0x23')][_0x23d0('0x2')]('isEnabled')['to'](this,_0x23d0('0x12'),this,'isProcessing',this,_0x23d0('0x17'),(_0x1e0989,_0x203534,_0x23968d)=>_0x1e0989&&!_0x203534&&!!_0x23968d),_0x564f5e[_0x23d0('0x23')]['on']('execute',()=>{this['fire'](_0x23d0('0x2c'),this[_0x23d0('0x17')]);}),_0x564f5e[_0x23d0('0x42')][_0x23d0('0x2')]('isEnabled')['to'](this,_0x23d0('0x12'),this,'isProcessing',(_0x3d8506,_0x376649)=>_0x3d8506&&!_0x376649),_0x564f5e[_0x23d0('0x42')]['on'](_0x23d0('0x13'),()=>{this[_0x23d0('0x1c')](_0x23d0('0x2b'));}),_0x564f5e[_0x23d0('0x1a')]['bind'](_0x23d0('0x12'))['to'](this,_0x23d0('0x29')),_0x564f5e[_0x23d0('0x1a')]['on'](_0x23d0('0x13'),()=>{this[_0x23d0('0x1c')](_0x23d0('0x19'));}),_0x564f5e;}[_0x23d0('0xf')](){this['value']='',this[_0x23d0('0x45')]=!0x1,this[_0x23d0('0x29')]=!0x0,this[_0x23d0('0x22')][_0x23d0('0x15')]=!0x0,this[_0x23d0('0xb')]['isVisible']=!0x0,this[_0x23d0('0x22')][_0x23d0('0x3c')]();}[_0x23d0('0x11')](){const _0xd3c62a=this[_0x23d0('0x40')];this[_0x23d0('0x29')]=!0x1,this['prompt']='',this['promptView']['reset'](),this[_0x23d0('0x17')]&&(this[_0x23d0('0x25')][_0x23d0('0x41')][_0x23d0('0x33')]=_0x2208f0(_0xd3c62a,_0x23d0('0x26')));}['handleError'](_0x402174){const _0x3b99ac=this['locale'];this[_0x23d0('0x11')](),this['isError']=!0x0,this[_0x23d0('0xa')][_0x23d0('0x0')]=_0x402174||_0x2208f0(_0x3b99ac,_0x23d0('0x3d')),this[_0x23d0('0x17')]||(this['contentArea'][_0x23d0('0x15')]=!0x1);}}
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);}}

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

*/
const _0x15b6=['prompt','locale','add','set','fire','execute'];(function(_0x23193d,_0x15b683){const _0x3aa2ec=function(_0x58d1a6){while(--_0x58d1a6){_0x23193d['push'](_0x23193d['shift']());}};_0x3aa2ec(++_0x15b683);}(_0x15b6,0xf7));const _0x3aa2=function(_0x23193d,_0x15b683){_0x23193d=_0x23193d-0x0;let _0x3aa2ec=_0x15b6[_0x23193d];return _0x3aa2ec;};import{ListItemView as _0x40d288,ButtonView as _0x311dc5}from'ckeditor5/src/ui';import _0x5915aa from'../dropdown/buttonlabelwithhighlightview';import{unescape as _0x7098a}from'lodash-es';export default class ht extends _0x40d288{constructor(_0x828031){super();const _0x48d225=new _0x5915aa(),_0x44d2f8=new _0x311dc5(this[_0x3aa2('0x0')],_0x48d225);this['children'][_0x3aa2('0x1')](_0x44d2f8),_0x44d2f8[_0x3aa2('0x2')]({'label':_0x828031[_0x3aa2('0x5')],'withText':!0x0}),_0x44d2f8['on'](_0x3aa2('0x4'),()=>{this[_0x3aa2('0x3')](_0x3aa2('0x4'),{'value':_0x7098a(_0x828031[_0x3aa2('0x5')])});});}}
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')])});});}}

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

*/
const _0x508c=['set','add','historyGroupView','fire','Prompt\x20history','locale','items','Clear','length','clearHistoryButton','execute','children','_createClearHistoryButton','filter','label'];(function(_0x89ee3f,_0x508c12){const _0x22773a=function(_0x529601){while(--_0x529601){_0x89ee3f['push'](_0x89ee3f['shift']());}};_0x22773a(++_0x508c12);}(_0x508c,0x88));const _0x2277=function(_0x89ee3f,_0x508c12){_0x89ee3f=_0x89ee3f-0x0;let _0x22773a=_0x508c[_0x89ee3f];return _0x22773a;};import{ListView as _0x1a0835,ListItemGroupView as _0x322254,ButtonView as _0x4a1c42}from'ckeditor5/src/ui';import{getTranslation as _0x2ddc1a}from'../../utils/common-translations';export default class rt extends _0x1a0835{constructor(_0x225c0b){super(_0x225c0b),this[_0x2277('0x8')]=this['_createClearHistoryButton'](),this[_0x2277('0x1')]=new _0x322254(),this['historyGroupView'][_0x2277('0xa')][_0x2277('0x0')](this[_0x2277('0x8')],0x1),this[_0x2277('0x1')][_0x2277('0xd')]=_0x2ddc1a(_0x225c0b,_0x2277('0x3')),this[_0x2277('0x1')][_0x2277('0x5')]['delegate'](_0x2277('0x9'))['to'](this),this[_0x2277('0x5')][_0x2277('0x0')](this['historyGroupView']);}[_0x2277('0xc')](){let _0x1e45f8=0x0;for(const _0x4aed71 of this['items'])_0x1e45f8+=_0x4aed71[_0x2277('0x5')][_0x2277('0x7')];return{'resultsCount':_0x1e45f8,'totalItemsCount':_0x1e45f8};}[_0x2277('0xb')](){const _0x40937d=this['locale'],_0x52172a=new _0x4a1c42(this[_0x2277('0x4')]);return _0x52172a[_0x2277('0xe')]({'label':'('+_0x2ddc1a(_0x40937d,_0x2277('0x6'))+')','withText':!0x0}),_0x52172a['on'](_0x2277('0x9'),()=>this[_0x2277('0x2')]('clearHistory')),_0x52172a;}}
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;}}

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

*/
const _0x4267=['prompt','remove','trim','_saveToSessionStorage','add','map','length','parse','addMany','setItem','last','CKEditor/AIFormView/PromptHistory'];(function(_0x248379,_0x426736){const _0xc010c3=function(_0x20cde5){while(--_0x20cde5){_0x248379['push'](_0x248379['shift']());}};_0xc010c3(++_0x426736);}(_0x4267,0xfd));const _0xc010=function(_0x248379,_0x426736){_0x248379=_0x248379-0x0;let _0xc010c3=_0x4267[_0x248379];return _0xc010c3;};import{Collection as _0x15d5fa}from'ckeditor5/src/utils';const ts=_0xc010('0xa');export default class ot extends _0x15d5fa{constructor(){super(),this['_loadFromSessionStorage'](),this['on'](_0xc010('0x3'),(_0x59d1f3,_0x18232c)=>{const _0x325ae7=os(_0x18232c['prompt']);for(const _0x27db30 of this)if(_0x27db30!=_0x18232c&&os(_0x27db30[_0xc010('0xb')])===_0x325ae7){this[_0xc010('0x0')](_0x27db30);break;}this[_0xc010('0x5')]>0x14&&this[_0xc010('0x0')](this[_0xc010('0x9')]),this[_0xc010('0x2')]();}),this['on']('remove',()=>{this[_0xc010('0x2')]();});}['_loadFromSessionStorage'](){const _0x418270=sessionStorage['getItem'](ts)||'[]';this[_0xc010('0x7')](JSON[_0xc010('0x6')](_0x418270));}[_0xc010('0x2')](){sessionStorage[_0xc010('0x8')](ts,JSON['stringify'](this[_0xc010('0x4')](_0x37e3b3=>_0x37e3b3)));}}function os(_0x5179ce){return _0x5179ce['toLowerCase']()[_0xc010('0x1')]();}
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')]();}

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

*/
const _0x1828=['plugins','aiAssistant.disabledElements','refresh','isEnabled','document','selection','name','getRanges','showUI','get','editor','element','includes','execute'];(function(_0x2dde35,_0x182861){const _0x16c727=function(_0xcbcc73){while(--_0xcbcc73){_0x2dde35['push'](_0x2dde35['shift']());}};_0x16c727(++_0x182861);}(_0x1828,0x124));const _0x16c7=function(_0x2dde35,_0x182861){_0x2dde35=_0x2dde35-0x0;let _0x16c727=_0x1828[_0x2dde35];return _0x16c727;};import{Command as _0x2e697a}from'ckeditor5/src/core';import _0x2ce4a3 from'../aiassistantui';export default class I extends _0x2e697a{[_0x16c7('0x4')](){const _0x48998d=this['editor']['model'][_0x16c7('0x6')][_0x16c7('0x7')],_0x2d4c8b=this[_0x16c7('0xc')]['config'][_0x16c7('0xb')](_0x16c7('0x3'));for(const _0x3e9807 of _0x48998d[_0x16c7('0x9')]())for(const _0x446d24 of _0x3e9807['getItems']())if(_0x446d24['is'](_0x16c7('0xd'))&&_0x2d4c8b[_0x16c7('0x0')](_0x446d24[_0x16c7('0x8')]))return void(this[_0x16c7('0x5')]=!0x1);this['isEnabled']=!0x0;}[_0x16c7('0x1')](_0x64062a='',_0x335ee8=''){this['editor'][_0x16c7('0x2')][_0x16c7('0xb')](_0x2ce4a3)[_0x16c7('0xa')](_0x64062a,_0x335ee8);}}
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);}}

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

*/
export function getTranslation(_0x522b2b,_0x44be26,_0x3e3d10){const t=_0x522b2b['t'];switch(_0x44be26){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',_0x3e3d10);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 _0x44be26;}}
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;}}

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