@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x5b852b=_0x1ede;function _0x1ede(_0x4fa6be,_0x474acc){const _0x36ea76=_0x36ea();return _0x1ede=function(_0x1ede5e,_0x180451){_0x1ede5e=_0x1ede5e-0xb0;let _0x4aa6fb=_0x36ea76[_0x1ede5e];return _0x4aa6fb;},_0x1ede(_0x4fa6be,_0x474acc);}(function(_0x8b128f,_0x25c199){const _0x123134=_0x1ede,_0x2b585c=_0x8b128f();while(!![]){try{const _0x115cde=-parseInt(_0x123134(0xf6))/0x1*(-parseInt(_0x123134(0xe4))/0x2)+-parseInt(_0x123134(0xc8))/0x3*(parseInt(_0x123134(0x102))/0x4)+-parseInt(_0x123134(0xd7))/0x5+parseInt(_0x123134(0xe5))/0x6*(parseInt(_0x123134(0xef))/0x7)+-parseInt(_0x123134(0xb1))/0x8+parseInt(_0x123134(0xd4))/0x9+parseInt(_0x123134(0xb0))/0xa;if(_0x115cde===_0x25c199)break;else _0x2b585c['push'](_0x2b585c['shift']());}catch(_0x73e0da){_0x2b585c['push'](_0x2b585c['shift']());}}}(_0x36ea,0xb19d0));import{ObservableMixin as _0x40419b}from'ckeditor5/src/utils.js';import{AIRequestError as _0x130c77}from'../adapters/aiadapter.js';import{Matcher as _0x1e2f93,ViewUpcastWriter as _0x5097b6}from'ckeditor5/src/engine.js';const xs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x40419b(){[_0x5b852b(0x101)];[_0x5b852b(0xdb)];[_0x5b852b(0xf4)];[_0x5b852b(0xee)];[_0x5b852b(0x111)];[_0x5b852b(0xc3)];constructor(_0x5bfdc2,_0x1d13f5,_0x24fc50){const _0x364046=_0x5b852b;super(),this[_0x364046(0x101)]=_0x5bfdc2,this[_0x364046(0xdb)]=_0x1d13f5,this[_0x364046(0xee)]=document[_0x364046(0xb8)](_0x364046(0x10c)),this[_0x364046(0x111)]=new DOMParser(),this[_0x364046(0xc3)]=new XMLSerializer(),this[_0x364046(0xf4)]=_0x24fc50,this[_0x364046(0x10b)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x364046(0xe0),(_0x8dd15e,_0x1c0795,_0x51a4e2)=>{const _0x4d6096=_0x364046;this[_0x4d6096(0xf4)][_0x4d6096(0x10f)]=this[_0x4d6096(0xdd)](_0x51a4e2);}),this[_0x364046(0xb6)](this[_0x364046(0xf4)],_0x364046(0xf1),(_0x118258,_0x46869c)=>{const _0x515654=_0x364046,_0x2d6882=this[_0x515654(0x100)]||this[_0x515654(0xb2)];this[_0x515654(0xcc)](_0x46869c,_0x2d6882,_0x515654(0xe8));}),this[_0x364046(0xb6)](this[_0x364046(0xf4)],_0x364046(0xbe),()=>{const _0x4d0d80=_0x364046;this[_0x4d0d80(0xf4)][_0x4d0d80(0xb4)]=this[_0x4d0d80(0xed)],this[_0x4d0d80(0xcc)](this[_0x4d0d80(0xd1)],this[_0x4d0d80(0x113)],this[_0x4d0d80(0xe2)],this[_0x4d0d80(0xed)]);}),this[_0x364046(0xb6)](this[_0x364046(0xf4)],_0x364046(0xca),()=>{const _0x3ce973=_0x364046;this[_0x3ce973(0xca)]();});}[_0x5b852b(0xc2)](){const _0xbc99d1=_0x5b852b;this[_0xbc99d1(0xcb)]();}async[_0x5b852b(0xd8)]({actionId:_0x3f1571,query:_0xe160db,htmlContent:_0x4e81c3,label:_0x5549d2,mainActionLabel:_0xdf4a77}){const _0x204347=_0x5b852b;this[_0x204347(0xf4)][_0x204347(0xb4)]=_0x5549d2,this[_0x204347(0xf4)][_0x204347(0xd0)]=_0xdf4a77,this[_0x204347(0xb2)]=_0x4e81c3,_0xe160db&&(this[_0x204347(0xf4)][_0x204347(0xcf)]?this[_0x204347(0xcc)](_0xe160db,_0x4e81c3,_0x3f1571,_0x5549d2):this[_0x204347(0xf4)][_0x204347(0xdf)](_0x204347(0xd2),()=>{const _0x5a5c10=_0x204347;this[_0x5a5c10(0xcc)](_0xe160db,_0x4e81c3,_0x3f1571,_0x5549d2);}));}[_0x5b852b(0xca)](){const _0xf0b401=_0x5b852b;this[_0xf0b401(0xce)]&&(this[_0xf0b401(0xce)]=!0x1,this[_0xf0b401(0xf4)][_0xf0b401(0xf7)](),this[_0xf0b401(0xdb)][_0xf0b401(0xea)]());}[_0x5b852b(0xfb)](){const _0x416288=_0x5b852b;this[_0x416288(0xb2)]='',this[_0x416288(0x100)]='',this[_0x416288(0xe9)]='',this[_0x416288(0x113)]='',this[_0x416288(0xd1)]='',this[_0x416288(0xed)]='',this[_0x416288(0xe2)]=void 0x0,this[_0x416288(0xf4)][_0x416288(0xfb)](),this[_0x416288(0xca)]();}async[_0x5b852b(0xcc)](_0x1bf8ec,_0x438c4e,_0x35ac3a,_0x299164){const _0x16f5e0=_0x5b852b;return this[_0x16f5e0(0xce)]=!0x0,this[_0x16f5e0(0xf4)][_0x16f5e0(0xc0)](),this[_0x16f5e0(0x113)]=_0x438c4e,this[_0x16f5e0(0xd1)]=_0x1bf8ec,this[_0x16f5e0(0xed)]=_0x299164||_0x1bf8ec,this[_0x16f5e0(0xe2)]=_0x35ac3a,new Promise(_0x4e3644=>{const _0x48bb9d=_0x16f5e0;this[_0x48bb9d(0xdb)][_0x48bb9d(0xfa)]({'query':_0x1bf8ec,'context':_0x438c4e,'onData':_0x271c43=>{const _0xb3688e=_0x48bb9d;this[_0xb3688e(0xe9)]=_0x271c43,this[_0xb3688e(0x100)]=this[_0xb3688e(0x110)](this[_0xb3688e(0xe9)]);},'actionId':_0x35ac3a})[_0x48bb9d(0xf2)](()=>{const _0x131867=_0x48bb9d;!this[_0x131867(0x100)]&&this[_0x131867(0xe9)]&&(this[_0x131867(0x100)]=this[_0x131867(0x110)](this[_0x131867(0xe9)],!0x0));})[_0x48bb9d(0xf8)](_0x1cdc39=>{const _0x4eb264=_0x48bb9d;_0x1cdc39 instanceof _0x130c77?this[_0x4eb264(0xf4)][_0x4eb264(0x112)](_0x1cdc39[_0x4eb264(0xff)]):this[_0x4eb264(0xf4)][_0x4eb264(0x112)](),_0x4e3644();})[_0x48bb9d(0xde)](()=>{const _0x30df2b=_0x48bb9d;this[_0x30df2b(0xca)](),_0x4e3644();});});}[_0x5b852b(0x110)](_0x27e6e4,_0x3a3372=!0x1){const _0x514b8b=_0x5b852b,_0xa2506b=xs[_0x514b8b(0x10e)](_0x27e6e4);_0x27e6e4=_0xa2506b?_0x27e6e4[_0x514b8b(0xc7)](_0xa2506b[0x1][_0x514b8b(0xd3)]):_0x27e6e4[_0x514b8b(0xd3)]<0x64&&!_0x3a3372?'':this[_0x514b8b(0xc4)](_0x27e6e4);const _0x48fa73=this[_0x514b8b(0x111)][_0x514b8b(0xe7)](_0x27e6e4,_0x514b8b(0x105));if(_0xa2506b){const _0x2d7a8a=Array[_0x514b8b(0x103)](_0x48fa73[_0x514b8b(0x106)][_0x514b8b(0xc5)]);_0x2d7a8a[_0x514b8b(0xf3)]();for(const _0x3d0001 of _0x2d7a8a){if(_0x3d0001[_0x514b8b(0xdc)]==Node[_0x514b8b(0xbb)])break;_0x3d0001[_0x514b8b(0xda)]();}}const _0x13f70b=this[_0x514b8b(0x101)][_0x514b8b(0xb5)][_0x514b8b(0x107)][_0x514b8b(0xec)](this[_0x514b8b(0xc3)][_0x514b8b(0xeb)](_0x48fa73[_0x514b8b(0x106)]));this[_0x514b8b(0xf0)]()||this[_0x514b8b(0xe1)](_0x13f70b);const _0x3d923b=this[_0x514b8b(0x101)][_0x514b8b(0x10d)][_0x514b8b(0xcd)](_0x514b8b(0xbd)),_0x58300d=this[_0x514b8b(0x101)][_0x514b8b(0xb5)][_0x514b8b(0x104)](_0x13f70b);return _0x3d923b||_0x58300d[_0x514b8b(0xfd)][_0x514b8b(0xba)](),this[_0x514b8b(0x101)][_0x514b8b(0xb5)][_0x514b8b(0xd9)](_0x58300d);}[_0x5b852b(0xe1)](_0x22e2a5){const _0x7cdacc=_0x5b852b,_0x48fdc5=new _0x5097b6(this[_0x7cdacc(0x101)][_0x7cdacc(0xb7)][_0x7cdacc(0xf4)][_0x7cdacc(0xc9)]),_0x581ae2=new _0x1e2f93({'name':/^h[1-5]$/}),_0x602751=[];let _0x4d5389=!0x1;for(const _0x2f51d9 of _0x22e2a5)_0x2f51d9['is'](_0x7cdacc(0xf5))&&_0x581ae2[_0x7cdacc(0xf9)](_0x2f51d9)&&(_0x602751[_0x7cdacc(0x10a)](_0x2f51d9),'h1'==_0x2f51d9[_0x7cdacc(0xbc)]&&(_0x4d5389=!0x0));if(_0x4d5389){for(const _0x21a787 of _0x602751)_0x48fdc5[_0x7cdacc(0xb9)]('h'+(parseInt(_0x21a787[_0x7cdacc(0xbc)][0x1])+0x1),_0x21a787);}}[_0x5b852b(0xf0)](){const _0x2777d9=_0x5b852b,{data:_0x94aa0a,editing:_0x5ea49e}=this[_0x2777d9(0x101)],_0x42110e=_0x94aa0a[_0x2777d9(0xd6)][_0x2777d9(0xec)](_0x2777d9(0xfe)),_0x229cb5=_0x94aa0a[_0x2777d9(0xec)](_0x94aa0a[_0x2777d9(0x104)](_0x42110e));return!!_0x5ea49e[_0x2777d9(0xf4)][_0x2777d9(0xbf)][_0x2777d9(0x109)](_0x229cb5)[_0x2777d9(0xd5)]('h1');}[_0x5b852b(0xdd)](_0x1a88d3){const _0x2f3c35=_0x5b852b;return this[_0x2f3c35(0x101)][_0x2f3c35(0xb7)][_0x2f3c35(0xf4)][_0x2f3c35(0xbf)][_0x2f3c35(0xb3)](this[_0x2f3c35(0xee)],_0x1a88d3),this[_0x2f3c35(0xee)][_0x2f3c35(0xc1)];}[_0x5b852b(0xc4)](_0x4c0c7e){const _0x3448e3=_0x5b852b,_0x1e8ce3=_0x4c0c7e[_0x3448e3(0x108)]();return _0x1e8ce3[_0x3448e3(0xc6)](_0x3448e3(0xfc))?_0x1e8ce3[_0x3448e3(0xe6)](_0x3448e3(0xe3))?_0x1e8ce3[_0x3448e3(0xc7)](0x7,_0x1e8ce3[_0x3448e3(0xd3)]-0x3):_0x1e8ce3[_0x3448e3(0xc7)](0x7):_0x4c0c7e;}}function _0x36ea(){const _0x33ad4b=['config','exec','value','_parseAndNormalizeContent','_domParser','handleError','previousContext','631820TprgVU','585536EXhXzH','initialContext','setContentOf','prompt','data','listenTo','editing','createElement','rename','clear','ELEMENT_NODE','name','ai.assistant.preserveComments','tryAgainEvent','domConverter','startProcessing','innerHTML','destroy','_xmlSerializer','_stripMarkdownSyntax','childNodes','startsWith','substring','3pMJHvi','document','stopProcessing','stopListening','_handleQuery','get','isProcessing','isRendered','mainAction','previousQuery','render','length','12072195SNesap','querySelector','htmlProcessor','6043640JkiMxP','updateView','stringify','remove','textAdapter','nodeType','_sanitizeHTML','finally','once','set:currentContext','_normalizeResponseHeadings','previousActionId','```','28VbzJLj','251148Salpkh','endsWith','parseFromString','custom','currentResponse','abort','serializeToString','toView','previousLabel','_sanitizationContainer','161emFerS','_isH1TagSupportEnabled','submitPrompt','then','reverse','view','element','3797zcRINX','finishProcessing','catch','match','makeRequest','reset','```html','markers','<h1></h1>','message','currentContext','editor','1644020WKKcIg','from','toModel','text/html','body','processor','trim','viewToDom','push','set','div'];_0x36ea=function(){return _0x33ad4b;};return _0x36ea();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xcbe57a=_0x5ddb;function _0x5ddb(_0x473786,_0x2407ca){const _0x3e6f61=_0x3e6f();return _0x5ddb=function(_0x5ddbf7,_0x228337){_0x5ddbf7=_0x5ddbf7-0x172;let _0xfbad3=_0x3e6f61[_0x5ddbf7];return _0xfbad3;},_0x5ddb(_0x473786,_0x2407ca);}function _0x3e6f(){const _0xf927e4=['firstElementChild','div','render','execute','smooth','createElement','24XXUwbA','ck-ai-form__content-field','querySelector','31603bZdtpV','addRange','mousedown','AI\x20is\x20writing...','body','wheel','3113176mVQpzc','<span>]</span>','icon','ClipboardItem','_copyHTMLToClipboard','isProcessing','appendLoader','value','scrollHeight','ck-hidden','getSelection','ck-ai-form__content-area-wrapper','textContent','3180XRArNP','-9999px','innerHTML','ck-ai-form__content-area--processing','focus','execCommand','ck-ai-form__loader','lastElementChild','ck-ai-form__copy-button','locale','change:isProcessing','setContent','write','\x20ck-ai-form__copy-button--copied','_createCopyButton','contentFieldView','166189mjRRjf','style','bind','change:value','1086ZcAnrQ','6591767JgZFDk','removeAllRanges','left','copyButtonView','Copy','appendChild','setStartAfter','ck-content','element','ck-ai-form__copy-button-wrapper','4bVGGPl','9hzydeH','.ck-ai-form__loader','18605HaipIH','<span>[</span>','415635gEyZhq','ck-ai-form__content-area','46964364ipUdrS','setEndBefore','position','class','_createLoader','scrollTo','createRange','ck-reset_all-excluded','setTemplate','loaderView','absolute','bindTemplate','text/html','copy','set','text/plain','isVisible','clipboard','isEnabled','remove','listenTo'];_0x3e6f=function(){return _0xf927e4;};return _0x3e6f();}(function(_0x3cb779,_0x3a47e0){const _0x174158=_0x5ddb,_0xe30077=_0x3cb779();while(!![]){try{const _0x37dcbb=-parseInt(_0x174158(0x1c2))/0x1*(-parseInt(_0x174158(0x17a))/0x2)+-parseInt(_0x174158(0x17f))/0x3*(parseInt(_0x174158(0x19c))/0x4)+parseInt(_0x174158(0x17d))/0x5*(-parseInt(_0x174158(0x1c6))/0x6)+-parseInt(_0x174158(0x1c7))/0x7+parseInt(_0x174158(0x1a5))/0x8*(-parseInt(_0x174158(0x17b))/0x9)+-parseInt(_0x174158(0x1b2))/0xa*(parseInt(_0x174158(0x19f))/0xb)+parseInt(_0x174158(0x181))/0xc;if(_0x37dcbb===_0x3a47e0)break;else _0xe30077['push'](_0xe30077['shift']());}catch(_0x20d75b){_0xe30077['push'](_0xe30077['shift']());}}}(_0x3e6f,0x794de));import{global as _0x55c7c9}from'ckeditor5/src/utils.js';import{View as _0x1f225f,ButtonView as _0x22a39b,SpinnerView as _0x133e10}from'ckeditor5/src/ui.js';import{IconCheck as _0x163bdb,IconCopy as _0x40b15c}from'ckeditor5/src/icons.js';import{getTranslation as _0xe4d565}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x1f225f{[_0xcbe57a(0x1c1)];[_0xcbe57a(0x173)];constructor(_0x34077b,_0x54b433=''){const _0x389d14=_0xcbe57a;super(_0x34077b),this[_0x389d14(0x18f)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0xe8a672=this[_0x389d14(0x18c)];this[_0x389d14(0x1c1)]=new ContentFieldView(_0x34077b,_0x54b433),this[_0x389d14(0x173)]=this[_0x389d14(0x1c0)](),this[_0x389d14(0x189)]({'tag':_0x389d14(0x197),'attributes':{'class':['ck',_0x389d14(0x1b0),_0xe8a672['if'](_0x389d14(0x191),_0x389d14(0x1ae),_0x1cd32c=>!_0x1cd32c)],'tabindex':'-1'},'children':[{'tag':_0x389d14(0x197),'attributes':{'class':['ck',_0x389d14(0x180),_0xe8a672['if'](_0x389d14(0x1aa),_0x389d14(0x1b5))]},'children':[this[_0x389d14(0x1c1)],{'tag':_0x389d14(0x197),'attributes':{'class':['ck',_0x389d14(0x179)]},'children':[this[_0x389d14(0x173)]]}]}]});}[_0xcbe57a(0x198)](){const _0x46bc5d=_0xcbe57a;super[_0x46bc5d(0x198)](),this[_0x46bc5d(0x1ac)]&&this[_0x46bc5d(0x1c1)][_0x46bc5d(0x1bd)](this[_0x46bc5d(0x1ac)]);let _0x875524=!0x1;this['on'](_0x46bc5d(0x1c5),(_0x380d65,_0x203778,_0x20027a)=>{const _0xddce64=_0x46bc5d,_0x373815=!this[_0xddce64(0x1c1)][_0xddce64(0x178)][_0xddce64(0x19e)](_0xddce64(0x17c));this[_0xddce64(0x1c1)][_0xddce64(0x1bd)](_0x20027a),this[_0xddce64(0x1aa)]&&_0x373815&&!_0x875524&&this[_0xddce64(0x178)][_0xddce64(0x186)]({'top':this[_0xddce64(0x178)][_0xddce64(0x1ad)],'behavior':_0xddce64(0x19a)});}),this['on'](_0x46bc5d(0x1bc),(_0x527c44,_0x5d7846,_0x35e831)=>{const _0x142726=_0x46bc5d;_0x875524=!0x1,_0x35e831?(this[_0x142726(0x1ac)]=null,this[_0x142726(0x1c1)][_0x142726(0x1ab)]()):this[_0x142726(0x1ac)]||this[_0x142726(0x1c1)][_0x142726(0x1bd)]('');}),this[_0x46bc5d(0x195)](this[_0x46bc5d(0x178)],_0x46bc5d(0x1a4),()=>{_0x875524=!0x0;}),this[_0x46bc5d(0x195)](this[_0x46bc5d(0x178)],_0x46bc5d(0x1a1),()=>{_0x875524=!0x0;});}[_0xcbe57a(0x1b6)](){const _0xcb150f=_0xcbe57a;this[_0xcb150f(0x178)][_0xcb150f(0x1b6)]();}[_0xcbe57a(0x1c0)](){const _0x449aa1=_0xcbe57a,_0x1b6faf=this[_0x449aa1(0x1bb)],_0x234a15=new _0x22a39b(this[_0x449aa1(0x1bb)]),_0x349baf=_0x449aa1(0x1ba);return _0x234a15[_0x449aa1(0x18f)]({'label':_0xe4d565(_0x1b6faf,_0x449aa1(0x174)),'icon':_0x40b15c,'class':_0x349baf,'tooltip':!0x0}),_0x234a15[_0x449aa1(0x1c4)](_0x449aa1(0x191))['to'](this,_0x449aa1(0x1ac),_0x2da136=>!!_0x2da136),_0x234a15[_0x449aa1(0x1c4)](_0x449aa1(0x193))['to'](this,_0x449aa1(0x1aa),_0x34eff4=>!_0x34eff4),_0x234a15['on'](_0x449aa1(0x199),()=>{const _0xca22d6=_0x449aa1;this[_0xca22d6(0x1a9)](this[_0xca22d6(0x1c1)][_0xca22d6(0x178)]),_0x234a15[_0xca22d6(0x1a7)]=_0x163bdb,_0x234a15[_0xca22d6(0x184)]=_0x349baf+_0xca22d6(0x1bf),this[_0xca22d6(0x1b6)](),setTimeout(()=>{const _0x7c003=_0xca22d6;_0x234a15[_0x7c003(0x1a7)]=_0x40b15c,_0x234a15[_0x7c003(0x184)]=_0x349baf;},0x3e8);}),_0x234a15;}[_0xcbe57a(0x1a9)](_0x329ad6){const _0x30a62c=_0xcbe57a,{window:_0x2e4108,document:_0x3e7aad}=_0x55c7c9;if(_0x2e4108[_0x30a62c(0x1a8)]){const {Blob:_0x238c3b,ClipboardItem:_0x15326c}=_0x2e4108,_0x254201=[new _0x15326c({'text/html':new _0x238c3b([_0x329ad6[_0x30a62c(0x1b4)]],{'type':_0x30a62c(0x18d)}),'text/plain':new _0x238c3b([_0x329ad6[_0x30a62c(0x1b1)]||''],{'type':_0x30a62c(0x190)})})];navigator[_0x30a62c(0x192)][_0x30a62c(0x1be)](_0x254201);}else{const _0x368607=_0x3e7aad[_0x30a62c(0x19b)](_0x30a62c(0x197));_0x368607[_0x30a62c(0x1c3)][_0x30a62c(0x183)]=_0x30a62c(0x18b),_0x368607[_0x30a62c(0x1c3)][_0x30a62c(0x172)]=_0x30a62c(0x1b3),_0x368607[_0x30a62c(0x1b4)]=_0x30a62c(0x17e)+_0x329ad6[_0x30a62c(0x1b4)]+_0x30a62c(0x1a6),_0x3e7aad[_0x30a62c(0x1a3)][_0x30a62c(0x175)](_0x368607);const _0x93ca66=_0x3e7aad[_0x30a62c(0x187)]();_0x93ca66[_0x30a62c(0x176)](_0x368607[_0x30a62c(0x196)]),_0x93ca66[_0x30a62c(0x182)](_0x368607[_0x30a62c(0x1b9)]);const _0x18b0fe=_0x2e4108[_0x30a62c(0x1af)]();_0x18b0fe[_0x30a62c(0x1c8)](),_0x18b0fe[_0x30a62c(0x1a0)](_0x93ca66),_0x3e7aad[_0x30a62c(0x1b7)](_0x30a62c(0x18e)),_0x368607[_0x30a62c(0x194)]();}}}export class ContentFieldView extends _0x1f225f{constructor(_0x185f4b,_0x502452=''){const _0x16f594=_0xcbe57a;super(_0x185f4b),this[_0x16f594(0x18a)]=this[_0x16f594(0x185)](),this[_0x16f594(0x189)]({'tag':_0x16f594(0x197),'attributes':{'class':['ck',_0x16f594(0x177),_0x502452,_0x16f594(0x188),_0x16f594(0x19d)]}});}[_0xcbe57a(0x1bd)](_0x39e195){const _0x4d343a=_0xcbe57a;this[_0x4d343a(0x178)][_0x4d343a(0x1b4)]=_0x39e195;}[_0xcbe57a(0x1ab)](){const _0x1a9a2a=_0xcbe57a;this[_0x1a9a2a(0x178)][_0x1a9a2a(0x175)](this[_0x1a9a2a(0x18a)][_0x1a9a2a(0x178)]);}[_0xcbe57a(0x185)](){const _0x2f255d=_0xcbe57a,_0x498482=new _0x1f225f(),_0x30ce28=this[_0x2f255d(0x1bb)],_0x1a05f9=new _0x133e10();return _0x1a05f9[_0x2f255d(0x191)]=!0x0,_0x498482[_0x2f255d(0x189)]({'tag':_0x2f255d(0x197),'attributes':{'class':['ck',_0x2f255d(0x1b8)]},'children':[_0x1a05f9,{'text':_0xe4d565(_0x30ce28,_0x2f255d(0x1a2))}]}),_0x498482[_0x2f255d(0x198)](),_0x498482;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x23b0a4,_0xf9bc9d){const _0x4bc432=_0x18cf,_0x9b55f6=_0x23b0a4();while(!![]){try{const _0x2ee9a0=-parseInt(_0x4bc432(0x1d7))/0x1*(parseInt(_0x4bc432(0x1cc))/0x2)+parseInt(_0x4bc432(0x1cf))/0x3*(-parseInt(_0x4bc432(0x1d8))/0x4)+-parseInt(_0x4bc432(0x1d6))/0x5*(-parseInt(_0x4bc432(0x1d3))/0x6)+-parseInt(_0x4bc432(0x1d2))/0x7+-parseInt(_0x4bc432(0x1d5))/0x8*(parseInt(_0x4bc432(0x1d4))/0x9)+parseInt(_0x4bc432(0x1dd))/0xa+parseInt(_0x4bc432(0x1cb))/0xb*(parseInt(_0x4bc432(0x1da))/0xc);if(_0x2ee9a0===_0xf9bc9d)break;else _0x9b55f6['push'](_0x9b55f6['shift']());}catch(_0x277e14){_0x9b55f6['push'](_0x9b55f6['shift']());}}}(_0x1efb,0x2b91c));function _0x1efb(){const _0x17e6a4=['text','content','3420360lBiBAi','1771rHqMUL','964lGHKCl','bindTemplate','ck-ai-form__error','81rHYIdR','setTemplate','div','130634OwUcSf','6UiFgVO','9PTZBGX','1254664BDGWqn','932675EeKraH','138yyRsni','25484oMOGtU','set','4764ttYBjL'];_0x1efb=function(){return _0x17e6a4;};return _0x1efb();}import{IconError as _0x13a36d}from'ckeditor5/src/icons.js';import{View as _0x27876e,IconView as _0x1cc2ec}from'ckeditor5/src/ui.js';function _0x18cf(_0x1b2f3e,_0x2284ab){const _0x1efbe3=_0x1efb();return _0x18cf=function(_0x18cf40,_0x2aa06e){_0x18cf40=_0x18cf40-0x1cb;let _0x44a72e=_0x1efbe3[_0x18cf40];return _0x44a72e;},_0x18cf(_0x1b2f3e,_0x2284ab);}export class AIFormErrorView extends _0x27876e{constructor(_0x36c1ea,_0x326055=''){const _0x48992a=_0x18cf;super(_0x36c1ea);const _0x5d4edd=new _0x1cc2ec(),_0x412005=this[_0x48992a(0x1cd)];this[_0x48992a(0x1d9)](_0x48992a(0x1db),_0x326055),_0x5d4edd[_0x48992a(0x1dc)]=_0x13a36d,this[_0x48992a(0x1d0)]({'tag':_0x48992a(0x1d1),'attributes':{'class':['ck',_0x48992a(0x1ce)]},'children':[_0x5d4edd,{'text':_0x412005['to'](_0x48992a(0x1db))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26bdee=_0x4ed1;function _0x4ed1(_0x5665ba,_0x224f27){const _0x55d7de=_0x55d7();return _0x4ed1=function(_0x4ed1ea,_0x55377c){_0x4ed1ea=_0x4ed1ea-0x190;let _0x4dcb5a=_0x55d7de[_0x4ed1ea];return _0x4dcb5a;},_0x4ed1(_0x5665ba,_0x224f27);}(function(_0x4316c4,_0x3207de){const _0x4e1d41=_0x4ed1,_0x109e2b=_0x4316c4();while(!![]){try{const _0x4825f7=-parseInt(_0x4e1d41(0x1c1))/0x1*(-parseInt(_0x4e1d41(0x19f))/0x2)+-parseInt(_0x4e1d41(0x1be))/0x3+parseInt(_0x4e1d41(0x194))/0x4*(parseInt(_0x4e1d41(0x1ac))/0x5)+parseInt(_0x4e1d41(0x1b2))/0x6*(parseInt(_0x4e1d41(0x1bb))/0x7)+parseInt(_0x4e1d41(0x1a9))/0x8+-parseInt(_0x4e1d41(0x1a7))/0x9+-parseInt(_0x4e1d41(0x1ab))/0xa*(parseInt(_0x4e1d41(0x1b0))/0xb);if(_0x4825f7===_0x3207de)break;else _0x109e2b['push'](_0x109e2b['shift']());}catch(_0x4c73c9){_0x109e2b['push'](_0x109e2b['shift']());}}}(_0x55d7,0x4783a));import{Rect as _0x446e29,global as _0x25c779,isVisible as _0x4ad217}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x5cf8eb,IconSubmit as _0x1c25f7}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2605a6,ButtonView as _0x394bf3}from'ckeditor5/src/ui.js';import{getTranslation as _0x595919}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2605a6{[_0x26bdee(0x19b)];[_0x26bdee(0x1a6)];constructor(_0x2996b6,_0x299d8f){const _0x476fe1=_0x26bdee;super(_0x2996b6,_0x299d8f),this[_0x476fe1(0x1a3)][_0x476fe1(0x19e)][_0x476fe1(0x1a4)]=0x1,this[_0x476fe1(0x1a3)][_0x476fe1(0x19e)][_0x476fe1(0x1b6)]=0x3,this[_0x476fe1(0x19b)]=this[_0x476fe1(0x192)](),this[_0x476fe1(0x1a6)]=this[_0x476fe1(0x196)](),this[_0x476fe1(0x1a5)][_0x476fe1(0x1ba)](this[_0x476fe1(0x1a6)],0x1),this[_0x476fe1(0x1a5)][_0x476fe1(0x1ba)](this[_0x476fe1(0x19b)]);}[_0x26bdee(0x1b1)](){const _0x58853c=_0x26bdee;super[_0x58853c(0x1b1)](),this[_0x58853c(0x1a3)][_0x58853c(0x1b8)][_0x58853c(0x1ba)](this[_0x58853c(0x1a6)]),this[_0x58853c(0x195)][_0x58853c(0x1ba)](this[_0x58853c(0x19b)]),this[_0x58853c(0x197)][_0x58853c(0x1c5)](_0x58853c(0x1a8),(_0x1e844c,_0x2ee9d1)=>{const _0x1d08c2=_0x58853c;_0x1e844c[_0x1d08c2(0x1bf)]==this[_0x1d08c2(0x1a3)][_0x1d08c2(0x19e)][_0x1d08c2(0x198)]&&(this[_0x1d08c2(0x1c3)](),_0x2ee9d1());});}[_0x26bdee(0x192)](){const _0x50f61e=_0x26bdee,_0x455f86=new _0x394bf3(this[_0x50f61e(0x191)]),_0x544183=this[_0x50f61e(0x191)];return _0x455f86[_0x50f61e(0x1c5)]({'icon':_0x1c25f7,'label':_0x595919(_0x544183,_0x50f61e(0x1a1)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x50f61e(0x193)}),_0x455f86['on'](_0x50f61e(0x1c2),()=>{const _0x2d7531=_0x50f61e;this[_0x2d7531(0x1c3)]();}),_0x455f86[_0x50f61e(0x190)](_0x50f61e(0x19a))['to'](this[_0x50f61e(0x1a3)][_0x50f61e(0x19e)],_0x50f61e(0x1a2),this,_0x50f61e(0x19a),(_0x2d123a,_0x4c7215)=>!_0x2d123a&&_0x4c7215),_0x455f86;}[_0x26bdee(0x196)](){const _0x2456de=_0x26bdee,_0x102a6e=new _0x394bf3(this[_0x2456de(0x191)]),_0xdbb637=this[_0x2456de(0x1b5)],_0x29174f=this[_0x2456de(0x191)];_0x102a6e[_0x2456de(0x1c5)]({'label':_0x595919(_0x29174f,_0x2456de(0x1ca)),'withText':!0x1,'icon':_0x5cf8eb,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2456de(0x1b4)}),_0x102a6e[_0x2456de(0x190)](_0x2456de(0x1c9))['to'](_0xdbb637,_0x2456de(0x1ae)),_0x102a6e[_0x2456de(0x190)](_0x2456de(0x19a))['to'](this,_0x2456de(0x19a)),_0x102a6e['on'](_0x2456de(0x1c2),()=>{const _0x1b7f25=_0x2456de;_0xdbb637[_0x1b7f25(0x1ae)]=!_0xdbb637[_0x1b7f25(0x1ae)],_0xdbb637[_0x1b7f25(0x1ae)]?this[_0x1b7f25(0x1c0)][_0x1b7f25(0x1b9)]():this[_0x1b7f25(0x1b9)]();});const _0x283a49=()=>{const _0x171086=_0x2456de;_0x25c779[_0x171086(0x1ad)][_0x171086(0x1c6)](()=>{const _0x458b83=_0x171086;if(_0x4ad217(this[_0x458b83(0x198)])){const _0x1da12d=new _0x446e29(this[_0x458b83(0x1a3)][_0x458b83(0x19e)][_0x458b83(0x198)]),_0x1654b9=_0x1da12d[_0x458b83(0x1b7)],_0x4c921f=_0x458b83(0x199)===_0x29174f[_0x458b83(0x1af)]?_0x458b83(0x1bc):_0x458b83(0x1c7);_0x1da12d[_0x458b83(0x1bd)](),_0x102a6e[_0x458b83(0x198)][_0x458b83(0x1c4)][_0x4c921f]=_0x1654b9-_0x1da12d[_0x458b83(0x1b7)]+0x1+'px';}});};return this[_0x2456de(0x1a3)][_0x2456de(0x19e)]['on'](_0x2456de(0x1aa),_0x283a49),this['on'](_0x2456de(0x1b1),_0x283a49),_0x102a6e;}[_0x26bdee(0x1c3)](){const _0x49cfed=_0x26bdee,_0xb00212=this[_0x49cfed(0x1a3)][_0x49cfed(0x19e)][_0x49cfed(0x198)][_0x49cfed(0x19d)];this[_0x49cfed(0x1c8)](_0x49cfed(0x1c3),_0xb00212);}[_0x26bdee(0x1b9)](_0x449a0b){const _0x4a3fc6=_0x26bdee;-0x1===_0x449a0b?this[_0x4a3fc6(0x19c)][_0x4a3fc6(0x1b3)]():this[_0x4a3fc6(0x19c)][_0x4a3fc6(0x1a0)]();}}function _0x55d7(){const _0x4bfc2d=['_createSubmitButton','ck-ai-form__submit','1056052xgRxbJ','children','_createShowHistoryButton','keystrokes','element','rtl','isEnabled','submitButtonView','focusCycler','value','fieldView','80282KNcXSS','focusFirst','Submit','isEmpty','queryView','minRows','focusableChildren','showHistoryButtonView','3300831DadcQD','enter','2472912LqNhwO','update','1579530cjrIPi','5IfAqRV','window','isVisible','uiLanguageDirection','11dvPNXt','render','596454IZigEq','focusLast','ck-ai-form__toggle-history','resultsView','maxRows','width','fieldWrapperChildren','focus','add','21SbHUeW','left','excludeScrollbarsAndBorders','1004121rNPXHt','target','filteredView','7XZjZYA','execute','submit','style','set','requestAnimationFrame','right','fire','isOn','History','bind','locale'];_0x55d7=function(){return _0x4bfc2d;};return _0x55d7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22322a=_0x2200;function _0x2200(_0xaed6f6,_0xba9f1d){const _0x5e2506=_0x5e25();return _0x2200=function(_0x2200fd,_0x381085){_0x2200fd=_0x2200fd-0x16d;let _0x2474e5=_0x5e2506[_0x2200fd];return _0x2474e5;},_0x2200(_0xaed6f6,_0xba9f1d);}function _0x5e25(){const _0x2e1c4d=['bindTemplate','isVisible','bind','385865mhVPLL','locale','mainAction','720036KpaPty','6sRDxuU','set','extendTemplate','_createButton','ck-button-action','54406iPykDa','Insert\x20below','14vGCMzc','Try\x20again','items','tryAgainButton','label','1065496uiuviM','1HDqWNz','insert','250lxkmak','replace','_CONTENT','428577WAASTl','Stop','ck-hidden','AI_','ck-ai-form__toolbar','replaceButton','19784cOdXvX','addMany','toUpperCase','insertButton','REPLACE','1212426SRNeki','stopButton'];_0x5e25=function(){return _0x2e1c4d;};return _0x5e25();}(function(_0x185978,_0x1b6a2e){const _0x516d66=_0x2200,_0x234ff6=_0x185978();while(!![]){try{const _0x4f4ef6=parseInt(_0x516d66(0x173))/0x1*(parseInt(_0x516d66(0x17e))/0x2)+parseInt(_0x516d66(0x178))/0x3+parseInt(_0x516d66(0x18b))/0x4+parseInt(_0x516d66(0x188))/0x5*(parseInt(_0x516d66(0x18c))/0x6)+-parseInt(_0x516d66(0x16d))/0x7*(parseInt(_0x516d66(0x172))/0x8)+parseInt(_0x516d66(0x183))/0x9+-parseInt(_0x516d66(0x175))/0xa*(parseInt(_0x516d66(0x191))/0xb);if(_0x4f4ef6===_0x1b6a2e)break;else _0x234ff6['push'](_0x234ff6['shift']());}catch(_0x2dd4f5){_0x234ff6['push'](_0x234ff6['shift']());}}}(_0x5e25,0x25bff));import{ToolbarView as _0x211871,ButtonView as _0x3ae2bf}from'ckeditor5/src/ui.js';import{getTranslation as _0x45e026}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x22322a(0x176),'INSERT':_0x22322a(0x174)};export class AIFormToolbarView extends _0x211871{constructor(_0x24f1a5){const _0x33e374=_0x22322a;super(_0x24f1a5),this[_0x33e374(0x18d)](_0x33e374(0x186),!0x1),this[_0x33e374(0x18d)](_0x33e374(0x18a),AIFormToolbarViewMainActionLabel[_0x33e374(0x182)]),this[_0x33e374(0x17d)]=this[_0x33e374(0x18f)]('',_0x33e374(0x190)),this[_0x33e374(0x17d)][_0x33e374(0x187)](_0x33e374(0x171))['to'](this,_0x33e374(0x18a),_0x471f77=>_0x45e026(_0x24f1a5,_0x33e374(0x17b)+_0x471f77[_0x33e374(0x180)]()+_0x33e374(0x177))),this[_0x33e374(0x181)]=this[_0x33e374(0x18f)](_0x45e026(_0x24f1a5,_0x33e374(0x192))),this[_0x33e374(0x170)]=this[_0x33e374(0x18f)](_0x45e026(_0x24f1a5,_0x33e374(0x16e))),this[_0x33e374(0x184)]=this[_0x33e374(0x18f)](_0x45e026(_0x24f1a5,_0x33e374(0x179)));const _0x12a97e=this[_0x33e374(0x185)];this[_0x33e374(0x18e)]({'attributes':{'class':[_0x33e374(0x17c),_0x12a97e['if'](_0x33e374(0x186),_0x33e374(0x17a),_0x90b518=>!_0x90b518)]}}),this[_0x33e374(0x16f)][_0x33e374(0x17f)]([this[_0x33e374(0x17d)],this[_0x33e374(0x181)],this[_0x33e374(0x170)],this[_0x33e374(0x184)]]);}[_0x22322a(0x18f)](_0xad4840,_0x2073a1){const _0x515a13=_0x22322a,_0x1244e8=new _0x3ae2bf(this[_0x515a13(0x189)]);return _0x1244e8[_0x515a13(0x18d)]({'label':_0xad4840,'class':_0x2073a1||'','isVisible':!0x0,'withText':!0x0}),_0x1244e8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48711b=_0x5103;(function(_0x47a860,_0x218597){const _0x431685=_0x5103,_0x3a230a=_0x47a860();while(!![]){try{const _0x5a4e7d=parseInt(_0x431685(0x1f0))/0x1+-parseInt(_0x431685(0x1fc))/0x2*(parseInt(_0x431685(0x1fa))/0x3)+-parseInt(_0x431685(0x1f7))/0x4+parseInt(_0x431685(0x1ee))/0x5*(parseInt(_0x431685(0x1df))/0x6)+-parseInt(_0x431685(0x1fe))/0x7+-parseInt(_0x431685(0x1bd))/0x8+parseInt(_0x431685(0x1d3))/0x9;if(_0x5a4e7d===_0x218597)break;else _0x3a230a['push'](_0x3a230a['shift']());}catch(_0x4fd497){_0x3a230a['push'](_0x3a230a['shift']());}}}(_0x4ee8,0x88a75));function _0x5103(_0x32cee9,_0x18373a){const _0x4ee8ae=_0x4ee8();return _0x5103=function(_0x510349,_0x4c6a5c){_0x510349=_0x510349-0x1b5;let _0x4a9f31=_0x4ee8ae[_0x510349];return _0x4a9f31;},_0x5103(_0x32cee9,_0x18373a);}import{FocusTracker as _0x3dce25,KeystrokeHandler as _0x2d4909}from'ckeditor5/src/utils.js';import{View as _0x3af2f0,FocusCycler as _0x23e5cb,createLabeledTextarea as _0x2cd075}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1fd9e3,AIFormToolbarViewMainActionLabel as _0x324f4e}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xca40b9}from'./aiformcontentarea.js';import{AIFormErrorView as _0x303524}from'./aiformerrorview.js';import{AIFormPromptView as _0x1b489f}from'./aiformpromptview.js';import{AIHistoryListView as _0x33329c}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x592e7b}from'./aihistorylistitemview.js';import{PromptHistory as _0x475a93}from'./prompthistory.js';import{getTranslation as _0x57f408}from'../../utils/common-translations.js';function _0x4ee8(){const _0x1df9a8=['insertButton','focusLast','REPLACE','submit','high','clearHistory','shift\x20+\x20tab','queryView','fire','focusCycler','isError','18115KXKCeg','promptView','680142KrXwzJ','_createPromptView','listenTo','replaceContent','Ask\x20AI\x20to\x20edit\x20or\x20generate','_createToolbar','tryAgainEvent','1286788AyCfKd','isVisible','contentArea','12vsPltV','ck-hidden','399248YisBdc','focusTracker','2650977bKoDma','isEnabled','items','keystrokes','_createHistoryView','Empty\x20history','AI_ERROR_FAILED','bind','insertContentBelow','setTemplate','stopProcessing','add','text','startProcessing','createCollection','reset','copyButtonView','handleError','bindTo','6093752AFtWtL','div','historyGroupView','delegate','clear','fieldView','execute','stopButton','bindTemplate','tab','label','chain','focusFirst','element','prompt','value','isProcessing','_focusables','errorView','search','Ask\x20AI\x20to\x20improve\x20generated\x20text','render','16196868OEdJhq','replaceButton','toolbar','_promptHistory','locale','ck-ai-form-content','tryAgainButton','submitPrompt','focus','trim','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','finishProcessing','564tKgFPu','set','mainAction','ck-ai-form'];_0x4ee8=function(){return _0x1df9a8;};return _0x4ee8();}import{escape as _0x127cc8}from'es-toolkit/compat';export class AIFormView extends _0x3af2f0{[_0x48711b(0x1fd)];[_0x48711b(0x201)];[_0x48711b(0x1f9)];[_0x48711b(0x1d5)];[_0x48711b(0x1ef)];[_0x48711b(0x1cf)];[_0x48711b(0x1ce)];[_0x48711b(0x1ec)];[_0x48711b(0x1d6)];constructor(_0x26280d,_0x1a26e0,_0x5a47d1=''){const _0x1157d3=_0x48711b;super(_0x26280d),this[_0x1157d3(0x1e0)](_0x1157d3(0x1ff),!0x0),this[_0x1157d3(0x1e0)](_0x1157d3(0x1cd),!0x1),this[_0x1157d3(0x1e0)](_0x1157d3(0x1cb),''),this[_0x1157d3(0x1e0)](_0x1157d3(0x1cc),''),this[_0x1157d3(0x1e0)](_0x1157d3(0x1ed),!0x1),this[_0x1157d3(0x1e0)](_0x1157d3(0x1e1),_0x324f4e[_0x1157d3(0x1e5)]),this[_0x1157d3(0x1d6)]=new _0x475a93(),this[_0x1157d3(0x1cf)]=new _0x303524(_0x26280d),this[_0x1157d3(0x1f9)]=new _0xca40b9(_0x26280d,_0x5a47d1),this[_0x1157d3(0x1f9)][_0x1157d3(0x205)](_0x1157d3(0x1cd))['to'](this),this[_0x1157d3(0x1f9)][_0x1157d3(0x205)](_0x1157d3(0x1cc))['to'](this),this[_0x1157d3(0x1d5)]=this[_0x1157d3(0x1f5)](),this[_0x1157d3(0x1d5)][_0x1157d3(0x205)](_0x1157d3(0x1e1))['to'](this),this[_0x1157d3(0x1ef)]=this[_0x1157d3(0x1f1)](),this[_0x1157d3(0x1fd)]=new _0x3dce25(),this[_0x1157d3(0x201)]=new _0x2d4909(),this[_0x1157d3(0x1ce)]=this[_0x1157d3(0x1b8)]([this[_0x1157d3(0x1f9)],this[_0x1157d3(0x1f9)][_0x1157d3(0x1ba)],this[_0x1157d3(0x1d5)],this[_0x1157d3(0x1ef)]]),this[_0x1157d3(0x1ec)]=new _0x23e5cb({'focusables':this[_0x1157d3(0x1ce)],'focusTracker':this[_0x1157d3(0x1fd)],'keystrokeHandler':this[_0x1157d3(0x201)],'actions':{'focusPrevious':_0x1157d3(0x1e9),'focusNext':_0x1157d3(0x1c6)}}),this[_0x1157d3(0x1ec)][_0x1157d3(0x1c8)](this[_0x1157d3(0x1ef)][_0x1157d3(0x1ec)]),this[_0x1157d3(0x1ef)][_0x1157d3(0x1ea)][_0x1157d3(0x1c2)][_0x1157d3(0x205)](_0x1157d3(0x1cc))['to'](this,_0x1157d3(0x1cb));const _0x3aca10=this[_0x1157d3(0x1c5)];this[_0x1157d3(0x207)]({'tag':_0x1157d3(0x1be),'attributes':{'class':['ck',_0x1157d3(0x1e2),_0x1a26e0],'tabindex':'-1'},'children':[{'tag':_0x1157d3(0x1be),'attributes':{'class':['ck',_0x1157d3(0x1d8)]},'children':[{'tag':_0x1157d3(0x1be),'attributes':{'class':[_0x3aca10['if'](_0x1157d3(0x1ed),_0x1157d3(0x1fb),_0x4adcb9=>!_0x4adcb9)]},'children':[this[_0x1157d3(0x1cf)]]},this[_0x1157d3(0x1f9)],this[_0x1157d3(0x1d5)],this[_0x1157d3(0x1ef)]]}]});}[_0x48711b(0x1d2)](){const _0x241766=_0x48711b;super[_0x241766(0x1d2)](),this[_0x241766(0x1fd)][_0x241766(0x1b5)](this[_0x241766(0x1f9)][_0x241766(0x1ca)]),this[_0x241766(0x1fd)][_0x241766(0x1b5)](this[_0x241766(0x1f9)][_0x241766(0x1ba)][_0x241766(0x1ca)]),this[_0x241766(0x1fd)][_0x241766(0x1b5)](this[_0x241766(0x1d5)][_0x241766(0x1ca)]),this[_0x241766(0x1fd)][_0x241766(0x1b5)](this[_0x241766(0x1ef)][_0x241766(0x1ca)]),this[_0x241766(0x201)][_0x241766(0x1f2)](this[_0x241766(0x1ca)]);}[_0x48711b(0x1db)](_0x5e55e6=0x1){const _0x2afbef=_0x48711b;-0x1===_0x5e55e6?this[_0x2afbef(0x1ec)][_0x2afbef(0x1e4)]():this[_0x2afbef(0x1ec)][_0x2afbef(0x1c9)]();}[_0x48711b(0x1b9)](){const _0x32552b=_0x48711b;this[_0x32552b(0x1cb)]='',this[_0x32552b(0x1cc)]='',this[_0x32552b(0x1ed)]=!0x1,this[_0x32552b(0x1ef)][_0x32552b(0x1b9)](),this[_0x32552b(0x1f9)][_0x32552b(0x1f8)]=!0x1,this[_0x32552b(0x1d5)][_0x32552b(0x1f8)]=!0x1;}[_0x48711b(0x1f1)](){const _0x3a5f3f=_0x48711b,_0x42a6b1=this[_0x3a5f3f(0x1d7)],_0x495740=new _0x1b489f(_0x42a6b1,{'queryView':{'label':_0x57f408(_0x42a6b1,_0x3a5f3f(0x1f4)),'creator':_0x2cd075,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x57f408(_0x42a6b1,_0x3a5f3f(0x203)),'secondary':_0x57f408(_0x42a6b1,_0x3a5f3f(0x1dd))}}},'filteredView':this[_0x3a5f3f(0x202)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x495740[_0x3a5f3f(0x205)](_0x3a5f3f(0x1ff))['to'](this,_0x3a5f3f(0x1ff),this,_0x3a5f3f(0x1cd),(_0x3ff317,_0x171c4c)=>_0x3ff317&&!_0x171c4c),this[_0x3a5f3f(0x1f2)](_0x495740,_0x3a5f3f(0x1e6),(_0x53f1b9,_0x5d8ac9)=>{const _0x46d5ba=_0x3a5f3f;this[_0x46d5ba(0x1cb)]=_0x5d8ac9;const _0x156925=_0x127cc8(_0x5d8ac9);this[_0x46d5ba(0x1eb)](_0x46d5ba(0x1da),_0x156925),_0x5d8ac9[_0x46d5ba(0x1dc)]()&&this[_0x46d5ba(0x1d6)][_0x46d5ba(0x1b5)]({'prompt':_0x156925},0x0);},{'priority':_0x3a5f3f(0x1e7)}),_0x495740;}[_0x48711b(0x202)](){const _0x482ea9=_0x48711b,_0x31bf3b=new _0x33329c(this[_0x482ea9(0x1d7)]);return _0x31bf3b[_0x482ea9(0x1bf)][_0x482ea9(0x200)][_0x482ea9(0x1bc)](this[_0x482ea9(0x1d6)])['as'](_0x592e7b),_0x31bf3b['on'](_0x482ea9(0x1e8),()=>{const _0x45ac4f=_0x482ea9;this[_0x45ac4f(0x1d6)][_0x45ac4f(0x1c1)](),this[_0x45ac4f(0x1ef)][_0x45ac4f(0x1d0)](''),this[_0x45ac4f(0x1ef)][_0x45ac4f(0x1db)]();}),_0x31bf3b;}[_0x48711b(0x1f5)](){const _0x5e5b5e=_0x48711b,_0x50b203=new _0x1fd9e3(this[_0x5e5b5e(0x1d7)]);return _0x50b203[_0x5e5b5e(0x1d4)][_0x5e5b5e(0x205)](_0x5e5b5e(0x1ff))['to'](this,_0x5e5b5e(0x1ff),this,_0x5e5b5e(0x1cd),this,_0x5e5b5e(0x1cc),(_0x36272e,_0x55a18a,_0x331a35)=>_0x36272e&&!_0x55a18a&&!!_0x331a35),_0x50b203[_0x5e5b5e(0x1d4)][_0x5e5b5e(0x1c0)](_0x5e5b5e(0x1c3))['to'](this,_0x5e5b5e(0x1f3)),_0x50b203[_0x5e5b5e(0x1e3)][_0x5e5b5e(0x205)](_0x5e5b5e(0x1ff))['to'](this,_0x5e5b5e(0x1ff),this,_0x5e5b5e(0x1cd),this,_0x5e5b5e(0x1cc),(_0x2b21b5,_0x1358dc,_0x4d95a6)=>_0x2b21b5&&!_0x1358dc&&!!_0x4d95a6),_0x50b203[_0x5e5b5e(0x1e3)][_0x5e5b5e(0x1c0)](_0x5e5b5e(0x1c3))['to'](this,_0x5e5b5e(0x206)),_0x50b203[_0x5e5b5e(0x1d9)][_0x5e5b5e(0x205)](_0x5e5b5e(0x1ff))['to'](this,_0x5e5b5e(0x1ff),this,_0x5e5b5e(0x1cd),(_0x5b7430,_0x460104)=>_0x5b7430&&!_0x460104),_0x50b203[_0x5e5b5e(0x1d9)][_0x5e5b5e(0x1c0)](_0x5e5b5e(0x1c3))['to'](this,_0x5e5b5e(0x1f6)),_0x50b203[_0x5e5b5e(0x1c4)][_0x5e5b5e(0x205)](_0x5e5b5e(0x1ff))['to'](this,_0x5e5b5e(0x1cd)),_0x50b203[_0x5e5b5e(0x1c4)][_0x5e5b5e(0x1c0)](_0x5e5b5e(0x1c3))['to'](this,_0x5e5b5e(0x208)),_0x50b203;}[_0x48711b(0x1b7)](){const _0x36ec7d=_0x48711b;this[_0x36ec7d(0x1cc)]='',this[_0x36ec7d(0x1ed)]=!0x1,this[_0x36ec7d(0x1cd)]=!0x0,this[_0x36ec7d(0x1f9)][_0x36ec7d(0x1f8)]=!0x0,this[_0x36ec7d(0x1d5)][_0x36ec7d(0x1f8)]=!0x0,this[_0x36ec7d(0x1f9)][_0x36ec7d(0x1db)]();}[_0x48711b(0x1de)](){const _0x49189f=_0x48711b,_0x5ee71e=this[_0x49189f(0x1d7)];this[_0x49189f(0x1cd)]=!0x1,this[_0x49189f(0x1cb)]='',this[_0x49189f(0x1ef)][_0x49189f(0x1b9)](),this[_0x49189f(0x1cc)]&&(this[_0x49189f(0x1ef)][_0x49189f(0x1ea)][_0x49189f(0x1c7)]=_0x57f408(_0x5ee71e,_0x49189f(0x1d1)));}[_0x48711b(0x1bb)](_0x148795){const _0x34b47a=_0x48711b,_0x34b4f2=this[_0x34b47a(0x1d7)];this[_0x34b47a(0x1de)](),this[_0x34b47a(0x1ed)]=!0x0,this[_0x34b47a(0x1cf)][_0x34b47a(0x1b6)]=_0x148795||_0x57f408(_0x34b4f2,_0x34b47a(0x204)),this[_0x34b47a(0x1cc)]||(this[_0x34b47a(0x1f9)][_0x34b47a(0x1f8)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3caada,_0x4daa66){const _0x571bd1=_0x2ec4,_0x190ad3=_0x3caada();while(!![]){try{const _0x2f9e6e=-parseInt(_0x571bd1(0xba))/0x1+parseInt(_0x571bd1(0xb9))/0x2+parseInt(_0x571bd1(0xc1))/0x3*(-parseInt(_0x571bd1(0xc3))/0x4)+parseInt(_0x571bd1(0xc2))/0x5+-parseInt(_0x571bd1(0xbc))/0x6*(parseInt(_0x571bd1(0xbd))/0x7)+parseInt(_0x571bd1(0xbb))/0x8+parseInt(_0x571bd1(0xc0))/0x9*(parseInt(_0x571bd1(0xb8))/0xa);if(_0x2f9e6e===_0x4daa66)break;else _0x190ad3['push'](_0x190ad3['shift']());}catch(_0x1e6d58){_0x190ad3['push'](_0x190ad3['shift']());}}}(_0x1d79,0x8af3a));import{ListItemView as _0x4044c7,ButtonView as _0x4779ef,ButtonLabelView as _0x59a8e3}from'ckeditor5/src/ui.js';function _0x1d79(){const _0x52cac0=['784020aTvMlE','156932AHliqY','prompt','locale','execute','children','fire','730sCibVy','768180IOyEDr','1108076UulZno','6579968agnMQk','252krqsAH','13853kgLqcB','set','add','140841YZaBfQ','57xYRrrK'];_0x1d79=function(){return _0x52cac0;};return _0x1d79();}function _0x2ec4(_0x41670f,_0x1f4861){const _0x1d79df=_0x1d79();return _0x2ec4=function(_0x2ec436,_0x20997b){_0x2ec436=_0x2ec436-0xb8;let _0x5dcb56=_0x1d79df[_0x2ec436];return _0x5dcb56;},_0x2ec4(_0x41670f,_0x1f4861);}import{unescape as _0x4672fc}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4044c7{constructor(_0x2d1df0){const _0x2f6644=_0x2ec4;super();const _0x87b40c=new _0x59a8e3(),_0x440bec=new _0x4779ef(this[_0x2f6644(0xc5)],_0x87b40c);this[_0x2f6644(0xc7)][_0x2f6644(0xbf)](_0x440bec),_0x440bec[_0x2f6644(0xbe)]({'label':_0x2d1df0[_0x2f6644(0xc4)],'withText':!0x0}),_0x440bec['on'](_0x2f6644(0xc6),()=>{const _0x584d26=_0x2f6644;this[_0x584d26(0xc8)](_0x584d26(0xc6),{'value':_0x4672fc(_0x2d1df0[_0x584d26(0xc4)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5ae3(){const _0x4bb96e=['clearHistory','add','224661cPLiQb','length','6zipXTU','3704094EmjIlR','delegate','24nAGGEk','1600336WAWlRv','1216265eAfFLT','historyGroupView','296804kjtoya','41107kpGLqm','20eDoxKk','clearHistoryButton','execute','10985754IKKYdt','Prompt\x20history','items','fire','28PBeVHy','2388jnXmXl','locale','filter','label','Clear','children','12ugfraY','_createClearHistoryButton','set'];_0x5ae3=function(){return _0x4bb96e;};return _0x5ae3();}function _0x2b2d(_0x454b9e,_0x591290){const _0x5ae3e3=_0x5ae3();return _0x2b2d=function(_0x2b2d8d,_0x47d81d){_0x2b2d8d=_0x2b2d8d-0x126;let _0x57786f=_0x5ae3e3[_0x2b2d8d];return _0x57786f;},_0x2b2d(_0x454b9e,_0x591290);}const _0x1b8cfe=_0x2b2d;(function(_0x958543,_0x546bb4){const _0x30572c=_0x2b2d,_0x5708fe=_0x958543();while(!![]){try{const _0x23d887=parseInt(_0x30572c(0x141))/0x1*(parseInt(_0x30572c(0x143))/0x2)+-parseInt(_0x30572c(0x128))/0x3*(parseInt(_0x30572c(0x12c))/0x4)+-parseInt(_0x30572c(0x12a))/0x5*(-parseInt(_0x30572c(0x13c))/0x6)+-parseInt(_0x30572c(0x135))/0x7*(parseInt(_0x30572c(0x129))/0x8)+parseInt(_0x30572c(0x126))/0x9*(parseInt(_0x30572c(0x12e))/0xa)+-parseInt(_0x30572c(0x12d))/0xb*(-parseInt(_0x30572c(0x136))/0xc)+-parseInt(_0x30572c(0x131))/0xd;if(_0x23d887===_0x546bb4)break;else _0x5708fe['push'](_0x5708fe['shift']());}catch(_0x1d8d07){_0x5708fe['push'](_0x5708fe['shift']());}}}(_0x5ae3,0x77402));import{ListView as _0x30d99c,ListItemGroupView as _0x41cd37,ButtonView as _0x6be3b2}from'ckeditor5/src/ui.js';import{getTranslation as _0x273790}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x30d99c{[_0x1b8cfe(0x12b)];[_0x1b8cfe(0x12f)];constructor(_0x28b647){const _0x5863f3=_0x1b8cfe;super(_0x28b647),this[_0x5863f3(0x12f)]=this[_0x5863f3(0x13d)](),this[_0x5863f3(0x12b)]=new _0x41cd37(),this[_0x5863f3(0x12b)][_0x5863f3(0x13b)][_0x5863f3(0x140)](this[_0x5863f3(0x12f)],0x1),this[_0x5863f3(0x12b)][_0x5863f3(0x139)]=_0x273790(_0x28b647,_0x5863f3(0x132)),this[_0x5863f3(0x12b)][_0x5863f3(0x133)][_0x5863f3(0x127)](_0x5863f3(0x130))['to'](this),this[_0x5863f3(0x133)][_0x5863f3(0x140)](this[_0x5863f3(0x12b)]);}[_0x1b8cfe(0x138)](){const _0x15b119=_0x1b8cfe;let _0x323b55=0x0;for(const _0x2a76e6 of this[_0x15b119(0x133)])_0x323b55+=_0x2a76e6[_0x15b119(0x133)][_0x15b119(0x142)];return{'resultsCount':_0x323b55,'totalItemsCount':_0x323b55};}[_0x1b8cfe(0x13d)](){const _0x5e81ca=_0x1b8cfe,_0x63a243=this[_0x5e81ca(0x137)],_0xebd349=new _0x6be3b2(this[_0x5e81ca(0x137)]);return _0xebd349[_0x5e81ca(0x13e)]({'label':'('+_0x273790(_0x63a243,_0x5e81ca(0x13a))+')','withText':!0x0}),_0xebd349['on'](_0x5e81ca(0x130),()=>this[_0x5e81ca(0x134)](_0x5e81ca(0x13f))),_0xebd349;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e07d5=_0xe163;function _0xe163(_0x17f269,_0x4f2f4c){const _0xaa3afa=_0xaa3a();return _0xe163=function(_0xe163c2,_0x441bb7){_0xe163c2=_0xe163c2-0x1b3;let _0x319d83=_0xaa3afa[_0xe163c2];return _0x319d83;},_0xe163(_0x17f269,_0x4f2f4c);}function _0xaa3a(){const _0x33aadf=['2239390jrRqBL','_loadFromSessionStorage','map','_saveToSessionStorage','1004778EQuRWA','add','parse','addMany','765146npmash','last','stringify','getItem','79876gRtwnu','434UQMAWa','6WLTXmg','5036420YGsHmV','remove','toLowerCase','112488PGCSBT','prompt','length','104nKiaYn','CKEditor/AIFormView/PromptHistory','11835WhkNpe','setItem','trim'];_0xaa3a=function(){return _0x33aadf;};return _0xaa3a();}(function(_0x49c081,_0x5444cc){const _0x4feec5=_0xe163,_0x262049=_0x49c081();while(!![]){try{const _0x54a035=-parseInt(_0x4feec5(0x1bc))/0x1+parseInt(_0x4feec5(0x1b8))/0x2+parseInt(_0x4feec5(0x1c7))/0x3*(parseInt(_0x4feec5(0x1c5))/0x4)+parseInt(_0x4feec5(0x1ca))/0x5*(-parseInt(_0x4feec5(0x1be))/0x6)+parseInt(_0x4feec5(0x1bd))/0x7*(parseInt(_0x4feec5(0x1c2))/0x8)+parseInt(_0x4feec5(0x1b4))/0x9+-parseInt(_0x4feec5(0x1bf))/0xa;if(_0x54a035===_0x5444cc)break;else _0x262049['push'](_0x262049['shift']());}catch(_0x51a19c){_0x262049['push'](_0x262049['shift']());}}}(_0xaa3a,0x6abb3));import{Collection as _0x2c5c92}from'ckeditor5/src/utils.js';const Ko=_0x3e07d5(0x1c6);export class PromptHistory extends _0x2c5c92{constructor(){const _0x9b41ae=_0x3e07d5;super(),this[_0x9b41ae(0x1cb)](),this['on'](_0x9b41ae(0x1b5),(_0x2dea8e,_0x43a44d)=>{const _0x2e7840=_0x9b41ae,_0x18c47e=Qo(_0x43a44d[_0x2e7840(0x1c3)]);for(const _0x5117fa of this)if(_0x5117fa!=_0x43a44d&&Qo(_0x5117fa[_0x2e7840(0x1c3)])===_0x18c47e){this[_0x2e7840(0x1c0)](_0x5117fa);break;}this[_0x2e7840(0x1c4)]>0x14&&this[_0x2e7840(0x1c0)](this[_0x2e7840(0x1b9)]),this[_0x2e7840(0x1b3)]();}),this['on'](_0x9b41ae(0x1c0),()=>{const _0x3e9fd3=_0x9b41ae;this[_0x3e9fd3(0x1b3)]();});}[_0x3e07d5(0x1cb)](){const _0x4155db=_0x3e07d5,_0xfcbc3e=sessionStorage[_0x4155db(0x1bb)](Ko)||'[]';this[_0x4155db(0x1b7)](JSON[_0x4155db(0x1b6)](_0xfcbc3e));}[_0x3e07d5(0x1b3)](){const _0x1c7b6a=_0x3e07d5;sessionStorage[_0x1c7b6a(0x1c8)](Ko,JSON[_0x1c7b6a(0x1ba)](this[_0x1c7b6a(0x1cc)](_0x103a6f=>_0x103a6f)));}}function Qo(_0x545d31){const _0x10c59a=_0x3e07d5;return _0x545d31[_0x10c59a(0x1c1)]()[_0x10c59a(0x1c9)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x403fa5=_0x2842;(function(_0xd7a551,_0x4c1c83){const _0x2949f2=_0x2842,_0x4bfa2a=_0xd7a551();while(!![]){try{const _0x4dfad2=-parseInt(_0x2949f2(0x19b))/0x1*(parseInt(_0x2949f2(0x187))/0x2)+-parseInt(_0x2949f2(0x191))/0x3*(-parseInt(_0x2949f2(0x175))/0x4)+parseInt(_0x2949f2(0x179))/0x5+-parseInt(_0x2949f2(0x18e))/0x6*(parseInt(_0x2949f2(0x189))/0x7)+parseInt(_0x2949f2(0x197))/0x8+-parseInt(_0x2949f2(0x19e))/0x9*(parseInt(_0x2949f2(0x174))/0xa)+-parseInt(_0x2949f2(0x182))/0xb*(-parseInt(_0x2949f2(0x17e))/0xc);if(_0x4dfad2===_0x4c1c83)break;else _0x4bfa2a['push'](_0x4bfa2a['shift']());}catch(_0x1487c5){_0x4bfa2a['push'](_0x4bfa2a['shift']());}}}(_0x39ff,0x976ba));import{Command as _0x25406f}from'ckeditor5/src/core.js';function _0x2842(_0x3fd1b9,_0x4be1e0){const _0x39ffc5=_0x39ff();return _0x2842=function(_0x28422b,_0x58c297){_0x28422b=_0x28422b-0x172;let _0x1133d6=_0x39ffc5[_0x28422b];return _0x1133d6;},_0x2842(_0x3fd1b9,_0x4be1e0);}import{AIAssistantUI as _0x37355a}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x25406f{[_0x403fa5(0x183)];constructor(_0x1e9ee9,_0x3e73b0){const _0x37090a=_0x403fa5;super(_0x1e9ee9),this[_0x37090a(0x183)]=_0x3e73b0,this[_0x37090a(0x19d)](_0x37090a(0x194),[]),this['on'](_0x37090a(0x193),(_0x49b727,_0x2cfd18,_0x292ea3)=>{const _0x36d7d6=_0x37090a;this[_0x36d7d6(0x186)]&&(this[_0x36d7d6(0x194)]=Cs(this[_0x36d7d6(0x183)],_0x292ea3));}),this[_0x37090a(0x19d)](_0x37090a(0x19a),!0x1),this['on'](_0x37090a(0x199),(_0x5cbce0,_0x2e6676,_0x1191cb)=>{const _0x55d7d5=_0x37090a;this[_0x55d7d5(0x194)]=_0x1191cb?Cs(this[_0x55d7d5(0x183)],this[_0x55d7d5(0x19a)]):[];});}[_0x403fa5(0x177)](){const _0x40403a=_0x403fa5,_0x1d0f59=this[_0x40403a(0x173)][_0x40403a(0x188)];this[_0x40403a(0x19a)]=function(_0x47404f){const _0x255dff=_0x40403a,_0x237b9a=_0x47404f[_0x255dff(0x17b)][_0x255dff(0x180)];return _0x237b9a[_0x255dff(0x18d)]?0x0!==[..._0x237b9a[_0x255dff(0x17d)]()][_0x255dff(0x17c)]&&![..._0x237b9a[_0x255dff(0x17d)]()][0x0][_0x255dff(0x195)]:!!_0x47404f[_0x255dff(0x17f)](_0x237b9a[_0x255dff(0x190)]());}(_0x1d0f59);const _0x1ebd1f=_0x1d0f59[_0x40403a(0x17b)][_0x40403a(0x180)],_0x543899=this[_0x40403a(0x173)][_0x40403a(0x185)][_0x40403a(0x196)](_0x40403a(0x19f));for(const _0x468668 of _0x1ebd1f[_0x40403a(0x18c)]())for(const _0x5470c2 of _0x468668[_0x40403a(0x18b)]())if(_0x5470c2['is'](_0x40403a(0x18a))&&_0x543899[_0x40403a(0x181)](_0x5470c2[_0x40403a(0x178)]))return void(this[_0x40403a(0x186)]=!0x1);this[_0x40403a(0x186)]=!0x0;}[_0x403fa5(0x19c)](_0x206195='',_0x5df699='',_0xac32ce=_0x403fa5(0x176)){const _0x416a05=_0x403fa5;this[_0x416a05(0x173)][_0x416a05(0x17a)][_0x416a05(0x196)](_0x37355a)[_0x416a05(0x172)](_0x206195,_0x5df699,_0xac32ce);}}function Cs(_0xbd2d21,_0x1949ea){const _0x184161=_0x403fa5,_0x256380=new Set();for(const _0x27bb60 of _0xbd2d21[_0x184161(0x18f)]())(_0x1949ea||!0x1===_0x27bb60[_0x184161(0x184)])&&_0x256380[_0x184161(0x192)](_0x27bb60['id']);return Array[_0x184161(0x198)](_0x256380);}function _0x39ff(){const _0x48a7f9=['getFirstRange','3DVlDzN','add','change:_hasContext','enabledCommandsIds','isEmpty','get','7937904jeNipU','from','change:isEnabled','_hasContext','7XMsTOy','execute','set','26415iHqcQJ','ai.assistant.disabledElements','showUI','editor','1470YgiJhp','3157628UHiqrR','custom','refresh','name','245620zhLrYH','plugins','document','length','getSelectedBlocks','6646668VSASui','hasContent','selection','includes','11JNRssL','_commandDefinitions','requiresContent','config','isEnabled','287740jEHqTx','model','2281335dvjSGn','element','getItems','getRanges','isCollapsed','6RpGaGn','values'];_0x39ff=function(){return _0x48a7f9;};return _0x39ff();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x25f9bb,_0x1ba2e4,_0xfe5c51){const t=_0x25f9bb['t'];switch(_0x1ba2e4){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',_0xfe5c51);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0xfe5c51);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'},_0xfe5c51);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 _0x1ba2e4;}}
|
|
@@ -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(_0x151413,_0x49972d){const _0x5a00a6=(0x0,_0x49972d['t'])('Other');return _0x151413['length']?'groupId'in _0x151413[0x0]?_0x151413:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5a00a6,'order':0x1/0x0,'commands':_0x151413}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5a00a6,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x228359=_0x47ca;(function(_0xc7f601,_0x43e14c){const _0x52ae4d=_0x47ca,_0x114f1d=_0xc7f601();while(!![]){try{const _0x77069f=parseInt(_0x52ae4d(0x158))/0x1+parseInt(_0x52ae4d(0x161))/0x2+-parseInt(_0x52ae4d(0x15b))/0x3+-parseInt(_0x52ae4d(0x172))/0x4+parseInt(_0x52ae4d(0x137))/0x5*(-parseInt(_0x52ae4d(0x194))/0x6)+parseInt(_0x52ae4d(0x12f))/0x7+-parseInt(_0x52ae4d(0x191))/0x8;if(_0x77069f===_0x43e14c)break;else _0x114f1d['push'](_0x114f1d['shift']());}catch(_0x304d02){_0x114f1d['push'](_0x114f1d['shift']());}}}(_0x529a,0x77384));import{ContextPlugin as _0x2e8034}from'ckeditor5/src/core.js';import{AIConnector as _0x350e5d}from'../aicore/aiconnector.js';import{AIEditing as _0x3637a8}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x3107c1,AIBalloonView as _0x54c7ff}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x47ca(_0x49f826,_0x19e92d){const _0x529a8d=_0x529a();return _0x47ca=function(_0x47ca6e,_0x27e847){_0x47ca6e=_0x47ca6e-0x12c;let _0x39e856=_0x529a8d[_0x47ca6e];return _0x39e856;},_0x47ca(_0x49f826,_0x19e92d);}import{getAllMarkersDomElementsSorted as _0x5641f2}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1b2592,Rect as _0x5f2fb3,scrollViewportToShowTarget as _0x106d7d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2498a6}from'../aicore/utils/geteditorfromcontext.js';function _0x529a(){const _0x2aa84b=['AIBalloon','setupRotator','dialogClosed','updateContent','_setupMarkerRemovalListener','isEqual','_getSelectionElements','start','ai-selection:','config','stopListening','mainView','width','AI_ACTIONS_SELECTION_REMOVED_ERROR','iconView','isPremiumPlugin','commands','end','close','bind','aiBalloon','showRotator','startsWith','label','updatePosition','differ','editing','hide','906788WinoZU','max','getChangedMarkers','924279ZLhGfk','requires','ai-balloon-selection','isOpen','left','isTrackChangesOn','785858SLdAyk','markers','getVisible','context','_cleanupMarkerRemovalListener','_updateBalloon','_showDialog','getIntersection','model','pluginName','_isUpdatingMarkers','ai-balloon-','isOfficialPlugin','top','_pendingRenderCallback','window','height','585336Nmdkld','ai-balloon','fire','hideFakeVisualSelection','AIEditing','ai-selection','value','getBoundingRect','_config','open','_calculateDialogPosition','change','view','showFakeVisualSelection','\x20ai-balloon-rotator','title','render','content','ranges','ai.availableReplyActions','rootName','root','_setupVisualSelection','document','get','balloonView','getMarkersGroup','selectionRemoved','locale','show','filter','5335496MeoBRe','bottom','delegate','1924908dkJxHZ','listenTo','showBlockingError','$graveyard','6661249KBGiNJ','round','off','trackChanges','headerView','_calculateOptimalTopPosition','length','index','10iDPUkX','Dialog','once','plugins','icon'];_0x529a=function(){return _0x2aa84b;};return _0x529a();}import{AI_REPLY_ACTIONS as _0x38b078}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x38d4ba}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x3107c1,_0x228359(0x13e),_0x228359(0x18d)];const z=0xa;export class AIBalloon extends _0x2e8034{static get[_0x228359(0x15c)](){return[_0x350e5d,_0x3637a8];}static get[_0x228359(0x16a)](){const _0xe1f861=_0x228359;return _0xe1f861(0x13c);}static get[_0x228359(0x16d)](){return!0x0;}static get[_0x228359(0x14b)](){return!0x0;}[_0x228359(0x15e)]=!0x1;[_0x228359(0x17a)];[_0x228359(0x16b)]=!0x1;[_0x228359(0x16f)]=null;[_0x228359(0x17b)](_0x407664){const _0x4afc11=_0x228359,_0x43d252=_0x2498a6(this[_0x4afc11(0x164)]);if(this[_0x4afc11(0x17a)]=_0x407664,this[_0x4afc11(0x15e)])return void this[_0x4afc11(0x166)](_0x407664);const _0x3509c2=this[_0x4afc11(0x164)][_0x4afc11(0x145)][_0x4afc11(0x18a)](_0x4afc11(0x185))||[..._0x38b078],_0x21de6d=_0x43d252?.[_0x4afc11(0x14c)][_0x4afc11(0x18a)](_0x4afc11(0x132)),_0x2b206e=_0x21de6d?.[_0x4afc11(0x178)];this[_0x4afc11(0x18b)]=new _0x54c7ff(_0x43d252[_0x4afc11(0x18e)],_0x407664,_0x3509c2,!!_0x2b206e),this[_0x4afc11(0x18b)][_0x4afc11(0x193)](..._0x3107c1)['to'](this),_0x21de6d&&this[_0x4afc11(0x18b)][_0x4afc11(0x14f)](_0x4afc11(0x160))['to'](_0x21de6d,_0x4afc11(0x178)),this[_0x4afc11(0x167)](_0x407664);}[_0x228359(0x14e)](){const _0x4fa599=_0x228359;_0x2498a6(this[_0x4fa599(0x164)])[_0x4fa599(0x13a)][_0x4fa599(0x18a)](_0x4fa599(0x138))[_0x4fa599(0x157)]();}[_0x228359(0x166)](_0x294376){const _0x3fb212=_0x228359,_0x265380=_0x2498a6(this[_0x3fb212(0x164)]),_0x5c9fdc=_0x265380[_0x3fb212(0x13a)][_0x3fb212(0x18a)](_0x3fb212(0x138));this[_0x3fb212(0x16f)]&&(_0x265380[_0x3fb212(0x156)][_0x3fb212(0x17e)][_0x3fb212(0x131)](_0x3fb212(0x182),this[_0x3fb212(0x16f)]),this[_0x3fb212(0x16f)]=null),this[_0x3fb212(0x16b)]=!0x0,_0x5c9fdc[_0x3fb212(0x17e)]?.[_0x3fb212(0x133)]&&(_0x5c9fdc[_0x3fb212(0x17e)][_0x3fb212(0x133)][_0x3fb212(0x153)]=_0x294376[_0x3fb212(0x181)],_0x5c9fdc[_0x3fb212(0x17e)][_0x3fb212(0x133)][_0x3fb212(0x14a)]&&_0x294376[_0x3fb212(0x13b)]&&(_0x5c9fdc[_0x3fb212(0x17e)][_0x3fb212(0x133)][_0x3fb212(0x14a)][_0x3fb212(0x183)]=_0x294376[_0x3fb212(0x13b)])),this[_0x3fb212(0x18b)][_0x3fb212(0x13f)](_0x294376[_0x3fb212(0x147)]),this[_0x3fb212(0x188)](_0x294376[_0x3fb212(0x184)],_0x294376[_0x3fb212(0x136)]),this[_0x3fb212(0x16f)]=()=>{const _0x2b919e=_0x3fb212;this[_0x2b919e(0x16b)]=!0x1,this[_0x2b919e(0x16f)]=null,_0x5c9fdc[_0x2b919e(0x17e)]&&_0x5c9fdc[_0x2b919e(0x17e)][_0x2b919e(0x154)]();},_0x265380[_0x3fb212(0x156)][_0x3fb212(0x17e)][_0x3fb212(0x139)](_0x3fb212(0x182),this[_0x3fb212(0x16f)]);}[_0x228359(0x188)](_0x5045ec,_0x6a19a6){const _0x52f1e7=_0x228359;this[_0x52f1e7(0x164)][_0x52f1e7(0x13a)][_0x52f1e7(0x18a)](_0x3637a8)[_0x52f1e7(0x17f)](_0x5045ec,_0x52f1e7(0x16c)+_0x6a19a6,!0x0,!0x0);}[_0x228359(0x167)](_0x53aa6f){const _0x40780a=_0x228359,_0x3e78dd=_0x2498a6(this[_0x40780a(0x164)]);this[_0x40780a(0x188)](_0x53aa6f[_0x40780a(0x184)],_0x53aa6f[_0x40780a(0x136)]);const _0x101ece=this[_0x40780a(0x142)]();_0x101ece&&_0x101ece[0x0]&&_0x106d7d({'target':_0x101ece[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x3e78dd[_0x40780a(0x13a)][_0x40780a(0x18a)](_0x40780a(0x138))[_0x40780a(0x18f)]({'title':_0x53aa6f[_0x40780a(0x181)],'icon':_0x53aa6f[_0x40780a(0x13b)],'hasCloseButton':!0x0,'id':_0x40780a(0x150),'position':this[_0x40780a(0x17c)][_0x40780a(0x14f)](this),'className':_0x40780a(0x173)+(_0x53aa6f[_0x40780a(0x151)]?_0x40780a(0x180):''),'content':this[_0x40780a(0x18b)],'onShow':_0x2da2de=>{const _0x5c2518=_0x40780a;_0x53aa6f[_0x5c2518(0x151)]&&this[_0x5c2518(0x18b)][_0x5c2518(0x13d)](_0x2da2de),this[_0x5c2518(0x140)](),this[_0x5c2518(0x15e)]=!0x0;},'onHide':()=>{const _0x332ee5=_0x40780a;this[_0x332ee5(0x164)][_0x332ee5(0x13a)][_0x332ee5(0x18a)](_0x332ee5(0x176))[_0x332ee5(0x175)](_0x332ee5(0x16c)+this[_0x332ee5(0x17a)][_0x332ee5(0x136)]),this[_0x332ee5(0x165)](),this[_0x332ee5(0x174)](_0x332ee5(0x13e)),this[_0x332ee5(0x15e)]=!0x1;}});}[_0x228359(0x17c)](_0x4888af,_0x533be7){const _0x4890e8=_0x228359;if(!_0x533be7)return null;const _0x323733=this[_0x4890e8(0x142)]();if(!_0x323733||0x0===_0x323733[_0x4890e8(0x135)])return{'left':Math[_0x4890e8(0x130)](_0x533be7[_0x4890e8(0x15f)]+_0x533be7[_0x4890e8(0x148)]/0x2-_0x4888af[_0x4890e8(0x148)]/0x2),'top':Math[_0x4890e8(0x130)](_0x533be7[_0x4890e8(0x16e)]+_0x533be7[_0x4890e8(0x171)]/0x2-_0x4888af[_0x4890e8(0x171)]/0x2)};const _0x52d157=Math[_0x4890e8(0x130)](_0x533be7[_0x4890e8(0x15f)]+_0x533be7[_0x4890e8(0x148)]/0x2-_0x4888af[_0x4890e8(0x148)]/0x2),_0x46b6a5=new _0x5f2fb3(_0x323733[0x0]),_0x1d4877=new _0x5f2fb3(_0x323733[_0x323733[_0x4890e8(0x135)]-0x1]),_0x24204f=_0x4888af[_0x4890e8(0x171)],_0x48af5a=this[_0x4890e8(0x17a)][_0x4890e8(0x151)]?0x8:0x0;return{'left':_0x52d157,'top':this[_0x4890e8(0x134)](_0x46b6a5,_0x1d4877,_0x24204f,_0x48af5a,_0x533be7)};}[_0x228359(0x134)](_0x2a8bac,_0x1def6b,_0x167d97,_0x4dbb35=0x0,_0x55ed36){const _0x2c0d15=_0x228359,_0x2aeccc=_0x167d97+_0x4dbb35,_0xb21c9b=new _0x5f2fb3(_0x1b2592[_0x2c0d15(0x170)]),_0x2afce0=[_0x2a8bac[_0x2c0d15(0x163)](),_0x1def6b[_0x2c0d15(0x163)]()][_0x2c0d15(0x190)](_0x159966=>_0x159966),_0x2d30a8=_0x5f2fb3[_0x2c0d15(0x179)](_0x2afce0);if(!_0x2d30a8)return Math[_0x2c0d15(0x130)](_0x55ed36[_0x2c0d15(0x16e)]+_0x55ed36[_0x2c0d15(0x171)]/0x2);const _0x5c49d1=_0xb21c9b[_0x2c0d15(0x168)](_0x2d30a8);if(!_0x5c49d1)return Math[_0x2c0d15(0x130)](_0x55ed36[_0x2c0d15(0x16e)]+_0x55ed36[_0x2c0d15(0x171)]/0x2);const _0x1e11a0=_0x55ed36[_0x2c0d15(0x163)](),_0x46f0c6=_0x1e11a0&&_0x2d30a8[_0x2c0d15(0x171)]>_0x1e11a0[_0x2c0d15(0x171)],_0x2bc166=_0x5c49d1[_0x2c0d15(0x16e)],_0x5c2c5a=_0x5c49d1[_0x2c0d15(0x192)];if(_0x46f0c6){const _0x107276=(_0x1e11a0||_0xb21c9b)[_0x2c0d15(0x171)]/0x2-_0x2aeccc/0x2,_0x1b2925=_0x2bc166-z-_0x55ed36[_0x2c0d15(0x16e)],_0x563cc2=_0x55ed36[_0x2c0d15(0x192)]-_0x5c2c5a-z;return _0x1b2925>=_0x2aeccc?Math[_0x2c0d15(0x159)](z,_0x2bc166-_0x2aeccc-z):_0x563cc2>=_0x2aeccc?_0x5c2c5a+z:Math[_0x2c0d15(0x159)](z,_0x107276);}const _0x2cf051=_0x2bc166-_0x2aeccc,_0x12fb9e=_0x55ed36[_0x2c0d15(0x192)]-_0x5c2c5a-z,_0x28735e=_0x2bc166-z-_0x55ed36[_0x2c0d15(0x16e)];let _0x4696b5;if(_0x12fb9e>=_0x2aeccc)_0x4696b5=_0x5c2c5a+z;else{if(_0x28735e>=_0x2aeccc)_0x4696b5=_0x2cf051-z;else _0x4696b5=_0x2bc166+_0x2d30a8[_0x2c0d15(0x171)]/0x2-_0x2aeccc/0x2;}return _0x4696b5;}[_0x228359(0x140)](){const _0x20a09f=_0x228359,_0x572e2d=_0x2498a6(this[_0x20a09f(0x164)]);this[_0x20a09f(0x12c)](_0x572e2d[_0x20a09f(0x169)][_0x20a09f(0x189)],_0x20a09f(0x17d),()=>{const _0x580734=_0x20a09f;if(this[_0x580734(0x16b)])return;for(const {name:_0x3b393b,data:{newRange:_0x4a28d7}}of _0x572e2d[_0x580734(0x169)][_0x580734(0x189)][_0x580734(0x155)][_0x580734(0x15a)]())if(_0x3b393b[_0x580734(0x152)](_0x580734(0x144))&&(_0x4a28d7&&(_0x4a28d7[_0x580734(0x143)][_0x580734(0x141)](_0x4a28d7[_0x580734(0x14d)])||_0x580734(0x12e)==_0x4a28d7[_0x580734(0x187)][_0x580734(0x186)])||null==_0x4a28d7)){const _0x42e0ee=_0x38d4ba(this[_0x580734(0x164)][_0x580734(0x18e)],_0x580734(0x149));this[_0x580734(0x18b)][_0x580734(0x12d)](_0x42e0ee),this[_0x580734(0x174)](_0x580734(0x18d));}});}[_0x228359(0x165)](){const _0x3f0af3=_0x228359,_0x45f27d=_0x2498a6(this[_0x3f0af3(0x164)]);this[_0x3f0af3(0x146)](_0x45f27d[_0x3f0af3(0x169)][_0x3f0af3(0x189)]);}[_0x228359(0x142)](){const _0x29aed3=_0x228359,_0x56b350=_0x2498a6(this[_0x29aed3(0x164)]);return _0x5641f2(_0x56b350[_0x29aed3(0x156)],[..._0x56b350[_0x29aed3(0x169)][_0x29aed3(0x162)][_0x29aed3(0x18c)](_0x29aed3(0x177)),..._0x56b350[_0x29aed3(0x169)][_0x29aed3(0x162)][_0x29aed3(0x18c)](_0x29aed3(0x15d))]);}}
|
|
23
|
+
const _0x328cbd=_0xb404;(function(_0x4e01d9,_0x2aa558){const _0x100a11=_0xb404,_0x3789af=_0x4e01d9();while(!![]){try{const _0x5567dd=-parseInt(_0x100a11(0x10d))/0x1+parseInt(_0x100a11(0x116))/0x2+parseInt(_0x100a11(0x144))/0x3+-parseInt(_0x100a11(0x163))/0x4+-parseInt(_0x100a11(0x126))/0x5+parseInt(_0x100a11(0x117))/0x6*(parseInt(_0x100a11(0x157))/0x7)+parseInt(_0x100a11(0x12a))/0x8;if(_0x5567dd===_0x2aa558)break;else _0x3789af['push'](_0x3789af['shift']());}catch(_0x2e0440){_0x3789af['push'](_0x3789af['shift']());}}}(_0x254f,0x94112));function _0x254f(){const _0x1c17ed=['AI_ACTIONS_SELECTION_REMOVED_ERROR','listenTo','8082280Luhwzk','window','icon','showBlockingError','_setupVisualSelection','length','close','ai-selection','render','getChangedMarkers','_isUpdatingMarkers','requires','\x20ai-balloon-rotator','startsWith','show','hideFakeVisualSelection','ai-balloon-selection','pluginName','document','aiBalloon','_getSelectionElements','isOfficialPlugin','isTrackChangesOn','showFakeVisualSelection','setupRotator','getIntersection','366945LHMzdQ','isPremiumPlugin','ranges','hide','round','updateContent','_config','markers','start','_updateBalloon','value','locale','get','headerView','iconView','max','content','config','ai-balloon','6506171suxQpi','end','_pendingRenderCallback','label','getMarkersGroup','height','fire','trackChanges','AIBalloon','selectionRemoved','title','off','1722828MvyUzv','updatePosition','once','AIEditing','_calculateOptimalTopPosition','getBoundingRect','left','commands','plugins','view','ai-selection:','bottom','context','differ','stopListening','root','isOpen','mainView','showRotator','447879GfaQGa','dialogClosed','Dialog','filter','_showDialog','top','rootName','bind','_setupMarkerRemovalListener','362642awIAPm','6ttpDEm','$graveyard','_cleanupMarkerRemovalListener','ai.availableReplyActions','getVisible','open','ai-balloon-','isEqual','delegate','index','width','model','editing','change','balloonView','3791530meFAlr','_calculateDialogPosition'];_0x254f=function(){return _0x1c17ed;};return _0x254f();}import{ContextPlugin as _0x1f212b}from'ckeditor5/src/core.js';import{AIConnector as _0xacf6e3}from'../aicore/aiconnector.js';import{AIEditing as _0x59716e}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x463908,AIBalloonView as _0x4b548c}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1c8793}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4374b6,Rect as _0x42c2c3,scrollViewportToShowTarget as _0x4641bb}from'ckeditor5/src/utils.js';function _0xb404(_0x1f551c,_0x24177d){const _0x254f94=_0x254f();return _0xb404=function(_0xb40401,_0x2beee0){_0xb40401=_0xb40401-0x102;let _0x40f063=_0x254f94[_0xb40401];return _0x40f063;},_0xb404(_0x1f551c,_0x24177d);}import{getEditorFromContext as _0x2b3fa1}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x355ebd}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x36afcb}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x463908,_0x328cbd(0x10e),_0x328cbd(0x160)];const g=0xa;export class AIBalloon extends _0x1f212b{static get[_0x328cbd(0x135)](){return[_0xacf6e3,_0x59716e];}static get[_0x328cbd(0x13b)](){const _0x42eb4b=_0x328cbd;return _0x42eb4b(0x15f);}static get[_0x328cbd(0x13f)](){return!0x0;}static get[_0x328cbd(0x145)](){return!0x0;}[_0x328cbd(0x10a)]=!0x1;[_0x328cbd(0x14a)];[_0x328cbd(0x134)]=!0x1;[_0x328cbd(0x159)]=null;[_0x328cbd(0x11c)](_0x585f49){const _0x53adc2=_0x328cbd,_0x37c61e=_0x2b3fa1(this[_0x53adc2(0x106)]);if(this[_0x53adc2(0x14a)]=_0x585f49,this[_0x53adc2(0x10a)])return void this[_0x53adc2(0x14d)](_0x585f49);const _0x1c8279=this[_0x53adc2(0x106)][_0x53adc2(0x155)][_0x53adc2(0x150)](_0x53adc2(0x11a))||[..._0x355ebd],_0x32dbdb=_0x37c61e?.[_0x53adc2(0x16a)][_0x53adc2(0x150)](_0x53adc2(0x15e)),_0x43501a=_0x32dbdb?.[_0x53adc2(0x14e)];this[_0x53adc2(0x125)]=new _0x4b548c(_0x37c61e[_0x53adc2(0x14f)],_0x585f49,_0x1c8279,!!_0x43501a),this[_0x53adc2(0x125)][_0x53adc2(0x11f)](..._0x463908)['to'](this),_0x32dbdb&&this[_0x53adc2(0x125)][_0x53adc2(0x114)](_0x53adc2(0x140))['to'](_0x32dbdb,_0x53adc2(0x14e)),this[_0x53adc2(0x111)](_0x585f49);}[_0x328cbd(0x130)](){const _0x246dd9=_0x328cbd;_0x2b3fa1(this[_0x246dd9(0x106)])[_0x246dd9(0x102)][_0x246dd9(0x150)](_0x246dd9(0x10f))[_0x246dd9(0x147)]();}[_0x328cbd(0x14d)](_0x28a488){const _0x48f2b8=_0x328cbd,_0x495d43=_0x2b3fa1(this[_0x48f2b8(0x106)]),_0x1457fe=_0x495d43[_0x48f2b8(0x102)][_0x48f2b8(0x150)](_0x48f2b8(0x10f));this[_0x48f2b8(0x159)]&&(_0x495d43[_0x48f2b8(0x123)][_0x48f2b8(0x103)][_0x48f2b8(0x162)](_0x48f2b8(0x132),this[_0x48f2b8(0x159)]),this[_0x48f2b8(0x159)]=null),this[_0x48f2b8(0x134)]=!0x0,_0x1457fe[_0x48f2b8(0x103)]?.[_0x48f2b8(0x151)]&&(_0x1457fe[_0x48f2b8(0x103)][_0x48f2b8(0x151)][_0x48f2b8(0x15a)]=_0x28a488[_0x48f2b8(0x161)],_0x1457fe[_0x48f2b8(0x103)][_0x48f2b8(0x151)][_0x48f2b8(0x152)]&&_0x28a488[_0x48f2b8(0x12c)]&&(_0x1457fe[_0x48f2b8(0x103)][_0x48f2b8(0x151)][_0x48f2b8(0x152)][_0x48f2b8(0x154)]=_0x28a488[_0x48f2b8(0x12c)])),this[_0x48f2b8(0x125)][_0x48f2b8(0x149)](_0x28a488[_0x48f2b8(0x10b)]),this[_0x48f2b8(0x12e)](_0x28a488[_0x48f2b8(0x146)],_0x28a488[_0x48f2b8(0x120)]),this[_0x48f2b8(0x159)]=()=>{const _0x27e3f7=_0x48f2b8;this[_0x27e3f7(0x134)]=!0x1,this[_0x27e3f7(0x159)]=null,_0x1457fe[_0x27e3f7(0x103)]&&_0x1457fe[_0x27e3f7(0x103)][_0x27e3f7(0x164)]();},_0x495d43[_0x48f2b8(0x123)][_0x48f2b8(0x103)][_0x48f2b8(0x165)](_0x48f2b8(0x132),this[_0x48f2b8(0x159)]);}[_0x328cbd(0x12e)](_0x191923,_0x4016c7){const _0x1dbc79=_0x328cbd;this[_0x1dbc79(0x106)][_0x1dbc79(0x102)][_0x1dbc79(0x150)](_0x59716e)[_0x1dbc79(0x141)](_0x191923,_0x1dbc79(0x11d)+_0x4016c7,!0x0,!0x0);}[_0x328cbd(0x111)](_0xb2d92b){const _0x16d3ef=_0x328cbd,_0x16cb83=_0x2b3fa1(this[_0x16d3ef(0x106)]);this[_0x16d3ef(0x12e)](_0xb2d92b[_0x16d3ef(0x146)],_0xb2d92b[_0x16d3ef(0x120)]);const _0x3d7dd3=this[_0x16d3ef(0x13e)]();_0x3d7dd3&&_0x3d7dd3[0x0]&&_0x4641bb({'target':_0x3d7dd3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x16cb83[_0x16d3ef(0x102)][_0x16d3ef(0x150)](_0x16d3ef(0x10f))[_0x16d3ef(0x138)]({'title':_0xb2d92b[_0x16d3ef(0x161)],'icon':_0xb2d92b[_0x16d3ef(0x12c)],'hasCloseButton':!0x0,'id':_0x16d3ef(0x13d),'position':this[_0x16d3ef(0x127)][_0x16d3ef(0x114)](this),'className':_0x16d3ef(0x156)+(_0xb2d92b[_0x16d3ef(0x10c)]?_0x16d3ef(0x136):''),'content':this[_0x16d3ef(0x125)],'onShow':_0x40cc63=>{const _0x19d90d=_0x16d3ef;_0xb2d92b[_0x19d90d(0x10c)]&&this[_0x19d90d(0x125)][_0x19d90d(0x142)](_0x40cc63),this[_0x19d90d(0x115)](),this[_0x19d90d(0x10a)]=!0x0;},'onHide':()=>{const _0x56af2b=_0x16d3ef;this[_0x56af2b(0x106)][_0x56af2b(0x102)][_0x56af2b(0x150)](_0x56af2b(0x166))[_0x56af2b(0x139)](_0x56af2b(0x11d)+this[_0x56af2b(0x14a)][_0x56af2b(0x120)]),this[_0x56af2b(0x119)](),this[_0x56af2b(0x15d)](_0x56af2b(0x10e)),this[_0x56af2b(0x10a)]=!0x1;}});}[_0x328cbd(0x127)](_0xa38eeb,_0x1035fe){const _0x147244=_0x328cbd;if(!_0x1035fe)return null;const _0x1e4da1=this[_0x147244(0x13e)]();if(!_0x1e4da1||0x0===_0x1e4da1[_0x147244(0x12f)])return{'left':Math[_0x147244(0x148)](_0x1035fe[_0x147244(0x169)]+_0x1035fe[_0x147244(0x121)]/0x2-_0xa38eeb[_0x147244(0x121)]/0x2),'top':Math[_0x147244(0x148)](_0x1035fe[_0x147244(0x112)]+_0x1035fe[_0x147244(0x15c)]/0x2-_0xa38eeb[_0x147244(0x15c)]/0x2)};const _0x1285d4=Math[_0x147244(0x148)](_0x1035fe[_0x147244(0x169)]+_0x1035fe[_0x147244(0x121)]/0x2-_0xa38eeb[_0x147244(0x121)]/0x2),_0x1bdc02=new _0x42c2c3(_0x1e4da1[0x0]),_0x56c78d=new _0x42c2c3(_0x1e4da1[_0x1e4da1[_0x147244(0x12f)]-0x1]),_0x7921bb=_0xa38eeb[_0x147244(0x15c)],_0x39eb05=this[_0x147244(0x14a)][_0x147244(0x10c)]?0x8:0x0;return{'left':_0x1285d4,'top':this[_0x147244(0x167)](_0x1bdc02,_0x56c78d,_0x7921bb,_0x39eb05,_0x1035fe)};}[_0x328cbd(0x167)](_0x598263,_0x4135bb,_0x394600,_0x539b16=0x0,_0x3e5204){const _0x45529a=_0x328cbd,_0x2f8903=_0x394600+_0x539b16,_0x33cd02=new _0x42c2c3(_0x4374b6[_0x45529a(0x12b)]),_0x3c1e43=[_0x598263[_0x45529a(0x11b)](),_0x4135bb[_0x45529a(0x11b)]()][_0x45529a(0x110)](_0x4b7112=>_0x4b7112),_0x2d0732=_0x42c2c3[_0x45529a(0x168)](_0x3c1e43);if(!_0x2d0732)return Math[_0x45529a(0x148)](_0x3e5204[_0x45529a(0x112)]+_0x3e5204[_0x45529a(0x15c)]/0x2);const _0x7c99b1=_0x33cd02[_0x45529a(0x143)](_0x2d0732);if(!_0x7c99b1)return Math[_0x45529a(0x148)](_0x3e5204[_0x45529a(0x112)]+_0x3e5204[_0x45529a(0x15c)]/0x2);const _0x5bfbba=_0x3e5204[_0x45529a(0x11b)](),_0x34b46a=_0x5bfbba&&_0x2d0732[_0x45529a(0x15c)]>_0x5bfbba[_0x45529a(0x15c)],_0x228ac5=_0x7c99b1[_0x45529a(0x112)],_0xf3452e=_0x7c99b1[_0x45529a(0x105)];if(_0x34b46a){const _0x1db2e6=(_0x5bfbba||_0x33cd02)[_0x45529a(0x15c)]/0x2-_0x2f8903/0x2,_0x4a6895=_0x228ac5-g-_0x3e5204[_0x45529a(0x112)],_0x966b4c=_0x3e5204[_0x45529a(0x105)]-_0xf3452e-g;return _0x4a6895>=_0x2f8903?Math[_0x45529a(0x153)](g,_0x228ac5-_0x2f8903-g):_0x966b4c>=_0x2f8903?_0xf3452e+g:Math[_0x45529a(0x153)](g,_0x1db2e6);}const _0x50ee83=_0x228ac5-_0x2f8903,_0x53af03=_0x3e5204[_0x45529a(0x105)]-_0xf3452e-g,_0x4785fc=_0x228ac5-g-_0x3e5204[_0x45529a(0x112)];let _0x5eb4ca;if(_0x53af03>=_0x2f8903)_0x5eb4ca=_0xf3452e+g;else{if(_0x4785fc>=_0x2f8903)_0x5eb4ca=_0x50ee83-g;else _0x5eb4ca=_0x228ac5+_0x2d0732[_0x45529a(0x15c)]/0x2-_0x2f8903/0x2;}return _0x5eb4ca;}[_0x328cbd(0x115)](){const _0x2bd2a9=_0x328cbd,_0x1e1a27=_0x2b3fa1(this[_0x2bd2a9(0x106)]);this[_0x2bd2a9(0x129)](_0x1e1a27[_0x2bd2a9(0x122)][_0x2bd2a9(0x13c)],_0x2bd2a9(0x124),()=>{const _0x58c830=_0x2bd2a9;if(this[_0x58c830(0x134)])return;for(const {name:_0x5132c1,data:{newRange:_0x57baf3}}of _0x1e1a27[_0x58c830(0x122)][_0x58c830(0x13c)][_0x58c830(0x107)][_0x58c830(0x133)]())if(_0x5132c1[_0x58c830(0x137)](_0x58c830(0x104))&&(_0x57baf3&&(_0x57baf3[_0x58c830(0x14c)][_0x58c830(0x11e)](_0x57baf3[_0x58c830(0x158)])||_0x58c830(0x118)==_0x57baf3[_0x58c830(0x109)][_0x58c830(0x113)])||null==_0x57baf3)){const _0x49f239=_0x36afcb(this[_0x58c830(0x106)][_0x58c830(0x14f)],_0x58c830(0x128));this[_0x58c830(0x125)][_0x58c830(0x12d)](_0x49f239),this[_0x58c830(0x15d)](_0x58c830(0x160));}});}[_0x328cbd(0x119)](){const _0x31d813=_0x328cbd,_0x313704=_0x2b3fa1(this[_0x31d813(0x106)]);this[_0x31d813(0x108)](_0x313704[_0x31d813(0x122)][_0x31d813(0x13c)]);}[_0x328cbd(0x13e)](){const _0x30aa22=_0x328cbd,_0x2333d6=_0x2b3fa1(this[_0x30aa22(0x106)]);return _0x1c8793(_0x2333d6[_0x30aa22(0x123)],[..._0x2333d6[_0x30aa22(0x122)][_0x30aa22(0x14b)][_0x30aa22(0x15b)](_0x30aa22(0x131)),..._0x2333d6[_0x30aa22(0x122)][_0x30aa22(0x14b)][_0x30aa22(0x15b)](_0x30aa22(0x13a))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2d9cb2,_0x377480){var _0x51f28d=_0x16be,_0x4918aa=_0x2d9cb2();while(!![]){try{var _0x5bf137=parseInt(_0x51f28d(0xad))/0x1*(parseInt(_0x51f28d(0xa6))/0x2)+parseInt(_0x51f28d(0xb0))/0x3*(parseInt(_0x51f28d(0xb2))/0x4)+parseInt(_0x51f28d(0xab))/0x5+-parseInt(_0x51f28d(0xa3))/0x6*(-parseInt(_0x51f28d(0xa9))/0x7)+-parseInt(_0x51f28d(0xa8))/0x8*(-parseInt(_0x51f28d(0xac))/0x9)+parseInt(_0x51f28d(0xa4))/0xa+-parseInt(_0x51f28d(0xa7))/0xb*(parseInt(_0x51f28d(0xae))/0xc);if(_0x5bf137===_0x377480)break;else _0x4918aa['push'](_0x4918aa['shift']());}catch(_0x10b3ab){_0x4918aa['push'](_0x4918aa['shift']());}}}(_0x38e4,0x8815d));function _0x16be(_0x4032b6,_0xdf7831){var _0x38e43b=_0x38e4();return _0x16be=function(_0x16be8f,_0xc5fef7){_0x16be8f=_0x16be8f-0xa2;var _0x2040ad=_0x38e43b[_0x16be8f];return _0x2040ad;},_0x16be(_0x4032b6,_0xdf7831);}import{View as _0x3fe4f}from'ckeditor5/src/ui.js';function _0x38e4(){var _0x79b6b1=['7nTiBmv','div','5413385wIzGiq','7372719kEsVGf','81266KyIdHy','147276AWnceS','ck-ai-balloon__disclaimer-content','309GafSoI','ck-ai-balloon__disclaimer','31484hQxKUx','AI_DISCLAIMER_TEXT','761988OQRosH','10716790HIyCeQ','setTemplate','12oXXPZj','3443DQaOup','8pwnXnk'];_0x38e4=function(){return _0x79b6b1;};return _0x38e4();}import{getTranslation as _0x204578}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x3fe4f{constructor(_0x2c3795){var _0x595df8=_0x16be;super(_0x2c3795),this[_0x595df8(0xa5)]({'tag':_0x595df8(0xaa),'attributes':{'class':['ck',_0x595df8(0xb1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x595df8(0xaf)]},'children':[{'text':_0x204578(_0x2c3795,_0x595df8(0xa2))}]}]});}}
|