@ckeditor/ckeditor5-ai 47.7.5 → 47.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b56fe=_0x2088;(function(_0x488b99,_0x4bf9fc){const _0x554153=_0x2088,_0x387aaa=_0x488b99();while(!![]){try{const _0x89468a=-parseInt(_0x554153(0x177))/0x1+parseInt(_0x554153(0x170))/0x2+parseInt(_0x554153(0x183))/0x3+parseInt(_0x554153(0x19d))/0x4*(-parseInt(_0x554153(0x1a0))/0x5)+-parseInt(_0x554153(0x1b4))/0x6+parseInt(_0x554153(0x1be))/0x7+parseInt(_0x554153(0x18d))/0x8;if(_0x89468a===_0x4bf9fc)break;else _0x387aaa['push'](_0x387aaa['shift']());}catch(_0x278dc4){_0x387aaa['push'](_0x387aaa['shift']());}}}(_0x37cd,0x26f85));function _0x37cd(){const _0x966ce5=['focus','ck-ai-form__content-area-wrapper','position','.ck-ai-form__loader','change:value','\x20ck-ai-form__copy-button--copied','textContent','render','ck-ai-form__content-area--processing','_createLoader','left','924618mdGomP','value','<span>]</span>','text/plain','div','createRange','ck-ai-form__loader','ck-ai-form__copy-button-wrapper','setEndBefore','ck-ai-form__content-field','976948Putbvg','loaderView','isEnabled','<span>[</span>','execCommand','336890pztvBD','absolute','setContent','setTemplate','bindTemplate','ClipboardItem','element','119185oRwjXv','change:isProcessing','contentFieldView','ck-ai-form__copy-button','addRange','createElement','firstElementChild','setStartAfter','appendLoader','ck-hidden','appendChild','getSelection','717372qisdMg','mousedown','wheel','scrollTo','_createCopyButton','removeAllRanges','text/html','isVisible','smooth','lastElementChild','1470960RgQUwt','querySelector','Copy','remove','icon','execute','ck-ai-form__content-area','style','set','scrollHeight','locale','bind','-9999px','ck-reset_all-excluded','copyButtonView','_copyHTMLToClipboard','8xizTej','copy','innerHTML','745235MEEOlZ','listenTo','ck-content','body','AI\x20is\x20writing...','class','clipboard','write','isProcessing'];_0x37cd=function(){return _0x966ce5;};return _0x37cd();}import{global as _0xb07656}from'ckeditor5/src/utils.js';import{View as _0xb1a976,ButtonView as _0x5c507f,SpinnerView as _0x393748}from'ckeditor5/src/ui.js';function _0x2088(_0x53ddd8,_0x223323){const _0x37cdce=_0x37cd();return _0x2088=function(_0x2088de,_0x7c339c){_0x2088de=_0x2088de-0x16e;let _0x13da97=_0x37cdce[_0x2088de];return _0x13da97;},_0x2088(_0x53ddd8,_0x223323);}import{IconCheck as _0x5dcee4,IconCopy as _0x4b7909}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d15f3}from'../../utils/common-translations.js';export class AIFormContentArea extends _0xb1a976{[_0x3b56fe(0x179)];[_0x3b56fe(0x19b)];constructor(_0x29779c,_0x284d55=''){const _0x5a0ff3=_0x3b56fe;super(_0x29779c),this[_0x5a0ff3(0x195)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5c1133=this[_0x5a0ff3(0x174)];this[_0x5a0ff3(0x179)]=new ContentFieldView(_0x29779c,_0x284d55),this[_0x5a0ff3(0x19b)]=this[_0x5a0ff3(0x187)](),this[_0x5a0ff3(0x173)]({'tag':_0x5a0ff3(0x1b8),'attributes':{'class':['ck',_0x5a0ff3(0x1aa),_0x5c1133['if'](_0x5a0ff3(0x18a),_0x5a0ff3(0x180),_0x4648b3=>!_0x4648b3)],'tabindex':'-1'},'children':[{'tag':_0x5a0ff3(0x1b8),'attributes':{'class':['ck',_0x5a0ff3(0x193),_0x5c1133['if'](_0x5a0ff3(0x1a8),_0x5a0ff3(0x1b1))]},'children':[this[_0x5a0ff3(0x179)],{'tag':_0x5a0ff3(0x1b8),'attributes':{'class':['ck',_0x5a0ff3(0x1bb)]},'children':[this[_0x5a0ff3(0x19b)]]}]}]});}[_0x3b56fe(0x1b0)](){const _0x13a13f=_0x3b56fe;super[_0x13a13f(0x1b0)](),this[_0x13a13f(0x1b5)]&&this[_0x13a13f(0x179)][_0x13a13f(0x172)](this[_0x13a13f(0x1b5)]);let _0x598a85=!0x1;this['on'](_0x13a13f(0x1ad),(_0x784aa4,_0x4a44a6,_0x33f011)=>{const _0x42a7e4=_0x13a13f,_0x2bb140=!this[_0x42a7e4(0x179)][_0x42a7e4(0x176)][_0x42a7e4(0x18e)](_0x42a7e4(0x1ac));this[_0x42a7e4(0x179)][_0x42a7e4(0x172)](_0x33f011),this[_0x42a7e4(0x1a8)]&&_0x2bb140&&!_0x598a85&&this[_0x42a7e4(0x176)][_0x42a7e4(0x186)]({'top':this[_0x42a7e4(0x176)][_0x42a7e4(0x196)],'behavior':_0x42a7e4(0x18b)});}),this['on'](_0x13a13f(0x178),(_0x4dcd97,_0x30eee7,_0x733ab6)=>{const _0x4200e9=_0x13a13f;_0x598a85=!0x1,_0x733ab6?(this[_0x4200e9(0x1b5)]=null,this[_0x4200e9(0x179)][_0x4200e9(0x17f)]()):this[_0x4200e9(0x1b5)]||this[_0x4200e9(0x179)][_0x4200e9(0x172)]('');}),this[_0x13a13f(0x1a1)](this[_0x13a13f(0x176)],_0x13a13f(0x185),()=>{_0x598a85=!0x0;}),this[_0x13a13f(0x1a1)](this[_0x13a13f(0x176)],_0x13a13f(0x184),()=>{_0x598a85=!0x0;});}[_0x3b56fe(0x1a9)](){const _0x24b19d=_0x3b56fe;this[_0x24b19d(0x176)][_0x24b19d(0x1a9)]();}[_0x3b56fe(0x187)](){const _0x2a7a00=_0x3b56fe,_0x5620c7=this[_0x2a7a00(0x197)],_0x2b9814=new _0x5c507f(this[_0x2a7a00(0x197)]),_0x957de8=_0x2a7a00(0x17a);return _0x2b9814[_0x2a7a00(0x195)]({'label':_0x3d15f3(_0x5620c7,_0x2a7a00(0x18f)),'icon':_0x4b7909,'class':_0x957de8,'tooltip':!0x0}),_0x2b9814[_0x2a7a00(0x198)](_0x2a7a00(0x18a))['to'](this,_0x2a7a00(0x1b5),_0x12bc5d=>!!_0x12bc5d),_0x2b9814[_0x2a7a00(0x198)](_0x2a7a00(0x1c0))['to'](this,_0x2a7a00(0x1a8),_0x14c202=>!_0x14c202),_0x2b9814['on'](_0x2a7a00(0x192),()=>{const _0x2048b7=_0x2a7a00;this[_0x2048b7(0x19c)](this[_0x2048b7(0x179)][_0x2048b7(0x176)]),_0x2b9814[_0x2048b7(0x191)]=_0x5dcee4,_0x2b9814[_0x2048b7(0x1a5)]=_0x957de8+_0x2048b7(0x1ae),this[_0x2048b7(0x1a9)](),setTimeout(()=>{const _0x2ae983=_0x2048b7;_0x2b9814[_0x2ae983(0x191)]=_0x4b7909,_0x2b9814[_0x2ae983(0x1a5)]=_0x957de8;},0x3e8);}),_0x2b9814;}[_0x3b56fe(0x19c)](_0xb972c1){const _0xf63f11=_0x3b56fe,{window:_0x54be5e,document:_0x390b14}=_0xb07656;if(_0x54be5e[_0xf63f11(0x175)]){const {Blob:_0x1b71da,ClipboardItem:_0x335260}=_0x54be5e,_0x578197=[new _0x335260({'text/html':new _0x1b71da([_0xb972c1[_0xf63f11(0x19f)]],{'type':_0xf63f11(0x189)}),'text/plain':new _0x1b71da([_0xb972c1[_0xf63f11(0x1af)]||''],{'type':_0xf63f11(0x1b7)})})];navigator[_0xf63f11(0x1a6)][_0xf63f11(0x1a7)](_0x578197);}else{const _0x11bbe0=_0x390b14[_0xf63f11(0x17c)](_0xf63f11(0x1b8));_0x11bbe0[_0xf63f11(0x194)][_0xf63f11(0x1ab)]=_0xf63f11(0x171),_0x11bbe0[_0xf63f11(0x194)][_0xf63f11(0x1b3)]=_0xf63f11(0x199),_0x11bbe0[_0xf63f11(0x19f)]=_0xf63f11(0x16e)+_0xb972c1[_0xf63f11(0x19f)]+_0xf63f11(0x1b6),_0x390b14[_0xf63f11(0x1a3)][_0xf63f11(0x181)](_0x11bbe0);const _0x790113=_0x390b14[_0xf63f11(0x1b9)]();_0x790113[_0xf63f11(0x17e)](_0x11bbe0[_0xf63f11(0x17d)]),_0x790113[_0xf63f11(0x1bc)](_0x11bbe0[_0xf63f11(0x18c)]);const _0x4f2aad=_0x54be5e[_0xf63f11(0x182)]();_0x4f2aad[_0xf63f11(0x188)](),_0x4f2aad[_0xf63f11(0x17b)](_0x790113),_0x390b14[_0xf63f11(0x16f)](_0xf63f11(0x19e)),_0x11bbe0[_0xf63f11(0x190)]();}}}export class ContentFieldView extends _0xb1a976{constructor(_0x55c7f1,_0x457e35=''){const _0x1f8db9=_0x3b56fe;super(_0x55c7f1),this[_0x1f8db9(0x1bf)]=this[_0x1f8db9(0x1b2)](),this[_0x1f8db9(0x173)]({'tag':_0x1f8db9(0x1b8),'attributes':{'class':['ck',_0x1f8db9(0x1a2),_0x457e35,_0x1f8db9(0x19a),_0x1f8db9(0x1bd)]}});}[_0x3b56fe(0x172)](_0x364bef){const _0x258255=_0x3b56fe;this[_0x258255(0x176)][_0x258255(0x19f)]=_0x364bef;}[_0x3b56fe(0x17f)](){const _0xd70c3f=_0x3b56fe;this[_0xd70c3f(0x176)][_0xd70c3f(0x181)](this[_0xd70c3f(0x1bf)][_0xd70c3f(0x176)]);}[_0x3b56fe(0x1b2)](){const _0x132507=_0x3b56fe,_0x1731cf=new _0xb1a976(),_0x1f608e=this[_0x132507(0x197)],_0x4b1068=new _0x393748();return _0x4b1068[_0x132507(0x18a)]=!0x0,_0x1731cf[_0x132507(0x173)]({'tag':_0x132507(0x1b8),'attributes':{'class':['ck',_0x132507(0x1ba)]},'children':[_0x4b1068,{'text':_0x3d15f3(_0x1f608e,_0x132507(0x1a4))}]}),_0x1731cf[_0x132507(0x1b0)](),_0x1731cf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x25ad91,_0x4819e4){const _0x7c7813=_0x4390,_0x116b45=_0x25ad91();while(!![]){try{const _0x3af6f4=-parseInt(_0x7c7813(0x194))/0x1*(parseInt(_0x7c7813(0x190))/0x2)+-parseInt(_0x7c7813(0x195))/0x3+parseInt(_0x7c7813(0x19f))/0x4*(-parseInt(_0x7c7813(0x19e))/0x5)+parseInt(_0x7c7813(0x191))/0x6*(parseInt(_0x7c7813(0x19b))/0x7)+-parseInt(_0x7c7813(0x19c))/0x8*(parseInt(_0x7c7813(0x1a1))/0x9)+parseInt(_0x7c7813(0x19d))/0xa+parseInt(_0x7c7813(0x199))/0xb;if(_0x3af6f4===_0x4819e4)break;else _0x116b45['push'](_0x116b45['shift']());}catch(_0x2a36bd){_0x116b45['push'](_0x116b45['shift']());}}}(_0x2af2,0xdf252));function _0x4390(_0x20824f,_0x4798c8){const _0x2af28d=_0x2af2();return _0x4390=function(_0x4390bf,_0x2aa0cc){_0x4390bf=_0x4390bf-0x190;let _0x301441=_0x2af28d[_0x4390bf];return _0x301441;},_0x4390(_0x20824f,_0x4798c8);}import{IconError as _0xfe977b}from'ckeditor5/src/icons.js';import{View as _0x21ba00,IconView as _0x2fb009}from'ckeditor5/src/ui.js';function _0x2af2(){const _0x3bdcd0=['9YEkvde','4016YwEaYZ','36VvrICQ','setTemplate','text','229jfsYXD','198339jqyXvC','content','ck-ai-form__error','set','27643451zuYBqk','bindTemplate','447643MAbfCE','14221016usyzhn','16187620PpNpiP','555FQaQlb','46772KoAYoE','div'];_0x2af2=function(){return _0x3bdcd0;};return _0x2af2();}export class AIFormErrorView extends _0x21ba00{constructor(_0x3883a8,_0x52876a=''){const _0xdf0c7c=_0x4390;super(_0x3883a8);const _0x975ed6=new _0x2fb009(),_0x436e56=this[_0xdf0c7c(0x19a)];this[_0xdf0c7c(0x198)](_0xdf0c7c(0x193),_0x52876a),_0x975ed6[_0xdf0c7c(0x196)]=_0xfe977b,this[_0xdf0c7c(0x192)]({'tag':_0xdf0c7c(0x1a0),'attributes':{'class':['ck',_0xdf0c7c(0x197)]},'children':[_0x975ed6,{'text':_0x436e56['to'](_0xdf0c7c(0x193))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x48f855=_0x1cd5;(function(_0x53372b,_0x19abee){const _0x352952=_0x1cd5,_0x44e8f3=_0x53372b();while(!![]){try{const _0x23bc47=-parseInt(_0x352952(0x132))/0x1+parseInt(_0x352952(0x10f))/0x2+parseInt(_0x352952(0x130))/0x3+parseInt(_0x352952(0x129))/0x4*(-parseInt(_0x352952(0x125))/0x5)+parseInt(_0x352952(0x111))/0x6+-parseInt(_0x352952(0x136))/0x7*(parseInt(_0x352952(0x126))/0x8)+-parseInt(_0x352952(0x115))/0x9*(-parseInt(_0x352952(0x12b))/0xa);if(_0x23bc47===_0x19abee)break;else _0x44e8f3['push'](_0x44e8f3['shift']());}catch(_0x5d4d9d){_0x44e8f3['push'](_0x44e8f3['shift']());}}}(_0x4b75,0xba624));import{Rect as _0x4a0909,global as _0x5479d4,isVisible as _0x3c7990}from'ckeditor5/src/utils.js';function _0x1cd5(_0x309c83,_0x4470d6){const _0x4b7528=_0x4b75();return _0x1cd5=function(_0x1cd518,_0x4df6c5){_0x1cd518=_0x1cd518-0xff;let _0xe62f7c=_0x4b7528[_0x1cd518];return _0xe62f7c;},_0x1cd5(_0x309c83,_0x4470d6);}import{IconAIHistory as _0x187f4e,IconSubmit as _0x4c66fd}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x18f444,ButtonView as _0x328ce6}from'ckeditor5/src/ui.js';function _0x4b75(){const _0x5d1ea2=['focusCycler','_createSubmitButton','ck-ai-form__submit','update','execute','isEmpty','queryView','right','value','filteredView','submit','bind','locale','element','requestAnimationFrame','835770oxOlLw','minRows','8483520xiTrYf','submitButtonView','left','keystrokes','436626TbaDtI','isVisible','focusFirst','focus','width','excludeScrollbarsAndBorders','focusableChildren','isEnabled','fire','style','children','set','resultsView','render','_createShowHistoryButton','ck-ai-form__toggle-history','3035495YAqEcz','7132280aznecH','target','enter','4DIvtuB','Submit','80FQEgRL','window','fieldView','History','add','686343ZqNTQK','uiLanguageDirection','186636LiWmRh','isOn','fieldWrapperChildren','maxRows','7eJPyQD','showHistoryButtonView','rtl','focusLast'];_0x4b75=function(){return _0x5d1ea2;};return _0x4b75();}import{getTranslation as _0x327ded}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x18f444{[_0x48f855(0x112)];[_0x48f855(0x137)];constructor(_0x530a18,_0xeab61d){const _0x588026=_0x48f855;super(_0x530a18,_0xeab61d),this[_0x588026(0x106)][_0x588026(0x12d)][_0x588026(0x110)]=0x1,this[_0x588026(0x106)][_0x588026(0x12d)][_0x588026(0x135)]=0x3,this[_0x588026(0x112)]=this[_0x588026(0x101)](),this[_0x588026(0x137)]=this[_0x588026(0x123)](),this[_0x588026(0x11b)][_0x588026(0x12f)](this[_0x588026(0x137)],0x1),this[_0x588026(0x11b)][_0x588026(0x12f)](this[_0x588026(0x112)]);}[_0x48f855(0x122)](){const _0x479581=_0x48f855;super[_0x479581(0x122)](),this[_0x479581(0x106)][_0x479581(0x134)][_0x479581(0x12f)](this[_0x479581(0x137)]),this[_0x479581(0x11f)][_0x479581(0x12f)](this[_0x479581(0x112)]),this[_0x479581(0x114)][_0x479581(0x120)](_0x479581(0x128),(_0xb46afc,_0x491978)=>{const _0x5c53c1=_0x479581;_0xb46afc[_0x5c53c1(0x127)]==this[_0x5c53c1(0x106)][_0x5c53c1(0x12d)][_0x5c53c1(0x10d)]&&(this[_0x5c53c1(0x10a)](),_0x491978());});}[_0x48f855(0x101)](){const _0x6af4d7=_0x48f855,_0x17d300=new _0x328ce6(this[_0x6af4d7(0x10c)]),_0x41dd62=this[_0x6af4d7(0x10c)];return _0x17d300[_0x6af4d7(0x120)]({'icon':_0x4c66fd,'label':_0x327ded(_0x41dd62,_0x6af4d7(0x12a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x6af4d7(0x102)}),_0x17d300['on'](_0x6af4d7(0x104),()=>{const _0x227c7d=_0x6af4d7;this[_0x227c7d(0x10a)]();}),_0x17d300[_0x6af4d7(0x10b)](_0x6af4d7(0x11c))['to'](this[_0x6af4d7(0x106)][_0x6af4d7(0x12d)],_0x6af4d7(0x105),this,_0x6af4d7(0x11c),(_0x116cce,_0x33354a)=>!_0x116cce&&_0x33354a),_0x17d300;}[_0x48f855(0x123)](){const _0x38df38=_0x48f855,_0x28e809=new _0x328ce6(this[_0x38df38(0x10c)]),_0x50baa0=this[_0x38df38(0x121)],_0xdcd9c7=this[_0x38df38(0x10c)];_0x28e809[_0x38df38(0x120)]({'label':_0x327ded(_0xdcd9c7,_0x38df38(0x12e)),'withText':!0x1,'icon':_0x187f4e,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x38df38(0x124)}),_0x28e809[_0x38df38(0x10b)](_0x38df38(0x133))['to'](_0x50baa0,_0x38df38(0x116)),_0x28e809[_0x38df38(0x10b)](_0x38df38(0x11c))['to'](this,_0x38df38(0x11c)),_0x28e809['on'](_0x38df38(0x104),()=>{const _0x2de19d=_0x38df38;_0x50baa0[_0x2de19d(0x116)]=!_0x50baa0[_0x2de19d(0x116)],_0x50baa0[_0x2de19d(0x116)]?this[_0x2de19d(0x109)][_0x2de19d(0x118)]():this[_0x2de19d(0x118)]();});const _0x54115d=()=>{const _0x125c71=_0x38df38;_0x5479d4[_0x125c71(0x12c)][_0x125c71(0x10e)](()=>{const _0x17b1b1=_0x125c71;if(_0x3c7990(this[_0x17b1b1(0x10d)])){const _0x25fe26=new _0x4a0909(this[_0x17b1b1(0x106)][_0x17b1b1(0x12d)][_0x17b1b1(0x10d)]),_0x1dcfd3=_0x25fe26[_0x17b1b1(0x119)],_0x139ae3=_0x17b1b1(0x138)===_0xdcd9c7[_0x17b1b1(0x131)]?_0x17b1b1(0x113):_0x17b1b1(0x107);_0x25fe26[_0x17b1b1(0x11a)](),_0x28e809[_0x17b1b1(0x10d)][_0x17b1b1(0x11e)][_0x139ae3]=_0x1dcfd3-_0x25fe26[_0x17b1b1(0x119)]+0x1+'px';}});};return this[_0x38df38(0x106)][_0x38df38(0x12d)]['on'](_0x38df38(0x103),_0x54115d),this['on'](_0x38df38(0x122),_0x54115d),_0x28e809;}[_0x48f855(0x10a)](){const _0x13bb19=_0x48f855,_0xa93bfd=this[_0x13bb19(0x106)][_0x13bb19(0x12d)][_0x13bb19(0x10d)][_0x13bb19(0x108)];this[_0x13bb19(0x11d)](_0x13bb19(0x10a),_0xa93bfd);}[_0x48f855(0x118)](_0x435d6e){const _0x5596c8=_0x48f855;-0x1===_0x435d6e?this[_0x5596c8(0x100)][_0x5596c8(0xff)]():this[_0x5596c8(0x100)][_0x5596c8(0x117)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5321(){const _0x31b996=['Try\x20again','replace','label','10690960uUUHOp','mainAction','extendTemplate','replaceButton','_CONTENT','addMany','REPLACE','852sggGSt','stopButton','Stop','ck-hidden','insert','tryAgainButton','items','insertButton','AI_','189hoACyi','bindTemplate','6536860xecBkY','57966557yynfaG','toUpperCase','isVisible','Insert\x20below','624879XPqaLb','16491ElwLPS','bind','set','184WEKUHT','locale','6sNQUQu','ck-ai-form__toolbar','ck-button-action','_createButton','361789uZssUe','83088itnBiv'];_0x5321=function(){return _0x31b996;};return _0x5321();}const _0xbe8fa3=_0x4b7e;(function(_0xa3bcd3,_0x29f66b){const _0x3b6e59=_0x4b7e,_0x116bed=_0xa3bcd3();while(!![]){try{const _0x2841bc=-parseInt(_0x3b6e59(0x137))/0x1*(parseInt(_0x3b6e59(0x133))/0x2)+-parseInt(_0x3b6e59(0x12e))/0x3*(parseInt(_0x3b6e59(0x143))/0x4)+-parseInt(_0x3b6e59(0x128))/0x5+-parseInt(_0x3b6e59(0x138))/0x6*(parseInt(_0x3b6e59(0x126))/0x7)+-parseInt(_0x3b6e59(0x131))/0x8*(parseInt(_0x3b6e59(0x12d))/0x9)+parseInt(_0x3b6e59(0x13c))/0xa+parseInt(_0x3b6e59(0x129))/0xb;if(_0x2841bc===_0x29f66b)break;else _0x116bed['push'](_0x116bed['shift']());}catch(_0x3819e3){_0x116bed['push'](_0x116bed['shift']());}}}(_0x5321,0xc4616));import{ToolbarView as _0x1f1b62,ButtonView as _0x24d60a}from'ckeditor5/src/ui.js';import{getTranslation as _0x1739bf}from'../../utils/common-translations.js';function _0x4b7e(_0x2094e6,_0x34565a){const _0x53212d=_0x5321();return _0x4b7e=function(_0x4b7e04,_0x5eef74){_0x4b7e04=_0x4b7e04-0x120;let _0x41f070=_0x53212d[_0x4b7e04];return _0x41f070;},_0x4b7e(_0x2094e6,_0x34565a);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xbe8fa3(0x13a),'INSERT':_0xbe8fa3(0x121)};export class AIFormToolbarView extends _0x1f1b62{constructor(_0x403d1d){const _0x5ea0a0=_0xbe8fa3;super(_0x403d1d),this[_0x5ea0a0(0x130)](_0x5ea0a0(0x12b),!0x1),this[_0x5ea0a0(0x130)](_0x5ea0a0(0x13d),AIFormToolbarViewMainActionLabel[_0x5ea0a0(0x142)]),this[_0x5ea0a0(0x13f)]=this[_0x5ea0a0(0x136)]('',_0x5ea0a0(0x135)),this[_0x5ea0a0(0x13f)][_0x5ea0a0(0x12f)](_0x5ea0a0(0x13b))['to'](this,_0x5ea0a0(0x13d),_0x4e1625=>_0x1739bf(_0x403d1d,_0x5ea0a0(0x125)+_0x4e1625[_0x5ea0a0(0x12a)]()+_0x5ea0a0(0x140))),this[_0x5ea0a0(0x124)]=this[_0x5ea0a0(0x136)](_0x1739bf(_0x403d1d,_0x5ea0a0(0x12c))),this[_0x5ea0a0(0x122)]=this[_0x5ea0a0(0x136)](_0x1739bf(_0x403d1d,_0x5ea0a0(0x139))),this[_0x5ea0a0(0x144)]=this[_0x5ea0a0(0x136)](_0x1739bf(_0x403d1d,_0x5ea0a0(0x145)));const _0xe992b5=this[_0x5ea0a0(0x127)];this[_0x5ea0a0(0x13e)]({'attributes':{'class':[_0x5ea0a0(0x134),_0xe992b5['if'](_0x5ea0a0(0x12b),_0x5ea0a0(0x120),_0x24b3aa=>!_0x24b3aa)]}}),this[_0x5ea0a0(0x123)][_0x5ea0a0(0x141)]([this[_0x5ea0a0(0x13f)],this[_0x5ea0a0(0x124)],this[_0x5ea0a0(0x122)],this[_0x5ea0a0(0x144)]]);}[_0xbe8fa3(0x136)](_0x46c277,_0x44ff04){const _0x1dbf5c=_0xbe8fa3,_0x130387=new _0x24d60a(this[_0x1dbf5c(0x132)]);return _0x130387[_0x1dbf5c(0x130)]({'label':_0x46c277,'class':_0x44ff04||'','isVisible':!0x0,'withText':!0x0}),_0x130387;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b98bc=_0x2ad3;(function(_0x277db2,_0x27fc96){const _0x2cec96=_0x2ad3,_0x15944a=_0x277db2();while(!![]){try{const _0x1192a0=parseInt(_0x2cec96(0x13f))/0x1+-parseInt(_0x2cec96(0x13b))/0x2+parseInt(_0x2cec96(0x153))/0x3*(parseInt(_0x2cec96(0x154))/0x4)+parseInt(_0x2cec96(0x10c))/0x5*(parseInt(_0x2cec96(0x133))/0x6)+parseInt(_0x2cec96(0x10d))/0x7*(parseInt(_0x2cec96(0x15a))/0x8)+-parseInt(_0x2cec96(0x14e))/0x9+parseInt(_0x2cec96(0x11b))/0xa;if(_0x1192a0===_0x27fc96)break;else _0x15944a['push'](_0x15944a['shift']());}catch(_0x4c489d){_0x15944a['push'](_0x15944a['shift']());}}}(_0x251c,0x44595));import{FocusTracker as _0x1c5c26,KeystrokeHandler as _0x244117}from'ckeditor5/src/utils.js';import{View as _0x3465e1,FocusCycler as _0x1a560f,createLabeledTextarea as _0x3c6f26}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3e913f,AIFormToolbarViewMainActionLabel as _0xfa116e}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x41474d}from'./aiformcontentarea.js';import{AIFormErrorView as _0x3e5204}from'./aiformerrorview.js';function _0x251c(){const _0x17d857=['submit','reset','184899EsKtMJ','handleError','insertButton','clear','keystrokes','isEnabled','add','createCollection','items','_promptHistory','_createPromptView','Ask\x20AI\x20to\x20edit\x20or\x20generate','focusTracker','ck-ai-form','chain','3892833ajOvKe','prompt','isProcessing','replaceContent','render','39LgKqvy','108980zTFVkt','fieldView','execute','set','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusLast','1766192EbMwhu','bind','clearHistory','focusCycler','toolbar','bindTemplate','listenTo','10cDLqfN','7Jkrvxn','mainAction','locale','submitPrompt','value','contentArea','search','text','focusFirst','ck-hidden','historyGroupView','copyButtonView','finishProcessing','tab','2646590YfTJuk','isError','queryView','bindTo','AI_ERROR_FAILED','REPLACE','startProcessing','setTemplate','Ask\x20AI\x20to\x20improve\x20generated\x20text','Empty\x20history','_focusables','focus','high','tryAgainButton','delegate','trim','label','ck-ai-form-content','_createToolbar','replaceButton','insertContentBelow','stopProcessing','errorView','shift\x20+\x20tab','148440EgFtgS','element','isVisible','fire','div','promptView','tryAgainEvent','stopButton','723006rgaueH','_createHistoryView'];_0x251c=function(){return _0x17d857;};return _0x251c();}import{AIFormPromptView as _0x18ce13}from'./aiformpromptview.js';import{AIHistoryListView as _0x15d939}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x202140}from'./aihistorylistitemview.js';import{PromptHistory as _0x39a7b2}from'./prompthistory.js';import{getTranslation as _0xa89be0}from'../../utils/common-translations.js';function _0x2ad3(_0x3933dd,_0x3bae8e){const _0x251cc8=_0x251c();return _0x2ad3=function(_0x2ad357,_0x2bc01a){_0x2ad357=_0x2ad357-0x108;let _0x3f302d=_0x251cc8[_0x2ad357];return _0x3f302d;},_0x2ad3(_0x3933dd,_0x3bae8e);}import{escape as _0x4c80a1}from'es-toolkit/compat';export class AIFormView extends _0x3465e1{[_0x2b98bc(0x14b)];[_0x2b98bc(0x143)];[_0x2b98bc(0x112)];[_0x2b98bc(0x109)];[_0x2b98bc(0x138)];[_0x2b98bc(0x131)];[_0x2b98bc(0x125)];[_0x2b98bc(0x108)];[_0x2b98bc(0x148)];constructor(_0x3023d3,_0x4736a9,_0x54e1ee=''){const _0x127883=_0x2b98bc;super(_0x3023d3),this[_0x127883(0x157)](_0x127883(0x144),!0x0),this[_0x127883(0x157)](_0x127883(0x150),!0x1),this[_0x127883(0x157)](_0x127883(0x14f),''),this[_0x127883(0x157)](_0x127883(0x111),''),this[_0x127883(0x157)](_0x127883(0x11c),!0x1),this[_0x127883(0x157)](_0x127883(0x10e),_0xfa116e[_0x127883(0x120)]),this[_0x127883(0x148)]=new _0x39a7b2(),this[_0x127883(0x131)]=new _0x3e5204(_0x3023d3),this[_0x127883(0x112)]=new _0x41474d(_0x3023d3,_0x54e1ee),this[_0x127883(0x112)][_0x127883(0x15b)](_0x127883(0x150))['to'](this),this[_0x127883(0x112)][_0x127883(0x15b)](_0x127883(0x111))['to'](this),this[_0x127883(0x109)]=this[_0x127883(0x12d)](),this[_0x127883(0x109)][_0x127883(0x15b)](_0x127883(0x10e))['to'](this),this[_0x127883(0x138)]=this[_0x127883(0x149)](),this[_0x127883(0x14b)]=new _0x1c5c26(),this[_0x127883(0x143)]=new _0x244117(),this[_0x127883(0x125)]=this[_0x127883(0x146)]([this[_0x127883(0x112)],this[_0x127883(0x112)][_0x127883(0x118)],this[_0x127883(0x109)],this[_0x127883(0x138)]]),this[_0x127883(0x108)]=new _0x1a560f({'focusables':this[_0x127883(0x125)],'focusTracker':this[_0x127883(0x14b)],'keystrokeHandler':this[_0x127883(0x143)],'actions':{'focusPrevious':_0x127883(0x132),'focusNext':_0x127883(0x11a)}}),this[_0x127883(0x108)][_0x127883(0x14d)](this[_0x127883(0x138)][_0x127883(0x108)]),this[_0x127883(0x138)][_0x127883(0x11d)][_0x127883(0x155)][_0x127883(0x15b)](_0x127883(0x111))['to'](this,_0x127883(0x14f));const _0x1d69db=this[_0x127883(0x10a)];this[_0x127883(0x122)]({'tag':_0x127883(0x137),'attributes':{'class':['ck',_0x127883(0x14c),_0x4736a9],'tabindex':'-1'},'children':[{'tag':_0x127883(0x137),'attributes':{'class':['ck',_0x127883(0x12c)]},'children':[{'tag':_0x127883(0x137),'attributes':{'class':[_0x1d69db['if'](_0x127883(0x11c),_0x127883(0x116),_0x4d3c0e=>!_0x4d3c0e)]},'children':[this[_0x127883(0x131)]]},this[_0x127883(0x112)],this[_0x127883(0x109)],this[_0x127883(0x138)]]}]});}[_0x2b98bc(0x152)](){const _0x45f35c=_0x2b98bc;super[_0x45f35c(0x152)](),this[_0x45f35c(0x14b)][_0x45f35c(0x145)](this[_0x45f35c(0x112)][_0x45f35c(0x134)]),this[_0x45f35c(0x14b)][_0x45f35c(0x145)](this[_0x45f35c(0x112)][_0x45f35c(0x118)][_0x45f35c(0x134)]),this[_0x45f35c(0x14b)][_0x45f35c(0x145)](this[_0x45f35c(0x109)][_0x45f35c(0x134)]),this[_0x45f35c(0x14b)][_0x45f35c(0x145)](this[_0x45f35c(0x138)][_0x45f35c(0x134)]),this[_0x45f35c(0x143)][_0x45f35c(0x10b)](this[_0x45f35c(0x134)]);}[_0x2b98bc(0x126)](_0x1b1114=0x1){const _0x26589d=_0x2b98bc;-0x1===_0x1b1114?this[_0x26589d(0x108)][_0x26589d(0x159)]():this[_0x26589d(0x108)][_0x26589d(0x115)]();}[_0x2b98bc(0x13e)](){const _0x384bc9=_0x2b98bc;this[_0x384bc9(0x14f)]='',this[_0x384bc9(0x111)]='',this[_0x384bc9(0x11c)]=!0x1,this[_0x384bc9(0x138)][_0x384bc9(0x13e)](),this[_0x384bc9(0x112)][_0x384bc9(0x135)]=!0x1,this[_0x384bc9(0x109)][_0x384bc9(0x135)]=!0x1;}[_0x2b98bc(0x149)](){const _0x391b15=_0x2b98bc,_0x551497=this[_0x391b15(0x10f)],_0x45aa3a=new _0x18ce13(_0x551497,{'queryView':{'label':_0xa89be0(_0x551497,_0x391b15(0x14a)),'creator':_0x3c6f26,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xa89be0(_0x551497,_0x391b15(0x124)),'secondary':_0xa89be0(_0x551497,_0x391b15(0x158))}}},'filteredView':this[_0x391b15(0x13c)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x45aa3a[_0x391b15(0x15b)](_0x391b15(0x144))['to'](this,_0x391b15(0x144),this,_0x391b15(0x150),(_0x5b6f8a,_0x2c2317)=>_0x5b6f8a&&!_0x2c2317),this[_0x391b15(0x10b)](_0x45aa3a,_0x391b15(0x13d),(_0x1aed5c,_0x23b312)=>{const _0x216a10=_0x391b15;this[_0x216a10(0x14f)]=_0x23b312;const _0x487a4e=_0x4c80a1(_0x23b312);this[_0x216a10(0x136)](_0x216a10(0x110),_0x487a4e),_0x23b312[_0x216a10(0x12a)]()&&this[_0x216a10(0x148)][_0x216a10(0x145)]({'prompt':_0x487a4e},0x0);},{'priority':_0x391b15(0x127)}),_0x45aa3a;}[_0x2b98bc(0x13c)](){const _0xd22b9d=_0x2b98bc,_0x3c895a=new _0x15d939(this[_0xd22b9d(0x10f)]);return _0x3c895a[_0xd22b9d(0x117)][_0xd22b9d(0x147)][_0xd22b9d(0x11e)](this[_0xd22b9d(0x148)])['as'](_0x202140),_0x3c895a['on'](_0xd22b9d(0x15c),()=>{const _0x957863=_0xd22b9d;this[_0x957863(0x148)][_0x957863(0x142)](),this[_0x957863(0x138)][_0x957863(0x113)](''),this[_0x957863(0x138)][_0x957863(0x126)]();}),_0x3c895a;}[_0x2b98bc(0x12d)](){const _0xed3d7a=_0x2b98bc,_0x36d60d=new _0x3e913f(this[_0xed3d7a(0x10f)]);return _0x36d60d[_0xed3d7a(0x12e)][_0xed3d7a(0x15b)](_0xed3d7a(0x144))['to'](this,_0xed3d7a(0x144),this,_0xed3d7a(0x150),this,_0xed3d7a(0x111),(_0x1916bf,_0x1057c4,_0x5341f6)=>_0x1916bf&&!_0x1057c4&&!!_0x5341f6),_0x36d60d[_0xed3d7a(0x12e)][_0xed3d7a(0x129)](_0xed3d7a(0x156))['to'](this,_0xed3d7a(0x151)),_0x36d60d[_0xed3d7a(0x141)][_0xed3d7a(0x15b)](_0xed3d7a(0x144))['to'](this,_0xed3d7a(0x144),this,_0xed3d7a(0x150),this,_0xed3d7a(0x111),(_0x4403a2,_0x2d8deb,_0x21831f)=>_0x4403a2&&!_0x2d8deb&&!!_0x21831f),_0x36d60d[_0xed3d7a(0x141)][_0xed3d7a(0x129)](_0xed3d7a(0x156))['to'](this,_0xed3d7a(0x12f)),_0x36d60d[_0xed3d7a(0x128)][_0xed3d7a(0x15b)](_0xed3d7a(0x144))['to'](this,_0xed3d7a(0x144),this,_0xed3d7a(0x150),(_0x475dc4,_0x37c00d)=>_0x475dc4&&!_0x37c00d),_0x36d60d[_0xed3d7a(0x128)][_0xed3d7a(0x129)](_0xed3d7a(0x156))['to'](this,_0xed3d7a(0x139)),_0x36d60d[_0xed3d7a(0x13a)][_0xed3d7a(0x15b)](_0xed3d7a(0x144))['to'](this,_0xed3d7a(0x150)),_0x36d60d[_0xed3d7a(0x13a)][_0xed3d7a(0x129)](_0xed3d7a(0x156))['to'](this,_0xed3d7a(0x130)),_0x36d60d;}[_0x2b98bc(0x121)](){const _0x4f3d54=_0x2b98bc;this[_0x4f3d54(0x111)]='',this[_0x4f3d54(0x11c)]=!0x1,this[_0x4f3d54(0x150)]=!0x0,this[_0x4f3d54(0x112)][_0x4f3d54(0x135)]=!0x0,this[_0x4f3d54(0x109)][_0x4f3d54(0x135)]=!0x0,this[_0x4f3d54(0x112)][_0x4f3d54(0x126)]();}[_0x2b98bc(0x119)](){const _0x5e7313=_0x2b98bc,_0x819bfe=this[_0x5e7313(0x10f)];this[_0x5e7313(0x150)]=!0x1,this[_0x5e7313(0x14f)]='',this[_0x5e7313(0x138)][_0x5e7313(0x13e)](),this[_0x5e7313(0x111)]&&(this[_0x5e7313(0x138)][_0x5e7313(0x11d)][_0x5e7313(0x12b)]=_0xa89be0(_0x819bfe,_0x5e7313(0x123)));}[_0x2b98bc(0x140)](_0x3d13a1){const _0xe34dde=_0x2b98bc,_0x37aeb1=this[_0xe34dde(0x10f)];this[_0xe34dde(0x119)](),this[_0xe34dde(0x11c)]=!0x0,this[_0xe34dde(0x131)][_0xe34dde(0x114)]=_0x3d13a1||_0xa89be0(_0x37aeb1,_0xe34dde(0x11f)),this[_0xe34dde(0x111)]||(this[_0xe34dde(0x112)][_0xe34dde(0x135)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1d87ec,_0xd754a8){const _0x5e8038=_0x4469,_0x1c571d=_0x1d87ec();while(!![]){try{const _0x5ac43f=-parseInt(_0x5e8038(0x153))/0x1+-parseInt(_0x5e8038(0x14c))/0x2+-parseInt(_0x5e8038(0x14a))/0x3*(parseInt(_0x5e8038(0x14b))/0x4)+parseInt(_0x5e8038(0x151))/0x5+-parseInt(_0x5e8038(0x150))/0x6*(-parseInt(_0x5e8038(0x155))/0x7)+parseInt(_0x5e8038(0x14e))/0x8+parseInt(_0x5e8038(0x154))/0x9;if(_0x5ac43f===_0xd754a8)break;else _0x1c571d['push'](_0x1c571d['shift']());}catch(_0x2d5068){_0x1c571d['push'](_0x1c571d['shift']());}}}(_0x16ce,0xb9e39));import{ListItemView as _0x4ddc80,ButtonView as _0x28b46f,ButtonLabelView as _0x76965f}from'ckeditor5/src/ui.js';import{unescape as _0x17241c}from'es-toolkit/compat';function _0x16ce(){const _0x6b1aad=['locale','709086dtjAAa','9121932UtXbYg','1435588OPwfOI','execute','add','set','children','6mUkhFS','2714092RJcyHq','1542296mEgjxf','prompt','6683560ZWThdz','fire','36liEmFP','2595920acgNIJ'];_0x16ce=function(){return _0x6b1aad;};return _0x16ce();}function _0x4469(_0x52574b,_0x100190){const _0x16ce9a=_0x16ce();return _0x4469=function(_0x446916,_0x16ac10){_0x446916=_0x446916-0x14a;let _0x11cb16=_0x16ce9a[_0x446916];return _0x11cb16;},_0x4469(_0x52574b,_0x100190);}export class AIHistoryListItemView extends _0x4ddc80{constructor(_0x163c9f){const _0x51f414=_0x4469;super();const _0x346202=new _0x76965f(),_0x45c251=new _0x28b46f(this[_0x51f414(0x152)],_0x346202);this[_0x51f414(0x159)][_0x51f414(0x157)](_0x45c251),_0x45c251[_0x51f414(0x158)]({'label':_0x163c9f[_0x51f414(0x14d)],'withText':!0x0}),_0x45c251['on'](_0x51f414(0x156),()=>{const _0x2b29e5=_0x51f414;this[_0x2b29e5(0x14f)](_0x2b29e5(0x156),{'value':_0x17241c(_0x163c9f[_0x2b29e5(0x14d)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5e12(){const _0x55c6bc=['44pYpfwL','924204eQJnks','locale','437796tGyrDH','label','clearHistoryButton','10BOMzfz','_createClearHistoryButton','delegate','filter','Clear','items','length','execute','10RKXPeN','384aDlwnJ','fire','1839nMbPND','clearHistory','3238gzGAHK','historyGroupView','add','220371fiajIn','set','children','10339jlAAht','597404bbOzPq','Prompt\x20history','7766613xgaKSl'];_0x5e12=function(){return _0x55c6bc;};return _0x5e12();}const _0x284984=_0x27c6;(function(_0x181496,_0x4030f2){const _0x234df0=_0x27c6,_0x10c281=_0x181496();while(!![]){try{const _0x3226e9=parseInt(_0x234df0(0x7f))/0x1+parseInt(_0x234df0(0x7c))/0x2*(-parseInt(_0x234df0(0x7a))/0x3)+parseInt(_0x234df0(0x83))/0x4+-parseInt(_0x234df0(0x77))/0x5*(-parseInt(_0x234df0(0x6a))/0x6)+parseInt(_0x234df0(0x82))/0x7*(-parseInt(_0x234df0(0x78))/0x8)+parseInt(_0x234df0(0x85))/0x9*(parseInt(_0x234df0(0x6f))/0xa)+-parseInt(_0x234df0(0x69))/0xb*(-parseInt(_0x234df0(0x6c))/0xc);if(_0x3226e9===_0x4030f2)break;else _0x10c281['push'](_0x10c281['shift']());}catch(_0xa1b69){_0x10c281['push'](_0x10c281['shift']());}}}(_0x5e12,0x982e8));import{ListView as _0x33848d,ListItemGroupView as _0xa5fe96,ButtonView as _0x3d8955}from'ckeditor5/src/ui.js';function _0x27c6(_0x36ed0a,_0x58ce41){const _0x5e12f3=_0x5e12();return _0x27c6=function(_0x27c67e,_0x1c15d8){_0x27c67e=_0x27c67e-0x69;let _0x34d969=_0x5e12f3[_0x27c67e];return _0x34d969;},_0x27c6(_0x36ed0a,_0x58ce41);}import{getTranslation as _0x17859d}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x33848d{[_0x284984(0x7d)];[_0x284984(0x6e)];constructor(_0x165155){const _0x64af9b=_0x284984;super(_0x165155),this[_0x64af9b(0x6e)]=this[_0x64af9b(0x70)](),this[_0x64af9b(0x7d)]=new _0xa5fe96(),this[_0x64af9b(0x7d)][_0x64af9b(0x81)][_0x64af9b(0x7e)](this[_0x64af9b(0x6e)],0x1),this[_0x64af9b(0x7d)][_0x64af9b(0x6d)]=_0x17859d(_0x165155,_0x64af9b(0x84)),this[_0x64af9b(0x7d)][_0x64af9b(0x74)][_0x64af9b(0x71)](_0x64af9b(0x76))['to'](this),this[_0x64af9b(0x74)][_0x64af9b(0x7e)](this[_0x64af9b(0x7d)]);}[_0x284984(0x72)](){const _0x43711e=_0x284984;let _0x1f0330=0x0;for(const _0x2d7489 of this[_0x43711e(0x74)])_0x1f0330+=_0x2d7489[_0x43711e(0x74)][_0x43711e(0x75)];return{'resultsCount':_0x1f0330,'totalItemsCount':_0x1f0330};}[_0x284984(0x70)](){const _0x331307=_0x284984,_0x5e2fd0=this[_0x331307(0x6b)],_0x295496=new _0x3d8955(this[_0x331307(0x6b)]);return _0x295496[_0x331307(0x80)]({'label':'('+_0x17859d(_0x5e2fd0,_0x331307(0x73))+')','withText':!0x0}),_0x295496['on'](_0x331307(0x76),()=>this[_0x331307(0x79)](_0x331307(0x7b))),_0x295496;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e50bd=_0x387d;(function(_0x442953,_0x184b65){const _0x3d4ec1=_0x387d,_0x6d9ce8=_0x442953();while(!![]){try{const _0x2887b8=-parseInt(_0x3d4ec1(0x1da))/0x1*(parseInt(_0x3d4ec1(0x1dc))/0x2)+-parseInt(_0x3d4ec1(0x1db))/0x3+-parseInt(_0x3d4ec1(0x1ee))/0x4*(-parseInt(_0x3d4ec1(0x1ef))/0x5)+parseInt(_0x3d4ec1(0x1e7))/0x6*(parseInt(_0x3d4ec1(0x1df))/0x7)+-parseInt(_0x3d4ec1(0x1e6))/0x8*(-parseInt(_0x3d4ec1(0x1e8))/0x9)+parseInt(_0x3d4ec1(0x1de))/0xa+-parseInt(_0x3d4ec1(0x1f4))/0xb;if(_0x2887b8===_0x184b65)break;else _0x6d9ce8['push'](_0x6d9ce8['shift']());}catch(_0xa4e157){_0x6d9ce8['push'](_0x6d9ce8['shift']());}}}(_0x1a18,0xc20d3));function _0x1a18(){const _0x888640=['toLowerCase','_saveToSessionStorage','parse','prompt','5860107rKqDdA','31333RcnMjq','2577888LxsPFk','2ShvFab','getItem','7302070ZiZOXi','553oCneTe','stringify','map','_loadFromSessionStorage','trim','remove','setItem','8zMWXKN','11424oEMRuR','9245349XzQwax','CKEditor/AIFormView/PromptHistory','length','addMany','add','last','177324CarkWb','35RMPObv'];_0x1a18=function(){return _0x888640;};return _0x1a18();}import{Collection as _0x464d6d}from'ckeditor5/src/utils.js';function _0x387d(_0x4eba48,_0x210e44){const _0x1a18cf=_0x1a18();return _0x387d=function(_0x387d64,_0x323c78){_0x387d64=_0x387d64-0x1da;let _0x251cd4=_0x1a18cf[_0x387d64];return _0x251cd4;},_0x387d(_0x4eba48,_0x210e44);}const So=_0x2e50bd(0x1e9);export class PromptHistory extends _0x464d6d{constructor(){const _0x47592c=_0x2e50bd;super(),this[_0x47592c(0x1e2)](),this['on'](_0x47592c(0x1ec),(_0x409217,_0x29cae2)=>{const _0x3078c8=_0x47592c,_0x4387a8=go(_0x29cae2[_0x3078c8(0x1f3)]);for(const _0x3b2567 of this)if(_0x3b2567!=_0x29cae2&&go(_0x3b2567[_0x3078c8(0x1f3)])===_0x4387a8){this[_0x3078c8(0x1e4)](_0x3b2567);break;}this[_0x3078c8(0x1ea)]>0x14&&this[_0x3078c8(0x1e4)](this[_0x3078c8(0x1ed)]),this[_0x3078c8(0x1f1)]();}),this['on'](_0x47592c(0x1e4),()=>{const _0x449a22=_0x47592c;this[_0x449a22(0x1f1)]();});}[_0x2e50bd(0x1e2)](){const _0x4fc178=_0x2e50bd,_0x594105=sessionStorage[_0x4fc178(0x1dd)](So)||'[]';this[_0x4fc178(0x1eb)](JSON[_0x4fc178(0x1f2)](_0x594105));}[_0x2e50bd(0x1f1)](){const _0x31d9b1=_0x2e50bd;sessionStorage[_0x31d9b1(0x1e5)](So,JSON[_0x31d9b1(0x1e0)](this[_0x31d9b1(0x1e1)](_0xdbf8af=>_0xdbf8af)));}}function go(_0x2aa3aa){const _0x2c15b5=_0x2e50bd;return _0x2aa3aa[_0x2c15b5(0x1f0)]()[_0x2c15b5(0x1e3)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14e986=_0x1684;(function(_0xa79aa1,_0x425b17){const _0x2b073e=_0x1684,_0x5a6084=_0xa79aa1();while(!![]){try{const _0x3d224f=-parseInt(_0x2b073e(0x1ee))/0x1*(-parseInt(_0x2b073e(0x20b))/0x2)+-parseInt(_0x2b073e(0x20f))/0x3*(-parseInt(_0x2b073e(0x1ed))/0x4)+parseInt(_0x2b073e(0x1e9))/0x5*(parseInt(_0x2b073e(0x1f0))/0x6)+parseInt(_0x2b073e(0x201))/0x7+-parseInt(_0x2b073e(0x1e5))/0x8+parseInt(_0x2b073e(0x1fb))/0x9*(parseInt(_0x2b073e(0x1f1))/0xa)+-parseInt(_0x2b073e(0x204))/0xb;if(_0x3d224f===_0x425b17)break;else _0x5a6084['push'](_0x5a6084['shift']());}catch(_0x2c9417){_0x5a6084['push'](_0x5a6084['shift']());}}}(_0x26e8,0x8692a));import{Command as _0x1f6b36}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3112ce}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1f6b36{[_0x14e986(0x1f3)];constructor(_0x209877,_0x53b4e8){const _0x5cb46a=_0x14e986;super(_0x209877),this[_0x5cb46a(0x1f3)]=_0x53b4e8,this[_0x5cb46a(0x1f7)](_0x5cb46a(0x1e7),[]),this['on'](_0x5cb46a(0x1f2),(_0x2263ed,_0x26413e,_0x19c4cd)=>{const _0x529365=_0x5cb46a;this[_0x529365(0x1f6)]&&(this[_0x529365(0x1e7)]=ns(this[_0x529365(0x1f3)],_0x19c4cd));}),this[_0x5cb46a(0x1f7)](_0x5cb46a(0x205),!0x1),this['on'](_0x5cb46a(0x1ff),(_0x1c9e2e,_0x3cc5d9,_0x5d2b79)=>{const _0x1ee423=_0x5cb46a;this[_0x1ee423(0x1e7)]=_0x5d2b79?ns(this[_0x1ee423(0x1f3)],this[_0x1ee423(0x205)]):[];});}[_0x14e986(0x1fa)](){const _0x1b94a7=_0x14e986,_0x1bbce3=this[_0x1b94a7(0x200)][_0x1b94a7(0x1fc)];this[_0x1b94a7(0x205)]=function(_0x2cf0f3){const _0x4569c7=_0x1b94a7,_0x20420e=_0x2cf0f3[_0x4569c7(0x1ec)][_0x4569c7(0x1f4)];return _0x20420e[_0x4569c7(0x20d)]?0x0!==[..._0x20420e[_0x4569c7(0x20a)]()][_0x4569c7(0x209)]&&![..._0x20420e[_0x4569c7(0x20a)]()][0x0][_0x4569c7(0x202)]:!!_0x2cf0f3[_0x4569c7(0x1f5)](_0x20420e[_0x4569c7(0x1eb)]());}(_0x1bbce3);const _0x54216b=_0x1bbce3[_0x1b94a7(0x1ec)][_0x1b94a7(0x1f4)],_0x3da0f1=this[_0x1b94a7(0x200)][_0x1b94a7(0x1e6)][_0x1b94a7(0x203)](_0x1b94a7(0x207));for(const _0x4d6817 of _0x54216b[_0x1b94a7(0x1f8)]())for(const _0x47f64b of _0x4d6817[_0x1b94a7(0x206)]())if(_0x47f64b['is'](_0x1b94a7(0x1e4))&&_0x3da0f1[_0x1b94a7(0x1e8)](_0x47f64b[_0x1b94a7(0x1f9)]))return void(this[_0x1b94a7(0x1f6)]=!0x1);this[_0x1b94a7(0x1f6)]=!0x0;}[_0x14e986(0x1ea)](_0x2a3d4c='',_0xf1174f='',_0x2823f7=_0x14e986(0x208)){const _0x42bb4c=_0x14e986;this[_0x42bb4c(0x200)][_0x42bb4c(0x1ef)][_0x42bb4c(0x203)](_0x3112ce)[_0x42bb4c(0x1fe)](_0x2a3d4c,_0xf1174f,_0x2823f7);}}function _0x26e8(){const _0x557ccc=['hasContent','isEnabled','set','getRanges','name','refresh','2045538pUnXlY','model','values','showUI','change:isEnabled','editor','2579122qRdmjD','isEmpty','get','2936384XqNJLe','_hasContext','getItems','ai.assistant.disabledElements','custom','length','getSelectedBlocks','2XzrUVH','from','isCollapsed','requiresContent','228RJIOsJ','add','element','6791648ciybNA','config','enabledCommandsIds','includes','2685bbGeby','execute','getFirstRange','document','16908MFuXqX','230183ACLdsb','plugins','3270tnEgbg','20jlsnLQ','change:_hasContext','_commandDefinitions','selection'];_0x26e8=function(){return _0x557ccc;};return _0x26e8();}function _0x1684(_0x206bc6,_0x3fd1dc){const _0x26e89b=_0x26e8();return _0x1684=function(_0x16844a,_0x1f07a4){_0x16844a=_0x16844a-0x1e4;let _0x11af7e=_0x26e89b[_0x16844a];return _0x11af7e;},_0x1684(_0x206bc6,_0x3fd1dc);}function ns(_0x4a96a6,_0x51ccd6){const _0x370136=_0x14e986,_0x53586f=new Set();for(const _0x460280 of _0x4a96a6[_0x370136(0x1fd)]())(_0x51ccd6||!0x1===_0x460280[_0x370136(0x20e)])&&_0x53586f[_0x370136(0x210)](_0x460280['id']);return Array[_0x370136(0x20c)](_0x53586f);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x286797,_0x424b2c,_0x49ccbf){const t=_0x286797['t'];switch(_0x424b2c){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x49ccbf);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x49ccbf);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x49ccbf);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_AWS_NOT_SUPPORTED':return t({'id':'AI_ERROR_AWS_NOT_SUPPORTED','string':'The\x20AWS\x20integration\x20is\x20no\x20longer\x20supported.\x20Please\x20contact\x20the\x20support.'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x424b2c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x5bb499,_0x3b96f1){const _0x47c0b8=(0x0,_0x3b96f1['t'])('Other');return _0x5bb499['length']?'groupId'in _0x5bb499[0x0]?_0x5bb499:[{'groupId':'_ungrouppedCommands','groupLabel':_0x47c0b8,'order':0x1/0x0,'commands':_0x5bb499}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x47c0b8,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44fe46=_0x70b2;function _0x70b2(_0x91ba5b,_0x35acf7){const _0x23fa09=_0x23fa();return _0x70b2=function(_0x70b22,_0x3d923f){_0x70b22=_0x70b22-0x85;let _0x14f04d=_0x23fa09[_0x70b22];return _0x14f04d;},_0x70b2(_0x91ba5b,_0x35acf7);}(function(_0x237ff9,_0x395d5f){const _0x271eac=_0x70b2,_0x4f2a48=_0x237ff9();while(!![]){try{const _0xc8a43c=parseInt(_0x271eac(0xcc))/0x1+-parseInt(_0x271eac(0xb1))/0x2*(parseInt(_0x271eac(0x8f))/0x3)+-parseInt(_0x271eac(0xd0))/0x4*(-parseInt(_0x271eac(0x8a))/0x5)+-parseInt(_0x271eac(0xb6))/0x6+-parseInt(_0x271eac(0xab))/0x7*(-parseInt(_0x271eac(0x8c))/0x8)+-parseInt(_0x271eac(0xa5))/0x9+parseInt(_0x271eac(0xb0))/0xa;if(_0xc8a43c===_0x395d5f)break;else _0x4f2a48['push'](_0x4f2a48['shift']());}catch(_0x1ff165){_0x4f2a48['push'](_0x4f2a48['shift']());}}}(_0x23fa,0x63cda));import{ContextPlugin as _0x283613}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1a2543,AIEditing as _0x293a2c}from'../aicore/aiediting.js';function _0x23fa(){const _0x3e256f=['isPremiumPlugin','isOfficialPlugin','round','318482sYyJyz','_calculateOptimalTopPosition','document','updatePosition','628bMBvLD','dialogClosed','height','AIBalloon','ai-balloon-selection','width','view','requires','_showFakeVisualSelection','end','locale','model','map','AI_BALLOON_SELECTION_REMOVED_ERROR','top','getVisible','_isUpdatingMarkers','left','start','hideFakeVisualSelection','show','close','ai-selection','25490ENXrFN','$graveyard','14176ZtGVUB','startsWith','_calculateDialogPosition','22017FFYnhb','editing','iconView','markers','high','rootName','ai-balloon-','mainView','max','headerView','showFakeVisualSelection','_currentConfig','Dialog','index','hideError','delegate','bind','bottom','listenTo','_cleanupFakeVisualSelectionMarkerRemovalListener','get','getBoundingRect','6375753CpkaZz','getMarkersGroup','selectionRemoved','hide','pluginName','isEqual','1792WPiuuN','_updateDialog','content','once','differ','5579260ldTQOv','106jGjBTz','fire','stopListening','window','length','3745488UNUXMh','_hideFakeVisualSelection','change','beforeDialogClosed','isOpen','label','root','_setupFakeVisualSelectionMarkerRemovalListener','plugins','getChangedMarkers','_showDialog','showBlockingError','filter','open','_getSelectionElements','ck-ai-balloon\x20','ranges','context','getIntersection'];_0x23fa=function(){return _0x3e256f;};return _0x23fa();}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x4b7f71}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x50ad42,Rect as _0x1a034d,scrollViewportToShowTarget as _0x2e7e11}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x16a903}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x5f3c81}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2a7250}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x2a7250,_0x44fe46(0xd1),_0x44fe46(0xa7)];const $=0xa;export class AIBalloon extends _0x283613{static get[_0x44fe46(0xd7)](){return[_0x293a2c];}static get[_0x44fe46(0xa9)](){const _0x4474f0=_0x44fe46;return _0x4474f0(0xd3);}static get[_0x44fe46(0xca)](){return!0x0;}static get[_0x44fe46(0xc9)](){return!0x0;}[_0x44fe46(0xba)]=!0x1;[_0x44fe46(0x9a)];[_0x44fe46(0xe0)]=!0x1;[_0x44fe46(0xc3)](_0x880e64){const _0x5602f5=_0x44fe46,{id:_0x46432c}=this[_0x5602f5(0x9a)]??{};this[_0x5602f5(0x9a)]=_0x880e64;const {id:_0x62f5c9}=this[_0x5602f5(0x9a)];this[_0x5602f5(0xba)]&&_0x46432c===_0x62f5c9?this[_0x5602f5(0xac)]():this[_0x5602f5(0xc0)]();}[_0x44fe46(0x88)](){const _0xcfb71=_0x44fe46,_0x492e5e=_0x16a903(this[_0xcfb71(0xc7)])[_0xcfb71(0xbe)][_0xcfb71(0xa3)](_0xcfb71(0x9b));_0x492e5e[_0xcfb71(0xba)]&&this[_0xcfb71(0x9a)]&&_0x492e5e['id']===this[_0xcfb71(0x9a)]['id']&&_0x492e5e[_0xcfb71(0xa8)]();}[_0x44fe46(0xac)](){const _0xa411fb=_0x44fe46,_0x95a4a0=_0x16a903(this[_0xa411fb(0xc7)])[_0xa411fb(0xbe)][_0xa411fb(0xa3)](_0xa411fb(0x9b)),{icon:_0x247356,title:_0x32676e}=this[_0xa411fb(0x9a)];_0x95a4a0[_0xa411fb(0xd6)]?.[_0xa411fb(0x98)]&&(_0x95a4a0[_0xa411fb(0xd6)][_0xa411fb(0x98)][_0xa411fb(0xbb)]=_0x32676e,_0x95a4a0[_0xa411fb(0xd6)][_0xa411fb(0x98)][_0xa411fb(0x91)]&&_0x247356&&(_0x95a4a0[_0xa411fb(0xd6)][_0xa411fb(0x98)][_0xa411fb(0x91)][_0xa411fb(0xad)]=_0x247356)),this[_0xa411fb(0xe0)]=!0x0,this[_0xa411fb(0xd8)](),this[_0xa411fb(0xe0)]=!0x1,_0x95a4a0[_0xa411fb(0xd6)]?.[_0xa411fb(0xcf)]();}[_0x44fe46(0xd8)](){const _0x22629a=_0x44fe46;this[_0x22629a(0xc7)][_0x22629a(0xbe)][_0x22629a(0xa3)](_0x293a2c)[_0x22629a(0x99)](this[_0x22629a(0x9a)][_0x22629a(0xc6)],_0x22629a(0x95)+this[_0x22629a(0x9a)][_0x22629a(0x9c)],!0x0,!0x0);}[_0x44fe46(0xb7)](_0x200117){const _0xbdc4b=_0x44fe46;this[_0xbdc4b(0xc7)][_0xbdc4b(0xbe)][_0xbdc4b(0xa3)](_0x293a2c)[_0xbdc4b(0x86)](_0xbdc4b(0x95)+_0x200117);}[_0x44fe46(0xc0)](){const _0x5b934b=_0x44fe46,_0x5e53a2=_0x16a903(this[_0x5b934b(0xc7)])[_0x5b934b(0xbe)][_0x5b934b(0xa3)](_0x5b934b(0x9b)),{id:_0x19b482,title:_0x187aaf,icon:_0x1a8309,class:_0x1da21e,mainView:_0x30d780}=this[_0x5b934b(0x9a)];_0x30d780[_0x5b934b(0x9e)](..._0x2a7250)['to'](this),_0x5e53a2[_0x5b934b(0x87)]({'title':_0x187aaf,'icon':_0x1a8309,'hasCloseButton':!0x0,'id':_0x19b482,'position':this[_0x5b934b(0x8e)][_0x5b934b(0x9f)](this),'className':_0x5b934b(0xc5)+(_0x1da21e||''),'content':_0x30d780,'onShow':_0x429133=>{const _0x1430d4=_0x5b934b;this[_0x1430d4(0xd8)](),this[_0x1430d4(0xbd)]();const _0xd6e0eb=this[_0x1430d4(0xc4)]();_0xd6e0eb&&_0xd6e0eb[0x0]&&_0x2e7e11({'target':_0xd6e0eb[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x1430d4(0xba)]=!0x0,_0x429133[_0x1430d4(0xae)](_0x1430d4(0xa8),()=>{const _0x34fc41=_0x1430d4;this[_0x34fc41(0xb2)](_0x34fc41(0xb9),{'id':_0x19b482});},{'priority':_0x1430d4(0x93)});},'onHide':()=>{const _0x4ba98a=_0x5b934b;this[_0x4ba98a(0xb7)](this[_0x4ba98a(0x9a)][_0x4ba98a(0x9c)]),this[_0x4ba98a(0xa2)](),this[_0x4ba98a(0xb2)](_0x4ba98a(0xd1),{'id':_0x19b482}),this[_0x4ba98a(0xba)]=!0x1;}});}[_0x44fe46(0x8e)](_0x5dbe71,_0x2a850c){const _0x30919e=_0x44fe46;if(!_0x2a850c)return null;const _0x148eb4=this[_0x30919e(0xc4)]();if(!_0x148eb4||0x0===_0x148eb4[_0x30919e(0xb5)])return{'left':Math[_0x30919e(0xcb)](_0x2a850c[_0x30919e(0xe1)]+_0x2a850c[_0x30919e(0xd5)]/0x2-_0x5dbe71[_0x30919e(0xd5)]/0x2),'top':Math[_0x30919e(0xcb)](_0x2a850c[_0x30919e(0xde)]+_0x2a850c[_0x30919e(0xd2)]/0x2-_0x5dbe71[_0x30919e(0xd2)]/0x2)};const _0x4ba003=Math[_0x30919e(0xcb)](_0x2a850c[_0x30919e(0xe1)]+_0x2a850c[_0x30919e(0xd5)]/0x2-_0x5dbe71[_0x30919e(0xd5)]/0x2),_0x567a15=_0x148eb4[_0x30919e(0xdc)](_0x534f16=>new _0x1a034d(_0x534f16)),_0xfa474=_0x5dbe71[_0x30919e(0xd2)];return{'left':_0x4ba003,'top':this[_0x30919e(0xcd)](_0x567a15,_0xfa474,_0x2a850c)};}[_0x44fe46(0xcd)](_0x1ece80,_0x36bece,_0x24c67b){const _0xa15021=_0x44fe46,_0x29c613=new _0x1a034d(_0x50ad42[_0xa15021(0xb4)]),_0x400ed1=_0x1ece80[_0xa15021(0xdc)](_0x388fea=>_0x388fea[_0xa15021(0xdf)]())[_0xa15021(0xc2)](_0x1a2d84=>_0x1a2d84),_0x37cde6=_0x1a034d[_0xa15021(0xa4)](_0x400ed1);if(!_0x37cde6)return Math[_0xa15021(0xcb)](_0x24c67b[_0xa15021(0xde)]+_0x24c67b[_0xa15021(0xd2)]/0x2);const _0x58abcf=_0x29c613[_0xa15021(0xc8)](_0x37cde6);if(!_0x58abcf)return Math[_0xa15021(0xcb)](_0x24c67b[_0xa15021(0xde)]+_0x24c67b[_0xa15021(0xd2)]/0x2);const _0x4c5290=_0x24c67b[_0xa15021(0xdf)](),_0x20ef8f=_0x4c5290&&_0x37cde6[_0xa15021(0xd2)]>_0x4c5290[_0xa15021(0xd2)],_0x14723c=_0x58abcf[_0xa15021(0xde)],_0xff3585=_0x58abcf[_0xa15021(0xa0)];if(_0x20ef8f){const _0x3b291a=(_0x4c5290||_0x29c613)[_0xa15021(0xd2)]/0x2-_0x36bece/0x2,_0x358681=_0x14723c-$-_0x24c67b[_0xa15021(0xde)],_0x34f66e=_0x24c67b[_0xa15021(0xa0)]-_0xff3585-$;return _0x358681>=_0x36bece?Math[_0xa15021(0x97)]($,_0x14723c-_0x36bece-$):_0x34f66e>=_0x36bece?_0xff3585+$:Math[_0xa15021(0x97)]($,_0x3b291a);}const _0x34f068=_0x14723c-_0x36bece,_0x5ee588=_0x24c67b[_0xa15021(0xa0)]-_0xff3585-$,_0x5b75dd=_0x14723c-$-_0x24c67b[_0xa15021(0xde)];let _0x1ccfaf;if(_0x5ee588>=_0x36bece)_0x1ccfaf=_0xff3585+$;else{if(_0x5b75dd>=_0x36bece)_0x1ccfaf=_0x34f068-$;else _0x1ccfaf=_0x14723c+_0x37cde6[_0xa15021(0xd2)]/0x2-_0x36bece/0x2;}return _0x1ccfaf;}[_0x44fe46(0xbd)](){const _0x5ddbbe=_0x44fe46,_0x4d8579=_0x16a903(this[_0x5ddbbe(0xc7)]);this[_0x5ddbbe(0xa1)](_0x4d8579[_0x5ddbbe(0xdb)][_0x5ddbbe(0xce)],_0x5ddbbe(0xb8),()=>{const _0xcecc98=_0x5ddbbe;if(!this[_0xcecc98(0xe0)]){for(const {name:_0x1136d5,data:{newRange:_0x27eeac}}of _0x4d8579[_0xcecc98(0xdb)][_0xcecc98(0xce)][_0xcecc98(0xaf)][_0xcecc98(0xbf)]())if(_0x1136d5[_0xcecc98(0x8d)](_0x1a2543+':')&&(_0x27eeac&&(_0x27eeac[_0xcecc98(0x85)][_0xcecc98(0xaa)](_0x27eeac[_0xcecc98(0xd9)])||_0xcecc98(0x8b)==_0x27eeac[_0xcecc98(0xbc)][_0xcecc98(0x94)])||null==_0x27eeac)){const _0x41b944=_0x5f3c81(this[_0xcecc98(0xc7)][_0xcecc98(0xda)],_0xcecc98(0xdd));this[_0xcecc98(0x9a)][_0xcecc98(0x96)][_0xcecc98(0xc1)](_0x41b944),this[_0xcecc98(0xb2)](_0xcecc98(0xa7));}}});}[_0x44fe46(0xa2)](){const _0x5640d1=_0x44fe46,_0x4dbda3=_0x16a903(this[_0x5640d1(0xc7)]);this[_0x5640d1(0x9a)][_0x5640d1(0x96)][_0x5640d1(0x9d)](),this[_0x5640d1(0xb3)](_0x4dbda3[_0x5640d1(0xdb)][_0x5640d1(0xce)]);}[_0x44fe46(0xc4)](){const _0x1cd7d0=_0x44fe46,_0x5595bd=_0x16a903(this[_0x1cd7d0(0xc7)]);return _0x4b7f71(_0x5595bd[_0x1cd7d0(0x90)],[..._0x5595bd[_0x1cd7d0(0xdb)][_0x1cd7d0(0x92)][_0x1cd7d0(0xa6)](_0x1cd7d0(0x89)),..._0x5595bd[_0x1cd7d0(0xdb)][_0x1cd7d0(0x92)][_0x1cd7d0(0xa6)](_0x1cd7d0(0xd4))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x120a91=_0x6000;function _0x6000(_0x36c37e,_0x591765){const _0x3129f6=_0x3129();return _0x6000=function(_0x6000e9,_0x358c81){_0x6000e9=_0x6000e9-0x131;let _0x3cfb5c=_0x3129f6[_0x6000e9];return _0x3cfb5c;},_0x6000(_0x36c37e,_0x591765);}(function(_0x3c758a,_0x2e60dc){const _0x51161d=_0x6000,_0xb79693=_0x3c758a();while(!![]){try{const _0x5d4928=parseInt(_0x51161d(0x147))/0x1+parseInt(_0x51161d(0x134))/0x2*(parseInt(_0x51161d(0x137))/0x3)+-parseInt(_0x51161d(0x14a))/0x4*(-parseInt(_0x51161d(0x133))/0x5)+-parseInt(_0x51161d(0x13d))/0x6*(parseInt(_0x51161d(0x139))/0x7)+parseInt(_0x51161d(0x13c))/0x8+-parseInt(_0x51161d(0x13f))/0x9+-parseInt(_0x51161d(0x143))/0xa*(-parseInt(_0x51161d(0x149))/0xb);if(_0x5d4928===_0x2e60dc)break;else _0xb79693['push'](_0xb79693['shift']());}catch(_0xecf70f){_0xb79693['push'](_0xb79693['shift']());}}}(_0x3129,0xb700f));import{View as _0x5219b4}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x120a91(0x14b),_0x120a91(0x13b),_0x120a91(0x13a),_0x120a91(0x135)];export class AIBalloonView extends _0x5219b4{[_0x120a91(0x140)];constructor(_0x13bfca){const _0x2af563=_0x120a91;super(_0x13bfca),this[_0x2af563(0x144)](_0x2af563(0x136),''),this[_0x2af563(0x144)](_0x2af563(0x148),!0x1);}[_0x120a91(0x14c)](_0x134b19){const _0x5c6656=_0x120a91;this[_0x5c6656(0x14d)](_0x134b19);}[_0x120a91(0x14d)](_0x3a5d5a){const _0x400bca=_0x120a91;this[_0x400bca(0x140)]||(this[_0x400bca(0x140)]=this[_0x400bca(0x150)]()),this[_0x400bca(0x136)]=_0x3a5d5a,this[_0x400bca(0x148)]=!0x0;}[_0x120a91(0x14e)](){const _0x483ea6=_0x120a91;this[_0x483ea6(0x148)]=!0x1;}[_0x120a91(0x150)](){const _0x504f1b=_0x120a91,_0xed6140=new _0x5219b4(this[_0x504f1b(0x146)]),_0x2be581=new _0x5219b4(this[_0x504f1b(0x146)]);return _0x2be581[_0x504f1b(0x145)]({'tag':_0x504f1b(0x138),'attributes':{'class':['ck',_0x504f1b(0x132)]},'children':[{'text':this[_0x504f1b(0x13e)]['to'](_0x504f1b(0x136))}]}),_0xed6140[_0x504f1b(0x145)]({'tag':_0x504f1b(0x142),'attributes':{'class':['ck',_0x504f1b(0x141),_0x504f1b(0x14f),this[_0x504f1b(0x13e)]['if'](_0x504f1b(0x148),_0x504f1b(0x131),_0x1fb6a1=>!_0x1fb6a1)]},'children':[_0x2be581]}),_0xed6140;}}function _0x3129(){const _0x3e7d65=['ck-hidden','ck-ai-suggestion__error-text','2321415CYdCya','23334RTHszG','showPrevious','_errorMessage','3eYWush','span','7jURCqy','showNext','insertSuggestion','5333608KBFmHh','7065342IclRUN','bindTemplate','12632715VXsBUl','_errorView','ck-ai-suggestion__error','div','342830nnnTDo','set','setTemplate','locale','268276fTZWQk','_isErrorVisible','616iysglY','4hMiURn','applySuggestion','showBlockingError','showError','hideError','ck-ai-balloon-error','_createErrorView'];_0x3129=function(){return _0x3e7d65;};return _0x3129();}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x24f8b3=_0x111e;(function(_0x3b45d0,_0x3124a7){var _0x220679=_0x111e,_0x2ebed5=_0x3b45d0();while(!![]){try{var _0x114563=-parseInt(_0x220679(0x116))/0x1*(-parseInt(_0x220679(0x10c))/0x2)+parseInt(_0x220679(0x110))/0x3*(parseInt(_0x220679(0xfd))/0x4)+parseInt(_0x220679(0x117))/0x5+-parseInt(_0x220679(0xfe))/0x6+-parseInt(_0x220679(0x108))/0x7*(parseInt(_0x220679(0x100))/0x8)+-parseInt(_0x220679(0x107))/0x9+-parseInt(_0x220679(0x113))/0xa*(parseInt(_0x220679(0x10d))/0xb);if(_0x114563===_0x3124a7)break;else _0x2ebed5['push'](_0x2ebed5['shift']());}catch(_0x338712){_0x2ebed5['push'](_0x2ebed5['shift']());}}}(_0x244c,0x28619));import{ContextPlugin as _0x37f17d}from'ckeditor5/src/core.js';function _0x244c(){var _0x459cec=['isOfficialPlugin','startConversation','306945TsiDki','6055ngfiSL','plugins','requires','registerToolDataCallback','1142UbClId','33XccFjT','removeSelectionFromChatContext','sendMessage','604173VJlarY','ai.chat.context','config','1152840BUmKvx','focusPromptInput','define','491MEXtdn','903805fgAKtq','isPremiumPlugin','pluginName','ai.chat.initialConversation','_registerToolDataCallback','4gLYCuT','183930zgGnZn','addSelectionToChatContext','800UtVLOO','new','get','AIChat','context'];_0x244c=function(){return _0x459cec;};return _0x244c();}import{AIChatController as _0x3adcfc}from'./aichatcontroller.js';import{AIEditing as _0x556489}from'../aicore/aiediting.js';function _0x111e(_0x3132ba,_0xa5a22f){var _0x244cda=_0x244c();return _0x111e=function(_0x111ebb,_0x334f79){_0x111ebb=_0x111ebb-0xf9;var _0x36e99d=_0x244cda[_0x111ebb];return _0x36e99d;},_0x111e(_0x3132ba,_0xa5a22f);}import{AIChatUI as _0x32aed2}from'./aichatui.js';import{AIChatHistory as _0x454d05}from'../aichathistory/aichathistory.js';export class AIChat extends _0x37f17d{static get[_0x24f8b3(0x10a)](){return[_0x3adcfc,_0x556489,_0x32aed2,_0x454d05];}static get[_0x24f8b3(0xfa)](){var _0x47da0a=_0x24f8b3;return _0x47da0a(0x103);}static get[_0x24f8b3(0x105)](){return!0x0;}static get[_0x24f8b3(0xf9)](){return!0x0;}constructor(_0x350c17){var _0x4f7634=_0x24f8b3;super(_0x350c17),this[_0x4f7634(0x104)][_0x4f7634(0x112)][_0x4f7634(0x115)](_0x4f7634(0x111),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x4f7634(0x104)][_0x4f7634(0x112)][_0x4f7634(0x115)](_0x4f7634(0xfb),_0x4f7634(0x101));}async[_0x24f8b3(0xff)](){var _0x23a925=_0x24f8b3;await this[_0x23a925(0x104)][_0x23a925(0x109)][_0x23a925(0x102)](_0x3adcfc)[_0x23a925(0xff)]();}async[_0x24f8b3(0x106)](){var _0x3d1bc1=_0x24f8b3;await this[_0x3d1bc1(0x104)][_0x3d1bc1(0x109)][_0x3d1bc1(0x102)](_0x3adcfc)[_0x3d1bc1(0x106)]();}async[_0x24f8b3(0x10f)]({message:_0x203179,attributes:_0x4d5970}){var _0x2c33c8=_0x24f8b3;await this[_0x2c33c8(0x104)][_0x2c33c8(0x109)][_0x2c33c8(0x102)](_0x3adcfc)[_0x2c33c8(0x10f)]({'message':_0x203179,'attributes':_0x4d5970});}[_0x24f8b3(0x10e)](){var _0x2804cf=_0x24f8b3;this[_0x2804cf(0x104)][_0x2804cf(0x109)][_0x2804cf(0x102)](_0x3adcfc)[_0x2804cf(0x10e)]();}[_0x24f8b3(0x114)](){var _0x5f2bd7=_0x24f8b3;this[_0x5f2bd7(0x104)][_0x5f2bd7(0x109)][_0x5f2bd7(0x102)](_0x3adcfc)[_0x5f2bd7(0x114)]();}[_0x24f8b3(0x10b)](_0x548e60){var _0xaa9fe7=_0x24f8b3;this[_0xaa9fe7(0x104)][_0xaa9fe7(0x109)][_0xaa9fe7(0x102)](_0x3adcfc)[_0xaa9fe7(0xfc)](_0x548e60);}}
|