@ckeditor/ckeditor5-ai 47.7.3 → 47.7.5-alpha.0
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 +16 -16
- 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.d.ts +21 -14
- 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 _0x77940=_0xf998;(function(_0x22f510,_0x364a1d){const _0x32e64d=_0xf998,_0x31eae9=_0x22f510();while(!![]){try{const _0x1250a1=parseInt(_0x32e64d(0x138))/0x1*(parseInt(_0x32e64d(0x169))/0x2)+parseInt(_0x32e64d(0x15a))/0x3+parseInt(_0x32e64d(0x13a))/0x4+parseInt(_0x32e64d(0x165))/0x5+-parseInt(_0x32e64d(0x162))/0x6*(-parseInt(_0x32e64d(0x15b))/0x7)+parseInt(_0x32e64d(0x140))/0x8*(parseInt(_0x32e64d(0x143))/0x9)+parseInt(_0x32e64d(0x137))/0xa*(-parseInt(_0x32e64d(0x15e))/0xb);if(_0x1250a1===_0x364a1d)break;else _0x31eae9['push'](_0x31eae9['shift']());}catch(_0x2eeba9){_0x31eae9['push'](_0x31eae9['shift']());}}}(_0x3631,0xd3206));import{global as _0x171149}from'ckeditor5/src/utils.js';import{View as _0x1d06bc,ButtonView as _0x542a45,SpinnerView as _0x5ec01a}from'ckeditor5/src/ui.js';import{IconCheck as _0xc142b3,IconCopy as _0x177c5d}from'ckeditor5/src/icons.js';import{getTranslation as _0x3e2eac}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x1d06bc{[_0x77940(0x16c)];[_0x77940(0x180)];constructor(_0x2b096d,_0x334b67=''){const _0x11ec14=_0x77940;super(_0x2b096d),this[_0x11ec14(0x141)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x15fc55=this[_0x11ec14(0x148)];this[_0x11ec14(0x16c)]=new ContentFieldView(_0x2b096d,_0x334b67),this[_0x11ec14(0x180)]=this[_0x11ec14(0x182)](),this[_0x11ec14(0x177)]({'tag':_0x11ec14(0x14f),'attributes':{'class':['ck',_0x11ec14(0x161),_0x15fc55['if'](_0x11ec14(0x173),_0x11ec14(0x156),_0x52bac3=>!_0x52bac3)],'tabindex':'-1'},'children':[{'tag':_0x11ec14(0x14f),'attributes':{'class':['ck',_0x11ec14(0x166),_0x15fc55['if'](_0x11ec14(0x189),_0x11ec14(0x14e))]},'children':[this[_0x11ec14(0x16c)],{'tag':_0x11ec14(0x14f),'attributes':{'class':['ck',_0x11ec14(0x13b)]},'children':[this[_0x11ec14(0x180)]]}]}]});}[_0x77940(0x172)](){const _0x11984a=_0x77940;super[_0x11984a(0x172)](),this[_0x11984a(0x151)]&&this[_0x11984a(0x16c)][_0x11984a(0x170)](this[_0x11984a(0x151)]);let _0x4fb352=!0x1;this['on'](_0x11984a(0x155),(_0x427377,_0x5284e6,_0x319c42)=>{const _0x1a2b21=_0x11984a,_0x79929a=!this[_0x1a2b21(0x16c)][_0x1a2b21(0x147)][_0x1a2b21(0x17f)](_0x1a2b21(0x13c));this[_0x1a2b21(0x16c)][_0x1a2b21(0x170)](_0x319c42),this[_0x1a2b21(0x189)]&&_0x79929a&&!_0x4fb352&&this[_0x1a2b21(0x147)][_0x1a2b21(0x17a)]({'top':this[_0x1a2b21(0x147)][_0x1a2b21(0x146)],'behavior':_0x1a2b21(0x178)});}),this['on'](_0x11984a(0x17e),(_0x25fd04,_0x117eb4,_0xcdf4a8)=>{const _0x240632=_0x11984a;_0x4fb352=!0x1,_0xcdf4a8?(this[_0x240632(0x151)]=null,this[_0x240632(0x16c)][_0x240632(0x15d)]()):this[_0x240632(0x151)]||this[_0x240632(0x16c)][_0x240632(0x170)]('');}),this[_0x11984a(0x14d)](this[_0x11984a(0x147)],_0x11984a(0x179),()=>{_0x4fb352=!0x0;}),this[_0x11984a(0x14d)](this[_0x11984a(0x147)],_0x11984a(0x144),()=>{_0x4fb352=!0x0;});}[_0x77940(0x164)](){const _0x26a835=_0x77940;this[_0x26a835(0x147)][_0x26a835(0x164)]();}[_0x77940(0x182)](){const _0x27f8ce=_0x77940,_0x266d2a=this[_0x27f8ce(0x18a)],_0x245f8c=new _0x542a45(this[_0x27f8ce(0x18a)]),_0x35aebf=_0x27f8ce(0x18b);return _0x245f8c[_0x27f8ce(0x141)]({'label':_0x3e2eac(_0x266d2a,_0x27f8ce(0x159)),'icon':_0x177c5d,'class':_0x35aebf,'tooltip':!0x0}),_0x245f8c[_0x27f8ce(0x154)](_0x27f8ce(0x173))['to'](this,_0x27f8ce(0x151),_0x248c28=>!!_0x248c28),_0x245f8c[_0x27f8ce(0x154)](_0x27f8ce(0x149))['to'](this,_0x27f8ce(0x189),_0x1da2b9=>!_0x1da2b9),_0x245f8c['on'](_0x27f8ce(0x13f),()=>{const _0x32e77c=_0x27f8ce;this[_0x32e77c(0x16e)](this[_0x32e77c(0x16c)][_0x32e77c(0x147)]),_0x245f8c[_0x32e77c(0x14a)]=_0xc142b3,_0x245f8c[_0x32e77c(0x158)]=_0x35aebf+_0x32e77c(0x16b),this[_0x32e77c(0x164)](),setTimeout(()=>{const _0x5b3c45=_0x32e77c;_0x245f8c[_0x5b3c45(0x14a)]=_0x177c5d,_0x245f8c[_0x5b3c45(0x158)]=_0x35aebf;},0x3e8);}),_0x245f8c;}[_0x77940(0x16e)](_0x3231c0){const _0x5b38ce=_0x77940,{window:_0x1bbb0f,document:_0x246112}=_0x171149;if(_0x1bbb0f[_0x5b38ce(0x153)]){const {Blob:_0x330523,ClipboardItem:_0x5ef155}=_0x1bbb0f,_0x329ca1=[new _0x5ef155({'text/html':new _0x330523([_0x3231c0[_0x5b38ce(0x175)]],{'type':_0x5b38ce(0x16f)}),'text/plain':new _0x330523([_0x3231c0[_0x5b38ce(0x167)]||''],{'type':_0x5b38ce(0x14b)})})];navigator[_0x5b38ce(0x168)][_0x5b38ce(0x187)](_0x329ca1);}else{const _0x23c41d=_0x246112[_0x5b38ce(0x152)](_0x5b38ce(0x14f));_0x23c41d[_0x5b38ce(0x14c)][_0x5b38ce(0x15f)]=_0x5b38ce(0x183),_0x23c41d[_0x5b38ce(0x14c)][_0x5b38ce(0x188)]=_0x5b38ce(0x160),_0x23c41d[_0x5b38ce(0x175)]=_0x5b38ce(0x157)+_0x3231c0[_0x5b38ce(0x175)]+_0x5b38ce(0x17c),_0x246112[_0x5b38ce(0x17d)][_0x5b38ce(0x15c)](_0x23c41d);const _0x58dbae=_0x246112[_0x5b38ce(0x184)]();_0x58dbae[_0x5b38ce(0x145)](_0x23c41d[_0x5b38ce(0x171)]),_0x58dbae[_0x5b38ce(0x142)](_0x23c41d[_0x5b38ce(0x163)]);const _0x4aea53=_0x1bbb0f[_0x5b38ce(0x185)]();_0x4aea53[_0x5b38ce(0x16d)](),_0x4aea53[_0x5b38ce(0x17b)](_0x58dbae),_0x246112[_0x5b38ce(0x181)](_0x5b38ce(0x13e)),_0x23c41d[_0x5b38ce(0x174)]();}}}function _0xf998(_0x18f517,_0x2088ea){const _0x363143=_0x3631();return _0xf998=function(_0xf998f0,_0x3fcb79){_0xf998f0=_0xf998f0-0x137;let _0x388ece=_0x363143[_0xf998f0];return _0x388ece;},_0xf998(_0x18f517,_0x2088ea);}function _0x3631(){const _0x39626a=['bindTemplate','isEnabled','icon','text/plain','style','listenTo','ck-ai-form__content-area--processing','div','ck-ai-form__content-field','value','createElement','ClipboardItem','bind','change:value','ck-hidden','<span>[</span>','class','Copy','1154877LHXOlT','7waYVKY','appendChild','appendLoader','39664273bJZmYg','position','-9999px','ck-ai-form__content-area-wrapper','5102214IevsQu','lastElementChild','focus','4947635jtSYQT','ck-ai-form__content-area','textContent','clipboard','1165880fzqSOO','ck-ai-form__loader','\x20ck-ai-form__copy-button--copied','contentFieldView','removeAllRanges','_copyHTMLToClipboard','text/html','setContent','firstElementChild','render','isVisible','remove','innerHTML','ck-content','setTemplate','smooth','wheel','scrollTo','addRange','<span>]</span>','body','change:isProcessing','querySelector','copyButtonView','execCommand','_createCopyButton','absolute','createRange','getSelection','_createLoader','write','left','isProcessing','locale','ck-ai-form__copy-button','ck-reset_all-excluded','10dtZePh','1EWyDjJ','loaderView','4993684kdNhwG','ck-ai-form__copy-button-wrapper','.ck-ai-form__loader','AI\x20is\x20writing...','copy','execute','1016DMhLTg','set','setEndBefore','29367qmqEtC','mousedown','setStartAfter','scrollHeight','element'];_0x3631=function(){return _0x39626a;};return _0x3631();}export class ContentFieldView extends _0x1d06bc{constructor(_0x5e82f7,_0x1b5b30=''){const _0x5ceeab=_0x77940;super(_0x5e82f7),this[_0x5ceeab(0x139)]=this[_0x5ceeab(0x186)](),this[_0x5ceeab(0x177)]({'tag':_0x5ceeab(0x14f),'attributes':{'class':['ck',_0x5ceeab(0x176),_0x1b5b30,_0x5ceeab(0x18c),_0x5ceeab(0x150)]}});}[_0x77940(0x170)](_0x476869){const _0x25fbe6=_0x77940;this[_0x25fbe6(0x147)][_0x25fbe6(0x175)]=_0x476869;}[_0x77940(0x15d)](){const _0x13634a=_0x77940;this[_0x13634a(0x147)][_0x13634a(0x15c)](this[_0x13634a(0x139)][_0x13634a(0x147)]);}[_0x77940(0x186)](){const _0x5c341f=_0x77940,_0x5c957b=new _0x1d06bc(),_0x3dd760=this[_0x5c341f(0x18a)],_0x1623f7=new _0x5ec01a();return _0x1623f7[_0x5c341f(0x173)]=!0x0,_0x5c957b[_0x5c341f(0x177)]({'tag':_0x5c341f(0x14f),'attributes':{'class':['ck',_0x5c341f(0x16a)]},'children':[_0x1623f7,{'text':_0x3e2eac(_0x3dd760,_0x5c341f(0x13d))}]}),_0x5c957b[_0x5c341f(0x172)](),_0x5c957b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5c3ece,_0x5a4951){const _0x181730=_0x1d34,_0x3e8957=_0x5c3ece();while(!![]){try{const _0x3bdbce=parseInt(_0x181730(0x97))/0x1+parseInt(_0x181730(0x93))/0x2+parseInt(_0x181730(0x8e))/0x3*(parseInt(_0x181730(0x96))/0x4)+parseInt(_0x181730(0x99))/0x5*(-parseInt(_0x181730(0x95))/0x6)+parseInt(_0x181730(0x92))/0x7+parseInt(_0x181730(0x91))/0x8+-parseInt(_0x181730(0x90))/0x9;if(_0x3bdbce===_0x5a4951)break;else _0x3e8957['push'](_0x3e8957['shift']());}catch(_0x49b184){_0x3e8957['push'](_0x3e8957['shift']());}}}(_0xd8e0,0x69033));import{IconError as _0x21b92a}from'ckeditor5/src/icons.js';function _0x1d34(_0x5b1801,_0x3b0e77){const _0xd8e01d=_0xd8e0();return _0x1d34=function(_0x1d3483,_0x1f23b7){_0x1d3483=_0x1d3483-0x8a;let _0x141cb7=_0xd8e01d[_0x1d3483];return _0x141cb7;},_0x1d34(_0x5b1801,_0x3b0e77);}import{View as _0x551874,IconView as _0x5718b3}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x551874{constructor(_0x5507e9,_0x21773e=''){const _0x2fdaa6=_0x1d34;super(_0x5507e9);const _0x3586ec=new _0x5718b3(),_0x34dac3=this[_0x2fdaa6(0x8f)];this[_0x2fdaa6(0x8b)](_0x2fdaa6(0x8d),_0x21773e),_0x3586ec[_0x2fdaa6(0x98)]=_0x21b92a,this[_0x2fdaa6(0x94)]({'tag':_0x2fdaa6(0x8a),'attributes':{'class':['ck',_0x2fdaa6(0x8c)]},'children':[_0x3586ec,{'text':_0x34dac3['to'](_0x2fdaa6(0x8d))}]});}}function _0xd8e0(){const _0xb12616=['1668048QCjZmE','988589UQVZDW','270260yPAEOU','setTemplate','1860kOvnjq','16MPMbKv','128884tAqidQ','content','4295TTuMMW','div','set','ck-ai-form__error','text','455712pxMUcG','bindTemplate','4724478sEXBgL'];_0xd8e0=function(){return _0xb12616;};return _0xd8e0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2972fb=_0x5827;(function(_0x1cda18,_0x9b0f98){const _0xceefe5=_0x5827,_0x4d4dc6=_0x1cda18();while(!![]){try{const _0x3ba857=-parseInt(_0xceefe5(0x1f9))/0x1*(-parseInt(_0xceefe5(0x219))/0x2)+-parseInt(_0xceefe5(0x207))/0x3+-parseInt(_0xceefe5(0x216))/0x4+parseInt(_0xceefe5(0x1fb))/0x5+-parseInt(_0xceefe5(0x1e4))/0x6*(-parseInt(_0xceefe5(0x1fe))/0x7)+parseInt(_0xceefe5(0x1e9))/0x8+parseInt(_0xceefe5(0x1eb))/0x9*(parseInt(_0xceefe5(0x1e6))/0xa);if(_0x3ba857===_0x9b0f98)break;else _0x4d4dc6['push'](_0x4d4dc6['shift']());}catch(_0x1bdd55){_0x4d4dc6['push'](_0x4d4dc6['shift']());}}}(_0x146d,0x5a24b));function _0x5827(_0x3b3846,_0xa97bd9){const _0x146da1=_0x146d();return _0x5827=function(_0x582723,_0x7e088e){_0x582723=_0x582723-0x1e2;let _0x4c6fe7=_0x146da1[_0x582723];return _0x4c6fe7;},_0x5827(_0x3b3846,_0xa97bd9);}import{Rect as _0x437294,global as _0x301cf7,isVisible as _0x20db88}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x9e4165,IconSubmit as _0x2b55c9}from'ckeditor5/src/icons.js';function _0x146d(){const _0x2ee23e=['70JBOlEa','keystrokes','add','_createShowHistoryButton','right','6cnRSrm','enter','530pnFPAI','update','minRows','207976fyoIpW','style','2745mayTGi','width','uiLanguageDirection','focusLast','_createSubmitButton','fire','rtl','showHistoryButtonView','ck-ai-form__toggle-history','excludeScrollbarsAndBorders','children','isEnabled','requestAnimationFrame','History','5418XLpakZ','target','1224210bzzZVQ','filteredView','resultsView','3670828enBVzn','window','execute','isVisible','focusFirst','ck-ai-form__submit','set','render','bind','1272585eaOimA','left','fieldView','focusableChildren','focus','fieldWrapperChildren','value','submitButtonView','maxRows','locale','isOn','submit','queryView','element','isEmpty','830464IFDAsa','Submit','focusCycler'];_0x146d=function(){return _0x2ee23e;};return _0x146d();}import{AutocompleteView as _0x1187e7,ButtonView as _0x3e6337}from'ckeditor5/src/ui.js';import{getTranslation as _0xf42fa4}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x1187e7{[_0x2972fb(0x20e)];[_0x2972fb(0x1f2)];constructor(_0x2fc1b9,_0x229dda){const _0x4b13b3=_0x2972fb;super(_0x2fc1b9,_0x229dda),this[_0x4b13b3(0x213)][_0x4b13b3(0x209)][_0x4b13b3(0x1e8)]=0x1,this[_0x4b13b3(0x213)][_0x4b13b3(0x209)][_0x4b13b3(0x20f)]=0x3,this[_0x4b13b3(0x20e)]=this[_0x4b13b3(0x1ef)](),this[_0x4b13b3(0x1f2)]=this[_0x4b13b3(0x1e2)](),this[_0x4b13b3(0x20a)][_0x4b13b3(0x21b)](this[_0x4b13b3(0x1f2)],0x1),this[_0x4b13b3(0x20a)][_0x4b13b3(0x21b)](this[_0x4b13b3(0x20e)]);}[_0x2972fb(0x205)](){const _0x495519=_0x2972fb;super[_0x495519(0x205)](),this[_0x495519(0x213)][_0x495519(0x20c)][_0x495519(0x21b)](this[_0x495519(0x1f2)]),this[_0x495519(0x1f5)][_0x495519(0x21b)](this[_0x495519(0x20e)]),this[_0x495519(0x21a)][_0x495519(0x204)](_0x495519(0x1e5),(_0x3d691f,_0x5ee678)=>{const _0x19968b=_0x495519;_0x3d691f[_0x19968b(0x1fa)]==this[_0x19968b(0x213)][_0x19968b(0x209)][_0x19968b(0x214)]&&(this[_0x19968b(0x212)](),_0x5ee678());});}[_0x2972fb(0x1ef)](){const _0x5d2c93=_0x2972fb,_0x371cb6=new _0x3e6337(this[_0x5d2c93(0x210)]),_0x5ea51a=this[_0x5d2c93(0x210)];return _0x371cb6[_0x5d2c93(0x204)]({'icon':_0x2b55c9,'label':_0xf42fa4(_0x5ea51a,_0x5d2c93(0x217)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5d2c93(0x203)}),_0x371cb6['on'](_0x5d2c93(0x200),()=>{const _0x38a30f=_0x5d2c93;this[_0x38a30f(0x212)]();}),_0x371cb6[_0x5d2c93(0x206)](_0x5d2c93(0x1f6))['to'](this[_0x5d2c93(0x213)][_0x5d2c93(0x209)],_0x5d2c93(0x215),this,_0x5d2c93(0x1f6),(_0x857b0d,_0x673f29)=>!_0x857b0d&&_0x673f29),_0x371cb6;}[_0x2972fb(0x1e2)](){const _0xfaec18=_0x2972fb,_0x4a6159=new _0x3e6337(this[_0xfaec18(0x210)]),_0xef1d7d=this[_0xfaec18(0x1fd)],_0x28984c=this[_0xfaec18(0x210)];_0x4a6159[_0xfaec18(0x204)]({'label':_0xf42fa4(_0x28984c,_0xfaec18(0x1f8)),'withText':!0x1,'icon':_0x9e4165,'tooltip':!0x0,'tooltipPosition':'sw','class':_0xfaec18(0x1f3)}),_0x4a6159[_0xfaec18(0x206)](_0xfaec18(0x211))['to'](_0xef1d7d,_0xfaec18(0x201)),_0x4a6159[_0xfaec18(0x206)](_0xfaec18(0x1f6))['to'](this,_0xfaec18(0x1f6)),_0x4a6159['on'](_0xfaec18(0x200),()=>{const _0x4cdb9f=_0xfaec18;_0xef1d7d[_0x4cdb9f(0x201)]=!_0xef1d7d[_0x4cdb9f(0x201)],_0xef1d7d[_0x4cdb9f(0x201)]?this[_0x4cdb9f(0x1fc)][_0x4cdb9f(0x20b)]():this[_0x4cdb9f(0x20b)]();});const _0x1d06f3=()=>{const _0x1c5203=_0xfaec18;_0x301cf7[_0x1c5203(0x1ff)][_0x1c5203(0x1f7)](()=>{const _0x855751=_0x1c5203;if(_0x20db88(this[_0x855751(0x214)])){const _0x1b1493=new _0x437294(this[_0x855751(0x213)][_0x855751(0x209)][_0x855751(0x214)]),_0x182c9a=_0x1b1493[_0x855751(0x1ec)],_0x579533=_0x855751(0x1f1)===_0x28984c[_0x855751(0x1ed)]?_0x855751(0x208):_0x855751(0x1e3);_0x1b1493[_0x855751(0x1f4)](),_0x4a6159[_0x855751(0x214)][_0x855751(0x1ea)][_0x579533]=_0x182c9a-_0x1b1493[_0x855751(0x1ec)]+0x1+'px';}});};return this[_0xfaec18(0x213)][_0xfaec18(0x209)]['on'](_0xfaec18(0x1e7),_0x1d06f3),this['on'](_0xfaec18(0x205),_0x1d06f3),_0x4a6159;}[_0x2972fb(0x212)](){const _0x44c1c2=_0x2972fb,_0x46af42=this[_0x44c1c2(0x213)][_0x44c1c2(0x209)][_0x44c1c2(0x214)][_0x44c1c2(0x20d)];this[_0x44c1c2(0x1f0)](_0x44c1c2(0x212),_0x46af42);}[_0x2972fb(0x20b)](_0x19b4ef){const _0x3d9aeb=_0x2972fb;-0x1===_0x19b4ef?this[_0x3d9aeb(0x218)][_0x3d9aeb(0x1ee)]():this[_0x3d9aeb(0x218)][_0x3d9aeb(0x202)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x453d(){const _0x555823=['_CONTENT','5trFFIR','tryAgainButton','ck-ai-form__toolbar','replace','stopButton','1877770iikgMP','insertButton','locale','AI_','mainAction','132582igGghx','replaceButton','9HTEtzC','6PhnqOn','extendTemplate','REPLACE','Insert\x20below','Try\x20again','110DDQSCw','label','insert','ck-button-action','isVisible','5188yVUZuv','items','addMany','_createButton','427mGILjr','set','ck-hidden','108522tPeHVq','bindTemplate','toUpperCase','862572nFMQPp','Stop','16440SgSjdN','54136HssiRC','bind'];_0x453d=function(){return _0x555823;};return _0x453d();}const _0x5e6f54=_0x584b;(function(_0xe66cc9,_0x41bfb9){const _0xe8f6cb=_0x584b,_0x2c00eb=_0xe66cc9();while(!![]){try{const _0x6eea30=-parseInt(_0xe8f6cb(0x14f))/0x1+-parseInt(_0xe8f6cb(0x152))/0x2*(parseInt(_0xe8f6cb(0x13c))/0x3)+parseInt(_0xe8f6cb(0x135))/0x4*(-parseInt(_0xe8f6cb(0x145))/0x5)+-parseInt(_0xe8f6cb(0x141))/0x6*(parseInt(_0xe8f6cb(0x139))/0x7)+parseInt(_0xe8f6cb(0x142))/0x8*(-parseInt(_0xe8f6cb(0x151))/0x9)+-parseInt(_0xe8f6cb(0x14a))/0xa+parseInt(_0xe8f6cb(0x130))/0xb*(parseInt(_0xe8f6cb(0x13f))/0xc);if(_0x6eea30===_0x41bfb9)break;else _0x2c00eb['push'](_0x2c00eb['shift']());}catch(_0x39c93f){_0x2c00eb['push'](_0x2c00eb['shift']());}}}(_0x453d,0x1c025));import{ToolbarView as _0x383fc0,ButtonView as _0x58f5e1}from'ckeditor5/src/ui.js';import{getTranslation as _0x57c405}from'../../utils/common-translations.js';function _0x584b(_0x38d33f,_0x1029d6){const _0x453d91=_0x453d();return _0x584b=function(_0x584b58,_0x7f06dd){_0x584b58=_0x584b58-0x12c;let _0x17683a=_0x453d91[_0x584b58];return _0x17683a;},_0x584b(_0x38d33f,_0x1029d6);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5e6f54(0x148),'INSERT':_0x5e6f54(0x132)};export class AIFormToolbarView extends _0x383fc0{constructor(_0x2013af){const _0x15975e=_0x5e6f54;super(_0x2013af),this[_0x15975e(0x13a)](_0x15975e(0x134),!0x1),this[_0x15975e(0x13a)](_0x15975e(0x14e),AIFormToolbarViewMainActionLabel[_0x15975e(0x12d)]),this[_0x15975e(0x150)]=this[_0x15975e(0x138)]('',_0x15975e(0x133)),this[_0x15975e(0x150)][_0x15975e(0x143)](_0x15975e(0x131))['to'](this,_0x15975e(0x14e),_0x40da96=>_0x57c405(_0x2013af,_0x15975e(0x14d)+_0x40da96[_0x15975e(0x13e)]()+_0x15975e(0x144))),this[_0x15975e(0x14b)]=this[_0x15975e(0x138)](_0x57c405(_0x2013af,_0x15975e(0x12e))),this[_0x15975e(0x146)]=this[_0x15975e(0x138)](_0x57c405(_0x2013af,_0x15975e(0x12f))),this[_0x15975e(0x149)]=this[_0x15975e(0x138)](_0x57c405(_0x2013af,_0x15975e(0x140)));const _0x37381d=this[_0x15975e(0x13d)];this[_0x15975e(0x12c)]({'attributes':{'class':[_0x15975e(0x147),_0x37381d['if'](_0x15975e(0x134),_0x15975e(0x13b),_0x43c5fa=>!_0x43c5fa)]}}),this[_0x15975e(0x136)][_0x15975e(0x137)]([this[_0x15975e(0x150)],this[_0x15975e(0x14b)],this[_0x15975e(0x146)],this[_0x15975e(0x149)]]);}[_0x5e6f54(0x138)](_0x276226,_0x209294){const _0x5f301a=_0x5e6f54,_0x112a22=new _0x58f5e1(this[_0x5f301a(0x14c)]);return _0x112a22[_0x5f301a(0x13a)]({'label':_0x276226,'class':_0x209294||'','isVisible':!0x0,'withText':!0x0}),_0x112a22;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47d175=_0x4a83;(function(_0x1c4e08,_0x473d67){const _0x25128f=_0x4a83,_0x5e4a9e=_0x1c4e08();while(!![]){try{const _0x2667c6=-parseInt(_0x25128f(0x188))/0x1+parseInt(_0x25128f(0x178))/0x2*(parseInt(_0x25128f(0x17a))/0x3)+-parseInt(_0x25128f(0x16e))/0x4+-parseInt(_0x25128f(0x191))/0x5+parseInt(_0x25128f(0x173))/0x6+parseInt(_0x25128f(0x160))/0x7*(parseInt(_0x25128f(0x170))/0x8)+parseInt(_0x25128f(0x15d))/0x9;if(_0x2667c6===_0x473d67)break;else _0x5e4a9e['push'](_0x5e4a9e['shift']());}catch(_0x95370){_0x5e4a9e['push'](_0x5e4a9e['shift']());}}}(_0x2c4f,0x9f151));import{FocusTracker as _0x39b343,KeystrokeHandler as _0x4b241b}from'ckeditor5/src/utils.js';import{View as _0x42a043,FocusCycler as _0x19f814,createLabeledTextarea as _0x5a2c88}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x5b7567,AIFormToolbarViewMainActionLabel as _0x564690}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x45a5ab}from'./aiformcontentarea.js';import{AIFormErrorView as _0x26e1e1}from'./aiformerrorview.js';import{AIFormPromptView as _0x4f340a}from'./aiformpromptview.js';import{AIHistoryListView as _0x4f5b3e}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x38a6a9}from'./aihistorylistitemview.js';import{PromptHistory as _0x124485}from'./prompthistory.js';import{getTranslation as _0x517318}from'../../utils/common-translations.js';import{escape as _0x2ca48d}from'es-toolkit/compat';function _0x4a83(_0x75765b,_0x170496){const _0x2c4f8d=_0x2c4f();return _0x4a83=function(_0x4a834c,_0x4caae7){_0x4a834c=_0x4a834c-0x14b;let _0x4ef06c=_0x2c4f8d[_0x4a834c];return _0x4ef06c;},_0x4a83(_0x75765b,_0x170496);}function _0x2c4f(){const _0x2f7316=['805856ZdWXrj','focusTracker','value','copyButtonView','text','promptView','contentArea','submit','fire','5901200dDAzic','_promptHistory','isVisible','search','clearHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','errorView','isProcessing','_createToolbar','keystrokes','tryAgainEvent','ck-ai-form','setTemplate','label','ck-hidden','bindTemplate','tab','set','stopButton','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','Empty\x20history','startProcessing','replaceContent','stopProcessing','high','createCollection','historyGroupView','locale','focus','submitPrompt','prompt','trim','9419697kOWfqP','execute','clear','49RbzKfR','isError','listenTo','finishProcessing','_createHistoryView','AI_ERROR_FAILED','replaceButton','isEnabled','shift\x20+\x20tab','focusCycler','bindTo','insertContentBelow','items','reset','3269180crmUNF','toolbar','947464nSlwTO','add','fieldView','2693190JTUBbs','tryAgainButton','element','render','_focusables','2AxZHWj','ck-ai-form-content','3391389FWhtZG','focusLast','focusFirst','handleError','mainAction','_createPromptView','insertButton','chain','REPLACE','div','Ask\x20AI\x20to\x20edit\x20or\x20generate','delegate','bind','queryView'];_0x2c4f=function(){return _0x2f7316;};return _0x2c4f();}export class AIFormView extends _0x42a043{[_0x47d175(0x189)];[_0x47d175(0x19a)];[_0x47d175(0x18e)];[_0x47d175(0x16f)];[_0x47d175(0x18d)];[_0x47d175(0x197)];[_0x47d175(0x177)];[_0x47d175(0x169)];[_0x47d175(0x192)];constructor(_0x130329,_0x5eee39,_0x202034=''){const _0x4fc373=_0x47d175;super(_0x130329),this[_0x4fc373(0x14e)](_0x4fc373(0x167),!0x0),this[_0x4fc373(0x14e)](_0x4fc373(0x198),!0x1),this[_0x4fc373(0x14e)](_0x4fc373(0x15b),''),this[_0x4fc373(0x14e)](_0x4fc373(0x18a),''),this[_0x4fc373(0x14e)](_0x4fc373(0x161),!0x1),this[_0x4fc373(0x14e)](_0x4fc373(0x17e),_0x564690[_0x4fc373(0x182)]),this[_0x4fc373(0x192)]=new _0x124485(),this[_0x4fc373(0x197)]=new _0x26e1e1(_0x130329),this[_0x4fc373(0x18e)]=new _0x45a5ab(_0x130329,_0x202034),this[_0x4fc373(0x18e)][_0x4fc373(0x186)](_0x4fc373(0x198))['to'](this),this[_0x4fc373(0x18e)][_0x4fc373(0x186)](_0x4fc373(0x18a))['to'](this),this[_0x4fc373(0x16f)]=this[_0x4fc373(0x199)](),this[_0x4fc373(0x16f)][_0x4fc373(0x186)](_0x4fc373(0x17e))['to'](this),this[_0x4fc373(0x18d)]=this[_0x4fc373(0x17f)](),this[_0x4fc373(0x189)]=new _0x39b343(),this[_0x4fc373(0x19a)]=new _0x4b241b(),this[_0x4fc373(0x177)]=this[_0x4fc373(0x156)]([this[_0x4fc373(0x18e)],this[_0x4fc373(0x18e)][_0x4fc373(0x18b)],this[_0x4fc373(0x16f)],this[_0x4fc373(0x18d)]]),this[_0x4fc373(0x169)]=new _0x19f814({'focusables':this[_0x4fc373(0x177)],'focusTracker':this[_0x4fc373(0x189)],'keystrokeHandler':this[_0x4fc373(0x19a)],'actions':{'focusPrevious':_0x4fc373(0x168),'focusNext':_0x4fc373(0x14d)}}),this[_0x4fc373(0x169)][_0x4fc373(0x181)](this[_0x4fc373(0x18d)][_0x4fc373(0x169)]),this[_0x4fc373(0x18d)][_0x4fc373(0x187)][_0x4fc373(0x172)][_0x4fc373(0x186)](_0x4fc373(0x18a))['to'](this,_0x4fc373(0x15b));const _0xe28411=this[_0x4fc373(0x14c)];this[_0x4fc373(0x19d)]({'tag':_0x4fc373(0x183),'attributes':{'class':['ck',_0x4fc373(0x19c),_0x5eee39],'tabindex':'-1'},'children':[{'tag':_0x4fc373(0x183),'attributes':{'class':['ck',_0x4fc373(0x179)]},'children':[{'tag':_0x4fc373(0x183),'attributes':{'class':[_0xe28411['if'](_0x4fc373(0x161),_0x4fc373(0x14b),_0x39fed0=>!_0x39fed0)]},'children':[this[_0x4fc373(0x197)]]},this[_0x4fc373(0x18e)],this[_0x4fc373(0x16f)],this[_0x4fc373(0x18d)]]}]});}[_0x47d175(0x176)](){const _0x136894=_0x47d175;super[_0x136894(0x176)](),this[_0x136894(0x189)][_0x136894(0x171)](this[_0x136894(0x18e)][_0x136894(0x175)]),this[_0x136894(0x189)][_0x136894(0x171)](this[_0x136894(0x18e)][_0x136894(0x18b)][_0x136894(0x175)]),this[_0x136894(0x189)][_0x136894(0x171)](this[_0x136894(0x16f)][_0x136894(0x175)]),this[_0x136894(0x189)][_0x136894(0x171)](this[_0x136894(0x18d)][_0x136894(0x175)]),this[_0x136894(0x19a)][_0x136894(0x162)](this[_0x136894(0x175)]);}[_0x47d175(0x159)](_0x5c5603=0x1){const _0x2d4041=_0x47d175;-0x1===_0x5c5603?this[_0x2d4041(0x169)][_0x2d4041(0x17b)]():this[_0x2d4041(0x169)][_0x2d4041(0x17c)]();}[_0x47d175(0x16d)](){const _0x2ea3d8=_0x47d175;this[_0x2ea3d8(0x15b)]='',this[_0x2ea3d8(0x18a)]='',this[_0x2ea3d8(0x161)]=!0x1,this[_0x2ea3d8(0x18d)][_0x2ea3d8(0x16d)](),this[_0x2ea3d8(0x18e)][_0x2ea3d8(0x193)]=!0x1,this[_0x2ea3d8(0x16f)][_0x2ea3d8(0x193)]=!0x1;}[_0x47d175(0x17f)](){const _0x5c8e45=_0x47d175,_0x593fe2=this[_0x5c8e45(0x158)],_0x2458ef=new _0x4f340a(_0x593fe2,{'queryView':{'label':_0x517318(_0x593fe2,_0x5c8e45(0x184)),'creator':_0x5a2c88,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x517318(_0x593fe2,_0x5c8e45(0x151)),'secondary':_0x517318(_0x593fe2,_0x5c8e45(0x150))}}},'filteredView':this[_0x5c8e45(0x164)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2458ef[_0x5c8e45(0x186)](_0x5c8e45(0x167))['to'](this,_0x5c8e45(0x167),this,_0x5c8e45(0x198),(_0x588e45,_0x494920)=>_0x588e45&&!_0x494920),this[_0x5c8e45(0x162)](_0x2458ef,_0x5c8e45(0x18f),(_0x19f515,_0x3e27a6)=>{const _0x21fa52=_0x5c8e45;this[_0x21fa52(0x15b)]=_0x3e27a6;const _0x60e6=_0x2ca48d(_0x3e27a6);this[_0x21fa52(0x190)](_0x21fa52(0x15a),_0x60e6),_0x3e27a6[_0x21fa52(0x15c)]()&&this[_0x21fa52(0x192)][_0x21fa52(0x171)]({'prompt':_0x60e6},0x0);},{'priority':_0x5c8e45(0x155)}),_0x2458ef;}[_0x47d175(0x164)](){const _0x25b9a0=_0x47d175,_0x34c37b=new _0x4f5b3e(this[_0x25b9a0(0x158)]);return _0x34c37b[_0x25b9a0(0x157)][_0x25b9a0(0x16c)][_0x25b9a0(0x16a)](this[_0x25b9a0(0x192)])['as'](_0x38a6a9),_0x34c37b['on'](_0x25b9a0(0x195),()=>{const _0x227276=_0x25b9a0;this[_0x227276(0x192)][_0x227276(0x15f)](),this[_0x227276(0x18d)][_0x227276(0x194)](''),this[_0x227276(0x18d)][_0x227276(0x159)]();}),_0x34c37b;}[_0x47d175(0x199)](){const _0x2263e1=_0x47d175,_0x2695bf=new _0x5b7567(this[_0x2263e1(0x158)]);return _0x2695bf[_0x2263e1(0x166)][_0x2263e1(0x186)](_0x2263e1(0x167))['to'](this,_0x2263e1(0x167),this,_0x2263e1(0x198),this,_0x2263e1(0x18a),(_0x12aaf1,_0x29321e,_0x3bbec3)=>_0x12aaf1&&!_0x29321e&&!!_0x3bbec3),_0x2695bf[_0x2263e1(0x166)][_0x2263e1(0x185)](_0x2263e1(0x15e))['to'](this,_0x2263e1(0x153)),_0x2695bf[_0x2263e1(0x180)][_0x2263e1(0x186)](_0x2263e1(0x167))['to'](this,_0x2263e1(0x167),this,_0x2263e1(0x198),this,_0x2263e1(0x18a),(_0x64669c,_0x8598f4,_0x19824d)=>_0x64669c&&!_0x8598f4&&!!_0x19824d),_0x2695bf[_0x2263e1(0x180)][_0x2263e1(0x185)](_0x2263e1(0x15e))['to'](this,_0x2263e1(0x16b)),_0x2695bf[_0x2263e1(0x174)][_0x2263e1(0x186)](_0x2263e1(0x167))['to'](this,_0x2263e1(0x167),this,_0x2263e1(0x198),(_0x436a19,_0x270cba)=>_0x436a19&&!_0x270cba),_0x2695bf[_0x2263e1(0x174)][_0x2263e1(0x185)](_0x2263e1(0x15e))['to'](this,_0x2263e1(0x19b)),_0x2695bf[_0x2263e1(0x14f)][_0x2263e1(0x186)](_0x2263e1(0x167))['to'](this,_0x2263e1(0x198)),_0x2695bf[_0x2263e1(0x14f)][_0x2263e1(0x185)](_0x2263e1(0x15e))['to'](this,_0x2263e1(0x154)),_0x2695bf;}[_0x47d175(0x152)](){const _0x11fc8e=_0x47d175;this[_0x11fc8e(0x18a)]='',this[_0x11fc8e(0x161)]=!0x1,this[_0x11fc8e(0x198)]=!0x0,this[_0x11fc8e(0x18e)][_0x11fc8e(0x193)]=!0x0,this[_0x11fc8e(0x16f)][_0x11fc8e(0x193)]=!0x0,this[_0x11fc8e(0x18e)][_0x11fc8e(0x159)]();}[_0x47d175(0x163)](){const _0x3f8ff3=_0x47d175,_0x9ba5fc=this[_0x3f8ff3(0x158)];this[_0x3f8ff3(0x198)]=!0x1,this[_0x3f8ff3(0x15b)]='',this[_0x3f8ff3(0x18d)][_0x3f8ff3(0x16d)](),this[_0x3f8ff3(0x18a)]&&(this[_0x3f8ff3(0x18d)][_0x3f8ff3(0x187)][_0x3f8ff3(0x19e)]=_0x517318(_0x9ba5fc,_0x3f8ff3(0x196)));}[_0x47d175(0x17d)](_0x41c344){const _0x3d1d83=_0x47d175,_0x535199=this[_0x3d1d83(0x158)];this[_0x3d1d83(0x163)](),this[_0x3d1d83(0x161)]=!0x0,this[_0x3d1d83(0x197)][_0x3d1d83(0x18c)]=_0x41c344||_0x517318(_0x535199,_0x3d1d83(0x165)),this[_0x3d1d83(0x18a)]||(this[_0x3d1d83(0x18e)][_0x3d1d83(0x193)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4cc93f,_0x5ce837){const _0x1490cf=_0x5cbb,_0x302d49=_0x4cc93f();while(!![]){try{const _0x153cc6=-parseInt(_0x1490cf(0x18d))/0x1+-parseInt(_0x1490cf(0x18f))/0x2+-parseInt(_0x1490cf(0x192))/0x3+parseInt(_0x1490cf(0x195))/0x4*(-parseInt(_0x1490cf(0x18e))/0x5)+parseInt(_0x1490cf(0x194))/0x6+parseInt(_0x1490cf(0x199))/0x7+parseInt(_0x1490cf(0x190))/0x8;if(_0x153cc6===_0x5ce837)break;else _0x302d49['push'](_0x302d49['shift']());}catch(_0x10418a){_0x302d49['push'](_0x302d49['shift']());}}}(_0x1f75,0x9234e));function _0x5cbb(_0x23bb02,_0xbf6a41){const _0x1f7594=_0x1f75();return _0x5cbb=function(_0x5cbb3e,_0x1546e){_0x5cbb3e=_0x5cbb3e-0x18d;let _0x2edf1f=_0x1f7594[_0x5cbb3e];return _0x2edf1f;},_0x5cbb(_0x23bb02,_0xbf6a41);}import{ListItemView as _0x14ac70,ButtonView as _0x2f0104,ButtonLabelView as _0x1333b2}from'ckeditor5/src/ui.js';import{unescape as _0x462f04}from'es-toolkit/compat';function _0x1f75(){const _0x4d63b7=['set','135459uUYpvl','fire','2225970GvCTLw','76lGEABs','prompt','add','execute','7629608lpZIGs','children','locale','1043133yGBFPE','61515DkAswN','29214xjjGWr','3796584iplSgJ'];_0x1f75=function(){return _0x4d63b7;};return _0x1f75();}export class AIHistoryListItemView extends _0x14ac70{constructor(_0x1e2763){const _0x48a53b=_0x5cbb;super();const _0x184b04=new _0x1333b2(),_0x4f157f=new _0x2f0104(this[_0x48a53b(0x19b)],_0x184b04);this[_0x48a53b(0x19a)][_0x48a53b(0x197)](_0x4f157f),_0x4f157f[_0x48a53b(0x191)]({'label':_0x1e2763[_0x48a53b(0x196)],'withText':!0x0}),_0x4f157f['on'](_0x48a53b(0x198),()=>{const _0x4c97bc=_0x48a53b;this[_0x4c97bc(0x193)](_0x4c97bc(0x198),{'value':_0x462f04(_0x1e2763[_0x4c97bc(0x196)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f370f=_0x1ac4;(function(_0x5186c3,_0x2327b4){const _0x173967=_0x1ac4,_0x704767=_0x5186c3();while(!![]){try{const _0x545d00=-parseInt(_0x173967(0x11f))/0x1*(parseInt(_0x173967(0x126))/0x2)+-parseInt(_0x173967(0x132))/0x3*(parseInt(_0x173967(0x139))/0x4)+parseInt(_0x173967(0x12b))/0x5*(parseInt(_0x173967(0x121))/0x6)+-parseInt(_0x173967(0x128))/0x7+parseInt(_0x173967(0x12f))/0x8+-parseInt(_0x173967(0x12c))/0x9+parseInt(_0x173967(0x131))/0xa;if(_0x545d00===_0x2327b4)break;else _0x704767['push'](_0x704767['shift']());}catch(_0x2ba721){_0x704767['push'](_0x704767['shift']());}}}(_0x5bfa,0x96bca));import{ListView as _0x51406a,ListItemGroupView as _0x282e3a,ButtonView as _0xaa1957}from'ckeditor5/src/ui.js';function _0x1ac4(_0x6950e4,_0x325ce7){const _0x5bfa58=_0x5bfa();return _0x1ac4=function(_0x1ac430,_0x58856f){_0x1ac430=_0x1ac430-0x11f;let _0x370dd5=_0x5bfa58[_0x1ac430];return _0x370dd5;},_0x1ac4(_0x6950e4,_0x325ce7);}import{getTranslation as _0x10f5c8}from'../../utils/common-translations.js';function _0x5bfa(){const _0x21e3ee=['clearHistoryButton','Clear','length','items','13704RlzDQi','10229fOVRFh','set','78sEvEQy','clearHistory','_createClearHistoryButton','locale','label','170UGkpkt','delegate','3530373bIPYyw','Prompt\x20history','add','277445JqRXtY','8171793mpHjLk','execute','filter','6171248uxTPmn','fire','22252500BKlWim','717smqtYv','historyGroupView','children'];_0x5bfa=function(){return _0x21e3ee;};return _0x5bfa();}export class AIHistoryListView extends _0x51406a{[_0x4f370f(0x133)];[_0x4f370f(0x135)];constructor(_0x143486){const _0x4bd0a2=_0x4f370f;super(_0x143486),this[_0x4bd0a2(0x135)]=this[_0x4bd0a2(0x123)](),this[_0x4bd0a2(0x133)]=new _0x282e3a(),this[_0x4bd0a2(0x133)][_0x4bd0a2(0x134)][_0x4bd0a2(0x12a)](this[_0x4bd0a2(0x135)],0x1),this[_0x4bd0a2(0x133)][_0x4bd0a2(0x125)]=_0x10f5c8(_0x143486,_0x4bd0a2(0x129)),this[_0x4bd0a2(0x133)][_0x4bd0a2(0x138)][_0x4bd0a2(0x127)](_0x4bd0a2(0x12d))['to'](this),this[_0x4bd0a2(0x138)][_0x4bd0a2(0x12a)](this[_0x4bd0a2(0x133)]);}[_0x4f370f(0x12e)](){const _0x5e356f=_0x4f370f;let _0x4cf013=0x0;for(const _0x2943af of this[_0x5e356f(0x138)])_0x4cf013+=_0x2943af[_0x5e356f(0x138)][_0x5e356f(0x137)];return{'resultsCount':_0x4cf013,'totalItemsCount':_0x4cf013};}[_0x4f370f(0x123)](){const _0x18ea68=_0x4f370f,_0x502533=this[_0x18ea68(0x124)],_0x3ce561=new _0xaa1957(this[_0x18ea68(0x124)]);return _0x3ce561[_0x18ea68(0x120)]({'label':'('+_0x10f5c8(_0x502533,_0x18ea68(0x136))+')','withText':!0x0}),_0x3ce561['on'](_0x18ea68(0x12d),()=>this[_0x18ea68(0x130)](_0x18ea68(0x122))),_0x3ce561;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ee0b5=_0x1745;function _0xc394(){const _0xdc659c=['1511285naVCzL','parse','addMany','116KNGfns','trim','CKEditor/AIFormView/PromptHistory','prompt','remove','add','2835402SUzUnI','18VhePXk','length','88ytsTqd','stringify','_loadFromSessionStorage','setItem','toLowerCase','139350Xeoyzp','6050755CFSlUQ','740985lPMVFr','getItem','last','9TbjTeV','11849296moXmIp','map','_saveToSessionStorage','135219FIKslR'];_0xc394=function(){return _0xdc659c;};return _0xc394();}function _0x1745(_0x541754,_0x48b6d1){const _0xc39441=_0xc394();return _0x1745=function(_0x174557,_0x2cc49a){_0x174557=_0x174557-0x189;let _0x4fa74a=_0xc39441[_0x174557];return _0x4fa74a;},_0x1745(_0x541754,_0x48b6d1);}(function(_0x135d2a,_0x4a4808){const _0xdbccce=_0x1745,_0x21fa0a=_0x135d2a();while(!![]){try{const _0x15f475=parseInt(_0xdbccce(0x18d))/0x1+-parseInt(_0xdbccce(0x196))/0x2+-parseInt(_0xdbccce(0x18c))/0x3*(-parseInt(_0xdbccce(0x190))/0x4)+parseInt(_0xdbccce(0x19f))/0x5+-parseInt(_0xdbccce(0x197))/0x6*(parseInt(_0xdbccce(0x1a0))/0x7)+-parseInt(_0xdbccce(0x189))/0x8*(parseInt(_0xdbccce(0x1a3))/0x9)+parseInt(_0xdbccce(0x19e))/0xa*(parseInt(_0xdbccce(0x199))/0xb);if(_0x15f475===_0x4a4808)break;else _0x21fa0a['push'](_0x21fa0a['shift']());}catch(_0x35be0){_0x21fa0a['push'](_0x21fa0a['shift']());}}}(_0xc394,0xe17d5));import{Collection as _0x5e5ec1}from'ckeditor5/src/utils.js';const Sr=_0x2ee0b5(0x192);export class PromptHistory extends _0x5e5ec1{constructor(){const _0x56a7e9=_0x2ee0b5;super(),this[_0x56a7e9(0x19b)](),this['on'](_0x56a7e9(0x195),(_0x16dc4b,_0x3df9e2)=>{const _0x390568=_0x56a7e9,_0x1ee4cc=Fr(_0x3df9e2[_0x390568(0x193)]);for(const _0x3da9b1 of this)if(_0x3da9b1!=_0x3df9e2&&Fr(_0x3da9b1[_0x390568(0x193)])===_0x1ee4cc){this[_0x390568(0x194)](_0x3da9b1);break;}this[_0x390568(0x198)]>0x14&&this[_0x390568(0x194)](this[_0x390568(0x1a2)]),this[_0x390568(0x18b)]();}),this['on'](_0x56a7e9(0x194),()=>{const _0x1e986a=_0x56a7e9;this[_0x1e986a(0x18b)]();});}[_0x2ee0b5(0x19b)](){const _0x5bb7cb=_0x2ee0b5,_0x3ff0f4=sessionStorage[_0x5bb7cb(0x1a1)](Sr)||'[]';this[_0x5bb7cb(0x18f)](JSON[_0x5bb7cb(0x18e)](_0x3ff0f4));}[_0x2ee0b5(0x18b)](){const _0x1ee8f0=_0x2ee0b5;sessionStorage[_0x1ee8f0(0x19c)](Sr,JSON[_0x1ee8f0(0x19a)](this[_0x1ee8f0(0x18a)](_0x2723c9=>_0x2723c9)));}}function Fr(_0xee3eae){const _0x115811=_0x2ee0b5;return _0xee3eae[_0x115811(0x19d)]()[_0x115811(0x191)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4a67(){const _0x43d7a3=['name','length','includes','getRanges','model','values','837246dIBbac','24bvLMBC','execute','refresh','change:isEnabled','isEmpty','selection','getItems','enabledCommandsIds','config','change:_hasContext','isEnabled','ai.assistant.disabledElements','custom','_hasContext','showUI','59036XCTuTo','_commandDefinitions','set','from','7975210Qbgzqp','element','isCollapsed','document','20jRPcjl','189AUijxt','261eRJPMF','getFirstRange','requiresContent','59389lNhOQF','99438xkTZiH','217824wYABJS','4FGUjzu','hasContent','editor','add','get','plugins','3978583joMPFK','getSelectedBlocks'];_0x4a67=function(){return _0x43d7a3;};return _0x4a67();}function _0x2e19(_0x4c8c87,_0x17537d){const _0x4a67cd=_0x4a67();return _0x2e19=function(_0x2e19e3,_0x278351){_0x2e19e3=_0x2e19e3-0x177;let _0x39824c=_0x4a67cd[_0x2e19e3];return _0x39824c;},_0x2e19(_0x4c8c87,_0x17537d);}const _0x2a0580=_0x2e19;(function(_0x41b085,_0x49802b){const _0x149670=_0x2e19,_0xfc3dd4=_0x41b085();while(!![]){try{const _0x2c0420=parseInt(_0x149670(0x19a))/0x1*(-parseInt(_0x149670(0x198))/0x2)+parseInt(_0x149670(0x194))/0x3*(parseInt(_0x149670(0x18a))/0x4)+-parseInt(_0x149670(0x192))/0x5*(-parseInt(_0x149670(0x17a))/0x6)+parseInt(_0x149670(0x1a0))/0x7+-parseInt(_0x149670(0x199))/0x8*(parseInt(_0x149670(0x193))/0x9)+-parseInt(_0x149670(0x18e))/0xa+-parseInt(_0x149670(0x197))/0xb*(parseInt(_0x149670(0x17b))/0xc);if(_0x2c0420===_0x49802b)break;else _0xfc3dd4['push'](_0xfc3dd4['shift']());}catch(_0x115f92){_0xfc3dd4['push'](_0xfc3dd4['shift']());}}}(_0x4a67,0xcb05f));import{Command as _0x999a27}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x25f54a}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x999a27{[_0x2a0580(0x18b)];constructor(_0x2982d1,_0x6ddd10){const _0x71f5c9=_0x2a0580;super(_0x2982d1),this[_0x71f5c9(0x18b)]=_0x6ddd10,this[_0x71f5c9(0x18c)](_0x71f5c9(0x182),[]),this['on'](_0x71f5c9(0x184),(_0x46d9b3,_0x554eba,_0x1142e4)=>{const _0x3241cb=_0x71f5c9;this[_0x3241cb(0x185)]&&(this[_0x3241cb(0x182)]=fs(this[_0x3241cb(0x18b)],_0x1142e4));}),this[_0x71f5c9(0x18c)](_0x71f5c9(0x188),!0x1),this['on'](_0x71f5c9(0x17e),(_0x58622c,_0x261941,_0x193cf4)=>{const _0x46036b=_0x71f5c9;this[_0x46036b(0x182)]=_0x193cf4?fs(this[_0x46036b(0x18b)],this[_0x46036b(0x188)]):[];});}[_0x2a0580(0x17d)](){const _0x2fc061=_0x2a0580,_0x3838c5=this[_0x2fc061(0x19c)][_0x2fc061(0x178)];this[_0x2fc061(0x188)]=function(_0x4f5cac){const _0x4cdc66=_0x2fc061,_0x32f7f8=_0x4f5cac[_0x4cdc66(0x191)][_0x4cdc66(0x180)];return _0x32f7f8[_0x4cdc66(0x190)]?0x0!==[..._0x32f7f8[_0x4cdc66(0x1a1)]()][_0x4cdc66(0x1a3)]&&![..._0x32f7f8[_0x4cdc66(0x1a1)]()][0x0][_0x4cdc66(0x17f)]:!!_0x4f5cac[_0x4cdc66(0x19b)](_0x32f7f8[_0x4cdc66(0x195)]());}(_0x3838c5);const _0x27745c=_0x3838c5[_0x2fc061(0x191)][_0x2fc061(0x180)],_0x15a45a=this[_0x2fc061(0x19c)][_0x2fc061(0x183)][_0x2fc061(0x19e)](_0x2fc061(0x186));for(const _0x5e9353 of _0x27745c[_0x2fc061(0x177)]())for(const _0x3a42f6 of _0x5e9353[_0x2fc061(0x181)]())if(_0x3a42f6['is'](_0x2fc061(0x18f))&&_0x15a45a[_0x2fc061(0x1a4)](_0x3a42f6[_0x2fc061(0x1a2)]))return void(this[_0x2fc061(0x185)]=!0x1);this[_0x2fc061(0x185)]=!0x0;}[_0x2a0580(0x17c)](_0x1882a3='',_0x2287f7='',_0x198a7a=_0x2a0580(0x187)){const _0x35959d=_0x2a0580;this[_0x35959d(0x19c)][_0x35959d(0x19f)][_0x35959d(0x19e)](_0x25f54a)[_0x35959d(0x189)](_0x1882a3,_0x2287f7,_0x198a7a);}}function fs(_0x1a2b4d,_0x64fbaa){const _0x25c96f=_0x2a0580,_0x424bc9=new Set();for(const _0x470e7a of _0x1a2b4d[_0x25c96f(0x179)]())(_0x64fbaa||!0x1===_0x470e7a[_0x25c96f(0x196)])&&_0x424bc9[_0x25c96f(0x19d)](_0x470e7a['id']);return Array[_0x25c96f(0x18d)](_0x424bc9);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4005a5,_0x2013f8,_0x500014){const t=_0x4005a5['t'];switch(_0x2013f8){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',_0x500014);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x500014);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'},_0x500014);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 _0x2013f8;}}
|
|
@@ -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(_0x43ac51,_0x4cd3e6){const _0x33b861=(0x0,_0x4cd3e6['t'])('Other');return _0x43ac51['length']?'groupId'in _0x43ac51[0x0]?_0x43ac51:[{'groupId':'_ungrouppedCommands','groupLabel':_0x33b861,'order':0x1/0x0,'commands':_0x43ac51}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x33b861,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1796a2=_0xe68a;(function(_0x2644a0,_0x159f20){const _0x51ea79=_0xe68a,_0x11dd6b=_0x2644a0();while(!![]){try{const _0x379d1c=-parseInt(_0x51ea79(0x17f))/0x1*(parseInt(_0x51ea79(0x15b))/0x2)+parseInt(_0x51ea79(0x161))/0x3+parseInt(_0x51ea79(0x168))/0x4*(-parseInt(_0x51ea79(0x174))/0x5)+parseInt(_0x51ea79(0x148))/0x6+-parseInt(_0x51ea79(0x177))/0x7*(-parseInt(_0x51ea79(0x160))/0x8)+-parseInt(_0x51ea79(0x13e))/0x9*(parseInt(_0x51ea79(0x13a))/0xa)+parseInt(_0x51ea79(0x139))/0xb*(parseInt(_0x51ea79(0x15c))/0xc);if(_0x379d1c===_0x159f20)break;else _0x11dd6b['push'](_0x11dd6b['shift']());}catch(_0x42dabd){_0x11dd6b['push'](_0x11dd6b['shift']());}}}(_0x26a0,0x761c3));function _0x26a0(){const _0x526499=['ranges','93IoBSit','dialogClosed','model','_getSelectionElements','iconView','_showFakeVisualSelection','editing','width','high','height','differ','getChangedMarkers','content','ai-balloon-selection','Dialog','left','pluginName','ck-ai-balloon\x20','requires','beforeDialogClosed','getVisible','listenTo','top','hideError','$graveyard','44ZTxXHh','220QeNhdX','_calculateOptimalTopPosition','_calculateDialogPosition','context','179046GIQyuv','bottom','ai-selection','get','selectionRemoved','updatePosition','open','change','getMarkersGroup','showBlockingError','1681830eRTEny','isEqual','stopListening','end','view','_hideFakeVisualSelection','_cleanupFakeVisualSelectionMarkerRemovalListener','ai-balloon-','_showDialog','headerView','mainView','plugins','label','getBoundingRect','once','startsWith','isOpen','_currentConfig','showFakeVisualSelection','602mzGQVN','2287320LOGnNb','AIBalloon','locale','start','328GtpCqy','240627DZehrQ','document','round','getIntersection','length','_isUpdatingMarkers','markers','4rOSnRR','window','close','delegate','index','hide','AI_BALLOON_SELECTION_REMOVED_ERROR','rootName','isPremiumPlugin','max','show','_updateDialog','2672185dOnoyC','isOfficialPlugin','map','61621biKwUZ','root','hideFakeVisualSelection','filter','_setupFakeVisualSelectionMarkerRemovalListener','bind','fire'];_0x26a0=function(){return _0x526499;};return _0x26a0();}import{ContextPlugin as _0x37d608}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x30d714,AIEditing as _0x317c95}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x148e2f}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x5b92ad,Rect as _0x463f21,scrollViewportToShowTarget as _0x5ecf3d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x23e2c4}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x38759d}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xde41a}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0xde41a,_0x1796a2(0x180),_0x1796a2(0x142)];const L=0xa;function _0xe68a(_0x401f85,_0x50a548){const _0x26a08c=_0x26a0();return _0xe68a=function(_0xe68a16,_0x454e87){_0xe68a16=_0xe68a16-0x137;let _0x27faf0=_0x26a08c[_0xe68a16];return _0x27faf0;},_0xe68a(_0x401f85,_0x50a548);}export class AIBalloon extends _0x37d608{static get[_0x1796a2(0x191)](){return[_0x317c95];}static get[_0x1796a2(0x18f)](){const _0x458bc1=_0x1796a2;return _0x458bc1(0x15d);}static get[_0x1796a2(0x175)](){return!0x0;}static get[_0x1796a2(0x170)](){return!0x0;}[_0x1796a2(0x158)]=!0x1;[_0x1796a2(0x159)];[_0x1796a2(0x166)]=!0x1;[_0x1796a2(0x144)](_0x1b6f82){const _0x3712e7=_0x1796a2,{id:_0x118f7f}=this[_0x3712e7(0x159)]??{};this[_0x3712e7(0x159)]=_0x1b6f82;const {id:_0x3d8347}=this[_0x3712e7(0x159)];this[_0x3712e7(0x158)]&&_0x118f7f===_0x3d8347?this[_0x3712e7(0x173)]():this[_0x3712e7(0x150)]();}[_0x1796a2(0x16a)](){const _0x3ccbaf=_0x1796a2,_0x351741=_0x23e2c4(this[_0x3ccbaf(0x13d)])[_0x3ccbaf(0x153)][_0x3ccbaf(0x141)](_0x3ccbaf(0x18d));_0x351741[_0x3ccbaf(0x158)]&&this[_0x3ccbaf(0x159)]&&_0x351741['id']===this[_0x3ccbaf(0x159)]['id']&&_0x351741[_0x3ccbaf(0x16d)]();}[_0x1796a2(0x173)](){const _0x4bdf88=_0x1796a2,_0xad8553=_0x23e2c4(this[_0x4bdf88(0x13d)])[_0x4bdf88(0x153)][_0x4bdf88(0x141)](_0x4bdf88(0x18d)),{icon:_0x321f7f,title:_0x3faf2a}=this[_0x4bdf88(0x159)];_0xad8553[_0x4bdf88(0x14c)]?.[_0x4bdf88(0x151)]&&(_0xad8553[_0x4bdf88(0x14c)][_0x4bdf88(0x151)][_0x4bdf88(0x154)]=_0x3faf2a,_0xad8553[_0x4bdf88(0x14c)][_0x4bdf88(0x151)][_0x4bdf88(0x183)]&&_0x321f7f&&(_0xad8553[_0x4bdf88(0x14c)][_0x4bdf88(0x151)][_0x4bdf88(0x183)][_0x4bdf88(0x18b)]=_0x321f7f)),this[_0x4bdf88(0x166)]=!0x0,this[_0x4bdf88(0x184)](),this[_0x4bdf88(0x166)]=!0x1,_0xad8553[_0x4bdf88(0x14c)]?.[_0x4bdf88(0x143)]();}[_0x1796a2(0x184)](){const _0x2c77aa=_0x1796a2;this[_0x2c77aa(0x13d)][_0x2c77aa(0x153)][_0x2c77aa(0x141)](_0x317c95)[_0x2c77aa(0x15a)](this[_0x2c77aa(0x159)][_0x2c77aa(0x17e)],_0x2c77aa(0x14f)+this[_0x2c77aa(0x159)][_0x2c77aa(0x16c)],!0x0,!0x0);}[_0x1796a2(0x14d)](_0x26084a){const _0x4f407e=_0x1796a2;this[_0x4f407e(0x13d)][_0x4f407e(0x153)][_0x4f407e(0x141)](_0x317c95)[_0x4f407e(0x179)](_0x4f407e(0x14f)+_0x26084a);}[_0x1796a2(0x150)](){const _0x564677=_0x1796a2,_0x545640=_0x23e2c4(this[_0x564677(0x13d)])[_0x564677(0x153)][_0x564677(0x141)](_0x564677(0x18d)),{id:_0x4fac18,title:_0x52f299,icon:_0x4b4f95,class:_0x58437a,mainView:_0x4262ed}=this[_0x564677(0x159)];_0x4262ed[_0x564677(0x16b)](..._0xde41a)['to'](this),_0x545640[_0x564677(0x172)]({'title':_0x52f299,'icon':_0x4b4f95,'hasCloseButton':!0x0,'id':_0x4fac18,'position':this[_0x564677(0x13c)][_0x564677(0x17c)](this),'className':_0x564677(0x190)+(_0x58437a||''),'content':_0x4262ed,'onShow':_0x763d5e=>{const _0x176a9e=_0x564677;this[_0x176a9e(0x184)](),this[_0x176a9e(0x17b)]();const _0x7a6b10=this[_0x176a9e(0x182)]();_0x7a6b10&&_0x7a6b10[0x0]&&_0x5ecf3d({'target':_0x7a6b10[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x176a9e(0x158)]=!0x0,_0x763d5e[_0x176a9e(0x156)](_0x176a9e(0x16d),()=>{const _0x1737ab=_0x176a9e;this[_0x1737ab(0x17d)](_0x1737ab(0x192),{'id':_0x4fac18});},{'priority':_0x176a9e(0x187)});},'onHide':()=>{const _0x4638a4=_0x564677;this[_0x4638a4(0x14d)](this[_0x4638a4(0x159)][_0x4638a4(0x16c)]),this[_0x4638a4(0x14e)](),this[_0x4638a4(0x17d)](_0x4638a4(0x180),{'id':_0x4fac18}),this[_0x4638a4(0x158)]=!0x1;}});}[_0x1796a2(0x13c)](_0x1f8769,_0x1f4259){const _0x1338e6=_0x1796a2;if(!_0x1f4259)return null;const _0xc4f22=this[_0x1338e6(0x182)]();if(!_0xc4f22||0x0===_0xc4f22[_0x1338e6(0x165)])return{'left':Math[_0x1338e6(0x163)](_0x1f4259[_0x1338e6(0x18e)]+_0x1f4259[_0x1338e6(0x186)]/0x2-_0x1f8769[_0x1338e6(0x186)]/0x2),'top':Math[_0x1338e6(0x163)](_0x1f4259[_0x1338e6(0x195)]+_0x1f4259[_0x1338e6(0x188)]/0x2-_0x1f8769[_0x1338e6(0x188)]/0x2)};const _0x187ae0=Math[_0x1338e6(0x163)](_0x1f4259[_0x1338e6(0x18e)]+_0x1f4259[_0x1338e6(0x186)]/0x2-_0x1f8769[_0x1338e6(0x186)]/0x2),_0x3a31eb=_0xc4f22[_0x1338e6(0x176)](_0x3ccf8e=>new _0x463f21(_0x3ccf8e)),_0x1a4f0d=_0x1f8769[_0x1338e6(0x188)];return{'left':_0x187ae0,'top':this[_0x1338e6(0x13b)](_0x3a31eb,_0x1a4f0d,_0x1f4259)};}[_0x1796a2(0x13b)](_0x164a08,_0x183036,_0x4702e3){const _0x1ac0b4=_0x1796a2,_0x50ec0b=new _0x463f21(_0x5b92ad[_0x1ac0b4(0x169)]),_0x183b07=_0x164a08[_0x1ac0b4(0x176)](_0xfa81fa=>_0xfa81fa[_0x1ac0b4(0x193)]())[_0x1ac0b4(0x17a)](_0x54253b=>_0x54253b),_0x4bf828=_0x463f21[_0x1ac0b4(0x155)](_0x183b07);if(!_0x4bf828)return Math[_0x1ac0b4(0x163)](_0x4702e3[_0x1ac0b4(0x195)]+_0x4702e3[_0x1ac0b4(0x188)]/0x2);const _0xc4a963=_0x50ec0b[_0x1ac0b4(0x164)](_0x4bf828);if(!_0xc4a963)return Math[_0x1ac0b4(0x163)](_0x4702e3[_0x1ac0b4(0x195)]+_0x4702e3[_0x1ac0b4(0x188)]/0x2);const _0x4f3354=_0x4702e3[_0x1ac0b4(0x193)](),_0x4fba9c=_0x4f3354&&_0x4bf828[_0x1ac0b4(0x188)]>_0x4f3354[_0x1ac0b4(0x188)],_0x3b1518=_0xc4a963[_0x1ac0b4(0x195)],_0x4ed31c=_0xc4a963[_0x1ac0b4(0x13f)];if(_0x4fba9c){const _0x3a0aa5=(_0x4f3354||_0x50ec0b)[_0x1ac0b4(0x188)]/0x2-_0x183036/0x2,_0x7557=_0x3b1518-L-_0x4702e3[_0x1ac0b4(0x195)],_0x21f4b1=_0x4702e3[_0x1ac0b4(0x13f)]-_0x4ed31c-L;return _0x7557>=_0x183036?Math[_0x1ac0b4(0x171)](L,_0x3b1518-_0x183036-L):_0x21f4b1>=_0x183036?_0x4ed31c+L:Math[_0x1ac0b4(0x171)](L,_0x3a0aa5);}const _0x663093=_0x3b1518-_0x183036,_0x34e19a=_0x4702e3[_0x1ac0b4(0x13f)]-_0x4ed31c-L,_0x1f0800=_0x3b1518-L-_0x4702e3[_0x1ac0b4(0x195)];let _0xdc93c2;if(_0x34e19a>=_0x183036)_0xdc93c2=_0x4ed31c+L;else{if(_0x1f0800>=_0x183036)_0xdc93c2=_0x663093-L;else _0xdc93c2=_0x3b1518+_0x4bf828[_0x1ac0b4(0x188)]/0x2-_0x183036/0x2;}return _0xdc93c2;}[_0x1796a2(0x17b)](){const _0x2355e4=_0x1796a2,_0xf128be=_0x23e2c4(this[_0x2355e4(0x13d)]);this[_0x2355e4(0x194)](_0xf128be[_0x2355e4(0x181)][_0x2355e4(0x162)],_0x2355e4(0x145),()=>{const _0x2afab6=_0x2355e4;if(!this[_0x2afab6(0x166)]){for(const {name:_0x5cde12,data:{newRange:_0x1f3be3}}of _0xf128be[_0x2afab6(0x181)][_0x2afab6(0x162)][_0x2afab6(0x189)][_0x2afab6(0x18a)]())if(_0x5cde12[_0x2afab6(0x157)](_0x30d714+':')&&(_0x1f3be3&&(_0x1f3be3[_0x2afab6(0x15f)][_0x2afab6(0x149)](_0x1f3be3[_0x2afab6(0x14b)])||_0x2afab6(0x138)==_0x1f3be3[_0x2afab6(0x178)][_0x2afab6(0x16f)])||null==_0x1f3be3)){const _0x42704f=_0x38759d(this[_0x2afab6(0x13d)][_0x2afab6(0x15e)],_0x2afab6(0x16e));this[_0x2afab6(0x159)][_0x2afab6(0x152)][_0x2afab6(0x147)](_0x42704f),this[_0x2afab6(0x17d)](_0x2afab6(0x142));}}});}[_0x1796a2(0x14e)](){const _0x74cb7f=_0x1796a2,_0x3d5dc5=_0x23e2c4(this[_0x74cb7f(0x13d)]);this[_0x74cb7f(0x159)][_0x74cb7f(0x152)][_0x74cb7f(0x137)](),this[_0x74cb7f(0x14a)](_0x3d5dc5[_0x74cb7f(0x181)][_0x74cb7f(0x162)]);}[_0x1796a2(0x182)](){const _0x4cd8e6=_0x1796a2,_0x323930=_0x23e2c4(this[_0x4cd8e6(0x13d)]);return _0x148e2f(_0x323930[_0x4cd8e6(0x185)],[..._0x323930[_0x4cd8e6(0x181)][_0x4cd8e6(0x167)][_0x4cd8e6(0x146)](_0x4cd8e6(0x140)),..._0x323930[_0x4cd8e6(0x181)][_0x4cd8e6(0x167)][_0x4cd8e6(0x146)](_0x4cd8e6(0x18c))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf89108=_0x5f64;(function(_0x576ac7,_0x139f1f){const _0x261feb=_0x5f64,_0x28d619=_0x576ac7();while(!![]){try{const _0x4b5b97=parseInt(_0x261feb(0x146))/0x1*(-parseInt(_0x261feb(0x14d))/0x2)+parseInt(_0x261feb(0x133))/0x3*(parseInt(_0x261feb(0x152))/0x4)+parseInt(_0x261feb(0x148))/0x5+-parseInt(_0x261feb(0x149))/0x6*(-parseInt(_0x261feb(0x140))/0x7)+-parseInt(_0x261feb(0x14c))/0x8*(-parseInt(_0x261feb(0x13c))/0x9)+-parseInt(_0x261feb(0x153))/0xa*(parseInt(_0x261feb(0x14b))/0xb)+-parseInt(_0x261feb(0x14a))/0xc;if(_0x4b5b97===_0x139f1f)break;else _0x28d619['push'](_0x28d619['shift']());}catch(_0x25f9c8){_0x28d619['push'](_0x28d619['shift']());}}}(_0x2324,0xbf1f1));import{View as _0x5ebb6d}from'ckeditor5/src/ui.js';function _0x5f64(_0x22a634,_0x142eef){const _0x2324b0=_0x2324();return _0x5f64=function(_0x5f644,_0x2527b3){_0x5f644=_0x5f644-0x133;let _0xe146b5=_0x2324b0[_0x5f644];return _0xe146b5;},_0x5f64(_0x22a634,_0x142eef);}function _0x2324(){const _0x295ba2=['hideError','444gLOHFm','10GyCGsP','41691ZSemly','ck-ai-balloon-error','_createErrorView','showNext','showError','ck-ai-suggestion__error-text','_errorView','setTemplate','_isErrorVisible','8505AUgfAg','showBlockingError','div','insertSuggestion','91WgspaC','ck-hidden','locale','ck-ai-suggestion__error','set','bindTemplate','281CKnvWM','_errorMessage','5107655QMfTaP','13512uTSKLl','9899964wUiUZL','10342013xHCFBU','7528XceETV','6652oPBoSt','span','applySuggestion','showPrevious'];_0x2324=function(){return _0x295ba2;};return _0x2324();}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0xf89108(0x14f),_0xf89108(0x13f),_0xf89108(0x136),_0xf89108(0x150)];export class AIBalloonView extends _0x5ebb6d{[_0xf89108(0x139)];constructor(_0x637476){const _0x5a1b0a=_0xf89108;super(_0x637476),this[_0x5a1b0a(0x144)](_0x5a1b0a(0x147),''),this[_0x5a1b0a(0x144)](_0x5a1b0a(0x13b),!0x1);}[_0xf89108(0x13d)](_0x3a9f7a){const _0x2c5d5c=_0xf89108;this[_0x2c5d5c(0x137)](_0x3a9f7a);}[_0xf89108(0x137)](_0x8b874f){const _0x42fbf0=_0xf89108;this[_0x42fbf0(0x139)]||(this[_0x42fbf0(0x139)]=this[_0x42fbf0(0x135)]()),this[_0x42fbf0(0x147)]=_0x8b874f,this[_0x42fbf0(0x13b)]=!0x0;}[_0xf89108(0x151)](){const _0x200db5=_0xf89108;this[_0x200db5(0x13b)]=!0x1;}[_0xf89108(0x135)](){const _0x5a21f9=_0xf89108,_0x160a11=new _0x5ebb6d(this[_0x5a21f9(0x142)]),_0x1e0690=new _0x5ebb6d(this[_0x5a21f9(0x142)]);return _0x1e0690[_0x5a21f9(0x13a)]({'tag':_0x5a21f9(0x14e),'attributes':{'class':['ck',_0x5a21f9(0x138)]},'children':[{'text':this[_0x5a21f9(0x145)]['to'](_0x5a21f9(0x147))}]}),_0x160a11[_0x5a21f9(0x13a)]({'tag':_0x5a21f9(0x13e),'attributes':{'class':['ck',_0x5a21f9(0x143),_0x5a21f9(0x134),this[_0x5a21f9(0x145)]['if'](_0x5a21f9(0x13b),_0x5a21f9(0x141),_0x150df1=>!_0x150df1)]},'children':[_0x1e0690]}),_0x160a11;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xcba2(){var _0x22fe79=['9260ktrDrh','20fxQcej','_registerToolDataCallback','36jdvwMo','ai.chat.initialConversation','ai.chat.context','get','removeSelectionFromChatContext','context','13011NmoiPo','2113189ZxmhhK','requires','3384464inXVCi','AIChat','82zabSFq','sendMessage','12ZNbxIl','focusPromptInput','config','registerToolDataCallback','isOfficialPlugin','define','addSelectionToChatContext','new','9xDxUhA','isPremiumPlugin','startConversation','5170eZMBLl','464245EvohxJ','pluginName','plugins','2003771LLoHLC','350605JBtgVj'];_0xcba2=function(){return _0x22fe79;};return _0xcba2();}function _0x2c8d(_0x56e72a,_0x11db48){var _0xcba203=_0xcba2();return _0x2c8d=function(_0x2c8d9a,_0x31dd87){_0x2c8d9a=_0x2c8d9a-0xfe;var _0x28301d=_0xcba203[_0x2c8d9a];return _0x28301d;},_0x2c8d(_0x56e72a,_0x11db48);}var _0x5bcd79=_0x2c8d;(function(_0x36cf11,_0x225819){var _0x12cd91=_0x2c8d,_0x4a9807=_0x36cf11();while(!![]){try{var _0x2161ea=-parseInt(_0x12cd91(0x101))/0x1+parseInt(_0x12cd91(0x114))/0x2*(parseInt(_0x12cd91(0x10f))/0x3)+-parseInt(_0x12cd91(0x107))/0x4*(parseInt(_0x12cd91(0x105))/0x5)+parseInt(_0x12cd91(0x116))/0x6*(parseInt(_0x12cd91(0x104))/0x7)+parseInt(_0x12cd91(0x112))/0x8*(parseInt(_0x12cd91(0x11e))/0x9)+parseInt(_0x12cd91(0x106))/0xa*(parseInt(_0x12cd91(0x100))/0xb)+parseInt(_0x12cd91(0x109))/0xc*(-parseInt(_0x12cd91(0x110))/0xd);if(_0x2161ea===_0x225819)break;else _0x4a9807['push'](_0x4a9807['shift']());}catch(_0x231c4f){_0x4a9807['push'](_0x4a9807['shift']());}}}(_0xcba2,0x4abac));import{ContextPlugin as _0x3f1175}from'ckeditor5/src/core.js';import{AIChatController as _0x572054}from'./aichatcontroller.js';import{AIEditing as _0x451c85}from'../aicore/aiediting.js';import{AIChatUI as _0x1bd396}from'./aichatui.js';import{AIChatHistory as _0x38204e}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3f1175{static get[_0x5bcd79(0x111)](){return[_0x572054,_0x451c85,_0x1bd396,_0x38204e];}static get[_0x5bcd79(0x102)](){var _0x34d77b=_0x5bcd79;return _0x34d77b(0x113);}static get[_0x5bcd79(0x11a)](){return!0x0;}static get[_0x5bcd79(0xfe)](){return!0x0;}constructor(_0x5d8766){var _0xa338e7=_0x5bcd79;super(_0x5d8766),this[_0xa338e7(0x10e)][_0xa338e7(0x118)][_0xa338e7(0x11b)](_0xa338e7(0x10b),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0xa338e7(0x10e)][_0xa338e7(0x118)][_0xa338e7(0x11b)](_0xa338e7(0x10a),_0xa338e7(0x11d));}async[_0x5bcd79(0x11c)](){var _0x466766=_0x5bcd79;await this[_0x466766(0x10e)][_0x466766(0x103)][_0x466766(0x10c)](_0x572054)[_0x466766(0x11c)]();}async[_0x5bcd79(0xff)](){var _0x1a2d9c=_0x5bcd79;await this[_0x1a2d9c(0x10e)][_0x1a2d9c(0x103)][_0x1a2d9c(0x10c)](_0x572054)[_0x1a2d9c(0xff)]();}async[_0x5bcd79(0x115)]({message:_0x475ddb,attributes:_0x14b2df}){var _0x1badc8=_0x5bcd79;await this[_0x1badc8(0x10e)][_0x1badc8(0x103)][_0x1badc8(0x10c)](_0x572054)[_0x1badc8(0x115)]({'message':_0x475ddb,'attributes':_0x14b2df});}[_0x5bcd79(0x10d)](){var _0x1dce76=_0x5bcd79;this[_0x1dce76(0x10e)][_0x1dce76(0x103)][_0x1dce76(0x10c)](_0x572054)[_0x1dce76(0x10d)]();}[_0x5bcd79(0x117)](){var _0x535c77=_0x5bcd79;this[_0x535c77(0x10e)][_0x535c77(0x103)][_0x535c77(0x10c)](_0x572054)[_0x535c77(0x117)]();}[_0x5bcd79(0x119)](_0x3d91c3){var _0xb3e1d4=_0x5bcd79;this[_0xb3e1d4(0x10e)][_0xb3e1d4(0x103)][_0xb3e1d4(0x10c)](_0x572054)[_0xb3e1d4(0x108)](_0x3d91c3);}}
|