@ckeditor/ckeditor5-ai 47.2.0-alpha.6 → 47.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +10 -2
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x8c9d(_0x5424a5,_0x98c35c){const _0x11eeed=_0x11ee();return _0x8c9d=function(_0x8c9d77,_0x122fc0){_0x8c9d77=_0x8c9d77-0x12f;let _0x573279=_0x11eeed[_0x8c9d77];return _0x573279;},_0x8c9d(_0x5424a5,_0x98c35c);}function _0x11ee(){const _0x27ff99=['startProcessing','config','custom','previousActionId','handleError','finally','childNodes','message','querySelector','domConverter','textAdapter','updateView','tryAgainEvent','ai.assistant.preserveComments','```','```html','38439ryOQSb','destroy','parseFromString','document','reverse','toView','substring','name','innerHTML','<h1></h1>','_domParser','mainAction','65PlkDjy','setContentOf','_sanitizationContainer','finishProcessing','currentResponse','editor','div','prompt','abort','endsWith','3785208rwyLDP','clear','remove','previousContext','initialContext','createElement','toModel','body','6RVPtSH','view','processor','rename','startsWith','makeRequest','viewToDom','then','stopListening','3107202yPdCWn','text/html','listenTo','_handleQuery','_isH1TagSupportEnabled','nodeType','currentContext','stringify','exec','match','editing','set:currentContext','_stripMarkdownSyntax','isProcessing','data','previousLabel','2336790nddtzj','_sanitizeHTML','1900RHCBpq','length','value','serializeToString','once','set','90196tfnRfO','_xmlSerializer','previousQuery','381388mOwUFO','get','reset','707732ZACBsP','isRendered','htmlProcessor','catch','stopProcessing','_parseAndNormalizeContent','render','_normalizeResponseHeadings','from','markers','push','ELEMENT_NODE','submitPrompt','element','trim'];_0x11ee=function(){return _0x27ff99;};return _0x11ee();}const _0x21917b=_0x8c9d;(function(_0x2b6d69,_0x5dbba3){const _0x1cc5df=_0x8c9d,_0x17ddb2=_0x2b6d69();while(!![]){try{const _0x4b456d=-parseInt(_0x1cc5df(0x15d))/0x1+parseInt(_0x1cc5df(0x160))/0x2*(-parseInt(_0x1cc5df(0x139))/0x3)+-parseInt(_0x1cc5df(0x15a))/0x4*(-parseInt(_0x1cc5df(0x18b))/0x5)+parseInt(_0x1cc5df(0x152))/0x6+parseInt(_0x1cc5df(0x142))/0x7+-parseInt(_0x1cc5df(0x131))/0x8+-parseInt(_0x1cc5df(0x17f))/0x9*(-parseInt(_0x1cc5df(0x154))/0xa);if(_0x4b456d===_0x5dbba3)break;else _0x17ddb2['push'](_0x17ddb2['shift']());}catch(_0x42da6c){_0x17ddb2['push'](_0x17ddb2['shift']());}}}(_0x11ee,0x5bb9b));import{ObservableMixin as _0x4e9ef6}from'ckeditor5/src/utils.js';import{AIRequestError as _0x35adc9}from'../adapters/aiadapter.js';import{Matcher as _0x4460e8,ViewUpcastWriter as _0x173fcb}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e9ef6(){[_0x21917b(0x190)];[_0x21917b(0x179)];[_0x21917b(0x13a)];[_0x21917b(0x18d)];[_0x21917b(0x189)];[_0x21917b(0x15b)];constructor(_0x5257c3,_0x1c5ff7,_0x326687){const _0x2fc6e0=_0x21917b;super(),this[_0x2fc6e0(0x190)]=_0x5257c3,this[_0x2fc6e0(0x179)]=_0x1c5ff7,this[_0x2fc6e0(0x18d)]=document[_0x2fc6e0(0x136)](_0x2fc6e0(0x191)),this[_0x2fc6e0(0x189)]=new DOMParser(),this[_0x2fc6e0(0x15b)]=new XMLSerializer(),this[_0x2fc6e0(0x13a)]=_0x326687,this[_0x2fc6e0(0x159)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x2fc6e0(0x14d),(_0x344d00,_0x1bd83d,_0x72527b)=>{const _0x1e7ccc=_0x2fc6e0;this[_0x1e7ccc(0x13a)][_0x1e7ccc(0x156)]=this[_0x1e7ccc(0x153)](_0x72527b);}),this[_0x2fc6e0(0x144)](this[_0x2fc6e0(0x13a)],_0x2fc6e0(0x16c),(_0x2bd0b6,_0x4a69b3)=>{const _0x45e518=_0x2fc6e0,_0x8ef58e=this[_0x45e518(0x148)]||this[_0x45e518(0x135)];this[_0x45e518(0x145)](_0x4a69b3,_0x8ef58e,_0x45e518(0x171));}),this[_0x2fc6e0(0x144)](this[_0x2fc6e0(0x13a)],_0x2fc6e0(0x17b),()=>{const _0x180a06=_0x2fc6e0;this[_0x180a06(0x13a)][_0x180a06(0x192)]=this[_0x180a06(0x151)],this[_0x180a06(0x145)](this[_0x180a06(0x15c)],this[_0x180a06(0x134)],this[_0x180a06(0x172)],this[_0x180a06(0x151)]);}),this[_0x2fc6e0(0x144)](this[_0x2fc6e0(0x13a)],_0x2fc6e0(0x164),()=>{const _0x31468c=_0x2fc6e0;this[_0x31468c(0x164)]();});}[_0x21917b(0x180)](){const _0x14fa63=_0x21917b;this[_0x14fa63(0x141)]();}async[_0x21917b(0x17a)]({actionId:_0x652764,query:_0x14a308,htmlContent:_0x462bc6,label:_0x5159db,mainActionLabel:_0x2eb048}){const _0x3ba3fc=_0x21917b;this[_0x3ba3fc(0x13a)][_0x3ba3fc(0x192)]=_0x5159db,this[_0x3ba3fc(0x13a)][_0x3ba3fc(0x18a)]=_0x2eb048,this[_0x3ba3fc(0x135)]=_0x462bc6,_0x14a308&&(this[_0x3ba3fc(0x13a)][_0x3ba3fc(0x161)]?this[_0x3ba3fc(0x145)](_0x14a308,_0x462bc6,_0x652764,_0x5159db):this[_0x3ba3fc(0x13a)][_0x3ba3fc(0x158)](_0x3ba3fc(0x166),()=>{const _0x44da25=_0x3ba3fc;this[_0x44da25(0x145)](_0x14a308,_0x462bc6,_0x652764,_0x5159db);}));}[_0x21917b(0x164)](){const _0x1a6cd5=_0x21917b;this[_0x1a6cd5(0x14f)]&&(this[_0x1a6cd5(0x14f)]=!0x1,this[_0x1a6cd5(0x13a)][_0x1a6cd5(0x18e)](),this[_0x1a6cd5(0x179)][_0x1a6cd5(0x12f)]());}[_0x21917b(0x15f)](){const _0x35a624=_0x21917b;this[_0x35a624(0x135)]='',this[_0x35a624(0x148)]='',this[_0x35a624(0x18f)]='',this[_0x35a624(0x134)]='',this[_0x35a624(0x15c)]='',this[_0x35a624(0x151)]='',this[_0x35a624(0x172)]=void 0x0,this[_0x35a624(0x13a)][_0x35a624(0x15f)](),this[_0x35a624(0x164)]();}async[_0x21917b(0x145)](_0x1c55af,_0x4df3dd,_0x1fe3ce,_0x156d79){const _0x48c996=_0x21917b;return this[_0x48c996(0x14f)]=!0x0,this[_0x48c996(0x13a)][_0x48c996(0x16f)](),this[_0x48c996(0x134)]=_0x4df3dd,this[_0x48c996(0x15c)]=_0x1c55af,this[_0x48c996(0x151)]=_0x156d79||_0x1c55af,this[_0x48c996(0x172)]=_0x1fe3ce,new Promise(_0x161a36=>{const _0x5a014c=_0x48c996;this[_0x5a014c(0x179)][_0x5a014c(0x13e)]({'query':_0x1c55af,'context':_0x4df3dd,'onData':_0x3e582d=>{const _0x415b77=_0x5a014c;this[_0x415b77(0x18f)]=_0x3e582d,this[_0x415b77(0x148)]=this[_0x415b77(0x165)](this[_0x415b77(0x18f)]);},'actionId':_0x1fe3ce})[_0x5a014c(0x140)](()=>{const _0x549bd2=_0x5a014c;!this[_0x549bd2(0x148)]&&this[_0x549bd2(0x18f)]&&(this[_0x549bd2(0x148)]=this[_0x549bd2(0x165)](this[_0x549bd2(0x18f)],!0x0));})[_0x5a014c(0x163)](_0x190f82=>{const _0x425272=_0x5a014c;_0x190f82 instanceof _0x35adc9?this[_0x425272(0x13a)][_0x425272(0x173)](_0x190f82[_0x425272(0x176)]):this[_0x425272(0x13a)][_0x425272(0x173)](),_0x161a36();})[_0x5a014c(0x174)](()=>{const _0x4fae64=_0x5a014c;this[_0x4fae64(0x164)](),_0x161a36();});});}[_0x21917b(0x165)](_0x699ef2,_0x257e40=!0x1){const _0xcec849=_0x21917b,_0x1ce436=hs[_0xcec849(0x14a)](_0x699ef2);_0x699ef2=_0x1ce436?_0x699ef2[_0xcec849(0x185)](_0x1ce436[0x1][_0xcec849(0x155)]):_0x699ef2[_0xcec849(0x155)]<0x64&&!_0x257e40?'':this[_0xcec849(0x14e)](_0x699ef2);const _0x2156ff=this[_0xcec849(0x189)][_0xcec849(0x181)](_0x699ef2,_0xcec849(0x143));if(_0x1ce436){const _0x1a4254=Array[_0xcec849(0x168)](_0x2156ff[_0xcec849(0x138)][_0xcec849(0x175)]);_0x1a4254[_0xcec849(0x183)]();for(const _0x1b5b07 of _0x1a4254){if(_0x1b5b07[_0xcec849(0x147)]==Node[_0xcec849(0x16b)])break;_0x1b5b07[_0xcec849(0x133)]();}}const _0x262977=this[_0xcec849(0x190)][_0xcec849(0x150)][_0xcec849(0x13b)][_0xcec849(0x184)](this[_0xcec849(0x15b)][_0xcec849(0x157)](_0x2156ff[_0xcec849(0x138)]));this[_0xcec849(0x146)]()||this[_0xcec849(0x167)](_0x262977);const _0x2a1e0e=this[_0xcec849(0x190)][_0xcec849(0x170)][_0xcec849(0x15e)](_0xcec849(0x17c)),_0x3b83d1=this[_0xcec849(0x190)][_0xcec849(0x150)][_0xcec849(0x137)](_0x262977);return _0x2a1e0e||_0x3b83d1[_0xcec849(0x169)][_0xcec849(0x132)](),this[_0xcec849(0x190)][_0xcec849(0x150)][_0xcec849(0x149)](_0x3b83d1);}[_0x21917b(0x167)](_0x378aab){const _0x51a888=_0x21917b,_0x230656=new _0x173fcb(this[_0x51a888(0x190)][_0x51a888(0x14c)][_0x51a888(0x13a)][_0x51a888(0x182)]),_0x35f44a=new _0x4460e8({'name':/^h[1-5]$/}),_0x1a0ecb=[];let _0x37b186=!0x1;for(const _0x45a7f4 of _0x378aab)_0x45a7f4['is'](_0x51a888(0x16d))&&_0x35f44a[_0x51a888(0x14b)](_0x45a7f4)&&(_0x1a0ecb[_0x51a888(0x16a)](_0x45a7f4),'h1'==_0x45a7f4[_0x51a888(0x186)]&&(_0x37b186=!0x0));if(_0x37b186){for(const _0x3bbe40 of _0x1a0ecb)_0x230656[_0x51a888(0x13c)]('h'+(parseInt(_0x3bbe40[_0x51a888(0x186)][0x1])+0x1),_0x3bbe40);}}[_0x21917b(0x146)](){const _0x1e90a5=_0x21917b,{data:_0x484b98,editing:_0x13b844}=this[_0x1e90a5(0x190)],_0x3abe6c=_0x484b98[_0x1e90a5(0x162)][_0x1e90a5(0x184)](_0x1e90a5(0x188)),_0xc46415=_0x484b98[_0x1e90a5(0x184)](_0x484b98[_0x1e90a5(0x137)](_0x3abe6c));return!!_0x13b844[_0x1e90a5(0x13a)][_0x1e90a5(0x178)][_0x1e90a5(0x13f)](_0xc46415)[_0x1e90a5(0x177)]('h1');}[_0x21917b(0x153)](_0x3de9f4){const _0x45cb9e=_0x21917b;return this[_0x45cb9e(0x190)][_0x45cb9e(0x14c)][_0x45cb9e(0x13a)][_0x45cb9e(0x178)][_0x45cb9e(0x18c)](this[_0x45cb9e(0x18d)],_0x3de9f4),this[_0x45cb9e(0x18d)][_0x45cb9e(0x187)];}[_0x21917b(0x14e)](_0x134bb6){const _0x58fc18=_0x21917b,_0x598563=_0x134bb6[_0x58fc18(0x16e)]();return _0x598563[_0x58fc18(0x13d)](_0x58fc18(0x17e))?_0x598563[_0x58fc18(0x130)](_0x58fc18(0x17d))?_0x598563[_0x58fc18(0x185)](0x7,_0x598563[_0x58fc18(0x155)]-0x3):_0x598563[_0x58fc18(0x185)](0x7):_0x134bb6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e8a57=_0x4967;(function(_0x24a9e3,_0x1ee612){const _0x53923e=_0x4967,_0x25d0f8=_0x24a9e3();while(!![]){try{const _0x537572=parseInt(_0x53923e(0xc5))/0x1+parseInt(_0x53923e(0xca))/0x2*(parseInt(_0x53923e(0xcc))/0x3)+-parseInt(_0x53923e(0x9e))/0x4*(parseInt(_0x53923e(0x95))/0x5)+-parseInt(_0x53923e(0xbe))/0x6*(parseInt(_0x53923e(0xc6))/0x7)+parseInt(_0x53923e(0xdf))/0x8*(-parseInt(_0x53923e(0xa3))/0x9)+parseInt(_0x53923e(0xc8))/0xa+-parseInt(_0x53923e(0x96))/0xb*(-parseInt(_0x53923e(0xc1))/0xc);if(_0x537572===_0x1ee612)break;else _0x25d0f8['push'](_0x25d0f8['shift']());}catch(_0x201cfd){_0x25d0f8['push'](_0x25d0f8['shift']());}}}(_0x1aa3,0xeab56));import{global as _0x30cdba}from'ckeditor5/src/utils.js';import{View as _0x307ad8,ButtonView as _0x1f4ad4,SpinnerView as _0x305d85}from'ckeditor5/src/ui.js';import{IconCheck as _0x17e66f,IconCopy as _0x327a16}from'ckeditor5/src/icons.js';import{getTranslation as _0x2d8db2}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x307ad8{[_0x2e8a57(0x97)];[_0x2e8a57(0xe1)];constructor(_0x5deac4,_0x1836ea=''){const _0x6f8e69=_0x2e8a57;super(_0x5deac4),this[_0x6f8e69(0xb3)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x27ae10=this[_0x6f8e69(0x90)];this[_0x6f8e69(0x97)]=new ContentFieldView(_0x5deac4,_0x1836ea),this[_0x6f8e69(0xe1)]=this[_0x6f8e69(0xa2)](),this[_0x6f8e69(0xde)]({'tag':_0x6f8e69(0xb7),'attributes':{'class':['ck',_0x6f8e69(0xa5),_0x27ae10['if'](_0x6f8e69(0xaf),_0x6f8e69(0x93),_0x30c611=>!_0x30c611)],'tabindex':'-1'},'children':[{'tag':_0x6f8e69(0xb7),'attributes':{'class':['ck',_0x6f8e69(0xb2),_0x27ae10['if'](_0x6f8e69(0xdb),_0x6f8e69(0xd4))]},'children':[this[_0x6f8e69(0x97)],{'tag':_0x6f8e69(0xb7),'attributes':{'class':['ck',_0x6f8e69(0xc4)]},'children':[this[_0x6f8e69(0xe1)]]}]}]});}[_0x2e8a57(0x9d)](){const _0x2e076b=_0x2e8a57;super[_0x2e076b(0x9d)](),this[_0x2e076b(0xaa)]&&this[_0x2e076b(0x97)][_0x2e076b(0x99)](this[_0x2e076b(0xaa)]);let _0x7b73a6=!0x1;this['on'](_0x2e076b(0xe4),(_0x389c05,_0x4d9a0e,_0xa31e7f)=>{const _0x137185=_0x2e076b,_0x3fe5bb=!this[_0x137185(0x97)][_0x137185(0xb5)][_0x137185(0xe3)](_0x137185(0xb8));this[_0x137185(0x97)][_0x137185(0x99)](_0xa31e7f),this[_0x137185(0xdb)]&&_0x3fe5bb&&!_0x7b73a6&&this[_0x137185(0xb5)][_0x137185(0xda)]({'top':this[_0x137185(0xb5)][_0x137185(0x8e)],'behavior':_0x137185(0xce)});}),this['on'](_0x2e076b(0xa8),(_0x49447a,_0x3cb9eb,_0x41825c)=>{const _0x324e50=_0x2e076b;_0x7b73a6=!0x1,_0x41825c?(this[_0x324e50(0xaa)]=null,this[_0x324e50(0x97)][_0x324e50(0xbb)]()):this[_0x324e50(0xaa)]||this[_0x324e50(0x97)][_0x324e50(0x99)]('');}),this[_0x2e076b(0xa1)](this[_0x2e076b(0xb5)],_0x2e076b(0xe2),()=>{_0x7b73a6=!0x0;}),this[_0x2e076b(0xa1)](this[_0x2e076b(0xb5)],_0x2e076b(0xbf),()=>{_0x7b73a6=!0x0;});}[_0x2e8a57(0xb9)](){const _0x592203=_0x2e8a57;this[_0x592203(0xb5)][_0x592203(0xb9)]();}[_0x2e8a57(0xa2)](){const _0x40cd33=_0x2e8a57,_0x4f8657=this[_0x40cd33(0xcb)],_0x88b52e=new _0x1f4ad4(this[_0x40cd33(0xcb)]),_0x48408a=_0x40cd33(0xd6);return _0x88b52e[_0x40cd33(0xb3)]({'label':_0x2d8db2(_0x4f8657,_0x40cd33(0xd8)),'icon':_0x327a16,'class':_0x48408a,'tooltip':!0x0}),_0x88b52e[_0x40cd33(0x9c)](_0x40cd33(0xaf))['to'](this,_0x40cd33(0xaa),_0x335436=>!!_0x335436),_0x88b52e[_0x40cd33(0x9c)](_0x40cd33(0xb6))['to'](this,_0x40cd33(0xdb),_0x6e698d=>!_0x6e698d),_0x88b52e['on'](_0x40cd33(0x9f),()=>{const _0x193a97=_0x40cd33;this[_0x193a97(0xbc)](this[_0x193a97(0x97)][_0x193a97(0xb5)]),_0x88b52e[_0x193a97(0xcf)]=_0x17e66f,_0x88b52e[_0x193a97(0xb0)]=_0x48408a+_0x193a97(0xa6),this[_0x193a97(0xb9)](),setTimeout(()=>{const _0x58b9f=_0x193a97;_0x88b52e[_0x58b9f(0xcf)]=_0x327a16,_0x88b52e[_0x58b9f(0xb0)]=_0x48408a;},0x3e8);}),_0x88b52e;}[_0x2e8a57(0xbc)](_0x17b153){const _0x34e8a7=_0x2e8a57,{window:_0x12696b,document:_0x17a594}=_0x30cdba;if(_0x12696b[_0x34e8a7(0xd1)]){const {Blob:_0x485eeb,ClipboardItem:_0x39d07e}=_0x12696b,_0x37c7d6=[new _0x39d07e({'text/html':new _0x485eeb([_0x17b153[_0x34e8a7(0x9a)]],{'type':_0x34e8a7(0xd7)}),'text/plain':new _0x485eeb([_0x17b153[_0x34e8a7(0xba)]||''],{'type':_0x34e8a7(0xd5)})})];navigator[_0x34e8a7(0xd0)][_0x34e8a7(0xa7)](_0x37c7d6);}else{const _0x226bdc=_0x17a594[_0x34e8a7(0xb4)](_0x34e8a7(0xb7));_0x226bdc[_0x34e8a7(0xa0)][_0x34e8a7(0xad)]=_0x34e8a7(0xbd),_0x226bdc[_0x34e8a7(0xa0)][_0x34e8a7(0x98)]=_0x34e8a7(0xc0),_0x226bdc[_0x34e8a7(0x9a)]=_0x34e8a7(0x94)+_0x17b153[_0x34e8a7(0x9a)]+_0x34e8a7(0xcd),_0x17a594[_0x34e8a7(0xac)][_0x34e8a7(0xae)](_0x226bdc);const _0x173ea9=_0x17a594[_0x34e8a7(0xab)]();_0x173ea9[_0x34e8a7(0xc3)](_0x226bdc[_0x34e8a7(0xc9)]),_0x173ea9[_0x34e8a7(0x91)](_0x226bdc[_0x34e8a7(0xc7)]);const _0x15c3a6=_0x12696b[_0x34e8a7(0xd3)]();_0x15c3a6[_0x34e8a7(0xb1)](),_0x15c3a6[_0x34e8a7(0xc2)](_0x173ea9),_0x17a594[_0x34e8a7(0xe0)](_0x34e8a7(0x92)),_0x226bdc[_0x34e8a7(0x8f)]();}}}function _0x4967(_0x12300c,_0x3921d2){const _0x1aa355=_0x1aa3();return _0x4967=function(_0x49674f,_0x387958){_0x49674f=_0x49674f-0x8e;let _0xe0d469=_0x1aa355[_0x49674f];return _0xe0d469;},_0x4967(_0x12300c,_0x3921d2);}function _0x1aa3(){const _0x8e632=['write','change:isProcessing','AI\x20is\x20writing...','value','createRange','body','position','appendChild','isVisible','class','removeAllRanges','ck-ai-form__content-area','set','createElement','element','isEnabled','div','.ck-ai-form__loader','focus','textContent','appendLoader','_copyHTMLToClipboard','absolute','16812IXMiSH','mousedown','-9999px','12UwBQIa','addRange','setStartAfter','ck-ai-form__copy-button-wrapper','193623qqHqil','3073opvdeY','lastElementChild','17674700XUOwJE','firstElementChild','274076soUZfV','locale','12YBDfrS','<span>]</span>','smooth','icon','clipboard','ClipboardItem','ck-ai-form__content-field','getSelection','ck-ai-form__content-area--processing','text/plain','ck-ai-form__copy-button','text/html','Copy','ck-ai-form__loader','scrollTo','isProcessing','ck-content','ck-reset_all-excluded','setTemplate','32ChbaiH','execCommand','copyButtonView','wheel','querySelector','change:value','scrollHeight','remove','bindTemplate','setEndBefore','copy','ck-hidden','<span>[</span>','475UFiKXb','11572286SGTvFC','contentFieldView','left','setContent','innerHTML','loaderView','bind','render','29668HskxXN','execute','style','listenTo','_createCopyButton','1496727pgDRkn','_createLoader','ck-ai-form__content-area-wrapper','\x20ck-ai-form__copy-button--copied'];_0x1aa3=function(){return _0x8e632;};return _0x1aa3();}export class ContentFieldView extends _0x307ad8{constructor(_0x1cc3d3,_0x40b5a0=''){const _0x4d7a24=_0x2e8a57;super(_0x1cc3d3),this[_0x4d7a24(0x9b)]=this[_0x4d7a24(0xa4)](),this[_0x4d7a24(0xde)]({'tag':_0x4d7a24(0xb7),'attributes':{'class':['ck',_0x4d7a24(0xdc),_0x40b5a0,_0x4d7a24(0xdd),_0x4d7a24(0xd2)]}});}[_0x2e8a57(0x99)](_0x2401e5){const _0x4edbd6=_0x2e8a57;this[_0x4edbd6(0xb5)][_0x4edbd6(0x9a)]=_0x2401e5;}[_0x2e8a57(0xbb)](){const _0x26e34d=_0x2e8a57;this[_0x26e34d(0xb5)][_0x26e34d(0xae)](this[_0x26e34d(0x9b)][_0x26e34d(0xb5)]);}[_0x2e8a57(0xa4)](){const _0xf47961=_0x2e8a57,_0x2823e7=new _0x307ad8(),_0x1e561e=this[_0xf47961(0xcb)],_0x128469=new _0x305d85();return _0x128469[_0xf47961(0xaf)]=!0x0,_0x2823e7[_0xf47961(0xde)]({'tag':_0xf47961(0xb7),'attributes':{'class':['ck',_0xf47961(0xd9)]},'children':[_0x128469,{'text':_0x2d8db2(_0x1e561e,_0xf47961(0xa9))}]}),_0x2823e7[_0xf47961(0x9d)](),_0x2823e7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x30b204,_0xdb0b98){const _0x37e6b7=_0x35b9,_0x459d44=_0x30b204();while(!![]){try{const _0x1c3c70=parseInt(_0x37e6b7(0x90))/0x1*(parseInt(_0x37e6b7(0x92))/0x2)+parseInt(_0x37e6b7(0x84))/0x3*(parseInt(_0x37e6b7(0x82))/0x4)+parseInt(_0x37e6b7(0x8f))/0x5*(-parseInt(_0x37e6b7(0x89))/0x6)+parseInt(_0x37e6b7(0x80))/0x7+-parseInt(_0x37e6b7(0x81))/0x8*(parseInt(_0x37e6b7(0x8b))/0x9)+parseInt(_0x37e6b7(0x91))/0xa+-parseInt(_0x37e6b7(0x85))/0xb*(parseInt(_0x37e6b7(0x88))/0xc);if(_0x1c3c70===_0xdb0b98)break;else _0x459d44['push'](_0x459d44['shift']());}catch(_0x49e790){_0x459d44['push'](_0x459d44['shift']());}}}(_0x23d3,0x261be));function _0x35b9(_0x2a4492,_0x20d6c8){const _0x23d368=_0x23d3();return _0x35b9=function(_0x35b958,_0x301871){_0x35b958=_0x35b958-0x80;let _0x8eaaad=_0x23d368[_0x35b958];return _0x8eaaad;},_0x35b9(_0x2a4492,_0x20d6c8);}import{IconError as _0x38801a}from'ckeditor5/src/icons.js';function _0x23d3(){const _0xdd1f46=['1317295jonFNi','886856gznTeY','176GuubmW','set','7536caAIFx','11AMiHqG','setTemplate','div','1065588AHSsJe','96606jlbxWZ','bindTemplate','18mhVROm','ck-ai-form__error','text','content','55pChLeJ','16273VHOFlN','1985480ljSUeI','18FgVJor'];_0x23d3=function(){return _0xdd1f46;};return _0x23d3();}import{View as _0x583cde,IconView as _0x224c50}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x583cde{constructor(_0x518b55,_0xea6cee=''){const _0x403b74=_0x35b9;super(_0x518b55);const _0x270d01=new _0x224c50(),_0x214ac4=this[_0x403b74(0x8a)];this[_0x403b74(0x83)](_0x403b74(0x8d),_0xea6cee),_0x270d01[_0x403b74(0x8e)]=_0x38801a,this[_0x403b74(0x86)]({'tag':_0x403b74(0x87),'attributes':{'class':['ck',_0x403b74(0x8c)]},'children':[_0x270d01,{'text':_0x214ac4['to'](_0x403b74(0x8d))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5ab4b1=_0xd338;(function(_0x1b858d,_0x2e349c){const _0x4f2ffd=_0xd338,_0x39d0a0=_0x1b858d();while(!![]){try{const _0x2f7b07=parseInt(_0x4f2ffd(0x212))/0x1+parseInt(_0x4f2ffd(0x1e9))/0x2*(parseInt(_0x4f2ffd(0x20c))/0x3)+-parseInt(_0x4f2ffd(0x214))/0x4+parseInt(_0x4f2ffd(0x1e5))/0x5+-parseInt(_0x4f2ffd(0x21a))/0x6+parseInt(_0x4f2ffd(0x209))/0x7+parseInt(_0x4f2ffd(0x1fa))/0x8*(-parseInt(_0x4f2ffd(0x206))/0x9);if(_0x2f7b07===_0x2e349c)break;else _0x39d0a0['push'](_0x39d0a0['shift']());}catch(_0x47eb45){_0x39d0a0['push'](_0x39d0a0['shift']());}}}(_0x24cb,0x67eea));import{Rect as _0x37eb05,global as _0x360a81,isVisible as _0x7b867d}from'ckeditor5/src/utils.js';function _0xd338(_0x59f023,_0x2fcd9e){const _0x24cb18=_0x24cb();return _0xd338=function(_0xd3389b,_0x30c910){_0xd3389b=_0xd3389b-0x1e2;let _0x9833b1=_0x24cb18[_0xd3389b];return _0x9833b1;},_0xd338(_0x59f023,_0x2fcd9e);}function _0x24cb(){const _0x4dfe4a=['rtl','_createShowHistoryButton','locale','render','excludeScrollbarsAndBorders','4064328cRaToL','execute','value','maxRows','4018665NXXVJk','fieldWrapperChildren','focusCycler','queryView','398sACDTG','focusableChildren','isVisible','showHistoryButtonView','requestAnimationFrame','add','resultsView','element','ck-ai-form__submit','isOn','filteredView','children','submitButtonView','keystrokes','Submit','style','focus','3387912LTGbbi','right','ck-ai-form__toggle-history','focusFirst','left','focusLast','target','set','uiLanguageDirection','submit','minRows','enter','9vMNavm','History','fieldView','2380721eCVRmM','bind','isEmpty','7473tazGit','_createSubmitButton','fire','update','isEnabled','window','403949RgadQq','width','2067644glowrw'];_0x24cb=function(){return _0x4dfe4a;};return _0x24cb();}import{IconAIHistory as _0xa9e425,IconSubmit as _0x5284f4}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x224386,ButtonView as _0x183640}from'ckeditor5/src/ui.js';import{getTranslation as _0x502bab}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x224386{[_0x5ab4b1(0x1f5)];[_0x5ab4b1(0x1ec)];constructor(_0x3e510c,_0x296a73){const _0x594590=_0x5ab4b1;super(_0x3e510c,_0x296a73),this[_0x594590(0x1e8)][_0x594590(0x208)][_0x594590(0x204)]=0x1,this[_0x594590(0x1e8)][_0x594590(0x208)][_0x594590(0x1e4)]=0x3,this[_0x594590(0x1f5)]=this[_0x594590(0x20d)](),this[_0x594590(0x1ec)]=this[_0x594590(0x216)](),this[_0x594590(0x1ea)][_0x594590(0x1ee)](this[_0x594590(0x1ec)],0x1),this[_0x594590(0x1ea)][_0x594590(0x1ee)](this[_0x594590(0x1f5)]);}[_0x5ab4b1(0x218)](){const _0x349f19=_0x5ab4b1;super[_0x349f19(0x218)](),this[_0x349f19(0x1e8)][_0x349f19(0x1e6)][_0x349f19(0x1ee)](this[_0x349f19(0x1ec)]),this[_0x349f19(0x1f4)][_0x349f19(0x1ee)](this[_0x349f19(0x1f5)]),this[_0x349f19(0x1f6)][_0x349f19(0x201)](_0x349f19(0x205),(_0x38772c,_0x58f40e)=>{const _0x4a4d5a=_0x349f19;_0x38772c[_0x4a4d5a(0x200)]==this[_0x4a4d5a(0x1e8)][_0x4a4d5a(0x208)][_0x4a4d5a(0x1f0)]&&(this[_0x4a4d5a(0x203)](),_0x58f40e());});}[_0x5ab4b1(0x20d)](){const _0x36ad19=_0x5ab4b1,_0x528afe=new _0x183640(this[_0x36ad19(0x217)]),_0x25a865=this[_0x36ad19(0x217)];return _0x528afe[_0x36ad19(0x201)]({'icon':_0x5284f4,'label':_0x502bab(_0x25a865,_0x36ad19(0x1f7)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x36ad19(0x1f1)}),_0x528afe['on'](_0x36ad19(0x1e2),()=>{const _0x24bb93=_0x36ad19;this[_0x24bb93(0x203)]();}),_0x528afe[_0x36ad19(0x20a)](_0x36ad19(0x210))['to'](this[_0x36ad19(0x1e8)][_0x36ad19(0x208)],_0x36ad19(0x20b),this,_0x36ad19(0x210),(_0x3c031a,_0x13e74e)=>!_0x3c031a&&_0x13e74e),_0x528afe;}[_0x5ab4b1(0x216)](){const _0x2b7fc9=_0x5ab4b1,_0x56fff5=new _0x183640(this[_0x2b7fc9(0x217)]),_0x22d308=this[_0x2b7fc9(0x1ef)],_0x468301=this[_0x2b7fc9(0x217)];_0x56fff5[_0x2b7fc9(0x201)]({'label':_0x502bab(_0x468301,_0x2b7fc9(0x207)),'withText':!0x1,'icon':_0xa9e425,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2b7fc9(0x1fc)}),_0x56fff5[_0x2b7fc9(0x20a)](_0x2b7fc9(0x1f2))['to'](_0x22d308,_0x2b7fc9(0x1eb)),_0x56fff5[_0x2b7fc9(0x20a)](_0x2b7fc9(0x210))['to'](this,_0x2b7fc9(0x210)),_0x56fff5['on'](_0x2b7fc9(0x1e2),()=>{const _0x2b0d33=_0x2b7fc9;_0x22d308[_0x2b0d33(0x1eb)]=!_0x22d308[_0x2b0d33(0x1eb)],_0x22d308[_0x2b0d33(0x1eb)]?this[_0x2b0d33(0x1f3)][_0x2b0d33(0x1f9)]():this[_0x2b0d33(0x1f9)]();});const _0x92d7c9=()=>{const _0xe6a58=_0x2b7fc9;_0x360a81[_0xe6a58(0x211)][_0xe6a58(0x1ed)](()=>{const _0x4654d7=_0xe6a58;if(_0x7b867d(this[_0x4654d7(0x1f0)])){const _0x3b3b2b=new _0x37eb05(this[_0x4654d7(0x1e8)][_0x4654d7(0x208)][_0x4654d7(0x1f0)]),_0x3963b3=_0x3b3b2b[_0x4654d7(0x213)],_0x33393c=_0x4654d7(0x215)===_0x468301[_0x4654d7(0x202)]?_0x4654d7(0x1fe):_0x4654d7(0x1fb);_0x3b3b2b[_0x4654d7(0x219)](),_0x56fff5[_0x4654d7(0x1f0)][_0x4654d7(0x1f8)][_0x33393c]=_0x3963b3-_0x3b3b2b[_0x4654d7(0x213)]+0x1+'px';}});};return this[_0x2b7fc9(0x1e8)][_0x2b7fc9(0x208)]['on'](_0x2b7fc9(0x20f),_0x92d7c9),this['on'](_0x2b7fc9(0x218),_0x92d7c9),_0x56fff5;}[_0x5ab4b1(0x203)](){const _0x22576a=_0x5ab4b1,_0x41f213=this[_0x22576a(0x1e8)][_0x22576a(0x208)][_0x22576a(0x1f0)][_0x22576a(0x1e3)];this[_0x22576a(0x20e)](_0x22576a(0x203),_0x41f213);}[_0x5ab4b1(0x1f9)](_0x5aadb7){const _0x31a812=_0x5ab4b1;-0x1===_0x5aadb7?this[_0x31a812(0x1e7)][_0x31a812(0x1ff)]():this[_0x31a812(0x1e7)][_0x31a812(0x1fd)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c4c58=_0x9847;(function(_0x8bf933,_0x5cf5f9){const _0x460848=_0x9847,_0x545a57=_0x8bf933();while(!![]){try{const _0x4b0dd9=parseInt(_0x460848(0x18c))/0x1+parseInt(_0x460848(0x1aa))/0x2+-parseInt(_0x460848(0x1a0))/0x3+-parseInt(_0x460848(0x18b))/0x4+parseInt(_0x460848(0x1ab))/0x5+parseInt(_0x460848(0x19b))/0x6+-parseInt(_0x460848(0x19a))/0x7*(parseInt(_0x460848(0x19e))/0x8);if(_0x4b0dd9===_0x5cf5f9)break;else _0x545a57['push'](_0x545a57['shift']());}catch(_0x2e8061){_0x545a57['push'](_0x545a57['shift']());}}}(_0x56c3,0xa258d));import{ToolbarView as _0x4296ca,ButtonView as _0xd79fda}from'ckeditor5/src/ui.js';function _0x9847(_0x279e8e,_0x3d6798){const _0x56c3cc=_0x56c3();return _0x9847=function(_0x9847fb,_0x4dc5e8){_0x9847fb=_0x9847fb-0x18a;let _0x109bc7=_0x56c3cc[_0x9847fb];return _0x109bc7;},_0x9847(_0x279e8e,_0x3d6798);}import{getTranslation as _0x24381d}from'../../utils/common-translations.js';function _0x56c3(){const _0x426c7a=['replaceButton','182ufgNJs','614040fvfIrA','_CONTENT','extendTemplate','213448cCmJwh','ck-ai-form__toolbar','477456NOqljj','mainAction','Insert\x20below','REPLACE','AI_','addMany','toUpperCase','ck-hidden','bindTemplate','locale','1764888yCWCkx','1509225RQCWHG','items','insertButton','416956OMrNHR','335441UFlslp','bind','ck-button-action','insert','isVisible','set','label','tryAgainButton','replace','Stop','_createButton','stopButton','Try\x20again'];_0x56c3=function(){return _0x426c7a;};return _0x56c3();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5c4c58(0x194),'INSERT':_0x5c4c58(0x18f)};export class AIFormToolbarView extends _0x4296ca{constructor(_0x11e8d9){const _0x401407=_0x5c4c58;super(_0x11e8d9),this[_0x401407(0x191)](_0x401407(0x190),!0x1),this[_0x401407(0x191)](_0x401407(0x1a1),AIFormToolbarViewMainActionLabel[_0x401407(0x1a3)]),this[_0x401407(0x199)]=this[_0x401407(0x196)]('',_0x401407(0x18e)),this[_0x401407(0x199)][_0x401407(0x18d)](_0x401407(0x192))['to'](this,_0x401407(0x1a1),_0x1223de=>_0x24381d(_0x11e8d9,_0x401407(0x1a4)+_0x1223de[_0x401407(0x1a6)]()+_0x401407(0x19c))),this[_0x401407(0x18a)]=this[_0x401407(0x196)](_0x24381d(_0x11e8d9,_0x401407(0x1a2))),this[_0x401407(0x193)]=this[_0x401407(0x196)](_0x24381d(_0x11e8d9,_0x401407(0x198))),this[_0x401407(0x197)]=this[_0x401407(0x196)](_0x24381d(_0x11e8d9,_0x401407(0x195)));const _0x3446a1=this[_0x401407(0x1a8)];this[_0x401407(0x19d)]({'attributes':{'class':[_0x401407(0x19f),_0x3446a1['if'](_0x401407(0x190),_0x401407(0x1a7),_0x5a53ab=>!_0x5a53ab)]}}),this[_0x401407(0x1ac)][_0x401407(0x1a5)]([this[_0x401407(0x199)],this[_0x401407(0x18a)],this[_0x401407(0x193)],this[_0x401407(0x197)]]);}[_0x5c4c58(0x196)](_0x56b738,_0x22452e){const _0x1c343a=_0x5c4c58,_0x244149=new _0xd79fda(this[_0x1c343a(0x1a9)]);return _0x244149[_0x1c343a(0x191)]({'label':_0x56b738,'class':_0x22452e||'','isVisible':!0x0,'withText':!0x0}),_0x244149;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa2fded=_0x3f37;(function(_0xe44306,_0x5abec2){const _0x2dafde=_0x3f37,_0x21832f=_0xe44306();while(!![]){try{const _0x4d8db1=-parseInt(_0x2dafde(0x1dd))/0x1*(parseInt(_0x2dafde(0x1f2))/0x2)+-parseInt(_0x2dafde(0x1da))/0x3+-parseInt(_0x2dafde(0x1fb))/0x4+-parseInt(_0x2dafde(0x1cc))/0x5*(parseInt(_0x2dafde(0x1e8))/0x6)+-parseInt(_0x2dafde(0x207))/0x7+parseInt(_0x2dafde(0x1e5))/0x8+parseInt(_0x2dafde(0x1e6))/0x9;if(_0x4d8db1===_0x5abec2)break;else _0x21832f['push'](_0x21832f['shift']());}catch(_0x16c420){_0x21832f['push'](_0x21832f['shift']());}}}(_0x5517,0xc859e));function _0x5517(){const _0x2bf14c=['35YBQyqF','locale','insertContentBelow','ck-ai-form','setTemplate','promptView','listenTo','finishProcessing','stopProcessing','focus','reset','AI_ERROR_FAILED','fire','bindTemplate','524265sTdJQe','stopButton','tryAgainEvent','172507XQIvMd','focusLast','_createToolbar','tryAgainButton','isError','keystrokes','startProcessing','_createHistoryView','5873712lDSMYU','37091331ZqeyTv','set','659766VSuoAu','focusTracker','Empty\x20history','fieldView','isProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','replaceButton','bind','prompt','submit','8gVYEiY','high','Ask\x20AI\x20to\x20edit\x20or\x20generate','add','replaceContent','items','div','trim','clear','3803260EMDSlb','isVisible','execute','submitPrompt','focusFirst','search','shift\x20+\x20tab','value','mainAction','tab','ck-hidden','_promptHistory','10146570XvleKg','_createPromptView','createCollection','bindTo','queryView','text','REPLACE','isEnabled','clearHistory','errorView','label','insertButton','focusCycler','historyGroupView','toolbar','handleError','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','chain','contentArea','render','copyButtonView','ck-ai-form-content','_focusables','delegate','element'];_0x5517=function(){return _0x2bf14c;};return _0x5517();}import{FocusTracker as _0x77668c,KeystrokeHandler as _0x33e60b}from'ckeditor5/src/utils.js';import{View as _0x6fff77,FocusCycler as _0x49bd89,createLabeledTextarea as _0x1a7fe7}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x29c646,AIFormToolbarViewMainActionLabel as _0x4040fc}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x505224}from'./aiformcontentarea.js';function _0x3f37(_0x46d745,_0x554653){const _0x551794=_0x5517();return _0x3f37=function(_0x3f37e3,_0x54db1b){_0x3f37e3=_0x3f37e3-0x1c2;let _0x2f4362=_0x551794[_0x3f37e3];return _0x2f4362;},_0x3f37(_0x46d745,_0x554653);}import{AIFormErrorView as _0x4fd977}from'./aiformerrorview.js';import{AIFormPromptView as _0x10d4a6}from'./aiformpromptview.js';import{AIHistoryListView as _0x5ac152}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3b4451}from'./aihistorylistitemview.js';import{PromptHistory as _0x1f44ca}from'./prompthistory.js';import{getTranslation as _0x15567e}from'../../utils/common-translations.js';import{escape as _0x52c59f}from'es-toolkit/compat';export class AIFormView extends _0x6fff77{[_0xa2fded(0x1e9)];[_0xa2fded(0x1e2)];[_0xa2fded(0x1c5)];[_0xa2fded(0x215)];[_0xa2fded(0x1d1)];[_0xa2fded(0x210)];[_0xa2fded(0x1c9)];[_0xa2fded(0x213)];[_0xa2fded(0x206)];constructor(_0x384494,_0x1b20a6,_0x591e56=''){const _0x457236=_0xa2fded;super(_0x384494),this[_0x457236(0x1e7)](_0x457236(0x20e),!0x0),this[_0x457236(0x1e7)](_0x457236(0x1ec),!0x1),this[_0x457236(0x1e7)](_0x457236(0x1f0),''),this[_0x457236(0x1e7)](_0x457236(0x202),''),this[_0x457236(0x1e7)](_0x457236(0x1e1),!0x1),this[_0x457236(0x1e7)](_0x457236(0x203),_0x4040fc[_0x457236(0x20d)]),this[_0x457236(0x206)]=new _0x1f44ca(),this[_0x457236(0x210)]=new _0x4fd977(_0x384494),this[_0x457236(0x1c5)]=new _0x505224(_0x384494,_0x591e56),this[_0x457236(0x1c5)][_0x457236(0x1ef)](_0x457236(0x1ec))['to'](this),this[_0x457236(0x1c5)][_0x457236(0x1ef)](_0x457236(0x202))['to'](this),this[_0x457236(0x215)]=this[_0x457236(0x1df)](),this[_0x457236(0x215)][_0x457236(0x1ef)](_0x457236(0x203))['to'](this),this[_0x457236(0x1d1)]=this[_0x457236(0x208)](),this[_0x457236(0x1e9)]=new _0x77668c(),this[_0x457236(0x1e2)]=new _0x33e60b(),this[_0x457236(0x1c9)]=this[_0x457236(0x209)]([this[_0x457236(0x1c5)],this[_0x457236(0x1c5)][_0x457236(0x1c7)],this[_0x457236(0x215)],this[_0x457236(0x1d1)]]),this[_0x457236(0x213)]=new _0x49bd89({'focusables':this[_0x457236(0x1c9)],'focusTracker':this[_0x457236(0x1e9)],'keystrokeHandler':this[_0x457236(0x1e2)],'actions':{'focusPrevious':_0x457236(0x201),'focusNext':_0x457236(0x204)}}),this[_0x457236(0x213)][_0x457236(0x1c4)](this[_0x457236(0x1d1)][_0x457236(0x213)]),this[_0x457236(0x1d1)][_0x457236(0x20b)][_0x457236(0x1eb)][_0x457236(0x1ef)](_0x457236(0x202))['to'](this,_0x457236(0x1f0));const _0x109796=this[_0x457236(0x1d9)];this[_0x457236(0x1d0)]({'tag':_0x457236(0x1f8),'attributes':{'class':['ck',_0x457236(0x1cf),_0x1b20a6],'tabindex':'-1'},'children':[{'tag':_0x457236(0x1f8),'attributes':{'class':['ck',_0x457236(0x1c8)]},'children':[{'tag':_0x457236(0x1f8),'attributes':{'class':[_0x109796['if'](_0x457236(0x1e1),_0x457236(0x205),_0x577301=>!_0x577301)]},'children':[this[_0x457236(0x210)]]},this[_0x457236(0x1c5)],this[_0x457236(0x215)],this[_0x457236(0x1d1)]]}]});}[_0xa2fded(0x1c6)](){const _0x3b0182=_0xa2fded;super[_0x3b0182(0x1c6)](),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x1c5)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x1c5)][_0x3b0182(0x1c7)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x215)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e9)][_0x3b0182(0x1f5)](this[_0x3b0182(0x1d1)][_0x3b0182(0x1cb)]),this[_0x3b0182(0x1e2)][_0x3b0182(0x1d2)](this[_0x3b0182(0x1cb)]);}[_0xa2fded(0x1d5)](_0x21258a=0x1){const _0x5d2b8e=_0xa2fded;-0x1===_0x21258a?this[_0x5d2b8e(0x213)][_0x5d2b8e(0x1de)]():this[_0x5d2b8e(0x213)][_0x5d2b8e(0x1ff)]();}[_0xa2fded(0x1d6)](){const _0x267d63=_0xa2fded;this[_0x267d63(0x1f0)]='',this[_0x267d63(0x202)]='',this[_0x267d63(0x1e1)]=!0x1,this[_0x267d63(0x1d1)][_0x267d63(0x1d6)](),this[_0x267d63(0x1c5)][_0x267d63(0x1fc)]=!0x1,this[_0x267d63(0x215)][_0x267d63(0x1fc)]=!0x1;}[_0xa2fded(0x208)](){const _0xccd587=_0xa2fded,_0x2f92d3=this[_0xccd587(0x1cd)],_0x163f90=new _0x10d4a6(_0x2f92d3,{'queryView':{'label':_0x15567e(_0x2f92d3,_0xccd587(0x1f4)),'creator':_0x1a7fe7,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x15567e(_0x2f92d3,_0xccd587(0x1ea)),'secondary':_0x15567e(_0x2f92d3,_0xccd587(0x1c3))}}},'filteredView':this[_0xccd587(0x1e4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x163f90[_0xccd587(0x1ef)](_0xccd587(0x20e))['to'](this,_0xccd587(0x20e),this,_0xccd587(0x1ec),(_0x1f2976,_0x7a99d2)=>_0x1f2976&&!_0x7a99d2),this[_0xccd587(0x1d2)](_0x163f90,_0xccd587(0x1f1),(_0x424a01,_0xb0e4af)=>{const _0x1fa43b=_0xccd587;this[_0x1fa43b(0x1f0)]=_0xb0e4af;const _0x1c9966=_0x52c59f(_0xb0e4af);this[_0x1fa43b(0x1d8)](_0x1fa43b(0x1fe),_0x1c9966),_0xb0e4af[_0x1fa43b(0x1f9)]()&&this[_0x1fa43b(0x206)][_0x1fa43b(0x1f5)]({'prompt':_0x1c9966},0x0);},{'priority':_0xccd587(0x1f3)}),_0x163f90;}[_0xa2fded(0x1e4)](){const _0x41b709=_0xa2fded,_0x473427=new _0x5ac152(this[_0x41b709(0x1cd)]);return _0x473427[_0x41b709(0x214)][_0x41b709(0x1f7)][_0x41b709(0x20a)](this[_0x41b709(0x206)])['as'](_0x3b4451),_0x473427['on'](_0x41b709(0x20f),()=>{const _0x2c14d8=_0x41b709;this[_0x2c14d8(0x206)][_0x2c14d8(0x1fa)](),this[_0x2c14d8(0x1d1)][_0x2c14d8(0x200)](''),this[_0x2c14d8(0x1d1)][_0x2c14d8(0x1d5)]();}),_0x473427;}[_0xa2fded(0x1df)](){const _0x34e272=_0xa2fded,_0x48e3c8=new _0x29c646(this[_0x34e272(0x1cd)]);return _0x48e3c8[_0x34e272(0x1ee)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x20e),this,_0x34e272(0x1ec),this,_0x34e272(0x202),(_0x586eee,_0x443acf,_0x252aa6)=>_0x586eee&&!_0x443acf&&!!_0x252aa6),_0x48e3c8[_0x34e272(0x1ee)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1f6)),_0x48e3c8[_0x34e272(0x212)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x20e),this,_0x34e272(0x1ec),this,_0x34e272(0x202),(_0x12a66e,_0x5d16ac,_0x48b696)=>_0x12a66e&&!_0x5d16ac&&!!_0x48b696),_0x48e3c8[_0x34e272(0x212)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1ce)),_0x48e3c8[_0x34e272(0x1e0)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x20e),this,_0x34e272(0x1ec),(_0x234490,_0x369ff1)=>_0x234490&&!_0x369ff1),_0x48e3c8[_0x34e272(0x1e0)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1dc)),_0x48e3c8[_0x34e272(0x1db)][_0x34e272(0x1ef)](_0x34e272(0x20e))['to'](this,_0x34e272(0x1ec)),_0x48e3c8[_0x34e272(0x1db)][_0x34e272(0x1ca)](_0x34e272(0x1fd))['to'](this,_0x34e272(0x1d4)),_0x48e3c8;}[_0xa2fded(0x1e3)](){const _0xa64e88=_0xa2fded;this[_0xa64e88(0x202)]='',this[_0xa64e88(0x1e1)]=!0x1,this[_0xa64e88(0x1ec)]=!0x0,this[_0xa64e88(0x1c5)][_0xa64e88(0x1fc)]=!0x0,this[_0xa64e88(0x215)][_0xa64e88(0x1fc)]=!0x0,this[_0xa64e88(0x1c5)][_0xa64e88(0x1d5)]();}[_0xa2fded(0x1d3)](){const _0x4c9b96=_0xa2fded,_0xc91d24=this[_0x4c9b96(0x1cd)];this[_0x4c9b96(0x1ec)]=!0x1,this[_0x4c9b96(0x1f0)]='',this[_0x4c9b96(0x1d1)][_0x4c9b96(0x1d6)](),this[_0x4c9b96(0x202)]&&(this[_0x4c9b96(0x1d1)][_0x4c9b96(0x20b)][_0x4c9b96(0x211)]=_0x15567e(_0xc91d24,_0x4c9b96(0x1ed)));}[_0xa2fded(0x1c2)](_0x5cc6b4){const _0x420bf6=_0xa2fded,_0x52cff5=this[_0x420bf6(0x1cd)];this[_0x420bf6(0x1d3)](),this[_0x420bf6(0x1e1)]=!0x0,this[_0x420bf6(0x210)][_0x420bf6(0x20c)]=_0x5cc6b4||_0x15567e(_0x52cff5,_0x420bf6(0x1d7)),this[_0x420bf6(0x202)]||(this[_0x420bf6(0x1c5)][_0x420bf6(0x1fc)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2843(_0x627c4e,_0x3dc110){const _0x1b223a=_0x1b22();return _0x2843=function(_0x2843e4,_0x41308b){_0x2843e4=_0x2843e4-0x157;let _0x21f3d2=_0x1b223a[_0x2843e4];return _0x21f3d2;},_0x2843(_0x627c4e,_0x3dc110);}(function(_0x2ae6e7,_0x100736){const _0x1551a1=_0x2843,_0x383c88=_0x2ae6e7();while(!![]){try{const _0x2fc6e4=-parseInt(_0x1551a1(0x163))/0x1+-parseInt(_0x1551a1(0x15a))/0x2*(parseInt(_0x1551a1(0x162))/0x3)+-parseInt(_0x1551a1(0x157))/0x4+parseInt(_0x1551a1(0x164))/0x5*(parseInt(_0x1551a1(0x15c))/0x6)+-parseInt(_0x1551a1(0x15d))/0x7*(-parseInt(_0x1551a1(0x15f))/0x8)+-parseInt(_0x1551a1(0x168))/0x9*(-parseInt(_0x1551a1(0x160))/0xa)+parseInt(_0x1551a1(0x161))/0xb*(-parseInt(_0x1551a1(0x166))/0xc);if(_0x2fc6e4===_0x100736)break;else _0x383c88['push'](_0x383c88['shift']());}catch(_0x27a087){_0x383c88['push'](_0x383c88['shift']());}}}(_0x1b22,0xc8aa8));function _0x1b22(){const _0x46d747=['add','2257456uRIFWI','prompt','children','926wOvwKR','execute','7969092BlDbzU','10703QNZMbi','locale','7160gGBmuQ','10YpUFxu','44QNUGbI','4089vhNRvN','823285iwdPcX','5OXRhet','set','3084348DyBurh','fire','10549125mVjgKS'];_0x1b22=function(){return _0x46d747;};return _0x1b22();}import{ListItemView as _0x536695,ButtonView as _0x52eb3c,ButtonLabelView as _0x6dceb0}from'ckeditor5/src/ui.js';import{unescape as _0xb9bdc4}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x536695{constructor(_0xed5504){const _0x343956=_0x2843;super();const _0x1f0d97=new _0x6dceb0(),_0x57eff0=new _0x52eb3c(this[_0x343956(0x15e)],_0x1f0d97);this[_0x343956(0x159)][_0x343956(0x169)](_0x57eff0),_0x57eff0[_0x343956(0x165)]({'label':_0xed5504[_0x343956(0x158)],'withText':!0x0}),_0x57eff0['on'](_0x343956(0x15b),()=>{const _0x1a83c6=_0x343956;this[_0x1a83c6(0x167)](_0x1a83c6(0x15b),{'value':_0xb9bdc4(_0xed5504[_0x1a83c6(0x158)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22a49b=_0x451a;function _0x451a(_0x385065,_0x309649){const _0x155040=_0x1550();return _0x451a=function(_0x451ac7,_0x4da79f){_0x451ac7=_0x451ac7-0xb3;let _0x49691a=_0x155040[_0x451ac7];return _0x49691a;},_0x451a(_0x385065,_0x309649);}(function(_0x333e15,_0x4aa465){const _0x8a5e62=_0x451a,_0x25cecf=_0x333e15();while(!![]){try{const _0x494eaa=-parseInt(_0x8a5e62(0xcb))/0x1*(parseInt(_0x8a5e62(0xc0))/0x2)+parseInt(_0x8a5e62(0xb7))/0x3*(parseInt(_0x8a5e62(0xc3))/0x4)+-parseInt(_0x8a5e62(0xba))/0x5+parseInt(_0x8a5e62(0xc5))/0x6+-parseInt(_0x8a5e62(0xca))/0x7*(-parseInt(_0x8a5e62(0xc4))/0x8)+parseInt(_0x8a5e62(0xc9))/0x9+-parseInt(_0x8a5e62(0xb8))/0xa*(parseInt(_0x8a5e62(0xc8))/0xb);if(_0x494eaa===_0x4aa465)break;else _0x25cecf['push'](_0x25cecf['shift']());}catch(_0x5257e9){_0x25cecf['push'](_0x25cecf['shift']());}}}(_0x1550,0x6f1fd));import{ListView as _0x2caa07,ListItemGroupView as _0xef87f8,ButtonView as _0x52500d}from'ckeditor5/src/ui.js';function _0x1550(){const _0x3aa836=['label','clearHistory','set','_createClearHistoryButton','delegate','15cpaXWh','6388450hSjphK','execute','602385AdGVGW','Clear','clearHistoryButton','fire','children','length','50354JRvlUd','filter','Prompt\x20history','672172glGIyi','40WUwcJP','2800926TMTbCx','add','items','11pzxmNd','459828GSWIKI','609602ghLCHq','23oHfjpi','historyGroupView','locale'];_0x1550=function(){return _0x3aa836;};return _0x1550();}import{getTranslation as _0x257153}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x2caa07{[_0x22a49b(0xcc)];[_0x22a49b(0xbc)];constructor(_0x18abd5){const _0x2204c0=_0x22a49b;super(_0x18abd5),this[_0x2204c0(0xbc)]=this[_0x2204c0(0xb5)](),this[_0x2204c0(0xcc)]=new _0xef87f8(),this[_0x2204c0(0xcc)][_0x2204c0(0xbe)][_0x2204c0(0xc6)](this[_0x2204c0(0xbc)],0x1),this[_0x2204c0(0xcc)][_0x2204c0(0xce)]=_0x257153(_0x18abd5,_0x2204c0(0xc2)),this[_0x2204c0(0xcc)][_0x2204c0(0xc7)][_0x2204c0(0xb6)](_0x2204c0(0xb9))['to'](this),this[_0x2204c0(0xc7)][_0x2204c0(0xc6)](this[_0x2204c0(0xcc)]);}[_0x22a49b(0xc1)](){const _0x2da544=_0x22a49b;let _0x4cff38=0x0;for(const _0x267839 of this[_0x2da544(0xc7)])_0x4cff38+=_0x267839[_0x2da544(0xc7)][_0x2da544(0xbf)];return{'resultsCount':_0x4cff38,'totalItemsCount':_0x4cff38};}[_0x22a49b(0xb5)](){const _0x2d850b=_0x22a49b,_0xc6b71a=this[_0x2d850b(0xcd)],_0x46d96d=new _0x52500d(this[_0x2d850b(0xcd)]);return _0x46d96d[_0x2d850b(0xb4)]({'label':'('+_0x257153(_0xc6b71a,_0x2d850b(0xbb))+')','withText':!0x0}),_0x46d96d['on'](_0x2d850b(0xb9),()=>this[_0x2d850b(0xbd)](_0x2d850b(0xb3))),_0x46d96d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1541(_0x4d210e,_0x42f5fa){const _0x3a4ca0=_0x3a4c();return _0x1541=function(_0x154147,_0x48fe42){_0x154147=_0x154147-0x1d0;let _0x4a2b15=_0x3a4ca0[_0x154147];return _0x4a2b15;},_0x1541(_0x4d210e,_0x42f5fa);}const _0x189017=_0x1541;(function(_0x475195,_0x18ab41){const _0x5cc2da=_0x1541,_0x282fd6=_0x475195();while(!![]){try{const _0x58960a=parseInt(_0x5cc2da(0x1d1))/0x1+-parseInt(_0x5cc2da(0x1df))/0x2+-parseInt(_0x5cc2da(0x1db))/0x3+-parseInt(_0x5cc2da(0x1e0))/0x4*(-parseInt(_0x5cc2da(0x1d3))/0x5)+parseInt(_0x5cc2da(0x1e3))/0x6+parseInt(_0x5cc2da(0x1d8))/0x7*(-parseInt(_0x5cc2da(0x1d5))/0x8)+parseInt(_0x5cc2da(0x1d9))/0x9;if(_0x58960a===_0x18ab41)break;else _0x282fd6['push'](_0x282fd6['shift']());}catch(_0x5c0d08){_0x282fd6['push'](_0x282fd6['shift']());}}}(_0x3a4c,0x49039));import{Collection as _0xdfaecf}from'ckeditor5/src/utils.js';const So=_0x189017(0x1e6);function _0x3a4c(){const _0x220491=['trim','prompt','14144KthiMv','getItem','119775CRckoh','remove','680728cObWrK','_loadFromSessionStorage','map','7ccwQZv','4490325OAqruQ','last','1694682gbnBZF','length','toLowerCase','addMany','907584wbdDdC','92xPaNYp','parse','_saveToSessionStorage','2032848yoYbyI','stringify','setItem','CKEditor/AIFormView/PromptHistory','add'];_0x3a4c=function(){return _0x220491;};return _0x3a4c();}export class PromptHistory extends _0xdfaecf{constructor(){const _0x21773c=_0x189017;super(),this[_0x21773c(0x1d6)](),this['on'](_0x21773c(0x1e7),(_0x3e51dc,_0xdc33a)=>{const _0x58d140=_0x21773c,_0x21bba0=fo(_0xdc33a[_0x58d140(0x1d0)]);for(const _0x4d1f8d of this)if(_0x4d1f8d!=_0xdc33a&&fo(_0x4d1f8d[_0x58d140(0x1d0)])===_0x21bba0){this[_0x58d140(0x1d4)](_0x4d1f8d);break;}this[_0x58d140(0x1dc)]>0x14&&this[_0x58d140(0x1d4)](this[_0x58d140(0x1da)]),this[_0x58d140(0x1e2)]();}),this['on'](_0x21773c(0x1d4),()=>{const _0x4e8c3e=_0x21773c;this[_0x4e8c3e(0x1e2)]();});}[_0x189017(0x1d6)](){const _0x4a0d2c=_0x189017,_0x38cd78=sessionStorage[_0x4a0d2c(0x1d2)](So)||'[]';this[_0x4a0d2c(0x1de)](JSON[_0x4a0d2c(0x1e1)](_0x38cd78));}[_0x189017(0x1e2)](){const _0x167919=_0x189017;sessionStorage[_0x167919(0x1e5)](So,JSON[_0x167919(0x1e4)](this[_0x167919(0x1d7)](_0x4d7372=>_0x4d7372)));}}function fo(_0xb29e97){const _0x1003ab=_0x189017;return _0xb29e97[_0x1003ab(0x1dd)]()[_0x1003ab(0x1e8)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x41ad37=_0x5a65;(function(_0x39ddf2,_0xff6c8){const _0x58ea32=_0x5a65,_0x261147=_0x39ddf2();while(!![]){try{const _0x561681=-parseInt(_0x58ea32(0x15e))/0x1*(-parseInt(_0x58ea32(0x151))/0x2)+-parseInt(_0x58ea32(0x153))/0x3*(parseInt(_0x58ea32(0x166))/0x4)+parseInt(_0x58ea32(0x168))/0x5+-parseInt(_0x58ea32(0x16f))/0x6+parseInt(_0x58ea32(0x15d))/0x7+-parseInt(_0x58ea32(0x174))/0x8+parseInt(_0x58ea32(0x15b))/0x9*(parseInt(_0x58ea32(0x154))/0xa);if(_0x561681===_0xff6c8)break;else _0x261147['push'](_0x261147['shift']());}catch(_0x9fd926){_0x261147['push'](_0x261147['shift']());}}}(_0x21fa,0x341aa));function _0x5a65(_0x34cb03,_0x99b365){const _0x21fa04=_0x21fa();return _0x5a65=function(_0x5a6558,_0x587f75){_0x5a6558=_0x5a6558-0x150;let _0x113e28=_0x21fa04[_0x5a6558];return _0x113e28;},_0x5a65(_0x34cb03,_0x99b365);}import{Command as _0x58b2d1}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x18c8f2}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x58b2d1{[_0x41ad37(0x178)];constructor(_0xd58930,_0x289365){const _0x39392c=_0x41ad37;super(_0xd58930),this[_0x39392c(0x178)]=_0x289365,this[_0x39392c(0x170)](_0x39392c(0x150),[]),this['on'](_0x39392c(0x176),(_0x3a1487,_0x59f5e6,_0x75e6d8)=>{const _0x2e8279=_0x39392c;this[_0x2e8279(0x173)]&&(this[_0x2e8279(0x150)]=ns(this[_0x2e8279(0x178)],_0x75e6d8));}),this[_0x39392c(0x170)](_0x39392c(0x16a),!0x1),this['on'](_0x39392c(0x161),(_0x119d5c,_0x23e66c,_0x1b8c1e)=>{const _0x50eb77=_0x39392c;this[_0x50eb77(0x150)]=_0x1b8c1e?ns(this[_0x50eb77(0x178)],this[_0x50eb77(0x16a)]):[];});}[_0x41ad37(0x164)](){const _0x36b3b8=_0x41ad37,_0x16b271=this[_0x36b3b8(0x172)][_0x36b3b8(0x162)];this[_0x36b3b8(0x16a)]=function(_0x1c0866){const _0x390627=_0x36b3b8,_0x42a232=_0x1c0866[_0x390627(0x16c)][_0x390627(0x152)];return _0x42a232[_0x390627(0x169)]?0x0!==[..._0x42a232[_0x390627(0x175)]()][_0x390627(0x16b)]&&![..._0x42a232[_0x390627(0x175)]()][0x0][_0x390627(0x165)]:!!_0x1c0866[_0x390627(0x177)](_0x42a232[_0x390627(0x15f)]());}(_0x16b271);const _0x21598c=_0x16b271[_0x36b3b8(0x16c)][_0x36b3b8(0x152)],_0x6f4aba=this[_0x36b3b8(0x172)][_0x36b3b8(0x15a)][_0x36b3b8(0x15c)](_0x36b3b8(0x17a));for(const _0x5602f9 of _0x21598c[_0x36b3b8(0x156)]())for(const _0x5f10c8 of _0x5602f9[_0x36b3b8(0x159)]())if(_0x5f10c8['is'](_0x36b3b8(0x163))&&_0x6f4aba[_0x36b3b8(0x17b)](_0x5f10c8[_0x36b3b8(0x16d)]))return void(this[_0x36b3b8(0x173)]=!0x1);this[_0x36b3b8(0x173)]=!0x0;}[_0x41ad37(0x16e)](_0x158d55='',_0xc1a720='',_0x286c9f=_0x41ad37(0x160)){const _0x3e6484=_0x41ad37;this[_0x3e6484(0x172)][_0x3e6484(0x171)][_0x3e6484(0x15c)](_0x18c8f2)[_0x3e6484(0x158)](_0x158d55,_0xc1a720,_0x286c9f);}}function ns(_0x5c70d7,_0x58fdcf){const _0x5e873e=_0x41ad37,_0x3e67b9=new Set();for(const _0x408337 of _0x5c70d7[_0x5e873e(0x157)]())(_0x58fdcf||!0x1===_0x408337[_0x5e873e(0x155)])&&_0x3e67b9[_0x5e873e(0x167)](_0x408337['id']);return Array[_0x5e873e(0x179)](_0x3e67b9);}function _0x21fa(){const _0x4089d9=['2372454jQnYJS','58549LxnJwb','getFirstRange','custom','change:isEnabled','model','element','refresh','isEmpty','1535288jGqVoG','add','1144385GofLJt','isCollapsed','_hasContext','length','document','name','execute','1639158sIDiWo','set','plugins','editor','isEnabled','393288YURORt','getSelectedBlocks','change:_hasContext','hasContent','_commandDefinitions','from','ai.assistant.disabledElements','includes','enabledCommandsIds','2GkdffQ','selection','3EzYczN','1466230XlYEAC','requiresContent','getRanges','values','showUI','getItems','config','18sBJdyb','get'];_0x21fa=function(){return _0x4089d9;};return _0x21fa();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3ed1d4,_0xdd77ad,_0x47629a){const t=_0x3ed1d4['t'];switch(_0xdd77ad){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'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'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x47629a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x47629a);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'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_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x47629a);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 _0xdd77ad;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x11bec7,_0x1b4612){const _0x110886=(0x0,_0x1b4612['t'])('Other');return _0x11bec7['length']?'groupId'in _0x11bec7[0x0]?_0x11bec7:[{'groupId':'_ungrouppedCommands','groupLabel':_0x110886,'order':0x1/0x0,'commands':_0x11bec7}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x110886,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x49a8(_0x14a852,_0xaab60e){const _0x9abf2b=_0x9abf();return _0x49a8=function(_0x49a85a,_0x82afba){_0x49a85a=_0x49a85a-0x9a;let _0x2d85fa=_0x9abf2b[_0x49a85a];return _0x2d85fa;},_0x49a8(_0x14a852,_0xaab60e);}const _0x594943=_0x49a8;(function(_0x169e6c,_0x9431ca){const _0x40e690=_0x49a8,_0x3d5ea2=_0x169e6c();while(!![]){try{const _0x584b8d=parseInt(_0x40e690(0xc7))/0x1*(parseInt(_0x40e690(0xc6))/0x2)+-parseInt(_0x40e690(0xf0))/0x3+-parseInt(_0x40e690(0xf4))/0x4*(parseInt(_0x40e690(0xb2))/0x5)+parseInt(_0x40e690(0xda))/0x6*(-parseInt(_0x40e690(0xf2))/0x7)+parseInt(_0x40e690(0xaa))/0x8*(-parseInt(_0x40e690(0xd1))/0x9)+parseInt(_0x40e690(0xd7))/0xa*(parseInt(_0x40e690(0xbd))/0xb)+parseInt(_0x40e690(0xc2))/0xc*(parseInt(_0x40e690(0xde))/0xd);if(_0x584b8d===_0x9431ca)break;else _0x3d5ea2['push'](_0x3d5ea2['shift']());}catch(_0x5927b7){_0x3d5ea2['push'](_0x3d5ea2['shift']());}}}(_0x9abf,0xb8107));import{ContextPlugin as _0x4c44d8}from'ckeditor5/src/core.js';import{AIConnector as _0x4faaba}from'../aicore/aiconnector.js';import{AIEditing as _0x541d53}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x3ddec8,AIBalloonView as _0x17a6f8}from'./ui/aiballoonview.js';function _0x9abf(){const _0x5c83ed=['2127696ydJcyb','dialogClosed','get','iconView','once','hideFakeVisualSelection','context','_setupVisualSelection','locale','ai-selection','getBoundingRect','headerView','bind','height','config','ai-selection:','end','showRotator','getChangedMarkers','_cleanupMarkerRemovalListener','_showDialog','_isUpdatingMarkers','document','render','editing','max','isOpen','showBlockingError','content','updatePosition','title','model','hide','mainView','root','open','1773608jTOTcn','_calculateOptimalTopPosition','ai.availableReplyActions','change','$graveyard','plugins','_config','commands','10wAdACO','show','delegate','icon','_calculateDialogPosition','view','ai-balloon-selection','left','selectionRemoved','ai-balloon','round','11LwIBbD','start','isOfficialPlugin','_pendingRenderCallback','isTrackChangesOn','1038456lWRXKp','filter','markers','getVisible','1630flGJVZ','615RoxiCm','isPremiumPlugin','window','listenTo','top','isEqual','\x20ai-balloon-rotator','rootName','getMarkersGroup','requires','9aEOIXa','_setupMarkerRemovalListener','off','length','startsWith','trackChanges','6120970wlaQwA','pluginName','AIEditing','2869566ZWMiVn','showFakeVisualSelection','value','getIntersection','481IXjTdK','setupRotator','Dialog','label','ai-balloon-','_getSelectionElements','differ','_updateBalloon','width','stopListening','balloonView','AIBalloon','fire','aiBalloon','close','bottom','AI_ACTIONS_SELECTION_REMOVED_ERROR','index','3957690rVUQrM','ranges','14wypUsQ','updateContent'];_0x9abf=function(){return _0x5c83ed;};return _0x9abf();}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5bb22e}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4fac96,Rect as _0x5c9757,scrollViewportToShowTarget as _0x11fcae}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x57aced}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x51b2a3}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x32b6f2}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x3ddec8,_0x594943(0xf5),_0x594943(0xba)];const z=0xa;export class AIBalloon extends _0x4c44d8{static get[_0x594943(0xd0)](){return[_0x4faaba,_0x541d53];}static get[_0x594943(0xd8)](){const _0x2ac4e1=_0x594943;return _0x2ac4e1(0xe9);}static get[_0x594943(0xbf)](){return!0x0;}static get[_0x594943(0xc8)](){return!0x0;}[_0x594943(0xa0)]=!0x1;[_0x594943(0xb0)];[_0x594943(0x9b)]=!0x1;[_0x594943(0xc0)]=null;[_0x594943(0xa9)](_0x729d77){const _0x5e29f4=_0x594943,_0x389994=_0x57aced(this[_0x5e29f4(0xfa)]);if(this[_0x5e29f4(0xb0)]=_0x729d77,this[_0x5e29f4(0xa0)])return void this[_0x5e29f4(0xe5)](_0x729d77);const _0x165344=this[_0x5e29f4(0xfa)][_0x5e29f4(0x102)][_0x5e29f4(0xf6)](_0x5e29f4(0xac))||[..._0x51b2a3],_0x21a39d=_0x389994?.[_0x5e29f4(0xb1)][_0x5e29f4(0xf6)](_0x5e29f4(0xd6)),_0x35b454=_0x21a39d?.[_0x5e29f4(0xdc)];this[_0x5e29f4(0xe8)]=new _0x17a6f8(_0x389994[_0x5e29f4(0xfc)],_0x729d77,_0x165344,!!_0x35b454),this[_0x5e29f4(0xe8)][_0x5e29f4(0xb4)](..._0x3ddec8)['to'](this),_0x21a39d&&this[_0x5e29f4(0xe8)][_0x5e29f4(0x100)](_0x5e29f4(0xc1))['to'](_0x21a39d,_0x5e29f4(0xdc)),this[_0x5e29f4(0x9a)](_0x729d77);}[_0x594943(0xec)](){const _0x2ab8f5=_0x594943;_0x57aced(this[_0x2ab8f5(0xfa)])[_0x2ab8f5(0xaf)][_0x2ab8f5(0xf6)](_0x2ab8f5(0xe0))[_0x2ab8f5(0xa6)]();}[_0x594943(0xe5)](_0x7e910f){const _0x1669b0=_0x594943,_0x2e1e35=_0x57aced(this[_0x1669b0(0xfa)]),_0x1bc38e=_0x2e1e35[_0x1669b0(0xaf)][_0x1669b0(0xf6)](_0x1669b0(0xe0));this[_0x1669b0(0xc0)]&&(_0x2e1e35[_0x1669b0(0x9e)][_0x1669b0(0xb7)][_0x1669b0(0xd3)](_0x1669b0(0x9d),this[_0x1669b0(0xc0)]),this[_0x1669b0(0xc0)]=null),this[_0x1669b0(0x9b)]=!0x0,_0x1bc38e[_0x1669b0(0xb7)]?.[_0x1669b0(0xff)]&&(_0x1bc38e[_0x1669b0(0xb7)][_0x1669b0(0xff)][_0x1669b0(0xe1)]=_0x7e910f[_0x1669b0(0xa4)],_0x1bc38e[_0x1669b0(0xb7)][_0x1669b0(0xff)][_0x1669b0(0xf7)]&&_0x7e910f[_0x1669b0(0xb5)]&&(_0x1bc38e[_0x1669b0(0xb7)][_0x1669b0(0xff)][_0x1669b0(0xf7)][_0x1669b0(0xa2)]=_0x7e910f[_0x1669b0(0xb5)])),this[_0x1669b0(0xe8)][_0x1669b0(0xf3)](_0x7e910f[_0x1669b0(0xa7)]),this[_0x1669b0(0xfb)](_0x7e910f[_0x1669b0(0xf1)],_0x7e910f[_0x1669b0(0xef)]),this[_0x1669b0(0xc0)]=()=>{const _0x7706fb=_0x1669b0;this[_0x7706fb(0x9b)]=!0x1,this[_0x7706fb(0xc0)]=null,_0x1bc38e[_0x7706fb(0xb7)]&&_0x1bc38e[_0x7706fb(0xb7)][_0x7706fb(0xa3)]();},_0x2e1e35[_0x1669b0(0x9e)][_0x1669b0(0xb7)][_0x1669b0(0xf8)](_0x1669b0(0x9d),this[_0x1669b0(0xc0)]);}[_0x594943(0xfb)](_0xcde2df,_0x5e57d1){const _0x18973b=_0x594943;this[_0x18973b(0xfa)][_0x18973b(0xaf)][_0x18973b(0xf6)](_0x541d53)[_0x18973b(0xdb)](_0xcde2df,_0x18973b(0xe2)+_0x5e57d1,!0x0,!0x0);}[_0x594943(0x9a)](_0x31f227){const _0x5c3877=_0x594943,_0x4ae472=_0x57aced(this[_0x5c3877(0xfa)]);this[_0x5c3877(0xfb)](_0x31f227[_0x5c3877(0xf1)],_0x31f227[_0x5c3877(0xef)]);const _0x3b20de=this[_0x5c3877(0xe3)]();_0x3b20de&&_0x3b20de[0x0]&&_0x11fcae({'target':_0x3b20de[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4ae472[_0x5c3877(0xaf)][_0x5c3877(0xf6)](_0x5c3877(0xe0))[_0x5c3877(0xb3)]({'title':_0x31f227[_0x5c3877(0xa4)],'icon':_0x31f227[_0x5c3877(0xb5)],'hasCloseButton':!0x0,'id':_0x5c3877(0xeb),'position':this[_0x5c3877(0xb6)][_0x5c3877(0x100)](this),'className':_0x5c3877(0xbb)+(_0x31f227[_0x5c3877(0x105)]?_0x5c3877(0xcd):''),'content':this[_0x5c3877(0xe8)],'onShow':_0x17c5d6=>{const _0x13cda0=_0x5c3877;_0x31f227[_0x13cda0(0x105)]&&this[_0x13cda0(0xe8)][_0x13cda0(0xdf)](_0x17c5d6),this[_0x13cda0(0xd2)](),this[_0x13cda0(0xa0)]=!0x0;},'onHide':()=>{const _0x4bd378=_0x5c3877;this[_0x4bd378(0xfa)][_0x4bd378(0xaf)][_0x4bd378(0xf6)](_0x4bd378(0xd9))[_0x4bd378(0xf9)](_0x4bd378(0xe2)+this[_0x4bd378(0xb0)][_0x4bd378(0xef)]),this[_0x4bd378(0x107)](),this[_0x4bd378(0xea)](_0x4bd378(0xf5)),this[_0x4bd378(0xa0)]=!0x1;}});}[_0x594943(0xb6)](_0x28de06,_0x2d2b59){const _0x4e5347=_0x594943;if(!_0x2d2b59)return null;const _0xdc6efb=this[_0x4e5347(0xe3)]();if(!_0xdc6efb||0x0===_0xdc6efb[_0x4e5347(0xd4)])return{'left':Math[_0x4e5347(0xbc)](_0x2d2b59[_0x4e5347(0xb9)]+_0x2d2b59[_0x4e5347(0xe6)]/0x2-_0x28de06[_0x4e5347(0xe6)]/0x2),'top':Math[_0x4e5347(0xbc)](_0x2d2b59[_0x4e5347(0xcb)]+_0x2d2b59[_0x4e5347(0x101)]/0x2-_0x28de06[_0x4e5347(0x101)]/0x2)};const _0x2ad6ef=Math[_0x4e5347(0xbc)](_0x2d2b59[_0x4e5347(0xb9)]+_0x2d2b59[_0x4e5347(0xe6)]/0x2-_0x28de06[_0x4e5347(0xe6)]/0x2),_0xf0a584=new _0x5c9757(_0xdc6efb[0x0]),_0x105c9c=new _0x5c9757(_0xdc6efb[_0xdc6efb[_0x4e5347(0xd4)]-0x1]),_0x50b99c=_0x28de06[_0x4e5347(0x101)],_0xd8035=this[_0x4e5347(0xb0)][_0x4e5347(0x105)]?0x8:0x0;return{'left':_0x2ad6ef,'top':this[_0x4e5347(0xab)](_0xf0a584,_0x105c9c,_0x50b99c,_0xd8035,_0x2d2b59)};}[_0x594943(0xab)](_0x3e62ce,_0x358159,_0x49c437,_0x466ba7=0x0,_0x466282){const _0x50cd63=_0x594943,_0x57bcb3=_0x49c437+_0x466ba7,_0xc976fa=new _0x5c9757(_0x4fac96[_0x50cd63(0xc9)]),_0x33e63f=[_0x3e62ce[_0x50cd63(0xc5)](),_0x358159[_0x50cd63(0xc5)]()][_0x50cd63(0xc3)](_0x1a3ff7=>_0x1a3ff7),_0x185858=_0x5c9757[_0x50cd63(0xfe)](_0x33e63f);if(!_0x185858)return Math[_0x50cd63(0xbc)](_0x466282[_0x50cd63(0xcb)]+_0x466282[_0x50cd63(0x101)]/0x2);const _0x1341b5=_0xc976fa[_0x50cd63(0xdd)](_0x185858);if(!_0x1341b5)return Math[_0x50cd63(0xbc)](_0x466282[_0x50cd63(0xcb)]+_0x466282[_0x50cd63(0x101)]/0x2);const _0x1b3fc5=_0x466282[_0x50cd63(0xc5)](),_0x16213c=_0x1b3fc5&&_0x185858[_0x50cd63(0x101)]>_0x1b3fc5[_0x50cd63(0x101)],_0x508c9a=_0x1341b5[_0x50cd63(0xcb)],_0xa04837=_0x1341b5[_0x50cd63(0xed)];if(_0x16213c){const _0x38f1cd=(_0x1b3fc5||_0xc976fa)[_0x50cd63(0x101)]/0x2-_0x57bcb3/0x2,_0x4548af=_0x508c9a-z-_0x466282[_0x50cd63(0xcb)],_0x8c27b6=_0x466282[_0x50cd63(0xed)]-_0xa04837-z;return _0x4548af>=_0x57bcb3?Math[_0x50cd63(0x9f)](z,_0x508c9a-_0x57bcb3-z):_0x8c27b6>=_0x57bcb3?_0xa04837+z:Math[_0x50cd63(0x9f)](z,_0x38f1cd);}const _0x17a402=_0x508c9a-_0x57bcb3,_0xe49916=_0x466282[_0x50cd63(0xed)]-_0xa04837-z,_0x1fafc5=_0x508c9a-z-_0x466282[_0x50cd63(0xcb)];let _0x103c12;if(_0xe49916>=_0x57bcb3)_0x103c12=_0xa04837+z;else{if(_0x1fafc5>=_0x57bcb3)_0x103c12=_0x17a402-z;else _0x103c12=_0x508c9a+_0x185858[_0x50cd63(0x101)]/0x2-_0x57bcb3/0x2;}return _0x103c12;}[_0x594943(0xd2)](){const _0x245826=_0x594943,_0x2ad0de=_0x57aced(this[_0x245826(0xfa)]);this[_0x245826(0xca)](_0x2ad0de[_0x245826(0xa5)][_0x245826(0x9c)],_0x245826(0xad),()=>{const _0x556388=_0x245826;if(this[_0x556388(0x9b)])return;for(const {name:_0x2be783,data:{newRange:_0x30d2e3}}of _0x2ad0de[_0x556388(0xa5)][_0x556388(0x9c)][_0x556388(0xe4)][_0x556388(0x106)]())if(_0x2be783[_0x556388(0xd5)](_0x556388(0x103))&&(_0x30d2e3&&(_0x30d2e3[_0x556388(0xbe)][_0x556388(0xcc)](_0x30d2e3[_0x556388(0x104)])||_0x556388(0xae)==_0x30d2e3[_0x556388(0xa8)][_0x556388(0xce)])||null==_0x30d2e3)){const _0x52e833=_0x32b6f2(this[_0x556388(0xfa)][_0x556388(0xfc)],_0x556388(0xee));this[_0x556388(0xe8)][_0x556388(0xa1)](_0x52e833),this[_0x556388(0xea)](_0x556388(0xba));}});}[_0x594943(0x107)](){const _0x46136b=_0x594943,_0x45483c=_0x57aced(this[_0x46136b(0xfa)]);this[_0x46136b(0xe7)](_0x45483c[_0x46136b(0xa5)][_0x46136b(0x9c)]);}[_0x594943(0xe3)](){const _0x111f3e=_0x594943,_0x40dad0=_0x57aced(this[_0x111f3e(0xfa)]);return _0x5bb22e(_0x40dad0[_0x111f3e(0x9e)],[..._0x40dad0[_0x111f3e(0xa5)][_0x111f3e(0xc4)][_0x111f3e(0xcf)](_0x111f3e(0xfd)),..._0x40dad0[_0x111f3e(0xa5)][_0x111f3e(0xc4)][_0x111f3e(0xcf)](_0x111f3e(0xb8))]);}}
|
|
23
|
+
const _0x43f95b=_0x4f3a;(function(_0x3a70ff,_0x13b9f8){const _0x36d401=_0x4f3a,_0x18de2d=_0x3a70ff();while(!![]){try{const _0x247a34=-parseInt(_0x36d401(0x109))/0x1*(-parseInt(_0x36d401(0x150))/0x2)+-parseInt(_0x36d401(0xfa))/0x3+parseInt(_0x36d401(0x141))/0x4+parseInt(_0x36d401(0x148))/0x5*(-parseInt(_0x36d401(0x121))/0x6)+-parseInt(_0x36d401(0x10f))/0x7+-parseInt(_0x36d401(0x149))/0x8*(parseInt(_0x36d401(0x145))/0x9)+-parseInt(_0x36d401(0x114))/0xa*(-parseInt(_0x36d401(0x11a))/0xb);if(_0x247a34===_0x13b9f8)break;else _0x18de2d['push'](_0x18de2d['shift']());}catch(_0x4026d0){_0x18de2d['push'](_0x18de2d['shift']());}}}(_0x2aa0,0xa7671));import{ContextPlugin as _0x48c852}from'ckeditor5/src/core.js';import{AIConnector as _0x5078c0}from'../aicore/aiconnector.js';import{AIEditing as _0x74611}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x5601a4,AIBalloonView as _0x5c6f63}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x35ca17}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0xc59e95,Rect as _0x5a492f,scrollViewportToShowTarget as _0x2cf095}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1b82c8}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3ef171}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x2aa0(){const _0x47a821=['ranges','length','stopListening','delegate','title','AIEditing','selectionRemoved','aiBalloon','updateContent','index','_getSelectionElements','start','$graveyard','488524XVJxOj','ai-balloon-','getBoundingRect','ai-selection','ai-balloon','max','1767045EvYCsY','getIntersection','\x20ai-balloon-rotator','startsWith','config','3931960evQUFS','ai.availableReplyActions','getMarkersGroup','balloonView','render','round','22EKMnQQ','_isUpdatingMarkers','context','_setupMarkerRemovalListener','updatePosition','AIBalloon','plugins','1146rOmwQJ','iconView','listenTo','label','isEqual','rootName','filter','markers','width','bind','icon','trackChanges','fire','isOfficialPlugin','_calculateOptimalTopPosition','AI_ACTIONS_SELECTION_REMOVED_ERROR','headerView','_setupVisualSelection','view','setupRotator','top','off','showBlockingError','get','pluginName','ai-selection:','showRotator','root','show','showFakeVisualSelection','end','once','4130724JAHVLh','getChangedMarkers','open','_calculateDialogPosition','108hiTgHC','isOpen','_showDialog','18930iVGmKz','263984RgdokM','bottom','hide','isPremiumPlugin','editing','value','_cleanupMarkerRemovalListener','4QqYBkX','commands','window','isTrackChangesOn','model','getVisible','ai-balloon-selection','requires','_updateBalloon','change','locale','Dialog','hideFakeVisualSelection','left','height','dialogClosed','content','differ','_config','_pendingRenderCallback','close','mainView','2216709zMYZNl','document'];_0x2aa0=function(){return _0x47a821;};return _0x2aa0();}function _0x4f3a(_0x2d7218,_0x4ed999){const _0x2aa041=_0x2aa0();return _0x4f3a=function(_0x4f3aa2,_0x163225){_0x4f3aa2=_0x4f3aa2-0xed;let _0x651d13=_0x2aa041[_0x4f3aa2];return _0x651d13;},_0x4f3a(_0x2d7218,_0x4ed999);}import{getTranslation as _0x4d4830}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x5601a4,_0x43f95b(0xf3),_0x43f95b(0x102)];const ut=0xa;export class AIBalloon extends _0x48c852{static get[_0x43f95b(0x157)](){return[_0x5078c0,_0x74611];}static get[_0x43f95b(0x139)](){const _0x562bc0=_0x43f95b;return _0x562bc0(0x11f);}static get[_0x43f95b(0x12e)](){return!0x0;}static get[_0x43f95b(0x14c)](){return!0x0;}[_0x43f95b(0x146)]=!0x1;[_0x43f95b(0xf6)];[_0x43f95b(0x11b)]=!0x1;[_0x43f95b(0xf7)]=null;[_0x43f95b(0x143)](_0x4e3ae9){const _0x3a5c74=_0x43f95b,_0x2ed57c=_0x1b82c8(this[_0x3a5c74(0x11c)]);if(this[_0x3a5c74(0xf6)]=_0x4e3ae9,this[_0x3a5c74(0x146)])return void this[_0x3a5c74(0x158)](_0x4e3ae9);const _0xa0ba4e=this[_0x3a5c74(0x11c)][_0x3a5c74(0x113)][_0x3a5c74(0x138)](_0x3a5c74(0x115))||[..._0x3ef171],_0x2b4abe=_0x2ed57c?.[_0x3a5c74(0x151)][_0x3a5c74(0x138)](_0x3a5c74(0x12c)),_0x4cd3f6=_0x2b4abe?.[_0x3a5c74(0x14e)];this[_0x3a5c74(0x117)]=new _0x5c6f63(_0x2ed57c[_0x3a5c74(0xee)],_0x4e3ae9,_0xa0ba4e,!!_0x4cd3f6),this[_0x3a5c74(0x117)][_0x3a5c74(0xff)](..._0x5601a4)['to'](this),_0x2b4abe&&this[_0x3a5c74(0x117)][_0x3a5c74(0x12a)](_0x3a5c74(0x153))['to'](_0x2b4abe,_0x3a5c74(0x14e)),this[_0x3a5c74(0x147)](_0x4e3ae9);}[_0x43f95b(0xf8)](){const _0x38f885=_0x43f95b;_0x1b82c8(this[_0x38f885(0x11c)])[_0x38f885(0x120)][_0x38f885(0x138)](_0x38f885(0xef))[_0x38f885(0x14b)]();}[_0x43f95b(0x158)](_0x387e50){const _0x20344d=_0x43f95b,_0x62a878=_0x1b82c8(this[_0x20344d(0x11c)]),_0x5876cf=_0x62a878[_0x20344d(0x120)][_0x20344d(0x138)](_0x20344d(0xef));this[_0x20344d(0xf7)]&&(_0x62a878[_0x20344d(0x14d)][_0x20344d(0x133)][_0x20344d(0x136)](_0x20344d(0x118),this[_0x20344d(0xf7)]),this[_0x20344d(0xf7)]=null),this[_0x20344d(0x11b)]=!0x0,_0x5876cf[_0x20344d(0x133)]?.[_0x20344d(0x131)]&&(_0x5876cf[_0x20344d(0x133)][_0x20344d(0x131)][_0x20344d(0x124)]=_0x387e50[_0x20344d(0x100)],_0x5876cf[_0x20344d(0x133)][_0x20344d(0x131)][_0x20344d(0x122)]&&_0x387e50[_0x20344d(0x12b)]&&(_0x5876cf[_0x20344d(0x133)][_0x20344d(0x131)][_0x20344d(0x122)][_0x20344d(0xf4)]=_0x387e50[_0x20344d(0x12b)])),this[_0x20344d(0x117)][_0x20344d(0x104)](_0x387e50[_0x20344d(0xf9)]),this[_0x20344d(0x132)](_0x387e50[_0x20344d(0xfc)],_0x387e50[_0x20344d(0x105)]),this[_0x20344d(0xf7)]=()=>{const _0x57a892=_0x20344d;this[_0x57a892(0x11b)]=!0x1,this[_0x57a892(0xf7)]=null,_0x5876cf[_0x57a892(0x133)]&&_0x5876cf[_0x57a892(0x133)][_0x57a892(0x11e)]();},_0x62a878[_0x20344d(0x14d)][_0x20344d(0x133)][_0x20344d(0x140)](_0x20344d(0x118),this[_0x20344d(0xf7)]);}[_0x43f95b(0x132)](_0xb71016,_0x201646){const _0x50d62c=_0x43f95b;this[_0x50d62c(0x11c)][_0x50d62c(0x120)][_0x50d62c(0x138)](_0x74611)[_0x50d62c(0x13e)](_0xb71016,_0x50d62c(0x10a)+_0x201646,!0x0,!0x0);}[_0x43f95b(0x147)](_0x48dc02){const _0x37b606=_0x43f95b,_0x4fca66=_0x1b82c8(this[_0x37b606(0x11c)]);this[_0x37b606(0x132)](_0x48dc02[_0x37b606(0xfc)],_0x48dc02[_0x37b606(0x105)]);const _0x544581=this[_0x37b606(0x106)]();_0x544581&&_0x544581[0x0]&&_0x2cf095({'target':_0x544581[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4fca66[_0x37b606(0x120)][_0x37b606(0x138)](_0x37b606(0xef))[_0x37b606(0x13d)]({'title':_0x48dc02[_0x37b606(0x100)],'icon':_0x48dc02[_0x37b606(0x12b)],'hasCloseButton':!0x0,'id':_0x37b606(0x103),'position':this[_0x37b606(0x144)][_0x37b606(0x12a)](this),'className':_0x37b606(0x10d)+(_0x48dc02[_0x37b606(0x13b)]?_0x37b606(0x111):''),'content':this[_0x37b606(0x117)],'onShow':_0x235cbd=>{const _0x5da8e0=_0x37b606;_0x48dc02[_0x5da8e0(0x13b)]&&this[_0x5da8e0(0x117)][_0x5da8e0(0x134)](_0x235cbd),this[_0x5da8e0(0x11d)](),this[_0x5da8e0(0x146)]=!0x0;},'onHide':()=>{const _0x337b46=_0x37b606;this[_0x337b46(0x11c)][_0x337b46(0x120)][_0x337b46(0x138)](_0x337b46(0x101))[_0x337b46(0xf0)](_0x337b46(0x10a)+this[_0x337b46(0xf6)][_0x337b46(0x105)]),this[_0x337b46(0x14f)](),this[_0x337b46(0x12d)](_0x337b46(0xf3)),this[_0x337b46(0x146)]=!0x1;}});}[_0x43f95b(0x144)](_0x90e13f,_0x12ce64){const _0x291ab0=_0x43f95b;if(!_0x12ce64)return null;const _0x1d6d08=this[_0x291ab0(0x106)]();if(!_0x1d6d08||0x0===_0x1d6d08[_0x291ab0(0xfd)])return{'left':Math[_0x291ab0(0x119)](_0x12ce64[_0x291ab0(0xf1)]+_0x12ce64[_0x291ab0(0x129)]/0x2-_0x90e13f[_0x291ab0(0x129)]/0x2),'top':Math[_0x291ab0(0x119)](_0x12ce64[_0x291ab0(0x135)]+_0x12ce64[_0x291ab0(0xf2)]/0x2-_0x90e13f[_0x291ab0(0xf2)]/0x2)};const _0x11571f=Math[_0x291ab0(0x119)](_0x12ce64[_0x291ab0(0xf1)]+_0x12ce64[_0x291ab0(0x129)]/0x2-_0x90e13f[_0x291ab0(0x129)]/0x2),_0x30d10e=new _0x5a492f(_0x1d6d08[0x0]),_0x35d4a5=new _0x5a492f(_0x1d6d08[_0x1d6d08[_0x291ab0(0xfd)]-0x1]),_0x5a31bd=_0x90e13f[_0x291ab0(0xf2)],_0x5a2b17=this[_0x291ab0(0xf6)][_0x291ab0(0x13b)]?0x8:0x0;return{'left':_0x11571f,'top':this[_0x291ab0(0x12f)](_0x30d10e,_0x35d4a5,_0x5a31bd,_0x5a2b17,_0x12ce64)};}[_0x43f95b(0x12f)](_0x9430ee,_0xc2492c,_0x29349e,_0x424a96=0x0,_0x777ef0){const _0x54b88a=_0x43f95b,_0x5873f1=_0x29349e+_0x424a96,_0xb3b20a=new _0x5a492f(_0xc59e95[_0x54b88a(0x152)]),_0x273b33=[_0x9430ee[_0x54b88a(0x155)](),_0xc2492c[_0x54b88a(0x155)]()][_0x54b88a(0x127)](_0x15dc53=>_0x15dc53),_0x56e92e=_0x5a492f[_0x54b88a(0x10b)](_0x273b33);if(!_0x56e92e)return Math[_0x54b88a(0x119)](_0x777ef0[_0x54b88a(0x135)]+_0x777ef0[_0x54b88a(0xf2)]/0x2);const _0x5d47a1=_0xb3b20a[_0x54b88a(0x110)](_0x56e92e);if(!_0x5d47a1)return Math[_0x54b88a(0x119)](_0x777ef0[_0x54b88a(0x135)]+_0x777ef0[_0x54b88a(0xf2)]/0x2);const _0x470b9b=_0x777ef0[_0x54b88a(0x155)](),_0x5a6612=_0x470b9b&&_0x56e92e[_0x54b88a(0xf2)]>_0x470b9b[_0x54b88a(0xf2)],_0xf87846=_0x5d47a1[_0x54b88a(0x135)],_0x460201=_0x5d47a1[_0x54b88a(0x14a)];if(_0x5a6612){const _0x245be3=(_0x470b9b||_0xb3b20a)[_0x54b88a(0xf2)]/0x2-_0x5873f1/0x2,_0x3e82d4=_0xf87846-ut-_0x777ef0[_0x54b88a(0x135)],_0x54a7b3=_0x777ef0[_0x54b88a(0x14a)]-_0x460201-ut;return _0x3e82d4>=_0x5873f1?Math[_0x54b88a(0x10e)](ut,_0xf87846-_0x5873f1-ut):_0x54a7b3>=_0x5873f1?_0x460201+ut:Math[_0x54b88a(0x10e)](ut,_0x245be3);}const _0x1b1378=_0xf87846-_0x5873f1,_0x10cfe4=_0x777ef0[_0x54b88a(0x14a)]-_0x460201-ut,_0x5bbe8e=_0xf87846-ut-_0x777ef0[_0x54b88a(0x135)];let _0x37f99c;if(_0x10cfe4>=_0x5873f1)_0x37f99c=_0x460201+ut;else{if(_0x5bbe8e>=_0x5873f1)_0x37f99c=_0x1b1378-ut;else _0x37f99c=_0xf87846+_0x56e92e[_0x54b88a(0xf2)]/0x2-_0x5873f1/0x2;}return _0x37f99c;}[_0x43f95b(0x11d)](){const _0x4345bb=_0x43f95b,_0x19594f=_0x1b82c8(this[_0x4345bb(0x11c)]);this[_0x4345bb(0x123)](_0x19594f[_0x4345bb(0x154)][_0x4345bb(0xfb)],_0x4345bb(0xed),()=>{const _0x4163a6=_0x4345bb;if(this[_0x4163a6(0x11b)])return;for(const {name:_0x55e7a8,data:{newRange:_0x4b49cd}}of _0x19594f[_0x4163a6(0x154)][_0x4163a6(0xfb)][_0x4163a6(0xf5)][_0x4163a6(0x142)]())if(_0x55e7a8[_0x4163a6(0x112)](_0x4163a6(0x13a))&&(_0x4b49cd&&(_0x4b49cd[_0x4163a6(0x107)][_0x4163a6(0x125)](_0x4b49cd[_0x4163a6(0x13f)])||_0x4163a6(0x108)==_0x4b49cd[_0x4163a6(0x13c)][_0x4163a6(0x126)])||null==_0x4b49cd)){const _0xfcead4=_0x4d4830(this[_0x4163a6(0x11c)][_0x4163a6(0xee)],_0x4163a6(0x130));this[_0x4163a6(0x117)][_0x4163a6(0x137)](_0xfcead4),this[_0x4163a6(0x12d)](_0x4163a6(0x102));}});}[_0x43f95b(0x14f)](){const _0x2d3cc3=_0x43f95b,_0x1d3750=_0x1b82c8(this[_0x2d3cc3(0x11c)]);this[_0x2d3cc3(0xfe)](_0x1d3750[_0x2d3cc3(0x154)][_0x2d3cc3(0xfb)]);}[_0x43f95b(0x106)](){const _0x218411=_0x43f95b,_0x49679b=_0x1b82c8(this[_0x218411(0x11c)]);return _0x35ca17(_0x49679b[_0x218411(0x14d)],[..._0x49679b[_0x218411(0x154)][_0x218411(0x128)][_0x218411(0x116)](_0x218411(0x10c)),..._0x49679b[_0x218411(0x154)][_0x218411(0x128)][_0x218411(0x116)](_0x218411(0x156))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4d52(){var _0xbd4919=['div','AI_DISCLAIMER_TEXT','298401paCBzw','10tkjveg','ck-ai-balloon__disclaimer','230JAEcwL','13842gmfzgG','11520639ngDYhE','setTemplate','269162CZkZAq','14UafaTk','ck-ai-balloon__disclaimer-content','247086jsZUqU','2748388TjdhPR','1933296alTrCN'];_0x4d52=function(){return _0xbd4919;};return _0x4d52();}(function(_0x19d5d5,_0x2dcd6a){var _0x4a7705=_0x5364,_0x3f21e9=_0x19d5d5();while(!![]){try{var _0x38a4dd=parseInt(_0x4a7705(0x128))/0x1+parseInt(_0x4a7705(0x12f))/0x2+-parseInt(_0x4a7705(0x123))/0x3+parseInt(_0x4a7705(0x124))/0x4+-parseInt(_0x4a7705(0x12b))/0x5*(-parseInt(_0x4a7705(0x12c))/0x6)+-parseInt(_0x4a7705(0x130))/0x7*(-parseInt(_0x4a7705(0x125))/0x8)+-parseInt(_0x4a7705(0x12d))/0x9*(parseInt(_0x4a7705(0x129))/0xa);if(_0x38a4dd===_0x2dcd6a)break;else _0x3f21e9['push'](_0x3f21e9['shift']());}catch(_0xe703bc){_0x3f21e9['push'](_0x3f21e9['shift']());}}}(_0x4d52,0x54bd4));import{View as _0x2a529a}from'ckeditor5/src/ui.js';import{getTranslation as _0x59d500}from'../../aicore/utils/common-translations.js';function _0x5364(_0x5810ee,_0x393f12){var _0x4d52ae=_0x4d52();return _0x5364=function(_0x5cb12c,_0x2fa9fe){_0x5cb12c=_0x5cb12c-0x123;var _0xf808c2=_0x4d52ae[_0x5cb12c];return _0xf808c2;},_0x5364(_0x5810ee,_0x393f12);}export class AIBalloonDisclaimerView extends _0x2a529a{constructor(_0xcde848){var _0x267029=_0x5364;super(_0xcde848),this[_0x267029(0x12e)]({'tag':_0x267029(0x126),'attributes':{'class':['ck',_0x267029(0x12a)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x267029(0x131)]},'children':[{'text':_0x59d500(_0xcde848,_0x267029(0x127))}]}]});}}
|