@ckeditor/ckeditor5-ai 47.7.2 → 47.7.3-alpha.0
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 _0x12052d=_0xfa1e;(function(_0x5b5319,_0x148255){const _0x452af7=_0xfa1e,_0x43ebab=_0x5b5319();while(!![]){try{const _0x5bf4a0=-parseInt(_0x452af7(0xa9))/0x1*(-parseInt(_0x452af7(0x6d))/0x2)+-parseInt(_0x452af7(0x9b))/0x3+parseInt(_0x452af7(0x96))/0x4*(-parseInt(_0x452af7(0x9a))/0x5)+-parseInt(_0x452af7(0xa0))/0x6*(parseInt(_0x452af7(0x88))/0x7)+-parseInt(_0x452af7(0xbb))/0x8*(parseInt(_0x452af7(0x7d))/0x9)+-parseInt(_0x452af7(0x7f))/0xa*(parseInt(_0x452af7(0x97))/0xb)+parseInt(_0x452af7(0xab))/0xc;if(_0x5bf4a0===_0x148255)break;else _0x43ebab['push'](_0x43ebab['shift']());}catch(_0x434192){_0x43ebab['push'](_0x43ebab['shift']());}}}(_0x1db1,0x9b08c));import{global as _0x2c71aa}from'ckeditor5/src/utils.js';import{View as _0x6416f3,ButtonView as _0x172ba1,SpinnerView as _0x5e52b0}from'ckeditor5/src/ui.js';import{IconCheck as _0xd6d29e,IconCopy as _0xba786}from'ckeditor5/src/icons.js';function _0x1db1(){const _0x3516b4=['scrollHeight','absolute','remove','innerHTML','ck-ai-form__copy-button-wrapper','execute','contentFieldView','mousedown','setEndBefore','locale','class','_createLoader','347769OTbWgo','ck-ai-form__content-area--processing','10RLBkau','Copy','loaderView','ck-ai-form__loader','isProcessing','set','createRange','.ck-ai-form__loader','change:value','18529qIpanU','body','createElement','text/html','position','execCommand','div','addRange','_createCopyButton','style','icon','\x20ck-ai-form__copy-button--copied','smooth','scrollTo','4DDHoVy','4601333unswBK','left','ck-ai-form__content-area','24440DoCZEp','1389057jIzZVS','querySelector','getSelection','change:isProcessing','ClipboardItem','996LHMlFF','isVisible','value','bindTemplate','textContent','AI\x20is\x20writing...','lastElementChild','setContent','ck-reset_all-excluded','1071909sQAFoo','ck-ai-form__content-field','24111744JWkPxv','ck-content','isEnabled','render','copy','<span>]</span>','bind','firstElementChild','_copyHTMLToClipboard','appendChild','listenTo','setTemplate','copyButtonView','write','<span>[</span>','ck-ai-form__content-area-wrapper','232LgStnM','text/plain','ck-hidden','-9999px','element','wheel','ck-ai-form__copy-button','appendLoader','setStartAfter','2hjpDWu','focus','removeAllRanges','clipboard'];_0x1db1=function(){return _0x3516b4;};return _0x1db1();}import{getTranslation as _0x99962c}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x6416f3{[_0x12052d(0x77)];[_0x12052d(0xb7)];constructor(_0x5d43ae,_0x1a0e59=''){const _0x479c72=_0x12052d;super(_0x5d43ae),this[_0x479c72(0x84)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x4c4715=this[_0x479c72(0xa3)];this[_0x479c72(0x77)]=new ContentFieldView(_0x5d43ae,_0x1a0e59),this[_0x479c72(0xb7)]=this[_0x479c72(0x90)](),this[_0x479c72(0xb6)]({'tag':_0x479c72(0x8e),'attributes':{'class':['ck',_0x479c72(0xba),_0x4c4715['if'](_0x479c72(0xa1),_0x479c72(0x66),_0x4da7cd=>!_0x4da7cd)],'tabindex':'-1'},'children':[{'tag':_0x479c72(0x8e),'attributes':{'class':['ck',_0x479c72(0x99),_0x4c4715['if'](_0x479c72(0x83),_0x479c72(0x7e))]},'children':[this[_0x479c72(0x77)],{'tag':_0x479c72(0x8e),'attributes':{'class':['ck',_0x479c72(0x75)]},'children':[this[_0x479c72(0xb7)]]}]}]});}[_0x12052d(0xae)](){const _0x470f98=_0x12052d;super[_0x470f98(0xae)](),this[_0x470f98(0xa2)]&&this[_0x470f98(0x77)][_0x470f98(0xa7)](this[_0x470f98(0xa2)]);let _0x27d0bc=!0x1;this['on'](_0x470f98(0x87),(_0x13dcbc,_0x80778e,_0xe0e799)=>{const _0x565fb7=_0x470f98,_0x117594=!this[_0x565fb7(0x77)][_0x565fb7(0x68)][_0x565fb7(0x9c)](_0x565fb7(0x86));this[_0x565fb7(0x77)][_0x565fb7(0xa7)](_0xe0e799),this[_0x565fb7(0x83)]&&_0x117594&&!_0x27d0bc&&this[_0x565fb7(0x68)][_0x565fb7(0x95)]({'top':this[_0x565fb7(0x68)][_0x565fb7(0x71)],'behavior':_0x565fb7(0x94)});}),this['on'](_0x470f98(0x9e),(_0x115247,_0x571b3d,_0x400197)=>{const _0x5674b0=_0x470f98;_0x27d0bc=!0x1,_0x400197?(this[_0x5674b0(0xa2)]=null,this[_0x5674b0(0x77)][_0x5674b0(0x6b)]()):this[_0x5674b0(0xa2)]||this[_0x5674b0(0x77)][_0x5674b0(0xa7)]('');}),this[_0x470f98(0xb5)](this[_0x470f98(0x68)],_0x470f98(0x69),()=>{_0x27d0bc=!0x0;}),this[_0x470f98(0xb5)](this[_0x470f98(0x68)],_0x470f98(0x78),()=>{_0x27d0bc=!0x0;});}[_0x12052d(0x6e)](){const _0xfb6023=_0x12052d;this[_0xfb6023(0x68)][_0xfb6023(0x6e)]();}[_0x12052d(0x90)](){const _0x17b14f=_0x12052d,_0x3980f2=this[_0x17b14f(0x7a)],_0x3a7ca5=new _0x172ba1(this[_0x17b14f(0x7a)]),_0x1a5a8e=_0x17b14f(0x6a);return _0x3a7ca5[_0x17b14f(0x84)]({'label':_0x99962c(_0x3980f2,_0x17b14f(0x80)),'icon':_0xba786,'class':_0x1a5a8e,'tooltip':!0x0}),_0x3a7ca5[_0x17b14f(0xb1)](_0x17b14f(0xa1))['to'](this,_0x17b14f(0xa2),_0x574e93=>!!_0x574e93),_0x3a7ca5[_0x17b14f(0xb1)](_0x17b14f(0xad))['to'](this,_0x17b14f(0x83),_0x4c3293=>!_0x4c3293),_0x3a7ca5['on'](_0x17b14f(0x76),()=>{const _0x34d4c0=_0x17b14f;this[_0x34d4c0(0xb3)](this[_0x34d4c0(0x77)][_0x34d4c0(0x68)]),_0x3a7ca5[_0x34d4c0(0x92)]=_0xd6d29e,_0x3a7ca5[_0x34d4c0(0x7b)]=_0x1a5a8e+_0x34d4c0(0x93),this[_0x34d4c0(0x6e)](),setTimeout(()=>{const _0x54fd9f=_0x34d4c0;_0x3a7ca5[_0x54fd9f(0x92)]=_0xba786,_0x3a7ca5[_0x54fd9f(0x7b)]=_0x1a5a8e;},0x3e8);}),_0x3a7ca5;}[_0x12052d(0xb3)](_0x489cd2){const _0x5dc79d=_0x12052d,{window:_0x3dbfa0,document:_0x10338f}=_0x2c71aa;if(_0x3dbfa0[_0x5dc79d(0x9f)]){const {Blob:_0x23a585,ClipboardItem:_0x232564}=_0x3dbfa0,_0x4f91e5=[new _0x232564({'text/html':new _0x23a585([_0x489cd2[_0x5dc79d(0x74)]],{'type':_0x5dc79d(0x8b)}),'text/plain':new _0x23a585([_0x489cd2[_0x5dc79d(0xa4)]||''],{'type':_0x5dc79d(0xbc)})})];navigator[_0x5dc79d(0x70)][_0x5dc79d(0xb8)](_0x4f91e5);}else{const _0x54d9d2=_0x10338f[_0x5dc79d(0x8a)](_0x5dc79d(0x8e));_0x54d9d2[_0x5dc79d(0x91)][_0x5dc79d(0x8c)]=_0x5dc79d(0x72),_0x54d9d2[_0x5dc79d(0x91)][_0x5dc79d(0x98)]=_0x5dc79d(0x67),_0x54d9d2[_0x5dc79d(0x74)]=_0x5dc79d(0xb9)+_0x489cd2[_0x5dc79d(0x74)]+_0x5dc79d(0xb0),_0x10338f[_0x5dc79d(0x89)][_0x5dc79d(0xb4)](_0x54d9d2);const _0x509f13=_0x10338f[_0x5dc79d(0x85)]();_0x509f13[_0x5dc79d(0x6c)](_0x54d9d2[_0x5dc79d(0xb2)]),_0x509f13[_0x5dc79d(0x79)](_0x54d9d2[_0x5dc79d(0xa6)]);const _0x30db63=_0x3dbfa0[_0x5dc79d(0x9d)]();_0x30db63[_0x5dc79d(0x6f)](),_0x30db63[_0x5dc79d(0x8f)](_0x509f13),_0x10338f[_0x5dc79d(0x8d)](_0x5dc79d(0xaf)),_0x54d9d2[_0x5dc79d(0x73)]();}}}function _0xfa1e(_0x1cf0c1,_0x5591d0){const _0x1db1b2=_0x1db1();return _0xfa1e=function(_0xfa1e32,_0x16617e){_0xfa1e32=_0xfa1e32-0x66;let _0x283d48=_0x1db1b2[_0xfa1e32];return _0x283d48;},_0xfa1e(_0x1cf0c1,_0x5591d0);}export class ContentFieldView extends _0x6416f3{constructor(_0x14790b,_0x5d15ec=''){const _0x357e14=_0x12052d;super(_0x14790b),this[_0x357e14(0x81)]=this[_0x357e14(0x7c)](),this[_0x357e14(0xb6)]({'tag':_0x357e14(0x8e),'attributes':{'class':['ck',_0x357e14(0xac),_0x5d15ec,_0x357e14(0xa8),_0x357e14(0xaa)]}});}[_0x12052d(0xa7)](_0x2dcc76){const _0x2e7419=_0x12052d;this[_0x2e7419(0x68)][_0x2e7419(0x74)]=_0x2dcc76;}[_0x12052d(0x6b)](){const _0x373602=_0x12052d;this[_0x373602(0x68)][_0x373602(0xb4)](this[_0x373602(0x81)][_0x373602(0x68)]);}[_0x12052d(0x7c)](){const _0x2b46ea=_0x12052d,_0x24d862=new _0x6416f3(),_0x2b2f15=this[_0x2b46ea(0x7a)],_0x306215=new _0x5e52b0();return _0x306215[_0x2b46ea(0xa1)]=!0x0,_0x24d862[_0x2b46ea(0xb6)]({'tag':_0x2b46ea(0x8e),'attributes':{'class':['ck',_0x2b46ea(0x82)]},'children':[_0x306215,{'text':_0x99962c(_0x2b2f15,_0x2b46ea(0xa5))}]}),_0x24d862[_0x2b46ea(0xae)](),_0x24d862;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2ce69c,_0x264b39){const _0x39fa25=_0x51e4,_0x2aea95=_0x2ce69c();while(!![]){try{const _0x163903=-parseInt(_0x39fa25(0x127))/0x1+-parseInt(_0x39fa25(0x120))/0x2*(parseInt(_0x39fa25(0x128))/0x3)+parseInt(_0x39fa25(0x12a))/0x4+-parseInt(_0x39fa25(0x11f))/0x5+parseInt(_0x39fa25(0x11b))/0x6*(-parseInt(_0x39fa25(0x11d))/0x7)+-parseInt(_0x39fa25(0x125))/0x8+-parseInt(_0x39fa25(0x129))/0x9*(-parseInt(_0x39fa25(0x124))/0xa);if(_0x163903===_0x264b39)break;else _0x2aea95['push'](_0x2aea95['shift']());}catch(_0x3a9097){_0x2aea95['push'](_0x2aea95['shift']());}}}(_0x1ed2,0x445cf));import{IconError as _0x3c504f}from'ckeditor5/src/icons.js';import{View as _0x12f616,IconView as _0x50b3a3}from'ckeditor5/src/ui.js';function _0x1ed2(){const _0x26a7f3=['3590464yJuMuD','ck-ai-form__error','407107YNhgyq','79896VdGJUl','9fceNvm','2130776pFQnhZ','text','30GQeodi','setTemplate','92519NnRWzu','content','2238840hPGFGD','30ZFAKfc','div','set','bindTemplate','15165690qXJJpq'];_0x1ed2=function(){return _0x26a7f3;};return _0x1ed2();}function _0x51e4(_0x5926bc,_0x5434c1){const _0x1ed20e=_0x1ed2();return _0x51e4=function(_0x51e4fc,_0xacf7dc){_0x51e4fc=_0x51e4fc-0x11b;let _0x5566d1=_0x1ed20e[_0x51e4fc];return _0x5566d1;},_0x51e4(_0x5926bc,_0x5434c1);}export class AIFormErrorView extends _0x12f616{constructor(_0x1f3d52,_0x1f11c2=''){const _0x270622=_0x51e4;super(_0x1f3d52);const _0xe0e09a=new _0x50b3a3(),_0x4bcfcd=this[_0x270622(0x123)];this[_0x270622(0x122)](_0x270622(0x12b),_0x1f11c2),_0xe0e09a[_0x270622(0x11e)]=_0x3c504f,this[_0x270622(0x11c)]({'tag':_0x270622(0x121),'attributes':{'class':['ck',_0x270622(0x126)]},'children':[_0xe0e09a,{'text':_0x4bcfcd['to'](_0x270622(0x12b))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xca58b6=_0x4c05;(function(_0xec21f2,_0x4c44c1){const _0x546084=_0x4c05,_0x2b2def=_0xec21f2();while(!![]){try{const _0x1a8bca=parseInt(_0x546084(0x152))/0x1*(parseInt(_0x546084(0x147))/0x2)+parseInt(_0x546084(0x15e))/0x3*(parseInt(_0x546084(0x140))/0x4)+-parseInt(_0x546084(0x148))/0x5*(parseInt(_0x546084(0x135))/0x6)+-parseInt(_0x546084(0x157))/0x7*(-parseInt(_0x546084(0x159))/0x8)+parseInt(_0x546084(0x150))/0x9+-parseInt(_0x546084(0x164))/0xa+-parseInt(_0x546084(0x142))/0xb;if(_0x1a8bca===_0x4c44c1)break;else _0x2b2def['push'](_0x2b2def['shift']());}catch(_0x13e043){_0x2b2def['push'](_0x2b2def['shift']());}}}(_0x2c47,0x1d980));function _0x2c47(){const _0x5245a2=['filteredView','focus','fire','render','showHistoryButtonView','_createSubmitButton','add','uiLanguageDirection','focusCycler','120IJcrQp','children','execute','rtl','focusLast','fieldView','bind','keystrokes','Submit','queryView','submit','4pMWyJD','History','3281267VEcsOU','ck-ai-form__submit','isEnabled','requestAnimationFrame','set','2fNeAmD','2200KJltBj','isVisible','enter','excludeScrollbarsAndBorders','_createShowHistoryButton','ck-ai-form__toggle-history','isEmpty','isOn','2022075sxhvHH','focusFirst','85162cjeCGH','window','update','resultsView','maxRows','336189TkLoIF','left','24aeJsPb','fieldWrapperChildren','submitButtonView','minRows','right','142866AnYrPU','value','width','style','element','target','732270CPvTmS','locale','focusableChildren'];_0x2c47=function(){return _0x5245a2;};return _0x2c47();}import{Rect as _0x39ba8b,global as _0x3b69b0,isVisible as _0x25d8db}from'ckeditor5/src/utils.js';function _0x4c05(_0x132907,_0x528175){const _0x2c47d7=_0x2c47();return _0x4c05=function(_0x4c0565,_0x2b5865){_0x4c0565=_0x4c0565-0x12f;let _0x4cef2f=_0x2c47d7[_0x4c0565];return _0x4cef2f;},_0x4c05(_0x132907,_0x528175);}import{IconAIHistory as _0xa81050,IconSubmit as _0x555957}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x197050,ButtonView as _0x490ede}from'ckeditor5/src/ui.js';import{getTranslation as _0x3bbbe6}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x197050{[_0xca58b6(0x15b)];[_0xca58b6(0x130)];constructor(_0x57f4d5,_0x9d5ccf){const _0x419e74=_0xca58b6;super(_0x57f4d5,_0x9d5ccf),this[_0x419e74(0x13e)][_0x419e74(0x13a)][_0x419e74(0x15c)]=0x1,this[_0x419e74(0x13e)][_0x419e74(0x13a)][_0x419e74(0x156)]=0x3,this[_0x419e74(0x15b)]=this[_0x419e74(0x131)](),this[_0x419e74(0x130)]=this[_0x419e74(0x14c)](),this[_0x419e74(0x166)][_0x419e74(0x132)](this[_0x419e74(0x130)],0x1),this[_0x419e74(0x166)][_0x419e74(0x132)](this[_0x419e74(0x15b)]);}[_0xca58b6(0x12f)](){const _0x482494=_0xca58b6;super[_0x482494(0x12f)](),this[_0x482494(0x13e)][_0x482494(0x15a)][_0x482494(0x132)](this[_0x482494(0x130)]),this[_0x482494(0x136)][_0x482494(0x132)](this[_0x482494(0x15b)]),this[_0x482494(0x13c)][_0x482494(0x146)](_0x482494(0x14a),(_0x513dd2,_0x22a509)=>{const _0x47fa3a=_0x482494;_0x513dd2[_0x47fa3a(0x163)]==this[_0x47fa3a(0x13e)][_0x47fa3a(0x13a)][_0x47fa3a(0x162)]&&(this[_0x47fa3a(0x13f)](),_0x22a509());});}[_0xca58b6(0x131)](){const _0x3b3942=_0xca58b6,_0x50e7f7=new _0x490ede(this[_0x3b3942(0x165)]),_0x49ba77=this[_0x3b3942(0x165)];return _0x50e7f7[_0x3b3942(0x146)]({'icon':_0x555957,'label':_0x3bbbe6(_0x49ba77,_0x3b3942(0x13d)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3b3942(0x143)}),_0x50e7f7['on'](_0x3b3942(0x137),()=>{const _0x548f99=_0x3b3942;this[_0x548f99(0x13f)]();}),_0x50e7f7[_0x3b3942(0x13b)](_0x3b3942(0x144))['to'](this[_0x3b3942(0x13e)][_0x3b3942(0x13a)],_0x3b3942(0x14e),this,_0x3b3942(0x144),(_0x570d6d,_0x192e2f)=>!_0x570d6d&&_0x192e2f),_0x50e7f7;}[_0xca58b6(0x14c)](){const _0x47895b=_0xca58b6,_0x2e1ea9=new _0x490ede(this[_0x47895b(0x165)]),_0x236c2b=this[_0x47895b(0x155)],_0x2836b6=this[_0x47895b(0x165)];_0x2e1ea9[_0x47895b(0x146)]({'label':_0x3bbbe6(_0x2836b6,_0x47895b(0x141)),'withText':!0x1,'icon':_0xa81050,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x47895b(0x14d)}),_0x2e1ea9[_0x47895b(0x13b)](_0x47895b(0x14f))['to'](_0x236c2b,_0x47895b(0x149)),_0x2e1ea9[_0x47895b(0x13b)](_0x47895b(0x144))['to'](this,_0x47895b(0x144)),_0x2e1ea9['on'](_0x47895b(0x137),()=>{const _0x249039=_0x47895b;_0x236c2b[_0x249039(0x149)]=!_0x236c2b[_0x249039(0x149)],_0x236c2b[_0x249039(0x149)]?this[_0x249039(0x167)][_0x249039(0x168)]():this[_0x249039(0x168)]();});const _0x19c0bf=()=>{const _0x25b900=_0x47895b;_0x3b69b0[_0x25b900(0x153)][_0x25b900(0x145)](()=>{const _0x23741a=_0x25b900;if(_0x25d8db(this[_0x23741a(0x162)])){const _0x237c3f=new _0x39ba8b(this[_0x23741a(0x13e)][_0x23741a(0x13a)][_0x23741a(0x162)]),_0x1681b7=_0x237c3f[_0x23741a(0x160)],_0x10c8c8=_0x23741a(0x138)===_0x2836b6[_0x23741a(0x133)]?_0x23741a(0x158):_0x23741a(0x15d);_0x237c3f[_0x23741a(0x14b)](),_0x2e1ea9[_0x23741a(0x162)][_0x23741a(0x161)][_0x10c8c8]=_0x1681b7-_0x237c3f[_0x23741a(0x160)]+0x1+'px';}});};return this[_0x47895b(0x13e)][_0x47895b(0x13a)]['on'](_0x47895b(0x154),_0x19c0bf),this['on'](_0x47895b(0x12f),_0x19c0bf),_0x2e1ea9;}[_0xca58b6(0x13f)](){const _0xb6deb2=_0xca58b6,_0x3014b0=this[_0xb6deb2(0x13e)][_0xb6deb2(0x13a)][_0xb6deb2(0x162)][_0xb6deb2(0x15f)];this[_0xb6deb2(0x169)](_0xb6deb2(0x13f),_0x3014b0);}[_0xca58b6(0x168)](_0x3aee4d){const _0x10ad2f=_0xca58b6;-0x1===_0x3aee4d?this[_0x10ad2f(0x134)][_0x10ad2f(0x139)]():this[_0x10ad2f(0x134)][_0x10ad2f(0x151)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x559b89=_0xb430;(function(_0x519eb0,_0x16a70b){const _0x3a637a=_0xb430,_0x5ccc55=_0x519eb0();while(!![]){try{const _0x5bb119=-parseInt(_0x3a637a(0x1da))/0x1*(parseInt(_0x3a637a(0x1e5))/0x2)+parseInt(_0x3a637a(0x1db))/0x3*(parseInt(_0x3a637a(0x1dd))/0x4)+parseInt(_0x3a637a(0x1e3))/0x5+parseInt(_0x3a637a(0x1e7))/0x6+parseInt(_0x3a637a(0x1fa))/0x7+parseInt(_0x3a637a(0x1ea))/0x8+parseInt(_0x3a637a(0x1f9))/0x9*(-parseInt(_0x3a637a(0x1ee))/0xa);if(_0x5bb119===_0x16a70b)break;else _0x5ccc55['push'](_0x5ccc55['shift']());}catch(_0x1b5b44){_0x5ccc55['push'](_0x5ccc55['shift']());}}}(_0x1786,0x6ebde));function _0xb430(_0x396faa,_0x37feca){const _0x17862d=_0x1786();return _0xb430=function(_0xb43004,_0x26d71d){_0xb43004=_0xb43004-0x1d6;let _0x9ba85b=_0x17862d[_0xb43004];return _0x9ba85b;},_0xb430(_0x396faa,_0x37feca);}function _0x1786(){const _0x48ed47=['tryAgainButton','4czvajG','AI_','locale','items','REPLACE','replace','4327065xrWabH','mainAction','4LfGxVX','insertButton','3800790jtnezB','bind','insert','2504488cXoCAU','isVisible','stopButton','Try\x20again','80UZdtGj','label','ck-hidden','ck-button-action','addMany','toUpperCase','_createButton','extendTemplate','Insert\x20below','replaceButton','_CONTENT','2955969CKumeK','5310662ltmXrz','ck-ai-form__toolbar','Stop','bindTemplate','set','69754tJZnWv','1950087TwzPDo'];_0x1786=function(){return _0x48ed47;};return _0x1786();}import{ToolbarView as _0xf71a63,ButtonView as _0x112ffd}from'ckeditor5/src/ui.js';import{getTranslation as _0x5a2173}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x559b89(0x1e2),'INSERT':_0x559b89(0x1e9)};export class AIFormToolbarView extends _0xf71a63{constructor(_0x48d382){const _0x4cbd4b=_0x559b89;super(_0x48d382),this[_0x4cbd4b(0x1d9)](_0x4cbd4b(0x1eb),!0x1),this[_0x4cbd4b(0x1d9)](_0x4cbd4b(0x1e4),AIFormToolbarViewMainActionLabel[_0x4cbd4b(0x1e1)]),this[_0x4cbd4b(0x1f7)]=this[_0x4cbd4b(0x1f4)]('',_0x4cbd4b(0x1f1)),this[_0x4cbd4b(0x1f7)][_0x4cbd4b(0x1e8)](_0x4cbd4b(0x1ef))['to'](this,_0x4cbd4b(0x1e4),_0x22d648=>_0x5a2173(_0x48d382,_0x4cbd4b(0x1de)+_0x22d648[_0x4cbd4b(0x1f3)]()+_0x4cbd4b(0x1f8))),this[_0x4cbd4b(0x1e6)]=this[_0x4cbd4b(0x1f4)](_0x5a2173(_0x48d382,_0x4cbd4b(0x1f6))),this[_0x4cbd4b(0x1dc)]=this[_0x4cbd4b(0x1f4)](_0x5a2173(_0x48d382,_0x4cbd4b(0x1ed))),this[_0x4cbd4b(0x1ec)]=this[_0x4cbd4b(0x1f4)](_0x5a2173(_0x48d382,_0x4cbd4b(0x1d7)));const _0x175e88=this[_0x4cbd4b(0x1d8)];this[_0x4cbd4b(0x1f5)]({'attributes':{'class':[_0x4cbd4b(0x1d6),_0x175e88['if'](_0x4cbd4b(0x1eb),_0x4cbd4b(0x1f0),_0x2b7b2=>!_0x2b7b2)]}}),this[_0x4cbd4b(0x1e0)][_0x4cbd4b(0x1f2)]([this[_0x4cbd4b(0x1f7)],this[_0x4cbd4b(0x1e6)],this[_0x4cbd4b(0x1dc)],this[_0x4cbd4b(0x1ec)]]);}[_0x559b89(0x1f4)](_0x247755,_0x213b5f){const _0xeb433=_0x559b89,_0x5a53e6=new _0x112ffd(this[_0xeb433(0x1df)]);return _0x5a53e6[_0xeb433(0x1d9)]({'label':_0x247755,'class':_0x213b5f||'','isVisible':!0x0,'withText':!0x0}),_0x5a53e6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x560d4f=_0xb398;(function(_0x2b1b0a,_0x2e6f8d){const _0x1937d4=_0xb398,_0x3b2409=_0x2b1b0a();while(!![]){try{const _0x3f46b8=-parseInt(_0x1937d4(0x17f))/0x1*(-parseInt(_0x1937d4(0x136))/0x2)+-parseInt(_0x1937d4(0x15a))/0x3+-parseInt(_0x1937d4(0x16d))/0x4*(parseInt(_0x1937d4(0x168))/0x5)+parseInt(_0x1937d4(0x14b))/0x6*(-parseInt(_0x1937d4(0x14f))/0x7)+parseInt(_0x1937d4(0x16e))/0x8*(parseInt(_0x1937d4(0x139))/0x9)+parseInt(_0x1937d4(0x15c))/0xa+parseInt(_0x1937d4(0x14d))/0xb*(parseInt(_0x1937d4(0x163))/0xc);if(_0x3f46b8===_0x2e6f8d)break;else _0x3b2409['push'](_0x3b2409['shift']());}catch(_0x61afd4){_0x3b2409['push'](_0x3b2409['shift']());}}}(_0x4c1a,0xe3fc5));import{FocusTracker as _0x390048,KeystrokeHandler as _0x5333e3}from'ckeditor5/src/utils.js';import{View as _0x3909df,FocusCycler as _0x7a06f3,createLabeledTextarea as _0x4d36a2}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x33d7b7,AIFormToolbarViewMainActionLabel as _0x446b07}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x4021ba}from'./aiformcontentarea.js';function _0xb398(_0x23650e,_0x1dcd12){const _0x4c1a16=_0x4c1a();return _0xb398=function(_0xb39890,_0x10541f){_0xb39890=_0xb39890-0x135;let _0x1e3b95=_0x4c1a16[_0xb39890];return _0x1e3b95;},_0xb398(_0x23650e,_0x1dcd12);}import{AIFormErrorView as _0x3b8202}from'./aiformerrorview.js';import{AIFormPromptView as _0x318201}from'./aiformpromptview.js';function _0x4c1a(){const _0x1b3cba=['contentArea','tab','toolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','listenTo','stopProcessing','add','trim','shift\x20+\x20tab','_promptHistory','27774gklJtu','focusTracker','608168CyuGIG','_createPromptView','833daXvas','replaceContent','_focusables','tryAgainButton','bindTemplate','submit','search','handleError','historyGroupView','ck-ai-form-content','reset','719865PnVQgj','tryAgainEvent','16395080zRpZcZ','startProcessing','Empty\x20history','div','ck-ai-form','element','prompt','48DIlcMS','errorView','copyButtonView','set','REPLACE','5604405SrQyvF','execute','createCollection','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertButton','4WrxOVX','9432GsmKDX','finishProcessing','_createToolbar','isProcessing','delegate','render','value','AI_ERROR_FAILED','isError','isEnabled','text','submitPrompt','stopButton','mainAction','focusFirst','isVisible','label','31171nlGwOK','items','fire','setTemplate','keystrokes','insertContentBelow','promptView','bind','replaceButton','focus','queryView','focusLast','locale','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','38lucCWE','chain','clear','2997nvjYAm','high','fieldView','ck-hidden','focusCycler','bindTo','_createHistoryView','clearHistory'];_0x4c1a=function(){return _0x1b3cba;};return _0x4c1a();}import{AIHistoryListView as _0x1606f6}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x32cd1e}from'./aihistorylistitemview.js';import{PromptHistory as _0x37e995}from'./prompthistory.js';import{getTranslation as _0x2fa5d0}from'../../utils/common-translations.js';import{escape as _0x1ceca3}from'es-toolkit/compat';export class AIFormView extends _0x3909df{[_0x560d4f(0x14c)];[_0x560d4f(0x183)];[_0x560d4f(0x141)];[_0x560d4f(0x143)];[_0x560d4f(0x185)];[_0x560d4f(0x164)];[_0x560d4f(0x151)];[_0x560d4f(0x13d)];[_0x560d4f(0x14a)];constructor(_0x2023c,_0x4c022f,_0x432b12=''){const _0x355769=_0x560d4f;super(_0x2023c),this[_0x355769(0x166)](_0x355769(0x177),!0x0),this[_0x355769(0x166)](_0x355769(0x171),!0x1),this[_0x355769(0x166)](_0x355769(0x162),''),this[_0x355769(0x166)](_0x355769(0x174),''),this[_0x355769(0x166)](_0x355769(0x176),!0x1),this[_0x355769(0x166)](_0x355769(0x17b),_0x446b07[_0x355769(0x167)]),this[_0x355769(0x14a)]=new _0x37e995(),this[_0x355769(0x164)]=new _0x3b8202(_0x2023c),this[_0x355769(0x141)]=new _0x4021ba(_0x2023c,_0x432b12),this[_0x355769(0x141)][_0x355769(0x186)](_0x355769(0x171))['to'](this),this[_0x355769(0x141)][_0x355769(0x186)](_0x355769(0x174))['to'](this),this[_0x355769(0x143)]=this[_0x355769(0x170)](),this[_0x355769(0x143)][_0x355769(0x186)](_0x355769(0x17b))['to'](this),this[_0x355769(0x185)]=this[_0x355769(0x14e)](),this[_0x355769(0x14c)]=new _0x390048(),this[_0x355769(0x183)]=new _0x5333e3(),this[_0x355769(0x151)]=this[_0x355769(0x16a)]([this[_0x355769(0x141)],this[_0x355769(0x141)][_0x355769(0x165)],this[_0x355769(0x143)],this[_0x355769(0x185)]]),this[_0x355769(0x13d)]=new _0x7a06f3({'focusables':this[_0x355769(0x151)],'focusTracker':this[_0x355769(0x14c)],'keystrokeHandler':this[_0x355769(0x183)],'actions':{'focusPrevious':_0x355769(0x149),'focusNext':_0x355769(0x142)}}),this[_0x355769(0x13d)][_0x355769(0x137)](this[_0x355769(0x185)][_0x355769(0x13d)]),this[_0x355769(0x185)][_0x355769(0x189)][_0x355769(0x13b)][_0x355769(0x186)](_0x355769(0x174))['to'](this,_0x355769(0x162));const _0x3af9eb=this[_0x355769(0x153)];this[_0x355769(0x182)]({'tag':_0x355769(0x15f),'attributes':{'class':['ck',_0x355769(0x160),_0x4c022f],'tabindex':'-1'},'children':[{'tag':_0x355769(0x15f),'attributes':{'class':['ck',_0x355769(0x158)]},'children':[{'tag':_0x355769(0x15f),'attributes':{'class':[_0x3af9eb['if'](_0x355769(0x176),_0x355769(0x13c),_0x1ec394=>!_0x1ec394)]},'children':[this[_0x355769(0x164)]]},this[_0x355769(0x141)],this[_0x355769(0x143)],this[_0x355769(0x185)]]}]});}[_0x560d4f(0x173)](){const _0x21a4d8=_0x560d4f;super[_0x21a4d8(0x173)](),this[_0x21a4d8(0x14c)][_0x21a4d8(0x147)](this[_0x21a4d8(0x141)][_0x21a4d8(0x161)]),this[_0x21a4d8(0x14c)][_0x21a4d8(0x147)](this[_0x21a4d8(0x141)][_0x21a4d8(0x165)][_0x21a4d8(0x161)]),this[_0x21a4d8(0x14c)][_0x21a4d8(0x147)](this[_0x21a4d8(0x143)][_0x21a4d8(0x161)]),this[_0x21a4d8(0x14c)][_0x21a4d8(0x147)](this[_0x21a4d8(0x185)][_0x21a4d8(0x161)]),this[_0x21a4d8(0x183)][_0x21a4d8(0x145)](this[_0x21a4d8(0x161)]);}[_0x560d4f(0x188)](_0x4b1705=0x1){const _0x359acd=_0x560d4f;-0x1===_0x4b1705?this[_0x359acd(0x13d)][_0x359acd(0x18a)]():this[_0x359acd(0x13d)][_0x359acd(0x17c)]();}[_0x560d4f(0x159)](){const _0x1bf6a4=_0x560d4f;this[_0x1bf6a4(0x162)]='',this[_0x1bf6a4(0x174)]='',this[_0x1bf6a4(0x176)]=!0x1,this[_0x1bf6a4(0x185)][_0x1bf6a4(0x159)](),this[_0x1bf6a4(0x141)][_0x1bf6a4(0x17d)]=!0x1,this[_0x1bf6a4(0x143)][_0x1bf6a4(0x17d)]=!0x1;}[_0x560d4f(0x14e)](){const _0x19ba58=_0x560d4f,_0x4fe474=this[_0x19ba58(0x18b)],_0x5581e1=new _0x318201(_0x4fe474,{'queryView':{'label':_0x2fa5d0(_0x4fe474,_0x19ba58(0x144)),'creator':_0x4d36a2,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2fa5d0(_0x4fe474,_0x19ba58(0x15e)),'secondary':_0x2fa5d0(_0x4fe474,_0x19ba58(0x135))}}},'filteredView':this[_0x19ba58(0x13f)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5581e1[_0x19ba58(0x186)](_0x19ba58(0x177))['to'](this,_0x19ba58(0x177),this,_0x19ba58(0x171),(_0x2c61ae,_0x116817)=>_0x2c61ae&&!_0x116817),this[_0x19ba58(0x145)](_0x5581e1,_0x19ba58(0x154),(_0x59c7be,_0x4d5ea1)=>{const _0x3aae10=_0x19ba58;this[_0x3aae10(0x162)]=_0x4d5ea1;const _0x41e345=_0x1ceca3(_0x4d5ea1);this[_0x3aae10(0x181)](_0x3aae10(0x179),_0x41e345),_0x4d5ea1[_0x3aae10(0x148)]()&&this[_0x3aae10(0x14a)][_0x3aae10(0x147)]({'prompt':_0x41e345},0x0);},{'priority':_0x19ba58(0x13a)}),_0x5581e1;}[_0x560d4f(0x13f)](){const _0x24e95e=_0x560d4f,_0x4f149a=new _0x1606f6(this[_0x24e95e(0x18b)]);return _0x4f149a[_0x24e95e(0x157)][_0x24e95e(0x180)][_0x24e95e(0x13e)](this[_0x24e95e(0x14a)])['as'](_0x32cd1e),_0x4f149a['on'](_0x24e95e(0x140),()=>{const _0x22e17a=_0x24e95e;this[_0x22e17a(0x14a)][_0x22e17a(0x138)](),this[_0x22e17a(0x185)][_0x22e17a(0x155)](''),this[_0x22e17a(0x185)][_0x22e17a(0x188)]();}),_0x4f149a;}[_0x560d4f(0x170)](){const _0xec5ff2=_0x560d4f,_0x2c199d=new _0x33d7b7(this[_0xec5ff2(0x18b)]);return _0x2c199d[_0xec5ff2(0x187)][_0xec5ff2(0x186)](_0xec5ff2(0x177))['to'](this,_0xec5ff2(0x177),this,_0xec5ff2(0x171),this,_0xec5ff2(0x174),(_0x5417e2,_0x5d55c5,_0x61f589)=>_0x5417e2&&!_0x5d55c5&&!!_0x61f589),_0x2c199d[_0xec5ff2(0x187)][_0xec5ff2(0x172)](_0xec5ff2(0x169))['to'](this,_0xec5ff2(0x150)),_0x2c199d[_0xec5ff2(0x16c)][_0xec5ff2(0x186)](_0xec5ff2(0x177))['to'](this,_0xec5ff2(0x177),this,_0xec5ff2(0x171),this,_0xec5ff2(0x174),(_0x4a2035,_0x5afc10,_0x42922e)=>_0x4a2035&&!_0x5afc10&&!!_0x42922e),_0x2c199d[_0xec5ff2(0x16c)][_0xec5ff2(0x172)](_0xec5ff2(0x169))['to'](this,_0xec5ff2(0x184)),_0x2c199d[_0xec5ff2(0x152)][_0xec5ff2(0x186)](_0xec5ff2(0x177))['to'](this,_0xec5ff2(0x177),this,_0xec5ff2(0x171),(_0x8e1246,_0x1fdf9c)=>_0x8e1246&&!_0x1fdf9c),_0x2c199d[_0xec5ff2(0x152)][_0xec5ff2(0x172)](_0xec5ff2(0x169))['to'](this,_0xec5ff2(0x15b)),_0x2c199d[_0xec5ff2(0x17a)][_0xec5ff2(0x186)](_0xec5ff2(0x177))['to'](this,_0xec5ff2(0x171)),_0x2c199d[_0xec5ff2(0x17a)][_0xec5ff2(0x172)](_0xec5ff2(0x169))['to'](this,_0xec5ff2(0x146)),_0x2c199d;}[_0x560d4f(0x15d)](){const _0x42db01=_0x560d4f;this[_0x42db01(0x174)]='',this[_0x42db01(0x176)]=!0x1,this[_0x42db01(0x171)]=!0x0,this[_0x42db01(0x141)][_0x42db01(0x17d)]=!0x0,this[_0x42db01(0x143)][_0x42db01(0x17d)]=!0x0,this[_0x42db01(0x141)][_0x42db01(0x188)]();}[_0x560d4f(0x16f)](){const _0x1831a6=_0x560d4f,_0x83af7f=this[_0x1831a6(0x18b)];this[_0x1831a6(0x171)]=!0x1,this[_0x1831a6(0x162)]='',this[_0x1831a6(0x185)][_0x1831a6(0x159)](),this[_0x1831a6(0x174)]&&(this[_0x1831a6(0x185)][_0x1831a6(0x189)][_0x1831a6(0x17e)]=_0x2fa5d0(_0x83af7f,_0x1831a6(0x16b)));}[_0x560d4f(0x156)](_0x26ebc2){const _0x4540ef=_0x560d4f,_0x1ad710=this[_0x4540ef(0x18b)];this[_0x4540ef(0x16f)](),this[_0x4540ef(0x176)]=!0x0,this[_0x4540ef(0x164)][_0x4540ef(0x178)]=_0x26ebc2||_0x2fa5d0(_0x1ad710,_0x4540ef(0x175)),this[_0x4540ef(0x174)]||(this[_0x4540ef(0x141)][_0x4540ef(0x17d)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x830946,_0x3a5361){const _0x2fe319=_0xe633,_0xf63740=_0x830946();while(!![]){try{const _0x22c2c8=parseInt(_0x2fe319(0x1a2))/0x1+-parseInt(_0x2fe319(0x199))/0x2*(parseInt(_0x2fe319(0x19c))/0x3)+-parseInt(_0x2fe319(0x1a6))/0x4*(-parseInt(_0x2fe319(0x1a7))/0x5)+parseInt(_0x2fe319(0x1a8))/0x6+-parseInt(_0x2fe319(0x1a9))/0x7*(parseInt(_0x2fe319(0x19f))/0x8)+parseInt(_0x2fe319(0x19e))/0x9*(-parseInt(_0x2fe319(0x1ab))/0xa)+-parseInt(_0x2fe319(0x19d))/0xb*(-parseInt(_0x2fe319(0x19a))/0xc);if(_0x22c2c8===_0x3a5361)break;else _0xf63740['push'](_0xf63740['shift']());}catch(_0x1f0d2e){_0xf63740['push'](_0xf63740['shift']());}}}(_0x3f4d,0x74260));import{ListItemView as _0xbfd653,ButtonView as _0x566a82,ButtonLabelView as _0x11a271}from'ckeditor5/src/ui.js';function _0xe633(_0x19c9d3,_0x23e78d){const _0x3f4d3b=_0x3f4d();return _0xe633=function(_0xe633d8,_0x1348c7){_0xe633d8=_0xe633d8-0x199;let _0xfdc750=_0x3f4d3b[_0xe633d8];return _0xfdc750;},_0xe633(_0x19c9d3,_0x23e78d);}import{unescape as _0x4aa1f2}from'es-toolkit/compat';function _0x3f4d(){const _0xb422f2=['prompt','fire','set','1668088ccRFvV','5cQyfZI','1003776viKuKN','191583oosIgm','execute','8636860GjCoUn','230098QTubip','24tDAzhb','add','24nZKvdm','10575158cLZqQU','9bpuqvv','152zBFUNm','children','locale','272759bQENzc'];_0x3f4d=function(){return _0xb422f2;};return _0x3f4d();}export class AIHistoryListItemView extends _0xbfd653{constructor(_0x46b33c){const _0xde217b=_0xe633;super();const _0x50230f=new _0x11a271(),_0x47d27d=new _0x566a82(this[_0xde217b(0x1a1)],_0x50230f);this[_0xde217b(0x1a0)][_0xde217b(0x19b)](_0x47d27d),_0x47d27d[_0xde217b(0x1a5)]({'label':_0x46b33c[_0xde217b(0x1a3)],'withText':!0x0}),_0x47d27d['on'](_0xde217b(0x1aa),()=>{const _0x5c9353=_0xde217b;this[_0x5c9353(0x1a4)](_0x5c9353(0x1aa),{'value':_0x4aa1f2(_0x46b33c[_0x5c9353(0x1a3)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5120a5=_0x1eb6;function _0x1eb6(_0x2a199e,_0x3f1989){const _0x400cc7=_0x400c();return _0x1eb6=function(_0x1eb6ed,_0x12550e){_0x1eb6ed=_0x1eb6ed-0xa6;let _0x796054=_0x400cc7[_0x1eb6ed];return _0x796054;},_0x1eb6(_0x2a199e,_0x3f1989);}(function(_0x142390,_0x31e586){const _0x579a24=_0x1eb6,_0x15c713=_0x142390();while(!![]){try{const _0xd8f976=-parseInt(_0x579a24(0xb1))/0x1*(-parseInt(_0x579a24(0xbd))/0x2)+-parseInt(_0x579a24(0xc0))/0x3*(parseInt(_0x579a24(0xbb))/0x4)+-parseInt(_0x579a24(0xbe))/0x5+parseInt(_0x579a24(0xba))/0x6*(-parseInt(_0x579a24(0xb4))/0x7)+-parseInt(_0x579a24(0xbf))/0x8+parseInt(_0x579a24(0xb3))/0x9+parseInt(_0x579a24(0xa6))/0xa;if(_0xd8f976===_0x31e586)break;else _0x15c713['push'](_0x15c713['shift']());}catch(_0x190a14){_0x15c713['push'](_0x15c713['shift']());}}}(_0x400c,0x88d74));import{ListView as _0x38d3e2,ListItemGroupView as _0x5b90d4,ButtonView as _0x447535}from'ckeditor5/src/ui.js';function _0x400c(){const _0x3254b1=['add','clearHistory','historyGroupView','set','_createClearHistoryButton','Prompt\x20history','length','clearHistoryButton','label','execute','46bGommG','locale','1006515BoDFij','4184929TSbwQH','items','Clear','fire','filter','children','6fkZzaa','16444hoavhu','delegate','34486NAXVmr','4935130GpgCew','7103280VKeZjW','573RpmRXD','29134710KBSdtZ'];_0x400c=function(){return _0x3254b1;};return _0x400c();}import{getTranslation as _0xdff216}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x38d3e2{[_0x5120a5(0xa9)];[_0x5120a5(0xae)];constructor(_0x55249f){const _0x20d3b2=_0x5120a5;super(_0x55249f),this[_0x20d3b2(0xae)]=this[_0x20d3b2(0xab)](),this[_0x20d3b2(0xa9)]=new _0x5b90d4(),this[_0x20d3b2(0xa9)][_0x20d3b2(0xb9)][_0x20d3b2(0xa7)](this[_0x20d3b2(0xae)],0x1),this[_0x20d3b2(0xa9)][_0x20d3b2(0xaf)]=_0xdff216(_0x55249f,_0x20d3b2(0xac)),this[_0x20d3b2(0xa9)][_0x20d3b2(0xb5)][_0x20d3b2(0xbc)](_0x20d3b2(0xb0))['to'](this),this[_0x20d3b2(0xb5)][_0x20d3b2(0xa7)](this[_0x20d3b2(0xa9)]);}[_0x5120a5(0xb8)](){const _0x53fc77=_0x5120a5;let _0x8e81e4=0x0;for(const _0x18e788 of this[_0x53fc77(0xb5)])_0x8e81e4+=_0x18e788[_0x53fc77(0xb5)][_0x53fc77(0xad)];return{'resultsCount':_0x8e81e4,'totalItemsCount':_0x8e81e4};}[_0x5120a5(0xab)](){const _0x54dad5=_0x5120a5,_0x568444=this[_0x54dad5(0xb2)],_0x49a962=new _0x447535(this[_0x54dad5(0xb2)]);return _0x49a962[_0x54dad5(0xaa)]({'label':'('+_0xdff216(_0x568444,_0x54dad5(0xb6))+')','withText':!0x0}),_0x49a962['on'](_0x54dad5(0xb0),()=>this[_0x54dad5(0xb7)](_0x54dad5(0xa8))),_0x49a962;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d4d29=_0x5f27;(function(_0x272838,_0x558aba){const _0x5c3e8c=_0x5f27,_0x3748a0=_0x272838();while(!![]){try{const _0x34fac2=-parseInt(_0x5c3e8c(0x179))/0x1+parseInt(_0x5c3e8c(0x178))/0x2+-parseInt(_0x5c3e8c(0x17a))/0x3+parseInt(_0x5c3e8c(0x183))/0x4+parseInt(_0x5c3e8c(0x17f))/0x5*(parseInt(_0x5c3e8c(0x188))/0x6)+-parseInt(_0x5c3e8c(0x187))/0x7+-parseInt(_0x5c3e8c(0x18a))/0x8*(parseInt(_0x5c3e8c(0x17b))/0x9);if(_0x34fac2===_0x558aba)break;else _0x3748a0['push'](_0x3748a0['shift']());}catch(_0x1ff904){_0x3748a0['push'](_0x3748a0['shift']());}}}(_0xe738,0xad98f));import{Collection as _0x24b41a}from'ckeditor5/src/utils.js';const So=_0x5d4d29(0x17c);function _0x5f27(_0x1655ed,_0x2b6003){const _0xe7382b=_0xe738();return _0x5f27=function(_0x5f27b8,_0x1d83d9){_0x5f27b8=_0x5f27b8-0x174;let _0x4160c3=_0xe7382b[_0x5f27b8];return _0x4160c3;},_0x5f27(_0x1655ed,_0x2b6003);}function _0xe738(){const _0x2c0bae=['865284gbTkSt','2862vXVIUp','add','3887240wuYQRZ','setItem','parse','addMany','stringify','remove','_saveToSessionStorage','2604498aujGqt','1042931kkxYFz','1090098LPHQwY','9oxTgue','CKEditor/AIFormView/PromptHistory','prompt','_loadFromSessionStorage','5205TLmCwf','length','map','getItem','3712252fnncAU','toLowerCase','trim','last'];_0xe738=function(){return _0x2c0bae;};return _0xe738();}export class PromptHistory extends _0x24b41a{constructor(){const _0x1087db=_0x5d4d29;super(),this[_0x1087db(0x17e)](),this['on'](_0x1087db(0x189),(_0xc7be3,_0x5a5429)=>{const _0x39f3dc=_0x1087db,_0x8272a4=go(_0x5a5429[_0x39f3dc(0x17d)]);for(const _0x2ce8db of this)if(_0x2ce8db!=_0x5a5429&&go(_0x2ce8db[_0x39f3dc(0x17d)])===_0x8272a4){this[_0x39f3dc(0x176)](_0x2ce8db);break;}this[_0x39f3dc(0x180)]>0x14&&this[_0x39f3dc(0x176)](this[_0x39f3dc(0x186)]),this[_0x39f3dc(0x177)]();}),this['on'](_0x1087db(0x176),()=>{const _0x2db957=_0x1087db;this[_0x2db957(0x177)]();});}[_0x5d4d29(0x17e)](){const _0x2ddbe2=_0x5d4d29,_0x2f89d1=sessionStorage[_0x2ddbe2(0x182)](So)||'[]';this[_0x2ddbe2(0x174)](JSON[_0x2ddbe2(0x18c)](_0x2f89d1));}[_0x5d4d29(0x177)](){const _0x460c57=_0x5d4d29;sessionStorage[_0x460c57(0x18b)](So,JSON[_0x460c57(0x175)](this[_0x460c57(0x181)](_0x27f8b3=>_0x27f8b3)));}}function go(_0x76de28){const _0x24b98c=_0x5d4d29;return _0x76de28[_0x24b98c(0x184)]()[_0x24b98c(0x185)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18753f=_0x30a4;(function(_0x17a50e,_0x10d386){const _0x1caabd=_0x30a4,_0x3a3365=_0x17a50e();while(!![]){try{const _0x3b6a80=parseInt(_0x1caabd(0x181))/0x1*(parseInt(_0x1caabd(0x174))/0x2)+-parseInt(_0x1caabd(0x180))/0x3*(-parseInt(_0x1caabd(0x17d))/0x4)+parseInt(_0x1caabd(0x187))/0x5+parseInt(_0x1caabd(0x177))/0x6+parseInt(_0x1caabd(0x18c))/0x7+-parseInt(_0x1caabd(0x17e))/0x8*(-parseInt(_0x1caabd(0x171))/0x9)+parseInt(_0x1caabd(0x18b))/0xa*(-parseInt(_0x1caabd(0x182))/0xb);if(_0x3b6a80===_0x10d386)break;else _0x3a3365['push'](_0x3a3365['shift']());}catch(_0x12064b){_0x3a3365['push'](_0x3a3365['shift']());}}}(_0x3022,0x2c48f));import{Command as _0x1c10ca}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2e73ae}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1c10ca{[_0x18753f(0x188)];constructor(_0x27e0b2,_0x58a641){const _0x1c9b50=_0x18753f;super(_0x27e0b2),this[_0x1c9b50(0x188)]=_0x58a641,this[_0x1c9b50(0x169)](_0x1c9b50(0x17b),[]),this['on'](_0x1c9b50(0x168),(_0x34faa2,_0x7d245d,_0x3e782c)=>{const _0x49fc92=_0x1c9b50;this[_0x49fc92(0x160)]&&(this[_0x49fc92(0x17b)]=ns(this[_0x49fc92(0x188)],_0x3e782c));}),this[_0x1c9b50(0x169)](_0x1c9b50(0x17f),!0x1),this['on'](_0x1c9b50(0x16c),(_0x209d1d,_0x5d8e72,_0x3f6ad8)=>{const _0x12888d=_0x1c9b50;this[_0x12888d(0x17b)]=_0x3f6ad8?ns(this[_0x12888d(0x188)],this[_0x12888d(0x17f)]):[];});}[_0x18753f(0x164)](){const _0x6c72d7=_0x18753f,_0x37405e=this[_0x6c72d7(0x179)][_0x6c72d7(0x16d)];this[_0x6c72d7(0x17f)]=function(_0x3418e4){const _0xdc4e37=_0x6c72d7,_0x2f2218=_0x3418e4[_0xdc4e37(0x173)][_0xdc4e37(0x163)];return _0x2f2218[_0xdc4e37(0x176)]?0x0!==[..._0x2f2218[_0xdc4e37(0x16f)]()][_0xdc4e37(0x167)]&&![..._0x2f2218[_0xdc4e37(0x16f)]()][0x0][_0xdc4e37(0x186)]:!!_0x3418e4[_0xdc4e37(0x170)](_0x2f2218[_0xdc4e37(0x166)]());}(_0x37405e);const _0xaf1de8=_0x37405e[_0x6c72d7(0x173)][_0x6c72d7(0x163)],_0x4ad7e0=this[_0x6c72d7(0x179)][_0x6c72d7(0x17c)][_0x6c72d7(0x189)](_0x6c72d7(0x17a));for(const _0x1d4452 of _0xaf1de8[_0x6c72d7(0x16e)]())for(const _0x5ba61b of _0x1d4452[_0x6c72d7(0x16b)]())if(_0x5ba61b['is'](_0x6c72d7(0x183))&&_0x4ad7e0[_0x6c72d7(0x18a)](_0x5ba61b[_0x6c72d7(0x165)]))return void(this[_0x6c72d7(0x160)]=!0x1);this[_0x6c72d7(0x160)]=!0x0;}[_0x18753f(0x161)](_0x11dc0c='',_0x2bd859='',_0x7e130b=_0x18753f(0x172)){const _0xd0bf2=_0x18753f;this[_0xd0bf2(0x179)][_0xd0bf2(0x185)][_0xd0bf2(0x189)](_0x2e73ae)[_0xd0bf2(0x162)](_0x11dc0c,_0x2bd859,_0x7e130b);}}function _0x30a4(_0x3da2da,_0x1df91e){const _0x30225f=_0x3022();return _0x30a4=function(_0x30a4d5,_0x283314){_0x30a4d5=_0x30a4d5-0x160;let _0x322e6=_0x30225f[_0x30a4d5];return _0x322e6;},_0x30a4(_0x3da2da,_0x1df91e);}function ns(_0x4b99ff,_0x4a6079){const _0x2305a7=_0x18753f,_0x4fe0c1=new Set();for(const _0x2e292b of _0x4b99ff[_0x2305a7(0x16a)]())(_0x4a6079||!0x1===_0x2e292b[_0x2305a7(0x178)])&&_0x4fe0c1[_0x2305a7(0x175)](_0x2e292b['id']);return Array[_0x2305a7(0x184)](_0x4fe0c1);}function _0x3022(){const _0x33ee13=['model','getRanges','getSelectedBlocks','hasContent','45PpjHSX','custom','document','30UxPtmt','add','isCollapsed','1774086qtSPxj','requiresContent','editor','ai.assistant.disabledElements','enabledCommandsIds','config','1324RnVvhu','45544tGaYvC','_hasContext','357yXxfVS','11549VDZJfC','569833BFweed','element','from','plugins','isEmpty','436900TuImuu','_commandDefinitions','get','includes','90xotXRx','164276luJKSI','isEnabled','execute','showUI','selection','refresh','name','getFirstRange','length','change:_hasContext','set','values','getItems','change:isEnabled'];_0x3022=function(){return _0x33ee13;};return _0x3022();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xe714be,_0x3b684a,_0x1f5784){const t=_0xe714be['t'];switch(_0x3b684a){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',_0x1f5784);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1f5784);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'},_0x1f5784);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 _0x3b684a;}}
|
|
@@ -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(_0x48cf2c,_0x5c890b){const _0x4b60c9=(0x0,_0x5c890b['t'])('Other');return _0x48cf2c['length']?'groupId'in _0x48cf2c[0x0]?_0x48cf2c:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4b60c9,'order':0x1/0x0,'commands':_0x48cf2c}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4b60c9,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x62be6a=_0x5a93;(function(_0x4328a9,_0x181191){const _0x504630=_0x5a93,_0x593101=_0x4328a9();while(!![]){try{const _0x94895a=-parseInt(_0x504630(0x1dd))/0x1*(parseInt(_0x504630(0x1bb))/0x2)+parseInt(_0x504630(0x1a8))/0x3*(parseInt(_0x504630(0x1bf))/0x4)+parseInt(_0x504630(0x1d2))/0x5+parseInt(_0x504630(0x1ad))/0x6*(parseInt(_0x504630(0x1b9))/0x7)+parseInt(_0x504630(0x188))/0x8+parseInt(_0x504630(0x1c8))/0x9*(-parseInt(_0x504630(0x1d9))/0xa)+-parseInt(_0x504630(0x1d7))/0xb*(parseInt(_0x504630(0x1c1))/0xc);if(_0x94895a===_0x181191)break;else _0x593101['push'](_0x593101['shift']());}catch(_0x53a2b0){_0x593101['push'](_0x593101['shift']());}}}(_0x38f7,0xc9169));import{ContextPlugin as _0x1dfae9}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x39bf77,AIEditing as _0x50f544}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0xe6ef9d}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2eb79e,Rect as _0x2a32f3,scrollViewportToShowTarget as _0x26da8c}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x46e437}from'../aicore/utils/geteditorfromcontext.js';function _0x5a93(_0x551e57,_0x40d697){const _0x38f7f4=_0x38f7();return _0x5a93=function(_0x5a93d2,_0x199ccd){_0x5a93d2=_0x5a93d2-0x183;let _0x14beb1=_0x38f7f4[_0x5a93d2];return _0x14beb1;},_0x5a93(_0x551e57,_0x40d697);}import{getTranslation as _0xff879f}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x517d46}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x517d46,_0x62be6a(0x190),_0x62be6a(0x1db)];const $=0xa;function _0x38f7(){const _0x2c2109=['isEqual','root','ai-balloon-','left','show','885664LPOQHp','width','editing','showFakeVisualSelection','rootName','isPremiumPlugin','beforeDialogClosed','getBoundingRect','dialogClosed','height','index','model','plugins','window','_cleanupFakeVisualSelectionMarkerRemovalListener','differ','change','round','bind','end','_hideFakeVisualSelection','hideError','stopListening','pluginName','_getSelectionElements','isOfficialPlugin','isOpen','updatePosition','filter','max','_updateDialog','_calculateDialogPosition','1095054HhrKsQ','AI_BALLOON_SELECTION_REMOVED_ERROR','ai-balloon-selection','ai-selection','_showFakeVisualSelection','163596nLJtgY','_setupFakeVisualSelectionMarkerRemovalListener','bottom','ranges','open','label','length','once','delegate','hideFakeVisualSelection','_calculateOptimalTopPosition','getChangedMarkers','280NnmFxx','iconView','319882EFfXVr','get','top','_isUpdatingMarkers','12Aldhrp','getIntersection','492TkLdEt','Dialog','getVisible','_showDialog','getMarkersGroup','headerView','markers','9aDKCtK','requires','startsWith','fire','context','map','content','document','mainView','start','5697635ZmUMlJ','$graveyard','hide','high','listenTo','353518MsQXDL','ck-ai-balloon\x20','8147910ziySnc','_currentConfig','selectionRemoved','AIBalloon','3wXLMlz','locale','showBlockingError','view','close'];_0x38f7=function(){return _0x2c2109;};return _0x38f7();}export class AIBalloon extends _0x1dfae9{static get[_0x62be6a(0x1c9)](){return[_0x50f544];}static get[_0x62be6a(0x19f)](){const _0x20c51c=_0x62be6a;return _0x20c51c(0x1dc);}static get[_0x62be6a(0x1a1)](){return!0x0;}static get[_0x62be6a(0x18d)](){return!0x0;}[_0x62be6a(0x1a2)]=!0x1;[_0x62be6a(0x1da)];[_0x62be6a(0x1be)]=!0x1;[_0x62be6a(0x1b1)](_0x489173){const _0x4fc641=_0x62be6a,{id:_0x5518da}=this[_0x4fc641(0x1da)]??{};this[_0x4fc641(0x1da)]=_0x489173;const {id:_0x48668d}=this[_0x4fc641(0x1da)];this[_0x4fc641(0x1a2)]&&_0x5518da===_0x48668d?this[_0x4fc641(0x1a6)]():this[_0x4fc641(0x1c4)]();}[_0x62be6a(0x1e1)](){const _0x4e628d=_0x62be6a,_0x377e6c=_0x46e437(this[_0x4e628d(0x1cc)])[_0x4e628d(0x194)][_0x4e628d(0x1bc)](_0x4e628d(0x1c2));_0x377e6c[_0x4e628d(0x1a2)]&&this[_0x4e628d(0x1da)]&&_0x377e6c['id']===this[_0x4e628d(0x1da)]['id']&&_0x377e6c[_0x4e628d(0x1d4)]();}[_0x62be6a(0x1a6)](){const _0x4bd88d=_0x62be6a,_0x9e8ed8=_0x46e437(this[_0x4bd88d(0x1cc)])[_0x4bd88d(0x194)][_0x4bd88d(0x1bc)](_0x4bd88d(0x1c2)),{icon:_0x107f04,title:_0x1fa8ab}=this[_0x4bd88d(0x1da)];_0x9e8ed8[_0x4bd88d(0x1e0)]?.[_0x4bd88d(0x1c6)]&&(_0x9e8ed8[_0x4bd88d(0x1e0)][_0x4bd88d(0x1c6)][_0x4bd88d(0x1b2)]=_0x1fa8ab,_0x9e8ed8[_0x4bd88d(0x1e0)][_0x4bd88d(0x1c6)][_0x4bd88d(0x1ba)]&&_0x107f04&&(_0x9e8ed8[_0x4bd88d(0x1e0)][_0x4bd88d(0x1c6)][_0x4bd88d(0x1ba)][_0x4bd88d(0x1ce)]=_0x107f04)),this[_0x4bd88d(0x1be)]=!0x0,this[_0x4bd88d(0x1ac)](),this[_0x4bd88d(0x1be)]=!0x1,_0x9e8ed8[_0x4bd88d(0x1e0)]?.[_0x4bd88d(0x1a3)]();}[_0x62be6a(0x1ac)](){const _0x205eb0=_0x62be6a;this[_0x205eb0(0x1cc)][_0x205eb0(0x194)][_0x205eb0(0x1bc)](_0x50f544)[_0x205eb0(0x18b)](this[_0x205eb0(0x1da)][_0x205eb0(0x1b0)],_0x205eb0(0x185)+this[_0x205eb0(0x1da)][_0x205eb0(0x192)],!0x0,!0x0);}[_0x62be6a(0x19c)](_0x1b6e90){const _0x52c315=_0x62be6a;this[_0x52c315(0x1cc)][_0x52c315(0x194)][_0x52c315(0x1bc)](_0x50f544)[_0x52c315(0x1b6)](_0x52c315(0x185)+_0x1b6e90);}[_0x62be6a(0x1c4)](){const _0x2ba58b=_0x62be6a,_0x236ceb=_0x46e437(this[_0x2ba58b(0x1cc)])[_0x2ba58b(0x194)][_0x2ba58b(0x1bc)](_0x2ba58b(0x1c2)),{id:_0x53c746,title:_0x263a76,icon:_0x2df962,class:_0x218384,mainView:_0x235d9f}=this[_0x2ba58b(0x1da)];_0x235d9f[_0x2ba58b(0x1b5)](..._0x517d46)['to'](this),_0x236ceb[_0x2ba58b(0x187)]({'title':_0x263a76,'icon':_0x2df962,'hasCloseButton':!0x0,'id':_0x53c746,'position':this[_0x2ba58b(0x1a7)][_0x2ba58b(0x19a)](this),'className':_0x2ba58b(0x1d8)+(_0x218384||''),'content':_0x235d9f,'onShow':_0x21b3a2=>{const _0x5724cd=_0x2ba58b;this[_0x5724cd(0x1ac)](),this[_0x5724cd(0x1ae)]();const _0x2c21fa=this[_0x5724cd(0x1a0)]();_0x2c21fa&&_0x2c21fa[0x0]&&_0x26da8c({'target':_0x2c21fa[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x5724cd(0x1a2)]=!0x0,_0x21b3a2[_0x5724cd(0x1b4)](_0x5724cd(0x1d4),()=>{const _0x1c4b8b=_0x5724cd;this[_0x1c4b8b(0x1cb)](_0x1c4b8b(0x18e),{'id':_0x53c746});},{'priority':_0x5724cd(0x1d5)});},'onHide':()=>{const _0x49def7=_0x2ba58b;this[_0x49def7(0x19c)](this[_0x49def7(0x1da)][_0x49def7(0x192)]),this[_0x49def7(0x196)](),this[_0x49def7(0x1cb)](_0x49def7(0x190),{'id':_0x53c746}),this[_0x49def7(0x1a2)]=!0x1;}});}[_0x62be6a(0x1a7)](_0x43640d,_0x1c5e0a){const _0x369bac=_0x62be6a;if(!_0x1c5e0a)return null;const _0x8f0b34=this[_0x369bac(0x1a0)]();if(!_0x8f0b34||0x0===_0x8f0b34[_0x369bac(0x1b3)])return{'left':Math[_0x369bac(0x199)](_0x1c5e0a[_0x369bac(0x186)]+_0x1c5e0a[_0x369bac(0x189)]/0x2-_0x43640d[_0x369bac(0x189)]/0x2),'top':Math[_0x369bac(0x199)](_0x1c5e0a[_0x369bac(0x1bd)]+_0x1c5e0a[_0x369bac(0x191)]/0x2-_0x43640d[_0x369bac(0x191)]/0x2)};const _0x136b99=Math[_0x369bac(0x199)](_0x1c5e0a[_0x369bac(0x186)]+_0x1c5e0a[_0x369bac(0x189)]/0x2-_0x43640d[_0x369bac(0x189)]/0x2),_0x33ea64=_0x8f0b34[_0x369bac(0x1cd)](_0x237067=>new _0x2a32f3(_0x237067)),_0x38f98b=_0x43640d[_0x369bac(0x191)];return{'left':_0x136b99,'top':this[_0x369bac(0x1b7)](_0x33ea64,_0x38f98b,_0x1c5e0a)};}[_0x62be6a(0x1b7)](_0x3868ca,_0x3d5850,_0x4065c3){const _0x181d47=_0x62be6a,_0x1a9eb2=new _0x2a32f3(_0x2eb79e[_0x181d47(0x195)]),_0x1e7b75=_0x3868ca[_0x181d47(0x1cd)](_0x463616=>_0x463616[_0x181d47(0x1c3)]())[_0x181d47(0x1a4)](_0xa2fae4=>_0xa2fae4),_0x22b888=_0x2a32f3[_0x181d47(0x18f)](_0x1e7b75);if(!_0x22b888)return Math[_0x181d47(0x199)](_0x4065c3[_0x181d47(0x1bd)]+_0x4065c3[_0x181d47(0x191)]/0x2);const _0x1bf579=_0x1a9eb2[_0x181d47(0x1c0)](_0x22b888);if(!_0x1bf579)return Math[_0x181d47(0x199)](_0x4065c3[_0x181d47(0x1bd)]+_0x4065c3[_0x181d47(0x191)]/0x2);const _0x505bf2=_0x4065c3[_0x181d47(0x1c3)](),_0x2b74f3=_0x505bf2&&_0x22b888[_0x181d47(0x191)]>_0x505bf2[_0x181d47(0x191)],_0x49b2c1=_0x1bf579[_0x181d47(0x1bd)],_0x5bfc82=_0x1bf579[_0x181d47(0x1af)];if(_0x2b74f3){const _0x350bdb=(_0x505bf2||_0x1a9eb2)[_0x181d47(0x191)]/0x2-_0x3d5850/0x2,_0x4a6f8e=_0x49b2c1-$-_0x4065c3[_0x181d47(0x1bd)],_0x386213=_0x4065c3[_0x181d47(0x1af)]-_0x5bfc82-$;return _0x4a6f8e>=_0x3d5850?Math[_0x181d47(0x1a5)]($,_0x49b2c1-_0x3d5850-$):_0x386213>=_0x3d5850?_0x5bfc82+$:Math[_0x181d47(0x1a5)]($,_0x350bdb);}const _0x3363e3=_0x49b2c1-_0x3d5850,_0x53ef0e=_0x4065c3[_0x181d47(0x1af)]-_0x5bfc82-$,_0x6f3397=_0x49b2c1-$-_0x4065c3[_0x181d47(0x1bd)];let _0x1df00e;if(_0x53ef0e>=_0x3d5850)_0x1df00e=_0x5bfc82+$;else{if(_0x6f3397>=_0x3d5850)_0x1df00e=_0x3363e3-$;else _0x1df00e=_0x49b2c1+_0x22b888[_0x181d47(0x191)]/0x2-_0x3d5850/0x2;}return _0x1df00e;}[_0x62be6a(0x1ae)](){const _0x432e4e=_0x62be6a,_0x4e7195=_0x46e437(this[_0x432e4e(0x1cc)]);this[_0x432e4e(0x1d6)](_0x4e7195[_0x432e4e(0x193)][_0x432e4e(0x1cf)],_0x432e4e(0x198),()=>{const _0x103f10=_0x432e4e;if(!this[_0x103f10(0x1be)]){for(const {name:_0x47a1d0,data:{newRange:_0x61953c}}of _0x4e7195[_0x103f10(0x193)][_0x103f10(0x1cf)][_0x103f10(0x197)][_0x103f10(0x1b8)]())if(_0x47a1d0[_0x103f10(0x1ca)](_0x39bf77+':')&&(_0x61953c&&(_0x61953c[_0x103f10(0x1d1)][_0x103f10(0x183)](_0x61953c[_0x103f10(0x19b)])||_0x103f10(0x1d3)==_0x61953c[_0x103f10(0x184)][_0x103f10(0x18c)])||null==_0x61953c)){const _0x1206dd=_0xff879f(this[_0x103f10(0x1cc)][_0x103f10(0x1de)],_0x103f10(0x1a9));this[_0x103f10(0x1da)][_0x103f10(0x1d0)][_0x103f10(0x1df)](_0x1206dd),this[_0x103f10(0x1cb)](_0x103f10(0x1db));}}});}[_0x62be6a(0x196)](){const _0x5c58b1=_0x62be6a,_0x24acb7=_0x46e437(this[_0x5c58b1(0x1cc)]);this[_0x5c58b1(0x1da)][_0x5c58b1(0x1d0)][_0x5c58b1(0x19d)](),this[_0x5c58b1(0x19e)](_0x24acb7[_0x5c58b1(0x193)][_0x5c58b1(0x1cf)]);}[_0x62be6a(0x1a0)](){const _0x566525=_0x62be6a,_0x2d7195=_0x46e437(this[_0x566525(0x1cc)]);return _0xe6ef9d(_0x2d7195[_0x566525(0x18a)],[..._0x2d7195[_0x566525(0x193)][_0x566525(0x1c7)][_0x566525(0x1c5)](_0x566525(0x1ab)),..._0x2d7195[_0x566525(0x193)][_0x566525(0x1c7)][_0x566525(0x1c5)](_0x566525(0x1aa))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x413a97=_0x2461;function _0x14a5(){const _0x2bc243=['9psmdHQ','setTemplate','applySuggestion','2SOjXhh','191032YjqLEa','hideError','ck-ai-suggestion__error','showError','showNext','2678430EiWSQy','ck-ai-suggestion__error-text','_isErrorVisible','_errorView','insertSuggestion','_createErrorView','set','ck-ai-balloon-error','bindTemplate','ck-hidden','div','7183484PVhPvF','locale','3040000BVBqaN','_errorMessage','2197784xRryry','showPrevious','showBlockingError','span','85233bCUEqZ','1324344hVkQgu'];_0x14a5=function(){return _0x2bc243;};return _0x14a5();}function _0x2461(_0x1e1942,_0x2a2a4b){const _0x14a553=_0x14a5();return _0x2461=function(_0x24619b,_0x53dfae){_0x24619b=_0x24619b-0x92;let _0x19abde=_0x14a553[_0x24619b];return _0x19abde;},_0x2461(_0x1e1942,_0x2a2a4b);}(function(_0x2b84f3,_0x478e63){const _0xc9d4cc=_0x2461,_0x4d5b36=_0x2b84f3();while(!![]){try{const _0x1367cf=-parseInt(_0xc9d4cc(0xa6))/0x1+-parseInt(_0xc9d4cc(0xa5))/0x2*(parseInt(_0xc9d4cc(0xa0))/0x3)+parseInt(_0xc9d4cc(0x9a))/0x4+-parseInt(_0xc9d4cc(0xab))/0x5+-parseInt(_0xc9d4cc(0xa1))/0x6+parseInt(_0xc9d4cc(0x98))/0x7+parseInt(_0xc9d4cc(0x9c))/0x8*(-parseInt(_0xc9d4cc(0xa2))/0x9);if(_0x1367cf===_0x478e63)break;else _0x4d5b36['push'](_0x4d5b36['shift']());}catch(_0x2aa823){_0x4d5b36['push'](_0x4d5b36['shift']());}}}(_0x14a5,0x82c54));import{View as _0x2da722}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x413a97(0xa4),_0x413a97(0xaf),_0x413a97(0xaa),_0x413a97(0x9d)];export class AIBalloonView extends _0x2da722{[_0x413a97(0xae)];constructor(_0x435939){const _0x1d07f3=_0x413a97;super(_0x435939),this[_0x1d07f3(0x93)](_0x1d07f3(0x9b),''),this[_0x1d07f3(0x93)](_0x1d07f3(0xad),!0x1);}[_0x413a97(0x9e)](_0x16ed77){const _0x585772=_0x413a97;this[_0x585772(0xa9)](_0x16ed77);}[_0x413a97(0xa9)](_0x5c57a4){const _0x34a572=_0x413a97;this[_0x34a572(0xae)]||(this[_0x34a572(0xae)]=this[_0x34a572(0x92)]()),this[_0x34a572(0x9b)]=_0x5c57a4,this[_0x34a572(0xad)]=!0x0;}[_0x413a97(0xa7)](){const _0x333452=_0x413a97;this[_0x333452(0xad)]=!0x1;}[_0x413a97(0x92)](){const _0x442c91=_0x413a97,_0x291730=new _0x2da722(this[_0x442c91(0x99)]),_0x175820=new _0x2da722(this[_0x442c91(0x99)]);return _0x175820[_0x442c91(0xa3)]({'tag':_0x442c91(0x9f),'attributes':{'class':['ck',_0x442c91(0xac)]},'children':[{'text':this[_0x442c91(0x95)]['to'](_0x442c91(0x9b))}]}),_0x291730[_0x442c91(0xa3)]({'tag':_0x442c91(0x97),'attributes':{'class':['ck',_0x442c91(0xa8),_0x442c91(0x94),this[_0x442c91(0x95)]['if'](_0x442c91(0xad),_0x442c91(0x96),_0x38b101=>!_0x38b101)]},'children':[_0x175820]}),_0x291730;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x380ee5=_0x5146;function _0x5146(_0xf23319,_0x367e3d){var _0x39c5ae=_0x39c5();return _0x5146=function(_0x514693,_0x3e52cc){_0x514693=_0x514693-0x68;var _0x5359b6=_0x39c5ae[_0x514693];return _0x5359b6;},_0x5146(_0xf23319,_0x367e3d);}(function(_0x13d36f,_0x59eb49){var _0x427415=_0x5146,_0x3e4557=_0x13d36f();while(!![]){try{var _0x328c2f=parseInt(_0x427415(0x84))/0x1+-parseInt(_0x427415(0x80))/0x2+-parseInt(_0x427415(0x74))/0x3*(parseInt(_0x427415(0x6c))/0x4)+parseInt(_0x427415(0x82))/0x5+parseInt(_0x427415(0x6d))/0x6*(parseInt(_0x427415(0x6a))/0x7)+-parseInt(_0x427415(0x7f))/0x8*(parseInt(_0x427415(0x72))/0x9)+parseInt(_0x427415(0x7e))/0xa;if(_0x328c2f===_0x59eb49)break;else _0x3e4557['push'](_0x3e4557['shift']());}catch(_0x57e635){_0x3e4557['push'](_0x3e4557['shift']());}}}(_0x39c5,0x42520));import{ContextPlugin as _0x2eafb4}from'ckeditor5/src/core.js';import{AIChatController as _0x1a079d}from'./aichatcontroller.js';import{AIEditing as _0x26d08a}from'../aicore/aiediting.js';import{AIChatUI as _0x1a6a41}from'./aichatui.js';import{AIChatHistory as _0x4f9a35}from'../aichathistory/aichathistory.js';function _0x39c5(){var _0x3f9f15=['AIChat','startConversation','addSelectionToChatContext','focusPromptInput','ai.chat.context','get','define','removeSelectionFromChatContext','8666240SKXlQv','6920MjtnYG','284722RNYTwW','new','748720VyzJnX','isOfficialPlugin','637JgzPOC','ai.chat.initialConversation','context','sendMessage','28zoDmyX','registerToolDataCallback','12112rjSRek','5142CdNAhN','requires','isPremiumPlugin','_registerToolDataCallback','plugins','2592roVgWC','config','354ymUvoF','pluginName'];_0x39c5=function(){return _0x3f9f15;};return _0x39c5();}export class AIChat extends _0x2eafb4{static get[_0x380ee5(0x6e)](){return[_0x1a079d,_0x26d08a,_0x1a6a41,_0x4f9a35];}static get[_0x380ee5(0x75)](){var _0x502a64=_0x380ee5;return _0x502a64(0x76);}static get[_0x380ee5(0x83)](){return!0x0;}static get[_0x380ee5(0x6f)](){return!0x0;}constructor(_0x56f9dd){var _0x47ea30=_0x380ee5;super(_0x56f9dd),this[_0x47ea30(0x68)][_0x47ea30(0x73)][_0x47ea30(0x7c)](_0x47ea30(0x7a),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x47ea30(0x68)][_0x47ea30(0x73)][_0x47ea30(0x7c)](_0x47ea30(0x85),_0x47ea30(0x81));}async[_0x380ee5(0x78)](){var _0xcc257=_0x380ee5;await this[_0xcc257(0x68)][_0xcc257(0x71)][_0xcc257(0x7b)](_0x1a079d)[_0xcc257(0x78)]();}async[_0x380ee5(0x77)](){var _0x981f88=_0x380ee5;await this[_0x981f88(0x68)][_0x981f88(0x71)][_0x981f88(0x7b)](_0x1a079d)[_0x981f88(0x77)]();}async[_0x380ee5(0x69)]({message:_0x2fabae,attributes:_0x3d1600}){var _0x5a0bab=_0x380ee5;await this[_0x5a0bab(0x68)][_0x5a0bab(0x71)][_0x5a0bab(0x7b)](_0x1a079d)[_0x5a0bab(0x69)]({'message':_0x2fabae,'attributes':_0x3d1600});}[_0x380ee5(0x7d)](){var _0x1fee53=_0x380ee5;this[_0x1fee53(0x68)][_0x1fee53(0x71)][_0x1fee53(0x7b)](_0x1a079d)[_0x1fee53(0x7d)]();}[_0x380ee5(0x79)](){var _0x2b56b1=_0x380ee5;this[_0x2b56b1(0x68)][_0x2b56b1(0x71)][_0x2b56b1(0x7b)](_0x1a079d)[_0x2b56b1(0x79)]();}[_0x380ee5(0x6b)](_0x5a68c3){var _0x29a4cf=_0x380ee5;this[_0x29a4cf(0x68)][_0x29a4cf(0x71)][_0x29a4cf(0x7b)](_0x1a079d)[_0x29a4cf(0x70)](_0x5a68c3);}}
|