@ckeditor/ckeditor5-ai 47.7.1 → 47.7.2
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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/aichatballoonview.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/aichatfeedcustomelementview.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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124c3d=_0x5836;(function(_0x1ffd86,_0x5b069a){const _0x54e47e=_0x5836,_0x5658c6=_0x1ffd86();while(!![]){try{const _0x204231=-parseInt(_0x54e47e(0xff))/0x1+-parseInt(_0x54e47e(0xeb))/0x2*(parseInt(_0x54e47e(0xec))/0x3)+-parseInt(_0x54e47e(0x11a))/0x4*(parseInt(_0x54e47e(0x12f))/0x5)+parseInt(_0x54e47e(0xf9))/0x6+-parseInt(_0x54e47e(0xf3))/0x7+-parseInt(_0x54e47e(0x138))/0x8*(-parseInt(_0x54e47e(0x135))/0x9)+parseInt(_0x54e47e(0x128))/0xa;if(_0x204231===_0x5b069a)break;else _0x5658c6['push'](_0x5658c6['shift']());}catch(_0xbeb347){_0x5658c6['push'](_0x5658c6['shift']());}}}(_0x4834,0x97fc4));function _0x5836(_0x830f9f,_0x59a396){const _0x4834e1=_0x4834();return _0x5836=function(_0x5836ea,_0x3742c3){_0x5836ea=_0x5836ea-0xe7;let _0x1133ef=_0x4834e1[_0x5836ea];return _0x1133ef;},_0x5836(_0x830f9f,_0x59a396);}import{global as _0x205980}from'ckeditor5/src/utils.js';import{View as _0x4b5dc0,ButtonView as _0x456a47,SpinnerView as _0x47e2ca}from'ckeditor5/src/ui.js';import{IconCheck as _0x1429c9,IconCopy as _0x3e85c8}from'ckeditor5/src/icons.js';import{getTranslation as _0x4126da}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x4b5dc0{[_0x124c3d(0xf7)];[_0x124c3d(0x114)];constructor(_0x5048d6,_0x459208=''){const _0x51c85c=_0x124c3d;super(_0x5048d6),this[_0x51c85c(0x136)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5b5b03=this[_0x51c85c(0xe7)];this[_0x51c85c(0xf7)]=new ContentFieldView(_0x5048d6,_0x459208),this[_0x51c85c(0x114)]=this[_0x51c85c(0x10e)](),this[_0x51c85c(0x102)]({'tag':_0x51c85c(0xf4),'attributes':{'class':['ck',_0x51c85c(0x124),_0x5b5b03['if'](_0x51c85c(0x107),_0x51c85c(0x13b),_0x140b5a=>!_0x140b5a)],'tabindex':'-1'},'children':[{'tag':_0x51c85c(0xf4),'attributes':{'class':['ck',_0x51c85c(0x111),_0x5b5b03['if'](_0x51c85c(0x121),_0x51c85c(0x112))]},'children':[this[_0x51c85c(0xf7)],{'tag':_0x51c85c(0xf4),'attributes':{'class':['ck',_0x51c85c(0x106)]},'children':[this[_0x51c85c(0x114)]]}]}]});}[_0x124c3d(0x129)](){const _0x513277=_0x124c3d;super[_0x513277(0x129)](),this[_0x513277(0x10c)]&&this[_0x513277(0xf7)][_0x513277(0x130)](this[_0x513277(0x10c)]);let _0x301046=!0x1;this['on'](_0x513277(0xfc),(_0x49b2bc,_0x4ae70a,_0x4e852b)=>{const _0x56e080=_0x513277,_0x42a618=!this[_0x56e080(0xf7)][_0x56e080(0x113)][_0x56e080(0x101)](_0x56e080(0x12c));this[_0x56e080(0xf7)][_0x56e080(0x130)](_0x4e852b),this[_0x56e080(0x121)]&&_0x42a618&&!_0x301046&&this[_0x56e080(0x113)][_0x56e080(0xf8)]({'top':this[_0x56e080(0x113)][_0x56e080(0x115)],'behavior':_0x56e080(0xfd)});}),this['on'](_0x513277(0x125),(_0x58d5e6,_0x5349b3,_0x21c76f)=>{const _0x157658=_0x513277;_0x301046=!0x1,_0x21c76f?(this[_0x157658(0x10c)]=null,this[_0x157658(0xf7)][_0x157658(0xed)]()):this[_0x157658(0x10c)]||this[_0x157658(0xf7)][_0x157658(0x130)]('');}),this[_0x513277(0x108)](this[_0x513277(0x113)],_0x513277(0x120),()=>{_0x301046=!0x0;}),this[_0x513277(0x108)](this[_0x513277(0x113)],_0x513277(0x13a),()=>{_0x301046=!0x0;});}[_0x124c3d(0x10a)](){const _0x418496=_0x124c3d;this[_0x418496(0x113)][_0x418496(0x10a)]();}[_0x124c3d(0x10e)](){const _0x5702d8=_0x124c3d,_0x2c22c9=this[_0x5702d8(0xef)],_0x3dddce=new _0x456a47(this[_0x5702d8(0xef)]),_0x2ce866=_0x5702d8(0x10d);return _0x3dddce[_0x5702d8(0x136)]({'label':_0x4126da(_0x2c22c9,_0x5702d8(0x134)),'icon':_0x3e85c8,'class':_0x2ce866,'tooltip':!0x0}),_0x3dddce[_0x5702d8(0x139)](_0x5702d8(0x107))['to'](this,_0x5702d8(0x10c),_0x1aa433=>!!_0x1aa433),_0x3dddce[_0x5702d8(0x139)](_0x5702d8(0xf5))['to'](this,_0x5702d8(0x121),_0x388f9b=>!_0x388f9b),_0x3dddce['on'](_0x5702d8(0x12e),()=>{const _0x3d8fa8=_0x5702d8;this[_0x3d8fa8(0x116)](this[_0x3d8fa8(0xf7)][_0x3d8fa8(0x113)]),_0x3dddce[_0x3d8fa8(0xf1)]=_0x1429c9,_0x3dddce[_0x3d8fa8(0x110)]=_0x2ce866+_0x3d8fa8(0x122),this[_0x3d8fa8(0x10a)](),setTimeout(()=>{const _0x153a0d=_0x3d8fa8;_0x3dddce[_0x153a0d(0xf1)]=_0x3e85c8,_0x3dddce[_0x153a0d(0x110)]=_0x2ce866;},0x3e8);}),_0x3dddce;}[_0x124c3d(0x116)](_0x512bed){const _0x547124=_0x124c3d,{window:_0x3c6f25,document:_0x3215cc}=_0x205980;if(_0x3c6f25[_0x547124(0x133)]){const {Blob:_0xa5de44,ClipboardItem:_0x28a156}=_0x3c6f25,_0x585aa9=[new _0x28a156({'text/html':new _0xa5de44([_0x512bed[_0x547124(0xf6)]],{'type':_0x547124(0x10b)}),'text/plain':new _0xa5de44([_0x512bed[_0x547124(0x11e)]||''],{'type':_0x547124(0x12b)})})];navigator[_0x547124(0x11f)][_0x547124(0xea)](_0x585aa9);}else{const _0x48f1fc=_0x3215cc[_0x547124(0xf0)](_0x547124(0xf4));_0x48f1fc[_0x547124(0xe9)][_0x547124(0x137)]=_0x547124(0x109),_0x48f1fc[_0x547124(0xe9)][_0x547124(0xf2)]=_0x547124(0xe8),_0x48f1fc[_0x547124(0xf6)]=_0x547124(0x11d)+_0x512bed[_0x547124(0xf6)]+_0x547124(0x103),_0x3215cc[_0x547124(0x117)][_0x547124(0x119)](_0x48f1fc);const _0x332d9e=_0x3215cc[_0x547124(0x105)]();_0x332d9e[_0x547124(0xee)](_0x48f1fc[_0x547124(0x12a)]),_0x332d9e[_0x547124(0x11c)](_0x48f1fc[_0x547124(0x100)]);const _0x3a6afa=_0x3c6f25[_0x547124(0x127)]();_0x3a6afa[_0x547124(0xfa)](),_0x3a6afa[_0x547124(0x132)](_0x332d9e),_0x3215cc[_0x547124(0xfb)](_0x547124(0x12d)),_0x48f1fc[_0x547124(0x10f)]();}}}export class ContentFieldView extends _0x4b5dc0{constructor(_0x41a955,_0x5151a5=''){const _0x3c7083=_0x124c3d;super(_0x41a955),this[_0x3c7083(0x131)]=this[_0x3c7083(0x123)](),this[_0x3c7083(0x102)]({'tag':_0x3c7083(0xf4),'attributes':{'class':['ck',_0x3c7083(0x11b),_0x5151a5,_0x3c7083(0xfe),_0x3c7083(0x126)]}});}[_0x124c3d(0x130)](_0x44e65a){const _0x4d7bb5=_0x124c3d;this[_0x4d7bb5(0x113)][_0x4d7bb5(0xf6)]=_0x44e65a;}[_0x124c3d(0xed)](){const _0x9cae1f=_0x124c3d;this[_0x9cae1f(0x113)][_0x9cae1f(0x119)](this[_0x9cae1f(0x131)][_0x9cae1f(0x113)]);}[_0x124c3d(0x123)](){const _0x202241=_0x124c3d,_0x55e2be=new _0x4b5dc0(),_0xd3332f=this[_0x202241(0xef)],_0x469a4c=new _0x47e2ca();return _0x469a4c[_0x202241(0x107)]=!0x0,_0x55e2be[_0x202241(0x102)]({'tag':_0x202241(0xf4),'attributes':{'class':['ck',_0x202241(0x118)]},'children':[_0x469a4c,{'text':_0x4126da(_0xd3332f,_0x202241(0x104))}]}),_0x55e2be[_0x202241(0x129)](),_0x55e2be;}}function _0x4834(){const _0xba6cd2=['_createCopyButton','remove','class','ck-ai-form__content-area','ck-ai-form__content-area--processing','element','copyButtonView','scrollHeight','_copyHTMLToClipboard','body','ck-ai-form__loader','appendChild','2364iYAbCB','ck-content','setEndBefore','<span>[</span>','textContent','clipboard','wheel','isProcessing','\x20ck-ai-form__copy-button--copied','_createLoader','ck-ai-form__content-area-wrapper','change:isProcessing','ck-ai-form__content-field','getSelection','16973390PAduIz','render','firstElementChild','text/plain','.ck-ai-form__loader','copy','execute','3670cFQZfg','setContent','loaderView','addRange','ClipboardItem','Copy','207xPgdsL','set','position','117992vMpHoG','bind','mousedown','ck-hidden','bindTemplate','-9999px','style','write','4dTLTai','1809531zGFPEV','appendLoader','setStartAfter','locale','createElement','icon','left','3724140suaMJi','div','isEnabled','innerHTML','contentFieldView','scrollTo','5666676hkakJh','removeAllRanges','execCommand','change:value','smooth','ck-reset_all-excluded','186312qbkMoa','lastElementChild','querySelector','setTemplate','<span>]</span>','AI\x20is\x20writing...','createRange','ck-ai-form__copy-button-wrapper','isVisible','listenTo','absolute','focus','text/html','value','ck-ai-form__copy-button'];_0x4834=function(){return _0xba6cd2;};return _0x4834();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2fcbff,_0x3be0b5){const _0x567712=_0x328d,_0x646f51=_0x2fcbff();while(!![]){try{const _0x370dab=-parseInt(_0x567712(0x1b4))/0x1*(-parseInt(_0x567712(0x1ad))/0x2)+parseInt(_0x567712(0x1ac))/0x3*(parseInt(_0x567712(0x1a5))/0x4)+parseInt(_0x567712(0x1b0))/0x5+-parseInt(_0x567712(0x1ae))/0x6+-parseInt(_0x567712(0x1a8))/0x7*(-parseInt(_0x567712(0x1b2))/0x8)+parseInt(_0x567712(0x1af))/0x9+-parseInt(_0x567712(0x1a9))/0xa*(parseInt(_0x567712(0x1b1))/0xb);if(_0x370dab===_0x3be0b5)break;else _0x646f51['push'](_0x646f51['shift']());}catch(_0x5e9ff2){_0x646f51['push'](_0x646f51['shift']());}}}(_0x2ea9,0x73a06));import{IconError as _0x5e5500}from'ckeditor5/src/icons.js';function _0x2ea9(){const _0x637fd1=['2132880mJrUUW','121dnqsBw','24dlStBY','content','16931iJTnkd','div','setTemplate','601444NdJvCX','ck-ai-form__error','bindTemplate','549262qbPjEa','439390eegMhb','set','text','3tiroSA','2dlWrah','1189194iZBDck','2932812ymdCVp'];_0x2ea9=function(){return _0x637fd1;};return _0x2ea9();}import{View as _0x1ea7c3,IconView as _0x419737}from'ckeditor5/src/ui.js';function _0x328d(_0x55dab9,_0x27adfc){const _0x2ea90d=_0x2ea9();return _0x328d=function(_0x328d1b,_0x334f3b){_0x328d1b=_0x328d1b-0x1a3;let _0x4462a8=_0x2ea90d[_0x328d1b];return _0x4462a8;},_0x328d(_0x55dab9,_0x27adfc);}export class AIFormErrorView extends _0x1ea7c3{constructor(_0x679991,_0x272e47=''){const _0x5be892=_0x328d;super(_0x679991);const _0x426ec3=new _0x419737(),_0x4fc470=this[_0x5be892(0x1a7)];this[_0x5be892(0x1aa)](_0x5be892(0x1ab),_0x272e47),_0x426ec3[_0x5be892(0x1b3)]=_0x5e5500,this[_0x5be892(0x1a4)]({'tag':_0x5be892(0x1a3),'attributes':{'class':['ck',_0x5be892(0x1a6)]},'children':[_0x426ec3,{'text':_0x4fc470['to'](_0x5be892(0x1ab))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a0415=_0x55fe;(function(_0xdb3178,_0x238aa8){const _0x177c6c=_0x55fe,_0x3dad30=_0xdb3178();while(!![]){try{const _0x3194a6=parseInt(_0x177c6c(0x83))/0x1+parseInt(_0x177c6c(0x8c))/0x2*(-parseInt(_0x177c6c(0x99))/0x3)+-parseInt(_0x177c6c(0xb5))/0x4+-parseInt(_0x177c6c(0x8d))/0x5+-parseInt(_0x177c6c(0xb1))/0x6+-parseInt(_0x177c6c(0x82))/0x7*(parseInt(_0x177c6c(0x8f))/0x8)+parseInt(_0x177c6c(0x9e))/0x9;if(_0x3194a6===_0x238aa8)break;else _0x3dad30['push'](_0x3dad30['shift']());}catch(_0xc2bb16){_0x3dad30['push'](_0x3dad30['shift']());}}}(_0x2ee5,0x8296e));import{Rect as _0x279b10,global as _0x598b95,isVisible as _0x4bd1ba}from'ckeditor5/src/utils.js';function _0x55fe(_0x70ab30,_0x13ea0b){const _0x2ee537=_0x2ee5();return _0x55fe=function(_0x55fe0b,_0x1acb85){_0x55fe0b=_0x55fe0b-0x80;let _0x50deb0=_0x2ee537[_0x55fe0b];return _0x50deb0;},_0x55fe(_0x70ab30,_0x13ea0b);}import{IconAIHistory as _0x48b661,IconSubmit as _0x44cae4}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x44f92a,ButtonView as _0xb1b708}from'ckeditor5/src/ui.js';import{getTranslation as _0x563b8a}from'../../utils/common-translations.js';function _0x2ee5(){const _0x41e721=['locale','filteredView','render','4135708jRTeGK','enter','value','History','ck-ai-form__submit','excludeScrollbarsAndBorders','10871BALoij','727001SsioAa','focusCycler','focus','fieldView','target','queryView','focusableChildren','submit','focusLast','26hQdXwU','2848295WtrYsB','submitButtonView','56tgHxfv','children','add','rtl','_createSubmitButton','minRows','showHistoryButtonView','isEnabled','isVisible','Submit','186153Rnkowr','fire','set','update','right','22469130hitAZt','uiLanguageDirection','isEmpty','left','style','fieldWrapperChildren','resultsView','focusFirst','width','requestAnimationFrame','execute','_createShowHistoryButton','ck-ai-form__toggle-history','window','element','isOn','keystrokes','maxRows','bind','1605342BCrwLC'];_0x2ee5=function(){return _0x41e721;};return _0x2ee5();}export class AIFormPromptView extends _0x44f92a{[_0x5a0415(0x8e)];[_0x5a0415(0x95)];constructor(_0x136299,_0x335eba){const _0x16c3d7=_0x5a0415;super(_0x136299,_0x335eba),this[_0x16c3d7(0x88)][_0x16c3d7(0x86)][_0x16c3d7(0x94)]=0x1,this[_0x16c3d7(0x88)][_0x16c3d7(0x86)][_0x16c3d7(0xaf)]=0x3,this[_0x16c3d7(0x8e)]=this[_0x16c3d7(0x93)](),this[_0x16c3d7(0x95)]=this[_0x16c3d7(0xa9)](),this[_0x16c3d7(0x89)][_0x16c3d7(0x91)](this[_0x16c3d7(0x95)],0x1),this[_0x16c3d7(0x89)][_0x16c3d7(0x91)](this[_0x16c3d7(0x8e)]);}[_0x5a0415(0xb4)](){const _0x622728=_0x5a0415;super[_0x622728(0xb4)](),this[_0x622728(0x88)][_0x622728(0xa3)][_0x622728(0x91)](this[_0x622728(0x95)]),this[_0x622728(0x90)][_0x622728(0x91)](this[_0x622728(0x8e)]),this[_0x622728(0xae)][_0x622728(0x9b)](_0x622728(0xb6),(_0x2553a8,_0x3b4ec1)=>{const _0x5533ce=_0x622728;_0x2553a8[_0x5533ce(0x87)]==this[_0x5533ce(0x88)][_0x5533ce(0x86)][_0x5533ce(0xac)]&&(this[_0x5533ce(0x8a)](),_0x3b4ec1());});}[_0x5a0415(0x93)](){const _0x279e82=_0x5a0415,_0x37fbe9=new _0xb1b708(this[_0x279e82(0xb2)]),_0x4d32da=this[_0x279e82(0xb2)];return _0x37fbe9[_0x279e82(0x9b)]({'icon':_0x44cae4,'label':_0x563b8a(_0x4d32da,_0x279e82(0x98)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x279e82(0x80)}),_0x37fbe9['on'](_0x279e82(0xa8),()=>{const _0x916a6=_0x279e82;this[_0x916a6(0x8a)]();}),_0x37fbe9[_0x279e82(0xb0)](_0x279e82(0x96))['to'](this[_0x279e82(0x88)][_0x279e82(0x86)],_0x279e82(0xa0),this,_0x279e82(0x96),(_0x1e234d,_0x57d3ba)=>!_0x1e234d&&_0x57d3ba),_0x37fbe9;}[_0x5a0415(0xa9)](){const _0x221ed7=_0x5a0415,_0x27824b=new _0xb1b708(this[_0x221ed7(0xb2)]),_0x165a1d=this[_0x221ed7(0xa4)],_0x57cfa2=this[_0x221ed7(0xb2)];_0x27824b[_0x221ed7(0x9b)]({'label':_0x563b8a(_0x57cfa2,_0x221ed7(0xb8)),'withText':!0x1,'icon':_0x48b661,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x221ed7(0xaa)}),_0x27824b[_0x221ed7(0xb0)](_0x221ed7(0xad))['to'](_0x165a1d,_0x221ed7(0x97)),_0x27824b[_0x221ed7(0xb0)](_0x221ed7(0x96))['to'](this,_0x221ed7(0x96)),_0x27824b['on'](_0x221ed7(0xa8),()=>{const _0x262d75=_0x221ed7;_0x165a1d[_0x262d75(0x97)]=!_0x165a1d[_0x262d75(0x97)],_0x165a1d[_0x262d75(0x97)]?this[_0x262d75(0xb3)][_0x262d75(0x85)]():this[_0x262d75(0x85)]();});const _0x2ae330=()=>{const _0x1960c0=_0x221ed7;_0x598b95[_0x1960c0(0xab)][_0x1960c0(0xa7)](()=>{const _0xcc8a01=_0x1960c0;if(_0x4bd1ba(this[_0xcc8a01(0xac)])){const _0x5ca8bb=new _0x279b10(this[_0xcc8a01(0x88)][_0xcc8a01(0x86)][_0xcc8a01(0xac)]),_0x2264ef=_0x5ca8bb[_0xcc8a01(0xa6)],_0x43bdc7=_0xcc8a01(0x92)===_0x57cfa2[_0xcc8a01(0x9f)]?_0xcc8a01(0xa1):_0xcc8a01(0x9d);_0x5ca8bb[_0xcc8a01(0x81)](),_0x27824b[_0xcc8a01(0xac)][_0xcc8a01(0xa2)][_0x43bdc7]=_0x2264ef-_0x5ca8bb[_0xcc8a01(0xa6)]+0x1+'px';}});};return this[_0x221ed7(0x88)][_0x221ed7(0x86)]['on'](_0x221ed7(0x9c),_0x2ae330),this['on'](_0x221ed7(0xb4),_0x2ae330),_0x27824b;}[_0x5a0415(0x8a)](){const _0x4c663d=_0x5a0415,_0x19a24f=this[_0x4c663d(0x88)][_0x4c663d(0x86)][_0x4c663d(0xac)][_0x4c663d(0xb7)];this[_0x4c663d(0x9a)](_0x4c663d(0x8a),_0x19a24f);}[_0x5a0415(0x85)](_0x349592){const _0xe2cdb8=_0x5a0415;-0x1===_0x349592?this[_0xe2cdb8(0x84)][_0xe2cdb8(0x8b)]():this[_0xe2cdb8(0x84)][_0xe2cdb8(0xa5)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x147e(_0x1d6dc7,_0x251937){const _0x81daff=_0x81da();return _0x147e=function(_0x147e28,_0xfbfa3f){_0x147e28=_0x147e28-0xa9;let _0x2c1bc3=_0x81daff[_0x147e28];return _0x2c1bc3;},_0x147e(_0x1d6dc7,_0x251937);}const _0x1edf0e=_0x147e;(function(_0x49234a,_0x5ac9a4){const _0x425c5c=_0x147e,_0x5687c=_0x49234a();while(!![]){try{const _0x3dc673=-parseInt(_0x425c5c(0xae))/0x1+parseInt(_0x425c5c(0xbd))/0x2*(-parseInt(_0x425c5c(0xb1))/0x3)+-parseInt(_0x425c5c(0xc4))/0x4+parseInt(_0x425c5c(0xac))/0x5+-parseInt(_0x425c5c(0xc2))/0x6+parseInt(_0x425c5c(0xa9))/0x7*(-parseInt(_0x425c5c(0xb3))/0x8)+parseInt(_0x425c5c(0xb7))/0x9*(parseInt(_0x425c5c(0xc9))/0xa);if(_0x3dc673===_0x5ac9a4)break;else _0x5687c['push'](_0x5687c['shift']());}catch(_0x20dd97){_0x5687c['push'](_0x5687c['shift']());}}}(_0x81da,0xea1bb));import{ToolbarView as _0x54362c,ButtonView as _0x54a1d9}from'ckeditor5/src/ui.js';import{getTranslation as _0x527824}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1edf0e(0xb2),'INSERT':_0x1edf0e(0xca)};export class AIFormToolbarView extends _0x54362c{constructor(_0x4cdbc5){const _0x4438f9=_0x1edf0e;super(_0x4cdbc5),this[_0x4438f9(0xb4)](_0x4438f9(0xc1),!0x1),this[_0x4438f9(0xb4)](_0x4438f9(0xad),AIFormToolbarViewMainActionLabel[_0x4438f9(0xc3)]),this[_0x4438f9(0xc6)]=this[_0x4438f9(0xaf)]('',_0x4438f9(0xb0)),this[_0x4438f9(0xc6)][_0x4438f9(0xbe)](_0x4438f9(0xcc))['to'](this,_0x4438f9(0xad),_0xaec5b5=>_0x527824(_0x4cdbc5,_0x4438f9(0xc8)+_0xaec5b5[_0x4438f9(0xb9)]()+_0x4438f9(0xcb))),this[_0x4438f9(0xb5)]=this[_0x4438f9(0xaf)](_0x527824(_0x4cdbc5,_0x4438f9(0xcd))),this[_0x4438f9(0xc7)]=this[_0x4438f9(0xaf)](_0x527824(_0x4cdbc5,_0x4438f9(0xba))),this[_0x4438f9(0xbb)]=this[_0x4438f9(0xaf)](_0x527824(_0x4cdbc5,_0x4438f9(0xb6)));const _0xe6b200=this[_0x4438f9(0xbc)];this[_0x4438f9(0xc0)]({'attributes':{'class':[_0x4438f9(0xab),_0xe6b200['if'](_0x4438f9(0xc1),_0x4438f9(0xaa),_0x41e6ab=>!_0x41e6ab)]}}),this[_0x4438f9(0xc5)][_0x4438f9(0xb8)]([this[_0x4438f9(0xc6)],this[_0x4438f9(0xb5)],this[_0x4438f9(0xc7)],this[_0x4438f9(0xbb)]]);}[_0x1edf0e(0xaf)](_0x2a109b,_0x58ceeb){const _0x5775db=_0x1edf0e,_0x562f50=new _0x54a1d9(this[_0x5775db(0xbf)]);return _0x562f50[_0x5775db(0xb4)]({'label':_0x2a109b,'class':_0x58ceeb||'','isVisible':!0x0,'withText':!0x0}),_0x562f50;}}function _0x81da(){const _0x4ed80f=['stopButton','bindTemplate','134OvZazH','bind','locale','extendTemplate','isVisible','3076224prnHna','REPLACE','2948704cwWuGO','items','replaceButton','tryAgainButton','AI_','4390ABMqJW','insert','_CONTENT','label','Insert\x20below','10079279QazkRX','ck-hidden','ck-ai-form__toolbar','6019655JgMeXc','mainAction','1055924tWqTon','_createButton','ck-button-action','12360nPzYsR','replace','8saSnIk','set','insertButton','Stop','77427CuMbCh','addMany','toUpperCase','Try\x20again'];_0x81da=function(){return _0x4ed80f;};return _0x81da();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x464a8d=_0x54b8;(function(_0x2fb2f0,_0x4217d6){const _0x1729eb=_0x54b8,_0x4ecdcf=_0x2fb2f0();while(!![]){try{const _0x52332f=-parseInt(_0x1729eb(0x176))/0x1+-parseInt(_0x1729eb(0x15e))/0x2*(parseInt(_0x1729eb(0x13d))/0x3)+-parseInt(_0x1729eb(0x171))/0x4*(-parseInt(_0x1729eb(0x16f))/0x5)+-parseInt(_0x1729eb(0x152))/0x6+-parseInt(_0x1729eb(0x140))/0x7*(parseInt(_0x1729eb(0x162))/0x8)+parseInt(_0x1729eb(0x145))/0x9+parseInt(_0x1729eb(0x160))/0xa*(parseInt(_0x1729eb(0x134))/0xb);if(_0x52332f===_0x4217d6)break;else _0x4ecdcf['push'](_0x4ecdcf['shift']());}catch(_0x3dffae){_0x4ecdcf['push'](_0x4ecdcf['shift']());}}}(_0x526a,0xba04c));import{FocusTracker as _0x5c5923,KeystrokeHandler as _0x4214fb}from'ckeditor5/src/utils.js';function _0x54b8(_0x41ddc1,_0x39d068){const _0x526a28=_0x526a();return _0x54b8=function(_0x54b8ed,_0x1431a2){_0x54b8ed=_0x54b8ed-0x125;let _0x4c0c68=_0x526a28[_0x54b8ed];return _0x4c0c68;},_0x54b8(_0x41ddc1,_0x39d068);}import{View as _0xc7d4c2,FocusCycler as _0xa5c565,createLabeledTextarea as _0x1cc4e2}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1ddedd,AIFormToolbarViewMainActionLabel as _0xd39199}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x504dc9}from'./aiformcontentarea.js';import{AIFormErrorView as _0x410000}from'./aiformerrorview.js';import{AIFormPromptView as _0x538ba3}from'./aiformpromptview.js';import{AIHistoryListView as _0xb50f97}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x280cde}from'./aihistorylistitemview.js';import{PromptHistory as _0x2bb517}from'./prompthistory.js';import{getTranslation as _0x523ab2}from'../../utils/common-translations.js';import{escape as _0x4d0a70}from'es-toolkit/compat';function _0x526a(){const _0x41f7a5=['focusTracker','44233OooglW','_createHistoryView','set','text','REPLACE','9946782BLlHVo','AI_ERROR_FAILED','bindTo','toolbar','isEnabled','shift\x20+\x20tab','items','delegate','focusLast','isError','Empty\x20history','queryView','insertButton','5923554coVCSn','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','clear','div','stopButton','replaceButton','listenTo','search','add','tryAgainEvent','prompt','fieldView','30XiowGX','keystrokes','21050710WEevEK','Ask\x20AI\x20to\x20improve\x20generated\x20text','424PNboeU','bindTemplate','ck-ai-form-content','locale','tab','isProcessing','_createPromptView','promptView','element','bind','submitPrompt','copyButtonView','value','333725mRFexL','fire','44oPiWXM','createCollection','_createToolbar','insertContentBelow','_promptHistory','1331676XSiBZl','ck-hidden','mainAction','chain','_focusables','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainButton','historyGroupView','replaceContent','label','focus','handleError','finishProcessing','startProcessing','execute','ck-ai-form','stopProcessing','clearHistory','reset','trim','11MbIADK','submit','isVisible','focusFirst','focusCycler','errorView','high','setTemplate','render','105738pJEGSF','contentArea'];_0x526a=function(){return _0x41f7a5;};return _0x526a();}export class AIFormView extends _0xc7d4c2{[_0x464a8d(0x13f)];[_0x464a8d(0x15f)];[_0x464a8d(0x13e)];[_0x464a8d(0x148)];[_0x464a8d(0x169)];[_0x464a8d(0x139)];[_0x464a8d(0x17a)];[_0x464a8d(0x138)];[_0x464a8d(0x175)];constructor(_0x5037c9,_0x49b3a5,_0x210c78=''){const _0xde7118=_0x464a8d;super(_0x5037c9),this[_0xde7118(0x142)](_0xde7118(0x149),!0x0),this[_0xde7118(0x142)](_0xde7118(0x167),!0x1),this[_0xde7118(0x142)](_0xde7118(0x15c),''),this[_0xde7118(0x142)](_0xde7118(0x16e),''),this[_0xde7118(0x142)](_0xde7118(0x14e),!0x1),this[_0xde7118(0x142)](_0xde7118(0x178),_0xd39199[_0xde7118(0x144)]),this[_0xde7118(0x175)]=new _0x2bb517(),this[_0xde7118(0x139)]=new _0x410000(_0x5037c9),this[_0xde7118(0x13e)]=new _0x504dc9(_0x5037c9,_0x210c78),this[_0xde7118(0x13e)][_0xde7118(0x16b)](_0xde7118(0x167))['to'](this),this[_0xde7118(0x13e)][_0xde7118(0x16b)](_0xde7118(0x16e))['to'](this),this[_0xde7118(0x148)]=this[_0xde7118(0x173)](),this[_0xde7118(0x148)][_0xde7118(0x16b)](_0xde7118(0x178))['to'](this),this[_0xde7118(0x169)]=this[_0xde7118(0x168)](),this[_0xde7118(0x13f)]=new _0x5c5923(),this[_0xde7118(0x15f)]=new _0x4214fb(),this[_0xde7118(0x17a)]=this[_0xde7118(0x172)]([this[_0xde7118(0x13e)],this[_0xde7118(0x13e)][_0xde7118(0x16d)],this[_0xde7118(0x148)],this[_0xde7118(0x169)]]),this[_0xde7118(0x138)]=new _0xa5c565({'focusables':this[_0xde7118(0x17a)],'focusTracker':this[_0xde7118(0x13f)],'keystrokeHandler':this[_0xde7118(0x15f)],'actions':{'focusPrevious':_0xde7118(0x14a),'focusNext':_0xde7118(0x166)}}),this[_0xde7118(0x138)][_0xde7118(0x179)](this[_0xde7118(0x169)][_0xde7118(0x138)]),this[_0xde7118(0x169)][_0xde7118(0x150)][_0xde7118(0x15d)][_0xde7118(0x16b)](_0xde7118(0x16e))['to'](this,_0xde7118(0x15c));const _0x4c4ba1=this[_0xde7118(0x163)];this[_0xde7118(0x13b)]({'tag':_0xde7118(0x155),'attributes':{'class':['ck',_0xde7118(0x12f),_0x49b3a5],'tabindex':'-1'},'children':[{'tag':_0xde7118(0x155),'attributes':{'class':['ck',_0xde7118(0x164)]},'children':[{'tag':_0xde7118(0x155),'attributes':{'class':[_0x4c4ba1['if'](_0xde7118(0x14e),_0xde7118(0x177),_0x15ebae=>!_0x15ebae)]},'children':[this[_0xde7118(0x139)]]},this[_0xde7118(0x13e)],this[_0xde7118(0x148)],this[_0xde7118(0x169)]]}]});}[_0x464a8d(0x13c)](){const _0x146a60=_0x464a8d;super[_0x146a60(0x13c)](),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x13e)][_0x146a60(0x16a)]),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x13e)][_0x146a60(0x16d)][_0x146a60(0x16a)]),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x148)][_0x146a60(0x16a)]),this[_0x146a60(0x13f)][_0x146a60(0x15a)](this[_0x146a60(0x169)][_0x146a60(0x16a)]),this[_0x146a60(0x15f)][_0x146a60(0x158)](this[_0x146a60(0x16a)]);}[_0x464a8d(0x12a)](_0x15588b=0x1){const _0x3ae629=_0x464a8d;-0x1===_0x15588b?this[_0x3ae629(0x138)][_0x3ae629(0x14d)]():this[_0x3ae629(0x138)][_0x3ae629(0x137)]();}[_0x464a8d(0x132)](){const _0x58b514=_0x464a8d;this[_0x58b514(0x15c)]='',this[_0x58b514(0x16e)]='',this[_0x58b514(0x14e)]=!0x1,this[_0x58b514(0x169)][_0x58b514(0x132)](),this[_0x58b514(0x13e)][_0x58b514(0x136)]=!0x1,this[_0x58b514(0x148)][_0x58b514(0x136)]=!0x1;}[_0x464a8d(0x168)](){const _0x211731=_0x464a8d,_0x5c5cc8=this[_0x211731(0x165)],_0x20e9e3=new _0x538ba3(_0x5c5cc8,{'queryView':{'label':_0x523ab2(_0x5c5cc8,_0x211731(0x125)),'creator':_0x1cc4e2,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x523ab2(_0x5c5cc8,_0x211731(0x14f)),'secondary':_0x523ab2(_0x5c5cc8,_0x211731(0x153))}}},'filteredView':this[_0x211731(0x141)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x20e9e3[_0x211731(0x16b)](_0x211731(0x149))['to'](this,_0x211731(0x149),this,_0x211731(0x167),(_0x3e206f,_0x39194e)=>_0x3e206f&&!_0x39194e),this[_0x211731(0x158)](_0x20e9e3,_0x211731(0x135),(_0x34a5e9,_0x19e57b)=>{const _0x474ebc=_0x211731;this[_0x474ebc(0x15c)]=_0x19e57b;const _0x50ed7a=_0x4d0a70(_0x19e57b);this[_0x474ebc(0x170)](_0x474ebc(0x16c),_0x50ed7a),_0x19e57b[_0x474ebc(0x133)]()&&this[_0x474ebc(0x175)][_0x474ebc(0x15a)]({'prompt':_0x50ed7a},0x0);},{'priority':_0x211731(0x13a)}),_0x20e9e3;}[_0x464a8d(0x141)](){const _0x1a7e49=_0x464a8d,_0x8c9b0=new _0xb50f97(this[_0x1a7e49(0x165)]);return _0x8c9b0[_0x1a7e49(0x127)][_0x1a7e49(0x14b)][_0x1a7e49(0x147)](this[_0x1a7e49(0x175)])['as'](_0x280cde),_0x8c9b0['on'](_0x1a7e49(0x131),()=>{const _0x1a9cf5=_0x1a7e49;this[_0x1a9cf5(0x175)][_0x1a9cf5(0x154)](),this[_0x1a9cf5(0x169)][_0x1a9cf5(0x159)](''),this[_0x1a9cf5(0x169)][_0x1a9cf5(0x12a)]();}),_0x8c9b0;}[_0x464a8d(0x173)](){const _0x717e08=_0x464a8d,_0x5bb56e=new _0x1ddedd(this[_0x717e08(0x165)]);return _0x5bb56e[_0x717e08(0x157)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x149),this,_0x717e08(0x167),this,_0x717e08(0x16e),(_0x5afe49,_0x270e02,_0xf2b92e)=>_0x5afe49&&!_0x270e02&&!!_0xf2b92e),_0x5bb56e[_0x717e08(0x157)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x128)),_0x5bb56e[_0x717e08(0x151)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x149),this,_0x717e08(0x167),this,_0x717e08(0x16e),(_0x5aa568,_0x1bb073,_0x344981)=>_0x5aa568&&!_0x1bb073&&!!_0x344981),_0x5bb56e[_0x717e08(0x151)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x174)),_0x5bb56e[_0x717e08(0x126)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x149),this,_0x717e08(0x167),(_0x89700f,_0x9c832e)=>_0x89700f&&!_0x9c832e),_0x5bb56e[_0x717e08(0x126)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x15b)),_0x5bb56e[_0x717e08(0x156)][_0x717e08(0x16b)](_0x717e08(0x149))['to'](this,_0x717e08(0x167)),_0x5bb56e[_0x717e08(0x156)][_0x717e08(0x14c)](_0x717e08(0x12e))['to'](this,_0x717e08(0x130)),_0x5bb56e;}[_0x464a8d(0x12d)](){const _0x31d546=_0x464a8d;this[_0x31d546(0x16e)]='',this[_0x31d546(0x14e)]=!0x1,this[_0x31d546(0x167)]=!0x0,this[_0x31d546(0x13e)][_0x31d546(0x136)]=!0x0,this[_0x31d546(0x148)][_0x31d546(0x136)]=!0x0,this[_0x31d546(0x13e)][_0x31d546(0x12a)]();}[_0x464a8d(0x12c)](){const _0x27d2a3=_0x464a8d,_0x4198b2=this[_0x27d2a3(0x165)];this[_0x27d2a3(0x167)]=!0x1,this[_0x27d2a3(0x15c)]='',this[_0x27d2a3(0x169)][_0x27d2a3(0x132)](),this[_0x27d2a3(0x16e)]&&(this[_0x27d2a3(0x169)][_0x27d2a3(0x150)][_0x27d2a3(0x129)]=_0x523ab2(_0x4198b2,_0x27d2a3(0x161)));}[_0x464a8d(0x12b)](_0x5459ee){const _0x1189cd=_0x464a8d,_0x477d28=this[_0x1189cd(0x165)];this[_0x1189cd(0x12c)](),this[_0x1189cd(0x14e)]=!0x0,this[_0x1189cd(0x139)][_0x1189cd(0x143)]=_0x5459ee||_0x523ab2(_0x477d28,_0x1189cd(0x146)),this[_0x1189cd(0x16e)]||(this[_0x1189cd(0x13e)][_0x1189cd(0x136)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3c023f,_0x4dd3e9){const _0x142822=_0x5490,_0x1a73d2=_0x3c023f();while(!![]){try{const _0xc0b8fd=-parseInt(_0x142822(0x103))/0x1*(-parseInt(_0x142822(0x107))/0x2)+-parseInt(_0x142822(0xfa))/0x3*(-parseInt(_0x142822(0xfc))/0x4)+-parseInt(_0x142822(0x101))/0x5*(parseInt(_0x142822(0x100))/0x6)+parseInt(_0x142822(0xfd))/0x7+parseInt(_0x142822(0xfe))/0x8+-parseInt(_0x142822(0x105))/0x9*(parseInt(_0x142822(0xf9))/0xa)+-parseInt(_0x142822(0x102))/0xb*(parseInt(_0x142822(0x10a))/0xc);if(_0xc0b8fd===_0x4dd3e9)break;else _0x1a73d2['push'](_0x1a73d2['shift']());}catch(_0x3fded9){_0x1a73d2['push'](_0x1a73d2['shift']());}}}(_0x2ae4,0xc3448));import{ListItemView as _0x21f491,ButtonView as _0x3cc716,ButtonLabelView as _0x32094b}from'ckeditor5/src/ui.js';function _0x2ae4(){const _0x29c872=['children','fire','12BgLBVk','set','20AkLOAa','11073OaTdzy','locale','592bnyAMb','7495915DdthMO','4830496kqpxHt','prompt','1524jkondF','28565eQQQTc','3987236oYFdJc','535TknHhE','execute','2839437TkPwQY','add','3826zEZEDQ'];_0x2ae4=function(){return _0x29c872;};return _0x2ae4();}import{unescape as _0x9a3074}from'es-toolkit/compat';function _0x5490(_0x4b678d,_0x57fc68){const _0x2ae4f2=_0x2ae4();return _0x5490=function(_0x5490f9,_0x1c5822){_0x5490f9=_0x5490f9-0xf8;let _0x3fd218=_0x2ae4f2[_0x5490f9];return _0x3fd218;},_0x5490(_0x4b678d,_0x57fc68);}export class AIHistoryListItemView extends _0x21f491{constructor(_0x2d1098){const _0x39c55f=_0x5490;super();const _0x504c1a=new _0x32094b(),_0x544ec4=new _0x3cc716(this[_0x39c55f(0xfb)],_0x504c1a);this[_0x39c55f(0x108)][_0x39c55f(0x106)](_0x544ec4),_0x544ec4[_0x39c55f(0xf8)]({'label':_0x2d1098[_0x39c55f(0xff)],'withText':!0x0}),_0x544ec4['on'](_0x39c55f(0x104),()=>{const _0xd2b33c=_0x39c55f;this[_0xd2b33c(0x109)](_0xd2b33c(0x104),{'value':_0x9a3074(_0x2d1098[_0xd2b33c(0xff)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35b261=_0x2c32;(function(_0x479898,_0xb60066){const _0x3bc8cd=_0x2c32,_0x2d9dba=_0x479898();while(!![]){try{const _0x2b1b33=parseInt(_0x3bc8cd(0xfb))/0x1+-parseInt(_0x3bc8cd(0xf8))/0x2+-parseInt(_0x3bc8cd(0xef))/0x3*(parseInt(_0x3bc8cd(0xed))/0x4)+parseInt(_0x3bc8cd(0xf9))/0x5*(-parseInt(_0x3bc8cd(0xf7))/0x6)+-parseInt(_0x3bc8cd(0xf4))/0x7+parseInt(_0x3bc8cd(0xff))/0x8+parseInt(_0x3bc8cd(0xea))/0x9;if(_0x2b1b33===_0xb60066)break;else _0x2d9dba['push'](_0x2d9dba['shift']());}catch(_0xf6fe5c){_0x2d9dba['push'](_0x2d9dba['shift']());}}}(_0x5f1f,0x9dce3));function _0x5f1f(){const _0x444567=['filter','5634342VPEeak','length','children','1020692JVIsiP','clearHistory','6XECazS','clearHistoryButton','_createClearHistoryButton','execute','delegate','3169313ijTten','label','Clear','1110OORIHO','456686ilgZWr','18520uBOwkE','set','849627VhCKDs','add','Prompt\x20history','historyGroupView','8379152bTMbUu','locale','items','fire'];_0x5f1f=function(){return _0x444567;};return _0x5f1f();}import{ListView as _0x1a94dc,ListItemGroupView as _0x22444b,ButtonView as _0x460775}from'ckeditor5/src/ui.js';function _0x2c32(_0xea0351,_0x40a448){const _0x5f1ffe=_0x5f1f();return _0x2c32=function(_0x2c32dd,_0x26c4f9){_0x2c32dd=_0x2c32dd-0xea;let _0x217a07=_0x5f1ffe[_0x2c32dd];return _0x217a07;},_0x2c32(_0xea0351,_0x40a448);}import{getTranslation as _0x4023b8}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1a94dc{[_0x35b261(0xfe)];[_0x35b261(0xf0)];constructor(_0x31fb41){const _0x562dd0=_0x35b261;super(_0x31fb41),this[_0x562dd0(0xf0)]=this[_0x562dd0(0xf1)](),this[_0x562dd0(0xfe)]=new _0x22444b(),this[_0x562dd0(0xfe)][_0x562dd0(0xec)][_0x562dd0(0xfc)](this[_0x562dd0(0xf0)],0x1),this[_0x562dd0(0xfe)][_0x562dd0(0xf5)]=_0x4023b8(_0x31fb41,_0x562dd0(0xfd)),this[_0x562dd0(0xfe)][_0x562dd0(0x101)][_0x562dd0(0xf3)](_0x562dd0(0xf2))['to'](this),this[_0x562dd0(0x101)][_0x562dd0(0xfc)](this[_0x562dd0(0xfe)]);}[_0x35b261(0x103)](){const _0x264ff7=_0x35b261;let _0x528db4=0x0;for(const _0x11b648 of this[_0x264ff7(0x101)])_0x528db4+=_0x11b648[_0x264ff7(0x101)][_0x264ff7(0xeb)];return{'resultsCount':_0x528db4,'totalItemsCount':_0x528db4};}[_0x35b261(0xf1)](){const _0x53ec5c=_0x35b261,_0x26b2b3=this[_0x53ec5c(0x100)],_0x352a77=new _0x460775(this[_0x53ec5c(0x100)]);return _0x352a77[_0x53ec5c(0xfa)]({'label':'('+_0x4023b8(_0x26b2b3,_0x53ec5c(0xf6))+')','withText':!0x0}),_0x352a77['on'](_0x53ec5c(0xf2),()=>this[_0x53ec5c(0x102)](_0x53ec5c(0xee))),_0x352a77;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x527c40=_0x3a09;function _0x91b5(){const _0x187cc7=['136RZshvq','1OqCjHi','350312GmsKOi','stringify','1768228MwIvrq','add','_loadFromSessionStorage','2907415MrIFwp','6560XmLYlZ','1304582TFtmUg','54084zipUvN','_saveToSessionStorage','setItem','parse','remove','CKEditor/AIFormView/PromptHistory','2746380dCCpuD','180HhEtCO','prompt','18ptrjKp','trim','addMany','last','toLowerCase','length','getItem','map'];_0x91b5=function(){return _0x187cc7;};return _0x91b5();}(function(_0x12e3d6,_0x41803e){const _0x238f73=_0x3a09,_0xd28894=_0x12e3d6();while(!![]){try{const _0x4196b0=parseInt(_0x238f73(0x1d9))/0x1*(-parseInt(_0x238f73(0x1c6))/0x2)+-parseInt(_0x238f73(0x1c7))/0x3*(-parseInt(_0x238f73(0x1d8))/0x4)+-parseInt(_0x238f73(0x1e0))/0x5*(parseInt(_0x238f73(0x1ce))/0x6)+parseInt(_0x238f73(0x1df))/0x7+parseInt(_0x238f73(0x1da))/0x8*(-parseInt(_0x238f73(0x1d0))/0x9)+parseInt(_0x238f73(0x1cd))/0xa+-parseInt(_0x238f73(0x1dc))/0xb;if(_0x4196b0===_0x41803e)break;else _0xd28894['push'](_0xd28894['shift']());}catch(_0x18fd7b){_0xd28894['push'](_0xd28894['shift']());}}}(_0x91b5,0x589ce));function _0x3a09(_0x35af18,_0x922231){const _0x91b5d1=_0x91b5();return _0x3a09=function(_0x3a09bc,_0x5c535f){_0x3a09bc=_0x3a09bc-0x1c6;let _0x46f34f=_0x91b5d1[_0x3a09bc];return _0x46f34f;},_0x3a09(_0x35af18,_0x922231);}import{Collection as _0x2bc541}from'ckeditor5/src/utils.js';const So=_0x527c40(0x1cc);export class PromptHistory extends _0x2bc541{constructor(){const _0x1efb0d=_0x527c40;super(),this[_0x1efb0d(0x1de)](),this['on'](_0x1efb0d(0x1dd),(_0x133a49,_0x2fe53c)=>{const _0x1aa0d2=_0x1efb0d,_0x2ce1a2=go(_0x2fe53c[_0x1aa0d2(0x1cf)]);for(const _0xa63078 of this)if(_0xa63078!=_0x2fe53c&&go(_0xa63078[_0x1aa0d2(0x1cf)])===_0x2ce1a2){this[_0x1aa0d2(0x1cb)](_0xa63078);break;}this[_0x1aa0d2(0x1d5)]>0x14&&this[_0x1aa0d2(0x1cb)](this[_0x1aa0d2(0x1d3)]),this[_0x1aa0d2(0x1c8)]();}),this['on'](_0x1efb0d(0x1cb),()=>{const _0x1e76ec=_0x1efb0d;this[_0x1e76ec(0x1c8)]();});}[_0x527c40(0x1de)](){const _0x560b5c=_0x527c40,_0x6b14d2=sessionStorage[_0x560b5c(0x1d6)](So)||'[]';this[_0x560b5c(0x1d2)](JSON[_0x560b5c(0x1ca)](_0x6b14d2));}[_0x527c40(0x1c8)](){const _0x1d2fb1=_0x527c40;sessionStorage[_0x1d2fb1(0x1c9)](So,JSON[_0x1d2fb1(0x1db)](this[_0x1d2fb1(0x1d7)](_0x55f608=>_0x55f608)));}}function go(_0x33a6ea){const _0x1bc31b=_0x527c40;return _0x33a6ea[_0x1bc31b(0x1d4)]()[_0x1bc31b(0x1d1)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53a678=_0x3e26;(function(_0x1cd432,_0x437fe7){const _0x26880a=_0x3e26,_0x5b08e6=_0x1cd432();while(!![]){try{const _0x4c0720=parseInt(_0x26880a(0x168))/0x1+parseInt(_0x26880a(0x16e))/0x2*(parseInt(_0x26880a(0x182))/0x3)+-parseInt(_0x26880a(0x17f))/0x4*(-parseInt(_0x26880a(0x177))/0x5)+-parseInt(_0x26880a(0x17b))/0x6*(parseInt(_0x26880a(0x17a))/0x7)+-parseInt(_0x26880a(0x18a))/0x8*(-parseInt(_0x26880a(0x16d))/0x9)+-parseInt(_0x26880a(0x18e))/0xa*(parseInt(_0x26880a(0x18c))/0xb)+parseInt(_0x26880a(0x174))/0xc;if(_0x4c0720===_0x437fe7)break;else _0x5b08e6['push'](_0x5b08e6['shift']());}catch(_0x15b2f7){_0x5b08e6['push'](_0x5b08e6['shift']());}}}(_0x919c,0x5599f));import{Command as _0x1c22f6}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x11992a}from'../aiassistantui.js';function _0x919c(){const _0x45d316=['_hasContext','getFirstRange','isCollapsed','showUI','custom','enabledCommandsIds','5448KkVbWq','hasContent','1474PeAlVr','isEmpty','34030PDGMww','_commandDefinitions','get','isEnabled','change:isEnabled','plugins','execute','element','59634aJdrUl','getItems','values','config','ai.assistant.disabledElements','4419juvBNc','6ZFsidB','getRanges','add','from','set','change:_hasContext','5477640sfzfaJ','length','refresh','83985UwYrVX','selection','document','254450BfSdEw','42CbWEuP','requiresContent','includes','model','24vDBnmp','getSelectedBlocks','name','109818eAkXQz','editor'];_0x919c=function(){return _0x45d316;};return _0x919c();}function _0x3e26(_0xa598d3,_0xff37){const _0x919c60=_0x919c();return _0x3e26=function(_0x3e2649,_0xe41df8){_0x3e2649=_0x3e2649-0x165;let _0x5b1980=_0x919c60[_0x3e2649];return _0x5b1980;},_0x3e26(_0xa598d3,_0xff37);}export class ShowAIAssistantCommand extends _0x1c22f6{[_0x53a678(0x18f)];constructor(_0x1e6722,_0x232de0){const _0x71e62=_0x53a678;super(_0x1e6722),this[_0x71e62(0x18f)]=_0x232de0,this[_0x71e62(0x172)](_0x71e62(0x189),[]),this['on'](_0x71e62(0x173),(_0x111d47,_0x5accb3,_0x1c2b87)=>{const _0x15a471=_0x71e62;this[_0x15a471(0x191)]&&(this[_0x15a471(0x189)]=ns(this[_0x15a471(0x18f)],_0x1c2b87));}),this[_0x71e62(0x172)](_0x71e62(0x184),!0x1),this['on'](_0x71e62(0x192),(_0x25e050,_0x5bd8e2,_0x3eb1b2)=>{const _0x24b7e3=_0x71e62;this[_0x24b7e3(0x189)]=_0x3eb1b2?ns(this[_0x24b7e3(0x18f)],this[_0x24b7e3(0x184)]):[];});}[_0x53a678(0x176)](){const _0x5c0c37=_0x53a678,_0x35a12a=this[_0x5c0c37(0x183)][_0x5c0c37(0x17e)];this[_0x5c0c37(0x184)]=function(_0xc3e617){const _0x40d911=_0x5c0c37,_0x135d75=_0xc3e617[_0x40d911(0x179)][_0x40d911(0x178)];return _0x135d75[_0x40d911(0x186)]?0x0!==[..._0x135d75[_0x40d911(0x180)]()][_0x40d911(0x175)]&&![..._0x135d75[_0x40d911(0x180)]()][0x0][_0x40d911(0x18d)]:!!_0xc3e617[_0x40d911(0x18b)](_0x135d75[_0x40d911(0x185)]());}(_0x35a12a);const _0x1efc83=_0x35a12a[_0x5c0c37(0x179)][_0x5c0c37(0x178)],_0x595448=this[_0x5c0c37(0x183)][_0x5c0c37(0x16b)][_0x5c0c37(0x190)](_0x5c0c37(0x16c));for(const _0x274f02 of _0x1efc83[_0x5c0c37(0x16f)]())for(const _0x3f7ea5 of _0x274f02[_0x5c0c37(0x169)]())if(_0x3f7ea5['is'](_0x5c0c37(0x167))&&_0x595448[_0x5c0c37(0x17d)](_0x3f7ea5[_0x5c0c37(0x181)]))return void(this[_0x5c0c37(0x191)]=!0x1);this[_0x5c0c37(0x191)]=!0x0;}[_0x53a678(0x166)](_0x23678b='',_0x1e0d4f='',_0x1d4632=_0x53a678(0x188)){const _0x285b4a=_0x53a678;this[_0x285b4a(0x183)][_0x285b4a(0x165)][_0x285b4a(0x190)](_0x11992a)[_0x285b4a(0x187)](_0x23678b,_0x1e0d4f,_0x1d4632);}}function ns(_0x528de3,_0x5c4f40){const _0x21bd43=_0x53a678,_0xca31c6=new Set();for(const _0x418962 of _0x528de3[_0x21bd43(0x16a)]())(_0x5c4f40||!0x1===_0x418962[_0x21bd43(0x17c)])&&_0xca31c6[_0x21bd43(0x170)](_0x418962['id']);return Array[_0x21bd43(0x171)](_0xca31c6);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x57af4e,_0x69a24b,_0x3a8278){const t=_0x57af4e['t'];switch(_0x69a24b){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',_0x3a8278);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x3a8278);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'},_0x3a8278);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_AWS_NOT_SUPPORTED':return t({'id':'AI_ERROR_AWS_NOT_SUPPORTED','string':'The\x20AWS\x20integration\x20is\x20no\x20longer\x20supported.\x20Please\x20contact\x20the\x20support.'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x69a24b;}}
|
|
@@ -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(_0x33f3b7,_0x4450f7){const _0xa32032=(0x0,_0x4450f7['t'])('Other');return _0x33f3b7['length']?'groupId'in _0x33f3b7[0x0]?_0x33f3b7:[{'groupId':'_ungrouppedCommands','groupLabel':_0xa32032,'order':0x1/0x0,'commands':_0x33f3b7}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0xa32032,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53f2b4=_0x3913;(function(_0x1851e5,_0x3a203f){const _0xc5e356=_0x3913,_0x3b8b6d=_0x1851e5();while(!![]){try{const _0x5a1d28=-parseInt(_0xc5e356(0x178))/0x1*(parseInt(_0xc5e356(0x1bf))/0x2)+-parseInt(_0xc5e356(0x18a))/0x3*(parseInt(_0xc5e356(0x186))/0x4)+parseInt(_0xc5e356(0x16e))/0x5*(-parseInt(_0xc5e356(0x190))/0x6)+parseInt(_0xc5e356(0x16b))/0x7+parseInt(_0xc5e356(0x1be))/0x8*(parseInt(_0xc5e356(0x18d))/0x9)+parseInt(_0xc5e356(0x1ac))/0xa*(parseInt(_0xc5e356(0x183))/0xb)+parseInt(_0xc5e356(0x1b8))/0xc;if(_0x5a1d28===_0x3a203f)break;else _0x3b8b6d['push'](_0x3b8b6d['shift']());}catch(_0x9e0f73){_0x3b8b6d['push'](_0x3b8b6d['shift']());}}}(_0xd239,0x7749f));import{ContextPlugin as _0x54f1c5}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5ecb41,AIEditing as _0x498bb1}from'../aicore/aiediting.js';function _0x3913(_0x4e8d41,_0x581bda){const _0xd239d9=_0xd239();return _0x3913=function(_0x39134a,_0x3d6f48){_0x39134a=_0x39134a-0x165;let _0x3ddfe9=_0xd239d9[_0x39134a];return _0x3ddfe9;},_0x3913(_0x4e8d41,_0x581bda);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2d3a75}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x168565,Rect as _0x5bc7ae,scrollViewportToShowTarget as _0xcf058a}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x40087a}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3553f3}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xe14b20}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0xe14b20,_0x53f2b4(0x185),_0x53f2b4(0x174)];const $=0xa;function _0xd239(){const _0x40b15e=['_hideFakeVisualSelection','left','isOfficialPlugin','get','_calculateDialogPosition','_showDialog','getIntersection','hideFakeVisualSelection','end','3377738fzIwnl','ai-selection','locale','20PHDbbk','listenTo','fire','getChangedMarkers','AI_BALLOON_SELECTION_REMOVED_ERROR','editing','selectionRemoved','iconView','mainView','differ','224698wBvhlU','pluginName','start','ai-balloon-','delegate','index','document','$graveyard','height','startsWith','updatePosition','11ShiGJb','_getSelectionElements','dialogClosed','1164fwXujn','_showFakeVisualSelection','label','_isUpdatingMarkers','1515rCJSbt','length','getVisible','2034CtvXyi','filter','hide','381408AvQFIG','rootName','getBoundingRect','headerView','ranges','_updateDialog','_cleanupFakeVisualSelectionMarkerRemovalListener','close','Dialog','stopListening','context','view','ck-ai-balloon\x20','showBlockingError','AIBalloon','showFakeVisualSelection','_calculateOptimalTopPosition','_setupFakeVisualSelectionMarkerRemovalListener','plugins','requires','open','beforeDialogClosed','_currentConfig','window','width','max','high','bottom','6089560ZvyRGU','hideError','isPremiumPlugin','once','isEqual','bind','top','show','map','round','change','isOpen','1148352MpciiD','markers','getMarkersGroup','model','root','ai-balloon-selection','13336rUvIIB','6bBXBLg','content'];_0xd239=function(){return _0x40b15e;};return _0xd239();}export class AIBalloon extends _0x54f1c5{static get[_0x53f2b4(0x1a3)](){return[_0x498bb1];}static get[_0x53f2b4(0x179)](){const _0x3f67fc=_0x53f2b4;return _0x3f67fc(0x19e);}static get[_0x53f2b4(0x1c3)](){return!0x0;}static get[_0x53f2b4(0x1ae)](){return!0x0;}[_0x53f2b4(0x1b7)]=!0x1;[_0x53f2b4(0x1a6)];[_0x53f2b4(0x189)]=!0x1;[_0x53f2b4(0x1a4)](_0x30e503){const _0x3a1ef1=_0x53f2b4,{id:_0x127ba5}=this[_0x3a1ef1(0x1a6)]??{};this[_0x3a1ef1(0x1a6)]=_0x30e503;const {id:_0x310d2a}=this[_0x3a1ef1(0x1a6)];this[_0x3a1ef1(0x1b7)]&&_0x127ba5===_0x310d2a?this[_0x3a1ef1(0x195)]():this[_0x3a1ef1(0x167)]();}[_0x53f2b4(0x197)](){const _0x5b4f53=_0x53f2b4,_0x1094fc=_0x40087a(this[_0x5b4f53(0x19a)])[_0x5b4f53(0x1a2)][_0x5b4f53(0x165)](_0x5b4f53(0x198));_0x1094fc[_0x5b4f53(0x1b7)]&&this[_0x5b4f53(0x1a6)]&&_0x1094fc['id']===this[_0x5b4f53(0x1a6)]['id']&&_0x1094fc[_0x5b4f53(0x18f)]();}[_0x53f2b4(0x195)](){const _0x108df6=_0x53f2b4,_0x49a9b9=_0x40087a(this[_0x108df6(0x19a)])[_0x108df6(0x1a2)][_0x108df6(0x165)](_0x108df6(0x198)),{icon:_0x4721d9,title:_0x14cbd2}=this[_0x108df6(0x1a6)];_0x49a9b9[_0x108df6(0x19b)]?.[_0x108df6(0x193)]&&(_0x49a9b9[_0x108df6(0x19b)][_0x108df6(0x193)][_0x108df6(0x188)]=_0x14cbd2,_0x49a9b9[_0x108df6(0x19b)][_0x108df6(0x193)][_0x108df6(0x175)]&&_0x4721d9&&(_0x49a9b9[_0x108df6(0x19b)][_0x108df6(0x193)][_0x108df6(0x175)][_0x108df6(0x1c0)]=_0x4721d9)),this[_0x108df6(0x189)]=!0x0,this[_0x108df6(0x187)](),this[_0x108df6(0x189)]=!0x1,_0x49a9b9[_0x108df6(0x19b)]?.[_0x108df6(0x182)]();}[_0x53f2b4(0x187)](){const _0x5a7438=_0x53f2b4;this[_0x5a7438(0x19a)][_0x5a7438(0x1a2)][_0x5a7438(0x165)](_0x498bb1)[_0x5a7438(0x19f)](this[_0x5a7438(0x1a6)][_0x5a7438(0x194)],_0x5a7438(0x17b)+this[_0x5a7438(0x1a6)][_0x5a7438(0x17d)],!0x0,!0x0);}[_0x53f2b4(0x1c1)](_0x10ca2a){const _0x2ea3d4=_0x53f2b4;this[_0x2ea3d4(0x19a)][_0x2ea3d4(0x1a2)][_0x2ea3d4(0x165)](_0x498bb1)[_0x2ea3d4(0x169)](_0x2ea3d4(0x17b)+_0x10ca2a);}[_0x53f2b4(0x167)](){const _0x5b2e45=_0x53f2b4,_0x2a173d=_0x40087a(this[_0x5b2e45(0x19a)])[_0x5b2e45(0x1a2)][_0x5b2e45(0x165)](_0x5b2e45(0x198)),{id:_0x556b62,title:_0x4f1a50,icon:_0x17d349,class:_0x1ca33a,mainView:_0x45b0a4}=this[_0x5b2e45(0x1a6)];_0x45b0a4[_0x5b2e45(0x17c)](..._0xe14b20)['to'](this),_0x2a173d[_0x5b2e45(0x1b3)]({'title':_0x4f1a50,'icon':_0x17d349,'hasCloseButton':!0x0,'id':_0x556b62,'position':this[_0x5b2e45(0x166)][_0x5b2e45(0x1b1)](this),'className':_0x5b2e45(0x19c)+(_0x1ca33a||''),'content':_0x45b0a4,'onShow':_0x438e5a=>{const _0x17b379=_0x5b2e45;this[_0x17b379(0x187)](),this[_0x17b379(0x1a1)]();const _0x5defa4=this[_0x17b379(0x184)]();_0x5defa4&&_0x5defa4[0x0]&&_0xcf058a({'target':_0x5defa4[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x17b379(0x1b7)]=!0x0,_0x438e5a[_0x17b379(0x1af)](_0x17b379(0x18f),()=>{const _0x3aad21=_0x17b379;this[_0x3aad21(0x170)](_0x3aad21(0x1a5),{'id':_0x556b62});},{'priority':_0x17b379(0x1aa)});},'onHide':()=>{const _0x4baf49=_0x5b2e45;this[_0x4baf49(0x1c1)](this[_0x4baf49(0x1a6)][_0x4baf49(0x17d)]),this[_0x4baf49(0x196)](),this[_0x4baf49(0x170)](_0x4baf49(0x185),{'id':_0x556b62}),this[_0x4baf49(0x1b7)]=!0x1;}});}[_0x53f2b4(0x166)](_0x2ae1f3,_0x1aa168){const _0x2e042b=_0x53f2b4;if(!_0x1aa168)return null;const _0x2a4cfd=this[_0x2e042b(0x184)]();if(!_0x2a4cfd||0x0===_0x2a4cfd[_0x2e042b(0x18b)])return{'left':Math[_0x2e042b(0x1b5)](_0x1aa168[_0x2e042b(0x1c2)]+_0x1aa168[_0x2e042b(0x1a8)]/0x2-_0x2ae1f3[_0x2e042b(0x1a8)]/0x2),'top':Math[_0x2e042b(0x1b5)](_0x1aa168[_0x2e042b(0x1b2)]+_0x1aa168[_0x2e042b(0x180)]/0x2-_0x2ae1f3[_0x2e042b(0x180)]/0x2)};const _0x1ff71e=Math[_0x2e042b(0x1b5)](_0x1aa168[_0x2e042b(0x1c2)]+_0x1aa168[_0x2e042b(0x1a8)]/0x2-_0x2ae1f3[_0x2e042b(0x1a8)]/0x2),_0x297159=_0x2a4cfd[_0x2e042b(0x1b4)](_0x1cda1b=>new _0x5bc7ae(_0x1cda1b)),_0x3ec3e3=_0x2ae1f3[_0x2e042b(0x180)];return{'left':_0x1ff71e,'top':this[_0x2e042b(0x1a0)](_0x297159,_0x3ec3e3,_0x1aa168)};}[_0x53f2b4(0x1a0)](_0xd2c80d,_0x2865a7,_0x271096){const _0x1579dc=_0x53f2b4,_0x12fa33=new _0x5bc7ae(_0x168565[_0x1579dc(0x1a7)]),_0x259100=_0xd2c80d[_0x1579dc(0x1b4)](_0x30b0de=>_0x30b0de[_0x1579dc(0x18c)]())[_0x1579dc(0x18e)](_0x117207=>_0x117207),_0x2f140b=_0x5bc7ae[_0x1579dc(0x192)](_0x259100);if(!_0x2f140b)return Math[_0x1579dc(0x1b5)](_0x271096[_0x1579dc(0x1b2)]+_0x271096[_0x1579dc(0x180)]/0x2);const _0x3e4b14=_0x12fa33[_0x1579dc(0x168)](_0x2f140b);if(!_0x3e4b14)return Math[_0x1579dc(0x1b5)](_0x271096[_0x1579dc(0x1b2)]+_0x271096[_0x1579dc(0x180)]/0x2);const _0xa333e7=_0x271096[_0x1579dc(0x18c)](),_0x36e44e=_0xa333e7&&_0x2f140b[_0x1579dc(0x180)]>_0xa333e7[_0x1579dc(0x180)],_0x50a81d=_0x3e4b14[_0x1579dc(0x1b2)],_0x3e550c=_0x3e4b14[_0x1579dc(0x1ab)];if(_0x36e44e){const _0x420531=(_0xa333e7||_0x12fa33)[_0x1579dc(0x180)]/0x2-_0x2865a7/0x2,_0x4c74ae=_0x50a81d-$-_0x271096[_0x1579dc(0x1b2)],_0x5b24ee=_0x271096[_0x1579dc(0x1ab)]-_0x3e550c-$;return _0x4c74ae>=_0x2865a7?Math[_0x1579dc(0x1a9)]($,_0x50a81d-_0x2865a7-$):_0x5b24ee>=_0x2865a7?_0x3e550c+$:Math[_0x1579dc(0x1a9)]($,_0x420531);}const _0x664056=_0x50a81d-_0x2865a7,_0x231d3b=_0x271096[_0x1579dc(0x1ab)]-_0x3e550c-$,_0x341fee=_0x50a81d-$-_0x271096[_0x1579dc(0x1b2)];let _0xb16e8f;if(_0x231d3b>=_0x2865a7)_0xb16e8f=_0x3e550c+$;else{if(_0x341fee>=_0x2865a7)_0xb16e8f=_0x664056-$;else _0xb16e8f=_0x50a81d+_0x2f140b[_0x1579dc(0x180)]/0x2-_0x2865a7/0x2;}return _0xb16e8f;}[_0x53f2b4(0x1a1)](){const _0x54d6be=_0x53f2b4,_0x409366=_0x40087a(this[_0x54d6be(0x19a)]);this[_0x54d6be(0x16f)](_0x409366[_0x54d6be(0x1bb)][_0x54d6be(0x17e)],_0x54d6be(0x1b6),()=>{const _0x183cd3=_0x54d6be;if(!this[_0x183cd3(0x189)]){for(const {name:_0x3e7544,data:{newRange:_0x256620}}of _0x409366[_0x183cd3(0x1bb)][_0x183cd3(0x17e)][_0x183cd3(0x177)][_0x183cd3(0x171)]())if(_0x3e7544[_0x183cd3(0x181)](_0x5ecb41+':')&&(_0x256620&&(_0x256620[_0x183cd3(0x17a)][_0x183cd3(0x1b0)](_0x256620[_0x183cd3(0x16a)])||_0x183cd3(0x17f)==_0x256620[_0x183cd3(0x1bc)][_0x183cd3(0x191)])||null==_0x256620)){const _0x3eebf9=_0x3553f3(this[_0x183cd3(0x19a)][_0x183cd3(0x16d)],_0x183cd3(0x172));this[_0x183cd3(0x1a6)][_0x183cd3(0x176)][_0x183cd3(0x19d)](_0x3eebf9),this[_0x183cd3(0x170)](_0x183cd3(0x174));}}});}[_0x53f2b4(0x196)](){const _0x46fea4=_0x53f2b4,_0x437b55=_0x40087a(this[_0x46fea4(0x19a)]);this[_0x46fea4(0x1a6)][_0x46fea4(0x176)][_0x46fea4(0x1ad)](),this[_0x46fea4(0x199)](_0x437b55[_0x46fea4(0x1bb)][_0x46fea4(0x17e)]);}[_0x53f2b4(0x184)](){const _0x3dc90c=_0x53f2b4,_0x4b9f06=_0x40087a(this[_0x3dc90c(0x19a)]);return _0x2d3a75(_0x4b9f06[_0x3dc90c(0x173)],[..._0x4b9f06[_0x3dc90c(0x1bb)][_0x3dc90c(0x1b9)][_0x3dc90c(0x1ba)](_0x3dc90c(0x16c)),..._0x4b9f06[_0x3dc90c(0x1bb)][_0x3dc90c(0x1b9)][_0x3dc90c(0x1ba)](_0x3dc90c(0x1bd))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4a26(_0x1c8a75,_0xc64af7){const _0x207624=_0x2076();return _0x4a26=function(_0x4a2690,_0x48025d){_0x4a2690=_0x4a2690-0xc5;let _0x4a3360=_0x207624[_0x4a2690];return _0x4a3360;},_0x4a26(_0x1c8a75,_0xc64af7);}const _0x296453=_0x4a26;(function(_0x433d3e,_0x17b0b8){const _0x3fc04f=_0x4a26,_0x1df2f9=_0x433d3e();while(!![]){try{const _0x56290f=-parseInt(_0x3fc04f(0xd4))/0x1*(parseInt(_0x3fc04f(0xdf))/0x2)+-parseInt(_0x3fc04f(0xe0))/0x3*(parseInt(_0x3fc04f(0xdb))/0x4)+parseInt(_0x3fc04f(0xdd))/0x5+parseInt(_0x3fc04f(0xdc))/0x6+-parseInt(_0x3fc04f(0xc5))/0x7*(parseInt(_0x3fc04f(0xd9))/0x8)+parseInt(_0x3fc04f(0xe2))/0x9*(-parseInt(_0x3fc04f(0xe4))/0xa)+-parseInt(_0x3fc04f(0xda))/0xb*(-parseInt(_0x3fc04f(0xd0))/0xc);if(_0x56290f===_0x17b0b8)break;else _0x1df2f9['push'](_0x1df2f9['shift']());}catch(_0x3d418b){_0x1df2f9['push'](_0x1df2f9['shift']());}}}(_0x2076,0xe149b));import{View as _0xfdc50b}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x296453(0xd7),_0x296453(0xd1),_0x296453(0xc9),_0x296453(0xd8)];function _0x2076(){const _0x6ac5e5=['locale','span','hideError','showBlockingError','showError','12612HRQTKa','insertSuggestion','set','_errorMessage','14358ZNYuwm','_createErrorView','_errorView','applySuggestion','showPrevious','24PuhAQx','27709qDtXSt','28vLQKQg','9689568bnhDUB','3415060azPhPm','ck-ai-suggestion__error','56kZxJwa','451461uxGBJM','ck-ai-suggestion__error-text','10616166lGiVct','bindTemplate','10RkCTOa','_isErrorVisible','3237787RxvGni','ck-hidden','div','setTemplate','showNext','ck-ai-balloon-error'];_0x2076=function(){return _0x6ac5e5;};return _0x2076();}export class AIBalloonView extends _0xfdc50b{[_0x296453(0xd6)];constructor(_0x3c8b5d){const _0x1ac202=_0x296453;super(_0x3c8b5d),this[_0x1ac202(0xd2)](_0x1ac202(0xd3),''),this[_0x1ac202(0xd2)](_0x1ac202(0xe5),!0x1);}[_0x296453(0xce)](_0x1d0616){const _0x309b3a=_0x296453;this[_0x309b3a(0xcf)](_0x1d0616);}[_0x296453(0xcf)](_0x14e6d0){const _0x389667=_0x296453;this[_0x389667(0xd6)]||(this[_0x389667(0xd6)]=this[_0x389667(0xd5)]()),this[_0x389667(0xd3)]=_0x14e6d0,this[_0x389667(0xe5)]=!0x0;}[_0x296453(0xcd)](){const _0x41dc0f=_0x296453;this[_0x41dc0f(0xe5)]=!0x1;}[_0x296453(0xd5)](){const _0x258a76=_0x296453,_0x2a4754=new _0xfdc50b(this[_0x258a76(0xcb)]),_0x4c1f31=new _0xfdc50b(this[_0x258a76(0xcb)]);return _0x4c1f31[_0x258a76(0xc8)]({'tag':_0x258a76(0xcc),'attributes':{'class':['ck',_0x258a76(0xe1)]},'children':[{'text':this[_0x258a76(0xe3)]['to'](_0x258a76(0xd3))}]}),_0x2a4754[_0x258a76(0xc8)]({'tag':_0x258a76(0xc7),'attributes':{'class':['ck',_0x258a76(0xde),_0x258a76(0xca),this[_0x258a76(0xe3)]['if'](_0x258a76(0xe5),_0x258a76(0xc6),_0x16bf51=>!_0x16bf51)]},'children':[_0x4c1f31]}),_0x2a4754;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4bb7(){var _0x1e05d5=['_registerToolDataCallback','config','plugins','context','500376cqXMOh','startConversation','focusPromptInput','282kycACG','41871WhdGIc','requires','sendMessage','pluginName','get','6744330eWvBPI','6769nQAJnp','1969iIgAwC','define','ai.chat.initialConversation','addSelectionToChatContext','4LJaAZO','ai.chat.context','AIChat','21770QYJIOZ','isOfficialPlugin','isPremiumPlugin','removeSelectionFromChatContext','8HPxrLP','22706RjbvVj','3486IPmEPq','new','registerToolDataCallback','305115uJlxjj'];_0x4bb7=function(){return _0x1e05d5;};return _0x4bb7();}var _0x154b71=_0xae26;function _0xae26(_0x193e85,_0x42f8b1){var _0x4bb767=_0x4bb7();return _0xae26=function(_0xae26d8,_0xe4da0){_0xae26d8=_0xae26d8-0xdc;var _0x3c5a3e=_0x4bb767[_0xae26d8];return _0x3c5a3e;},_0xae26(_0x193e85,_0x42f8b1);}(function(_0x181990,_0x1a8699){var _0x129ef8=_0xae26,_0x2956f8=_0x181990();while(!![]){try{var _0x10b305=-parseInt(_0x129ef8(0xfb))/0x1+parseInt(_0x129ef8(0xee))/0x2*(parseInt(_0x129ef8(0xfa))/0x3)+parseInt(_0x129ef8(0xe6))/0x4*(parseInt(_0x129ef8(0xf2))/0x5)+-parseInt(_0x129ef8(0xef))/0x6*(parseInt(_0x129ef8(0xe1))/0x7)+-parseInt(_0x129ef8(0xed))/0x8*(-parseInt(_0x129ef8(0xe0))/0x9)+-parseInt(_0x129ef8(0xe9))/0xa*(parseInt(_0x129ef8(0xe2))/0xb)+parseInt(_0x129ef8(0xf7))/0xc;if(_0x10b305===_0x1a8699)break;else _0x2956f8['push'](_0x2956f8['shift']());}catch(_0x3e06d1){_0x2956f8['push'](_0x2956f8['shift']());}}}(_0x4bb7,0xe20c4));import{ContextPlugin as _0x243212}from'ckeditor5/src/core.js';import{AIChatController as _0x342581}from'./aichatcontroller.js';import{AIEditing as _0x1129e4}from'../aicore/aiediting.js';import{AIChatUI as _0x3666a0}from'./aichatui.js';import{AIChatHistory as _0x3080bd}from'../aichathistory/aichathistory.js';export class AIChat extends _0x243212{static get[_0x154b71(0xdc)](){return[_0x342581,_0x1129e4,_0x3666a0,_0x3080bd];}static get[_0x154b71(0xde)](){var _0x257eff=_0x154b71;return _0x257eff(0xe8);}static get[_0x154b71(0xea)](){return!0x0;}static get[_0x154b71(0xeb)](){return!0x0;}constructor(_0xbbcc7a){var _0x1d5d12=_0x154b71;super(_0xbbcc7a),this[_0x1d5d12(0xf6)][_0x1d5d12(0xf4)][_0x1d5d12(0xe3)](_0x1d5d12(0xe7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x1d5d12(0xf6)][_0x1d5d12(0xf4)][_0x1d5d12(0xe3)](_0x1d5d12(0xe4),_0x1d5d12(0xf0));}async[_0x154b71(0xe5)](){var _0x812eaf=_0x154b71;await this[_0x812eaf(0xf6)][_0x812eaf(0xf5)][_0x812eaf(0xdf)](_0x342581)[_0x812eaf(0xe5)]();}async[_0x154b71(0xf8)](){var _0x482a5d=_0x154b71;await this[_0x482a5d(0xf6)][_0x482a5d(0xf5)][_0x482a5d(0xdf)](_0x342581)[_0x482a5d(0xf8)]();}async[_0x154b71(0xdd)]({message:_0x46b6f1,attributes:_0x1ef1e3}){var _0x2d1072=_0x154b71;await this[_0x2d1072(0xf6)][_0x2d1072(0xf5)][_0x2d1072(0xdf)](_0x342581)[_0x2d1072(0xdd)]({'message':_0x46b6f1,'attributes':_0x1ef1e3});}[_0x154b71(0xec)](){var _0x520264=_0x154b71;this[_0x520264(0xf6)][_0x520264(0xf5)][_0x520264(0xdf)](_0x342581)[_0x520264(0xec)]();}[_0x154b71(0xf9)](){var _0x1f7653=_0x154b71;this[_0x1f7653(0xf6)][_0x1f7653(0xf5)][_0x1f7653(0xdf)](_0x342581)[_0x1f7653(0xf9)]();}[_0x154b71(0xf1)](_0x5b33e3){var _0x3b1d59=_0x154b71;this[_0x3b1d59(0xf6)][_0x3b1d59(0xf5)][_0x3b1d59(0xdf)](_0x342581)[_0x3b1d59(0xf3)](_0x5b33e3);}}
|