@ckeditor/ckeditor5-ai 47.7.0-alpha.3 → 47.7.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 _0x557370=_0x1999;(function(_0x1543c3,_0x82a18c){const _0x4e6b20=_0x1999,_0x49e887=_0x1543c3();while(!![]){try{const _0xef1f61=parseInt(_0x4e6b20(0x9a))/0x1*(parseInt(_0x4e6b20(0xa5))/0x2)+parseInt(_0x4e6b20(0xd4))/0x3*(parseInt(_0x4e6b20(0xa2))/0x4)+-parseInt(_0x4e6b20(0xc4))/0x5*(-parseInt(_0x4e6b20(0xa3))/0x6)+-parseInt(_0x4e6b20(0xa7))/0x7*(parseInt(_0x4e6b20(0xc3))/0x8)+parseInt(_0x4e6b20(0xbb))/0x9*(parseInt(_0x4e6b20(0xdd))/0xa)+-parseInt(_0x4e6b20(0xd6))/0xb*(parseInt(_0x4e6b20(0xc7))/0xc)+-parseInt(_0x4e6b20(0xcf))/0xd;if(_0xef1f61===_0x82a18c)break;else _0x49e887['push'](_0x49e887['shift']());}catch(_0x6bc343){_0x49e887['push'](_0x49e887['shift']());}}}(_0x2c57,0x74001));import{global as _0x5ad8af}from'ckeditor5/src/utils.js';import{View as _0x45fd26,ButtonView as _0x50aa2b,SpinnerView as _0x4fc2c7}from'ckeditor5/src/ui.js';import{IconCheck as _0x5f131d,IconCopy as _0x4a0404}from'ckeditor5/src/icons.js';import{getTranslation as _0x27b01a}from'../../utils/common-translations.js';function _0x2c57(){const _0x1505cd=['isVisible','AI\x20is\x20writing...','ck-ai-form__content-area-wrapper','innerHTML','change:value','mousedown','ck-content','6296tlIPFz','6qkazkA','_copyHTMLToClipboard','28178OutFga','setContent','2709oUHFSN','absolute','textContent','appendLoader','clipboard','position','querySelector','contentFieldView','lastElementChild','removeAllRanges','listenTo','setEndBefore','execute','style','<span>[</span>','div','bind','ck-ai-form__copy-button-wrapper','value','Copy','3878217teOBod','focus','setTemplate','change:isProcessing','text/plain','firstElementChild','scrollTo','bindTemplate','15856IbpdCM','865510KwUCDv','_createLoader','isProcessing','3714204wDFRFj','isEnabled','createElement','ck-ai-form__copy-button','left','ck-ai-form__loader','execCommand','addRange','6776471GwvnBG','class','ck-ai-form__content-area','_createCopyButton','ck-ai-form__content-field','1146hugERc','set','11NrOdnI','remove','copyButtonView','write','locale','appendChild','ck-reset_all-excluded','20AOIbmo','body','\x20ck-ai-form__copy-button--copied','-9999px','icon','render','ClipboardItem','text/html','createRange','<span>]</span>','.ck-ai-form__loader','setStartAfter','ck-hidden','element','copy','getSelection','ck-ai-form__content-area--processing','loaderView','scrollHeight','smooth','wheel','31thTVfX'];_0x2c57=function(){return _0x1505cd;};return _0x2c57();}export class AIFormContentArea extends _0x45fd26{[_0x557370(0xae)];[_0x557370(0xd8)];constructor(_0x412552,_0x308cd3=''){const _0x43b6e3=_0x557370;super(_0x412552),this[_0x43b6e3(0xd5)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x598bec=this[_0x43b6e3(0xc2)];this[_0x43b6e3(0xae)]=new ContentFieldView(_0x412552,_0x308cd3),this[_0x43b6e3(0xd8)]=this[_0x43b6e3(0xd2)](),this[_0x43b6e3(0xbd)]({'tag':_0x43b6e3(0xb6),'attributes':{'class':['ck',_0x43b6e3(0x9d),_0x598bec['if'](_0x43b6e3(0x9b),_0x43b6e3(0xe9),_0x5afb22=>!_0x5afb22)],'tabindex':'-1'},'children':[{'tag':_0x43b6e3(0xb6),'attributes':{'class':['ck',_0x43b6e3(0xd1),_0x598bec['if'](_0x43b6e3(0xc6),_0x43b6e3(0x95))]},'children':[this[_0x43b6e3(0xae)],{'tag':_0x43b6e3(0xb6),'attributes':{'class':['ck',_0x43b6e3(0xb8)]},'children':[this[_0x43b6e3(0xd8)]]}]}]});}[_0x557370(0xe2)](){const _0x42db0b=_0x557370;super[_0x42db0b(0xe2)](),this[_0x42db0b(0xb9)]&&this[_0x42db0b(0xae)][_0x42db0b(0xa6)](this[_0x42db0b(0xb9)]);let _0x47d512=!0x1;this['on'](_0x42db0b(0x9f),(_0x538bf5,_0x1f05da,_0x1904f1)=>{const _0x11c02f=_0x42db0b,_0x3c7020=!this[_0x11c02f(0xae)][_0x11c02f(0xea)][_0x11c02f(0xad)](_0x11c02f(0xe7));this[_0x11c02f(0xae)][_0x11c02f(0xa6)](_0x1904f1),this[_0x11c02f(0xc6)]&&_0x3c7020&&!_0x47d512&&this[_0x11c02f(0xea)][_0x11c02f(0xc1)]({'top':this[_0x11c02f(0xea)][_0x11c02f(0x97)],'behavior':_0x11c02f(0x98)});}),this['on'](_0x42db0b(0xbe),(_0x6b2900,_0x302b55,_0x57591d)=>{const _0x60f2e2=_0x42db0b;_0x47d512=!0x1,_0x57591d?(this[_0x60f2e2(0xb9)]=null,this[_0x60f2e2(0xae)][_0x60f2e2(0xaa)]()):this[_0x60f2e2(0xb9)]||this[_0x60f2e2(0xae)][_0x60f2e2(0xa6)]('');}),this[_0x42db0b(0xb1)](this[_0x42db0b(0xea)],_0x42db0b(0x99),()=>{_0x47d512=!0x0;}),this[_0x42db0b(0xb1)](this[_0x42db0b(0xea)],_0x42db0b(0xa0),()=>{_0x47d512=!0x0;});}[_0x557370(0xbc)](){const _0x5ef9bb=_0x557370;this[_0x5ef9bb(0xea)][_0x5ef9bb(0xbc)]();}[_0x557370(0xd2)](){const _0x43682c=_0x557370,_0x3e83fc=this[_0x43682c(0xda)],_0x4b4391=new _0x50aa2b(this[_0x43682c(0xda)]),_0x17aa73=_0x43682c(0xca);return _0x4b4391[_0x43682c(0xd5)]({'label':_0x27b01a(_0x3e83fc,_0x43682c(0xba)),'icon':_0x4a0404,'class':_0x17aa73,'tooltip':!0x0}),_0x4b4391[_0x43682c(0xb7)](_0x43682c(0x9b))['to'](this,_0x43682c(0xb9),_0x383b44=>!!_0x383b44),_0x4b4391[_0x43682c(0xb7)](_0x43682c(0xc8))['to'](this,_0x43682c(0xc6),_0xaf158c=>!_0xaf158c),_0x4b4391['on'](_0x43682c(0xb3),()=>{const _0x4ae05d=_0x43682c;this[_0x4ae05d(0xa4)](this[_0x4ae05d(0xae)][_0x4ae05d(0xea)]),_0x4b4391[_0x4ae05d(0xe1)]=_0x5f131d,_0x4b4391[_0x4ae05d(0xd0)]=_0x17aa73+_0x4ae05d(0xdf),this[_0x4ae05d(0xbc)](),setTimeout(()=>{const _0x356d03=_0x4ae05d;_0x4b4391[_0x356d03(0xe1)]=_0x4a0404,_0x4b4391[_0x356d03(0xd0)]=_0x17aa73;},0x3e8);}),_0x4b4391;}[_0x557370(0xa4)](_0x2afe8e){const _0x1a933b=_0x557370,{window:_0x46c591,document:_0x4e9975}=_0x5ad8af;if(_0x46c591[_0x1a933b(0xe3)]){const {Blob:_0xc01a1d,ClipboardItem:_0x2eef0d}=_0x46c591,_0x1e6c66=[new _0x2eef0d({'text/html':new _0xc01a1d([_0x2afe8e[_0x1a933b(0x9e)]],{'type':_0x1a933b(0xe4)}),'text/plain':new _0xc01a1d([_0x2afe8e[_0x1a933b(0xa9)]||''],{'type':_0x1a933b(0xbf)})})];navigator[_0x1a933b(0xab)][_0x1a933b(0xd9)](_0x1e6c66);}else{const _0x3c7141=_0x4e9975[_0x1a933b(0xc9)](_0x1a933b(0xb6));_0x3c7141[_0x1a933b(0xb4)][_0x1a933b(0xac)]=_0x1a933b(0xa8),_0x3c7141[_0x1a933b(0xb4)][_0x1a933b(0xcb)]=_0x1a933b(0xe0),_0x3c7141[_0x1a933b(0x9e)]=_0x1a933b(0xb5)+_0x2afe8e[_0x1a933b(0x9e)]+_0x1a933b(0xe6),_0x4e9975[_0x1a933b(0xde)][_0x1a933b(0xdb)](_0x3c7141);const _0x4aa5e8=_0x4e9975[_0x1a933b(0xe5)]();_0x4aa5e8[_0x1a933b(0xe8)](_0x3c7141[_0x1a933b(0xc0)]),_0x4aa5e8[_0x1a933b(0xb2)](_0x3c7141[_0x1a933b(0xaf)]);const _0x39123e=_0x46c591[_0x1a933b(0x94)]();_0x39123e[_0x1a933b(0xb0)](),_0x39123e[_0x1a933b(0xce)](_0x4aa5e8),_0x4e9975[_0x1a933b(0xcd)](_0x1a933b(0x93)),_0x3c7141[_0x1a933b(0xd7)]();}}}function _0x1999(_0x16b3cd,_0x47a2a6){const _0x2c57c1=_0x2c57();return _0x1999=function(_0x1999f2,_0x86b321){_0x1999f2=_0x1999f2-0x93;let _0x3c0e4f=_0x2c57c1[_0x1999f2];return _0x3c0e4f;},_0x1999(_0x16b3cd,_0x47a2a6);}export class ContentFieldView extends _0x45fd26{constructor(_0x1fd219,_0x24ac40=''){const _0x3d5c71=_0x557370;super(_0x1fd219),this[_0x3d5c71(0x96)]=this[_0x3d5c71(0xc5)](),this[_0x3d5c71(0xbd)]({'tag':_0x3d5c71(0xb6),'attributes':{'class':['ck',_0x3d5c71(0xa1),_0x24ac40,_0x3d5c71(0xdc),_0x3d5c71(0xd3)]}});}[_0x557370(0xa6)](_0x48be69){const _0x260a35=_0x557370;this[_0x260a35(0xea)][_0x260a35(0x9e)]=_0x48be69;}[_0x557370(0xaa)](){const _0x2c2190=_0x557370;this[_0x2c2190(0xea)][_0x2c2190(0xdb)](this[_0x2c2190(0x96)][_0x2c2190(0xea)]);}[_0x557370(0xc5)](){const _0x4eb7b9=_0x557370,_0x1209a1=new _0x45fd26(),_0x50d834=this[_0x4eb7b9(0xda)],_0x520ba0=new _0x4fc2c7();return _0x520ba0[_0x4eb7b9(0x9b)]=!0x0,_0x1209a1[_0x4eb7b9(0xbd)]({'tag':_0x4eb7b9(0xb6),'attributes':{'class':['ck',_0x4eb7b9(0xcc)]},'children':[_0x520ba0,{'text':_0x27b01a(_0x50d834,_0x4eb7b9(0x9c))}]}),_0x1209a1[_0x4eb7b9(0xe2)](),_0x1209a1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5e8bc0,_0x142875){const _0x45a302=_0x38a0,_0xe1bab3=_0x5e8bc0();while(!![]){try{const _0x34ea81=parseInt(_0x45a302(0x19e))/0x1+-parseInt(_0x45a302(0x1a3))/0x2+-parseInt(_0x45a302(0x1a8))/0x3+-parseInt(_0x45a302(0x19f))/0x4+-parseInt(_0x45a302(0x1a2))/0x5+parseInt(_0x45a302(0x19b))/0x6*(parseInt(_0x45a302(0x1a4))/0x7)+parseInt(_0x45a302(0x1a6))/0x8;if(_0x34ea81===_0x142875)break;else _0xe1bab3['push'](_0xe1bab3['shift']());}catch(_0x179d92){_0xe1bab3['push'](_0xe1bab3['shift']());}}}(_0x89db,0x9846f));function _0x89db(){const _0x140069=['2351925cVXFLq','2252356BRgRno','942256gmXUdX','content','16520048wLXTmZ','ck-ai-form__error','2780865xKHBWy','setTemplate','36ZiiQXL','set','bindTemplate','981979cMrPGb','2829552kuXVyz','div','text'];_0x89db=function(){return _0x140069;};return _0x89db();}import{IconError as _0x349c8}from'ckeditor5/src/icons.js';import{View as _0x1937b6,IconView as _0x5d43fd}from'ckeditor5/src/ui.js';function _0x38a0(_0x2c4913,_0x1710c0){const _0x89db13=_0x89db();return _0x38a0=function(_0x38a02f,_0x32abac){_0x38a02f=_0x38a02f-0x19a;let _0xc5f8d8=_0x89db13[_0x38a02f];return _0xc5f8d8;},_0x38a0(_0x2c4913,_0x1710c0);}export class AIFormErrorView extends _0x1937b6{constructor(_0x2cf24f,_0x4f8c12=''){const _0x5e8bc8=_0x38a0;super(_0x2cf24f);const _0x155732=new _0x5d43fd(),_0x4e5b5c=this[_0x5e8bc8(0x19d)];this[_0x5e8bc8(0x19c)](_0x5e8bc8(0x1a1),_0x4f8c12),_0x155732[_0x5e8bc8(0x1a5)]=_0x349c8,this[_0x5e8bc8(0x19a)]({'tag':_0x5e8bc8(0x1a0),'attributes':{'class':['ck',_0x5e8bc8(0x1a7)]},'children':[_0x155732,{'text':_0x4e5b5c['to'](_0x5e8bc8(0x1a1))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4643f3=_0x5a36;function _0x3599(){const _0x2d15fb=['3409hDPIKZ','target','focus','excludeScrollbarsAndBorders','6743750MGbyrR','isVisible','ck-ai-form__toggle-history','8590116ldOPsd','execute','right','4784FIsynS','enter','10472Gildnv','window','filteredView','isOn','History','412Mvvhbt','set','isEnabled','81KsvCQa','8042kHKvYN','render','submit','minRows','element','_createShowHistoryButton','12VkNGKE','isEmpty','_createSubmitButton','372fVMykP','34350789ZdvxIx','fire','locale','ck-ai-form__submit','focusLast','children','showHistoryButtonView','width','resultsView','requestAnimationFrame','value','update','left','Submit','1481530CBbWCM','queryView','add','keystrokes','fieldView','bind','focusCycler','submitButtonView','fieldWrapperChildren','style','rtl','uiLanguageDirection','maxRows','focusableChildren','focusFirst'];_0x3599=function(){return _0x2d15fb;};return _0x3599();}function _0x5a36(_0x50785b,_0x31edd0){const _0x3599df=_0x3599();return _0x5a36=function(_0x5a3688,_0x11fa32){_0x5a3688=_0x5a3688-0x1ae;let _0x30fa00=_0x3599df[_0x5a3688];return _0x30fa00;},_0x5a36(_0x50785b,_0x31edd0);}(function(_0x13dd57,_0x3acb8d){const _0x38b490=_0x5a36,_0x457b07=_0x13dd57();while(!![]){try{const _0x4140b1=parseInt(_0x38b490(0x1da))/0x1*(-parseInt(_0x38b490(0x1de))/0x2)+-parseInt(_0x38b490(0x1e7))/0x3*(-parseInt(_0x38b490(0x1d3))/0x4)+parseInt(_0x38b490(0x1cd))/0x5+-parseInt(_0x38b490(0x1d0))/0x6+parseInt(_0x38b490(0x1c9))/0x7*(parseInt(_0x38b490(0x1d5))/0x8)+-parseInt(_0x38b490(0x1dd))/0x9*(parseInt(_0x38b490(0x1ba))/0xa)+parseInt(_0x38b490(0x1e8))/0xb*(parseInt(_0x38b490(0x1e4))/0xc);if(_0x4140b1===_0x3acb8d)break;else _0x457b07['push'](_0x457b07['shift']());}catch(_0x5592af){_0x457b07['push'](_0x457b07['shift']());}}}(_0x3599,0xcc025));import{Rect as _0x3f663c,global as _0x288755,isVisible as _0x65426d}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x594ae5,IconSubmit as _0x509c12}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x5a3bec,ButtonView as _0x4cc212}from'ckeditor5/src/ui.js';import{getTranslation as _0x441f34}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x5a3bec{[_0x4643f3(0x1c1)];[_0x4643f3(0x1b2)];constructor(_0x4b647b,_0x3fc556){const _0x251efd=_0x4643f3;super(_0x4b647b,_0x3fc556),this[_0x251efd(0x1bb)][_0x251efd(0x1be)][_0x251efd(0x1e1)]=0x1,this[_0x251efd(0x1bb)][_0x251efd(0x1be)][_0x251efd(0x1c6)]=0x3,this[_0x251efd(0x1c1)]=this[_0x251efd(0x1e6)](),this[_0x251efd(0x1b2)]=this[_0x251efd(0x1e3)](),this[_0x251efd(0x1c7)][_0x251efd(0x1bc)](this[_0x251efd(0x1b2)],0x1),this[_0x251efd(0x1c7)][_0x251efd(0x1bc)](this[_0x251efd(0x1c1)]);}[_0x4643f3(0x1df)](){const _0x317ca3=_0x4643f3;super[_0x317ca3(0x1df)](),this[_0x317ca3(0x1bb)][_0x317ca3(0x1c2)][_0x317ca3(0x1bc)](this[_0x317ca3(0x1b2)]),this[_0x317ca3(0x1b1)][_0x317ca3(0x1bc)](this[_0x317ca3(0x1c1)]),this[_0x317ca3(0x1bd)][_0x317ca3(0x1db)](_0x317ca3(0x1d4),(_0x20ef8b,_0x1de48e)=>{const _0x360006=_0x317ca3;_0x20ef8b[_0x360006(0x1ca)]==this[_0x360006(0x1bb)][_0x360006(0x1be)][_0x360006(0x1e2)]&&(this[_0x360006(0x1e0)](),_0x1de48e());});}[_0x4643f3(0x1e6)](){const _0x293da7=_0x4643f3,_0xdf5288=new _0x4cc212(this[_0x293da7(0x1ae)]),_0x414cac=this[_0x293da7(0x1ae)];return _0xdf5288[_0x293da7(0x1db)]({'icon':_0x509c12,'label':_0x441f34(_0x414cac,_0x293da7(0x1b9)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x293da7(0x1af)}),_0xdf5288['on'](_0x293da7(0x1d1),()=>{const _0x4cba03=_0x293da7;this[_0x4cba03(0x1e0)]();}),_0xdf5288[_0x293da7(0x1bf)](_0x293da7(0x1dc))['to'](this[_0x293da7(0x1bb)][_0x293da7(0x1be)],_0x293da7(0x1e5),this,_0x293da7(0x1dc),(_0x5084a6,_0x5576a4)=>!_0x5084a6&&_0x5576a4),_0xdf5288;}[_0x4643f3(0x1e3)](){const _0x39dc54=_0x4643f3,_0x3aacf4=new _0x4cc212(this[_0x39dc54(0x1ae)]),_0x49f72b=this[_0x39dc54(0x1b4)],_0x3b22d9=this[_0x39dc54(0x1ae)];_0x3aacf4[_0x39dc54(0x1db)]({'label':_0x441f34(_0x3b22d9,_0x39dc54(0x1d9)),'withText':!0x1,'icon':_0x594ae5,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x39dc54(0x1cf)}),_0x3aacf4[_0x39dc54(0x1bf)](_0x39dc54(0x1d8))['to'](_0x49f72b,_0x39dc54(0x1ce)),_0x3aacf4[_0x39dc54(0x1bf)](_0x39dc54(0x1dc))['to'](this,_0x39dc54(0x1dc)),_0x3aacf4['on'](_0x39dc54(0x1d1),()=>{const _0x7c4b36=_0x39dc54;_0x49f72b[_0x7c4b36(0x1ce)]=!_0x49f72b[_0x7c4b36(0x1ce)],_0x49f72b[_0x7c4b36(0x1ce)]?this[_0x7c4b36(0x1d7)][_0x7c4b36(0x1cb)]():this[_0x7c4b36(0x1cb)]();});const _0x549af7=()=>{const _0x292e39=_0x39dc54;_0x288755[_0x292e39(0x1d6)][_0x292e39(0x1b5)](()=>{const _0x3cd778=_0x292e39;if(_0x65426d(this[_0x3cd778(0x1e2)])){const _0xdbe8e8=new _0x3f663c(this[_0x3cd778(0x1bb)][_0x3cd778(0x1be)][_0x3cd778(0x1e2)]),_0x53a8f5=_0xdbe8e8[_0x3cd778(0x1b3)],_0x1d5abe=_0x3cd778(0x1c4)===_0x3b22d9[_0x3cd778(0x1c5)]?_0x3cd778(0x1b8):_0x3cd778(0x1d2);_0xdbe8e8[_0x3cd778(0x1cc)](),_0x3aacf4[_0x3cd778(0x1e2)][_0x3cd778(0x1c3)][_0x1d5abe]=_0x53a8f5-_0xdbe8e8[_0x3cd778(0x1b3)]+0x1+'px';}});};return this[_0x39dc54(0x1bb)][_0x39dc54(0x1be)]['on'](_0x39dc54(0x1b7),_0x549af7),this['on'](_0x39dc54(0x1df),_0x549af7),_0x3aacf4;}[_0x4643f3(0x1e0)](){const _0xa861e9=_0x4643f3,_0x2bf0a6=this[_0xa861e9(0x1bb)][_0xa861e9(0x1be)][_0xa861e9(0x1e2)][_0xa861e9(0x1b6)];this[_0xa861e9(0x1e9)](_0xa861e9(0x1e0),_0x2bf0a6);}[_0x4643f3(0x1cb)](_0x18176b){const _0x165911=_0x4643f3;-0x1===_0x18176b?this[_0x165911(0x1c0)][_0x165911(0x1b0)]():this[_0x165911(0x1c0)][_0x165911(0x1c8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x103923=_0x1843;(function(_0x44ab81,_0x1f30b7){const _0x60862b=_0x1843,_0x5d6045=_0x44ab81();while(!![]){try{const _0x5dd0fb=-parseInt(_0x60862b(0xe5))/0x1*(parseInt(_0x60862b(0xcd))/0x2)+parseInt(_0x60862b(0xd5))/0x3*(parseInt(_0x60862b(0xca))/0x4)+parseInt(_0x60862b(0xc6))/0x5+parseInt(_0x60862b(0xc7))/0x6*(-parseInt(_0x60862b(0xce))/0x7)+-parseInt(_0x60862b(0xc9))/0x8*(-parseInt(_0x60862b(0xd7))/0x9)+parseInt(_0x60862b(0xda))/0xa*(-parseInt(_0x60862b(0xd3))/0xb)+parseInt(_0x60862b(0xc3))/0xc*(parseInt(_0x60862b(0xc4))/0xd);if(_0x5dd0fb===_0x1f30b7)break;else _0x5d6045['push'](_0x5d6045['shift']());}catch(_0x51f09a){_0x5d6045['push'](_0x5d6045['shift']());}}}(_0x4d47,0xc3484));import{ToolbarView as _0x2d56b9,ButtonView as _0x28f59f}from'ckeditor5/src/ui.js';function _0x1843(_0x229010,_0x1504d0){const _0x4d470d=_0x4d47();return _0x1843=function(_0x184318,_0x45952a){_0x184318=_0x184318-0xc3;let _0x4b79d9=_0x4d470d[_0x184318];return _0x4b79d9;},_0x1843(_0x229010,_0x1504d0);}import{getTranslation as _0x15d5bd}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x103923(0xd4),'INSERT':_0x103923(0xdb)};export class AIFormToolbarView extends _0x2d56b9{constructor(_0x37e5fd){const _0xe38ae1=_0x103923;super(_0x37e5fd),this[_0xe38ae1(0xcc)](_0xe38ae1(0xe3),!0x1),this[_0xe38ae1(0xcc)](_0xe38ae1(0xe6),AIFormToolbarViewMainActionLabel[_0xe38ae1(0xcf)]),this[_0xe38ae1(0xe9)]=this[_0xe38ae1(0xdf)]('',_0xe38ae1(0xd6)),this[_0xe38ae1(0xe9)][_0xe38ae1(0xcb)](_0xe38ae1(0xd2))['to'](this,_0xe38ae1(0xe6),_0x1893ca=>_0x15d5bd(_0x37e5fd,_0xe38ae1(0xde)+_0x1893ca[_0xe38ae1(0xd1)]()+_0xe38ae1(0xd0))),this[_0xe38ae1(0xd9)]=this[_0xe38ae1(0xdf)](_0x15d5bd(_0x37e5fd,_0xe38ae1(0xd8))),this[_0xe38ae1(0xe4)]=this[_0xe38ae1(0xdf)](_0x15d5bd(_0x37e5fd,_0xe38ae1(0xc5))),this[_0xe38ae1(0xea)]=this[_0xe38ae1(0xdf)](_0x15d5bd(_0x37e5fd,_0xe38ae1(0xe0)));const _0x40539f=this[_0xe38ae1(0xdc)];this[_0xe38ae1(0xe2)]({'attributes':{'class':[_0xe38ae1(0xe8),_0x40539f['if'](_0xe38ae1(0xe3),_0xe38ae1(0xc8),_0x74a27e=>!_0x74a27e)]}}),this[_0xe38ae1(0xe1)][_0xe38ae1(0xe7)]([this[_0xe38ae1(0xe9)],this[_0xe38ae1(0xd9)],this[_0xe38ae1(0xe4)],this[_0xe38ae1(0xea)]]);}[_0x103923(0xdf)](_0x20fb08,_0x3893a1){const _0x3a8e44=_0x103923,_0x250abb=new _0x28f59f(this[_0x3a8e44(0xdd)]);return _0x250abb[_0x3a8e44(0xcc)]({'label':_0x20fb08,'class':_0x3893a1||'','isVisible':!0x0,'withText':!0x0}),_0x250abb;}}function _0x4d47(){const _0x1ea35d=['8KUwcXg','247272hEbroW','bind','set','2DqxWfj','2777341XSHVxz','REPLACE','_CONTENT','toUpperCase','label','85679yQJYHo','replace','75OzDMTz','ck-button-action','791757CWolxV','Insert\x20below','insertButton','10qkxdQJ','insert','bindTemplate','locale','AI_','_createButton','Stop','items','extendTemplate','isVisible','tryAgainButton','417385oiPSpy','mainAction','addMany','ck-ai-form__toolbar','replaceButton','stopButton','24VKzApB','1534325AbFYjz','Try\x20again','4713145YojmqN','24AxhRGE','ck-hidden'];_0x4d47=function(){return _0x1ea35d;};return _0x4d47();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53746d=_0x2078;(function(_0x536bff,_0x9c17c3){const _0x43fbd0=_0x2078,_0x13e18e=_0x536bff();while(!![]){try{const _0xb5eec2=parseInt(_0x43fbd0(0xcc))/0x1*(-parseInt(_0x43fbd0(0x97))/0x2)+parseInt(_0x43fbd0(0x90))/0x3*(-parseInt(_0x43fbd0(0xc1))/0x4)+-parseInt(_0x43fbd0(0x8d))/0x5*(-parseInt(_0x43fbd0(0xab))/0x6)+-parseInt(_0x43fbd0(0x94))/0x7+-parseInt(_0x43fbd0(0xd2))/0x8*(-parseInt(_0x43fbd0(0x8f))/0x9)+parseInt(_0x43fbd0(0x99))/0xa+-parseInt(_0x43fbd0(0x92))/0xb;if(_0xb5eec2===_0x9c17c3)break;else _0x13e18e['push'](_0x13e18e['shift']());}catch(_0x2943a1){_0x13e18e['push'](_0x13e18e['shift']());}}}(_0x2887,0xc9958));import{FocusTracker as _0xf433b,KeystrokeHandler as _0x5310de}from'ckeditor5/src/utils.js';import{View as _0x49473d,FocusCycler as _0x5d936b,createLabeledTextarea as _0x11cce5}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x2caeea,AIFormToolbarViewMainActionLabel as _0x48766f}from'./aiformtoolbarview.js';function _0x2078(_0xbf85f0,_0x2276f0){const _0x2887e3=_0x2887();return _0x2078=function(_0x207800,_0x350a83){_0x207800=_0x207800-0x88;let _0x5f5a47=_0x2887e3[_0x207800];return _0x5f5a47;},_0x2078(_0xbf85f0,_0x2276f0);}import{AIFormContentArea as _0x317bb4}from'./aiformcontentarea.js';import{AIFormErrorView as _0x58b8e5}from'./aiformerrorview.js';import{AIFormPromptView as _0x1568ca}from'./aiformpromptview.js';import{AIHistoryListView as _0x545df7}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x350493}from'./aihistorylistitemview.js';import{PromptHistory as _0x190768}from'./prompthistory.js';import{getTranslation as _0x25c31d}from'../../utils/common-translations.js';function _0x2887(){const _0x4f89df=['focus','createCollection','locale','delegate','startProcessing','copyButtonView','div','label','bindTo','submit','focusTracker','replaceContent','isEnabled','prompt','focusFirst','focusCycler','insertButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','22408USvgLt','value','tryAgainButton','_createHistoryView','submitPrompt','ck-ai-form-content','fire','finishProcessing','clearHistory','isVisible','setTemplate','16cnBBRc','element','toolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','_focusables','REPLACE','1127944cnvyUZ','set','Empty\x20history','mainAction','text','clear','_createPromptView','bindTemplate','shift\x20+\x20tab','listenTo','replaceButton','add','tab','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','handleError','fieldView','execute','4885EzQBLK','AI_ERROR_FAILED','81HabZLs','663WCcLCx','isError','10363870HIFGzw','_createToolbar','1020411yqUtyb','stopButton','promptView','35858KxmBoM','ck-ai-form','9014540ebbedt','keystrokes','contentArea','high','queryView','search','reset','stopProcessing','render','_promptHistory','tryAgainEvent','isProcessing','errorView','ck-hidden','focusLast','items','historyGroupView','bind','7788LVMoBy','insertContentBelow','trim','chain'];_0x2887=function(){return _0x4f89df;};return _0x2887();}import{escape as _0x5521a8}from'es-toolkit/compat';export class AIFormView extends _0x49473d{[_0x53746d(0xb9)];[_0x53746d(0x9a)];[_0x53746d(0x9b)];[_0x53746d(0xce)];[_0x53746d(0x96)];[_0x53746d(0xa5)];[_0x53746d(0xd0)];[_0x53746d(0xbe)];[_0x53746d(0xa2)];constructor(_0xd5e7a0,_0x27fb26,_0x2e81f1=''){const _0x1d32a8=_0x53746d;super(_0xd5e7a0),this[_0x1d32a8(0xd3)](_0x1d32a8(0xbb),!0x0),this[_0x1d32a8(0xd3)](_0x1d32a8(0xa4),!0x1),this[_0x1d32a8(0xd3)](_0x1d32a8(0xbc),''),this[_0x1d32a8(0xd3)](_0x1d32a8(0xc2),''),this[_0x1d32a8(0xd3)](_0x1d32a8(0x91),!0x1),this[_0x1d32a8(0xd3)](_0x1d32a8(0xd5),_0x48766f[_0x1d32a8(0xd1)]),this[_0x1d32a8(0xa2)]=new _0x190768(),this[_0x1d32a8(0xa5)]=new _0x58b8e5(_0xd5e7a0),this[_0x1d32a8(0x9b)]=new _0x317bb4(_0xd5e7a0,_0x2e81f1),this[_0x1d32a8(0x9b)][_0x1d32a8(0xaa)](_0x1d32a8(0xa4))['to'](this),this[_0x1d32a8(0x9b)][_0x1d32a8(0xaa)](_0x1d32a8(0xc2))['to'](this),this[_0x1d32a8(0xce)]=this[_0x1d32a8(0x93)](),this[_0x1d32a8(0xce)][_0x1d32a8(0xaa)](_0x1d32a8(0xd5))['to'](this),this[_0x1d32a8(0x96)]=this[_0x1d32a8(0xd8)](),this[_0x1d32a8(0xb9)]=new _0xf433b(),this[_0x1d32a8(0x9a)]=new _0x5310de(),this[_0x1d32a8(0xd0)]=this[_0x1d32a8(0xb0)]([this[_0x1d32a8(0x9b)],this[_0x1d32a8(0x9b)][_0x1d32a8(0xb4)],this[_0x1d32a8(0xce)],this[_0x1d32a8(0x96)]]),this[_0x1d32a8(0xbe)]=new _0x5d936b({'focusables':this[_0x1d32a8(0xd0)],'focusTracker':this[_0x1d32a8(0xb9)],'keystrokeHandler':this[_0x1d32a8(0x9a)],'actions':{'focusPrevious':_0x1d32a8(0xda),'focusNext':_0x1d32a8(0x88)}}),this[_0x1d32a8(0xbe)][_0x1d32a8(0xae)](this[_0x1d32a8(0x96)][_0x1d32a8(0xbe)]),this[_0x1d32a8(0x96)][_0x1d32a8(0x9d)][_0x1d32a8(0x8b)][_0x1d32a8(0xaa)](_0x1d32a8(0xc2))['to'](this,_0x1d32a8(0xbc));const _0xdb2508=this[_0x1d32a8(0xd9)];this[_0x1d32a8(0xcb)]({'tag':_0x1d32a8(0xb5),'attributes':{'class':['ck',_0x1d32a8(0x98),_0x27fb26],'tabindex':'-1'},'children':[{'tag':_0x1d32a8(0xb5),'attributes':{'class':['ck',_0x1d32a8(0xc6)]},'children':[{'tag':_0x1d32a8(0xb5),'attributes':{'class':[_0xdb2508['if'](_0x1d32a8(0x91),_0x1d32a8(0xa6),_0x2af27c=>!_0x2af27c)]},'children':[this[_0x1d32a8(0xa5)]]},this[_0x1d32a8(0x9b)],this[_0x1d32a8(0xce)],this[_0x1d32a8(0x96)]]}]});}[_0x53746d(0xa1)](){const _0x37a698=_0x53746d;super[_0x37a698(0xa1)](),this[_0x37a698(0xb9)][_0x37a698(0xdd)](this[_0x37a698(0x9b)][_0x37a698(0xcd)]),this[_0x37a698(0xb9)][_0x37a698(0xdd)](this[_0x37a698(0x9b)][_0x37a698(0xb4)][_0x37a698(0xcd)]),this[_0x37a698(0xb9)][_0x37a698(0xdd)](this[_0x37a698(0xce)][_0x37a698(0xcd)]),this[_0x37a698(0xb9)][_0x37a698(0xdd)](this[_0x37a698(0x96)][_0x37a698(0xcd)]),this[_0x37a698(0x9a)][_0x37a698(0xdb)](this[_0x37a698(0xcd)]);}[_0x53746d(0xaf)](_0x424be8=0x1){const _0x5b28ca=_0x53746d;-0x1===_0x424be8?this[_0x5b28ca(0xbe)][_0x5b28ca(0xa7)]():this[_0x5b28ca(0xbe)][_0x5b28ca(0xbd)]();}[_0x53746d(0x9f)](){const _0x218afe=_0x53746d;this[_0x218afe(0xbc)]='',this[_0x218afe(0xc2)]='',this[_0x218afe(0x91)]=!0x1,this[_0x218afe(0x96)][_0x218afe(0x9f)](),this[_0x218afe(0x9b)][_0x218afe(0xca)]=!0x1,this[_0x218afe(0xce)][_0x218afe(0xca)]=!0x1;}[_0x53746d(0xd8)](){const _0x42af20=_0x53746d,_0x2de6e1=this[_0x42af20(0xb1)],_0x11eaf5=new _0x1568ca(_0x2de6e1,{'queryView':{'label':_0x25c31d(_0x2de6e1,_0x42af20(0xcf)),'creator':_0x11cce5,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x25c31d(_0x2de6e1,_0x42af20(0xd4)),'secondary':_0x25c31d(_0x2de6e1,_0x42af20(0x89))}}},'filteredView':this[_0x42af20(0xc4)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x11eaf5[_0x42af20(0xaa)](_0x42af20(0xbb))['to'](this,_0x42af20(0xbb),this,_0x42af20(0xa4),(_0x5f19c4,_0x7da614)=>_0x5f19c4&&!_0x7da614),this[_0x42af20(0xdb)](_0x11eaf5,_0x42af20(0xb8),(_0x3bc300,_0x56df0b)=>{const _0x1c0ef3=_0x42af20;this[_0x1c0ef3(0xbc)]=_0x56df0b;const _0x4631fa=_0x5521a8(_0x56df0b);this[_0x1c0ef3(0xc7)](_0x1c0ef3(0xc5),_0x4631fa),_0x56df0b[_0x1c0ef3(0xad)]()&&this[_0x1c0ef3(0xa2)][_0x1c0ef3(0xdd)]({'prompt':_0x4631fa},0x0);},{'priority':_0x42af20(0x9c)}),_0x11eaf5;}[_0x53746d(0xc4)](){const _0x3d505e=_0x53746d,_0xb78713=new _0x545df7(this[_0x3d505e(0xb1)]);return _0xb78713[_0x3d505e(0xa9)][_0x3d505e(0xa8)][_0x3d505e(0xb7)](this[_0x3d505e(0xa2)])['as'](_0x350493),_0xb78713['on'](_0x3d505e(0xc9),()=>{const _0x3f34fd=_0x3d505e;this[_0x3f34fd(0xa2)][_0x3f34fd(0xd7)](),this[_0x3f34fd(0x96)][_0x3f34fd(0x9e)](''),this[_0x3f34fd(0x96)][_0x3f34fd(0xaf)]();}),_0xb78713;}[_0x53746d(0x93)](){const _0x3c4657=_0x53746d,_0xd6282=new _0x2caeea(this[_0x3c4657(0xb1)]);return _0xd6282[_0x3c4657(0xdc)][_0x3c4657(0xaa)](_0x3c4657(0xbb))['to'](this,_0x3c4657(0xbb),this,_0x3c4657(0xa4),this,_0x3c4657(0xc2),(_0x33b313,_0x1034f0,_0x21bf3e)=>_0x33b313&&!_0x1034f0&&!!_0x21bf3e),_0xd6282[_0x3c4657(0xdc)][_0x3c4657(0xb2)](_0x3c4657(0x8c))['to'](this,_0x3c4657(0xba)),_0xd6282[_0x3c4657(0xbf)][_0x3c4657(0xaa)](_0x3c4657(0xbb))['to'](this,_0x3c4657(0xbb),this,_0x3c4657(0xa4),this,_0x3c4657(0xc2),(_0x27a567,_0x39d84f,_0x307a32)=>_0x27a567&&!_0x39d84f&&!!_0x307a32),_0xd6282[_0x3c4657(0xbf)][_0x3c4657(0xb2)](_0x3c4657(0x8c))['to'](this,_0x3c4657(0xac)),_0xd6282[_0x3c4657(0xc3)][_0x3c4657(0xaa)](_0x3c4657(0xbb))['to'](this,_0x3c4657(0xbb),this,_0x3c4657(0xa4),(_0x59370d,_0x23183f)=>_0x59370d&&!_0x23183f),_0xd6282[_0x3c4657(0xc3)][_0x3c4657(0xb2)](_0x3c4657(0x8c))['to'](this,_0x3c4657(0xa3)),_0xd6282[_0x3c4657(0x95)][_0x3c4657(0xaa)](_0x3c4657(0xbb))['to'](this,_0x3c4657(0xa4)),_0xd6282[_0x3c4657(0x95)][_0x3c4657(0xb2)](_0x3c4657(0x8c))['to'](this,_0x3c4657(0xa0)),_0xd6282;}[_0x53746d(0xb3)](){const _0x24e46a=_0x53746d;this[_0x24e46a(0xc2)]='',this[_0x24e46a(0x91)]=!0x1,this[_0x24e46a(0xa4)]=!0x0,this[_0x24e46a(0x9b)][_0x24e46a(0xca)]=!0x0,this[_0x24e46a(0xce)][_0x24e46a(0xca)]=!0x0,this[_0x24e46a(0x9b)][_0x24e46a(0xaf)]();}[_0x53746d(0xc8)](){const _0x76854a=_0x53746d,_0x1ee5fb=this[_0x76854a(0xb1)];this[_0x76854a(0xa4)]=!0x1,this[_0x76854a(0xbc)]='',this[_0x76854a(0x96)][_0x76854a(0x9f)](),this[_0x76854a(0xc2)]&&(this[_0x76854a(0x96)][_0x76854a(0x9d)][_0x76854a(0xb6)]=_0x25c31d(_0x1ee5fb,_0x76854a(0xc0)));}[_0x53746d(0x8a)](_0x4af579){const _0x1933bf=_0x53746d,_0x429617=this[_0x1933bf(0xb1)];this[_0x1933bf(0xc8)](),this[_0x1933bf(0x91)]=!0x0,this[_0x1933bf(0xa5)][_0x1933bf(0xd6)]=_0x4af579||_0x25c31d(_0x429617,_0x1933bf(0x8e)),this[_0x1933bf(0xc2)]||(this[_0x1933bf(0x9b)][_0x1933bf(0xca)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xd87c16,_0x972a08){const _0x3b8be3=_0x48ae,_0x6ad1a5=_0xd87c16();while(!![]){try{const _0x5a62cb=parseInt(_0x3b8be3(0xa7))/0x1+-parseInt(_0x3b8be3(0xab))/0x2+-parseInt(_0x3b8be3(0x9e))/0x3*(parseInt(_0x3b8be3(0xa9))/0x4)+parseInt(_0x3b8be3(0x9f))/0x5+parseInt(_0x3b8be3(0xa2))/0x6*(-parseInt(_0x3b8be3(0xac))/0x7)+parseInt(_0x3b8be3(0xaa))/0x8+parseInt(_0x3b8be3(0xa4))/0x9;if(_0x5a62cb===_0x972a08)break;else _0x6ad1a5['push'](_0x6ad1a5['shift']());}catch(_0x1c7d6b){_0x6ad1a5['push'](_0x6ad1a5['shift']());}}}(_0xffe0,0x41e0b));import{ListItemView as _0x57c692,ButtonView as _0x14dcd6,ButtonLabelView as _0x4dc6ad}from'ckeditor5/src/ui.js';function _0xffe0(){const _0xcd6327=['set','locale','129228zJGFqV','prompt','16AEclUS','1345592LVKQDM','687118xTgaIg','35NBVtHF','add','196467MCMCkI','2083245WqQWdH','children','execute','144702mUhpFa','fire','2536731vrQMYt'];_0xffe0=function(){return _0xcd6327;};return _0xffe0();}import{unescape as _0x35d4e4}from'es-toolkit/compat';function _0x48ae(_0x2b5990,_0x3e9a73){const _0xffe06a=_0xffe0();return _0x48ae=function(_0x48ae9f,_0x32ed1b){_0x48ae9f=_0x48ae9f-0x9e;let _0x39a181=_0xffe06a[_0x48ae9f];return _0x39a181;},_0x48ae(_0x2b5990,_0x3e9a73);}export class AIHistoryListItemView extends _0x57c692{constructor(_0x263fc3){const _0x3bb584=_0x48ae;super();const _0x5336c3=new _0x4dc6ad(),_0x525d85=new _0x14dcd6(this[_0x3bb584(0xa6)],_0x5336c3);this[_0x3bb584(0xa0)][_0x3bb584(0xad)](_0x525d85),_0x525d85[_0x3bb584(0xa5)]({'label':_0x263fc3[_0x3bb584(0xa8)],'withText':!0x0}),_0x525d85['on'](_0x3bb584(0xa1),()=>{const _0x3638ed=_0x3bb584;this[_0x3638ed(0xa3)](_0x3638ed(0xa1),{'value':_0x35d4e4(_0x263fc3[_0x3638ed(0xa8)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b0f5b=_0x10af;(function(_0x2d8274,_0x105f10){const _0x5a3a9d=_0x10af,_0x20b110=_0x2d8274();while(!![]){try{const _0x37de35=parseInt(_0x5a3a9d(0xcc))/0x1*(-parseInt(_0x5a3a9d(0xc2))/0x2)+-parseInt(_0x5a3a9d(0xc1))/0x3+-parseInt(_0x5a3a9d(0xd2))/0x4*(parseInt(_0x5a3a9d(0xcd))/0x5)+parseInt(_0x5a3a9d(0xd5))/0x6+parseInt(_0x5a3a9d(0xd7))/0x7*(parseInt(_0x5a3a9d(0xce))/0x8)+parseInt(_0x5a3a9d(0xcb))/0x9*(parseInt(_0x5a3a9d(0xc7))/0xa)+parseInt(_0x5a3a9d(0xc9))/0xb;if(_0x37de35===_0x105f10)break;else _0x20b110['push'](_0x20b110['shift']());}catch(_0x4a684c){_0x20b110['push'](_0x20b110['shift']());}}}(_0x50bd,0xe871e));function _0x50bd(){const _0x3475bb=['label','4KtKNtn','_createClearHistoryButton','historyGroupView','9233700ntJHep','length','7WITuVI','clearHistoryButton','add','locale','clearHistory','Clear','4533684kmMyiA','2vubQYY','execute','delegate','set','Prompt\x20history','9838030ZyKquc','filter','104742vKsOuy','fire','9NBWGsn','508797RlQQjG','742475rARMXx','4706712ptaEtb','items','children'];_0x50bd=function(){return _0x3475bb;};return _0x50bd();}function _0x10af(_0x57dfdc,_0x226527){const _0x50bd38=_0x50bd();return _0x10af=function(_0x10af7c,_0x784d28){_0x10af7c=_0x10af7c-0xbf;let _0x1c0186=_0x50bd38[_0x10af7c];return _0x1c0186;},_0x10af(_0x57dfdc,_0x226527);}import{ListView as _0xcb55b8,ListItemGroupView as _0x16c463,ButtonView as _0x58cda5}from'ckeditor5/src/ui.js';import{getTranslation as _0xffbb2a}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xcb55b8{[_0x2b0f5b(0xd4)];[_0x2b0f5b(0xd8)];constructor(_0x4c5898){const _0x1aafe9=_0x2b0f5b;super(_0x4c5898),this[_0x1aafe9(0xd8)]=this[_0x1aafe9(0xd3)](),this[_0x1aafe9(0xd4)]=new _0x16c463(),this[_0x1aafe9(0xd4)][_0x1aafe9(0xd0)][_0x1aafe9(0xd9)](this[_0x1aafe9(0xd8)],0x1),this[_0x1aafe9(0xd4)][_0x1aafe9(0xd1)]=_0xffbb2a(_0x4c5898,_0x1aafe9(0xc6)),this[_0x1aafe9(0xd4)][_0x1aafe9(0xcf)][_0x1aafe9(0xc4)](_0x1aafe9(0xc3))['to'](this),this[_0x1aafe9(0xcf)][_0x1aafe9(0xd9)](this[_0x1aafe9(0xd4)]);}[_0x2b0f5b(0xc8)](){const _0x4f75c7=_0x2b0f5b;let _0x2fe71b=0x0;for(const _0x19505c of this[_0x4f75c7(0xcf)])_0x2fe71b+=_0x19505c[_0x4f75c7(0xcf)][_0x4f75c7(0xd6)];return{'resultsCount':_0x2fe71b,'totalItemsCount':_0x2fe71b};}[_0x2b0f5b(0xd3)](){const _0x2540ce=_0x2b0f5b,_0x4222ff=this[_0x2540ce(0xda)],_0x5097a9=new _0x58cda5(this[_0x2540ce(0xda)]);return _0x5097a9[_0x2540ce(0xc5)]({'label':'('+_0xffbb2a(_0x4222ff,_0x2540ce(0xc0))+')','withText':!0x0}),_0x5097a9['on'](_0x2540ce(0xc3),()=>this[_0x2540ce(0xca)](_0x2540ce(0xbf))),_0x5097a9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3f3e4e=_0x140d;function _0x140d(_0x35e719,_0x19d888){const _0x494d08=_0x494d();return _0x140d=function(_0x140dd6,_0x31e446){_0x140dd6=_0x140dd6-0x82;let _0x270527=_0x494d08[_0x140dd6];return _0x270527;},_0x140d(_0x35e719,_0x19d888);}function _0x494d(){const _0x2d2779=['setItem','7116190MHEiWB','length','146505sHFqGe','4088325ZUwARG','addMany','326282hAsJUb','68nviyfQ','_loadFromSessionStorage','map','parse','last','57174EGwmIw','stringify','217xyrpEB','add','trim','toLowerCase','48aZuSuP','182916mHlxHv','getItem','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','remove','prompt','1760746IzWgUg'];_0x494d=function(){return _0x2d2779;};return _0x494d();}(function(_0x4045d0,_0x34bd17){const _0xb7cba5=_0x140d,_0x5d3385=_0x4045d0();while(!![]){try{const _0xcd4a1c=parseInt(_0xb7cba5(0x96))/0x1+parseInt(_0xb7cba5(0x8f))/0x2+-parseInt(_0xb7cba5(0x93))/0x3*(parseInt(_0xb7cba5(0x97))/0x4)+-parseInt(_0xb7cba5(0x94))/0x5+-parseInt(_0xb7cba5(0x82))/0x6*(-parseInt(_0xb7cba5(0x84))/0x7)+-parseInt(_0xb7cba5(0x88))/0x8*(-parseInt(_0xb7cba5(0x89))/0x9)+parseInt(_0xb7cba5(0x91))/0xa;if(_0xcd4a1c===_0x34bd17)break;else _0x5d3385['push'](_0x5d3385['shift']());}catch(_0x1e5847){_0x5d3385['push'](_0x5d3385['shift']());}}}(_0x494d,0xa7e8d));import{Collection as _0xf5d4a0}from'ckeditor5/src/utils.js';const So=_0x3f3e4e(0x8c);export class PromptHistory extends _0xf5d4a0{constructor(){const _0x107ac3=_0x3f3e4e;super(),this[_0x107ac3(0x98)](),this['on'](_0x107ac3(0x85),(_0x2ff113,_0x4e5e9e)=>{const _0x1dc5ce=_0x107ac3,_0x2d8d74=go(_0x4e5e9e[_0x1dc5ce(0x8e)]);for(const _0x284be1 of this)if(_0x284be1!=_0x4e5e9e&&go(_0x284be1[_0x1dc5ce(0x8e)])===_0x2d8d74){this[_0x1dc5ce(0x8d)](_0x284be1);break;}this[_0x1dc5ce(0x92)]>0x14&&this[_0x1dc5ce(0x8d)](this[_0x1dc5ce(0x9b)]),this[_0x1dc5ce(0x8b)]();}),this['on'](_0x107ac3(0x8d),()=>{const _0x1c8b5c=_0x107ac3;this[_0x1c8b5c(0x8b)]();});}[_0x3f3e4e(0x98)](){const _0x16e297=_0x3f3e4e,_0x2b8d2b=sessionStorage[_0x16e297(0x8a)](So)||'[]';this[_0x16e297(0x95)](JSON[_0x16e297(0x9a)](_0x2b8d2b));}[_0x3f3e4e(0x8b)](){const _0x3d117c=_0x3f3e4e;sessionStorage[_0x3d117c(0x90)](So,JSON[_0x3d117c(0x83)](this[_0x3d117c(0x99)](_0x548679=>_0x548679)));}}function go(_0x31f488){const _0x9d0176=_0x3f3e4e;return _0x31f488[_0x9d0176(0x87)]()[_0x9d0176(0x86)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4b84(_0x2e47ed,_0x32ae84){const _0x132f0d=_0x132f();return _0x4b84=function(_0x4b84c2,_0x6f1738){_0x4b84c2=_0x4b84c2-0xfd;let _0x4015ab=_0x132f0d[_0x4b84c2];return _0x4015ab;},_0x4b84(_0x2e47ed,_0x32ae84);}function _0x132f(){const _0x4c73a9=['custom','change:_hasContext','getFirstRange','config','hasContent','from','4104640SPaHvk','1042022ztzUvA','plugins','values','4876295Csaurc','refresh','showUI','set','selection','getSelectedBlocks','length','7rSCszd','isEnabled','includes','get','model','editor','42851MrMsTH','56lbyNFh','_commandDefinitions','execute','enabledCommandsIds','ai.assistant.disabledElements','1160865rcDFCj','getRanges','add','isEmpty','element','getItems','3542808sHfTPa','change:isEnabled','_hasContext','isCollapsed','requiresContent','document','860580mtmCeR','name'];_0x132f=function(){return _0x4c73a9;};return _0x132f();}const _0x2fe448=_0x4b84;(function(_0x3ad04e,_0x3e3501){const _0x4a676f=_0x4b84,_0x149c5a=_0x3ad04e();while(!![]){try{const _0x682364=parseInt(_0x4a676f(0x111))/0x1+-parseInt(_0x4a676f(0x101))/0x2+-parseInt(_0x4a676f(0x123))/0x3+-parseInt(_0x4a676f(0x100))/0x4+parseInt(_0x4a676f(0x104))/0x5+-parseInt(_0x4a676f(0x11d))/0x6*(-parseInt(_0x4a676f(0x10b))/0x7)+parseInt(_0x4a676f(0x112))/0x8*(parseInt(_0x4a676f(0x117))/0x9);if(_0x682364===_0x3e3501)break;else _0x149c5a['push'](_0x149c5a['shift']());}catch(_0x3f1be8){_0x149c5a['push'](_0x149c5a['shift']());}}}(_0x132f,0xa5642));import{Command as _0x24024d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x543de0}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x24024d{[_0x2fe448(0x113)];constructor(_0x18c305,_0x3a9f2c){const _0x2d3aa4=_0x2fe448;super(_0x18c305),this[_0x2d3aa4(0x113)]=_0x3a9f2c,this[_0x2d3aa4(0x107)](_0x2d3aa4(0x115),[]),this['on'](_0x2d3aa4(0x126),(_0xc0b506,_0x48b445,_0x49ab34)=>{const _0x166821=_0x2d3aa4;this[_0x166821(0x10c)]&&(this[_0x166821(0x115)]=ns(this[_0x166821(0x113)],_0x49ab34));}),this[_0x2d3aa4(0x107)](_0x2d3aa4(0x11f),!0x1),this['on'](_0x2d3aa4(0x11e),(_0x218a1b,_0x2fe315,_0x3fe264)=>{const _0x5d6ac0=_0x2d3aa4;this[_0x5d6ac0(0x115)]=_0x3fe264?ns(this[_0x5d6ac0(0x113)],this[_0x5d6ac0(0x11f)]):[];});}[_0x2fe448(0x105)](){const _0x5e82ba=_0x2fe448,_0x286d74=this[_0x5e82ba(0x110)][_0x5e82ba(0x10f)];this[_0x5e82ba(0x11f)]=function(_0x56b55a){const _0x12a6b5=_0x5e82ba,_0x203cbf=_0x56b55a[_0x12a6b5(0x122)][_0x12a6b5(0x108)];return _0x203cbf[_0x12a6b5(0x120)]?0x0!==[..._0x203cbf[_0x12a6b5(0x109)]()][_0x12a6b5(0x10a)]&&![..._0x203cbf[_0x12a6b5(0x109)]()][0x0][_0x12a6b5(0x11a)]:!!_0x56b55a[_0x12a6b5(0xfe)](_0x203cbf[_0x12a6b5(0x127)]());}(_0x286d74);const _0x45ad71=_0x286d74[_0x5e82ba(0x122)][_0x5e82ba(0x108)],_0x3a36e0=this[_0x5e82ba(0x110)][_0x5e82ba(0xfd)][_0x5e82ba(0x10e)](_0x5e82ba(0x116));for(const _0x51fdb7 of _0x45ad71[_0x5e82ba(0x118)]())for(const _0x167fbf of _0x51fdb7[_0x5e82ba(0x11c)]())if(_0x167fbf['is'](_0x5e82ba(0x11b))&&_0x3a36e0[_0x5e82ba(0x10d)](_0x167fbf[_0x5e82ba(0x124)]))return void(this[_0x5e82ba(0x10c)]=!0x1);this[_0x5e82ba(0x10c)]=!0x0;}[_0x2fe448(0x114)](_0x5f28f1='',_0x3046c1='',_0x30f422=_0x2fe448(0x125)){const _0x2d9d01=_0x2fe448;this[_0x2d9d01(0x110)][_0x2d9d01(0x102)][_0x2d9d01(0x10e)](_0x543de0)[_0x2d9d01(0x106)](_0x5f28f1,_0x3046c1,_0x30f422);}}function ns(_0x235cee,_0x187941){const _0x3722fe=_0x2fe448,_0x3a26b1=new Set();for(const _0x1bdd35 of _0x235cee[_0x3722fe(0x103)]())(_0x187941||!0x1===_0x1bdd35[_0x3722fe(0x121)])&&_0x3a26b1[_0x3722fe(0x119)](_0x1bdd35['id']);return Array[_0x3722fe(0xff)](_0x3a26b1);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4cb857,_0xbfad48,_0x44c5d0){const t=_0x4cb857['t'];switch(_0xbfad48){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',_0x44c5d0);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x44c5d0);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'},_0x44c5d0);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 _0xbfad48;}}
|
|
@@ -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(_0x487e6a,_0x41126a){const _0x4f41c3=(0x0,_0x41126a['t'])('Other');return _0x487e6a['length']?'groupId'in _0x487e6a[0x0]?_0x487e6a:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4f41c3,'order':0x1/0x0,'commands':_0x487e6a}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4f41c3,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e3973=_0x381f;(function(_0x43f92a,_0x3cf594){const _0x14487c=_0x381f,_0x32a5f3=_0x43f92a();while(!![]){try{const _0x54ac26=parseInt(_0x14487c(0xe1))/0x1*(parseInt(_0x14487c(0x100))/0x2)+-parseInt(_0x14487c(0xe6))/0x3*(parseInt(_0x14487c(0x101))/0x4)+-parseInt(_0x14487c(0xb1))/0x5+-parseInt(_0x14487c(0xb9))/0x6*(-parseInt(_0x14487c(0x109))/0x7)+-parseInt(_0x14487c(0xd9))/0x8+parseInt(_0x14487c(0x104))/0x9*(-parseInt(_0x14487c(0xef))/0xa)+-parseInt(_0x14487c(0xe0))/0xb*(-parseInt(_0x14487c(0xd8))/0xc);if(_0x54ac26===_0x3cf594)break;else _0x32a5f3['push'](_0x32a5f3['shift']());}catch(_0x23ccf8){_0x32a5f3['push'](_0x32a5f3['shift']());}}}(_0x546f,0x29b13));import{ContextPlugin as _0x805a39}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5880e6,AIEditing as _0x29bc32}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x509be8}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x54198a,Rect as _0x76d0fd,scrollViewportToShowTarget as _0x47119b}from'ckeditor5/src/utils.js';function _0x546f(){const _0x4f312a=['rootName','once','listenTo','filter','model','11yNCQaD','5lYVgOT','updatePosition','getMarkersGroup','delegate','getVisible','39789HHXbGf','ranges','hideFakeVisualSelection','differ','$graveyard','Dialog','beforeDialogClosed','_getSelectionElements','editing','14010qgwFhH','_isUpdatingMarkers','getIntersection','content','isPremiumPlugin','hideError','requires','context','open','high','map','showBlockingError','_updateDialog','left','round','_hideFakeVisualSelection','headerView','127782fprofc','48HUZRCo','getChangedMarkers','top','1449jcxeCa','height','isOfficialPlugin','label','ai-balloon-','30947GUQEJt','getBoundingRect','iconView','selectionRemoved','_showDialog','bind','index','1222250HSFsmS','show','dialogClosed','pluginName','_setupFakeVisualSelectionMarkerRemovalListener','ck-ai-balloon\x20','plugins','showFakeVisualSelection','180ruXSBl','document','_calculateOptimalTopPosition','_showFakeVisualSelection','ai-selection','_calculateDialogPosition','isOpen','max','change','bottom','AIBalloon','mainView','startsWith','length','locale','root','stopListening','hide','isEqual','_cleanupFakeVisualSelectionMarkerRemovalListener','ai-balloon-selection','_currentConfig','start','markers','AI_BALLOON_SELECTION_REMOVED_ERROR','fire','end','get','width','window','view','5422044cEsBav','831872ONQVCG','close'];_0x546f=function(){return _0x4f312a;};return _0x546f();}function _0x381f(_0x3fa1aa,_0x110533){const _0x546f9d=_0x546f();return _0x381f=function(_0x381fdd,_0x170545){_0x381fdd=_0x381fdd-0xae;let _0x5b583e=_0x546f9d[_0x381fdd];return _0x5b583e;},_0x381f(_0x3fa1aa,_0x110533);}import{getEditorFromContext as _0x56da33}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x4a87a7}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1121ee}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x1121ee,_0x5e3973(0xb3),_0x5e3973(0x10c)];const at=0xa;export class AIBalloon extends _0x805a39{static get[_0x5e3973(0xf5)](){return[_0x29bc32];}static get[_0x5e3973(0xb4)](){const _0x2eb4d1=_0x5e3973;return _0x2eb4d1(0xc3);}static get[_0x5e3973(0x106)](){return!0x0;}static get[_0x5e3973(0xf3)](){return!0x0;}[_0x5e3973(0xbf)]=!0x1;[_0x5e3973(0xce)];[_0x5e3973(0xf0)]=!0x1;[_0x5e3973(0xf7)](_0x2d3112){const _0x550e4a=_0x5e3973,{id:_0x353a62}=this[_0x550e4a(0xce)]??{};this[_0x550e4a(0xce)]=_0x2d3112;const {id:_0x166a12}=this[_0x550e4a(0xce)];this[_0x550e4a(0xbf)]&&_0x353a62===_0x166a12?this[_0x550e4a(0xfb)]():this[_0x550e4a(0xae)]();}[_0x5e3973(0xda)](){const _0x5eaf1d=_0x5e3973,_0x43a70d=_0x56da33(this[_0x5eaf1d(0xf6)])[_0x5eaf1d(0xb7)][_0x5eaf1d(0xd4)](_0x5eaf1d(0xeb));_0x43a70d[_0x5eaf1d(0xbf)]&&this[_0x5eaf1d(0xce)]&&_0x43a70d['id']===this[_0x5eaf1d(0xce)]['id']&&_0x43a70d[_0x5eaf1d(0xca)]();}[_0x5e3973(0xfb)](){const _0x419d6c=_0x5e3973,_0x54c392=_0x56da33(this[_0x419d6c(0xf6)])[_0x419d6c(0xb7)][_0x419d6c(0xd4)](_0x419d6c(0xeb)),{icon:_0x353d39,title:_0x874129}=this[_0x419d6c(0xce)];_0x54c392[_0x419d6c(0xd7)]?.[_0x419d6c(0xff)]&&(_0x54c392[_0x419d6c(0xd7)][_0x419d6c(0xff)][_0x419d6c(0x107)]=_0x874129,_0x54c392[_0x419d6c(0xd7)][_0x419d6c(0xff)][_0x419d6c(0x10b)]&&_0x353d39&&(_0x54c392[_0x419d6c(0xd7)][_0x419d6c(0xff)][_0x419d6c(0x10b)][_0x419d6c(0xf2)]=_0x353d39)),this[_0x419d6c(0xf0)]=!0x0,this[_0x419d6c(0xbc)](),this[_0x419d6c(0xf0)]=!0x1,_0x54c392[_0x419d6c(0xd7)]?.[_0x419d6c(0xe2)]();}[_0x5e3973(0xbc)](){const _0x3173de=_0x5e3973;this[_0x3173de(0xf6)][_0x3173de(0xb7)][_0x3173de(0xd4)](_0x29bc32)[_0x3173de(0xb8)](this[_0x3173de(0xce)][_0x3173de(0xe7)],_0x3173de(0x108)+this[_0x3173de(0xce)][_0x3173de(0xb0)],!0x0,!0x0);}[_0x5e3973(0xfe)](_0x9fe682){const _0x1ee318=_0x5e3973;this[_0x1ee318(0xf6)][_0x1ee318(0xb7)][_0x1ee318(0xd4)](_0x29bc32)[_0x1ee318(0xe8)](_0x1ee318(0x108)+_0x9fe682);}[_0x5e3973(0xae)](){const _0x55eb76=_0x5e3973,_0xf92fd2=_0x56da33(this[_0x55eb76(0xf6)])[_0x55eb76(0xb7)][_0x55eb76(0xd4)](_0x55eb76(0xeb)),{id:_0x5a271c,title:_0x1698ff,icon:_0x212d88,class:_0x14a0f8,mainView:_0x307f56}=this[_0x55eb76(0xce)];_0x307f56[_0x55eb76(0xe4)](..._0x1121ee)['to'](this),_0xf92fd2[_0x55eb76(0xb2)]({'title':_0x1698ff,'icon':_0x212d88,'hasCloseButton':!0x0,'id':_0x5a271c,'position':this[_0x55eb76(0xbe)][_0x55eb76(0xaf)](this),'className':_0x55eb76(0xb6)+(_0x14a0f8||''),'content':_0x307f56,'onShow':_0x59d3b2=>{const _0x29923a=_0x55eb76;this[_0x29923a(0xbc)](),this[_0x29923a(0xb5)]();const _0x193444=this[_0x29923a(0xed)]();_0x193444&&_0x193444[0x0]&&_0x47119b({'target':_0x193444[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x29923a(0xbf)]=!0x0,_0x59d3b2[_0x29923a(0xdc)](_0x29923a(0xca),()=>{const _0x1fca1e=_0x29923a;this[_0x1fca1e(0xd2)](_0x1fca1e(0xec),{'id':_0x5a271c});},{'priority':_0x29923a(0xf8)});},'onHide':()=>{const _0x18788b=_0x55eb76;this[_0x18788b(0xfe)](this[_0x18788b(0xce)][_0x18788b(0xb0)]),this[_0x18788b(0xcc)](),this[_0x18788b(0xd2)](_0x18788b(0xb3),{'id':_0x5a271c}),this[_0x18788b(0xbf)]=!0x1;}});}[_0x5e3973(0xbe)](_0x21a328,_0x597889){const _0x117ca2=_0x5e3973;if(!_0x597889)return null;const _0x15a05c=this[_0x117ca2(0xed)]();if(!_0x15a05c||0x0===_0x15a05c[_0x117ca2(0xc6)])return{'left':Math[_0x117ca2(0xfd)](_0x597889[_0x117ca2(0xfc)]+_0x597889[_0x117ca2(0xd5)]/0x2-_0x21a328[_0x117ca2(0xd5)]/0x2),'top':Math[_0x117ca2(0xfd)](_0x597889[_0x117ca2(0x103)]+_0x597889[_0x117ca2(0x105)]/0x2-_0x21a328[_0x117ca2(0x105)]/0x2)};const _0x4999f5=Math[_0x117ca2(0xfd)](_0x597889[_0x117ca2(0xfc)]+_0x597889[_0x117ca2(0xd5)]/0x2-_0x21a328[_0x117ca2(0xd5)]/0x2),_0xaa683f=_0x15a05c[_0x117ca2(0xf9)](_0x4c4f92=>new _0x76d0fd(_0x4c4f92)),_0x2adf63=_0x21a328[_0x117ca2(0x105)];return{'left':_0x4999f5,'top':this[_0x117ca2(0xbb)](_0xaa683f,_0x2adf63,_0x597889)};}[_0x5e3973(0xbb)](_0x10652e,_0x435dbf,_0xb65beb){const _0x58d478=_0x5e3973,_0x12d62c=new _0x76d0fd(_0x54198a[_0x58d478(0xd6)]),_0x53df8e=_0x10652e[_0x58d478(0xf9)](_0x30e0a3=>_0x30e0a3[_0x58d478(0xe5)]())[_0x58d478(0xde)](_0x1b6786=>_0x1b6786),_0x102a73=_0x76d0fd[_0x58d478(0x10a)](_0x53df8e);if(!_0x102a73)return Math[_0x58d478(0xfd)](_0xb65beb[_0x58d478(0x103)]+_0xb65beb[_0x58d478(0x105)]/0x2);const _0x206869=_0x12d62c[_0x58d478(0xf1)](_0x102a73);if(!_0x206869)return Math[_0x58d478(0xfd)](_0xb65beb[_0x58d478(0x103)]+_0xb65beb[_0x58d478(0x105)]/0x2);const _0x6ec3e5=_0xb65beb[_0x58d478(0xe5)](),_0x55feb0=_0x6ec3e5&&_0x102a73[_0x58d478(0x105)]>_0x6ec3e5[_0x58d478(0x105)],_0x11f53f=_0x206869[_0x58d478(0x103)],_0x335ce4=_0x206869[_0x58d478(0xc2)];if(_0x55feb0){const _0x346433=(_0x6ec3e5||_0x12d62c)[_0x58d478(0x105)]/0x2-_0x435dbf/0x2,_0x30dbd6=_0x11f53f-at-_0xb65beb[_0x58d478(0x103)],_0x32e732=_0xb65beb[_0x58d478(0xc2)]-_0x335ce4-at;return _0x30dbd6>=_0x435dbf?Math[_0x58d478(0xc0)](at,_0x11f53f-_0x435dbf-at):_0x32e732>=_0x435dbf?_0x335ce4+at:Math[_0x58d478(0xc0)](at,_0x346433);}const _0x4bfb79=_0x11f53f-_0x435dbf,_0x1caf98=_0xb65beb[_0x58d478(0xc2)]-_0x335ce4-at,_0x1c8f8a=_0x11f53f-at-_0xb65beb[_0x58d478(0x103)];let _0x533d36;if(_0x1caf98>=_0x435dbf)_0x533d36=_0x335ce4+at;else{if(_0x1c8f8a>=_0x435dbf)_0x533d36=_0x4bfb79-at;else _0x533d36=_0x11f53f+_0x102a73[_0x58d478(0x105)]/0x2-_0x435dbf/0x2;}return _0x533d36;}[_0x5e3973(0xb5)](){const _0x2db013=_0x5e3973,_0x1880da=_0x56da33(this[_0x2db013(0xf6)]);this[_0x2db013(0xdd)](_0x1880da[_0x2db013(0xdf)][_0x2db013(0xba)],_0x2db013(0xc1),()=>{const _0x307caa=_0x2db013;if(!this[_0x307caa(0xf0)]){for(const {name:_0x20a336,data:{newRange:_0x153668}}of _0x1880da[_0x307caa(0xdf)][_0x307caa(0xba)][_0x307caa(0xe9)][_0x307caa(0x102)]())if(_0x20a336[_0x307caa(0xc5)](_0x5880e6+':')&&(_0x153668&&(_0x153668[_0x307caa(0xcf)][_0x307caa(0xcb)](_0x153668[_0x307caa(0xd3)])||_0x307caa(0xea)==_0x153668[_0x307caa(0xc8)][_0x307caa(0xdb)])||null==_0x153668)){const _0x151e58=_0x4a87a7(this[_0x307caa(0xf6)][_0x307caa(0xc7)],_0x307caa(0xd1));this[_0x307caa(0xce)][_0x307caa(0xc4)][_0x307caa(0xfa)](_0x151e58),this[_0x307caa(0xd2)](_0x307caa(0x10c));}}});}[_0x5e3973(0xcc)](){const _0x25ae00=_0x5e3973,_0x5074cf=_0x56da33(this[_0x25ae00(0xf6)]);this[_0x25ae00(0xce)][_0x25ae00(0xc4)][_0x25ae00(0xf4)](),this[_0x25ae00(0xc9)](_0x5074cf[_0x25ae00(0xdf)][_0x25ae00(0xba)]);}[_0x5e3973(0xed)](){const _0x246263=_0x5e3973,_0xb949ea=_0x56da33(this[_0x246263(0xf6)]);return _0x509be8(_0xb949ea[_0x246263(0xee)],[..._0xb949ea[_0x246263(0xdf)][_0x246263(0xd0)][_0x246263(0xe3)](_0x246263(0xbd)),..._0xb949ea[_0x246263(0xdf)][_0x246263(0xd0)][_0x246263(0xe3)](_0x246263(0xcd))]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x366220=_0x3a7f;(function(_0x20037d,_0x5616ed){const _0x31371e=_0x3a7f,_0x3b4608=_0x20037d();while(!![]){try{const _0x4eb2cd=-parseInt(_0x31371e(0x1b0))/0x1+parseInt(_0x31371e(0x1ba))/0x2*(parseInt(_0x31371e(0x1b7))/0x3)+-parseInt(_0x31371e(0x19c))/0x4*(-parseInt(_0x31371e(0x1ab))/0x5)+-parseInt(_0x31371e(0x1aa))/0x6*(parseInt(_0x31371e(0x1af))/0x7)+-parseInt(_0x31371e(0x1a3))/0x8+-parseInt(_0x31371e(0x1b5))/0x9*(parseInt(_0x31371e(0x1b2))/0xa)+-parseInt(_0x31371e(0x1b1))/0xb*(-parseInt(_0x31371e(0x1b4))/0xc);if(_0x4eb2cd===_0x5616ed)break;else _0x3b4608['push'](_0x3b4608['shift']());}catch(_0x2d837f){_0x3b4608['push'](_0x3b4608['shift']());}}}(_0x2270,0x55b01));function _0x3a7f(_0x2f4a5b,_0x5d889b){const _0x22709f=_0x2270();return _0x3a7f=function(_0x3a7f0a,_0x2c5950){_0x3a7f0a=_0x3a7f0a-0x19b;let _0x48d2ca=_0x22709f[_0x3a7f0a];return _0x48d2ca;},_0x3a7f(_0x2f4a5b,_0x5d889b);}import{View as _0x1e327a}from'ckeditor5/src/ui.js';function _0x2270(){const _0x17fff1=['div','2fekBWe','_errorView','hideError','234968YpRLrH','_createErrorView','ck-ai-suggestion__error','locale','ck-ai-balloon-error','applySuggestion','showBlockingError','422208IDMQbd','set','showNext','showError','showPrevious','ck-hidden','_isErrorVisible','124638IPVfVU','40wPflme','ck-ai-suggestion__error-text','insertSuggestion','span','7MuVbEc','239408DuGXJF','33IolPEi','3225590FkyahD','bindTemplate','1582236hipMxk','9wvCypg','setTemplate','362994OCcrXy','_errorMessage'];_0x2270=function(){return _0x17fff1;};return _0x2270();}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x366220(0x1a1),_0x366220(0x1ad),_0x366220(0x1a5),_0x366220(0x1a7)];export class AIBalloonView extends _0x1e327a{[_0x366220(0x1bb)];constructor(_0x4e6fd8){const _0x4a151d=_0x366220;super(_0x4e6fd8),this[_0x4a151d(0x1a4)](_0x4a151d(0x1b8),''),this[_0x4a151d(0x1a4)](_0x4a151d(0x1a9),!0x1);}[_0x366220(0x1a2)](_0x560752){const _0x30e0bd=_0x366220;this[_0x30e0bd(0x1a6)](_0x560752);}[_0x366220(0x1a6)](_0x4c227d){const _0xf26aac=_0x366220;this[_0xf26aac(0x1bb)]||(this[_0xf26aac(0x1bb)]=this[_0xf26aac(0x19d)]()),this[_0xf26aac(0x1b8)]=_0x4c227d,this[_0xf26aac(0x1a9)]=!0x0;}[_0x366220(0x19b)](){const _0x2cff8d=_0x366220;this[_0x2cff8d(0x1a9)]=!0x1;}[_0x366220(0x19d)](){const _0x4aa69b=_0x366220,_0x408ab3=new _0x1e327a(this[_0x4aa69b(0x19f)]),_0x135e77=new _0x1e327a(this[_0x4aa69b(0x19f)]);return _0x135e77[_0x4aa69b(0x1b6)]({'tag':_0x4aa69b(0x1ae),'attributes':{'class':['ck',_0x4aa69b(0x1ac)]},'children':[{'text':this[_0x4aa69b(0x1b3)]['to'](_0x4aa69b(0x1b8))}]}),_0x408ab3[_0x4aa69b(0x1b6)]({'tag':_0x4aa69b(0x1b9),'attributes':{'class':['ck',_0x4aa69b(0x19e),_0x4aa69b(0x1a0),this[_0x4aa69b(0x1b3)]['if'](_0x4aa69b(0x1a9),_0x4aa69b(0x1a8),_0x386461=>!_0x386461)]},'children':[_0x135e77]}),_0x408ab3;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x221c(){var _0x155324=['new','ai.chat.context','AIChat','isPremiumPlugin','159fiPmlS','define','866920zrUdnU','get','ai.chat.initialConversation','context','config','plugins','1191700UDHOmd','requires','2229138DUqfpq','addSelectionToChatContext','pluginName','isOfficialPlugin','registerToolDataCallback','startConversation','292431mGAWOy','removeSelectionFromChatContext','35JljteK','4027455KiHAen','38212eBNGzc','focusPromptInput','539356OwUOIa','sendMessage','_registerToolDataCallback'];_0x221c=function(){return _0x155324;};return _0x221c();}function _0x565b(_0x404eff,_0x227c78){var _0x221cd9=_0x221c();return _0x565b=function(_0x565ba4,_0x4a7d4a){_0x565ba4=_0x565ba4-0x1de;var _0x3bd1df=_0x221cd9[_0x565ba4];return _0x3bd1df;},_0x565b(_0x404eff,_0x227c78);}var _0x5c9b9f=_0x565b;(function(_0x57dad0,_0x306a62){var _0x1d56db=_0x565b,_0x46448b=_0x57dad0();while(!![]){try{var _0x3b6262=parseInt(_0x1d56db(0x1ed))/0x1+parseInt(_0x1d56db(0x1f3))/0x2+parseInt(_0x1d56db(0x1fa))/0x3*(-parseInt(_0x1d56db(0x1f1))/0x4)+-parseInt(_0x1d56db(0x1e5))/0x5+parseInt(_0x1d56db(0x1e7))/0x6+parseInt(_0x1d56db(0x1ef))/0x7*(parseInt(_0x1d56db(0x1df))/0x8)+-parseInt(_0x1d56db(0x1f0))/0x9;if(_0x3b6262===_0x306a62)break;else _0x46448b['push'](_0x46448b['shift']());}catch(_0x5572a1){_0x46448b['push'](_0x46448b['shift']());}}}(_0x221c,0x452b1));import{ContextPlugin as _0x3d7b1f}from'ckeditor5/src/core.js';import{AIChatController as _0x54d2d2}from'./aichatcontroller.js';import{AIEditing as _0x56e663}from'../aicore/aiediting.js';import{AIChatUI as _0x1eebce}from'./aichatui.js';import{AIChatHistory as _0x2edff7}from'../aichathistory/aichathistory.js';export class AIChat extends _0x3d7b1f{static get[_0x5c9b9f(0x1e6)](){return[_0x54d2d2,_0x56e663,_0x1eebce,_0x2edff7];}static get[_0x5c9b9f(0x1e9)](){var _0x522ad4=_0x5c9b9f;return _0x522ad4(0x1f8);}static get[_0x5c9b9f(0x1ea)](){return!0x0;}static get[_0x5c9b9f(0x1f9)](){return!0x0;}constructor(_0x380556){var _0x5271a8=_0x5c9b9f;super(_0x380556),this[_0x5271a8(0x1e2)][_0x5271a8(0x1e3)][_0x5271a8(0x1de)](_0x5271a8(0x1f7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x5271a8(0x1e2)][_0x5271a8(0x1e3)][_0x5271a8(0x1de)](_0x5271a8(0x1e1),_0x5271a8(0x1f6));}async[_0x5c9b9f(0x1e8)](){var _0x19c132=_0x5c9b9f;await this[_0x19c132(0x1e2)][_0x19c132(0x1e4)][_0x19c132(0x1e0)](_0x54d2d2)[_0x19c132(0x1e8)]();}async[_0x5c9b9f(0x1ec)](){var _0x3d7e94=_0x5c9b9f;await this[_0x3d7e94(0x1e2)][_0x3d7e94(0x1e4)][_0x3d7e94(0x1e0)](_0x54d2d2)[_0x3d7e94(0x1ec)]();}async[_0x5c9b9f(0x1f4)]({message:_0x57b2db,attributes:_0x58bc45}){var _0x53a32e=_0x5c9b9f;await this[_0x53a32e(0x1e2)][_0x53a32e(0x1e4)][_0x53a32e(0x1e0)](_0x54d2d2)[_0x53a32e(0x1f4)]({'message':_0x57b2db,'attributes':_0x58bc45});}[_0x5c9b9f(0x1ee)](){var _0x127c41=_0x5c9b9f;this[_0x127c41(0x1e2)][_0x127c41(0x1e4)][_0x127c41(0x1e0)](_0x54d2d2)[_0x127c41(0x1ee)]();}[_0x5c9b9f(0x1f2)](){var _0x9bab48=_0x5c9b9f;this[_0x9bab48(0x1e2)][_0x9bab48(0x1e4)][_0x9bab48(0x1e0)](_0x54d2d2)[_0x9bab48(0x1f2)]();}[_0x5c9b9f(0x1eb)](_0x4c213f){var _0x3d7030=_0x5c9b9f;this[_0x3d7030(0x1e2)][_0x3d7030(0x1e4)][_0x3d7030(0x1e0)](_0x54d2d2)[_0x3d7030(0x1f5)](_0x4c213f);}}
|