@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.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/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/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/aicore/utils/scrollmanager.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/aireviewmodegeneralerrorview.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/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x4f27(){const _0x86c444=['submitPrompt','mainAction','abort','rename','parseFromString','prompt','previousActionId','stringify','markers','remove','1479448noTzZj','body','catch','match','view','querySelector','ELEMENT_NODE','data','nodeType','252lmEiRK','<h1></h1>','trim','listenTo','currentResponse','stopProcessing','custom','reset','_sanitizationContainer','get','substring','textAdapter','21Eluywx','2GqYaWw','```','element','currentContext','toView','stopListening','handleError','editor','previousQuery','serializeToString','4901845alvvui','innerHTML','set','tryAgainEvent','set:currentContext','clear','message','viewToDom','10545aichYh','processor','_sanitizeHTML','3855801DKBtqy','4633424yBsjQm','isRendered','startProcessing','from','finally','_isH1TagSupportEnabled','8740842KmSlfl','_xmlSerializer','2400850RUMvqC','updateView','text/html','previousContext','_domParser','name','domConverter','previousLabel','destroy','div','setContentOf','```html','finishProcessing','length','childNodes','createElement','_parseAndNormalizeContent','initialContext','_stripMarkdownSyntax','editing','push','then','exec','document','config','htmlProcessor','endsWith','toModel','startsWith','isProcessing','render','once','_normalizeResponseHeadings','value','makeRequest','ai.assistant.preserveComments','reverse','_handleQuery'];_0x4f27=function(){return _0x86c444;};return _0x4f27();}const _0x173b75=_0x16fe;(function(_0x581674,_0x5bd2c6){const _0x2bac00=_0x16fe,_0xbc06b4=_0x581674();while(!![]){try{const _0xf75434=-parseInt(_0x2bac00(0x153))/0x1+parseInt(_0x2bac00(0x141))/0x2*(-parseInt(_0x2bac00(0x156))/0x3)+-parseInt(_0x2bac00(0x12b))/0x4+-parseInt(_0x2bac00(0x14b))/0x5+-parseInt(_0x2bac00(0x15d))/0x6+parseInt(_0x2bac00(0x140))/0x7*(-parseInt(_0x2bac00(0x157))/0x8)+parseInt(_0x2bac00(0x134))/0x9*(parseInt(_0x2bac00(0x15f))/0xa);if(_0xf75434===_0x5bd2c6)break;else _0xbc06b4['push'](_0xbc06b4['shift']());}catch(_0x209af4){_0xbc06b4['push'](_0xbc06b4['shift']());}}}(_0x4f27,0xd754c));import{ObservableMixin as _0xb6fe70}from'ckeditor5/src/utils.js';import{AIRequestError as _0x6040c3}from'../adapters/aiadapter.js';import{Matcher as _0x246aa0,ViewUpcastWriter as _0x1c56fd}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x16fe(_0x1487b9,_0x58bf44){const _0x4f27e0=_0x4f27();return _0x16fe=function(_0x16fe17,_0x3ce9a5){_0x16fe17=_0x16fe17-0x106;let _0x2a7061=_0x4f27e0[_0x16fe17];return _0x2a7061;},_0x16fe(_0x1487b9,_0x58bf44);}export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb6fe70(){[_0x173b75(0x148)];[_0x173b75(0x13f)];[_0x173b75(0x12f)];[_0x173b75(0x13c)];[_0x173b75(0x163)];[_0x173b75(0x15e)];constructor(_0x32ab63,_0x3f118e,_0x2c60f1){const _0x1688bc=_0x173b75;super(),this[_0x1688bc(0x148)]=_0x32ab63,this[_0x1688bc(0x13f)]=_0x3f118e,this[_0x1688bc(0x13c)]=document[_0x1688bc(0x10a)](_0x1688bc(0x168)),this[_0x1688bc(0x163)]=new DOMParser(),this[_0x1688bc(0x15e)]=new XMLSerializer(),this[_0x1688bc(0x12f)]=_0x2c60f1,this[_0x1688bc(0x14d)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x1688bc(0x14f),(_0x1df889,_0x14e166,_0x2e14a2)=>{const _0x2ca516=_0x1688bc;this[_0x2ca516(0x12f)][_0x2ca516(0x11c)]=this[_0x2ca516(0x155)](_0x2e14a2);}),this[_0x1688bc(0x137)](this[_0x1688bc(0x12f)],_0x1688bc(0x121),(_0x10d6a4,_0x293675)=>{const _0x302bf2=_0x1688bc,_0x351c62=this[_0x302bf2(0x144)]||this[_0x302bf2(0x10c)];this[_0x302bf2(0x120)](_0x293675,_0x351c62,_0x302bf2(0x13a));}),this[_0x1688bc(0x137)](this[_0x1688bc(0x12f)],_0x1688bc(0x14e),()=>{const _0x13aa08=_0x1688bc;this[_0x13aa08(0x12f)][_0x13aa08(0x126)]=this[_0x13aa08(0x166)],this[_0x13aa08(0x120)](this[_0x13aa08(0x149)],this[_0x13aa08(0x162)],this[_0x13aa08(0x127)],this[_0x13aa08(0x166)]);}),this[_0x1688bc(0x137)](this[_0x1688bc(0x12f)],_0x1688bc(0x139),()=>{const _0x78c4bf=_0x1688bc;this[_0x78c4bf(0x139)]();});}[_0x173b75(0x167)](){const _0x4593d9=_0x173b75;this[_0x4593d9(0x146)]();}async[_0x173b75(0x160)]({actionId:_0x2a3875,query:_0x31ba10,htmlContent:_0x2992c9,label:_0x2db5aa,mainActionLabel:_0x3a37c4}){const _0x55a24e=_0x173b75;this[_0x55a24e(0x12f)][_0x55a24e(0x126)]=_0x2db5aa,this[_0x55a24e(0x12f)][_0x55a24e(0x122)]=_0x3a37c4,this[_0x55a24e(0x10c)]=_0x2992c9,_0x31ba10&&(this[_0x55a24e(0x12f)][_0x55a24e(0x158)]?this[_0x55a24e(0x120)](_0x31ba10,_0x2992c9,_0x2a3875,_0x2db5aa):this[_0x55a24e(0x12f)][_0x55a24e(0x11a)](_0x55a24e(0x119),()=>{const _0x45e7b2=_0x55a24e;this[_0x45e7b2(0x120)](_0x31ba10,_0x2992c9,_0x2a3875,_0x2db5aa);}));}[_0x173b75(0x139)](){const _0x2cffce=_0x173b75;this[_0x2cffce(0x118)]&&(this[_0x2cffce(0x118)]=!0x1,this[_0x2cffce(0x12f)][_0x2cffce(0x107)](),this[_0x2cffce(0x13f)][_0x2cffce(0x123)]());}[_0x173b75(0x13b)](){const _0x3119a6=_0x173b75;this[_0x3119a6(0x10c)]='',this[_0x3119a6(0x144)]='',this[_0x3119a6(0x138)]='',this[_0x3119a6(0x162)]='',this[_0x3119a6(0x149)]='',this[_0x3119a6(0x166)]='',this[_0x3119a6(0x127)]=void 0x0,this[_0x3119a6(0x12f)][_0x3119a6(0x13b)](),this[_0x3119a6(0x139)]();}async[_0x173b75(0x120)](_0x3db187,_0x4bd2de,_0x242f0c,_0xf2a70){const _0x223b76=_0x173b75;return this[_0x223b76(0x118)]=!0x0,this[_0x223b76(0x12f)][_0x223b76(0x159)](),this[_0x223b76(0x162)]=_0x4bd2de,this[_0x223b76(0x149)]=_0x3db187,this[_0x223b76(0x166)]=_0xf2a70||_0x3db187,this[_0x223b76(0x127)]=_0x242f0c,new Promise(_0x1dc602=>{const _0x2b74bb=_0x223b76;this[_0x2b74bb(0x13f)][_0x2b74bb(0x11d)]({'query':_0x3db187,'context':_0x4bd2de,'onData':_0x6080c5=>{const _0x3689dc=_0x2b74bb;this[_0x3689dc(0x138)]=_0x6080c5,this[_0x3689dc(0x144)]=this[_0x3689dc(0x10b)](this[_0x3689dc(0x138)]);},'actionId':_0x242f0c})[_0x2b74bb(0x110)](()=>{const _0x2b024e=_0x2b74bb;!this[_0x2b024e(0x144)]&&this[_0x2b024e(0x138)]&&(this[_0x2b024e(0x144)]=this[_0x2b024e(0x10b)](this[_0x2b024e(0x138)],!0x0));})[_0x2b74bb(0x12d)](_0x258ba4=>{const _0x29e373=_0x2b74bb;_0x258ba4 instanceof _0x6040c3?this[_0x29e373(0x12f)][_0x29e373(0x147)](_0x258ba4[_0x29e373(0x151)]):this[_0x29e373(0x12f)][_0x29e373(0x147)](),_0x1dc602();})[_0x2b74bb(0x15b)](()=>{const _0x22e8fe=_0x2b74bb;this[_0x22e8fe(0x139)](),_0x1dc602();});});}[_0x173b75(0x10b)](_0x3876dc,_0x3739b0=!0x1){const _0x1ed573=_0x173b75,_0x484955=hs[_0x1ed573(0x111)](_0x3876dc);_0x3876dc=_0x484955?_0x3876dc[_0x1ed573(0x13e)](_0x484955[0x1][_0x1ed573(0x108)]):_0x3876dc[_0x1ed573(0x108)]<0x64&&!_0x3739b0?'':this[_0x1ed573(0x10d)](_0x3876dc);const _0x2ffad0=this[_0x1ed573(0x163)][_0x1ed573(0x125)](_0x3876dc,_0x1ed573(0x161));if(_0x484955){const _0x2f3e26=Array[_0x1ed573(0x15a)](_0x2ffad0[_0x1ed573(0x12c)][_0x1ed573(0x109)]);_0x2f3e26[_0x1ed573(0x11f)]();for(const _0x43348d of _0x2f3e26){if(_0x43348d[_0x1ed573(0x133)]==Node[_0x1ed573(0x131)])break;_0x43348d[_0x1ed573(0x12a)]();}}const _0x3adbb0=this[_0x1ed573(0x148)][_0x1ed573(0x132)][_0x1ed573(0x154)][_0x1ed573(0x145)](this[_0x1ed573(0x15e)][_0x1ed573(0x14a)](_0x2ffad0[_0x1ed573(0x12c)]));this[_0x1ed573(0x15c)]()||this[_0x1ed573(0x11b)](_0x3adbb0);const _0x3c7ef2=this[_0x1ed573(0x148)][_0x1ed573(0x113)][_0x1ed573(0x13d)](_0x1ed573(0x11e)),_0x1e9c39=this[_0x1ed573(0x148)][_0x1ed573(0x132)][_0x1ed573(0x116)](_0x3adbb0);return _0x3c7ef2||_0x1e9c39[_0x1ed573(0x129)][_0x1ed573(0x150)](),this[_0x1ed573(0x148)][_0x1ed573(0x132)][_0x1ed573(0x128)](_0x1e9c39);}[_0x173b75(0x11b)](_0xa8a88e){const _0xa64ebc=_0x173b75,_0x35f6bd=new _0x1c56fd(this[_0xa64ebc(0x148)][_0xa64ebc(0x10e)][_0xa64ebc(0x12f)][_0xa64ebc(0x112)]),_0x2df16e=new _0x246aa0({'name':/^h[1-5]$/}),_0x430ba7=[];let _0x2cdd88=!0x1;for(const _0x2a9bec of _0xa8a88e)_0x2a9bec['is'](_0xa64ebc(0x143))&&_0x2df16e[_0xa64ebc(0x12e)](_0x2a9bec)&&(_0x430ba7[_0xa64ebc(0x10f)](_0x2a9bec),'h1'==_0x2a9bec[_0xa64ebc(0x164)]&&(_0x2cdd88=!0x0));if(_0x2cdd88){for(const _0x1eaa4d of _0x430ba7)_0x35f6bd[_0xa64ebc(0x124)]('h'+(parseInt(_0x1eaa4d[_0xa64ebc(0x164)][0x1])+0x1),_0x1eaa4d);}}[_0x173b75(0x15c)](){const _0x4651a8=_0x173b75,{data:_0x12e354,editing:_0x4cca55}=this[_0x4651a8(0x148)],_0x10793c=_0x12e354[_0x4651a8(0x114)][_0x4651a8(0x145)](_0x4651a8(0x135)),_0x253ffa=_0x12e354[_0x4651a8(0x145)](_0x12e354[_0x4651a8(0x116)](_0x10793c));return!!_0x4cca55[_0x4651a8(0x12f)][_0x4651a8(0x165)][_0x4651a8(0x152)](_0x253ffa)[_0x4651a8(0x130)]('h1');}[_0x173b75(0x155)](_0x28a3b3){const _0x18d2a6=_0x173b75;return this[_0x18d2a6(0x148)][_0x18d2a6(0x10e)][_0x18d2a6(0x12f)][_0x18d2a6(0x165)][_0x18d2a6(0x169)](this[_0x18d2a6(0x13c)],_0x28a3b3),this[_0x18d2a6(0x13c)][_0x18d2a6(0x14c)];}[_0x173b75(0x10d)](_0x34dd13){const _0x40e446=_0x173b75,_0x53668f=_0x34dd13[_0x40e446(0x136)]();return _0x53668f[_0x40e446(0x117)](_0x40e446(0x106))?_0x53668f[_0x40e446(0x115)](_0x40e446(0x142))?_0x53668f[_0x40e446(0x13e)](0x7,_0x53668f[_0x40e446(0x108)]-0x3):_0x53668f[_0x40e446(0x13e)](0x7):_0x34dd13;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1292da=_0x4758;(function(_0x38d5f2,_0x3332c7){const _0x29e018=_0x4758,_0xd696f6=_0x38d5f2();while(!![]){try{const _0x4a03d9=parseInt(_0x29e018(0x164))/0x1*(parseInt(_0x29e018(0x17b))/0x2)+-parseInt(_0x29e018(0x136))/0x3+parseInt(_0x29e018(0x17e))/0x4+parseInt(_0x29e018(0x14c))/0x5*(-parseInt(_0x29e018(0x181))/0x6)+parseInt(_0x29e018(0x160))/0x7*(parseInt(_0x29e018(0x14a))/0x8)+-parseInt(_0x29e018(0x15e))/0x9+parseInt(_0x29e018(0x14f))/0xa;if(_0x4a03d9===_0x3332c7)break;else _0xd696f6['push'](_0xd696f6['shift']());}catch(_0x1c8e10){_0xd696f6['push'](_0xd696f6['shift']());}}}(_0x56a4,0xbf4fc));import{global as _0x12aade}from'ckeditor5/src/utils.js';function _0x56a4(){const _0x42d21f=['scrollTo','scrollHeight','_createLoader','ck-ai-form__content-field','<span>]</span>','style','left','copyButtonView','class','bindTemplate','div','AI\x20is\x20writing...','3767247KEHYaI','createRange','2156539IqCYKW','removeAllRanges','change:isProcessing','setTemplate','661441gHuSWn','textContent','mousedown','isVisible','absolute','position','icon','_createCopyButton','appendChild','loaderView','ClipboardItem','clipboard','remove','isProcessing','smooth','setEndBefore','render','createElement','_copyHTMLToClipboard','setContent','ck-hidden','listenTo','ck-ai-form__loader','4bLpVLk','ck-ai-form__content-area--processing','locale','170520WvILaU','ck-ai-form__content-area','write','726PPoYIX','querySelector','ck-ai-form__content-area-wrapper','focus','\x20ck-ai-form__copy-button--copied','text/plain','ck-content','ck-reset_all-excluded','copy','isEnabled','3882552NBlLqM','<span>[</span>','getSelection','text/html','change:value','setStartAfter','value','firstElementChild','contentFieldView','ck-ai-form__copy-button-wrapper','Copy','-9999px','element','.ck-ai-form__loader','appendLoader','ck-ai-form__copy-button','innerHTML','wheel','addRange','execute','8zQHPvx','lastElementChild','29695UdceuZ','execCommand','body','15414090ELzePy','set','bind'];_0x56a4=function(){return _0x42d21f;};return _0x56a4();}function _0x4758(_0x2bfaa4,_0x3b6f2e){const _0x56a4a6=_0x56a4();return _0x4758=function(_0x475824,_0x519b9a){_0x475824=_0x475824-0x133;let _0x1b219e=_0x56a4a6[_0x475824];return _0x1b219e;},_0x4758(_0x2bfaa4,_0x3b6f2e);}import{View as _0x193bf9,ButtonView as _0x2e91c0,SpinnerView as _0x5eae80}from'ckeditor5/src/ui.js';import{IconCheck as _0x447d6a,IconCopy as _0x2289b2}from'ckeditor5/src/icons.js';import{getTranslation as _0xb6415f}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x193bf9{[_0x1292da(0x13e)];[_0x1292da(0x159)];constructor(_0x35d3a9,_0x437d6c=''){const _0x3df761=_0x1292da;super(_0x35d3a9),this[_0x3df761(0x150)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x25c00d=this[_0x3df761(0x15b)];this[_0x3df761(0x13e)]=new ContentFieldView(_0x35d3a9,_0x437d6c),this[_0x3df761(0x159)]=this[_0x3df761(0x16b)](),this[_0x3df761(0x163)]({'tag':_0x3df761(0x15c),'attributes':{'class':['ck',_0x3df761(0x183),_0x25c00d['if'](_0x3df761(0x167),_0x3df761(0x178),_0x2ff3bc=>!_0x2ff3bc)],'tabindex':'-1'},'children':[{'tag':_0x3df761(0x15c),'attributes':{'class':['ck',_0x3df761(0x17f),_0x25c00d['if'](_0x3df761(0x171),_0x3df761(0x17c))]},'children':[this[_0x3df761(0x13e)],{'tag':_0x3df761(0x15c),'attributes':{'class':['ck',_0x3df761(0x13f)]},'children':[this[_0x3df761(0x159)]]}]}]});}[_0x1292da(0x174)](){const _0x53cd83=_0x1292da;super[_0x53cd83(0x174)](),this[_0x53cd83(0x13c)]&&this[_0x53cd83(0x13e)][_0x53cd83(0x177)](this[_0x53cd83(0x13c)]);let _0x34ab29=!0x1;this['on'](_0x53cd83(0x13a),(_0x415768,_0x23c7a9,_0x4433fb)=>{const _0x4d00cf=_0x53cd83,_0x249755=!this[_0x4d00cf(0x13e)][_0x4d00cf(0x142)][_0x4d00cf(0x182)](_0x4d00cf(0x143));this[_0x4d00cf(0x13e)][_0x4d00cf(0x177)](_0x4433fb),this[_0x4d00cf(0x171)]&&_0x249755&&!_0x34ab29&&this[_0x4d00cf(0x142)][_0x4d00cf(0x152)]({'top':this[_0x4d00cf(0x142)][_0x4d00cf(0x153)],'behavior':_0x4d00cf(0x172)});}),this['on'](_0x53cd83(0x162),(_0x2365c7,_0x1e9ca3,_0x17ddd8)=>{const _0x4f33e4=_0x53cd83;_0x34ab29=!0x1,_0x17ddd8?(this[_0x4f33e4(0x13c)]=null,this[_0x4f33e4(0x13e)][_0x4f33e4(0x144)]()):this[_0x4f33e4(0x13c)]||this[_0x4f33e4(0x13e)][_0x4f33e4(0x177)]('');}),this[_0x53cd83(0x179)](this[_0x53cd83(0x142)],_0x53cd83(0x147),()=>{_0x34ab29=!0x0;}),this[_0x53cd83(0x179)](this[_0x53cd83(0x142)],_0x53cd83(0x166),()=>{_0x34ab29=!0x0;});}[_0x1292da(0x184)](){const _0x1a3ae6=_0x1292da;this[_0x1a3ae6(0x142)][_0x1a3ae6(0x184)]();}[_0x1292da(0x16b)](){const _0x3dcf3c=_0x1292da,_0x52e77b=this[_0x3dcf3c(0x17d)],_0x2f67c6=new _0x2e91c0(this[_0x3dcf3c(0x17d)]),_0x271946=_0x3dcf3c(0x145);return _0x2f67c6[_0x3dcf3c(0x150)]({'label':_0xb6415f(_0x52e77b,_0x3dcf3c(0x140)),'icon':_0x2289b2,'class':_0x271946,'tooltip':!0x0}),_0x2f67c6[_0x3dcf3c(0x151)](_0x3dcf3c(0x167))['to'](this,_0x3dcf3c(0x13c),_0x596fdc=>!!_0x596fdc),_0x2f67c6[_0x3dcf3c(0x151)](_0x3dcf3c(0x135))['to'](this,_0x3dcf3c(0x171),_0x416112=>!_0x416112),_0x2f67c6['on'](_0x3dcf3c(0x149),()=>{const _0x386a70=_0x3dcf3c;this[_0x386a70(0x176)](this[_0x386a70(0x13e)][_0x386a70(0x142)]),_0x2f67c6[_0x386a70(0x16a)]=_0x447d6a,_0x2f67c6[_0x386a70(0x15a)]=_0x271946+_0x386a70(0x185),this[_0x386a70(0x184)](),setTimeout(()=>{const _0x16b5ee=_0x386a70;_0x2f67c6[_0x16b5ee(0x16a)]=_0x2289b2,_0x2f67c6[_0x16b5ee(0x15a)]=_0x271946;},0x3e8);}),_0x2f67c6;}[_0x1292da(0x176)](_0x390c17){const _0x2b7269=_0x1292da,{window:_0xdc4025,document:_0x217fec}=_0x12aade;if(_0xdc4025[_0x2b7269(0x16e)]){const {Blob:_0x2b320b,ClipboardItem:_0x4d93d2}=_0xdc4025,_0x409331=[new _0x4d93d2({'text/html':new _0x2b320b([_0x390c17[_0x2b7269(0x146)]],{'type':_0x2b7269(0x139)}),'text/plain':new _0x2b320b([_0x390c17[_0x2b7269(0x165)]||''],{'type':_0x2b7269(0x186)})})];navigator[_0x2b7269(0x16f)][_0x2b7269(0x180)](_0x409331);}else{const _0x25a6ae=_0x217fec[_0x2b7269(0x175)](_0x2b7269(0x15c));_0x25a6ae[_0x2b7269(0x157)][_0x2b7269(0x169)]=_0x2b7269(0x168),_0x25a6ae[_0x2b7269(0x157)][_0x2b7269(0x158)]=_0x2b7269(0x141),_0x25a6ae[_0x2b7269(0x146)]=_0x2b7269(0x137)+_0x390c17[_0x2b7269(0x146)]+_0x2b7269(0x156),_0x217fec[_0x2b7269(0x14e)][_0x2b7269(0x16c)](_0x25a6ae);const _0x2cce83=_0x217fec[_0x2b7269(0x15f)]();_0x2cce83[_0x2b7269(0x13b)](_0x25a6ae[_0x2b7269(0x13d)]),_0x2cce83[_0x2b7269(0x173)](_0x25a6ae[_0x2b7269(0x14b)]);const _0x67c0ca=_0xdc4025[_0x2b7269(0x138)]();_0x67c0ca[_0x2b7269(0x161)](),_0x67c0ca[_0x2b7269(0x148)](_0x2cce83),_0x217fec[_0x2b7269(0x14d)](_0x2b7269(0x134)),_0x25a6ae[_0x2b7269(0x170)]();}}}export class ContentFieldView extends _0x193bf9{constructor(_0x1ef586,_0x2d4fae=''){const _0x54860a=_0x1292da;super(_0x1ef586),this[_0x54860a(0x16d)]=this[_0x54860a(0x154)](),this[_0x54860a(0x163)]({'tag':_0x54860a(0x15c),'attributes':{'class':['ck',_0x54860a(0x187),_0x2d4fae,_0x54860a(0x133),_0x54860a(0x155)]}});}[_0x1292da(0x177)](_0x195985){const _0x8dc40=_0x1292da;this[_0x8dc40(0x142)][_0x8dc40(0x146)]=_0x195985;}[_0x1292da(0x144)](){const _0x4c25d4=_0x1292da;this[_0x4c25d4(0x142)][_0x4c25d4(0x16c)](this[_0x4c25d4(0x16d)][_0x4c25d4(0x142)]);}[_0x1292da(0x154)](){const _0xf6e48f=_0x1292da,_0x3e0ae9=new _0x193bf9(),_0x32764f=this[_0xf6e48f(0x17d)],_0x8f92d9=new _0x5eae80();return _0x8f92d9[_0xf6e48f(0x167)]=!0x0,_0x3e0ae9[_0xf6e48f(0x163)]({'tag':_0xf6e48f(0x15c),'attributes':{'class':['ck',_0xf6e48f(0x17a)]},'children':[_0x8f92d9,{'text':_0xb6415f(_0x32764f,_0xf6e48f(0x15d))}]}),_0x3e0ae9[_0xf6e48f(0x174)](),_0x3e0ae9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x402851,_0x546f44){const _0x2c670a=_0x52cd,_0xdca92e=_0x402851();while(!![]){try{const _0x16479d=parseInt(_0x2c670a(0x1b4))/0x1*(parseInt(_0x2c670a(0x1ac))/0x2)+-parseInt(_0x2c670a(0x1af))/0x3+-parseInt(_0x2c670a(0x1ad))/0x4+-parseInt(_0x2c670a(0x1b7))/0x5*(-parseInt(_0x2c670a(0x1b6))/0x6)+parseInt(_0x2c670a(0x1b2))/0x7+-parseInt(_0x2c670a(0x1b0))/0x8*(parseInt(_0x2c670a(0x1ab))/0x9)+-parseInt(_0x2c670a(0x1b5))/0xa*(-parseInt(_0x2c670a(0x1bb))/0xb);if(_0x16479d===_0x546f44)break;else _0xdca92e['push'](_0xdca92e['shift']());}catch(_0x3f9013){_0xdca92e['push'](_0xdca92e['shift']());}}}(_0x5016,0x8b2e2));function _0x52cd(_0x53b6ed,_0x10c996){const _0x5016d3=_0x5016();return _0x52cd=function(_0x52cd6f,_0x4bd3b3){_0x52cd6f=_0x52cd6f-0x1ab;let _0xb66d22=_0x5016d3[_0x52cd6f];return _0xb66d22;},_0x52cd(_0x53b6ed,_0x10c996);}import{IconError as _0x4cf4fb}from'ckeditor5/src/icons.js';import{View as _0x3dc549,IconView as _0x4165e4}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3dc549{constructor(_0xc6a5f9,_0x3ea7be=''){const _0x355bf8=_0x52cd;super(_0xc6a5f9);const _0x2e85a2=new _0x4165e4(),_0x5d883e=this[_0x355bf8(0x1b9)];this[_0x355bf8(0x1b8)](_0x355bf8(0x1ba),_0x3ea7be),_0x2e85a2[_0x355bf8(0x1b1)]=_0x4cf4fb,this[_0x355bf8(0x1ae)]({'tag':_0x355bf8(0x1b3),'attributes':{'class':['ck',_0x355bf8(0x1bc)]},'children':[_0x2e85a2,{'text':_0x5d883e['to'](_0x355bf8(0x1ba))}]});}}function _0x5016(){const _0x4804a7=['ck-ai-form__error','7712109qWdGHA','344upMyAw','536384MTcwUC','setTemplate','1958196UpZUlb','8buyTGl','content','4043648yQVNHo','div','156yBTimF','240qhcLTf','4655922kVQhDv','5MUvrCi','set','bindTemplate','text','381942JHEijV'];_0x5016=function(){return _0x4804a7;};return _0x5016();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2ddb(_0x55630f,_0x4cbece){const _0x189b94=_0x189b();return _0x2ddb=function(_0x2ddbb3,_0x4cfc75){_0x2ddbb3=_0x2ddbb3-0x80;let _0x4b7837=_0x189b94[_0x2ddbb3];return _0x4b7837;},_0x2ddb(_0x55630f,_0x4cbece);}const _0x46b1b7=_0x2ddb;(function(_0x1d140b,_0x24b561){const _0x5552a1=_0x2ddb,_0x15465f=_0x1d140b();while(!![]){try{const _0x28ea0e=parseInt(_0x5552a1(0xaf))/0x1+parseInt(_0x5552a1(0x82))/0x2+-parseInt(_0x5552a1(0xa3))/0x3+parseInt(_0x5552a1(0x98))/0x4+parseInt(_0x5552a1(0x9e))/0x5*(parseInt(_0x5552a1(0xac))/0x6)+parseInt(_0x5552a1(0xa7))/0x7*(parseInt(_0x5552a1(0x86))/0x8)+-parseInt(_0x5552a1(0x9b))/0x9;if(_0x28ea0e===_0x24b561)break;else _0x15465f['push'](_0x15465f['shift']());}catch(_0x118616){_0x15465f['push'](_0x15465f['shift']());}}}(_0x189b,0x83364));function _0x189b(){const _0x886771=['isOn','42yALqco','submitButtonView','excludeScrollbarsAndBorders','focus','focusFirst','977868yzlysT','isEmpty','History','796740TamoDv','filteredView','queryView','focusLast','focusCycler','fieldWrapperChildren','fieldView','focusableChildren','render','isVisible','minRows','uiLanguageDirection','1271478mSFzFL','submit','_createShowHistoryButton','_createSubmitButton','1265672zckwkR','showHistoryButtonView','execute','bind','rtl','ck-ai-form__toggle-history','style','isEnabled','update','requestAnimationFrame','ck-ai-form__submit','add','value','keystrokes','children','element','enter','Submit','2963984NczoMS','maxRows','target','24393843ssGgNv','right','fire','20TDacer','window','set','left','resultsView','1580310ZQIzCR','locale','width'];_0x189b=function(){return _0x886771;};return _0x189b();}import{Rect as _0x463476,global as _0xc3f5ff,isVisible as _0x4bd408}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x206025,IconSubmit as _0x3bebe0}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2a6408,ButtonView as _0x29831a}from'ckeditor5/src/ui.js';import{getTranslation as _0x15b407}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2a6408{[_0x46b1b7(0xa8)];[_0x46b1b7(0x87)];constructor(_0x5749b9,_0x321ea3){const _0x47e2b3=_0x46b1b7;super(_0x5749b9,_0x321ea3),this[_0x47e2b3(0xb1)][_0x47e2b3(0xb5)][_0x47e2b3(0x80)]=0x1,this[_0x47e2b3(0xb1)][_0x47e2b3(0xb5)][_0x47e2b3(0x99)]=0x3,this[_0x47e2b3(0xa8)]=this[_0x47e2b3(0x85)](),this[_0x47e2b3(0x87)]=this[_0x47e2b3(0x84)](),this[_0x47e2b3(0xb6)][_0x47e2b3(0x91)](this[_0x47e2b3(0x87)],0x1),this[_0x47e2b3(0xb6)][_0x47e2b3(0x91)](this[_0x47e2b3(0xa8)]);}[_0x46b1b7(0xb7)](){const _0x2df2f9=_0x46b1b7;super[_0x2df2f9(0xb7)](),this[_0x2df2f9(0xb1)][_0x2df2f9(0xb4)][_0x2df2f9(0x91)](this[_0x2df2f9(0x87)]),this[_0x2df2f9(0x94)][_0x2df2f9(0x91)](this[_0x2df2f9(0xa8)]),this[_0x2df2f9(0x93)][_0x2df2f9(0xa0)](_0x2df2f9(0x96),(_0x321c6b,_0x2cdf8f)=>{const _0x491f0e=_0x2df2f9;_0x321c6b[_0x491f0e(0x9a)]==this[_0x491f0e(0xb1)][_0x491f0e(0xb5)][_0x491f0e(0x95)]&&(this[_0x491f0e(0x83)](),_0x2cdf8f());});}[_0x46b1b7(0x85)](){const _0x2afac6=_0x46b1b7,_0x2e6b76=new _0x29831a(this[_0x2afac6(0xa4)]),_0x422e26=this[_0x2afac6(0xa4)];return _0x2e6b76[_0x2afac6(0xa0)]({'icon':_0x3bebe0,'label':_0x15b407(_0x422e26,_0x2afac6(0x97)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2afac6(0x90)}),_0x2e6b76['on'](_0x2afac6(0x88),()=>{const _0xfb69cf=_0x2afac6;this[_0xfb69cf(0x83)]();}),_0x2e6b76[_0x2afac6(0x89)](_0x2afac6(0x8d))['to'](this[_0x2afac6(0xb1)][_0x2afac6(0xb5)],_0x2afac6(0xad),this,_0x2afac6(0x8d),(_0x20a912,_0x145a1f)=>!_0x20a912&&_0x145a1f),_0x2e6b76;}[_0x46b1b7(0x84)](){const _0x195733=_0x46b1b7,_0x21b0b7=new _0x29831a(this[_0x195733(0xa4)]),_0x904fdc=this[_0x195733(0xa2)],_0x1ddb78=this[_0x195733(0xa4)];_0x21b0b7[_0x195733(0xa0)]({'label':_0x15b407(_0x1ddb78,_0x195733(0xae)),'withText':!0x1,'icon':_0x206025,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x195733(0x8b)}),_0x21b0b7[_0x195733(0x89)](_0x195733(0xa6))['to'](_0x904fdc,_0x195733(0xb8)),_0x21b0b7[_0x195733(0x89)](_0x195733(0x8d))['to'](this,_0x195733(0x8d)),_0x21b0b7['on'](_0x195733(0x88),()=>{const _0x4aa6e0=_0x195733;_0x904fdc[_0x4aa6e0(0xb8)]=!_0x904fdc[_0x4aa6e0(0xb8)],_0x904fdc[_0x4aa6e0(0xb8)]?this[_0x4aa6e0(0xb0)][_0x4aa6e0(0xaa)]():this[_0x4aa6e0(0xaa)]();});const _0x1be717=()=>{const _0x15ae7a=_0x195733;_0xc3f5ff[_0x15ae7a(0x9f)][_0x15ae7a(0x8f)](()=>{const _0x55b540=_0x15ae7a;if(_0x4bd408(this[_0x55b540(0x95)])){const _0x1f0050=new _0x463476(this[_0x55b540(0xb1)][_0x55b540(0xb5)][_0x55b540(0x95)]),_0x23992b=_0x1f0050[_0x55b540(0xa5)],_0x51a160=_0x55b540(0x8a)===_0x1ddb78[_0x55b540(0x81)]?_0x55b540(0xa1):_0x55b540(0x9c);_0x1f0050[_0x55b540(0xa9)](),_0x21b0b7[_0x55b540(0x95)][_0x55b540(0x8c)][_0x51a160]=_0x23992b-_0x1f0050[_0x55b540(0xa5)]+0x1+'px';}});};return this[_0x195733(0xb1)][_0x195733(0xb5)]['on'](_0x195733(0x8e),_0x1be717),this['on'](_0x195733(0xb7),_0x1be717),_0x21b0b7;}[_0x46b1b7(0x83)](){const _0x7c9955=_0x46b1b7,_0x2b1e57=this[_0x7c9955(0xb1)][_0x7c9955(0xb5)][_0x7c9955(0x95)][_0x7c9955(0x92)];this[_0x7c9955(0x9d)](_0x7c9955(0x83),_0x2b1e57);}[_0x46b1b7(0xaa)](_0x180a57){const _0x1638cb=_0x46b1b7;-0x1===_0x180a57?this[_0x1638cb(0xb3)][_0x1638cb(0xb2)]():this[_0x1638cb(0xb3)][_0x1638cb(0xab)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f30e6=_0x2c88;function _0x4e69(){const _0x239a4e=['label','854280ysOzBJ','ck-hidden','addMany','_createButton','bind','items','ck-ai-form__toolbar','63FMkUyG','2331447aoOKkv','insertButton','6773750XskxiH','extendTemplate','491603MOqBAA','744448kKDWjY','Stop','_CONTENT','tryAgainButton','592517TlYmID','ck-button-action','bindTemplate','locale','mainAction','stopButton','AI_','insert','replaceButton','Try\x20again','3428740PPhPXi','toUpperCase','42UghlYP','REPLACE','replace','isVisible','4Omodfi','set','Insert\x20below'];_0x4e69=function(){return _0x239a4e;};return _0x4e69();}(function(_0x2a0c59,_0x3d7277){const _0x512647=_0x2c88,_0x390614=_0x2a0c59();while(!![]){try{const _0x3d2a78=-parseInt(_0x512647(0x10e))/0x1+parseInt(_0x512647(0xfd))/0x2+-parseInt(_0x512647(0x105))/0x3*(parseInt(_0x512647(0xf9))/0x4)+parseInt(_0x512647(0x118))/0x5+-parseInt(_0x512647(0xf5))/0x6*(parseInt(_0x512647(0x109))/0x7)+-parseInt(_0x512647(0x10a))/0x8*(-parseInt(_0x512647(0x104))/0x9)+parseInt(_0x512647(0x107))/0xa;if(_0x3d2a78===_0x3d7277)break;else _0x390614['push'](_0x390614['shift']());}catch(_0x4f7895){_0x390614['push'](_0x390614['shift']());}}}(_0x4e69,0x8db22));import{ToolbarView as _0x2641d5,ButtonView as _0x53e1b0}from'ckeditor5/src/ui.js';import{getTranslation as _0x53ef34}from'../../utils/common-translations.js';function _0x2c88(_0x458799,_0x46d3e1){const _0x4e6989=_0x4e69();return _0x2c88=function(_0x2c8886,_0x2e924a){_0x2c8886=_0x2c8886-0xf4;let _0x68ee60=_0x4e6989[_0x2c8886];return _0x68ee60;},_0x2c88(_0x458799,_0x46d3e1);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3f30e6(0xf7),'INSERT':_0x3f30e6(0x115)};export class AIFormToolbarView extends _0x2641d5{constructor(_0x27689e){const _0x498222=_0x3f30e6;super(_0x27689e),this[_0x498222(0xfa)](_0x498222(0xf8),!0x1),this[_0x498222(0xfa)](_0x498222(0x112),AIFormToolbarViewMainActionLabel[_0x498222(0xf6)]),this[_0x498222(0x116)]=this[_0x498222(0x100)]('',_0x498222(0x10f)),this[_0x498222(0x116)][_0x498222(0x101)](_0x498222(0xfc))['to'](this,_0x498222(0x112),_0x31e1e4=>_0x53ef34(_0x27689e,_0x498222(0x114)+_0x31e1e4[_0x498222(0xf4)]()+_0x498222(0x10c))),this[_0x498222(0x106)]=this[_0x498222(0x100)](_0x53ef34(_0x27689e,_0x498222(0xfb))),this[_0x498222(0x10d)]=this[_0x498222(0x100)](_0x53ef34(_0x27689e,_0x498222(0x117))),this[_0x498222(0x113)]=this[_0x498222(0x100)](_0x53ef34(_0x27689e,_0x498222(0x10b)));const _0x46d91f=this[_0x498222(0x110)];this[_0x498222(0x108)]({'attributes':{'class':[_0x498222(0x103),_0x46d91f['if'](_0x498222(0xf8),_0x498222(0xfe),_0x445ca7=>!_0x445ca7)]}}),this[_0x498222(0x102)][_0x498222(0xff)]([this[_0x498222(0x116)],this[_0x498222(0x106)],this[_0x498222(0x10d)],this[_0x498222(0x113)]]);}[_0x3f30e6(0x100)](_0x32f4c8,_0x4fd8af){const _0x5d2fdb=_0x3f30e6,_0x4abca7=new _0x53e1b0(this[_0x5d2fdb(0x111)]);return _0x4abca7[_0x5d2fdb(0xfa)]({'label':_0x32f4c8,'class':_0x4fd8af||'','isVisible':!0x0,'withText':!0x0}),_0x4abca7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbed6b6=_0x5a99;(function(_0x3c4c13,_0x14d02d){const _0x320250=_0x5a99,_0x4ff8c7=_0x3c4c13();while(!![]){try{const _0x303943=parseInt(_0x320250(0x149))/0x1+-parseInt(_0x320250(0x167))/0x2*(parseInt(_0x320250(0x12a))/0x3)+parseInt(_0x320250(0x156))/0x4*(-parseInt(_0x320250(0x15b))/0x5)+-parseInt(_0x320250(0x144))/0x6*(parseInt(_0x320250(0x130))/0x7)+-parseInt(_0x320250(0x16d))/0x8+-parseInt(_0x320250(0x136))/0x9*(parseInt(_0x320250(0x138))/0xa)+parseInt(_0x320250(0x176))/0xb;if(_0x303943===_0x14d02d)break;else _0x4ff8c7['push'](_0x4ff8c7['shift']());}catch(_0x396f69){_0x4ff8c7['push'](_0x4ff8c7['shift']());}}}(_0x3248,0x846c8));import{FocusTracker as _0x2fe29d,KeystrokeHandler as _0xc1d206}from'ckeditor5/src/utils.js';import{View as _0x20289d,FocusCycler as _0x5f3f6c,createLabeledTextarea as _0x3fe84e}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xb31da3,AIFormToolbarViewMainActionLabel as _0x182df9}from'./aiformtoolbarview.js';function _0x5a99(_0x491142,_0x4e268c){const _0x32480b=_0x3248();return _0x5a99=function(_0x5a99a8,_0x4128c3){_0x5a99a8=_0x5a99a8-0x125;let _0x5b563d=_0x32480b[_0x5a99a8];return _0x5b563d;},_0x5a99(_0x491142,_0x4e268c);}import{AIFormContentArea as _0xbd3d8a}from'./aiformcontentarea.js';import{AIFormErrorView as _0x400438}from'./aiformerrorview.js';import{AIFormPromptView as _0x3432b9}from'./aiformpromptview.js';function _0x3248(){const _0xbafde8=['delegate','45932392dJqIyX','ck-hidden','clearHistory','set','add','_createHistoryView','high','isVisible','focus','insertContentBelow','9582imMVWt','focusFirst','execute','fire','focusCycler','copyButtonView','1519mlquRu','isEnabled','render','stopButton','_createPromptView','startProcessing','27HAWdiL','chain','2344570EzNHFe','prompt','REPLACE','search','historyGroupView','isProcessing','ck-ai-form','listenTo','bindTemplate','replaceButton','Ask\x20AI\x20to\x20edit\x20or\x20generate','_promptHistory','9732WqhFmO','insertButton','focusLast','ck-ai-form-content','toolbar','62418kZuiJA','Ask\x20AI\x20to\x20improve\x20generated\x20text','fieldView','submit','createCollection','bindTo','promptView','mainAction','element','reset','Empty\x20history','stopProcessing','clear','132jLKcyC','handleError','label','text','tryAgainEvent','158335ZoDPGD','focusTracker','submitPrompt','setTemplate','AI_ERROR_FAILED','tryAgainButton','keystrokes','contentArea','_focusables','items','locale','_createToolbar','578yjzsmc','div','replaceContent','value','shift\x20+\x20tab','tab','5378080VauCeB','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','trim','isError','bind','errorView','queryView','finishProcessing'];_0x3248=function(){return _0xbafde8;};return _0x3248();}import{AIHistoryListView as _0x1cbc8e}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4c5e3a}from'./aihistorylistitemview.js';import{PromptHistory as _0x470ce2}from'./prompthistory.js';import{getTranslation as _0x54f9d2}from'../../utils/common-translations.js';import{escape as _0x3cfbae}from'es-toolkit/compat';export class AIFormView extends _0x20289d{[_0xbed6b6(0x15c)];[_0xbed6b6(0x161)];[_0xbed6b6(0x162)];[_0xbed6b6(0x148)];[_0xbed6b6(0x14f)];[_0xbed6b6(0x172)];[_0xbed6b6(0x163)];[_0xbed6b6(0x12e)];[_0xbed6b6(0x143)];constructor(_0x1f455,_0x3b2c49,_0x45f4b2=''){const _0x212713=_0xbed6b6;super(_0x1f455),this[_0x212713(0x179)](_0x212713(0x131),!0x0),this[_0x212713(0x179)](_0x212713(0x13d),!0x1),this[_0x212713(0x179)](_0x212713(0x139),''),this[_0x212713(0x179)](_0x212713(0x16a),''),this[_0x212713(0x179)](_0x212713(0x170),!0x1),this[_0x212713(0x179)](_0x212713(0x150),_0x182df9[_0x212713(0x13a)]),this[_0x212713(0x143)]=new _0x470ce2(),this[_0x212713(0x172)]=new _0x400438(_0x1f455),this[_0x212713(0x162)]=new _0xbd3d8a(_0x1f455,_0x45f4b2),this[_0x212713(0x162)][_0x212713(0x171)](_0x212713(0x13d))['to'](this),this[_0x212713(0x162)][_0x212713(0x171)](_0x212713(0x16a))['to'](this),this[_0x212713(0x148)]=this[_0x212713(0x166)](),this[_0x212713(0x148)][_0x212713(0x171)](_0x212713(0x150))['to'](this),this[_0x212713(0x14f)]=this[_0x212713(0x134)](),this[_0x212713(0x15c)]=new _0x2fe29d(),this[_0x212713(0x161)]=new _0xc1d206(),this[_0x212713(0x163)]=this[_0x212713(0x14d)]([this[_0x212713(0x162)],this[_0x212713(0x162)][_0x212713(0x12f)],this[_0x212713(0x148)],this[_0x212713(0x14f)]]),this[_0x212713(0x12e)]=new _0x5f3f6c({'focusables':this[_0x212713(0x163)],'focusTracker':this[_0x212713(0x15c)],'keystrokeHandler':this[_0x212713(0x161)],'actions':{'focusPrevious':_0x212713(0x16b),'focusNext':_0x212713(0x16c)}}),this[_0x212713(0x12e)][_0x212713(0x137)](this[_0x212713(0x14f)][_0x212713(0x12e)]),this[_0x212713(0x14f)][_0x212713(0x173)][_0x212713(0x14b)][_0x212713(0x171)](_0x212713(0x16a))['to'](this,_0x212713(0x139));const _0x2f6573=this[_0x212713(0x140)];this[_0x212713(0x15e)]({'tag':_0x212713(0x168),'attributes':{'class':['ck',_0x212713(0x13e),_0x3b2c49],'tabindex':'-1'},'children':[{'tag':_0x212713(0x168),'attributes':{'class':['ck',_0x212713(0x147)]},'children':[{'tag':_0x212713(0x168),'attributes':{'class':[_0x2f6573['if'](_0x212713(0x170),_0x212713(0x177),_0x1063af=>!_0x1063af)]},'children':[this[_0x212713(0x172)]]},this[_0x212713(0x162)],this[_0x212713(0x148)],this[_0x212713(0x14f)]]}]});}[_0xbed6b6(0x132)](){const _0x3ba0c9=_0xbed6b6;super[_0x3ba0c9(0x132)](),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x162)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x162)][_0x3ba0c9(0x12f)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x148)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x15c)][_0x3ba0c9(0x17a)](this[_0x3ba0c9(0x14f)][_0x3ba0c9(0x151)]),this[_0x3ba0c9(0x161)][_0x3ba0c9(0x13f)](this[_0x3ba0c9(0x151)]);}[_0xbed6b6(0x128)](_0x4849cb=0x1){const _0x4e6f1d=_0xbed6b6;-0x1===_0x4849cb?this[_0x4e6f1d(0x12e)][_0x4e6f1d(0x146)]():this[_0x4e6f1d(0x12e)][_0x4e6f1d(0x12b)]();}[_0xbed6b6(0x152)](){const _0x27a751=_0xbed6b6;this[_0x27a751(0x139)]='',this[_0x27a751(0x16a)]='',this[_0x27a751(0x170)]=!0x1,this[_0x27a751(0x14f)][_0x27a751(0x152)](),this[_0x27a751(0x162)][_0x27a751(0x127)]=!0x1,this[_0x27a751(0x148)][_0x27a751(0x127)]=!0x1;}[_0xbed6b6(0x134)](){const _0x48f9ff=_0xbed6b6,_0x1796c0=this[_0x48f9ff(0x165)],_0x411aa6=new _0x3432b9(_0x1796c0,{'queryView':{'label':_0x54f9d2(_0x1796c0,_0x48f9ff(0x142)),'creator':_0x3fe84e,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x54f9d2(_0x1796c0,_0x48f9ff(0x153)),'secondary':_0x54f9d2(_0x1796c0,_0x48f9ff(0x16e))}}},'filteredView':this[_0x48f9ff(0x125)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x411aa6[_0x48f9ff(0x171)](_0x48f9ff(0x131))['to'](this,_0x48f9ff(0x131),this,_0x48f9ff(0x13d),(_0x25b480,_0x391911)=>_0x25b480&&!_0x391911),this[_0x48f9ff(0x13f)](_0x411aa6,_0x48f9ff(0x14c),(_0x9b37e6,_0x1acb81)=>{const _0xab386b=_0x48f9ff;this[_0xab386b(0x139)]=_0x1acb81;const _0x49a89f=_0x3cfbae(_0x1acb81);this[_0xab386b(0x12d)](_0xab386b(0x15d),_0x49a89f),_0x1acb81[_0xab386b(0x16f)]()&&this[_0xab386b(0x143)][_0xab386b(0x17a)]({'prompt':_0x49a89f},0x0);},{'priority':_0x48f9ff(0x126)}),_0x411aa6;}[_0xbed6b6(0x125)](){const _0xd77763=_0xbed6b6,_0x53ac3f=new _0x1cbc8e(this[_0xd77763(0x165)]);return _0x53ac3f[_0xd77763(0x13c)][_0xd77763(0x164)][_0xd77763(0x14e)](this[_0xd77763(0x143)])['as'](_0x4c5e3a),_0x53ac3f['on'](_0xd77763(0x178),()=>{const _0x2599ff=_0xd77763;this[_0x2599ff(0x143)][_0x2599ff(0x155)](),this[_0x2599ff(0x14f)][_0x2599ff(0x13b)](''),this[_0x2599ff(0x14f)][_0x2599ff(0x128)]();}),_0x53ac3f;}[_0xbed6b6(0x166)](){const _0x5f16c4=_0xbed6b6,_0x5c4157=new _0xb31da3(this[_0x5f16c4(0x165)]);return _0x5c4157[_0x5f16c4(0x141)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),this,_0x5f16c4(0x16a),(_0x503811,_0x4d79c7,_0x33f08c)=>_0x503811&&!_0x4d79c7&&!!_0x33f08c),_0x5c4157[_0x5f16c4(0x141)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x169)),_0x5c4157[_0x5f16c4(0x145)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),this,_0x5f16c4(0x16a),(_0x3a112b,_0x51b9c0,_0x358ab0)=>_0x3a112b&&!_0x51b9c0&&!!_0x358ab0),_0x5c4157[_0x5f16c4(0x145)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x129)),_0x5c4157[_0x5f16c4(0x160)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x131),this,_0x5f16c4(0x13d),(_0x363fc6,_0x3dc12f)=>_0x363fc6&&!_0x3dc12f),_0x5c4157[_0x5f16c4(0x160)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x15a)),_0x5c4157[_0x5f16c4(0x133)][_0x5f16c4(0x171)](_0x5f16c4(0x131))['to'](this,_0x5f16c4(0x13d)),_0x5c4157[_0x5f16c4(0x133)][_0x5f16c4(0x175)](_0x5f16c4(0x12c))['to'](this,_0x5f16c4(0x154)),_0x5c4157;}[_0xbed6b6(0x135)](){const _0x1aa024=_0xbed6b6;this[_0x1aa024(0x16a)]='',this[_0x1aa024(0x170)]=!0x1,this[_0x1aa024(0x13d)]=!0x0,this[_0x1aa024(0x162)][_0x1aa024(0x127)]=!0x0,this[_0x1aa024(0x148)][_0x1aa024(0x127)]=!0x0,this[_0x1aa024(0x162)][_0x1aa024(0x128)]();}[_0xbed6b6(0x174)](){const _0x4e33d2=_0xbed6b6,_0x49b180=this[_0x4e33d2(0x165)];this[_0x4e33d2(0x13d)]=!0x1,this[_0x4e33d2(0x139)]='',this[_0x4e33d2(0x14f)][_0x4e33d2(0x152)](),this[_0x4e33d2(0x16a)]&&(this[_0x4e33d2(0x14f)][_0x4e33d2(0x173)][_0x4e33d2(0x158)]=_0x54f9d2(_0x49b180,_0x4e33d2(0x14a)));}[_0xbed6b6(0x157)](_0x58cd1a){const _0x57f70f=_0xbed6b6,_0x49684f=this[_0x57f70f(0x165)];this[_0x57f70f(0x174)](),this[_0x57f70f(0x170)]=!0x0,this[_0x57f70f(0x172)][_0x57f70f(0x159)]=_0x58cd1a||_0x54f9d2(_0x49684f,_0x57f70f(0x15f)),this[_0x57f70f(0x16a)]||(this[_0x57f70f(0x162)][_0x57f70f(0x127)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x55bf(_0x3a2964,_0x38f4c3){const _0x1f45f0=_0x1f45();return _0x55bf=function(_0x55bf86,_0xe872d3){_0x55bf86=_0x55bf86-0x9c;let _0xd87662=_0x1f45f0[_0x55bf86];return _0xd87662;},_0x55bf(_0x3a2964,_0x38f4c3);}(function(_0xae524e,_0x548302){const _0x49e4c4=_0x55bf,_0x2522b0=_0xae524e();while(!![]){try{const _0x2ced07=parseInt(_0x49e4c4(0xa3))/0x1+parseInt(_0x49e4c4(0xad))/0x2+parseInt(_0x49e4c4(0xa4))/0x3*(-parseInt(_0x49e4c4(0x9e))/0x4)+parseInt(_0x49e4c4(0xa7))/0x5*(parseInt(_0x49e4c4(0x9c))/0x6)+parseInt(_0x49e4c4(0xac))/0x7*(parseInt(_0x49e4c4(0xa9))/0x8)+parseInt(_0x49e4c4(0x9f))/0x9*(parseInt(_0x49e4c4(0xab))/0xa)+-parseInt(_0x49e4c4(0xa0))/0xb;if(_0x2ced07===_0x548302)break;else _0x2522b0['push'](_0x2522b0['shift']());}catch(_0x46ea20){_0x2522b0['push'](_0x2522b0['shift']());}}}(_0x1f45,0xb2bb5));import{ListItemView as _0x59f43a,ButtonView as _0x56e580,ButtonLabelView as _0x4bd789}from'ckeditor5/src/ui.js';import{unescape as _0x2a31aa}from'es-toolkit/compat';function _0x1f45(){const _0x114c5a=['135UihToP','16394873azqemc','fire','prompt','389cnVgJC','21qSFoGX','add','set','3595btRwgP','execute','8eoiHph','children','387630KrIjER','2041655fhHBmC','1435364PekcSg','9252pTljLJ','locale','272772jSGCuh'];_0x1f45=function(){return _0x114c5a;};return _0x1f45();}export class AIHistoryListItemView extends _0x59f43a{constructor(_0x216fbf){const _0x2b8b23=_0x55bf;super();const _0x1268b9=new _0x4bd789(),_0x4b329c=new _0x56e580(this[_0x2b8b23(0x9d)],_0x1268b9);this[_0x2b8b23(0xaa)][_0x2b8b23(0xa5)](_0x4b329c),_0x4b329c[_0x2b8b23(0xa6)]({'label':_0x216fbf[_0x2b8b23(0xa2)],'withText':!0x0}),_0x4b329c['on'](_0x2b8b23(0xa8),()=>{const _0x33360f=_0x2b8b23;this[_0x33360f(0xa1)](_0x33360f(0xa8),{'value':_0x2a31aa(_0x216fbf[_0x33360f(0xa2)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x345a46=_0x5a46;(function(_0x32a6a8,_0x5419e1){const _0x45fac9=_0x5a46,_0x19d711=_0x32a6a8();while(!![]){try{const _0x4a36e0=parseInt(_0x45fac9(0x11e))/0x1*(parseInt(_0x45fac9(0x112))/0x2)+parseInt(_0x45fac9(0x10e))/0x3*(parseInt(_0x45fac9(0x116))/0x4)+parseInt(_0x45fac9(0x118))/0x5+parseInt(_0x45fac9(0x11c))/0x6+-parseInt(_0x45fac9(0x11f))/0x7*(parseInt(_0x45fac9(0x11a))/0x8)+-parseInt(_0x45fac9(0x107))/0x9+-parseInt(_0x45fac9(0x11d))/0xa*(parseInt(_0x45fac9(0x10f))/0xb);if(_0x4a36e0===_0x5419e1)break;else _0x19d711['push'](_0x19d711['shift']());}catch(_0x48f6e5){_0x19d711['push'](_0x19d711['shift']());}}}(_0xf02a,0x67260));function _0xf02a(){const _0x8ae0ce=['95873wzZYUS','889pAqsiu','children','_createClearHistoryButton','clearHistory','7379883eiKIcU','clearHistoryButton','delegate','Clear','execute','locale','set','3yFCmRZ','29755kIaVQE','fire','label','4wiSSZN','add','items','historyGroupView','444828TKhDIF','Prompt\x20history','3323355WPCqjD','length','3376WsSSmD','filter','2490078EtADHW','320OLiCWG'];_0xf02a=function(){return _0x8ae0ce;};return _0xf02a();}function _0x5a46(_0x1b5660,_0x131fb5){const _0xf02a2f=_0xf02a();return _0x5a46=function(_0x5a46e8,_0x59377e){_0x5a46e8=_0x5a46e8-0x107;let _0x485e48=_0xf02a2f[_0x5a46e8];return _0x485e48;},_0x5a46(_0x1b5660,_0x131fb5);}import{ListView as _0x5b7779,ListItemGroupView as _0xaba4cb,ButtonView as _0x571c91}from'ckeditor5/src/ui.js';import{getTranslation as _0x5685a1}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x5b7779{[_0x345a46(0x115)];[_0x345a46(0x108)];constructor(_0x126ea9){const _0x44a2c2=_0x345a46;super(_0x126ea9),this[_0x44a2c2(0x108)]=this[_0x44a2c2(0x121)](),this[_0x44a2c2(0x115)]=new _0xaba4cb(),this[_0x44a2c2(0x115)][_0x44a2c2(0x120)][_0x44a2c2(0x113)](this[_0x44a2c2(0x108)],0x1),this[_0x44a2c2(0x115)][_0x44a2c2(0x111)]=_0x5685a1(_0x126ea9,_0x44a2c2(0x117)),this[_0x44a2c2(0x115)][_0x44a2c2(0x114)][_0x44a2c2(0x109)](_0x44a2c2(0x10b))['to'](this),this[_0x44a2c2(0x114)][_0x44a2c2(0x113)](this[_0x44a2c2(0x115)]);}[_0x345a46(0x11b)](){const _0x556bb3=_0x345a46;let _0x22ec75=0x0;for(const _0x575207 of this[_0x556bb3(0x114)])_0x22ec75+=_0x575207[_0x556bb3(0x114)][_0x556bb3(0x119)];return{'resultsCount':_0x22ec75,'totalItemsCount':_0x22ec75};}[_0x345a46(0x121)](){const _0x512137=_0x345a46,_0x43822a=this[_0x512137(0x10c)],_0x1da548=new _0x571c91(this[_0x512137(0x10c)]);return _0x1da548[_0x512137(0x10d)]({'label':'('+_0x5685a1(_0x43822a,_0x512137(0x10a))+')','withText':!0x0}),_0x1da548['on'](_0x512137(0x10b),()=>this[_0x512137(0x110)](_0x512137(0x122))),_0x1da548;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x20f404=_0x9310;(function(_0x49d11c,_0x5a6ac3){const _0x2314b1=_0x9310,_0x390f2a=_0x49d11c();while(!![]){try{const _0x383f1c=-parseInt(_0x2314b1(0x138))/0x1+parseInt(_0x2314b1(0x130))/0x2+-parseInt(_0x2314b1(0x12b))/0x3+parseInt(_0x2314b1(0x123))/0x4*(-parseInt(_0x2314b1(0x13a))/0x5)+-parseInt(_0x2314b1(0x12f))/0x6*(parseInt(_0x2314b1(0x12e))/0x7)+parseInt(_0x2314b1(0x136))/0x8+-parseInt(_0x2314b1(0x137))/0x9*(-parseInt(_0x2314b1(0x124))/0xa);if(_0x383f1c===_0x5a6ac3)break;else _0x390f2a['push'](_0x390f2a['shift']());}catch(_0x6c503e){_0x390f2a['push'](_0x390f2a['shift']());}}}(_0x54b2,0xe90f2));function _0x9310(_0x175355,_0x39c467){const _0x54b26d=_0x54b2();return _0x9310=function(_0x9310e8,_0xd2b093){_0x9310e8=_0x9310e8-0x121;let _0x36d0a3=_0x54b26d[_0x9310e8];return _0x36d0a3;},_0x9310(_0x175355,_0x39c467);}import{Collection as _0x188740}from'ckeditor5/src/utils.js';function _0x54b2(){const _0x3bd93a=['trim','length','_loadFromSessionStorage','11760968XPBoHh','36AUcpdG','1197126yRDUHf','prompt','5029255MOTySc','map','parse','4tTESnz','7277990KObRmA','CKEditor/AIFormView/PromptHistory','addMany','_saveToSessionStorage','setItem','last','add','827724NoHMXU','getItem','stringify','7334817QCBKrx','6NofWYg','200018pJjvVx','toLowerCase','remove'];_0x54b2=function(){return _0x3bd93a;};return _0x54b2();}const So=_0x20f404(0x125);export class PromptHistory extends _0x188740{constructor(){const _0x11155d=_0x20f404;super(),this[_0x11155d(0x135)](),this['on'](_0x11155d(0x12a),(_0x2a4c92,_0x2c3c60)=>{const _0x34e464=_0x11155d,_0x5b6eb5=go(_0x2c3c60[_0x34e464(0x139)]);for(const _0x57c8e8 of this)if(_0x57c8e8!=_0x2c3c60&&go(_0x57c8e8[_0x34e464(0x139)])===_0x5b6eb5){this[_0x34e464(0x132)](_0x57c8e8);break;}this[_0x34e464(0x134)]>0x14&&this[_0x34e464(0x132)](this[_0x34e464(0x129)]),this[_0x34e464(0x127)]();}),this['on'](_0x11155d(0x132),()=>{const _0x2bf3b3=_0x11155d;this[_0x2bf3b3(0x127)]();});}[_0x20f404(0x135)](){const _0x33175d=_0x20f404,_0x548440=sessionStorage[_0x33175d(0x12c)](So)||'[]';this[_0x33175d(0x126)](JSON[_0x33175d(0x122)](_0x548440));}[_0x20f404(0x127)](){const _0x6dd0=_0x20f404;sessionStorage[_0x6dd0(0x128)](So,JSON[_0x6dd0(0x12d)](this[_0x6dd0(0x121)](_0x175ec0=>_0x175ec0)));}}function go(_0xe39b43){const _0x47761f=_0x20f404;return _0xe39b43[_0x47761f(0x131)]()[_0x47761f(0x133)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4dba28=_0x1b66;(function(_0x2e330f,_0x452e34){const _0xe152eb=_0x1b66,_0x1e2dd4=_0x2e330f();while(!![]){try{const _0x43ea67=-parseInt(_0xe152eb(0x1f7))/0x1+-parseInt(_0xe152eb(0x1ed))/0x2+-parseInt(_0xe152eb(0x207))/0x3*(parseInt(_0xe152eb(0x20a))/0x4)+parseInt(_0xe152eb(0x1fb))/0x5*(-parseInt(_0xe152eb(0x204))/0x6)+-parseInt(_0xe152eb(0x1ea))/0x7+parseInt(_0xe152eb(0x206))/0x8*(parseInt(_0xe152eb(0x1fc))/0x9)+parseInt(_0xe152eb(0x1f8))/0xa;if(_0x43ea67===_0x452e34)break;else _0x1e2dd4['push'](_0x1e2dd4['shift']());}catch(_0xf00ac5){_0x1e2dd4['push'](_0x1e2dd4['shift']());}}}(_0x9ede,0x2a481));import{Command as _0x1fa3fd}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2309e9}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1fa3fd{[_0x4dba28(0x1e7)];constructor(_0xaa2a57,_0x34193b){const _0x2c3e54=_0x4dba28;super(_0xaa2a57),this[_0x2c3e54(0x1e7)]=_0x34193b,this[_0x2c3e54(0x1e5)](_0x2c3e54(0x20f),[]),this['on'](_0x2c3e54(0x1f1),(_0x311eee,_0xd446a9,_0x24df3f)=>{const _0x57558c=_0x2c3e54;this[_0x57558c(0x202)]&&(this[_0x57558c(0x20f)]=ns(this[_0x57558c(0x1e7)],_0x24df3f));}),this[_0x2c3e54(0x1e5)](_0x2c3e54(0x1e9),!0x1),this['on'](_0x2c3e54(0x20e),(_0x365ab8,_0x9c3d8d,_0x232c14)=>{const _0x5502f7=_0x2c3e54;this[_0x5502f7(0x20f)]=_0x232c14?ns(this[_0x5502f7(0x1e7)],this[_0x5502f7(0x1e9)]):[];});}[_0x4dba28(0x1eb)](){const _0x1f3a62=_0x4dba28,_0xddf5a6=this[_0x1f3a62(0x1f4)][_0x1f3a62(0x1ec)];this[_0x1f3a62(0x1e9)]=function(_0x990e22){const _0x12664a=_0x1f3a62,_0x53ab08=_0x990e22[_0x12664a(0x1f6)][_0x12664a(0x1e8)];return _0x53ab08[_0x12664a(0x20c)]?0x0!==[..._0x53ab08[_0x12664a(0x200)]()][_0x12664a(0x1f9)]&&![..._0x53ab08[_0x12664a(0x200)]()][0x0][_0x12664a(0x209)]:!!_0x990e22[_0x12664a(0x210)](_0x53ab08[_0x12664a(0x201)]());}(_0xddf5a6);const _0x334b05=_0xddf5a6[_0x1f3a62(0x1f6)][_0x1f3a62(0x1e8)],_0x43faee=this[_0x1f3a62(0x1f4)][_0x1f3a62(0x1ef)][_0x1f3a62(0x1fa)](_0x1f3a62(0x1ee));for(const _0x5cbe04 of _0x334b05[_0x1f3a62(0x20d)]())for(const _0x300828 of _0x5cbe04[_0x1f3a62(0x1ff)]())if(_0x300828['is'](_0x1f3a62(0x1f5))&&_0x43faee[_0x1f3a62(0x1e6)](_0x300828[_0x1f3a62(0x1fe)]))return void(this[_0x1f3a62(0x202)]=!0x1);this[_0x1f3a62(0x202)]=!0x0;}[_0x4dba28(0x1f3)](_0xf88938='',_0x5787b7='',_0x714928=_0x4dba28(0x1f0)){const _0xcaef03=_0x4dba28;this[_0xcaef03(0x1f4)][_0xcaef03(0x208)][_0xcaef03(0x1fa)](_0x2309e9)[_0xcaef03(0x203)](_0xf88938,_0x5787b7,_0x714928);}}function ns(_0x20a224,_0x4f79b3){const _0x5d10f6=_0x4dba28,_0x48f43a=new Set();for(const _0x13aaf9 of _0x20a224[_0x5d10f6(0x20b)]())(_0x4f79b3||!0x1===_0x13aaf9[_0x5d10f6(0x205)])&&_0x48f43a[_0x5d10f6(0x1fd)](_0x13aaf9['id']);return Array[_0x5d10f6(0x1f2)](_0x48f43a);}function _0x1b66(_0x4059e3,_0x15a0a8){const _0x9edeaa=_0x9ede();return _0x1b66=function(_0x1b66fe,_0x194c88){_0x1b66fe=_0x1b66fe-0x1e5;let _0xe909a8=_0x9edeaa[_0x1b66fe];return _0xe909a8;},_0x1b66(_0x4059e3,_0x15a0a8);}function _0x9ede(){const _0x51299f=['refresh','model','107294JiyOKH','ai.assistant.disabledElements','config','custom','change:_hasContext','from','execute','editor','element','document','226023SCaCpG','8233110faxSmu','length','get','1104515ZRNZOe','9CSpVsa','add','name','getItems','getSelectedBlocks','getFirstRange','isEnabled','showUI','6HURGCJ','requiresContent','1796008GSmbXa','12213sdMrJo','plugins','isEmpty','164gifXIM','values','isCollapsed','getRanges','change:isEnabled','enabledCommandsIds','hasContent','set','includes','_commandDefinitions','selection','_hasContext','1450001RxlJlu'];_0x9ede=function(){return _0x51299f;};return _0x9ede();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x162747,_0xe2b2d0,_0x2a58e9){const t=_0x162747['t'];switch(_0xe2b2d0){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',_0x2a58e9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2a58e9);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'},_0x2a58e9);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 _0xe2b2d0;}}
|
|
@@ -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(_0x76d15e,_0x25f652){const _0xca6701=(0x0,_0x25f652['t'])('Other');return _0x76d15e['length']?'groupId'in _0x76d15e[0x0]?_0x76d15e:[{'groupId':'_ungrouppedCommands','groupLabel':_0xca6701,'order':0x1/0x0,'commands':_0x76d15e}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0xca6701,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x16c24=_0x5a47;(function(_0x5189ac,_0x52fd95){const _0x59c99e=_0x5a47,_0x5e4d21=_0x5189ac();while(!![]){try{const _0x3d001e=-parseInt(_0x59c99e(0x1b6))/0x1*(parseInt(_0x59c99e(0x1ab))/0x2)+-parseInt(_0x59c99e(0x1fc))/0x3+parseInt(_0x59c99e(0x1cf))/0x4+-parseInt(_0x59c99e(0x1b4))/0x5*(parseInt(_0x59c99e(0x1ef))/0x6)+-parseInt(_0x59c99e(0x1e4))/0x7*(-parseInt(_0x59c99e(0x201))/0x8)+parseInt(_0x59c99e(0x1aa))/0x9+parseInt(_0x59c99e(0x1ad))/0xa;if(_0x3d001e===_0x52fd95)break;else _0x5e4d21['push'](_0x5e4d21['shift']());}catch(_0x2bf281){_0x5e4d21['push'](_0x5e4d21['shift']());}}}(_0x50b6,0x4b3d4));import{ContextPlugin as _0x1e7e70}from'ckeditor5/src/core.js';import{AIConnector as _0x183cf1}from'../aicore/aiconnector.js';import{AIEditing as _0x465d98}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xfa1061,AIBalloonView as _0x5ee291}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x948e32}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4cb6bf,Rect as _0x2be817,scrollViewportToShowTarget as _0x5a331e}from'ckeditor5/src/utils.js';function _0x5a47(_0x39ac69,_0x551594){const _0x50b674=_0x50b6();return _0x5a47=function(_0x5a47de,_0x3cd1f9){_0x5a47de=_0x5a47de-0x19c;let _0x2f0940=_0x50b674[_0x5a47de];return _0x2f0940;},_0x5a47(_0x39ac69,_0x551594);}import{getEditorFromContext as _0x2ce5b7}from'../aicore/utils/geteditorfromcontext.js';function _0x50b6(){const _0x46463c=['close','locale','stopListening','getIntersection','left','998588EyLIit','startAutoScroll','getVisible','ranges','editing','stopAutoScroll','bottom','ai-selection','height','showFakeVisualSelection','model','value','getChangedMarkers','markers','ai-selection:','window','isOpen','_getSelectionElements','updateContent','$graveyard','startsWith','14OJfvyw','_cleanupMarkerRemovalListener','get','\x20ai-balloon-rotator','open','headerView','getMarkersGroup','top','index','hideFakeVisualSelection','icon','579786nOfIMU','pluginName','selectionRemoved','end','ai-balloon-selection','_setupVisualSelection','ai-balloon-','trackChanges','AI_ACTIONS_SELECTION_REMOVED_ERROR','balloonView','AIEditing','context','change','1170270OCtXDv','_calculateOptimalTopPosition','commands','dialogClosed','requires','1107160NbLsHP','aiBalloon','once','showBlockingError','iconView','AIBalloon','_updateBalloon','getBoundingRect','_pendingRenderCallback','start','setupRotator','width','isOfficialPlugin','_isUpdatingMarkers','view','listenTo','delegate','bind','render','isPremiumPlugin','ai.availableReplyActions','filter','4913442hmbphF','398QfmzDK','isTrackChangesOn','7927310kZaflK','root','_config','Dialog','content','_showDialog','_calculateDialogPosition','30hSnYTk','fire','2950ZSvCOs','off','hide','rootName','mainView','round','length','_setupMarkerRemovalListener','isEqual','ai-balloon','document','differ','label','config','plugins','show','max','showRotator','updatePosition','title'];_0x50b6=function(){return _0x46463c;};return _0x50b6();}import{AI_REPLY_ACTIONS as _0x2bd733}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4819ab}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0xfa1061,_0x16c24(0x1ff),_0x16c24(0x1f1)];const z=0xa;export class AIBalloon extends _0x1e7e70{static get[_0x16c24(0x200)](){return[_0x183cf1,_0x465d98];}static get[_0x16c24(0x1f0)](){const _0x2ef6ae=_0x16c24;return _0x2ef6ae(0x206);}static get[_0x16c24(0x1a0)](){return!0x0;}static get[_0x16c24(0x1a7)](){return!0x0;}[_0x16c24(0x1df)]=!0x1;[_0x16c24(0x1af)];[_0x16c24(0x1a1)]=!0x1;[_0x16c24(0x19c)]=null;[_0x16c24(0x1e8)](_0x3b36b7){const _0x155f5f=_0x16c24,_0x13bb80=_0x2ce5b7(this[_0x155f5f(0x1fa)]);if(this[_0x155f5f(0x1af)]=_0x3b36b7,this[_0x155f5f(0x1df)])return void this[_0x155f5f(0x207)](_0x3b36b7);const _0x1f26ae=this[_0x155f5f(0x1fa)][_0x155f5f(0x1c3)][_0x155f5f(0x1e6)](_0x155f5f(0x1a8))||[..._0x2bd733],_0x17c1b9=_0x13bb80?.[_0x155f5f(0x1fe)][_0x155f5f(0x1e6)](_0x155f5f(0x1f6)),_0x3f3be1=_0x17c1b9?.[_0x155f5f(0x1da)];this[_0x155f5f(0x1f8)]=new _0x5ee291(_0x13bb80[_0x155f5f(0x1cb)],_0x3b36b7,_0x1f26ae,!!_0x3f3be1),this[_0x155f5f(0x1f8)][_0x155f5f(0x1a4)](..._0xfa1061)['to'](this),_0x17c1b9&&this[_0x155f5f(0x1f8)][_0x155f5f(0x1a5)](_0x155f5f(0x1ac))['to'](_0x17c1b9,_0x155f5f(0x1da)),this[_0x155f5f(0x1b2)](_0x3b36b7);}[_0x16c24(0x1ca)](){const _0x3bba4a=_0x16c24;_0x2ce5b7(this[_0x3bba4a(0x1fa)])[_0x3bba4a(0x1c4)][_0x3bba4a(0x1e6)](_0x3bba4a(0x1b0))[_0x3bba4a(0x1b8)]();}[_0x16c24(0x1d0)](){const _0x2d4de7=_0x16c24;this[_0x2d4de7(0x1f8)]&&this[_0x2d4de7(0x1f8)][_0x2d4de7(0x1d0)]();}[_0x16c24(0x1d4)](){const _0xde7007=_0x16c24;this[_0xde7007(0x1f8)]&&this[_0xde7007(0x1f8)][_0xde7007(0x1d4)]();}[_0x16c24(0x207)](_0x313f16){const _0x5b3598=_0x16c24,_0x39ceb2=_0x2ce5b7(this[_0x5b3598(0x1fa)]),_0x1619f9=_0x39ceb2[_0x5b3598(0x1c4)][_0x5b3598(0x1e6)](_0x5b3598(0x1b0));this[_0x5b3598(0x19c)]&&(_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x1b7)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]),this[_0x5b3598(0x19c)]=null),this[_0x5b3598(0x1a1)]=!0x0,_0x1619f9[_0x5b3598(0x1a2)]?.[_0x5b3598(0x1e9)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x1c2)]=_0x313f16[_0x5b3598(0x1c9)],_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)]&&_0x313f16[_0x5b3598(0x1ee)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)][_0x5b3598(0x1b1)]=_0x313f16[_0x5b3598(0x1ee)])),this[_0x5b3598(0x1f8)][_0x5b3598(0x1e1)](_0x313f16[_0x5b3598(0x1ba)]),this[_0x5b3598(0x1f4)](_0x313f16[_0x5b3598(0x1d2)],_0x313f16[_0x5b3598(0x1ec)]),this[_0x5b3598(0x19c)]=()=>{const _0x12986e=_0x5b3598;this[_0x12986e(0x1a1)]=!0x1,this[_0x12986e(0x19c)]=null,_0x1619f9[_0x12986e(0x1a2)]&&_0x1619f9[_0x12986e(0x1a2)][_0x12986e(0x1c8)]();},_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x203)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]);}[_0x16c24(0x1f4)](_0x205756,_0x17cbdc){const _0x3a1e84=_0x16c24;this[_0x3a1e84(0x1fa)][_0x3a1e84(0x1c4)][_0x3a1e84(0x1e6)](_0x465d98)[_0x3a1e84(0x1d8)](_0x205756,_0x3a1e84(0x1f5)+_0x17cbdc,!0x0,!0x0);}[_0x16c24(0x1b2)](_0x392837){const _0x589a64=_0x16c24,_0x2ae398=_0x2ce5b7(this[_0x589a64(0x1fa)]);this[_0x589a64(0x1f4)](_0x392837[_0x589a64(0x1d2)],_0x392837[_0x589a64(0x1ec)]);const _0x1c51e3=this[_0x589a64(0x1e0)]();_0x1c51e3&&_0x1c51e3[0x0]&&_0x5a331e({'target':_0x1c51e3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2ae398[_0x589a64(0x1c4)][_0x589a64(0x1e6)](_0x589a64(0x1b0))[_0x589a64(0x1c5)]({'title':_0x392837[_0x589a64(0x1c9)],'icon':_0x392837[_0x589a64(0x1ee)],'hasCloseButton':!0x0,'id':_0x589a64(0x202),'position':this[_0x589a64(0x1b3)][_0x589a64(0x1a5)](this),'className':_0x589a64(0x1bf)+(_0x392837[_0x589a64(0x1c7)]?_0x589a64(0x1e7):''),'content':this[_0x589a64(0x1f8)],'onShow':_0x9c78f4=>{const _0x34b74b=_0x589a64;_0x392837[_0x34b74b(0x1c7)]&&this[_0x34b74b(0x1f8)][_0x34b74b(0x19e)](_0x9c78f4),this[_0x34b74b(0x1bd)](),this[_0x34b74b(0x1df)]=!0x0;},'onHide':()=>{const _0x2e15d4=_0x589a64;this[_0x2e15d4(0x1fa)][_0x2e15d4(0x1c4)][_0x2e15d4(0x1e6)](_0x2e15d4(0x1f9))[_0x2e15d4(0x1ed)](_0x2e15d4(0x1f5)+this[_0x2e15d4(0x1af)][_0x2e15d4(0x1ec)]),this[_0x2e15d4(0x1e5)](),this[_0x2e15d4(0x1b5)](_0x2e15d4(0x1ff)),this[_0x2e15d4(0x1df)]=!0x1;}});}[_0x16c24(0x1b3)](_0x2c69cb,_0xd2cde5){const _0x44ee04=_0x16c24;if(!_0xd2cde5)return null;const _0x25279b=this[_0x44ee04(0x1e0)]();if(!_0x25279b||0x0===_0x25279b[_0x44ee04(0x1bc)])return{'left':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),'top':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1eb)]+_0xd2cde5[_0x44ee04(0x1d7)]/0x2-_0x2c69cb[_0x44ee04(0x1d7)]/0x2)};const _0x396366=Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),_0x280edf=new _0x2be817(_0x25279b[0x0]),_0x51d868=new _0x2be817(_0x25279b[_0x25279b[_0x44ee04(0x1bc)]-0x1]),_0x4ec5c6=_0x2c69cb[_0x44ee04(0x1d7)],_0x265736=this[_0x44ee04(0x1af)][_0x44ee04(0x1c7)]?0x8:0x0;return{'left':_0x396366,'top':this[_0x44ee04(0x1fd)](_0x280edf,_0x51d868,_0x4ec5c6,_0x265736,_0xd2cde5)};}[_0x16c24(0x1fd)](_0x22a6f0,_0x30cc2b,_0x1610ad,_0x403349=0x0,_0x5a3b02){const _0x39f91f=_0x16c24,_0x3d4709=_0x1610ad+_0x403349,_0x46b0ae=new _0x2be817(_0x4cb6bf[_0x39f91f(0x1de)]),_0x225114=[_0x22a6f0[_0x39f91f(0x1d1)](),_0x30cc2b[_0x39f91f(0x1d1)]()][_0x39f91f(0x1a9)](_0x28f1cc=>_0x28f1cc),_0xaaf492=_0x2be817[_0x39f91f(0x208)](_0x225114);if(!_0xaaf492)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x171150=_0x46b0ae[_0x39f91f(0x1cd)](_0xaaf492);if(!_0x171150)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x2f47d0=_0x5a3b02[_0x39f91f(0x1d1)](),_0x41440d=_0x2f47d0&&_0xaaf492[_0x39f91f(0x1d7)]>_0x2f47d0[_0x39f91f(0x1d7)],_0x3df6e7=_0x171150[_0x39f91f(0x1eb)],_0x276744=_0x171150[_0x39f91f(0x1d5)];if(_0x41440d){const _0x2aa47a=(_0x2f47d0||_0x46b0ae)[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2,_0x16fb5f=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)],_0x1488c7=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z;return _0x16fb5f>=_0x3d4709?Math[_0x39f91f(0x1c6)](z,_0x3df6e7-_0x3d4709-z):_0x1488c7>=_0x3d4709?_0x276744+z:Math[_0x39f91f(0x1c6)](z,_0x2aa47a);}const _0x2d4f1e=_0x3df6e7-_0x3d4709,_0x47184e=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z,_0x4f59b5=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)];let _0x10a700;if(_0x47184e>=_0x3d4709)_0x10a700=_0x276744+z;else{if(_0x4f59b5>=_0x3d4709)_0x10a700=_0x2d4f1e-z;else _0x10a700=_0x3df6e7+_0xaaf492[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2;}return _0x10a700;}[_0x16c24(0x1bd)](){const _0x3cf975=_0x16c24,_0x4cc44a=_0x2ce5b7(this[_0x3cf975(0x1fa)]);this[_0x3cf975(0x1a3)](_0x4cc44a[_0x3cf975(0x1d9)][_0x3cf975(0x1c0)],_0x3cf975(0x1fb),()=>{const _0x3f740a=_0x3cf975;if(this[_0x3f740a(0x1a1)])return;for(const {name:_0x5c4e17,data:{newRange:_0x515bbb}}of _0x4cc44a[_0x3f740a(0x1d9)][_0x3f740a(0x1c0)][_0x3f740a(0x1c1)][_0x3f740a(0x1db)]())if(_0x5c4e17[_0x3f740a(0x1e3)](_0x3f740a(0x1dd))&&(_0x515bbb&&(_0x515bbb[_0x3f740a(0x19d)][_0x3f740a(0x1be)](_0x515bbb[_0x3f740a(0x1f2)])||_0x3f740a(0x1e2)==_0x515bbb[_0x3f740a(0x1ae)][_0x3f740a(0x1b9)])||null==_0x515bbb)){const _0x21bca4=_0x4819ab(this[_0x3f740a(0x1fa)][_0x3f740a(0x1cb)],_0x3f740a(0x1f7));this[_0x3f740a(0x1f8)][_0x3f740a(0x204)](_0x21bca4),this[_0x3f740a(0x1b5)](_0x3f740a(0x1f1));}});}[_0x16c24(0x1e5)](){const _0x10def7=_0x16c24,_0x29efd9=_0x2ce5b7(this[_0x10def7(0x1fa)]);this[_0x10def7(0x1cc)](_0x29efd9[_0x10def7(0x1d9)][_0x10def7(0x1c0)]);}[_0x16c24(0x1e0)](){const _0x1fb326=_0x16c24,_0x5e47f5=_0x2ce5b7(this[_0x1fb326(0x1fa)]);return _0x948e32(_0x5e47f5[_0x1fb326(0x1d3)],[..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1d6)),..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1f3))]);}}
|
|
23
|
+
const _0x52dc59=_0x5e0d;(function(_0x5b5e4c,_0x577495){const _0x44c00e=_0x5e0d,_0x298a74=_0x5b5e4c();while(!![]){try{const _0x17c6e5=-parseInt(_0x44c00e(0xfe))/0x1*(parseInt(_0x44c00e(0xf4))/0x2)+-parseInt(_0x44c00e(0x149))/0x3+parseInt(_0x44c00e(0x108))/0x4+parseInt(_0x44c00e(0x10c))/0x5+parseInt(_0x44c00e(0x134))/0x6*(-parseInt(_0x44c00e(0x110))/0x7)+parseInt(_0x44c00e(0xe7))/0x8*(parseInt(_0x44c00e(0x13d))/0x9)+-parseInt(_0x44c00e(0x115))/0xa*(-parseInt(_0x44c00e(0x13c))/0xb);if(_0x17c6e5===_0x577495)break;else _0x298a74['push'](_0x298a74['shift']());}catch(_0x5359cf){_0x298a74['push'](_0x298a74['shift']());}}}(_0x4ca4,0x73222));import{ContextPlugin as _0x4d1f57}from'ckeditor5/src/core.js';import{AIConnector as _0x3d7b9f}from'../aicore/aiconnector.js';import{AIEditing as _0x5cb6eb}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x41e090,AIBalloonView as _0xb449f7}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x5e0d(_0x235493,_0x45fc5a){const _0x4ca433=_0x4ca4();return _0x5e0d=function(_0x5e0d31,_0x5494ee){_0x5e0d31=_0x5e0d31-0xe4;let _0x445e8e=_0x4ca433[_0x5e0d31];return _0x445e8e;},_0x5e0d(_0x235493,_0x45fc5a);}import{getAllMarkersDomElementsSorted as _0x595171}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2eae97,Rect as _0x5537d5,scrollViewportToShowTarget as _0x45ec1e}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x20b22e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x45b66f}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x3d8b86}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x41e090,_0x52dc59(0x132),_0x52dc59(0x10b)];function _0x4ca4(){const _0x214baa=['showFakeVisualSelection','getChangedMarkers','balloonView','round','off','context','ai-balloon','506nAxhnr','27dbLLOx','value','_setupVisualSelection','view','config','Dialog','_showDialog','show','stopAutoScroll','AIBalloon','locale','render','2441058zlEXkS','requires','fire','markers','AI_ACTIONS_SELECTION_REMOVED_ERROR','getBoundingRect','start','\x20ai-balloon-rotator','bind','iconView','get','isTrackChangesOn','28504KkwmFu','showRotator','model','length','document','rootName','_isUpdatingMarkers','isOpen','once','isPremiumPlugin','_config','root','mainView','8ukkmlU','showBlockingError','isEqual','filter','aiBalloon','getMarkersGroup','max','setupRotator','getVisible','_pendingRenderCallback','168982UWuEys','updateContent','ai-selection:','title','bottom','startsWith','content','trackChanges','ranges','commands','1028640jCmxcG','hide','editing','selectionRemoved','3471255BoYxqe','open','_setupMarkerRemovalListener','end','3097388Fpbxpp','ai.availableReplyActions','window','delegate','$graveyard','409580rtCtab','plugins','height','headerView','ai-selection','updatePosition','label','stopListening','top','change','left','ai-balloon-','_getSelectionElements','width','_updateBalloon','_calculateDialogPosition','listenTo','differ','getIntersection','icon','pluginName','index','startAutoScroll','ai-balloon-selection','close','_calculateOptimalTopPosition','isOfficialPlugin','AIEditing','hideFakeVisualSelection','dialogClosed','_cleanupMarkerRemovalListener','12TxSbpE'];_0x4ca4=function(){return _0x214baa;};return _0x4ca4();}const jt=0xa;export class AIBalloon extends _0x4d1f57{static get[_0x52dc59(0x14a)](){return[_0x3d7b9f,_0x5cb6eb];}static get[_0x52dc59(0x129)](){const _0x23f60c=_0x52dc59;return _0x23f60c(0x146);}static get[_0x52dc59(0x12f)](){return!0x0;}static get[_0x52dc59(0xf0)](){return!0x0;}[_0x52dc59(0xee)]=!0x1;[_0x52dc59(0xf1)];[_0x52dc59(0xed)]=!0x1;[_0x52dc59(0xfd)]=null;[_0x52dc59(0x10d)](_0x315012){const _0xb4b56d=_0x52dc59,_0x490810=_0x20b22e(this[_0xb4b56d(0x13a)]);if(this[_0xb4b56d(0xf1)]=_0x315012,this[_0xb4b56d(0xee)])return void this[_0xb4b56d(0x123)](_0x315012);const _0x456f09=this[_0xb4b56d(0x13a)][_0xb4b56d(0x141)][_0xb4b56d(0xe5)](_0xb4b56d(0x111))||[..._0x45b66f],_0x289f0a=_0x490810?.[_0xb4b56d(0x107)][_0xb4b56d(0xe5)](_0xb4b56d(0x105)),_0x25e4ff=_0x289f0a?.[_0xb4b56d(0x13e)];this[_0xb4b56d(0x137)]=new _0xb449f7(_0x490810[_0xb4b56d(0x147)],_0x315012,_0x456f09,!!_0x25e4ff),this[_0xb4b56d(0x137)][_0xb4b56d(0x113)](..._0x41e090)['to'](this),_0x289f0a&&this[_0xb4b56d(0x137)][_0xb4b56d(0x151)](_0xb4b56d(0xe6))['to'](_0x289f0a,_0xb4b56d(0x13e)),this[_0xb4b56d(0x143)](_0x315012);}[_0x52dc59(0x12d)](){const _0x4ef15d=_0x52dc59;_0x20b22e(this[_0x4ef15d(0x13a)])[_0x4ef15d(0x116)][_0x4ef15d(0xe5)](_0x4ef15d(0x142))[_0x4ef15d(0x109)]();}[_0x52dc59(0x12b)](){const _0x2ee20e=_0x52dc59;this[_0x2ee20e(0x137)]&&this[_0x2ee20e(0x137)][_0x2ee20e(0x12b)]();}[_0x52dc59(0x145)](){const _0x4e711a=_0x52dc59;this[_0x4e711a(0x137)]&&this[_0x4e711a(0x137)][_0x4e711a(0x145)]();}[_0x52dc59(0x123)](_0x4cbd93){const _0x50a0ee=_0x52dc59,_0x174b6c=_0x20b22e(this[_0x50a0ee(0x13a)]),_0xc571db=_0x174b6c[_0x50a0ee(0x116)][_0x50a0ee(0xe5)](_0x50a0ee(0x142));this[_0x50a0ee(0xfd)]&&(_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0x139)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]),this[_0x50a0ee(0xfd)]=null),this[_0x50a0ee(0xed)]=!0x0,_0xc571db[_0x50a0ee(0x140)]?.[_0x50a0ee(0x118)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0x11b)]=_0x4cbd93[_0x50a0ee(0x101)],_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)]&&_0x4cbd93[_0x50a0ee(0x128)]&&(_0xc571db[_0x50a0ee(0x140)][_0x50a0ee(0x118)][_0x50a0ee(0xe4)][_0x50a0ee(0x104)]=_0x4cbd93[_0x50a0ee(0x128)])),this[_0x50a0ee(0x137)][_0x50a0ee(0xff)](_0x4cbd93[_0x50a0ee(0xf3)]),this[_0x50a0ee(0x13f)](_0x4cbd93[_0x50a0ee(0x106)],_0x4cbd93[_0x50a0ee(0x12a)]),this[_0x50a0ee(0xfd)]=()=>{const _0x684fd6=_0x50a0ee;this[_0x684fd6(0xed)]=!0x1,this[_0x684fd6(0xfd)]=null,_0xc571db[_0x684fd6(0x140)]&&_0xc571db[_0x684fd6(0x140)][_0x684fd6(0x11a)]();},_0x174b6c[_0x50a0ee(0x10a)][_0x50a0ee(0x140)][_0x50a0ee(0xef)](_0x50a0ee(0x148),this[_0x50a0ee(0xfd)]);}[_0x52dc59(0x13f)](_0x1d16ea,_0x3ab4a9){const _0x3db628=_0x52dc59;this[_0x3db628(0x13a)][_0x3db628(0x116)][_0x3db628(0xe5)](_0x5cb6eb)[_0x3db628(0x135)](_0x1d16ea,_0x3db628(0x120)+_0x3ab4a9,!0x0,!0x0);}[_0x52dc59(0x143)](_0x547bbc){const _0x39bdcc=_0x52dc59,_0x4faf54=_0x20b22e(this[_0x39bdcc(0x13a)]);this[_0x39bdcc(0x13f)](_0x547bbc[_0x39bdcc(0x106)],_0x547bbc[_0x39bdcc(0x12a)]);const _0x5d33c7=this[_0x39bdcc(0x121)]();_0x5d33c7&&_0x5d33c7[0x0]&&_0x45ec1e({'target':_0x5d33c7[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x4faf54[_0x39bdcc(0x116)][_0x39bdcc(0xe5)](_0x39bdcc(0x142))[_0x39bdcc(0x144)]({'title':_0x547bbc[_0x39bdcc(0x101)],'icon':_0x547bbc[_0x39bdcc(0x128)],'hasCloseButton':!0x0,'id':_0x39bdcc(0xf8),'position':this[_0x39bdcc(0x124)][_0x39bdcc(0x151)](this),'className':_0x39bdcc(0x13b)+(_0x547bbc[_0x39bdcc(0xe8)]?_0x39bdcc(0x150):''),'content':this[_0x39bdcc(0x137)],'onShow':_0x14aba8=>{const _0x16da0f=_0x39bdcc;_0x547bbc[_0x16da0f(0xe8)]&&this[_0x16da0f(0x137)][_0x16da0f(0xfb)](_0x14aba8),this[_0x16da0f(0x10e)](),this[_0x16da0f(0xee)]=!0x0;},'onHide':()=>{const _0x8567a6=_0x39bdcc;this[_0x8567a6(0x13a)][_0x8567a6(0x116)][_0x8567a6(0xe5)](_0x8567a6(0x130))[_0x8567a6(0x131)](_0x8567a6(0x120)+this[_0x8567a6(0xf1)][_0x8567a6(0x12a)]),this[_0x8567a6(0x133)](),this[_0x8567a6(0x14b)](_0x8567a6(0x132)),this[_0x8567a6(0xee)]=!0x1;}});}[_0x52dc59(0x124)](_0x5426d3,_0x36bb3f){const _0x4d49fb=_0x52dc59;if(!_0x36bb3f)return null;const _0xff95bc=this[_0x4d49fb(0x121)]();if(!_0xff95bc||0x0===_0xff95bc[_0x4d49fb(0xea)])return{'left':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),'top':Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11d)]+_0x36bb3f[_0x4d49fb(0x117)]/0x2-_0x5426d3[_0x4d49fb(0x117)]/0x2)};const _0x15d20b=Math[_0x4d49fb(0x138)](_0x36bb3f[_0x4d49fb(0x11f)]+_0x36bb3f[_0x4d49fb(0x122)]/0x2-_0x5426d3[_0x4d49fb(0x122)]/0x2),_0x1cedea=new _0x5537d5(_0xff95bc[0x0]),_0x5487e0=new _0x5537d5(_0xff95bc[_0xff95bc[_0x4d49fb(0xea)]-0x1]),_0x1e9219=_0x5426d3[_0x4d49fb(0x117)],_0x39daee=this[_0x4d49fb(0xf1)][_0x4d49fb(0xe8)]?0x8:0x0;return{'left':_0x15d20b,'top':this[_0x4d49fb(0x12e)](_0x1cedea,_0x5487e0,_0x1e9219,_0x39daee,_0x36bb3f)};}[_0x52dc59(0x12e)](_0x3e1fb8,_0x36703f,_0x2f7c85,_0xdf07d2=0x0,_0x4ac8b3){const _0x480fb9=_0x52dc59,_0x39096b=_0x2f7c85+_0xdf07d2,_0x151f0e=new _0x5537d5(_0x2eae97[_0x480fb9(0x112)]),_0x160ffd=[_0x3e1fb8[_0x480fb9(0xfc)](),_0x36703f[_0x480fb9(0xfc)]()][_0x480fb9(0xf7)](_0x463a52=>_0x463a52),_0x1f2f99=_0x5537d5[_0x480fb9(0x14e)](_0x160ffd);if(!_0x1f2f99)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x17f64f=_0x151f0e[_0x480fb9(0x127)](_0x1f2f99);if(!_0x17f64f)return Math[_0x480fb9(0x138)](_0x4ac8b3[_0x480fb9(0x11d)]+_0x4ac8b3[_0x480fb9(0x117)]/0x2);const _0x701c1d=_0x4ac8b3[_0x480fb9(0xfc)](),_0x884bb3=_0x701c1d&&_0x1f2f99[_0x480fb9(0x117)]>_0x701c1d[_0x480fb9(0x117)],_0x4a3f63=_0x17f64f[_0x480fb9(0x11d)],_0x51de5d=_0x17f64f[_0x480fb9(0x102)];if(_0x884bb3){const _0x50fec6=(_0x701c1d||_0x151f0e)[_0x480fb9(0x117)]/0x2-_0x39096b/0x2,_0x4c9f12=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)],_0x483de1=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt;return _0x4c9f12>=_0x39096b?Math[_0x480fb9(0xfa)](jt,_0x4a3f63-_0x39096b-jt):_0x483de1>=_0x39096b?_0x51de5d+jt:Math[_0x480fb9(0xfa)](jt,_0x50fec6);}const _0x4ac368=_0x4a3f63-_0x39096b,_0x435b63=_0x4ac8b3[_0x480fb9(0x102)]-_0x51de5d-jt,_0x20eb2c=_0x4a3f63-jt-_0x4ac8b3[_0x480fb9(0x11d)];let _0x166c08;if(_0x435b63>=_0x39096b)_0x166c08=_0x51de5d+jt;else{if(_0x20eb2c>=_0x39096b)_0x166c08=_0x4ac368-jt;else _0x166c08=_0x4a3f63+_0x1f2f99[_0x480fb9(0x117)]/0x2-_0x39096b/0x2;}return _0x166c08;}[_0x52dc59(0x10e)](){const _0x1e5a27=_0x52dc59,_0x4cd2f8=_0x20b22e(this[_0x1e5a27(0x13a)]);this[_0x1e5a27(0x125)](_0x4cd2f8[_0x1e5a27(0xe9)][_0x1e5a27(0xeb)],_0x1e5a27(0x11e),()=>{const _0x2306f4=_0x1e5a27;if(this[_0x2306f4(0xed)])return;for(const {name:_0x209898,data:{newRange:_0x1deafa}}of _0x4cd2f8[_0x2306f4(0xe9)][_0x2306f4(0xeb)][_0x2306f4(0x126)][_0x2306f4(0x136)]())if(_0x209898[_0x2306f4(0x103)](_0x2306f4(0x100))&&(_0x1deafa&&(_0x1deafa[_0x2306f4(0x14f)][_0x2306f4(0xf6)](_0x1deafa[_0x2306f4(0x10f)])||_0x2306f4(0x114)==_0x1deafa[_0x2306f4(0xf2)][_0x2306f4(0xec)])||null==_0x1deafa)){const _0x297f22=_0x3d8b86(this[_0x2306f4(0x13a)][_0x2306f4(0x147)],_0x2306f4(0x14d));this[_0x2306f4(0x137)][_0x2306f4(0xf5)](_0x297f22),this[_0x2306f4(0x14b)](_0x2306f4(0x10b));}});}[_0x52dc59(0x133)](){const _0x513ef6=_0x52dc59,_0x37c277=_0x20b22e(this[_0x513ef6(0x13a)]);this[_0x513ef6(0x11c)](_0x37c277[_0x513ef6(0xe9)][_0x513ef6(0xeb)]);}[_0x52dc59(0x121)](){const _0x375a8b=_0x52dc59,_0x5a01b3=_0x20b22e(this[_0x375a8b(0x13a)]);return _0x595171(_0x5a01b3[_0x375a8b(0x10a)],[..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x119)),..._0x5a01b3[_0x375a8b(0xe9)][_0x375a8b(0x14c)][_0x375a8b(0xf9)](_0x375a8b(0x12c))]);}}
|