@ckeditor/ckeditor5-ai 47.6.1 → 47.6.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/LICENSE.md +0 -4
- package/build/ai.js +2 -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/lang/contexts.json +1 -0
- package/package.json +15 -16
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.d.ts +15 -156
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.d.ts +2 -0
- 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
- package/build/966.ai.js +0 -5
- package/build/translations/en.js +0 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4fc01e=_0x26eb;(function(_0x433b82,_0xd56dab){const _0x4faa2b=_0x26eb,_0x12c889=_0x433b82();while(!![]){try{const _0x56653e=parseInt(_0x4faa2b(0x191))/0x1*(-parseInt(_0x4faa2b(0xfc))/0x2)+parseInt(_0x4faa2b(0x18a))/0x3*(parseInt(_0x4faa2b(0x125))/0x4)+-parseInt(_0x4faa2b(0xf9))/0x5*(-parseInt(_0x4faa2b(0x119))/0x6)+-parseInt(_0x4faa2b(0x124))/0x7+-parseInt(_0x4faa2b(0x11e))/0x8+parseInt(_0x4faa2b(0x134))/0x9*(-parseInt(_0x4faa2b(0x133))/0xa)+-parseInt(_0x4faa2b(0x10b))/0xb*(-parseInt(_0x4faa2b(0x13d))/0xc);if(_0x56653e===_0xd56dab)break;else _0x12c889['push'](_0x12c889['shift']());}catch(_0x4898ca){_0x12c889['push'](_0x12c889['shift']());}}}(_0x2a5f,0x7c4c0));import{Plugin as _0x5df519}from'ckeditor5/src/core.js';import{IconMagicWand as _0x1ad2dd,IconRobotPencil as _0xbaecc0}from'ckeditor5/src/icons.js';import{first as _0x12aded,CKEditorError as _0x14b9a3}from'ckeditor5/src/utils.js';import{createDropdown as _0x50a37a,addMenuToDropdown as _0x4dd207,ButtonView as _0x5353b5,MenuBarMenuListItemButtonView as _0x595868,Dialog as _0x5f1d81,DialogViewPosition as _0x43747d,MenuBarMenuView as _0x5d9788,MenuBarMenuListView as _0x407472,MenuBarMenuListItemView as _0x59d9df}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x4e26c6,UNGROUPED_COMMANDS_GROUP_ID as _0x56201b}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x46c205}from'./aiassistantediting.js';function _0x26eb(_0x3b52e3,_0x29bde8){const _0x2a5f31=_0x2a5f();return _0x26eb=function(_0x26ebff,_0x59bcb1){_0x26ebff=_0x26ebff-0xed;let _0x406c46=_0x2a5f31[_0x26ebff];return _0x406c46;},_0x26eb(_0x3b52e3,_0x29bde8);}import{AIAdapter as _0x3d4ba1}from'./adapters/aiadapter.js';import{getTranslation as _0x2d1401}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x3b9a05}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x1f3843}from'./ui/aiassistantcontroller.js';function _0x2a5f(){const _0x3e8807=['trim','getRanges','\x20ck-ai-assistant-ui_theme','isCollapsed','splice','label','body','map','buttonView','285PjKWqu','ai.assistant.commands','evaluationLimit','8SBWSNg','requires','fire','replace','ck-ai-assistant-ui','menuPanelClass','commands','showFakeVisualSelection','text','values','aiLicenseKeyNotAllowed','AI\x20Assistant','change:enabledCommandsIds','change:value','REPLACE','121AsIPdH','pluginName','AIAssistantUI','document','showAIAssistant','getLimitElement','showUI','hideFakeVisualSelection','DataTransfer','contentArea','define','change','menuBar:aiAssistant','source','47622tampja','forEach','_forceMarkersCopy','aiLicenseKeyEvaluationLimit','featureNotAllowed','7898976iwhyhk','command:','includes','groupId','ai-commands-config-order-collision','order','763917ayFBMT','1880488rhbjTC','addMany','bind','<p>','schema','editing','AI\x20is\x20writing','aiLicenseKeyUsageLimit','insertContentBelow','aiLicenseKeyDomainLimit','getSelectedElement','replaceContent','requiresContent','_getResolvedCommandsDefinitions','9110eOEgkf','6309dpfjje','menuitemcheckbox','INSERT','items','listenTo','_getMenuBarGroupButtons','prompt','buttons','init','1773684aQVGDQ','add','ai.assistant.contentAreaCssClass','text/html','copy','expired','change:isError','from','isEnabled','menuView','aiLicenseKeyInvalid','_uiCssClasses','AIAssistant','once','focus','show','ck-ai-commands-dropdown\x20','media','reset','selection','insertContent','domainLimit','</p>','Generated\x20content:\x20%0','AI\x20Commands','menuBar:aiCommands','locale','panelView','Error\x20during\x20AI\x20content\x20generation:\x20%0','queryView','delegate','_formView','execute','fieldView','change:isProcessing','_initAriaAiStatusChangeAnnouncements','getData','enabledCommandsIds','promptView','_populateMenuBarMenu','isOn','custom','destroy','_showLicenseError','tableOfContents','get','config','length','update','rawHtml','announce','view','model','setSelection','set','_onExecute','sort','ai.assistant.disabledElements','licenseKey','isFlat','currentContext','polite','_createAIAssistantUIButton','render','aiLicenseKeyExpired','_commandDefinitions','wasMoved','isOfficialPlugin','componentFactory','hide','EDITOR_TOP_SIDE','updatePosition','aiCommands','groupLabel','_licenseKeyCheckInterval','_dialog','plugins','6rUKQCr','_aiAssistantController','usageLimit','editor','aiAssistant','aiLicenseKeyValid','textAdapter','193574BWQSvJ','comment','_initView','getSelectedBlocks','push','filter','children','invalid','_aiAdapter','hideUI','ai.assistant.useTheme','updateView','ck-ai-assistant-button\x20','isPremiumPlugin','errorView'];_0x2a5f=function(){return _0x3e8807;};return _0x2a5f();}import{AIFormView as _0x207d06}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0xbd38ce}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const lt=globalThis[_0x4fc01e(0x113)];import{ClipboardMarkersUtils as _0x4d7804}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x2cf6d8,ViewDataTransfer as _0x35d337}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x5df519{[_0x4fc01e(0x177)];[_0x4fc01e(0x187)];[_0x4fc01e(0x188)];[_0x4fc01e(0x15c)];[_0x4fc01e(0x199)];[_0x4fc01e(0x18b)];[_0x4fc01e(0x148)]='';static get[_0x4fc01e(0x10c)](){const _0xb974e=_0x4fc01e;return _0xb974e(0x10d);}static get[_0x4fc01e(0x180)](){return!0x0;}static get[_0x4fc01e(0xee)](){return!0x0;}static get[_0x4fc01e(0xfd)](){return[_0x4d7804,_0x46c205,_0x3d4ba1,_0x5f1d81];}constructor(_0xcdbcc5){const _0x230148=_0x4fc01e;super(_0xcdbcc5),_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x115)](_0x230148(0x176),[_0x230148(0x14e),_0x230148(0x16e),_0x230148(0x169)]),_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x115)](_0x230148(0x13f),''),_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x115)](_0x230148(0x19b),!0x0),this[_0x230148(0x148)]=_0x230148(0x100)+(_0xcdbcc5[_0x230148(0x16b)][_0x230148(0x16a)](_0x230148(0x19b))?_0x230148(0xf2):'');}[_0x4fc01e(0x13c)](){const _0x38be9d=_0x4fc01e,{editor:_0x23a296}=this;this[_0x38be9d(0x199)]=_0x23a296[_0x38be9d(0x189)][_0x38be9d(0x16a)](_0x3d4ba1),this[_0x38be9d(0x188)]=_0x23a296[_0x38be9d(0x189)][_0x38be9d(0x16a)](_0x5f1d81),this[_0x38be9d(0x15c)]=null,this[_0x38be9d(0x17e)]=this[_0x38be9d(0x132)]();const _0x2325c=new _0x3b9a05(_0x23a296,Array[_0x38be9d(0x144)](this[_0x38be9d(0x17e)][_0x38be9d(0x105)]()));_0x23a296[_0x38be9d(0x102)][_0x38be9d(0x13e)](_0x38be9d(0x10f),_0x2325c),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x185),_0x21b153=>{const _0xeeda82=_0x38be9d,_0x2d0a5c=_0x50a37a(_0x21b153);return _0x2d0a5c[_0xeeda82(0x173)]({'class':_0xeeda82(0x14d)+this[_0xeeda82(0x148)]}),_0x2d0a5c[_0xeeda82(0xf8)][_0xeeda82(0x173)]({'label':_0x2d1401(_0x21b153,_0xeeda82(0x155)),'icon':_0x1ad2dd,'tooltip':!0x0}),_0x2d0a5c['on'](_0xeeda82(0x15d),_0xca95ca=>this[_0xeeda82(0x174)](_0xca95ca[_0xeeda82(0x118)]['id'])),_0x4dd207(_0x2d0a5c,_0x23a296['ui'][_0xeeda82(0x170)][_0xeeda82(0xf6)],function(_0x25937e){const _0x5f1541=_0xeeda82,_0x400645=_0x4e26c6(_0x25937e[_0x5f1541(0x16b)][_0x5f1541(0x16a)](_0x5f1541(0xfa)),_0x25937e[_0x5f1541(0x157)]),_0x34d341=gi(_0x25937e,_0x400645)[_0x5f1541(0x196)](_0x58fd6e=>_0x58fd6e[_0x5f1541(0x102)][_0x5f1541(0x16c)]);if(0x1===_0x34d341[_0x5f1541(0x16c)])return gi(_0x25937e,_0x34d341[0x0][_0x5f1541(0x102)])[_0x5f1541(0xf7)](_0x196af3=>({'id':_0x196af3['id'],'label':_0x196af3[_0x5f1541(0xf5)]}));return _0x34d341[_0x5f1541(0xf7)](_0x14952b=>{const _0x5eb4dd=_0x5f1541,{groupId:_0x52ce18,groupLabel:_0x3f5b53,commands:_0xa263c7}=_0x14952b,_0xdec991=gi(_0x25937e,_0xa263c7)[_0x5eb4dd(0xf7)](_0x59b985=>({'id':_0x59b985['id'],'label':_0x59b985[_0x5eb4dd(0xf5)]}));return{'id':_0x52ce18,'menu':_0x3f5b53||_0x52ce18,'children':_0xdec991};});}(_0x23a296),{'ariaLabel':_0x2d1401(_0x21b153,_0xeeda82(0x155))}),_0x2d0a5c[_0xeeda82(0x146)][_0xeeda82(0x101)]=_0xeeda82(0x14d)+this[_0xeeda82(0x148)],_0x2325c['on'](_0xeeda82(0x108),_0x3f581e),_0x2d0a5c[_0xeeda82(0x146)][_0xeeda82(0x14a)](_0xeeda82(0x17c),_0x3f581e),_0x2d0a5c;function _0x3f581e(){const _0x13629f=_0xeeda82;_0x2d0a5c[_0x13629f(0x145)]=_0x2325c[_0x13629f(0x162)][_0x13629f(0x16c)]>0x0;for(const _0x2d3936 of _0x2d0a5c[_0x13629f(0x146)][_0x13629f(0x13b)])_0x2d3936[_0x13629f(0x145)]=_0x2325c[_0x13629f(0x162)][_0x13629f(0x120)](_0x2d3936['id']);}}),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x156),_0x5eadc3=>{const _0x111dd6=_0x38be9d,_0x1955d2=new _0x5d9788(_0x5eadc3);_0x1955d2[_0x111dd6(0xf8)][_0x111dd6(0x173)]({'label':_0x2d1401(_0x5eadc3,_0x111dd6(0x155)),'icon':_0x1ad2dd}),_0x1955d2[_0x111dd6(0x127)](_0x111dd6(0x145))['to'](_0x2325c,_0x111dd6(0x162),_0x1d3ae6=>_0x1d3ae6[_0x111dd6(0x16c)]>0x0);const _0x53708b=_0x4e26c6(_0x23a296[_0x111dd6(0x16b)][_0x111dd6(0x16a)](_0x111dd6(0xfa)),_0x5eadc3);return this[_0x111dd6(0x164)](_0x2325c,_0x1955d2,_0x53708b,_0x5eb614=>this[_0x111dd6(0x174)](_0x5eb614)),_0x1955d2;}),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x18e),()=>{const _0x2d444d=_0x38be9d,_0x1f312d=this[_0x2d444d(0x17b)](_0x5353b5);return _0x1f312d[_0x2d444d(0x173)]({'tooltip':!0x0,'class':_0x2d444d(0xed)+this[_0x2d444d(0x148)]}),_0x1f312d;}),_0x23a296['ui'][_0x38be9d(0x181)][_0x38be9d(0x13e)](_0x38be9d(0x117),()=>{const _0x11e1fb=_0x38be9d,_0x8a94a1=this[_0x11e1fb(0x17b)](_0x595868);return _0x8a94a1[_0x11e1fb(0x173)]({'role':_0x11e1fb(0x135)}),_0x8a94a1;}),this[_0x38be9d(0x177)]=this[_0x38be9d(0x18d)][_0x38be9d(0x16b)][_0x38be9d(0x16a)](_0x38be9d(0x177));const _0x7f1176=this[_0x38be9d(0x18d)];this[_0x38be9d(0x187)]=setInterval(()=>{const _0x1ff2ee=_0x38be9d;let _0x5a302e;for(const _0x482457 in _0x7f1176){const _0x46c487=_0x482457,_0x248d52=_0x7f1176[_0x46c487];if(_0x1ff2ee(0x18f)==_0x248d52||_0x1ff2ee(0x147)==_0x248d52||_0x1ff2ee(0x17d)==_0x248d52||_0x1ff2ee(0x12e)==_0x248d52||_0x1ff2ee(0x106)==_0x248d52||_0x1ff2ee(0x11c)==_0x248d52||_0x1ff2ee(0x12c)==_0x248d52){delete _0x7f1176[_0x46c487],_0x5a302e=_0x248d52,clearInterval(this[_0x1ff2ee(0x187)]),this[_0x1ff2ee(0x187)]=void 0x0;break;}}_0x1ff2ee(0x147)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x198)),_0x1ff2ee(0x17d)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x142)),_0x1ff2ee(0x12e)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x152)),_0x1ff2ee(0x106)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x11d),_0x1ff2ee(0x149)),_0x1ff2ee(0x11c)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0xfb)),_0x1ff2ee(0x12c)==_0x5a302e&&_0x7f1176[_0x1ff2ee(0x168)](_0x1ff2ee(0x18c));},0x3e8);}[_0x4fc01e(0x167)](){const _0x5c52b2=_0x4fc01e;super[_0x5c52b2(0x167)](),this[_0x5c52b2(0x187)]&&clearInterval(this[_0x5c52b2(0x187)]);}[_0x4fc01e(0x111)](_0x1474cf='',_0x296c7e='',_0x1f969a=_0x4fc01e(0x166)){const _0x2038c5=_0x4fc01e,_0x4d3eae=this[_0x2038c5(0x18d)],_0x4566d9=_0x4d3eae[_0x2038c5(0x12a)][_0x2038c5(0x170)],_0x1d7739=_0x4d3eae[_0x2038c5(0x189)][_0x2038c5(0x16a)](_0x46c205),_0x330740=_0x4d3eae[_0x2038c5(0x189)][_0x2038c5(0x16a)](_0x4d7804);_0x1d7739[_0x2038c5(0x103)]();const _0x2ad558=new lt(),_0x1c8890=new ClipboardEvent(_0x2038c5(0x141),{'clipboardData':_0x2ad558}),_0x57a358=new _0x35d337(_0x2ad558),_0x4bf552=new _0x2cf6d8(_0x4566d9,_0x1c8890,{'dataTransfer':_0x57a358});_0x330740[_0x2038c5(0x11b)](_0x2038c5(0x192),()=>{const _0x1ff55d=_0x2038c5;_0x4566d9[_0x1ff55d(0x10e)][_0x1ff55d(0xfe)](_0x1ff55d(0x141),_0x4bf552);}),this[_0x2038c5(0x15c)]||(this[_0x2038c5(0x193)](),this[_0x2038c5(0x18b)]=new _0x1f3843(_0x4d3eae,this[_0x2038c5(0x199)][_0x2038c5(0x190)],this[_0x2038c5(0x15c)]));let _0x125f3b=_0x57a358[_0x2038c5(0x161)](_0x2038c5(0x140));const _0x32ec42=_0x4d3eae[_0x2038c5(0x171)][_0x2038c5(0x10e)][_0x2038c5(0x150)],_0x3a8d7a=Array[_0x2038c5(0x144)](_0x32ec42[_0x2038c5(0xf1)]());0x1===_0x3a8d7a[_0x2038c5(0x16c)]&&_0x3a8d7a[0x0][_0x2038c5(0x178)]&&!_0x32ec42[_0x2038c5(0x12f)]()&&''!==_0x125f3b[_0x2038c5(0xff)](/ /g,'')[_0x2038c5(0xf0)]()&&(_0x125f3b=_0x2038c5(0x128)+_0x125f3b+_0x2038c5(0x153)),this[_0x2038c5(0x18b)][_0x2038c5(0x19c)]({'actionId':_0x1f969a,'query':_0x1474cf,'htmlContent':_0x125f3b,'label':_0x296c7e,'mainActionLabel':_0xbd38ce[_0x4d3eae[_0x2038c5(0x171)][_0x2038c5(0x10e)][_0x2038c5(0x150)][_0x2038c5(0xf3)]?_0x2038c5(0x136):_0x2038c5(0x10a)]}),_0x2038c5(0x18e)!==this[_0x2038c5(0x188)]['id']?this[_0x2038c5(0x188)][_0x2038c5(0x14c)]({'id':_0x2038c5(0x18e),'icon':_0xbaecc0,'title':_0x2d1401(this[_0x2038c5(0x18d)][_0x2038c5(0x157)],_0x2038c5(0x107)),'content':this[_0x2038c5(0x15c)],'position':_0x43747d[_0x2038c5(0x183)],'onShow':()=>{const _0x3373e6=_0x2038c5;this[_0x3373e6(0x15c)][_0x3373e6(0x14b)]();},'onHide':()=>{const _0x265741=_0x2038c5;this[_0x265741(0x18b)][_0x265741(0x14f)](),_0x1d7739[_0x265741(0x112)]();}}):this[_0x2038c5(0x188)][_0x2038c5(0x170)][_0x2038c5(0x17f)]||this[_0x2038c5(0x188)][_0x2038c5(0x170)][_0x2038c5(0x184)]();}[_0x4fc01e(0x19a)](){const _0x2b415e=_0x4fc01e;this[_0x2b415e(0x188)][_0x2b415e(0x182)]();}[_0x4fc01e(0x132)](){const _0x4b9395=_0x4fc01e,_0x16e350=new Map(),_0x2a95a4=_0x4e26c6(this[_0x4b9395(0x18d)][_0x4b9395(0x16b)][_0x4b9395(0x16a)](_0x4b9395(0xfa)),this[_0x4b9395(0x18d)][_0x4b9395(0x157)]);for(const _0x51efb0 of _0x2a95a4)for(const _0x1e5459 of _0x51efb0[_0x4b9395(0x102)])_0x16e350[_0x4b9395(0x173)](_0x1e5459['id'],{..._0x1e5459,'groupId':_0x51efb0[_0x4b9395(0x121)],'groupLabel':_0x51efb0[_0x4b9395(0x186)]||_0x51efb0[_0x4b9395(0x121)]});return _0x16e350;}[_0x4fc01e(0x17b)](_0x446543){const _0x5d5f90=_0x4fc01e,_0x1595ee=this[_0x5d5f90(0x18d)],_0x45b2ba=_0x1595ee[_0x5d5f90(0x102)][_0x5d5f90(0x16a)](_0x5d5f90(0x10f)),_0x40420e=new _0x446543(_0x1595ee[_0x5d5f90(0x157)]);return _0x40420e[_0x5d5f90(0x173)]({'label':_0x2d1401(_0x1595ee[_0x5d5f90(0x157)],_0x5d5f90(0x107)),'icon':_0xbaecc0,'isToggleable':!0x0}),_0x40420e[_0x5d5f90(0x127)](_0x5d5f90(0x145))['to'](_0x45b2ba),_0x40420e[_0x5d5f90(0x127)](_0x5d5f90(0x165))['to'](this[_0x5d5f90(0x188)],'id',_0x3545c4=>_0x5d5f90(0x18e)===_0x3545c4),this[_0x5d5f90(0x138)](_0x40420e,_0x5d5f90(0x15d),()=>{const _0x2827e0=_0x5d5f90;_0x40420e[_0x2827e0(0x165)]?this[_0x2827e0(0x19a)]():_0x45b2ba[_0x2827e0(0x15d)]();}),_0x40420e;}[_0x4fc01e(0x193)](){const _0x3394a8=_0x4fc01e,_0x2a9351=this[_0x3394a8(0x18d)][_0x3394a8(0x189)][_0x3394a8(0x16a)](_0x46c205);this[_0x3394a8(0x15c)]=new _0x207d06(this[_0x3394a8(0x18d)][_0x3394a8(0x157)],this[_0x3394a8(0x148)],this[_0x3394a8(0x18d)][_0x3394a8(0x16b)][_0x3394a8(0x16a)](_0x3394a8(0x13f))),this[_0x3394a8(0x15c)]['on'](_0x3394a8(0x109),()=>{const _0x2b49c5=_0x3394a8;this[_0x2b49c5(0x188)][_0x2b49c5(0x170)][_0x2b49c5(0x17f)]||this[_0x2b49c5(0x188)][_0x2b49c5(0x170)][_0x2b49c5(0x184)]();}),this[_0x3394a8(0x15c)][_0x3394a8(0x163)][_0x3394a8(0x15a)][_0x3394a8(0x15e)]['on'](_0x3394a8(0x16d),()=>{const _0x598afe=_0x3394a8;this[_0x598afe(0x188)][_0x598afe(0x170)][_0x598afe(0x17f)]||this[_0x598afe(0x188)][_0x598afe(0x170)][_0x598afe(0x184)]();}),this[_0x3394a8(0x138)](this[_0x3394a8(0x15c)],_0x3394a8(0x130),()=>{const _0x526ce0=_0x3394a8;_0x2a9351[_0x526ce0(0x151)](this[_0x526ce0(0x18b)][_0x526ce0(0x179)]),this[_0x526ce0(0x19a)]();}),this[_0x3394a8(0x138)](this[_0x3394a8(0x15c)],_0x3394a8(0x12d),()=>{const _0x110239=_0x3394a8;_0x2a9351[_0x110239(0x12d)](this[_0x110239(0x18b)][_0x110239(0x179)]),this[_0x110239(0x19a)]();}),this[_0x3394a8(0x160)]();}[_0x4fc01e(0x160)](){const _0x462153=_0x4fc01e,{locale:_0xde90fd,ui:{ariaLiveAnnouncer:_0x3531be}}=this[_0x462153(0x18d)];this[_0x462153(0x15c)][_0x462153(0x114)]['on'](_0x462153(0x15f),(_0x3ab567,_0x3ffae3,_0x1311f3)=>{const _0x47699c=_0x462153,_0x26ca30=this[_0x47699c(0x18b)][_0x47699c(0x179)];_0x1311f3?_0x3531be[_0x47699c(0x16f)](_0x2d1401(_0xde90fd,_0x47699c(0x12b))):_0x26ca30&&_0x3531be[_0x47699c(0x16f)](_0x2d1401(_0xde90fd,_0x47699c(0x154),_0x26ca30),{'politeness':_0x47699c(0x17a),'isUnsafeHTML':!0x0});}),this[_0x462153(0x15c)]['on'](_0x462153(0x143),(_0x31b131,_0x249169,_0x621ae1)=>{const _0x2651c9=_0x462153;if(_0x621ae1){const _0xa7ba66=this[_0x2651c9(0x15c)][_0x2651c9(0xef)][_0x2651c9(0x104)];_0x3531be[_0x2651c9(0x16f)](_0x2d1401(_0xde90fd,_0x2651c9(0x159),_0xa7ba66));}});}[_0x4fc01e(0x174)](_0x374bbd){const _0x43bdab=_0x4fc01e,_0x351547=this[_0x43bdab(0x17e)][_0x43bdab(0x16a)](_0x374bbd),_0xeefb8b=this[_0x43bdab(0x18d)],_0x519228=_0xeefb8b[_0x43bdab(0x171)][_0x43bdab(0x10e)][_0x43bdab(0x150)],_0xe210b3=_0xeefb8b[_0x43bdab(0x102)][_0x43bdab(0x16a)](_0x43bdab(0x10f)),_0x3b83a9=_0xeefb8b[_0x43bdab(0x189)][_0x43bdab(0x16a)](_0x46c205),_0x7904f4=''+(_0x351547[_0x43bdab(0x121)]!==_0x56201b?_0x351547[_0x43bdab(0x186)]+':\x20':'')+_0x351547[_0x43bdab(0xf5)];if(!0x1!==_0x351547[_0x43bdab(0x131)]&&_0x519228[_0x43bdab(0xf3)]){const _0x59ec64=_0x12aded(_0x519228[_0x43bdab(0x194)]())||_0xeefb8b[_0x43bdab(0x171)][_0x43bdab(0x129)][_0x43bdab(0x110)](_0x519228);_0xeefb8b[_0x43bdab(0x171)][_0x43bdab(0x116)](_0x2fa347=>{const _0x2f9b6f=_0x43bdab;_0x2fa347[_0x2f9b6f(0x172)](_0x59ec64,'in');});}_0x3b83a9[_0x43bdab(0x103)](),_0xe210b3[_0x43bdab(0x15d)](_0x351547[_0x43bdab(0x13a)],_0x7904f4,_0x43bdab(0x11f)+_0x374bbd);}[_0x4fc01e(0x164)](_0x3cb2a4,_0x24a16c,_0x5789ac,_0x50f3f3){const _0x47f1aa=_0x4fc01e,_0x3ab680=this[_0x47f1aa(0x18d)],_0x155ece=_0x3ab680[_0x47f1aa(0x157)],_0x5c0193=new _0x407472(_0x155ece),_0x2cb534=gi(_0x3ab680,_0x5789ac)[_0x47f1aa(0x196)](_0x1e3814=>_0x1e3814[_0x47f1aa(0x102)][_0x47f1aa(0x16c)]);0x1===_0x2cb534[_0x47f1aa(0x16c)]?this[_0x47f1aa(0x139)]({'command':_0x3cb2a4,'commands':_0x2cb534[0x0][_0x47f1aa(0x102)],'parentMenuView':_0x24a16c,'onExecute':_0x50f3f3})[_0x47f1aa(0x11a)](_0x1ed0ba=>_0x5c0193[_0x47f1aa(0x137)][_0x47f1aa(0x13e)](_0x1ed0ba)):_0x2cb534[_0x47f1aa(0x11a)](({groupId:_0x5d2ec3,groupLabel:_0x1c626b,commands:_0x4abf02})=>{const _0x526f54=_0x47f1aa,_0x2f1686=new _0x59d9df(_0x155ece,_0x24a16c),_0x53d2d5=new _0x5d9788(_0x155ece),_0x1117ef=new _0x407472(_0x155ece),_0x5db376=this[_0x526f54(0x139)]({'command':_0x3cb2a4,'commands':_0x4abf02,'parentMenuView':_0x53d2d5,'onExecute':_0x50f3f3});_0x53d2d5[_0x526f54(0xf8)][_0x526f54(0x173)]({'label':_0x1c626b||_0x5d2ec3}),_0x53d2d5[_0x526f54(0x15b)](_0x526f54(0x15d))['to'](_0x24a16c),_0x1117ef[_0x526f54(0x137)][_0x526f54(0x126)](_0x5db376),_0x53d2d5[_0x526f54(0x158)][_0x526f54(0x197)][_0x526f54(0x13e)](_0x1117ef),_0x2f1686[_0x526f54(0x197)][_0x526f54(0x13e)](_0x53d2d5),_0x5c0193[_0x526f54(0x137)][_0x526f54(0x13e)](_0x2f1686);}),_0x24a16c[_0x47f1aa(0x158)][_0x47f1aa(0x197)][_0x47f1aa(0x13e)](_0x5c0193);}[_0x4fc01e(0x139)]({command:_0x17304b,commands:_0x1aab0e,parentMenuView:_0x5b395f,onExecute:_0x1abab4}){const _0x5e901d=_0x4fc01e,_0x20a0eb=this[_0x5e901d(0x18d)],_0x446efd=_0x20a0eb[_0x5e901d(0x157)];return gi(_0x20a0eb,_0x1aab0e)[_0x5e901d(0xf7)](_0x4ac39f=>{const _0x5a6cd4=_0x5e901d,_0x425548=new _0x59d9df(_0x446efd,_0x5b395f),_0x3971c0=new _0x595868(_0x446efd);return _0x3971c0[_0x5a6cd4(0x173)]({'label':_0x4ac39f[_0x5a6cd4(0xf5)]}),_0x3971c0[_0x5a6cd4(0x15b)](_0x5a6cd4(0x15d))['to'](_0x5b395f),_0x3971c0['on'](_0x5a6cd4(0x15d),()=>_0x1abab4(_0x4ac39f['id'])),_0x3971c0[_0x5a6cd4(0x127)](_0x5a6cd4(0x145))['to'](_0x17304b,_0x5a6cd4(0x162),_0x19475f=>_0x19475f[_0x5a6cd4(0x120)](_0x4ac39f['id'])),_0x425548[_0x5a6cd4(0x197)][_0x5a6cd4(0x13e)](_0x3971c0),_0x425548;});}}function wi(_0x107687,_0x183115){const _0x1bbfff=_0x4fc01e;return void 0x0!==_0x107687[_0x1bbfff(0x123)]&&void 0x0===_0x183115[_0x1bbfff(0x123)]?0x1:void 0x0===_0x107687[_0x1bbfff(0x123)]&&void 0x0!==_0x183115[_0x1bbfff(0x123)]?-0x1:void 0x0!==_0x107687[_0x1bbfff(0x123)]&&void 0x0!==_0x183115[_0x1bbfff(0x123)]?_0x107687[_0x1bbfff(0x123)]-_0x183115[_0x1bbfff(0x123)]:0x0;}function gi(_0x3a25cb,_0x30f233){const _0x4d4683=_0x4fc01e;_0x30f233[_0x4d4683(0x175)](wi);const _0x11c908={},_0x5ef9cc=[];for(const _0x16c711 of _0x30f233)if(void 0x0!==_0x16c711[_0x4d4683(0x123)]){if(_0x16c711[_0x4d4683(0x123)]in _0x11c908)throw new _0x14b9a3(_0x4d4683(0x122),_0x3a25cb,{'conflictingDefinitions':[_0x16c711,_0x11c908[_0x16c711[_0x4d4683(0x123)]]]});_0x11c908[_0x16c711[_0x4d4683(0x123)]]=_0x16c711,_0x5ef9cc[_0x4d4683(0xf4)](_0x16c711[_0x4d4683(0x123)],0x0,_0x16c711);}else _0x5ef9cc[_0x4d4683(0x195)](_0x16c711);return _0x5ef9cc;}
|
|
23
|
+
const _0x2994e8=_0x486d;(function(_0x242ec1,_0xf2c702){const _0x315a8f=_0x486d,_0x44aeb8=_0x242ec1();while(!![]){try{const _0x167616=parseInt(_0x315a8f(0x260))/0x1+parseInt(_0x315a8f(0x243))/0x2*(-parseInt(_0x315a8f(0x1ed))/0x3)+parseInt(_0x315a8f(0x22a))/0x4+-parseInt(_0x315a8f(0x1cc))/0x5+-parseInt(_0x315a8f(0x23e))/0x6+-parseInt(_0x315a8f(0x1f9))/0x7+-parseInt(_0x315a8f(0x26b))/0x8*(-parseInt(_0x315a8f(0x1cd))/0x9);if(_0x167616===_0xf2c702)break;else _0x44aeb8['push'](_0x44aeb8['shift']());}catch(_0x5e8b5f){_0x44aeb8['push'](_0x44aeb8['shift']());}}}(_0x4308,0xa2ea0));import{Plugin as _0x4ba6b3}from'ckeditor5/src/core.js';import{IconMagicWand as _0x4cb3d5,IconRobotPencil as _0x234715}from'ckeditor5/src/icons.js';import{first as _0x46b75c,CKEditorError as _0x3de911}from'ckeditor5/src/utils.js';import{createDropdown as _0x404ac9,addMenuToDropdown as _0x266103,ButtonView as _0x2feae8,MenuBarMenuListItemButtonView as _0x57ee01,Dialog as _0x454da7,DialogViewPosition as _0x4d36ba,MenuBarMenuView as _0x78b91f,MenuBarMenuListView as _0x424c4d,MenuBarMenuListItemView as _0x2ae7c8}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x5648bb,UNGROUPED_COMMANDS_GROUP_ID as _0x477f7f}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x129fae}from'./aiassistantediting.js';import{AIAdapter as _0x4f2f5d}from'./adapters/aiadapter.js';import{getTranslation as _0x54bee2}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x1c3b15}from'./ui/showaiassistantcommand.js';function _0x486d(_0x331820,_0x395680){const _0x430817=_0x4308();return _0x486d=function(_0x486d5f,_0x54cf10){_0x486d5f=_0x486d5f-0x1ca;let _0x371642=_0x430817[_0x486d5f];return _0x371642;},_0x486d(_0x331820,_0x395680);}import{AIAssistantController as _0x4c0702}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x321200}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x41146a}from'./ui/form/aiformtoolbarview.js';function _0x4308(){const _0xc6dfdb=['hideFakeVisualSelection','pluginName','requires','INSERT','aiLicenseKeyExpired','change:isError','_formView','buttons','AI\x20Commands','Generated\x20content:\x20%0','announce','listenTo','getSelectedBlocks','ai.assistant.useTheme','groupLabel','insertContentBelow','getRanges','replaceContent','aiCommands','isPremiumPlugin','comment','_showLicenseError','aiLicenseKeyInvalid','custom','isOn','_getResolvedCommandsDefinitions','ai.assistant.disabledElements','1076428xYurKx','EDITOR_TOP_SIDE','aiLicenseKeyNotAllowed','_getMenuBarGroupButtons','_populateMenuBarMenu','hideUI','replace','body','config','media','prompt','currentContext','text','set','_createAIAssistantUIButton','change:value','selection','ai.assistant.contentAreaCssClass','aiLicenseKeyValid','from','7173498dUMaDN','ck-ai-assistant-button\x20','commands','insertContent','ai.assistant.commands','39980DIKdIE','_onExecute','buttonView','updatePosition','show','editor','usageLimit','fieldView','aiLicenseKeyUsageLimit','licenseKey','polite','children','change','model','render','AI\x20is\x20writing','text/html','init','_forceMarkersCopy','schema','_dialog','_commandDefinitions','map','isCollapsed','execute','featureNotAllowed','_initAriaAiStatusChangeAnnouncements','getData','setSelection','237689iRZfII','includes','errorView','aiLicenseKeyEvaluationLimit','destroy','AIAssistant','push','delegate','source','isOfficialPlugin','_licenseKeyCheckInterval','1167704hqkWOa','label','_aiAssistantController','REPLACE','componentFactory','document','focus','change:enabledCommandsIds','hide','once','update','add','\x20ck-ai-assistant-ui_theme','plugins','2552635iSOuzn','171prjOxn','getLimitElement','editing','splice','isEnabled','aiLicenseKeyDomainLimit','_initView','menuitemcheckbox','rawHtml','filter','showAIAssistant','get','ck-ai-assistant-ui','showUI','addMany','change:isProcessing','</p>','requiresContent','menuPanelClass','copy','length','forEach','reset','tableOfContents','invalid','menuBar:aiCommands','getSelectedElement','promptView','groupId','view','Error\x20during\x20AI\x20content\x20generation:\x20%0','queryView','51HltxnU','expired','fire','textAdapter','isFlat','order','items','_aiAdapter','ck-ai-commands-dropdown\x20','panelView','domainLimit','locale','3967999smvyrK','DataTransfer','contentArea','aiAssistant','AIAssistantUI','values','sort','_uiCssClasses','define','evaluationLimit','menuBar:aiAssistant','bind','trim','ai-commands-config-order-collision','updateView','command:','enabledCommandsIds','AI\x20Assistant','showFakeVisualSelection','<p>','menuView','wasMoved'];_0x4308=function(){return _0xc6dfdb;};return _0x4308();}import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const w=globalThis[_0x2994e8(0x1fa)];import{ClipboardMarkersUtils as _0x56a17d}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x34dbf8,ViewDataTransfer as _0xd01ee8}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x4ba6b3{[_0x2994e8(0x24c)];[_0x2994e8(0x26a)];[_0x2994e8(0x257)];[_0x2994e8(0x215)];[_0x2994e8(0x1f4)];[_0x2994e8(0x26d)];[_0x2994e8(0x200)]='';static get[_0x2994e8(0x210)](){const _0x5ee583=_0x2994e8;return _0x5ee583(0x1fd);}static get[_0x2994e8(0x269)](){return!0x0;}static get[_0x2994e8(0x222)](){return!0x0;}static get[_0x2994e8(0x211)](){return[_0x56a17d,_0x129fae,_0x4f2f5d,_0x454da7];}constructor(_0x211f0a){const _0x11d16c=_0x2994e8;super(_0x211f0a),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x229),[_0x11d16c(0x233),_0x11d16c(0x1d5),_0x11d16c(0x1e4)]),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x23b),''),_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x201)](_0x11d16c(0x21c),!0x0),this[_0x11d16c(0x200)]=_0x11d16c(0x1d9)+(_0x211f0a[_0x11d16c(0x232)][_0x11d16c(0x1d8)](_0x11d16c(0x21c))?_0x11d16c(0x1ca):'');}[_0x2994e8(0x254)](){const _0x53347f=_0x2994e8,{editor:_0x324d57}=this;this[_0x53347f(0x1f4)]=_0x324d57[_0x53347f(0x1cb)][_0x53347f(0x1d8)](_0x4f2f5d),this[_0x53347f(0x257)]=_0x324d57[_0x53347f(0x1cb)][_0x53347f(0x1d8)](_0x454da7),this[_0x53347f(0x215)]=null,this[_0x53347f(0x258)]=this[_0x53347f(0x228)]();const _0x57598d=new _0x1c3b15(_0x324d57,Array[_0x53347f(0x23d)](this[_0x53347f(0x258)][_0x53347f(0x1fe)]()));_0x324d57[_0x53347f(0x240)][_0x53347f(0x276)](_0x53347f(0x1d7),_0x57598d),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x221),_0x2f1daa=>{const _0x471224=_0x53347f,_0x5cd742=_0x404ac9(_0x2f1daa);return _0x5cd742[_0x471224(0x237)]({'class':_0x471224(0x1f5)+this[_0x471224(0x200)]}),_0x5cd742[_0x471224(0x245)][_0x471224(0x237)]({'label':_0x54bee2(_0x2f1daa,_0x471224(0x217)),'icon':_0x4cb3d5,'tooltip':!0x0}),_0x5cd742['on'](_0x471224(0x25b),_0x175023=>this[_0x471224(0x244)](_0x175023[_0x471224(0x268)]['id'])),_0x266103(_0x5cd742,_0x324d57['ui'][_0x471224(0x1ea)][_0x471224(0x231)],function(_0x526a6d){const _0xf99ddd=_0x471224,_0x366484=_0x5648bb(_0x526a6d[_0xf99ddd(0x232)][_0xf99ddd(0x1d8)](_0xf99ddd(0x242)),_0x526a6d[_0xf99ddd(0x1f8)]),_0x211a86=B(_0x526a6d,_0x366484)[_0xf99ddd(0x1d6)](_0x5cd797=>_0x5cd797[_0xf99ddd(0x240)][_0xf99ddd(0x1e1)]);if(0x1===_0x211a86[_0xf99ddd(0x1e1)])return B(_0x526a6d,_0x211a86[0x0][_0xf99ddd(0x240)])[_0xf99ddd(0x259)](_0x46c776=>({'id':_0x46c776['id'],'label':_0x46c776[_0xf99ddd(0x26c)]}));return _0x211a86[_0xf99ddd(0x259)](_0x109509=>{const _0x46b4d8=_0xf99ddd,{groupId:_0x2bccfc,groupLabel:_0x20940b,commands:_0x53014c}=_0x109509,_0x91dbcf=B(_0x526a6d,_0x53014c)[_0x46b4d8(0x259)](_0xb3c820=>({'id':_0xb3c820['id'],'label':_0xb3c820[_0x46b4d8(0x26c)]}));return{'id':_0x2bccfc,'menu':_0x20940b||_0x2bccfc,'children':_0x91dbcf};});}(_0x324d57),{'ariaLabel':_0x54bee2(_0x2f1daa,_0x471224(0x217))}),_0x5cd742[_0x471224(0x20d)][_0x471224(0x1df)]=_0x471224(0x1f5)+this[_0x471224(0x200)],_0x57598d['on'](_0x471224(0x272),_0x564334),_0x5cd742[_0x471224(0x20d)][_0x471224(0x274)](_0x471224(0x251),_0x564334),_0x5cd742;function _0x564334(){const _0x497e3e=_0x471224;_0x5cd742[_0x497e3e(0x1d1)]=_0x57598d[_0x497e3e(0x209)][_0x497e3e(0x1e1)]>0x0;for(const _0x454420 of _0x5cd742[_0x497e3e(0x20d)][_0x497e3e(0x216)])_0x454420[_0x497e3e(0x1d1)]=_0x57598d[_0x497e3e(0x209)][_0x497e3e(0x261)](_0x454420['id']);}}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x1e6),_0x2d36fe=>{const _0x5740e8=_0x53347f,_0x17ed02=new _0x78b91f(_0x2d36fe);_0x17ed02[_0x5740e8(0x245)][_0x5740e8(0x237)]({'label':_0x54bee2(_0x2d36fe,_0x5740e8(0x217)),'icon':_0x4cb3d5}),_0x17ed02[_0x5740e8(0x204)](_0x5740e8(0x1d1))['to'](_0x57598d,_0x5740e8(0x209),_0x432cc1=>_0x432cc1[_0x5740e8(0x1e1)]>0x0);const _0x3692bf=_0x5648bb(_0x324d57[_0x5740e8(0x232)][_0x5740e8(0x1d8)](_0x5740e8(0x242)),_0x2d36fe);return this[_0x5740e8(0x22e)](_0x57598d,_0x17ed02,_0x3692bf,_0x5af75a=>this[_0x5740e8(0x244)](_0x5af75a)),_0x17ed02;}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x1fc),()=>{const _0x53ecc4=_0x53347f,_0x39ed1a=this[_0x53ecc4(0x238)](_0x2feae8);return _0x39ed1a[_0x53ecc4(0x237)]({'tooltip':!0x0,'class':_0x53ecc4(0x23f)+this[_0x53ecc4(0x200)]}),_0x39ed1a;}),_0x324d57['ui'][_0x53347f(0x26f)][_0x53347f(0x276)](_0x53347f(0x203),()=>{const _0x230fe8=_0x53347f,_0xcd77ad=this[_0x230fe8(0x238)](_0x57ee01);return _0xcd77ad[_0x230fe8(0x237)]({'role':_0x230fe8(0x1d4)}),_0xcd77ad;}),this[_0x53347f(0x24c)]=this[_0x53347f(0x248)][_0x53347f(0x232)][_0x53347f(0x1d8)](_0x53347f(0x24c));const _0x4eab6d=this[_0x53347f(0x248)];this[_0x53347f(0x26a)]=setInterval(()=>{const _0x1ccae7=_0x53347f;let _0x36cc45;for(const _0x3315e7 in _0x4eab6d){const _0x10d2e4=_0x3315e7,_0x51fdc0=_0x4eab6d[_0x10d2e4];if(_0x1ccae7(0x23c)==_0x51fdc0||_0x1ccae7(0x225)==_0x51fdc0||_0x1ccae7(0x213)==_0x51fdc0||_0x1ccae7(0x1d2)==_0x51fdc0||_0x1ccae7(0x22c)==_0x51fdc0||_0x1ccae7(0x263)==_0x51fdc0||_0x1ccae7(0x24b)==_0x51fdc0){delete _0x4eab6d[_0x10d2e4],_0x36cc45=_0x51fdc0,clearInterval(this[_0x1ccae7(0x26a)]),this[_0x1ccae7(0x26a)]=void 0x0;break;}}_0x1ccae7(0x225)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1e5)),_0x1ccae7(0x213)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1ee)),_0x1ccae7(0x1d2)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x1f7)),_0x1ccae7(0x22c)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x25c),_0x1ccae7(0x265)),_0x1ccae7(0x263)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x202)),_0x1ccae7(0x24b)==_0x36cc45&&_0x4eab6d[_0x1ccae7(0x224)](_0x1ccae7(0x249));},0x3e8);}[_0x2994e8(0x264)](){const _0x17f8c0=_0x2994e8;super[_0x17f8c0(0x264)](),this[_0x17f8c0(0x26a)]&&clearInterval(this[_0x17f8c0(0x26a)]);}[_0x2994e8(0x1da)](_0x4b79b3='',_0x4c447b='',_0x3693bd=_0x2994e8(0x226)){const _0x59b50d=_0x2994e8,_0x430e03=this[_0x59b50d(0x248)],_0x4cfa20=_0x430e03[_0x59b50d(0x1cf)][_0x59b50d(0x1ea)],_0x15c004=_0x430e03[_0x59b50d(0x1cb)][_0x59b50d(0x1d8)](_0x129fae),_0x44f036=_0x430e03[_0x59b50d(0x1cb)][_0x59b50d(0x1d8)](_0x56a17d);_0x15c004[_0x59b50d(0x20b)]();const _0x54e346=new w(),_0x573346=new ClipboardEvent(_0x59b50d(0x1e0),{'clipboardData':_0x54e346}),_0x3f1caf=new _0xd01ee8(_0x54e346),_0x143365=new _0x34dbf8(_0x4cfa20,_0x573346,{'dataTransfer':_0x3f1caf});_0x44f036[_0x59b50d(0x255)](_0x59b50d(0x223),()=>{const _0x51af9d=_0x59b50d;_0x4cfa20[_0x51af9d(0x270)][_0x51af9d(0x1ef)](_0x51af9d(0x1e0),_0x143365);}),this[_0x59b50d(0x215)]||(this[_0x59b50d(0x1d3)](),this[_0x59b50d(0x26d)]=new _0x4c0702(_0x430e03,this[_0x59b50d(0x1f4)][_0x59b50d(0x1f0)],this[_0x59b50d(0x215)]));let _0x2b7941=_0x3f1caf[_0x59b50d(0x25e)](_0x59b50d(0x253));const _0x3a67db=_0x430e03[_0x59b50d(0x250)][_0x59b50d(0x270)][_0x59b50d(0x23a)],_0x1b90db=Array[_0x59b50d(0x23d)](_0x3a67db[_0x59b50d(0x21f)]());0x1===_0x1b90db[_0x59b50d(0x1e1)]&&_0x1b90db[0x0][_0x59b50d(0x1f1)]&&!_0x3a67db[_0x59b50d(0x1e7)]()&&''!==_0x2b7941[_0x59b50d(0x230)](/ /g,'')[_0x59b50d(0x205)]()&&(_0x2b7941=_0x59b50d(0x20c)+_0x2b7941+_0x59b50d(0x1dd)),this[_0x59b50d(0x26d)][_0x59b50d(0x207)]({'actionId':_0x3693bd,'query':_0x4b79b3,'htmlContent':_0x2b7941,'label':_0x4c447b,'mainActionLabel':_0x41146a[_0x430e03[_0x59b50d(0x250)][_0x59b50d(0x270)][_0x59b50d(0x23a)][_0x59b50d(0x25a)]?_0x59b50d(0x212):_0x59b50d(0x26e)]}),_0x59b50d(0x1fc)!==this[_0x59b50d(0x257)]['id']?this[_0x59b50d(0x257)][_0x59b50d(0x247)]({'id':_0x59b50d(0x1fc),'icon':_0x234715,'title':_0x54bee2(this[_0x59b50d(0x248)][_0x59b50d(0x1f8)],_0x59b50d(0x20a)),'content':this[_0x59b50d(0x215)],'position':_0x4d36ba[_0x59b50d(0x22b)],'onShow':()=>{const _0x54c068=_0x59b50d;this[_0x54c068(0x215)][_0x54c068(0x271)]();},'onHide':()=>{const _0x33d37b=_0x59b50d;this[_0x33d37b(0x26d)][_0x33d37b(0x1e3)](),_0x15c004[_0x33d37b(0x20f)]();}}):this[_0x59b50d(0x257)][_0x59b50d(0x1ea)][_0x59b50d(0x20e)]||this[_0x59b50d(0x257)][_0x59b50d(0x1ea)][_0x59b50d(0x246)]();}[_0x2994e8(0x22f)](){const _0x30fa9c=_0x2994e8;this[_0x30fa9c(0x257)][_0x30fa9c(0x273)]();}[_0x2994e8(0x228)](){const _0x1d364f=_0x2994e8,_0xe692e=new Map(),_0x1f8f3f=_0x5648bb(this[_0x1d364f(0x248)][_0x1d364f(0x232)][_0x1d364f(0x1d8)](_0x1d364f(0x242)),this[_0x1d364f(0x248)][_0x1d364f(0x1f8)]);for(const _0x1b7277 of _0x1f8f3f)for(const _0x28960a of _0x1b7277[_0x1d364f(0x240)])_0xe692e[_0x1d364f(0x237)](_0x28960a['id'],{..._0x28960a,'groupId':_0x1b7277[_0x1d364f(0x1e9)],'groupLabel':_0x1b7277[_0x1d364f(0x21d)]||_0x1b7277[_0x1d364f(0x1e9)]});return _0xe692e;}[_0x2994e8(0x238)](_0x22e035){const _0x1cf281=_0x2994e8,_0x53dded=this[_0x1cf281(0x248)],_0x1f500b=_0x53dded[_0x1cf281(0x240)][_0x1cf281(0x1d8)](_0x1cf281(0x1d7)),_0x3fbdc6=new _0x22e035(_0x53dded[_0x1cf281(0x1f8)]);return _0x3fbdc6[_0x1cf281(0x237)]({'label':_0x54bee2(_0x53dded[_0x1cf281(0x1f8)],_0x1cf281(0x20a)),'icon':_0x234715,'isToggleable':!0x0}),_0x3fbdc6[_0x1cf281(0x204)](_0x1cf281(0x1d1))['to'](_0x1f500b),_0x3fbdc6[_0x1cf281(0x204)](_0x1cf281(0x227))['to'](this[_0x1cf281(0x257)],'id',_0x542575=>_0x1cf281(0x1fc)===_0x542575),this[_0x1cf281(0x21a)](_0x3fbdc6,_0x1cf281(0x25b),()=>{const _0x156cae=_0x1cf281;_0x3fbdc6[_0x156cae(0x227)]?this[_0x156cae(0x22f)]():_0x1f500b[_0x156cae(0x25b)]();}),_0x3fbdc6;}[_0x2994e8(0x1d3)](){const _0x13324c=_0x2994e8,_0x15cbec=this[_0x13324c(0x248)][_0x13324c(0x1cb)][_0x13324c(0x1d8)](_0x129fae);this[_0x13324c(0x215)]=new _0x321200(this[_0x13324c(0x248)][_0x13324c(0x1f8)],this[_0x13324c(0x200)],this[_0x13324c(0x248)][_0x13324c(0x232)][_0x13324c(0x1d8)](_0x13324c(0x23b))),this[_0x13324c(0x215)]['on'](_0x13324c(0x239),()=>{const _0x12108d=_0x13324c;this[_0x12108d(0x257)][_0x12108d(0x1ea)][_0x12108d(0x20e)]||this[_0x12108d(0x257)][_0x12108d(0x1ea)][_0x12108d(0x246)]();}),this[_0x13324c(0x215)][_0x13324c(0x1e8)][_0x13324c(0x1ec)][_0x13324c(0x24a)]['on'](_0x13324c(0x275),()=>{const _0x48e362=_0x13324c;this[_0x48e362(0x257)][_0x48e362(0x1ea)][_0x48e362(0x20e)]||this[_0x48e362(0x257)][_0x48e362(0x1ea)][_0x48e362(0x246)]();}),this[_0x13324c(0x21a)](this[_0x13324c(0x215)],_0x13324c(0x220),()=>{const _0x47c980=_0x13324c;_0x15cbec[_0x47c980(0x241)](this[_0x47c980(0x26d)][_0x47c980(0x235)]),this[_0x47c980(0x22f)]();}),this[_0x13324c(0x21a)](this[_0x13324c(0x215)],_0x13324c(0x21e),()=>{const _0xbcd16a=_0x13324c;_0x15cbec[_0xbcd16a(0x21e)](this[_0xbcd16a(0x26d)][_0xbcd16a(0x235)]),this[_0xbcd16a(0x22f)]();}),this[_0x13324c(0x25d)]();}[_0x2994e8(0x25d)](){const _0x10e495=_0x2994e8,{locale:_0x522a2b,ui:{ariaLiveAnnouncer:_0x25474d}}=this[_0x10e495(0x248)];this[_0x10e495(0x215)][_0x10e495(0x1fb)]['on'](_0x10e495(0x1dc),(_0x502922,_0x3594b2,_0x3c9b01)=>{const _0x8b3754=_0x10e495,_0xf0f43f=this[_0x8b3754(0x26d)][_0x8b3754(0x235)];_0x3c9b01?_0x25474d[_0x8b3754(0x219)](_0x54bee2(_0x522a2b,_0x8b3754(0x252))):_0xf0f43f&&_0x25474d[_0x8b3754(0x219)](_0x54bee2(_0x522a2b,_0x8b3754(0x218),_0xf0f43f),{'politeness':_0x8b3754(0x24d),'isUnsafeHTML':!0x0});}),this[_0x10e495(0x215)]['on'](_0x10e495(0x214),(_0x5ecba1,_0x8d9481,_0x489d21)=>{const _0x57b066=_0x10e495;if(_0x489d21){const _0x2295dc=this[_0x57b066(0x215)][_0x57b066(0x262)][_0x57b066(0x236)];_0x25474d[_0x57b066(0x219)](_0x54bee2(_0x522a2b,_0x57b066(0x1eb),_0x2295dc));}});}[_0x2994e8(0x244)](_0x81d986){const _0x3047d3=_0x2994e8,_0x1bb99b=this[_0x3047d3(0x258)][_0x3047d3(0x1d8)](_0x81d986),_0x2b171b=this[_0x3047d3(0x248)],_0x50709c=_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x270)][_0x3047d3(0x23a)],_0x5f4922=_0x2b171b[_0x3047d3(0x240)][_0x3047d3(0x1d8)](_0x3047d3(0x1d7)),_0x33714c=_0x2b171b[_0x3047d3(0x1cb)][_0x3047d3(0x1d8)](_0x129fae),_0x1263e1=''+(_0x1bb99b[_0x3047d3(0x1e9)]!==_0x477f7f?_0x1bb99b[_0x3047d3(0x21d)]+':\x20':'')+_0x1bb99b[_0x3047d3(0x26c)];if(!0x1!==_0x1bb99b[_0x3047d3(0x1de)]&&_0x50709c[_0x3047d3(0x25a)]){const _0x35d927=_0x46b75c(_0x50709c[_0x3047d3(0x21b)]())||_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x256)][_0x3047d3(0x1ce)](_0x50709c);_0x2b171b[_0x3047d3(0x250)][_0x3047d3(0x24f)](_0x2e7233=>{const _0x36687e=_0x3047d3;_0x2e7233[_0x36687e(0x25f)](_0x35d927,'in');});}_0x33714c[_0x3047d3(0x20b)](),_0x5f4922[_0x3047d3(0x25b)](_0x1bb99b[_0x3047d3(0x234)],_0x1263e1,_0x3047d3(0x208)+_0x81d986);}[_0x2994e8(0x22e)](_0x53a919,_0x225508,_0xbd0ba3,_0x256bc8){const _0x21e2dc=_0x2994e8,_0xd25104=this[_0x21e2dc(0x248)],_0x2b3737=_0xd25104[_0x21e2dc(0x1f8)],_0x206845=new _0x424c4d(_0x2b3737),_0x24cdb9=B(_0xd25104,_0xbd0ba3)[_0x21e2dc(0x1d6)](_0xc6cf66=>_0xc6cf66[_0x21e2dc(0x240)][_0x21e2dc(0x1e1)]);0x1===_0x24cdb9[_0x21e2dc(0x1e1)]?this[_0x21e2dc(0x22d)]({'command':_0x53a919,'commands':_0x24cdb9[0x0][_0x21e2dc(0x240)],'parentMenuView':_0x225508,'onExecute':_0x256bc8})[_0x21e2dc(0x1e2)](_0x42729c=>_0x206845[_0x21e2dc(0x1f3)][_0x21e2dc(0x276)](_0x42729c)):_0x24cdb9[_0x21e2dc(0x1e2)](({groupId:_0x3d023a,groupLabel:_0x42704c,commands:_0xa90caf})=>{const _0x9a625a=_0x21e2dc,_0x5b486f=new _0x2ae7c8(_0x2b3737,_0x225508),_0x1c51a3=new _0x78b91f(_0x2b3737),_0x3706c5=new _0x424c4d(_0x2b3737),_0x1f2fa2=this[_0x9a625a(0x22d)]({'command':_0x53a919,'commands':_0xa90caf,'parentMenuView':_0x1c51a3,'onExecute':_0x256bc8});_0x1c51a3[_0x9a625a(0x245)][_0x9a625a(0x237)]({'label':_0x42704c||_0x3d023a}),_0x1c51a3[_0x9a625a(0x267)](_0x9a625a(0x25b))['to'](_0x225508),_0x3706c5[_0x9a625a(0x1f3)][_0x9a625a(0x1db)](_0x1f2fa2),_0x1c51a3[_0x9a625a(0x1f6)][_0x9a625a(0x24e)][_0x9a625a(0x276)](_0x3706c5),_0x5b486f[_0x9a625a(0x24e)][_0x9a625a(0x276)](_0x1c51a3),_0x206845[_0x9a625a(0x1f3)][_0x9a625a(0x276)](_0x5b486f);}),_0x225508[_0x21e2dc(0x1f6)][_0x21e2dc(0x24e)][_0x21e2dc(0x276)](_0x206845);}[_0x2994e8(0x22d)]({command:_0x214e76,commands:_0x273d62,parentMenuView:_0x37be87,onExecute:_0x33bb5b}){const _0x1c410a=_0x2994e8,_0x2d089f=this[_0x1c410a(0x248)],_0x233418=_0x2d089f[_0x1c410a(0x1f8)];return B(_0x2d089f,_0x273d62)[_0x1c410a(0x259)](_0x200adf=>{const _0x2e436a=_0x1c410a,_0x47ec44=new _0x2ae7c8(_0x233418,_0x37be87),_0x17c5b6=new _0x57ee01(_0x233418);return _0x17c5b6[_0x2e436a(0x237)]({'label':_0x200adf[_0x2e436a(0x26c)]}),_0x17c5b6[_0x2e436a(0x267)](_0x2e436a(0x25b))['to'](_0x37be87),_0x17c5b6['on'](_0x2e436a(0x25b),()=>_0x33bb5b(_0x200adf['id'])),_0x17c5b6[_0x2e436a(0x204)](_0x2e436a(0x1d1))['to'](_0x214e76,_0x2e436a(0x209),_0xe33d25=>_0xe33d25[_0x2e436a(0x261)](_0x200adf['id'])),_0x47ec44[_0x2e436a(0x24e)][_0x2e436a(0x276)](_0x17c5b6),_0x47ec44;});}}function U(_0x20dfa3,_0x311208){const _0xce7f9a=_0x2994e8;return void 0x0!==_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0===_0x311208[_0xce7f9a(0x1f2)]?0x1:void 0x0===_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0!==_0x311208[_0xce7f9a(0x1f2)]?-0x1:void 0x0!==_0x20dfa3[_0xce7f9a(0x1f2)]&&void 0x0!==_0x311208[_0xce7f9a(0x1f2)]?_0x20dfa3[_0xce7f9a(0x1f2)]-_0x311208[_0xce7f9a(0x1f2)]:0x0;}function B(_0x429f27,_0x2e5095){const _0x15efaa=_0x2994e8;_0x2e5095[_0x15efaa(0x1ff)](U);const _0x3d85a5={},_0x14e236=[];for(const _0x1b9d16 of _0x2e5095)if(void 0x0!==_0x1b9d16[_0x15efaa(0x1f2)]){if(_0x1b9d16[_0x15efaa(0x1f2)]in _0x3d85a5)throw new _0x3de911(_0x15efaa(0x206),_0x429f27,{'conflictingDefinitions':[_0x1b9d16,_0x3d85a5[_0x1b9d16[_0x15efaa(0x1f2)]]]});_0x3d85a5[_0x1b9d16[_0x15efaa(0x1f2)]]=_0x1b9d16,_0x14e236[_0x15efaa(0x1d0)](_0x1b9d16[_0x15efaa(0x1f2)],0x0,_0x1b9d16);}else _0x14e236[_0x15efaa(0x266)](_0x1b9d16);return _0x14e236;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x8cbc1b,_0x1eeb2e){var _0x10ea29=_0x4837,_0x3e7cd1=_0x8cbc1b();while(!![]){try{var _0x52affe=-parseInt(_0x10ea29(0x151))/0x1+-parseInt(_0x10ea29(0x14f))/0x2*(parseInt(_0x10ea29(0x152))/0x3)+-parseInt(_0x10ea29(0x155))/0x4+parseInt(_0x10ea29(0x154))/0x5*(parseInt(_0x10ea29(0x150))/0x6)+parseInt(_0x10ea29(0x14c))/0x7+parseInt(_0x10ea29(0x14e))/0x8+-parseInt(_0x10ea29(0x14d))/0x9*(parseInt(_0x10ea29(0x153))/0xa);if(_0x52affe===_0x1eeb2e)break;else _0x3e7cd1['push'](_0x3e7cd1['shift']());}catch(_0x58c1ce){_0x3e7cd1['push'](_0x3e7cd1['shift']());}}}(_0x2337,0x35da2));function _0x2337(){var _0x59ba2b=['21HYDJSU','270fxWNhI','1333305gQiBAA','963648ynsdRP','1711010smOFfp','26010SWNIPh','2384616OpbxUY','62584auVdHE','6yJBOXf','50604PteyjB'];_0x2337=function(){return _0x59ba2b;};return _0x2337();}function _0x4837(_0x24c133,_0x87ea8c){var _0x23378d=_0x2337();return _0x4837=function(_0x4837f7,_0x285ca1){_0x4837f7=_0x4837f7-0x14c;var _0x2221e2=_0x23378d[_0x4837f7];return _0x2221e2;},_0x4837(_0x24c133,_0x87ea8c);}import{CKEditorError as _0x3bce4e}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x19946a=_0x23a8;(function(_0x2d2f7e,_0x592c87){const _0x323ea4=_0x23a8,_0x5afde1=_0x2d2f7e();while(!![]){try{const _0x1f84c6=-parseInt(_0x323ea4(0x124))/0x1+parseInt(_0x323ea4(0x123))/0x2+-parseInt(_0x323ea4(0x142))/0x3*(-parseInt(_0x323ea4(0x146))/0x4)+parseInt(_0x323ea4(0x129))/0x5+-parseInt(_0x323ea4(0x144))/0x6+-parseInt(_0x323ea4(0x112))/0x7*(parseInt(_0x323ea4(0x134))/0x8)+parseInt(_0x323ea4(0x133))/0x9;if(_0x1f84c6===_0x592c87)break;else _0x5afde1['push'](_0x5afde1['shift']());}catch(_0x32cd59){_0x5afde1['push'](_0x5afde1['shift']());}}}(_0x7645,0x467fd));import{ObservableMixin as _0x2f552b}from'ckeditor5/src/utils.js';import{AIRequestError as _0x1304f6}from'../adapters/aiadapter.js';import{Matcher as _0x5d4b2f,ViewUpcastWriter as _0x1850d6}from'ckeditor5/src/engine.js';function _0x23a8(_0x37e4ec,_0x452040){const _0x7645f5=_0x7645();return _0x23a8=function(_0x23a869,_0x3815b6){_0x23a869=_0x23a869-0xf7;let _0x15d373=_0x7645f5[_0x23a869];return _0x15d373;},_0x23a8(_0x37e4ec,_0x452040);}const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2f552b(){[_0x19946a(0x130)];[_0x19946a(0xfe)];[_0x19946a(0x116)];[_0x19946a(0x10d)];[_0x19946a(0x105)];[_0x19946a(0x14f)];constructor(_0x2c2f49,_0x1ef4b7,_0x44d362){const _0xce46dc=_0x19946a;super(),this[_0xce46dc(0x130)]=_0x2c2f49,this[_0xce46dc(0xfe)]=_0x1ef4b7,this[_0xce46dc(0x10d)]=document[_0xce46dc(0x119)](_0xce46dc(0xf7)),this[_0xce46dc(0x105)]=new DOMParser(),this[_0xce46dc(0x14f)]=new XMLSerializer(),this[_0xce46dc(0x116)]=_0x44d362,this[_0xce46dc(0xfa)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0xce46dc(0x120),(_0x44d3d6,_0x381934,_0x2fdbbf)=>{const _0x37748d=_0xce46dc;this[_0x37748d(0x116)][_0x37748d(0x11c)]=this[_0x37748d(0xf8)](_0x2fdbbf);}),this[_0xce46dc(0x10f)](this[_0xce46dc(0x116)],_0xce46dc(0x157),(_0x464286,_0x11032e)=>{const _0x5f23e3=_0xce46dc,_0x11dec7=this[_0x5f23e3(0x152)]||this[_0x5f23e3(0x111)];this[_0x5f23e3(0x122)](_0x11032e,_0x11dec7,_0x5f23e3(0x140));}),this[_0xce46dc(0x10f)](this[_0xce46dc(0x116)],_0xce46dc(0xfd),()=>{const _0x1c80bd=_0xce46dc;this[_0x1c80bd(0x116)][_0x1c80bd(0x102)]=this[_0x1c80bd(0x115)],this[_0x1c80bd(0x122)](this[_0x1c80bd(0x132)],this[_0x1c80bd(0x14e)],this[_0x1c80bd(0x10e)],this[_0x1c80bd(0x115)]);}),this[_0xce46dc(0x10f)](this[_0xce46dc(0x116)],_0xce46dc(0x110),()=>{const _0x18c015=_0xce46dc;this[_0x18c015(0x110)]();});}[_0x19946a(0x11e)](){const _0x5c26a0=_0x19946a;this[_0x5c26a0(0x12a)]();}async[_0x19946a(0x151)]({actionId:_0x4068d7,query:_0x29a2f9,htmlContent:_0x77e41,label:_0x666343,mainActionLabel:_0xdbc9f}){const _0x4f22c5=_0x19946a;this[_0x4f22c5(0x116)][_0x4f22c5(0x102)]=_0x666343,this[_0x4f22c5(0x116)][_0x4f22c5(0x147)]=_0xdbc9f,this[_0x4f22c5(0x111)]=_0x77e41,_0x29a2f9&&(this[_0x4f22c5(0x116)][_0x4f22c5(0x12e)]?this[_0x4f22c5(0x122)](_0x29a2f9,_0x77e41,_0x4068d7,_0x666343):this[_0x4f22c5(0x116)][_0x4f22c5(0x13c)](_0x4f22c5(0x118),()=>{const _0x46815b=_0x4f22c5;this[_0x46815b(0x122)](_0x29a2f9,_0x77e41,_0x4068d7,_0x666343);}));}[_0x19946a(0x110)](){const _0x581afe=_0x19946a;this[_0x581afe(0x149)]&&(this[_0x581afe(0x149)]=!0x1,this[_0x581afe(0x116)][_0x581afe(0x159)](),this[_0x581afe(0xfe)][_0x581afe(0x156)]());}[_0x19946a(0x10a)](){const _0x57fccf=_0x19946a;this[_0x57fccf(0x111)]='',this[_0x57fccf(0x152)]='',this[_0x57fccf(0x158)]='',this[_0x57fccf(0x14e)]='',this[_0x57fccf(0x132)]='',this[_0x57fccf(0x115)]='',this[_0x57fccf(0x10e)]=void 0x0,this[_0x57fccf(0x116)][_0x57fccf(0x10a)](),this[_0x57fccf(0x110)]();}async[_0x19946a(0x122)](_0x202e89,_0x45a1f4,_0x12cd01,_0x176f54){const _0x22b1fd=_0x19946a;return this[_0x22b1fd(0x149)]=!0x0,this[_0x22b1fd(0x116)][_0x22b1fd(0x14d)](),this[_0x22b1fd(0x14e)]=_0x45a1f4,this[_0x22b1fd(0x132)]=_0x202e89,this[_0x22b1fd(0x115)]=_0x176f54||_0x202e89,this[_0x22b1fd(0x10e)]=_0x12cd01,new Promise(_0x59dba5=>{const _0x3e12fe=_0x22b1fd;this[_0x3e12fe(0xfe)][_0x3e12fe(0x101)]({'query':_0x202e89,'context':_0x45a1f4,'onData':_0x3943df=>{const _0x1015c1=_0x3e12fe;this[_0x1015c1(0x158)]=_0x3943df,this[_0x1015c1(0x152)]=this[_0x1015c1(0x14c)](this[_0x1015c1(0x158)]);},'actionId':_0x12cd01})[_0x3e12fe(0xfb)](()=>{const _0x5c4ce0=_0x3e12fe;!this[_0x5c4ce0(0x152)]&&this[_0x5c4ce0(0x158)]&&(this[_0x5c4ce0(0x152)]=this[_0x5c4ce0(0x14c)](this[_0x5c4ce0(0x158)],!0x0));})[_0x3e12fe(0x13d)](_0x1bd2f4=>{const _0x1dd26f=_0x3e12fe;_0x1bd2f4 instanceof _0x1304f6?this[_0x1dd26f(0x116)][_0x1dd26f(0x138)](_0x1bd2f4[_0x1dd26f(0x14b)]):this[_0x1dd26f(0x116)][_0x1dd26f(0x138)](),_0x59dba5();})[_0x3e12fe(0x139)](()=>{const _0x22b3f1=_0x3e12fe;this[_0x22b3f1(0x110)](),_0x59dba5();});});}[_0x19946a(0x14c)](_0x47ed19,_0xa0d759=!0x1){const _0x5efbb3=_0x19946a,_0x38907d=hs[_0x5efbb3(0x13b)](_0x47ed19);_0x47ed19=_0x38907d?_0x47ed19[_0x5efbb3(0x12d)](_0x38907d[0x1][_0x5efbb3(0x126)]):_0x47ed19[_0x5efbb3(0x126)]<0x64&&!_0xa0d759?'':this[_0x5efbb3(0x11b)](_0x47ed19);const _0x551a0e=this[_0x5efbb3(0x105)][_0x5efbb3(0x13f)](_0x47ed19,_0x5efbb3(0x143));if(_0x38907d){const _0x30c78f=Array[_0x5efbb3(0x117)](_0x551a0e[_0x5efbb3(0x128)][_0x5efbb3(0x10b)]);_0x30c78f[_0x5efbb3(0x13a)]();for(const _0x8d8ca7 of _0x30c78f){if(_0x8d8ca7[_0x5efbb3(0x114)]==Node[_0x5efbb3(0x107)])break;_0x8d8ca7[_0x5efbb3(0x141)]();}}const _0x6c7029=this[_0x5efbb3(0x130)][_0x5efbb3(0x10c)][_0x5efbb3(0x11f)][_0x5efbb3(0x127)](this[_0x5efbb3(0x14f)][_0x5efbb3(0x104)](_0x551a0e[_0x5efbb3(0x128)]));this[_0x5efbb3(0x131)]()||this[_0x5efbb3(0x12f)](_0x6c7029);const _0x40359b=this[_0x5efbb3(0x130)][_0x5efbb3(0x153)][_0x5efbb3(0xf9)](_0x5efbb3(0x12c)),_0x5b5415=this[_0x5efbb3(0x130)][_0x5efbb3(0x10c)][_0x5efbb3(0x11a)](_0x6c7029);return _0x40359b||_0x5b5415[_0x5efbb3(0x150)][_0x5efbb3(0xff)](),this[_0x5efbb3(0x130)][_0x5efbb3(0x10c)][_0x5efbb3(0x13e)](_0x5b5415);}[_0x19946a(0x12f)](_0x31c6f1){const _0x3c7fa2=_0x19946a,_0x8b277a=new _0x1850d6(this[_0x3c7fa2(0x130)][_0x3c7fa2(0x109)][_0x3c7fa2(0x116)][_0x3c7fa2(0x14a)]),_0x30dbd9=new _0x5d4b2f({'name':/^h[1-5]$/}),_0x55ae12=[];let _0x349f9f=!0x1;for(const _0x998a2e of _0x31c6f1)_0x998a2e['is'](_0x3c7fa2(0xfc))&&_0x30dbd9[_0x3c7fa2(0x154)](_0x998a2e)&&(_0x55ae12[_0x3c7fa2(0x135)](_0x998a2e),'h1'==_0x998a2e[_0x3c7fa2(0x108)]&&(_0x349f9f=!0x0));if(_0x349f9f){for(const _0x39bcaf of _0x55ae12)_0x8b277a[_0x3c7fa2(0x103)]('h'+(parseInt(_0x39bcaf[_0x3c7fa2(0x108)][0x1])+0x1),_0x39bcaf);}}[_0x19946a(0x131)](){const _0x41116b=_0x19946a,{data:_0x482b23,editing:_0x2eee47}=this[_0x41116b(0x130)],_0x2d98b5=_0x482b23[_0x41116b(0x11d)][_0x41116b(0x127)](_0x41116b(0x100)),_0x3b7627=_0x482b23[_0x41116b(0x127)](_0x482b23[_0x41116b(0x11a)](_0x2d98b5));return!!_0x2eee47[_0x41116b(0x116)][_0x41116b(0x12b)][_0x41116b(0x113)](_0x3b7627)[_0x41116b(0x106)]('h1');}[_0x19946a(0xf8)](_0x414c12){const _0x55565f=_0x19946a;return this[_0x55565f(0x130)][_0x55565f(0x109)][_0x55565f(0x116)][_0x55565f(0x12b)][_0x55565f(0x155)](this[_0x55565f(0x10d)],_0x414c12),this[_0x55565f(0x10d)][_0x55565f(0x125)];}[_0x19946a(0x11b)](_0x39650a){const _0x4add7c=_0x19946a,_0x48029d=_0x39650a[_0x4add7c(0x121)]();return _0x48029d[_0x4add7c(0x148)](_0x4add7c(0x145))?_0x48029d[_0x4add7c(0x136)](_0x4add7c(0x137))?_0x48029d[_0x4add7c(0x12d)](0x7,_0x48029d[_0x4add7c(0x126)]-0x3):_0x48029d[_0x4add7c(0x12d)](0x7):_0x39650a;}}function _0x7645(){const _0x258d67=['previousLabel','view','from','render','createElement','toModel','_stripMarkdownSyntax','value','htmlProcessor','destroy','processor','set:currentContext','trim','_handleQuery','381356YPnBHt','360676EUoctl','innerHTML','length','toView','body','1144965JPKbGq','stopListening','domConverter','ai.assistant.preserveComments','substring','isRendered','_normalizeResponseHeadings','editor','_isH1TagSupportEnabled','previousQuery','5419962GdgKfv','7272eAKUuE','push','endsWith','```','handleError','finally','reverse','exec','once','catch','stringify','parseFromString','custom','remove','3WYcKey','text/html','896172hiMBwr','```html','892932MRlyeU','mainAction','startsWith','isProcessing','document','message','_parseAndNormalizeContent','startProcessing','previousContext','_xmlSerializer','markers','updateView','currentContext','config','match','setContentOf','abort','submitPrompt','currentResponse','finishProcessing','div','_sanitizeHTML','get','set','then','element','tryAgainEvent','textAdapter','clear','<h1></h1>','makeRequest','prompt','rename','serializeToString','_domParser','querySelector','ELEMENT_NODE','name','editing','reset','childNodes','data','_sanitizationContainer','previousActionId','listenTo','stopProcessing','initialContext','3437LUqbVL','viewToDom','nodeType'];_0x7645=function(){return _0x258d67;};return _0x7645();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x95b8(){const _0x4c2148=['isVisible','setStartAfter','-9999px','write','render','scrollHeight','value','AI\x20is\x20writing...','ck-ai-form__copy-button','listenTo','setContent','ck-ai-form__content-area','<span>[</span>','contentFieldView','execCommand','text/html','textContent','12uASlby','18484OHCTko','17tPGuMj','createElement','clipboard','appendChild','362298aoiftr','class','set','_copyHTMLToClipboard','mousedown','bind','ck-ai-form__content-area-wrapper','body','3229061PRmFYg','loaderView','style','getSelection','removeAllRanges','isEnabled','24246xAMyYU','ck-ai-form__content-field','setTemplate','1454523lobaDZ','absolute','position','_createCopyButton','createRange','copyButtonView','ck-ai-form__copy-button-wrapper','10AYBGYm','4duUjif','bindTemplate','wheel','ck-ai-form__loader','locale','ck-reset_all-excluded','ck-ai-form__content-area--processing','change:value','<span>]</span>','firstElementChild','Copy','ClipboardItem','scrollTo','.ck-ai-form__loader','ck-content','lastElementChild','isProcessing','appendLoader','smooth','addRange','element','copy','change:isProcessing','_createLoader','setEndBefore','777444dJvbxF','ck-hidden','innerHTML','text/plain','64790wNOujU','216mdXhZo','left','\x20ck-ai-form__copy-button--copied','icon','remove','div','querySelector','execute','focus'];_0x95b8=function(){return _0x4c2148;};return _0x95b8();}const _0x8f50c0=_0x50ec;(function(_0x102a6d,_0x4011a5){const _0x2383e1=_0x50ec,_0x382d40=_0x102a6d();while(!![]){try{const _0x4ff05f=parseInt(_0x2383e1(0x114))/0x1*(parseInt(_0x2383e1(0x113))/0x2)+-parseInt(_0x2383e1(0xf3))/0x3*(-parseInt(_0x2383e1(0xda))/0x4)+-parseInt(_0x2383e1(0xd9))/0x5*(parseInt(_0x2383e1(0x118))/0x6)+parseInt(_0x2383e1(0xd2))/0x7+parseInt(_0x2383e1(0xf8))/0x8*(-parseInt(_0x2383e1(0xcf))/0x9)+-parseInt(_0x2383e1(0xf7))/0xa+parseInt(_0x2383e1(0xc9))/0xb*(-parseInt(_0x2383e1(0x112))/0xc);if(_0x4ff05f===_0x4011a5)break;else _0x382d40['push'](_0x382d40['shift']());}catch(_0x32cdfa){_0x382d40['push'](_0x382d40['shift']());}}}(_0x95b8,0x1fdd5));function _0x50ec(_0x50e1a1,_0x323822){const _0x95b851=_0x95b8();return _0x50ec=function(_0x50ec6a,_0x2d1a75){_0x50ec6a=_0x50ec6a-0xc5;let _0xd2078a=_0x95b851[_0x50ec6a];return _0xd2078a;},_0x50ec(_0x50e1a1,_0x323822);}import{global as _0x39352b}from'ckeditor5/src/utils.js';import{View as _0xdb5ef4,ButtonView as _0x191ffd,SpinnerView as _0x3a8841}from'ckeditor5/src/ui.js';import{IconCheck as _0x4406cd,IconCopy as _0x536b14}from'ckeditor5/src/icons.js';import{getTranslation as _0x2fc6b4}from'../../utils/common-translations.js';export class AIFormContentArea extends _0xdb5ef4{[_0x8f50c0(0x10e)];[_0x8f50c0(0xd7)];constructor(_0x3ba779,_0x1b06c8=''){const _0x29de2e=_0x8f50c0;super(_0x3ba779),this[_0x29de2e(0x11a)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0xd99d5e=this[_0x29de2e(0xdb)];this[_0x29de2e(0x10e)]=new ContentFieldView(_0x3ba779,_0x1b06c8),this[_0x29de2e(0xd7)]=this[_0x29de2e(0xd5)](),this[_0x29de2e(0xd1)]({'tag':_0x29de2e(0xfd),'attributes':{'class':['ck',_0x29de2e(0xc7),_0xd99d5e['if'](_0x29de2e(0x101),_0x29de2e(0xf4),_0x46c448=>!_0x46c448)],'tabindex':'-1'},'children':[{'tag':_0x29de2e(0xfd),'attributes':{'class':['ck',_0x29de2e(0x10c),_0xd99d5e['if'](_0x29de2e(0xea),_0x29de2e(0xe0))]},'children':[this[_0x29de2e(0x10e)],{'tag':_0x29de2e(0xfd),'attributes':{'class':['ck',_0x29de2e(0xd8)]},'children':[this[_0x29de2e(0xd7)]]}]}]});}[_0x8f50c0(0x105)](){const _0x40c12f=_0x8f50c0;super[_0x40c12f(0x105)](),this[_0x40c12f(0x107)]&&this[_0x40c12f(0x10e)][_0x40c12f(0x10b)](this[_0x40c12f(0x107)]);let _0x59bd84=!0x1;this['on'](_0x40c12f(0xe1),(_0x434866,_0x60d793,_0x4144e6)=>{const _0x241087=_0x40c12f,_0x4aee59=!this[_0x241087(0x10e)][_0x241087(0xee)][_0x241087(0xfe)](_0x241087(0xe7));this[_0x241087(0x10e)][_0x241087(0x10b)](_0x4144e6),this[_0x241087(0xea)]&&_0x4aee59&&!_0x59bd84&&this[_0x241087(0xee)][_0x241087(0xe6)]({'top':this[_0x241087(0xee)][_0x241087(0x106)],'behavior':_0x241087(0xec)});}),this['on'](_0x40c12f(0xf0),(_0x4f360b,_0x483fd5,_0x4019e4)=>{const _0xb77f9a=_0x40c12f;_0x59bd84=!0x1,_0x4019e4?(this[_0xb77f9a(0x107)]=null,this[_0xb77f9a(0x10e)][_0xb77f9a(0xeb)]()):this[_0xb77f9a(0x107)]||this[_0xb77f9a(0x10e)][_0xb77f9a(0x10b)]('');}),this[_0x40c12f(0x10a)](this[_0x40c12f(0xee)],_0x40c12f(0xdc),()=>{_0x59bd84=!0x0;}),this[_0x40c12f(0x10a)](this[_0x40c12f(0xee)],_0x40c12f(0xc5),()=>{_0x59bd84=!0x0;});}[_0x8f50c0(0x100)](){const _0x1429ae=_0x8f50c0;this[_0x1429ae(0xee)][_0x1429ae(0x100)]();}[_0x8f50c0(0xd5)](){const _0x1c1903=_0x8f50c0,_0x11cca3=this[_0x1c1903(0xde)],_0x22cbab=new _0x191ffd(this[_0x1c1903(0xde)]),_0x5d6345=_0x1c1903(0x109);return _0x22cbab[_0x1c1903(0x11a)]({'label':_0x2fc6b4(_0x11cca3,_0x1c1903(0xe4)),'icon':_0x536b14,'class':_0x5d6345,'tooltip':!0x0}),_0x22cbab[_0x1c1903(0xc6)](_0x1c1903(0x101))['to'](this,_0x1c1903(0x107),_0xb8877a=>!!_0xb8877a),_0x22cbab[_0x1c1903(0xc6)](_0x1c1903(0xce))['to'](this,_0x1c1903(0xea),_0x291680=>!_0x291680),_0x22cbab['on'](_0x1c1903(0xff),()=>{const _0xf02384=_0x1c1903;this[_0xf02384(0x11b)](this[_0xf02384(0x10e)][_0xf02384(0xee)]),_0x22cbab[_0xf02384(0xfb)]=_0x4406cd,_0x22cbab[_0xf02384(0x119)]=_0x5d6345+_0xf02384(0xfa),this[_0xf02384(0x100)](),setTimeout(()=>{const _0x3811d8=_0xf02384;_0x22cbab[_0x3811d8(0xfb)]=_0x536b14,_0x22cbab[_0x3811d8(0x119)]=_0x5d6345;},0x3e8);}),_0x22cbab;}[_0x8f50c0(0x11b)](_0x30e227){const _0x9d335f=_0x8f50c0,{window:_0x3b5f6b,document:_0x48e506}=_0x39352b;if(_0x3b5f6b[_0x9d335f(0xe5)]){const {Blob:_0x4e5299,ClipboardItem:_0x274711}=_0x3b5f6b,_0x43a2d5=[new _0x274711({'text/html':new _0x4e5299([_0x30e227[_0x9d335f(0xf5)]],{'type':_0x9d335f(0x110)}),'text/plain':new _0x4e5299([_0x30e227[_0x9d335f(0x111)]||''],{'type':_0x9d335f(0xf6)})})];navigator[_0x9d335f(0x116)][_0x9d335f(0x104)](_0x43a2d5);}else{const _0x416405=_0x48e506[_0x9d335f(0x115)](_0x9d335f(0xfd));_0x416405[_0x9d335f(0xcb)][_0x9d335f(0xd4)]=_0x9d335f(0xd3),_0x416405[_0x9d335f(0xcb)][_0x9d335f(0xf9)]=_0x9d335f(0x103),_0x416405[_0x9d335f(0xf5)]=_0x9d335f(0x10d)+_0x30e227[_0x9d335f(0xf5)]+_0x9d335f(0xe2),_0x48e506[_0x9d335f(0xc8)][_0x9d335f(0x117)](_0x416405);const _0x2d9328=_0x48e506[_0x9d335f(0xd6)]();_0x2d9328[_0x9d335f(0x102)](_0x416405[_0x9d335f(0xe3)]),_0x2d9328[_0x9d335f(0xf2)](_0x416405[_0x9d335f(0xe9)]);const _0x4eae1b=_0x3b5f6b[_0x9d335f(0xcc)]();_0x4eae1b[_0x9d335f(0xcd)](),_0x4eae1b[_0x9d335f(0xed)](_0x2d9328),_0x48e506[_0x9d335f(0x10f)](_0x9d335f(0xef)),_0x416405[_0x9d335f(0xfc)]();}}}export class ContentFieldView extends _0xdb5ef4{constructor(_0x253c79,_0x342113=''){const _0x15cb90=_0x8f50c0;super(_0x253c79),this[_0x15cb90(0xca)]=this[_0x15cb90(0xf1)](),this[_0x15cb90(0xd1)]({'tag':_0x15cb90(0xfd),'attributes':{'class':['ck',_0x15cb90(0xe8),_0x342113,_0x15cb90(0xdf),_0x15cb90(0xd0)]}});}[_0x8f50c0(0x10b)](_0x4c5e68){const _0x112416=_0x8f50c0;this[_0x112416(0xee)][_0x112416(0xf5)]=_0x4c5e68;}[_0x8f50c0(0xeb)](){const _0x5b461f=_0x8f50c0;this[_0x5b461f(0xee)][_0x5b461f(0x117)](this[_0x5b461f(0xca)][_0x5b461f(0xee)]);}[_0x8f50c0(0xf1)](){const _0x832b0a=_0x8f50c0,_0x51dd14=new _0xdb5ef4(),_0x5a4ed0=this[_0x832b0a(0xde)],_0x2c38c8=new _0x3a8841();return _0x2c38c8[_0x832b0a(0x101)]=!0x0,_0x51dd14[_0x832b0a(0xd1)]({'tag':_0x832b0a(0xfd),'attributes':{'class':['ck',_0x832b0a(0xdd)]},'children':[_0x2c38c8,{'text':_0x2fc6b4(_0x5a4ed0,_0x832b0a(0x108))}]}),_0x51dd14[_0x832b0a(0x105)](),_0x51dd14;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xe904(_0x4e469c,_0x3480d4){const _0x30718f=_0x3071();return _0xe904=function(_0xe90499,_0x50e7e0){_0xe90499=_0xe90499-0x1a6;let _0x36f0f5=_0x30718f[_0xe90499];return _0x36f0f5;},_0xe904(_0x4e469c,_0x3480d4);}function _0x3071(){const _0x56cff7=['set','571946xZwxCo','3366840cTpkDh','7730bUTWan','ck-ai-form__error','2991lqxmrl','div','content','235454IKCRon','text','32XHIfeW','383490RiDnYT','184JaOZqm','bindTemplate','setTemplate','378777qNcXTe','696vmMEuN'];_0x3071=function(){return _0x56cff7;};return _0x3071();}(function(_0x4f199f,_0x103cf5){const _0x456ff5=_0xe904,_0x46e269=_0x4f199f();while(!![]){try{const _0x451127=-parseInt(_0x456ff5(0x1aa))/0x1+parseInt(_0x456ff5(0x1b4))/0x2+parseInt(_0x456ff5(0x1a7))/0x3*(parseInt(_0x456ff5(0x1ae))/0x4)+parseInt(_0x456ff5(0x1b6))/0x5*(parseInt(_0x456ff5(0x1b2))/0x6)+-parseInt(_0x456ff5(0x1b1))/0x7*(-parseInt(_0x456ff5(0x1ac))/0x8)+parseInt(_0x456ff5(0x1ad))/0x9+-parseInt(_0x456ff5(0x1b5))/0xa;if(_0x451127===_0x103cf5)break;else _0x46e269['push'](_0x46e269['shift']());}catch(_0x52bb06){_0x46e269['push'](_0x46e269['shift']());}}}(_0x3071,0x305c7));import{IconError as _0x301571}from'ckeditor5/src/icons.js';import{View as _0x2c86e6,IconView as _0x26e656}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x2c86e6{constructor(_0x5b5caf,_0x1d6a30=''){const _0x2e055f=_0xe904;super(_0x5b5caf);const _0xee9315=new _0x26e656(),_0xf40618=this[_0x2e055f(0x1af)];this[_0x2e055f(0x1b3)](_0x2e055f(0x1ab),_0x1d6a30),_0xee9315[_0x2e055f(0x1a9)]=_0x301571,this[_0x2e055f(0x1b0)]({'tag':_0x2e055f(0x1a8),'attributes':{'class':['ck',_0x2e055f(0x1a6)]},'children':[_0xee9315,{'text':_0xf40618['to'](_0x2e055f(0x1ab))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2a9d(){const _0x2f134d=['isOn','_createShowHistoryButton','3767796qLOjod','focusableChildren','470232sOJFfj','locale','element','resultsView','ck-ai-form__toggle-history','execute','focusCycler','maxRows','queryView','showHistoryButtonView','update','isEnabled','render','right','width','focus','uiLanguageDirection','fire','4313432ILNixR','value','add','requestAnimationFrame','focusLast','style','ck-ai-form__submit','isVisible','fieldWrapperChildren','children','focusFirst','submitButtonView','set','keystrokes','_createSubmitButton','window','6724440JrFDcA','38KBhNiw','excludeScrollbarsAndBorders','target','1082532yAErrE','enter','bind','minRows','History','20nqozJC','313530DulTMY','rtl','Submit','43541WemaeY','fieldView','isEmpty','left','submit','filteredView'];_0x2a9d=function(){return _0x2f134d;};return _0x2a9d();}const _0x2d2c9c=_0x5167;(function(_0x1b444e,_0xfab4c0){const _0x37ed70=_0x5167,_0x181bb4=_0x1b444e();while(!![]){try{const _0x5c6caa=parseInt(_0x37ed70(0x125))/0x1*(-parseInt(_0x37ed70(0x152))/0x2)+-parseInt(_0x37ed70(0x155))/0x3+parseInt(_0x37ed70(0x151))/0x4+-parseInt(_0x37ed70(0x121))/0x5*(-parseInt(_0x37ed70(0x12f))/0x6)+-parseInt(_0x37ed70(0x122))/0x7+parseInt(_0x37ed70(0x141))/0x8+-parseInt(_0x37ed70(0x12d))/0x9;if(_0x5c6caa===_0xfab4c0)break;else _0x181bb4['push'](_0x181bb4['shift']());}catch(_0x5b48eb){_0x181bb4['push'](_0x181bb4['shift']());}}}(_0x2a9d,0xd762c));import{Rect as _0x2a6634,global as _0x470b18,isVisible as _0x3d4bc9}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x34ea11,IconSubmit as _0x18ef55}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x86cc5f,ButtonView as _0x38655d}from'ckeditor5/src/ui.js';function _0x5167(_0x30fb7b,_0x43e908){const _0x2a9df5=_0x2a9d();return _0x5167=function(_0x5167a5,_0x23d3df){_0x5167a5=_0x5167a5-0x11d;let _0x5b3ae7=_0x2a9df5[_0x5167a5];return _0x5b3ae7;},_0x5167(_0x30fb7b,_0x43e908);}import{getTranslation as _0x284464}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x86cc5f{[_0x2d2c9c(0x14c)];[_0x2d2c9c(0x138)];constructor(_0x4d8308,_0x36ce1f){const _0x154e6c=_0x2d2c9c;super(_0x4d8308,_0x36ce1f),this[_0x154e6c(0x137)][_0x154e6c(0x126)][_0x154e6c(0x11f)]=0x1,this[_0x154e6c(0x137)][_0x154e6c(0x126)][_0x154e6c(0x136)]=0x3,this[_0x154e6c(0x14c)]=this[_0x154e6c(0x14f)](),this[_0x154e6c(0x138)]=this[_0x154e6c(0x12c)](),this[_0x154e6c(0x12e)][_0x154e6c(0x143)](this[_0x154e6c(0x138)],0x1),this[_0x154e6c(0x12e)][_0x154e6c(0x143)](this[_0x154e6c(0x14c)]);}[_0x2d2c9c(0x13b)](){const _0xb83349=_0x2d2c9c;super[_0xb83349(0x13b)](),this[_0xb83349(0x137)][_0xb83349(0x149)][_0xb83349(0x143)](this[_0xb83349(0x138)]),this[_0xb83349(0x14a)][_0xb83349(0x143)](this[_0xb83349(0x14c)]),this[_0xb83349(0x14e)][_0xb83349(0x14d)](_0xb83349(0x11d),(_0x503687,_0x245da0)=>{const _0x38d71f=_0xb83349;_0x503687[_0x38d71f(0x154)]==this[_0x38d71f(0x137)][_0x38d71f(0x126)][_0x38d71f(0x131)]&&(this[_0x38d71f(0x129)](),_0x245da0());});}[_0x2d2c9c(0x14f)](){const _0x10db35=_0x2d2c9c,_0x1f197c=new _0x38655d(this[_0x10db35(0x130)]),_0x4e5ee4=this[_0x10db35(0x130)];return _0x1f197c[_0x10db35(0x14d)]({'icon':_0x18ef55,'label':_0x284464(_0x4e5ee4,_0x10db35(0x124)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x10db35(0x147)}),_0x1f197c['on'](_0x10db35(0x134),()=>{const _0x2f8e38=_0x10db35;this[_0x2f8e38(0x129)]();}),_0x1f197c[_0x10db35(0x11e)](_0x10db35(0x13a))['to'](this[_0x10db35(0x137)][_0x10db35(0x126)],_0x10db35(0x127),this,_0x10db35(0x13a),(_0x155487,_0x2be93a)=>!_0x155487&&_0x2be93a),_0x1f197c;}[_0x2d2c9c(0x12c)](){const _0x9cf6ec=_0x2d2c9c,_0x4799f3=new _0x38655d(this[_0x9cf6ec(0x130)]),_0x4ce4b7=this[_0x9cf6ec(0x132)],_0x415cf8=this[_0x9cf6ec(0x130)];_0x4799f3[_0x9cf6ec(0x14d)]({'label':_0x284464(_0x415cf8,_0x9cf6ec(0x120)),'withText':!0x1,'icon':_0x34ea11,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x9cf6ec(0x133)}),_0x4799f3[_0x9cf6ec(0x11e)](_0x9cf6ec(0x12b))['to'](_0x4ce4b7,_0x9cf6ec(0x148)),_0x4799f3[_0x9cf6ec(0x11e)](_0x9cf6ec(0x13a))['to'](this,_0x9cf6ec(0x13a)),_0x4799f3['on'](_0x9cf6ec(0x134),()=>{const _0x2b91c5=_0x9cf6ec;_0x4ce4b7[_0x2b91c5(0x148)]=!_0x4ce4b7[_0x2b91c5(0x148)],_0x4ce4b7[_0x2b91c5(0x148)]?this[_0x2b91c5(0x12a)][_0x2b91c5(0x13e)]():this[_0x2b91c5(0x13e)]();});const _0x237c77=()=>{const _0x6b2ec=_0x9cf6ec;_0x470b18[_0x6b2ec(0x150)][_0x6b2ec(0x144)](()=>{const _0x6203d6=_0x6b2ec;if(_0x3d4bc9(this[_0x6203d6(0x131)])){const _0x43e7d9=new _0x2a6634(this[_0x6203d6(0x137)][_0x6203d6(0x126)][_0x6203d6(0x131)]),_0x1cdeb4=_0x43e7d9[_0x6203d6(0x13d)],_0x1b0b85=_0x6203d6(0x123)===_0x415cf8[_0x6203d6(0x13f)]?_0x6203d6(0x128):_0x6203d6(0x13c);_0x43e7d9[_0x6203d6(0x153)](),_0x4799f3[_0x6203d6(0x131)][_0x6203d6(0x146)][_0x1b0b85]=_0x1cdeb4-_0x43e7d9[_0x6203d6(0x13d)]+0x1+'px';}});};return this[_0x9cf6ec(0x137)][_0x9cf6ec(0x126)]['on'](_0x9cf6ec(0x139),_0x237c77),this['on'](_0x9cf6ec(0x13b),_0x237c77),_0x4799f3;}[_0x2d2c9c(0x129)](){const _0x5a2bc9=_0x2d2c9c,_0x365a7d=this[_0x5a2bc9(0x137)][_0x5a2bc9(0x126)][_0x5a2bc9(0x131)][_0x5a2bc9(0x142)];this[_0x5a2bc9(0x140)](_0x5a2bc9(0x129),_0x365a7d);}[_0x2d2c9c(0x13e)](_0x3fe417){const _0x1f185e=_0x2d2c9c;-0x1===_0x3fe417?this[_0x1f185e(0x135)][_0x1f185e(0x145)]():this[_0x1f185e(0x135)][_0x1f185e(0x14b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x36bbf8=_0x1e7d;(function(_0x479a74,_0x3acc83){const _0x94bf64=_0x1e7d,_0xefc9d5=_0x479a74();while(!![]){try{const _0x2376f9=-parseInt(_0x94bf64(0x1f1))/0x1+-parseInt(_0x94bf64(0x1f3))/0x2+parseInt(_0x94bf64(0x1eb))/0x3*(-parseInt(_0x94bf64(0x1dd))/0x4)+parseInt(_0x94bf64(0x1dc))/0x5+parseInt(_0x94bf64(0x1f6))/0x6+parseInt(_0x94bf64(0x1f2))/0x7+-parseInt(_0x94bf64(0x1de))/0x8*(parseInt(_0x94bf64(0x1e5))/0x9);if(_0x2376f9===_0x3acc83)break;else _0xefc9d5['push'](_0xefc9d5['shift']());}catch(_0x2d8e19){_0xefc9d5['push'](_0xefc9d5['shift']());}}}(_0x55ac,0x733d8));import{ToolbarView as _0x37fc23,ButtonView as _0x31390d}from'ckeditor5/src/ui.js';function _0x55ac(){const _0x420065=['toUpperCase','insertButton','ck-hidden','extendTemplate','replaceButton','AI_','addMany','Insert\x20below','insert','3218095MJyACG','4NmeYPw','8IsNSsq','_createButton','bindTemplate','label','REPLACE','_CONTENT','tryAgainButton','7677081xmeyzf','bind','isVisible','Try\x20again','ck-ai-form__toolbar','replace','89031yjXjYk','set','Stop','ck-button-action','items','mainAction','345137QnGcZt','4606616dcCVoc','991752ZnXVmp','locale','stopButton','5364096TKCccR'];_0x55ac=function(){return _0x420065;};return _0x55ac();}import{getTranslation as _0x133a3a}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x36bbf8(0x1ea),'INSERT':_0x36bbf8(0x1db)};function _0x1e7d(_0x174ae5,_0x57e714){const _0x55ac20=_0x55ac();return _0x1e7d=function(_0x1e7d79,_0x5d0abb){_0x1e7d79=_0x1e7d79-0x1da;let _0x369f8d=_0x55ac20[_0x1e7d79];return _0x369f8d;},_0x1e7d(_0x174ae5,_0x57e714);}export class AIFormToolbarView extends _0x37fc23{constructor(_0x5662bb){const _0x45455c=_0x36bbf8;super(_0x5662bb),this[_0x45455c(0x1ec)](_0x45455c(0x1e7),!0x1),this[_0x45455c(0x1ec)](_0x45455c(0x1f0),AIFormToolbarViewMainActionLabel[_0x45455c(0x1e2)]),this[_0x45455c(0x1fb)]=this[_0x45455c(0x1df)]('',_0x45455c(0x1ee)),this[_0x45455c(0x1fb)][_0x45455c(0x1e6)](_0x45455c(0x1e1))['to'](this,_0x45455c(0x1f0),_0x3d36cf=>_0x133a3a(_0x5662bb,_0x45455c(0x1fc)+_0x3d36cf[_0x45455c(0x1f7)]()+_0x45455c(0x1e3))),this[_0x45455c(0x1f8)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1da))),this[_0x45455c(0x1e4)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1e8))),this[_0x45455c(0x1f5)]=this[_0x45455c(0x1df)](_0x133a3a(_0x5662bb,_0x45455c(0x1ed)));const _0x1fbfd0=this[_0x45455c(0x1e0)];this[_0x45455c(0x1fa)]({'attributes':{'class':[_0x45455c(0x1e9),_0x1fbfd0['if'](_0x45455c(0x1e7),_0x45455c(0x1f9),_0x379534=>!_0x379534)]}}),this[_0x45455c(0x1ef)][_0x45455c(0x1fd)]([this[_0x45455c(0x1fb)],this[_0x45455c(0x1f8)],this[_0x45455c(0x1e4)],this[_0x45455c(0x1f5)]]);}[_0x36bbf8(0x1df)](_0x3b68a9,_0x13ed5f){const _0x56a59a=_0x36bbf8,_0x46506f=new _0x31390d(this[_0x56a59a(0x1f4)]);return _0x46506f[_0x56a59a(0x1ec)]({'label':_0x3b68a9,'class':_0x13ed5f||'','isVisible':!0x0,'withText':!0x0}),_0x46506f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bf53b=_0x3729;(function(_0x3d5cf2,_0x2d9eb5){const _0x538c1e=_0x3729,_0x205d7b=_0x3d5cf2();while(!![]){try{const _0x1aad1a=parseInt(_0x538c1e(0x18e))/0x1*(parseInt(_0x538c1e(0x194))/0x2)+parseInt(_0x538c1e(0x1a9))/0x3*(-parseInt(_0x538c1e(0x1bb))/0x4)+parseInt(_0x538c1e(0x1b8))/0x5*(parseInt(_0x538c1e(0x1ac))/0x6)+-parseInt(_0x538c1e(0x1c9))/0x7*(parseInt(_0x538c1e(0x1d1))/0x8)+-parseInt(_0x538c1e(0x184))/0x9+-parseInt(_0x538c1e(0x1cf))/0xa*(parseInt(_0x538c1e(0x1b1))/0xb)+parseInt(_0x538c1e(0x182))/0xc;if(_0x1aad1a===_0x2d9eb5)break;else _0x205d7b['push'](_0x205d7b['shift']());}catch(_0x13e811){_0x205d7b['push'](_0x205d7b['shift']());}}}(_0x5c34,0xf0285));import{FocusTracker as _0x59d05d,KeystrokeHandler as _0x3f4ecd}from'ckeditor5/src/utils.js';function _0x5c34(){const _0x40777f=['submit','tab','_createPromptView','chain','focusFirst','2451453jiiDgv','reset','ck-hidden','18xpwbQV','Ask\x20AI\x20to\x20edit\x20or\x20generate','ck-ai-form-content','render','handleError','3070265xMrZYW','replaceButton','execute','errorView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','div','text','2148470rpTzGX','REPLACE','keystrokes','4hbcaAR','Ask\x20AI\x20to\x20improve\x20generated\x20text','items','bind','shift\x20+\x20tab','startProcessing','focusLast','locale','fire','element','createCollection','focusCycler','replaceContent','setTemplate','35NXHDrm','tryAgainButton','delegate','insertButton','ck-ai-form','insertContentBelow','60wugQCC','focus','2581160oOwfzw','Empty\x20history','prompt','add','high','copyButtonView','queryView','focusTracker','54353544kyWhPW','submitPrompt','7243362vIPsKS','contentArea','set','stopProcessing','bindTo','mainAction','trim','search','label','value','75025QpSxAJ','clearHistory','historyGroupView','_promptHistory','promptView','isEnabled','2YEtuOs','bindTemplate','toolbar','fieldView','isError','isVisible','tryAgainEvent','finishProcessing','_createHistoryView','listenTo','stopButton','clear','_createToolbar','isProcessing','AI_ERROR_FAILED','_focusables'];_0x5c34=function(){return _0x40777f;};return _0x5c34();}function _0x3729(_0x153eff,_0x192db8){const _0x5c3425=_0x5c34();return _0x3729=function(_0x372997,_0x5ec114){_0x372997=_0x372997-0x17c;let _0x48b201=_0x5c3425[_0x372997];return _0x48b201;},_0x3729(_0x153eff,_0x192db8);}import{View as _0x5254a6,FocusCycler as _0x3a04a1,createLabeledTextarea as _0x5974da}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xdd1cf1,AIFormToolbarViewMainActionLabel as _0x2e285f}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x3f5f69}from'./aiformcontentarea.js';import{AIFormErrorView as _0x14c13e}from'./aiformerrorview.js';import{AIFormPromptView as _0x14cc10}from'./aiformpromptview.js';import{AIHistoryListView as _0x18f091}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x460839}from'./aihistorylistitemview.js';import{PromptHistory as _0x4f8ef9}from'./prompthistory.js';import{getTranslation as _0x231419}from'../../utils/common-translations.js';import{escape as _0x1b4f82}from'es-toolkit/compat';export class AIFormView extends _0x5254a6{[_0x5bf53b(0x181)];[_0x5bf53b(0x1ba)];[_0x5bf53b(0x185)];[_0x5bf53b(0x196)];[_0x5bf53b(0x192)];[_0x5bf53b(0x1b4)];[_0x5bf53b(0x1a3)];[_0x5bf53b(0x1c6)];[_0x5bf53b(0x191)];constructor(_0x2aa8c8,_0x2702cb,_0x333cd7=''){const _0x34716b=_0x5bf53b;super(_0x2aa8c8),this[_0x34716b(0x186)](_0x34716b(0x193),!0x0),this[_0x34716b(0x186)](_0x34716b(0x1a1),!0x1),this[_0x34716b(0x186)](_0x34716b(0x17c),''),this[_0x34716b(0x186)](_0x34716b(0x18d),''),this[_0x34716b(0x186)](_0x34716b(0x198),!0x1),this[_0x34716b(0x186)](_0x34716b(0x189),_0x2e285f[_0x34716b(0x1b9)]),this[_0x34716b(0x191)]=new _0x4f8ef9(),this[_0x34716b(0x1b4)]=new _0x14c13e(_0x2aa8c8),this[_0x34716b(0x185)]=new _0x3f5f69(_0x2aa8c8,_0x333cd7),this[_0x34716b(0x185)][_0x34716b(0x1be)](_0x34716b(0x1a1))['to'](this),this[_0x34716b(0x185)][_0x34716b(0x1be)](_0x34716b(0x18d))['to'](this),this[_0x34716b(0x196)]=this[_0x34716b(0x1a0)](),this[_0x34716b(0x196)][_0x34716b(0x1be)](_0x34716b(0x189))['to'](this),this[_0x34716b(0x192)]=this[_0x34716b(0x1a6)](),this[_0x34716b(0x181)]=new _0x59d05d(),this[_0x34716b(0x1ba)]=new _0x3f4ecd(),this[_0x34716b(0x1a3)]=this[_0x34716b(0x1c5)]([this[_0x34716b(0x185)],this[_0x34716b(0x185)][_0x34716b(0x17f)],this[_0x34716b(0x196)],this[_0x34716b(0x192)]]),this[_0x34716b(0x1c6)]=new _0x3a04a1({'focusables':this[_0x34716b(0x1a3)],'focusTracker':this[_0x34716b(0x181)],'keystrokeHandler':this[_0x34716b(0x1ba)],'actions':{'focusPrevious':_0x34716b(0x1bf),'focusNext':_0x34716b(0x1a5)}}),this[_0x34716b(0x1c6)][_0x34716b(0x1a7)](this[_0x34716b(0x192)][_0x34716b(0x1c6)]),this[_0x34716b(0x192)][_0x34716b(0x180)][_0x34716b(0x197)][_0x34716b(0x1be)](_0x34716b(0x18d))['to'](this,_0x34716b(0x17c));const _0x34e119=this[_0x34716b(0x195)];this[_0x34716b(0x1c8)]({'tag':_0x34716b(0x1b6),'attributes':{'class':['ck',_0x34716b(0x1cd),_0x2702cb],'tabindex':'-1'},'children':[{'tag':_0x34716b(0x1b6),'attributes':{'class':['ck',_0x34716b(0x1ae)]},'children':[{'tag':_0x34716b(0x1b6),'attributes':{'class':[_0x34e119['if'](_0x34716b(0x198),_0x34716b(0x1ab),_0x3b3a6f=>!_0x3b3a6f)]},'children':[this[_0x34716b(0x1b4)]]},this[_0x34716b(0x185)],this[_0x34716b(0x196)],this[_0x34716b(0x192)]]}]});}[_0x5bf53b(0x1af)](){const _0x28aa12=_0x5bf53b;super[_0x28aa12(0x1af)](),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x185)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x185)][_0x28aa12(0x17f)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x196)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x181)][_0x28aa12(0x17d)](this[_0x28aa12(0x192)][_0x28aa12(0x1c4)]),this[_0x28aa12(0x1ba)][_0x28aa12(0x19d)](this[_0x28aa12(0x1c4)]);}[_0x5bf53b(0x1d0)](_0x49b408=0x1){const _0x28f4ba=_0x5bf53b;-0x1===_0x49b408?this[_0x28f4ba(0x1c6)][_0x28f4ba(0x1c1)]():this[_0x28f4ba(0x1c6)][_0x28f4ba(0x1a8)]();}[_0x5bf53b(0x1aa)](){const _0x519dd2=_0x5bf53b;this[_0x519dd2(0x17c)]='',this[_0x519dd2(0x18d)]='',this[_0x519dd2(0x198)]=!0x1,this[_0x519dd2(0x192)][_0x519dd2(0x1aa)](),this[_0x519dd2(0x185)][_0x519dd2(0x199)]=!0x1,this[_0x519dd2(0x196)][_0x519dd2(0x199)]=!0x1;}[_0x5bf53b(0x1a6)](){const _0x30426e=_0x5bf53b,_0x3b35ee=this[_0x30426e(0x1c2)],_0x56ba49=new _0x14cc10(_0x3b35ee,{'queryView':{'label':_0x231419(_0x3b35ee,_0x30426e(0x1ad)),'creator':_0x5974da,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x231419(_0x3b35ee,_0x30426e(0x1d2)),'secondary':_0x231419(_0x3b35ee,_0x30426e(0x1b5))}}},'filteredView':this[_0x30426e(0x19c)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x56ba49[_0x30426e(0x1be)](_0x30426e(0x193))['to'](this,_0x30426e(0x193),this,_0x30426e(0x1a1),(_0x399341,_0x4364ef)=>_0x399341&&!_0x4364ef),this[_0x30426e(0x19d)](_0x56ba49,_0x30426e(0x1a4),(_0x12f7ca,_0x4401d0)=>{const _0x32ca96=_0x30426e;this[_0x32ca96(0x17c)]=_0x4401d0;const _0x542b68=_0x1b4f82(_0x4401d0);this[_0x32ca96(0x1c3)](_0x32ca96(0x183),_0x542b68),_0x4401d0[_0x32ca96(0x18a)]()&&this[_0x32ca96(0x191)][_0x32ca96(0x17d)]({'prompt':_0x542b68},0x0);},{'priority':_0x30426e(0x17e)}),_0x56ba49;}[_0x5bf53b(0x19c)](){const _0x448df3=_0x5bf53b,_0x3d6d3f=new _0x18f091(this[_0x448df3(0x1c2)]);return _0x3d6d3f[_0x448df3(0x190)][_0x448df3(0x1bd)][_0x448df3(0x188)](this[_0x448df3(0x191)])['as'](_0x460839),_0x3d6d3f['on'](_0x448df3(0x18f),()=>{const _0x4cb413=_0x448df3;this[_0x4cb413(0x191)][_0x4cb413(0x19f)](),this[_0x4cb413(0x192)][_0x4cb413(0x18b)](''),this[_0x4cb413(0x192)][_0x4cb413(0x1d0)]();}),_0x3d6d3f;}[_0x5bf53b(0x1a0)](){const _0x1c111d=_0x5bf53b,_0x442f43=new _0xdd1cf1(this[_0x1c111d(0x1c2)]);return _0x442f43[_0x1c111d(0x1b2)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x193),this,_0x1c111d(0x1a1),this,_0x1c111d(0x18d),(_0x38be3b,_0x3839de,_0xe5609a)=>_0x38be3b&&!_0x3839de&&!!_0xe5609a),_0x442f43[_0x1c111d(0x1b2)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x1c7)),_0x442f43[_0x1c111d(0x1cc)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x193),this,_0x1c111d(0x1a1),this,_0x1c111d(0x18d),(_0x3e994b,_0x6c54ba,_0x1c8ae8)=>_0x3e994b&&!_0x6c54ba&&!!_0x1c8ae8),_0x442f43[_0x1c111d(0x1cc)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x1ce)),_0x442f43[_0x1c111d(0x1ca)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x193),this,_0x1c111d(0x1a1),(_0x81d256,_0x3977a6)=>_0x81d256&&!_0x3977a6),_0x442f43[_0x1c111d(0x1ca)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x19a)),_0x442f43[_0x1c111d(0x19e)][_0x1c111d(0x1be)](_0x1c111d(0x193))['to'](this,_0x1c111d(0x1a1)),_0x442f43[_0x1c111d(0x19e)][_0x1c111d(0x1cb)](_0x1c111d(0x1b3))['to'](this,_0x1c111d(0x187)),_0x442f43;}[_0x5bf53b(0x1c0)](){const _0x140c9a=_0x5bf53b;this[_0x140c9a(0x18d)]='',this[_0x140c9a(0x198)]=!0x1,this[_0x140c9a(0x1a1)]=!0x0,this[_0x140c9a(0x185)][_0x140c9a(0x199)]=!0x0,this[_0x140c9a(0x196)][_0x140c9a(0x199)]=!0x0,this[_0x140c9a(0x185)][_0x140c9a(0x1d0)]();}[_0x5bf53b(0x19b)](){const _0x238f0d=_0x5bf53b,_0x516e07=this[_0x238f0d(0x1c2)];this[_0x238f0d(0x1a1)]=!0x1,this[_0x238f0d(0x17c)]='',this[_0x238f0d(0x192)][_0x238f0d(0x1aa)](),this[_0x238f0d(0x18d)]&&(this[_0x238f0d(0x192)][_0x238f0d(0x180)][_0x238f0d(0x18c)]=_0x231419(_0x516e07,_0x238f0d(0x1bc)));}[_0x5bf53b(0x1b0)](_0x31c8db){const _0xb7044c=_0x5bf53b,_0x149c3d=this[_0xb7044c(0x1c2)];this[_0xb7044c(0x19b)](),this[_0xb7044c(0x198)]=!0x0,this[_0xb7044c(0x1b4)][_0xb7044c(0x1b7)]=_0x31c8db||_0x231419(_0x149c3d,_0xb7044c(0x1a2)),this[_0xb7044c(0x18d)]||(this[_0xb7044c(0x185)][_0xb7044c(0x199)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x462d(_0x2165c3,_0x48d0ca){const _0x503a18=_0x503a();return _0x462d=function(_0x462da5,_0x41a09f){_0x462da5=_0x462da5-0x147;let _0x26f9e1=_0x503a18[_0x462da5];return _0x26f9e1;},_0x462d(_0x2165c3,_0x48d0ca);}(function(_0x4355e5,_0xca323a){const _0x51f53a=_0x462d,_0x393c08=_0x4355e5();while(!![]){try{const _0x5158d4=parseInt(_0x51f53a(0x14c))/0x1*(-parseInt(_0x51f53a(0x14b))/0x2)+-parseInt(_0x51f53a(0x156))/0x3*(parseInt(_0x51f53a(0x158))/0x4)+parseInt(_0x51f53a(0x14e))/0x5*(-parseInt(_0x51f53a(0x148))/0x6)+-parseInt(_0x51f53a(0x149))/0x7*(parseInt(_0x51f53a(0x15a))/0x8)+parseInt(_0x51f53a(0x151))/0x9*(parseInt(_0x51f53a(0x154))/0xa)+-parseInt(_0x51f53a(0x14d))/0xb*(-parseInt(_0x51f53a(0x147))/0xc)+parseInt(_0x51f53a(0x150))/0xd;if(_0x5158d4===_0xca323a)break;else _0x393c08['push'](_0x393c08['shift']());}catch(_0x50ccd5){_0x393c08['push'](_0x393c08['shift']());}}}(_0x503a,0x5067d));import{ListItemView as _0x55c6bb,ButtonView as _0x34bdca,ButtonLabelView as _0x12b207}from'ckeditor5/src/ui.js';import{unescape as _0x30749b}from'es-toolkit/compat';function _0x503a(){const _0x40527c=['19498505NtHQEc','160038VLPGWG','children','execute','270whiEQI','set','112335PnDroA','locale','44NEaJAp','prompt','15216nWhkJm','35100yWDUQO','92196wFBtzZ','2359aDbxXo','add','119014fSFaya','6DxOOEj','77MYxwPw','85WeCGBh','fire'];_0x503a=function(){return _0x40527c;};return _0x503a();}export class AIHistoryListItemView extends _0x55c6bb{constructor(_0x4f2e85){const _0x3a1dec=_0x462d;super();const _0xd64eb8=new _0x12b207(),_0x5d9417=new _0x34bdca(this[_0x3a1dec(0x157)],_0xd64eb8);this[_0x3a1dec(0x152)][_0x3a1dec(0x14a)](_0x5d9417),_0x5d9417[_0x3a1dec(0x155)]({'label':_0x4f2e85[_0x3a1dec(0x159)],'withText':!0x0}),_0x5d9417['on'](_0x3a1dec(0x153),()=>{const _0x18f592=_0x3a1dec;this[_0x18f592(0x14f)](_0x18f592(0x153),{'value':_0x30749b(_0x4f2e85[_0x18f592(0x159)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f62d2=_0x1fb5;(function(_0x4f2c44,_0x2184c7){const _0x59e398=_0x1fb5,_0x437688=_0x4f2c44();while(!![]){try{const _0xf8492f=-parseInt(_0x59e398(0x134))/0x1+parseInt(_0x59e398(0x140))/0x2*(parseInt(_0x59e398(0x141))/0x3)+parseInt(_0x59e398(0x135))/0x4+parseInt(_0x59e398(0x13b))/0x5*(parseInt(_0x59e398(0x127))/0x6)+-parseInt(_0x59e398(0x13c))/0x7*(-parseInt(_0x59e398(0x129))/0x8)+parseInt(_0x59e398(0x13e))/0x9+-parseInt(_0x59e398(0x12b))/0xa;if(_0xf8492f===_0x2184c7)break;else _0x437688['push'](_0x437688['shift']());}catch(_0x3ff494){_0x437688['push'](_0x437688['shift']());}}}(_0x734f,0x290f3));import{ListView as _0x1874c2,ListItemGroupView as _0xa2c7ae,ButtonView as _0x137f53}from'ckeditor5/src/ui.js';function _0x734f(){const _0x16c11c=['556472GKSlJz','Clear','3110530aeDudu','locale','set','_createClearHistoryButton','items','clearHistoryButton','delegate','clearHistory','historyGroupView','112055oygwRP','629516fYROAB','children','execute','length','label','filter','180aFiLSh','7kPkJtg','fire','2815200kNBDYr','Prompt\x20history','74946eYcVXz','3ZUUVwK','2346DBUHwQ','add'];_0x734f=function(){return _0x16c11c;};return _0x734f();}function _0x1fb5(_0x411fa5,_0x1310cf){const _0x734f0a=_0x734f();return _0x1fb5=function(_0x1fb549,_0x528925){_0x1fb549=_0x1fb549-0x127;let _0x58063f=_0x734f0a[_0x1fb549];return _0x58063f;},_0x1fb5(_0x411fa5,_0x1310cf);}import{getTranslation as _0xa8c5e}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x1874c2{[_0x3f62d2(0x133)];[_0x3f62d2(0x130)];constructor(_0x852d54){const _0x44ac94=_0x3f62d2;super(_0x852d54),this[_0x44ac94(0x130)]=this[_0x44ac94(0x12e)](),this[_0x44ac94(0x133)]=new _0xa2c7ae(),this[_0x44ac94(0x133)][_0x44ac94(0x136)][_0x44ac94(0x128)](this[_0x44ac94(0x130)],0x1),this[_0x44ac94(0x133)][_0x44ac94(0x139)]=_0xa8c5e(_0x852d54,_0x44ac94(0x13f)),this[_0x44ac94(0x133)][_0x44ac94(0x12f)][_0x44ac94(0x131)](_0x44ac94(0x137))['to'](this),this[_0x44ac94(0x12f)][_0x44ac94(0x128)](this[_0x44ac94(0x133)]);}[_0x3f62d2(0x13a)](){const _0x50707e=_0x3f62d2;let _0x208eb0=0x0;for(const _0x3999a9 of this[_0x50707e(0x12f)])_0x208eb0+=_0x3999a9[_0x50707e(0x12f)][_0x50707e(0x138)];return{'resultsCount':_0x208eb0,'totalItemsCount':_0x208eb0};}[_0x3f62d2(0x12e)](){const _0xa1d3b2=_0x3f62d2,_0x1e86fd=this[_0xa1d3b2(0x12c)],_0x271b4c=new _0x137f53(this[_0xa1d3b2(0x12c)]);return _0x271b4c[_0xa1d3b2(0x12d)]({'label':'('+_0xa8c5e(_0x1e86fd,_0xa1d3b2(0x12a))+')','withText':!0x0}),_0x271b4c['on'](_0xa1d3b2(0x137),()=>this[_0xa1d3b2(0x13d)](_0xa1d3b2(0x132))),_0x271b4c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40ed72=_0x2293;(function(_0x10f138,_0x170994){const _0xe4d0f8=_0x2293,_0x25f208=_0x10f138();while(!![]){try{const _0x434547=parseInt(_0xe4d0f8(0x1f5))/0x1*(-parseInt(_0xe4d0f8(0x1f3))/0x2)+parseInt(_0xe4d0f8(0x1f1))/0x3+parseInt(_0xe4d0f8(0x1df))/0x4*(parseInt(_0xe4d0f8(0x1f2))/0x5)+-parseInt(_0xe4d0f8(0x1f6))/0x6+-parseInt(_0xe4d0f8(0x1db))/0x7*(parseInt(_0xe4d0f8(0x1de))/0x8)+parseInt(_0xe4d0f8(0x1e4))/0x9*(parseInt(_0xe4d0f8(0x1e7))/0xa)+-parseInt(_0xe4d0f8(0x1e8))/0xb*(-parseInt(_0xe4d0f8(0x1ec))/0xc);if(_0x434547===_0x170994)break;else _0x25f208['push'](_0x25f208['shift']());}catch(_0x194bf5){_0x25f208['push'](_0x25f208['shift']());}}}(_0x2c13,0x67223));function _0x2293(_0x3d6477,_0x557fe8){const _0x2c134c=_0x2c13();return _0x2293=function(_0x229347,_0x282311){_0x229347=_0x229347-0x1db;let _0x3173da=_0x2c134c[_0x229347];return _0x3173da;},_0x2293(_0x3d6477,_0x557fe8);}function _0x2c13(){const _0x381ba5=['1313496SXxmZH','35895fnMQJf','10TsiyJr','last','164231smCfYa','1041312RtbVfA','7rrLlvf','add','toLowerCase','3106792YmOVkv','344OdOtKD','parse','length','_loadFromSessionStorage','setItem','9QKiICm','CKEditor/AIFormView/PromptHistory','addMany','6271220JIIqUQ','1354573TnYQkn','remove','getItem','stringify','12zCPJbb','map','_saveToSessionStorage','prompt','trim'];_0x2c13=function(){return _0x381ba5;};return _0x2c13();}import{Collection as _0x2e0b58}from'ckeditor5/src/utils.js';const So=_0x40ed72(0x1e5);export class PromptHistory extends _0x2e0b58{constructor(){const _0x101305=_0x40ed72;super(),this[_0x101305(0x1e2)](),this['on'](_0x101305(0x1dc),(_0x5dc229,_0x4aed54)=>{const _0x21821b=_0x101305,_0xb0952a=go(_0x4aed54[_0x21821b(0x1ef)]);for(const _0x2d5c6f of this)if(_0x2d5c6f!=_0x4aed54&&go(_0x2d5c6f[_0x21821b(0x1ef)])===_0xb0952a){this[_0x21821b(0x1e9)](_0x2d5c6f);break;}this[_0x21821b(0x1e1)]>0x14&&this[_0x21821b(0x1e9)](this[_0x21821b(0x1f4)]),this[_0x21821b(0x1ee)]();}),this['on'](_0x101305(0x1e9),()=>{const _0x26e010=_0x101305;this[_0x26e010(0x1ee)]();});}[_0x40ed72(0x1e2)](){const _0x546fb3=_0x40ed72,_0x2a5723=sessionStorage[_0x546fb3(0x1ea)](So)||'[]';this[_0x546fb3(0x1e6)](JSON[_0x546fb3(0x1e0)](_0x2a5723));}[_0x40ed72(0x1ee)](){const _0x1018fa=_0x40ed72;sessionStorage[_0x1018fa(0x1e3)](So,JSON[_0x1018fa(0x1eb)](this[_0x1018fa(0x1ed)](_0x4108c3=>_0x4108c3)));}}function go(_0x1f2112){const _0x46c6d3=_0x40ed72;return _0x1f2112[_0x46c6d3(0x1dd)]()[_0x46c6d3(0x1f0)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44d18e=_0x3de4;(function(_0x2828fb,_0x2248c2){const _0x4dc3c7=_0x3de4,_0x22273b=_0x2828fb();while(!![]){try{const _0x27ef55=-parseInt(_0x4dc3c7(0x13f))/0x1+parseInt(_0x4dc3c7(0x162))/0x2*(parseInt(_0x4dc3c7(0x14c))/0x3)+parseInt(_0x4dc3c7(0x152))/0x4*(parseInt(_0x4dc3c7(0x147))/0x5)+parseInt(_0x4dc3c7(0x14a))/0x6*(parseInt(_0x4dc3c7(0x151))/0x7)+-parseInt(_0x4dc3c7(0x13d))/0x8*(parseInt(_0x4dc3c7(0x149))/0x9)+-parseInt(_0x4dc3c7(0x15c))/0xa+-parseInt(_0x4dc3c7(0x153))/0xb*(-parseInt(_0x4dc3c7(0x166))/0xc);if(_0x27ef55===_0x2248c2)break;else _0x22273b['push'](_0x22273b['shift']());}catch(_0x3f357a){_0x22273b['push'](_0x22273b['shift']());}}}(_0x3053,0xcbc84));function _0x3de4(_0x22ac19,_0x5f03e3){const _0x3053b4=_0x3053();return _0x3de4=function(_0x3de4ef,_0x1df5ec){_0x3de4ef=_0x3de4ef-0x13c;let _0x486841=_0x3053b4[_0x3de4ef];return _0x486841;},_0x3de4(_0x22ac19,_0x5f03e3);}import{Command as _0x9f4bf2}from'ckeditor5/src/core.js';function _0x3053(){const _0xb6e30f=['requiresContent','length','values','change:_hasContext','getFirstRange','11930610PfGgnL','getItems','getRanges','isEnabled','selection','includes','404KCIxya','hasContent','refresh','get','30816ocRRdS','model','element','isEmpty','plugins','619000LkyjEY','showUI','405884yTmdtQ','add','execute','enabledCommandsIds','isCollapsed','config','editor','custom','905WhiGYa','change:isEnabled','81ZiuKIL','6iqsKlA','set','9117rdUCQi','ai.assistant.disabledElements','name','document','_hasContext','6888721gbeoIf','32268qvzqQb','308AqHLhW','getSelectedBlocks','from','_commandDefinitions'];_0x3053=function(){return _0xb6e30f;};return _0x3053();}import{AIAssistantUI as _0x21a013}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x9f4bf2{[_0x44d18e(0x156)];constructor(_0x52c8cd,_0x1a1b20){const _0x32ae9d=_0x44d18e;super(_0x52c8cd),this[_0x32ae9d(0x156)]=_0x1a1b20,this[_0x32ae9d(0x14b)](_0x32ae9d(0x142),[]),this['on'](_0x32ae9d(0x15a),(_0x582542,_0x14dd86,_0x40fddf)=>{const _0x5a2898=_0x32ae9d;this[_0x5a2898(0x15f)]&&(this[_0x5a2898(0x142)]=ns(this[_0x5a2898(0x156)],_0x40fddf));}),this[_0x32ae9d(0x14b)](_0x32ae9d(0x150),!0x1),this['on'](_0x32ae9d(0x148),(_0x1853b0,_0x137255,_0x175438)=>{const _0x271a36=_0x32ae9d;this[_0x271a36(0x142)]=_0x175438?ns(this[_0x271a36(0x156)],this[_0x271a36(0x150)]):[];});}[_0x44d18e(0x164)](){const _0x3d83dc=_0x44d18e,_0x33ad5d=this[_0x3d83dc(0x145)][_0x3d83dc(0x167)];this[_0x3d83dc(0x150)]=function(_0x248b49){const _0x2f7f89=_0x3d83dc,_0x11852=_0x248b49[_0x2f7f89(0x14f)][_0x2f7f89(0x160)];return _0x11852[_0x2f7f89(0x143)]?0x0!==[..._0x11852[_0x2f7f89(0x154)]()][_0x2f7f89(0x158)]&&![..._0x11852[_0x2f7f89(0x154)]()][0x0][_0x2f7f89(0x169)]:!!_0x248b49[_0x2f7f89(0x163)](_0x11852[_0x2f7f89(0x15b)]());}(_0x33ad5d);const _0x2cf491=_0x33ad5d[_0x3d83dc(0x14f)][_0x3d83dc(0x160)],_0x58b08b=this[_0x3d83dc(0x145)][_0x3d83dc(0x144)][_0x3d83dc(0x165)](_0x3d83dc(0x14d));for(const _0x59a2f6 of _0x2cf491[_0x3d83dc(0x15e)]())for(const _0x15a39a of _0x59a2f6[_0x3d83dc(0x15d)]())if(_0x15a39a['is'](_0x3d83dc(0x168))&&_0x58b08b[_0x3d83dc(0x161)](_0x15a39a[_0x3d83dc(0x14e)]))return void(this[_0x3d83dc(0x15f)]=!0x1);this[_0x3d83dc(0x15f)]=!0x0;}[_0x44d18e(0x141)](_0x1eff7e='',_0x52c22e='',_0xec6f2b=_0x44d18e(0x146)){const _0x1ae122=_0x44d18e;this[_0x1ae122(0x145)][_0x1ae122(0x13c)][_0x1ae122(0x165)](_0x21a013)[_0x1ae122(0x13e)](_0x1eff7e,_0x52c22e,_0xec6f2b);}}function ns(_0x278f25,_0x366e41){const _0xa054b1=_0x44d18e,_0x12ded6=new Set();for(const _0x32d067 of _0x278f25[_0xa054b1(0x159)]())(_0x366e41||!0x1===_0x32d067[_0xa054b1(0x157)])&&_0x12ded6[_0xa054b1(0x140)](_0x32d067['id']);return Array[_0xa054b1(0x155)](_0x12ded6);}
|