@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.1
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
|
-
|
|
23
|
+
const _0x3b140e=_0x297e;(function(_0x39f5df,_0x38dfad){const _0x3cf0ad=_0x297e,_0x1af790=_0x39f5df();while(!![]){try{const _0x53c8d4=-parseInt(_0x3cf0ad(0xdb))/0x1*(-parseInt(_0x3cf0ad(0xbb))/0x2)+-parseInt(_0x3cf0ad(0xf8))/0x3+parseInt(_0x3cf0ad(0xf3))/0x4+parseInt(_0x3cf0ad(0xcc))/0x5+parseInt(_0x3cf0ad(0xfd))/0x6+parseInt(_0x3cf0ad(0xab))/0x7*(parseInt(_0x3cf0ad(0xc7))/0x8)+parseInt(_0x3cf0ad(0xe3))/0x9*(-parseInt(_0x3cf0ad(0xe1))/0xa);if(_0x53c8d4===_0x38dfad)break;else _0x1af790['push'](_0x1af790['shift']());}catch(_0x159aec){_0x1af790['push'](_0x1af790['shift']());}}}(_0x9e65,0x554d5));import{global as _0x153b2d}from'ckeditor5/src/utils.js';import{View as _0x5852b3,ButtonView as _0xc70968,SpinnerView as _0x333779}from'ckeditor5/src/ui.js';function _0x297e(_0x394cae,_0x23d597){const _0x9e65e3=_0x9e65();return _0x297e=function(_0x297eb9,_0x114568){_0x297eb9=_0x297eb9-0xa9;let _0x10ed4a=_0x9e65e3[_0x297eb9];return _0x10ed4a;},_0x297e(_0x394cae,_0x23d597);}import{IconCheck as _0xfcefb3,IconCopy as _0x1384ac}from'ckeditor5/src/icons.js';import{getTranslation as _0x9d90fc}from'../../utils/common-translations.js';function _0x9e65(){const _0x49e43f=['ck-content','isProcessing','textContent','set','-9999px','clipboard','ck-ai-form__copy-button','addRange','write','bindTemplate','932564PjMlkF','appendChild','div','firstElementChild','value','1337316FGXFfM','change:value','AI\x20is\x20writing...','ck-ai-form__content-area-wrapper','render','296004REilKj','_copyHTMLToClipboard','<span>]</span>','110719MKxiYV','setTemplate','appendLoader','locale','absolute','contentFieldView','text/plain','execCommand','.ck-ai-form__loader','isEnabled','icon','text/html','element','change:isProcessing','ck-reset_all-excluded','class','114382EVsESV','focus','isVisible','style','copyButtonView','ClipboardItem','ck-ai-form__loader','remove','ck-hidden','_createLoader','setEndBefore','scrollTo','272rbveYU','Copy','position','copy','execute','1246285nqMYJF','setStartAfter','removeAllRanges','ck-ai-form__copy-button-wrapper','wheel','<span>[</span>','lastElementChild','body','scrollHeight','listenTo','\x20ck-ai-form__copy-button--copied','createRange','ck-ai-form__content-area','_createCopyButton','mousedown','1VgrFhC','loaderView','createElement','ck-ai-form__content-field','left','smooth','20HPSivE','bind','1491894VeUmYC','setContent','getSelection','querySelector','ck-ai-form__content-area--processing','innerHTML'];_0x9e65=function(){return _0x49e43f;};return _0x9e65();}export class AIFormContentArea extends _0x5852b3{[_0x3b140e(0xb0)];[_0x3b140e(0xbf)];constructor(_0x211cf4,_0x183c62=''){const _0xc40e3b=_0x3b140e;super(_0x211cf4),this[_0xc40e3b(0xec)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x23c8e1=this[_0xc40e3b(0xf2)];this[_0xc40e3b(0xb0)]=new ContentFieldView(_0x211cf4,_0x183c62),this[_0xc40e3b(0xbf)]=this[_0xc40e3b(0xd9)](),this[_0xc40e3b(0xac)]({'tag':_0xc40e3b(0xf5),'attributes':{'class':['ck',_0xc40e3b(0xfb),_0x23c8e1['if'](_0xc40e3b(0xbd),_0xc40e3b(0xc3),_0x546e08=>!_0x546e08)],'tabindex':'-1'},'children':[{'tag':_0xc40e3b(0xf5),'attributes':{'class':['ck',_0xc40e3b(0xd8),_0x23c8e1['if'](_0xc40e3b(0xea),_0xc40e3b(0xe7))]},'children':[this[_0xc40e3b(0xb0)],{'tag':_0xc40e3b(0xf5),'attributes':{'class':['ck',_0xc40e3b(0xcf)]},'children':[this[_0xc40e3b(0xbf)]]}]}]});}[_0x3b140e(0xfc)](){const _0x564828=_0x3b140e;super[_0x564828(0xfc)](),this[_0x564828(0xf7)]&&this[_0x564828(0xb0)][_0x564828(0xe4)](this[_0x564828(0xf7)]);let _0x52bd6b=!0x1;this['on'](_0x564828(0xf9),(_0x4ecb01,_0x278681,_0x43882a)=>{const _0x13bd4b=_0x564828,_0x3d0be7=!this[_0x13bd4b(0xb0)][_0x13bd4b(0xb7)][_0x13bd4b(0xe6)](_0x13bd4b(0xb3));this[_0x13bd4b(0xb0)][_0x13bd4b(0xe4)](_0x43882a),this[_0x13bd4b(0xea)]&&_0x3d0be7&&!_0x52bd6b&&this[_0x13bd4b(0xb7)][_0x13bd4b(0xc6)]({'top':this[_0x13bd4b(0xb7)][_0x13bd4b(0xd4)],'behavior':_0x13bd4b(0xe0)});}),this['on'](_0x564828(0xb8),(_0x8000a9,_0xc505be,_0x3b9bf2)=>{const _0x2c8c36=_0x564828;_0x52bd6b=!0x1,_0x3b9bf2?(this[_0x2c8c36(0xf7)]=null,this[_0x2c8c36(0xb0)][_0x2c8c36(0xad)]()):this[_0x2c8c36(0xf7)]||this[_0x2c8c36(0xb0)][_0x2c8c36(0xe4)]('');}),this[_0x564828(0xd5)](this[_0x564828(0xb7)],_0x564828(0xd0),()=>{_0x52bd6b=!0x0;}),this[_0x564828(0xd5)](this[_0x564828(0xb7)],_0x564828(0xda),()=>{_0x52bd6b=!0x0;});}[_0x3b140e(0xbc)](){const _0x3f4aad=_0x3b140e;this[_0x3f4aad(0xb7)][_0x3f4aad(0xbc)]();}[_0x3b140e(0xd9)](){const _0x300645=_0x3b140e,_0x146f4b=this[_0x300645(0xae)],_0x2e938c=new _0xc70968(this[_0x300645(0xae)]),_0x4b4ce5=_0x300645(0xef);return _0x2e938c[_0x300645(0xec)]({'label':_0x9d90fc(_0x146f4b,_0x300645(0xc8)),'icon':_0x1384ac,'class':_0x4b4ce5,'tooltip':!0x0}),_0x2e938c[_0x300645(0xe2)](_0x300645(0xbd))['to'](this,_0x300645(0xf7),_0x59481b=>!!_0x59481b),_0x2e938c[_0x300645(0xe2)](_0x300645(0xb4))['to'](this,_0x300645(0xea),_0x39a0f5=>!_0x39a0f5),_0x2e938c['on'](_0x300645(0xcb),()=>{const _0x5bedbe=_0x300645;this[_0x5bedbe(0xa9)](this[_0x5bedbe(0xb0)][_0x5bedbe(0xb7)]),_0x2e938c[_0x5bedbe(0xb5)]=_0xfcefb3,_0x2e938c[_0x5bedbe(0xba)]=_0x4b4ce5+_0x5bedbe(0xd6),this[_0x5bedbe(0xbc)](),setTimeout(()=>{const _0x36eb81=_0x5bedbe;_0x2e938c[_0x36eb81(0xb5)]=_0x1384ac,_0x2e938c[_0x36eb81(0xba)]=_0x4b4ce5;},0x3e8);}),_0x2e938c;}[_0x3b140e(0xa9)](_0xa40414){const _0x37c979=_0x3b140e,{window:_0x183bd8,document:_0x137e9c}=_0x153b2d;if(_0x183bd8[_0x37c979(0xc0)]){const {Blob:_0x94c378,ClipboardItem:_0x2677a5}=_0x183bd8,_0x24d9dd=[new _0x2677a5({'text/html':new _0x94c378([_0xa40414[_0x37c979(0xe8)]],{'type':_0x37c979(0xb6)}),'text/plain':new _0x94c378([_0xa40414[_0x37c979(0xeb)]||''],{'type':_0x37c979(0xb1)})})];navigator[_0x37c979(0xee)][_0x37c979(0xf1)](_0x24d9dd);}else{const _0x364d96=_0x137e9c[_0x37c979(0xdd)](_0x37c979(0xf5));_0x364d96[_0x37c979(0xbe)][_0x37c979(0xc9)]=_0x37c979(0xaf),_0x364d96[_0x37c979(0xbe)][_0x37c979(0xdf)]=_0x37c979(0xed),_0x364d96[_0x37c979(0xe8)]=_0x37c979(0xd1)+_0xa40414[_0x37c979(0xe8)]+_0x37c979(0xaa),_0x137e9c[_0x37c979(0xd3)][_0x37c979(0xf4)](_0x364d96);const _0x5366b6=_0x137e9c[_0x37c979(0xd7)]();_0x5366b6[_0x37c979(0xcd)](_0x364d96[_0x37c979(0xf6)]),_0x5366b6[_0x37c979(0xc5)](_0x364d96[_0x37c979(0xd2)]);const _0x43c0d3=_0x183bd8[_0x37c979(0xe5)]();_0x43c0d3[_0x37c979(0xce)](),_0x43c0d3[_0x37c979(0xf0)](_0x5366b6),_0x137e9c[_0x37c979(0xb2)](_0x37c979(0xca)),_0x364d96[_0x37c979(0xc2)]();}}}export class ContentFieldView extends _0x5852b3{constructor(_0x105afa,_0x503ea5=''){const _0x2fdb43=_0x3b140e;super(_0x105afa),this[_0x2fdb43(0xdc)]=this[_0x2fdb43(0xc4)](),this[_0x2fdb43(0xac)]({'tag':_0x2fdb43(0xf5),'attributes':{'class':['ck',_0x2fdb43(0xe9),_0x503ea5,_0x2fdb43(0xb9),_0x2fdb43(0xde)]}});}[_0x3b140e(0xe4)](_0x14ca22){const _0x5e7f32=_0x3b140e;this[_0x5e7f32(0xb7)][_0x5e7f32(0xe8)]=_0x14ca22;}[_0x3b140e(0xad)](){const _0x37a577=_0x3b140e;this[_0x37a577(0xb7)][_0x37a577(0xf4)](this[_0x37a577(0xdc)][_0x37a577(0xb7)]);}[_0x3b140e(0xc4)](){const _0x29c1dd=_0x3b140e,_0x38587b=new _0x5852b3(),_0x573a8b=this[_0x29c1dd(0xae)],_0x5648de=new _0x333779();return _0x5648de[_0x29c1dd(0xbd)]=!0x0,_0x38587b[_0x29c1dd(0xac)]({'tag':_0x29c1dd(0xf5),'attributes':{'class':['ck',_0x29c1dd(0xc1)]},'children':[_0x5648de,{'text':_0x9d90fc(_0x573a8b,_0x29c1dd(0xfa))}]}),_0x38587b[_0x29c1dd(0xfc)](),_0x38587b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x45f8(_0x15fb65,_0x560c09){const _0x35f115=_0x35f1();return _0x45f8=function(_0x45f8cd,_0x2600fb){_0x45f8cd=_0x45f8cd-0x1c4;let _0x567072=_0x35f115[_0x45f8cd];return _0x567072;},_0x45f8(_0x15fb65,_0x560c09);}(function(_0x5c4f80,_0x43199a){const _0x34d032=_0x45f8,_0x5553d8=_0x5c4f80();while(!![]){try{const _0x367ece=parseInt(_0x34d032(0x1cb))/0x1+-parseInt(_0x34d032(0x1cd))/0x2+-parseInt(_0x34d032(0x1c4))/0x3+-parseInt(_0x34d032(0x1ce))/0x4+-parseInt(_0x34d032(0x1d0))/0x5+-parseInt(_0x34d032(0x1c9))/0x6+parseInt(_0x34d032(0x1d1))/0x7;if(_0x367ece===_0x43199a)break;else _0x5553d8['push'](_0x5553d8['shift']());}catch(_0x1f9653){_0x5553d8['push'](_0x5553d8['shift']());}}}(_0x35f1,0xd640b));import{IconError as _0x5e9ea6}from'ckeditor5/src/icons.js';import{View as _0x48f6b3,IconView as _0x48c65e}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x48f6b3{constructor(_0x236d29,_0xf50553=''){const _0x139ecd=_0x45f8;super(_0x236d29);const _0x10fdc7=new _0x48c65e(),_0xf1967a=this[_0x139ecd(0x1c5)];this[_0x139ecd(0x1c7)](_0x139ecd(0x1c8),_0xf50553),_0x10fdc7[_0x139ecd(0x1c6)]=_0x5e9ea6,this[_0x139ecd(0x1cc)]({'tag':_0x139ecd(0x1cf),'attributes':{'class':['ck',_0x139ecd(0x1ca)]},'children':[_0x10fdc7,{'text':_0xf1967a['to'](_0x139ecd(0x1c8))}]});}}function _0x35f1(){const _0x1611a7=['content','set','text','2286504ANrTiO','ck-ai-form__error','399828bThVmY','setTemplate','1693742tlHMoK','3242644qPpXRB','div','2351270aNeyxM','25315115xKgrsb','1889472yLuzaf','bindTemplate'];_0x35f1=function(){return _0x1611a7;};return _0x35f1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2a31(){const _0x2c3259=['width','filteredView','_createSubmitButton','add','submitButtonView','371442pUcibD','requestAnimationFrame','left','77MIOoOH','enter','showHistoryButtonView','focusCycler','queryView','1851228DzqBBy','ck-ai-form__toggle-history','submit','maxRows','isEmpty','fieldWrapperChildren','1150322zJYdwL','bind','right','target','locale','rtl','62523JCngRa','uiLanguageDirection','focusableChildren','11848120iUVTxq','excludeScrollbarsAndBorders','isOn','ck-ai-form__submit','execute','update','History','render','isVisible','fieldView','window','resultsView','_createShowHistoryButton','children','style','focus','isEnabled','fire','element','focusFirst','focusLast','minRows','585075EHtLoL','3038705HvYCoz','keystrokes','Submit','value','set'];_0x2a31=function(){return _0x2c3259;};return _0x2a31();}const _0x4abfbe=_0x2ff5;(function(_0x1cb6bb,_0x359dc1){const _0x27ba55=_0x2ff5,_0x54b2f8=_0x1cb6bb();while(!![]){try{const _0x2fb26f=parseInt(_0x27ba55(0xde))/0x1+parseInt(_0x27ba55(0xf7))/0x2+-parseInt(_0x27ba55(0xc5))/0x3+-parseInt(_0x27ba55(0xf1))/0x4+parseInt(_0x27ba55(0xdf))/0x5+-parseInt(_0x27ba55(0xe9))/0x6*(-parseInt(_0x27ba55(0xec))/0x7)+-parseInt(_0x27ba55(0xc8))/0x8;if(_0x2fb26f===_0x359dc1)break;else _0x54b2f8['push'](_0x54b2f8['shift']());}catch(_0x182e8e){_0x54b2f8['push'](_0x54b2f8['shift']());}}}(_0x2a31,0x763c3));import{Rect as _0x14fe15,global as _0x2b4b8b,isVisible as _0x2846d4}from'ckeditor5/src/utils.js';import{IconAIHistory as _0xa42508,IconSubmit as _0x3c90e6}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x13730f,ButtonView as _0x53775b}from'ckeditor5/src/ui.js';import{getTranslation as _0x3344c0}from'../../utils/common-translations.js';function _0x2ff5(_0x4d8c22,_0xa9b99e){const _0x2a315f=_0x2a31();return _0x2ff5=function(_0x2ff545,_0x1f3e88){_0x2ff545=_0x2ff545-0xc2;let _0x11dcdb=_0x2a315f[_0x2ff545];return _0x11dcdb;},_0x2ff5(_0x4d8c22,_0xa9b99e);}export class AIFormPromptView extends _0x13730f{[_0x4abfbe(0xe8)];[_0x4abfbe(0xee)];constructor(_0xe07d46,_0x346a22){const _0x4470df=_0x4abfbe;super(_0xe07d46,_0x346a22),this[_0x4470df(0xf0)][_0x4470df(0xd1)][_0x4470df(0xdd)]=0x1,this[_0x4470df(0xf0)][_0x4470df(0xd1)][_0x4470df(0xf4)]=0x3,this[_0x4470df(0xe8)]=this[_0x4470df(0xe6)](),this[_0x4470df(0xee)]=this[_0x4470df(0xd4)](),this[_0x4470df(0xc7)][_0x4470df(0xe7)](this[_0x4470df(0xee)],0x1),this[_0x4470df(0xc7)][_0x4470df(0xe7)](this[_0x4470df(0xe8)]);}[_0x4abfbe(0xcf)](){const _0x18db81=_0x4abfbe;super[_0x18db81(0xcf)](),this[_0x18db81(0xf0)][_0x18db81(0xf6)][_0x18db81(0xe7)](this[_0x18db81(0xee)]),this[_0x18db81(0xd5)][_0x18db81(0xe7)](this[_0x18db81(0xe8)]),this[_0x18db81(0xe0)][_0x18db81(0xe3)](_0x18db81(0xed),(_0x57f2f3,_0x3d6e52)=>{const _0x312062=_0x18db81;_0x57f2f3[_0x312062(0xc2)]==this[_0x312062(0xf0)][_0x312062(0xd1)][_0x312062(0xda)]&&(this[_0x312062(0xf3)](),_0x3d6e52());});}[_0x4abfbe(0xe6)](){const _0x49b418=_0x4abfbe,_0x2aa815=new _0x53775b(this[_0x49b418(0xc3)]),_0x3d6811=this[_0x49b418(0xc3)];return _0x2aa815[_0x49b418(0xe3)]({'icon':_0x3c90e6,'label':_0x3344c0(_0x3d6811,_0x49b418(0xe1)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x49b418(0xcb)}),_0x2aa815['on'](_0x49b418(0xcc),()=>{const _0x4742a6=_0x49b418;this[_0x4742a6(0xf3)]();}),_0x2aa815[_0x49b418(0xf8)](_0x49b418(0xd8))['to'](this[_0x49b418(0xf0)][_0x49b418(0xd1)],_0x49b418(0xf5),this,_0x49b418(0xd8),(_0x49c6ee,_0x57a41f)=>!_0x49c6ee&&_0x57a41f),_0x2aa815;}[_0x4abfbe(0xd4)](){const _0x5f373c=_0x4abfbe,_0x22b777=new _0x53775b(this[_0x5f373c(0xc3)]),_0xb9e81a=this[_0x5f373c(0xd3)],_0x2f0916=this[_0x5f373c(0xc3)];_0x22b777[_0x5f373c(0xe3)]({'label':_0x3344c0(_0x2f0916,_0x5f373c(0xce)),'withText':!0x1,'icon':_0xa42508,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5f373c(0xf2)}),_0x22b777[_0x5f373c(0xf8)](_0x5f373c(0xca))['to'](_0xb9e81a,_0x5f373c(0xd0)),_0x22b777[_0x5f373c(0xf8)](_0x5f373c(0xd8))['to'](this,_0x5f373c(0xd8)),_0x22b777['on'](_0x5f373c(0xcc),()=>{const _0x2bbaa3=_0x5f373c;_0xb9e81a[_0x2bbaa3(0xd0)]=!_0xb9e81a[_0x2bbaa3(0xd0)],_0xb9e81a[_0x2bbaa3(0xd0)]?this[_0x2bbaa3(0xe5)][_0x2bbaa3(0xd7)]():this[_0x2bbaa3(0xd7)]();});const _0x3f3b4f=()=>{const _0x59089b=_0x5f373c;_0x2b4b8b[_0x59089b(0xd2)][_0x59089b(0xea)](()=>{const _0x5da510=_0x59089b;if(_0x2846d4(this[_0x5da510(0xda)])){const _0x56ab7c=new _0x14fe15(this[_0x5da510(0xf0)][_0x5da510(0xd1)][_0x5da510(0xda)]),_0x4ec0ec=_0x56ab7c[_0x5da510(0xe4)],_0x166086=_0x5da510(0xc4)===_0x2f0916[_0x5da510(0xc6)]?_0x5da510(0xeb):_0x5da510(0xf9);_0x56ab7c[_0x5da510(0xc9)](),_0x22b777[_0x5da510(0xda)][_0x5da510(0xd6)][_0x166086]=_0x4ec0ec-_0x56ab7c[_0x5da510(0xe4)]+0x1+'px';}});};return this[_0x5f373c(0xf0)][_0x5f373c(0xd1)]['on'](_0x5f373c(0xcd),_0x3f3b4f),this['on'](_0x5f373c(0xcf),_0x3f3b4f),_0x22b777;}[_0x4abfbe(0xf3)](){const _0x38f80b=_0x4abfbe,_0x317508=this[_0x38f80b(0xf0)][_0x38f80b(0xd1)][_0x38f80b(0xda)][_0x38f80b(0xe2)];this[_0x38f80b(0xd9)](_0x38f80b(0xf3),_0x317508);}[_0x4abfbe(0xd7)](_0x596b99){const _0xde0ba5=_0x4abfbe;-0x1===_0x596b99?this[_0xde0ba5(0xef)][_0xde0ba5(0xdc)]():this[_0xde0ba5(0xef)][_0xde0ba5(0xdb)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x221f(_0x22afc2,_0x2d29af){const _0x11bd01=_0x11bd();return _0x221f=function(_0x221ff2,_0x504666){_0x221ff2=_0x221ff2-0x8c;let _0x2a9d35=_0x11bd01[_0x221ff2];return _0x2a9d35;},_0x221f(_0x22afc2,_0x2d29af);}function _0x11bd(){const _0x1083e8=['bindTemplate','ck-ai-form__toolbar','items','set','extendTemplate','28yGZmqu','334864tdbjOx','2782716xmDCAW','stopButton','tryAgainButton','3817440rLykIz','ck-hidden','Try\x20again','REPLACE','380055yhIelr','_CONTENT','insertButton','1171804jfEBeY','35860YqNGoO','AI_','374155KFrPVu','addMany','Insert\x20below','_createButton','label','replaceButton','21lRrFIa','replace','toUpperCase','isVisible','mainAction','locale','insert','Stop','ck-button-action','bind'];_0x11bd=function(){return _0x1083e8;};return _0x11bd();}const _0x2d7152=_0x221f;(function(_0x5d49c2,_0xaaff51){const _0x576349=_0x221f,_0xcb411d=_0x5d49c2();while(!![]){try{const _0x18a574=parseInt(_0x576349(0x96))/0x1+-parseInt(_0x576349(0x9a))/0x2*(-parseInt(_0x576349(0xa2))/0x3)+-parseInt(_0x576349(0x99))/0x4+parseInt(_0x576349(0x9c))/0x5+parseInt(_0x576349(0x8f))/0x6+-parseInt(_0x576349(0x8d))/0x7*(-parseInt(_0x576349(0x8e))/0x8)+-parseInt(_0x576349(0x92))/0x9;if(_0x18a574===_0xaaff51)break;else _0xcb411d['push'](_0xcb411d['shift']());}catch(_0x426f5b){_0xcb411d['push'](_0xcb411d['shift']());}}}(_0x11bd,0x78ba7));import{ToolbarView as _0x37b3e8,ButtonView as _0x236461}from'ckeditor5/src/ui.js';import{getTranslation as _0x220654}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2d7152(0xa3),'INSERT':_0x2d7152(0xa8)};export class AIFormToolbarView extends _0x37b3e8{constructor(_0x38c24c){const _0x32c730=_0x2d7152;super(_0x38c24c),this[_0x32c730(0xaf)](_0x32c730(0xa5),!0x1),this[_0x32c730(0xaf)](_0x32c730(0xa6),AIFormToolbarViewMainActionLabel[_0x32c730(0x95)]),this[_0x32c730(0xa1)]=this[_0x32c730(0x9f)]('',_0x32c730(0xaa)),this[_0x32c730(0xa1)][_0x32c730(0xab)](_0x32c730(0xa0))['to'](this,_0x32c730(0xa6),_0x24fef8=>_0x220654(_0x38c24c,_0x32c730(0x9b)+_0x24fef8[_0x32c730(0xa4)]()+_0x32c730(0x97))),this[_0x32c730(0x98)]=this[_0x32c730(0x9f)](_0x220654(_0x38c24c,_0x32c730(0x9e))),this[_0x32c730(0x91)]=this[_0x32c730(0x9f)](_0x220654(_0x38c24c,_0x32c730(0x94))),this[_0x32c730(0x90)]=this[_0x32c730(0x9f)](_0x220654(_0x38c24c,_0x32c730(0xa9)));const _0xe778a7=this[_0x32c730(0xac)];this[_0x32c730(0x8c)]({'attributes':{'class':[_0x32c730(0xad),_0xe778a7['if'](_0x32c730(0xa5),_0x32c730(0x93),_0x5321fc=>!_0x5321fc)]}}),this[_0x32c730(0xae)][_0x32c730(0x9d)]([this[_0x32c730(0xa1)],this[_0x32c730(0x98)],this[_0x32c730(0x91)],this[_0x32c730(0x90)]]);}[_0x2d7152(0x9f)](_0x516080,_0x5e40c2){const _0xf19bfc=_0x2d7152,_0x588bd9=new _0x236461(this[_0xf19bfc(0xa7)]);return _0x588bd9[_0xf19bfc(0xaf)]({'label':_0x516080,'class':_0x5e40c2||'','isVisible':!0x0,'withText':!0x0}),_0x588bd9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2600(_0x2ee0dd,_0x516fdc){const _0x416427=_0x4164();return _0x2600=function(_0x2600be,_0x59d156){_0x2600be=_0x2600be-0x143;let _0x568fd0=_0x416427[_0x2600be];return _0x568fd0;},_0x2600(_0x2ee0dd,_0x516fdc);}const _0x2c9ae1=_0x2600;(function(_0x3f15c5,_0x19b24e){const _0x149e48=_0x2600,_0x3c788f=_0x3f15c5();while(!![]){try{const _0x13bee7=parseInt(_0x149e48(0x182))/0x1+-parseInt(_0x149e48(0x17a))/0x2*(parseInt(_0x149e48(0x18e))/0x3)+-parseInt(_0x149e48(0x17e))/0x4+-parseInt(_0x149e48(0x151))/0x5*(parseInt(_0x149e48(0x154))/0x6)+parseInt(_0x149e48(0x14a))/0x7+-parseInt(_0x149e48(0x156))/0x8+parseInt(_0x149e48(0x148))/0x9*(parseInt(_0x149e48(0x178))/0xa);if(_0x13bee7===_0x19b24e)break;else _0x3c788f['push'](_0x3c788f['shift']());}catch(_0x564f68){_0x3c788f['push'](_0x3c788f['shift']());}}}(_0x4164,0x76ba5));import{FocusTracker as _0x1a4700,KeystrokeHandler as _0xc31b0}from'ckeditor5/src/utils.js';import{View as _0x395da3,FocusCycler as _0x9e5e90,createLabeledTextarea as _0x58de77}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x275ca1,AIFormToolbarViewMainActionLabel as _0x2a7918}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x26a3d3}from'./aiformcontentarea.js';import{AIFormErrorView as _0x343669}from'./aiformerrorview.js';import{AIFormPromptView as _0x2cb51f}from'./aiformpromptview.js';import{AIHistoryListView as _0x5166d2}from'./aihistorylistview.js';function _0x4164(){const _0x38c4a6=['chain','_promptHistory','submit','render','fire','execute','6Nzudqd','items','startProcessing','isEnabled','focus','createCollection','tab','stopProcessing','queryView','bind','_createHistoryView','replaceContent','Ask\x20AI\x20to\x20edit\x20or\x20generate','trim','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','5665221EjLRjw','finishProcessing','3656464dnBuYQ','ck-hidden','toolbar','insertButton','prompt','keystrokes','bindTo','5DFMMlZ','ck-ai-form-content','copyButtonView','139224YAdJAY','focusTracker','6792256WBUHtG','delegate','add','bindTemplate','clear','_createPromptView','isError','ck-ai-form','focusFirst','label','insertContentBelow','locale','focusLast','isVisible','reset','text','clearHistory','listenTo','replaceButton','mainAction','high','_createToolbar','value','shift\x20+\x20tab','div','fieldView','tryAgainButton','tryAgainEvent','setTemplate','submitPrompt','search','element','errorView','stopButton','10WkvWsH','Ask\x20AI\x20to\x20improve\x20generated\x20text','259322arwZlc','set','REPLACE','promptView','796420ujHpeB','focusCycler','AI_ERROR_FAILED','historyGroupView','665151rsIALk','contentArea','handleError','isProcessing','Empty\x20history','_focusables'];_0x4164=function(){return _0x38c4a6;};return _0x4164();}import{AIHistoryListItemView as _0x286696}from'./aihistorylistitemview.js';import{PromptHistory as _0x4470d7}from'./prompthistory.js';import{getTranslation as _0x68c0dc}from'../../utils/common-translations.js';import{escape as _0x311e73}from'es-toolkit/compat';export class AIFormView extends _0x395da3{[_0x2c9ae1(0x155)];[_0x2c9ae1(0x14f)];[_0x2c9ae1(0x183)];[_0x2c9ae1(0x14c)];[_0x2c9ae1(0x17d)];[_0x2c9ae1(0x176)];[_0x2c9ae1(0x187)];[_0x2c9ae1(0x17f)];[_0x2c9ae1(0x189)];constructor(_0x5516c2,_0x1d864d,_0x52696e=''){const _0x398c90=_0x2c9ae1;super(_0x5516c2),this[_0x398c90(0x17b)](_0x398c90(0x191),!0x0),this[_0x398c90(0x17b)](_0x398c90(0x185),!0x1),this[_0x398c90(0x17b)](_0x398c90(0x14e),''),this[_0x398c90(0x17b)](_0x398c90(0x16c),''),this[_0x398c90(0x17b)](_0x398c90(0x15c),!0x1),this[_0x398c90(0x17b)](_0x398c90(0x169),_0x2a7918[_0x398c90(0x17c)]),this[_0x398c90(0x189)]=new _0x4470d7(),this[_0x398c90(0x176)]=new _0x343669(_0x5516c2),this[_0x398c90(0x183)]=new _0x26a3d3(_0x5516c2,_0x52696e),this[_0x398c90(0x183)][_0x398c90(0x197)](_0x398c90(0x185))['to'](this),this[_0x398c90(0x183)][_0x398c90(0x197)](_0x398c90(0x16c))['to'](this),this[_0x398c90(0x14c)]=this[_0x398c90(0x16b)](),this[_0x398c90(0x14c)][_0x398c90(0x197)](_0x398c90(0x169))['to'](this),this[_0x398c90(0x17d)]=this[_0x398c90(0x15b)](),this[_0x398c90(0x155)]=new _0x1a4700(),this[_0x398c90(0x14f)]=new _0xc31b0(),this[_0x398c90(0x187)]=this[_0x398c90(0x193)]([this[_0x398c90(0x183)],this[_0x398c90(0x183)][_0x398c90(0x153)],this[_0x398c90(0x14c)],this[_0x398c90(0x17d)]]),this[_0x398c90(0x17f)]=new _0x9e5e90({'focusables':this[_0x398c90(0x187)],'focusTracker':this[_0x398c90(0x155)],'keystrokeHandler':this[_0x398c90(0x14f)],'actions':{'focusPrevious':_0x398c90(0x16d),'focusNext':_0x398c90(0x194)}}),this[_0x398c90(0x17f)][_0x398c90(0x188)](this[_0x398c90(0x17d)][_0x398c90(0x17f)]),this[_0x398c90(0x17d)][_0x398c90(0x196)][_0x398c90(0x16f)][_0x398c90(0x197)](_0x398c90(0x16c))['to'](this,_0x398c90(0x14e));const _0x3071ad=this[_0x398c90(0x159)];this[_0x398c90(0x172)]({'tag':_0x398c90(0x16e),'attributes':{'class':['ck',_0x398c90(0x15d),_0x1d864d],'tabindex':'-1'},'children':[{'tag':_0x398c90(0x16e),'attributes':{'class':['ck',_0x398c90(0x152)]},'children':[{'tag':_0x398c90(0x16e),'attributes':{'class':[_0x3071ad['if'](_0x398c90(0x15c),_0x398c90(0x14b),_0x5ab8d5=>!_0x5ab8d5)]},'children':[this[_0x398c90(0x176)]]},this[_0x398c90(0x183)],this[_0x398c90(0x14c)],this[_0x398c90(0x17d)]]}]});}[_0x2c9ae1(0x18b)](){const _0x5e6c3d=_0x2c9ae1;super[_0x5e6c3d(0x18b)](),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x183)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x183)][_0x5e6c3d(0x153)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x14c)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x17d)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x14f)][_0x5e6c3d(0x167)](this[_0x5e6c3d(0x175)]);}[_0x2c9ae1(0x192)](_0x4e5a00=0x1){const _0xf374b3=_0x2c9ae1;-0x1===_0x4e5a00?this[_0xf374b3(0x17f)][_0xf374b3(0x162)]():this[_0xf374b3(0x17f)][_0xf374b3(0x15e)]();}[_0x2c9ae1(0x164)](){const _0x2a36a4=_0x2c9ae1;this[_0x2a36a4(0x14e)]='',this[_0x2a36a4(0x16c)]='',this[_0x2a36a4(0x15c)]=!0x1,this[_0x2a36a4(0x17d)][_0x2a36a4(0x164)](),this[_0x2a36a4(0x183)][_0x2a36a4(0x163)]=!0x1,this[_0x2a36a4(0x14c)][_0x2a36a4(0x163)]=!0x1;}[_0x2c9ae1(0x15b)](){const _0x4edceb=_0x2c9ae1,_0x404eb1=this[_0x4edceb(0x161)],_0x1618da=new _0x2cb51f(_0x404eb1,{'queryView':{'label':_0x68c0dc(_0x404eb1,_0x4edceb(0x145)),'creator':_0x58de77,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x68c0dc(_0x404eb1,_0x4edceb(0x186)),'secondary':_0x68c0dc(_0x404eb1,_0x4edceb(0x147))}}},'filteredView':this[_0x4edceb(0x143)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1618da[_0x4edceb(0x197)](_0x4edceb(0x191))['to'](this,_0x4edceb(0x191),this,_0x4edceb(0x185),(_0x30af86,_0x242838)=>_0x30af86&&!_0x242838),this[_0x4edceb(0x167)](_0x1618da,_0x4edceb(0x18a),(_0x2f2f76,_0x2b3138)=>{const _0x3880f5=_0x4edceb;this[_0x3880f5(0x14e)]=_0x2b3138;const _0x211e8f=_0x311e73(_0x2b3138);this[_0x3880f5(0x18c)](_0x3880f5(0x173),_0x211e8f),_0x2b3138[_0x3880f5(0x146)]()&&this[_0x3880f5(0x189)][_0x3880f5(0x158)]({'prompt':_0x211e8f},0x0);},{'priority':_0x4edceb(0x16a)}),_0x1618da;}[_0x2c9ae1(0x143)](){const _0x154b0b=_0x2c9ae1,_0x3f110f=new _0x5166d2(this[_0x154b0b(0x161)]);return _0x3f110f[_0x154b0b(0x181)][_0x154b0b(0x18f)][_0x154b0b(0x150)](this[_0x154b0b(0x189)])['as'](_0x286696),_0x3f110f['on'](_0x154b0b(0x166),()=>{const _0x306cd2=_0x154b0b;this[_0x306cd2(0x189)][_0x306cd2(0x15a)](),this[_0x306cd2(0x17d)][_0x306cd2(0x174)](''),this[_0x306cd2(0x17d)][_0x306cd2(0x192)]();}),_0x3f110f;}[_0x2c9ae1(0x16b)](){const _0x4819b5=_0x2c9ae1,_0x202c33=new _0x275ca1(this[_0x4819b5(0x161)]);return _0x202c33[_0x4819b5(0x168)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x191),this,_0x4819b5(0x185),this,_0x4819b5(0x16c),(_0x2e10e3,_0x4ef30b,_0x49a9c0)=>_0x2e10e3&&!_0x4ef30b&&!!_0x49a9c0),_0x202c33[_0x4819b5(0x168)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x144)),_0x202c33[_0x4819b5(0x14d)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x191),this,_0x4819b5(0x185),this,_0x4819b5(0x16c),(_0x363141,_0x4d7434,_0x45c3d9)=>_0x363141&&!_0x4d7434&&!!_0x45c3d9),_0x202c33[_0x4819b5(0x14d)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x160)),_0x202c33[_0x4819b5(0x170)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x191),this,_0x4819b5(0x185),(_0x7acc3a,_0x12b0b6)=>_0x7acc3a&&!_0x12b0b6),_0x202c33[_0x4819b5(0x170)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x171)),_0x202c33[_0x4819b5(0x177)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x185)),_0x202c33[_0x4819b5(0x177)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x195)),_0x202c33;}[_0x2c9ae1(0x190)](){const _0x5ba28b=_0x2c9ae1;this[_0x5ba28b(0x16c)]='',this[_0x5ba28b(0x15c)]=!0x1,this[_0x5ba28b(0x185)]=!0x0,this[_0x5ba28b(0x183)][_0x5ba28b(0x163)]=!0x0,this[_0x5ba28b(0x14c)][_0x5ba28b(0x163)]=!0x0,this[_0x5ba28b(0x183)][_0x5ba28b(0x192)]();}[_0x2c9ae1(0x149)](){const _0x31b649=_0x2c9ae1,_0x14d738=this[_0x31b649(0x161)];this[_0x31b649(0x185)]=!0x1,this[_0x31b649(0x14e)]='',this[_0x31b649(0x17d)][_0x31b649(0x164)](),this[_0x31b649(0x16c)]&&(this[_0x31b649(0x17d)][_0x31b649(0x196)][_0x31b649(0x15f)]=_0x68c0dc(_0x14d738,_0x31b649(0x179)));}[_0x2c9ae1(0x184)](_0x557fa1){const _0x4b90fb=_0x2c9ae1,_0x376f7e=this[_0x4b90fb(0x161)];this[_0x4b90fb(0x149)](),this[_0x4b90fb(0x15c)]=!0x0,this[_0x4b90fb(0x176)][_0x4b90fb(0x165)]=_0x557fa1||_0x68c0dc(_0x376f7e,_0x4b90fb(0x180)),this[_0x4b90fb(0x16c)]||(this[_0x4b90fb(0x183)][_0x4b90fb(0x163)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4cfdbb,_0x5f485d){const _0x27cea8=_0x229c,_0x38f951=_0x4cfdbb();while(!![]){try{const _0x1b5c2e=-parseInt(_0x27cea8(0xd9))/0x1*(parseInt(_0x27cea8(0xdc))/0x2)+-parseInt(_0x27cea8(0xdd))/0x3+parseInt(_0x27cea8(0xda))/0x4+-parseInt(_0x27cea8(0xd7))/0x5+parseInt(_0x27cea8(0xd6))/0x6*(parseInt(_0x27cea8(0xde))/0x7)+parseInt(_0x27cea8(0xe5))/0x8*(-parseInt(_0x27cea8(0xe7))/0x9)+parseInt(_0x27cea8(0xe2))/0xa*(parseInt(_0x27cea8(0xdf))/0xb);if(_0x1b5c2e===_0x5f485d)break;else _0x38f951['push'](_0x38f951['shift']());}catch(_0x49edbb){_0x38f951['push'](_0x38f951['shift']());}}}(_0x34f7,0xd18e7));import{ListItemView as _0x4490c2,ButtonView as _0x2346b1,ButtonLabelView as _0x1d0f6b}from'ckeditor5/src/ui.js';function _0x229c(_0x1304a5,_0x59c010){const _0x34f782=_0x34f7();return _0x229c=function(_0x229c6f,_0x41bee9){_0x229c6f=_0x229c6f-0xd6;let _0x56b340=_0x34f782[_0x229c6f];return _0x56b340;},_0x229c(_0x1304a5,_0x59c010);}function _0x34f7(){const _0x27c6fe=['add','2HnVSpj','4594095mFCDSC','71078aTgYhf','649OHjQKv','set','fire','565010PamXju','locale','children','94936tCIOeD','execute','585VajJmU','84DoGQJo','1493095NpVLva','prompt','1060918tAIzht','4179540RoWamq'];_0x34f7=function(){return _0x27c6fe;};return _0x34f7();}import{unescape as _0x1a0096}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4490c2{constructor(_0x4281c0){const _0x51750c=_0x229c;super();const _0x43ff4e=new _0x1d0f6b(),_0x46d317=new _0x2346b1(this[_0x51750c(0xe3)],_0x43ff4e);this[_0x51750c(0xe4)][_0x51750c(0xdb)](_0x46d317),_0x46d317[_0x51750c(0xe0)]({'label':_0x4281c0[_0x51750c(0xd8)],'withText':!0x0}),_0x46d317['on'](_0x51750c(0xe6),()=>{const _0x8c41a=_0x51750c;this[_0x8c41a(0xe1)](_0x8c41a(0xe6),{'value':_0x1a0096(_0x4281c0[_0x8c41a(0xd8)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f524a=_0x3059;(function(_0x408006,_0x391d73){const _0x56d8fd=_0x3059,_0x15d78d=_0x408006();while(!![]){try{const _0x208d5e=-parseInt(_0x56d8fd(0xec))/0x1+parseInt(_0x56d8fd(0xe7))/0x2*(parseInt(_0x56d8fd(0xef))/0x3)+parseInt(_0x56d8fd(0xf2))/0x4*(-parseInt(_0x56d8fd(0xfa))/0x5)+-parseInt(_0x56d8fd(0xf0))/0x6+parseInt(_0x56d8fd(0xeb))/0x7+-parseInt(_0x56d8fd(0xf7))/0x8+parseInt(_0x56d8fd(0xe9))/0x9*(parseInt(_0x56d8fd(0xf9))/0xa);if(_0x208d5e===_0x391d73)break;else _0x15d78d['push'](_0x15d78d['shift']());}catch(_0xc4f08a){_0x15d78d['push'](_0x15d78d['shift']());}}}(_0x391e,0xb8c7a));import{ListView as _0x209787,ListItemGroupView as _0x2a0a03,ButtonView as _0x11461c}from'ckeditor5/src/ui.js';function _0x391e(){const _0x1fa6a1=['delegate','36KqHroh','children','9113468OYsEmj','934261rMGDWP','label','items','3ldCNGx','8906898zncZkN','length','4lAmOiw','Prompt\x20history','filter','historyGroupView','Clear','6987584KTgbQA','add','4925960AIoACi','1763795jrMdRE','clearHistoryButton','execute','clearHistory','_createClearHistoryButton','locale','fire','set','2259002hQxPJY'];_0x391e=function(){return _0x1fa6a1;};return _0x391e();}import{getTranslation as _0x1132c7}from'../../utils/common-translations.js';function _0x3059(_0x3e9478,_0x8c3d29){const _0x391e77=_0x391e();return _0x3059=function(_0x3059d2,_0x17151d){_0x3059d2=_0x3059d2-0xe2;let _0x37172e=_0x391e77[_0x3059d2];return _0x37172e;},_0x3059(_0x3e9478,_0x8c3d29);}export class AIHistoryListView extends _0x209787{[_0x3f524a(0xf5)];[_0x3f524a(0xfb)];constructor(_0x388d45){const _0xf4582f=_0x3f524a;super(_0x388d45),this[_0xf4582f(0xfb)]=this[_0xf4582f(0xe3)](),this[_0xf4582f(0xf5)]=new _0x2a0a03(),this[_0xf4582f(0xf5)][_0xf4582f(0xea)][_0xf4582f(0xf8)](this[_0xf4582f(0xfb)],0x1),this[_0xf4582f(0xf5)][_0xf4582f(0xed)]=_0x1132c7(_0x388d45,_0xf4582f(0xf3)),this[_0xf4582f(0xf5)][_0xf4582f(0xee)][_0xf4582f(0xe8)](_0xf4582f(0xfc))['to'](this),this[_0xf4582f(0xee)][_0xf4582f(0xf8)](this[_0xf4582f(0xf5)]);}[_0x3f524a(0xf4)](){const _0x1dd08d=_0x3f524a;let _0x2053b3=0x0;for(const _0x1c1093 of this[_0x1dd08d(0xee)])_0x2053b3+=_0x1c1093[_0x1dd08d(0xee)][_0x1dd08d(0xf1)];return{'resultsCount':_0x2053b3,'totalItemsCount':_0x2053b3};}[_0x3f524a(0xe3)](){const _0x2a1a17=_0x3f524a,_0x514d16=this[_0x2a1a17(0xe4)],_0x484bd4=new _0x11461c(this[_0x2a1a17(0xe4)]);return _0x484bd4[_0x2a1a17(0xe6)]({'label':'('+_0x1132c7(_0x514d16,_0x2a1a17(0xf6))+')','withText':!0x0}),_0x484bd4['on'](_0x2a1a17(0xfc),()=>this[_0x2a1a17(0xe5)](_0x2a1a17(0xe2))),_0x484bd4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5f3a(){const _0x5e25f5=['23GoLjKh','385347uWAoHT','8VNUbfC','12vlLtvw','prompt','parse','setItem','toLowerCase','2916OrttLJ','remove','getItem','2304320GerICW','11319Igxrio','last','4DfOwaW','addMany','CKEditor/AIFormView/PromptHistory','23288NSSnpo','stringify','1265845IdTxPm','add','497UEvtlF','trim','map','_saveToSessionStorage','1613106VBBZFc','length','_loadFromSessionStorage'];_0x5f3a=function(){return _0x5e25f5;};return _0x5f3a();}const _0xe19edd=_0x3dc3;(function(_0x540ada,_0x4322ad){const _0xe163cd=_0x3dc3,_0x3adb2d=_0x540ada();while(!![]){try{const _0x2ea6e4=parseInt(_0xe163cd(0x164))/0x1*(-parseInt(_0xe163cd(0x159))/0x2)+parseInt(_0xe163cd(0x165))/0x3*(-parseInt(_0xe163cd(0x156))/0x4)+parseInt(_0xe163cd(0x15b))/0x5+parseInt(_0xe163cd(0x167))/0x6*(parseInt(_0xe163cd(0x15d))/0x7)+-parseInt(_0xe163cd(0x166))/0x8*(parseInt(_0xe163cd(0x161))/0x9)+parseInt(_0xe163cd(0x153))/0xa+parseInt(_0xe163cd(0x154))/0xb*(parseInt(_0xe163cd(0x150))/0xc);if(_0x2ea6e4===_0x4322ad)break;else _0x3adb2d['push'](_0x3adb2d['shift']());}catch(_0xf2d6bd){_0x3adb2d['push'](_0x3adb2d['shift']());}}}(_0x5f3a,0x26a57));import{Collection as _0x5e3541}from'ckeditor5/src/utils.js';const So=_0xe19edd(0x158);export class PromptHistory extends _0x5e3541{constructor(){const _0x447060=_0xe19edd;super(),this[_0x447060(0x163)](),this['on'](_0x447060(0x15c),(_0x1aa88b,_0x2de56c)=>{const _0x2af65c=_0x447060,_0x52896c=go(_0x2de56c[_0x2af65c(0x168)]);for(const _0x1dd9da of this)if(_0x1dd9da!=_0x2de56c&&go(_0x1dd9da[_0x2af65c(0x168)])===_0x52896c){this[_0x2af65c(0x151)](_0x1dd9da);break;}this[_0x2af65c(0x162)]>0x14&&this[_0x2af65c(0x151)](this[_0x2af65c(0x155)]),this[_0x2af65c(0x160)]();}),this['on'](_0x447060(0x151),()=>{const _0x514c9f=_0x447060;this[_0x514c9f(0x160)]();});}[_0xe19edd(0x163)](){const _0x3956d9=_0xe19edd,_0x32365a=sessionStorage[_0x3956d9(0x152)](So)||'[]';this[_0x3956d9(0x157)](JSON[_0x3956d9(0x169)](_0x32365a));}[_0xe19edd(0x160)](){const _0x5a794a=_0xe19edd;sessionStorage[_0x5a794a(0x16a)](So,JSON[_0x5a794a(0x15a)](this[_0x5a794a(0x15f)](_0x2ae5dc=>_0x2ae5dc)));}}function _0x3dc3(_0x23e9fa,_0x5ade88){const _0x5f3aa7=_0x5f3a();return _0x3dc3=function(_0x3dc372,_0x4f149e){_0x3dc372=_0x3dc372-0x150;let _0x26cbdb=_0x5f3aa7[_0x3dc372];return _0x26cbdb;},_0x3dc3(_0x23e9fa,_0x5ade88);}function go(_0x12e130){const _0x3d47de=_0xe19edd;return _0x12e130[_0x3d47de(0x16b)]()[_0x3d47de(0x15e)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5ac3(_0x2c1991,_0x5d5aa3){const _0x3354ac=_0x3354();return _0x5ac3=function(_0x5ac381,_0x2e42a9){_0x5ac381=_0x5ac381-0x1b9;let _0x352f4c=_0x3354ac[_0x5ac381];return _0x352f4c;},_0x5ac3(_0x2c1991,_0x5d5aa3);}const _0xacb16c=_0x5ac3;(function(_0x233f65,_0x464bf8){const _0x280923=_0x5ac3,_0x5615d5=_0x233f65();while(!![]){try{const _0x398ee5=-parseInt(_0x280923(0x1cf))/0x1+-parseInt(_0x280923(0x1c8))/0x2*(parseInt(_0x280923(0x1d1))/0x3)+-parseInt(_0x280923(0x1ce))/0x4+parseInt(_0x280923(0x1d7))/0x5*(parseInt(_0x280923(0x1d8))/0x6)+parseInt(_0x280923(0x1d3))/0x7*(parseInt(_0x280923(0x1db))/0x8)+-parseInt(_0x280923(0x1bf))/0x9*(parseInt(_0x280923(0x1ba))/0xa)+parseInt(_0x280923(0x1cc))/0xb*(parseInt(_0x280923(0x1e3))/0xc);if(_0x398ee5===_0x464bf8)break;else _0x5615d5['push'](_0x5615d5['shift']());}catch(_0x4caaa3){_0x5615d5['push'](_0x5615d5['shift']());}}}(_0x3354,0x5c0c7));import{Command as _0x1de2a4}from'ckeditor5/src/core.js';function _0x3354(){const _0x2bef67=['12815Dnkieq','222jQRACx','requiresContent','editor','32PNAhck','get','from','includes','custom','change:_hasContext','length','plugins','36Wzbdrq','_commandDefinitions','change:isEnabled','config','hasContent','3953150AkmicN','_hasContext','isCollapsed','set','model','9SQfhww','values','getRanges','getSelectedBlocks','add','document','element','enabledCommandsIds','getItems','14fuChJK','selection','isEnabled','isEmpty','4547378eclBGC','name','2658740cfwzKm','245266tzSNrB','getFirstRange','156708GrZXoN','ai.assistant.disabledElements','1247617kJVgeZ','showUI','refresh','execute'];_0x3354=function(){return _0x2bef67;};return _0x3354();}import{AIAssistantUI as _0x334e31}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1de2a4{[_0xacb16c(0x1e4)];constructor(_0x1aeeaf,_0x223d34){const _0x201d05=_0xacb16c;super(_0x1aeeaf),this[_0x201d05(0x1e4)]=_0x223d34,this[_0x201d05(0x1bd)](_0x201d05(0x1c6),[]),this['on'](_0x201d05(0x1e0),(_0x2b7dcc,_0x5852a9,_0x21d500)=>{const _0x3defae=_0x201d05;this[_0x3defae(0x1ca)]&&(this[_0x3defae(0x1c6)]=ns(this[_0x3defae(0x1e4)],_0x21d500));}),this[_0x201d05(0x1bd)](_0x201d05(0x1bb),!0x1),this['on'](_0x201d05(0x1e5),(_0x46c200,_0x1e1e20,_0x3400e1)=>{const _0x2f6cb3=_0x201d05;this[_0x2f6cb3(0x1c6)]=_0x3400e1?ns(this[_0x2f6cb3(0x1e4)],this[_0x2f6cb3(0x1bb)]):[];});}[_0xacb16c(0x1d5)](){const _0x231eaf=_0xacb16c,_0x318619=this[_0x231eaf(0x1da)][_0x231eaf(0x1be)];this[_0x231eaf(0x1bb)]=function(_0x20ecae){const _0x52faba=_0x231eaf,_0x11ca22=_0x20ecae[_0x52faba(0x1c4)][_0x52faba(0x1c9)];return _0x11ca22[_0x52faba(0x1bc)]?0x0!==[..._0x11ca22[_0x52faba(0x1c2)]()][_0x52faba(0x1e1)]&&![..._0x11ca22[_0x52faba(0x1c2)]()][0x0][_0x52faba(0x1cb)]:!!_0x20ecae[_0x52faba(0x1b9)](_0x11ca22[_0x52faba(0x1d0)]());}(_0x318619);const _0x29a3c9=_0x318619[_0x231eaf(0x1c4)][_0x231eaf(0x1c9)],_0x1e6189=this[_0x231eaf(0x1da)][_0x231eaf(0x1e6)][_0x231eaf(0x1dc)](_0x231eaf(0x1d2));for(const _0x40453f of _0x29a3c9[_0x231eaf(0x1c1)]())for(const _0x16cdab of _0x40453f[_0x231eaf(0x1c7)]())if(_0x16cdab['is'](_0x231eaf(0x1c5))&&_0x1e6189[_0x231eaf(0x1de)](_0x16cdab[_0x231eaf(0x1cd)]))return void(this[_0x231eaf(0x1ca)]=!0x1);this[_0x231eaf(0x1ca)]=!0x0;}[_0xacb16c(0x1d6)](_0x725837='',_0x142681='',_0x4bfe14=_0xacb16c(0x1df)){const _0x3c765a=_0xacb16c;this[_0x3c765a(0x1da)][_0x3c765a(0x1e2)][_0x3c765a(0x1dc)](_0x334e31)[_0x3c765a(0x1d4)](_0x725837,_0x142681,_0x4bfe14);}}function ns(_0x25b90f,_0x7db999){const _0x487ee1=_0xacb16c,_0x66e8e6=new Set();for(const _0x48e85d of _0x25b90f[_0x487ee1(0x1c0)]())(_0x7db999||!0x1===_0x48e85d[_0x487ee1(0x1d9)])&&_0x66e8e6[_0x487ee1(0x1c3)](_0x48e85d['id']);return Array[_0x487ee1(0x1dd)](_0x66e8e6);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x5baebc,_0x3f71e7,_0x57e99f){const t=_0x5baebc['t'];switch(_0x3f71e7){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',_0x57e99f);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x57e99f);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'},_0x57e99f);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 _0x3f71e7;}}
|
|
@@ -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(_0x1495a0,_0x3b5978){const _0x2ab65c=(0x0,_0x3b5978['t'])('Other');return _0x1495a0['length']?'groupId'in _0x1495a0[0x0]?_0x1495a0:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2ab65c,'order':0x1/0x0,'commands':_0x1495a0}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2ab65c,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x70d98a=_0x5e1b;(function(_0x2bfdae,_0x590e49){const _0x20fd42=_0x5e1b,_0x859ea1=_0x2bfdae();while(!![]){try{const _0x214ce5=parseInt(_0x20fd42(0x176))/0x1*(-parseInt(_0x20fd42(0x185))/0x2)+parseInt(_0x20fd42(0x1a1))/0x3*(-parseInt(_0x20fd42(0x154))/0x4)+parseInt(_0x20fd42(0x14f))/0x5*(-parseInt(_0x20fd42(0x164))/0x6)+-parseInt(_0x20fd42(0x160))/0x7*(parseInt(_0x20fd42(0x16f))/0x8)+parseInt(_0x20fd42(0x16e))/0x9+-parseInt(_0x20fd42(0x181))/0xa+parseInt(_0x20fd42(0x1a9))/0xb;if(_0x214ce5===_0x590e49)break;else _0x859ea1['push'](_0x859ea1['shift']());}catch(_0x105db8){_0x859ea1['push'](_0x859ea1['shift']());}}}(_0x3682,0x8fb7e));import{ContextPlugin as _0x27b353}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x564f90,AIEditing as _0x4d8403}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x4c6eed}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3682(){const _0x2d8152=['updatePosition','end','169794LSNZir','8421032bApENO','change','hideFakeVisualSelection','_cleanupFakeVisualSelectionMarkerRemovalListener','selectionRemoved','_showFakeVisualSelection','start','310693UAvrZx','isOpen','getIntersection','hideError','once','get','pluginName','document','content','startsWith','high','4804230vBhUel','isEqual','getChangedMarkers','height','4yhnpWv','$graveyard','locale','mainView','ranges','left','top','markers','show','hide','stopListening','_showDialog','view','Dialog','context','root','delegate','rootName','close','open','differ','ai-selection','showBlockingError','width','index','ai-balloon-selection','isOfficialPlugin','getBoundingRect','263709aXTbYq','_setupFakeVisualSelectionMarkerRemovalListener','max','map','_updateDialog','_calculateOptimalTopPosition','plugins','isPremiumPlugin','40707623MqhDBC','AIBalloon','getMarkersGroup','window','5gZsZeF','length','iconView','_isUpdatingMarkers','dialogClosed','44wpKcmU','bottom','headerView','_getSelectionElements','_currentConfig','fire','_calculateDialogPosition','_hideFakeVisualSelection','ai-balloon-','model','requires','beforeDialogClosed','7mGyhTj','showFakeVisualSelection','listenTo','label','57108nyAHUX','bind','editing','ck-ai-balloon\x20','getVisible','round','filter','AI_BALLOON_SELECTION_REMOVED_ERROR'];_0x3682=function(){return _0x2d8152;};return _0x3682();}import{global as _0x338635,Rect as _0xef5938,scrollViewportToShowTarget as _0x5d2fe2}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x42502a}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0xaca674}from'../aicore/utils/common-translations.js';function _0x5e1b(_0x360456,_0x2d2c92){const _0x368202=_0x3682();return _0x5e1b=function(_0x5e1bef,_0x3de190){_0x5e1bef=_0x5e1bef-0x14d;let _0x370100=_0x368202[_0x5e1bef];return _0x370100;},_0x5e1b(_0x360456,_0x2d2c92);}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x34b288}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x34b288,_0x70d98a(0x153),_0x70d98a(0x173)];const at=0xa;export class AIBalloon extends _0x27b353{static get[_0x70d98a(0x15e)](){return[_0x4d8403];}static get[_0x70d98a(0x17c)](){const _0x374400=_0x70d98a;return _0x374400(0x1aa);}static get[_0x70d98a(0x19f)](){return!0x0;}static get[_0x70d98a(0x1a8)](){return!0x0;}[_0x70d98a(0x177)]=!0x1;[_0x70d98a(0x158)];[_0x70d98a(0x152)]=!0x1;[_0x70d98a(0x198)](_0x3893af){const _0x823779=_0x70d98a,{id:_0x484742}=this[_0x823779(0x158)]??{};this[_0x823779(0x158)]=_0x3893af;const {id:_0x12ed49}=this[_0x823779(0x158)];this[_0x823779(0x177)]&&_0x484742===_0x12ed49?this[_0x823779(0x1a5)]():this[_0x823779(0x190)]();}[_0x70d98a(0x197)](){const _0x398da4=_0x70d98a,_0x2a6f2e=_0x42502a(this[_0x398da4(0x193)])[_0x398da4(0x1a7)][_0x398da4(0x17b)](_0x398da4(0x192));_0x2a6f2e[_0x398da4(0x177)]&&this[_0x398da4(0x158)]&&_0x2a6f2e['id']===this[_0x398da4(0x158)]['id']&&_0x2a6f2e[_0x398da4(0x18e)]();}[_0x70d98a(0x1a5)](){const _0x40a91d=_0x70d98a,_0x1e53bb=_0x42502a(this[_0x40a91d(0x193)])[_0x40a91d(0x1a7)][_0x40a91d(0x17b)](_0x40a91d(0x192)),{icon:_0x16231c,title:_0x53f77b}=this[_0x40a91d(0x158)];_0x1e53bb[_0x40a91d(0x191)]?.[_0x40a91d(0x156)]&&(_0x1e53bb[_0x40a91d(0x191)][_0x40a91d(0x156)][_0x40a91d(0x163)]=_0x53f77b,_0x1e53bb[_0x40a91d(0x191)][_0x40a91d(0x156)][_0x40a91d(0x151)]&&_0x16231c&&(_0x1e53bb[_0x40a91d(0x191)][_0x40a91d(0x156)][_0x40a91d(0x151)][_0x40a91d(0x17e)]=_0x16231c)),this[_0x40a91d(0x152)]=!0x0,this[_0x40a91d(0x174)](),this[_0x40a91d(0x152)]=!0x1,_0x1e53bb[_0x40a91d(0x191)]?.[_0x40a91d(0x16c)]();}[_0x70d98a(0x174)](){const _0x461589=_0x70d98a;this[_0x461589(0x193)][_0x461589(0x1a7)][_0x461589(0x17b)](_0x4d8403)[_0x461589(0x161)](this[_0x461589(0x158)][_0x461589(0x189)],_0x461589(0x15c)+this[_0x461589(0x158)][_0x461589(0x19d)],!0x0,!0x0);}[_0x70d98a(0x15b)](_0x2f14e9){const _0x329d0c=_0x70d98a;this[_0x329d0c(0x193)][_0x329d0c(0x1a7)][_0x329d0c(0x17b)](_0x4d8403)[_0x329d0c(0x171)](_0x329d0c(0x15c)+_0x2f14e9);}[_0x70d98a(0x190)](){const _0x25dd90=_0x70d98a,_0x363d27=_0x42502a(this[_0x25dd90(0x193)])[_0x25dd90(0x1a7)][_0x25dd90(0x17b)](_0x25dd90(0x192)),{id:_0x3a1699,title:_0x53c5c1,icon:_0xb6277b,class:_0x3e4e62,mainView:_0x2e5679}=this[_0x25dd90(0x158)];_0x2e5679[_0x25dd90(0x195)](..._0x34b288)['to'](this),_0x363d27[_0x25dd90(0x18d)]({'title':_0x53c5c1,'icon':_0xb6277b,'hasCloseButton':!0x0,'id':_0x3a1699,'position':this[_0x25dd90(0x15a)][_0x25dd90(0x165)](this),'className':_0x25dd90(0x167)+(_0x3e4e62||''),'content':_0x2e5679,'onShow':_0x29aa60=>{const _0x4a95da=_0x25dd90;this[_0x4a95da(0x174)](),this[_0x4a95da(0x1a2)]();const _0x5cd94d=this[_0x4a95da(0x157)]();_0x5cd94d&&_0x5cd94d[0x0]&&_0x5d2fe2({'target':_0x5cd94d[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x4a95da(0x177)]=!0x0,_0x29aa60[_0x4a95da(0x17a)](_0x4a95da(0x18e),()=>{const _0x2faeb9=_0x4a95da;this[_0x2faeb9(0x159)](_0x2faeb9(0x15f),{'id':_0x3a1699});},{'priority':_0x4a95da(0x180)});},'onHide':()=>{const _0x4c4725=_0x25dd90;this[_0x4c4725(0x15b)](this[_0x4c4725(0x158)][_0x4c4725(0x19d)]),this[_0x4c4725(0x172)](),this[_0x4c4725(0x159)](_0x4c4725(0x153),{'id':_0x3a1699}),this[_0x4c4725(0x177)]=!0x1;}});}[_0x70d98a(0x15a)](_0x36dc23,_0x2bc494){const _0x1b27b8=_0x70d98a;if(!_0x2bc494)return null;const _0x3ec73d=this[_0x1b27b8(0x157)]();if(!_0x3ec73d||0x0===_0x3ec73d[_0x1b27b8(0x150)])return{'left':Math[_0x1b27b8(0x169)](_0x2bc494[_0x1b27b8(0x18a)]+_0x2bc494[_0x1b27b8(0x19c)]/0x2-_0x36dc23[_0x1b27b8(0x19c)]/0x2),'top':Math[_0x1b27b8(0x169)](_0x2bc494[_0x1b27b8(0x18b)]+_0x2bc494[_0x1b27b8(0x184)]/0x2-_0x36dc23[_0x1b27b8(0x184)]/0x2)};const _0x413a6c=Math[_0x1b27b8(0x169)](_0x2bc494[_0x1b27b8(0x18a)]+_0x2bc494[_0x1b27b8(0x19c)]/0x2-_0x36dc23[_0x1b27b8(0x19c)]/0x2),_0x37831c=_0x3ec73d[_0x1b27b8(0x1a4)](_0x20c1f3=>new _0xef5938(_0x20c1f3)),_0x1e2ea3=_0x36dc23[_0x1b27b8(0x184)];return{'left':_0x413a6c,'top':this[_0x1b27b8(0x1a6)](_0x37831c,_0x1e2ea3,_0x2bc494)};}[_0x70d98a(0x1a6)](_0x4d3d6b,_0x337c85,_0x258e00){const _0x1f41da=_0x70d98a,_0x1d9ad4=new _0xef5938(_0x338635[_0x1f41da(0x14e)]),_0x8a2933=_0x4d3d6b[_0x1f41da(0x1a4)](_0x3e7853=>_0x3e7853[_0x1f41da(0x168)]())[_0x1f41da(0x16a)](_0x5442e0=>_0x5442e0),_0x9578ff=_0xef5938[_0x1f41da(0x1a0)](_0x8a2933);if(!_0x9578ff)return Math[_0x1f41da(0x169)](_0x258e00[_0x1f41da(0x18b)]+_0x258e00[_0x1f41da(0x184)]/0x2);const _0x1d4dca=_0x1d9ad4[_0x1f41da(0x178)](_0x9578ff);if(!_0x1d4dca)return Math[_0x1f41da(0x169)](_0x258e00[_0x1f41da(0x18b)]+_0x258e00[_0x1f41da(0x184)]/0x2);const _0x51f77a=_0x258e00[_0x1f41da(0x168)](),_0x1e510d=_0x51f77a&&_0x9578ff[_0x1f41da(0x184)]>_0x51f77a[_0x1f41da(0x184)],_0x10d546=_0x1d4dca[_0x1f41da(0x18b)],_0x5ba2bc=_0x1d4dca[_0x1f41da(0x155)];if(_0x1e510d){const _0x52cbdf=(_0x51f77a||_0x1d9ad4)[_0x1f41da(0x184)]/0x2-_0x337c85/0x2,_0x54b003=_0x10d546-at-_0x258e00[_0x1f41da(0x18b)],_0x4e1162=_0x258e00[_0x1f41da(0x155)]-_0x5ba2bc-at;return _0x54b003>=_0x337c85?Math[_0x1f41da(0x1a3)](at,_0x10d546-_0x337c85-at):_0x4e1162>=_0x337c85?_0x5ba2bc+at:Math[_0x1f41da(0x1a3)](at,_0x52cbdf);}const _0x1312fb=_0x10d546-_0x337c85,_0x424367=_0x258e00[_0x1f41da(0x155)]-_0x5ba2bc-at,_0x886b3a=_0x10d546-at-_0x258e00[_0x1f41da(0x18b)];let _0xfac26d;if(_0x424367>=_0x337c85)_0xfac26d=_0x5ba2bc+at;else{if(_0x886b3a>=_0x337c85)_0xfac26d=_0x1312fb-at;else _0xfac26d=_0x10d546+_0x9578ff[_0x1f41da(0x184)]/0x2-_0x337c85/0x2;}return _0xfac26d;}[_0x70d98a(0x1a2)](){const _0x1e3e94=_0x70d98a,_0xb719b2=_0x42502a(this[_0x1e3e94(0x193)]);this[_0x1e3e94(0x162)](_0xb719b2[_0x1e3e94(0x15d)][_0x1e3e94(0x17d)],_0x1e3e94(0x170),()=>{const _0x524179=_0x1e3e94;if(!this[_0x524179(0x152)]){for(const {name:_0x361503,data:{newRange:_0x46c983}}of _0xb719b2[_0x524179(0x15d)][_0x524179(0x17d)][_0x524179(0x199)][_0x524179(0x183)]())if(_0x361503[_0x524179(0x17f)](_0x564f90+':')&&(_0x46c983&&(_0x46c983[_0x524179(0x175)][_0x524179(0x182)](_0x46c983[_0x524179(0x16d)])||_0x524179(0x186)==_0x46c983[_0x524179(0x194)][_0x524179(0x196)])||null==_0x46c983)){const _0x41291c=_0xaca674(this[_0x524179(0x193)][_0x524179(0x187)],_0x524179(0x16b));this[_0x524179(0x158)][_0x524179(0x188)][_0x524179(0x19b)](_0x41291c),this[_0x524179(0x159)](_0x524179(0x173));}}});}[_0x70d98a(0x172)](){const _0x1ba2d8=_0x70d98a,_0x57d631=_0x42502a(this[_0x1ba2d8(0x193)]);this[_0x1ba2d8(0x158)][_0x1ba2d8(0x188)][_0x1ba2d8(0x179)](),this[_0x1ba2d8(0x18f)](_0x57d631[_0x1ba2d8(0x15d)][_0x1ba2d8(0x17d)]);}[_0x70d98a(0x157)](){const _0x34612a=_0x70d98a,_0x136391=_0x42502a(this[_0x34612a(0x193)]);return _0x4c6eed(_0x136391[_0x34612a(0x166)],[..._0x136391[_0x34612a(0x15d)][_0x34612a(0x18c)][_0x34612a(0x14d)](_0x34612a(0x19a)),..._0x136391[_0x34612a(0x15d)][_0x34612a(0x18c)][_0x34612a(0x14d)](_0x34612a(0x19e))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x313a(){const _0x5ad3b2=['_errorMessage','showBlockingError','862371wETTnX','ck-ai-balloon-error','_errorView','bindTemplate','applySuggestion','ck-ai-suggestion__error','47226260UhTQYi','showPrevious','120JeZAmU','showError','hideError','556651uVenlR','8DIhafv','setTemplate','ck-ai-suggestion__error-text','483364RfIrsp','3KXNoIB','ck-hidden','_isErrorVisible','span','6574310GcZeJD','3864116cURnXe','2664340WrILnK','showNext','_createErrorView','insertSuggestion','div','set','locale'];_0x313a=function(){return _0x5ad3b2;};return _0x313a();}const _0x4ae2f2=_0x21f6;(function(_0x5cf6ff,_0x282963){const _0x4e023f=_0x21f6,_0x13d530=_0x5cf6ff();while(!![]){try{const _0x24effc=parseInt(_0x4e023f(0x14e))/0x1+parseInt(_0x4e023f(0x13a))/0x2+parseInt(_0x4e023f(0x153))/0x3*(parseInt(_0x4e023f(0x139))/0x4)+parseInt(_0x4e023f(0x138))/0x5+parseInt(_0x4e023f(0x14b))/0x6*(parseInt(_0x4e023f(0x152))/0x7)+-parseInt(_0x4e023f(0x14f))/0x8*(parseInt(_0x4e023f(0x143))/0x9)+-parseInt(_0x4e023f(0x149))/0xa;if(_0x24effc===_0x282963)break;else _0x13d530['push'](_0x13d530['shift']());}catch(_0x473865){_0x13d530['push'](_0x13d530['shift']());}}}(_0x313a,0xb2c93));import{View as _0x3a18f0}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4ae2f2(0x147),_0x4ae2f2(0x13d),_0x4ae2f2(0x13b),_0x4ae2f2(0x14a)];function _0x21f6(_0x17527c,_0x252439){const _0x313a95=_0x313a();return _0x21f6=function(_0x21f62a,_0x10df3b){_0x21f62a=_0x21f62a-0x135;let _0x476548=_0x313a95[_0x21f62a];return _0x476548;},_0x21f6(_0x17527c,_0x252439);}export class AIBalloonView extends _0x3a18f0{[_0x4ae2f2(0x145)];constructor(_0x2d9764){const _0x14c2d8=_0x4ae2f2;super(_0x2d9764),this[_0x14c2d8(0x13f)](_0x14c2d8(0x141),''),this[_0x14c2d8(0x13f)](_0x14c2d8(0x136),!0x1);}[_0x4ae2f2(0x142)](_0x31dee2){const _0x27a7c7=_0x4ae2f2;this[_0x27a7c7(0x14c)](_0x31dee2);}[_0x4ae2f2(0x14c)](_0x4be8aa){const _0x271ffb=_0x4ae2f2;this[_0x271ffb(0x145)]||(this[_0x271ffb(0x145)]=this[_0x271ffb(0x13c)]()),this[_0x271ffb(0x141)]=_0x4be8aa,this[_0x271ffb(0x136)]=!0x0;}[_0x4ae2f2(0x14d)](){const _0x3a79b3=_0x4ae2f2;this[_0x3a79b3(0x136)]=!0x1;}[_0x4ae2f2(0x13c)](){const _0x5b3235=_0x4ae2f2,_0x190935=new _0x3a18f0(this[_0x5b3235(0x140)]),_0x47aab1=new _0x3a18f0(this[_0x5b3235(0x140)]);return _0x47aab1[_0x5b3235(0x150)]({'tag':_0x5b3235(0x137),'attributes':{'class':['ck',_0x5b3235(0x151)]},'children':[{'text':this[_0x5b3235(0x146)]['to'](_0x5b3235(0x141))}]}),_0x190935[_0x5b3235(0x150)]({'tag':_0x5b3235(0x13e),'attributes':{'class':['ck',_0x5b3235(0x148),_0x5b3235(0x144),this[_0x5b3235(0x146)]['if'](_0x5b3235(0x136),_0x5b3235(0x135),_0x16b1da=>!_0x16b1da)]},'children':[_0x47aab1]}),_0x190935;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x74b1c7=_0x3dc9;function _0x2487(){var _0x4dd1c3=['32FtmoVx','addSelectionToChatContext','70325ncOdgV','645609rFivvG','sendMessage','2738631giuXOS','new','63064fMGIiO','isOfficialPlugin','99ojhZXw','3463734bfBPxN','requires','removeSelectionFromChatContext','startConversation','pluginName','context','ai.chat.initialConversation','registerToolDataCallback','get','ai.chat.context','_registerToolDataCallback','config','413145tpixUE','plugins','AIChat','focusPromptInput','isPremiumPlugin','define','690916qaxHmB'];_0x2487=function(){return _0x4dd1c3;};return _0x2487();}(function(_0x5091dd,_0xa48cde){var _0x2a02fb=_0x3dc9,_0x292ae9=_0x5091dd();while(!![]){try{var _0x466400=parseInt(_0x2a02fb(0xc9))/0x1+parseInt(_0x2a02fb(0xc5))/0x2+-parseInt(_0x2a02fb(0xbf))/0x3*(parseInt(_0x2a02fb(0xc6))/0x4)+-parseInt(_0x2a02fb(0xc8))/0x5+parseInt(_0x2a02fb(0xb3))/0x6+parseInt(_0x2a02fb(0xcb))/0x7+parseInt(_0x2a02fb(0xcd))/0x8*(-parseInt(_0x2a02fb(0xcf))/0x9);if(_0x466400===_0xa48cde)break;else _0x292ae9['push'](_0x292ae9['shift']());}catch(_0x26c341){_0x292ae9['push'](_0x292ae9['shift']());}}}(_0x2487,0xb8d63));import{ContextPlugin as _0x10163c}from'ckeditor5/src/core.js';function _0x3dc9(_0x36d1b8,_0x20c89c){var _0x2487f2=_0x2487();return _0x3dc9=function(_0x3dc918,_0x174419){_0x3dc918=_0x3dc918-0xb3;var _0x2c3bbf=_0x2487f2[_0x3dc918];return _0x2c3bbf;},_0x3dc9(_0x36d1b8,_0x20c89c);}import{AIChatController as _0x4278fb}from'./aichatcontroller.js';import{AIEditing as _0x33aa20}from'../aicore/aiediting.js';import{AIChatUI as _0x58617e}from'./aichatui.js';import{AIChatHistory as _0x3657b9}from'../aichathistory/aichathistory.js';export class AIChat extends _0x10163c{static get[_0x74b1c7(0xb4)](){return[_0x4278fb,_0x33aa20,_0x58617e,_0x3657b9];}static get[_0x74b1c7(0xb7)](){var _0x4f8491=_0x74b1c7;return _0x4f8491(0xc1);}static get[_0x74b1c7(0xce)](){return!0x0;}static get[_0x74b1c7(0xc3)](){return!0x0;}constructor(_0x36bd47){var _0x3f187c=_0x74b1c7;super(_0x36bd47),this[_0x3f187c(0xb8)][_0x3f187c(0xbe)][_0x3f187c(0xc4)](_0x3f187c(0xbc),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3f187c(0xb8)][_0x3f187c(0xbe)][_0x3f187c(0xc4)](_0x3f187c(0xb9),_0x3f187c(0xcc));}async[_0x74b1c7(0xc7)](){var _0x578fca=_0x74b1c7;await this[_0x578fca(0xb8)][_0x578fca(0xc0)][_0x578fca(0xbb)](_0x4278fb)[_0x578fca(0xc7)]();}async[_0x74b1c7(0xb6)](){var _0x118309=_0x74b1c7;await this[_0x118309(0xb8)][_0x118309(0xc0)][_0x118309(0xbb)](_0x4278fb)[_0x118309(0xb6)]();}async[_0x74b1c7(0xca)]({message:_0x23e56f,attributes:_0x1d9570}){var _0x4b9979=_0x74b1c7;await this[_0x4b9979(0xb8)][_0x4b9979(0xc0)][_0x4b9979(0xbb)](_0x4278fb)[_0x4b9979(0xca)]({'message':_0x23e56f,'attributes':_0x1d9570});}[_0x74b1c7(0xb5)](){var _0x4d57c0=_0x74b1c7;this[_0x4d57c0(0xb8)][_0x4d57c0(0xc0)][_0x4d57c0(0xbb)](_0x4278fb)[_0x4d57c0(0xb5)]();}[_0x74b1c7(0xc2)](){var _0x38ab1a=_0x74b1c7;this[_0x38ab1a(0xb8)][_0x38ab1a(0xc0)][_0x38ab1a(0xbb)](_0x4278fb)[_0x38ab1a(0xc2)]();}[_0x74b1c7(0xba)](_0x39d408){var _0x3421db=_0x74b1c7;this[_0x3421db(0xb8)][_0x3421db(0xc0)][_0x3421db(0xbb)](_0x4278fb)[_0x3421db(0xbd)](_0x39d408);}}
|