@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.6
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.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
|
-
|
|
24
|
-
|
|
23
|
+
const _0x17064c=_0x3a60;function _0x45bd(){const _0x477fae=['_domParser','152obUCEW','```html','listenTo','body','set:currentContext','domConverter','querySelector','1096824srINsJ','catch','match','ELEMENT_NODE','startProcessing','abort','once','data','startsWith','stringify','```','document','1175410gszFNb','1075732GQZBmg','toView','substring','_normalizeResponseHeadings','<h1></h1>','reverse','element','ai.assistant.preserveComments','_xmlSerializer','childNodes','then','355324claGcR','initialContext','stopListening','serializeToString','value','prompt','tryAgainEvent','toModel','_isH1TagSupportEnabled','innerHTML','257112yjodKL','22rFVFyb','viewToDom','get','previousQuery','currentContext','view','previousLabel','destroy','trim','textAdapter','setContentOf','config','set','processor','mainAction','reset','clear','markers','makeRequest','currentResponse','387297cAqBIL','previousActionId','render','submitPrompt','endsWith','length','1756718Tfknfg','name','exec','remove','htmlProcessor','editing','isRendered','text/html','custom','15hlNFSG','editor','handleError','_stripMarkdownSyntax','previousContext','_sanitizeHTML','rename','from','_parseAndNormalizeContent','nodeType','28WuLzun','createElement','isProcessing','_handleQuery','div','_sanitizationContainer','updateView','push','message','finally','parseFromString','finishProcessing','stopProcessing'];_0x45bd=function(){return _0x477fae;};return _0x45bd();}(function(_0x39a7b7,_0xdf6f10){const _0x154875=_0x3a60,_0x40d6a4=_0x39a7b7();while(!![]){try{const _0x5148b4=parseInt(_0x154875(0x101))/0x1+parseInt(_0x154875(0xc1))/0x2+-parseInt(_0x154875(0x10b))/0x3*(parseInt(_0x154875(0xd4))/0x4)+parseInt(_0x154875(0xca))/0x5*(-parseInt(_0x154875(0xe9))/0x6)+-parseInt(_0x154875(0xf6))/0x7+-parseInt(_0x154875(0xe2))/0x8*(-parseInt(_0x154875(0x120))/0x9)+-parseInt(_0x154875(0xf5))/0xa*(parseInt(_0x154875(0x10c))/0xb);if(_0x5148b4===_0xdf6f10)break;else _0x40d6a4['push'](_0x40d6a4['shift']());}catch(_0x28d75a){_0x40d6a4['push'](_0x40d6a4['shift']());}}}(_0x45bd,0x7d8a4));import{ObservableMixin as _0x4ca838}from'ckeditor5/src/utils.js';import{AIRequestError as _0x39984f}from'../adapters/aiadapter.js';function _0x3a60(_0x115b5b,_0x142ce0){const _0x45bd75=_0x45bd();return _0x3a60=function(_0x3a6098,_0x859c39){_0x3a6098=_0x3a6098-0xc1;let _0x30c879=_0x45bd75[_0x3a6098];return _0x30c879;},_0x3a60(_0x115b5b,_0x142ce0);}import{Matcher as _0x46195e,ViewUpcastWriter as _0x19f80d}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ca838(){[_0x17064c(0xcb)];[_0x17064c(0x115)];[_0x17064c(0x111)];[_0x17064c(0xd9)];[_0x17064c(0xe1)];[_0x17064c(0xfe)];constructor(_0x328dce,_0x4f4a23,_0xec4e2a){const _0x112fc0=_0x17064c;super(),this[_0x112fc0(0xcb)]=_0x328dce,this[_0x112fc0(0x115)]=_0x4f4a23,this[_0x112fc0(0xd9)]=document[_0x112fc0(0xd5)](_0x112fc0(0xd8)),this[_0x112fc0(0xe1)]=new DOMParser(),this[_0x112fc0(0xfe)]=new XMLSerializer(),this[_0x112fc0(0x111)]=_0xec4e2a,this[_0x112fc0(0x118)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x112fc0(0xe6),(_0x3676bf,_0x366238,_0x518f8)=>{const _0x384e89=_0x112fc0;this[_0x384e89(0x111)][_0x384e89(0x105)]=this[_0x384e89(0xcf)](_0x518f8);}),this[_0x112fc0(0xe4)](this[_0x112fc0(0x111)],_0x112fc0(0x123),(_0x3e3f74,_0x32a7a7)=>{const _0x5d2379=_0x112fc0,_0x1bfc13=this[_0x5d2379(0x110)]||this[_0x5d2379(0x102)];this[_0x5d2379(0xd7)](_0x32a7a7,_0x1bfc13,_0x5d2379(0xc9));}),this[_0x112fc0(0xe4)](this[_0x112fc0(0x111)],_0x112fc0(0x107),()=>{const _0x4ba992=_0x112fc0;this[_0x4ba992(0x111)][_0x4ba992(0x106)]=this[_0x4ba992(0x112)],this[_0x4ba992(0xd7)](this[_0x4ba992(0x10f)],this[_0x4ba992(0xce)],this[_0x4ba992(0x121)],this[_0x4ba992(0x112)]);}),this[_0x112fc0(0xe4)](this[_0x112fc0(0x111)],_0x112fc0(0xe0),()=>{const _0x2e9b5d=_0x112fc0;this[_0x2e9b5d(0xe0)]();});}[_0x17064c(0x113)](){const _0x459858=_0x17064c;this[_0x459858(0x103)]();}async[_0x17064c(0xda)]({actionId:_0x578abc,query:_0xe1d603,htmlContent:_0x566927,label:_0x5631cf,mainActionLabel:_0x45eab0}){const _0x3da76=_0x17064c;this[_0x3da76(0x111)][_0x3da76(0x106)]=_0x5631cf,this[_0x3da76(0x111)][_0x3da76(0x11a)]=_0x45eab0,this[_0x3da76(0x102)]=_0x566927,_0xe1d603&&(this[_0x3da76(0x111)][_0x3da76(0xc7)]?this[_0x3da76(0xd7)](_0xe1d603,_0x566927,_0x578abc,_0x5631cf):this[_0x3da76(0x111)][_0x3da76(0xef)](_0x3da76(0x122),()=>{const _0x40d6f7=_0x3da76;this[_0x40d6f7(0xd7)](_0xe1d603,_0x566927,_0x578abc,_0x5631cf);}));}[_0x17064c(0xe0)](){const _0x1b17b7=_0x17064c;this[_0x1b17b7(0xd6)]&&(this[_0x1b17b7(0xd6)]=!0x1,this[_0x1b17b7(0x111)][_0x1b17b7(0xdf)](),this[_0x1b17b7(0x115)][_0x1b17b7(0xee)]());}[_0x17064c(0x11b)](){const _0x153843=_0x17064c;this[_0x153843(0x102)]='',this[_0x153843(0x110)]='',this[_0x153843(0x11f)]='',this[_0x153843(0xce)]='',this[_0x153843(0x10f)]='',this[_0x153843(0x112)]='',this[_0x153843(0x121)]=void 0x0,this[_0x153843(0x111)][_0x153843(0x11b)](),this[_0x153843(0xe0)]();}async[_0x17064c(0xd7)](_0x4d81e4,_0x3f5d25,_0x386c6f,_0x1cf349){const _0x5aa0f5=_0x17064c;return this[_0x5aa0f5(0xd6)]=!0x0,this[_0x5aa0f5(0x111)][_0x5aa0f5(0xed)](),this[_0x5aa0f5(0xce)]=_0x3f5d25,this[_0x5aa0f5(0x10f)]=_0x4d81e4,this[_0x5aa0f5(0x112)]=_0x1cf349||_0x4d81e4,this[_0x5aa0f5(0x121)]=_0x386c6f,new Promise(_0x5567d8=>{const _0x31fb0f=_0x5aa0f5;this[_0x31fb0f(0x115)][_0x31fb0f(0x11e)]({'query':_0x4d81e4,'context':_0x3f5d25,'onData':_0x5b68c4=>{const _0x4b9208=_0x31fb0f;this[_0x4b9208(0x11f)]=_0x5b68c4,this[_0x4b9208(0x110)]=this[_0x4b9208(0xd2)](this[_0x4b9208(0x11f)]);},'actionId':_0x386c6f})[_0x31fb0f(0x100)](()=>{const _0x192810=_0x31fb0f;!this[_0x192810(0x110)]&&this[_0x192810(0x11f)]&&(this[_0x192810(0x110)]=this[_0x192810(0xd2)](this[_0x192810(0x11f)],!0x0));})[_0x31fb0f(0xea)](_0x3736e5=>{const _0x1d4a1e=_0x31fb0f;_0x3736e5 instanceof _0x39984f?this[_0x1d4a1e(0x111)][_0x1d4a1e(0xcc)](_0x3736e5[_0x1d4a1e(0xdc)]):this[_0x1d4a1e(0x111)][_0x1d4a1e(0xcc)](),_0x5567d8();})[_0x31fb0f(0xdd)](()=>{const _0x540d42=_0x31fb0f;this[_0x540d42(0xe0)](),_0x5567d8();});});}[_0x17064c(0xd2)](_0x4ae0a8,_0x2e9096=!0x1){const _0x3f3cb6=_0x17064c,_0x2e669c=hs[_0x3f3cb6(0xc3)](_0x4ae0a8);_0x4ae0a8=_0x2e669c?_0x4ae0a8[_0x3f3cb6(0xf8)](_0x2e669c[0x1][_0x3f3cb6(0x125)]):_0x4ae0a8[_0x3f3cb6(0x125)]<0x64&&!_0x2e9096?'':this[_0x3f3cb6(0xcd)](_0x4ae0a8);const _0xb7994a=this[_0x3f3cb6(0xe1)][_0x3f3cb6(0xde)](_0x4ae0a8,_0x3f3cb6(0xc8));if(_0x2e669c){const _0x5559e3=Array[_0x3f3cb6(0xd1)](_0xb7994a[_0x3f3cb6(0xe5)][_0x3f3cb6(0xff)]);_0x5559e3[_0x3f3cb6(0xfb)]();for(const _0x43be49 of _0x5559e3){if(_0x43be49[_0x3f3cb6(0xd3)]==Node[_0x3f3cb6(0xec)])break;_0x43be49[_0x3f3cb6(0xc4)]();}}const _0x5181fd=this[_0x3f3cb6(0xcb)][_0x3f3cb6(0xf0)][_0x3f3cb6(0x119)][_0x3f3cb6(0xf7)](this[_0x3f3cb6(0xfe)][_0x3f3cb6(0x104)](_0xb7994a[_0x3f3cb6(0xe5)]));this[_0x3f3cb6(0x109)]()||this[_0x3f3cb6(0xf9)](_0x5181fd);const _0xf54d59=this[_0x3f3cb6(0xcb)][_0x3f3cb6(0x117)][_0x3f3cb6(0x10e)](_0x3f3cb6(0xfd)),_0x4674de=this[_0x3f3cb6(0xcb)][_0x3f3cb6(0xf0)][_0x3f3cb6(0x108)](_0x5181fd);return _0xf54d59||_0x4674de[_0x3f3cb6(0x11d)][_0x3f3cb6(0x11c)](),this[_0x3f3cb6(0xcb)][_0x3f3cb6(0xf0)][_0x3f3cb6(0xf2)](_0x4674de);}[_0x17064c(0xf9)](_0x167343){const _0x2891a5=_0x17064c,_0x1fd521=new _0x19f80d(this[_0x2891a5(0xcb)][_0x2891a5(0xc6)][_0x2891a5(0x111)][_0x2891a5(0xf4)]),_0x2b7865=new _0x46195e({'name':/^h[1-5]$/}),_0x4b7025=[];let _0x5713a6=!0x1;for(const _0x554fa7 of _0x167343)_0x554fa7['is'](_0x2891a5(0xfc))&&_0x2b7865[_0x2891a5(0xeb)](_0x554fa7)&&(_0x4b7025[_0x2891a5(0xdb)](_0x554fa7),'h1'==_0x554fa7[_0x2891a5(0xc2)]&&(_0x5713a6=!0x0));if(_0x5713a6){for(const _0x4b3113 of _0x4b7025)_0x1fd521[_0x2891a5(0xd0)]('h'+(parseInt(_0x4b3113[_0x2891a5(0xc2)][0x1])+0x1),_0x4b3113);}}[_0x17064c(0x109)](){const _0x3a8153=_0x17064c,{data:_0x437e88,editing:_0x37e6fe}=this[_0x3a8153(0xcb)],_0x55b011=_0x437e88[_0x3a8153(0xc5)][_0x3a8153(0xf7)](_0x3a8153(0xfa)),_0x1ec7ed=_0x437e88[_0x3a8153(0xf7)](_0x437e88[_0x3a8153(0x108)](_0x55b011));return!!_0x37e6fe[_0x3a8153(0x111)][_0x3a8153(0xe7)][_0x3a8153(0x10d)](_0x1ec7ed)[_0x3a8153(0xe8)]('h1');}[_0x17064c(0xcf)](_0x518036){const _0x2f2642=_0x17064c;return this[_0x2f2642(0xcb)][_0x2f2642(0xc6)][_0x2f2642(0x111)][_0x2f2642(0xe7)][_0x2f2642(0x116)](this[_0x2f2642(0xd9)],_0x518036),this[_0x2f2642(0xd9)][_0x2f2642(0x10a)];}[_0x17064c(0xcd)](_0x446078){const _0x2e1ccd=_0x17064c,_0x5dd3a0=_0x446078[_0x2e1ccd(0x114)]();return _0x5dd3a0[_0x2e1ccd(0xf1)](_0x2e1ccd(0xe3))?_0x5dd3a0[_0x2e1ccd(0x124)](_0x2e1ccd(0xf3))?_0x5dd3a0[_0x2e1ccd(0xf8)](0x7,_0x5dd3a0[_0x2e1ccd(0x125)]-0x3):_0x5dd3a0[_0x2e1ccd(0xf8)](0x7):_0x446078;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x237586=_0x3b5c;(function(_0x9448a4,_0x75a7b9){const _0x192c22=_0x3b5c,_0x3f12ad=_0x9448a4();while(!![]){try{const _0x15e7a2=parseInt(_0x192c22(0x1a6))/0x1+parseInt(_0x192c22(0x198))/0x2*(-parseInt(_0x192c22(0x18a))/0x3)+-parseInt(_0x192c22(0x1be))/0x4*(parseInt(_0x192c22(0x1b4))/0x5)+-parseInt(_0x192c22(0x18d))/0x6*(-parseInt(_0x192c22(0x182))/0x7)+-parseInt(_0x192c22(0x187))/0x8+parseInt(_0x192c22(0x186))/0x9*(-parseInt(_0x192c22(0x1ba))/0xa)+parseInt(_0x192c22(0x19b))/0xb*(parseInt(_0x192c22(0x17e))/0xc);if(_0x15e7a2===_0x75a7b9)break;else _0x3f12ad['push'](_0x3f12ad['shift']());}catch(_0x1d1c4a){_0x3f12ad['push'](_0x3f12ad['shift']());}}}(_0x502a,0x2e030));function _0x3b5c(_0x132b1d,_0x37e1bb){const _0x502a76=_0x502a();return _0x3b5c=function(_0x3b5c9e,_0x295a7d){_0x3b5c9e=_0x3b5c9e-0x16b;let _0x2aa07b=_0x502a76[_0x3b5c9e];return _0x2aa07b;},_0x3b5c(_0x132b1d,_0x37e1bb);}import{global as _0x553911}from'ckeditor5/src/utils.js';function _0x502a(){const _0x50b9d5=['setContent','value','remove','setStartAfter','ck-ai-form__copy-button','contentFieldView','removeAllRanges','ck-ai-form__content-field','ClipboardItem','ck-ai-form__loader','isProcessing','80124toHGZC','set','ck-reset_all-excluded','firstElementChild','6629RkLQGZ','isVisible','ck-ai-form__content-area--processing','copy','1488735KpUOKR','1661224aOTryC','scrollTo','<span>]</span>','27SArTXe','ck-ai-form__copy-button-wrapper','loaderView','1404JCbSSi','ck-hidden','_createCopyButton','createElement','lastElementChild','render','smooth','wheel','<span>[</span>','bindTemplate','bind','29366UnrNgT','scrollHeight','getSelection','1100JwaTAk','setEndBefore','appendChild','addRange','.ck-ai-form__loader','change:isProcessing','change:value','ck-content','write','execCommand','createRange','5102dGmrUi','AI\x20is\x20writing...','-9999px','clipboard','isEnabled','style','element','text/html','_copyHTMLToClipboard','icon','locale','listenTo','textContent','class','1003605FAwGyK','focus','div','_createLoader','execute','mousedown','10BhcYTO','copyButtonView','querySelector','innerHTML','4LWQOcv','absolute','ck-ai-form__content-area','setTemplate','\x20ck-ai-form__copy-button--copied','position','Copy','left','appendLoader','text/plain','ck-ai-form__content-area-wrapper','body'];_0x502a=function(){return _0x50b9d5;};return _0x502a();}import{View as _0x435059,ButtonView as _0x5f23ab,SpinnerView as _0xdf7324}from'ckeditor5/src/ui.js';import{IconCheck as _0x367790,IconCopy as _0x15499e}from'ckeditor5/src/icons.js';import{getTranslation as _0x155acd}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x435059{[_0x237586(0x178)];[_0x237586(0x1bb)];constructor(_0x1d4973,_0x5d3ee7=''){const _0x4586ce=_0x237586;super(_0x1d4973),this[_0x4586ce(0x17f)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x13c349=this[_0x4586ce(0x196)];this[_0x4586ce(0x178)]=new ContentFieldView(_0x1d4973,_0x5d3ee7),this[_0x4586ce(0x1bb)]=this[_0x4586ce(0x18f)](),this[_0x4586ce(0x1c1)]({'tag':_0x4586ce(0x1b6),'attributes':{'class':['ck',_0x4586ce(0x171),_0x13c349['if'](_0x4586ce(0x183),_0x4586ce(0x18e),_0x5c17e0=>!_0x5c17e0)],'tabindex':'-1'},'children':[{'tag':_0x4586ce(0x1b6),'attributes':{'class':['ck',_0x4586ce(0x1c0),_0x13c349['if'](_0x4586ce(0x17d),_0x4586ce(0x184))]},'children':[this[_0x4586ce(0x178)],{'tag':_0x4586ce(0x1b6),'attributes':{'class':['ck',_0x4586ce(0x18b)]},'children':[this[_0x4586ce(0x1bb)]]}]}]});}[_0x237586(0x192)](){const _0x2de341=_0x237586;super[_0x2de341(0x192)](),this[_0x2de341(0x174)]&&this[_0x2de341(0x178)][_0x2de341(0x173)](this[_0x2de341(0x174)]);let _0x59a24e=!0x1;this['on'](_0x2de341(0x1a1),(_0xc53cc4,_0xd13af7,_0x4a7f65)=>{const _0x558364=_0x2de341,_0x3a8432=!this[_0x558364(0x178)][_0x558364(0x1ac)][_0x558364(0x1bc)](_0x558364(0x19f));this[_0x558364(0x178)][_0x558364(0x173)](_0x4a7f65),this[_0x558364(0x17d)]&&_0x3a8432&&!_0x59a24e&&this[_0x558364(0x1ac)][_0x558364(0x188)]({'top':this[_0x558364(0x1ac)][_0x558364(0x199)],'behavior':_0x558364(0x193)});}),this['on'](_0x2de341(0x1a0),(_0x771765,_0x13c5fd,_0x582098)=>{const _0x4e88a0=_0x2de341;_0x59a24e=!0x1,_0x582098?(this[_0x4e88a0(0x174)]=null,this[_0x4e88a0(0x178)][_0x4e88a0(0x16f)]()):this[_0x4e88a0(0x174)]||this[_0x4e88a0(0x178)][_0x4e88a0(0x173)]('');}),this[_0x2de341(0x1b1)](this[_0x2de341(0x1ac)],_0x2de341(0x194),()=>{_0x59a24e=!0x0;}),this[_0x2de341(0x1b1)](this[_0x2de341(0x1ac)],_0x2de341(0x1b9),()=>{_0x59a24e=!0x0;});}[_0x237586(0x1b5)](){const _0x4e6238=_0x237586;this[_0x4e6238(0x1ac)][_0x4e6238(0x1b5)]();}[_0x237586(0x18f)](){const _0x177641=_0x237586,_0x5608dd=this[_0x177641(0x1b0)],_0x8c1e9d=new _0x5f23ab(this[_0x177641(0x1b0)]),_0x42c8f2=_0x177641(0x177);return _0x8c1e9d[_0x177641(0x17f)]({'label':_0x155acd(_0x5608dd,_0x177641(0x16d)),'icon':_0x15499e,'class':_0x42c8f2,'tooltip':!0x0}),_0x8c1e9d[_0x177641(0x197)](_0x177641(0x183))['to'](this,_0x177641(0x174),_0x2d4f38=>!!_0x2d4f38),_0x8c1e9d[_0x177641(0x197)](_0x177641(0x1aa))['to'](this,_0x177641(0x17d),_0x2bc876=>!_0x2bc876),_0x8c1e9d['on'](_0x177641(0x1b8),()=>{const _0x29ce9f=_0x177641;this[_0x29ce9f(0x1ae)](this[_0x29ce9f(0x178)][_0x29ce9f(0x1ac)]),_0x8c1e9d[_0x29ce9f(0x1af)]=_0x367790,_0x8c1e9d[_0x29ce9f(0x1b3)]=_0x42c8f2+_0x29ce9f(0x16b),this[_0x29ce9f(0x1b5)](),setTimeout(()=>{const _0x9dce44=_0x29ce9f;_0x8c1e9d[_0x9dce44(0x1af)]=_0x15499e,_0x8c1e9d[_0x9dce44(0x1b3)]=_0x42c8f2;},0x3e8);}),_0x8c1e9d;}[_0x237586(0x1ae)](_0x291d27){const _0x317658=_0x237586,{window:_0x233b73,document:_0x29f12a}=_0x553911;if(_0x233b73[_0x317658(0x17b)]){const {Blob:_0x2353fa,ClipboardItem:_0x2223b4}=_0x233b73,_0x17afb4=[new _0x2223b4({'text/html':new _0x2353fa([_0x291d27[_0x317658(0x1bd)]],{'type':_0x317658(0x1ad)}),'text/plain':new _0x2353fa([_0x291d27[_0x317658(0x1b2)]||''],{'type':_0x317658(0x170)})})];navigator[_0x317658(0x1a9)][_0x317658(0x1a3)](_0x17afb4);}else{const _0x3c0463=_0x29f12a[_0x317658(0x190)](_0x317658(0x1b6));_0x3c0463[_0x317658(0x1ab)][_0x317658(0x16c)]=_0x317658(0x1bf),_0x3c0463[_0x317658(0x1ab)][_0x317658(0x16e)]=_0x317658(0x1a8),_0x3c0463[_0x317658(0x1bd)]=_0x317658(0x195)+_0x291d27[_0x317658(0x1bd)]+_0x317658(0x189),_0x29f12a[_0x317658(0x172)][_0x317658(0x19d)](_0x3c0463);const _0x30de35=_0x29f12a[_0x317658(0x1a5)]();_0x30de35[_0x317658(0x176)](_0x3c0463[_0x317658(0x181)]),_0x30de35[_0x317658(0x19c)](_0x3c0463[_0x317658(0x191)]);const _0x564ddd=_0x233b73[_0x317658(0x19a)]();_0x564ddd[_0x317658(0x179)](),_0x564ddd[_0x317658(0x19e)](_0x30de35),_0x29f12a[_0x317658(0x1a4)](_0x317658(0x185)),_0x3c0463[_0x317658(0x175)]();}}}export class ContentFieldView extends _0x435059{constructor(_0x56f0aa,_0x29acad=''){const _0x410e16=_0x237586;super(_0x56f0aa),this[_0x410e16(0x18c)]=this[_0x410e16(0x1b7)](),this[_0x410e16(0x1c1)]({'tag':_0x410e16(0x1b6),'attributes':{'class':['ck',_0x410e16(0x1a2),_0x29acad,_0x410e16(0x180),_0x410e16(0x17a)]}});}[_0x237586(0x173)](_0x40d4ba){const _0x2c75ba=_0x237586;this[_0x2c75ba(0x1ac)][_0x2c75ba(0x1bd)]=_0x40d4ba;}[_0x237586(0x16f)](){const _0x40cf9a=_0x237586;this[_0x40cf9a(0x1ac)][_0x40cf9a(0x19d)](this[_0x40cf9a(0x18c)][_0x40cf9a(0x1ac)]);}[_0x237586(0x1b7)](){const _0x521c5a=_0x237586,_0x590ba1=new _0x435059(),_0x38aca7=this[_0x521c5a(0x1b0)],_0x5bd327=new _0xdf7324();return _0x5bd327[_0x521c5a(0x183)]=!0x0,_0x590ba1[_0x521c5a(0x1c1)]({'tag':_0x521c5a(0x1b6),'attributes':{'class':['ck',_0x521c5a(0x17c)]},'children':[_0x5bd327,{'text':_0x155acd(_0x38aca7,_0x521c5a(0x1a7))}]}),_0x590ba1[_0x521c5a(0x192)](),_0x590ba1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x35dcbc,_0x43fdb8){const _0x2ee4d1=_0x2d06,_0x42394a=_0x35dcbc();while(!![]){try{const _0x228065=parseInt(_0x2ee4d1(0xaf))/0x1+-parseInt(_0x2ee4d1(0xa3))/0x2+parseInt(_0x2ee4d1(0xa6))/0x3+parseInt(_0x2ee4d1(0xa5))/0x4+parseInt(_0x2ee4d1(0xb2))/0x5*(-parseInt(_0x2ee4d1(0xab))/0x6)+-parseInt(_0x2ee4d1(0xa9))/0x7+-parseInt(_0x2ee4d1(0xae))/0x8*(-parseInt(_0x2ee4d1(0xa4))/0x9);if(_0x228065===_0x43fdb8)break;else _0x42394a['push'](_0x42394a['shift']());}catch(_0x551c15){_0x42394a['push'](_0x42394a['shift']());}}}(_0x1301,0x4e6fa));function _0x1301(){const _0x240b78=['set','text','730KdLorf','412280ROuJhg','785187uqtqDh','2510508XwLaki','719724CCGBUL','ck-ai-form__error','content','4288480JkvyLY','setTemplate','7710FtUqNJ','bindTemplate','div','8bhaPwB','372886ltzwNf'];_0x1301=function(){return _0x240b78;};return _0x1301();}import{IconError as _0x127dd6}from'ckeditor5/src/icons.js';import{View as _0x1b670b,IconView as _0x588e8c}from'ckeditor5/src/ui.js';function _0x2d06(_0x568637,_0x2e80f7){const _0x130198=_0x1301();return _0x2d06=function(_0x2d067a,_0x29425b){_0x2d067a=_0x2d067a-0xa3;let _0x21800f=_0x130198[_0x2d067a];return _0x21800f;},_0x2d06(_0x568637,_0x2e80f7);}export class AIFormErrorView extends _0x1b670b{constructor(_0x316103,_0xa15230=''){const _0x5b2e01=_0x2d06;super(_0x316103);const _0x21d808=new _0x588e8c(),_0x537978=this[_0x5b2e01(0xac)];this[_0x5b2e01(0xb0)](_0x5b2e01(0xb1),_0xa15230),_0x21d808[_0x5b2e01(0xa8)]=_0x127dd6,this[_0x5b2e01(0xaa)]({'tag':_0x5b2e01(0xad),'attributes':{'class':['ck',_0x5b2e01(0xa7)]},'children':[_0x21d808,{'text':_0x537978['to'](_0x5b2e01(0xb1))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x483b(){const _0x4c4b9c=['render','focus','ck-ai-form__submit','_createSubmitButton','maxRows','16256JJyncb','357363DkaoZf','fieldWrapperChildren','focusLast','focusCycler','left','2051UDSDwO','910364BynrPf','468200rNhlip','execute','rtl','keystrokes','focusableChildren','Submit','fire','submitButtonView','queryView','locale','window','ck-ai-form__toggle-history','651365dRUvLL','fieldView','focusFirst','bind','isEnabled','resultsView','submit','children','update','6nHTKmq','7432065erIaOh','filteredView','set','167826BVFFmB','excludeScrollbarsAndBorders','History','requestAnimationFrame','target','isOn','right','uiLanguageDirection','showHistoryButtonView','add','width','element','minRows','enter','_createShowHistoryButton','isEmpty','isVisible','value','style'];_0x483b=function(){return _0x4c4b9c;};return _0x483b();}function _0x5d2c(_0x39db9d,_0x314bbf){const _0x483b79=_0x483b();return _0x5d2c=function(_0x5d2c2e,_0x4b5204){_0x5d2c2e=_0x5d2c2e-0x84;let _0x2316d2=_0x483b79[_0x5d2c2e];return _0x2316d2;},_0x5d2c(_0x39db9d,_0x314bbf);}const _0x91a34=_0x5d2c;(function(_0x16889c,_0x59fa44){const _0x5ee3bb=_0x5d2c,_0x2676c8=_0x16889c();while(!![]){try{const _0x21fe78=parseInt(_0x5ee3bb(0xad))/0x1+-parseInt(_0x5ee3bb(0x8d))/0x2+-parseInt(_0x5ee3bb(0xa6))/0x3+parseInt(_0x5ee3bb(0xac))/0x4+parseInt(_0x5ee3bb(0xb9))/0x5*(parseInt(_0x5ee3bb(0x89))/0x6)+parseInt(_0x5ee3bb(0xab))/0x7*(parseInt(_0x5ee3bb(0xa5))/0x8)+-parseInt(_0x5ee3bb(0x8a))/0x9;if(_0x21fe78===_0x59fa44)break;else _0x2676c8['push'](_0x2676c8['shift']());}catch(_0x34dc01){_0x2676c8['push'](_0x2676c8['shift']());}}}(_0x483b,0x5fdad));import{Rect as _0x833c2f,global as _0x4553ec,isVisible as _0x52afb8}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x41fd57,IconSubmit as _0x111e27}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x9f33cd,ButtonView as _0x1d173c}from'ckeditor5/src/ui.js';import{getTranslation as _0x131d4c}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x9f33cd{[_0x91a34(0xb4)];[_0x91a34(0x95)];constructor(_0x1b6355,_0x2a9da9){const _0xed7d05=_0x91a34;super(_0x1b6355,_0x2a9da9),this[_0xed7d05(0xb5)][_0xed7d05(0xba)][_0xed7d05(0x99)]=0x1,this[_0xed7d05(0xb5)][_0xed7d05(0xba)][_0xed7d05(0xa4)]=0x3,this[_0xed7d05(0xb4)]=this[_0xed7d05(0xa3)](),this[_0xed7d05(0x95)]=this[_0xed7d05(0x9b)](),this[_0xed7d05(0xb1)][_0xed7d05(0x96)](this[_0xed7d05(0x95)],0x1),this[_0xed7d05(0xb1)][_0xed7d05(0x96)](this[_0xed7d05(0xb4)]);}[_0x91a34(0xa0)](){const _0x265b97=_0x91a34;super[_0x265b97(0xa0)](),this[_0x265b97(0xb5)][_0x265b97(0xa7)][_0x265b97(0x96)](this[_0x265b97(0x95)]),this[_0x265b97(0x87)][_0x265b97(0x96)](this[_0x265b97(0xb4)]),this[_0x265b97(0xb0)][_0x265b97(0x8c)](_0x265b97(0x9a),(_0x2b443d,_0x434427)=>{const _0x3fa61d=_0x265b97;_0x2b443d[_0x3fa61d(0x91)]==this[_0x3fa61d(0xb5)][_0x3fa61d(0xba)][_0x3fa61d(0x98)]&&(this[_0x3fa61d(0x86)](),_0x434427());});}[_0x91a34(0xa3)](){const _0x26eb40=_0x91a34,_0x5ae29d=new _0x1d173c(this[_0x26eb40(0xb6)]),_0x1a54a7=this[_0x26eb40(0xb6)];return _0x5ae29d[_0x26eb40(0x8c)]({'icon':_0x111e27,'label':_0x131d4c(_0x1a54a7,_0x26eb40(0xb2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x26eb40(0xa2)}),_0x5ae29d['on'](_0x26eb40(0xae),()=>{const _0x26cb99=_0x26eb40;this[_0x26cb99(0x86)]();}),_0x5ae29d[_0x26eb40(0xbc)](_0x26eb40(0x84))['to'](this[_0x26eb40(0xb5)][_0x26eb40(0xba)],_0x26eb40(0x9c),this,_0x26eb40(0x84),(_0x4dcd40,_0x442cec)=>!_0x4dcd40&&_0x442cec),_0x5ae29d;}[_0x91a34(0x9b)](){const _0x496c6d=_0x91a34,_0x168b3e=new _0x1d173c(this[_0x496c6d(0xb6)]),_0x397658=this[_0x496c6d(0x85)],_0x16df7b=this[_0x496c6d(0xb6)];_0x168b3e[_0x496c6d(0x8c)]({'label':_0x131d4c(_0x16df7b,_0x496c6d(0x8f)),'withText':!0x1,'icon':_0x41fd57,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x496c6d(0xb8)}),_0x168b3e[_0x496c6d(0xbc)](_0x496c6d(0x92))['to'](_0x397658,_0x496c6d(0x9d)),_0x168b3e[_0x496c6d(0xbc)](_0x496c6d(0x84))['to'](this,_0x496c6d(0x84)),_0x168b3e['on'](_0x496c6d(0xae),()=>{const _0x2b9a9c=_0x496c6d;_0x397658[_0x2b9a9c(0x9d)]=!_0x397658[_0x2b9a9c(0x9d)],_0x397658[_0x2b9a9c(0x9d)]?this[_0x2b9a9c(0x8b)][_0x2b9a9c(0xa1)]():this[_0x2b9a9c(0xa1)]();});const _0x18d13f=()=>{const _0x3790a5=_0x496c6d;_0x4553ec[_0x3790a5(0xb7)][_0x3790a5(0x90)](()=>{const _0x2b03b8=_0x3790a5;if(_0x52afb8(this[_0x2b03b8(0x98)])){const _0x355821=new _0x833c2f(this[_0x2b03b8(0xb5)][_0x2b03b8(0xba)][_0x2b03b8(0x98)]),_0x5aa017=_0x355821[_0x2b03b8(0x97)],_0x443aee=_0x2b03b8(0xaf)===_0x16df7b[_0x2b03b8(0x94)]?_0x2b03b8(0xaa):_0x2b03b8(0x93);_0x355821[_0x2b03b8(0x8e)](),_0x168b3e[_0x2b03b8(0x98)][_0x2b03b8(0x9f)][_0x443aee]=_0x5aa017-_0x355821[_0x2b03b8(0x97)]+0x1+'px';}});};return this[_0x496c6d(0xb5)][_0x496c6d(0xba)]['on'](_0x496c6d(0x88),_0x18d13f),this['on'](_0x496c6d(0xa0),_0x18d13f),_0x168b3e;}[_0x91a34(0x86)](){const _0xcf8c0e=_0x91a34,_0x88bae4=this[_0xcf8c0e(0xb5)][_0xcf8c0e(0xba)][_0xcf8c0e(0x98)][_0xcf8c0e(0x9e)];this[_0xcf8c0e(0xb3)](_0xcf8c0e(0x86),_0x88bae4);}[_0x91a34(0xa1)](_0x143dd0){const _0x5d5213=_0x91a34;-0x1===_0x143dd0?this[_0x5d5213(0xa9)][_0x5d5213(0xa8)]():this[_0x5d5213(0xa9)][_0x5d5213(0xbb)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29e50b=_0x373c;(function(_0x428b50,_0x494205){const _0x163ae2=_0x373c,_0x17ebdc=_0x428b50();while(!![]){try{const _0x1160b6=-parseInt(_0x163ae2(0xa7))/0x1+parseInt(_0x163ae2(0xaa))/0x2+-parseInt(_0x163ae2(0xac))/0x3*(parseInt(_0x163ae2(0xb3))/0x4)+-parseInt(_0x163ae2(0x9b))/0x5*(-parseInt(_0x163ae2(0x94))/0x6)+-parseInt(_0x163ae2(0x90))/0x7+-parseInt(_0x163ae2(0x8f))/0x8+parseInt(_0x163ae2(0xab))/0x9*(parseInt(_0x163ae2(0x9f))/0xa);if(_0x1160b6===_0x494205)break;else _0x17ebdc['push'](_0x17ebdc['shift']());}catch(_0x59beb4){_0x17ebdc['push'](_0x17ebdc['shift']());}}}(_0x5091,0x52da6));function _0x373c(_0x3aa186,_0x25e4b7){const _0x5091f9=_0x5091();return _0x373c=function(_0x373c35,_0x1bf8e7){_0x373c35=_0x373c35-0x8f;let _0x469d13=_0x5091f9[_0x373c35];return _0x469d13;},_0x373c(_0x3aa186,_0x25e4b7);}import{ToolbarView as _0x2cfec9,ButtonView as _0x15a7b4}from'ckeditor5/src/ui.js';import{getTranslation as _0x53c961}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x29e50b(0xb2),'INSERT':_0x29e50b(0xb1)};export class AIFormToolbarView extends _0x2cfec9{constructor(_0x3ac73f){const _0x39652a=_0x29e50b;super(_0x3ac73f),this[_0x39652a(0xa0)](_0x39652a(0x98),!0x1),this[_0x39652a(0xa0)](_0x39652a(0xad),AIFormToolbarViewMainActionLabel[_0x39652a(0x9e)]),this[_0x39652a(0xb0)]=this[_0x39652a(0x96)]('',_0x39652a(0xa1)),this[_0x39652a(0xb0)][_0x39652a(0x97)](_0x39652a(0xa6))['to'](this,_0x39652a(0xad),_0x19cd58=>_0x53c961(_0x3ac73f,_0x39652a(0xae)+_0x19cd58[_0x39652a(0x9c)]()+_0x39652a(0x91))),this[_0x39652a(0xa2)]=this[_0x39652a(0x96)](_0x53c961(_0x3ac73f,_0x39652a(0x92))),this[_0x39652a(0x9d)]=this[_0x39652a(0x96)](_0x53c961(_0x3ac73f,_0x39652a(0xa9))),this[_0x39652a(0xa8)]=this[_0x39652a(0x96)](_0x53c961(_0x3ac73f,_0x39652a(0xaf)));const _0xd29308=this[_0x39652a(0x9a)];this[_0x39652a(0xa5)]({'attributes':{'class':[_0x39652a(0x93),_0xd29308['if'](_0x39652a(0x98),_0x39652a(0xa3),_0x52a22f=>!_0x52a22f)]}}),this[_0x39652a(0x95)][_0x39652a(0x99)]([this[_0x39652a(0xb0)],this[_0x39652a(0xa2)],this[_0x39652a(0x9d)],this[_0x39652a(0xa8)]]);}[_0x29e50b(0x96)](_0x18052c,_0xddc1b8){const _0x31c2cf=_0x29e50b,_0x20b499=new _0x15a7b4(this[_0x31c2cf(0xa4)]);return _0x20b499[_0x31c2cf(0xa0)]({'label':_0x18052c,'class':_0xddc1b8||'','isVisible':!0x0,'withText':!0x0}),_0x20b499;}}function _0x5091(){const _0x3835c4=['bind','isVisible','addMany','bindTemplate','1885470yVPkvY','toUpperCase','tryAgainButton','REPLACE','4170wUMYsA','set','ck-button-action','insertButton','ck-hidden','locale','extendTemplate','label','204880xQSWRC','stopButton','Try\x20again','1011360inDtMU','13239KGOaeL','933TVhWEi','mainAction','AI_','Stop','replaceButton','insert','replace','132cwHmzh','5428688PWDRvY','1841602SQIgFk','_CONTENT','Insert\x20below','ck-ai-form__toolbar','6YBEyab','items','_createButton'];_0x5091=function(){return _0x3835c4;};return _0x5091();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5ed68c=_0x1b38;(function(_0x574723,_0xe50303){const _0xef1c12=_0x1b38,_0x3bd3eb=_0x574723();while(!![]){try{const _0x507a64=parseInt(_0xef1c12(0xe7))/0x1*(-parseInt(_0xef1c12(0xe4))/0x2)+-parseInt(_0xef1c12(0xf4))/0x3*(parseInt(_0xef1c12(0xf7))/0x4)+parseInt(_0xef1c12(0xdc))/0x5+parseInt(_0xef1c12(0x122))/0x6*(-parseInt(_0xef1c12(0x12f))/0x7)+parseInt(_0xef1c12(0xff))/0x8+-parseInt(_0xef1c12(0x106))/0x9*(-parseInt(_0xef1c12(0xee))/0xa)+-parseInt(_0xef1c12(0x10f))/0xb*(parseInt(_0xef1c12(0x116))/0xc);if(_0x507a64===_0xe50303)break;else _0x3bd3eb['push'](_0x3bd3eb['shift']());}catch(_0x2d087c){_0x3bd3eb['push'](_0x3bd3eb['shift']());}}}(_0x452f,0x347bc));import{FocusTracker as _0x1f1b32,KeystrokeHandler as _0x1f8c21}from'ckeditor5/src/utils.js';import{View as _0x1fe6b3,FocusCycler as _0x2f96ad,createLabeledTextarea as _0x12f2b8}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x24d858,AIFormToolbarViewMainActionLabel as _0x4e833a}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x19233f}from'./aiformcontentarea.js';import{AIFormErrorView as _0x543e02}from'./aiformerrorview.js';import{AIFormPromptView as _0xe7e733}from'./aiformpromptview.js';import{AIHistoryListView as _0x386d34}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x16202a}from'./aihistorylistitemview.js';function _0x452f(){const _0x5581af=['add','element','items','tryAgainEvent','fire','fieldView','9hGcEVV','tab','text','Empty\x20history','bindTemplate','search','promptView','execute','bind','11YPJUjb','stopButton','_createHistoryView','startProcessing','locale','replaceContent','errorView','1768956XznHHL','bindTo','delegate','handleError','focusLast','isError','mainAction','clearHistory','stopProcessing','tryAgainButton','shift\x20+\x20tab','REPLACE','689502CfmwOn','Ask\x20AI\x20to\x20edit\x20or\x20generate','ck-ai-form','_createPromptView','setTemplate','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_focusables','insertButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertContentBelow','focusTracker','finishProcessing','submit','21mjKcYB','render','copyButtonView','reset','1281915yDEPxB','prompt','AI_ERROR_FAILED','isVisible','label','historyGroupView','ck-hidden','keystrokes','19606wqoQVZ','ck-ai-form-content','listenTo','16LLtcZL','queryView','set','high','chain','_createToolbar','focusCycler','3986590zvOBhZ','_promptHistory','value','submitPrompt','isEnabled','focusFirst','125277BDkBAK','toolbar','trim','20xAcQQu','clear','isProcessing','createCollection','replaceButton','div','focus','contentArea','3341896lWIgDz'];_0x452f=function(){return _0x5581af;};return _0x452f();}import{PromptHistory as _0xb9e98d}from'./prompthistory.js';import{getTranslation as _0x104c3d}from'../../utils/common-translations.js';import{escape as _0x5232c3}from'es-toolkit/compat';function _0x1b38(_0x146810,_0x51e6b7){const _0x452fe4=_0x452f();return _0x1b38=function(_0x1b38a5,_0xff2cb0){_0x1b38a5=_0x1b38a5-0xdb;let _0x19df9f=_0x452fe4[_0x1b38a5];return _0x19df9f;},_0x1b38(_0x146810,_0x51e6b7);}export class AIFormView extends _0x1fe6b3{[_0x5ed68c(0x12c)];[_0x5ed68c(0xe3)];[_0x5ed68c(0xfe)];[_0x5ed68c(0xf5)];[_0x5ed68c(0x10c)];[_0x5ed68c(0x115)];[_0x5ed68c(0x128)];[_0x5ed68c(0xed)];[_0x5ed68c(0xef)];constructor(_0x3c3a33,_0x4c82fa,_0x1e0f20=''){const _0xf19900=_0x5ed68c;super(_0x3c3a33),this[_0xf19900(0xe9)](_0xf19900(0xf2),!0x0),this[_0xf19900(0xe9)](_0xf19900(0xf9),!0x1),this[_0xf19900(0xe9)](_0xf19900(0xdd),''),this[_0xf19900(0xe9)](_0xf19900(0xf0),''),this[_0xf19900(0xe9)](_0xf19900(0x11b),!0x1),this[_0xf19900(0xe9)](_0xf19900(0x11c),_0x4e833a[_0xf19900(0x121)]),this[_0xf19900(0xef)]=new _0xb9e98d(),this[_0xf19900(0x115)]=new _0x543e02(_0x3c3a33),this[_0xf19900(0xfe)]=new _0x19233f(_0x3c3a33,_0x1e0f20),this[_0xf19900(0xfe)][_0xf19900(0x10e)](_0xf19900(0xf9))['to'](this),this[_0xf19900(0xfe)][_0xf19900(0x10e)](_0xf19900(0xf0))['to'](this),this[_0xf19900(0xf5)]=this[_0xf19900(0xec)](),this[_0xf19900(0xf5)][_0xf19900(0x10e)](_0xf19900(0x11c))['to'](this),this[_0xf19900(0x10c)]=this[_0xf19900(0x125)](),this[_0xf19900(0x12c)]=new _0x1f1b32(),this[_0xf19900(0xe3)]=new _0x1f8c21(),this[_0xf19900(0x128)]=this[_0xf19900(0xfa)]([this[_0xf19900(0xfe)],this[_0xf19900(0xfe)][_0xf19900(0x131)],this[_0xf19900(0xf5)],this[_0xf19900(0x10c)]]),this[_0xf19900(0xed)]=new _0x2f96ad({'focusables':this[_0xf19900(0x128)],'focusTracker':this[_0xf19900(0x12c)],'keystrokeHandler':this[_0xf19900(0xe3)],'actions':{'focusPrevious':_0xf19900(0x120),'focusNext':_0xf19900(0x107)}}),this[_0xf19900(0xed)][_0xf19900(0xeb)](this[_0xf19900(0x10c)][_0xf19900(0xed)]),this[_0xf19900(0x10c)][_0xf19900(0xe8)][_0xf19900(0x105)][_0xf19900(0x10e)](_0xf19900(0xf0))['to'](this,_0xf19900(0xdd));const _0x1d27f4=this[_0xf19900(0x10a)];this[_0xf19900(0x126)]({'tag':_0xf19900(0xfc),'attributes':{'class':['ck',_0xf19900(0x124),_0x4c82fa],'tabindex':'-1'},'children':[{'tag':_0xf19900(0xfc),'attributes':{'class':['ck',_0xf19900(0xe5)]},'children':[{'tag':_0xf19900(0xfc),'attributes':{'class':[_0x1d27f4['if'](_0xf19900(0x11b),_0xf19900(0xe2),_0x24bf97=>!_0x24bf97)]},'children':[this[_0xf19900(0x115)]]},this[_0xf19900(0xfe)],this[_0xf19900(0xf5)],this[_0xf19900(0x10c)]]}]});}[_0x5ed68c(0x130)](){const _0x3b5e56=_0x5ed68c;super[_0x3b5e56(0x130)](),this[_0x3b5e56(0x12c)][_0x3b5e56(0x100)](this[_0x3b5e56(0xfe)][_0x3b5e56(0x101)]),this[_0x3b5e56(0x12c)][_0x3b5e56(0x100)](this[_0x3b5e56(0xfe)][_0x3b5e56(0x131)][_0x3b5e56(0x101)]),this[_0x3b5e56(0x12c)][_0x3b5e56(0x100)](this[_0x3b5e56(0xf5)][_0x3b5e56(0x101)]),this[_0x3b5e56(0x12c)][_0x3b5e56(0x100)](this[_0x3b5e56(0x10c)][_0x3b5e56(0x101)]),this[_0x3b5e56(0xe3)][_0x3b5e56(0xe6)](this[_0x3b5e56(0x101)]);}[_0x5ed68c(0xfd)](_0x2ce888=0x1){const _0x29edc1=_0x5ed68c;-0x1===_0x2ce888?this[_0x29edc1(0xed)][_0x29edc1(0x11a)]():this[_0x29edc1(0xed)][_0x29edc1(0xf3)]();}[_0x5ed68c(0xdb)](){const _0x47676f=_0x5ed68c;this[_0x47676f(0xdd)]='',this[_0x47676f(0xf0)]='',this[_0x47676f(0x11b)]=!0x1,this[_0x47676f(0x10c)][_0x47676f(0xdb)](),this[_0x47676f(0xfe)][_0x47676f(0xdf)]=!0x1,this[_0x47676f(0xf5)][_0x47676f(0xdf)]=!0x1;}[_0x5ed68c(0x125)](){const _0x1c6a26=_0x5ed68c,_0x2a394b=this[_0x1c6a26(0x113)],_0x485edf=new _0xe7e733(_0x2a394b,{'queryView':{'label':_0x104c3d(_0x2a394b,_0x1c6a26(0x123)),'creator':_0x12f2b8,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x104c3d(_0x2a394b,_0x1c6a26(0x109)),'secondary':_0x104c3d(_0x2a394b,_0x1c6a26(0x127))}}},'filteredView':this[_0x1c6a26(0x111)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x485edf[_0x1c6a26(0x10e)](_0x1c6a26(0xf2))['to'](this,_0x1c6a26(0xf2),this,_0x1c6a26(0xf9),(_0x41de2d,_0x150c60)=>_0x41de2d&&!_0x150c60),this[_0x1c6a26(0xe6)](_0x485edf,_0x1c6a26(0x12e),(_0x225b74,_0x537efd)=>{const _0x3a2797=_0x1c6a26;this[_0x3a2797(0xdd)]=_0x537efd;const _0x22f571=_0x5232c3(_0x537efd);this[_0x3a2797(0x104)](_0x3a2797(0xf1),_0x22f571),_0x537efd[_0x3a2797(0xf6)]()&&this[_0x3a2797(0xef)][_0x3a2797(0x100)]({'prompt':_0x22f571},0x0);},{'priority':_0x1c6a26(0xea)}),_0x485edf;}[_0x5ed68c(0x111)](){const _0x16b0df=_0x5ed68c,_0x19dd0c=new _0x386d34(this[_0x16b0df(0x113)]);return _0x19dd0c[_0x16b0df(0xe1)][_0x16b0df(0x102)][_0x16b0df(0x117)](this[_0x16b0df(0xef)])['as'](_0x16202a),_0x19dd0c['on'](_0x16b0df(0x11d),()=>{const _0x366bfe=_0x16b0df;this[_0x366bfe(0xef)][_0x366bfe(0xf8)](),this[_0x366bfe(0x10c)][_0x366bfe(0x10b)](''),this[_0x366bfe(0x10c)][_0x366bfe(0xfd)]();}),_0x19dd0c;}[_0x5ed68c(0xec)](){const _0x2a2e51=_0x5ed68c,_0x1fbea9=new _0x24d858(this[_0x2a2e51(0x113)]);return _0x1fbea9[_0x2a2e51(0xfb)][_0x2a2e51(0x10e)](_0x2a2e51(0xf2))['to'](this,_0x2a2e51(0xf2),this,_0x2a2e51(0xf9),this,_0x2a2e51(0xf0),(_0x4f21d9,_0x5eef0b,_0x3fe332)=>_0x4f21d9&&!_0x5eef0b&&!!_0x3fe332),_0x1fbea9[_0x2a2e51(0xfb)][_0x2a2e51(0x118)](_0x2a2e51(0x10d))['to'](this,_0x2a2e51(0x114)),_0x1fbea9[_0x2a2e51(0x129)][_0x2a2e51(0x10e)](_0x2a2e51(0xf2))['to'](this,_0x2a2e51(0xf2),this,_0x2a2e51(0xf9),this,_0x2a2e51(0xf0),(_0x5790fb,_0x42bbe7,_0x2e7fe1)=>_0x5790fb&&!_0x42bbe7&&!!_0x2e7fe1),_0x1fbea9[_0x2a2e51(0x129)][_0x2a2e51(0x118)](_0x2a2e51(0x10d))['to'](this,_0x2a2e51(0x12b)),_0x1fbea9[_0x2a2e51(0x11f)][_0x2a2e51(0x10e)](_0x2a2e51(0xf2))['to'](this,_0x2a2e51(0xf2),this,_0x2a2e51(0xf9),(_0x365bd3,_0x26c625)=>_0x365bd3&&!_0x26c625),_0x1fbea9[_0x2a2e51(0x11f)][_0x2a2e51(0x118)](_0x2a2e51(0x10d))['to'](this,_0x2a2e51(0x103)),_0x1fbea9[_0x2a2e51(0x110)][_0x2a2e51(0x10e)](_0x2a2e51(0xf2))['to'](this,_0x2a2e51(0xf9)),_0x1fbea9[_0x2a2e51(0x110)][_0x2a2e51(0x118)](_0x2a2e51(0x10d))['to'](this,_0x2a2e51(0x11e)),_0x1fbea9;}[_0x5ed68c(0x112)](){const _0x5b88f5=_0x5ed68c;this[_0x5b88f5(0xf0)]='',this[_0x5b88f5(0x11b)]=!0x1,this[_0x5b88f5(0xf9)]=!0x0,this[_0x5b88f5(0xfe)][_0x5b88f5(0xdf)]=!0x0,this[_0x5b88f5(0xf5)][_0x5b88f5(0xdf)]=!0x0,this[_0x5b88f5(0xfe)][_0x5b88f5(0xfd)]();}[_0x5ed68c(0x12d)](){const _0xab17ad=_0x5ed68c,_0x58caed=this[_0xab17ad(0x113)];this[_0xab17ad(0xf9)]=!0x1,this[_0xab17ad(0xdd)]='',this[_0xab17ad(0x10c)][_0xab17ad(0xdb)](),this[_0xab17ad(0xf0)]&&(this[_0xab17ad(0x10c)][_0xab17ad(0xe8)][_0xab17ad(0xe0)]=_0x104c3d(_0x58caed,_0xab17ad(0x12a)));}[_0x5ed68c(0x119)](_0x546974){const _0x112b4d=_0x5ed68c,_0x4e9ec6=this[_0x112b4d(0x113)];this[_0x112b4d(0x12d)](),this[_0x112b4d(0x11b)]=!0x0,this[_0x112b4d(0x115)][_0x112b4d(0x108)]=_0x546974||_0x104c3d(_0x4e9ec6,_0x112b4d(0xde)),this[_0x112b4d(0xf0)]||(this[_0x112b4d(0xfe)][_0x112b4d(0xdf)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2e8ccb,_0x22e48d){const _0x34f568=_0x1c26,_0x15e5f9=_0x2e8ccb();while(!![]){try{const _0xe802de=-parseInt(_0x34f568(0x1d5))/0x1*(-parseInt(_0x34f568(0x1d7))/0x2)+parseInt(_0x34f568(0x1d3))/0x3+parseInt(_0x34f568(0x1dd))/0x4*(parseInt(_0x34f568(0x1d4))/0x5)+-parseInt(_0x34f568(0x1de))/0x6+-parseInt(_0x34f568(0x1da))/0x7*(-parseInt(_0x34f568(0x1d6))/0x8)+parseInt(_0x34f568(0x1e3))/0x9*(parseInt(_0x34f568(0x1e0))/0xa)+-parseInt(_0x34f568(0x1d2))/0xb*(parseInt(_0x34f568(0x1d9))/0xc);if(_0xe802de===_0x22e48d)break;else _0x15e5f9['push'](_0x15e5f9['shift']());}catch(_0x1bc356){_0x15e5f9['push'](_0x15e5f9['shift']());}}}(_0x5e07,0xd8f30));import{ListItemView as _0xac7c3,ButtonView as _0x509f21,ButtonLabelView as _0x11aa6d}from'ckeditor5/src/ui.js';import{unescape as _0x23b42a}from'es-toolkit/compat';function _0x1c26(_0x410848,_0x456012){const _0x5e07dd=_0x5e07();return _0x1c26=function(_0x1c26f9,_0x325edd){_0x1c26f9=_0x1c26f9-0x1d1;let _0x52c7e3=_0x5e07dd[_0x1c26f9];return _0x52c7e3;},_0x1c26(_0x410848,_0x456012);}function _0x5e07(){const _0x1acaa9=['execute','299036SDfxvB','4986570DdHeSf','add','20EocQxq','set','children','768267LPAgpP','locale','24474736dJlWoD','1143615cYeyhO','115qdxmae','301qeDZgq','16WjLXUd','2422cacSDK','fire','12QujTVB','4580786cvglCa','prompt'];_0x5e07=function(){return _0x1acaa9;};return _0x5e07();}export class AIHistoryListItemView extends _0xac7c3{constructor(_0x1b267b){const _0x5c334c=_0x1c26;super();const _0x55479a=new _0x11aa6d(),_0x2884a7=new _0x509f21(this[_0x5c334c(0x1d1)],_0x55479a);this[_0x5c334c(0x1e2)][_0x5c334c(0x1df)](_0x2884a7),_0x2884a7[_0x5c334c(0x1e1)]({'label':_0x1b267b[_0x5c334c(0x1db)],'withText':!0x0}),_0x2884a7['on'](_0x5c334c(0x1dc),()=>{const _0x3fc003=_0x5c334c;this[_0x3fc003(0x1d8)](_0x3fc003(0x1dc),{'value':_0x23b42a(_0x1b267b[_0x3fc003(0x1db)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x405606=_0x3c28;function _0x3c28(_0x5e0791,_0x3c7a9c){const _0x971a57=_0x971a();return _0x3c28=function(_0x3c2884,_0x3fe4ff){_0x3c2884=_0x3c2884-0x127;let _0x14388a=_0x971a57[_0x3c2884];return _0x14388a;},_0x3c28(_0x5e0791,_0x3c7a9c);}function _0x971a(){const _0x7740a0=['7nvAgia','items','fire','Prompt\x20history','3241912MZloQo','set','filter','_createClearHistoryButton','1090326aZfnkt','clearHistory','children','delegate','label','2724bFzebs','length','Clear','339705HILbUN','130SrsPwE','2002130IVdAki','3442832rOfHsM','historyGroupView','clearHistoryButton','execute','1714iCpwOM','810985mVfvUG','add','locale'];_0x971a=function(){return _0x7740a0;};return _0x971a();}(function(_0x1eec01,_0x3fad89){const _0x36a558=_0x3c28,_0x32d3e8=_0x1eec01();while(!![]){try{const _0x1f4fc1=-parseInt(_0x36a558(0x12a))/0x1+-parseInt(_0x36a558(0x129))/0x2*(-parseInt(_0x36a558(0x13a))/0x3)+parseInt(_0x36a558(0x131))/0x4+parseInt(_0x36a558(0x13f))/0x5+-parseInt(_0x36a558(0x135))/0x6*(-parseInt(_0x36a558(0x12d))/0x7)+-parseInt(_0x36a558(0x140))/0x8+parseInt(_0x36a558(0x13d))/0x9*(-parseInt(_0x36a558(0x13e))/0xa);if(_0x1f4fc1===_0x3fad89)break;else _0x32d3e8['push'](_0x32d3e8['shift']());}catch(_0x1a14be){_0x32d3e8['push'](_0x32d3e8['shift']());}}}(_0x971a,0x6b1e5));import{ListView as _0x4d0554,ListItemGroupView as _0x53698f,ButtonView as _0x53964c}from'ckeditor5/src/ui.js';import{getTranslation as _0x527a99}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x4d0554{[_0x405606(0x141)];[_0x405606(0x127)];constructor(_0x528d34){const _0x1da1ec=_0x405606;super(_0x528d34),this[_0x1da1ec(0x127)]=this[_0x1da1ec(0x134)](),this[_0x1da1ec(0x141)]=new _0x53698f(),this[_0x1da1ec(0x141)][_0x1da1ec(0x137)][_0x1da1ec(0x12b)](this[_0x1da1ec(0x127)],0x1),this[_0x1da1ec(0x141)][_0x1da1ec(0x139)]=_0x527a99(_0x528d34,_0x1da1ec(0x130)),this[_0x1da1ec(0x141)][_0x1da1ec(0x12e)][_0x1da1ec(0x138)](_0x1da1ec(0x128))['to'](this),this[_0x1da1ec(0x12e)][_0x1da1ec(0x12b)](this[_0x1da1ec(0x141)]);}[_0x405606(0x133)](){const _0x585519=_0x405606;let _0x18b482=0x0;for(const _0x21339e of this[_0x585519(0x12e)])_0x18b482+=_0x21339e[_0x585519(0x12e)][_0x585519(0x13b)];return{'resultsCount':_0x18b482,'totalItemsCount':_0x18b482};}[_0x405606(0x134)](){const _0x1340ec=_0x405606,_0x40e548=this[_0x1340ec(0x12c)],_0x2638b9=new _0x53964c(this[_0x1340ec(0x12c)]);return _0x2638b9[_0x1340ec(0x132)]({'label':'('+_0x527a99(_0x40e548,_0x1340ec(0x13c))+')','withText':!0x0}),_0x2638b9['on'](_0x1340ec(0x128),()=>this[_0x1340ec(0x12f)](_0x1340ec(0x136))),_0x2638b9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1840c8=_0x9dce;function _0x50a1(){const _0x22c33e=['addMany','add','parse','toLowerCase','87392KmZlHr','10YfSUFK','82126XcHdBR','prompt','961587bVOEWG','1574370YBmNcr','length','map','remove','last','trim','285nDYgVY','2332OUeXOp','324TPsWkl','CKEditor/AIFormView/PromptHistory','_saveToSessionStorage','2037448CWDRaN','getItem','_loadFromSessionStorage','stringify','14CaOGYp','setItem','20202egaCBx'];_0x50a1=function(){return _0x22c33e;};return _0x50a1();}(function(_0x305b80,_0x54dfea){const _0x4b552c=_0x9dce,_0x1e5776=_0x305b80();while(!![]){try{const _0x7ee38e=-parseInt(_0x4b552c(0x1ad))/0x1*(parseInt(_0x4b552c(0x1ac))/0x2)+parseInt(_0x4b552c(0x1a5))/0x3+-parseInt(_0x4b552c(0x1a0))/0x4+parseInt(_0x4b552c(0x1ab))/0x5*(-parseInt(_0x4b552c(0x1b6))/0x6)+-parseInt(_0x4b552c(0x1b4))/0x7*(-parseInt(_0x4b552c(0x1b0))/0x8)+parseInt(_0x4b552c(0x1a4))/0x9*(-parseInt(_0x4b552c(0x1a1))/0xa)+parseInt(_0x4b552c(0x1a2))/0xb;if(_0x7ee38e===_0x54dfea)break;else _0x1e5776['push'](_0x1e5776['shift']());}catch(_0x5a2f71){_0x1e5776['push'](_0x1e5776['shift']());}}}(_0x50a1,0x53cb8));import{Collection as _0x5e92af}from'ckeditor5/src/utils.js';function _0x9dce(_0x4d4c05,_0x29295e){const _0x50a131=_0x50a1();return _0x9dce=function(_0x9dcec0,_0x33a958){_0x9dcec0=_0x9dcec0-0x19e;let _0x333613=_0x50a131[_0x9dcec0];return _0x333613;},_0x9dce(_0x4d4c05,_0x29295e);}const So=_0x1840c8(0x1ae);export class PromptHistory extends _0x5e92af{constructor(){const _0x1082e0=_0x1840c8;super(),this[_0x1082e0(0x1b2)](),this['on'](_0x1082e0(0x1b8),(_0x54d3df,_0x370f39)=>{const _0x3af811=_0x1082e0,_0x53fa4f=fo(_0x370f39[_0x3af811(0x1a3)]);for(const _0xf6c98a of this)if(_0xf6c98a!=_0x370f39&&fo(_0xf6c98a[_0x3af811(0x1a3)])===_0x53fa4f){this[_0x3af811(0x1a8)](_0xf6c98a);break;}this[_0x3af811(0x1a6)]>0x14&&this[_0x3af811(0x1a8)](this[_0x3af811(0x1a9)]),this[_0x3af811(0x1af)]();}),this['on'](_0x1082e0(0x1a8),()=>{const _0x5bf3f9=_0x1082e0;this[_0x5bf3f9(0x1af)]();});}[_0x1840c8(0x1b2)](){const _0x1c89f3=_0x1840c8,_0x1b69fa=sessionStorage[_0x1c89f3(0x1b1)](So)||'[]';this[_0x1c89f3(0x1b7)](JSON[_0x1c89f3(0x19e)](_0x1b69fa));}[_0x1840c8(0x1af)](){const _0x55f51b=_0x1840c8;sessionStorage[_0x55f51b(0x1b5)](So,JSON[_0x55f51b(0x1b3)](this[_0x55f51b(0x1a7)](_0x553526=>_0x553526)));}}function fo(_0x65ee96){const _0x247fc5=_0x1840c8;return _0x65ee96[_0x247fc5(0x19f)]()[_0x247fc5(0x1aa)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3d50(){const _0x4f0e51=['1115eLedkJ','includes','selection','model','get','246TsyFfZ','refresh','length','execute','from','_commandDefinitions','81mmKfGj','document','plugins','119933TAxRKM','2821882UDhSvK','85962ZOGcWz','set','change:isEnabled','32885RHnihR','custom','getItems','isEmpty','requiresContent','540432HMkCIV','_hasContext','values','ai.assistant.disabledElements','element','name','1933112sEzeRF','change:_hasContext','getFirstRange','getRanges','1066bpAYJE','enabledCommandsIds','530xEaNVy','add','showUI','editor','config','isCollapsed','isEnabled','getSelectedBlocks','hasContent'];_0x3d50=function(){return _0x4f0e51;};return _0x3d50();}const _0x3e4acb=_0x30c3;(function(_0x3f7383,_0x978a90){const _0x5362db=_0x30c3,_0x1ca78a=_0x3f7383();while(!![]){try{const _0x3dc76d=-parseInt(_0x5362db(0x181))/0x1*(-parseInt(_0x5362db(0x176))/0x2)+-parseInt(_0x5362db(0x164))/0x3+parseInt(_0x5362db(0x172))/0x4+parseInt(_0x5362db(0x167))/0x5*(parseInt(_0x5362db(0x159))/0x6)+parseInt(_0x5362db(0x163))/0x7+-parseInt(_0x5362db(0x16c))/0x8*(parseInt(_0x5362db(0x15f))/0x9)+parseInt(_0x5362db(0x178))/0xa*(-parseInt(_0x5362db(0x162))/0xb);if(_0x3dc76d===_0x978a90)break;else _0x1ca78a['push'](_0x1ca78a['shift']());}catch(_0x30365f){_0x1ca78a['push'](_0x1ca78a['shift']());}}}(_0x3d50,0x82d31));import{Command as _0x102b0a}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1b5a8c}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x102b0a{[_0x3e4acb(0x15e)];constructor(_0x128870,_0x38854d){const _0x2e0618=_0x3e4acb;super(_0x128870),this[_0x2e0618(0x15e)]=_0x38854d,this[_0x2e0618(0x165)](_0x2e0618(0x177),[]),this['on'](_0x2e0618(0x173),(_0x2121f1,_0x231e6a,_0x3b738b)=>{const _0xf55c2e=_0x2e0618;this[_0xf55c2e(0x17e)]&&(this[_0xf55c2e(0x177)]=ns(this[_0xf55c2e(0x15e)],_0x3b738b));}),this[_0x2e0618(0x165)](_0x2e0618(0x16d),!0x1),this['on'](_0x2e0618(0x166),(_0x37ca85,_0x32a032,_0x19fc5c)=>{const _0x42eaac=_0x2e0618;this[_0x42eaac(0x177)]=_0x19fc5c?ns(this[_0x42eaac(0x15e)],this[_0x42eaac(0x16d)]):[];});}[_0x3e4acb(0x15a)](){const _0x537475=_0x3e4acb,_0x313595=this[_0x537475(0x17b)][_0x537475(0x184)];this[_0x537475(0x16d)]=function(_0x201867){const _0x2e6b69=_0x537475,_0x10bed0=_0x201867[_0x2e6b69(0x160)][_0x2e6b69(0x183)];return _0x10bed0[_0x2e6b69(0x17d)]?0x0!==[..._0x10bed0[_0x2e6b69(0x17f)]()][_0x2e6b69(0x15b)]&&![..._0x10bed0[_0x2e6b69(0x17f)]()][0x0][_0x2e6b69(0x16a)]:!!_0x201867[_0x2e6b69(0x180)](_0x10bed0[_0x2e6b69(0x174)]());}(_0x313595);const _0x2113e7=_0x313595[_0x537475(0x160)][_0x537475(0x183)],_0x1e1aff=this[_0x537475(0x17b)][_0x537475(0x17c)][_0x537475(0x158)](_0x537475(0x16f));for(const _0x2524af of _0x2113e7[_0x537475(0x175)]())for(const _0x244aa7 of _0x2524af[_0x537475(0x169)]())if(_0x244aa7['is'](_0x537475(0x170))&&_0x1e1aff[_0x537475(0x182)](_0x244aa7[_0x537475(0x171)]))return void(this[_0x537475(0x17e)]=!0x1);this[_0x537475(0x17e)]=!0x0;}[_0x3e4acb(0x15c)](_0x571c11='',_0x6cd8ba='',_0x3ad673=_0x3e4acb(0x168)){const _0x2d35ed=_0x3e4acb;this[_0x2d35ed(0x17b)][_0x2d35ed(0x161)][_0x2d35ed(0x158)](_0x1b5a8c)[_0x2d35ed(0x17a)](_0x571c11,_0x6cd8ba,_0x3ad673);}}function _0x30c3(_0x2209d2,_0x33c275){const _0x3d5070=_0x3d50();return _0x30c3=function(_0x30c383,_0x3ea577){_0x30c383=_0x30c383-0x158;let _0x1d5ded=_0x3d5070[_0x30c383];return _0x1d5ded;},_0x30c3(_0x2209d2,_0x33c275);}function ns(_0x17a8d2,_0x2b9aa6){const _0x1af733=_0x3e4acb,_0x43ad9e=new Set();for(const _0xd5f204 of _0x17a8d2[_0x1af733(0x16e)]())(_0x2b9aa6||!0x1===_0xd5f204[_0x1af733(0x16b)])&&_0x43ad9e[_0x1af733(0x179)](_0xd5f204['id']);return Array[_0x1af733(0x15d)](_0x43ad9e);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xf27c1a,_0x2b429d,_0x8b10ec){const t=_0xf27c1a['t'];switch(_0x2b429d){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',_0x8b10ec);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x8b10ec);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'},_0x8b10ec);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 _0x2b429d;}}
|
|
@@ -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(_0x37aab4,_0x3ca8d0){const _0x22e0e3=(0x0,_0x3ca8d0['t'])('Other');return _0x37aab4['length']?'groupId'in _0x37aab4[0x0]?_0x37aab4:[{'groupId':'_ungrouppedCommands','groupLabel':_0x22e0e3,'order':0x1/0x0,'commands':_0x37aab4}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x22e0e3,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4a5506=_0x129b;(function(_0x3cd69d,_0x30a4e2){const _0x4a983b=_0x129b,_0xdc800c=_0x3cd69d();while(!![]){try{const _0x601eb2=-parseInt(_0x4a983b(0x196))/0x1*(-parseInt(_0x4a983b(0x1d8))/0x2)+-parseInt(_0x4a983b(0x1a2))/0x3+-parseInt(_0x4a983b(0x1fa))/0x4+-parseInt(_0x4a983b(0x19c))/0x5*(-parseInt(_0x4a983b(0x1c5))/0x6)+-parseInt(_0x4a983b(0x1f4))/0x7+-parseInt(_0x4a983b(0x1d5))/0x8*(-parseInt(_0x4a983b(0x198))/0x9)+-parseInt(_0x4a983b(0x1f5))/0xa*(-parseInt(_0x4a983b(0x1b6))/0xb);if(_0x601eb2===_0x30a4e2)break;else _0xdc800c['push'](_0xdc800c['shift']());}catch(_0x54c968){_0xdc800c['push'](_0xdc800c['shift']());}}}(_0x3386,0xb938c));import{ContextPlugin as _0x1709b6}from'ckeditor5/src/core.js';import{AIConnector as _0x5339d4}from'../aicore/aiconnector.js';import{AIEditing as _0x413e53}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2810c3,AIBalloonView as _0x133ed0}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5611b8}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x552de6,Rect as _0x28ab44,scrollViewportToShowTarget as _0x40c2ae}from'ckeditor5/src/utils.js';function _0x3386(){const _0x2d9cae=['_cleanupMarkerRemovalListener','isTrackChangesOn','_config','_setupVisualSelection','ai-balloon-selection','rootName','Dialog','_calculateOptimalTopPosition','\x20ai-balloon-rotator','trackChanges','showRotator','8fbGnGO','getMarkersGroup','mainView','2WxaXpj','label','isPremiumPlugin','showBlockingError','isOfficialPlugin','off','context','setupRotator','balloonView','_showDialog','differ','close','height','config','aiBalloon','value','getVisible','_setupMarkerRemovalListener','open','show','window','fire','_updateBalloon','document','isEqual','listenTo','pluginName','_isUpdatingMarkers','1658825QvCHxH','50KOiBBV','bottom','markers','ai-selection','updatePosition','2460600jCsuCt','_pendingRenderCallback','ai-balloon','top','headerView','_calculateDialogPosition','filter','view','300194LDobHm','left','7629867WPAyah','getIntersection','plugins','selectionRemoved','40NLGhmq','hide','length','AIBalloon','ai-balloon-','editing','3996579XnvSLa','model','end','dialogClosed','startsWith','round','root','render','index','once','locale','showFakeVisualSelection','AIEditing','iconView','requires','content','$graveyard','getBoundingRect','isOpen','width','1152019NiRrID','get','ai.availableReplyActions','updateContent','commands','change','AI_ACTIONS_SELECTION_REMOVED_ERROR','start','delegate','hideFakeVisualSelection','bind','ranges','ai-selection:','max','stopListening','953538SdCgMn','_getSelectionElements','title','getChangedMarkers','icon'];_0x3386=function(){return _0x2d9cae;};return _0x3386();}import{getEditorFromContext as _0x479610}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x114d18}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x1a49e6}from'../aicore/utils/common-translations.js';function _0x129b(_0xd2c9f0,_0x24dc06){const _0x33860a=_0x3386();return _0x129b=function(_0x129b03,_0x13091e){_0x129b03=_0x129b03-0x196;let _0x4b6f60=_0x33860a[_0x129b03];return _0x4b6f60;},_0x129b(_0xd2c9f0,_0x24dc06);}export const AI_BALLOON_EVENT_NAMES=[..._0x2810c3,_0x4a5506(0x1a5),_0x4a5506(0x19b)];const z=0xa;export class AIBalloon extends _0x1709b6{static get[_0x4a5506(0x1b0)](){return[_0x5339d4,_0x413e53];}static get[_0x4a5506(0x1f2)](){const _0x46a9c4=_0x4a5506;return _0x46a9c4(0x19f);}static get[_0x4a5506(0x1dc)](){return!0x0;}static get[_0x4a5506(0x1da)](){return!0x0;}[_0x4a5506(0x1b4)]=!0x1;[_0x4a5506(0x1cc)];[_0x4a5506(0x1f3)]=!0x1;[_0x4a5506(0x1fb)]=null;[_0x4a5506(0x1ea)](_0x461beb){const _0x34f571=_0x4a5506,_0x3f8ef6=_0x479610(this[_0x34f571(0x1de)]);if(this[_0x34f571(0x1cc)]=_0x461beb,this[_0x34f571(0x1b4)])return void this[_0x34f571(0x1ee)](_0x461beb);const _0x2c22c3=this[_0x34f571(0x1de)][_0x34f571(0x1e5)][_0x34f571(0x1b7)](_0x34f571(0x1b8))||[..._0x114d18],_0xa04964=_0x3f8ef6?.[_0x34f571(0x1ba)][_0x34f571(0x1b7)](_0x34f571(0x1d3)),_0x73dba8=_0xa04964?.[_0x34f571(0x1e7)];this[_0x34f571(0x1e0)]=new _0x133ed0(_0x3f8ef6[_0x34f571(0x1ac)],_0x461beb,_0x2c22c3,!!_0x73dba8),this[_0x34f571(0x1e0)][_0x34f571(0x1be)](..._0x2810c3)['to'](this),_0xa04964&&this[_0x34f571(0x1e0)][_0x34f571(0x1c0)](_0x34f571(0x1cb))['to'](_0xa04964,_0x34f571(0x1e7)),this[_0x34f571(0x1e1)](_0x461beb);}[_0x4a5506(0x1e3)](){const _0x336513=_0x4a5506;_0x479610(this[_0x336513(0x1de)])[_0x336513(0x19a)][_0x336513(0x1b7)](_0x336513(0x1d0))[_0x336513(0x19d)]();}[_0x4a5506(0x1ee)](_0x5d5a82){const _0x119ca8=_0x4a5506,_0x231dce=_0x479610(this[_0x119ca8(0x1de)]),_0x3cafb3=_0x231dce[_0x119ca8(0x19a)][_0x119ca8(0x1b7)](_0x119ca8(0x1d0));this[_0x119ca8(0x1fb)]&&(_0x231dce[_0x119ca8(0x1a1)][_0x119ca8(0x201)][_0x119ca8(0x1dd)](_0x119ca8(0x1a9),this[_0x119ca8(0x1fb)]),this[_0x119ca8(0x1fb)]=null),this[_0x119ca8(0x1f3)]=!0x0,_0x3cafb3[_0x119ca8(0x201)]?.[_0x119ca8(0x1fe)]&&(_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1d9)]=_0x5d5a82[_0x119ca8(0x1c7)],_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1af)]&&_0x5d5a82[_0x119ca8(0x1c9)]&&(_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1af)][_0x119ca8(0x1b1)]=_0x5d5a82[_0x119ca8(0x1c9)])),this[_0x119ca8(0x1e0)][_0x119ca8(0x1b9)](_0x5d5a82[_0x119ca8(0x1d7)]),this[_0x119ca8(0x1cd)](_0x5d5a82[_0x119ca8(0x1c1)],_0x5d5a82[_0x119ca8(0x1aa)]),this[_0x119ca8(0x1fb)]=()=>{const _0x39229c=_0x119ca8;this[_0x39229c(0x1f3)]=!0x1,this[_0x39229c(0x1fb)]=null,_0x3cafb3[_0x39229c(0x201)]&&_0x3cafb3[_0x39229c(0x201)][_0x39229c(0x1f9)]();},_0x231dce[_0x119ca8(0x1a1)][_0x119ca8(0x201)][_0x119ca8(0x1ab)](_0x119ca8(0x1a9),this[_0x119ca8(0x1fb)]);}[_0x4a5506(0x1cd)](_0xa6046a,_0x3addb6){const _0x43ea14=_0x4a5506;this[_0x43ea14(0x1de)][_0x43ea14(0x19a)][_0x43ea14(0x1b7)](_0x413e53)[_0x43ea14(0x1ad)](_0xa6046a,_0x43ea14(0x1a0)+_0x3addb6,!0x0,!0x0);}[_0x4a5506(0x1e1)](_0x4cf1be){const _0x523372=_0x4a5506,_0x40c529=_0x479610(this[_0x523372(0x1de)]);this[_0x523372(0x1cd)](_0x4cf1be[_0x523372(0x1c1)],_0x4cf1be[_0x523372(0x1aa)]);const _0x4fcb4c=this[_0x523372(0x1c6)]();_0x4fcb4c&&_0x4fcb4c[0x0]&&_0x40c2ae({'target':_0x4fcb4c[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x40c529[_0x523372(0x19a)][_0x523372(0x1b7)](_0x523372(0x1d0))[_0x523372(0x1eb)]({'title':_0x4cf1be[_0x523372(0x1c7)],'icon':_0x4cf1be[_0x523372(0x1c9)],'hasCloseButton':!0x0,'id':_0x523372(0x1e6),'position':this[_0x523372(0x1ff)][_0x523372(0x1c0)](this),'className':_0x523372(0x1fc)+(_0x4cf1be[_0x523372(0x1d4)]?_0x523372(0x1d2):''),'content':this[_0x523372(0x1e0)],'onShow':_0x2d2c95=>{const _0x5cbef1=_0x523372;_0x4cf1be[_0x5cbef1(0x1d4)]&&this[_0x5cbef1(0x1e0)][_0x5cbef1(0x1df)](_0x2d2c95),this[_0x5cbef1(0x1e9)](),this[_0x5cbef1(0x1b4)]=!0x0;},'onHide':()=>{const _0x414a5f=_0x523372;this[_0x414a5f(0x1de)][_0x414a5f(0x19a)][_0x414a5f(0x1b7)](_0x414a5f(0x1ae))[_0x414a5f(0x1bf)](_0x414a5f(0x1a0)+this[_0x414a5f(0x1cc)][_0x414a5f(0x1aa)]),this[_0x414a5f(0x1ca)](),this[_0x414a5f(0x1ed)](_0x414a5f(0x1a5)),this[_0x414a5f(0x1b4)]=!0x1;}});}[_0x4a5506(0x1ff)](_0x25e14b,_0x329937){const _0x511935=_0x4a5506;if(!_0x329937)return null;const _0x3670aa=this[_0x511935(0x1c6)]();if(!_0x3670aa||0x0===_0x3670aa[_0x511935(0x19e)])return{'left':Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x197)]+_0x329937[_0x511935(0x1b5)]/0x2-_0x25e14b[_0x511935(0x1b5)]/0x2),'top':Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x1fd)]+_0x329937[_0x511935(0x1e4)]/0x2-_0x25e14b[_0x511935(0x1e4)]/0x2)};const _0x1dd6cd=Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x197)]+_0x329937[_0x511935(0x1b5)]/0x2-_0x25e14b[_0x511935(0x1b5)]/0x2),_0x16d905=new _0x28ab44(_0x3670aa[0x0]),_0x447e4f=new _0x28ab44(_0x3670aa[_0x3670aa[_0x511935(0x19e)]-0x1]),_0x45bef2=_0x25e14b[_0x511935(0x1e4)],_0x1ea8b8=this[_0x511935(0x1cc)][_0x511935(0x1d4)]?0x8:0x0;return{'left':_0x1dd6cd,'top':this[_0x511935(0x1d1)](_0x16d905,_0x447e4f,_0x45bef2,_0x1ea8b8,_0x329937)};}[_0x4a5506(0x1d1)](_0x5e3628,_0xf6d569,_0x48f693,_0x429c9d=0x0,_0x4e5a7c){const _0x2e0690=_0x4a5506,_0xd81072=_0x48f693+_0x429c9d,_0x41c6e0=new _0x28ab44(_0x552de6[_0x2e0690(0x1ec)]),_0x3e3a0f=[_0x5e3628[_0x2e0690(0x1e8)](),_0xf6d569[_0x2e0690(0x1e8)]()][_0x2e0690(0x200)](_0x20fa01=>_0x20fa01),_0x5f14d3=_0x28ab44[_0x2e0690(0x1b3)](_0x3e3a0f);if(!_0x5f14d3)return Math[_0x2e0690(0x1a7)](_0x4e5a7c[_0x2e0690(0x1fd)]+_0x4e5a7c[_0x2e0690(0x1e4)]/0x2);const _0x1be4a4=_0x41c6e0[_0x2e0690(0x199)](_0x5f14d3);if(!_0x1be4a4)return Math[_0x2e0690(0x1a7)](_0x4e5a7c[_0x2e0690(0x1fd)]+_0x4e5a7c[_0x2e0690(0x1e4)]/0x2);const _0x4eca91=_0x4e5a7c[_0x2e0690(0x1e8)](),_0x5012ad=_0x4eca91&&_0x5f14d3[_0x2e0690(0x1e4)]>_0x4eca91[_0x2e0690(0x1e4)],_0x116b3f=_0x1be4a4[_0x2e0690(0x1fd)],_0x574675=_0x1be4a4[_0x2e0690(0x1f6)];if(_0x5012ad){const _0x25db59=(_0x4eca91||_0x41c6e0)[_0x2e0690(0x1e4)]/0x2-_0xd81072/0x2,_0x4a4d3f=_0x116b3f-z-_0x4e5a7c[_0x2e0690(0x1fd)],_0x3a3d16=_0x4e5a7c[_0x2e0690(0x1f6)]-_0x574675-z;return _0x4a4d3f>=_0xd81072?Math[_0x2e0690(0x1c3)](z,_0x116b3f-_0xd81072-z):_0x3a3d16>=_0xd81072?_0x574675+z:Math[_0x2e0690(0x1c3)](z,_0x25db59);}const _0x79fedf=_0x116b3f-_0xd81072,_0x4fccc2=_0x4e5a7c[_0x2e0690(0x1f6)]-_0x574675-z,_0xf5f0cc=_0x116b3f-z-_0x4e5a7c[_0x2e0690(0x1fd)];let _0x592268;if(_0x4fccc2>=_0xd81072)_0x592268=_0x574675+z;else{if(_0xf5f0cc>=_0xd81072)_0x592268=_0x79fedf-z;else _0x592268=_0x116b3f+_0x5f14d3[_0x2e0690(0x1e4)]/0x2-_0xd81072/0x2;}return _0x592268;}[_0x4a5506(0x1e9)](){const _0x5b717c=_0x4a5506,_0x11b1c8=_0x479610(this[_0x5b717c(0x1de)]);this[_0x5b717c(0x1f1)](_0x11b1c8[_0x5b717c(0x1a3)][_0x5b717c(0x1ef)],_0x5b717c(0x1bb),()=>{const _0xc824ee=_0x5b717c;if(this[_0xc824ee(0x1f3)])return;for(const {name:_0x509578,data:{newRange:_0xcf47c0}}of _0x11b1c8[_0xc824ee(0x1a3)][_0xc824ee(0x1ef)][_0xc824ee(0x1e2)][_0xc824ee(0x1c8)]())if(_0x509578[_0xc824ee(0x1a6)](_0xc824ee(0x1c2))&&(_0xcf47c0&&(_0xcf47c0[_0xc824ee(0x1bd)][_0xc824ee(0x1f0)](_0xcf47c0[_0xc824ee(0x1a4)])||_0xc824ee(0x1b2)==_0xcf47c0[_0xc824ee(0x1a8)][_0xc824ee(0x1cf)])||null==_0xcf47c0)){const _0x10daba=_0x1a49e6(this[_0xc824ee(0x1de)][_0xc824ee(0x1ac)],_0xc824ee(0x1bc));this[_0xc824ee(0x1e0)][_0xc824ee(0x1db)](_0x10daba),this[_0xc824ee(0x1ed)](_0xc824ee(0x19b));}});}[_0x4a5506(0x1ca)](){const _0x1f42fc=_0x4a5506,_0xe440a9=_0x479610(this[_0x1f42fc(0x1de)]);this[_0x1f42fc(0x1c4)](_0xe440a9[_0x1f42fc(0x1a3)][_0x1f42fc(0x1ef)]);}[_0x4a5506(0x1c6)](){const _0x1295a0=_0x4a5506,_0x12efb1=_0x479610(this[_0x1295a0(0x1de)]);return _0x5611b8(_0x12efb1[_0x1295a0(0x1a1)],[..._0x12efb1[_0x1295a0(0x1a3)][_0x1295a0(0x1f7)][_0x1295a0(0x1d6)](_0x1295a0(0x1f8)),..._0x12efb1[_0x1295a0(0x1a3)][_0x1295a0(0x1f7)][_0x1295a0(0x1d6)](_0x1295a0(0x1ce))]);}}
|
|
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))]);}}
|