@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 47.4.0-alpha.3
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
|
-
const
|
|
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 _0x3516f9=_0x5b09;(function(_0x2ff68f,_0x356d48){const _0x3b985e=_0x5b09,_0x4aec67=_0x2ff68f();while(!![]){try{const _0xce4d78=parseInt(_0x3b985e(0xb1))/0x1+parseInt(_0x3b985e(0xd1))/0x2+-parseInt(_0x3b985e(0xa0))/0x3*(-parseInt(_0x3b985e(0xb3))/0x4)+-parseInt(_0x3b985e(0xe8))/0x5+-parseInt(_0x3b985e(0xec))/0x6*(-parseInt(_0x3b985e(0xe3))/0x7)+-parseInt(_0x3b985e(0xde))/0x8*(parseInt(_0x3b985e(0xcc))/0x9)+-parseInt(_0x3b985e(0xc6))/0xa*(parseInt(_0x3b985e(0xd6))/0xb);if(_0xce4d78===_0x356d48)break;else _0x4aec67['push'](_0x4aec67['shift']());}catch(_0x8d2aef){_0x4aec67['push'](_0x4aec67['shift']());}}}(_0x2c53,0x644ea));function _0x2c53(){const _0x5d9865=['removeAllRanges','innerHTML','ck-ai-form__content-area','7ViYozt','contentFieldView','bindTemplate','<span>[</span>','locale','2184330DvRrwT','appendLoader','ck-reset_all-excluded','isVisible','4914726eWIQcb','change:value','left','mousedown','ck-ai-form__content-field','execCommand','lastElementChild','render','focus','smooth','51ZAQBCp','appendChild','body','change:isProcessing','firstElementChild','<span>]</span>','copy','copyButtonView','icon','loaderView','Copy','listenTo','getSelection','text/html','setContent','wheel','_copyHTMLToClipboard','447144HspdAw','text/plain','118308DFYSNs','-9999px','textContent','_createCopyButton','execute','setEndBefore','value','position','clipboard','.ck-ai-form__loader','div','addRange','ck-content','\x20ck-ai-form__copy-button--copied','ck-ai-form__content-area-wrapper','scrollHeight','isEnabled','_createLoader','isProcessing','6680810eNLCPP','ck-ai-form__loader','style','createElement','scrollTo','ck-ai-form__copy-button','9iWUoNZ','write','element','AI\x20is\x20writing...','class','508690JZLtRM','ck-hidden','setTemplate','remove','ck-ai-form__content-area--processing','11mwhbEu','ClipboardItem','createRange','querySelector','set','absolute','setStartAfter','ck-ai-form__copy-button-wrapper','4060912ogPCdc','bind'];_0x2c53=function(){return _0x5d9865;};return _0x2c53();}function _0x5b09(_0x20cbf1,_0x1e940e){const _0x2c53dd=_0x2c53();return _0x5b09=function(_0x5b09c3,_0x10ce5e){_0x5b09c3=_0x5b09c3-0x9d;let _0x443b9c=_0x2c53dd[_0x5b09c3];return _0x443b9c;},_0x5b09(_0x20cbf1,_0x1e940e);}import{global as _0x3b478d}from'ckeditor5/src/utils.js';import{View as _0x242843,ButtonView as _0x2589c9,SpinnerView as _0x42b071}from'ckeditor5/src/ui.js';import{IconCheck as _0x532c68,IconCopy as _0x13cc55}from'ckeditor5/src/icons.js';import{getTranslation as _0x37a10f}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x242843{[_0x3516f9(0xe4)];[_0x3516f9(0xa7)];constructor(_0x76594f,_0x4625f6=''){const _0x112e41=_0x3516f9;super(_0x76594f),this[_0x112e41(0xda)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x18d0d0=this[_0x112e41(0xe5)];this[_0x112e41(0xe4)]=new ContentFieldView(_0x76594f,_0x4625f6),this[_0x112e41(0xa7)]=this[_0x112e41(0xb6)](),this[_0x112e41(0xd3)]({'tag':_0x112e41(0xbd),'attributes':{'class':['ck',_0x112e41(0xc1),_0x18d0d0['if'](_0x112e41(0xeb),_0x112e41(0xd2),_0x58bef0=>!_0x58bef0)],'tabindex':'-1'},'children':[{'tag':_0x112e41(0xbd),'attributes':{'class':['ck',_0x112e41(0xe2),_0x18d0d0['if'](_0x112e41(0xc5),_0x112e41(0xd5))]},'children':[this[_0x112e41(0xe4)],{'tag':_0x112e41(0xbd),'attributes':{'class':['ck',_0x112e41(0xdd)]},'children':[this[_0x112e41(0xa7)]]}]}]});}[_0x3516f9(0x9d)](){const _0x23ad1d=_0x3516f9;super[_0x23ad1d(0x9d)](),this[_0x23ad1d(0xb9)]&&this[_0x23ad1d(0xe4)][_0x23ad1d(0xae)](this[_0x23ad1d(0xb9)]);let _0x3932df=!0x1;this['on'](_0x23ad1d(0xed),(_0x45167a,_0x430bdb,_0x351ae7)=>{const _0x17c6b4=_0x23ad1d,_0x433fa8=!this[_0x17c6b4(0xe4)][_0x17c6b4(0xce)][_0x17c6b4(0xd9)](_0x17c6b4(0xbc));this[_0x17c6b4(0xe4)][_0x17c6b4(0xae)](_0x351ae7),this[_0x17c6b4(0xc5)]&&_0x433fa8&&!_0x3932df&&this[_0x17c6b4(0xce)][_0x17c6b4(0xca)]({'top':this[_0x17c6b4(0xce)][_0x17c6b4(0xc2)],'behavior':_0x17c6b4(0x9f)});}),this['on'](_0x23ad1d(0xa3),(_0x1eb6a0,_0xcc2a9b,_0x2360de)=>{const _0x29f5a8=_0x23ad1d;_0x3932df=!0x1,_0x2360de?(this[_0x29f5a8(0xb9)]=null,this[_0x29f5a8(0xe4)][_0x29f5a8(0xe9)]()):this[_0x29f5a8(0xb9)]||this[_0x29f5a8(0xe4)][_0x29f5a8(0xae)]('');}),this[_0x23ad1d(0xab)](this[_0x23ad1d(0xce)],_0x23ad1d(0xaf),()=>{_0x3932df=!0x0;}),this[_0x23ad1d(0xab)](this[_0x23ad1d(0xce)],_0x23ad1d(0xef),()=>{_0x3932df=!0x0;});}[_0x3516f9(0x9e)](){const _0x1733af=_0x3516f9;this[_0x1733af(0xce)][_0x1733af(0x9e)]();}[_0x3516f9(0xb6)](){const _0x3d2d2f=_0x3516f9,_0x2ed4c3=this[_0x3d2d2f(0xe7)],_0x5cc132=new _0x2589c9(this[_0x3d2d2f(0xe7)]),_0x595cc8=_0x3d2d2f(0xcb);return _0x5cc132[_0x3d2d2f(0xda)]({'label':_0x37a10f(_0x2ed4c3,_0x3d2d2f(0xaa)),'icon':_0x13cc55,'class':_0x595cc8,'tooltip':!0x0}),_0x5cc132[_0x3d2d2f(0xdf)](_0x3d2d2f(0xeb))['to'](this,_0x3d2d2f(0xb9),_0x535bbf=>!!_0x535bbf),_0x5cc132[_0x3d2d2f(0xdf)](_0x3d2d2f(0xc3))['to'](this,_0x3d2d2f(0xc5),_0x16ffc9=>!_0x16ffc9),_0x5cc132['on'](_0x3d2d2f(0xb7),()=>{const _0x207a9f=_0x3d2d2f;this[_0x207a9f(0xb0)](this[_0x207a9f(0xe4)][_0x207a9f(0xce)]),_0x5cc132[_0x207a9f(0xa8)]=_0x532c68,_0x5cc132[_0x207a9f(0xd0)]=_0x595cc8+_0x207a9f(0xc0),this[_0x207a9f(0x9e)](),setTimeout(()=>{const _0x2fca0d=_0x207a9f;_0x5cc132[_0x2fca0d(0xa8)]=_0x13cc55,_0x5cc132[_0x2fca0d(0xd0)]=_0x595cc8;},0x3e8);}),_0x5cc132;}[_0x3516f9(0xb0)](_0x59387d){const _0x102a09=_0x3516f9,{window:_0x17e9ab,document:_0x8531b5}=_0x3b478d;if(_0x17e9ab[_0x102a09(0xd7)]){const {Blob:_0x36a03f,ClipboardItem:_0x2aeecd}=_0x17e9ab,_0x140251=[new _0x2aeecd({'text/html':new _0x36a03f([_0x59387d[_0x102a09(0xe1)]],{'type':_0x102a09(0xad)}),'text/plain':new _0x36a03f([_0x59387d[_0x102a09(0xb5)]||''],{'type':_0x102a09(0xb2)})})];navigator[_0x102a09(0xbb)][_0x102a09(0xcd)](_0x140251);}else{const _0x80796b=_0x8531b5[_0x102a09(0xc9)](_0x102a09(0xbd));_0x80796b[_0x102a09(0xc8)][_0x102a09(0xba)]=_0x102a09(0xdb),_0x80796b[_0x102a09(0xc8)][_0x102a09(0xee)]=_0x102a09(0xb4),_0x80796b[_0x102a09(0xe1)]=_0x102a09(0xe6)+_0x59387d[_0x102a09(0xe1)]+_0x102a09(0xa5),_0x8531b5[_0x102a09(0xa2)][_0x102a09(0xa1)](_0x80796b);const _0xe2a407=_0x8531b5[_0x102a09(0xd8)]();_0xe2a407[_0x102a09(0xdc)](_0x80796b[_0x102a09(0xa4)]),_0xe2a407[_0x102a09(0xb8)](_0x80796b[_0x102a09(0xf2)]);const _0x40aaa0=_0x17e9ab[_0x102a09(0xac)]();_0x40aaa0[_0x102a09(0xe0)](),_0x40aaa0[_0x102a09(0xbe)](_0xe2a407),_0x8531b5[_0x102a09(0xf1)](_0x102a09(0xa6)),_0x80796b[_0x102a09(0xd4)]();}}}export class ContentFieldView extends _0x242843{constructor(_0x467673,_0xfd0054=''){const _0x23fc85=_0x3516f9;super(_0x467673),this[_0x23fc85(0xa9)]=this[_0x23fc85(0xc4)](),this[_0x23fc85(0xd3)]({'tag':_0x23fc85(0xbd),'attributes':{'class':['ck',_0x23fc85(0xbf),_0xfd0054,_0x23fc85(0xea),_0x23fc85(0xf0)]}});}[_0x3516f9(0xae)](_0xa062f5){const _0x2b64c3=_0x3516f9;this[_0x2b64c3(0xce)][_0x2b64c3(0xe1)]=_0xa062f5;}[_0x3516f9(0xe9)](){const _0x46b166=_0x3516f9;this[_0x46b166(0xce)][_0x46b166(0xa1)](this[_0x46b166(0xa9)][_0x46b166(0xce)]);}[_0x3516f9(0xc4)](){const _0x4d86ff=_0x3516f9,_0x4c918a=new _0x242843(),_0x5813ce=this[_0x4d86ff(0xe7)],_0x17523a=new _0x42b071();return _0x17523a[_0x4d86ff(0xeb)]=!0x0,_0x4c918a[_0x4d86ff(0xd3)]({'tag':_0x4d86ff(0xbd),'attributes':{'class':['ck',_0x4d86ff(0xc7)]},'children':[_0x17523a,{'text':_0x37a10f(_0x5813ce,_0x4d86ff(0xcf))}]}),_0x4c918a[_0x4d86ff(0x9d)](),_0x4c918a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x39e6b7,_0x3d17f1){const _0x416ecb=_0x4a35,_0x18045f=_0x39e6b7();while(!![]){try{const _0x121b8c=-parseInt(_0x416ecb(0x78))/0x1*(-parseInt(_0x416ecb(0x77))/0x2)+-parseInt(_0x416ecb(0x7c))/0x3+parseInt(_0x416ecb(0x76))/0x4+-parseInt(_0x416ecb(0x7d))/0x5*(parseInt(_0x416ecb(0x70))/0x6)+-parseInt(_0x416ecb(0x7f))/0x7*(parseInt(_0x416ecb(0x6e))/0x8)+-parseInt(_0x416ecb(0x7b))/0x9*(parseInt(_0x416ecb(0x6f))/0xa)+parseInt(_0x416ecb(0x72))/0xb;if(_0x121b8c===_0x3d17f1)break;else _0x18045f['push'](_0x18045f['shift']());}catch(_0x41794b){_0x18045f['push'](_0x18045f['shift']());}}}(_0x57e8,0xde7fd));function _0x4a35(_0x1efef8,_0x102bdc){const _0x57e81c=_0x57e8();return _0x4a35=function(_0x4a35c4,_0x5d2b79){_0x4a35c4=_0x4a35c4-0x6e;let _0x54e067=_0x57e81c[_0x4a35c4];return _0x54e067;},_0x4a35(_0x1efef8,_0x102bdc);}import{IconError as _0x40a1e6}from'ckeditor5/src/icons.js';import{View as _0x1f4fc1,IconView as _0x1345dc}from'ckeditor5/src/ui.js';function _0x57e8(){const _0x23f01b=['4759640SdjBtS','51806ZxfdWi','4dDFiOP','content','text','2941767pIBoGA','4978161HlOJcv','186365NViArJ','bindTemplate','154189JWZUHP','520NMqTgg','50XWHoCn','30TaZnEI','set','49826227XjAojr','div','ck-ai-form__error','setTemplate'];_0x57e8=function(){return _0x23f01b;};return _0x57e8();}export class AIFormErrorView extends _0x1f4fc1{constructor(_0x5f4a36,_0x5b713d=''){const _0x3c283a=_0x4a35;super(_0x5f4a36);const _0x32e5a4=new _0x1345dc(),_0x29cade=this[_0x3c283a(0x7e)];this[_0x3c283a(0x71)](_0x3c283a(0x7a),_0x5b713d),_0x32e5a4[_0x3c283a(0x79)]=_0x40a1e6,this[_0x3c283a(0x75)]({'tag':_0x3c283a(0x73),'attributes':{'class':['ck',_0x3c283a(0x74)]},'children':[_0x32e5a4,{'text':_0x29cade['to'](_0x3c283a(0x7a))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2d12(){const _0x441c06=['focus','fire','Submit','minRows','submitButtonView','keystrokes','focusableChildren','6165855GkYatx','isEnabled','style','window','617025XqMSFW','left','value','32610AVKyKO','queryView','element','uiLanguageDirection','ck-ai-form__toggle-history','enter','rtl','5068176SzAkaM','resultsView','14016xLhTyW','excludeScrollbarsAndBorders','_createShowHistoryButton','locale','16821720ifGKVV','showHistoryButtonView','children','isEmpty','focusLast','execute','isVisible','add','bind','width','requestAnimationFrame','113200xwnIyb','set','focusFirst','maxRows','fieldWrapperChildren','isOn','update','3766TxxPGL','_createSubmitButton','focusCycler','fieldView','History','render','filteredView','right','556ohdYqc','target','ck-ai-form__submit','submit'];_0x2d12=function(){return _0x441c06;};return _0x2d12();}const _0x56e40f=_0xdccb;(function(_0x2fa75d,_0x327a46){const _0x2c559f=_0xdccb,_0x40f84e=_0x2fa75d();while(!![]){try{const _0xff1f64=parseInt(_0x2c559f(0x150))/0x1+-parseInt(_0x2c559f(0x16b))/0x2+parseInt(_0x2c559f(0x153))/0x3*(parseInt(_0x2c559f(0x17a))/0x4)+-parseInt(_0x2c559f(0x14c))/0x5+-parseInt(_0x2c559f(0x15c))/0x6*(parseInt(_0x2c559f(0x172))/0x7)+-parseInt(_0x2c559f(0x15a))/0x8+parseInt(_0x2c559f(0x160))/0x9;if(_0xff1f64===_0x327a46)break;else _0x40f84e['push'](_0x40f84e['shift']());}catch(_0x504d9d){_0x40f84e['push'](_0x40f84e['shift']());}}}(_0x2d12,0xc774e));import{Rect as _0x336e8e,global as _0x2bd0fd,isVisible as _0x1ce551}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x1864ce,IconSubmit as _0xcedc51}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x57199d,ButtonView as _0x53e927}from'ckeditor5/src/ui.js';import{getTranslation as _0x141fc4}from'../../utils/common-translations.js';function _0xdccb(_0x1269a5,_0x5b45d4){const _0x2d1200=_0x2d12();return _0xdccb=function(_0xdccbc3,_0x1aa2bf){_0xdccbc3=_0xdccbc3-0x148;let _0xcfd80=_0x2d1200[_0xdccbc3];return _0xcfd80;},_0xdccb(_0x1269a5,_0x5b45d4);}export class AIFormPromptView extends _0x57199d{[_0x56e40f(0x149)];[_0x56e40f(0x161)];constructor(_0x3faa53,_0xb666f4){const _0x317c28=_0x56e40f;super(_0x3faa53,_0xb666f4),this[_0x317c28(0x154)][_0x317c28(0x175)][_0x317c28(0x148)]=0x1,this[_0x317c28(0x154)][_0x317c28(0x175)][_0x317c28(0x16e)]=0x3,this[_0x317c28(0x149)]=this[_0x317c28(0x173)](),this[_0x317c28(0x161)]=this[_0x317c28(0x15e)](),this[_0x317c28(0x14b)][_0x317c28(0x167)](this[_0x317c28(0x161)],0x1),this[_0x317c28(0x14b)][_0x317c28(0x167)](this[_0x317c28(0x149)]);}[_0x56e40f(0x177)](){const _0x3d587f=_0x56e40f;super[_0x3d587f(0x177)](),this[_0x3d587f(0x154)][_0x3d587f(0x16f)][_0x3d587f(0x167)](this[_0x3d587f(0x161)]),this[_0x3d587f(0x162)][_0x3d587f(0x167)](this[_0x3d587f(0x149)]),this[_0x3d587f(0x14a)][_0x3d587f(0x16c)](_0x3d587f(0x158),(_0xa5888b,_0x35b9fd)=>{const _0x26b456=_0x3d587f;_0xa5888b[_0x26b456(0x17b)]==this[_0x26b456(0x154)][_0x26b456(0x175)][_0x26b456(0x155)]&&(this[_0x26b456(0x17d)](),_0x35b9fd());});}[_0x56e40f(0x173)](){const _0x5b9c3b=_0x56e40f,_0x45bba5=new _0x53e927(this[_0x5b9c3b(0x15f)]),_0x3d52c3=this[_0x5b9c3b(0x15f)];return _0x45bba5[_0x5b9c3b(0x16c)]({'icon':_0xcedc51,'label':_0x141fc4(_0x3d52c3,_0x5b9c3b(0x180)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5b9c3b(0x17c)}),_0x45bba5['on'](_0x5b9c3b(0x165),()=>{const _0x4b460d=_0x5b9c3b;this[_0x4b460d(0x17d)]();}),_0x45bba5[_0x5b9c3b(0x168)](_0x5b9c3b(0x14d))['to'](this[_0x5b9c3b(0x154)][_0x5b9c3b(0x175)],_0x5b9c3b(0x163),this,_0x5b9c3b(0x14d),(_0x308696,_0x1ad586)=>!_0x308696&&_0x1ad586),_0x45bba5;}[_0x56e40f(0x15e)](){const _0x285a6f=_0x56e40f,_0xc799ce=new _0x53e927(this[_0x285a6f(0x15f)]),_0x1d0603=this[_0x285a6f(0x15b)],_0x5bea39=this[_0x285a6f(0x15f)];_0xc799ce[_0x285a6f(0x16c)]({'label':_0x141fc4(_0x5bea39,_0x285a6f(0x176)),'withText':!0x1,'icon':_0x1864ce,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x285a6f(0x157)}),_0xc799ce[_0x285a6f(0x168)](_0x285a6f(0x170))['to'](_0x1d0603,_0x285a6f(0x166)),_0xc799ce[_0x285a6f(0x168)](_0x285a6f(0x14d))['to'](this,_0x285a6f(0x14d)),_0xc799ce['on'](_0x285a6f(0x165),()=>{const _0x54789b=_0x285a6f;_0x1d0603[_0x54789b(0x166)]=!_0x1d0603[_0x54789b(0x166)],_0x1d0603[_0x54789b(0x166)]?this[_0x54789b(0x178)][_0x54789b(0x17e)]():this[_0x54789b(0x17e)]();});const _0x481690=()=>{const _0xa866b2=_0x285a6f;_0x2bd0fd[_0xa866b2(0x14f)][_0xa866b2(0x16a)](()=>{const _0x187d03=_0xa866b2;if(_0x1ce551(this[_0x187d03(0x155)])){const _0x2361f6=new _0x336e8e(this[_0x187d03(0x154)][_0x187d03(0x175)][_0x187d03(0x155)]),_0x1817a6=_0x2361f6[_0x187d03(0x169)],_0x2cef31=_0x187d03(0x159)===_0x5bea39[_0x187d03(0x156)]?_0x187d03(0x151):_0x187d03(0x179);_0x2361f6[_0x187d03(0x15d)](),_0xc799ce[_0x187d03(0x155)][_0x187d03(0x14e)][_0x2cef31]=_0x1817a6-_0x2361f6[_0x187d03(0x169)]+0x1+'px';}});};return this[_0x285a6f(0x154)][_0x285a6f(0x175)]['on'](_0x285a6f(0x171),_0x481690),this['on'](_0x285a6f(0x177),_0x481690),_0xc799ce;}[_0x56e40f(0x17d)](){const _0xc888e6=_0x56e40f,_0x26d89c=this[_0xc888e6(0x154)][_0xc888e6(0x175)][_0xc888e6(0x155)][_0xc888e6(0x152)];this[_0xc888e6(0x17f)](_0xc888e6(0x17d),_0x26d89c);}[_0x56e40f(0x17e)](_0x1b53dd){const _0x320917=_0x56e40f;-0x1===_0x1b53dd?this[_0x320917(0x174)][_0x320917(0x164)]():this[_0x320917(0x174)][_0x320917(0x16d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
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 _0xc1eaa0=_0x3dbb;(function(_0x2a7f3b,_0xeb0c37){const _0x463b8c=_0x3dbb,_0x538829=_0x2a7f3b();while(!![]){try{const _0x456691=-parseInt(_0x463b8c(0x144))/0x1*(-parseInt(_0x463b8c(0x141))/0x2)+parseInt(_0x463b8c(0x116))/0x3+-parseInt(_0x463b8c(0x157))/0x4*(parseInt(_0x463b8c(0x158))/0x5)+-parseInt(_0x463b8c(0x143))/0x6+-parseInt(_0x463b8c(0x12b))/0x7+parseInt(_0x463b8c(0x159))/0x8*(parseInt(_0x463b8c(0x118))/0x9)+parseInt(_0x463b8c(0x13d))/0xa;if(_0x456691===_0xeb0c37)break;else _0x538829['push'](_0x538829['shift']());}catch(_0x1c35a2){_0x538829['push'](_0x538829['shift']());}}}(_0x3f0d,0xc0a91));import{FocusTracker as _0x2aec2a,KeystrokeHandler as _0x12accf}from'ckeditor5/src/utils.js';import{View as _0x5c8843,FocusCycler as _0x518d6a,createLabeledTextarea as _0x5a0942}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x4ecb84,AIFormToolbarViewMainActionLabel as _0x12f5fe}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x39b55}from'./aiformcontentarea.js';import{AIFormErrorView as _0x24c901}from'./aiformerrorview.js';function _0x3dbb(_0x1ea442,_0x37c853){const _0x3f0dde=_0x3f0d();return _0x3dbb=function(_0x3dbb46,_0x375f0d){_0x3dbb46=_0x3dbb46-0x10d;let _0x2b0945=_0x3f0dde[_0x3dbb46];return _0x2b0945;},_0x3dbb(_0x1ea442,_0x37c853);}import{AIFormPromptView as _0x183d1e}from'./aiformpromptview.js';import{AIHistoryListView as _0x44795b}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3a7cb6}from'./aihistorylistitemview.js';import{PromptHistory as _0x2e482b}from'./prompthistory.js';import{getTranslation as _0x4a02bc}from'../../utils/common-translations.js';import{escape as _0x2b1abc}from'es-toolkit/compat';export class AIFormView extends _0x5c8843{[_0xc1eaa0(0x150)];[_0xc1eaa0(0x132)];[_0xc1eaa0(0x111)];[_0xc1eaa0(0x152)];[_0xc1eaa0(0x148)];[_0xc1eaa0(0x12d)];[_0xc1eaa0(0x15c)];[_0xc1eaa0(0x154)];[_0xc1eaa0(0x11f)];constructor(_0x436acb,_0x496b4c,_0x5be5f9=''){const _0x1a68a0=_0xc1eaa0;super(_0x436acb),this[_0x1a68a0(0x11a)](_0x1a68a0(0x113),!0x0),this[_0x1a68a0(0x11a)](_0x1a68a0(0x119),!0x1),this[_0x1a68a0(0x11a)](_0x1a68a0(0x114),''),this[_0x1a68a0(0x11a)](_0x1a68a0(0x160),''),this[_0x1a68a0(0x11a)](_0x1a68a0(0x133),!0x1),this[_0x1a68a0(0x11a)](_0x1a68a0(0x115),_0x12f5fe[_0x1a68a0(0x138)]),this[_0x1a68a0(0x11f)]=new _0x2e482b(),this[_0x1a68a0(0x12d)]=new _0x24c901(_0x436acb),this[_0x1a68a0(0x111)]=new _0x39b55(_0x436acb,_0x5be5f9),this[_0x1a68a0(0x111)][_0x1a68a0(0x139)](_0x1a68a0(0x119))['to'](this),this[_0x1a68a0(0x111)][_0x1a68a0(0x139)](_0x1a68a0(0x160))['to'](this),this[_0x1a68a0(0x152)]=this[_0x1a68a0(0x151)](),this[_0x1a68a0(0x152)][_0x1a68a0(0x139)](_0x1a68a0(0x115))['to'](this),this[_0x1a68a0(0x148)]=this[_0x1a68a0(0x110)](),this[_0x1a68a0(0x150)]=new _0x2aec2a(),this[_0x1a68a0(0x132)]=new _0x12accf(),this[_0x1a68a0(0x15c)]=this[_0x1a68a0(0x15a)]([this[_0x1a68a0(0x111)],this[_0x1a68a0(0x111)][_0x1a68a0(0x121)],this[_0x1a68a0(0x152)],this[_0x1a68a0(0x148)]]),this[_0x1a68a0(0x154)]=new _0x518d6a({'focusables':this[_0x1a68a0(0x15c)],'focusTracker':this[_0x1a68a0(0x150)],'keystrokeHandler':this[_0x1a68a0(0x132)],'actions':{'focusPrevious':_0x1a68a0(0x135),'focusNext':_0x1a68a0(0x131)}}),this[_0x1a68a0(0x154)][_0x1a68a0(0x127)](this[_0x1a68a0(0x148)][_0x1a68a0(0x154)]),this[_0x1a68a0(0x148)][_0x1a68a0(0x13f)][_0x1a68a0(0x125)][_0x1a68a0(0x139)](_0x1a68a0(0x160))['to'](this,_0x1a68a0(0x114));const _0x36d2ff=this[_0x1a68a0(0x10d)];this[_0x1a68a0(0x15d)]({'tag':_0x1a68a0(0x128),'attributes':{'class':['ck',_0x1a68a0(0x14d),_0x496b4c],'tabindex':'-1'},'children':[{'tag':_0x1a68a0(0x128),'attributes':{'class':['ck',_0x1a68a0(0x13a)]},'children':[{'tag':_0x1a68a0(0x128),'attributes':{'class':[_0x36d2ff['if'](_0x1a68a0(0x133),_0x1a68a0(0x13c),_0x558ba4=>!_0x558ba4)]},'children':[this[_0x1a68a0(0x12d)]]},this[_0x1a68a0(0x111)],this[_0x1a68a0(0x152)],this[_0x1a68a0(0x148)]]}]});}[_0xc1eaa0(0x130)](){const _0x2a3f63=_0xc1eaa0;super[_0x2a3f63(0x130)](),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x111)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x111)][_0x2a3f63(0x121)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x152)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x150)][_0x2a3f63(0x129)](this[_0x2a3f63(0x148)][_0x2a3f63(0x120)]),this[_0x2a3f63(0x132)][_0x2a3f63(0x11c)](this[_0x2a3f63(0x120)]);}[_0xc1eaa0(0x14c)](_0x2b6c22=0x1){const _0x1aee51=_0xc1eaa0;-0x1===_0x2b6c22?this[_0x1aee51(0x154)][_0x1aee51(0x14e)]():this[_0x1aee51(0x154)][_0x1aee51(0x126)]();}[_0xc1eaa0(0x137)](){const _0x48be12=_0xc1eaa0;this[_0x48be12(0x114)]='',this[_0x48be12(0x160)]='',this[_0x48be12(0x133)]=!0x1,this[_0x48be12(0x148)][_0x48be12(0x137)](),this[_0x48be12(0x111)][_0x48be12(0x12f)]=!0x1,this[_0x48be12(0x152)][_0x48be12(0x12f)]=!0x1;}[_0xc1eaa0(0x110)](){const _0xfe4079=_0xc1eaa0,_0x132b39=this[_0xfe4079(0x13e)],_0x39862f=new _0x183d1e(_0x132b39,{'queryView':{'label':_0x4a02bc(_0x132b39,_0xfe4079(0x11e)),'creator':_0x5a0942,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4a02bc(_0x132b39,_0xfe4079(0x15e)),'secondary':_0x4a02bc(_0x132b39,_0xfe4079(0x156))}}},'filteredView':this[_0xfe4079(0x122)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x39862f[_0xfe4079(0x139)](_0xfe4079(0x113))['to'](this,_0xfe4079(0x113),this,_0xfe4079(0x119),(_0x5a1d37,_0x37c218)=>_0x5a1d37&&!_0x37c218),this[_0xfe4079(0x11c)](_0x39862f,_0xfe4079(0x15f),(_0x4134db,_0x2581c1)=>{const _0x1ac993=_0xfe4079;this[_0x1ac993(0x114)]=_0x2581c1;const _0x2fbe7d=_0x2b1abc(_0x2581c1);this[_0x1ac993(0x136)](_0x1ac993(0x155),_0x2fbe7d),_0x2581c1[_0x1ac993(0x145)]()&&this[_0x1ac993(0x11f)][_0x1ac993(0x129)]({'prompt':_0x2fbe7d},0x0);},{'priority':_0xfe4079(0x12c)}),_0x39862f;}[_0xc1eaa0(0x122)](){const _0x24f66f=_0xc1eaa0,_0x19eabd=new _0x44795b(this[_0x24f66f(0x13e)]);return _0x19eabd[_0x24f66f(0x112)][_0x24f66f(0x153)][_0x24f66f(0x140)](this[_0x24f66f(0x11f)])['as'](_0x3a7cb6),_0x19eabd['on'](_0x24f66f(0x11d),()=>{const _0x4f6e11=_0x24f66f;this[_0x4f6e11(0x11f)][_0x4f6e11(0x146)](),this[_0x4f6e11(0x148)][_0x4f6e11(0x14a)](''),this[_0x4f6e11(0x148)][_0x4f6e11(0x14c)]();}),_0x19eabd;}[_0xc1eaa0(0x151)](){const _0x2bcc17=_0xc1eaa0,_0x3600ca=new _0x4ecb84(this[_0x2bcc17(0x13e)]);return _0x3600ca[_0x2bcc17(0x11b)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x113),this,_0x2bcc17(0x119),this,_0x2bcc17(0x160),(_0x1cac0e,_0xb82ae6,_0x45afcb)=>_0x1cac0e&&!_0xb82ae6&&!!_0x45afcb),_0x3600ca[_0x2bcc17(0x11b)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x12e)),_0x3600ca[_0x2bcc17(0x147)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x113),this,_0x2bcc17(0x119),this,_0x2bcc17(0x160),(_0x1acd53,_0x3e36f0,_0x14d6b4)=>_0x1acd53&&!_0x3e36f0&&!!_0x14d6b4),_0x3600ca[_0x2bcc17(0x147)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x10f)),_0x3600ca[_0x2bcc17(0x123)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x113),this,_0x2bcc17(0x119),(_0x2b4e47,_0x5901c2)=>_0x2b4e47&&!_0x5901c2),_0x3600ca[_0x2bcc17(0x123)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x124)),_0x3600ca[_0x2bcc17(0x117)][_0x2bcc17(0x139)](_0x2bcc17(0x113))['to'](this,_0x2bcc17(0x119)),_0x3600ca[_0x2bcc17(0x117)][_0x2bcc17(0x15b)](_0x2bcc17(0x14b))['to'](this,_0x2bcc17(0x14f)),_0x3600ca;}[_0xc1eaa0(0x12a)](){const _0x17ee9f=_0xc1eaa0;this[_0x17ee9f(0x160)]='',this[_0x17ee9f(0x133)]=!0x1,this[_0x17ee9f(0x119)]=!0x0,this[_0x17ee9f(0x111)][_0x17ee9f(0x12f)]=!0x0,this[_0x17ee9f(0x152)][_0x17ee9f(0x12f)]=!0x0,this[_0x17ee9f(0x111)][_0x17ee9f(0x14c)]();}[_0xc1eaa0(0x10e)](){const _0x1162fb=_0xc1eaa0,_0x164da5=this[_0x1162fb(0x13e)];this[_0x1162fb(0x119)]=!0x1,this[_0x1162fb(0x114)]='',this[_0x1162fb(0x148)][_0x1162fb(0x137)](),this[_0x1162fb(0x160)]&&(this[_0x1162fb(0x148)][_0x1162fb(0x13f)][_0x1162fb(0x142)]=_0x4a02bc(_0x164da5,_0x1162fb(0x149)));}[_0xc1eaa0(0x161)](_0x3ef91d){const _0x128e0f=_0xc1eaa0,_0x431032=this[_0x128e0f(0x13e)];this[_0x128e0f(0x10e)](),this[_0x128e0f(0x133)]=!0x0,this[_0x128e0f(0x12d)][_0x128e0f(0x134)]=_0x3ef91d||_0x4a02bc(_0x431032,_0x128e0f(0x13b)),this[_0x128e0f(0x160)]||(this[_0x128e0f(0x111)][_0x128e0f(0x12f)]=!0x1);}}function _0x3f0d(){const _0x2d763e=['bindTemplate','finishProcessing','insertContentBelow','_createPromptView','contentArea','historyGroupView','isEnabled','prompt','mainAction','215037vFXmpv','stopButton','143316WqEjSh','isProcessing','set','replaceButton','listenTo','clearHistory','Ask\x20AI\x20to\x20edit\x20or\x20generate','_promptHistory','element','copyButtonView','_createHistoryView','tryAgainButton','tryAgainEvent','fieldView','focusFirst','chain','div','add','startProcessing','3968685WlBTgB','high','errorView','replaceContent','isVisible','render','tab','keystrokes','isError','text','shift\x20+\x20tab','fire','reset','REPLACE','bind','ck-ai-form-content','AI_ERROR_FAILED','ck-hidden','22489060JfHGKQ','locale','queryView','bindTo','2ksEQbr','label','5793738SOEXvi','54645oemqvz','trim','clear','insertButton','promptView','Ask\x20AI\x20to\x20improve\x20generated\x20text','search','execute','focus','ck-ai-form','focusLast','stopProcessing','focusTracker','_createToolbar','toolbar','items','focusCycler','submitPrompt','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','3844732mrUHur','5ESWODU','456wIoYdv','createCollection','delegate','_focusables','setTemplate','Empty\x20history','submit','value','handleError'];_0x3f0d=function(){return _0x2d763e;};return _0x3f0d();}
|
|
@@ -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
|
-
|
|
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
|
-
function _0x15a5(_0x4856f7,_0x2c310e){const _0x43b345=_0x43b3();return _0x15a5=function(_0x15a5a7,_0x44c6aa){_0x15a5a7=_0x15a5a7-0x78;let _0x6ad0cd=_0x43b345[_0x15a5a7];return _0x6ad0cd;},_0x15a5(_0x4856f7,_0x2c310e);}const _0x1d91cd=_0x15a5;(function(_0x2f8218,_0x146c2b){const _0x37c6b4=_0x15a5,_0x1b12dd=_0x2f8218();while(!![]){try{const _0xda67b6=-parseInt(_0x37c6b4(0xde))/0x1*(parseInt(_0x37c6b4(0xb4))/0x2)+-parseInt(_0x37c6b4(0xd8))/0x3*(parseInt(_0x37c6b4(0x97))/0x4)+parseInt(_0x37c6b4(0xd9))/0x5*(parseInt(_0x37c6b4(0x90))/0x6)+-parseInt(_0x37c6b4(0xc5))/0x7+-parseInt(_0x37c6b4(0xb5))/0x8+-parseInt(_0x37c6b4(0xaa))/0x9+-parseInt(_0x37c6b4(0x91))/0xa*(-parseInt(_0x37c6b4(0xab))/0xb);if(_0xda67b6===_0x146c2b)break;else _0x1b12dd['push'](_0x1b12dd['shift']());}catch(_0x1a3f37){_0x1b12dd['push'](_0x1b12dd['shift']());}}}(_0x43b3,0x872d9));import{ContextPlugin as _0x15dc63}from'ckeditor5/src/core.js';import{AIConnector as _0x112393}from'../aicore/aiconnector.js';import{AIEditing as _0x86949d}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x21226a,AIBalloonView as _0xc09b77}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x43b3(){const _0x6c19ba=['showFakeVisualSelection','once','length','AI_ACTIONS_SELECTION_REMOVED_ERROR','markers','index','bottom','ai-selection','ai.availableReplyActions','7137186TnjWiu','ranges','isOfficialPlugin','_pendingRenderCallback','setupRotator','config','showBlockingError','locale','getIntersection','render','updatePosition','isOpen','balloonView','model','context','AIBalloon','differ','startsWith','bind','153eWWrOr','302935BPXKPL','_setupVisualSelection','ai-balloon-selection','icon','requires','18FExGxw','_showDialog','document','isEqual','hide','pluginName','height','_config','getMarkersGroup','rootName','headerView','_isUpdatingMarkers','editing','updateContent','aiBalloon','round','max','ai-balloon-','isPremiumPlugin','AIEditing','stopAutoScroll','getVisible','_calculateDialogPosition','left','window','\x20ai-balloon-rotator','_calculateOptimalTopPosition','commands','change','Dialog','off','delegate','102KaGAAD','30TYeaxZ','trackChanges','root','start','value','getChangedMarkers','61168DEhyDR','ai-balloon','_cleanupMarkerRemovalListener','fire','$graveyard','isTrackChangesOn','iconView','plugins','listenTo','_getSelectionElements','view','ai-selection:','end','_updateBalloon','show','showRotator','startAutoScroll','selectionRemoved','mainView','9050598ZWcYeN','12591689YvkgoU','label','open','getBoundingRect','close','top','content','title','hideFakeVisualSelection','29658XDCoUM','6706824mIerJF','width','_setupMarkerRemovalListener','stopListening','dialogClosed','filter','get'];_0x43b3=function(){return _0x6c19ba;};return _0x43b3();}import{getAllMarkersDomElementsSorted as _0xd2e375}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2fe053,Rect as _0x1886d0,scrollViewportToShowTarget as _0x2ed5d4}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xcf8872}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x28a520}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0xc1c6c2}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x21226a,_0x1d91cd(0xb9),_0x1d91cd(0xa8)];const lt=0xa;export class AIBalloon extends _0x15dc63{static get[_0x1d91cd(0xdd)](){return[_0x112393,_0x86949d];}static get[_0x1d91cd(0xe3)](){const _0x1c4fe5=_0x1d91cd;return _0x1c4fe5(0xd4);}static get[_0x1d91cd(0xc7)](){return!0x0;}static get[_0x1d91cd(0x82)](){return!0x0;}[_0x1d91cd(0xd0)]=!0x1;[_0x1d91cd(0xe5)];[_0x1d91cd(0x7b)]=!0x1;[_0x1d91cd(0xc8)]=null;[_0x1d91cd(0xad)](_0x60cb8c){const _0x126970=_0x1d91cd,_0x27d531=_0xcf8872(this[_0x126970(0xd3)]);if(this[_0x126970(0xe5)]=_0x60cb8c,this[_0x126970(0xd0)])return void this[_0x126970(0xa4)](_0x60cb8c);const _0x30864a=this[_0x126970(0xd3)][_0x126970(0xca)][_0x126970(0xbb)](_0x126970(0xc4))||[..._0x28a520],_0x47e21b=_0x27d531?.[_0x126970(0x8b)][_0x126970(0xbb)](_0x126970(0x92)),_0x5382f0=_0x47e21b?.[_0x126970(0x95)];this[_0x126970(0xd1)]=new _0xc09b77(_0x27d531[_0x126970(0xcc)],_0x60cb8c,_0x30864a,!!_0x5382f0),this[_0x126970(0xd1)][_0x126970(0x8f)](..._0x21226a)['to'](this),_0x47e21b&&this[_0x126970(0xd1)][_0x126970(0xd7)](_0x126970(0x9c))['to'](_0x47e21b,_0x126970(0x95)),this[_0x126970(0xdf)](_0x60cb8c);}[_0x1d91cd(0xaf)](){const _0x5f3cd7=_0x1d91cd;_0xcf8872(this[_0x5f3cd7(0xd3)])[_0x5f3cd7(0x9e)][_0x5f3cd7(0xbb)](_0x5f3cd7(0x8d))[_0x5f3cd7(0xe2)]();}[_0x1d91cd(0xa7)](){const _0x46bcd1=_0x1d91cd;this[_0x46bcd1(0xd1)]&&this[_0x46bcd1(0xd1)][_0x46bcd1(0xa7)]();}[_0x1d91cd(0x84)](){const _0x85480=_0x1d91cd;this[_0x85480(0xd1)]&&this[_0x85480(0xd1)][_0x85480(0x84)]();}[_0x1d91cd(0xa4)](_0x5a8e77){const _0x4762f7=_0x1d91cd,_0x19d46e=_0xcf8872(this[_0x4762f7(0xd3)]),_0x2de298=_0x19d46e[_0x4762f7(0x9e)][_0x4762f7(0xbb)](_0x4762f7(0x8d));this[_0x4762f7(0xc8)]&&(_0x19d46e[_0x4762f7(0x7c)][_0x4762f7(0xa1)][_0x4762f7(0x8e)](_0x4762f7(0xce),this[_0x4762f7(0xc8)]),this[_0x4762f7(0xc8)]=null),this[_0x4762f7(0x7b)]=!0x0,_0x2de298[_0x4762f7(0xa1)]?.[_0x4762f7(0x7a)]&&(_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0xac)]=_0x5a8e77[_0x4762f7(0xb2)],_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0x9d)]&&_0x5a8e77[_0x4762f7(0xdc)]&&(_0x2de298[_0x4762f7(0xa1)][_0x4762f7(0x7a)][_0x4762f7(0x9d)][_0x4762f7(0xb1)]=_0x5a8e77[_0x4762f7(0xdc)])),this[_0x4762f7(0xd1)][_0x4762f7(0x7d)](_0x5a8e77[_0x4762f7(0xa9)]),this[_0x4762f7(0xda)](_0x5a8e77[_0x4762f7(0xc6)],_0x5a8e77[_0x4762f7(0xc1)]),this[_0x4762f7(0xc8)]=()=>{const _0x4f855c=_0x4762f7;this[_0x4f855c(0x7b)]=!0x1,this[_0x4f855c(0xc8)]=null,_0x2de298[_0x4f855c(0xa1)]&&_0x2de298[_0x4f855c(0xa1)][_0x4f855c(0xcf)]();},_0x19d46e[_0x4762f7(0x7c)][_0x4762f7(0xa1)][_0x4762f7(0xbd)](_0x4762f7(0xce),this[_0x4762f7(0xc8)]);}[_0x1d91cd(0xda)](_0x48a7c3,_0x2f3093){const _0x4a6cac=_0x1d91cd;this[_0x4a6cac(0xd3)][_0x4a6cac(0x9e)][_0x4a6cac(0xbb)](_0x86949d)[_0x4a6cac(0xbc)](_0x48a7c3,_0x4a6cac(0x81)+_0x2f3093,!0x0,!0x0);}[_0x1d91cd(0xdf)](_0x4cf91a){const _0xf1afc0=_0x1d91cd,_0x45add2=_0xcf8872(this[_0xf1afc0(0xd3)]);this[_0xf1afc0(0xda)](_0x4cf91a[_0xf1afc0(0xc6)],_0x4cf91a[_0xf1afc0(0xc1)]);const _0x597a57=this[_0xf1afc0(0xa0)]();_0x597a57&&_0x597a57[0x0]&&_0x2ed5d4({'target':_0x597a57[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x45add2[_0xf1afc0(0x9e)][_0xf1afc0(0xbb)](_0xf1afc0(0x8d))[_0xf1afc0(0xa5)]({'title':_0x4cf91a[_0xf1afc0(0xb2)],'icon':_0x4cf91a[_0xf1afc0(0xdc)],'hasCloseButton':!0x0,'id':_0xf1afc0(0x7e),'position':this[_0xf1afc0(0x86)][_0xf1afc0(0xd7)](this),'className':_0xf1afc0(0x98)+(_0x4cf91a[_0xf1afc0(0xa6)]?_0xf1afc0(0x89):''),'content':this[_0xf1afc0(0xd1)],'onShow':_0x2444f6=>{const _0x5f1591=_0xf1afc0;_0x4cf91a[_0x5f1591(0xa6)]&&this[_0x5f1591(0xd1)][_0x5f1591(0xc9)](_0x2444f6),this[_0x5f1591(0xb7)](),this[_0x5f1591(0xd0)]=!0x0;},'onHide':()=>{const _0x30decc=_0xf1afc0;this[_0x30decc(0xd3)][_0x30decc(0x9e)][_0x30decc(0xbb)](_0x30decc(0x83))[_0x30decc(0xb3)](_0x30decc(0x81)+this[_0x30decc(0xe5)][_0x30decc(0xc1)]),this[_0x30decc(0x99)](),this[_0x30decc(0x9a)](_0x30decc(0xb9)),this[_0x30decc(0xd0)]=!0x1;}});}[_0x1d91cd(0x86)](_0x288190,_0x2c682e){const _0x3ea84e=_0x1d91cd;if(!_0x2c682e)return null;const _0x764b9e=this[_0x3ea84e(0xa0)]();if(!_0x764b9e||0x0===_0x764b9e[_0x3ea84e(0xbe)])return{'left':Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0x87)]+_0x2c682e[_0x3ea84e(0xb6)]/0x2-_0x288190[_0x3ea84e(0xb6)]/0x2),'top':Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0xb0)]+_0x2c682e[_0x3ea84e(0xe4)]/0x2-_0x288190[_0x3ea84e(0xe4)]/0x2)};const _0x26cf25=Math[_0x3ea84e(0x7f)](_0x2c682e[_0x3ea84e(0x87)]+_0x2c682e[_0x3ea84e(0xb6)]/0x2-_0x288190[_0x3ea84e(0xb6)]/0x2),_0x307c47=new _0x1886d0(_0x764b9e[0x0]),_0x5a83bd=new _0x1886d0(_0x764b9e[_0x764b9e[_0x3ea84e(0xbe)]-0x1]),_0x1655dc=_0x288190[_0x3ea84e(0xe4)],_0x45cd4e=this[_0x3ea84e(0xe5)][_0x3ea84e(0xa6)]?0x8:0x0;return{'left':_0x26cf25,'top':this[_0x3ea84e(0x8a)](_0x307c47,_0x5a83bd,_0x1655dc,_0x45cd4e,_0x2c682e)};}[_0x1d91cd(0x8a)](_0x2f523d,_0x781523,_0x1a707c,_0x339d33=0x0,_0x4888d2){const _0x18ebea=_0x1d91cd,_0x27947c=_0x1a707c+_0x339d33,_0x15e546=new _0x1886d0(_0x2fe053[_0x18ebea(0x88)]),_0x1669c8=[_0x2f523d[_0x18ebea(0x85)](),_0x781523[_0x18ebea(0x85)]()][_0x18ebea(0xba)](_0x39479d=>_0x39479d),_0x38f3bc=_0x1886d0[_0x18ebea(0xae)](_0x1669c8);if(!_0x38f3bc)return Math[_0x18ebea(0x7f)](_0x4888d2[_0x18ebea(0xb0)]+_0x4888d2[_0x18ebea(0xe4)]/0x2);const _0xfa03b5=_0x15e546[_0x18ebea(0xcd)](_0x38f3bc);if(!_0xfa03b5)return Math[_0x18ebea(0x7f)](_0x4888d2[_0x18ebea(0xb0)]+_0x4888d2[_0x18ebea(0xe4)]/0x2);const _0x76772=_0x4888d2[_0x18ebea(0x85)](),_0x1f5ca2=_0x76772&&_0x38f3bc[_0x18ebea(0xe4)]>_0x76772[_0x18ebea(0xe4)],_0x29ae0=_0xfa03b5[_0x18ebea(0xb0)],_0x2520ff=_0xfa03b5[_0x18ebea(0xc2)];if(_0x1f5ca2){const _0x5db8b6=(_0x76772||_0x15e546)[_0x18ebea(0xe4)]/0x2-_0x27947c/0x2,_0x16e014=_0x29ae0-lt-_0x4888d2[_0x18ebea(0xb0)],_0x3c49e9=_0x4888d2[_0x18ebea(0xc2)]-_0x2520ff-lt;return _0x16e014>=_0x27947c?Math[_0x18ebea(0x80)](lt,_0x29ae0-_0x27947c-lt):_0x3c49e9>=_0x27947c?_0x2520ff+lt:Math[_0x18ebea(0x80)](lt,_0x5db8b6);}const _0x2afc40=_0x29ae0-_0x27947c,_0x18e559=_0x4888d2[_0x18ebea(0xc2)]-_0x2520ff-lt,_0x46fb5f=_0x29ae0-lt-_0x4888d2[_0x18ebea(0xb0)];let _0x4edeb5;if(_0x18e559>=_0x27947c)_0x4edeb5=_0x2520ff+lt;else{if(_0x46fb5f>=_0x27947c)_0x4edeb5=_0x2afc40-lt;else _0x4edeb5=_0x29ae0+_0x38f3bc[_0x18ebea(0xe4)]/0x2-_0x27947c/0x2;}return _0x4edeb5;}[_0x1d91cd(0xb7)](){const _0x9117c9=_0x1d91cd,_0x1b03e1=_0xcf8872(this[_0x9117c9(0xd3)]);this[_0x9117c9(0x9f)](_0x1b03e1[_0x9117c9(0xd2)][_0x9117c9(0xe0)],_0x9117c9(0x8c),()=>{const _0x57bafa=_0x9117c9;if(this[_0x57bafa(0x7b)])return;for(const {name:_0x424c33,data:{newRange:_0x5778ec}}of _0x1b03e1[_0x57bafa(0xd2)][_0x57bafa(0xe0)][_0x57bafa(0xd5)][_0x57bafa(0x96)]())if(_0x424c33[_0x57bafa(0xd6)](_0x57bafa(0xa2))&&(_0x5778ec&&(_0x5778ec[_0x57bafa(0x94)][_0x57bafa(0xe1)](_0x5778ec[_0x57bafa(0xa3)])||_0x57bafa(0x9b)==_0x5778ec[_0x57bafa(0x93)][_0x57bafa(0x79)])||null==_0x5778ec)){const _0x195128=_0xc1c6c2(this[_0x57bafa(0xd3)][_0x57bafa(0xcc)],_0x57bafa(0xbf));this[_0x57bafa(0xd1)][_0x57bafa(0xcb)](_0x195128),this[_0x57bafa(0x9a)](_0x57bafa(0xa8));}});}[_0x1d91cd(0x99)](){const _0x14cc28=_0x1d91cd,_0x508a67=_0xcf8872(this[_0x14cc28(0xd3)]);this[_0x14cc28(0xb8)](_0x508a67[_0x14cc28(0xd2)][_0x14cc28(0xe0)]);}[_0x1d91cd(0xa0)](){const _0x28c4e7=_0x1d91cd,_0x137478=_0xcf8872(this[_0x28c4e7(0xd3)]);return _0xd2e375(_0x137478[_0x28c4e7(0x7c)],[..._0x137478[_0x28c4e7(0xd2)][_0x28c4e7(0xc0)][_0x28c4e7(0x78)](_0x28c4e7(0xc3)),..._0x137478[_0x28c4e7(0xd2)][_0x28c4e7(0xc0)][_0x28c4e7(0x78)](_0x28c4e7(0xdb))]);}}
|
|
23
|
+
const _0x23a8c7=_0x34e6;(function(_0x5122f1,_0x521127){const _0x277f77=_0x34e6,_0x4e87ec=_0x5122f1();while(!![]){try{const _0x39477f=-parseInt(_0x277f77(0x15a))/0x1*(-parseInt(_0x277f77(0x193))/0x2)+-parseInt(_0x277f77(0x14d))/0x3*(-parseInt(_0x277f77(0x17a))/0x4)+parseInt(_0x277f77(0x176))/0x5*(-parseInt(_0x277f77(0x166))/0x6)+-parseInt(_0x277f77(0x18f))/0x7+-parseInt(_0x277f77(0x180))/0x8*(-parseInt(_0x277f77(0x169))/0x9)+-parseInt(_0x277f77(0x14c))/0xa+parseInt(_0x277f77(0x179))/0xb;if(_0x39477f===_0x521127)break;else _0x4e87ec['push'](_0x4e87ec['shift']());}catch(_0x2532f3){_0x4e87ec['push'](_0x4e87ec['shift']());}}}(_0x40ae,0x9da93));import{ContextPlugin as _0x25e319}from'ckeditor5/src/core.js';import{AIConnector as _0x3a5fb2}from'../aicore/aiconnector.js';import{AIEditing as _0x3662a5}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x1de6a1,AIBalloonView as _0x32344d}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x34e6(_0x5200e7,_0x1379e1){const _0x40aee9=_0x40ae();return _0x34e6=function(_0x34e6c9,_0x10170a){_0x34e6c9=_0x34e6c9-0x130;let _0x14c295=_0x40aee9[_0x34e6c9];return _0x14c295;},_0x34e6(_0x5200e7,_0x1379e1);}import{getAllMarkersDomElementsSorted as _0x1c08af}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x89170a,Rect as _0x4db63e,scrollViewportToShowTarget as _0x588e1b}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x42e812}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3b31d4}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x126373}from'../aicore/utils/common-translations.js';function _0x40ae(){const _0xb7764f=['content','markers','label','fire','getBoundingRect','ai-selection','root','getMarkersGroup','5BVduio','requires','getChangedMarkers','2551021spfwpD','11860earmyc','commands','view','_config','window','headerView','548072GpcSAW','document','plugins','isEqual','hideFakeVisualSelection','dialogClosed','isTrackChangesOn','height','ai.availableReplyActions','show','_setupMarkerRemovalListener','title','updatePosition','index','rootName','5391456KFOtoK','differ','startAutoScroll','_calculateOptimalTopPosition','16586dnKncp','selectionRemoved','getIntersection','AIEditing','stopAutoScroll','\x20ai-balloon-rotator','showFakeVisualSelection','setupRotator','mainView','close','editing','ai-balloon-selection','render','trackChanges','max','delegate','filter','_isUpdatingMarkers','balloonView','hide','get','_getSelectionElements','isOfficialPlugin','context','_calculateDialogPosition','_updateBalloon','end','ai-balloon-','locale','ranges','iconView','off','isOpen','Dialog','pluginName','aiBalloon','_setupVisualSelection','config','AI_ACTIONS_SELECTION_REMOVED_ERROR','6069220bNdmfF','939FRmBaS','start','getVisible','ai-balloon','left','length','showRotator','model','_showDialog','_cleanupMarkerRemovalListener','$graveyard','value','AIBalloon','130cWiGID','stopListening','top','open','startsWith','isPremiumPlugin','bind','icon','width','change','_pendingRenderCallback','showBlockingError','6634524PlDnxZ','bottom','ai-selection:','117WAXyGh','updateContent','once','round','listenTo'];_0x40ae=function(){return _0xb7764f;};return _0x40ae();}export const AI_BALLOON_EVENT_NAMES=[..._0x1de6a1,_0x23a8c7(0x185),_0x23a8c7(0x194)];const mt=0xa;export class AIBalloon extends _0x25e319{static get[_0x23a8c7(0x177)](){return[_0x3a5fb2,_0x3662a5];}static get[_0x23a8c7(0x147)](){const _0x564509=_0x23a8c7;return _0x564509(0x159);}static get[_0x23a8c7(0x13b)](){return!0x0;}static get[_0x23a8c7(0x15f)](){return!0x0;}[_0x23a8c7(0x145)]=!0x1;[_0x23a8c7(0x17d)];[_0x23a8c7(0x136)]=!0x1;[_0x23a8c7(0x164)]=null;[_0x23a8c7(0x15d)](_0x3bd4bd){const _0x41b978=_0x23a8c7,_0xead4ee=_0x42e812(this[_0x41b978(0x13c)]);if(this[_0x41b978(0x17d)]=_0x3bd4bd,this[_0x41b978(0x145)])return void this[_0x41b978(0x13e)](_0x3bd4bd);const _0x488cd3=this[_0x41b978(0x13c)][_0x41b978(0x14a)][_0x41b978(0x139)](_0x41b978(0x188))||[..._0x3b31d4],_0x424d76=_0xead4ee?.[_0x41b978(0x17b)][_0x41b978(0x139)](_0x41b978(0x132)),_0x4cc68e=_0x424d76?.[_0x41b978(0x158)];this[_0x41b978(0x137)]=new _0x32344d(_0xead4ee[_0x41b978(0x141)],_0x3bd4bd,_0x488cd3,!!_0x4cc68e),this[_0x41b978(0x137)][_0x41b978(0x134)](..._0x1de6a1)['to'](this),_0x424d76&&this[_0x41b978(0x137)][_0x41b978(0x160)](_0x41b978(0x186))['to'](_0x424d76,_0x41b978(0x158)),this[_0x41b978(0x155)](_0x3bd4bd);}[_0x23a8c7(0x19c)](){const _0x17fe7f=_0x23a8c7;_0x42e812(this[_0x17fe7f(0x13c)])[_0x17fe7f(0x182)][_0x17fe7f(0x139)](_0x17fe7f(0x146))[_0x17fe7f(0x138)]();}[_0x23a8c7(0x191)](){const _0x1e42e5=_0x23a8c7;this[_0x1e42e5(0x137)]&&this[_0x1e42e5(0x137)][_0x1e42e5(0x191)]();}[_0x23a8c7(0x197)](){const _0x242473=_0x23a8c7;this[_0x242473(0x137)]&&this[_0x242473(0x137)][_0x242473(0x197)]();}[_0x23a8c7(0x13e)](_0x437af4){const _0x5098f1=_0x23a8c7,_0x2ff1d7=_0x42e812(this[_0x5098f1(0x13c)]),_0x2c368a=_0x2ff1d7[_0x5098f1(0x182)][_0x5098f1(0x139)](_0x5098f1(0x146));this[_0x5098f1(0x164)]&&(_0x2ff1d7[_0x5098f1(0x19d)][_0x5098f1(0x17c)][_0x5098f1(0x144)](_0x5098f1(0x131),this[_0x5098f1(0x164)]),this[_0x5098f1(0x164)]=null),this[_0x5098f1(0x136)]=!0x0,_0x2c368a[_0x5098f1(0x17c)]?.[_0x5098f1(0x17f)]&&(_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x170)]=_0x437af4[_0x5098f1(0x18b)],_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x143)]&&_0x437af4[_0x5098f1(0x161)]&&(_0x2c368a[_0x5098f1(0x17c)][_0x5098f1(0x17f)][_0x5098f1(0x143)][_0x5098f1(0x16e)]=_0x437af4[_0x5098f1(0x161)])),this[_0x5098f1(0x137)][_0x5098f1(0x16a)](_0x437af4[_0x5098f1(0x19b)]),this[_0x5098f1(0x149)](_0x437af4[_0x5098f1(0x142)],_0x437af4[_0x5098f1(0x18d)]),this[_0x5098f1(0x164)]=()=>{const _0x4bf0f2=_0x5098f1;this[_0x4bf0f2(0x136)]=!0x1,this[_0x4bf0f2(0x164)]=null,_0x2c368a[_0x4bf0f2(0x17c)]&&_0x2c368a[_0x4bf0f2(0x17c)][_0x4bf0f2(0x18c)]();},_0x2ff1d7[_0x5098f1(0x19d)][_0x5098f1(0x17c)][_0x5098f1(0x16b)](_0x5098f1(0x131),this[_0x5098f1(0x164)]);}[_0x23a8c7(0x149)](_0x35ecd8,_0x5180a8){const _0x15bea8=_0x23a8c7;this[_0x15bea8(0x13c)][_0x15bea8(0x182)][_0x15bea8(0x139)](_0x3662a5)[_0x15bea8(0x199)](_0x35ecd8,_0x15bea8(0x140)+_0x5180a8,!0x0,!0x0);}[_0x23a8c7(0x155)](_0x17bb4b){const _0x804615=_0x23a8c7,_0x462143=_0x42e812(this[_0x804615(0x13c)]);this[_0x804615(0x149)](_0x17bb4b[_0x804615(0x142)],_0x17bb4b[_0x804615(0x18d)]);const _0x2284b3=this[_0x804615(0x13a)]();_0x2284b3&&_0x2284b3[0x0]&&_0x588e1b({'target':_0x2284b3[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x462143[_0x804615(0x182)][_0x804615(0x139)](_0x804615(0x146))[_0x804615(0x189)]({'title':_0x17bb4b[_0x804615(0x18b)],'icon':_0x17bb4b[_0x804615(0x161)],'hasCloseButton':!0x0,'id':_0x804615(0x148),'position':this[_0x804615(0x13d)][_0x804615(0x160)](this),'className':_0x804615(0x150)+(_0x17bb4b[_0x804615(0x153)]?_0x804615(0x198):''),'content':this[_0x804615(0x137)],'onShow':_0x19ffb7=>{const _0x145581=_0x804615;_0x17bb4b[_0x145581(0x153)]&&this[_0x145581(0x137)][_0x145581(0x19a)](_0x19ffb7),this[_0x145581(0x18a)](),this[_0x145581(0x145)]=!0x0;},'onHide':()=>{const _0x3f89c4=_0x804615;this[_0x3f89c4(0x13c)][_0x3f89c4(0x182)][_0x3f89c4(0x139)](_0x3f89c4(0x196))[_0x3f89c4(0x184)](_0x3f89c4(0x140)+this[_0x3f89c4(0x17d)][_0x3f89c4(0x18d)]),this[_0x3f89c4(0x156)](),this[_0x3f89c4(0x171)](_0x3f89c4(0x185)),this[_0x3f89c4(0x145)]=!0x1;}});}[_0x23a8c7(0x13d)](_0x2037bf,_0x53432){const _0x2c6467=_0x23a8c7;if(!_0x53432)return null;const _0x258090=this[_0x2c6467(0x13a)]();if(!_0x258090||0x0===_0x258090[_0x2c6467(0x152)])return{'left':Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x151)]+_0x53432[_0x2c6467(0x162)]/0x2-_0x2037bf[_0x2c6467(0x162)]/0x2),'top':Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x15c)]+_0x53432[_0x2c6467(0x187)]/0x2-_0x2037bf[_0x2c6467(0x187)]/0x2)};const _0x50d6e4=Math[_0x2c6467(0x16c)](_0x53432[_0x2c6467(0x151)]+_0x53432[_0x2c6467(0x162)]/0x2-_0x2037bf[_0x2c6467(0x162)]/0x2),_0xaab431=new _0x4db63e(_0x258090[0x0]),_0x1e081c=new _0x4db63e(_0x258090[_0x258090[_0x2c6467(0x152)]-0x1]),_0x426b3b=_0x2037bf[_0x2c6467(0x187)],_0x159d8c=this[_0x2c6467(0x17d)][_0x2c6467(0x153)]?0x8:0x0;return{'left':_0x50d6e4,'top':this[_0x2c6467(0x192)](_0xaab431,_0x1e081c,_0x426b3b,_0x159d8c,_0x53432)};}[_0x23a8c7(0x192)](_0x305acd,_0x2ad698,_0x4c313f,_0x4d0569=0x0,_0x2a4965){const _0x1a94bb=_0x23a8c7,_0x4dc66e=_0x4c313f+_0x4d0569,_0x15993b=new _0x4db63e(_0x89170a[_0x1a94bb(0x17e)]),_0x1ee3ea=[_0x305acd[_0x1a94bb(0x14f)](),_0x2ad698[_0x1a94bb(0x14f)]()][_0x1a94bb(0x135)](_0x1bccf7=>_0x1bccf7),_0x3ee98a=_0x4db63e[_0x1a94bb(0x172)](_0x1ee3ea);if(!_0x3ee98a)return Math[_0x1a94bb(0x16c)](_0x2a4965[_0x1a94bb(0x15c)]+_0x2a4965[_0x1a94bb(0x187)]/0x2);const _0x123c8c=_0x15993b[_0x1a94bb(0x195)](_0x3ee98a);if(!_0x123c8c)return Math[_0x1a94bb(0x16c)](_0x2a4965[_0x1a94bb(0x15c)]+_0x2a4965[_0x1a94bb(0x187)]/0x2);const _0x5ce7d9=_0x2a4965[_0x1a94bb(0x14f)](),_0x560655=_0x5ce7d9&&_0x3ee98a[_0x1a94bb(0x187)]>_0x5ce7d9[_0x1a94bb(0x187)],_0xe64a7=_0x123c8c[_0x1a94bb(0x15c)],_0x93a7d1=_0x123c8c[_0x1a94bb(0x167)];if(_0x560655){const _0x15dfdd=(_0x5ce7d9||_0x15993b)[_0x1a94bb(0x187)]/0x2-_0x4dc66e/0x2,_0xd3bf86=_0xe64a7-mt-_0x2a4965[_0x1a94bb(0x15c)],_0x2d9e89=_0x2a4965[_0x1a94bb(0x167)]-_0x93a7d1-mt;return _0xd3bf86>=_0x4dc66e?Math[_0x1a94bb(0x133)](mt,_0xe64a7-_0x4dc66e-mt):_0x2d9e89>=_0x4dc66e?_0x93a7d1+mt:Math[_0x1a94bb(0x133)](mt,_0x15dfdd);}const _0x469f32=_0xe64a7-_0x4dc66e,_0x453bff=_0x2a4965[_0x1a94bb(0x167)]-_0x93a7d1-mt,_0x4f8cf4=_0xe64a7-mt-_0x2a4965[_0x1a94bb(0x15c)];let _0x1f4491;if(_0x453bff>=_0x4dc66e)_0x1f4491=_0x93a7d1+mt;else{if(_0x4f8cf4>=_0x4dc66e)_0x1f4491=_0x469f32-mt;else _0x1f4491=_0xe64a7+_0x3ee98a[_0x1a94bb(0x187)]/0x2-_0x4dc66e/0x2;}return _0x1f4491;}[_0x23a8c7(0x18a)](){const _0x386a3d=_0x23a8c7,_0x8deed4=_0x42e812(this[_0x386a3d(0x13c)]);this[_0x386a3d(0x16d)](_0x8deed4[_0x386a3d(0x154)][_0x386a3d(0x181)],_0x386a3d(0x163),()=>{const _0x4cadd7=_0x386a3d;if(this[_0x4cadd7(0x136)])return;for(const {name:_0x3b4799,data:{newRange:_0x5e4d0c}}of _0x8deed4[_0x4cadd7(0x154)][_0x4cadd7(0x181)][_0x4cadd7(0x190)][_0x4cadd7(0x178)]())if(_0x3b4799[_0x4cadd7(0x15e)](_0x4cadd7(0x168))&&(_0x5e4d0c&&(_0x5e4d0c[_0x4cadd7(0x14e)][_0x4cadd7(0x183)](_0x5e4d0c[_0x4cadd7(0x13f)])||_0x4cadd7(0x157)==_0x5e4d0c[_0x4cadd7(0x174)][_0x4cadd7(0x18e)])||null==_0x5e4d0c)){const _0x2bf59f=_0x126373(this[_0x4cadd7(0x13c)][_0x4cadd7(0x141)],_0x4cadd7(0x14b));this[_0x4cadd7(0x137)][_0x4cadd7(0x165)](_0x2bf59f),this[_0x4cadd7(0x171)](_0x4cadd7(0x194));}});}[_0x23a8c7(0x156)](){const _0xf3e2bc=_0x23a8c7,_0x208a08=_0x42e812(this[_0xf3e2bc(0x13c)]);this[_0xf3e2bc(0x15b)](_0x208a08[_0xf3e2bc(0x154)][_0xf3e2bc(0x181)]);}[_0x23a8c7(0x13a)](){const _0x3450bb=_0x23a8c7,_0xd13e6a=_0x42e812(this[_0x3450bb(0x13c)]);return _0x1c08af(_0xd13e6a[_0x3450bb(0x19d)],[..._0xd13e6a[_0x3450bb(0x154)][_0x3450bb(0x16f)][_0x3450bb(0x175)](_0x3450bb(0x173)),..._0xd13e6a[_0x3450bb(0x154)][_0x3450bb(0x16f)][_0x3450bb(0x175)](_0x3450bb(0x130))]);}}
|