@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x124d6c=_0x3528;(function(_0x3f576b,_0x128cda){const _0x42500b=_0x3528,_0x2b4527=_0x3f576b();while(!![]){try{const _0x2758af=-parseInt(_0x42500b(0x21c))/0x1*(parseInt(_0x42500b(0x201))/0x2)+parseInt(_0x42500b(0x1ed))/0x3*(parseInt(_0x42500b(0x226))/0x4)+-parseInt(_0x42500b(0x205))/0x5+-parseInt(_0x42500b(0x1e7))/0x6+parseInt(_0x42500b(0x1ec))/0x7+parseInt(_0x42500b(0x211))/0x8+parseInt(_0x42500b(0x215))/0x9*(parseInt(_0x42500b(0x22d))/0xa);if(_0x2758af===_0x128cda)break;else _0x2b4527['push'](_0x2b4527['shift']());}catch(_0x22e0b7){_0x2b4527['push'](_0x2b4527['shift']());}}}(_0x5ae9,0xa6d71));function _0x3528(_0x55c8b5,_0x50bf1c){const _0x5ae9a6=_0x5ae9();return _0x3528=function(_0x352832,_0x1fda69){_0x352832=_0x352832-0x1db;let _0xa78c4d=_0x5ae9a6[_0x352832];return _0xa78c4d;},_0x3528(_0x55c8b5,_0x50bf1c);}import{global as _0x22f157}from'ckeditor5/src/utils.js';import{View as _0x2a83d7,ButtonView as _0x2163d5,SpinnerView as _0x2265a7}from'ckeditor5/src/ui.js';import{IconCheck as _0x2adb6c,IconCopy as _0x3ca49e}from'ckeditor5/src/icons.js';function _0x5ae9(){const _0x12826c=['ck-ai-form__loader','createRange','smooth','element','innerHTML','8QmtWDm','lastElementChild','contentFieldView','appendLoader','icon','clipboard','addRange','310yrXwzY','setTemplate','loaderView','text/html','ck-ai-form__content-area','locale','ck-ai-form__content-area-wrapper','scrollHeight','ck-reset_all-excluded','_createCopyButton','value','removeAllRanges','ck-ai-form__content-area--processing','setContent','AI\x20is\x20writing...','5019006vBVRak','ck-ai-form__copy-button-wrapper','remove','copy','getSelection','4254663gtuwuK','1017321oSSGFc','ck-ai-form__content-field','class','textContent','appendChild','Copy','createElement','scrollTo','setEndBefore','ck-hidden','render','\x20ck-ai-form__copy-button--copied','div','.ck-ai-form__loader','isEnabled','_createLoader','-9999px','ck-ai-form__copy-button','wheel','listenTo','20642CsEDal','firstElementChild','style','ck-content','6099105oBugHO','bind','bindTemplate','<span>[</span>','isProcessing','write','change:value','<span>]</span>','_copyHTMLToClipboard','focus','setStartAfter','querySelector','9090232DleISf','body','execute','text/plain','445725DQSKYH','change:isProcessing','isVisible','left','absolute','set','execCommand','118dTmcvO','ClipboardItem','position','mousedown','copyButtonView'];_0x5ae9=function(){return _0x12826c;};return _0x5ae9();}import{getTranslation as _0x322f23}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x2a83d7{[_0x124d6c(0x228)];[_0x124d6c(0x220)];constructor(_0x43035c,_0x58e45d=''){const _0x2aea26=_0x124d6c;super(_0x43035c),this[_0x2aea26(0x21a)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5f29ec=this[_0x2aea26(0x207)];this[_0x2aea26(0x228)]=new ContentFieldView(_0x43035c,_0x58e45d),this[_0x2aea26(0x220)]=this[_0x2aea26(0x1e1)](),this[_0x2aea26(0x22e)]({'tag':_0x2aea26(0x1f9),'attributes':{'class':['ck',_0x2aea26(0x1de),_0x5f29ec['if'](_0x2aea26(0x217),_0x2aea26(0x1f6),_0x1e08e9=>!_0x1e08e9)],'tabindex':'-1'},'children':[{'tag':_0x2aea26(0x1f9),'attributes':{'class':['ck',_0x2aea26(0x1dc),_0x5f29ec['if'](_0x2aea26(0x209),_0x2aea26(0x1e4))]},'children':[this[_0x2aea26(0x228)],{'tag':_0x2aea26(0x1f9),'attributes':{'class':['ck',_0x2aea26(0x1e8)]},'children':[this[_0x2aea26(0x220)]]}]}]});}[_0x124d6c(0x1f7)](){const _0x1c29d1=_0x124d6c;super[_0x1c29d1(0x1f7)](),this[_0x1c29d1(0x1e2)]&&this[_0x1c29d1(0x228)][_0x1c29d1(0x1e5)](this[_0x1c29d1(0x1e2)]);let _0x57203b=!0x1;this['on'](_0x1c29d1(0x20b),(_0x2ec1f5,_0x2f4a63,_0x194a75)=>{const _0xfd969e=_0x1c29d1,_0x28e2d9=!this[_0xfd969e(0x228)][_0xfd969e(0x224)][_0xfd969e(0x210)](_0xfd969e(0x1fa));this[_0xfd969e(0x228)][_0xfd969e(0x1e5)](_0x194a75),this[_0xfd969e(0x209)]&&_0x28e2d9&&!_0x57203b&&this[_0xfd969e(0x224)][_0xfd969e(0x1f4)]({'top':this[_0xfd969e(0x224)][_0xfd969e(0x1df)],'behavior':_0xfd969e(0x223)});}),this['on'](_0x1c29d1(0x216),(_0x2f7cbf,_0x2184f5,_0x811653)=>{const _0x584bd0=_0x1c29d1;_0x57203b=!0x1,_0x811653?(this[_0x584bd0(0x1e2)]=null,this[_0x584bd0(0x228)][_0x584bd0(0x229)]()):this[_0x584bd0(0x1e2)]||this[_0x584bd0(0x228)][_0x584bd0(0x1e5)]('');}),this[_0x1c29d1(0x200)](this[_0x1c29d1(0x224)],_0x1c29d1(0x1ff),()=>{_0x57203b=!0x0;}),this[_0x1c29d1(0x200)](this[_0x1c29d1(0x224)],_0x1c29d1(0x21f),()=>{_0x57203b=!0x0;});}[_0x124d6c(0x20e)](){const _0x187275=_0x124d6c;this[_0x187275(0x224)][_0x187275(0x20e)]();}[_0x124d6c(0x1e1)](){const _0x40ccb2=_0x124d6c,_0x1893cf=this[_0x40ccb2(0x1dd)],_0x2bdf77=new _0x2163d5(this[_0x40ccb2(0x1dd)]),_0xa659cc=_0x40ccb2(0x1fe);return _0x2bdf77[_0x40ccb2(0x21a)]({'label':_0x322f23(_0x1893cf,_0x40ccb2(0x1f2)),'icon':_0x3ca49e,'class':_0xa659cc,'tooltip':!0x0}),_0x2bdf77[_0x40ccb2(0x206)](_0x40ccb2(0x217))['to'](this,_0x40ccb2(0x1e2),_0x346609=>!!_0x346609),_0x2bdf77[_0x40ccb2(0x206)](_0x40ccb2(0x1fb))['to'](this,_0x40ccb2(0x209),_0x1af88e=>!_0x1af88e),_0x2bdf77['on'](_0x40ccb2(0x213),()=>{const _0x288050=_0x40ccb2;this[_0x288050(0x20d)](this[_0x288050(0x228)][_0x288050(0x224)]),_0x2bdf77[_0x288050(0x22a)]=_0x2adb6c,_0x2bdf77[_0x288050(0x1ef)]=_0xa659cc+_0x288050(0x1f8),this[_0x288050(0x20e)](),setTimeout(()=>{const _0x444c5e=_0x288050;_0x2bdf77[_0x444c5e(0x22a)]=_0x3ca49e,_0x2bdf77[_0x444c5e(0x1ef)]=_0xa659cc;},0x3e8);}),_0x2bdf77;}[_0x124d6c(0x20d)](_0x4b131a){const _0x509c2e=_0x124d6c,{window:_0xdd54d,document:_0x31caaa}=_0x22f157;if(_0xdd54d[_0x509c2e(0x21d)]){const {Blob:_0x5d2336,ClipboardItem:_0x296164}=_0xdd54d,_0x75c5a8=[new _0x296164({'text/html':new _0x5d2336([_0x4b131a[_0x509c2e(0x225)]],{'type':_0x509c2e(0x1db)}),'text/plain':new _0x5d2336([_0x4b131a[_0x509c2e(0x1f0)]||''],{'type':_0x509c2e(0x214)})})];navigator[_0x509c2e(0x22b)][_0x509c2e(0x20a)](_0x75c5a8);}else{const _0x286d69=_0x31caaa[_0x509c2e(0x1f3)](_0x509c2e(0x1f9));_0x286d69[_0x509c2e(0x203)][_0x509c2e(0x21e)]=_0x509c2e(0x219),_0x286d69[_0x509c2e(0x203)][_0x509c2e(0x218)]=_0x509c2e(0x1fd),_0x286d69[_0x509c2e(0x225)]=_0x509c2e(0x208)+_0x4b131a[_0x509c2e(0x225)]+_0x509c2e(0x20c),_0x31caaa[_0x509c2e(0x212)][_0x509c2e(0x1f1)](_0x286d69);const _0xff9698=_0x31caaa[_0x509c2e(0x222)]();_0xff9698[_0x509c2e(0x20f)](_0x286d69[_0x509c2e(0x202)]),_0xff9698[_0x509c2e(0x1f5)](_0x286d69[_0x509c2e(0x227)]);const _0x25db10=_0xdd54d[_0x509c2e(0x1eb)]();_0x25db10[_0x509c2e(0x1e3)](),_0x25db10[_0x509c2e(0x22c)](_0xff9698),_0x31caaa[_0x509c2e(0x21b)](_0x509c2e(0x1ea)),_0x286d69[_0x509c2e(0x1e9)]();}}}export class ContentFieldView extends _0x2a83d7{constructor(_0x159c73,_0x2670d8=''){const _0x3e8b79=_0x124d6c;super(_0x159c73),this[_0x3e8b79(0x22f)]=this[_0x3e8b79(0x1fc)](),this[_0x3e8b79(0x22e)]({'tag':_0x3e8b79(0x1f9),'attributes':{'class':['ck',_0x3e8b79(0x204),_0x2670d8,_0x3e8b79(0x1e0),_0x3e8b79(0x1ee)]}});}[_0x124d6c(0x1e5)](_0x2ccb72){const _0x3e29d3=_0x124d6c;this[_0x3e29d3(0x224)][_0x3e29d3(0x225)]=_0x2ccb72;}[_0x124d6c(0x229)](){const _0x5f232a=_0x124d6c;this[_0x5f232a(0x224)][_0x5f232a(0x1f1)](this[_0x5f232a(0x22f)][_0x5f232a(0x224)]);}[_0x124d6c(0x1fc)](){const _0x2fc3cf=_0x124d6c,_0xa047de=new _0x2a83d7(),_0x1ee92b=this[_0x2fc3cf(0x1dd)],_0x2cc5c3=new _0x2265a7();return _0x2cc5c3[_0x2fc3cf(0x217)]=!0x0,_0xa047de[_0x2fc3cf(0x22e)]({'tag':_0x2fc3cf(0x1f9),'attributes':{'class':['ck',_0x2fc3cf(0x221)]},'children':[_0x2cc5c3,{'text':_0x322f23(_0x1ee92b,_0x2fc3cf(0x1e6))}]}),_0xa047de[_0x2fc3cf(0x1f7)](),_0xa047de;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x461d56,_0x3a6eff){const _0x315bb0=_0x10cb,_0x177080=_0x461d56();while(!![]){try{const _0x5380a6=parseInt(_0x315bb0(0x6a))/0x1+-parseInt(_0x315bb0(0x6d))/0x2+parseInt(_0x315bb0(0x69))/0x3+parseInt(_0x315bb0(0x70))/0x4*(parseInt(_0x315bb0(0x68))/0x5)+parseInt(_0x315bb0(0x66))/0x6+parseInt(_0x315bb0(0x65))/0x7+-parseInt(_0x315bb0(0x6c))/0x8;if(_0x5380a6===_0x3a6eff)break;else _0x177080['push'](_0x177080['shift']());}catch(_0x175a99){_0x177080['push'](_0x177080['shift']());}}}(_0x35b9,0x84c9c));import{IconError as _0x5192df}from'ckeditor5/src/icons.js';function _0x10cb(_0x353320,_0x27935c){const _0x35b910=_0x35b9();return _0x10cb=function(_0x10cb12,_0x3b92ae){_0x10cb12=_0x10cb12-0x65;let _0x4381fb=_0x35b910[_0x10cb12];return _0x4381fb;},_0x10cb(_0x353320,_0x27935c);}import{View as _0x485cf4,IconView as _0x4ef22b}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x485cf4{constructor(_0x4d6a94,_0x39db45=''){const _0x479eff=_0x10cb;super(_0x4d6a94);const _0x30c83e=new _0x4ef22b(),_0xaef493=this[_0x479eff(0x6f)];this[_0x479eff(0x72)](_0x479eff(0x67),_0x39db45),_0x30c83e[_0x479eff(0x73)]=_0x5192df,this[_0x479eff(0x6e)]({'tag':_0x479eff(0x71),'attributes':{'class':['ck',_0x479eff(0x6b)]},'children':[_0x30c83e,{'text':_0xaef493['to'](_0x479eff(0x67))}]});}}function _0x35b9(){const _0x424f62=['set','content','3566773RLcaPe','4834212qEvjmI','text','175fjVtlw','465027HTazLE','1080241vOYeVL','ck-ai-form__error','18641912rfAyFK','673324BQEoHp','setTemplate','bindTemplate','75464GDTZGU','div'];_0x35b9=function(){return _0x424f62;};return _0x35b9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4633fd=_0x4d71;function _0x35fe(){const _0x422b0c=['_createSubmitButton','enter','uiLanguageDirection','children','fire','4BRhrDf','update','left','minRows','focusCycler','focusFirst','_createShowHistoryButton','fieldView','keystrokes','36886sxaQUx','execute','maxRows','894055UEdyPM','element','focusableChildren','987FLTEgv','ck-ai-form__toggle-history','filteredView','92609iztliE','set','value','resultsView','width','17dORLpo','rtl','403479porOIZ','isOn','submit','isEmpty','add','requestAnimationFrame','window','isEnabled','showHistoryButtonView','isVisible','render','focus','target','submitButtonView','ck-ai-form__submit','14682LKMGrk','style','bind','excludeScrollbarsAndBorders','focusLast','Submit','1788kNRvXb','right','locale','fieldWrapperChildren','queryView','2259624ovOnYF','10WIXHkW','4572243lYvmRE','History'];_0x35fe=function(){return _0x422b0c;};return _0x35fe();}(function(_0x1852d5,_0x2c0136){const _0xca5e40=_0x4d71,_0x4ee270=_0x1852d5();while(!![]){try{const _0x298d15=-parseInt(_0xca5e40(0x97))/0x1*(parseInt(_0xca5e40(0x89))/0x2)+parseInt(_0xca5e40(0x99))/0x3+-parseInt(_0xca5e40(0x80))/0x4*(parseInt(_0xca5e40(0x8c))/0x5)+-parseInt(_0xca5e40(0xa8))/0x6*(-parseInt(_0xca5e40(0x8f))/0x7)+-parseInt(_0xca5e40(0x77))/0x8+parseInt(_0xca5e40(0x79))/0x9*(-parseInt(_0xca5e40(0x78))/0xa)+parseInt(_0xca5e40(0x92))/0xb*(parseInt(_0xca5e40(0xae))/0xc);if(_0x298d15===_0x2c0136)break;else _0x4ee270['push'](_0x4ee270['shift']());}catch(_0x17768d){_0x4ee270['push'](_0x4ee270['shift']());}}}(_0x35fe,0x6e239));function _0x4d71(_0x4da6b1,_0x59c62c){const _0x35fea4=_0x35fe();return _0x4d71=function(_0x4d71dc,_0x564aa6){_0x4d71dc=_0x4d71dc-0x73;let _0x391a0f=_0x35fea4[_0x4d71dc];return _0x391a0f;},_0x4d71(_0x4da6b1,_0x59c62c);}import{Rect as _0x3bcf18,global as _0x1e0bca,isVisible as _0x5624cf}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x5bd0b8,IconSubmit as _0x4f23fc}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x4c8a7b,ButtonView as _0x1bae2c}from'ckeditor5/src/ui.js';import{getTranslation as _0x3ec24f}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x4c8a7b{[_0x4633fd(0xa6)];[_0x4633fd(0xa1)];constructor(_0x3f231a,_0x596a4c){const _0x2eef10=_0x4633fd;super(_0x3f231a,_0x596a4c),this[_0x2eef10(0x76)][_0x2eef10(0x87)][_0x2eef10(0x83)]=0x1,this[_0x2eef10(0x76)][_0x2eef10(0x87)][_0x2eef10(0x8b)]=0x3,this[_0x2eef10(0xa6)]=this[_0x2eef10(0x7b)](),this[_0x2eef10(0xa1)]=this[_0x2eef10(0x86)](),this[_0x2eef10(0x8e)][_0x2eef10(0x9d)](this[_0x2eef10(0xa1)],0x1),this[_0x2eef10(0x8e)][_0x2eef10(0x9d)](this[_0x2eef10(0xa6)]);}[_0x4633fd(0xa3)](){const _0x17a2f5=_0x4633fd;super[_0x17a2f5(0xa3)](),this[_0x17a2f5(0x76)][_0x17a2f5(0x75)][_0x17a2f5(0x9d)](this[_0x17a2f5(0xa1)]),this[_0x17a2f5(0x7e)][_0x17a2f5(0x9d)](this[_0x17a2f5(0xa6)]),this[_0x17a2f5(0x88)][_0x17a2f5(0x93)](_0x17a2f5(0x7c),(_0x2679ff,_0x2645cf)=>{const _0x180073=_0x17a2f5;_0x2679ff[_0x180073(0xa5)]==this[_0x180073(0x76)][_0x180073(0x87)][_0x180073(0x8d)]&&(this[_0x180073(0x9b)](),_0x2645cf());});}[_0x4633fd(0x7b)](){const _0x2d02d0=_0x4633fd,_0x598ae6=new _0x1bae2c(this[_0x2d02d0(0x74)]),_0x5d5dd1=this[_0x2d02d0(0x74)];return _0x598ae6[_0x2d02d0(0x93)]({'icon':_0x4f23fc,'label':_0x3ec24f(_0x5d5dd1,_0x2d02d0(0xad)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2d02d0(0xa7)}),_0x598ae6['on'](_0x2d02d0(0x8a),()=>{const _0x321d8b=_0x2d02d0;this[_0x321d8b(0x9b)]();}),_0x598ae6[_0x2d02d0(0xaa)](_0x2d02d0(0xa0))['to'](this[_0x2d02d0(0x76)][_0x2d02d0(0x87)],_0x2d02d0(0x9c),this,_0x2d02d0(0xa0),(_0x1046c4,_0x3c965c)=>!_0x1046c4&&_0x3c965c),_0x598ae6;}[_0x4633fd(0x86)](){const _0x11fa91=_0x4633fd,_0x2d45c9=new _0x1bae2c(this[_0x11fa91(0x74)]),_0x266e0a=this[_0x11fa91(0x95)],_0x97fda=this[_0x11fa91(0x74)];_0x2d45c9[_0x11fa91(0x93)]({'label':_0x3ec24f(_0x97fda,_0x11fa91(0x7a)),'withText':!0x1,'icon':_0x5bd0b8,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x11fa91(0x90)}),_0x2d45c9[_0x11fa91(0xaa)](_0x11fa91(0x9a))['to'](_0x266e0a,_0x11fa91(0xa2)),_0x2d45c9[_0x11fa91(0xaa)](_0x11fa91(0xa0))['to'](this,_0x11fa91(0xa0)),_0x2d45c9['on'](_0x11fa91(0x8a),()=>{const _0x83557c=_0x11fa91;_0x266e0a[_0x83557c(0xa2)]=!_0x266e0a[_0x83557c(0xa2)],_0x266e0a[_0x83557c(0xa2)]?this[_0x83557c(0x91)][_0x83557c(0xa4)]():this[_0x83557c(0xa4)]();});const _0x107a5a=()=>{const _0x224dff=_0x11fa91;_0x1e0bca[_0x224dff(0x9f)][_0x224dff(0x9e)](()=>{const _0x380e4a=_0x224dff;if(_0x5624cf(this[_0x380e4a(0x8d)])){const _0x54394e=new _0x3bcf18(this[_0x380e4a(0x76)][_0x380e4a(0x87)][_0x380e4a(0x8d)]),_0x30f558=_0x54394e[_0x380e4a(0x96)],_0xec8086=_0x380e4a(0x98)===_0x97fda[_0x380e4a(0x7d)]?_0x380e4a(0x82):_0x380e4a(0x73);_0x54394e[_0x380e4a(0xab)](),_0x2d45c9[_0x380e4a(0x8d)][_0x380e4a(0xa9)][_0xec8086]=_0x30f558-_0x54394e[_0x380e4a(0x96)]+0x1+'px';}});};return this[_0x11fa91(0x76)][_0x11fa91(0x87)]['on'](_0x11fa91(0x81),_0x107a5a),this['on'](_0x11fa91(0xa3),_0x107a5a),_0x2d45c9;}[_0x4633fd(0x9b)](){const _0x130bfb=_0x4633fd,_0x49c142=this[_0x130bfb(0x76)][_0x130bfb(0x87)][_0x130bfb(0x8d)][_0x130bfb(0x94)];this[_0x130bfb(0x7f)](_0x130bfb(0x9b),_0x49c142);}[_0x4633fd(0xa4)](_0x5f26d9){const _0x160317=_0x4633fd;-0x1===_0x5f26d9?this[_0x160317(0x84)][_0x160317(0xac)]():this[_0x160317(0x84)][_0x160317(0x85)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53f30f=_0x4ef3;(function(_0x26ea61,_0x1bd13a){const _0x2f8b16=_0x4ef3,_0x544531=_0x26ea61();while(!![]){try{const _0x2a5609=-parseInt(_0x2f8b16(0x124))/0x1+parseInt(_0x2f8b16(0x11a))/0x2+-parseInt(_0x2f8b16(0x11f))/0x3+parseInt(_0x2f8b16(0x103))/0x4*(parseInt(_0x2f8b16(0x107))/0x5)+parseInt(_0x2f8b16(0x125))/0x6*(parseInt(_0x2f8b16(0x10a))/0x7)+-parseInt(_0x2f8b16(0x123))/0x8+parseInt(_0x2f8b16(0x112))/0x9;if(_0x2a5609===_0x1bd13a)break;else _0x544531['push'](_0x544531['shift']());}catch(_0x38538e){_0x544531['push'](_0x544531['shift']());}}}(_0x57cf,0x95266));import{ToolbarView as _0x16e9e1,ButtonView as _0x1c0605}from'ckeditor5/src/ui.js';import{getTranslation as _0x32f5b9}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x53f30f(0x113),'INSERT':_0x53f30f(0x105)};function _0x4ef3(_0x34ea03,_0x126550){const _0x57cfc6=_0x57cf();return _0x4ef3=function(_0x4ef363,_0x362f88){_0x4ef363=_0x4ef363-0x102;let _0x41a81f=_0x57cfc6[_0x4ef363];return _0x41a81f;},_0x4ef3(_0x34ea03,_0x126550);}export class AIFormToolbarView extends _0x16e9e1{constructor(_0x1815e8){const _0x39a0c8=_0x53f30f;super(_0x1815e8),this[_0x39a0c8(0x122)](_0x39a0c8(0x11b),!0x1),this[_0x39a0c8(0x122)](_0x39a0c8(0x114),AIFormToolbarViewMainActionLabel[_0x39a0c8(0x121)]),this[_0x39a0c8(0x106)]=this[_0x39a0c8(0x11e)]('',_0x39a0c8(0x108)),this[_0x39a0c8(0x106)][_0x39a0c8(0x117)](_0x39a0c8(0x109))['to'](this,_0x39a0c8(0x114),_0x1684cd=>_0x32f5b9(_0x1815e8,_0x39a0c8(0x120)+_0x1684cd[_0x39a0c8(0x10d)]()+_0x39a0c8(0x11c))),this[_0x39a0c8(0x10f)]=this[_0x39a0c8(0x11e)](_0x32f5b9(_0x1815e8,_0x39a0c8(0x10e))),this[_0x39a0c8(0x110)]=this[_0x39a0c8(0x11e)](_0x32f5b9(_0x1815e8,_0x39a0c8(0x10b))),this[_0x39a0c8(0x118)]=this[_0x39a0c8(0x11e)](_0x32f5b9(_0x1815e8,_0x39a0c8(0x11d)));const _0xe80c0e=this[_0x39a0c8(0x115)];this[_0x39a0c8(0x10c)]({'attributes':{'class':[_0x39a0c8(0x119),_0xe80c0e['if'](_0x39a0c8(0x11b),_0x39a0c8(0x102),_0x5347e4=>!_0x5347e4)]}}),this[_0x39a0c8(0x111)][_0x39a0c8(0x104)]([this[_0x39a0c8(0x106)],this[_0x39a0c8(0x10f)],this[_0x39a0c8(0x110)],this[_0x39a0c8(0x118)]]);}[_0x53f30f(0x11e)](_0x4069cd,_0x4e2b02){const _0x4c5b5f=_0x53f30f,_0x35d229=new _0x1c0605(this[_0x4c5b5f(0x116)]);return _0x35d229[_0x4c5b5f(0x122)]({'label':_0x4069cd,'class':_0x4e2b02||'','isVisible':!0x0,'withText':!0x0}),_0x35d229;}}function _0x57cf(){const _0x15dab9=['Try\x20again','extendTemplate','toUpperCase','Insert\x20below','insertButton','tryAgainButton','items','14214762tDjoCI','replace','mainAction','bindTemplate','locale','bind','stopButton','ck-ai-form__toolbar','785092ZhwbPB','isVisible','_CONTENT','Stop','_createButton','3559677oxswKY','AI_','REPLACE','set','8084448PqOwtA','958501mlZFjK','6UjPFWe','ck-hidden','85616gVeRuX','addMany','insert','replaceButton','195zkgISB','ck-button-action','label','6718698lNMrLz'];_0x57cf=function(){return _0x15dab9;};return _0x57cf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x463fb4=_0x199d;(function(_0x46380b,_0x460d75){const _0x1d9883=_0x199d,_0x20bfec=_0x46380b();while(!![]){try{const _0x569429=parseInt(_0x1d9883(0x1b7))/0x1+-parseInt(_0x1d9883(0x1d7))/0x2*(-parseInt(_0x1d9883(0x1d6))/0x3)+parseInt(_0x1d9883(0x1cb))/0x4+parseInt(_0x1d9883(0x1a1))/0x5*(-parseInt(_0x1d9883(0x1bc))/0x6)+parseInt(_0x1d9883(0x1c9))/0x7*(-parseInt(_0x1d9883(0x1d3))/0x8)+-parseInt(_0x1d9883(0x1a6))/0x9+-parseInt(_0x1d9883(0x1b9))/0xa*(-parseInt(_0x1d9883(0x1eb))/0xb);if(_0x569429===_0x460d75)break;else _0x20bfec['push'](_0x20bfec['shift']());}catch(_0x9fbdf6){_0x20bfec['push'](_0x20bfec['shift']());}}}(_0x2741,0x9c634));import{FocusTracker as _0x21eb9e,KeystrokeHandler as _0x1f11b1}from'ckeditor5/src/utils.js';import{View as _0x19fbd8,FocusCycler as _0x2ce4f4,createLabeledTextarea as _0x58c0f7}from'ckeditor5/src/ui.js';function _0x2741(){const _0x485713=['submit','stopButton','value','focusFirst','high','isProcessing','createCollection','16WNhNqg','_createHistoryView','set','3YkMGXs','1693802bbgBBf','add','listenTo','submitPrompt','queryView','_focusables','setTemplate','stopProcessing','keystrokes','element','isEnabled','bindTemplate','historyGroupView','div','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','chain','replaceButton','ck-ai-form','mainAction','tryAgainEvent','3662692kDaJMt','insertButton','clearHistory','contentArea','copyButtonView','handleError','Empty\x20history','label','text','Ask\x20AI\x20to\x20edit\x20or\x20generate','bindTo','shift\x20+\x20tab','60cNrLyn','_createToolbar','insertContentBelow','reset','finishProcessing','7404327CSJtIm','prompt','render','toolbar','focus','delegate','ck-hidden','_createPromptView','isError','focusTracker','promptView','tab','fieldView','startProcessing','fire','replaceContent','REPLACE','723235vEzGxp','Ask\x20AI\x20to\x20improve\x20generated\x20text','20dbEajX','clear','trim','38154sXKqFF','locale','_promptHistory','focusCycler','ck-ai-form-content','tryAgainButton','items','focusLast','execute','bind','search','errorView','isVisible','3162362CEshgR','AI_ERROR_FAILED','828108FbNSPC'];_0x2741=function(){return _0x485713;};return _0x2741();}import{AIFormToolbarView as _0x191e92,AIFormToolbarViewMainActionLabel as _0x140be6}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x571836}from'./aiformcontentarea.js';import{AIFormErrorView as _0x440197}from'./aiformerrorview.js';import{AIFormPromptView as _0x199067}from'./aiformpromptview.js';import{AIHistoryListView as _0x330fee}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x33fa40}from'./aihistorylistitemview.js';function _0x199d(_0x2d7701,_0xf23027){const _0x274182=_0x2741();return _0x199d=function(_0x199d16,_0x123cc3){_0x199d16=_0x199d16-0x19e;let _0x30b618=_0x274182[_0x199d16];return _0x30b618;},_0x199d(_0x2d7701,_0xf23027);}import{PromptHistory as _0xc5c753}from'./prompthistory.js';import{getTranslation as _0x2a9dc5}from'../../utils/common-translations.js';import{escape as _0x58af0b}from'es-toolkit/compat';export class AIFormView extends _0x19fbd8{[_0x463fb4(0x1af)];[_0x463fb4(0x1df)];[_0x463fb4(0x1ee)];[_0x463fb4(0x1a9)];[_0x463fb4(0x1b0)];[_0x463fb4(0x1c7)];[_0x463fb4(0x1dc)];[_0x463fb4(0x1bf)];[_0x463fb4(0x1be)];constructor(_0x54c966,_0x47d361,_0xdada47=''){const _0x5c0e22=_0x463fb4;super(_0x54c966),this[_0x5c0e22(0x1d5)](_0x5c0e22(0x1e1),!0x0),this[_0x5c0e22(0x1d5)](_0x5c0e22(0x1d1),!0x1),this[_0x5c0e22(0x1d5)](_0x5c0e22(0x1a7),''),this[_0x5c0e22(0x1d5)](_0x5c0e22(0x1ce),''),this[_0x5c0e22(0x1d5)](_0x5c0e22(0x1ae),!0x1),this[_0x5c0e22(0x1d5)](_0x5c0e22(0x1e9),_0x140be6[_0x5c0e22(0x1b6)]),this[_0x5c0e22(0x1be)]=new _0xc5c753(),this[_0x5c0e22(0x1c7)]=new _0x440197(_0x54c966),this[_0x5c0e22(0x1ee)]=new _0x571836(_0x54c966,_0xdada47),this[_0x5c0e22(0x1ee)][_0x5c0e22(0x1c5)](_0x5c0e22(0x1d1))['to'](this),this[_0x5c0e22(0x1ee)][_0x5c0e22(0x1c5)](_0x5c0e22(0x1ce))['to'](this),this[_0x5c0e22(0x1a9)]=this[_0x5c0e22(0x1a2)](),this[_0x5c0e22(0x1a9)][_0x5c0e22(0x1c5)](_0x5c0e22(0x1e9))['to'](this),this[_0x5c0e22(0x1b0)]=this[_0x5c0e22(0x1ad)](),this[_0x5c0e22(0x1af)]=new _0x21eb9e(),this[_0x5c0e22(0x1df)]=new _0x1f11b1(),this[_0x5c0e22(0x1dc)]=this[_0x5c0e22(0x1d2)]([this[_0x5c0e22(0x1ee)],this[_0x5c0e22(0x1ee)][_0x5c0e22(0x1ef)],this[_0x5c0e22(0x1a9)],this[_0x5c0e22(0x1b0)]]),this[_0x5c0e22(0x1bf)]=new _0x2ce4f4({'focusables':this[_0x5c0e22(0x1dc)],'focusTracker':this[_0x5c0e22(0x1af)],'keystrokeHandler':this[_0x5c0e22(0x1df)],'actions':{'focusPrevious':_0x5c0e22(0x1a0),'focusNext':_0x5c0e22(0x1b1)}}),this[_0x5c0e22(0x1bf)][_0x5c0e22(0x1e6)](this[_0x5c0e22(0x1b0)][_0x5c0e22(0x1bf)]),this[_0x5c0e22(0x1b0)][_0x5c0e22(0x1db)][_0x5c0e22(0x1b2)][_0x5c0e22(0x1c5)](_0x5c0e22(0x1ce))['to'](this,_0x5c0e22(0x1a7));const _0x3c9250=this[_0x5c0e22(0x1e2)];this[_0x5c0e22(0x1dd)]({'tag':_0x5c0e22(0x1e4),'attributes':{'class':['ck',_0x5c0e22(0x1e8),_0x47d361],'tabindex':'-1'},'children':[{'tag':_0x5c0e22(0x1e4),'attributes':{'class':['ck',_0x5c0e22(0x1c0)]},'children':[{'tag':_0x5c0e22(0x1e4),'attributes':{'class':[_0x3c9250['if'](_0x5c0e22(0x1ae),_0x5c0e22(0x1ac),_0x59a7b9=>!_0x59a7b9)]},'children':[this[_0x5c0e22(0x1c7)]]},this[_0x5c0e22(0x1ee)],this[_0x5c0e22(0x1a9)],this[_0x5c0e22(0x1b0)]]}]});}[_0x463fb4(0x1a8)](){const _0x55821a=_0x463fb4;super[_0x55821a(0x1a8)](),this[_0x55821a(0x1af)][_0x55821a(0x1d8)](this[_0x55821a(0x1ee)][_0x55821a(0x1e0)]),this[_0x55821a(0x1af)][_0x55821a(0x1d8)](this[_0x55821a(0x1ee)][_0x55821a(0x1ef)][_0x55821a(0x1e0)]),this[_0x55821a(0x1af)][_0x55821a(0x1d8)](this[_0x55821a(0x1a9)][_0x55821a(0x1e0)]),this[_0x55821a(0x1af)][_0x55821a(0x1d8)](this[_0x55821a(0x1b0)][_0x55821a(0x1e0)]),this[_0x55821a(0x1df)][_0x55821a(0x1d9)](this[_0x55821a(0x1e0)]);}[_0x463fb4(0x1aa)](_0x37a981=0x1){const _0x1d7e33=_0x463fb4;-0x1===_0x37a981?this[_0x1d7e33(0x1bf)][_0x1d7e33(0x1c3)]():this[_0x1d7e33(0x1bf)][_0x1d7e33(0x1cf)]();}[_0x463fb4(0x1a4)](){const _0x3688ec=_0x463fb4;this[_0x3688ec(0x1a7)]='',this[_0x3688ec(0x1ce)]='',this[_0x3688ec(0x1ae)]=!0x1,this[_0x3688ec(0x1b0)][_0x3688ec(0x1a4)](),this[_0x3688ec(0x1ee)][_0x3688ec(0x1c8)]=!0x1,this[_0x3688ec(0x1a9)][_0x3688ec(0x1c8)]=!0x1;}[_0x463fb4(0x1ad)](){const _0x8fcbbc=_0x463fb4,_0x599ea6=this[_0x8fcbbc(0x1bd)],_0x52cb90=new _0x199067(_0x599ea6,{'queryView':{'label':_0x2a9dc5(_0x599ea6,_0x8fcbbc(0x19e)),'creator':_0x58c0f7,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2a9dc5(_0x599ea6,_0x8fcbbc(0x1f1)),'secondary':_0x2a9dc5(_0x599ea6,_0x8fcbbc(0x1e5))}}},'filteredView':this[_0x8fcbbc(0x1d4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x52cb90[_0x8fcbbc(0x1c5)](_0x8fcbbc(0x1e1))['to'](this,_0x8fcbbc(0x1e1),this,_0x8fcbbc(0x1d1),(_0xe88031,_0x11f6dc)=>_0xe88031&&!_0x11f6dc),this[_0x8fcbbc(0x1d9)](_0x52cb90,_0x8fcbbc(0x1cc),(_0x23b041,_0xe162e)=>{const _0x391888=_0x8fcbbc;this[_0x391888(0x1a7)]=_0xe162e;const _0x2c25e8=_0x58af0b(_0xe162e);this[_0x391888(0x1b4)](_0x391888(0x1da),_0x2c25e8),_0xe162e[_0x391888(0x1bb)]()&&this[_0x391888(0x1be)][_0x391888(0x1d8)]({'prompt':_0x2c25e8},0x0);},{'priority':_0x8fcbbc(0x1d0)}),_0x52cb90;}[_0x463fb4(0x1d4)](){const _0x7b80a1=_0x463fb4,_0x567778=new _0x330fee(this[_0x7b80a1(0x1bd)]);return _0x567778[_0x7b80a1(0x1e3)][_0x7b80a1(0x1c2)][_0x7b80a1(0x19f)](this[_0x7b80a1(0x1be)])['as'](_0x33fa40),_0x567778['on'](_0x7b80a1(0x1ed),()=>{const _0x105467=_0x7b80a1;this[_0x105467(0x1be)][_0x105467(0x1ba)](),this[_0x105467(0x1b0)][_0x105467(0x1c6)](''),this[_0x105467(0x1b0)][_0x105467(0x1aa)]();}),_0x567778;}[_0x463fb4(0x1a2)](){const _0xd810bc=_0x463fb4,_0x288e36=new _0x191e92(this[_0xd810bc(0x1bd)]);return _0x288e36[_0xd810bc(0x1e7)][_0xd810bc(0x1c5)](_0xd810bc(0x1e1))['to'](this,_0xd810bc(0x1e1),this,_0xd810bc(0x1d1),this,_0xd810bc(0x1ce),(_0x5d35d4,_0x4d4888,_0x3ce332)=>_0x5d35d4&&!_0x4d4888&&!!_0x3ce332),_0x288e36[_0xd810bc(0x1e7)][_0xd810bc(0x1ab)](_0xd810bc(0x1c4))['to'](this,_0xd810bc(0x1b5)),_0x288e36[_0xd810bc(0x1ec)][_0xd810bc(0x1c5)](_0xd810bc(0x1e1))['to'](this,_0xd810bc(0x1e1),this,_0xd810bc(0x1d1),this,_0xd810bc(0x1ce),(_0x50f793,_0x377946,_0x4e1ba3)=>_0x50f793&&!_0x377946&&!!_0x4e1ba3),_0x288e36[_0xd810bc(0x1ec)][_0xd810bc(0x1ab)](_0xd810bc(0x1c4))['to'](this,_0xd810bc(0x1a3)),_0x288e36[_0xd810bc(0x1c1)][_0xd810bc(0x1c5)](_0xd810bc(0x1e1))['to'](this,_0xd810bc(0x1e1),this,_0xd810bc(0x1d1),(_0x32e74e,_0x388732)=>_0x32e74e&&!_0x388732),_0x288e36[_0xd810bc(0x1c1)][_0xd810bc(0x1ab)](_0xd810bc(0x1c4))['to'](this,_0xd810bc(0x1ea)),_0x288e36[_0xd810bc(0x1cd)][_0xd810bc(0x1c5)](_0xd810bc(0x1e1))['to'](this,_0xd810bc(0x1d1)),_0x288e36[_0xd810bc(0x1cd)][_0xd810bc(0x1ab)](_0xd810bc(0x1c4))['to'](this,_0xd810bc(0x1de)),_0x288e36;}[_0x463fb4(0x1b3)](){const _0x178083=_0x463fb4;this[_0x178083(0x1ce)]='',this[_0x178083(0x1ae)]=!0x1,this[_0x178083(0x1d1)]=!0x0,this[_0x178083(0x1ee)][_0x178083(0x1c8)]=!0x0,this[_0x178083(0x1a9)][_0x178083(0x1c8)]=!0x0,this[_0x178083(0x1ee)][_0x178083(0x1aa)]();}[_0x463fb4(0x1a5)](){const _0x20e7a6=_0x463fb4,_0x366652=this[_0x20e7a6(0x1bd)];this[_0x20e7a6(0x1d1)]=!0x1,this[_0x20e7a6(0x1a7)]='',this[_0x20e7a6(0x1b0)][_0x20e7a6(0x1a4)](),this[_0x20e7a6(0x1ce)]&&(this[_0x20e7a6(0x1b0)][_0x20e7a6(0x1db)][_0x20e7a6(0x1f2)]=_0x2a9dc5(_0x366652,_0x20e7a6(0x1b8)));}[_0x463fb4(0x1f0)](_0x50c5d7){const _0x1744a7=_0x463fb4,_0x4f9a00=this[_0x1744a7(0x1bd)];this[_0x1744a7(0x1a5)](),this[_0x1744a7(0x1ae)]=!0x0,this[_0x1744a7(0x1c7)][_0x1744a7(0x1f3)]=_0x50c5d7||_0x2a9dc5(_0x4f9a00,_0x1744a7(0x1ca)),this[_0x1744a7(0x1ce)]||(this[_0x1744a7(0x1ee)][_0x1744a7(0x1c8)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x14efb9,_0x27be86){const _0x366555=_0x363b,_0x207364=_0x14efb9();while(!![]){try{const _0x35c9fe=parseInt(_0x366555(0x1a7))/0x1+parseInt(_0x366555(0x1a4))/0x2+-parseInt(_0x366555(0x1a2))/0x3+-parseInt(_0x366555(0x19a))/0x4+-parseInt(_0x366555(0x199))/0x5*(parseInt(_0x366555(0x19c))/0x6)+-parseInt(_0x366555(0x1a3))/0x7+parseInt(_0x366555(0x1a0))/0x8*(parseInt(_0x366555(0x1a1))/0x9);if(_0x35c9fe===_0x27be86)break;else _0x207364['push'](_0x207364['shift']());}catch(_0x55ad6a){_0x207364['push'](_0x207364['shift']());}}}(_0x589b,0x6e9a8));function _0x363b(_0x43c151,_0x5ebe33){const _0x589b7f=_0x589b();return _0x363b=function(_0x363b25,_0x457c27){_0x363b25=_0x363b25-0x198;let _0x2e856c=_0x589b7f[_0x363b25];return _0x2e856c;},_0x363b(_0x43c151,_0x5ebe33);}import{ListItemView as _0x201b50,ButtonView as _0xa67036,ButtonLabelView as _0x2aeecd}from'ckeditor5/src/ui.js';import{unescape as _0x25aa45}from'es-toolkit/compat';function _0x589b(){const _0x4e6b43=['8ZMODVV','14483205VLiCCb','1532073FOVtRC','4753329XcXqht','1461560JBuyEo','locale','children','4706mGnreJ','add','335845TmLByr','2001816FVWDQH','fire','18qwxaZQ','set','prompt','execute'];_0x589b=function(){return _0x4e6b43;};return _0x589b();}export class AIHistoryListItemView extends _0x201b50{constructor(_0x3a3b13){const _0x1784ef=_0x363b;super();const _0x57128e=new _0x2aeecd(),_0x50c8c4=new _0xa67036(this[_0x1784ef(0x1a5)],_0x57128e);this[_0x1784ef(0x1a6)][_0x1784ef(0x198)](_0x50c8c4),_0x50c8c4[_0x1784ef(0x19d)]({'label':_0x3a3b13[_0x1784ef(0x19e)],'withText':!0x0}),_0x50c8c4['on'](_0x1784ef(0x19f),()=>{const _0x4f8d9a=_0x1784ef;this[_0x4f8d9a(0x19b)](_0x4f8d9a(0x19f),{'value':_0x25aa45(_0x3a3b13[_0x4f8d9a(0x19e)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x55df85=_0x5699;(function(_0x285695,_0x47c51f){const _0xb6de04=_0x5699,_0xf8d5b=_0x285695();while(!![]){try{const _0xa31b42=parseInt(_0xb6de04(0xbd))/0x1*(parseInt(_0xb6de04(0xba))/0x2)+-parseInt(_0xb6de04(0xb9))/0x3+parseInt(_0xb6de04(0xc0))/0x4+parseInt(_0xb6de04(0xc1))/0x5*(parseInt(_0xb6de04(0xa7))/0x6)+-parseInt(_0xb6de04(0xbb))/0x7*(-parseInt(_0xb6de04(0xab))/0x8)+parseInt(_0xb6de04(0xaa))/0x9+-parseInt(_0xb6de04(0xa8))/0xa*(parseInt(_0xb6de04(0xb1))/0xb);if(_0xa31b42===_0x47c51f)break;else _0xf8d5b['push'](_0xf8d5b['shift']());}catch(_0x276661){_0xf8d5b['push'](_0xf8d5b['shift']());}}}(_0x4940,0x1b831));function _0x5699(_0x3a85a7,_0x52c4f9){const _0x4940b2=_0x4940();return _0x5699=function(_0x56999d,_0x153d54){_0x56999d=_0x56999d-0xa6;let _0x14ef8a=_0x4940b2[_0x56999d];return _0x14ef8a;},_0x5699(_0x3a85a7,_0x52c4f9);}import{ListView as _0x14baea,ListItemGroupView as _0x206820,ButtonView as _0x5b0c15}from'ckeditor5/src/ui.js';import{getTranslation as _0x27c3e9}from'../../utils/common-translations.js';function _0x4940(){const _0x73c7d4=['Prompt\x20history','add','Clear','items','_createClearHistoryButton','104093IarXwd','length','fire','locale','filter','children','set','label','94782yiadFA','2FiGflk','238mTOWtk','clearHistory','94697ETEFKi','historyGroupView','clearHistoryButton','895140UQFPij','5jHWHJI','execute','436668vqyaqi','520wnRRBK','delegate','238311mHyCQd','51440ClOZFo'];_0x4940=function(){return _0x73c7d4;};return _0x4940();}export class AIHistoryListView extends _0x14baea{[_0x55df85(0xbe)];[_0x55df85(0xbf)];constructor(_0x155830){const _0x5ef5ff=_0x55df85;super(_0x155830),this[_0x5ef5ff(0xbf)]=this[_0x5ef5ff(0xb0)](),this[_0x5ef5ff(0xbe)]=new _0x206820(),this[_0x5ef5ff(0xbe)][_0x5ef5ff(0xb6)][_0x5ef5ff(0xad)](this[_0x5ef5ff(0xbf)],0x1),this[_0x5ef5ff(0xbe)][_0x5ef5ff(0xb8)]=_0x27c3e9(_0x155830,_0x5ef5ff(0xac)),this[_0x5ef5ff(0xbe)][_0x5ef5ff(0xaf)][_0x5ef5ff(0xa9)](_0x5ef5ff(0xa6))['to'](this),this[_0x5ef5ff(0xaf)][_0x5ef5ff(0xad)](this[_0x5ef5ff(0xbe)]);}[_0x55df85(0xb5)](){const _0x3707af=_0x55df85;let _0x4aebf8=0x0;for(const _0x367707 of this[_0x3707af(0xaf)])_0x4aebf8+=_0x367707[_0x3707af(0xaf)][_0x3707af(0xb2)];return{'resultsCount':_0x4aebf8,'totalItemsCount':_0x4aebf8};}[_0x55df85(0xb0)](){const _0x453628=_0x55df85,_0x26f52c=this[_0x453628(0xb4)],_0x1e5ae6=new _0x5b0c15(this[_0x453628(0xb4)]);return _0x1e5ae6[_0x453628(0xb7)]({'label':'('+_0x27c3e9(_0x26f52c,_0x453628(0xae))+')','withText':!0x0}),_0x1e5ae6['on'](_0x453628(0xa6),()=>this[_0x453628(0xb3)](_0x453628(0xbc))),_0x1e5ae6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4a86(){const _0x531a7d=['trim','1281196vzoGxZ','last','856132PVjlGr','map','2292987dEtAKH','_loadFromSessionStorage','243784uJfvux','toLowerCase','11714680TaYVdw','138010nYtvRk','stringify','add','remove','CKEditor/AIFormView/PromptHistory','9czZozq','1680MGWLJz','parse','addMany','_saveToSessionStorage','getItem','setItem','175Gtfung','length','prompt','14028pXZaYA'];_0x4a86=function(){return _0x531a7d;};return _0x4a86();}function _0x27dd(_0xb42413,_0x17e487){const _0x4a8602=_0x4a86();return _0x27dd=function(_0x27dd17,_0x1c7682){_0x27dd17=_0x27dd17-0xda;let _0x339943=_0x4a8602[_0x27dd17];return _0x339943;},_0x27dd(_0xb42413,_0x17e487);}const _0x40561e=_0x27dd;(function(_0x1a5944,_0x2eafdd){const _0xca11c=_0x27dd,_0x1bf328=_0x1a5944();while(!![]){try{const _0x5e15fe=parseInt(_0xca11c(0xe6))/0x1+-parseInt(_0xca11c(0xdf))/0x2+-parseInt(_0xca11c(0xe1))/0x3+parseInt(_0xca11c(0xdd))/0x4+-parseInt(_0xca11c(0xec))/0x5*(parseInt(_0xca11c(0xdb))/0x6)+parseInt(_0xca11c(0xf2))/0x7*(parseInt(_0xca11c(0xe3))/0x8)+-parseInt(_0xca11c(0xeb))/0x9*(-parseInt(_0xca11c(0xe5))/0xa);if(_0x5e15fe===_0x2eafdd)break;else _0x1bf328['push'](_0x1bf328['shift']());}catch(_0x3250ec){_0x1bf328['push'](_0x1bf328['shift']());}}}(_0x4a86,0x64fc7));import{Collection as _0x5bc5ee}from'ckeditor5/src/utils.js';const So=_0x40561e(0xea);export class PromptHistory extends _0x5bc5ee{constructor(){const _0x126835=_0x40561e;super(),this[_0x126835(0xe2)](),this['on'](_0x126835(0xe8),(_0x25fcd5,_0x50a58e)=>{const _0xed3fd7=_0x126835,_0xc13d11=go(_0x50a58e[_0xed3fd7(0xda)]);for(const _0x1be5e4 of this)if(_0x1be5e4!=_0x50a58e&&go(_0x1be5e4[_0xed3fd7(0xda)])===_0xc13d11){this[_0xed3fd7(0xe9)](_0x1be5e4);break;}this[_0xed3fd7(0xf3)]>0x14&&this[_0xed3fd7(0xe9)](this[_0xed3fd7(0xde)]),this[_0xed3fd7(0xef)]();}),this['on'](_0x126835(0xe9),()=>{const _0x30c2df=_0x126835;this[_0x30c2df(0xef)]();});}[_0x40561e(0xe2)](){const _0x5e7b65=_0x40561e,_0x57e0ed=sessionStorage[_0x5e7b65(0xf0)](So)||'[]';this[_0x5e7b65(0xee)](JSON[_0x5e7b65(0xed)](_0x57e0ed));}[_0x40561e(0xef)](){const _0x368c3b=_0x40561e;sessionStorage[_0x368c3b(0xf1)](So,JSON[_0x368c3b(0xe7)](this[_0x368c3b(0xe0)](_0x5e3479=>_0x5e3479)));}}function go(_0x45248c){const _0x15ca1e=_0x40561e;return _0x45248c[_0x15ca1e(0xe4)]()[_0x15ca1e(0xdc)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x588b6e=_0xdad3;(function(_0x5c7ff0,_0x1a5579){const _0x1dc58e=_0xdad3,_0x5bd0a1=_0x5c7ff0();while(!![]){try{const _0x3fda55=parseInt(_0x1dc58e(0x189))/0x1*(-parseInt(_0x1dc58e(0x19d))/0x2)+parseInt(_0x1dc58e(0x197))/0x3*(-parseInt(_0x1dc58e(0x185))/0x4)+-parseInt(_0x1dc58e(0x18e))/0x5*(parseInt(_0x1dc58e(0x198))/0x6)+-parseInt(_0x1dc58e(0x18a))/0x7+parseInt(_0x1dc58e(0x180))/0x8*(-parseInt(_0x1dc58e(0x17e))/0x9)+parseInt(_0x1dc58e(0x1a4))/0xa+parseInt(_0x1dc58e(0x19b))/0xb;if(_0x3fda55===_0x1a5579)break;else _0x5bd0a1['push'](_0x5bd0a1['shift']());}catch(_0xfc77ef){_0x5bd0a1['push'](_0x5bd0a1['shift']());}}}(_0x1fb3,0x2a460));import{Command as _0x5a6600}from'ckeditor5/src/core.js';function _0xdad3(_0x4fc0b0,_0x2f6734){const _0x1fb33d=_0x1fb3();return _0xdad3=function(_0xdad3f7,_0x4bd125){_0xdad3f7=_0xdad3f7-0x17c;let _0x240371=_0x1fb33d[_0xdad3f7];return _0x240371;},_0xdad3(_0x4fc0b0,_0x2f6734);}import{AIAssistantUI as _0x52c893}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x5a6600{[_0x588b6e(0x181)];constructor(_0x4773de,_0x1b1056){const _0x574276=_0x588b6e;super(_0x4773de),this[_0x574276(0x181)]=_0x1b1056,this[_0x574276(0x19e)](_0x574276(0x18b),[]),this['on'](_0x574276(0x17d),(_0x5f0a10,_0x6c86b5,_0x1b5b8a)=>{const _0xfc6f5b=_0x574276;this[_0xfc6f5b(0x1a5)]&&(this[_0xfc6f5b(0x18b)]=ns(this[_0xfc6f5b(0x181)],_0x1b5b8a));}),this[_0x574276(0x19e)](_0x574276(0x1a0),!0x1),this['on'](_0x574276(0x1a3),(_0x5597fd,_0x4ca269,_0x3a510c)=>{const _0x75928a=_0x574276;this[_0x75928a(0x18b)]=_0x3a510c?ns(this[_0x75928a(0x181)],this[_0x75928a(0x1a0)]):[];});}[_0x588b6e(0x190)](){const _0x198664=_0x588b6e,_0x1df627=this[_0x198664(0x19a)][_0x198664(0x199)];this[_0x198664(0x1a0)]=function(_0x29f71d){const _0x5caba7=_0x198664,_0x4f2f48=_0x29f71d[_0x5caba7(0x192)][_0x5caba7(0x17c)];return _0x4f2f48[_0x5caba7(0x183)]?0x0!==[..._0x4f2f48[_0x5caba7(0x17f)]()][_0x5caba7(0x1a8)]&&![..._0x4f2f48[_0x5caba7(0x17f)]()][0x0][_0x5caba7(0x182)]:!!_0x29f71d[_0x5caba7(0x187)](_0x4f2f48[_0x5caba7(0x186)]());}(_0x1df627);const _0x4f1c68=_0x1df627[_0x198664(0x192)][_0x198664(0x17c)],_0x51a3d1=this[_0x198664(0x19a)][_0x198664(0x194)][_0x198664(0x193)](_0x198664(0x1a7));for(const _0x2e3c37 of _0x4f1c68[_0x198664(0x191)]())for(const _0x19fecb of _0x2e3c37[_0x198664(0x18d)]())if(_0x19fecb['is'](_0x198664(0x1a1))&&_0x51a3d1[_0x198664(0x188)](_0x19fecb[_0x198664(0x1a2)]))return void(this[_0x198664(0x1a5)]=!0x1);this[_0x198664(0x1a5)]=!0x0;}[_0x588b6e(0x195)](_0x965141='',_0x1eed73='',_0x37d5c3=_0x588b6e(0x18f)){const _0x50b4eb=_0x588b6e;this[_0x50b4eb(0x19a)][_0x50b4eb(0x19f)][_0x50b4eb(0x193)](_0x52c893)[_0x50b4eb(0x18c)](_0x965141,_0x1eed73,_0x37d5c3);}}function ns(_0x179085,_0x5f3bc8){const _0x4443a1=_0x588b6e,_0x421466=new Set();for(const _0xa57b72 of _0x179085[_0x4443a1(0x1a6)]())(_0x5f3bc8||!0x1===_0xa57b72[_0x4443a1(0x19c)])&&_0x421466[_0x4443a1(0x196)](_0xa57b72['id']);return Array[_0x4443a1(0x184)](_0x421466);}function _0x1fb3(){const _0x1c291f=['12sYvmKI','model','editor','12669096paLgdG','requiresContent','30354rZmGvn','set','plugins','_hasContext','element','name','change:isEnabled','1646690PKkViM','isEnabled','values','ai.assistant.disabledElements','length','selection','change:_hasContext','113733uefTZt','getSelectedBlocks','216wNlGHa','_commandDefinitions','isEmpty','isCollapsed','from','76eAJJJD','getFirstRange','hasContent','includes','17LbxbMG','2071524ixMxLO','enabledCommandsIds','showUI','getItems','141435StwZKB','custom','refresh','getRanges','document','get','config','execute','add','30243IIZzVN'];_0x1fb3=function(){return _0x1c291f;};return _0x1fb3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x562548,_0x23354c,_0x1c3f22){const t=_0x562548['t'];switch(_0x23354c){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',_0x1c3f22);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1c3f22);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'},_0x1c3f22);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 _0x23354c;}}
|
|
@@ -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(_0x1711e9,_0x2cce2c){const _0x3f81ac=(0x0,_0x2cce2c['t'])('Other');return _0x1711e9['length']?'groupId'in _0x1711e9[0x0]?_0x1711e9:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3f81ac,'order':0x1/0x0,'commands':_0x1711e9}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3f81ac,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e451f=_0x9bf6;(function(_0x471760,_0x19c585){const _0x54fde7=_0x9bf6,_0x5c7f18=_0x471760();while(!![]){try{const _0x18d5e7=-parseInt(_0x54fde7(0x1b9))/0x1*(parseInt(_0x54fde7(0x191))/0x2)+parseInt(_0x54fde7(0x1be))/0x3*(-parseInt(_0x54fde7(0x19a))/0x4)+-parseInt(_0x54fde7(0x1c8))/0x5*(-parseInt(_0x54fde7(0x182))/0x6)+-parseInt(_0x54fde7(0x18f))/0x7*(parseInt(_0x54fde7(0x18d))/0x8)+parseInt(_0x54fde7(0x1a4))/0x9*(parseInt(_0x54fde7(0x1ad))/0xa)+-parseInt(_0x54fde7(0x19d))/0xb+parseInt(_0x54fde7(0x178))/0xc*(parseInt(_0x54fde7(0x187))/0xd);if(_0x18d5e7===_0x19c585)break;else _0x5c7f18['push'](_0x5c7f18['shift']());}catch(_0x1975e4){_0x5c7f18['push'](_0x5c7f18['shift']());}}}(_0x2ff3,0x1b81f));import{ContextPlugin as _0x1c3d97}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x4073c3,AIEditing as _0x52f661}from'../aicore/aiediting.js';function _0x9bf6(_0x22d504,_0x25c901){const _0x2ff3ed=_0x2ff3();return _0x9bf6=function(_0x9bf66c,_0x4fbe5d){_0x9bf66c=_0x9bf66c-0x176;let _0x4cbf68=_0x2ff3ed[_0x9bf66c];return _0x4cbf68;},_0x9bf6(_0x22d504,_0x25c901);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x1f7194}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x22cf84,Rect as _0x3bd643,scrollViewportToShowTarget as _0x548605}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xd82868}from'../aicore/utils/geteditorfromcontext.js';function _0x2ff3(){const _0xf2b3ff=['width','showFakeVisualSelection','start','ck-ai-balloon\x20','72iYllrc','getBoundingRect','iconView','showBlockingError','_calculateOptimalTopPosition','_showFakeVisualSelection','startsWith','high','markers','headerView','210468IPqcUd','length','ranges','isPremiumPlugin','getIntersection','924677GKJcjA','max','left','fire','rootName','getVisible','104bJsMII','bottom','79814uMBOpE','plugins','164746ncLQmc','ai-balloon-','pluginName','isEqual','once','AI_BALLOON_SELECTION_REMOVED_ERROR','listenTo','_isUpdatingMarkers','dialogClosed','412nAHqzH','view','differ','686224mQgzyT','delegate','open','getChangedMarkers','_setupFakeVisualSelectionMarkerRemovalListener','hideError','bind','5562jRXSKY','_calculateDialogPosition','ai-balloon-selection','selectionRemoved','context','AIBalloon','round','$graveyard','index','2120tyQxNf','requires','root','model','hideFakeVisualSelection','window','_getSelectionElements','_showDialog','end','close','content','hide','2cVzTUT','map','updatePosition','beforeDialogClosed','top','5097TlIaAF','_updateDialog','mainView','isOfficialPlugin','getMarkersGroup','document','ai-selection','filter','height','locale','15neNjtU','_hideFakeVisualSelection','_cleanupFakeVisualSelectionMarkerRemovalListener','show','label','stopListening','get','Dialog','_currentConfig','editing','isOpen','change'];_0x2ff3=function(){return _0xf2b3ff;};return _0x2ff3();}import{getTranslation as _0x386c3f}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xa9ef7e}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0xa9ef7e,_0x5e451f(0x199),_0x5e451f(0x1a7)];const $=0xa;export class AIBalloon extends _0x1c3d97{static get[_0x5e451f(0x1ae)](){return[_0x52f661];}static get[_0x5e451f(0x193)](){const _0x8eb6f8=_0x5e451f;return _0x8eb6f8(0x1a9);}static get[_0x5e451f(0x1c1)](){return!0x0;}static get[_0x5e451f(0x185)](){return!0x0;}[_0x5e451f(0x1d2)]=!0x1;[_0x5e451f(0x1d0)];[_0x5e451f(0x198)]=!0x1;[_0x5e451f(0x19f)](_0x1d390f){const _0x1a53f5=_0x5e451f,{id:_0x3cf1dc}=this[_0x1a53f5(0x1d0)]??{};this[_0x1a53f5(0x1d0)]=_0x1d390f;const {id:_0x137876}=this[_0x1a53f5(0x1d0)];this[_0x1a53f5(0x1d2)]&&_0x3cf1dc===_0x137876?this[_0x1a53f5(0x1bf)]():this[_0x1a53f5(0x1b4)]();}[_0x5e451f(0x1b6)](){const _0xd6dc32=_0x5e451f,_0x360d8f=_0xd82868(this[_0xd6dc32(0x1a8)])[_0xd6dc32(0x190)][_0xd6dc32(0x1ce)](_0xd6dc32(0x1cf));_0x360d8f[_0xd6dc32(0x1d2)]&&this[_0xd6dc32(0x1d0)]&&_0x360d8f['id']===this[_0xd6dc32(0x1d0)]['id']&&_0x360d8f[_0xd6dc32(0x1b8)]();}[_0x5e451f(0x1bf)](){const _0x41ed53=_0x5e451f,_0x33489a=_0xd82868(this[_0x41ed53(0x1a8)])[_0x41ed53(0x190)][_0x41ed53(0x1ce)](_0x41ed53(0x1cf)),{icon:_0x48aa35,title:_0x4ab4af}=this[_0x41ed53(0x1d0)];_0x33489a[_0x41ed53(0x19b)]?.[_0x41ed53(0x181)]&&(_0x33489a[_0x41ed53(0x19b)][_0x41ed53(0x181)][_0x41ed53(0x1cc)]=_0x4ab4af,_0x33489a[_0x41ed53(0x19b)][_0x41ed53(0x181)][_0x41ed53(0x17a)]&&_0x48aa35&&(_0x33489a[_0x41ed53(0x19b)][_0x41ed53(0x181)][_0x41ed53(0x17a)][_0x41ed53(0x1b7)]=_0x48aa35)),this[_0x41ed53(0x198)]=!0x0,this[_0x41ed53(0x17d)](),this[_0x41ed53(0x198)]=!0x1,_0x33489a[_0x41ed53(0x19b)]?.[_0x41ed53(0x1bb)]();}[_0x5e451f(0x17d)](){const _0x39188f=_0x5e451f;this[_0x39188f(0x1a8)][_0x39188f(0x190)][_0x39188f(0x1ce)](_0x52f661)[_0x39188f(0x1d5)](this[_0x39188f(0x1d0)][_0x39188f(0x184)],_0x39188f(0x192)+this[_0x39188f(0x1d0)][_0x39188f(0x1ac)],!0x0,!0x0);}[_0x5e451f(0x1c9)](_0x14e70c){const _0x25d1db=_0x5e451f;this[_0x25d1db(0x1a8)][_0x25d1db(0x190)][_0x25d1db(0x1ce)](_0x52f661)[_0x25d1db(0x1b1)](_0x25d1db(0x192)+_0x14e70c);}[_0x5e451f(0x1b4)](){const _0x221188=_0x5e451f,_0x582d62=_0xd82868(this[_0x221188(0x1a8)])[_0x221188(0x190)][_0x221188(0x1ce)](_0x221188(0x1cf)),{id:_0x4a3206,title:_0x4eec55,icon:_0x5df183,class:_0x53a761,mainView:_0x14c549}=this[_0x221188(0x1d0)];_0x14c549[_0x221188(0x19e)](..._0xa9ef7e)['to'](this),_0x582d62[_0x221188(0x1cb)]({'title':_0x4eec55,'icon':_0x5df183,'hasCloseButton':!0x0,'id':_0x4a3206,'position':this[_0x221188(0x1a5)][_0x221188(0x1a3)](this),'className':_0x221188(0x177)+(_0x53a761||''),'content':_0x14c549,'onShow':_0x9dfe4=>{const _0x1fa993=_0x221188;this[_0x1fa993(0x17d)](),this[_0x1fa993(0x1a1)]();const _0x3bbc30=this[_0x1fa993(0x1b3)]();_0x3bbc30&&_0x3bbc30[0x0]&&_0x548605({'target':_0x3bbc30[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x1fa993(0x1d2)]=!0x0,_0x9dfe4[_0x1fa993(0x195)](_0x1fa993(0x1b8),()=>{const _0x3bd2b0=_0x1fa993;this[_0x3bd2b0(0x18a)](_0x3bd2b0(0x1bc),{'id':_0x4a3206});},{'priority':_0x1fa993(0x17f)});},'onHide':()=>{const _0x1aa972=_0x221188;this[_0x1aa972(0x1c9)](this[_0x1aa972(0x1d0)][_0x1aa972(0x1ac)]),this[_0x1aa972(0x1ca)](),this[_0x1aa972(0x18a)](_0x1aa972(0x199),{'id':_0x4a3206}),this[_0x1aa972(0x1d2)]=!0x1;}});}[_0x5e451f(0x1a5)](_0x2927c6,_0x63090){const _0x4ff2e2=_0x5e451f;if(!_0x63090)return null;const _0x172547=this[_0x4ff2e2(0x1b3)]();if(!_0x172547||0x0===_0x172547[_0x4ff2e2(0x183)])return{'left':Math[_0x4ff2e2(0x1aa)](_0x63090[_0x4ff2e2(0x189)]+_0x63090[_0x4ff2e2(0x1d4)]/0x2-_0x2927c6[_0x4ff2e2(0x1d4)]/0x2),'top':Math[_0x4ff2e2(0x1aa)](_0x63090[_0x4ff2e2(0x1bd)]+_0x63090[_0x4ff2e2(0x1c6)]/0x2-_0x2927c6[_0x4ff2e2(0x1c6)]/0x2)};const _0x1e59f1=Math[_0x4ff2e2(0x1aa)](_0x63090[_0x4ff2e2(0x189)]+_0x63090[_0x4ff2e2(0x1d4)]/0x2-_0x2927c6[_0x4ff2e2(0x1d4)]/0x2),_0x33b4e2=_0x172547[_0x4ff2e2(0x1ba)](_0x1d4639=>new _0x3bd643(_0x1d4639)),_0x1b2330=_0x2927c6[_0x4ff2e2(0x1c6)];return{'left':_0x1e59f1,'top':this[_0x4ff2e2(0x17c)](_0x33b4e2,_0x1b2330,_0x63090)};}[_0x5e451f(0x17c)](_0x263e80,_0x2d2578,_0x245a52){const _0x58e1d5=_0x5e451f,_0x276c09=new _0x3bd643(_0x22cf84[_0x58e1d5(0x1b2)]),_0x46f431=_0x263e80[_0x58e1d5(0x1ba)](_0x2501e8=>_0x2501e8[_0x58e1d5(0x18c)]())[_0x58e1d5(0x1c5)](_0x53b6ad=>_0x53b6ad),_0x50b5e0=_0x3bd643[_0x58e1d5(0x179)](_0x46f431);if(!_0x50b5e0)return Math[_0x58e1d5(0x1aa)](_0x245a52[_0x58e1d5(0x1bd)]+_0x245a52[_0x58e1d5(0x1c6)]/0x2);const _0x289a61=_0x276c09[_0x58e1d5(0x186)](_0x50b5e0);if(!_0x289a61)return Math[_0x58e1d5(0x1aa)](_0x245a52[_0x58e1d5(0x1bd)]+_0x245a52[_0x58e1d5(0x1c6)]/0x2);const _0x4b170e=_0x245a52[_0x58e1d5(0x18c)](),_0xc4427a=_0x4b170e&&_0x50b5e0[_0x58e1d5(0x1c6)]>_0x4b170e[_0x58e1d5(0x1c6)],_0x4f9081=_0x289a61[_0x58e1d5(0x1bd)],_0x183a09=_0x289a61[_0x58e1d5(0x18e)];if(_0xc4427a){const _0x43549c=(_0x4b170e||_0x276c09)[_0x58e1d5(0x1c6)]/0x2-_0x2d2578/0x2,_0x2c3a0c=_0x4f9081-$-_0x245a52[_0x58e1d5(0x1bd)],_0x21ae29=_0x245a52[_0x58e1d5(0x18e)]-_0x183a09-$;return _0x2c3a0c>=_0x2d2578?Math[_0x58e1d5(0x188)]($,_0x4f9081-_0x2d2578-$):_0x21ae29>=_0x2d2578?_0x183a09+$:Math[_0x58e1d5(0x188)]($,_0x43549c);}const _0x1a13bd=_0x4f9081-_0x2d2578,_0x384172=_0x245a52[_0x58e1d5(0x18e)]-_0x183a09-$,_0x433397=_0x4f9081-$-_0x245a52[_0x58e1d5(0x1bd)];let _0x57c0ff;if(_0x384172>=_0x2d2578)_0x57c0ff=_0x183a09+$;else{if(_0x433397>=_0x2d2578)_0x57c0ff=_0x1a13bd-$;else _0x57c0ff=_0x4f9081+_0x50b5e0[_0x58e1d5(0x1c6)]/0x2-_0x2d2578/0x2;}return _0x57c0ff;}[_0x5e451f(0x1a1)](){const _0x2fa68a=_0x5e451f,_0x5b2154=_0xd82868(this[_0x2fa68a(0x1a8)]);this[_0x2fa68a(0x197)](_0x5b2154[_0x2fa68a(0x1b0)][_0x2fa68a(0x1c3)],_0x2fa68a(0x1d3),()=>{const _0x19b89f=_0x2fa68a;if(!this[_0x19b89f(0x198)]){for(const {name:_0x188ad6,data:{newRange:_0x31837e}}of _0x5b2154[_0x19b89f(0x1b0)][_0x19b89f(0x1c3)][_0x19b89f(0x19c)][_0x19b89f(0x1a0)]())if(_0x188ad6[_0x19b89f(0x17e)](_0x4073c3+':')&&(_0x31837e&&(_0x31837e[_0x19b89f(0x176)][_0x19b89f(0x194)](_0x31837e[_0x19b89f(0x1b5)])||_0x19b89f(0x1ab)==_0x31837e[_0x19b89f(0x1af)][_0x19b89f(0x18b)])||null==_0x31837e)){const _0x558cdb=_0x386c3f(this[_0x19b89f(0x1a8)][_0x19b89f(0x1c7)],_0x19b89f(0x196));this[_0x19b89f(0x1d0)][_0x19b89f(0x1c0)][_0x19b89f(0x17b)](_0x558cdb),this[_0x19b89f(0x18a)](_0x19b89f(0x1a7));}}});}[_0x5e451f(0x1ca)](){const _0x59225f=_0x5e451f,_0x30507e=_0xd82868(this[_0x59225f(0x1a8)]);this[_0x59225f(0x1d0)][_0x59225f(0x1c0)][_0x59225f(0x1a2)](),this[_0x59225f(0x1cd)](_0x30507e[_0x59225f(0x1b0)][_0x59225f(0x1c3)]);}[_0x5e451f(0x1b3)](){const _0x2dcfb0=_0x5e451f,_0x213ae2=_0xd82868(this[_0x2dcfb0(0x1a8)]);return _0x1f7194(_0x213ae2[_0x2dcfb0(0x1d1)],[..._0x213ae2[_0x2dcfb0(0x1b0)][_0x2dcfb0(0x180)][_0x2dcfb0(0x1c2)](_0x2dcfb0(0x1c4)),..._0x213ae2[_0x2dcfb0(0x1b0)][_0x2dcfb0(0x180)][_0x2dcfb0(0x1c2)](_0x2dcfb0(0x1a6))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3adefc=_0x3635;(function(_0x50f8b7,_0xc4f867){const _0x6376e7=_0x3635,_0x525d4b=_0x50f8b7();while(!![]){try{const _0x309c16=-parseInt(_0x6376e7(0x168))/0x1+-parseInt(_0x6376e7(0x151))/0x2+parseInt(_0x6376e7(0x15c))/0x3*(-parseInt(_0x6376e7(0x166))/0x4)+parseInt(_0x6376e7(0x167))/0x5*(parseInt(_0x6376e7(0x14f))/0x6)+-parseInt(_0x6376e7(0x161))/0x7*(parseInt(_0x6376e7(0x15f))/0x8)+parseInt(_0x6376e7(0x164))/0x9*(parseInt(_0x6376e7(0x155))/0xa)+-parseInt(_0x6376e7(0x15b))/0xb*(-parseInt(_0x6376e7(0x14c))/0xc);if(_0x309c16===_0xc4f867)break;else _0x525d4b['push'](_0x525d4b['shift']());}catch(_0x1654c7){_0x525d4b['push'](_0x525d4b['shift']());}}}(_0x522b,0x36d82));function _0x522b(){const _0x13d8f2=['762RqmOGN','insertSuggestion','751056ZQtjCP','span','applySuggestion','showBlockingError','88630cCoMOU','_createErrorView','showPrevious','_errorView','set','ck-hidden','2761957rSUFyl','43671JfnNxv','_isErrorVisible','showNext','1187808xTigtT','bindTemplate','21gGugpO','ck-ai-suggestion__error','div','342MltozW','_errorMessage','56gSKfNG','10030sHVKmT','346508biRyea','ck-ai-balloon-error','setTemplate','showError','ck-ai-suggestion__error-text','48khPjDm','hideError','locale'];_0x522b=function(){return _0x13d8f2;};return _0x522b();}function _0x3635(_0x3ec8a3,_0x434604){const _0x522b87=_0x522b();return _0x3635=function(_0x3635b3,_0xc50b4c){_0x3635b3=_0x3635b3-0x14a;let _0x4ae869=_0x522b87[_0x3635b3];return _0x4ae869;},_0x3635(_0x3ec8a3,_0x434604);}import{View as _0x1d6f66}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3adefc(0x153),_0x3adefc(0x150),_0x3adefc(0x15e),_0x3adefc(0x157)];export class AIBalloonView extends _0x1d6f66{[_0x3adefc(0x158)];constructor(_0x39bb71){const _0x429c00=_0x3adefc;super(_0x39bb71),this[_0x429c00(0x159)](_0x429c00(0x165),''),this[_0x429c00(0x159)](_0x429c00(0x15d),!0x1);}[_0x3adefc(0x154)](_0x20669b){const _0x54ed21=_0x3adefc;this[_0x54ed21(0x14a)](_0x20669b);}[_0x3adefc(0x14a)](_0x44fe8a){const _0x253608=_0x3adefc;this[_0x253608(0x158)]||(this[_0x253608(0x158)]=this[_0x253608(0x156)]()),this[_0x253608(0x165)]=_0x44fe8a,this[_0x253608(0x15d)]=!0x0;}[_0x3adefc(0x14d)](){const _0x1f0bbc=_0x3adefc;this[_0x1f0bbc(0x15d)]=!0x1;}[_0x3adefc(0x156)](){const _0x4d1adc=_0x3adefc,_0x3c0bcc=new _0x1d6f66(this[_0x4d1adc(0x14e)]),_0x2970d9=new _0x1d6f66(this[_0x4d1adc(0x14e)]);return _0x2970d9[_0x4d1adc(0x16a)]({'tag':_0x4d1adc(0x152),'attributes':{'class':['ck',_0x4d1adc(0x14b)]},'children':[{'text':this[_0x4d1adc(0x160)]['to'](_0x4d1adc(0x165))}]}),_0x3c0bcc[_0x4d1adc(0x16a)]({'tag':_0x4d1adc(0x163),'attributes':{'class':['ck',_0x4d1adc(0x162),_0x4d1adc(0x169),this[_0x4d1adc(0x160)]['if'](_0x4d1adc(0x15d),_0x4d1adc(0x15a),_0x4188b7=>!_0x4188b7)]},'children':[_0x2970d9]}),_0x3c0bcc;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x7e9b8=_0x3e33;function _0x3e33(_0x28be69,_0x2036fe){var _0x4cd7b7=_0x4cd7();return _0x3e33=function(_0x3e330e,_0xbe1c7f){_0x3e330e=_0x3e330e-0x13e;var _0x5d3cd5=_0x4cd7b7[_0x3e330e];return _0x5d3cd5;},_0x3e33(_0x28be69,_0x2036fe);}(function(_0xf14891,_0x27a159){var _0xd3b5fd=_0x3e33,_0x2fbd98=_0xf14891();while(!![]){try{var _0x6dfb90=-parseInt(_0xd3b5fd(0x13e))/0x1+-parseInt(_0xd3b5fd(0x154))/0x2+parseInt(_0xd3b5fd(0x146))/0x3+-parseInt(_0xd3b5fd(0x157))/0x4+-parseInt(_0xd3b5fd(0x142))/0x5*(-parseInt(_0xd3b5fd(0x155))/0x6)+-parseInt(_0xd3b5fd(0x14d))/0x7*(parseInt(_0xd3b5fd(0x150))/0x8)+-parseInt(_0xd3b5fd(0x158))/0x9;if(_0x6dfb90===_0x27a159)break;else _0x2fbd98['push'](_0x2fbd98['shift']());}catch(_0x40edfe){_0x2fbd98['push'](_0x2fbd98['shift']());}}}(_0x4cd7,0xdc2fa));import{ContextPlugin as _0x1c7566}from'ckeditor5/src/core.js';import{AIChatController as _0x497da9}from'./aichatcontroller.js';function _0x4cd7(){var _0x30179f=['pluginName','141170kATGcm','config','define','sendMessage','4724337DVvQqL','isOfficialPlugin','new','AIChat','ai.chat.initialConversation','registerToolDataCallback','context','368081ligZsG','startConversation','focusPromptInput','40zRsuHM','removeSelectionFromChatContext','ai.chat.context','isPremiumPlugin','1649000medcmo','324IUzZxE','addSelectionToChatContext','1264180PICpsH','6404949qUFFmS','plugins','get','82412izdnCE','requires','_registerToolDataCallback'];_0x4cd7=function(){return _0x30179f;};return _0x4cd7();}import{AIEditing as _0x3f13f6}from'../aicore/aiediting.js';import{AIChatUI as _0x1b4ccc}from'./aichatui.js';import{AIChatHistory as _0x44fce9}from'../aichathistory/aichathistory.js';export class AIChat extends _0x1c7566{static get[_0x7e9b8(0x13f)](){return[_0x497da9,_0x3f13f6,_0x1b4ccc,_0x44fce9];}static get[_0x7e9b8(0x141)](){var _0x9f42c6=_0x7e9b8;return _0x9f42c6(0x149);}static get[_0x7e9b8(0x147)](){return!0x0;}static get[_0x7e9b8(0x153)](){return!0x0;}constructor(_0x5b6d0a){var _0x594534=_0x7e9b8;super(_0x5b6d0a),this[_0x594534(0x14c)][_0x594534(0x143)][_0x594534(0x144)](_0x594534(0x152),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x594534(0x14c)][_0x594534(0x143)][_0x594534(0x144)](_0x594534(0x14a),_0x594534(0x148));}async[_0x7e9b8(0x156)](){var _0x2ea6fe=_0x7e9b8;await this[_0x2ea6fe(0x14c)][_0x2ea6fe(0x159)][_0x2ea6fe(0x15a)](_0x497da9)[_0x2ea6fe(0x156)]();}async[_0x7e9b8(0x14e)](){var _0x3a6e1b=_0x7e9b8;await this[_0x3a6e1b(0x14c)][_0x3a6e1b(0x159)][_0x3a6e1b(0x15a)](_0x497da9)[_0x3a6e1b(0x14e)]();}async[_0x7e9b8(0x145)]({message:_0x5cad8c,attributes:_0x4dffbd}){var _0x49adce=_0x7e9b8;await this[_0x49adce(0x14c)][_0x49adce(0x159)][_0x49adce(0x15a)](_0x497da9)[_0x49adce(0x145)]({'message':_0x5cad8c,'attributes':_0x4dffbd});}[_0x7e9b8(0x151)](){var _0x23bb17=_0x7e9b8;this[_0x23bb17(0x14c)][_0x23bb17(0x159)][_0x23bb17(0x15a)](_0x497da9)[_0x23bb17(0x151)]();}[_0x7e9b8(0x14f)](){var _0x103147=_0x7e9b8;this[_0x103147(0x14c)][_0x103147(0x159)][_0x103147(0x15a)](_0x497da9)[_0x103147(0x14f)]();}[_0x7e9b8(0x14b)](_0x1a6ff6){var _0x3b77ac=_0x7e9b8;this[_0x3b77ac(0x14c)][_0x3b77ac(0x159)][_0x3b77ac(0x15a)](_0x497da9)[_0x3b77ac(0x140)](_0x1a6ff6);}}
|