@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.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/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/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/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/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/dropdownmenubuttonwithhighlightview.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/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.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/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x174339=_0x19fa;(function(_0x2240be,_0x5ed022){const _0x1f0f4b=_0x19fa,_0x46f158=_0x2240be();while(!![]){try{const _0x5013b3=-parseInt(_0x1f0f4b(0xd9))/0x1*(-parseInt(_0x1f0f4b(0xdb))/0x2)+parseInt(_0x1f0f4b(0xb5))/0x3+parseInt(_0x1f0f4b(0xf5))/0x4*(parseInt(_0x1f0f4b(0x107))/0x5)+parseInt(_0x1f0f4b(0xfc))/0x6+-parseInt(_0x1f0f4b(0x101))/0x7*(parseInt(_0x1f0f4b(0xb3))/0x8)+-parseInt(_0x1f0f4b(0xab))/0x9+parseInt(_0x1f0f4b(0xf1))/0xa*(-parseInt(_0x1f0f4b(0xfa))/0xb);if(_0x5013b3===_0x5ed022)break;else _0x46f158['push'](_0x46f158['shift']());}catch(_0x41b964){_0x46f158['push'](_0x46f158['shift']());}}}(_0x9b41,0xdaaf5));function _0x19fa(_0x4eb3fe,_0x2ba8ec){const _0x9b41e6=_0x9b41();return _0x19fa=function(_0x19faba,_0x35b370){_0x19faba=_0x19faba-0xab;let _0x4fe850=_0x9b41e6[_0x19faba];return _0x4fe850;},_0x19fa(_0x4eb3fe,_0x2ba8ec);}function _0x9b41(){const _0x354114=['8413014yjMQSq','data','tryAgainEvent','processor','updateView','3904411mxHGIq','catch','substring','toModel','stopProcessing','previousActionId','231210DekGMd','startProcessing','currentResponse','textAdapter','stringify','parseFromString','<h1></h1>','submitPrompt','set:currentContext','12828636wtqoca','markers','set','finishProcessing','destroy','previousQuery','viewToDom','mainAction','16mhFkCd','match','3949647NIjxjR','ai.assistant.preserveComments','```','stopListening','isRendered','value','listenTo','_isH1TagSupportEnabled','domConverter','endsWith','clear','once','setContentOf','serializeToString','element','then','push','name','_stripMarkdownSyntax','config','_domParser','editing','rename','```html','_xmlSerializer','editor','from','finally','previousContext','prompt','render','currentContext','previousLabel','_sanitizationContainer','initialContext','message','94LkMTrU','get','15710XWfNvY','reset','startsWith','createElement','body','ELEMENT_NODE','document','exec','makeRequest','text/html','_parseAndNormalizeContent','_handleQuery','custom','querySelector','isProcessing','_sanitizeHTML','remove','nodeType','innerHTML','abort','div','htmlProcessor','590PsnnCS','view','trim','childNodes','48JlxgVa','handleError','_normalizeResponseHeadings','toView','reverse','107261kHQqVI','length'];_0x9b41=function(){return _0x354114;};return _0x9b41();}import{ObservableMixin as _0x23d53d}from'ckeditor5/src/utils.js';import{AIRequestError as _0x39514b}from'../adapters/aiadapter.js';import{Matcher as _0x513089,ViewUpcastWriter as _0x3eb01a}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23d53d(){[_0x174339(0xce)];[_0x174339(0x10a)];[_0x174339(0xf2)];[_0x174339(0xd6)];[_0x174339(0xc9)];[_0x174339(0xcd)];constructor(_0x326ebe,_0x16cfcd,_0x165f3c){const _0x605eb5=_0x174339;super(),this[_0x605eb5(0xce)]=_0x326ebe,this[_0x605eb5(0x10a)]=_0x16cfcd,this[_0x605eb5(0xd6)]=document[_0x605eb5(0xde)](_0x605eb5(0xef)),this[_0x605eb5(0xc9)]=new DOMParser(),this[_0x605eb5(0xcd)]=new XMLSerializer(),this[_0x605eb5(0xf2)]=_0x165f3c,this[_0x605eb5(0xad)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x605eb5(0x10f),(_0x299a09,_0x5df636,_0x363d7f)=>{const _0x27cc9f=_0x605eb5;this[_0x27cc9f(0xf2)][_0x27cc9f(0xba)]=this[_0x27cc9f(0xea)](_0x363d7f);}),this[_0x605eb5(0xbb)](this[_0x605eb5(0xf2)],_0x605eb5(0x10e),(_0x4399f8,_0x39b4a2)=>{const _0x505e28=_0x605eb5,_0x4c7ad8=this[_0x505e28(0xd4)]||this[_0x505e28(0xd7)];this[_0x505e28(0xe6)](_0x39b4a2,_0x4c7ad8,_0x505e28(0xe7));}),this[_0x605eb5(0xbb)](this[_0x605eb5(0xf2)],_0x605eb5(0xfe),()=>{const _0x1e76dd=_0x605eb5;this[_0x1e76dd(0xf2)][_0x1e76dd(0xd2)]=this[_0x1e76dd(0xd5)],this[_0x1e76dd(0xe6)](this[_0x1e76dd(0xb0)],this[_0x1e76dd(0xd1)],this[_0x1e76dd(0x106)],this[_0x1e76dd(0xd5)]);}),this[_0x605eb5(0xbb)](this[_0x605eb5(0xf2)],_0x605eb5(0x105),()=>{const _0x110a2a=_0x605eb5;this[_0x110a2a(0x105)]();});}[_0x174339(0xaf)](){const _0x1d6a86=_0x174339;this[_0x1d6a86(0xb8)]();}async[_0x174339(0x100)]({actionId:_0x5207f6,query:_0x2da57f,htmlContent:_0x1cd824,label:_0x2c5442,mainActionLabel:_0x28d0de}){const _0x560644=_0x174339;this[_0x560644(0xf2)][_0x560644(0xd2)]=_0x2c5442,this[_0x560644(0xf2)][_0x560644(0xb2)]=_0x28d0de,this[_0x560644(0xd7)]=_0x1cd824,_0x2da57f&&(this[_0x560644(0xf2)][_0x560644(0xb9)]?this[_0x560644(0xe6)](_0x2da57f,_0x1cd824,_0x5207f6,_0x2c5442):this[_0x560644(0xf2)][_0x560644(0xc0)](_0x560644(0xd3),()=>{const _0x250d01=_0x560644;this[_0x250d01(0xe6)](_0x2da57f,_0x1cd824,_0x5207f6,_0x2c5442);}));}[_0x174339(0x105)](){const _0x70e70f=_0x174339;this[_0x70e70f(0xe9)]&&(this[_0x70e70f(0xe9)]=!0x1,this[_0x70e70f(0xf2)][_0x70e70f(0xae)](),this[_0x70e70f(0x10a)][_0x70e70f(0xee)]());}[_0x174339(0xdc)](){const _0x1b27a6=_0x174339;this[_0x1b27a6(0xd7)]='',this[_0x1b27a6(0xd4)]='',this[_0x1b27a6(0x109)]='',this[_0x1b27a6(0xd1)]='',this[_0x1b27a6(0xb0)]='',this[_0x1b27a6(0xd5)]='',this[_0x1b27a6(0x106)]=void 0x0,this[_0x1b27a6(0xf2)][_0x1b27a6(0xdc)](),this[_0x1b27a6(0x105)]();}async[_0x174339(0xe6)](_0x4e5525,_0x112909,_0x1939e2,_0x414928){const _0x370325=_0x174339;return this[_0x370325(0xe9)]=!0x0,this[_0x370325(0xf2)][_0x370325(0x108)](),this[_0x370325(0xd1)]=_0x112909,this[_0x370325(0xb0)]=_0x4e5525,this[_0x370325(0xd5)]=_0x414928||_0x4e5525,this[_0x370325(0x106)]=_0x1939e2,new Promise(_0x273955=>{const _0x38e392=_0x370325;this[_0x38e392(0x10a)][_0x38e392(0xe3)]({'query':_0x4e5525,'context':_0x112909,'onData':_0x4ba803=>{const _0x1b8404=_0x38e392;this[_0x1b8404(0x109)]=_0x4ba803,this[_0x1b8404(0xd4)]=this[_0x1b8404(0xe5)](this[_0x1b8404(0x109)]);},'actionId':_0x1939e2})[_0x38e392(0xc4)](()=>{const _0x53918c=_0x38e392;!this[_0x53918c(0xd4)]&&this[_0x53918c(0x109)]&&(this[_0x53918c(0xd4)]=this[_0x53918c(0xe5)](this[_0x53918c(0x109)],!0x0));})[_0x38e392(0x102)](_0x32c05a=>{const _0x4b2282=_0x38e392;_0x32c05a instanceof _0x39514b?this[_0x4b2282(0xf2)][_0x4b2282(0xf6)](_0x32c05a[_0x4b2282(0xd8)]):this[_0x4b2282(0xf2)][_0x4b2282(0xf6)](),_0x273955();})[_0x38e392(0xd0)](()=>{const _0xd8eb6e=_0x38e392;this[_0xd8eb6e(0x105)](),_0x273955();});});}[_0x174339(0xe5)](_0x48f383,_0x51643f=!0x1){const _0x2632a5=_0x174339,_0x4dc19b=hs[_0x2632a5(0xe2)](_0x48f383);_0x48f383=_0x4dc19b?_0x48f383[_0x2632a5(0x103)](_0x4dc19b[0x1][_0x2632a5(0xfb)]):_0x48f383[_0x2632a5(0xfb)]<0x64&&!_0x51643f?'':this[_0x2632a5(0xc7)](_0x48f383);const _0x305d7e=this[_0x2632a5(0xc9)][_0x2632a5(0x10c)](_0x48f383,_0x2632a5(0xe4));if(_0x4dc19b){const _0x20f8fc=Array[_0x2632a5(0xcf)](_0x305d7e[_0x2632a5(0xdf)][_0x2632a5(0xf4)]);_0x20f8fc[_0x2632a5(0xf9)]();for(const _0x2210c0 of _0x20f8fc){if(_0x2210c0[_0x2632a5(0xec)]==Node[_0x2632a5(0xe0)])break;_0x2210c0[_0x2632a5(0xeb)]();}}const _0x287fa6=this[_0x2632a5(0xce)][_0x2632a5(0xfd)][_0x2632a5(0xff)][_0x2632a5(0xf8)](this[_0x2632a5(0xcd)][_0x2632a5(0xc2)](_0x305d7e[_0x2632a5(0xdf)]));this[_0x2632a5(0xbc)]()||this[_0x2632a5(0xf7)](_0x287fa6);const _0x5da465=this[_0x2632a5(0xce)][_0x2632a5(0xc8)][_0x2632a5(0xda)](_0x2632a5(0xb6)),_0x3657f2=this[_0x2632a5(0xce)][_0x2632a5(0xfd)][_0x2632a5(0x104)](_0x287fa6);return _0x5da465||_0x3657f2[_0x2632a5(0xac)][_0x2632a5(0xbf)](),this[_0x2632a5(0xce)][_0x2632a5(0xfd)][_0x2632a5(0x10b)](_0x3657f2);}[_0x174339(0xf7)](_0xc91d9f){const _0x3c409e=_0x174339,_0x8c31fc=new _0x3eb01a(this[_0x3c409e(0xce)][_0x3c409e(0xca)][_0x3c409e(0xf2)][_0x3c409e(0xe1)]),_0x433c44=new _0x513089({'name':/^h[1-5]$/}),_0x328223=[];let _0x8577e5=!0x1;for(const _0x24b0da of _0xc91d9f)_0x24b0da['is'](_0x3c409e(0xc3))&&_0x433c44[_0x3c409e(0xb4)](_0x24b0da)&&(_0x328223[_0x3c409e(0xc5)](_0x24b0da),'h1'==_0x24b0da[_0x3c409e(0xc6)]&&(_0x8577e5=!0x0));if(_0x8577e5){for(const _0x2e924c of _0x328223)_0x8c31fc[_0x3c409e(0xcb)]('h'+(parseInt(_0x2e924c[_0x3c409e(0xc6)][0x1])+0x1),_0x2e924c);}}[_0x174339(0xbc)](){const _0x232abb=_0x174339,{data:_0x33615d,editing:_0x152702}=this[_0x232abb(0xce)],_0x5cc45a=_0x33615d[_0x232abb(0xf0)][_0x232abb(0xf8)](_0x232abb(0x10d)),_0x7e9641=_0x33615d[_0x232abb(0xf8)](_0x33615d[_0x232abb(0x104)](_0x5cc45a));return!!_0x152702[_0x232abb(0xf2)][_0x232abb(0xbd)][_0x232abb(0xb1)](_0x7e9641)[_0x232abb(0xe8)]('h1');}[_0x174339(0xea)](_0x3344ab){const _0x40b6da=_0x174339;return this[_0x40b6da(0xce)][_0x40b6da(0xca)][_0x40b6da(0xf2)][_0x40b6da(0xbd)][_0x40b6da(0xc1)](this[_0x40b6da(0xd6)],_0x3344ab),this[_0x40b6da(0xd6)][_0x40b6da(0xed)];}[_0x174339(0xc7)](_0x544abf){const _0xa3e002=_0x174339,_0x32f75d=_0x544abf[_0xa3e002(0xf3)]();return _0x32f75d[_0xa3e002(0xdd)](_0xa3e002(0xcc))?_0x32f75d[_0xa3e002(0xbe)](_0xa3e002(0xb7))?_0x32f75d[_0xa3e002(0x103)](0x7,_0x32f75d[_0xa3e002(0xfb)]-0x3):_0x32f75d[_0xa3e002(0x103)](0x7):_0x544abf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e6c39=_0x5e21;(function(_0x5a776c,_0x43cabc){const _0x5c5c37=_0x5e21,_0x2ed2b8=_0x5a776c();while(!![]){try{const _0x2c86cf=-parseInt(_0x5c5c37(0x219))/0x1+parseInt(_0x5c5c37(0x224))/0x2*(-parseInt(_0x5c5c37(0x21e))/0x3)+-parseInt(_0x5c5c37(0x214))/0x4+-parseInt(_0x5c5c37(0x22e))/0x5+parseInt(_0x5c5c37(0x1fe))/0x6+parseInt(_0x5c5c37(0x217))/0x7*(parseInt(_0x5c5c37(0x237))/0x8)+-parseInt(_0x5c5c37(0x223))/0x9*(-parseInt(_0x5c5c37(0x1f2))/0xa);if(_0x2c86cf===_0x43cabc)break;else _0x2ed2b8['push'](_0x2ed2b8['shift']());}catch(_0x39646a){_0x2ed2b8['push'](_0x2ed2b8['shift']());}}}(_0x413b,0xdc59c));import{global as _0xfd288d}from'ckeditor5/src/utils.js';import{View as _0x1283c2,ButtonView as _0x546b5b,SpinnerView as _0x542d7b}from'ckeditor5/src/ui.js';function _0x5e21(_0x5df8e6,_0x270233){const _0x413b48=_0x413b();return _0x5e21=function(_0x5e2128,_0x1d0fb1){_0x5e2128=_0x5e2128-0x1ec;let _0xd1b5b1=_0x413b48[_0x5e2128];return _0xd1b5b1;},_0x5e21(_0x5df8e6,_0x270233);}import{IconCheck as _0x3b4e0c,IconCopy as _0xe6bf91}from'ckeditor5/src/icons.js';import{getTranslation as _0x824fa}from'../../utils/common-translations.js';function _0x413b(){const _0x4620e0=['460ZFbpxu','ck-content','ck-reset_all-excluded','mousedown','text/plain','createElement','-9999px','body','setEndBefore','querySelector','div','isProcessing','4195494lrMJpm','render','lastElementChild','ck-ai-form__content-area-wrapper','ck-ai-form__loader','<span>[</span>','addRange','getSelection','setContent','scrollHeight','ck-ai-form__copy-button','_createCopyButton','focus','execute','textContent','isVisible','change:isProcessing','execCommand','Copy','setStartAfter','icon','AI\x20is\x20writing...','3801504SJnsER','position','contentFieldView','2904482JJHtAM','\x20ck-ai-form__copy-button--copied','1411557iCGCix','clipboard','setTemplate','scrollTo','_createLoader','352098AWHmEV','bind','ck-hidden','text/html','copy','567855cnFEQr','4vTyVBX','locale','ck-ai-form__content-area','appendChild','bindTemplate','class','write','loaderView','value','style','8810510mpiumR','removeAllRanges','remove','wheel','element','change:value','left','ck-ai-form__content-field','isEnabled','32eXczlv','createRange','copyButtonView','firstElementChild','ck-ai-form__content-area--processing','.ck-ai-form__loader','appendLoader','ClipboardItem','<span>]</span>','smooth','listenTo','ck-ai-form__copy-button-wrapper','absolute','_copyHTMLToClipboard','set','innerHTML'];_0x413b=function(){return _0x4620e0;};return _0x413b();}export class AIFormContentArea extends _0x1283c2{[_0x4e6c39(0x216)];[_0x4e6c39(0x239)];constructor(_0x4747eb,_0xd91978=''){const _0x477eae=_0x4e6c39;super(_0x4747eb),this[_0x477eae(0x1f0)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x11aece=this[_0x477eae(0x228)];this[_0x477eae(0x216)]=new ContentFieldView(_0x4747eb,_0xd91978),this[_0x477eae(0x239)]=this[_0x477eae(0x209)](),this[_0x477eae(0x21b)]({'tag':_0x477eae(0x1fc),'attributes':{'class':['ck',_0x477eae(0x201),_0x11aece['if'](_0x477eae(0x20d),_0x477eae(0x220),_0x2920ba=>!_0x2920ba)],'tabindex':'-1'},'children':[{'tag':_0x477eae(0x1fc),'attributes':{'class':['ck',_0x477eae(0x226),_0x11aece['if'](_0x477eae(0x1fd),_0x477eae(0x23b))]},'children':[this[_0x477eae(0x216)],{'tag':_0x477eae(0x1fc),'attributes':{'class':['ck',_0x477eae(0x1ed)]},'children':[this[_0x477eae(0x239)]]}]}]});}[_0x4e6c39(0x1ff)](){const _0x1216e8=_0x4e6c39;super[_0x1216e8(0x1ff)](),this[_0x1216e8(0x22c)]&&this[_0x1216e8(0x216)][_0x1216e8(0x206)](this[_0x1216e8(0x22c)]);let _0x31499d=!0x1;this['on'](_0x1216e8(0x233),(_0x5cd16f,_0x41290a,_0x16e8f1)=>{const _0x53a499=_0x1216e8,_0x1a618b=!this[_0x53a499(0x216)][_0x53a499(0x232)][_0x53a499(0x1fb)](_0x53a499(0x23c));this[_0x53a499(0x216)][_0x53a499(0x206)](_0x16e8f1),this[_0x53a499(0x1fd)]&&_0x1a618b&&!_0x31499d&&this[_0x53a499(0x232)][_0x53a499(0x21c)]({'top':this[_0x53a499(0x232)][_0x53a499(0x207)],'behavior':_0x53a499(0x240)});}),this['on'](_0x1216e8(0x20e),(_0x4c4e30,_0xcbe08d,_0x23b598)=>{const _0x255d4c=_0x1216e8;_0x31499d=!0x1,_0x23b598?(this[_0x255d4c(0x22c)]=null,this[_0x255d4c(0x216)][_0x255d4c(0x23d)]()):this[_0x255d4c(0x22c)]||this[_0x255d4c(0x216)][_0x255d4c(0x206)]('');}),this[_0x1216e8(0x1ec)](this[_0x1216e8(0x232)],_0x1216e8(0x231),()=>{_0x31499d=!0x0;}),this[_0x1216e8(0x1ec)](this[_0x1216e8(0x232)],_0x1216e8(0x1f5),()=>{_0x31499d=!0x0;});}[_0x4e6c39(0x20a)](){const _0x15053a=_0x4e6c39;this[_0x15053a(0x232)][_0x15053a(0x20a)]();}[_0x4e6c39(0x209)](){const _0x3b76c6=_0x4e6c39,_0x5bcaaf=this[_0x3b76c6(0x225)],_0x204162=new _0x546b5b(this[_0x3b76c6(0x225)]),_0x41ad68=_0x3b76c6(0x208);return _0x204162[_0x3b76c6(0x1f0)]({'label':_0x824fa(_0x5bcaaf,_0x3b76c6(0x210)),'icon':_0xe6bf91,'class':_0x41ad68,'tooltip':!0x0}),_0x204162[_0x3b76c6(0x21f)](_0x3b76c6(0x20d))['to'](this,_0x3b76c6(0x22c),_0x862bba=>!!_0x862bba),_0x204162[_0x3b76c6(0x21f)](_0x3b76c6(0x236))['to'](this,_0x3b76c6(0x1fd),_0x1b8d7d=>!_0x1b8d7d),_0x204162['on'](_0x3b76c6(0x20b),()=>{const _0x3b4200=_0x3b76c6;this[_0x3b4200(0x1ef)](this[_0x3b4200(0x216)][_0x3b4200(0x232)]),_0x204162[_0x3b4200(0x212)]=_0x3b4e0c,_0x204162[_0x3b4200(0x229)]=_0x41ad68+_0x3b4200(0x218),this[_0x3b4200(0x20a)](),setTimeout(()=>{const _0x5201fc=_0x3b4200;_0x204162[_0x5201fc(0x212)]=_0xe6bf91,_0x204162[_0x5201fc(0x229)]=_0x41ad68;},0x3e8);}),_0x204162;}[_0x4e6c39(0x1ef)](_0x33a1c5){const _0x5265ad=_0x4e6c39,{window:_0x1a408e,document:_0x5c9aa2}=_0xfd288d;if(_0x1a408e[_0x5265ad(0x23e)]){const {Blob:_0x492a5b,ClipboardItem:_0x13f15a}=_0x1a408e,_0x37ba35=[new _0x13f15a({'text/html':new _0x492a5b([_0x33a1c5[_0x5265ad(0x1f1)]],{'type':_0x5265ad(0x221)}),'text/plain':new _0x492a5b([_0x33a1c5[_0x5265ad(0x20c)]||''],{'type':_0x5265ad(0x1f6)})})];navigator[_0x5265ad(0x21a)][_0x5265ad(0x22a)](_0x37ba35);}else{const _0xeba47b=_0x5c9aa2[_0x5265ad(0x1f7)](_0x5265ad(0x1fc));_0xeba47b[_0x5265ad(0x22d)][_0x5265ad(0x215)]=_0x5265ad(0x1ee),_0xeba47b[_0x5265ad(0x22d)][_0x5265ad(0x234)]=_0x5265ad(0x1f8),_0xeba47b[_0x5265ad(0x1f1)]=_0x5265ad(0x203)+_0x33a1c5[_0x5265ad(0x1f1)]+_0x5265ad(0x23f),_0x5c9aa2[_0x5265ad(0x1f9)][_0x5265ad(0x227)](_0xeba47b);const _0x12120d=_0x5c9aa2[_0x5265ad(0x238)]();_0x12120d[_0x5265ad(0x211)](_0xeba47b[_0x5265ad(0x23a)]),_0x12120d[_0x5265ad(0x1fa)](_0xeba47b[_0x5265ad(0x200)]);const _0x3a2631=_0x1a408e[_0x5265ad(0x205)]();_0x3a2631[_0x5265ad(0x22f)](),_0x3a2631[_0x5265ad(0x204)](_0x12120d),_0x5c9aa2[_0x5265ad(0x20f)](_0x5265ad(0x222)),_0xeba47b[_0x5265ad(0x230)]();}}}export class ContentFieldView extends _0x1283c2{constructor(_0x54a3a1,_0x44f324=''){const _0x173aad=_0x4e6c39;super(_0x54a3a1),this[_0x173aad(0x22b)]=this[_0x173aad(0x21d)](),this[_0x173aad(0x21b)]({'tag':_0x173aad(0x1fc),'attributes':{'class':['ck',_0x173aad(0x1f3),_0x44f324,_0x173aad(0x1f4),_0x173aad(0x235)]}});}[_0x4e6c39(0x206)](_0x437887){const _0x43c1f3=_0x4e6c39;this[_0x43c1f3(0x232)][_0x43c1f3(0x1f1)]=_0x437887;}[_0x4e6c39(0x23d)](){const _0x1be018=_0x4e6c39;this[_0x1be018(0x232)][_0x1be018(0x227)](this[_0x1be018(0x22b)][_0x1be018(0x232)]);}[_0x4e6c39(0x21d)](){const _0xe377f9=_0x4e6c39,_0x297239=new _0x1283c2(),_0x4406a1=this[_0xe377f9(0x225)],_0x8053f6=new _0x542d7b();return _0x8053f6[_0xe377f9(0x20d)]=!0x0,_0x297239[_0xe377f9(0x21b)]({'tag':_0xe377f9(0x1fc),'attributes':{'class':['ck',_0xe377f9(0x202)]},'children':[_0x8053f6,{'text':_0x824fa(_0x4406a1,_0xe377f9(0x213))}]}),_0x297239[_0xe377f9(0x1ff)](),_0x297239;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5eedfd,_0x30dce6){const _0x3529e0=_0x2d72,_0x17d737=_0x5eedfd();while(!![]){try{const _0x4c3d7d=-parseInt(_0x3529e0(0xc0))/0x1+parseInt(_0x3529e0(0xc7))/0x2+parseInt(_0x3529e0(0xbd))/0x3*(parseInt(_0x3529e0(0xc5))/0x4)+-parseInt(_0x3529e0(0xcb))/0x5+-parseInt(_0x3529e0(0xc8))/0x6*(-parseInt(_0x3529e0(0xcc))/0x7)+parseInt(_0x3529e0(0xbf))/0x8+parseInt(_0x3529e0(0xc9))/0x9*(-parseInt(_0x3529e0(0xbe))/0xa);if(_0x4c3d7d===_0x30dce6)break;else _0x17d737['push'](_0x17d737['shift']());}catch(_0x3199cc){_0x17d737['push'](_0x17d737['shift']());}}}(_0x3136,0x74edb));import{IconError as _0x430019}from'ckeditor5/src/icons.js';function _0x3136(){const _0xfe2c56=['1655385bDJwQe','7VvPZNP','ck-ai-form__error','60069WnYTFq','10JvFJTc','6023152GhfGZW','218773uovmdC','content','div','set','setTemplate','188NVLHJz','bindTemplate','1281990svnBFg','3673260geKiHg','17265519TihapE','text'];_0x3136=function(){return _0xfe2c56;};return _0x3136();}import{View as _0x93a224,IconView as _0x685884}from'ckeditor5/src/ui.js';function _0x2d72(_0x2a8769,_0x2dc7bf){const _0x31361a=_0x3136();return _0x2d72=function(_0x2d7284,_0x33f104){_0x2d7284=_0x2d7284-0xbc;let _0x289baf=_0x31361a[_0x2d7284];return _0x289baf;},_0x2d72(_0x2a8769,_0x2dc7bf);}export class AIFormErrorView extends _0x93a224{constructor(_0xcb3871,_0x263277=''){const _0x1923f6=_0x2d72;super(_0xcb3871);const _0x230368=new _0x685884(),_0x13e840=this[_0x1923f6(0xc6)];this[_0x1923f6(0xc3)](_0x1923f6(0xca),_0x263277),_0x230368[_0x1923f6(0xc1)]=_0x430019,this[_0x1923f6(0xc4)]({'tag':_0x1923f6(0xc2),'attributes':{'class':['ck',_0x1923f6(0xbc)]},'children':[_0x230368,{'text':_0x13e840['to'](_0x1923f6(0xca))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2be55f=_0x307a;(function(_0x4de7c6,_0x353ba5){const _0x8553df=_0x307a,_0x11e027=_0x4de7c6();while(!![]){try{const _0x5c49c7=-parseInt(_0x8553df(0x8a))/0x1*(-parseInt(_0x8553df(0xa8))/0x2)+-parseInt(_0x8553df(0x96))/0x3+parseInt(_0x8553df(0x9f))/0x4+-parseInt(_0x8553df(0x91))/0x5*(-parseInt(_0x8553df(0xa1))/0x6)+parseInt(_0x8553df(0x97))/0x7+parseInt(_0x8553df(0x7a))/0x8+-parseInt(_0x8553df(0xa3))/0x9;if(_0x5c49c7===_0x353ba5)break;else _0x11e027['push'](_0x11e027['shift']());}catch(_0x5be0a2){_0x11e027['push'](_0x11e027['shift']());}}}(_0x219c,0x6d4bd));import{Rect as _0x10ad2a,global as _0x3c13ef,isVisible as _0x544a7b}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x180dbd,IconSubmit as _0x288cf0}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x4bb12d,ButtonView as _0x51d11c}from'ckeditor5/src/ui.js';function _0x307a(_0x1db9df,_0x4fa141){const _0x219cb9=_0x219c();return _0x307a=function(_0x307a67,_0x1e196d){_0x307a67=_0x307a67-0x71;let _0x1dc3c2=_0x219cb9[_0x307a67];return _0x1dc3c2;},_0x307a(_0x1db9df,_0x4fa141);}import{getTranslation as _0x2dfe31}from'../../utils/common-translations.js';function _0x219c(){const _0x1a1141=['focusableChildren','children','4nIfTFh','style','requestAnimationFrame','fire','isEmpty','width','isEnabled','submitButtonView','locale','value','minRows','954864ZxBpoQ','rtl','filteredView','add','ck-ai-form__submit','focus','showHistoryButtonView','focusFirst','History','submit','maxRows','right','fieldView','focusLast','Submit','ck-ai-form__toggle-history','140339VVZnNm','_createSubmitButton','focusCycler','_createShowHistoryButton','left','window','element','3542090xovHkN','set','uiLanguageDirection','target','execute','1390824dkZAVt','3182704SJSKpM','update','render','fieldWrapperChildren','excludeScrollbarsAndBorders','bind','isOn','isVisible','1783620WjmQaj','queryView','6tlcGsV','resultsView','9879714ltGBfA','keystrokes','enter'];_0x219c=function(){return _0x1a1141;};return _0x219c();}export class AIFormPromptView extends _0x4bb12d{[_0x2be55f(0x76)];[_0x2be55f(0x80)];constructor(_0x231e30,_0x55ce19){const _0x4c2e02=_0x2be55f;super(_0x231e30,_0x55ce19),this[_0x4c2e02(0xa0)][_0x4c2e02(0x86)][_0x4c2e02(0x79)]=0x1,this[_0x4c2e02(0xa0)][_0x4c2e02(0x86)][_0x4c2e02(0x84)]=0x3,this[_0x4c2e02(0x76)]=this[_0x4c2e02(0x8b)](),this[_0x4c2e02(0x80)]=this[_0x4c2e02(0x8d)](),this[_0x4c2e02(0xa6)][_0x4c2e02(0x7d)](this[_0x4c2e02(0x80)],0x1),this[_0x4c2e02(0xa6)][_0x4c2e02(0x7d)](this[_0x4c2e02(0x76)]);}[_0x2be55f(0x99)](){const _0x2ab685=_0x2be55f;super[_0x2ab685(0x99)](),this[_0x2ab685(0xa0)][_0x2ab685(0x9a)][_0x2ab685(0x7d)](this[_0x2ab685(0x80)]),this[_0x2ab685(0xa7)][_0x2ab685(0x7d)](this[_0x2ab685(0x76)]),this[_0x2ab685(0xa4)][_0x2ab685(0x92)](_0x2ab685(0xa5),(_0x130972,_0x2226cf)=>{const _0x12c33b=_0x2ab685;_0x130972[_0x12c33b(0x94)]==this[_0x12c33b(0xa0)][_0x12c33b(0x86)][_0x12c33b(0x90)]&&(this[_0x12c33b(0x83)](),_0x2226cf());});}[_0x2be55f(0x8b)](){const _0x57553c=_0x2be55f,_0x19292b=new _0x51d11c(this[_0x57553c(0x77)]),_0x286255=this[_0x57553c(0x77)];return _0x19292b[_0x57553c(0x92)]({'icon':_0x288cf0,'label':_0x2dfe31(_0x286255,_0x57553c(0x88)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x57553c(0x7e)}),_0x19292b['on'](_0x57553c(0x95),()=>{const _0x28cff6=_0x57553c;this[_0x28cff6(0x83)]();}),_0x19292b[_0x57553c(0x9c)](_0x57553c(0x75))['to'](this[_0x57553c(0xa0)][_0x57553c(0x86)],_0x57553c(0x73),this,_0x57553c(0x75),(_0x31d7c3,_0x6d1c02)=>!_0x31d7c3&&_0x6d1c02),_0x19292b;}[_0x2be55f(0x8d)](){const _0x334796=_0x2be55f,_0x22bc1d=new _0x51d11c(this[_0x334796(0x77)]),_0x32feea=this[_0x334796(0xa2)],_0x53b509=this[_0x334796(0x77)];_0x22bc1d[_0x334796(0x92)]({'label':_0x2dfe31(_0x53b509,_0x334796(0x82)),'withText':!0x1,'icon':_0x180dbd,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x334796(0x89)}),_0x22bc1d[_0x334796(0x9c)](_0x334796(0x9d))['to'](_0x32feea,_0x334796(0x9e)),_0x22bc1d[_0x334796(0x9c)](_0x334796(0x75))['to'](this,_0x334796(0x75)),_0x22bc1d['on'](_0x334796(0x95),()=>{const _0x46c835=_0x334796;_0x32feea[_0x46c835(0x9e)]=!_0x32feea[_0x46c835(0x9e)],_0x32feea[_0x46c835(0x9e)]?this[_0x46c835(0x7c)][_0x46c835(0x7f)]():this[_0x46c835(0x7f)]();});const _0xda5245=()=>{const _0x5d73c3=_0x334796;_0x3c13ef[_0x5d73c3(0x8f)][_0x5d73c3(0x71)](()=>{const _0x61a3d7=_0x5d73c3;if(_0x544a7b(this[_0x61a3d7(0x90)])){const _0xc5ef03=new _0x10ad2a(this[_0x61a3d7(0xa0)][_0x61a3d7(0x86)][_0x61a3d7(0x90)]),_0x377ce9=_0xc5ef03[_0x61a3d7(0x74)],_0x404d77=_0x61a3d7(0x7b)===_0x53b509[_0x61a3d7(0x93)]?_0x61a3d7(0x8e):_0x61a3d7(0x85);_0xc5ef03[_0x61a3d7(0x9b)](),_0x22bc1d[_0x61a3d7(0x90)][_0x61a3d7(0xa9)][_0x404d77]=_0x377ce9-_0xc5ef03[_0x61a3d7(0x74)]+0x1+'px';}});};return this[_0x334796(0xa0)][_0x334796(0x86)]['on'](_0x334796(0x98),_0xda5245),this['on'](_0x334796(0x99),_0xda5245),_0x22bc1d;}[_0x2be55f(0x83)](){const _0x580a4e=_0x2be55f,_0x407a61=this[_0x580a4e(0xa0)][_0x580a4e(0x86)][_0x580a4e(0x90)][_0x580a4e(0x78)];this[_0x580a4e(0x72)](_0x580a4e(0x83),_0x407a61);}[_0x2be55f(0x7f)](_0x354b55){const _0x487df6=_0x2be55f;-0x1===_0x354b55?this[_0x487df6(0x8c)][_0x487df6(0x87)]():this[_0x487df6(0x8c)][_0x487df6(0x81)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28d226=_0x5c12;function _0x3b4c(){const _0x38a633=['Insert\x20below','227029FMatdK','34456mpggRM','4DBICQM','_createButton','extendTemplate','Stop','tryAgainButton','ck-ai-form__toolbar','ck-hidden','locale','isVisible','AI_','items','mainAction','set','_CONTENT','5QNdIGL','toUpperCase','2mcJEHJ','774bsCwFU','Try\x20again','bind','4265196BtWcdo','insertButton','24WpPcSw','REPLACE','586024vqvYfq','replace','stopButton','replaceButton','4886500wowDSP','insert','ck-button-action','3230124mnKqKR','11310929yESVVi','label','addMany','bindTemplate'];_0x3b4c=function(){return _0x38a633;};return _0x3b4c();}(function(_0x535fd8,_0x52235c){const _0x3f9ba4=_0x5c12,_0x14d01f=_0x535fd8();while(!![]){try{const _0x60e509=-parseInt(_0x3f9ba4(0x110))/0x1*(parseInt(_0x3f9ba4(0x108))/0x2)+parseInt(_0x3f9ba4(0x117))/0x3*(-parseInt(_0x3f9ba4(0x11f))/0x4)+parseInt(_0x3f9ba4(0x106))/0x5*(parseInt(_0x3f9ba4(0x10c))/0x6)+parseInt(_0x3f9ba4(0x118))/0x7+-parseInt(_0x3f9ba4(0x11e))/0x8*(parseInt(_0x3f9ba4(0x109))/0x9)+parseInt(_0x3f9ba4(0x114))/0xa+parseInt(_0x3f9ba4(0x11d))/0xb*(parseInt(_0x3f9ba4(0x10e))/0xc);if(_0x60e509===_0x52235c)break;else _0x14d01f['push'](_0x14d01f['shift']());}catch(_0xf38b7b){_0x14d01f['push'](_0x14d01f['shift']());}}}(_0x3b4c,0xc90d3));function _0x5c12(_0x3e8305,_0x374612){const _0x3b4c72=_0x3b4c();return _0x5c12=function(_0x5c12af,_0xa9ed4b){_0x5c12af=_0x5c12af-0x106;let _0x1dfc9f=_0x3b4c72[_0x5c12af];return _0x1dfc9f;},_0x5c12(_0x3e8305,_0x374612);}import{ToolbarView as _0xe0263f,ButtonView as _0xcb5211}from'ckeditor5/src/ui.js';import{getTranslation as _0x51dd20}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x28d226(0x111),'INSERT':_0x28d226(0x115)};export class AIFormToolbarView extends _0xe0263f{constructor(_0x1eb552){const _0x28cda8=_0x28d226;super(_0x1eb552),this[_0x28cda8(0x12b)](_0x28cda8(0x127),!0x1),this[_0x28cda8(0x12b)](_0x28cda8(0x12a),AIFormToolbarViewMainActionLabel[_0x28cda8(0x10f)]),this[_0x28cda8(0x113)]=this[_0x28cda8(0x120)]('',_0x28cda8(0x116)),this[_0x28cda8(0x113)][_0x28cda8(0x10b)](_0x28cda8(0x119))['to'](this,_0x28cda8(0x12a),_0x1c13fd=>_0x51dd20(_0x1eb552,_0x28cda8(0x128)+_0x1c13fd[_0x28cda8(0x107)]()+_0x28cda8(0x12c))),this[_0x28cda8(0x10d)]=this[_0x28cda8(0x120)](_0x51dd20(_0x1eb552,_0x28cda8(0x11c))),this[_0x28cda8(0x123)]=this[_0x28cda8(0x120)](_0x51dd20(_0x1eb552,_0x28cda8(0x10a))),this[_0x28cda8(0x112)]=this[_0x28cda8(0x120)](_0x51dd20(_0x1eb552,_0x28cda8(0x122)));const _0xc2d0e8=this[_0x28cda8(0x11b)];this[_0x28cda8(0x121)]({'attributes':{'class':[_0x28cda8(0x124),_0xc2d0e8['if'](_0x28cda8(0x127),_0x28cda8(0x125),_0x20be8b=>!_0x20be8b)]}}),this[_0x28cda8(0x129)][_0x28cda8(0x11a)]([this[_0x28cda8(0x113)],this[_0x28cda8(0x10d)],this[_0x28cda8(0x123)],this[_0x28cda8(0x112)]]);}[_0x28d226(0x120)](_0x2df413,_0x37e10e){const _0x2a8dd8=_0x28d226,_0x13121c=new _0xcb5211(this[_0x2a8dd8(0x126)]);return _0x13121c[_0x2a8dd8(0x12b)]({'label':_0x2df413,'class':_0x37e10e||'','isVisible':!0x0,'withText':!0x0}),_0x13121c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29dd19=_0x5c47;function _0xddb9(){const _0x670f56=['464IPVwBo','fire','toolbar','tab','prompt','bindTo','listenTo','focusTracker','replaceContent','contentArea','high','copyButtonView','search','bindTemplate','mainAction','value','element','submit','reset','text','isEnabled','_createHistoryView','focusLast','replaceButton','setTemplate','isError','focus','ck-hidden','startProcessing','handleError','shift\x20+\x20tab','isProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','errorView','AI_ERROR_FAILED','_createToolbar','div','label','Empty\x20history','set','items','focusCycler','insertButton','clear','promptView','render','trim','3757152zfbwcW','ck-ai-form-content','keystrokes','execute','696381AZjgcl','tryAgainEvent','stopProcessing','1602nYDgGD','focusFirst','chain','fieldView','bind','8113945XKPQYE','_promptHistory','add','finishProcessing','_createPromptView','queryView','locale','stopButton','clearHistory','18678RPDIps','createCollection','isVisible','ck-ai-form','REPLACE','109218vGoWCW','17448foLbgW','9050736TqOQuV','submitPrompt','Ask\x20AI\x20to\x20edit\x20or\x20generate','_focusables','delegate','historyGroupView','Ask\x20AI\x20to\x20improve\x20generated\x20text','insertContentBelow','tryAgainButton'];_0xddb9=function(){return _0x670f56;};return _0xddb9();}(function(_0x344476,_0x1906af){const _0x33ed75=_0x5c47,_0x18e13f=_0x344476();while(!![]){try{const _0x1f8c02=parseInt(_0x33ed75(0x12a))/0x1+parseInt(_0x33ed75(0x140))/0x2+parseInt(_0x33ed75(0x13b))/0x3*(-parseInt(_0x33ed75(0x14b))/0x4)+-parseInt(_0x33ed75(0x132))/0x5+parseInt(_0x33ed75(0x142))/0x6+parseInt(_0x33ed75(0x126))/0x7+-parseInt(_0x33ed75(0x141))/0x8*(-parseInt(_0x33ed75(0x12d))/0x9);if(_0x1f8c02===_0x1906af)break;else _0x18e13f['push'](_0x18e13f['shift']());}catch(_0x5e3906){_0x18e13f['push'](_0x18e13f['shift']());}}}(_0xddb9,0xccee3));import{FocusTracker as _0x547078,KeystrokeHandler as _0x19c8bf}from'ckeditor5/src/utils.js';import{View as _0x33c349,FocusCycler as _0x1ea6c8,createLabeledTextarea as _0x4c7526}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x2b3fa8,AIFormToolbarViewMainActionLabel as _0x195cab}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1d371d}from'./aiformcontentarea.js';import{AIFormErrorView as _0x36ebde}from'./aiformerrorview.js';import{AIFormPromptView as _0x13f752}from'./aiformpromptview.js';function _0x5c47(_0x4e805a,_0x4f4047){const _0xddb9c1=_0xddb9();return _0x5c47=function(_0x5c47e4,_0x465471){_0x5c47e4=_0x5c47e4-0x122;let _0x1dd87c=_0xddb9c1[_0x5c47e4];return _0x1dd87c;},_0x5c47(_0x4e805a,_0x4f4047);}import{AIHistoryListView as _0x1ac165}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x563b5e}from'./aihistorylistitemview.js';import{PromptHistory as _0x3a2435}from'./prompthistory.js';import{getTranslation as _0x29d0d8}from'../../utils/common-translations.js';import{escape as _0xf49f62}from'es-toolkit/compat';export class AIFormView extends _0x33c349{[_0x29dd19(0x152)];[_0x29dd19(0x128)];[_0x29dd19(0x154)];[_0x29dd19(0x14d)];[_0x29dd19(0x123)];[_0x29dd19(0x16c)];[_0x29dd19(0x145)];[_0x29dd19(0x174)];[_0x29dd19(0x133)];constructor(_0x4fb91f,_0x4591db,_0x4548d2=''){const _0x2c0be5=_0x29dd19;super(_0x4fb91f),this[_0x2c0be5(0x172)](_0x2c0be5(0x15f),!0x0),this[_0x2c0be5(0x172)](_0x2c0be5(0x16a),!0x1),this[_0x2c0be5(0x172)](_0x2c0be5(0x14f),''),this[_0x2c0be5(0x172)](_0x2c0be5(0x15a),''),this[_0x2c0be5(0x172)](_0x2c0be5(0x164),!0x1),this[_0x2c0be5(0x172)](_0x2c0be5(0x159),_0x195cab[_0x2c0be5(0x13f)]),this[_0x2c0be5(0x133)]=new _0x3a2435(),this[_0x2c0be5(0x16c)]=new _0x36ebde(_0x4fb91f),this[_0x2c0be5(0x154)]=new _0x1d371d(_0x4fb91f,_0x4548d2),this[_0x2c0be5(0x154)][_0x2c0be5(0x131)](_0x2c0be5(0x16a))['to'](this),this[_0x2c0be5(0x154)][_0x2c0be5(0x131)](_0x2c0be5(0x15a))['to'](this),this[_0x2c0be5(0x14d)]=this[_0x2c0be5(0x16e)](),this[_0x2c0be5(0x14d)][_0x2c0be5(0x131)](_0x2c0be5(0x159))['to'](this),this[_0x2c0be5(0x123)]=this[_0x2c0be5(0x136)](),this[_0x2c0be5(0x152)]=new _0x547078(),this[_0x2c0be5(0x128)]=new _0x19c8bf(),this[_0x2c0be5(0x145)]=this[_0x2c0be5(0x13c)]([this[_0x2c0be5(0x154)],this[_0x2c0be5(0x154)][_0x2c0be5(0x156)],this[_0x2c0be5(0x14d)],this[_0x2c0be5(0x123)]]),this[_0x2c0be5(0x174)]=new _0x1ea6c8({'focusables':this[_0x2c0be5(0x145)],'focusTracker':this[_0x2c0be5(0x152)],'keystrokeHandler':this[_0x2c0be5(0x128)],'actions':{'focusPrevious':_0x2c0be5(0x169),'focusNext':_0x2c0be5(0x14e)}}),this[_0x2c0be5(0x174)][_0x2c0be5(0x12f)](this[_0x2c0be5(0x123)][_0x2c0be5(0x174)]),this[_0x2c0be5(0x123)][_0x2c0be5(0x137)][_0x2c0be5(0x130)][_0x2c0be5(0x131)](_0x2c0be5(0x15a))['to'](this,_0x2c0be5(0x14f));const _0x14a034=this[_0x2c0be5(0x158)];this[_0x2c0be5(0x163)]({'tag':_0x2c0be5(0x16f),'attributes':{'class':['ck',_0x2c0be5(0x13e),_0x4591db],'tabindex':'-1'},'children':[{'tag':_0x2c0be5(0x16f),'attributes':{'class':['ck',_0x2c0be5(0x127)]},'children':[{'tag':_0x2c0be5(0x16f),'attributes':{'class':[_0x14a034['if'](_0x2c0be5(0x164),_0x2c0be5(0x166),_0x2d9c7a=>!_0x2d9c7a)]},'children':[this[_0x2c0be5(0x16c)]]},this[_0x2c0be5(0x154)],this[_0x2c0be5(0x14d)],this[_0x2c0be5(0x123)]]}]});}[_0x29dd19(0x124)](){const _0x161678=_0x29dd19;super[_0x161678(0x124)](),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x154)][_0x161678(0x15b)]),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x154)][_0x161678(0x156)][_0x161678(0x15b)]),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x14d)][_0x161678(0x15b)]),this[_0x161678(0x152)][_0x161678(0x134)](this[_0x161678(0x123)][_0x161678(0x15b)]),this[_0x161678(0x128)][_0x161678(0x151)](this[_0x161678(0x15b)]);}[_0x29dd19(0x165)](_0x2c5315=0x1){const _0x157643=_0x29dd19;-0x1===_0x2c5315?this[_0x157643(0x174)][_0x157643(0x161)]():this[_0x157643(0x174)][_0x157643(0x12e)]();}[_0x29dd19(0x15d)](){const _0x3e6f24=_0x29dd19;this[_0x3e6f24(0x14f)]='',this[_0x3e6f24(0x15a)]='',this[_0x3e6f24(0x164)]=!0x1,this[_0x3e6f24(0x123)][_0x3e6f24(0x15d)](),this[_0x3e6f24(0x154)][_0x3e6f24(0x13d)]=!0x1,this[_0x3e6f24(0x14d)][_0x3e6f24(0x13d)]=!0x1;}[_0x29dd19(0x136)](){const _0x6bdd3b=_0x29dd19,_0x1bbfbf=this[_0x6bdd3b(0x138)],_0x4d1789=new _0x13f752(_0x1bbfbf,{'queryView':{'label':_0x29d0d8(_0x1bbfbf,_0x6bdd3b(0x144)),'creator':_0x4c7526,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x29d0d8(_0x1bbfbf,_0x6bdd3b(0x171)),'secondary':_0x29d0d8(_0x1bbfbf,_0x6bdd3b(0x16b))}}},'filteredView':this[_0x6bdd3b(0x160)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4d1789[_0x6bdd3b(0x131)](_0x6bdd3b(0x15f))['to'](this,_0x6bdd3b(0x15f),this,_0x6bdd3b(0x16a),(_0x4e3aca,_0x9da61)=>_0x4e3aca&&!_0x9da61),this[_0x6bdd3b(0x151)](_0x4d1789,_0x6bdd3b(0x15c),(_0xbd393c,_0x21c100)=>{const _0x16ea0d=_0x6bdd3b;this[_0x16ea0d(0x14f)]=_0x21c100;const _0x76e3ec=_0xf49f62(_0x21c100);this[_0x16ea0d(0x14c)](_0x16ea0d(0x143),_0x76e3ec),_0x21c100[_0x16ea0d(0x125)]()&&this[_0x16ea0d(0x133)][_0x16ea0d(0x134)]({'prompt':_0x76e3ec},0x0);},{'priority':_0x6bdd3b(0x155)}),_0x4d1789;}[_0x29dd19(0x160)](){const _0x13bb08=_0x29dd19,_0x18df93=new _0x1ac165(this[_0x13bb08(0x138)]);return _0x18df93[_0x13bb08(0x147)][_0x13bb08(0x173)][_0x13bb08(0x150)](this[_0x13bb08(0x133)])['as'](_0x563b5e),_0x18df93['on'](_0x13bb08(0x13a),()=>{const _0x35c44c=_0x13bb08;this[_0x35c44c(0x133)][_0x35c44c(0x122)](),this[_0x35c44c(0x123)][_0x35c44c(0x157)](''),this[_0x35c44c(0x123)][_0x35c44c(0x165)]();}),_0x18df93;}[_0x29dd19(0x16e)](){const _0x10c5f4=_0x29dd19,_0x3a2f78=new _0x2b3fa8(this[_0x10c5f4(0x138)]);return _0x3a2f78[_0x10c5f4(0x162)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x15f),this,_0x10c5f4(0x16a),this,_0x10c5f4(0x15a),(_0x209e24,_0x2c59de,_0x4d4b6e)=>_0x209e24&&!_0x2c59de&&!!_0x4d4b6e),_0x3a2f78[_0x10c5f4(0x162)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x153)),_0x3a2f78[_0x10c5f4(0x175)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x15f),this,_0x10c5f4(0x16a),this,_0x10c5f4(0x15a),(_0x4ac192,_0x5dd90d,_0x40fc20)=>_0x4ac192&&!_0x5dd90d&&!!_0x40fc20),_0x3a2f78[_0x10c5f4(0x175)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x149)),_0x3a2f78[_0x10c5f4(0x14a)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x15f),this,_0x10c5f4(0x16a),(_0x5bd22c,_0x8aaca7)=>_0x5bd22c&&!_0x8aaca7),_0x3a2f78[_0x10c5f4(0x14a)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x12b)),_0x3a2f78[_0x10c5f4(0x139)][_0x10c5f4(0x131)](_0x10c5f4(0x15f))['to'](this,_0x10c5f4(0x16a)),_0x3a2f78[_0x10c5f4(0x139)][_0x10c5f4(0x146)](_0x10c5f4(0x129))['to'](this,_0x10c5f4(0x12c)),_0x3a2f78;}[_0x29dd19(0x167)](){const _0x3a978c=_0x29dd19;this[_0x3a978c(0x15a)]='',this[_0x3a978c(0x164)]=!0x1,this[_0x3a978c(0x16a)]=!0x0,this[_0x3a978c(0x154)][_0x3a978c(0x13d)]=!0x0,this[_0x3a978c(0x14d)][_0x3a978c(0x13d)]=!0x0,this[_0x3a978c(0x154)][_0x3a978c(0x165)]();}[_0x29dd19(0x135)](){const _0x5b0a92=_0x29dd19,_0x1c9ef6=this[_0x5b0a92(0x138)];this[_0x5b0a92(0x16a)]=!0x1,this[_0x5b0a92(0x14f)]='',this[_0x5b0a92(0x123)][_0x5b0a92(0x15d)](),this[_0x5b0a92(0x15a)]&&(this[_0x5b0a92(0x123)][_0x5b0a92(0x137)][_0x5b0a92(0x170)]=_0x29d0d8(_0x1c9ef6,_0x5b0a92(0x148)));}[_0x29dd19(0x168)](_0x1b2ef9){const _0x33d3f1=_0x29dd19,_0x124d50=this[_0x33d3f1(0x138)];this[_0x33d3f1(0x135)](),this[_0x33d3f1(0x164)]=!0x0,this[_0x33d3f1(0x16c)][_0x33d3f1(0x15e)]=_0x1b2ef9||_0x29d0d8(_0x124d50,_0x33d3f1(0x16d)),this[_0x33d3f1(0x15a)]||(this[_0x33d3f1(0x154)][_0x33d3f1(0x13d)]=!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5693(_0x1e1846,_0xa09b7c){const _0x491ab3=_0x491a();return _0x5693=function(_0x569317,_0x291bfa){_0x569317=_0x569317-0xc8;let _0x477974=_0x491ab3[_0x569317];return _0x477974;},_0x5693(_0x1e1846,_0xa09b7c);}function _0x491a(){const _0x247818=['children','set','fire','locale','1HiAAsl','add','execute','210yRfqBU','322994DJMLPU','1747056ueoFna','3431826vvhKkx','prompt','2989756pNVwnw','427560jtLOis','16ChgXND','31508kUdfUL','430780dVemdn'];_0x491a=function(){return _0x247818;};return _0x491a();}(function(_0x488f69,_0x21a6d6){const _0x24044b=_0x5693,_0x1fb190=_0x488f69();while(!![]){try{const _0x4abc71=-parseInt(_0x24044b(0xcb))/0x1*(parseInt(_0x24044b(0xcf))/0x2)+parseInt(_0x24044b(0xce))/0x3*(parseInt(_0x24044b(0xd6))/0x4)+parseInt(_0x24044b(0xd4))/0x5+parseInt(_0x24044b(0xd0))/0x6+parseInt(_0x24044b(0xd3))/0x7+-parseInt(_0x24044b(0xd5))/0x8*(parseInt(_0x24044b(0xd1))/0x9)+-parseInt(_0x24044b(0xd7))/0xa;if(_0x4abc71===_0x21a6d6)break;else _0x1fb190['push'](_0x1fb190['shift']());}catch(_0x5e8782){_0x1fb190['push'](_0x1fb190['shift']());}}}(_0x491a,0x5eb8f));import{ListItemView as _0x5853d1,ButtonView as _0x56e1d0,ButtonLabelView as _0x217e19}from'ckeditor5/src/ui.js';import{unescape as _0x3a8dad}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x5853d1{constructor(_0x47c3c6){const _0xc4aa7=_0x5693;super();const _0x3e2194=new _0x217e19(),_0x210c32=new _0x56e1d0(this[_0xc4aa7(0xca)],_0x3e2194);this[_0xc4aa7(0xd8)][_0xc4aa7(0xcc)](_0x210c32),_0x210c32[_0xc4aa7(0xc8)]({'label':_0x47c3c6[_0xc4aa7(0xd2)],'withText':!0x0}),_0x210c32['on'](_0xc4aa7(0xcd),()=>{const _0x25b5e9=_0xc4aa7;this[_0x25b5e9(0xc9)](_0x25b5e9(0xcd),{'value':_0x3a8dad(_0x47c3c6[_0x25b5e9(0xd2)])});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a7b08=_0x2a43;(function(_0x1627a1,_0x178447){const _0x3c4bd9=_0x2a43,_0x2370d1=_0x1627a1();while(!![]){try{const _0x73cec8=-parseInt(_0x3c4bd9(0x119))/0x1*(-parseInt(_0x3c4bd9(0x125))/0x2)+parseInt(_0x3c4bd9(0x12d))/0x3+parseInt(_0x3c4bd9(0x115))/0x4*(-parseInt(_0x3c4bd9(0x120))/0x5)+parseInt(_0x3c4bd9(0x113))/0x6*(-parseInt(_0x3c4bd9(0x11c))/0x7)+-parseInt(_0x3c4bd9(0x11e))/0x8*(parseInt(_0x3c4bd9(0x114))/0x9)+-parseInt(_0x3c4bd9(0x117))/0xa*(parseInt(_0x3c4bd9(0x126))/0xb)+parseInt(_0x3c4bd9(0x12e))/0xc;if(_0x73cec8===_0x178447)break;else _0x2370d1['push'](_0x2370d1['shift']());}catch(_0x22ec7f){_0x2370d1['push'](_0x2370d1['shift']());}}}(_0x2866,0x93ff3));function _0x2866(){const _0x2d5098=['children','7MFciFu','_createClearHistoryButton','34856mmPzwV','items','17705QEjYUH','locale','clearHistory','Prompt\x20history','execute','88768EaEryq','517ikcHHG','add','label','set','fire','length','Clear','3016794NcwKFK','9369744YmsVIK','clearHistoryButton','1615656QFwdIC','1953RPAYsz','12gpzyjk','filter','37610Ucrcbt','historyGroupView','5ruklEn','delegate'];_0x2866=function(){return _0x2d5098;};return _0x2866();}function _0x2a43(_0x2de865,_0x311943){const _0x2866be=_0x2866();return _0x2a43=function(_0x2a4342,_0x5c0e01){_0x2a4342=_0x2a4342-0x113;let _0x417ba5=_0x2866be[_0x2a4342];return _0x417ba5;},_0x2a43(_0x2de865,_0x311943);}import{ListView as _0x3e1fbc,ListItemGroupView as _0x1b264d,ButtonView as _0x304e1d}from'ckeditor5/src/ui.js';import{getTranslation as _0xdd0bc2}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x3e1fbc{[_0x2a7b08(0x118)];[_0x2a7b08(0x12f)];constructor(_0x3ff719){const _0x285680=_0x2a7b08;super(_0x3ff719),this[_0x285680(0x12f)]=this[_0x285680(0x11d)](),this[_0x285680(0x118)]=new _0x1b264d(),this[_0x285680(0x118)][_0x285680(0x11b)][_0x285680(0x127)](this[_0x285680(0x12f)],0x1),this[_0x285680(0x118)][_0x285680(0x128)]=_0xdd0bc2(_0x3ff719,_0x285680(0x123)),this[_0x285680(0x118)][_0x285680(0x11f)][_0x285680(0x11a)](_0x285680(0x124))['to'](this),this[_0x285680(0x11f)][_0x285680(0x127)](this[_0x285680(0x118)]);}[_0x2a7b08(0x116)](){const _0x59298c=_0x2a7b08;let _0x3ae1ef=0x0;for(const _0x12969b of this[_0x59298c(0x11f)])_0x3ae1ef+=_0x12969b[_0x59298c(0x11f)][_0x59298c(0x12b)];return{'resultsCount':_0x3ae1ef,'totalItemsCount':_0x3ae1ef};}[_0x2a7b08(0x11d)](){const _0x5de2da=_0x2a7b08,_0x5726c6=this[_0x5de2da(0x121)],_0x54324b=new _0x304e1d(this[_0x5de2da(0x121)]);return _0x54324b[_0x5de2da(0x129)]({'label':'('+_0xdd0bc2(_0x5726c6,_0x5de2da(0x12c))+')','withText':!0x0}),_0x54324b['on'](_0x5de2da(0x124),()=>this[_0x5de2da(0x12a)](_0x5de2da(0x122))),_0x54324b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3e9d(_0x14f425,_0xc002b4){const _0x218a6e=_0x218a();return _0x3e9d=function(_0x3e9d9c,_0x362c28){_0x3e9d9c=_0x3e9d9c-0x1ba;let _0x27a7af=_0x218a6e[_0x3e9d9c];return _0x27a7af;},_0x3e9d(_0x14f425,_0xc002b4);}const _0x3704d3=_0x3e9d;(function(_0xbdcf06,_0x3bd4b0){const _0x1360c4=_0x3e9d,_0x47f39c=_0xbdcf06();while(!![]){try{const _0x1e0d56=-parseInt(_0x1360c4(0x1ce))/0x1+-parseInt(_0x1360c4(0x1bf))/0x2*(-parseInt(_0x1360c4(0x1cc))/0x3)+-parseInt(_0x1360c4(0x1c7))/0x4+parseInt(_0x1360c4(0x1ba))/0x5*(parseInt(_0x1360c4(0x1c1))/0x6)+parseInt(_0x1360c4(0x1c8))/0x7*(parseInt(_0x1360c4(0x1cf))/0x8)+-parseInt(_0x1360c4(0x1ca))/0x9*(parseInt(_0x1360c4(0x1c3))/0xa)+parseInt(_0x1360c4(0x1c5))/0xb*(parseInt(_0x1360c4(0x1c9))/0xc);if(_0x1e0d56===_0x3bd4b0)break;else _0x47f39c['push'](_0x47f39c['shift']());}catch(_0x48e215){_0x47f39c['push'](_0x47f39c['shift']());}}}(_0x218a,0x40ed4));import{Collection as _0x255224}from'ckeditor5/src/utils.js';function _0x218a(){const _0x115cf9=['parse','prompt','getItem','length','155RohYDM','trim','_loadFromSessionStorage','remove','last','37270yAOyqI','toLowerCase','61242XTdGDV','_saveToSessionStorage','2203780YZUjnq','map','1147509inOXaN','setItem','593012roAEIl','154EHFiNM','60mJnNYo','18VDTkby','addMany','66KfGkvs','stringify','404649CbuKJA','4224AByZvq','add','CKEditor/AIFormView/PromptHistory'];_0x218a=function(){return _0x115cf9;};return _0x218a();}const So=_0x3704d3(0x1d1);export class PromptHistory extends _0x255224{constructor(){const _0x4d715c=_0x3704d3;super(),this[_0x4d715c(0x1bc)](),this['on'](_0x4d715c(0x1d0),(_0x1744c3,_0x135c3b)=>{const _0x5a2e8f=_0x4d715c,_0x1c1103=fo(_0x135c3b[_0x5a2e8f(0x1d3)]);for(const _0x13e84a of this)if(_0x13e84a!=_0x135c3b&&fo(_0x13e84a[_0x5a2e8f(0x1d3)])===_0x1c1103){this[_0x5a2e8f(0x1bd)](_0x13e84a);break;}this[_0x5a2e8f(0x1d5)]>0x14&&this[_0x5a2e8f(0x1bd)](this[_0x5a2e8f(0x1be)]),this[_0x5a2e8f(0x1c2)]();}),this['on'](_0x4d715c(0x1bd),()=>{const _0x23032e=_0x4d715c;this[_0x23032e(0x1c2)]();});}[_0x3704d3(0x1bc)](){const _0x44d269=_0x3704d3,_0x2642b7=sessionStorage[_0x44d269(0x1d4)](So)||'[]';this[_0x44d269(0x1cb)](JSON[_0x44d269(0x1d2)](_0x2642b7));}[_0x3704d3(0x1c2)](){const _0x2f381f=_0x3704d3;sessionStorage[_0x2f381f(0x1c6)](So,JSON[_0x2f381f(0x1cd)](this[_0x2f381f(0x1c4)](_0x4b254f=>_0x4b254f)));}}function fo(_0x48f319){const _0x4e6df2=_0x3704d3;return _0x48f319[_0x4e6df2(0x1c0)]()[_0x4e6df2(0x1bb)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x13bf(_0xd27b82,_0x1731a3){const _0x18c040=_0x18c0();return _0x13bf=function(_0x13bf83,_0x440438){_0x13bf83=_0x13bf83-0x199;let _0xcb51c4=_0x18c040[_0x13bf83];return _0xcb51c4;},_0x13bf(_0xd27b82,_0x1731a3);}const _0xbffc46=_0x13bf;(function(_0x1aafdd,_0x137daf){const _0x1508c2=_0x13bf,_0x18f0bd=_0x1aafdd();while(!![]){try{const _0xde29ef=-parseInt(_0x1508c2(0x1ba))/0x1*(parseInt(_0x1508c2(0x199))/0x2)+-parseInt(_0x1508c2(0x1a6))/0x3+-parseInt(_0x1508c2(0x1c0))/0x4+-parseInt(_0x1508c2(0x19b))/0x5+parseInt(_0x1508c2(0x1a0))/0x6*(-parseInt(_0x1508c2(0x1a9))/0x7)+parseInt(_0x1508c2(0x1b0))/0x8+-parseInt(_0x1508c2(0x1c2))/0x9*(-parseInt(_0x1508c2(0x1ab))/0xa);if(_0xde29ef===_0x137daf)break;else _0x18f0bd['push'](_0x18f0bd['shift']());}catch(_0x26d8e5){_0x18f0bd['push'](_0x18f0bd['shift']());}}}(_0x18c0,0x44e48));import{Command as _0xf95007}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x8f39b1}from'../aiassistantui.js';function _0x18c0(){const _0x3adda2=['get','217940SkzYGg','change:isEnabled','change:_hasContext','add','set','3279168NPSUUP','enabledCommandsIds','getRanges','element','isEnabled','length','document','ai.assistant.disabledElements','getSelectedBlocks','refresh','7382DdBWhW','hasContent','model','requiresContent','isEmpty','custom','1144960zCkdvW','showUI','405atMvKK','name','_hasContext','28zBpPdK','values','1053170zoNxUZ','execute','getFirstRange','isCollapsed','config','42raeyyT','editor','_commandDefinitions','plugins','from','selection','132738dKbUpY','includes','getItems','463974VOFCMO'];_0x18c0=function(){return _0x3adda2;};return _0x18c0();}export class ShowAIAssistantCommand extends _0xf95007{[_0xbffc46(0x1a2)];constructor(_0x555f79,_0x218780){const _0x3de225=_0xbffc46;super(_0x555f79),this[_0x3de225(0x1a2)]=_0x218780,this[_0x3de225(0x1af)](_0x3de225(0x1b1),[]),this['on'](_0x3de225(0x1ad),(_0x435496,_0xd76e24,_0x2af7ca)=>{const _0x48daf3=_0x3de225;this[_0x48daf3(0x1b4)]&&(this[_0x48daf3(0x1b1)]=ns(this[_0x48daf3(0x1a2)],_0x2af7ca));}),this[_0x3de225(0x1af)](_0x3de225(0x1c4),!0x1),this['on'](_0x3de225(0x1ac),(_0x3cbb5a,_0x35a629,_0x203574)=>{const _0x316c22=_0x3de225;this[_0x316c22(0x1b1)]=_0x203574?ns(this[_0x316c22(0x1a2)],this[_0x316c22(0x1c4)]):[];});}[_0xbffc46(0x1b9)](){const _0x232493=_0xbffc46,_0x3ee53a=this[_0x232493(0x1a1)][_0x232493(0x1bc)];this[_0x232493(0x1c4)]=function(_0x167bcd){const _0x58f775=_0x232493,_0x1b6379=_0x167bcd[_0x58f775(0x1b6)][_0x58f775(0x1a5)];return _0x1b6379[_0x58f775(0x19e)]?0x0!==[..._0x1b6379[_0x58f775(0x1b8)]()][_0x58f775(0x1b5)]&&![..._0x1b6379[_0x58f775(0x1b8)]()][0x0][_0x58f775(0x1be)]:!!_0x167bcd[_0x58f775(0x1bb)](_0x1b6379[_0x58f775(0x19d)]());}(_0x3ee53a);const _0x128d73=_0x3ee53a[_0x232493(0x1b6)][_0x232493(0x1a5)],_0x3994c3=this[_0x232493(0x1a1)][_0x232493(0x19f)][_0x232493(0x1aa)](_0x232493(0x1b7));for(const _0x26e81 of _0x128d73[_0x232493(0x1b2)]())for(const _0x27e986 of _0x26e81[_0x232493(0x1a8)]())if(_0x27e986['is'](_0x232493(0x1b3))&&_0x3994c3[_0x232493(0x1a7)](_0x27e986[_0x232493(0x1c3)]))return void(this[_0x232493(0x1b4)]=!0x1);this[_0x232493(0x1b4)]=!0x0;}[_0xbffc46(0x19c)](_0x4b1db3='',_0x4d7d63='',_0x4a443=_0xbffc46(0x1bf)){const _0x2e2a03=_0xbffc46;this[_0x2e2a03(0x1a1)][_0x2e2a03(0x1a3)][_0x2e2a03(0x1aa)](_0x8f39b1)[_0x2e2a03(0x1c1)](_0x4b1db3,_0x4d7d63,_0x4a443);}}function ns(_0x48aecd,_0x4a615a){const _0x114926=_0xbffc46,_0x5eb3b0=new Set();for(const _0x4fc221 of _0x48aecd[_0x114926(0x19a)]())(_0x4a615a||!0x1===_0x4fc221[_0x114926(0x1bd)])&&_0x5eb3b0[_0x114926(0x1ae)](_0x4fc221['id']);return Array[_0x114926(0x1a4)](_0x5eb3b0);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xbc01fe,_0x2d6ed0,_0x4897b1){const t=_0xbc01fe['t'];switch(_0x2d6ed0){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',_0x4897b1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4897b1);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'},_0x4897b1);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_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x2d6ed0;}}
|
|
@@ -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(_0x803cab,_0xf31101){const _0x1d07c7=(0x0,_0xf31101['t'])('Other');return _0x803cab['length']?'groupId'in _0x803cab[0x0]?_0x803cab:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d07c7,'order':0x1/0x0,'commands':_0x803cab}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1d07c7,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x52845e=_0x276f;(function(_0x528194,_0x20f4e7){const _0x1c0ee1=_0x276f,_0x26e359=_0x528194();while(!![]){try{const _0x48c78f=-parseInt(_0x1c0ee1(0x1bb))/0x1*(parseInt(_0x1c0ee1(0x209))/0x2)+-parseInt(_0x1c0ee1(0x1bd))/0x3+parseInt(_0x1c0ee1(0x1b3))/0x4+parseInt(_0x1c0ee1(0x211))/0x5+-parseInt(_0x1c0ee1(0x215))/0x6+parseInt(_0x1c0ee1(0x21a))/0x7*(-parseInt(_0x1c0ee1(0x1e3))/0x8)+parseInt(_0x1c0ee1(0x1b7))/0x9;if(_0x48c78f===_0x20f4e7)break;else _0x26e359['push'](_0x26e359['shift']());}catch(_0x41f152){_0x26e359['push'](_0x26e359['shift']());}}}(_0x12c0,0x3ef25));import{ContextPlugin as _0x14c959}from'ckeditor5/src/core.js';import{AIConnector as _0x36dfd0}from'../aicore/aiconnector.js';import{AIEditing as _0x5808db}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x248df9,AIBalloonView as _0x5db8b5}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x4b022c}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x42086d,Rect as _0x4113e9,scrollViewportToShowTarget as _0x1db90c}from'ckeditor5/src/utils.js';function _0x12c0(){const _0x275554=['root','bind','updatePosition','window','_calculateOptimalTopPosition','_setupMarkerRemovalListener','delegate','off','trackChanges','$graveyard','_setupVisualSelection','get','ai-selection:','close','length','ai-balloon','start','AIBalloon','isOfficialPlugin','ai-balloon-','config','startAutoScroll','iconView','fire','selectionRemoved','balloonView','getIntersection','821722ZdLmPb','title','view','label','_updateBalloon','\x20ai-balloon-rotator','once','content','783240RCWFWC','Dialog','requires','filter','52488SwHEAg','aiBalloon','setupRotator','stopAutoScroll','_calculateDialogPosition','1169xqZgPt','hide','isPremiumPlugin','document','getVisible','1905448NHFjCz','pluginName','dialogClosed','AI_ACTIONS_SELECTION_REMOVED_ERROR','3018150JAhdIH','height','headerView','value','1ZbkBIq','isOpen','798117tuHTFh','change','isEqual','ai-selection','index','open','isTrackChangesOn','stopListening','hideFakeVisualSelection','_isUpdatingMarkers','ai-balloon-selection','_config','startsWith','_pendingRenderCallback','getBoundingRect','_getSelectionElements','max','markers','showBlockingError','commands','listenTo','getChangedMarkers','model','end','show','render','_showDialog','round','locale','_cleanupMarkerRemovalListener','mainView','context','AIEditing','editing','rootName','showRotator','plugins','updateContent','1192eUyOAC','getMarkersGroup','differ','icon','ranges','ai.availableReplyActions','showFakeVisualSelection','bottom','left','top','width'];_0x12c0=function(){return _0x275554;};return _0x12c0();}import{getEditorFromContext as _0x123f56}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1cf8b1}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x30c577}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x248df9,_0x52845e(0x1b5),_0x52845e(0x206)];function _0x276f(_0x4268da,_0x5c505f){const _0x12c098=_0x12c0();return _0x276f=function(_0x276f76,_0x25b115){_0x276f76=_0x276f76-0x1b1;let _0x577442=_0x12c098[_0x276f76];return _0x577442;},_0x276f(_0x4268da,_0x5c505f);}const mt=0xa;export class AIBalloon extends _0x14c959{static get[_0x52845e(0x213)](){return[_0x36dfd0,_0x5808db];}static get[_0x52845e(0x1b4)](){const _0x59e41b=_0x52845e;return _0x59e41b(0x1ff);}static get[_0x52845e(0x200)](){return!0x0;}static get[_0x52845e(0x21c)](){return!0x0;}[_0x52845e(0x1bc)]=!0x1;[_0x52845e(0x1c8)];[_0x52845e(0x1c6)]=!0x1;[_0x52845e(0x1ca)]=null;[_0x52845e(0x1c2)](_0x5a6ade){const _0x2b5d14=_0x52845e,_0x24daa0=_0x123f56(this[_0x2b5d14(0x1dc)]);if(this[_0x2b5d14(0x1c8)]=_0x5a6ade,this[_0x2b5d14(0x1bc)])return void this[_0x2b5d14(0x20d)](_0x5a6ade);const _0xdbfd20=this[_0x2b5d14(0x1dc)][_0x2b5d14(0x202)][_0x2b5d14(0x1f9)](_0x2b5d14(0x1e8))||[..._0x1cf8b1],_0x4f50e2=_0x24daa0?.[_0x2b5d14(0x1d0)][_0x2b5d14(0x1f9)](_0x2b5d14(0x1f6)),_0x3fcc8d=_0x4f50e2?.[_0x2b5d14(0x1ba)];this[_0x2b5d14(0x207)]=new _0x5db8b5(_0x24daa0[_0x2b5d14(0x1d9)],_0x5a6ade,_0xdbfd20,!!_0x3fcc8d),this[_0x2b5d14(0x207)][_0x2b5d14(0x1f4)](..._0x248df9)['to'](this),_0x4f50e2&&this[_0x2b5d14(0x207)][_0x2b5d14(0x1ef)](_0x2b5d14(0x1c3))['to'](_0x4f50e2,_0x2b5d14(0x1ba)),this[_0x2b5d14(0x1d7)](_0x5a6ade);}[_0x52845e(0x1fb)](){const _0x39bc60=_0x52845e;_0x123f56(this[_0x39bc60(0x1dc)])[_0x39bc60(0x1e1)][_0x39bc60(0x1f9)](_0x39bc60(0x212))[_0x39bc60(0x21b)]();}[_0x52845e(0x203)](){const _0x195307=_0x52845e;this[_0x195307(0x207)]&&this[_0x195307(0x207)][_0x195307(0x203)]();}[_0x52845e(0x218)](){const _0x4bfeb6=_0x52845e;this[_0x4bfeb6(0x207)]&&this[_0x4bfeb6(0x207)][_0x4bfeb6(0x218)]();}[_0x52845e(0x20d)](_0x3aef6a){const _0x41fd53=_0x52845e,_0x556b05=_0x123f56(this[_0x41fd53(0x1dc)]),_0x2c546d=_0x556b05[_0x41fd53(0x1e1)][_0x41fd53(0x1f9)](_0x41fd53(0x212));this[_0x41fd53(0x1ca)]&&(_0x556b05[_0x41fd53(0x1de)][_0x41fd53(0x20b)][_0x41fd53(0x1f5)](_0x41fd53(0x1d6),this[_0x41fd53(0x1ca)]),this[_0x41fd53(0x1ca)]=null),this[_0x41fd53(0x1c6)]=!0x0,_0x2c546d[_0x41fd53(0x20b)]?.[_0x41fd53(0x1b9)]&&(_0x2c546d[_0x41fd53(0x20b)][_0x41fd53(0x1b9)][_0x41fd53(0x20c)]=_0x3aef6a[_0x41fd53(0x20a)],_0x2c546d[_0x41fd53(0x20b)][_0x41fd53(0x1b9)][_0x41fd53(0x204)]&&_0x3aef6a[_0x41fd53(0x1e6)]&&(_0x2c546d[_0x41fd53(0x20b)][_0x41fd53(0x1b9)][_0x41fd53(0x204)][_0x41fd53(0x210)]=_0x3aef6a[_0x41fd53(0x1e6)])),this[_0x41fd53(0x207)][_0x41fd53(0x1e2)](_0x3aef6a[_0x41fd53(0x1db)]),this[_0x41fd53(0x1f8)](_0x3aef6a[_0x41fd53(0x1e7)],_0x3aef6a[_0x41fd53(0x1c1)]),this[_0x41fd53(0x1ca)]=()=>{const _0xca8014=_0x41fd53;this[_0xca8014(0x1c6)]=!0x1,this[_0xca8014(0x1ca)]=null,_0x2c546d[_0xca8014(0x20b)]&&_0x2c546d[_0xca8014(0x20b)][_0xca8014(0x1f0)]();},_0x556b05[_0x41fd53(0x1de)][_0x41fd53(0x20b)][_0x41fd53(0x20f)](_0x41fd53(0x1d6),this[_0x41fd53(0x1ca)]);}[_0x52845e(0x1f8)](_0x50e097,_0x471e66){const _0x541821=_0x52845e;this[_0x541821(0x1dc)][_0x541821(0x1e1)][_0x541821(0x1f9)](_0x5808db)[_0x541821(0x1e9)](_0x50e097,_0x541821(0x201)+_0x471e66,!0x0,!0x0);}[_0x52845e(0x1d7)](_0x2cbcf6){const _0x36fd91=_0x52845e,_0x48bb4c=_0x123f56(this[_0x36fd91(0x1dc)]);this[_0x36fd91(0x1f8)](_0x2cbcf6[_0x36fd91(0x1e7)],_0x2cbcf6[_0x36fd91(0x1c1)]);const _0x3b5da6=this[_0x36fd91(0x1cc)]();_0x3b5da6&&_0x3b5da6[0x0]&&_0x1db90c({'target':_0x3b5da6[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x48bb4c[_0x36fd91(0x1e1)][_0x36fd91(0x1f9)](_0x36fd91(0x212))[_0x36fd91(0x1d5)]({'title':_0x2cbcf6[_0x36fd91(0x20a)],'icon':_0x2cbcf6[_0x36fd91(0x1e6)],'hasCloseButton':!0x0,'id':_0x36fd91(0x216),'position':this[_0x36fd91(0x219)][_0x36fd91(0x1ef)](this),'className':_0x36fd91(0x1fd)+(_0x2cbcf6[_0x36fd91(0x1e0)]?_0x36fd91(0x20e):''),'content':this[_0x36fd91(0x207)],'onShow':_0x5a62e0=>{const _0x3f063f=_0x36fd91;_0x2cbcf6[_0x3f063f(0x1e0)]&&this[_0x3f063f(0x207)][_0x3f063f(0x217)](_0x5a62e0),this[_0x3f063f(0x1f3)](),this[_0x3f063f(0x1bc)]=!0x0;},'onHide':()=>{const _0x2481cf=_0x36fd91;this[_0x2481cf(0x1dc)][_0x2481cf(0x1e1)][_0x2481cf(0x1f9)](_0x2481cf(0x1dd))[_0x2481cf(0x1c5)](_0x2481cf(0x201)+this[_0x2481cf(0x1c8)][_0x2481cf(0x1c1)]),this[_0x2481cf(0x1da)](),this[_0x2481cf(0x205)](_0x2481cf(0x1b5)),this[_0x2481cf(0x1bc)]=!0x1;}});}[_0x52845e(0x219)](_0x33e9ad,_0x2450e3){const _0x497fe3=_0x52845e;if(!_0x2450e3)return null;const _0x5b3256=this[_0x497fe3(0x1cc)]();if(!_0x5b3256||0x0===_0x5b3256[_0x497fe3(0x1fc)])return{'left':Math[_0x497fe3(0x1d8)](_0x2450e3[_0x497fe3(0x1eb)]+_0x2450e3[_0x497fe3(0x1ed)]/0x2-_0x33e9ad[_0x497fe3(0x1ed)]/0x2),'top':Math[_0x497fe3(0x1d8)](_0x2450e3[_0x497fe3(0x1ec)]+_0x2450e3[_0x497fe3(0x1b8)]/0x2-_0x33e9ad[_0x497fe3(0x1b8)]/0x2)};const _0x15fa2d=Math[_0x497fe3(0x1d8)](_0x2450e3[_0x497fe3(0x1eb)]+_0x2450e3[_0x497fe3(0x1ed)]/0x2-_0x33e9ad[_0x497fe3(0x1ed)]/0x2),_0x5e0285=new _0x4113e9(_0x5b3256[0x0]),_0x78a5db=new _0x4113e9(_0x5b3256[_0x5b3256[_0x497fe3(0x1fc)]-0x1]),_0x3ff3b2=_0x33e9ad[_0x497fe3(0x1b8)],_0x2e6cab=this[_0x497fe3(0x1c8)][_0x497fe3(0x1e0)]?0x8:0x0;return{'left':_0x15fa2d,'top':this[_0x497fe3(0x1f2)](_0x5e0285,_0x78a5db,_0x3ff3b2,_0x2e6cab,_0x2450e3)};}[_0x52845e(0x1f2)](_0x5d1e71,_0x29aa47,_0x244afa,_0x55ed09=0x0,_0x399e2f){const _0x21c1bf=_0x52845e,_0x32fa8e=_0x244afa+_0x55ed09,_0x5f51e9=new _0x4113e9(_0x42086d[_0x21c1bf(0x1f1)]),_0x244c9b=[_0x5d1e71[_0x21c1bf(0x1b2)](),_0x29aa47[_0x21c1bf(0x1b2)]()][_0x21c1bf(0x214)](_0x16c351=>_0x16c351),_0x49d93e=_0x4113e9[_0x21c1bf(0x1cb)](_0x244c9b);if(!_0x49d93e)return Math[_0x21c1bf(0x1d8)](_0x399e2f[_0x21c1bf(0x1ec)]+_0x399e2f[_0x21c1bf(0x1b8)]/0x2);const _0x2a8aec=_0x5f51e9[_0x21c1bf(0x208)](_0x49d93e);if(!_0x2a8aec)return Math[_0x21c1bf(0x1d8)](_0x399e2f[_0x21c1bf(0x1ec)]+_0x399e2f[_0x21c1bf(0x1b8)]/0x2);const _0x37b3f2=_0x399e2f[_0x21c1bf(0x1b2)](),_0x1742b7=_0x37b3f2&&_0x49d93e[_0x21c1bf(0x1b8)]>_0x37b3f2[_0x21c1bf(0x1b8)],_0x4c5638=_0x2a8aec[_0x21c1bf(0x1ec)],_0x156e18=_0x2a8aec[_0x21c1bf(0x1ea)];if(_0x1742b7){const _0x6347c=(_0x37b3f2||_0x5f51e9)[_0x21c1bf(0x1b8)]/0x2-_0x32fa8e/0x2,_0x18d9f1=_0x4c5638-mt-_0x399e2f[_0x21c1bf(0x1ec)],_0x1115bd=_0x399e2f[_0x21c1bf(0x1ea)]-_0x156e18-mt;return _0x18d9f1>=_0x32fa8e?Math[_0x21c1bf(0x1cd)](mt,_0x4c5638-_0x32fa8e-mt):_0x1115bd>=_0x32fa8e?_0x156e18+mt:Math[_0x21c1bf(0x1cd)](mt,_0x6347c);}const _0x6a4525=_0x4c5638-_0x32fa8e,_0x5e7eec=_0x399e2f[_0x21c1bf(0x1ea)]-_0x156e18-mt,_0x4bb4d5=_0x4c5638-mt-_0x399e2f[_0x21c1bf(0x1ec)];let _0x50a5ba;if(_0x5e7eec>=_0x32fa8e)_0x50a5ba=_0x156e18+mt;else{if(_0x4bb4d5>=_0x32fa8e)_0x50a5ba=_0x6a4525-mt;else _0x50a5ba=_0x4c5638+_0x49d93e[_0x21c1bf(0x1b8)]/0x2-_0x32fa8e/0x2;}return _0x50a5ba;}[_0x52845e(0x1f3)](){const _0x3d196f=_0x52845e,_0xbc2a12=_0x123f56(this[_0x3d196f(0x1dc)]);this[_0x3d196f(0x1d1)](_0xbc2a12[_0x3d196f(0x1d3)][_0x3d196f(0x1b1)],_0x3d196f(0x1be),()=>{const _0x492ecd=_0x3d196f;if(this[_0x492ecd(0x1c6)])return;for(const {name:_0x27e0f3,data:{newRange:_0x2a644c}}of _0xbc2a12[_0x492ecd(0x1d3)][_0x492ecd(0x1b1)][_0x492ecd(0x1e5)][_0x492ecd(0x1d2)]())if(_0x27e0f3[_0x492ecd(0x1c9)](_0x492ecd(0x1fa))&&(_0x2a644c&&(_0x2a644c[_0x492ecd(0x1fe)][_0x492ecd(0x1bf)](_0x2a644c[_0x492ecd(0x1d4)])||_0x492ecd(0x1f7)==_0x2a644c[_0x492ecd(0x1ee)][_0x492ecd(0x1df)])||null==_0x2a644c)){const _0x16ca2b=_0x30c577(this[_0x492ecd(0x1dc)][_0x492ecd(0x1d9)],_0x492ecd(0x1b6));this[_0x492ecd(0x207)][_0x492ecd(0x1cf)](_0x16ca2b),this[_0x492ecd(0x205)](_0x492ecd(0x206));}});}[_0x52845e(0x1da)](){const _0x109d98=_0x52845e,_0x3adbe0=_0x123f56(this[_0x109d98(0x1dc)]);this[_0x109d98(0x1c4)](_0x3adbe0[_0x109d98(0x1d3)][_0x109d98(0x1b1)]);}[_0x52845e(0x1cc)](){const _0x4b1648=_0x52845e,_0x4a27aa=_0x123f56(this[_0x4b1648(0x1dc)]);return _0x4b022c(_0x4a27aa[_0x4b1648(0x1de)],[..._0x4a27aa[_0x4b1648(0x1d3)][_0x4b1648(0x1ce)][_0x4b1648(0x1e4)](_0x4b1648(0x1c0)),..._0x4a27aa[_0x4b1648(0x1d3)][_0x4b1648(0x1ce)][_0x4b1648(0x1e4)](_0x4b1648(0x1c7))]);}}
|
|
23
|
+
const _0x16c24=_0x5a47;(function(_0x5189ac,_0x52fd95){const _0x59c99e=_0x5a47,_0x5e4d21=_0x5189ac();while(!![]){try{const _0x3d001e=-parseInt(_0x59c99e(0x1b6))/0x1*(parseInt(_0x59c99e(0x1ab))/0x2)+-parseInt(_0x59c99e(0x1fc))/0x3+parseInt(_0x59c99e(0x1cf))/0x4+-parseInt(_0x59c99e(0x1b4))/0x5*(parseInt(_0x59c99e(0x1ef))/0x6)+-parseInt(_0x59c99e(0x1e4))/0x7*(-parseInt(_0x59c99e(0x201))/0x8)+parseInt(_0x59c99e(0x1aa))/0x9+parseInt(_0x59c99e(0x1ad))/0xa;if(_0x3d001e===_0x52fd95)break;else _0x5e4d21['push'](_0x5e4d21['shift']());}catch(_0x2bf281){_0x5e4d21['push'](_0x5e4d21['shift']());}}}(_0x50b6,0x4b3d4));import{ContextPlugin as _0x1e7e70}from'ckeditor5/src/core.js';import{AIConnector as _0x183cf1}from'../aicore/aiconnector.js';import{AIEditing as _0x465d98}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0xfa1061,AIBalloonView as _0x5ee291}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x948e32}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4cb6bf,Rect as _0x2be817,scrollViewportToShowTarget as _0x5a331e}from'ckeditor5/src/utils.js';function _0x5a47(_0x39ac69,_0x551594){const _0x50b674=_0x50b6();return _0x5a47=function(_0x5a47de,_0x3cd1f9){_0x5a47de=_0x5a47de-0x19c;let _0x2f0940=_0x50b674[_0x5a47de];return _0x2f0940;},_0x5a47(_0x39ac69,_0x551594);}import{getEditorFromContext as _0x2ce5b7}from'../aicore/utils/geteditorfromcontext.js';function _0x50b6(){const _0x46463c=['close','locale','stopListening','getIntersection','left','998588EyLIit','startAutoScroll','getVisible','ranges','editing','stopAutoScroll','bottom','ai-selection','height','showFakeVisualSelection','model','value','getChangedMarkers','markers','ai-selection:','window','isOpen','_getSelectionElements','updateContent','$graveyard','startsWith','14OJfvyw','_cleanupMarkerRemovalListener','get','\x20ai-balloon-rotator','open','headerView','getMarkersGroup','top','index','hideFakeVisualSelection','icon','579786nOfIMU','pluginName','selectionRemoved','end','ai-balloon-selection','_setupVisualSelection','ai-balloon-','trackChanges','AI_ACTIONS_SELECTION_REMOVED_ERROR','balloonView','AIEditing','context','change','1170270OCtXDv','_calculateOptimalTopPosition','commands','dialogClosed','requires','1107160NbLsHP','aiBalloon','once','showBlockingError','iconView','AIBalloon','_updateBalloon','getBoundingRect','_pendingRenderCallback','start','setupRotator','width','isOfficialPlugin','_isUpdatingMarkers','view','listenTo','delegate','bind','render','isPremiumPlugin','ai.availableReplyActions','filter','4913442hmbphF','398QfmzDK','isTrackChangesOn','7927310kZaflK','root','_config','Dialog','content','_showDialog','_calculateDialogPosition','30hSnYTk','fire','2950ZSvCOs','off','hide','rootName','mainView','round','length','_setupMarkerRemovalListener','isEqual','ai-balloon','document','differ','label','config','plugins','show','max','showRotator','updatePosition','title'];_0x50b6=function(){return _0x46463c;};return _0x50b6();}import{AI_REPLY_ACTIONS as _0x2bd733}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x4819ab}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0xfa1061,_0x16c24(0x1ff),_0x16c24(0x1f1)];const z=0xa;export class AIBalloon extends _0x1e7e70{static get[_0x16c24(0x200)](){return[_0x183cf1,_0x465d98];}static get[_0x16c24(0x1f0)](){const _0x2ef6ae=_0x16c24;return _0x2ef6ae(0x206);}static get[_0x16c24(0x1a0)](){return!0x0;}static get[_0x16c24(0x1a7)](){return!0x0;}[_0x16c24(0x1df)]=!0x1;[_0x16c24(0x1af)];[_0x16c24(0x1a1)]=!0x1;[_0x16c24(0x19c)]=null;[_0x16c24(0x1e8)](_0x3b36b7){const _0x155f5f=_0x16c24,_0x13bb80=_0x2ce5b7(this[_0x155f5f(0x1fa)]);if(this[_0x155f5f(0x1af)]=_0x3b36b7,this[_0x155f5f(0x1df)])return void this[_0x155f5f(0x207)](_0x3b36b7);const _0x1f26ae=this[_0x155f5f(0x1fa)][_0x155f5f(0x1c3)][_0x155f5f(0x1e6)](_0x155f5f(0x1a8))||[..._0x2bd733],_0x17c1b9=_0x13bb80?.[_0x155f5f(0x1fe)][_0x155f5f(0x1e6)](_0x155f5f(0x1f6)),_0x3f3be1=_0x17c1b9?.[_0x155f5f(0x1da)];this[_0x155f5f(0x1f8)]=new _0x5ee291(_0x13bb80[_0x155f5f(0x1cb)],_0x3b36b7,_0x1f26ae,!!_0x3f3be1),this[_0x155f5f(0x1f8)][_0x155f5f(0x1a4)](..._0xfa1061)['to'](this),_0x17c1b9&&this[_0x155f5f(0x1f8)][_0x155f5f(0x1a5)](_0x155f5f(0x1ac))['to'](_0x17c1b9,_0x155f5f(0x1da)),this[_0x155f5f(0x1b2)](_0x3b36b7);}[_0x16c24(0x1ca)](){const _0x3bba4a=_0x16c24;_0x2ce5b7(this[_0x3bba4a(0x1fa)])[_0x3bba4a(0x1c4)][_0x3bba4a(0x1e6)](_0x3bba4a(0x1b0))[_0x3bba4a(0x1b8)]();}[_0x16c24(0x1d0)](){const _0x2d4de7=_0x16c24;this[_0x2d4de7(0x1f8)]&&this[_0x2d4de7(0x1f8)][_0x2d4de7(0x1d0)]();}[_0x16c24(0x1d4)](){const _0xde7007=_0x16c24;this[_0xde7007(0x1f8)]&&this[_0xde7007(0x1f8)][_0xde7007(0x1d4)]();}[_0x16c24(0x207)](_0x313f16){const _0x5b3598=_0x16c24,_0x39ceb2=_0x2ce5b7(this[_0x5b3598(0x1fa)]),_0x1619f9=_0x39ceb2[_0x5b3598(0x1c4)][_0x5b3598(0x1e6)](_0x5b3598(0x1b0));this[_0x5b3598(0x19c)]&&(_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x1b7)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]),this[_0x5b3598(0x19c)]=null),this[_0x5b3598(0x1a1)]=!0x0,_0x1619f9[_0x5b3598(0x1a2)]?.[_0x5b3598(0x1e9)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x1c2)]=_0x313f16[_0x5b3598(0x1c9)],_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)]&&_0x313f16[_0x5b3598(0x1ee)]&&(_0x1619f9[_0x5b3598(0x1a2)][_0x5b3598(0x1e9)][_0x5b3598(0x205)][_0x5b3598(0x1b1)]=_0x313f16[_0x5b3598(0x1ee)])),this[_0x5b3598(0x1f8)][_0x5b3598(0x1e1)](_0x313f16[_0x5b3598(0x1ba)]),this[_0x5b3598(0x1f4)](_0x313f16[_0x5b3598(0x1d2)],_0x313f16[_0x5b3598(0x1ec)]),this[_0x5b3598(0x19c)]=()=>{const _0x12986e=_0x5b3598;this[_0x12986e(0x1a1)]=!0x1,this[_0x12986e(0x19c)]=null,_0x1619f9[_0x12986e(0x1a2)]&&_0x1619f9[_0x12986e(0x1a2)][_0x12986e(0x1c8)]();},_0x39ceb2[_0x5b3598(0x1d3)][_0x5b3598(0x1a2)][_0x5b3598(0x203)](_0x5b3598(0x1a6),this[_0x5b3598(0x19c)]);}[_0x16c24(0x1f4)](_0x205756,_0x17cbdc){const _0x3a1e84=_0x16c24;this[_0x3a1e84(0x1fa)][_0x3a1e84(0x1c4)][_0x3a1e84(0x1e6)](_0x465d98)[_0x3a1e84(0x1d8)](_0x205756,_0x3a1e84(0x1f5)+_0x17cbdc,!0x0,!0x0);}[_0x16c24(0x1b2)](_0x392837){const _0x589a64=_0x16c24,_0x2ae398=_0x2ce5b7(this[_0x589a64(0x1fa)]);this[_0x589a64(0x1f4)](_0x392837[_0x589a64(0x1d2)],_0x392837[_0x589a64(0x1ec)]);const _0x1c51e3=this[_0x589a64(0x1e0)]();_0x1c51e3&&_0x1c51e3[0x0]&&_0x5a331e({'target':_0x1c51e3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x2ae398[_0x589a64(0x1c4)][_0x589a64(0x1e6)](_0x589a64(0x1b0))[_0x589a64(0x1c5)]({'title':_0x392837[_0x589a64(0x1c9)],'icon':_0x392837[_0x589a64(0x1ee)],'hasCloseButton':!0x0,'id':_0x589a64(0x202),'position':this[_0x589a64(0x1b3)][_0x589a64(0x1a5)](this),'className':_0x589a64(0x1bf)+(_0x392837[_0x589a64(0x1c7)]?_0x589a64(0x1e7):''),'content':this[_0x589a64(0x1f8)],'onShow':_0x9c78f4=>{const _0x34b74b=_0x589a64;_0x392837[_0x34b74b(0x1c7)]&&this[_0x34b74b(0x1f8)][_0x34b74b(0x19e)](_0x9c78f4),this[_0x34b74b(0x1bd)](),this[_0x34b74b(0x1df)]=!0x0;},'onHide':()=>{const _0x2e15d4=_0x589a64;this[_0x2e15d4(0x1fa)][_0x2e15d4(0x1c4)][_0x2e15d4(0x1e6)](_0x2e15d4(0x1f9))[_0x2e15d4(0x1ed)](_0x2e15d4(0x1f5)+this[_0x2e15d4(0x1af)][_0x2e15d4(0x1ec)]),this[_0x2e15d4(0x1e5)](),this[_0x2e15d4(0x1b5)](_0x2e15d4(0x1ff)),this[_0x2e15d4(0x1df)]=!0x1;}});}[_0x16c24(0x1b3)](_0x2c69cb,_0xd2cde5){const _0x44ee04=_0x16c24;if(!_0xd2cde5)return null;const _0x25279b=this[_0x44ee04(0x1e0)]();if(!_0x25279b||0x0===_0x25279b[_0x44ee04(0x1bc)])return{'left':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),'top':Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1eb)]+_0xd2cde5[_0x44ee04(0x1d7)]/0x2-_0x2c69cb[_0x44ee04(0x1d7)]/0x2)};const _0x396366=Math[_0x44ee04(0x1bb)](_0xd2cde5[_0x44ee04(0x1ce)]+_0xd2cde5[_0x44ee04(0x19f)]/0x2-_0x2c69cb[_0x44ee04(0x19f)]/0x2),_0x280edf=new _0x2be817(_0x25279b[0x0]),_0x51d868=new _0x2be817(_0x25279b[_0x25279b[_0x44ee04(0x1bc)]-0x1]),_0x4ec5c6=_0x2c69cb[_0x44ee04(0x1d7)],_0x265736=this[_0x44ee04(0x1af)][_0x44ee04(0x1c7)]?0x8:0x0;return{'left':_0x396366,'top':this[_0x44ee04(0x1fd)](_0x280edf,_0x51d868,_0x4ec5c6,_0x265736,_0xd2cde5)};}[_0x16c24(0x1fd)](_0x22a6f0,_0x30cc2b,_0x1610ad,_0x403349=0x0,_0x5a3b02){const _0x39f91f=_0x16c24,_0x3d4709=_0x1610ad+_0x403349,_0x46b0ae=new _0x2be817(_0x4cb6bf[_0x39f91f(0x1de)]),_0x225114=[_0x22a6f0[_0x39f91f(0x1d1)](),_0x30cc2b[_0x39f91f(0x1d1)]()][_0x39f91f(0x1a9)](_0x28f1cc=>_0x28f1cc),_0xaaf492=_0x2be817[_0x39f91f(0x208)](_0x225114);if(!_0xaaf492)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x171150=_0x46b0ae[_0x39f91f(0x1cd)](_0xaaf492);if(!_0x171150)return Math[_0x39f91f(0x1bb)](_0x5a3b02[_0x39f91f(0x1eb)]+_0x5a3b02[_0x39f91f(0x1d7)]/0x2);const _0x2f47d0=_0x5a3b02[_0x39f91f(0x1d1)](),_0x41440d=_0x2f47d0&&_0xaaf492[_0x39f91f(0x1d7)]>_0x2f47d0[_0x39f91f(0x1d7)],_0x3df6e7=_0x171150[_0x39f91f(0x1eb)],_0x276744=_0x171150[_0x39f91f(0x1d5)];if(_0x41440d){const _0x2aa47a=(_0x2f47d0||_0x46b0ae)[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2,_0x16fb5f=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)],_0x1488c7=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z;return _0x16fb5f>=_0x3d4709?Math[_0x39f91f(0x1c6)](z,_0x3df6e7-_0x3d4709-z):_0x1488c7>=_0x3d4709?_0x276744+z:Math[_0x39f91f(0x1c6)](z,_0x2aa47a);}const _0x2d4f1e=_0x3df6e7-_0x3d4709,_0x47184e=_0x5a3b02[_0x39f91f(0x1d5)]-_0x276744-z,_0x4f59b5=_0x3df6e7-z-_0x5a3b02[_0x39f91f(0x1eb)];let _0x10a700;if(_0x47184e>=_0x3d4709)_0x10a700=_0x276744+z;else{if(_0x4f59b5>=_0x3d4709)_0x10a700=_0x2d4f1e-z;else _0x10a700=_0x3df6e7+_0xaaf492[_0x39f91f(0x1d7)]/0x2-_0x3d4709/0x2;}return _0x10a700;}[_0x16c24(0x1bd)](){const _0x3cf975=_0x16c24,_0x4cc44a=_0x2ce5b7(this[_0x3cf975(0x1fa)]);this[_0x3cf975(0x1a3)](_0x4cc44a[_0x3cf975(0x1d9)][_0x3cf975(0x1c0)],_0x3cf975(0x1fb),()=>{const _0x3f740a=_0x3cf975;if(this[_0x3f740a(0x1a1)])return;for(const {name:_0x5c4e17,data:{newRange:_0x515bbb}}of _0x4cc44a[_0x3f740a(0x1d9)][_0x3f740a(0x1c0)][_0x3f740a(0x1c1)][_0x3f740a(0x1db)]())if(_0x5c4e17[_0x3f740a(0x1e3)](_0x3f740a(0x1dd))&&(_0x515bbb&&(_0x515bbb[_0x3f740a(0x19d)][_0x3f740a(0x1be)](_0x515bbb[_0x3f740a(0x1f2)])||_0x3f740a(0x1e2)==_0x515bbb[_0x3f740a(0x1ae)][_0x3f740a(0x1b9)])||null==_0x515bbb)){const _0x21bca4=_0x4819ab(this[_0x3f740a(0x1fa)][_0x3f740a(0x1cb)],_0x3f740a(0x1f7));this[_0x3f740a(0x1f8)][_0x3f740a(0x204)](_0x21bca4),this[_0x3f740a(0x1b5)](_0x3f740a(0x1f1));}});}[_0x16c24(0x1e5)](){const _0x10def7=_0x16c24,_0x29efd9=_0x2ce5b7(this[_0x10def7(0x1fa)]);this[_0x10def7(0x1cc)](_0x29efd9[_0x10def7(0x1d9)][_0x10def7(0x1c0)]);}[_0x16c24(0x1e0)](){const _0x1fb326=_0x16c24,_0x5e47f5=_0x2ce5b7(this[_0x1fb326(0x1fa)]);return _0x948e32(_0x5e47f5[_0x1fb326(0x1d3)],[..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1d6)),..._0x5e47f5[_0x1fb326(0x1d9)][_0x1fb326(0x1dc)][_0x1fb326(0x1ea)](_0x1fb326(0x1f3))]);}}
|