@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.5
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
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x4488db=_0x4ff8;function _0x4ff8(_0x1513d5,_0x17dd39){const _0x469c2f=_0x469c();return _0x4ff8=function(_0x4ff81f,_0x4d6b57){_0x4ff81f=_0x4ff81f-0x17c;let _0x5d3c9a=_0x469c2f[_0x4ff81f];return _0x5d3c9a;},_0x4ff8(_0x1513d5,_0x17dd39);}(function(_0x2084e9,_0x3a4786){const _0x2c872d=_0x4ff8,_0x5d53f6=_0x2084e9();while(!![]){try{const _0x2a6d50=parseInt(_0x2c872d(0x1b9))/0x1+parseInt(_0x2c872d(0x19a))/0x2+parseInt(_0x2c872d(0x196))/0x3*(-parseInt(_0x2c872d(0x1b4))/0x4)+parseInt(_0x2c872d(0x188))/0x5*(-parseInt(_0x2c872d(0x1a5))/0x6)+parseInt(_0x2c872d(0x19c))/0x7*(-parseInt(_0x2c872d(0x1ca))/0x8)+-parseInt(_0x2c872d(0x1c7))/0x9*(parseInt(_0x2c872d(0x1c2))/0xa)+parseInt(_0x2c872d(0x1d4))/0xb*(parseInt(_0x2c872d(0x1be))/0xc);if(_0x2a6d50===_0x3a4786)break;else _0x5d53f6['push'](_0x5d53f6['shift']());}catch(_0x4746e1){_0x5d53f6['push'](_0x5d53f6['shift']());}}}(_0x469c,0x45f4d));import{ObservableMixin as _0x2407ef}from'ckeditor5/src/utils.js';import{AIRequestError as _0x27e3d0}from'../adapters/aiadapter.js';import{Matcher as _0x2f9e23,ViewUpcastWriter as _0xd834a6}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2407ef(){[_0x4488db(0x18e)];[_0x4488db(0x1d8)];[_0x4488db(0x1c1)];[_0x4488db(0x198)];[_0x4488db(0x199)];[_0x4488db(0x1bf)];constructor(_0x2bfeed,_0x4d0e9d,_0x3decae){const _0x30ed25=_0x4488db;super(),this[_0x30ed25(0x18e)]=_0x2bfeed,this[_0x30ed25(0x1d8)]=_0x4d0e9d,this[_0x30ed25(0x198)]=document[_0x30ed25(0x1b5)](_0x30ed25(0x18b)),this[_0x30ed25(0x199)]=new DOMParser(),this[_0x30ed25(0x1bf)]=new XMLSerializer(),this[_0x30ed25(0x1c1)]=_0x3decae,this[_0x30ed25(0x1b0)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x30ed25(0x1a1),(_0x3dbdff,_0x4feb94,_0x245ba9)=>{const _0x50ba78=_0x30ed25;this[_0x50ba78(0x1c1)][_0x50ba78(0x1af)]=this[_0x50ba78(0x1d1)](_0x245ba9);}),this[_0x30ed25(0x1a9)](this[_0x30ed25(0x1c1)],_0x30ed25(0x19e),(_0x5854d2,_0x2b8996)=>{const _0x1b8b55=_0x30ed25,_0x3e949b=this[_0x1b8b55(0x17f)]||this[_0x1b8b55(0x1d0)];this[_0x1b8b55(0x17d)](_0x2b8996,_0x3e949b,_0x1b8b55(0x18f));}),this[_0x30ed25(0x1a9)](this[_0x30ed25(0x1c1)],_0x30ed25(0x1d6),()=>{const _0x8aeccd=_0x30ed25;this[_0x8aeccd(0x1c1)][_0x8aeccd(0x197)]=this[_0x8aeccd(0x1b1)],this[_0x8aeccd(0x17d)](this[_0x8aeccd(0x18d)],this[_0x8aeccd(0x18a)],this[_0x8aeccd(0x1d5)],this[_0x8aeccd(0x1b1)]);}),this[_0x30ed25(0x1a9)](this[_0x30ed25(0x1c1)],_0x30ed25(0x187),()=>{const _0x368f55=_0x30ed25;this[_0x368f55(0x187)]();});}[_0x4488db(0x1bc)](){const _0x18c427=_0x4488db;this[_0x18c427(0x1d7)]();}async[_0x4488db(0x1a8)]({actionId:_0x52fc8e,query:_0x251175,htmlContent:_0x400864,label:_0x4f2b9a,mainActionLabel:_0x652f5}){const _0x46385c=_0x4488db;this[_0x46385c(0x1c1)][_0x46385c(0x197)]=_0x4f2b9a,this[_0x46385c(0x1c1)][_0x46385c(0x185)]=_0x652f5,this[_0x46385c(0x1d0)]=_0x400864,_0x251175&&(this[_0x46385c(0x1c1)][_0x46385c(0x1db)]?this[_0x46385c(0x17d)](_0x251175,_0x400864,_0x52fc8e,_0x4f2b9a):this[_0x46385c(0x1c1)][_0x46385c(0x1aa)](_0x46385c(0x193),()=>{const _0x2ec81d=_0x46385c;this[_0x2ec81d(0x17d)](_0x251175,_0x400864,_0x52fc8e,_0x4f2b9a);}));}[_0x4488db(0x187)](){const _0x2e3b19=_0x4488db;this[_0x2e3b19(0x182)]&&(this[_0x2e3b19(0x182)]=!0x1,this[_0x2e3b19(0x1c1)][_0x2e3b19(0x181)](),this[_0x2e3b19(0x1d8)][_0x2e3b19(0x19d)]());}[_0x4488db(0x183)](){const _0x18b00b=_0x4488db;this[_0x18b00b(0x1d0)]='',this[_0x18b00b(0x17f)]='',this[_0x18b00b(0x17e)]='',this[_0x18b00b(0x18a)]='',this[_0x18b00b(0x18d)]='',this[_0x18b00b(0x1b1)]='',this[_0x18b00b(0x1d5)]=void 0x0,this[_0x18b00b(0x1c1)][_0x18b00b(0x183)](),this[_0x18b00b(0x187)]();}async[_0x4488db(0x17d)](_0x509ded,_0x109483,_0x12962d,_0xc6de9a){const _0x1fde43=_0x4488db;return this[_0x1fde43(0x182)]=!0x0,this[_0x1fde43(0x1c1)][_0x1fde43(0x1a7)](),this[_0x1fde43(0x18a)]=_0x109483,this[_0x1fde43(0x18d)]=_0x509ded,this[_0x1fde43(0x1b1)]=_0xc6de9a||_0x509ded,this[_0x1fde43(0x1d5)]=_0x12962d,new Promise(_0x48fb3e=>{const _0x5a2d12=_0x1fde43;this[_0x5a2d12(0x1d8)][_0x5a2d12(0x19f)]({'query':_0x509ded,'context':_0x109483,'onData':_0x524e01=>{const _0x1a3d6b=_0x5a2d12;this[_0x1a3d6b(0x17e)]=_0x524e01,this[_0x1a3d6b(0x17f)]=this[_0x1a3d6b(0x191)](this[_0x1a3d6b(0x17e)]);},'actionId':_0x12962d})[_0x5a2d12(0x1ae)](()=>{const _0x2b3181=_0x5a2d12;!this[_0x2b3181(0x17f)]&&this[_0x2b3181(0x17e)]&&(this[_0x2b3181(0x17f)]=this[_0x2b3181(0x191)](this[_0x2b3181(0x17e)],!0x0));})[_0x5a2d12(0x1de)](_0x15fe4a=>{const _0x367c79=_0x5a2d12;_0x15fe4a instanceof _0x27e3d0?this[_0x367c79(0x1c1)][_0x367c79(0x1c4)](_0x15fe4a[_0x367c79(0x1b3)]):this[_0x367c79(0x1c1)][_0x367c79(0x1c4)](),_0x48fb3e();})[_0x5a2d12(0x18c)](()=>{const _0x14d67e=_0x5a2d12;this[_0x14d67e(0x187)](),_0x48fb3e();});});}[_0x4488db(0x191)](_0x27a821,_0xe9d5c1=!0x1){const _0x384d58=_0x4488db,_0x4a4d65=hs[_0x384d58(0x1a3)](_0x27a821);_0x27a821=_0x4a4d65?_0x27a821[_0x384d58(0x1c6)](_0x4a4d65[0x1][_0x384d58(0x1a0)]):_0x27a821[_0x384d58(0x1a0)]<0x64&&!_0xe9d5c1?'':this[_0x384d58(0x1cb)](_0x27a821);const _0x267dc3=this[_0x384d58(0x199)][_0x384d58(0x1cf)](_0x27a821,_0x384d58(0x1bb));if(_0x4a4d65){const _0x4c3bf6=Array[_0x384d58(0x1c3)](_0x267dc3[_0x384d58(0x1c9)][_0x384d58(0x186)]);_0x4c3bf6[_0x384d58(0x195)]();for(const _0x5e9635 of _0x4c3bf6){if(_0x5e9635[_0x384d58(0x1da)]==Node[_0x384d58(0x1bd)])break;_0x5e9635[_0x384d58(0x1ad)]();}}const _0x150a1c=this[_0x384d58(0x18e)][_0x384d58(0x1ce)][_0x384d58(0x1df)][_0x384d58(0x1e0)](this[_0x384d58(0x1bf)][_0x384d58(0x1ac)](_0x267dc3[_0x384d58(0x1c9)]));this[_0x384d58(0x1b8)]()||this[_0x384d58(0x189)](_0x150a1c);const _0x43b383=this[_0x384d58(0x18e)][_0x384d58(0x1b6)][_0x384d58(0x1b7)](_0x384d58(0x1a2)),_0x59669d=this[_0x384d58(0x18e)][_0x384d58(0x1ce)][_0x384d58(0x1ba)](_0x150a1c);return _0x43b383||_0x59669d[_0x384d58(0x1ab)][_0x384d58(0x1d3)](),this[_0x384d58(0x18e)][_0x384d58(0x1ce)][_0x384d58(0x1c5)](_0x59669d);}[_0x4488db(0x189)](_0x580628){const _0x3ea5ef=_0x4488db,_0x2dddeb=new _0xd834a6(this[_0x3ea5ef(0x18e)][_0x3ea5ef(0x19b)][_0x3ea5ef(0x1c1)][_0x3ea5ef(0x1a4)]),_0x92a1ef=new _0x2f9e23({'name':/^h[1-5]$/}),_0x965382=[];let _0x77f84d=!0x1;for(const _0xf94e4 of _0x580628)_0xf94e4['is'](_0x3ea5ef(0x1c8))&&_0x92a1ef[_0x3ea5ef(0x1d9)](_0xf94e4)&&(_0x965382[_0x3ea5ef(0x1e1)](_0xf94e4),'h1'==_0xf94e4[_0x3ea5ef(0x190)]&&(_0x77f84d=!0x0));if(_0x77f84d){for(const _0x28d642 of _0x965382)_0x2dddeb[_0x3ea5ef(0x194)]('h'+(parseInt(_0x28d642[_0x3ea5ef(0x190)][0x1])+0x1),_0x28d642);}}[_0x4488db(0x1b8)](){const _0x4c66f8=_0x4488db,{data:_0x2cb59a,editing:_0x58da30}=this[_0x4c66f8(0x18e)],_0x4b0ee2=_0x2cb59a[_0x4c66f8(0x180)][_0x4c66f8(0x1e0)](_0x4c66f8(0x1c0)),_0xfb9cc7=_0x2cb59a[_0x4c66f8(0x1e0)](_0x2cb59a[_0x4c66f8(0x1ba)](_0x4b0ee2));return!!_0x58da30[_0x4c66f8(0x1c1)][_0x4c66f8(0x17c)][_0x4c66f8(0x1a6)](_0xfb9cc7)[_0x4c66f8(0x1dc)]('h1');}[_0x4488db(0x1d1)](_0x1d0e93){const _0x35b254=_0x4488db;return this[_0x35b254(0x18e)][_0x35b254(0x19b)][_0x35b254(0x1c1)][_0x35b254(0x17c)][_0x35b254(0x1b2)](this[_0x35b254(0x198)],_0x1d0e93),this[_0x35b254(0x198)][_0x35b254(0x1dd)];}[_0x4488db(0x1cb)](_0x22d7fc){const _0x31c6a5=_0x4488db,_0x10cf13=_0x22d7fc[_0x31c6a5(0x184)]();return _0x10cf13[_0x31c6a5(0x192)](_0x31c6a5(0x1cc))?_0x10cf13[_0x31c6a5(0x1d2)](_0x31c6a5(0x1cd))?_0x10cf13[_0x31c6a5(0x1c6)](0x7,_0x10cf13[_0x31c6a5(0x1a0)]-0x3):_0x10cf13[_0x31c6a5(0x1c6)](0x7):_0x22d7fc;}}function _0x469c(){const _0x155216=['tryAgainEvent','stopListening','textAdapter','match','nodeType','isRendered','querySelector','innerHTML','catch','processor','toView','push','domConverter','_handleQuery','currentResponse','currentContext','htmlProcessor','finishProcessing','isProcessing','reset','trim','mainAction','childNodes','stopProcessing','30GaAIFr','_normalizeResponseHeadings','previousContext','div','finally','previousQuery','editor','custom','name','_parseAndNormalizeContent','startsWith','render','rename','reverse','7992MFseiM','prompt','_sanitizationContainer','_domParser','96294fbxtVn','editing','2169398AXwGFr','abort','submitPrompt','makeRequest','length','set:currentContext','ai.assistant.preserveComments','exec','document','32994AEzyjY','viewToDom','startProcessing','updateView','listenTo','once','markers','serializeToString','remove','then','value','set','previousLabel','setContentOf','message','544afOXyX','createElement','config','get','_isH1TagSupportEnabled','423842mQQCsf','toModel','text/html','destroy','ELEMENT_NODE','454836glHByX','_xmlSerializer','<h1></h1>','view','20VzqKbM','from','handleError','stringify','substring','1413459GTkaRy','element','body','8xvHazp','_stripMarkdownSyntax','```html','```','data','parseFromString','initialContext','_sanitizeHTML','endsWith','clear','242onUozL','previousActionId'];_0x469c=function(){return _0x155216;};return _0x469c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x35331f=_0xaeee;function _0xe7a3(){const _0x2da84d=['focus','scrollHeight','getSelection','setEndBefore','-9999px','removeAllRanges','ck-hidden','render','bindTemplate','textContent','wheel','1214082UqzFHY','execCommand','locale','setStartAfter','_createLoader','element','isVisible','listenTo','<span>]</span>','absolute','scrollTo','ck-content','loaderView','ck-reset_all-excluded','lastElementChild','class','388eUVcOP','9920701drnbxF','icon','contentFieldView','firstElementChild','ck-ai-form__copy-button','write','ck-ai-form__content-area--processing','value','ck-ai-form__loader','style','appendLoader','createRange','8jcRoUw','11nMxymE','appendChild','change:isProcessing','copy','ck-ai-form__content-area-wrapper','8840030NkpOjB','text/plain','innerHTML','clipboard','div','ClipboardItem','Copy','position','mousedown','isProcessing','.ck-ai-form__loader','setTemplate','ck-ai-form__copy-button-wrapper','AI\x20is\x20writing...','querySelector','_copyHTMLToClipboard','5FiLROU','bind','6134xsdubq','smooth','ck-ai-form__content-field','set','isEnabled','_createCopyButton','ck-ai-form__content-area','copyButtonView','left','body','8134380yxJTxo','addRange','2076uzHeEr','setContent','\x20ck-ai-form__copy-button--copied','remove','14992392NxZDIH','createElement','<span>[</span>','text/html','execute','change:value','1516rpqSbv'];_0xe7a3=function(){return _0x2da84d;};return _0xe7a3();}(function(_0x21b8c1,_0x2021e3){const _0x35dd65=_0xaeee,_0x355d4d=_0x21b8c1();while(!![]){try{const _0x54fcd0=-parseInt(_0x35dd65(0x195))/0x1*(parseInt(_0x35dd65(0x170))/0x2)+-parseInt(_0x35dd65(0x1a1))/0x3*(-parseInt(_0x35dd65(0x1ab))/0x4)+-parseInt(_0x35dd65(0x193))/0x5*(parseInt(_0x35dd65(0x1b7))/0x6)+parseInt(_0x35dd65(0x171))/0x7+-parseInt(_0x35dd65(0x17d))/0x8*(-parseInt(_0x35dd65(0x19f))/0x9)+parseInt(_0x35dd65(0x183))/0xa*(parseInt(_0x35dd65(0x17e))/0xb)+-parseInt(_0x35dd65(0x1a5))/0xc;if(_0x54fcd0===_0x2021e3)break;else _0x355d4d['push'](_0x355d4d['shift']());}catch(_0x2a19aa){_0x355d4d['push'](_0x355d4d['shift']());}}}(_0xe7a3,0xc9919));import{global as _0x442dc8}from'ckeditor5/src/utils.js';import{View as _0x601064,ButtonView as _0x5807e2,SpinnerView as _0x216fc9}from'ckeditor5/src/ui.js';import{IconCheck as _0x1868e8,IconCopy as _0x3e57e5}from'ckeditor5/src/icons.js';import{getTranslation as _0x3ce9ce}from'../../utils/common-translations.js';function _0xaeee(_0xbd2f84,_0x956f42){const _0xe7a3bc=_0xe7a3();return _0xaeee=function(_0xaeee7d,_0xa70b3c){_0xaeee7d=_0xaeee7d-0x165;let _0x30e815=_0xe7a3bc[_0xaeee7d];return _0x30e815;},_0xaeee(_0xbd2f84,_0x956f42);}export class AIFormContentArea extends _0x601064{[_0x35331f(0x173)];[_0x35331f(0x19c)];constructor(_0x2ff45a,_0x3df699=''){const _0x143f4b=_0x35331f;super(_0x2ff45a),this[_0x143f4b(0x198)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x40a739=this[_0x143f4b(0x1b4)];this[_0x143f4b(0x173)]=new ContentFieldView(_0x2ff45a,_0x3df699),this[_0x143f4b(0x19c)]=this[_0x143f4b(0x19a)](),this[_0x143f4b(0x18e)]({'tag':_0x143f4b(0x187),'attributes':{'class':['ck',_0x143f4b(0x182),_0x40a739['if'](_0x143f4b(0x166),_0x143f4b(0x1b2),_0x44f39a=>!_0x44f39a)],'tabindex':'-1'},'children':[{'tag':_0x143f4b(0x187),'attributes':{'class':['ck',_0x143f4b(0x19b),_0x40a739['if'](_0x143f4b(0x18c),_0x143f4b(0x177))]},'children':[this[_0x143f4b(0x173)],{'tag':_0x143f4b(0x187),'attributes':{'class':['ck',_0x143f4b(0x18f)]},'children':[this[_0x143f4b(0x19c)]]}]}]});}[_0x35331f(0x1b3)](){const _0x26d54a=_0x35331f;super[_0x26d54a(0x1b3)](),this[_0x26d54a(0x178)]&&this[_0x26d54a(0x173)][_0x26d54a(0x1a2)](this[_0x26d54a(0x178)]);let _0x420e3e=!0x1;this['on'](_0x26d54a(0x1aa),(_0x30442f,_0x525e7e,_0xcbaeb5)=>{const _0x2125ae=_0x26d54a,_0x20eb96=!this[_0x2125ae(0x173)][_0x2125ae(0x165)][_0x2125ae(0x191)](_0x2125ae(0x18d));this[_0x2125ae(0x173)][_0x2125ae(0x1a2)](_0xcbaeb5),this[_0x2125ae(0x18c)]&&_0x20eb96&&!_0x420e3e&&this[_0x2125ae(0x165)][_0x2125ae(0x16a)]({'top':this[_0x2125ae(0x165)][_0x2125ae(0x1ad)],'behavior':_0x2125ae(0x196)});}),this['on'](_0x26d54a(0x180),(_0x8fd6a4,_0x99b6a,_0x22c2e6)=>{const _0x31b6d3=_0x26d54a;_0x420e3e=!0x1,_0x22c2e6?(this[_0x31b6d3(0x178)]=null,this[_0x31b6d3(0x173)][_0x31b6d3(0x17b)]()):this[_0x31b6d3(0x178)]||this[_0x31b6d3(0x173)][_0x31b6d3(0x1a2)]('');}),this[_0x26d54a(0x167)](this[_0x26d54a(0x165)],_0x26d54a(0x1b6),()=>{_0x420e3e=!0x0;}),this[_0x26d54a(0x167)](this[_0x26d54a(0x165)],_0x26d54a(0x18b),()=>{_0x420e3e=!0x0;});}[_0x35331f(0x1ac)](){const _0x28207f=_0x35331f;this[_0x28207f(0x165)][_0x28207f(0x1ac)]();}[_0x35331f(0x19a)](){const _0x9f12d5=_0x35331f,_0x18428b=this[_0x9f12d5(0x1b9)],_0x25c0ae=new _0x5807e2(this[_0x9f12d5(0x1b9)]),_0x3a972e=_0x9f12d5(0x175);return _0x25c0ae[_0x9f12d5(0x198)]({'label':_0x3ce9ce(_0x18428b,_0x9f12d5(0x189)),'icon':_0x3e57e5,'class':_0x3a972e,'tooltip':!0x0}),_0x25c0ae[_0x9f12d5(0x194)](_0x9f12d5(0x166))['to'](this,_0x9f12d5(0x178),_0x1e6a65=>!!_0x1e6a65),_0x25c0ae[_0x9f12d5(0x194)](_0x9f12d5(0x199))['to'](this,_0x9f12d5(0x18c),_0x432e32=>!_0x432e32),_0x25c0ae['on'](_0x9f12d5(0x1a9),()=>{const _0x222177=_0x9f12d5;this[_0x222177(0x192)](this[_0x222177(0x173)][_0x222177(0x165)]),_0x25c0ae[_0x222177(0x172)]=_0x1868e8,_0x25c0ae[_0x222177(0x16f)]=_0x3a972e+_0x222177(0x1a3),this[_0x222177(0x1ac)](),setTimeout(()=>{const _0xceff36=_0x222177;_0x25c0ae[_0xceff36(0x172)]=_0x3e57e5,_0x25c0ae[_0xceff36(0x16f)]=_0x3a972e;},0x3e8);}),_0x25c0ae;}[_0x35331f(0x192)](_0x70e87b){const _0x5122d9=_0x35331f,{window:_0x339750,document:_0x4431d3}=_0x442dc8;if(_0x339750[_0x5122d9(0x188)]){const {Blob:_0x453e49,ClipboardItem:_0x14d440}=_0x339750,_0x51cec5=[new _0x14d440({'text/html':new _0x453e49([_0x70e87b[_0x5122d9(0x185)]],{'type':_0x5122d9(0x1a8)}),'text/plain':new _0x453e49([_0x70e87b[_0x5122d9(0x1b5)]||''],{'type':_0x5122d9(0x184)})})];navigator[_0x5122d9(0x186)][_0x5122d9(0x176)](_0x51cec5);}else{const _0x5464ef=_0x4431d3[_0x5122d9(0x1a6)](_0x5122d9(0x187));_0x5464ef[_0x5122d9(0x17a)][_0x5122d9(0x18a)]=_0x5122d9(0x169),_0x5464ef[_0x5122d9(0x17a)][_0x5122d9(0x19d)]=_0x5122d9(0x1b0),_0x5464ef[_0x5122d9(0x185)]=_0x5122d9(0x1a7)+_0x70e87b[_0x5122d9(0x185)]+_0x5122d9(0x168),_0x4431d3[_0x5122d9(0x19e)][_0x5122d9(0x17f)](_0x5464ef);const _0x324c1b=_0x4431d3[_0x5122d9(0x17c)]();_0x324c1b[_0x5122d9(0x1ba)](_0x5464ef[_0x5122d9(0x174)]),_0x324c1b[_0x5122d9(0x1af)](_0x5464ef[_0x5122d9(0x16e)]);const _0x119bbc=_0x339750[_0x5122d9(0x1ae)]();_0x119bbc[_0x5122d9(0x1b1)](),_0x119bbc[_0x5122d9(0x1a0)](_0x324c1b),_0x4431d3[_0x5122d9(0x1b8)](_0x5122d9(0x181)),_0x5464ef[_0x5122d9(0x1a4)]();}}}export class ContentFieldView extends _0x601064{constructor(_0xa6f8ee,_0xf61da0=''){const _0x257b53=_0x35331f;super(_0xa6f8ee),this[_0x257b53(0x16c)]=this[_0x257b53(0x1bb)](),this[_0x257b53(0x18e)]({'tag':_0x257b53(0x187),'attributes':{'class':['ck',_0x257b53(0x16b),_0xf61da0,_0x257b53(0x16d),_0x257b53(0x197)]}});}[_0x35331f(0x1a2)](_0x15329f){const _0x2057f7=_0x35331f;this[_0x2057f7(0x165)][_0x2057f7(0x185)]=_0x15329f;}[_0x35331f(0x17b)](){const _0x415a55=_0x35331f;this[_0x415a55(0x165)][_0x415a55(0x17f)](this[_0x415a55(0x16c)][_0x415a55(0x165)]);}[_0x35331f(0x1bb)](){const _0x1befcd=_0x35331f,_0x358002=new _0x601064(),_0x37bc6b=this[_0x1befcd(0x1b9)],_0x373acd=new _0x216fc9();return _0x373acd[_0x1befcd(0x166)]=!0x0,_0x358002[_0x1befcd(0x18e)]({'tag':_0x1befcd(0x187),'attributes':{'class':['ck',_0x1befcd(0x179)]},'children':[_0x373acd,{'text':_0x3ce9ce(_0x37bc6b,_0x1befcd(0x190))}]}),_0x358002[_0x1befcd(0x1b3)](),_0x358002;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4cd9e8,_0x583ac0){const _0x111a16=_0x467e,_0x36ea60=_0x4cd9e8();while(!![]){try{const _0x2e40a4=-parseInt(_0x111a16(0x17c))/0x1+parseInt(_0x111a16(0x176))/0x2+parseInt(_0x111a16(0x182))/0x3*(-parseInt(_0x111a16(0x184))/0x4)+parseInt(_0x111a16(0x17f))/0x5+-parseInt(_0x111a16(0x185))/0x6*(parseInt(_0x111a16(0x17e))/0x7)+parseInt(_0x111a16(0x178))/0x8+-parseInt(_0x111a16(0x183))/0x9*(-parseInt(_0x111a16(0x17b))/0xa);if(_0x2e40a4===_0x583ac0)break;else _0x36ea60['push'](_0x36ea60['shift']());}catch(_0x48e6f){_0x36ea60['push'](_0x36ea60['shift']());}}}(_0x80d9,0x99a20));import{IconError as _0xa50dd9}from'ckeditor5/src/icons.js';function _0x80d9(){const _0x2cdc13=['10zWgMUs','1137359tibGpk','setTemplate','88907tnXcJp','2359015YkewmO','div','text','1170327KQSHYv','4796478eEmLoJ','4DcjDND','354kpIaZM','ck-ai-form__error','2165542DrfCFZ','set','6548728WHGeFq','bindTemplate','content'];_0x80d9=function(){return _0x2cdc13;};return _0x80d9();}import{View as _0x5864a9,IconView as _0x15a347}from'ckeditor5/src/ui.js';function _0x467e(_0x1524fe,_0xcd024b){const _0x80d95c=_0x80d9();return _0x467e=function(_0x467ea9,_0x19b0e6){_0x467ea9=_0x467ea9-0x176;let _0x288287=_0x80d95c[_0x467ea9];return _0x288287;},_0x467e(_0x1524fe,_0xcd024b);}export class AIFormErrorView extends _0x5864a9{constructor(_0xedfe0d,_0x567524=''){const _0x3d8db7=_0x467e;super(_0xedfe0d);const _0x8059a9=new _0x15a347(),_0x350e26=this[_0x3d8db7(0x179)];this[_0x3d8db7(0x177)](_0x3d8db7(0x181),_0x567524),_0x8059a9[_0x3d8db7(0x17a)]=_0xa50dd9,this[_0x3d8db7(0x17d)]({'tag':_0x3d8db7(0x180),'attributes':{'class':['ck',_0x3d8db7(0x186)]},'children':[_0x8059a9,{'text':_0x350e26['to'](_0x3d8db7(0x181))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bed5e=_0x57f4;(function(_0x4dd02f,_0x3d2e55){const _0x32a6e3=_0x57f4,_0x52aa3b=_0x4dd02f();while(!![]){try{const _0x9e0110=parseInt(_0x32a6e3(0x206))/0x1*(parseInt(_0x32a6e3(0x1e1))/0x2)+-parseInt(_0x32a6e3(0x20b))/0x3*(-parseInt(_0x32a6e3(0x1f3))/0x4)+-parseInt(_0x32a6e3(0x204))/0x5*(-parseInt(_0x32a6e3(0x207))/0x6)+parseInt(_0x32a6e3(0x1e8))/0x7*(parseInt(_0x32a6e3(0x1fe))/0x8)+parseInt(_0x32a6e3(0x1d6))/0x9*(parseInt(_0x32a6e3(0x1d8))/0xa)+-parseInt(_0x32a6e3(0x1e4))/0xb*(-parseInt(_0x32a6e3(0x20c))/0xc)+-parseInt(_0x32a6e3(0x1d2))/0xd;if(_0x9e0110===_0x3d2e55)break;else _0x52aa3b['push'](_0x52aa3b['shift']());}catch(_0xc4b41c){_0x52aa3b['push'](_0x52aa3b['shift']());}}}(_0x5035,0xe538b));import{Rect as _0x3621d6,global as _0x48857c,isVisible as _0x361b88}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x24f2ef,IconSubmit as _0x24e1ac}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2dce56,ButtonView as _0x2d9cfe}from'ckeditor5/src/ui.js';function _0x5035(){const _0x5b9f99=['fire','render','filteredView','isOn','target','1363774cEcrKR','requestAnimationFrame','style','6589jtcADf','left','excludeScrollbarsAndBorders','resultsView','14WsdfnS','focusLast','fieldWrapperChildren','width','enter','isEnabled','update','maxRows','queryView','focusFirst','ck-ai-form__toggle-history','53688uCTjqI','bind','right','isVisible','showHistoryButtonView','isEmpty','_createSubmitButton','submit','locale','children','focusCycler','2189128ORasAe','set','window','rtl','keystrokes','submitButtonView','35ENBBzd','Submit','2pdmKuS','662676pkHdvh','fieldView','ck-ai-form__submit','element','219bEwNdO','33636LEaCoS','focus','uiLanguageDirection','79285479Zociwk','_createShowHistoryButton','minRows','execute','3573khRQPu','add','42690ClXveq','value','focusableChildren','History'];_0x5035=function(){return _0x5b9f99;};return _0x5035();}import{getTranslation as _0x4e46bb}from'../../utils/common-translations.js';function _0x57f4(_0x2d67f7,_0x3fd52d){const _0x503547=_0x5035();return _0x57f4=function(_0x57f4c1,_0x541b2b){_0x57f4c1=_0x57f4c1-0x1d1;let _0x258fe0=_0x503547[_0x57f4c1];return _0x258fe0;},_0x57f4(_0x2d67f7,_0x3fd52d);}export class AIFormPromptView extends _0x2dce56{[_0x1bed5e(0x203)];[_0x1bed5e(0x1f7)];constructor(_0x4ddfac,_0xd11827){const _0x1de413=_0x1bed5e;super(_0x4ddfac,_0xd11827),this[_0x1de413(0x1f0)][_0x1de413(0x208)][_0x1de413(0x1d4)]=0x1,this[_0x1de413(0x1f0)][_0x1de413(0x208)][_0x1de413(0x1ef)]=0x3,this[_0x1de413(0x203)]=this[_0x1de413(0x1f9)](),this[_0x1de413(0x1f7)]=this[_0x1de413(0x1d3)](),this[_0x1de413(0x1da)][_0x1de413(0x1d7)](this[_0x1de413(0x1f7)],0x1),this[_0x1de413(0x1da)][_0x1de413(0x1d7)](this[_0x1de413(0x203)]);}[_0x1bed5e(0x1dd)](){const _0x7b805b=_0x1bed5e;super[_0x7b805b(0x1dd)](),this[_0x7b805b(0x1f0)][_0x7b805b(0x1ea)][_0x7b805b(0x1d7)](this[_0x7b805b(0x1f7)]),this[_0x7b805b(0x1fc)][_0x7b805b(0x1d7)](this[_0x7b805b(0x203)]),this[_0x7b805b(0x202)][_0x7b805b(0x1ff)](_0x7b805b(0x1ec),(_0xb5312f,_0x489b78)=>{const _0x35e628=_0x7b805b;_0xb5312f[_0x35e628(0x1e0)]==this[_0x35e628(0x1f0)][_0x35e628(0x208)][_0x35e628(0x20a)]&&(this[_0x35e628(0x1fa)](),_0x489b78());});}[_0x1bed5e(0x1f9)](){const _0x291895=_0x1bed5e,_0x154cf2=new _0x2d9cfe(this[_0x291895(0x1fb)]),_0x58cc56=this[_0x291895(0x1fb)];return _0x154cf2[_0x291895(0x1ff)]({'icon':_0x24e1ac,'label':_0x4e46bb(_0x58cc56,_0x291895(0x205)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x291895(0x209)}),_0x154cf2['on'](_0x291895(0x1d5),()=>{const _0x684350=_0x291895;this[_0x684350(0x1fa)]();}),_0x154cf2[_0x291895(0x1f4)](_0x291895(0x1ed))['to'](this[_0x291895(0x1f0)][_0x291895(0x208)],_0x291895(0x1f8),this,_0x291895(0x1ed),(_0x2c9811,_0x2112d9)=>!_0x2c9811&&_0x2112d9),_0x154cf2;}[_0x1bed5e(0x1d3)](){const _0x3ed552=_0x1bed5e,_0x436020=new _0x2d9cfe(this[_0x3ed552(0x1fb)]),_0x5235f3=this[_0x3ed552(0x1e7)],_0x3d079b=this[_0x3ed552(0x1fb)];_0x436020[_0x3ed552(0x1ff)]({'label':_0x4e46bb(_0x3d079b,_0x3ed552(0x1db)),'withText':!0x1,'icon':_0x24f2ef,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x3ed552(0x1f2)}),_0x436020[_0x3ed552(0x1f4)](_0x3ed552(0x1df))['to'](_0x5235f3,_0x3ed552(0x1f6)),_0x436020[_0x3ed552(0x1f4)](_0x3ed552(0x1ed))['to'](this,_0x3ed552(0x1ed)),_0x436020['on'](_0x3ed552(0x1d5),()=>{const _0x109647=_0x3ed552;_0x5235f3[_0x109647(0x1f6)]=!_0x5235f3[_0x109647(0x1f6)],_0x5235f3[_0x109647(0x1f6)]?this[_0x109647(0x1de)][_0x109647(0x20d)]():this[_0x109647(0x20d)]();});const _0x4c25e5=()=>{const _0x40e440=_0x3ed552;_0x48857c[_0x40e440(0x200)][_0x40e440(0x1e2)](()=>{const _0x1bcb32=_0x40e440;if(_0x361b88(this[_0x1bcb32(0x20a)])){const _0x4b01fb=new _0x3621d6(this[_0x1bcb32(0x1f0)][_0x1bcb32(0x208)][_0x1bcb32(0x20a)]),_0x35adfa=_0x4b01fb[_0x1bcb32(0x1eb)],_0x2c9d53=_0x1bcb32(0x201)===_0x3d079b[_0x1bcb32(0x1d1)]?_0x1bcb32(0x1e5):_0x1bcb32(0x1f5);_0x4b01fb[_0x1bcb32(0x1e6)](),_0x436020[_0x1bcb32(0x20a)][_0x1bcb32(0x1e3)][_0x2c9d53]=_0x35adfa-_0x4b01fb[_0x1bcb32(0x1eb)]+0x1+'px';}});};return this[_0x3ed552(0x1f0)][_0x3ed552(0x208)]['on'](_0x3ed552(0x1ee),_0x4c25e5),this['on'](_0x3ed552(0x1dd),_0x4c25e5),_0x436020;}[_0x1bed5e(0x1fa)](){const _0xb405af=_0x1bed5e,_0x25a1af=this[_0xb405af(0x1f0)][_0xb405af(0x208)][_0xb405af(0x20a)][_0xb405af(0x1d9)];this[_0xb405af(0x1dc)](_0xb405af(0x1fa),_0x25a1af);}[_0x1bed5e(0x20d)](_0x17e32e){const _0x4f36cf=_0x1bed5e;-0x1===_0x17e32e?this[_0x4f36cf(0x1fd)][_0x4f36cf(0x1e9)]():this[_0x4f36cf(0x1fd)][_0x4f36cf(0x1f1)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x449bd8=_0x1910;(function(_0x3d2ecb,_0x5629d7){const _0x3899a8=_0x1910,_0x598201=_0x3d2ecb();while(!![]){try{const _0x59375f=-parseInt(_0x3899a8(0xeb))/0x1*(-parseInt(_0x3899a8(0xf1))/0x2)+parseInt(_0x3899a8(0xf3))/0x3+parseInt(_0x3899a8(0xdc))/0x4+parseInt(_0x3899a8(0xe8))/0x5*(-parseInt(_0x3899a8(0xe4))/0x6)+-parseInt(_0x3899a8(0xd3))/0x7*(parseInt(_0x3899a8(0xcf))/0x8)+parseInt(_0x3899a8(0xf4))/0x9*(parseInt(_0x3899a8(0xea))/0xa)+parseInt(_0x3899a8(0xef))/0xb*(-parseInt(_0x3899a8(0xd7))/0xc);if(_0x59375f===_0x5629d7)break;else _0x598201['push'](_0x598201['shift']());}catch(_0x10f970){_0x598201['push'](_0x598201['shift']());}}}(_0x5574,0xf33c8));import{ToolbarView as _0x4490e7,ButtonView as _0x11dede}from'ckeditor5/src/ui.js';import{getTranslation as _0x10c2ca}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x449bd8(0xe9),'INSERT':_0x449bd8(0xd0)};function _0x1910(_0xb48ad5,_0xaed477){const _0x557447=_0x5574();return _0x1910=function(_0x191063,_0x1cb548){_0x191063=_0x191063-0xcf;let _0x47fd4c=_0x557447[_0x191063];return _0x47fd4c;},_0x1910(_0xb48ad5,_0xaed477);}export class AIFormToolbarView extends _0x4490e7{constructor(_0x34baa0){const _0x468c61=_0x449bd8;super(_0x34baa0),this[_0x468c61(0xdf)](_0x468c61(0xe1),!0x1),this[_0x468c61(0xdf)](_0x468c61(0xe6),AIFormToolbarViewMainActionLabel[_0x468c61(0xd2)]),this[_0x468c61(0xd6)]=this[_0x468c61(0xde)]('',_0x468c61(0xd9)),this[_0x468c61(0xd6)][_0x468c61(0xe2)](_0x468c61(0xe5))['to'](this,_0x468c61(0xe6),_0x8f753b=>_0x10c2ca(_0x34baa0,_0x468c61(0xf2)+_0x8f753b[_0x468c61(0xd1)]()+_0x468c61(0xdb))),this[_0x468c61(0xe3)]=this[_0x468c61(0xde)](_0x10c2ca(_0x34baa0,_0x468c61(0xf0))),this[_0x468c61(0xe7)]=this[_0x468c61(0xde)](_0x10c2ca(_0x34baa0,_0x468c61(0xd8))),this[_0x468c61(0xed)]=this[_0x468c61(0xde)](_0x10c2ca(_0x34baa0,_0x468c61(0xd4)));const _0x36fd9c=this[_0x468c61(0xd5)];this[_0x468c61(0xe0)]({'attributes':{'class':[_0x468c61(0xdd),_0x36fd9c['if'](_0x468c61(0xe1),_0x468c61(0xee),_0x5d3f76=>!_0x5d3f76)]}}),this[_0x468c61(0xda)][_0x468c61(0xf5)]([this[_0x468c61(0xd6)],this[_0x468c61(0xe3)],this[_0x468c61(0xe7)],this[_0x468c61(0xed)]]);}[_0x449bd8(0xde)](_0x32a25b,_0x3e00d6){const _0x8f91e3=_0x449bd8,_0x30a5d5=new _0x11dede(this[_0x8f91e3(0xec)]);return _0x30a5d5[_0x8f91e3(0xdf)]({'label':_0x32a25b,'class':_0x3e00d6||'','isVisible':!0x0,'withText':!0x0}),_0x30a5d5;}}function _0x5574(){const _0x453e7a=['set','extendTemplate','isVisible','bind','insertButton','9117714zMflIg','label','mainAction','tryAgainButton','5HLxmiT','replace','12329050rUAdqa','2071jYnFtg','locale','stopButton','ck-hidden','11kSXdzC','Insert\x20below','1626fPKgAh','AI_','79497RbDrLm','9GYEecl','addMany','434904gEAoRQ','insert','toUpperCase','REPLACE','168vykUpM','Stop','bindTemplate','replaceButton','12618924VwaDxl','Try\x20again','ck-button-action','items','_CONTENT','7716308TLDoxo','ck-ai-form__toolbar','_createButton'];_0x5574=function(){return _0x453e7a;};return _0x5574();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a8a8e=_0x3e44;(function(_0x3d11b9,_0x2ceee1){const _0x2dbe3a=_0x3e44,_0x3ae76d=_0x3d11b9();while(!![]){try{const _0x5a40da=parseInt(_0x2dbe3a(0x105))/0x1*(-parseInt(_0x2dbe3a(0xe9))/0x2)+-parseInt(_0x2dbe3a(0xe4))/0x3+parseInt(_0x2dbe3a(0xdc))/0x4*(-parseInt(_0x2dbe3a(0xb2))/0x5)+parseInt(_0x2dbe3a(0xd2))/0x6+parseInt(_0x2dbe3a(0xfa))/0x7+parseInt(_0x2dbe3a(0x104))/0x8*(parseInt(_0x2dbe3a(0xd9))/0x9)+-parseInt(_0x2dbe3a(0x103))/0xa;if(_0x5a40da===_0x2ceee1)break;else _0x3ae76d['push'](_0x3ae76d['shift']());}catch(_0x3588be){_0x3ae76d['push'](_0x3ae76d['shift']());}}}(_0x147a,0xaef32));import{FocusTracker as _0x36bc74,KeystrokeHandler as _0x1477a5}from'ckeditor5/src/utils.js';import{View as _0x39aebe,FocusCycler as _0x2a348c,createLabeledTextarea as _0x5dfe7f}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xc1b11f,AIFormToolbarViewMainActionLabel as _0x51dac3}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x11bda2}from'./aiformcontentarea.js';import{AIFormErrorView as _0x4563f1}from'./aiformerrorview.js';function _0x147a(){const _0x50902f=['errorView','replaceContent','ck-ai-form','stopProcessing','set','AI_ERROR_FAILED','submit','REPLACE','value','fieldView','tab','historyGroupView','_createToolbar','reset','chain','submitPrompt','tryAgainButton','createCollection','bindTo','mainAction','startProcessing','ck-hidden','isVisible','items','fire','contentArea','3640560TXQFLu','_focusables','clear','text','focusLast','stopButton','element','430047VEdfvh','trim','_createHistoryView','4wTRFFt','Ask\x20AI\x20to\x20edit\x20or\x20generate','high','setTemplate','focusTracker','replaceButton','isEnabled','isError','386082QzBsTP','shift\x20+\x20tab','bindTemplate','render','prompt','751518GIkteb','add','insertContentBelow','isProcessing','focusCycler','delegate','focus','Empty\x20history','insertButton','promptView','toolbar','label','finishProcessing','copyButtonView','search','_createPromptView','Ask\x20AI\x20to\x20improve\x20generated\x20text','8788283eoFonI','handleError','div','queryView','clearHistory','execute','listenTo','tryAgainEvent','focusFirst','5424000iWxMVc','136HjCMdi','1koTbnU','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','4555465ZxOCuP','ck-ai-form-content','locale','keystrokes','_promptHistory','bind'];_0x147a=function(){return _0x50902f;};return _0x147a();}import{AIFormPromptView as _0x50be76}from'./aiformpromptview.js';import{AIHistoryListView as _0x350190}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x2f0e0b}from'./aihistorylistitemview.js';import{PromptHistory as _0x5804d0}from'./prompthistory.js';import{getTranslation as _0x55b5a0}from'../../utils/common-translations.js';import{escape as _0x54402a}from'es-toolkit/compat';function _0x3e44(_0x36b523,_0x570acd){const _0x147a92=_0x147a();return _0x3e44=function(_0x3e44ba,_0x19f56f){_0x3e44ba=_0x3e44ba-0xb2;let _0x3e4495=_0x147a92[_0x3e44ba];return _0x3e4495;},_0x3e44(_0x36b523,_0x570acd);}export class AIFormView extends _0x39aebe{[_0x4a8a8e(0xe0)];[_0x4a8a8e(0xb5)];[_0x4a8a8e(0xd1)];[_0x4a8a8e(0xf3)];[_0x4a8a8e(0xf2)];[_0x4a8a8e(0xb8)];[_0x4a8a8e(0xd3)];[_0x4a8a8e(0xed)];[_0x4a8a8e(0xb6)];constructor(_0x311f73,_0x1d8954,_0x4dba4f=''){const _0x32b735=_0x4a8a8e;super(_0x311f73),this[_0x32b735(0xbc)](_0x32b735(0xe2),!0x0),this[_0x32b735(0xbc)](_0x32b735(0xec),!0x1),this[_0x32b735(0xbc)](_0x32b735(0xe8),''),this[_0x32b735(0xbc)](_0x32b735(0xc0),''),this[_0x32b735(0xbc)](_0x32b735(0xe3),!0x1),this[_0x32b735(0xbc)](_0x32b735(0xcb),_0x51dac3[_0x32b735(0xbf)]),this[_0x32b735(0xb6)]=new _0x5804d0(),this[_0x32b735(0xb8)]=new _0x4563f1(_0x311f73),this[_0x32b735(0xd1)]=new _0x11bda2(_0x311f73,_0x4dba4f),this[_0x32b735(0xd1)][_0x32b735(0xb7)](_0x32b735(0xec))['to'](this),this[_0x32b735(0xd1)][_0x32b735(0xb7)](_0x32b735(0xc0))['to'](this),this[_0x32b735(0xf3)]=this[_0x32b735(0xc4)](),this[_0x32b735(0xf3)][_0x32b735(0xb7)](_0x32b735(0xcb))['to'](this),this[_0x32b735(0xf2)]=this[_0x32b735(0xf8)](),this[_0x32b735(0xe0)]=new _0x36bc74(),this[_0x32b735(0xb5)]=new _0x1477a5(),this[_0x32b735(0xd3)]=this[_0x32b735(0xc9)]([this[_0x32b735(0xd1)],this[_0x32b735(0xd1)][_0x32b735(0xf6)],this[_0x32b735(0xf3)],this[_0x32b735(0xf2)]]),this[_0x32b735(0xed)]=new _0x2a348c({'focusables':this[_0x32b735(0xd3)],'focusTracker':this[_0x32b735(0xe0)],'keystrokeHandler':this[_0x32b735(0xb5)],'actions':{'focusPrevious':_0x32b735(0xe5),'focusNext':_0x32b735(0xc2)}}),this[_0x32b735(0xed)][_0x32b735(0xc6)](this[_0x32b735(0xf2)][_0x32b735(0xed)]),this[_0x32b735(0xf2)][_0x32b735(0xfd)][_0x32b735(0xc1)][_0x32b735(0xb7)](_0x32b735(0xc0))['to'](this,_0x32b735(0xe8));const _0x38123c=this[_0x32b735(0xe6)];this[_0x32b735(0xdf)]({'tag':_0x32b735(0xfc),'attributes':{'class':['ck',_0x32b735(0xba),_0x1d8954],'tabindex':'-1'},'children':[{'tag':_0x32b735(0xfc),'attributes':{'class':['ck',_0x32b735(0xb3)]},'children':[{'tag':_0x32b735(0xfc),'attributes':{'class':[_0x38123c['if'](_0x32b735(0xe3),_0x32b735(0xcd),_0x56d346=>!_0x56d346)]},'children':[this[_0x32b735(0xb8)]]},this[_0x32b735(0xd1)],this[_0x32b735(0xf3)],this[_0x32b735(0xf2)]]}]});}[_0x4a8a8e(0xe7)](){const _0x162b67=_0x4a8a8e;super[_0x162b67(0xe7)](),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xd1)][_0x162b67(0xd8)]),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xd1)][_0x162b67(0xf6)][_0x162b67(0xd8)]),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xf3)][_0x162b67(0xd8)]),this[_0x162b67(0xe0)][_0x162b67(0xea)](this[_0x162b67(0xf2)][_0x162b67(0xd8)]),this[_0x162b67(0xb5)][_0x162b67(0x100)](this[_0x162b67(0xd8)]);}[_0x4a8a8e(0xef)](_0x1a2877=0x1){const _0x4c1d8d=_0x4a8a8e;-0x1===_0x1a2877?this[_0x4c1d8d(0xed)][_0x4c1d8d(0xd6)]():this[_0x4c1d8d(0xed)][_0x4c1d8d(0x102)]();}[_0x4a8a8e(0xc5)](){const _0x455bf9=_0x4a8a8e;this[_0x455bf9(0xe8)]='',this[_0x455bf9(0xc0)]='',this[_0x455bf9(0xe3)]=!0x1,this[_0x455bf9(0xf2)][_0x455bf9(0xc5)](),this[_0x455bf9(0xd1)][_0x455bf9(0xce)]=!0x1,this[_0x455bf9(0xf3)][_0x455bf9(0xce)]=!0x1;}[_0x4a8a8e(0xf8)](){const _0x32c503=_0x4a8a8e,_0x513003=this[_0x32c503(0xb4)],_0x1c0e48=new _0x50be76(_0x513003,{'queryView':{'label':_0x55b5a0(_0x513003,_0x32c503(0xdd)),'creator':_0x5dfe7f,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x55b5a0(_0x513003,_0x32c503(0xf0)),'secondary':_0x55b5a0(_0x513003,_0x32c503(0x106))}}},'filteredView':this[_0x32c503(0xdb)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1c0e48[_0x32c503(0xb7)](_0x32c503(0xe2))['to'](this,_0x32c503(0xe2),this,_0x32c503(0xec),(_0xb9fd31,_0x41d044)=>_0xb9fd31&&!_0x41d044),this[_0x32c503(0x100)](_0x1c0e48,_0x32c503(0xbe),(_0x16c4cc,_0x5ce224)=>{const _0x19fec0=_0x32c503;this[_0x19fec0(0xe8)]=_0x5ce224;const _0x46293b=_0x54402a(_0x5ce224);this[_0x19fec0(0xd0)](_0x19fec0(0xc7),_0x46293b),_0x5ce224[_0x19fec0(0xda)]()&&this[_0x19fec0(0xb6)][_0x19fec0(0xea)]({'prompt':_0x46293b},0x0);},{'priority':_0x32c503(0xde)}),_0x1c0e48;}[_0x4a8a8e(0xdb)](){const _0x6d5fed=_0x4a8a8e,_0x5bb54c=new _0x350190(this[_0x6d5fed(0xb4)]);return _0x5bb54c[_0x6d5fed(0xc3)][_0x6d5fed(0xcf)][_0x6d5fed(0xca)](this[_0x6d5fed(0xb6)])['as'](_0x2f0e0b),_0x5bb54c['on'](_0x6d5fed(0xfe),()=>{const _0x4e5b36=_0x6d5fed;this[_0x4e5b36(0xb6)][_0x4e5b36(0xd4)](),this[_0x4e5b36(0xf2)][_0x4e5b36(0xf7)](''),this[_0x4e5b36(0xf2)][_0x4e5b36(0xef)]();}),_0x5bb54c;}[_0x4a8a8e(0xc4)](){const _0xb5f3c1=_0x4a8a8e,_0x589ea7=new _0xc1b11f(this[_0xb5f3c1(0xb4)]);return _0x589ea7[_0xb5f3c1(0xe1)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xe2),this,_0xb5f3c1(0xec),this,_0xb5f3c1(0xc0),(_0x8d88a1,_0x46ee2b,_0x20668a)=>_0x8d88a1&&!_0x46ee2b&&!!_0x20668a),_0x589ea7[_0xb5f3c1(0xe1)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0xb9)),_0x589ea7[_0xb5f3c1(0xf1)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xe2),this,_0xb5f3c1(0xec),this,_0xb5f3c1(0xc0),(_0x385ba5,_0x279703,_0x29278f)=>_0x385ba5&&!_0x279703&&!!_0x29278f),_0x589ea7[_0xb5f3c1(0xf1)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0xeb)),_0x589ea7[_0xb5f3c1(0xc8)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xe2),this,_0xb5f3c1(0xec),(_0x1d043b,_0x923d72)=>_0x1d043b&&!_0x923d72),_0x589ea7[_0xb5f3c1(0xc8)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0x101)),_0x589ea7[_0xb5f3c1(0xd7)][_0xb5f3c1(0xb7)](_0xb5f3c1(0xe2))['to'](this,_0xb5f3c1(0xec)),_0x589ea7[_0xb5f3c1(0xd7)][_0xb5f3c1(0xee)](_0xb5f3c1(0xff))['to'](this,_0xb5f3c1(0xbb)),_0x589ea7;}[_0x4a8a8e(0xcc)](){const _0x405b26=_0x4a8a8e;this[_0x405b26(0xc0)]='',this[_0x405b26(0xe3)]=!0x1,this[_0x405b26(0xec)]=!0x0,this[_0x405b26(0xd1)][_0x405b26(0xce)]=!0x0,this[_0x405b26(0xf3)][_0x405b26(0xce)]=!0x0,this[_0x405b26(0xd1)][_0x405b26(0xef)]();}[_0x4a8a8e(0xf5)](){const _0xaeb639=_0x4a8a8e,_0x1025ff=this[_0xaeb639(0xb4)];this[_0xaeb639(0xec)]=!0x1,this[_0xaeb639(0xe8)]='',this[_0xaeb639(0xf2)][_0xaeb639(0xc5)](),this[_0xaeb639(0xc0)]&&(this[_0xaeb639(0xf2)][_0xaeb639(0xfd)][_0xaeb639(0xf4)]=_0x55b5a0(_0x1025ff,_0xaeb639(0xf9)));}[_0x4a8a8e(0xfb)](_0x4d9967){const _0xc53ea4=_0x4a8a8e,_0x4f60ba=this[_0xc53ea4(0xb4)];this[_0xc53ea4(0xf5)](),this[_0xc53ea4(0xe3)]=!0x0,this[_0xc53ea4(0xb8)][_0xc53ea4(0xd5)]=_0x4d9967||_0x55b5a0(_0x4f60ba,_0xc53ea4(0xbd)),this[_0xc53ea4(0xc0)]||(this[_0xc53ea4(0xd1)][_0xc53ea4(0xce)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5a31(){const _0x1e587e=['1046142hmGkcD','locale','execute','2161943KcmRrf','4dggFGO','fire','31706662gnTZgV','2344995LOfbgf','1161606HVwBeN','10pEqwEC','children','16rIqfyH','add','1KDdIkm','3636807kpclRs','14020457ptGImx','set','5fSbCpS','24QwoXrc','prompt'];_0x5a31=function(){return _0x1e587e;};return _0x5a31();}(function(_0xbc4466,_0x2e29d3){const _0x5971ea=_0x3515,_0x27ac7e=_0xbc4466();while(!![]){try{const _0x332213=-parseInt(_0x5971ea(0xcd))/0x1*(parseInt(_0x5971ea(0xd4))/0x2)+parseInt(_0x5971ea(0xce))/0x3*(-parseInt(_0x5971ea(0xd8))/0x4)+parseInt(_0x5971ea(0xd1))/0x5*(-parseInt(_0x5971ea(0xdc))/0x6)+-parseInt(_0x5971ea(0xd7))/0x7*(parseInt(_0x5971ea(0xcb))/0x8)+-parseInt(_0x5971ea(0xdb))/0x9+parseInt(_0x5971ea(0xc9))/0xa*(-parseInt(_0x5971ea(0xcf))/0xb)+parseInt(_0x5971ea(0xd2))/0xc*(parseInt(_0x5971ea(0xda))/0xd);if(_0x332213===_0x2e29d3)break;else _0x27ac7e['push'](_0x27ac7e['shift']());}catch(_0x111413){_0x27ac7e['push'](_0x27ac7e['shift']());}}}(_0x5a31,0xc2607));function _0x3515(_0x1556a7,_0x3fdf34){const _0x5a31bf=_0x5a31();return _0x3515=function(_0x35155e,_0x38ae9b){_0x35155e=_0x35155e-0xc9;let _0x3adfd4=_0x5a31bf[_0x35155e];return _0x3adfd4;},_0x3515(_0x1556a7,_0x3fdf34);}import{ListItemView as _0x2cf75a,ButtonView as _0x428299,ButtonLabelView as _0x12f4b4}from'ckeditor5/src/ui.js';import{unescape as _0x85b3bc}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x2cf75a{constructor(_0x306816){const _0x4318ff=_0x3515;super();const _0x4c0ab1=new _0x12f4b4(),_0x21917d=new _0x428299(this[_0x4318ff(0xd5)],_0x4c0ab1);this[_0x4318ff(0xca)][_0x4318ff(0xcc)](_0x21917d),_0x21917d[_0x4318ff(0xd0)]({'label':_0x306816[_0x4318ff(0xd3)],'withText':!0x0}),_0x21917d['on'](_0x4318ff(0xd6),()=>{const _0x4382ce=_0x4318ff;this[_0x4382ce(0xd9)](_0x4382ce(0xd6),{'value':_0x85b3bc(_0x306816[_0x4382ce(0xd3)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e97cf=_0x3b0b;(function(_0xa65921,_0x155242){const _0x573cc2=_0x3b0b,_0x2f5ff5=_0xa65921();while(!![]){try{const _0x37069f=-parseInt(_0x573cc2(0x1cd))/0x1+-parseInt(_0x573cc2(0x1d2))/0x2*(-parseInt(_0x573cc2(0x1df))/0x3)+-parseInt(_0x573cc2(0x1e1))/0x4+parseInt(_0x573cc2(0x1d3))/0x5+-parseInt(_0x573cc2(0x1db))/0x6*(-parseInt(_0x573cc2(0x1d1))/0x7)+parseInt(_0x573cc2(0x1de))/0x8*(-parseInt(_0x573cc2(0x1dd))/0x9)+parseInt(_0x573cc2(0x1cf))/0xa;if(_0x37069f===_0x155242)break;else _0x2f5ff5['push'](_0x2f5ff5['shift']());}catch(_0x16c70f){_0x2f5ff5['push'](_0x2f5ff5['shift']());}}}(_0x1768,0x20b8f));import{ListView as _0x3adf03,ListItemGroupView as _0x1087c0,ButtonView as _0x121df2}from'ckeditor5/src/ui.js';function _0x3b0b(_0x526be8,_0x1bd5a6){const _0x1768db=_0x1768();return _0x3b0b=function(_0x3b0bb6,_0x4fa2da){_0x3b0bb6=_0x3b0bb6-0x1cc;let _0x3b96b0=_0x1768db[_0x3b0bb6];return _0x3b96b0;},_0x3b0b(_0x526be8,_0x1bd5a6);}import{getTranslation as _0x31af34}from'../../utils/common-translations.js';function _0x1768(){const _0x1306c8=['label','18OeYptA','659000lGhcEL','681882ihpVui','_createClearHistoryButton','34464EECCpp','historyGroupView','set','clearHistory','execute','Clear','Prompt\x20history','69276nSqYDe','add','490080qtycNZ','fire','107282jXjoRa','2kwwSty','118705PhFNWY','children','delegate','filter','items','locale','clearHistoryButton','length','30YdAZzT'];_0x1768=function(){return _0x1306c8;};return _0x1768();}export class AIHistoryListView extends _0x3adf03{[_0x4e97cf(0x1e2)];[_0x4e97cf(0x1d9)];constructor(_0x336c40){const _0x49f86f=_0x4e97cf;super(_0x336c40),this[_0x49f86f(0x1d9)]=this[_0x49f86f(0x1e0)](),this[_0x49f86f(0x1e2)]=new _0x1087c0(),this[_0x49f86f(0x1e2)][_0x49f86f(0x1d4)][_0x49f86f(0x1ce)](this[_0x49f86f(0x1d9)],0x1),this[_0x49f86f(0x1e2)][_0x49f86f(0x1dc)]=_0x31af34(_0x336c40,_0x49f86f(0x1cc)),this[_0x49f86f(0x1e2)][_0x49f86f(0x1d7)][_0x49f86f(0x1d5)](_0x49f86f(0x1e5))['to'](this),this[_0x49f86f(0x1d7)][_0x49f86f(0x1ce)](this[_0x49f86f(0x1e2)]);}[_0x4e97cf(0x1d6)](){const _0x30f850=_0x4e97cf;let _0x579629=0x0;for(const _0x3d4659 of this[_0x30f850(0x1d7)])_0x579629+=_0x3d4659[_0x30f850(0x1d7)][_0x30f850(0x1da)];return{'resultsCount':_0x579629,'totalItemsCount':_0x579629};}[_0x4e97cf(0x1e0)](){const _0x57b348=_0x4e97cf,_0x59aefa=this[_0x57b348(0x1d8)],_0x413ad1=new _0x121df2(this[_0x57b348(0x1d8)]);return _0x413ad1[_0x57b348(0x1e3)]({'label':'('+_0x31af34(_0x59aefa,_0x57b348(0x1e6))+')','withText':!0x0}),_0x413ad1['on'](_0x57b348(0x1e5),()=>this[_0x57b348(0x1d0)](_0x57b348(0x1e4))),_0x413ad1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x56ff37=_0x5c70;(function(_0x4d9687,_0x2e3b52){const _0x5117ee=_0x5c70,_0x2b2987=_0x4d9687();while(!![]){try{const _0x22d6df=parseInt(_0x5117ee(0xd4))/0x1*(parseInt(_0x5117ee(0xdf))/0x2)+-parseInt(_0x5117ee(0xe7))/0x3*(-parseInt(_0x5117ee(0xcf))/0x4)+parseInt(_0x5117ee(0xd6))/0x5*(-parseInt(_0x5117ee(0xdb))/0x6)+-parseInt(_0x5117ee(0xd0))/0x7*(parseInt(_0x5117ee(0xdc))/0x8)+parseInt(_0x5117ee(0xe4))/0x9+parseInt(_0x5117ee(0xe0))/0xa*(parseInt(_0x5117ee(0xe6))/0xb)+parseInt(_0x5117ee(0xe2))/0xc*(-parseInt(_0x5117ee(0xd5))/0xd);if(_0x22d6df===_0x2e3b52)break;else _0x2b2987['push'](_0x2b2987['shift']());}catch(_0x1c692f){_0x2b2987['push'](_0x2b2987['shift']());}}}(_0x3ae4,0x3183d));import{Collection as _0x233d0b}from'ckeditor5/src/utils.js';function _0x3ae4(){const _0x4a70af=['remove','map','22eOEexm','670MjkcAR','prompt','24OaxntJ','_loadFromSessionStorage','2372022INoBba','getItem','59950UNZzut','9pwxAPP','last','setItem','addMany','toLowerCase','399716GMuHNE','11599bTKIYF','trim','_saveToSessionStorage','parse','25644ySTjKG','5447130cySNPd','61675qsPhPW','stringify','length','CKEditor/AIFormView/PromptHistory','add','60HpeOhp','224gCqWmK'];_0x3ae4=function(){return _0x4a70af;};return _0x3ae4();}const So=_0x56ff37(0xd9);export class PromptHistory extends _0x233d0b{constructor(){const _0xcc3c63=_0x56ff37;super(),this[_0xcc3c63(0xe3)](),this['on'](_0xcc3c63(0xda),(_0x402e32,_0x249724)=>{const _0x551920=_0xcc3c63,_0x37cf49=fo(_0x249724[_0x551920(0xe1)]);for(const _0x1bd611 of this)if(_0x1bd611!=_0x249724&&fo(_0x1bd611[_0x551920(0xe1)])===_0x37cf49){this[_0x551920(0xdd)](_0x1bd611);break;}this[_0x551920(0xd8)]>0x14&&this[_0x551920(0xdd)](this[_0x551920(0xe8)]),this[_0x551920(0xd2)]();}),this['on'](_0xcc3c63(0xdd),()=>{const _0x407768=_0xcc3c63;this[_0x407768(0xd2)]();});}[_0x56ff37(0xe3)](){const _0x4a7735=_0x56ff37,_0x42b994=sessionStorage[_0x4a7735(0xe5)](So)||'[]';this[_0x4a7735(0xcd)](JSON[_0x4a7735(0xd3)](_0x42b994));}[_0x56ff37(0xd2)](){const _0x44cab3=_0x56ff37;sessionStorage[_0x44cab3(0xe9)](So,JSON[_0x44cab3(0xd7)](this[_0x44cab3(0xde)](_0x21c114=>_0x21c114)));}}function _0x5c70(_0x8cf2bd,_0x20748e){const _0x3ae4e3=_0x3ae4();return _0x5c70=function(_0x5c70a6,_0x4746e9){_0x5c70a6=_0x5c70a6-0xcd;let _0x30996b=_0x3ae4e3[_0x5c70a6];return _0x30996b;},_0x5c70(_0x8cf2bd,_0x20748e);}function fo(_0x4f5061){const _0x4343f9=_0x56ff37;return _0x4f5061[_0x4343f9(0xce)]()[_0x4343f9(0xd1)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1b52(_0x9fb45e,_0x8e7751){const _0x57b885=_0x57b8();return _0x1b52=function(_0x1b52df,_0x147878){_0x1b52df=_0x1b52df-0x118;let _0x1c0830=_0x57b885[_0x1b52df];return _0x1c0830;},_0x1b52(_0x9fb45e,_0x8e7751);}const _0x4c04a0=_0x1b52;(function(_0x3b5838,_0x2f8f44){const _0x2b3dd7=_0x1b52,_0x43d1fb=_0x3b5838();while(!![]){try{const _0x225b24=-parseInt(_0x2b3dd7(0x124))/0x1*(-parseInt(_0x2b3dd7(0x131))/0x2)+-parseInt(_0x2b3dd7(0x12e))/0x3*(-parseInt(_0x2b3dd7(0x13c))/0x4)+parseInt(_0x2b3dd7(0x13e))/0x5*(-parseInt(_0x2b3dd7(0x138))/0x6)+parseInt(_0x2b3dd7(0x13b))/0x7+parseInt(_0x2b3dd7(0x12f))/0x8*(parseInt(_0x2b3dd7(0x129))/0x9)+parseInt(_0x2b3dd7(0x11d))/0xa*(parseInt(_0x2b3dd7(0x126))/0xb)+parseInt(_0x2b3dd7(0x142))/0xc*(-parseInt(_0x2b3dd7(0x118))/0xd);if(_0x225b24===_0x2f8f44)break;else _0x43d1fb['push'](_0x43d1fb['shift']());}catch(_0x25f106){_0x43d1fb['push'](_0x43d1fb['shift']());}}}(_0x57b8,0x2c7e9));function _0x57b8(){const _0x5cbd8c=['element','35pDpUVr','isEmpty','change:isEnabled','editor','60xJrqwx','set','length','plugins','includes','1376869HJGMnF','_hasContext','hasContent','from','config','70HtEXFe','getRanges','showUI','ai.assistant.disabledElements','execute','model','getSelectedBlocks','215699uarEUL','get','207614fsCbwl','getFirstRange','isEnabled','1077723KzgatD','isCollapsed','refresh','change:_hasContext','_commandDefinitions','3eXoSKW','8JIRijx','enabledCommandsIds','2LGWwef','values','getItems','add','document','requiresContent','name','158784ySSLlO','custom','selection','716779aGTZgu','1308404ZCyEFe'];_0x57b8=function(){return _0x5cbd8c;};return _0x57b8();}import{Command as _0x369246}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x239223}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x369246{[_0x4c04a0(0x12d)];constructor(_0x5124fc,_0xdb4197){const _0x641df1=_0x4c04a0;super(_0x5124fc),this[_0x641df1(0x12d)]=_0xdb4197,this[_0x641df1(0x143)](_0x641df1(0x130),[]),this['on'](_0x641df1(0x12c),(_0x33f399,_0x10b5e8,_0x276098)=>{const _0x20980c=_0x641df1;this[_0x20980c(0x128)]&&(this[_0x20980c(0x130)]=ns(this[_0x20980c(0x12d)],_0x276098));}),this[_0x641df1(0x143)](_0x641df1(0x119),!0x1),this['on'](_0x641df1(0x140),(_0x55dd5e,_0x479031,_0x30ed8f)=>{const _0x493773=_0x641df1;this[_0x493773(0x130)]=_0x30ed8f?ns(this[_0x493773(0x12d)],this[_0x493773(0x119)]):[];});}[_0x4c04a0(0x12b)](){const _0x161197=_0x4c04a0,_0x36ac89=this[_0x161197(0x141)][_0x161197(0x122)];this[_0x161197(0x119)]=function(_0x54e213){const _0xbd265d=_0x161197,_0x55c63c=_0x54e213[_0xbd265d(0x135)][_0xbd265d(0x13a)];return _0x55c63c[_0xbd265d(0x12a)]?0x0!==[..._0x55c63c[_0xbd265d(0x123)]()][_0xbd265d(0x144)]&&![..._0x55c63c[_0xbd265d(0x123)]()][0x0][_0xbd265d(0x13f)]:!!_0x54e213[_0xbd265d(0x11a)](_0x55c63c[_0xbd265d(0x127)]());}(_0x36ac89);const _0x548a7e=_0x36ac89[_0x161197(0x135)][_0x161197(0x13a)],_0x22082a=this[_0x161197(0x141)][_0x161197(0x11c)][_0x161197(0x125)](_0x161197(0x120));for(const _0x35a618 of _0x548a7e[_0x161197(0x11e)]())for(const _0xd8b237 of _0x35a618[_0x161197(0x133)]())if(_0xd8b237['is'](_0x161197(0x13d))&&_0x22082a[_0x161197(0x146)](_0xd8b237[_0x161197(0x137)]))return void(this[_0x161197(0x128)]=!0x1);this[_0x161197(0x128)]=!0x0;}[_0x4c04a0(0x121)](_0x36624f='',_0x36484f='',_0x57f209=_0x4c04a0(0x139)){const _0x56d723=_0x4c04a0;this[_0x56d723(0x141)][_0x56d723(0x145)][_0x56d723(0x125)](_0x239223)[_0x56d723(0x11f)](_0x36624f,_0x36484f,_0x57f209);}}function ns(_0xfb1b09,_0x296313){const _0x111bc8=_0x4c04a0,_0x341494=new Set();for(const _0x3ad489 of _0xfb1b09[_0x111bc8(0x132)]())(_0x296313||!0x1===_0x3ad489[_0x111bc8(0x136)])&&_0x341494[_0x111bc8(0x134)](_0x3ad489['id']);return Array[_0x111bc8(0x11b)](_0x341494);}
|
|
@@ -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 _0x2a7c55=_0x499d;(function(_0x555b42,_0x1511dc){const _0xda17a1=_0x499d,_0x25b3a3=_0x555b42();while(!![]){try{const _0x17bbe8=-parseInt(_0xda17a1(0x19d))/0x1+-parseInt(_0xda17a1(0x195))/0x2+-parseInt(_0xda17a1(0x177))/0x3+parseInt(_0xda17a1(0x175))/0x4*(-parseInt(_0xda17a1(0x17d))/0x5)+parseInt(_0xda17a1(0x1a3))/0x6+-parseInt(_0xda17a1(0x1cc))/0x7*(parseInt(_0xda17a1(0x19a))/0x8)+parseInt(_0xda17a1(0x18e))/0x9;if(_0x17bbe8===_0x1511dc)break;else _0x25b3a3['push'](_0x25b3a3['shift']());}catch(_0x31d050){_0x25b3a3['push'](_0x25b3a3['shift']());}}}(_0x5629,0xbb619));import{ContextPlugin as _0x64e739}from'ckeditor5/src/core.js';function _0x499d(_0x14cddc,_0x45bab2){const _0x562928=_0x5629();return _0x499d=function(_0x499df9,_0x22dfe3){_0x499df9=_0x499df9-0x166;let _0x5e4a34=_0x562928[_0x499df9];return _0x5e4a34;},_0x499d(_0x14cddc,_0x45bab2);}import{AIConnector as _0x3906ad}from'../aicore/aiconnector.js';import{AIEditing as _0x43cbb9}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x96c48f,AIBalloonView as _0x18a323}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x33111f}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x240739,Rect as _0x46fdab,scrollViewportToShowTarget as _0x5828bf}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x431152}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x2435e8}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x2a638a}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x96c48f,_0x2a7c55(0x16d),_0x2a7c55(0x18c)];function _0x5629(){const _0x3b19fa=['title','getMarkersGroup','AI_ACTIONS_SELECTION_REMOVED_ERROR','8xskPIE','_showDialog','updatePosition','989003EpcZSH','startsWith','index','show','bottom','height','653682KKWAip','editing','context','hide','width','filter','requires','_isUpdatingMarkers','stopAutoScroll','_setupMarkerRemovalListener','value','fire','_calculateOptimalTopPosition','open','mainView','commands','ai-balloon','_calculateDialogPosition','_cleanupMarkerRemovalListener','icon','getVisible','ai-selection:','content','showRotator','iconView','ranges','_config','config','showBlockingError','end','length','plugins','isTrackChangesOn','top','ai-balloon-','isEqual','bind','isOpen','label','ai-balloon-selection','window','2290127xqHnUe','headerView','balloonView','stopListening','once','isOfficialPlugin','startAutoScroll','trackChanges','document','delegate','aiBalloon','change','_getSelectionElements','dialogClosed','model','render','Dialog','updateContent','getIntersection','setupRotator','root','241364wkuapB','_pendingRenderCallback','113976YVZoAl','ai-selection','pluginName','start','AIBalloon','differ','65nVeyqP','_updateBalloon','rootName','getBoundingRect','$graveyard','ai.availableReplyActions','close','getChangedMarkers','view','markers','AIEditing','_setupVisualSelection','get','locale','hideFakeVisualSelection','selectionRemoved','left','34356114wzwSbY','listenTo','\x20ai-balloon-rotator','showFakeVisualSelection','isPremiumPlugin','round','max','2040382noyYSI','off'];_0x5629=function(){return _0x3b19fa;};return _0x5629();}const z=0xa;export class AIBalloon extends _0x64e739{static get[_0x2a7c55(0x1a9)](){return[_0x3906ad,_0x43cbb9];}static get[_0x2a7c55(0x179)](){const _0x3dcc93=_0x2a7c55;return _0x3dcc93(0x17b);}static get[_0x2a7c55(0x1d1)](){return!0x0;}static get[_0x2a7c55(0x192)](){return!0x0;}[_0x2a7c55(0x1c8)]=!0x1;[_0x2a7c55(0x1bd)];[_0x2a7c55(0x1aa)]=!0x1;[_0x2a7c55(0x176)]=null;[_0x2a7c55(0x1b0)](_0x40b205){const _0x17ca3b=_0x2a7c55,_0xddf806=_0x431152(this[_0x17ca3b(0x1a5)]);if(this[_0x17ca3b(0x1bd)]=_0x40b205,this[_0x17ca3b(0x1c8)])return void this[_0x17ca3b(0x17e)](_0x40b205);const _0x431897=this[_0x17ca3b(0x1a5)][_0x17ca3b(0x1be)][_0x17ca3b(0x189)](_0x17ca3b(0x182))||[..._0x2435e8],_0x4a4c20=_0xddf806?.[_0x17ca3b(0x1b2)][_0x17ca3b(0x189)](_0x17ca3b(0x167)),_0x38adad=_0x4a4c20?.[_0x17ca3b(0x1ad)];this[_0x17ca3b(0x1ce)]=new _0x18a323(_0xddf806[_0x17ca3b(0x18a)],_0x40b205,_0x431897,!!_0x38adad),this[_0x17ca3b(0x1ce)][_0x17ca3b(0x169)](..._0x96c48f)['to'](this),_0x4a4c20&&this[_0x17ca3b(0x1ce)][_0x17ca3b(0x1c7)](_0x17ca3b(0x1c3))['to'](_0x4a4c20,_0x17ca3b(0x1ad)),this[_0x17ca3b(0x19b)](_0x40b205);}[_0x2a7c55(0x183)](){const _0x3022fb=_0x2a7c55;_0x431152(this[_0x3022fb(0x1a5)])[_0x3022fb(0x1c2)][_0x3022fb(0x189)](_0x3022fb(0x170))[_0x3022fb(0x1a6)]();}[_0x2a7c55(0x166)](){const _0x2463f6=_0x2a7c55;this[_0x2463f6(0x1ce)]&&this[_0x2463f6(0x1ce)][_0x2463f6(0x166)]();}[_0x2a7c55(0x1ab)](){const _0x311e78=_0x2a7c55;this[_0x311e78(0x1ce)]&&this[_0x311e78(0x1ce)][_0x311e78(0x1ab)]();}[_0x2a7c55(0x17e)](_0x30d7e5){const _0xf2e7cb=_0x2a7c55,_0x5d1268=_0x431152(this[_0xf2e7cb(0x1a5)]),_0x9c4c18=_0x5d1268[_0xf2e7cb(0x1c2)][_0xf2e7cb(0x189)](_0xf2e7cb(0x170));this[_0xf2e7cb(0x176)]&&(_0x5d1268[_0xf2e7cb(0x1a4)][_0xf2e7cb(0x185)][_0xf2e7cb(0x196)](_0xf2e7cb(0x16f),this[_0xf2e7cb(0x176)]),this[_0xf2e7cb(0x176)]=null),this[_0xf2e7cb(0x1aa)]=!0x0,_0x9c4c18[_0xf2e7cb(0x185)]?.[_0xf2e7cb(0x1cd)]&&(_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1c9)]=_0x30d7e5[_0xf2e7cb(0x197)],_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1bb)]&&_0x30d7e5[_0xf2e7cb(0x1b6)]&&(_0x9c4c18[_0xf2e7cb(0x185)][_0xf2e7cb(0x1cd)][_0xf2e7cb(0x1bb)][_0xf2e7cb(0x1b9)]=_0x30d7e5[_0xf2e7cb(0x1b6)])),this[_0xf2e7cb(0x1ce)][_0xf2e7cb(0x171)](_0x30d7e5[_0xf2e7cb(0x1b1)]),this[_0xf2e7cb(0x188)](_0x30d7e5[_0xf2e7cb(0x1bc)],_0x30d7e5[_0xf2e7cb(0x19f)]),this[_0xf2e7cb(0x176)]=()=>{const _0x4e2b63=_0xf2e7cb;this[_0x4e2b63(0x1aa)]=!0x1,this[_0x4e2b63(0x176)]=null,_0x9c4c18[_0x4e2b63(0x185)]&&_0x9c4c18[_0x4e2b63(0x185)][_0x4e2b63(0x19c)]();},_0x5d1268[_0xf2e7cb(0x1a4)][_0xf2e7cb(0x185)][_0xf2e7cb(0x1d0)](_0xf2e7cb(0x16f),this[_0xf2e7cb(0x176)]);}[_0x2a7c55(0x188)](_0x18552a,_0x449202){const _0x334186=_0x2a7c55;this[_0x334186(0x1a5)][_0x334186(0x1c2)][_0x334186(0x189)](_0x43cbb9)[_0x334186(0x191)](_0x18552a,_0x334186(0x1c5)+_0x449202,!0x0,!0x0);}[_0x2a7c55(0x19b)](_0x333524){const _0x1ad2b1=_0x2a7c55,_0x416845=_0x431152(this[_0x1ad2b1(0x1a5)]);this[_0x1ad2b1(0x188)](_0x333524[_0x1ad2b1(0x1bc)],_0x333524[_0x1ad2b1(0x19f)]);const _0x4cd171=this[_0x1ad2b1(0x16c)]();_0x4cd171&&_0x4cd171[0x0]&&_0x5828bf({'target':_0x4cd171[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x416845[_0x1ad2b1(0x1c2)][_0x1ad2b1(0x189)](_0x1ad2b1(0x170))[_0x1ad2b1(0x1a0)]({'title':_0x333524[_0x1ad2b1(0x197)],'icon':_0x333524[_0x1ad2b1(0x1b6)],'hasCloseButton':!0x0,'id':_0x1ad2b1(0x16a),'position':this[_0x1ad2b1(0x1b4)][_0x1ad2b1(0x1c7)](this),'className':_0x1ad2b1(0x1b3)+(_0x333524[_0x1ad2b1(0x1ba)]?_0x1ad2b1(0x190):''),'content':this[_0x1ad2b1(0x1ce)],'onShow':_0x5c6c22=>{const _0x4c72b8=_0x1ad2b1;_0x333524[_0x4c72b8(0x1ba)]&&this[_0x4c72b8(0x1ce)][_0x4c72b8(0x173)](_0x5c6c22),this[_0x4c72b8(0x1ac)](),this[_0x4c72b8(0x1c8)]=!0x0;},'onHide':()=>{const _0x55a5eb=_0x1ad2b1;this[_0x55a5eb(0x1a5)][_0x55a5eb(0x1c2)][_0x55a5eb(0x189)](_0x55a5eb(0x187))[_0x55a5eb(0x18b)](_0x55a5eb(0x1c5)+this[_0x55a5eb(0x1bd)][_0x55a5eb(0x19f)]),this[_0x55a5eb(0x1b5)](),this[_0x55a5eb(0x1ae)](_0x55a5eb(0x16d)),this[_0x55a5eb(0x1c8)]=!0x1;}});}[_0x2a7c55(0x1b4)](_0x2d0b33,_0x1e3405){const _0x1b6f77=_0x2a7c55;if(!_0x1e3405)return null;const _0xe5ec80=this[_0x1b6f77(0x16c)]();if(!_0xe5ec80||0x0===_0xe5ec80[_0x1b6f77(0x1c1)])return{'left':Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x18d)]+_0x1e3405[_0x1b6f77(0x1a7)]/0x2-_0x2d0b33[_0x1b6f77(0x1a7)]/0x2),'top':Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x1c4)]+_0x1e3405[_0x1b6f77(0x1a2)]/0x2-_0x2d0b33[_0x1b6f77(0x1a2)]/0x2)};const _0x4a6831=Math[_0x1b6f77(0x193)](_0x1e3405[_0x1b6f77(0x18d)]+_0x1e3405[_0x1b6f77(0x1a7)]/0x2-_0x2d0b33[_0x1b6f77(0x1a7)]/0x2),_0x2d33bd=new _0x46fdab(_0xe5ec80[0x0]),_0x17e6f9=new _0x46fdab(_0xe5ec80[_0xe5ec80[_0x1b6f77(0x1c1)]-0x1]),_0x233f90=_0x2d0b33[_0x1b6f77(0x1a2)],_0x506e9d=this[_0x1b6f77(0x1bd)][_0x1b6f77(0x1ba)]?0x8:0x0;return{'left':_0x4a6831,'top':this[_0x1b6f77(0x1af)](_0x2d33bd,_0x17e6f9,_0x233f90,_0x506e9d,_0x1e3405)};}[_0x2a7c55(0x1af)](_0x1bbdec,_0x1d6c93,_0x41e433,_0x1aa89b=0x0,_0x283254){const _0x3042fe=_0x2a7c55,_0x2db231=_0x41e433+_0x1aa89b,_0x5958a9=new _0x46fdab(_0x240739[_0x3042fe(0x1cb)]),_0x6efe87=[_0x1bbdec[_0x3042fe(0x1b7)](),_0x1d6c93[_0x3042fe(0x1b7)]()][_0x3042fe(0x1a8)](_0x152efe=>_0x152efe),_0x247258=_0x46fdab[_0x3042fe(0x180)](_0x6efe87);if(!_0x247258)return Math[_0x3042fe(0x193)](_0x283254[_0x3042fe(0x1c4)]+_0x283254[_0x3042fe(0x1a2)]/0x2);const _0x1cb403=_0x5958a9[_0x3042fe(0x172)](_0x247258);if(!_0x1cb403)return Math[_0x3042fe(0x193)](_0x283254[_0x3042fe(0x1c4)]+_0x283254[_0x3042fe(0x1a2)]/0x2);const _0x49b63f=_0x283254[_0x3042fe(0x1b7)](),_0x4ef61f=_0x49b63f&&_0x247258[_0x3042fe(0x1a2)]>_0x49b63f[_0x3042fe(0x1a2)],_0x59cd93=_0x1cb403[_0x3042fe(0x1c4)],_0x5b7676=_0x1cb403[_0x3042fe(0x1a1)];if(_0x4ef61f){const _0xd5286f=(_0x49b63f||_0x5958a9)[_0x3042fe(0x1a2)]/0x2-_0x2db231/0x2,_0x3bc19a=_0x59cd93-z-_0x283254[_0x3042fe(0x1c4)],_0x247441=_0x283254[_0x3042fe(0x1a1)]-_0x5b7676-z;return _0x3bc19a>=_0x2db231?Math[_0x3042fe(0x194)](z,_0x59cd93-_0x2db231-z):_0x247441>=_0x2db231?_0x5b7676+z:Math[_0x3042fe(0x194)](z,_0xd5286f);}const _0x2a5824=_0x59cd93-_0x2db231,_0x280df4=_0x283254[_0x3042fe(0x1a1)]-_0x5b7676-z,_0x187809=_0x59cd93-z-_0x283254[_0x3042fe(0x1c4)];let _0x32e6b5;if(_0x280df4>=_0x2db231)_0x32e6b5=_0x5b7676+z;else{if(_0x187809>=_0x2db231)_0x32e6b5=_0x2a5824-z;else _0x32e6b5=_0x59cd93+_0x247258[_0x3042fe(0x1a2)]/0x2-_0x2db231/0x2;}return _0x32e6b5;}[_0x2a7c55(0x1ac)](){const _0x32f50c=_0x2a7c55,_0x1fb24a=_0x431152(this[_0x32f50c(0x1a5)]);this[_0x32f50c(0x18f)](_0x1fb24a[_0x32f50c(0x16e)][_0x32f50c(0x168)],_0x32f50c(0x16b),()=>{const _0x5e0321=_0x32f50c;if(this[_0x5e0321(0x1aa)])return;for(const {name:_0xa8ce61,data:{newRange:_0xa8555}}of _0x1fb24a[_0x5e0321(0x16e)][_0x5e0321(0x168)][_0x5e0321(0x17c)][_0x5e0321(0x184)]())if(_0xa8ce61[_0x5e0321(0x19e)](_0x5e0321(0x1b8))&&(_0xa8555&&(_0xa8555[_0x5e0321(0x17a)][_0x5e0321(0x1c6)](_0xa8555[_0x5e0321(0x1c0)])||_0x5e0321(0x181)==_0xa8555[_0x5e0321(0x174)][_0x5e0321(0x17f)])||null==_0xa8555)){const _0x124d31=_0x2a638a(this[_0x5e0321(0x1a5)][_0x5e0321(0x18a)],_0x5e0321(0x199));this[_0x5e0321(0x1ce)][_0x5e0321(0x1bf)](_0x124d31),this[_0x5e0321(0x1ae)](_0x5e0321(0x18c));}});}[_0x2a7c55(0x1b5)](){const _0x554b7d=_0x2a7c55,_0x58f9ea=_0x431152(this[_0x554b7d(0x1a5)]);this[_0x554b7d(0x1cf)](_0x58f9ea[_0x554b7d(0x16e)][_0x554b7d(0x168)]);}[_0x2a7c55(0x16c)](){const _0x51b3cc=_0x2a7c55,_0xf4d42e=_0x431152(this[_0x51b3cc(0x1a5)]);return _0x33111f(_0xf4d42e[_0x51b3cc(0x1a4)],[..._0xf4d42e[_0x51b3cc(0x16e)][_0x51b3cc(0x186)][_0x51b3cc(0x198)](_0x51b3cc(0x178)),..._0xf4d42e[_0x51b3cc(0x16e)][_0x51b3cc(0x186)][_0x51b3cc(0x198)](_0x51b3cc(0x1ca))]);}}
|