@ckeditor/ckeditor5-ai 47.6.2-alpha.0 → 47.6.2-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
|
-
const
|
|
23
|
+
const _0x2fd3a6=_0x3eaf;function _0x3eaf(_0x567225,_0x14f6ba){const _0x2e8b67=_0x2e8b();return _0x3eaf=function(_0x3eaff9,_0x1ceff9){_0x3eaff9=_0x3eaff9-0xa8;let _0x35a069=_0x2e8b67[_0x3eaff9];return _0x35a069;},_0x3eaf(_0x567225,_0x14f6ba);}(function(_0x24af10,_0x82d9ad){const _0x48528b=_0x3eaf,_0x22448e=_0x24af10();while(!![]){try{const _0x1429c3=parseInt(_0x48528b(0xb9))/0x1+-parseInt(_0x48528b(0xc0))/0x2+-parseInt(_0x48528b(0xe5))/0x3*(-parseInt(_0x48528b(0xfd))/0x4)+parseInt(_0x48528b(0xbb))/0x5*(parseInt(_0x48528b(0xd8))/0x6)+-parseInt(_0x48528b(0xc4))/0x7+-parseInt(_0x48528b(0xfa))/0x8*(parseInt(_0x48528b(0xac))/0x9)+parseInt(_0x48528b(0xdb))/0xa*(parseInt(_0x48528b(0xb0))/0xb);if(_0x1429c3===_0x82d9ad)break;else _0x22448e['push'](_0x22448e['shift']());}catch(_0x10b4f9){_0x22448e['push'](_0x22448e['shift']());}}}(_0x2e8b,0x866d4));import{global as _0x18f84d}from'ckeditor5/src/utils.js';import{View as _0x4e412a,ButtonView as _0x13b7d7,SpinnerView as _0xc06601}from'ckeditor5/src/ui.js';import{IconCheck as _0xe392fa,IconCopy as _0x5149bb}from'ckeditor5/src/icons.js';function _0x2e8b(){const _0x202551=['ck-ai-form__content-area-wrapper','6454847ykXeLY','scrollTo','AI\x20is\x20writing...','focus','_copyHTMLToClipboard','ck-ai-form__content-area--processing','textContent','ClipboardItem','ck-hidden','div','lastElementChild','<span>]</span>','bindTemplate','loaderView','setEndBefore','setStartAfter','ck-content','position','ck-ai-form__content-field','ck-ai-form__loader','6gQzeeM','write','listenTo','1263170Djaiwt','remove','copyButtonView','text/plain','element','render','appendLoader','\x20ck-ai-form__copy-button--copied','_createCopyButton','isEnabled','11310xYeaix','mousedown','getSelection','appendChild','execCommand','change:isProcessing','absolute','isProcessing','removeAllRanges','execute','isVisible','ck-ai-form__content-area','ck-ai-form__copy-button','setTemplate','firstElementChild','scrollHeight','.ck-ai-form__loader','innerHTML','querySelector','class','text/html','86312yKptkS','value','wheel','644qkwLnX','setContent','change:value','-9999px','smooth','801MBspxs','ck-reset_all-excluded','createElement','clipboard','209lfAhoU','copy','set','ck-ai-form__copy-button-wrapper','locale','_createLoader','Copy','left','createRange','49891KacDgi','contentFieldView','2155645eQtPfA','bind','body','addRange','<span>[</span>','2110118PwPmrl','icon','style'];_0x2e8b=function(){return _0x202551;};return _0x2e8b();}import{getTranslation as _0x39dfe5}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x4e412a{[_0x2fd3a6(0xba)];[_0x2fd3a6(0xdd)];constructor(_0x4fc1ae,_0x438fd3=''){const _0x43ea5f=_0x2fd3a6;super(_0x4fc1ae),this[_0x43ea5f(0xb2)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x2517cd=this[_0x43ea5f(0xd0)];this[_0x43ea5f(0xba)]=new ContentFieldView(_0x4fc1ae,_0x438fd3),this[_0x43ea5f(0xdd)]=this[_0x43ea5f(0xe3)](),this[_0x43ea5f(0xf2)]({'tag':_0x43ea5f(0xcd),'attributes':{'class':['ck',_0x43ea5f(0xc3),_0x2517cd['if'](_0x43ea5f(0xef),_0x43ea5f(0xcc),_0x2d4f1e=>!_0x2d4f1e)],'tabindex':'-1'},'children':[{'tag':_0x43ea5f(0xcd),'attributes':{'class':['ck',_0x43ea5f(0xf0),_0x2517cd['if'](_0x43ea5f(0xec),_0x43ea5f(0xc9))]},'children':[this[_0x43ea5f(0xba)],{'tag':_0x43ea5f(0xcd),'attributes':{'class':['ck',_0x43ea5f(0xb3)]},'children':[this[_0x43ea5f(0xdd)]]}]}]});}[_0x2fd3a6(0xe0)](){const _0x49b613=_0x2fd3a6;super[_0x49b613(0xe0)](),this[_0x49b613(0xfb)]&&this[_0x49b613(0xba)][_0x49b613(0xa8)](this[_0x49b613(0xfb)]);let _0x21bc62=!0x1;this['on'](_0x49b613(0xa9),(_0x44d298,_0xde7f73,_0x33e54a)=>{const _0x15af0a=_0x49b613,_0x8cfbb1=!this[_0x15af0a(0xba)][_0x15af0a(0xdf)][_0x15af0a(0xf7)](_0x15af0a(0xf5));this[_0x15af0a(0xba)][_0x15af0a(0xa8)](_0x33e54a),this[_0x15af0a(0xec)]&&_0x8cfbb1&&!_0x21bc62&&this[_0x15af0a(0xdf)][_0x15af0a(0xc5)]({'top':this[_0x15af0a(0xdf)][_0x15af0a(0xf4)],'behavior':_0x15af0a(0xab)});}),this['on'](_0x49b613(0xea),(_0x188d25,_0x1c5d1e,_0x561126)=>{const _0x409f69=_0x49b613;_0x21bc62=!0x1,_0x561126?(this[_0x409f69(0xfb)]=null,this[_0x409f69(0xba)][_0x409f69(0xe1)]()):this[_0x409f69(0xfb)]||this[_0x409f69(0xba)][_0x409f69(0xa8)]('');}),this[_0x49b613(0xda)](this[_0x49b613(0xdf)],_0x49b613(0xfc),()=>{_0x21bc62=!0x0;}),this[_0x49b613(0xda)](this[_0x49b613(0xdf)],_0x49b613(0xe6),()=>{_0x21bc62=!0x0;});}[_0x2fd3a6(0xc7)](){const _0x549314=_0x2fd3a6;this[_0x549314(0xdf)][_0x549314(0xc7)]();}[_0x2fd3a6(0xe3)](){const _0x9f839c=_0x2fd3a6,_0x2bfe29=this[_0x9f839c(0xb4)],_0x23967f=new _0x13b7d7(this[_0x9f839c(0xb4)]),_0x115945=_0x9f839c(0xf1);return _0x23967f[_0x9f839c(0xb2)]({'label':_0x39dfe5(_0x2bfe29,_0x9f839c(0xb6)),'icon':_0x5149bb,'class':_0x115945,'tooltip':!0x0}),_0x23967f[_0x9f839c(0xbc)](_0x9f839c(0xef))['to'](this,_0x9f839c(0xfb),_0x5ed69b=>!!_0x5ed69b),_0x23967f[_0x9f839c(0xbc)](_0x9f839c(0xe4))['to'](this,_0x9f839c(0xec),_0xccbbae=>!_0xccbbae),_0x23967f['on'](_0x9f839c(0xee),()=>{const _0x12cb71=_0x9f839c;this[_0x12cb71(0xc8)](this[_0x12cb71(0xba)][_0x12cb71(0xdf)]),_0x23967f[_0x12cb71(0xc1)]=_0xe392fa,_0x23967f[_0x12cb71(0xf8)]=_0x115945+_0x12cb71(0xe2),this[_0x12cb71(0xc7)](),setTimeout(()=>{const _0x2388b0=_0x12cb71;_0x23967f[_0x2388b0(0xc1)]=_0x5149bb,_0x23967f[_0x2388b0(0xf8)]=_0x115945;},0x3e8);}),_0x23967f;}[_0x2fd3a6(0xc8)](_0x4ccd0b){const _0x5b37c6=_0x2fd3a6,{window:_0x4d733a,document:_0x3a713a}=_0x18f84d;if(_0x4d733a[_0x5b37c6(0xcb)]){const {Blob:_0x230b75,ClipboardItem:_0x20f9ed}=_0x4d733a,_0x4598ce=[new _0x20f9ed({'text/html':new _0x230b75([_0x4ccd0b[_0x5b37c6(0xf6)]],{'type':_0x5b37c6(0xf9)}),'text/plain':new _0x230b75([_0x4ccd0b[_0x5b37c6(0xca)]||''],{'type':_0x5b37c6(0xde)})})];navigator[_0x5b37c6(0xaf)][_0x5b37c6(0xd9)](_0x4598ce);}else{const _0xdf352a=_0x3a713a[_0x5b37c6(0xae)](_0x5b37c6(0xcd));_0xdf352a[_0x5b37c6(0xc2)][_0x5b37c6(0xd5)]=_0x5b37c6(0xeb),_0xdf352a[_0x5b37c6(0xc2)][_0x5b37c6(0xb7)]=_0x5b37c6(0xaa),_0xdf352a[_0x5b37c6(0xf6)]=_0x5b37c6(0xbf)+_0x4ccd0b[_0x5b37c6(0xf6)]+_0x5b37c6(0xcf),_0x3a713a[_0x5b37c6(0xbd)][_0x5b37c6(0xe8)](_0xdf352a);const _0x53f347=_0x3a713a[_0x5b37c6(0xb8)]();_0x53f347[_0x5b37c6(0xd3)](_0xdf352a[_0x5b37c6(0xf3)]),_0x53f347[_0x5b37c6(0xd2)](_0xdf352a[_0x5b37c6(0xce)]);const _0x12bf1c=_0x4d733a[_0x5b37c6(0xe7)]();_0x12bf1c[_0x5b37c6(0xed)](),_0x12bf1c[_0x5b37c6(0xbe)](_0x53f347),_0x3a713a[_0x5b37c6(0xe9)](_0x5b37c6(0xb1)),_0xdf352a[_0x5b37c6(0xdc)]();}}}export class ContentFieldView extends _0x4e412a{constructor(_0x2c1ce8,_0x8f435=''){const _0x8232b1=_0x2fd3a6;super(_0x2c1ce8),this[_0x8232b1(0xd1)]=this[_0x8232b1(0xb5)](),this[_0x8232b1(0xf2)]({'tag':_0x8232b1(0xcd),'attributes':{'class':['ck',_0x8232b1(0xd4),_0x8f435,_0x8232b1(0xad),_0x8232b1(0xd6)]}});}[_0x2fd3a6(0xa8)](_0x370065){const _0x1ae6f4=_0x2fd3a6;this[_0x1ae6f4(0xdf)][_0x1ae6f4(0xf6)]=_0x370065;}[_0x2fd3a6(0xe1)](){const _0x12d0de=_0x2fd3a6;this[_0x12d0de(0xdf)][_0x12d0de(0xe8)](this[_0x12d0de(0xd1)][_0x12d0de(0xdf)]);}[_0x2fd3a6(0xb5)](){const _0x5b1ca2=_0x2fd3a6,_0x1d2556=new _0x4e412a(),_0x29a27e=this[_0x5b1ca2(0xb4)],_0x3b16cb=new _0xc06601();return _0x3b16cb[_0x5b1ca2(0xef)]=!0x0,_0x1d2556[_0x5b1ca2(0xf2)]({'tag':_0x5b1ca2(0xcd),'attributes':{'class':['ck',_0x5b1ca2(0xd7)]},'children':[_0x3b16cb,{'text':_0x39dfe5(_0x29a27e,_0x5b1ca2(0xc6))}]}),_0x1d2556[_0x5b1ca2(0xe0)](),_0x1d2556;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x82de26,_0x44a5e3){const _0x44c974=_0x5376,_0x4b255a=_0x82de26();while(!![]){try{const _0x228deb=-parseInt(_0x44c974(0xda))/0x1+-parseInt(_0x44c974(0xe4))/0x2+parseInt(_0x44c974(0xd8))/0x3+parseInt(_0x44c974(0xd6))/0x4*(-parseInt(_0x44c974(0xd4))/0x5)+parseInt(_0x44c974(0xe1))/0x6*(parseInt(_0x44c974(0xe0))/0x7)+-parseInt(_0x44c974(0xdc))/0x8+parseInt(_0x44c974(0xdd))/0x9*(parseInt(_0x44c974(0xde))/0xa);if(_0x228deb===_0x44a5e3)break;else _0x4b255a['push'](_0x4b255a['shift']());}catch(_0x573d62){_0x4b255a['push'](_0x4b255a['shift']());}}}(_0x45cf,0xc78d6));import{IconError as _0x58c0bd}from'ckeditor5/src/icons.js';function _0x5376(_0x4bc21f,_0x22061e){const _0x45cfcf=_0x45cf();return _0x5376=function(_0x537627,_0x22822e){_0x537627=_0x537627-0xd4;let _0x26574f=_0x45cfcf[_0x537627];return _0x26574f;},_0x5376(_0x4bc21f,_0x22061e);}import{View as _0x393d39,IconView as _0x1d4359}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x393d39{constructor(_0x1b9a3f,_0x1305c2=''){const _0x35abd7=_0x5376;super(_0x1b9a3f);const _0x3ee175=new _0x1d4359(),_0x53d02d=this[_0x35abd7(0xe2)];this[_0x35abd7(0xdb)](_0x35abd7(0xd5),_0x1305c2),_0x3ee175[_0x35abd7(0xdf)]=_0x58c0bd,this[_0x35abd7(0xd9)]({'tag':_0x35abd7(0xe3),'attributes':{'class':['ck',_0x35abd7(0xd7)]},'children':[_0x3ee175,{'text':_0x53d02d['to'](_0x35abd7(0xd5))}]});}}function _0x45cf(){const _0x279f49=['set','1929480vWBGPJ','12443607noSvdX','10hUYqoJ','content','1099noJIdQ','3012fzOWvn','bindTemplate','div','2303516QylVsj','35IzymWu','text','15116GHzfZz','ck-ai-form__error','4574145GaNDdQ','setTemplate','749390RklcHj'];_0x45cf=function(){return _0x279f49;};return _0x45cf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4d87(_0x42358b,_0x595cb1){const _0x43edf7=_0x43ed();return _0x4d87=function(_0x4d87c0,_0x49b028){_0x4d87c0=_0x4d87c0-0x9e;let _0x55c6f5=_0x43edf7[_0x4d87c0];return _0x55c6f5;},_0x4d87(_0x42358b,_0x595cb1);}const _0x3e414b=_0x4d87;(function(_0x3b31a3,_0x116c25){const _0x3084cb=_0x4d87,_0x4505fb=_0x3b31a3();while(!![]){try{const _0x481b3e=-parseInt(_0x3084cb(0xc9))/0x1*(parseInt(_0x3084cb(0xb9))/0x2)+parseInt(_0x3084cb(0xd4))/0x3+-parseInt(_0x3084cb(0xd5))/0x4+-parseInt(_0x3084cb(0xd6))/0x5*(-parseInt(_0x3084cb(0xb0))/0x6)+-parseInt(_0x3084cb(0x9e))/0x7*(parseInt(_0x3084cb(0xb5))/0x8)+-parseInt(_0x3084cb(0xbd))/0x9+parseInt(_0x3084cb(0xbc))/0xa;if(_0x481b3e===_0x116c25)break;else _0x4505fb['push'](_0x4505fb['shift']());}catch(_0x49a423){_0x4505fb['push'](_0x4505fb['shift']());}}}(_0x43ed,0x1b086));function _0x43ed(){const _0x11c221=['119TEMFSS','ck-ai-form__toggle-history','submit','element','update','fire','keystrokes','isOn','isVisible','rtl','excludeScrollbarsAndBorders','maxRows','render','focusFirst','ck-ai-form__submit','focusCycler','isEmpty','enter','228270RjMzuW','minRows','Submit','focusableChildren','_createSubmitButton','54424RHpaTC','showHistoryButtonView','left','requestAnimationFrame','1070fpxDDV','resultsView','value','5269420bHEYOL','1138500ECXmMd','window','style','target','children','focusLast','width','submitButtonView','_createShowHistoryButton','uiLanguageDirection','fieldView','set','302GJShXi','filteredView','queryView','execute','bind','fieldWrapperChildren','isEnabled','History','right','focus','add','96738iCSRxu','331144FtAnXM','5gtuuJP','locale'];_0x43ed=function(){return _0x11c221;};return _0x43ed();}import{Rect as _0x33d2b8,global as _0x5c8dc1,isVisible as _0x510db4}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x553942,IconSubmit as _0x3c6b59}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2d3bd5,ButtonView as _0x235662}from'ckeditor5/src/ui.js';import{getTranslation as _0x4c8bd3}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2d3bd5{[_0x3e414b(0xc4)];[_0x3e414b(0xb6)];constructor(_0x425488,_0x5be26e){const _0x2b022e=_0x3e414b;super(_0x425488,_0x5be26e),this[_0x2b022e(0xcb)][_0x2b022e(0xc7)][_0x2b022e(0xb1)]=0x1,this[_0x2b022e(0xcb)][_0x2b022e(0xc7)][_0x2b022e(0xa9)]=0x3,this[_0x2b022e(0xc4)]=this[_0x2b022e(0xb4)](),this[_0x2b022e(0xb6)]=this[_0x2b022e(0xc5)](),this[_0x2b022e(0xb3)][_0x2b022e(0xd3)](this[_0x2b022e(0xb6)],0x1),this[_0x2b022e(0xb3)][_0x2b022e(0xd3)](this[_0x2b022e(0xc4)]);}[_0x3e414b(0xaa)](){const _0x240d21=_0x3e414b;super[_0x240d21(0xaa)](),this[_0x240d21(0xcb)][_0x240d21(0xce)][_0x240d21(0xd3)](this[_0x240d21(0xb6)]),this[_0x240d21(0xc1)][_0x240d21(0xd3)](this[_0x240d21(0xc4)]),this[_0x240d21(0xa4)][_0x240d21(0xc8)](_0x240d21(0xaf),(_0x89b649,_0x107861)=>{const _0x1c6ffa=_0x240d21;_0x89b649[_0x1c6ffa(0xc0)]==this[_0x1c6ffa(0xcb)][_0x1c6ffa(0xc7)][_0x1c6ffa(0xa1)]&&(this[_0x1c6ffa(0xa0)](),_0x107861());});}[_0x3e414b(0xb4)](){const _0x40e430=_0x3e414b,_0x52492e=new _0x235662(this[_0x40e430(0xd7)]),_0x23e2c0=this[_0x40e430(0xd7)];return _0x52492e[_0x40e430(0xc8)]({'icon':_0x3c6b59,'label':_0x4c8bd3(_0x23e2c0,_0x40e430(0xb2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x40e430(0xac)}),_0x52492e['on'](_0x40e430(0xcc),()=>{const _0x4c3025=_0x40e430;this[_0x4c3025(0xa0)]();}),_0x52492e[_0x40e430(0xcd)](_0x40e430(0xcf))['to'](this[_0x40e430(0xcb)][_0x40e430(0xc7)],_0x40e430(0xae),this,_0x40e430(0xcf),(_0xeabe9e,_0x5be60f)=>!_0xeabe9e&&_0x5be60f),_0x52492e;}[_0x3e414b(0xc5)](){const _0x206b63=_0x3e414b,_0x5ae8b4=new _0x235662(this[_0x206b63(0xd7)]),_0xfefd4f=this[_0x206b63(0xba)],_0x246696=this[_0x206b63(0xd7)];_0x5ae8b4[_0x206b63(0xc8)]({'label':_0x4c8bd3(_0x246696,_0x206b63(0xd0)),'withText':!0x1,'icon':_0x553942,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x206b63(0x9f)}),_0x5ae8b4[_0x206b63(0xcd)](_0x206b63(0xa5))['to'](_0xfefd4f,_0x206b63(0xa6)),_0x5ae8b4[_0x206b63(0xcd)](_0x206b63(0xcf))['to'](this,_0x206b63(0xcf)),_0x5ae8b4['on'](_0x206b63(0xcc),()=>{const _0x4bd5b1=_0x206b63;_0xfefd4f[_0x4bd5b1(0xa6)]=!_0xfefd4f[_0x4bd5b1(0xa6)],_0xfefd4f[_0x4bd5b1(0xa6)]?this[_0x4bd5b1(0xca)][_0x4bd5b1(0xd2)]():this[_0x4bd5b1(0xd2)]();});const _0x3c255e=()=>{const _0x4ef03d=_0x206b63;_0x5c8dc1[_0x4ef03d(0xbe)][_0x4ef03d(0xb8)](()=>{const _0x51625a=_0x4ef03d;if(_0x510db4(this[_0x51625a(0xa1)])){const _0x245383=new _0x33d2b8(this[_0x51625a(0xcb)][_0x51625a(0xc7)][_0x51625a(0xa1)]),_0xba8093=_0x245383[_0x51625a(0xc3)],_0x38bcff=_0x51625a(0xa7)===_0x246696[_0x51625a(0xc6)]?_0x51625a(0xb7):_0x51625a(0xd1);_0x245383[_0x51625a(0xa8)](),_0x5ae8b4[_0x51625a(0xa1)][_0x51625a(0xbf)][_0x38bcff]=_0xba8093-_0x245383[_0x51625a(0xc3)]+0x1+'px';}});};return this[_0x206b63(0xcb)][_0x206b63(0xc7)]['on'](_0x206b63(0xa2),_0x3c255e),this['on'](_0x206b63(0xaa),_0x3c255e),_0x5ae8b4;}[_0x3e414b(0xa0)](){const _0x46b7ab=_0x3e414b,_0x46482c=this[_0x46b7ab(0xcb)][_0x46b7ab(0xc7)][_0x46b7ab(0xa1)][_0x46b7ab(0xbb)];this[_0x46b7ab(0xa3)](_0x46b7ab(0xa0),_0x46482c);}[_0x3e414b(0xd2)](_0x39ae29){const _0x2add05=_0x3e414b;-0x1===_0x39ae29?this[_0x2add05(0xad)][_0x2add05(0xc2)]():this[_0x2add05(0xad)][_0x2add05(0xab)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x169c96=_0x2b25;(function(_0x3e735c,_0x37b7aa){const _0x1f6058=_0x2b25,_0x1a0061=_0x3e735c();while(!![]){try{const _0x409cb7=parseInt(_0x1f6058(0x19a))/0x1*(-parseInt(_0x1f6058(0x19e))/0x2)+-parseInt(_0x1f6058(0x1a6))/0x3+parseInt(_0x1f6058(0x1b0))/0x4+-parseInt(_0x1f6058(0x1a4))/0x5*(-parseInt(_0x1f6058(0x1b7))/0x6)+-parseInt(_0x1f6058(0x19c))/0x7*(-parseInt(_0x1f6058(0x1a9))/0x8)+-parseInt(_0x1f6058(0x1a1))/0x9*(parseInt(_0x1f6058(0x19b))/0xa)+parseInt(_0x1f6058(0x1a5))/0xb;if(_0x409cb7===_0x37b7aa)break;else _0x1a0061['push'](_0x1a0061['shift']());}catch(_0x2adb36){_0x1a0061['push'](_0x1a0061['shift']());}}}(_0x4409,0x34592));function _0x4409(){const _0x318f92=['Insert\x20below','656936yZzIzf','items','REPLACE','set','insertButton','label','_createButton','238708IAfDPf','ck-hidden','extendTemplate','_CONTENT','locale','Stop','isVisible','6QlSKCY','replace','stopButton','mainAction','addMany','AI_','tryAgainButton','ck-button-action','Try\x20again','1pkkRjZ','1490SzumDH','7CkRooV','insert','774120ZwCxll','ck-ai-form__toolbar','bind','7659FuDCXs','bindTemplate','replaceButton','1801260aImTBM','4914481qFmoAe','661620mEjzHZ','toUpperCase'];_0x4409=function(){return _0x318f92;};return _0x4409();}import{ToolbarView as _0x1cc93e,ButtonView as _0x543347}from'ckeditor5/src/ui.js';function _0x2b25(_0x544869,_0x1fc585){const _0x440929=_0x4409();return _0x2b25=function(_0x2b253a,_0x4c647d){_0x2b253a=_0x2b253a-0x197;let _0x12265d=_0x440929[_0x2b253a];return _0x12265d;},_0x2b25(_0x544869,_0x1fc585);}import{getTranslation as _0x3fee87}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x169c96(0x1b8),'INSERT':_0x169c96(0x19d)};export class AIFormToolbarView extends _0x1cc93e{constructor(_0x47d1b7){const _0x1f6508=_0x169c96;super(_0x47d1b7),this[_0x1f6508(0x1ac)](_0x1f6508(0x1b6),!0x1),this[_0x1f6508(0x1ac)](_0x1f6508(0x1ba),AIFormToolbarViewMainActionLabel[_0x1f6508(0x1ab)]),this[_0x1f6508(0x1a3)]=this[_0x1f6508(0x1af)]('',_0x1f6508(0x198)),this[_0x1f6508(0x1a3)][_0x1f6508(0x1a0)](_0x1f6508(0x1ae))['to'](this,_0x1f6508(0x1ba),_0x1fbc5e=>_0x3fee87(_0x47d1b7,_0x1f6508(0x1bc)+_0x1fbc5e[_0x1f6508(0x1a7)]()+_0x1f6508(0x1b3))),this[_0x1f6508(0x1ad)]=this[_0x1f6508(0x1af)](_0x3fee87(_0x47d1b7,_0x1f6508(0x1a8))),this[_0x1f6508(0x197)]=this[_0x1f6508(0x1af)](_0x3fee87(_0x47d1b7,_0x1f6508(0x199))),this[_0x1f6508(0x1b9)]=this[_0x1f6508(0x1af)](_0x3fee87(_0x47d1b7,_0x1f6508(0x1b5)));const _0xdf7fd0=this[_0x1f6508(0x1a2)];this[_0x1f6508(0x1b2)]({'attributes':{'class':[_0x1f6508(0x19f),_0xdf7fd0['if'](_0x1f6508(0x1b6),_0x1f6508(0x1b1),_0x5d773b=>!_0x5d773b)]}}),this[_0x1f6508(0x1aa)][_0x1f6508(0x1bb)]([this[_0x1f6508(0x1a3)],this[_0x1f6508(0x1ad)],this[_0x1f6508(0x197)],this[_0x1f6508(0x1b9)]]);}[_0x169c96(0x1af)](_0x2aa929,_0x13348f){const _0x2e945e=_0x169c96,_0x3df3d0=new _0x543347(this[_0x2e945e(0x1b4)]);return _0x3df3d0[_0x2e945e(0x1ac)]({'label':_0x2aa929,'class':_0x13348f||'','isVisible':!0x0,'withText':!0x0}),_0x3df3d0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3a0c(_0x19373f,_0x281c28){const _0x69fa66=_0x69fa();return _0x3a0c=function(_0x3a0ca0,_0x39fd4a){_0x3a0ca0=_0x3a0ca0-0x106;let _0x4bb0a6=_0x69fa66[_0x3a0ca0];return _0x4bb0a6;},_0x3a0c(_0x19373f,_0x281c28);}const _0x4734ae=_0x3a0c;(function(_0x240b96,_0x1889b6){const _0x1a8429=_0x3a0c,_0x3e3712=_0x240b96();while(!![]){try{const _0x427f24=parseInt(_0x1a8429(0x136))/0x1*(parseInt(_0x1a8429(0x110))/0x2)+-parseInt(_0x1a8429(0x150))/0x3+-parseInt(_0x1a8429(0x14c))/0x4+-parseInt(_0x1a8429(0x109))/0x5+parseInt(_0x1a8429(0x11a))/0x6*(parseInt(_0x1a8429(0x113))/0x7)+parseInt(_0x1a8429(0x107))/0x8*(-parseInt(_0x1a8429(0x112))/0x9)+-parseInt(_0x1a8429(0x154))/0xa*(-parseInt(_0x1a8429(0x135))/0xb);if(_0x427f24===_0x1889b6)break;else _0x3e3712['push'](_0x3e3712['shift']());}catch(_0x45ef8b){_0x3e3712['push'](_0x3e3712['shift']());}}}(_0x69fa,0xb0a33));import{FocusTracker as _0x38a312,KeystrokeHandler as _0x219006}from'ckeditor5/src/utils.js';import{View as _0x5b51df,FocusCycler as _0x5e6cae,createLabeledTextarea as _0x51dc1f}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xab59c0,AIFormToolbarViewMainActionLabel as _0xee484}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5504d6}from'./aiformcontentarea.js';import{AIFormErrorView as _0x5cd0a4}from'./aiformerrorview.js';import{AIFormPromptView as _0x11cdc8}from'./aiformpromptview.js';import{AIHistoryListView as _0x366ad0}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x55654f}from'./aihistorylistitemview.js';import{PromptHistory as _0x22beee}from'./prompthistory.js';function _0x69fa(){const _0x2902cb=['finishProcessing','prompt','trim','mainAction','promptView','insertButton','fire','fieldView','copyButtonView','2510108jpQBbN','Empty\x20history','element','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','536712XjNBMw','_createToolbar','delegate','focusTracker','463510kZISOz','chain','Ask\x20AI\x20to\x20edit\x20or\x20generate','Ask\x20AI\x20to\x20improve\x20generated\x20text','submit','REPLACE','handleError','createCollection','clearHistory','8eKoHkC','isProcessing','2000975FXOIuk','focusCycler','ck-ai-form-content','submitPrompt','tryAgainButton','isVisible','stopButton','2fJAppL','toolbar','11780982DCYHhX','229306FbZzla','ck-hidden','render','bindTo','stopProcessing','ck-ai-form','execute','174XgMbps','_promptHistory','div','replaceContent','items','errorView','add','listenTo','_createHistoryView','reset','isEnabled','bind','bindTemplate','clear','tab','isError','queryView','set','tryAgainEvent','focusLast','text','setTemplate','label','focus','focusFirst','historyGroupView','contentArea','231FdRwMb','1315778BUmipn','value','search','startProcessing','_createPromptView','keystrokes','insertContentBelow','_focusables','shift\x20+\x20tab','AI_ERROR_FAILED','locale','replaceButton','high'];_0x69fa=function(){return _0x2902cb;};return _0x69fa();}import{getTranslation as _0x2b463c}from'../../utils/common-translations.js';import{escape as _0x580155}from'es-toolkit/compat';export class AIFormView extends _0x5b51df{[_0x4734ae(0x153)];[_0x4734ae(0x13b)];[_0x4734ae(0x134)];[_0x4734ae(0x111)];[_0x4734ae(0x147)];[_0x4734ae(0x11f)];[_0x4734ae(0x13d)];[_0x4734ae(0x10a)];[_0x4734ae(0x11b)];constructor(_0x1e381f,_0x479cf6,_0x474ab9=''){const _0x4cefaa=_0x4734ae;super(_0x1e381f),this[_0x4cefaa(0x12b)](_0x4cefaa(0x124),!0x0),this[_0x4cefaa(0x12b)](_0x4cefaa(0x108),!0x1),this[_0x4cefaa(0x12b)](_0x4cefaa(0x144),''),this[_0x4cefaa(0x12b)](_0x4cefaa(0x137),''),this[_0x4cefaa(0x12b)](_0x4cefaa(0x129),!0x1),this[_0x4cefaa(0x12b)](_0x4cefaa(0x146),_0xee484[_0x4cefaa(0x159)]),this[_0x4cefaa(0x11b)]=new _0x22beee(),this[_0x4cefaa(0x11f)]=new _0x5cd0a4(_0x1e381f),this[_0x4cefaa(0x134)]=new _0x5504d6(_0x1e381f,_0x474ab9),this[_0x4cefaa(0x134)][_0x4cefaa(0x125)](_0x4cefaa(0x108))['to'](this),this[_0x4cefaa(0x134)][_0x4cefaa(0x125)](_0x4cefaa(0x137))['to'](this),this[_0x4cefaa(0x111)]=this[_0x4cefaa(0x151)](),this[_0x4cefaa(0x111)][_0x4cefaa(0x125)](_0x4cefaa(0x146))['to'](this),this[_0x4cefaa(0x147)]=this[_0x4cefaa(0x13a)](),this[_0x4cefaa(0x153)]=new _0x38a312(),this[_0x4cefaa(0x13b)]=new _0x219006(),this[_0x4cefaa(0x13d)]=this[_0x4cefaa(0x15b)]([this[_0x4cefaa(0x134)],this[_0x4cefaa(0x134)][_0x4cefaa(0x14b)],this[_0x4cefaa(0x111)],this[_0x4cefaa(0x147)]]),this[_0x4cefaa(0x10a)]=new _0x5e6cae({'focusables':this[_0x4cefaa(0x13d)],'focusTracker':this[_0x4cefaa(0x153)],'keystrokeHandler':this[_0x4cefaa(0x13b)],'actions':{'focusPrevious':_0x4cefaa(0x13e),'focusNext':_0x4cefaa(0x128)}}),this[_0x4cefaa(0x10a)][_0x4cefaa(0x155)](this[_0x4cefaa(0x147)][_0x4cefaa(0x10a)]),this[_0x4cefaa(0x147)][_0x4cefaa(0x12a)][_0x4cefaa(0x14a)][_0x4cefaa(0x125)](_0x4cefaa(0x137))['to'](this,_0x4cefaa(0x144));const _0x5b6329=this[_0x4cefaa(0x126)];this[_0x4cefaa(0x12f)]({'tag':_0x4cefaa(0x11c),'attributes':{'class':['ck',_0x4cefaa(0x118),_0x479cf6],'tabindex':'-1'},'children':[{'tag':_0x4cefaa(0x11c),'attributes':{'class':['ck',_0x4cefaa(0x10b)]},'children':[{'tag':_0x4cefaa(0x11c),'attributes':{'class':[_0x5b6329['if'](_0x4cefaa(0x129),_0x4cefaa(0x114),_0x13afa6=>!_0x13afa6)]},'children':[this[_0x4cefaa(0x11f)]]},this[_0x4cefaa(0x134)],this[_0x4cefaa(0x111)],this[_0x4cefaa(0x147)]]}]});}[_0x4734ae(0x115)](){const _0x4798b2=_0x4734ae;super[_0x4798b2(0x115)](),this[_0x4798b2(0x153)][_0x4798b2(0x120)](this[_0x4798b2(0x134)][_0x4798b2(0x14e)]),this[_0x4798b2(0x153)][_0x4798b2(0x120)](this[_0x4798b2(0x134)][_0x4798b2(0x14b)][_0x4798b2(0x14e)]),this[_0x4798b2(0x153)][_0x4798b2(0x120)](this[_0x4798b2(0x111)][_0x4798b2(0x14e)]),this[_0x4798b2(0x153)][_0x4798b2(0x120)](this[_0x4798b2(0x147)][_0x4798b2(0x14e)]),this[_0x4798b2(0x13b)][_0x4798b2(0x121)](this[_0x4798b2(0x14e)]);}[_0x4734ae(0x131)](_0x1abaca=0x1){const _0x1f241d=_0x4734ae;-0x1===_0x1abaca?this[_0x1f241d(0x10a)][_0x1f241d(0x12d)]():this[_0x1f241d(0x10a)][_0x1f241d(0x132)]();}[_0x4734ae(0x123)](){const _0x314b82=_0x4734ae;this[_0x314b82(0x144)]='',this[_0x314b82(0x137)]='',this[_0x314b82(0x129)]=!0x1,this[_0x314b82(0x147)][_0x314b82(0x123)](),this[_0x314b82(0x134)][_0x314b82(0x10e)]=!0x1,this[_0x314b82(0x111)][_0x314b82(0x10e)]=!0x1;}[_0x4734ae(0x13a)](){const _0x37d39b=_0x4734ae,_0x13b94e=this[_0x37d39b(0x140)],_0x43eb4b=new _0x11cdc8(_0x13b94e,{'queryView':{'label':_0x2b463c(_0x13b94e,_0x37d39b(0x156)),'creator':_0x51dc1f,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2b463c(_0x13b94e,_0x37d39b(0x14d)),'secondary':_0x2b463c(_0x13b94e,_0x37d39b(0x14f))}}},'filteredView':this[_0x37d39b(0x122)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x43eb4b[_0x37d39b(0x125)](_0x37d39b(0x124))['to'](this,_0x37d39b(0x124),this,_0x37d39b(0x108),(_0x484fae,_0x374ad6)=>_0x484fae&&!_0x374ad6),this[_0x37d39b(0x121)](_0x43eb4b,_0x37d39b(0x158),(_0x42f970,_0xb16bf8)=>{const _0xf92dc7=_0x37d39b;this[_0xf92dc7(0x144)]=_0xb16bf8;const _0x5b8cbc=_0x580155(_0xb16bf8);this[_0xf92dc7(0x149)](_0xf92dc7(0x10c),_0x5b8cbc),_0xb16bf8[_0xf92dc7(0x145)]()&&this[_0xf92dc7(0x11b)][_0xf92dc7(0x120)]({'prompt':_0x5b8cbc},0x0);},{'priority':_0x37d39b(0x142)}),_0x43eb4b;}[_0x4734ae(0x122)](){const _0x2590cb=_0x4734ae,_0x575e63=new _0x366ad0(this[_0x2590cb(0x140)]);return _0x575e63[_0x2590cb(0x133)][_0x2590cb(0x11e)][_0x2590cb(0x116)](this[_0x2590cb(0x11b)])['as'](_0x55654f),_0x575e63['on'](_0x2590cb(0x106),()=>{const _0x3ccee6=_0x2590cb;this[_0x3ccee6(0x11b)][_0x3ccee6(0x127)](),this[_0x3ccee6(0x147)][_0x3ccee6(0x138)](''),this[_0x3ccee6(0x147)][_0x3ccee6(0x131)]();}),_0x575e63;}[_0x4734ae(0x151)](){const _0xc0c13b=_0x4734ae,_0x191814=new _0xab59c0(this[_0xc0c13b(0x140)]);return _0x191814[_0xc0c13b(0x141)][_0xc0c13b(0x125)](_0xc0c13b(0x124))['to'](this,_0xc0c13b(0x124),this,_0xc0c13b(0x108),this,_0xc0c13b(0x137),(_0x45dedb,_0x2b2f01,_0x11bc07)=>_0x45dedb&&!_0x2b2f01&&!!_0x11bc07),_0x191814[_0xc0c13b(0x141)][_0xc0c13b(0x152)](_0xc0c13b(0x119))['to'](this,_0xc0c13b(0x11d)),_0x191814[_0xc0c13b(0x148)][_0xc0c13b(0x125)](_0xc0c13b(0x124))['to'](this,_0xc0c13b(0x124),this,_0xc0c13b(0x108),this,_0xc0c13b(0x137),(_0x58f419,_0x4fa624,_0x3b3898)=>_0x58f419&&!_0x4fa624&&!!_0x3b3898),_0x191814[_0xc0c13b(0x148)][_0xc0c13b(0x152)](_0xc0c13b(0x119))['to'](this,_0xc0c13b(0x13c)),_0x191814[_0xc0c13b(0x10d)][_0xc0c13b(0x125)](_0xc0c13b(0x124))['to'](this,_0xc0c13b(0x124),this,_0xc0c13b(0x108),(_0x65c4db,_0x485bd2)=>_0x65c4db&&!_0x485bd2),_0x191814[_0xc0c13b(0x10d)][_0xc0c13b(0x152)](_0xc0c13b(0x119))['to'](this,_0xc0c13b(0x12c)),_0x191814[_0xc0c13b(0x10f)][_0xc0c13b(0x125)](_0xc0c13b(0x124))['to'](this,_0xc0c13b(0x108)),_0x191814[_0xc0c13b(0x10f)][_0xc0c13b(0x152)](_0xc0c13b(0x119))['to'](this,_0xc0c13b(0x117)),_0x191814;}[_0x4734ae(0x139)](){const _0x12e6bd=_0x4734ae;this[_0x12e6bd(0x137)]='',this[_0x12e6bd(0x129)]=!0x1,this[_0x12e6bd(0x108)]=!0x0,this[_0x12e6bd(0x134)][_0x12e6bd(0x10e)]=!0x0,this[_0x12e6bd(0x111)][_0x12e6bd(0x10e)]=!0x0,this[_0x12e6bd(0x134)][_0x12e6bd(0x131)]();}[_0x4734ae(0x143)](){const _0x5da138=_0x4734ae,_0x250219=this[_0x5da138(0x140)];this[_0x5da138(0x108)]=!0x1,this[_0x5da138(0x144)]='',this[_0x5da138(0x147)][_0x5da138(0x123)](),this[_0x5da138(0x137)]&&(this[_0x5da138(0x147)][_0x5da138(0x12a)][_0x5da138(0x130)]=_0x2b463c(_0x250219,_0x5da138(0x157)));}[_0x4734ae(0x15a)](_0x2e14b1){const _0x44fa38=_0x4734ae,_0x3d182f=this[_0x44fa38(0x140)];this[_0x44fa38(0x143)](),this[_0x44fa38(0x129)]=!0x0,this[_0x44fa38(0x11f)][_0x44fa38(0x12e)]=_0x2e14b1||_0x2b463c(_0x3d182f,_0x44fa38(0x13f)),this[_0x44fa38(0x137)]||(this[_0x44fa38(0x134)][_0x44fa38(0x10e)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x15f445,_0x586ff1){const _0x33b51e=_0x559a,_0x49dec7=_0x15f445();while(!![]){try{const _0x2a2fec=parseInt(_0x33b51e(0xb4))/0x1*(-parseInt(_0x33b51e(0xb3))/0x2)+-parseInt(_0x33b51e(0xae))/0x3+parseInt(_0x33b51e(0xac))/0x4*(parseInt(_0x33b51e(0xb5))/0x5)+-parseInt(_0x33b51e(0xaf))/0x6*(-parseInt(_0x33b51e(0xab))/0x7)+-parseInt(_0x33b51e(0xa8))/0x8*(-parseInt(_0x33b51e(0xb2))/0x9)+parseInt(_0x33b51e(0xb6))/0xa+-parseInt(_0x33b51e(0xa9))/0xb*(-parseInt(_0x33b51e(0xb7))/0xc);if(_0x2a2fec===_0x586ff1)break;else _0x49dec7['push'](_0x49dec7['shift']());}catch(_0x4a7951){_0x49dec7['push'](_0x49dec7['shift']());}}}(_0x58d4,0x7b33a));function _0x559a(_0x283659,_0x27135d){const _0x58d401=_0x58d4();return _0x559a=function(_0x559a2b,_0x158918){_0x559a2b=_0x559a2b-0xa6;let _0x51cf25=_0x58d401[_0x559a2b];return _0x51cf25;},_0x559a(_0x283659,_0x27135d);}function _0x58d4(){const _0x2598c8=['7336wAlTRj','63196xmKNnu','locale','1071957nkVCEO','1914zyUSch','set','fire','27549QgUBxM','32222QJxKaR','34ynolGk','35IMhZYS','123790dvgUBL','372mGacdv','prompt','add','children','280ASdybr','299948hRUQWD','execute'];_0x58d4=function(){return _0x2598c8;};return _0x58d4();}import{ListItemView as _0x51554e,ButtonView as _0x19f2d7,ButtonLabelView as _0x2c18e7}from'ckeditor5/src/ui.js';import{unescape as _0x1a91b8}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x51554e{constructor(_0x21dd1c){const _0x65bb9=_0x559a;super();const _0x11e2cd=new _0x2c18e7(),_0x30e10f=new _0x19f2d7(this[_0x65bb9(0xad)],_0x11e2cd);this[_0x65bb9(0xa7)][_0x65bb9(0xa6)](_0x30e10f),_0x30e10f[_0x65bb9(0xb0)]({'label':_0x21dd1c[_0x65bb9(0xb8)],'withText':!0x0}),_0x30e10f['on'](_0x65bb9(0xaa),()=>{const _0x3467e5=_0x65bb9;this[_0x3467e5(0xb1)](_0x3467e5(0xaa),{'value':_0x1a91b8(_0x21dd1c[_0x3467e5(0xb8)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3291(_0x442075,_0x1df705){const _0x13b124=_0x13b1();return _0x3291=function(_0x329106,_0x2cdef1){_0x329106=_0x329106-0x1e0;let _0x518d19=_0x13b124[_0x329106];return _0x518d19;},_0x3291(_0x442075,_0x1df705);}const _0x24b2cc=_0x3291;function _0x13b1(){const _0x4ac103=['5250465WoJsRQ','locale','11KYdtKK','11368edfdZj','6KaSAsr','232919DPMWcU','length','4558000sKdxmt','1918bmsFAR','children','Prompt\x20history','Clear','4110420EAHvwT','filter','items','delegate','clearHistoryButton','add','historyGroupView','set','38757DBSALK','12eAUAgC','2245668JyWdqq','_createClearHistoryButton','execute','fire','label','10shQode','clearHistory'];_0x13b1=function(){return _0x4ac103;};return _0x13b1();}(function(_0x58f775,_0x59807c){const _0x3157b5=_0x3291,_0x29a91c=_0x58f775();while(!![]){try{const _0x50ccde=-parseInt(_0x3157b5(0x1ee))/0x1*(parseInt(_0x3157b5(0x1ed))/0x2)+-parseInt(_0x3157b5(0x1e0))/0x3*(-parseInt(_0x3157b5(0x1e1))/0x4)+-parseInt(_0x3157b5(0x1e7))/0x5*(-parseInt(_0x3157b5(0x1e2))/0x6)+parseInt(_0x3157b5(0x1f1))/0x7*(-parseInt(_0x3157b5(0x1ec))/0x8)+parseInt(_0x3157b5(0x1e9))/0x9+parseInt(_0x3157b5(0x1f0))/0xa+parseInt(_0x3157b5(0x1eb))/0xb*(-parseInt(_0x3157b5(0x1f5))/0xc);if(_0x50ccde===_0x59807c)break;else _0x29a91c['push'](_0x29a91c['shift']());}catch(_0x5991bb){_0x29a91c['push'](_0x29a91c['shift']());}}}(_0x13b1,0x60a4c));import{ListView as _0x245cc9,ListItemGroupView as _0x7001d,ButtonView as _0x22c4c1}from'ckeditor5/src/ui.js';import{getTranslation as _0x18e3c3}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x245cc9{[_0x24b2cc(0x1fb)];[_0x24b2cc(0x1f9)];constructor(_0x2786b3){const _0x1bf29d=_0x24b2cc;super(_0x2786b3),this[_0x1bf29d(0x1f9)]=this[_0x1bf29d(0x1e3)](),this[_0x1bf29d(0x1fb)]=new _0x7001d(),this[_0x1bf29d(0x1fb)][_0x1bf29d(0x1f2)][_0x1bf29d(0x1fa)](this[_0x1bf29d(0x1f9)],0x1),this[_0x1bf29d(0x1fb)][_0x1bf29d(0x1e6)]=_0x18e3c3(_0x2786b3,_0x1bf29d(0x1f3)),this[_0x1bf29d(0x1fb)][_0x1bf29d(0x1f7)][_0x1bf29d(0x1f8)](_0x1bf29d(0x1e4))['to'](this),this[_0x1bf29d(0x1f7)][_0x1bf29d(0x1fa)](this[_0x1bf29d(0x1fb)]);}[_0x24b2cc(0x1f6)](){const _0x3dbfa7=_0x24b2cc;let _0x5f41a0=0x0;for(const _0x23778a of this[_0x3dbfa7(0x1f7)])_0x5f41a0+=_0x23778a[_0x3dbfa7(0x1f7)][_0x3dbfa7(0x1ef)];return{'resultsCount':_0x5f41a0,'totalItemsCount':_0x5f41a0};}[_0x24b2cc(0x1e3)](){const _0x50a865=_0x24b2cc,_0x2b69f0=this[_0x50a865(0x1ea)],_0x258c11=new _0x22c4c1(this[_0x50a865(0x1ea)]);return _0x258c11[_0x50a865(0x1fc)]({'label':'('+_0x18e3c3(_0x2b69f0,_0x50a865(0x1f4))+')','withText':!0x0}),_0x258c11['on'](_0x50a865(0x1e4),()=>this[_0x50a865(0x1e5)](_0x50a865(0x1e8))),_0x258c11;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f52e9=_0x18e9;(function(_0x1dbba9,_0x4d46c7){const _0x227590=_0x18e9,_0x2b502a=_0x1dbba9();while(!![]){try{const _0x12a7e8=-parseInt(_0x227590(0x11d))/0x1+parseInt(_0x227590(0x118))/0x2+-parseInt(_0x227590(0x12c))/0x3*(parseInt(_0x227590(0x120))/0x4)+-parseInt(_0x227590(0x12e))/0x5*(parseInt(_0x227590(0x115))/0x6)+parseInt(_0x227590(0x129))/0x7*(parseInt(_0x227590(0x122))/0x8)+parseInt(_0x227590(0x12a))/0x9*(-parseInt(_0x227590(0x121))/0xa)+parseInt(_0x227590(0x124))/0xb*(parseInt(_0x227590(0x116))/0xc);if(_0x12a7e8===_0x4d46c7)break;else _0x2b502a['push'](_0x2b502a['shift']());}catch(_0x3f3201){_0x2b502a['push'](_0x2b502a['shift']());}}}(_0x313e,0xa5786));import{Collection as _0x501f8e}from'ckeditor5/src/utils.js';function _0x18e9(_0x4d3b58,_0x48a84e){const _0x313ea2=_0x313e();return _0x18e9=function(_0x18e90c,_0x45a7ca){_0x18e90c=_0x18e90c-0x114;let _0x8fc871=_0x313ea2[_0x18e90c];return _0x8fc871;},_0x18e9(_0x4d3b58,_0x48a84e);}const So=_0x5f52e9(0x114);export class PromptHistory extends _0x501f8e{constructor(){const _0x1cc596=_0x5f52e9;super(),this[_0x1cc596(0x123)](),this['on'](_0x1cc596(0x12d),(_0x32062f,_0x4d785d)=>{const _0x5d1745=_0x1cc596,_0x52d7d8=go(_0x4d785d[_0x5d1745(0x126)]);for(const _0x12aba1 of this)if(_0x12aba1!=_0x4d785d&&go(_0x12aba1[_0x5d1745(0x126)])===_0x52d7d8){this[_0x5d1745(0x11f)](_0x12aba1);break;}this[_0x5d1745(0x12b)]>0x14&&this[_0x5d1745(0x11f)](this[_0x5d1745(0x125)]),this[_0x5d1745(0x11b)]();}),this['on'](_0x1cc596(0x11f),()=>{const _0x32a1ac=_0x1cc596;this[_0x32a1ac(0x11b)]();});}[_0x5f52e9(0x123)](){const _0x1037c2=_0x5f52e9,_0x560046=sessionStorage[_0x1037c2(0x128)](So)||'[]';this[_0x1037c2(0x11c)](JSON[_0x1037c2(0x12f)](_0x560046));}[_0x5f52e9(0x11b)](){const _0x224ee5=_0x5f52e9;sessionStorage[_0x224ee5(0x11e)](So,JSON[_0x224ee5(0x11a)](this[_0x224ee5(0x127)](_0x3c5396=>_0x3c5396)));}}function go(_0x1e9ca8){const _0xd4d964=_0x5f52e9;return _0x1e9ca8[_0xd4d964(0x119)]()[_0xd4d964(0x117)]();}function _0x313e(){const _0x32f38f=['33NXxeed','add','785RJkTkp','parse','CKEditor/AIFormView/PromptHistory','17322LqJqWt','32145144GjOOOW','trim','2402340YuTFkx','toLowerCase','stringify','_saveToSessionStorage','addMany','199453ynfmdK','setItem','remove','490836MAPamT','10HQrAiw','19208gfqqJG','_loadFromSessionStorage','11CPUbpP','last','prompt','map','getItem','329WnWimn','11812518gQayGG','length'];_0x313e=function(){return _0x32f38f;};return _0x313e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c98f2=_0x1edf;(function(_0x16cd40,_0x2c40ea){const _0x554286=_0x1edf,_0x25d9d3=_0x16cd40();while(!![]){try{const _0x5c1696=parseInt(_0x554286(0xbe))/0x1*(-parseInt(_0x554286(0xca))/0x2)+parseInt(_0x554286(0xba))/0x3+-parseInt(_0x554286(0xdf))/0x4*(-parseInt(_0x554286(0xda))/0x5)+-parseInt(_0x554286(0xd7))/0x6*(parseInt(_0x554286(0xbc))/0x7)+-parseInt(_0x554286(0xd9))/0x8+-parseInt(_0x554286(0xd5))/0x9*(parseInt(_0x554286(0xc0))/0xa)+parseInt(_0x554286(0xd1))/0xb;if(_0x5c1696===_0x2c40ea)break;else _0x25d9d3['push'](_0x25d9d3['shift']());}catch(_0xcd3d29){_0x25d9d3['push'](_0x25d9d3['shift']());}}}(_0x18f8,0x3ee41));function _0x1edf(_0x277a29,_0x107b8a){const _0x18f82d=_0x18f8();return _0x1edf=function(_0x1edf1c,_0x3d0819){_0x1edf1c=_0x1edf1c-0xb5;let _0x4eb06f=_0x18f82d[_0x1edf1c];return _0x4eb06f;},_0x1edf(_0x277a29,_0x107b8a);}import{Command as _0x202f5d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5d14e4}from'../aiassistantui.js';function _0x18f8(){const _0x3eb76f=['editor','_commandDefinitions','getItems','hasContent','822048FcgQVH','_hasContext','78953azmoRW','showUI','101581yaBMWG','enabledCommandsIds','1210fTXdtU','set','getFirstRange','isEnabled','name','isCollapsed','ai.assistant.disabledElements','values','refresh','element','2uFaRZV','plugins','change:_hasContext','isEmpty','document','execute','from','7592816UEpmvZ','getSelectedBlocks','selection','get','19566ZTXIeO','getRanges','90fShHga','config','2479720IvYdNC','1915btJokO','includes','model','length','add','1432PlDZXZ','custom','requiresContent','change:isEnabled'];_0x18f8=function(){return _0x3eb76f;};return _0x18f8();}export class ShowAIAssistantCommand extends _0x202f5d{[_0x2c98f2(0xb7)];constructor(_0x5cd10c,_0x5efaa7){const _0x55b41e=_0x2c98f2;super(_0x5cd10c),this[_0x55b41e(0xb7)]=_0x5efaa7,this[_0x55b41e(0xc1)](_0x55b41e(0xbf),[]),this['on'](_0x55b41e(0xcc),(_0x876e53,_0x2afd50,_0x59fb1d)=>{const _0x1e4602=_0x55b41e;this[_0x1e4602(0xc3)]&&(this[_0x1e4602(0xbf)]=ns(this[_0x1e4602(0xb7)],_0x59fb1d));}),this[_0x55b41e(0xc1)](_0x55b41e(0xbb),!0x1),this['on'](_0x55b41e(0xb5),(_0x34bd06,_0x4e0a1e,_0x1a9190)=>{const _0xec7d95=_0x55b41e;this[_0xec7d95(0xbf)]=_0x1a9190?ns(this[_0xec7d95(0xb7)],this[_0xec7d95(0xbb)]):[];});}[_0x2c98f2(0xc8)](){const _0x3d5304=_0x2c98f2,_0x1e864e=this[_0x3d5304(0xb6)][_0x3d5304(0xdc)];this[_0x3d5304(0xbb)]=function(_0x41b248){const _0x5aa2ec=_0x3d5304,_0x329d97=_0x41b248[_0x5aa2ec(0xce)][_0x5aa2ec(0xd3)];return _0x329d97[_0x5aa2ec(0xc5)]?0x0!==[..._0x329d97[_0x5aa2ec(0xd2)]()][_0x5aa2ec(0xdd)]&&![..._0x329d97[_0x5aa2ec(0xd2)]()][0x0][_0x5aa2ec(0xcd)]:!!_0x41b248[_0x5aa2ec(0xb9)](_0x329d97[_0x5aa2ec(0xc2)]());}(_0x1e864e);const _0x30ab37=_0x1e864e[_0x3d5304(0xce)][_0x3d5304(0xd3)],_0x5abb5a=this[_0x3d5304(0xb6)][_0x3d5304(0xd8)][_0x3d5304(0xd4)](_0x3d5304(0xc6));for(const _0x30f1fa of _0x30ab37[_0x3d5304(0xd6)]())for(const _0x25ad1b of _0x30f1fa[_0x3d5304(0xb8)]())if(_0x25ad1b['is'](_0x3d5304(0xc9))&&_0x5abb5a[_0x3d5304(0xdb)](_0x25ad1b[_0x3d5304(0xc4)]))return void(this[_0x3d5304(0xc3)]=!0x1);this[_0x3d5304(0xc3)]=!0x0;}[_0x2c98f2(0xcf)](_0x3085b5='',_0x211812='',_0x2b4fd6=_0x2c98f2(0xe0)){const _0x8b8340=_0x2c98f2;this[_0x8b8340(0xb6)][_0x8b8340(0xcb)][_0x8b8340(0xd4)](_0x5d14e4)[_0x8b8340(0xbd)](_0x3085b5,_0x211812,_0x2b4fd6);}}function ns(_0x421c77,_0x3e0f1e){const _0x10b292=_0x2c98f2,_0x178c88=new Set();for(const _0x57b4fa of _0x421c77[_0x10b292(0xc7)]())(_0x3e0f1e||!0x1===_0x57b4fa[_0x10b292(0xe1)])&&_0x178c88[_0x10b292(0xde)](_0x57b4fa['id']);return Array[_0x10b292(0xd0)](_0x178c88);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2ff7ce,_0x19e838,_0x285463){const t=_0x2ff7ce['t'];switch(_0x19e838){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',_0x285463);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x285463);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'},_0x285463);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 _0x19e838;}}
|
|
@@ -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(_0x4fdbfa,_0x3d6475){const _0x1d57a7=(0x0,_0x3d6475['t'])('Other');return _0x4fdbfa['length']?'groupId'in _0x4fdbfa[0x0]?_0x4fdbfa:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d57a7,'order':0x1/0x0,'commands':_0x4fdbfa}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d57a7,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3be236=_0x18b2;(function(_0x34c1fd,_0xb4056e){const _0x3d1bf6=_0x18b2,_0x46216f=_0x34c1fd();while(!![]){try{const _0x2f3973=-parseInt(_0x3d1bf6(0x22e))/0x1+parseInt(_0x3d1bf6(0x1dc))/0x2+parseInt(_0x3d1bf6(0x1e9))/0x3*(-parseInt(_0x3d1bf6(0x1fc))/0x4)+-parseInt(_0x3d1bf6(0x207))/0x5+-parseInt(_0x3d1bf6(0x1e5))/0x6*(parseInt(_0x3d1bf6(0x1ff))/0x7)+parseInt(_0x3d1bf6(0x211))/0x8+-parseInt(_0x3d1bf6(0x226))/0x9*(-parseInt(_0x3d1bf6(0x22d))/0xa);if(_0x2f3973===_0xb4056e)break;else _0x46216f['push'](_0x46216f['shift']());}catch(_0x290b3f){_0x46216f['push'](_0x46216f['shift']());}}}(_0x4b66,0xaee9b));import{ContextPlugin as _0x2fa103}from'ckeditor5/src/core.js';function _0x18b2(_0x2bcb68,_0x3850dd){const _0x4b6620=_0x4b66();return _0x18b2=function(_0x18b2c0,_0x58f45a){_0x18b2c0=_0x18b2c0-0x1da;let _0x478dd7=_0x4b6620[_0x18b2c0];return _0x478dd7;},_0x18b2(_0x2bcb68,_0x3850dd);}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3a11cb,AIEditing as _0x362539}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x2bfa85}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x46b2fb,Rect as _0x1da142,scrollViewportToShowTarget as _0x279e32}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x27c2b1}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3d8756}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x460aee}from'./ui/aiballoonview.js';function _0x4b66(){const _0x566c8f=['content','end','filter','_cleanupFakeVisualSelectionMarkerRemovalListener','iconView','document','editing','top','showBlockingError','isOpen','_calculateDialogPosition','mainView','once','_currentConfig','high','model','length','label','_getSelectionElements','9dJLpeT','_setupFakeVisualSelectionMarkerRemovalListener','startsWith','delegate','getVisible','ai-balloon-selection','getBoundingRect','7118780eHhXuQ','367007DuPPhN','selectionRemoved','round','getIntersection','differ','Dialog','isOfficialPlugin','context','max','hideError','dialogClosed','2160524YYyBuJ','width','get','isEqual','close','pluginName','plugins','show','hideFakeVisualSelection','1734768IiNYoE','map','_showDialog','ai-balloon-','1109742JVEArn','hide','open','showFakeVisualSelection','_showFakeVisualSelection','getMarkersGroup','change','markers','_isUpdatingMarkers','_hideFakeVisualSelection','stopListening','bind','index','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','locale','root','beforeDialogClosed','_updateDialog','4GNGoXK','view','getChangedMarkers','14qYLBmP','headerView','ranges','left','height','fire','_calculateOptimalTopPosition','AIBalloon','465265irRvVJ','isPremiumPlugin','requires','ck-ai-balloon\x20','window','$graveyard','updatePosition','rootName','start','listenTo','2660264MygqZZ','ai-selection'];_0x4b66=function(){return _0x566c8f;};return _0x4b66();}export const AI_BALLOON_EVENT_NAMES=[..._0x460aee,_0x3be236(0x1db),_0x3be236(0x22f)];const $=0xa;export class AIBalloon extends _0x2fa103{static get[_0x3be236(0x209)](){return[_0x362539];}static get[_0x3be236(0x1e1)](){const _0x25a071=_0x3be236;return _0x25a071(0x206);}static get[_0x3be236(0x234)](){return!0x0;}static get[_0x3be236(0x208)](){return!0x0;}[_0x3be236(0x21c)]=!0x1;[_0x3be236(0x220)];[_0x3be236(0x1f1)]=!0x1;[_0x3be236(0x1eb)](_0x13031f){const _0xd8c33c=_0x3be236,{id:_0x4576cf}=this[_0xd8c33c(0x220)]??{};this[_0xd8c33c(0x220)]=_0x13031f;const {id:_0x4f7a17}=this[_0xd8c33c(0x220)];this[_0xd8c33c(0x21c)]&&_0x4576cf===_0x4f7a17?this[_0xd8c33c(0x1fb)]():this[_0xd8c33c(0x1e7)]();}[_0x3be236(0x1e0)](){const _0x2e42d2=_0x3be236,_0x3a3414=_0x27c2b1(this[_0x2e42d2(0x235)])[_0x2e42d2(0x1e2)][_0x2e42d2(0x1de)](_0x2e42d2(0x233));_0x3a3414[_0x2e42d2(0x21c)]&&this[_0x2e42d2(0x220)]&&_0x3a3414['id']===this[_0x2e42d2(0x220)]['id']&&_0x3a3414[_0x2e42d2(0x1ea)]();}[_0x3be236(0x1fb)](){const _0x3519fe=_0x3be236,_0x38b6dc=_0x27c2b1(this[_0x3519fe(0x235)])[_0x3519fe(0x1e2)][_0x3519fe(0x1de)](_0x3519fe(0x233)),{icon:_0x38939d,title:_0x4f8155}=this[_0x3519fe(0x220)];_0x38b6dc[_0x3519fe(0x1fd)]?.[_0x3519fe(0x200)]&&(_0x38b6dc[_0x3519fe(0x1fd)][_0x3519fe(0x200)][_0x3519fe(0x224)]=_0x4f8155,_0x38b6dc[_0x3519fe(0x1fd)][_0x3519fe(0x200)][_0x3519fe(0x217)]&&_0x38939d&&(_0x38b6dc[_0x3519fe(0x1fd)][_0x3519fe(0x200)][_0x3519fe(0x217)][_0x3519fe(0x213)]=_0x38939d)),this[_0x3519fe(0x1f1)]=!0x0,this[_0x3519fe(0x1ed)](),this[_0x3519fe(0x1f1)]=!0x1,_0x38b6dc[_0x3519fe(0x1fd)]?.[_0x3519fe(0x20d)]();}[_0x3be236(0x1ed)](){const _0x2abee1=_0x3be236;this[_0x2abee1(0x235)][_0x2abee1(0x1e2)][_0x2abee1(0x1de)](_0x362539)[_0x2abee1(0x1ec)](this[_0x2abee1(0x220)][_0x2abee1(0x201)],_0x2abee1(0x1e8)+this[_0x2abee1(0x220)][_0x2abee1(0x1f5)],!0x0,!0x0);}[_0x3be236(0x1f2)](_0x59a1b5){const _0x5c488f=_0x3be236;this[_0x5c488f(0x235)][_0x5c488f(0x1e2)][_0x5c488f(0x1de)](_0x362539)[_0x5c488f(0x1e4)](_0x5c488f(0x1e8)+_0x59a1b5);}[_0x3be236(0x1e7)](){const _0x4918ad=_0x3be236,_0x18d4eb=_0x27c2b1(this[_0x4918ad(0x235)])[_0x4918ad(0x1e2)][_0x4918ad(0x1de)](_0x4918ad(0x233)),{id:_0x2e9b44,title:_0x456d7b,icon:_0x55ab95,class:_0x1cf454,mainView:_0x3922c7}=this[_0x4918ad(0x220)];_0x3922c7[_0x4918ad(0x229)](..._0x460aee)['to'](this),_0x18d4eb[_0x4918ad(0x1e3)]({'title':_0x456d7b,'icon':_0x55ab95,'hasCloseButton':!0x0,'id':_0x2e9b44,'position':this[_0x4918ad(0x21d)][_0x4918ad(0x1f4)](this),'className':_0x4918ad(0x20a)+(_0x1cf454||''),'content':_0x3922c7,'onShow':_0x594e46=>{const _0x1befd5=_0x4918ad;this[_0x1befd5(0x1ed)](),this[_0x1befd5(0x227)]();const _0x57c8e3=this[_0x1befd5(0x225)]();_0x57c8e3&&_0x57c8e3[0x0]&&_0x279e32({'target':_0x57c8e3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x1befd5(0x21c)]=!0x0,_0x594e46[_0x1befd5(0x21f)](_0x1befd5(0x1ea),()=>{const _0x5c4c65=_0x1befd5;this[_0x5c4c65(0x204)](_0x5c4c65(0x1fa),{'id':_0x2e9b44});},{'priority':_0x1befd5(0x221)});},'onHide':()=>{const _0x4b0efe=_0x4918ad;this[_0x4b0efe(0x1f2)](this[_0x4b0efe(0x220)][_0x4b0efe(0x1f5)]),this[_0x4b0efe(0x216)](),this[_0x4b0efe(0x204)](_0x4b0efe(0x1db),{'id':_0x2e9b44}),this[_0x4b0efe(0x21c)]=!0x1;}});}[_0x3be236(0x21d)](_0x4e1378,_0x518491){const _0x9f13b8=_0x3be236;if(!_0x518491)return null;const _0x367370=this[_0x9f13b8(0x225)]();if(!_0x367370||0x0===_0x367370[_0x9f13b8(0x223)])return{'left':Math[_0x9f13b8(0x230)](_0x518491[_0x9f13b8(0x202)]+_0x518491[_0x9f13b8(0x1dd)]/0x2-_0x4e1378[_0x9f13b8(0x1dd)]/0x2),'top':Math[_0x9f13b8(0x230)](_0x518491[_0x9f13b8(0x21a)]+_0x518491[_0x9f13b8(0x203)]/0x2-_0x4e1378[_0x9f13b8(0x203)]/0x2)};const _0x4b13fd=Math[_0x9f13b8(0x230)](_0x518491[_0x9f13b8(0x202)]+_0x518491[_0x9f13b8(0x1dd)]/0x2-_0x4e1378[_0x9f13b8(0x1dd)]/0x2),_0xb42103=_0x367370[_0x9f13b8(0x1e6)](_0x105563=>new _0x1da142(_0x105563)),_0x4060b7=_0x4e1378[_0x9f13b8(0x203)];return{'left':_0x4b13fd,'top':this[_0x9f13b8(0x205)](_0xb42103,_0x4060b7,_0x518491)};}[_0x3be236(0x205)](_0xe6ee73,_0x2c6d03,_0x5cb92c){const _0x269e9b=_0x3be236,_0x1743a9=new _0x1da142(_0x46b2fb[_0x269e9b(0x20b)]),_0x159d78=_0xe6ee73[_0x269e9b(0x1e6)](_0x3bfaaf=>_0x3bfaaf[_0x269e9b(0x22a)]())[_0x269e9b(0x215)](_0x1dd7cb=>_0x1dd7cb),_0x34331c=_0x1da142[_0x269e9b(0x22c)](_0x159d78);if(!_0x34331c)return Math[_0x269e9b(0x230)](_0x5cb92c[_0x269e9b(0x21a)]+_0x5cb92c[_0x269e9b(0x203)]/0x2);const _0x3dbe1b=_0x1743a9[_0x269e9b(0x231)](_0x34331c);if(!_0x3dbe1b)return Math[_0x269e9b(0x230)](_0x5cb92c[_0x269e9b(0x21a)]+_0x5cb92c[_0x269e9b(0x203)]/0x2);const _0x4dbe4c=_0x5cb92c[_0x269e9b(0x22a)](),_0x5d4732=_0x4dbe4c&&_0x34331c[_0x269e9b(0x203)]>_0x4dbe4c[_0x269e9b(0x203)],_0x2c72bf=_0x3dbe1b[_0x269e9b(0x21a)],_0x191ceb=_0x3dbe1b[_0x269e9b(0x1f7)];if(_0x5d4732){const _0x54e53e=(_0x4dbe4c||_0x1743a9)[_0x269e9b(0x203)]/0x2-_0x2c6d03/0x2,_0x21cce4=_0x2c72bf-$-_0x5cb92c[_0x269e9b(0x21a)],_0x392ba6=_0x5cb92c[_0x269e9b(0x1f7)]-_0x191ceb-$;return _0x21cce4>=_0x2c6d03?Math[_0x269e9b(0x236)]($,_0x2c72bf-_0x2c6d03-$):_0x392ba6>=_0x2c6d03?_0x191ceb+$:Math[_0x269e9b(0x236)]($,_0x54e53e);}const _0x1b775c=_0x2c72bf-_0x2c6d03,_0x3da173=_0x5cb92c[_0x269e9b(0x1f7)]-_0x191ceb-$,_0x5a9f95=_0x2c72bf-$-_0x5cb92c[_0x269e9b(0x21a)];let _0x3faab0;if(_0x3da173>=_0x2c6d03)_0x3faab0=_0x191ceb+$;else{if(_0x5a9f95>=_0x2c6d03)_0x3faab0=_0x1b775c-$;else _0x3faab0=_0x2c72bf+_0x34331c[_0x269e9b(0x203)]/0x2-_0x2c6d03/0x2;}return _0x3faab0;}[_0x3be236(0x227)](){const _0x587c11=_0x3be236,_0x265899=_0x27c2b1(this[_0x587c11(0x235)]);this[_0x587c11(0x210)](_0x265899[_0x587c11(0x222)][_0x587c11(0x218)],_0x587c11(0x1ef),()=>{const _0x114508=_0x587c11;if(!this[_0x114508(0x1f1)]){for(const {name:_0x376044,data:{newRange:_0xcaf73b}}of _0x265899[_0x114508(0x222)][_0x114508(0x218)][_0x114508(0x232)][_0x114508(0x1fe)]())if(_0x376044[_0x114508(0x228)](_0x3a11cb+':')&&(_0xcaf73b&&(_0xcaf73b[_0x114508(0x20f)][_0x114508(0x1df)](_0xcaf73b[_0x114508(0x214)])||_0x114508(0x20c)==_0xcaf73b[_0x114508(0x1f9)][_0x114508(0x20e)])||null==_0xcaf73b)){const _0x521322=_0x3d8756(this[_0x114508(0x235)][_0x114508(0x1f8)],_0x114508(0x1f6));this[_0x114508(0x220)][_0x114508(0x21e)][_0x114508(0x21b)](_0x521322),this[_0x114508(0x204)](_0x114508(0x22f));}}});}[_0x3be236(0x216)](){const _0x34b2cb=_0x3be236,_0x4f8d48=_0x27c2b1(this[_0x34b2cb(0x235)]);this[_0x34b2cb(0x220)][_0x34b2cb(0x21e)][_0x34b2cb(0x1da)](),this[_0x34b2cb(0x1f3)](_0x4f8d48[_0x34b2cb(0x222)][_0x34b2cb(0x218)]);}[_0x3be236(0x225)](){const _0xd27b4f=_0x3be236,_0x247f4f=_0x27c2b1(this[_0xd27b4f(0x235)]);return _0x2bfa85(_0x247f4f[_0xd27b4f(0x219)],[..._0x247f4f[_0xd27b4f(0x222)][_0xd27b4f(0x1f0)][_0xd27b4f(0x1ee)](_0xd27b4f(0x212)),..._0x247f4f[_0xd27b4f(0x222)][_0xd27b4f(0x1f0)][_0xd27b4f(0x1ee)](_0xd27b4f(0x22b))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1851a2=_0x5cbe;(function(_0x4a7646,_0x556d12){const _0x1f03ba=_0x5cbe,_0x2b01a8=_0x4a7646();while(!![]){try{const _0x52899d=parseInt(_0x1f03ba(0x1c6))/0x1+-parseInt(_0x1f03ba(0x1ba))/0x2*(parseInt(_0x1f03ba(0x1d2))/0x3)+parseInt(_0x1f03ba(0x1bd))/0x4*(-parseInt(_0x1f03ba(0x1d9))/0x5)+parseInt(_0x1f03ba(0x1c2))/0x6+parseInt(_0x1f03ba(0x1ce))/0x7*(-parseInt(_0x1f03ba(0x1d8))/0x8)+parseInt(_0x1f03ba(0x1c8))/0x9+parseInt(_0x1f03ba(0x1c4))/0xa*(-parseInt(_0x1f03ba(0x1d4))/0xb);if(_0x52899d===_0x556d12)break;else _0x2b01a8['push'](_0x2b01a8['shift']());}catch(_0x22b071){_0x2b01a8['push'](_0x2b01a8['shift']());}}}(_0x1e72,0x299a6));import{View as _0x2eb439}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x1851a2(0x1d7),_0x1851a2(0x1cd),_0x1851a2(0x1ca),_0x1851a2(0x1cc)];export class AIBalloonView extends _0x2eb439{[_0x1851a2(0x1cf)];constructor(_0x38aa3b){const _0xd251b3=_0x1851a2;super(_0x38aa3b),this[_0xd251b3(0x1c5)](_0xd251b3(0x1c3),''),this[_0xd251b3(0x1c5)](_0xd251b3(0x1c7),!0x1);}[_0x1851a2(0x1cb)](_0x5748b7){const _0x447cb9=_0x1851a2;this[_0x447cb9(0x1d1)](_0x5748b7);}[_0x1851a2(0x1d1)](_0x1a7957){const _0x26bfe9=_0x1851a2;this[_0x26bfe9(0x1cf)]||(this[_0x26bfe9(0x1cf)]=this[_0x26bfe9(0x1bb)]()),this[_0x26bfe9(0x1c3)]=_0x1a7957,this[_0x26bfe9(0x1c7)]=!0x0;}[_0x1851a2(0x1c0)](){const _0x2b338b=_0x1851a2;this[_0x2b338b(0x1c7)]=!0x1;}[_0x1851a2(0x1bb)](){const _0x5a1226=_0x1851a2,_0xc678d7=new _0x2eb439(this[_0x5a1226(0x1d5)]),_0x25a086=new _0x2eb439(this[_0x5a1226(0x1d5)]);return _0x25a086[_0x5a1226(0x1d3)]({'tag':_0x5a1226(0x1c9),'attributes':{'class':['ck',_0x5a1226(0x1c1)]},'children':[{'text':this[_0x5a1226(0x1bf)]['to'](_0x5a1226(0x1c3))}]}),_0xc678d7[_0x5a1226(0x1d3)]({'tag':_0x5a1226(0x1d0),'attributes':{'class':['ck',_0x5a1226(0x1bc),_0x5a1226(0x1be),this[_0x5a1226(0x1bf)]['if'](_0x5a1226(0x1c7),_0x5a1226(0x1d6),_0x59e102=>!_0x59e102)]},'children':[_0x25a086]}),_0xc678d7;}}function _0x5cbe(_0x25539b,_0x32a784){const _0x1e7224=_0x1e72();return _0x5cbe=function(_0x5cbed0,_0x3a8356){_0x5cbed0=_0x5cbed0-0x1ba;let _0x9d761a=_0x1e7224[_0x5cbed0];return _0x9d761a;},_0x5cbe(_0x25539b,_0x32a784);}function _0x1e72(){const _0x3c9d1b=['10PNLslV','set','301058oLvkzD','_isErrorVisible','2856132STiOBB','span','showNext','showBlockingError','showPrevious','insertSuggestion','275863RaXXMM','_errorView','div','showError','3IXZjqK','setTemplate','1979527JxRrbO','locale','ck-hidden','applySuggestion','8oVAeuj','30VVhYqO','636862LCIYIR','_createErrorView','ck-ai-suggestion__error','28932TYPvzs','ck-ai-balloon-error','bindTemplate','hideError','ck-ai-suggestion__error-text','799170ZzRaXy','_errorMessage'];_0x1e72=function(){return _0x3c9d1b;};return _0x1e72();}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x14e0e9=_0x1872;function _0x1872(_0x5d2a14,_0x4d017e){var _0x5df11e=_0x5df1();return _0x1872=function(_0x1872b3,_0x43655e){_0x1872b3=_0x1872b3-0xd5;var _0x15b4a8=_0x5df11e[_0x1872b3];return _0x15b4a8;},_0x1872(_0x5d2a14,_0x4d017e);}(function(_0x13d046,_0x548b4a){var _0x2cfe00=_0x1872,_0x29a754=_0x13d046();while(!![]){try{var _0x104177=parseInt(_0x2cfe00(0xe8))/0x1*(parseInt(_0x2cfe00(0xdd))/0x2)+-parseInt(_0x2cfe00(0xe3))/0x3+parseInt(_0x2cfe00(0xf1))/0x4*(parseInt(_0x2cfe00(0xe9))/0x5)+-parseInt(_0x2cfe00(0xd7))/0x6+-parseInt(_0x2cfe00(0xe6))/0x7*(parseInt(_0x2cfe00(0xe5))/0x8)+parseInt(_0x2cfe00(0xdf))/0x9*(parseInt(_0x2cfe00(0xf4))/0xa)+parseInt(_0x2cfe00(0xd8))/0xb*(parseInt(_0x2cfe00(0xee))/0xc);if(_0x104177===_0x548b4a)break;else _0x29a754['push'](_0x29a754['shift']());}catch(_0xb2a0b0){_0x29a754['push'](_0x29a754['shift']());}}}(_0x5df1,0xcebfe));import{ContextPlugin as _0x3cada7}from'ckeditor5/src/core.js';function _0x5df1(){var _0x10a288=['pluginName','25rETmNR','5PRQoGM','registerToolDataCallback','addSelectionToChatContext','startConversation','define','24ekrUrs','get','ai.chat.context','6155948izPoFX','context','_registerToolDataCallback','10DJSieC','removeSelectionFromChatContext','focusPromptInput','4539006YgbBrG','9268754fvxMZt','new','requires','plugins','config','65638mdmKWM','ai.chat.initialConversation','2176578MrVYQx','isOfficialPlugin','sendMessage','AIChat','4063527hGQiiv','isPremiumPlugin','3543136entNqh','21cFKtgi'];_0x5df1=function(){return _0x10a288;};return _0x5df1();}import{AIChatController as _0x37a722}from'./aichatcontroller.js';import{AIEditing as _0x24decd}from'../aicore/aiediting.js';import{AIChatUI as _0x5142e3}from'./aichatui.js';import{AIChatHistory as _0x5e8808}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3cada7{static get[_0x14e0e9(0xda)](){return[_0x37a722,_0x24decd,_0x5142e3,_0x5e8808];}static get[_0x14e0e9(0xe7)](){var _0x14a923=_0x14e0e9;return _0x14a923(0xe2);}static get[_0x14e0e9(0xe0)](){return!0x0;}static get[_0x14e0e9(0xe4)](){return!0x0;}constructor(_0x2cbeb6){var _0x309106=_0x14e0e9;super(_0x2cbeb6),this[_0x309106(0xf2)][_0x309106(0xdc)][_0x309106(0xed)](_0x309106(0xf0),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x309106(0xf2)][_0x309106(0xdc)][_0x309106(0xed)](_0x309106(0xde),_0x309106(0xd9));}async[_0x14e0e9(0xeb)](){var _0x3ce9ec=_0x14e0e9;await this[_0x3ce9ec(0xf2)][_0x3ce9ec(0xdb)][_0x3ce9ec(0xef)](_0x37a722)[_0x3ce9ec(0xeb)]();}async[_0x14e0e9(0xec)](){var _0x68fa40=_0x14e0e9;await this[_0x68fa40(0xf2)][_0x68fa40(0xdb)][_0x68fa40(0xef)](_0x37a722)[_0x68fa40(0xec)]();}async[_0x14e0e9(0xe1)]({message:_0x4f1423,attributes:_0x315341}){var _0x47a98f=_0x14e0e9;await this[_0x47a98f(0xf2)][_0x47a98f(0xdb)][_0x47a98f(0xef)](_0x37a722)[_0x47a98f(0xe1)]({'message':_0x4f1423,'attributes':_0x315341});}[_0x14e0e9(0xd5)](){var _0x23c5b3=_0x14e0e9;this[_0x23c5b3(0xf2)][_0x23c5b3(0xdb)][_0x23c5b3(0xef)](_0x37a722)[_0x23c5b3(0xd5)]();}[_0x14e0e9(0xd6)](){var _0x36cbea=_0x14e0e9;this[_0x36cbea(0xf2)][_0x36cbea(0xdb)][_0x36cbea(0xef)](_0x37a722)[_0x36cbea(0xd6)]();}[_0x14e0e9(0xea)](_0x24930d){var _0x2fa02c=_0x14e0e9;this[_0x2fa02c(0xf2)][_0x2fa02c(0xdb)][_0x2fa02c(0xef)](_0x37a722)[_0x2fa02c(0xf3)](_0x24930d);}}
|