@ckeditor/ckeditor5-ai 47.6.1 → 47.6.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/LICENSE.md +0 -4
- package/build/ai.js +2 -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/lang/contexts.json +1 -0
- package/package.json +15 -16
- 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.d.ts +15 -156
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.d.ts +2 -0
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/build/966.ai.js +0 -5
- package/build/translations/en.js +0 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xc112bb=_0xab89;function _0x24dd(){const _0x32a20e=['2569ljFnFZ','execute','fire','set','18232lHOCci','61104HGrlbF','9500715gZSzfJ','conversationStartButton','796707JYbGPU','children','32JUbyyX','isMaximized','47707dTiLOQ','18zcptcG','ck-ai-header\x20ck-ai-header_chat','137645ITcSVR','238935aVpjCe','startConversation','AI_CHAT_HEADING','locale','ck-ai-chat__start-conversation','7620RiRVzx','resizeButton','_createStartConversationButton','add','AI_CHAT_LABEL_NEW_CHAT'];_0x24dd=function(){return _0x32a20e;};return _0x24dd();}(function(_0x33a67a,_0x5639b3){const _0x216b88=_0xab89,_0x1f0a5b=_0x33a67a();while(!![]){try{const _0xf92461=parseInt(_0x216b88(0x1c2))/0x1+parseInt(_0x216b88(0x1c4))/0x2*(parseInt(_0x216b88(0x1ca))/0x3)+-parseInt(_0x216b88(0x1bf))/0x4+parseInt(_0x216b88(0x1c9))/0x5*(parseInt(_0x216b88(0x1c7))/0x6)+-parseInt(_0x216b88(0x1d4))/0x7*(-parseInt(_0x216b88(0x1be))/0x8)+parseInt(_0x216b88(0x1c0))/0x9+parseInt(_0x216b88(0x1cf))/0xa*(-parseInt(_0x216b88(0x1c6))/0xb);if(_0xf92461===_0x5639b3)break;else _0x1f0a5b['push'](_0x1f0a5b['shift']());}catch(_0xbd52e){_0x1f0a5b['push'](_0x1f0a5b['shift']());}}}(_0x24dd,0xb1244));import{ButtonView as _0x1645e1,FormHeaderView as _0x4e17de}from'ckeditor5/src/ui.js';import{IconPlus as _0x4c8bf8,IconAIChat as _0x2c20f0}from'ckeditor5/src/icons.js';function _0xab89(_0x5a54d0,_0x4d0a54){const _0x24ddbf=_0x24dd();return _0xab89=function(_0xab89b3,_0x19c8f9){_0xab89b3=_0xab89b3-0x1bb;let _0x12edbb=_0x24ddbf[_0xab89b3];return _0x12edbb;},_0xab89(_0x5a54d0,_0x4d0a54);}import{getTranslation as _0x229c2d}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x320cd0}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x4e17de{[_0xc112bb(0x1c1)];[_0xc112bb(0x1d0)];constructor(_0x3136cb,_0x40228c){const _0xb87442=_0xc112bb;super(_0x3136cb,{'label':_0x229c2d(_0x3136cb,_0xb87442(0x1cc)),'class':_0xb87442(0x1c8),'icon':_0x2c20f0}),this[_0xb87442(0x1bd)](_0xb87442(0x1c5),!0x1),this[_0xb87442(0x1c1)]=this[_0xb87442(0x1d1)](_0x3136cb),this[_0xb87442(0x1c3)][_0xb87442(0x1d2)](this[_0xb87442(0x1c1)]),_0x40228c&&(this[_0xb87442(0x1d0)]=_0x320cd0(_0x3136cb,this),this[_0xb87442(0x1c3)][_0xb87442(0x1d2)](this[_0xb87442(0x1d0)]));}[_0xc112bb(0x1d1)](_0x574f38){const _0x1b5e7c=_0xc112bb,_0x5b17ce=new _0x1645e1(_0x574f38);return _0x5b17ce[_0x1b5e7c(0x1bd)]({'label':_0x229c2d(this[_0x1b5e7c(0x1cd)],_0x1b5e7c(0x1d3)),'withText':!0x0,'icon':_0x4c8bf8,'class':_0x1b5e7c(0x1ce)}),_0x5b17ce['on'](_0x1b5e7c(0x1bb),()=>{const _0x111a70=_0x1b5e7c;this[_0x111a70(0x1bc)](_0x111a70(0x1cb));}),_0x5b17ce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb25899=_0x26a0;(function(_0x57971b,_0x9808df){var _0x40cc4a=_0x26a0,_0xa4ac2a=_0x57971b();while(!![]){try{var _0x1014a3=-parseInt(_0x40cc4a(0x8f))/0x1+parseInt(_0x40cc4a(0x8c))/0x2+parseInt(_0x40cc4a(0x96))/0x3*(parseInt(_0x40cc4a(0x9a))/0x4)+parseInt(_0x40cc4a(0x85))/0x5+-parseInt(_0x40cc4a(0x8b))/0x6*(parseInt(_0x40cc4a(0x86))/0x7)+parseInt(_0x40cc4a(0x91))/0x8+-parseInt(_0x40cc4a(0x97))/0x9;if(_0x1014a3===_0x9808df)break;else _0xa4ac2a['push'](_0xa4ac2a['shift']());}catch(_0xec05da){_0xa4ac2a['push'](_0xa4ac2a['shift']());}}}(_0x632e,0x1b544));import{View as _0x36a81d,BodyCollection as _0x13b9c8}from'ckeditor5/src/ui.js';function _0x632e(){var _0x3a16ee=['setTemplate','chatControls','closeSourceResourceBalloon','div','ck-rounded-corners','ck-ai-chat','91180FBsrbt','7LpUrcS','uiLanguageDirection','chatFeed','attachToDom','chatDisclaimer','364734cfiIQp','207200dSSrSw','populateSourceResourceBalloon','showResizeButton','53718xHNRop','ck-reset_all','837032oNdaqP','_bodyCollection','destroy','detachFromDom','delegate','4911vvGriO','1635525xLQFFH','contextResourcesSearchInputVisibleFrom','chatHeader','444piwEwI'];_0x632e=function(){return _0x3a16ee;};return _0x632e();}import{AI_CHAT_UI_EVENT_NAMES as _0x20bc6e}from'../utils/eventnames.js';import{AIChatFeedView as _0x2ddc78}from'./aichatfeedview.js';import{AIChatControlsView as _0x436da7}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2f50a4}from'./aichatheaderview.js';import{AIDisclaimerView as _0x46c6fc}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x26a0(_0x86c102,_0x426a63){var _0x632eb4=_0x632e();return _0x26a0=function(_0x26a0d9,_0xcd25b8){_0x26a0d9=_0x26a0d9-0x85;var _0x239aaa=_0x632eb4[_0x26a0d9];return _0x239aaa;},_0x26a0(_0x86c102,_0x426a63);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x36a81d{[_0xb25899(0x99)];[_0xb25899(0x88)];[_0xb25899(0x9c)];[_0xb25899(0x8a)];[_0xb25899(0x92)];constructor(_0x59d5d1,_0x3c13f2){var _0x23b5bf=_0xb25899;super(_0x59d5d1),this[_0x23b5bf(0x92)]=new _0x13b9c8(_0x59d5d1),this[_0x23b5bf(0x92)][_0x23b5bf(0x89)](),this[_0x23b5bf(0x99)]=new _0x2f50a4(_0x59d5d1,_0x3c13f2[_0x23b5bf(0x8e)]),this[_0x23b5bf(0x99)][_0x23b5bf(0x95)](..._0x20bc6e)['to'](this),this[_0x23b5bf(0x88)]=new _0x2ddc78(_0x59d5d1,this[_0x23b5bf(0x92)]),this[_0x23b5bf(0x88)][_0x23b5bf(0x95)](..._0x20bc6e)['to'](this),this[_0x23b5bf(0x9c)]=new _0x436da7(_0x59d5d1,{'bodyCollection':this[_0x23b5bf(0x92)],'contextResourcesSearchInputVisibleFrom':_0x3c13f2[_0x23b5bf(0x98)]}),this[_0x23b5bf(0x9c)][_0x23b5bf(0x95)](..._0x20bc6e)['to'](this),this[_0x23b5bf(0x8a)]=new _0x46c6fc(_0x59d5d1),this[_0x23b5bf(0x9b)]({'tag':_0x23b5bf(0x9e),'attributes':{'class':['ck',_0x23b5bf(0x90),_0x23b5bf(0xa0),_0x23b5bf(0x9f)],'dir':_0x59d5d1[_0x23b5bf(0x87)]},'children':[this[_0x23b5bf(0x99)],this[_0x23b5bf(0x88)],this[_0x23b5bf(0x9c)],this[_0x23b5bf(0x8a)]]});}[_0xb25899(0x8d)](_0x3ba032,_0x49469c,_0x2a56b1,_0x10c95b){var _0x48203d=_0xb25899;this[_0x48203d(0x9c)][_0x48203d(0x8d)](_0x3ba032,_0x49469c,_0x2a56b1,_0x10c95b);}[_0xb25899(0x9d)](_0x27a69c){var _0x5c80a3=_0xb25899;this[_0x5c80a3(0x9c)][_0x5c80a3(0x9d)](_0x27a69c);}[_0xb25899(0x93)](){var _0x4a8659=_0xb25899;this[_0x4a8659(0x92)][_0x4a8659(0x94)](),super[_0x4a8659(0x93)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3473cd=_0x312a;(function(_0x648408,_0x3c52df){const _0x2ce022=_0x312a,_0x3f78ea=_0x648408();while(!![]){try{const _0x18179c=-parseInt(_0x2ce022(0xa7))/0x1+parseInt(_0x2ce022(0x9d))/0x2*(parseInt(_0x2ce022(0xf6))/0x3)+parseInt(_0x2ce022(0x72))/0x4*(-parseInt(_0x2ce022(0xf4))/0x5)+parseInt(_0x2ce022(0xd9))/0x6+-parseInt(_0x2ce022(0xda))/0x7*(parseInt(_0x2ce022(0xed))/0x8)+-parseInt(_0x2ce022(0xbe))/0x9+parseInt(_0x2ce022(0xd8))/0xa*(parseInt(_0x2ce022(0x9c))/0xb);if(_0x18179c===_0x3c52df)break;else _0x3f78ea['push'](_0x3f78ea['shift']());}catch(_0x38efcd){_0x3f78ea['push'](_0x3f78ea['shift']());}}}(_0x4fa6,0x4e917));import{View as _0x283515,BalloonPanelView as _0x564bf8,ButtonView as _0x4b4d2e,clickOutsideHandler as _0x57cd2f}from'ckeditor5/src/ui.js';function _0x312a(_0x2b61e0,_0x2c3f04){const _0x4fa6e0=_0x4fa6();return _0x312a=function(_0x312a69,_0x54fc28){_0x312a69=_0x312a69-0x6b;let _0x2a8116=_0x4fa6e0[_0x312a69];return _0x2a8116;},_0x312a(_0x2b61e0,_0x2c3f04);}import{Collection as _0x548952}from'ckeditor5/src/utils.js';const an={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x3473cd(0xd3);export class AIChatChipsOverflowManager{[_0x3473cd(0xfd)];[_0x3473cd(0xb0)];[_0x3473cd(0xf9)];[_0x3473cd(0xb7)];[_0x3473cd(0xf7)]=null;[_0x3473cd(0x6b)]=null;[_0x3473cd(0x80)]=null;[_0x3473cd(0xf1)];[_0x3473cd(0xef)]=null;[_0x3473cd(0xce)]=null;[_0x3473cd(0x91)]=!0x1;constructor(_0x39010e,_0x579d88,_0x4c774c,_0x581701,_0x34bc43){const _0x5e6c53=_0x3473cd;this[_0x5e6c53(0xfd)]=_0x39010e,this[_0x5e6c53(0xf9)]=_0x579d88,this[_0x5e6c53(0xb0)]={...an,..._0x4c774c,'cssClasses':{'controlsButton':'','calculationContainer':_0x5e6c53(0xec),..._0x4c774c[_0x5e6c53(0xc6)]}},this[_0x5e6c53(0xb7)]=new _0x548952(),this[_0x5e6c53(0xf1)]=_0x581701,this[_0x5e6c53(0xef)]=_0x34bc43||null;}[_0x3473cd(0xe7)](_0x470f09){const _0x5b0a42=_0x3473cd;this[_0x5b0a42(0xce)]&&(this[_0x5b0a42(0xce)][_0x5b0a42(0xcf)](),this[_0x5b0a42(0xce)]=null),this[_0x5b0a42(0x80)]=_0x470f09,this[_0x5b0a42(0xc3)]();}get[_0x3473cd(0xee)](){const _0xdcf561=_0x3473cd;return this[_0xdcf561(0xf7)];}get[_0x3473cd(0x99)](){const _0xca6c56=_0x3473cd;return this[_0xca6c56(0xb7)];}[_0x3473cd(0xa5)](){requestAnimationFrame(()=>{const _0xdc65c4=_0x312a;this[_0xdc65c4(0x90)]();});}[_0x3473cd(0xa2)](){const _0x53c709=_0x3473cd;this[_0x53c709(0xf7)]&&this[_0x53c709(0x6b)]&&(this[_0x53c709(0xf8)](),this[_0x53c709(0xf7)][_0x53c709(0xd5)]=!0x0,this[_0x53c709(0x6b)][_0x53c709(0x92)](),this[_0x53c709(0x6b)][_0x53c709(0xc7)]({'target':this[_0x53c709(0xf7)][_0x53c709(0xd7)],'limiter':document[_0x53c709(0x74)](_0x53c709(0xad))}));}[_0x3473cd(0x86)](){const _0x4d65dc=_0x3473cd;this[_0x4d65dc(0xf7)]&&this[_0x4d65dc(0x6b)]&&(this[_0x4d65dc(0xf7)][_0x4d65dc(0xd5)]=!0x1,this[_0x4d65dc(0x6b)][_0x4d65dc(0x76)]());}[_0x3473cd(0x9b)](){const _0x52d555=_0x3473cd;this[_0x52d555(0xb7)][_0x52d555(0x9b)](),this[_0x52d555(0x86)](),this[_0x52d555(0xa8)](),this[_0x52d555(0xf7)]&&(this[_0x52d555(0xf7)][_0x52d555(0x6f)]=''),this[_0x52d555(0x6b)]&&this[_0x52d555(0x6b)][_0x52d555(0xb9)][_0x52d555(0x9b)]();}[_0x3473cd(0x96)](){const _0x1d6fb6=_0x3473cd;this[_0x1d6fb6(0xce)]&&(this[_0x1d6fb6(0xce)][_0x1d6fb6(0xcf)](),this[_0x1d6fb6(0xce)]=null),this[_0x1d6fb6(0xf7)]&&(this[_0x1d6fb6(0xf7)][_0x1d6fb6(0x96)](),this[_0x1d6fb6(0xf7)]=null),this[_0x1d6fb6(0x6b)]&&(this[_0x1d6fb6(0x6b)][_0x1d6fb6(0x96)](),this[_0x1d6fb6(0x6b)]=null);}[_0x3473cd(0x90)](){const _0x2cd673=_0x3473cd;if(!this[_0x2cd673(0x80)])return;if(!this[_0x2cd673(0x95)]())return void(this[_0x2cd673(0x91)]=!0x0);this[_0x2cd673(0x91)]=!0x1;const _0x3c3d3a=[...this[_0x2cd673(0xf9)],...this[_0x2cd673(0xb7)]],_0x284531=this[_0x2cd673(0xbb)](),_0x1d2da8=this[_0x2cd673(0xcd)](_0x284531,_0x3c3d3a),_0x192dab=_0x284531[_0x2cd673(0xa0)];_0x192dab&&this[_0x2cd673(0xaf)](_0x192dab),_0x284531[_0x2cd673(0x73)](),this[_0x2cd673(0xfc)](_0x3c3d3a,_0x1d2da8);}[_0x3473cd(0xe6)](){const _0x11f726=_0x3473cd;this[_0x11f726(0xf7)]=this[_0x11f726(0xd2)](),this[_0x11f726(0x6b)]=this[_0x11f726(0xd4)](),this[_0x11f726(0xf7)][_0x11f726(0xde)](),this[_0x11f726(0x80)][_0x11f726(0xbd)](this[_0x11f726(0xf7)][_0x11f726(0xd7)]),this[_0x11f726(0xf7)]['on'](_0x11f726(0xeb),()=>{const _0x240390=_0x11f726;this[_0x240390(0xcb)]();}),_0x57cd2f({'emitter':this[_0x11f726(0x6b)],'contextElements':[this[_0x11f726(0x6b)][_0x11f726(0xd7)],this[_0x11f726(0xf7)][_0x11f726(0xd7)]],'callback':()=>this[_0x11f726(0x86)](),'activator':()=>this[_0x11f726(0xf7)][_0x11f726(0xd5)]});}[_0x3473cd(0xd2)](){const _0x37928f=_0x3473cd,_0x48d687=new _0x4b4d2e(this[_0x37928f(0xfd)]);_0x48d687[_0x37928f(0xc4)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4e8936=[this[_0x37928f(0xb0)][_0x37928f(0xc6)][_0x37928f(0x7c)]];return this[_0x37928f(0xb0)][_0x37928f(0xc6)][_0x37928f(0x8a)]&&_0x4e8936[_0x37928f(0xc1)](this[_0x37928f(0xb0)][_0x37928f(0xc6)][_0x37928f(0x8a)]),_0x48d687[_0x37928f(0x9a)]({'attributes':{'class':_0x4e8936}}),_0x48d687;}[_0x3473cd(0xd4)](){const _0x419461=_0x3473cd,_0x2d43dc=new _0x564bf8(this[_0x419461(0xfd)]);return _0x2d43dc[_0x419461(0x9a)]({'attributes':{'class':this[_0x419461(0xb0)][_0x419461(0xc6)][_0x419461(0xab)]}}),this[_0x419461(0xf1)][_0x419461(0xd0)](_0x2d43dc),_0x2d43dc;}[_0x3473cd(0xf8)](){const _0x5b58fa=_0x3473cd;if(this[_0x5b58fa(0x6b)]&&(this[_0x5b58fa(0x6b)][_0x5b58fa(0xb9)][_0x5b58fa(0x9b)](),this[_0x5b58fa(0xb7)][_0x5b58fa(0xb2)]>0x0)){this[_0x5b58fa(0xb7)][_0x5b58fa(0xa1)](_0x54e223=>{const _0x477e0e=_0x5b58fa;_0x54e223[_0x477e0e(0xe9)]();});const _0x302b85=new _0x283515(this[_0x5b58fa(0xfd)]);_0x302b85[_0x5b58fa(0xf5)]({'tag':_0x5b58fa(0xe8),'attributes':{'class':this[_0x5b58fa(0xb0)][_0x5b58fa(0xc6)][_0x5b58fa(0xa6)]},'children':this[_0x5b58fa(0xb7)]}),this[_0x5b58fa(0x6b)][_0x5b58fa(0xb9)][_0x5b58fa(0xd0)](_0x302b85);}}[_0x3473cd(0xcb)](){const _0x423f35=_0x3473cd;this[_0x423f35(0xf7)][_0x423f35(0xd5)]?this[_0x423f35(0x86)]():this[_0x423f35(0xa2)]();}[_0x3473cd(0xa8)](){const _0x5ba1e0=_0x3473cd,_0x14bea8=this[_0x5ba1e0(0xb7)][_0x5ba1e0(0xb2)]>0x0;this[_0x5ba1e0(0xf7)]?.[_0x5ba1e0(0xd7)]&&(this[_0x5ba1e0(0xf7)][_0x5ba1e0(0xd7)][_0x5ba1e0(0xdc)][_0x5ba1e0(0xc2)]=_0x14bea8?'':_0x5ba1e0(0xc0));}[_0x3473cd(0x94)](){const _0xdb6435=_0x3473cd;this[_0xdb6435(0xf7)]?.[_0xdb6435(0xd5)]&&this[_0xdb6435(0x6b)]?.[_0xdb6435(0xca)]&&this[_0xdb6435(0xf7)][_0xdb6435(0xd7)]&&this[_0xdb6435(0x6b)][_0xdb6435(0xc7)]({'target':this[_0xdb6435(0xf7)][_0xdb6435(0xd7)],'limiter':document[_0xdb6435(0x74)](_0xdb6435(0xad))});}[_0x3473cd(0xe5)](_0x4be682){const _0x265ce4=_0x3473cd,_0x4b00cc=this[_0x265ce4(0x80)]?.[_0x265ce4(0xaa)][_0x265ce4(0x97)]()||_0x265ce4(0xe8),_0x16c7d9=this[_0x265ce4(0x80)]?.[_0x265ce4(0xae)];if(_0x16c7d9){const _0x5ef058=_0x16c7d9[0x0]||'',_0x584fd7=_0x4be682[_0x265ce4(0x74)]('.'+_0x5ef058),_0x1bf419=_0x4be682[_0x265ce4(0x74)](_0x4b00cc);return _0x584fd7||_0x1bf419||_0x4be682;}return _0x4be682[_0x265ce4(0x74)](_0x4b00cc)||_0x4be682;}[_0x3473cd(0xa9)](){const _0x4a8f08=_0x3473cd,_0x2e873f=this[_0x4a8f08(0xef)]?.[_0x4a8f08(0xd7)]||this[_0x4a8f08(0x80)];if(!_0x2e873f)return wn;const _0x154fe6=window[_0x4a8f08(0x9e)](_0x2e873f)[_0x4a8f08(0xbf)];if(_0x4a8f08(0x93)===_0x154fe6||_0x4a8f08(0xfb)===_0x154fe6||!_0x154fe6){const _0x38d1f9=_0x2e873f[_0x4a8f08(0xc5)];if(_0x38d1f9){const _0x64f7e8=window[_0x4a8f08(0x9e)](_0x38d1f9);return _0x4a8f08(0x93)!==_0x64f7e8[_0x4a8f08(0xbf)]?_0x64f7e8[_0x4a8f08(0xbf)]:wn;}return wn;}return _0x154fe6;}[_0x3473cd(0x7d)](_0x3a5292,_0x3db266){const _0x348047=_0x3473cd;this[_0x348047(0xb0)][_0x348047(0xc6)][_0x348047(0x77)]&&_0x3a5292[_0x348047(0xae)][_0x348047(0xd0)](this[_0x348047(0xb0)][_0x348047(0xc6)][_0x348047(0x77)]),_0x3a5292[_0x348047(0xdc)][_0x348047(0xbf)]=_0x3db266,_0x3a5292[_0x348047(0xdc)][_0x348047(0xdf)]=_0x348047(0xe2),_0x3a5292[_0x348047(0xdc)][_0x348047(0x7b)]=_0x348047(0xe0),_0x3a5292[_0x348047(0xdc)][_0x348047(0x6c)]=_0x348047(0xe0),_0x3a5292[_0x348047(0xdc)][_0x348047(0x8b)]='0',_0x3a5292[_0x348047(0xdc)][_0x348047(0xac)]=_0x348047(0xc0),_0x3a5292[_0x348047(0xdc)][_0x348047(0xf2)]='-1',_0x3a5292[_0x348047(0xdc)][_0x348047(0x83)]=_0x348047(0x85),_0x3a5292[_0x348047(0xdc)][_0x348047(0xc2)]=_0x348047(0xb8),_0x3a5292[_0x348047(0xdc)][_0x348047(0x8f)]=_0x348047(0x75);}[_0x3473cd(0xaf)](_0x427d61){const _0x9068f7=_0x3473cd;_0x427d61[_0x9068f7(0xa1)](({element:_0x1b1f50,originalDisplay:_0x269aaa,originalVisibility:_0x205be3})=>{const _0x5c9145=_0x9068f7;_0x1b1f50[_0x5c9145(0xdc)][_0x5c9145(0xc2)]=_0x269aaa,_0x1b1f50[_0x5c9145(0xdc)][_0x5c9145(0x83)]=_0x205be3;});}[_0x3473cd(0xf3)](_0xd2a12c){const _0x8684c2=_0x3473cd,_0x54c4fd=[];let _0x1af779=_0xd2a12c;for(;_0x1af779&&_0x1af779!==document[_0x8684c2(0x84)];){const _0x35d52a=window[_0x8684c2(0x9e)](_0x1af779);_0x8684c2(0xc0)!==_0x35d52a[_0x8684c2(0xc2)]&&_0x8684c2(0xdd)!==_0x35d52a[_0x8684c2(0x83)]||(_0x54c4fd[_0x8684c2(0xc1)]({'element':_0x1af779,'originalDisplay':_0x1af779[_0x8684c2(0xdc)][_0x8684c2(0xc2)],'originalVisibility':_0x1af779[_0x8684c2(0xdc)][_0x8684c2(0x83)]}),_0x1af779[_0x8684c2(0xdc)][_0x8684c2(0xc2)]=_0x8684c2(0x6e),_0x1af779[_0x8684c2(0xdc)][_0x8684c2(0x83)]=_0x8684c2(0x70)),_0x1af779=_0x1af779[_0x8684c2(0xc5)];}return _0x54c4fd;}[_0x3473cd(0xea)](){const _0x5205f1=_0x3473cd;let _0x27ba1f,_0x294a7a;return this[_0x5205f1(0xef)]?.[_0x5205f1(0xd7)]?(_0x27ba1f=this[_0x5205f1(0xef)][_0x5205f1(0xd7)][_0x5205f1(0x98)](!0x0),_0x294a7a=this[_0x5205f1(0xe5)](_0x27ba1f)):(_0x27ba1f=document[_0x5205f1(0x82)](_0x5205f1(0xe8)),_0x294a7a=_0x27ba1f),{'calculationContainer':_0x27ba1f,'targetContainer':_0x294a7a};}[_0x3473cd(0xbb)](){const _0x3cc584=_0x3473cd,{calculationContainer:_0x18aa94,targetContainer:_0xb2bb98}=this[_0x3cc584(0xea)](),_0x4b288d=this[_0x3cc584(0xa9)]();this[_0x3cc584(0x7d)](_0x18aa94,_0x4b288d);const _0x1b2a72=this[_0x3cc584(0xef)]?.[_0x3cc584(0xd7)]||this[_0x3cc584(0x80)],_0x1b9f41=_0x1b2a72?.[_0x3cc584(0xc5)];_0x1b9f41?_0x1b9f41[_0x3cc584(0xbd)](_0x18aa94):document[_0x3cc584(0x84)][_0x3cc584(0xbd)](_0x18aa94),_0x18aa94[_0x3cc584(0x78)]=_0xb2bb98;const _0x530711=this[_0x3cc584(0xf3)](_0x1b9f41||null);return _0x18aa94[_0x3cc584(0x71)],_0x18aa94[_0x3cc584(0xa0)]=_0x530711,_0x18aa94;}[_0x3473cd(0xcd)](_0x5dc37d,_0xb2fee8){const _0x2041ef=_0x3473cd,_0x441f27=_0x5dc37d[_0x2041ef(0x78)]||_0x5dc37d,_0x282ba6=[],{rowCount:_0x2185e3}=this[_0x2041ef(0xa3)](_0x441f27,_0xb2fee8);if(_0x2185e3<=this[_0x2041ef(0xb0)][_0x2041ef(0x79)])return _0x282ba6;const _0x139d56=_0xb2fee8[_0x2041ef(0xdb)]();for(;_0x139d56[_0x2041ef(0xb2)]>0x0;){if(this[_0x2041ef(0xf0)](_0x5dc37d,_0x441f27,_0x139d56)){const _0x20abd8=_0xb2fee8[_0x2041ef(0x7e)](_0x1b2c82=>!_0x139d56[_0x2041ef(0xd6)](_0x1b2c82));_0x282ba6[_0x2041ef(0xc1)](..._0x20abd8);break;}if(!_0x139d56[_0x2041ef(0x89)]())break;}return _0x282ba6;}[_0x3473cd(0xa3)](_0x38c0c8,_0x593c57){const _0x506ad5=_0x3473cd;_0x38c0c8[_0x506ad5(0xe3)]='',_0x593c57[_0x506ad5(0xa1)](_0x3b400c=>{const _0x533093=_0x506ad5;if(_0x3b400c[_0x533093(0xd7)]){const _0x77a762=_0x3b400c[_0x533093(0xd7)][_0x533093(0x98)](!0x0);_0x38c0c8[_0x533093(0xbd)](_0x77a762);}}),_0x38c0c8[_0x506ad5(0x71)];const _0x917fce=_0x38c0c8[_0x506ad5(0xfe)],_0x451da8=[];return Array[_0x506ad5(0x7a)](_0x917fce)[_0x506ad5(0xa1)](_0x566e5a=>{const _0x5f0b47=_0x506ad5,_0x351a5c=_0x566e5a[_0x5f0b47(0x7f)]()[_0x5f0b47(0x7b)];_0x451da8[_0x5f0b47(0x8e)](_0x23c75a=>Math[_0x5f0b47(0xa4)](_0x23c75a-_0x351a5c)<this[_0x5f0b47(0xb0)][_0x5f0b47(0x6d)])||_0x451da8[_0x5f0b47(0xc1)](_0x351a5c);}),{'rowCount':_0x451da8[_0x506ad5(0xb2)]};}[_0x3473cd(0x9f)](){const _0xd0da65=_0x3473cd,_0x2fc16f=document[_0xd0da65(0x82)](_0xd0da65(0xe1));return _0x2fc16f[_0xd0da65(0xff)]=this[_0xd0da65(0xb0)][_0xd0da65(0xc6)][_0xd0da65(0x7c)],this[_0xd0da65(0xb0)][_0xd0da65(0xc6)][_0xd0da65(0x8a)]&&_0x2fc16f[_0xd0da65(0xae)][_0xd0da65(0xd0)](this[_0xd0da65(0xb0)][_0xd0da65(0xc6)][_0xd0da65(0x8a)]),_0x2fc16f[_0xd0da65(0xe4)]=_0xd0da65(0xb4),_0x2fc16f;}[_0x3473cd(0xf0)](_0x375830,_0x137d7b,_0x32dabc){const _0xbbc7d6=_0x3473cd;this[_0xbbc7d6(0xa3)](_0x137d7b,_0x32dabc);const _0x5a5f0b=this[_0xbbc7d6(0x9f)]();_0x375830[_0xbbc7d6(0xbd)](_0x5a5f0b),_0x375830[_0xbbc7d6(0x71)];const _0x41aeaf=[..._0x137d7b[_0xbbc7d6(0xfe)],_0x5a5f0b],_0x81a50b=[];_0x41aeaf[_0xbbc7d6(0xa1)](_0x78b613=>{const _0x265e09=_0xbbc7d6,_0x27d305=_0x78b613[_0x265e09(0x7f)]()[_0x265e09(0x7b)];_0x81a50b[_0x265e09(0x8e)](_0x4f0958=>Math[_0x265e09(0xa4)](_0x4f0958-_0x27d305)<this[_0x265e09(0xb0)][_0x265e09(0x6d)])||_0x81a50b[_0x265e09(0xc1)](_0x27d305);});const _0x1a615a=_0x81a50b[_0xbbc7d6(0xb2)];return _0x5a5f0b[_0xbbc7d6(0x73)](),_0x1a615a<=this[_0xbbc7d6(0xb0)][_0xbbc7d6(0x79)];}[_0x3473cd(0xc8)](_0x4e85ce,_0x4dbd13){const _0x21c216=_0x3473cd;this[_0x21c216(0xf9)][_0x21c216(0x9b)](),this[_0x21c216(0xb7)][_0x21c216(0x9b)](),_0x4e85ce[_0x21c216(0xa1)](_0x35bbb3=>{const _0x3c1362=_0x21c216;_0x4dbd13[_0x3c1362(0xd6)](_0x35bbb3)?this[_0x3c1362(0xb7)][_0x3c1362(0xd0)](_0x35bbb3):this[_0x3c1362(0xf9)][_0x3c1362(0xd0)](_0x35bbb3);});}[_0x3473cd(0x8d)](_0x3e80bb){const _0xb8eb79=_0x3473cd;if(_0x3e80bb>0x0&&!this[_0xb8eb79(0xf7)]&&this[_0xb8eb79(0xe6)](),_0x3e80bb>0x0&&this[_0xb8eb79(0xf7)]){const _0x265d29=''+this[_0xb8eb79(0xb0)][_0xb8eb79(0x81)]+(_0x3e80bb<0x63?_0x3e80bb:'99');this[_0xb8eb79(0xf7)][_0xb8eb79(0x6f)]=_0x265d29;}this[_0xb8eb79(0xf8)](),this[_0xb8eb79(0xa8)](),this[_0xb8eb79(0x94)]();}[_0x3473cd(0xfc)](_0x2edca7,_0x910cba){const _0x3b1738=_0x3473cd;this[_0x3b1738(0xc8)](_0x2edca7,_0x910cba),this[_0x3b1738(0x8d)](_0x910cba[_0x3b1738(0xb2)]);}[_0x3473cd(0xc3)](){const _0x3d54a6=_0x3473cd;this[_0x3d54a6(0x80)]&&_0x3d54a6(0xb3)!=typeof IntersectionObserver&&(this[_0x3d54a6(0xce)]=new IntersectionObserver(_0x2f04c0=>{const _0x50e6c8=_0x3d54a6;_0x2f04c0[0x0][_0x50e6c8(0x8c)]&&this[_0x50e6c8(0x91)]&&requestAnimationFrame(()=>{const _0x8f0bd4=_0x50e6c8;this[_0x8f0bd4(0x90)]();});},{'threshold':0.01,'rootMargin':_0x3d54a6(0xc9)}),this[_0x3d54a6(0xce)][_0x3d54a6(0xfa)](this[_0x3d54a6(0x80)]));}[_0x3473cd(0x95)](){const _0x49d101=_0x3473cd;if(!this[_0x49d101(0x80)])return!0x1;if(!this[_0x49d101(0x80)][_0x49d101(0xba)])return!0x1;const _0x56f959=this[_0x49d101(0x80)][_0x49d101(0x7f)]();if(0x0===_0x56f959[_0x49d101(0xbf)]||0x0===_0x56f959[_0x49d101(0x88)])return!0x1;const _0x24f1f8=window[_0x49d101(0xbc)]||document[_0x49d101(0xcc)][_0x49d101(0xb6)],_0x4b9808=window[_0x49d101(0xb1)]||document[_0x49d101(0xcc)][_0x49d101(0xb5)],_0x3cf949=0xc8;return _0x56f959[_0x49d101(0x87)]>=-0xc8&&_0x56f959[_0x49d101(0x7b)]<=_0x24f1f8+_0x3cf949&&_0x56f959[_0x49d101(0xd1)]>=-0xc8&&_0x56f959[_0x49d101(0x6c)]<=_0x4b9808+_0x3cf949;}}function _0x4fa6(){const _0x1cc0c8=['abs','reorganizeChips','overflowContainer','532113PNvwHT','_updateShowMoreButtonVisibility','_calculateContainerWidth','tagName','showMoreBalloon','pointerEvents','.ck-ai-chat','classList','_restoreAncestorVisibility','_config','innerWidth','length','undefined','+\x201','clientWidth','clientHeight','_overflowChips','block\x20!important','content','isConnected','_createCalculationContainer','innerHeight','appendChild','4066560iviQUQ','width','none','push','display','_setupVisibilityObserver','set','parentElement','cssClasses','pin','_distributeChips','50px','isVisible','_handleShowMoreButtonClick','documentElement','_calculateOverflowInContainer','_intersectionObserver','disconnect','add','right','_createShowMoreButtonView','300px','_createShowMoreBalloonPanelView','isOn','includes','element','30AjfoJz','1674450vFMgxx','76419TtsUUc','slice','style','hidden','render','position','-9999px','button','absolute','innerHTML','textContent','_findTargetContainer','_createShowMoreButton','setContainerElement','div','disableAnimationOnEnter','_createContainerElements','execute','ck-calculation-container','392ygEuHX','showMoreButtonView','_parentView','_testButtonFit','_bodyCollection','zIndex','_makeAncestorsVisible','589845PwTbPH','setTemplate','1668YPUvlc','_showMoreButtonView','_updateBalloonContent','_visibleChips','observe','0px','_applyOverflowResults','_locale','children','className','_showMoreBalloonPanelView','left','rowDetectionTolerance','block','label','visible','offsetWidth','4ijBGMN','remove','querySelector','border-box','hide','calculationContainer','_targetContainer','maxVisibleRows','from','top','showMoreButton','_applyCalculationStyles','filter','getBoundingClientRect','_containerElement','showMoreLabelPrefix','createElement','visibility','body','visible\x20!important','hideBalloonPanel','bottom','height','pop','controlsButton','opacity','isIntersecting','_updateOverflowUI','some','boxSizing','_checkAndHandleOverflow','_pendingCalculation','show','auto','_repinBalloonPanel','_isContainerVisible','destroy','toLowerCase','cloneNode','overflowChips','extendTemplate','clear','4709023RTQuYJ','1422LpxBkC','getComputedStyle','_createMockButton','_ancestorsToRestore','forEach','showBalloonPanel','_renderChipsAndCountRows'];_0x4fa6=function(){return _0x1cc0c8;};return _0x4fa6();}
|
|
23
|
+
const _0x372e50=_0x5834;(function(_0x579373,_0x1dda01){const _0x275f6b=_0x5834,_0x377af4=_0x579373();while(!![]){try{const _0xe19331=-parseInt(_0x275f6b(0xce))/0x1*(-parseInt(_0x275f6b(0x149))/0x2)+parseInt(_0x275f6b(0xef))/0x3+-parseInt(_0x275f6b(0x134))/0x4+-parseInt(_0x275f6b(0x117))/0x5*(parseInt(_0x275f6b(0xf2))/0x6)+-parseInt(_0x275f6b(0x10c))/0x7+parseInt(_0x275f6b(0x124))/0x8+parseInt(_0x275f6b(0xec))/0x9;if(_0xe19331===_0x1dda01)break;else _0x377af4['push'](_0x377af4['shift']());}catch(_0x3a6b67){_0x377af4['push'](_0x377af4['shift']());}}}(_0x5af7,0xd3e16));import{View as _0x1a18a3,BalloonPanelView as _0x19ae94,ButtonView as _0x2a658e,clickOutsideHandler as _0x45c447}from'ckeditor5/src/ui.js';import{Collection as _0x5c9846}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x372e50(0x137);function _0x5834(_0x3e7a2d,_0x2a0f2c){const _0x5af797=_0x5af7();return _0x5834=function(_0x5834a6,_0x42e404){_0x5834a6=_0x5834a6-0xbc;let _0x2405ce=_0x5af797[_0x5834a6];return _0x2405ce;},_0x5834(_0x3e7a2d,_0x2a0f2c);}export class AIChatChipsOverflowManager{[_0x372e50(0xe5)];[_0x372e50(0x140)];[_0x372e50(0x108)];[_0x372e50(0xe2)];[_0x372e50(0xd0)]=null;[_0x372e50(0xde)]=null;[_0x372e50(0xfb)]=null;[_0x372e50(0x102)];[_0x372e50(0x104)]=null;[_0x372e50(0xe3)]=null;[_0x372e50(0x109)]=!0x1;constructor(_0x4a0ed8,_0x175bec,_0x47a461,_0x4d6262,_0x3dde8f){const _0x2bf7b2=_0x372e50;this[_0x2bf7b2(0xe5)]=_0x4a0ed8,this[_0x2bf7b2(0x108)]=_0x175bec,this[_0x2bf7b2(0x140)]={...hn,..._0x47a461,'cssClasses':{'controlsButton':'','calculationContainer':_0x2bf7b2(0x119),..._0x47a461[_0x2bf7b2(0x146)]}},this[_0x2bf7b2(0xe2)]=new _0x5c9846(),this[_0x2bf7b2(0x102)]=_0x4d6262,this[_0x2bf7b2(0x104)]=_0x3dde8f||null;}[_0x372e50(0x12b)](_0x383a83){const _0x58769e=_0x372e50;this[_0x58769e(0xe3)]&&(this[_0x58769e(0xe3)][_0x58769e(0x136)](),this[_0x58769e(0xe3)]=null),this[_0x58769e(0xfb)]=_0x383a83,this[_0x58769e(0xe9)]();}get[_0x372e50(0x145)](){const _0x33e07c=_0x372e50;return this[_0x33e07c(0xd0)];}get[_0x372e50(0x138)](){const _0x45e9ec=_0x372e50;return this[_0x45e9ec(0xe2)];}[_0x372e50(0xbe)](){requestAnimationFrame(()=>{const _0x5183b2=_0x5834;this[_0x5183b2(0xf5)]();});}[_0x372e50(0x114)](){const _0x3137fb=_0x372e50;this[_0x3137fb(0xd0)]&&this[_0x3137fb(0xde)]&&(this[_0x3137fb(0x105)](),this[_0x3137fb(0xd0)][_0x3137fb(0x148)]=!0x0,this[_0x3137fb(0xde)][_0x3137fb(0xff)](),this[_0x3137fb(0xde)][_0x3137fb(0xcb)]({'target':this[_0x3137fb(0xd0)][_0x3137fb(0x12e)],'limiter':document[_0x3137fb(0x13a)](_0x3137fb(0xd6))}));}[_0x372e50(0x10a)](){const _0x18610d=_0x372e50;this[_0x18610d(0xd0)]&&this[_0x18610d(0xde)]&&(this[_0x18610d(0xd0)][_0x18610d(0x148)]=!0x1,this[_0x18610d(0xde)][_0x18610d(0x14b)]());}[_0x372e50(0x115)](){const _0xde0585=_0x372e50;this[_0xde0585(0xe2)][_0xde0585(0x115)](),this[_0xde0585(0x10a)](),this[_0xde0585(0x11b)](),this[_0xde0585(0xd0)]&&(this[_0xde0585(0xd0)][_0xde0585(0x14a)]=''),this[_0xde0585(0xde)]&&this[_0xde0585(0xde)][_0xde0585(0xca)][_0xde0585(0x115)]();}[_0x372e50(0xc6)](){const _0x505d20=_0x372e50;this[_0x505d20(0xe3)]&&(this[_0x505d20(0xe3)][_0x505d20(0x136)](),this[_0x505d20(0xe3)]=null),this[_0x505d20(0xd0)]&&(this[_0x505d20(0xd0)][_0x505d20(0xc6)](),this[_0x505d20(0xd0)]=null),this[_0x505d20(0xde)]&&(this[_0x505d20(0xde)][_0x505d20(0xc6)](),this[_0x505d20(0xde)]=null);}[_0x372e50(0xf5)](){const _0x2a5eb4=_0x372e50;if(!this[_0x2a5eb4(0xfb)])return;if(!this[_0x2a5eb4(0x14e)]())return void(this[_0x2a5eb4(0x109)]=!0x0);this[_0x2a5eb4(0x109)]=!0x1;const _0x349b13=[...this[_0x2a5eb4(0x108)],...this[_0x2a5eb4(0xe2)]],_0x7d5de6=this[_0x2a5eb4(0xd9)](),_0x2882ad=this[_0x2a5eb4(0x101)](_0x7d5de6,_0x349b13),_0x5b6d7d=_0x7d5de6[_0x2a5eb4(0xcd)];_0x5b6d7d&&this[_0x2a5eb4(0x112)](_0x5b6d7d),_0x7d5de6[_0x2a5eb4(0xfe)](),this[_0x2a5eb4(0xd3)](_0x349b13,_0x2882ad);}[_0x372e50(0xf8)](){const _0x4fdb77=_0x372e50;this[_0x4fdb77(0xd0)]=this[_0x4fdb77(0xeb)](),this[_0x4fdb77(0xde)]=this[_0x4fdb77(0x130)](),this[_0x4fdb77(0xd0)][_0x4fdb77(0xd2)](),this[_0x4fdb77(0xfb)][_0x4fdb77(0x12a)](this[_0x4fdb77(0xd0)][_0x4fdb77(0x12e)]),this[_0x4fdb77(0xd0)]['on'](_0x4fdb77(0x12d),()=>{const _0x41bf23=_0x4fdb77;this[_0x41bf23(0x11e)]();}),_0x45c447({'emitter':this[_0x4fdb77(0xde)],'contextElements':[this[_0x4fdb77(0xde)][_0x4fdb77(0x12e)],this[_0x4fdb77(0xd0)][_0x4fdb77(0x12e)]],'callback':()=>this[_0x4fdb77(0x10a)](),'activator':()=>this[_0x4fdb77(0xd0)][_0x4fdb77(0x148)]});}[_0x372e50(0xeb)](){const _0x302e23=_0x372e50,_0xe6c8c6=new _0x2a658e(this[_0x302e23(0xe5)]);_0xe6c8c6[_0x302e23(0xda)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1a1629=[this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0xf7)]];return this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0x14d)]&&_0x1a1629[_0x302e23(0x10f)](this[_0x302e23(0x140)][_0x302e23(0x146)][_0x302e23(0x14d)]),_0xe6c8c6[_0x302e23(0xbf)]({'attributes':{'class':_0x1a1629}}),_0xe6c8c6;}[_0x372e50(0x130)](){const _0x29f0b1=_0x372e50,_0x212604=new _0x19ae94(this[_0x29f0b1(0xe5)]);return _0x212604[_0x29f0b1(0xbf)]({'attributes':{'class':this[_0x29f0b1(0x140)][_0x29f0b1(0x146)][_0x29f0b1(0xfc)]}}),this[_0x29f0b1(0x102)][_0x29f0b1(0xdb)](_0x212604),_0x212604;}[_0x372e50(0x105)](){const _0x5248e3=_0x372e50;if(this[_0x5248e3(0xde)]&&(this[_0x5248e3(0xde)][_0x5248e3(0xca)][_0x5248e3(0x115)](),this[_0x5248e3(0xe2)][_0x5248e3(0xe0)]>0x0)){this[_0x5248e3(0xe2)][_0x5248e3(0xc0)](_0x3fc24c=>{const _0x36e70b=_0x5248e3;_0x3fc24c[_0x36e70b(0x13f)]();});const _0x3f9aeb=new _0x1a18a3(this[_0x5248e3(0xe5)]);_0x3f9aeb[_0x5248e3(0xf4)]({'tag':_0x5248e3(0x106),'attributes':{'class':this[_0x5248e3(0x140)][_0x5248e3(0x146)][_0x5248e3(0x113)]},'children':this[_0x5248e3(0xe2)]}),this[_0x5248e3(0xde)][_0x5248e3(0xca)][_0x5248e3(0xdb)](_0x3f9aeb);}}[_0x372e50(0x11e)](){const _0x3cb5c1=_0x372e50;this[_0x3cb5c1(0xd0)][_0x3cb5c1(0x148)]?this[_0x3cb5c1(0x10a)]():this[_0x3cb5c1(0x114)]();}[_0x372e50(0x11b)](){const _0x186d03=_0x372e50,_0x3296bb=this[_0x186d03(0xe2)][_0x186d03(0xe0)]>0x0;this[_0x186d03(0xd0)]?.[_0x186d03(0x12e)]&&(this[_0x186d03(0xd0)][_0x186d03(0x12e)][_0x186d03(0xf1)][_0x186d03(0x135)]=_0x3296bb?'':_0x186d03(0xd8));}[_0x372e50(0xe6)](){const _0x1bceba=_0x372e50;this[_0x1bceba(0xd0)]?.[_0x1bceba(0x148)]&&this[_0x1bceba(0xde)]?.[_0x1bceba(0x11d)]&&this[_0x1bceba(0xd0)][_0x1bceba(0x12e)]&&this[_0x1bceba(0xde)][_0x1bceba(0xcb)]({'target':this[_0x1bceba(0xd0)][_0x1bceba(0x12e)],'limiter':document[_0x1bceba(0x13a)](_0x1bceba(0xd6))});}[_0x372e50(0x11c)](_0x4212dc){const _0x21cdc6=_0x372e50,_0x2e8a04=this[_0x21cdc6(0xfb)]?.[_0x21cdc6(0x12c)][_0x21cdc6(0xed)]()||_0x21cdc6(0x106),_0x24c4fd=this[_0x21cdc6(0xfb)]?.[_0x21cdc6(0x11a)];if(_0x24c4fd){const _0x39e396=_0x24c4fd[0x0]||'',_0x41377a=_0x4212dc[_0x21cdc6(0x13a)]('.'+_0x39e396),_0x42e95e=_0x4212dc[_0x21cdc6(0x13a)](_0x2e8a04);return _0x41377a||_0x42e95e||_0x4212dc;}return _0x4212dc[_0x21cdc6(0x13a)](_0x2e8a04)||_0x4212dc;}[_0x372e50(0xc4)](){const _0x35117a=_0x372e50,_0x3efda9=this[_0x35117a(0x104)]?.[_0x35117a(0x12e)]||this[_0x35117a(0xfb)];if(!_0x3efda9)return an;const _0xef5f1f=window[_0x35117a(0xc8)](_0x3efda9)[_0x35117a(0xc1)];if(_0x35117a(0x107)===_0xef5f1f||_0x35117a(0x118)===_0xef5f1f||!_0xef5f1f){const _0x49fef7=_0x3efda9[_0x35117a(0x129)];if(_0x49fef7){const _0x5dcac4=window[_0x35117a(0xc8)](_0x49fef7);return _0x35117a(0x107)!==_0x5dcac4[_0x35117a(0xc1)]?_0x5dcac4[_0x35117a(0xc1)]:an;}return an;}return _0xef5f1f;}[_0x372e50(0x10e)](_0x5458cc,_0x2a761c){const _0x4bf0b9=_0x372e50;this[_0x4bf0b9(0x140)][_0x4bf0b9(0x146)][_0x4bf0b9(0x131)]&&_0x5458cc[_0x4bf0b9(0x11a)][_0x4bf0b9(0xdb)](this[_0x4bf0b9(0x140)][_0x4bf0b9(0x146)][_0x4bf0b9(0x131)]),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xc1)]=_0x2a761c,_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x143)]=_0x4bf0b9(0x132),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x127)]=_0x4bf0b9(0x126),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xdc)]=_0x4bf0b9(0x126),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xe8)]='0',_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x120)]=_0x4bf0b9(0xd8),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xf0)]='-1',_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0xbd)]=_0x4bf0b9(0xd7),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x135)]=_0x4bf0b9(0x10b),_0x5458cc[_0x4bf0b9(0xf1)][_0x4bf0b9(0x147)]=_0x4bf0b9(0x144);}[_0x372e50(0x112)](_0x47e07b){const _0x14565d=_0x372e50;_0x47e07b[_0x14565d(0xc0)](({element:_0x43506b,originalDisplay:_0xad5a9b,originalVisibility:_0x445900})=>{const _0x4ea9a1=_0x14565d;_0x43506b[_0x4ea9a1(0xf1)][_0x4ea9a1(0x135)]=_0xad5a9b,_0x43506b[_0x4ea9a1(0xf1)][_0x4ea9a1(0xbd)]=_0x445900;});}[_0x372e50(0xc9)](_0x3fa9bc){const _0x5704f2=_0x372e50,_0x27cc18=[];let _0x2e6be0=_0x3fa9bc;for(;_0x2e6be0&&_0x2e6be0!==document[_0x5704f2(0x10d)];){const _0xbbfd55=window[_0x5704f2(0xc8)](_0x2e6be0);_0x5704f2(0xd8)!==_0xbbfd55[_0x5704f2(0x135)]&&_0x5704f2(0x122)!==_0xbbfd55[_0x5704f2(0xbd)]||(_0x27cc18[_0x5704f2(0x10f)]({'element':_0x2e6be0,'originalDisplay':_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0x135)],'originalVisibility':_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0xbd)]}),_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0x135)]=_0x5704f2(0xe7),_0x2e6be0[_0x5704f2(0xf1)][_0x5704f2(0xbd)]=_0x5704f2(0xc5)),_0x2e6be0=_0x2e6be0[_0x5704f2(0x129)];}return _0x27cc18;}[_0x372e50(0xe1)](){const _0x3a280c=_0x372e50;let _0x12de6b,_0x160731;return this[_0x3a280c(0x104)]?.[_0x3a280c(0x12e)]?(_0x12de6b=this[_0x3a280c(0x104)][_0x3a280c(0x12e)][_0x3a280c(0x110)](!0x0),_0x160731=this[_0x3a280c(0x11c)](_0x12de6b)):(_0x12de6b=document[_0x3a280c(0x116)](_0x3a280c(0x106)),_0x160731=_0x12de6b),{'calculationContainer':_0x12de6b,'targetContainer':_0x160731};}[_0x372e50(0xd9)](){const _0x4d56fe=_0x372e50,{calculationContainer:_0x3b958e,targetContainer:_0x4022be}=this[_0x4d56fe(0xe1)](),_0x5266f0=this[_0x4d56fe(0xc4)]();this[_0x4d56fe(0x10e)](_0x3b958e,_0x5266f0);const _0x46dbc1=this[_0x4d56fe(0x104)]?.[_0x4d56fe(0x12e)]||this[_0x4d56fe(0xfb)],_0x54f6e1=_0x46dbc1?.[_0x4d56fe(0x129)];_0x54f6e1?_0x54f6e1[_0x4d56fe(0x12a)](_0x3b958e):document[_0x4d56fe(0x10d)][_0x4d56fe(0x12a)](_0x3b958e),_0x3b958e[_0x4d56fe(0x12f)]=_0x4022be;const _0x2b27cd=this[_0x4d56fe(0xc9)](_0x54f6e1||null);return _0x3b958e[_0x4d56fe(0x141)],_0x3b958e[_0x4d56fe(0xcd)]=_0x2b27cd,_0x3b958e;}[_0x372e50(0x101)](_0x429bbb,_0x99850e){const _0x4d8ad8=_0x372e50,_0x1d40a0=_0x429bbb[_0x4d8ad8(0x12f)]||_0x429bbb,_0x34c827=[],{rowCount:_0x49d94a}=this[_0x4d8ad8(0xf3)](_0x1d40a0,_0x99850e);if(_0x49d94a<=this[_0x4d8ad8(0x140)][_0x4d8ad8(0x13c)])return _0x34c827;const _0xd366eb=_0x99850e[_0x4d8ad8(0xd1)]();for(;_0xd366eb[_0x4d8ad8(0xe0)]>0x0;){if(this[_0x4d8ad8(0xcc)](_0x429bbb,_0x1d40a0,_0xd366eb)){const _0x5e95a7=_0x99850e[_0x4d8ad8(0x125)](_0x2887df=>!_0xd366eb[_0x4d8ad8(0xbc)](_0x2887df));_0x34c827[_0x4d8ad8(0x10f)](..._0x5e95a7);break;}if(!_0xd366eb[_0x4d8ad8(0x139)]())break;}return _0x34c827;}[_0x372e50(0xf3)](_0x561906,_0x2ee034){const _0x2a7091=_0x372e50;_0x561906[_0x2a7091(0xf9)]='',_0x2ee034[_0x2a7091(0xc0)](_0x2e431f=>{const _0x6ecfdd=_0x2a7091;if(_0x2e431f[_0x6ecfdd(0x12e)]){const _0x1a3f13=_0x2e431f[_0x6ecfdd(0x12e)][_0x6ecfdd(0x110)](!0x0);_0x561906[_0x6ecfdd(0x12a)](_0x1a3f13);}}),_0x561906[_0x2a7091(0x141)];const _0x2f8a97=_0x561906[_0x2a7091(0xc2)],_0x430b7d=[];return Array[_0x2a7091(0xc3)](_0x2f8a97)[_0x2a7091(0xc0)](_0x4a1894=>{const _0xe5d3b4=_0x2a7091,_0x3c33dc=_0x4a1894[_0xe5d3b4(0x142)]()[_0xe5d3b4(0x127)];_0x430b7d[_0xe5d3b4(0x103)](_0x390dc1=>Math[_0xe5d3b4(0xfa)](_0x390dc1-_0x3c33dc)<this[_0xe5d3b4(0x140)][_0xe5d3b4(0x11f)])||_0x430b7d[_0xe5d3b4(0x10f)](_0x3c33dc);}),{'rowCount':_0x430b7d[_0x2a7091(0xe0)]};}[_0x372e50(0xd4)](){const _0x277d22=_0x372e50,_0x5d9c28=document[_0x277d22(0x116)](_0x277d22(0xdd));return _0x5d9c28[_0x277d22(0x13e)]=this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0xf7)],this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0x14d)]&&_0x5d9c28[_0x277d22(0x11a)][_0x277d22(0xdb)](this[_0x277d22(0x140)][_0x277d22(0x146)][_0x277d22(0x14d)]),_0x5d9c28[_0x277d22(0xd5)]=_0x277d22(0xee),_0x5d9c28;}[_0x372e50(0xcc)](_0x30cf8f,_0x4c010b,_0x1e7a45){const _0x39969e=_0x372e50;this[_0x39969e(0xf3)](_0x4c010b,_0x1e7a45);const _0x59cc4e=this[_0x39969e(0xd4)]();_0x30cf8f[_0x39969e(0x12a)](_0x59cc4e),_0x30cf8f[_0x39969e(0x141)];const _0x2278e4=[..._0x4c010b[_0x39969e(0xc2)],_0x59cc4e],_0x481ae3=[];_0x2278e4[_0x39969e(0xc0)](_0x334e6d=>{const _0x5aab51=_0x39969e,_0x549f5a=_0x334e6d[_0x5aab51(0x142)]()[_0x5aab51(0x127)];_0x481ae3[_0x5aab51(0x103)](_0x4d7979=>Math[_0x5aab51(0xfa)](_0x4d7979-_0x549f5a)<this[_0x5aab51(0x140)][_0x5aab51(0x11f)])||_0x481ae3[_0x5aab51(0x10f)](_0x549f5a);});const _0xf24bda=_0x481ae3[_0x39969e(0xe0)];return _0x59cc4e[_0x39969e(0xfe)](),_0xf24bda<=this[_0x39969e(0x140)][_0x39969e(0x13c)];}[_0x372e50(0x121)](_0x1e78a7,_0x176cd3){const _0x5307e4=_0x372e50;this[_0x5307e4(0x108)][_0x5307e4(0x115)](),this[_0x5307e4(0xe2)][_0x5307e4(0x115)](),_0x1e78a7[_0x5307e4(0xc0)](_0x2509d4=>{const _0x4002b0=_0x5307e4;_0x176cd3[_0x4002b0(0xbc)](_0x2509d4)?this[_0x4002b0(0xe2)][_0x4002b0(0xdb)](_0x2509d4):this[_0x4002b0(0x108)][_0x4002b0(0xdb)](_0x2509d4);});}[_0x372e50(0xf6)](_0x35bd43){const _0x333eee=_0x372e50;if(_0x35bd43>0x0&&!this[_0x333eee(0xd0)]&&this[_0x333eee(0xf8)](),_0x35bd43>0x0&&this[_0x333eee(0xd0)]){const _0x11b5e8=''+this[_0x333eee(0x140)][_0x333eee(0xea)]+(_0x35bd43<0x63?_0x35bd43:'99');this[_0x333eee(0xd0)][_0x333eee(0x14a)]=_0x11b5e8;}this[_0x333eee(0x105)](),this[_0x333eee(0x11b)](),this[_0x333eee(0xe6)]();}[_0x372e50(0xd3)](_0xf305dd,_0x5c6348){const _0x236763=_0x372e50;this[_0x236763(0x121)](_0xf305dd,_0x5c6348),this[_0x236763(0xf6)](_0x5c6348[_0x236763(0xe0)]);}[_0x372e50(0xe9)](){const _0x499fbb=_0x372e50;this[_0x499fbb(0xfb)]&&_0x499fbb(0xfd)!=typeof IntersectionObserver&&(this[_0x499fbb(0xe3)]=new IntersectionObserver(_0x470979=>{const _0x34edc2=_0x499fbb;_0x470979[0x0][_0x34edc2(0x100)]&&this[_0x34edc2(0x109)]&&requestAnimationFrame(()=>{const _0x5665e5=_0x34edc2;this[_0x5665e5(0xf5)]();});},{'threshold':0.01,'rootMargin':_0x499fbb(0x123)}),this[_0x499fbb(0xe3)][_0x499fbb(0xe4)](this[_0x499fbb(0xfb)]));}[_0x372e50(0x14e)](){const _0x5936b0=_0x372e50;if(!this[_0x5936b0(0xfb)])return!0x1;if(!this[_0x5936b0(0xfb)][_0x5936b0(0xdf)])return!0x1;const _0x53f511=this[_0x5936b0(0xfb)][_0x5936b0(0x142)]();if(0x0===_0x53f511[_0x5936b0(0xc1)]||0x0===_0x53f511[_0x5936b0(0x13d)])return!0x1;const _0x11a090=window[_0x5936b0(0xcf)]||document[_0x5936b0(0xc7)][_0x5936b0(0x13b)],_0x5d38d0=window[_0x5936b0(0x133)]||document[_0x5936b0(0xc7)][_0x5936b0(0x128)],_0x25bd6f=0xc8;return _0x53f511[_0x5936b0(0x111)]>=-0xc8&&_0x53f511[_0x5936b0(0x127)]<=_0x11a090+_0x25bd6f&&_0x53f511[_0x5936b0(0x14c)]>=-0xc8&&_0x53f511[_0x5936b0(0xdc)]<=_0x5d38d0+_0x25bd6f;}}function _0x5af7(){const _0x314bdf=['_updateShowMoreButtonVisibility','_findTargetContainer','isVisible','_handleShowMoreButtonClick','rowDetectionTolerance','pointerEvents','_distributeChips','hidden','50px','9501200lsfpVu','filter','-9999px','top','clientWidth','parentElement','appendChild','setContainerElement','tagName','execute','element','_targetContainer','_createShowMoreBalloonPanelView','calculationContainer','absolute','innerWidth','5238904dixWiv','display','disconnect','300px','overflowChips','pop','querySelector','clientHeight','maxVisibleRows','height','className','disableAnimationOnEnter','_config','offsetWidth','getBoundingClientRect','position','border-box','showMoreButtonView','cssClasses','boxSizing','isOn','1843118tvcryp','label','hide','right','controlsButton','_isContainerVisible','includes','visibility','reorganizeChips','extendTemplate','forEach','width','children','from','_calculateContainerWidth','visible','destroy','documentElement','getComputedStyle','_makeAncestorsVisible','content','pin','_testButtonFit','_ancestorsToRestore','1iyOsRn','innerHeight','_showMoreButtonView','slice','render','_applyOverflowResults','_createMockButton','textContent','.ck-ai-chat','visible\x20!important','none','_createCalculationContainer','set','add','left','button','_showMoreBalloonPanelView','isConnected','length','_createContainerElements','_overflowChips','_intersectionObserver','observe','_locale','_repinBalloonPanel','block','opacity','_setupVisibilityObserver','showMoreLabelPrefix','_createShowMoreButtonView','20286540XkrdaQ','toLowerCase','+\x201','980175kFOHLj','zIndex','style','8933532fhVAZn','_renderChipsAndCountRows','setTemplate','_checkAndHandleOverflow','_updateOverflowUI','showMoreButton','_createShowMoreButton','innerHTML','abs','_containerElement','showMoreBalloon','undefined','remove','show','isIntersecting','_calculateOverflowInContainer','_bodyCollection','some','_parentView','_updateBalloonContent','div','auto','_visibleChips','_pendingCalculation','hideBalloonPanel','block\x20!important','7164388gvJjAZ','body','_applyCalculationStyles','push','cloneNode','bottom','_restoreAncestorVisibility','overflowContainer','showBalloonPanel','clear','createElement','5bORAtD','0px','ck-calculation-container','classList'];_0x5af7=function(){return _0x314bdf;};return _0x5af7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xd3ff(_0x1f5425,_0x4bdf74){const _0x4fb278=_0x4fb2();return _0xd3ff=function(_0xd3ffa3,_0x39991f){_0xd3ffa3=_0xd3ffa3-0x1e5;let _0x3ed05f=_0x4fb278[_0xd3ffa3];return _0x3ed05f;},_0xd3ff(_0x1f5425,_0x4bdf74);}const _0x4894a8=_0xd3ff;(function(_0x3dc18e,_0x3063f7){const _0xf65c8d=_0xd3ff,_0x5a1776=_0x3dc18e();while(!![]){try{const _0xd4efcb=parseInt(_0xf65c8d(0x201))/0x1*(-parseInt(_0xf65c8d(0x211))/0x2)+-parseInt(_0xf65c8d(0x216))/0x3*(parseInt(_0xf65c8d(0x1ee))/0x4)+parseInt(_0xf65c8d(0x21c))/0x5+parseInt(_0xf65c8d(0x1e7))/0x6+parseInt(_0xf65c8d(0x220))/0x7+parseInt(_0xf65c8d(0x1ed))/0x8+parseInt(_0xf65c8d(0x225))/0x9;if(_0xd4efcb===_0x3063f7)break;else _0x5a1776['push'](_0x5a1776['shift']());}catch(_0x31eb27){_0x5a1776['push'](_0x5a1776['shift']());}}}(_0x4fb2,0x9e54e));function _0x4fb2(){const _0x43dff1=['_isAnimationOnEnterEnabled','document','3968920uhzJNf','slice','_handleAnimationEndOnce','locale','2280509msgFKF','ck-hidden','lastIndexOf','tooltip','uiId','727893ywUnxG','_createTemplateChildren','animationend','3073932wMSKdu','remove','ck-ai-chat-context-chip_wide','ck-ai-chat-context-chip_document','fire','element','4281272mVrftV','3850568TyAObf','webkitAnimationEnd','ck-ai-chat-context-controls__chip-tooltip','_createIconView','bind','readonly','disableAnimationOnEnter','span','selection','_initializeProperties','small','itemType','add','bindTemplate','ck-ai-chat-context-chip__label','_setupRemoveButtonEvent','_setupTemplate','removeEventListener','isVisible','1LgerhS','set','label','classList','content','extendTemplate','_createLabelElement','length','_createTemplateAttributes','ck-ai-chat-context-chip','type','removeContextItemChip','ck-ai-chat-context-chip_new-chip','setTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLoaderIcon','1273522pwENmD','div','addEventListener','_createRemoveButton','render','3nGNYSA','ck-ai-chat-context-chip__type-icon','isLoading','execute'];_0x4fb2=function(){return _0x43dff1;};return _0x4fb2();}import{ButtonView as _0x61a9f,IconView as _0x53b27f}from'ckeditor5/src/ui.js';import{IconClose as _0x465e8d,IconDocument as _0x4a17dc,IconFileUpload as _0x474fbb,IconLink as _0x17f3f1,IconSelection as _0x1e64a3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x24b222}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1e7fd4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x474fbb,'document':_0x4a17dc,'web-resource':_0x17f3f1,'text':_0x474fbb,'selection':_0x1e64a3,'mcp-tool-context':_0x4a17dc},bn=_0x4894a8(0x20a),wn=_0x4894a8(0x1e9),Tn=_0x4894a8(0x1ea),En=_0x4894a8(0x1fc),fn=_0x4894a8(0x217),An=_0x4894a8(0x1f0),Cn='n';export class AIChatContextItemButtonView extends _0x61a9f{constructor(_0x5657bc,_0x54b9ea,_0x4c6751,_0x35d46a,_0x3bf41a=!0x1){const _0x3c9b9d=_0x4894a8;super(_0x5657bc),this[_0x3c9b9d(0x21a)]=_0x35d46a,this[_0x3c9b9d(0x1f7)](_0x54b9ea,_0x4c6751,_0x3bf41a),this[_0x3c9b9d(0x1fe)]();}[_0x4894a8(0x215)](){const _0x2a3826=_0x4894a8;super[_0x2a3826(0x215)](),this[_0x2a3826(0x21a)]&&this[_0x2a3826(0x1ec)]&&(this[_0x2a3826(0x1ec)][_0x2a3826(0x204)][_0x2a3826(0x1fa)](_0x2a3826(0x20d)),this[_0x2a3826(0x21e)](this[_0x2a3826(0x1ec)],()=>{const _0x11d269=_0x2a3826;this[_0x11d269(0x1ec)]&&this[_0x11d269(0x1ec)][_0x11d269(0x204)][_0x11d269(0x1e8)](_0x11d269(0x20d));}));}[_0x4894a8(0x1f4)](){const _0x32a094=_0x4894a8;this[_0x32a094(0x21a)]=!0x1,this[_0x32a094(0x1ec)]&&this[_0x32a094(0x1ec)][_0x32a094(0x204)][_0x32a094(0x1e8)](_0x32a094(0x20d));}[_0x4894a8(0x1f7)](_0x596d17,_0x473a8e,_0x423842){const _0xbd7194=_0x4894a8;this[_0xbd7194(0x202)](_0xbd7194(0x203),_0x596d17[_0xbd7194(0x203)]),this[_0xbd7194(0x202)](_0xbd7194(0x223),!0x0),this[_0xbd7194(0x202)](_0xbd7194(0x1f9),_0x596d17[_0xbd7194(0x20b)]),this[_0xbd7194(0x202)]('id',_0x596d17[_0xbd7194(0x224)]),this[_0xbd7194(0x202)](_0xbd7194(0x1f3),_0x473a8e),this[_0xbd7194(0x202)](_0xbd7194(0x218),_0x423842);}[_0x4894a8(0x1fe)](){const _0x400bcc=_0x4894a8,_0x4975d1=this[_0x400bcc(0x1f1)](),_0x5271be=this[_0x400bcc(0x214)](),_0x12758e=this[_0x400bcc(0x1fb)];this[_0x400bcc(0x20e)]({'tag':_0x400bcc(0x212),'attributes':this[_0x400bcc(0x209)](_0x12758e),'children':this[_0x400bcc(0x1e5)](_0x4975d1,_0x5271be,_0x12758e)});}[_0x4894a8(0x209)](_0x1220f7){const _0x5f2778=_0x4894a8;return{'class':[bn,_0x1220f7['if'](_0x5f2778(0x1f9),Tn,_0x17a48c=>_0x5f2778(0x21b)==_0x17a48c),_0x1220f7['if'](_0x5f2778(0x1f9),wn,_0x3b69d3=>_0x5f2778(0x1f6)==_0x3b69d3)],'data-cke-tooltip-text':_0x1220f7['to'](_0x5f2778(0x203),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x4894a8(0x1e5)](_0x126942,_0x56d9fc,_0x16a20a){const _0x49e4be=_0x4894a8,_0x5d077e=this[_0x49e4be(0x207)](_0x16a20a),_0xeaa3bd=this[_0x49e4be(0x210)]();return this[_0x49e4be(0x1f3)]?[_0x126942,_0x5d077e]:[_0x126942,_0xeaa3bd,_0x5d077e,_0x56d9fc];}[_0x4894a8(0x207)](_0x159170){const _0x2d6063=_0x4894a8;return{'tag':_0x2d6063(0x1f5),'attributes':{'class':En},'children':[{'text':_0x159170['to'](_0x2d6063(0x203))}]};}[_0x4894a8(0x214)](){const _0x24bef7=_0x4894a8,_0x501aab=new _0x61a9f(this[_0x24bef7(0x21f)]);return _0x501aab[_0x24bef7(0x202)]({'label':_0x24b222(this[_0x24bef7(0x21f)],_0x24bef7(0x20f)),'icon':_0x465e8d}),this[_0x24bef7(0x1fd)](_0x501aab),_0x501aab;}[_0x4894a8(0x1fd)](_0x1da8d0){const _0x31c29f=_0x4894a8;_0x1da8d0['on'](_0x31c29f(0x219),()=>{const _0x27df59=_0x31c29f;this[_0x27df59(0x1eb)](_0x27df59(0x20c),this['id']);});}[_0x4894a8(0x1f1)](){const _0x5d1a60=_0x4894a8,_0x45b159=this[_0x5d1a60(0x1fb)],_0x10931c=new _0x53b27f();return _0x10931c[_0x5d1a60(0x205)]=xn[this[_0x5d1a60(0x1f9)]],_0x10931c[_0x5d1a60(0x206)]({'attributes':{'class':[fn,_0x45b159['if'](_0x5d1a60(0x218),_0x5d1a60(0x221),_0x2e2079=>_0x2e2079)]}}),_0x10931c;}[_0x4894a8(0x21e)](_0x3a9c57,_0x503372){const _0x2aecb8=_0x4894a8;if(!_0x3a9c57)return;const _0x3c696c=()=>{const _0x119b61=_0xd3ff;_0x503372(),_0x3a9c57[_0x119b61(0x1ff)](_0x119b61(0x1e6),_0x3c696c),_0x3a9c57[_0x119b61(0x1ff)](_0x119b61(0x1ef),_0x3c696c);};_0x3a9c57[_0x2aecb8(0x213)](_0x2aecb8(0x1e6),_0x3c696c),_0x3a9c57[_0x2aecb8(0x213)](_0x2aecb8(0x1ef),_0x3c696c);}[_0x4894a8(0x210)](){const _0x5a827b=_0x4894a8,_0x39f47b=new _0x1e7fd4(_0x5a827b(0x1f8));return _0x39f47b[_0x5a827b(0x1f2)](_0x5a827b(0x200))['to'](this,_0x5a827b(0x218),_0x483e94=>_0x483e94),_0x39f47b;}}function In(_0x116455){const _0x148678=_0x4894a8;if(!_0x116455)return _0x116455;if(_0x116455[_0x148678(0x208)]<=0x78)return _0x116455;const _0x261f9f=_0x116455[_0x148678(0x21d)](0x0,0x78),_0xa949f6=_0x261f9f[_0x148678(0x222)]('\x20');return(_0xa949f6>0x0?_0x261f9f[_0x148678(0x21d)](0x0,_0xa949f6):_0x261f9f)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bf3e7=_0x156e;function _0x156e(_0x194786,_0x4d3ad0){const _0x475796=_0x4757();return _0x156e=function(_0x156ed6,_0x5a17a2){_0x156ed6=_0x156ed6-0x13d;let _0x4870bb=_0x475796[_0x156ed6];return _0x4870bb;},_0x156e(_0x194786,_0x4d3ad0);}(function(_0x46d732,_0x3f9009){const _0x2f23db=_0x156e,_0x48da3c=_0x46d732();while(!![]){try{const _0x56b39f=-parseInt(_0x2f23db(0x152))/0x1+-parseInt(_0x2f23db(0x16b))/0x2*(-parseInt(_0x2f23db(0x17d))/0x3)+parseInt(_0x2f23db(0x168))/0x4*(parseInt(_0x2f23db(0x184))/0x5)+parseInt(_0x2f23db(0x171))/0x6*(parseInt(_0x2f23db(0x172))/0x7)+parseInt(_0x2f23db(0x178))/0x8+-parseInt(_0x2f23db(0x14c))/0x9+-parseInt(_0x2f23db(0x158))/0xa;if(_0x56b39f===_0x3f9009)break;else _0x48da3c['push'](_0x48da3c['shift']());}catch(_0x11f90f){_0x48da3c['push'](_0x48da3c['shift']());}}}(_0x4757,0x9105a));function _0x4757(){const _0x245e8c=['forEach','clear','210454VZIasp','length','withBackButton','_createBackButton','trim','stop','6752598wUyZiJ','7zaByuJ','_updateConfirmButtonState','setError','keystrokes','_focusables','confirmButton','7454432xTRrCO','div','add','fire','AI_CHAT_CONTEXT_URL_ADD_URL','12fzlNqi','_createUrlInputField','cancel','ck-labeled-field-view_empty','shift+tab','_createConfirmButton','ck-button-icon','25gqfmYy','focus','submit','_setupTemplate','listenTo','destroy','getValue','focusCycler','locale','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','form','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_handleSubmit','setTemplate','render','element','change:withBackButton','ck-ai-chat-context-controls__url-input-section','2177865VTQfBZ','refreshBalloon','backButton','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','set','AI_CHAT_CONTEXT_URL_LABEL','70252uazaGD','createCollection','\x20ck-hidden','clearError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','execute','17318780JuwjIe','ck-button-icon\x20ck-button-back','children','_isValidUrl','value','submitUrl','tab','ck-ai-chat-context-controls__url-form','focusTracker','_setupEventHandlers','esc','urlInputField','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupKeystrokes','errorText','127984JOoHtm'];_0x4757=function(){return _0x245e8c;};return _0x4757();}import{FocusTracker as _0x1eb731,KeystrokeHandler as _0x57b663}from'ckeditor5/src/utils.js';import{ButtonView as _0x15ac1a,FocusCycler as _0x2685dd,LabeledFieldView as _0x4a4011,View as _0x40d152,FormHeaderView as _0x98cf1e,createLabeledInputText as _0x1a369a,submitHandler as _0x479eeb}from'ckeditor5/src/ui.js';import{IconCheck as _0x4290db,IconPreviousArrow as _0x32c945}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x44cd3c}from'../../../aicore/utils/common-translations.js';const oh=_0x3bf3e7(0x15f),ch=_0x3bf3e7(0x14b);export class AIChatContextPanelUrlInputView extends _0x40d152{[_0x3bf3e7(0x160)];[_0x3bf3e7(0x175)];[_0x3bf3e7(0x176)];[_0x3bf3e7(0x13f)];[_0x3bf3e7(0x163)];[_0x3bf3e7(0x14e)];[_0x3bf3e7(0x177)];constructor(_0x40d338){const _0x26e837=_0x3bf3e7;super(_0x40d338),this[_0x26e837(0x160)]=new _0x1eb731(),this[_0x26e837(0x175)]=new _0x57b663(),this[_0x26e837(0x14e)]=this[_0x26e837(0x16e)](),this[_0x26e837(0x163)]=this[_0x26e837(0x17e)](),this[_0x26e837(0x177)]=this[_0x26e837(0x182)](),this[_0x26e837(0x176)]=this[_0x26e837(0x153)]([this[_0x26e837(0x14e)],this[_0x26e837(0x163)],this[_0x26e837(0x177)]]),this[_0x26e837(0x13f)]=new _0x2685dd({'focusables':this[_0x26e837(0x176)],'focusTracker':this[_0x26e837(0x160)],'keystrokeHandler':this[_0x26e837(0x175)],'actions':{'focusPrevious':_0x26e837(0x181),'focusNext':_0x26e837(0x15e)}}),this[_0x26e837(0x150)](_0x26e837(0x16d),!0x0),this[_0x26e837(0x187)](),this[_0x26e837(0x161)](),this[_0x26e837(0x166)]();}[_0x3bf3e7(0x148)](){const _0x47a556=_0x3bf3e7;super[_0x47a556(0x148)](),this[_0x47a556(0x176)][_0x47a556(0x169)](_0x11e94f=>{const _0x826dad=_0x47a556;this[_0x826dad(0x160)][_0x826dad(0x17a)](_0x11e94f[_0x826dad(0x149)]),this[_0x826dad(0x175)][_0x826dad(0x188)](_0x11e94f[_0x826dad(0x149)]);}),_0x479eeb({'view':this}),this[_0x47a556(0x185)]();}[_0x3bf3e7(0x13d)](){const _0x1adf04=_0x3bf3e7;super[_0x1adf04(0x13d)](),this[_0x1adf04(0x160)][_0x1adf04(0x13d)](),this[_0x1adf04(0x175)][_0x1adf04(0x13d)]();}[_0x3bf3e7(0x185)](){const _0x26ffe1=_0x3bf3e7;this[_0x26ffe1(0x163)][_0x26ffe1(0x185)]();}[_0x3bf3e7(0x13e)](){const _0x5942f7=_0x3bf3e7;return this[_0x5942f7(0x163)][_0x5942f7(0x164)][_0x5942f7(0x149)]?.[_0x5942f7(0x15c)]?.[_0x5942f7(0x16f)]()||'';}[_0x3bf3e7(0x16a)](){const _0x422e2c=_0x3bf3e7;this[_0x422e2c(0x163)][_0x422e2c(0x164)][_0x422e2c(0x149)][_0x422e2c(0x15c)]='',this[_0x422e2c(0x163)][_0x422e2c(0x167)]=null,this[_0x422e2c(0x177)][_0x422e2c(0x141)]=!0x1;}[_0x3bf3e7(0x174)](_0x562095){const _0x2ce202=_0x3bf3e7;this[_0x2ce202(0x163)][_0x2ce202(0x167)]=_0x562095,this[_0x2ce202(0x173)](),this[_0x2ce202(0x17b)](_0x2ce202(0x14d));}[_0x3bf3e7(0x155)](){const _0x23a016=_0x3bf3e7;this[_0x23a016(0x163)][_0x23a016(0x167)]=null,this[_0x23a016(0x173)]();}[_0x3bf3e7(0x16e)](){const _0x21d65e=_0x3bf3e7,_0x233d19=new _0x15ac1a(this[_0x21d65e(0x140)]);return _0x233d19[_0x21d65e(0x150)]({'icon':_0x32c945,'tooltip':_0x44cd3c(this[_0x21d65e(0x140)],_0x21d65e(0x156)),'tooltipPosition':'n','class':[_0x21d65e(0x159)]}),this['on'](_0x21d65e(0x14a),(_0x5ef3ce,_0x39d209,_0x53bcaf)=>{const _0x397ee5=_0x21d65e;_0x233d19[_0x397ee5(0x150)]({'class':[_0x397ee5(0x159)+(_0x53bcaf?'':_0x397ee5(0x154))]});}),_0x233d19;}[_0x3bf3e7(0x17e)](){const _0x3f8522=_0x3bf3e7,_0x14e1a6=new _0x4a4011(this[_0x3f8522(0x140)],_0x1a369a);return _0x14e1a6[_0x3f8522(0x150)]({'label':_0x44cd3c(this[_0x3f8522(0x140)],_0x3f8522(0x151)),'class':_0x3f8522(0x180)}),_0x14e1a6[_0x3f8522(0x164)][_0x3f8522(0x150)]({'placeholder':_0x44cd3c(this[_0x3f8522(0x140)],_0x3f8522(0x142))}),_0x14e1a6;}[_0x3bf3e7(0x182)](){const _0x501ce8=_0x3bf3e7,_0x307d87=new _0x15ac1a(this[_0x501ce8(0x140)]);return _0x307d87[_0x501ce8(0x150)]({'icon':_0x4290db,'tooltip':_0x44cd3c(this[_0x501ce8(0x140)],_0x501ce8(0x17c)),'tooltipPosition':'n','class':_0x501ce8(0x183),'type':_0x501ce8(0x186),'isEnabled':!0x1}),_0x307d87;}[_0x3bf3e7(0x187)](){const _0x196255=_0x3bf3e7,_0x4c2aae=new _0x98cf1e(this[_0x196255(0x140)],{'label':_0x44cd3c(this[_0x196255(0x140)],_0x196255(0x17c)),'class':_0x196255(0x145)});_0x4c2aae[_0x196255(0x15a)][_0x196255(0x17a)](this[_0x196255(0x14e)],0x0),this[_0x196255(0x147)]({'tag':_0x196255(0x143),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x4c2aae,{'tag':_0x196255(0x179),'attributes':{'class':ch},'children':[this[_0x196255(0x163)],this[_0x196255(0x177)]]}]});}[_0x3bf3e7(0x161)](){const _0x24a58c=_0x3bf3e7;this[_0x24a58c(0x14e)]['on'](_0x24a58c(0x157),()=>{const _0x3953ca=_0x24a58c;this[_0x3953ca(0x16a)](),this[_0x3953ca(0x17b)](_0x3953ca(0x17f));}),this[_0x24a58c(0x163)][_0x24a58c(0x164)]['on'](_0x24a58c(0x144),()=>{const _0x72eb20=_0x24a58c;this[_0x72eb20(0x155)](),this[_0x72eb20(0x173)](),this[_0x72eb20(0x17b)](_0x72eb20(0x14d));}),this['on'](_0x24a58c(0x186),_0x171bc0=>{const _0x190693=_0x24a58c;_0x171bc0[_0x190693(0x170)](),this[_0x190693(0x146)]();});}[_0x3bf3e7(0x166)](){const _0x11eb06=_0x3bf3e7;this[_0x11eb06(0x175)][_0x11eb06(0x150)](_0x11eb06(0x162),(_0x35a437,_0x53bc56)=>{const _0x5e94a4=_0x11eb06;this[_0x5e94a4(0x16a)](),this[_0x5e94a4(0x17b)](_0x5e94a4(0x17f)),_0x53bc56();});}[_0x3bf3e7(0x146)](){const _0x4cba9b=_0x3bf3e7,_0x480f39=this[_0x4cba9b(0x13e)]()[_0x4cba9b(0x16f)]();_0x480f39?this[_0x4cba9b(0x15b)](_0x480f39)?(this[_0x4cba9b(0x155)](),this[_0x4cba9b(0x17b)](_0x4cba9b(0x15d),_0x480f39)):this[_0x4cba9b(0x174)](_0x44cd3c(this[_0x4cba9b(0x140)],_0x4cba9b(0x165))):this[_0x4cba9b(0x174)](_0x44cd3c(this[_0x4cba9b(0x140)],_0x4cba9b(0x14f)));}[_0x3bf3e7(0x173)](){const _0x41b56c=_0x3bf3e7,_0x3d9dc4=this[_0x41b56c(0x13e)]()[_0x41b56c(0x16f)](),_0x3e2934=!!this[_0x41b56c(0x163)][_0x41b56c(0x167)];this[_0x41b56c(0x177)][_0x41b56c(0x141)]=_0x3d9dc4[_0x41b56c(0x16c)]>0x0&&!_0x3e2934;}[_0x3bf3e7(0x15b)](_0x57d2fe){try{return!!new URL(_0x57d2fe);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x46cdf6=_0x4658;(function(_0x34638a,_0xbe4b98){const _0x4051bc=_0x4658,_0xeb45ab=_0x34638a();while(!![]){try{const _0x29f765=-parseInt(_0x4051bc(0xfe))/0x1+parseInt(_0x4051bc(0x8f))/0x2+parseInt(_0x4051bc(0x9e))/0x3+-parseInt(_0x4051bc(0x10c))/0x4*(-parseInt(_0x4051bc(0xe1))/0x5)+parseInt(_0x4051bc(0xa4))/0x6+parseInt(_0x4051bc(0xf2))/0x7+-parseInt(_0x4051bc(0xdb))/0x8;if(_0x29f765===_0xbe4b98)break;else _0xeb45ab['push'](_0xeb45ab['shift']());}catch(_0x59a324){_0xeb45ab['push'](_0xeb45ab['shift']());}}}(_0x3991,0x6bebd));function _0x3991(){const _0x3277b7=['locale','44143DVMSps','_showSourceResourcesBalloon','add','balloonView','AI_CHAT_CONTEXT_ADD_CONTEXT','setContextItemLoading','done','_createAddContextBalloonPanelView','addContextButtonView','_createContextButton','customItems','icon','bind','populateSourceResourceBalloon','2064nVDyYc','isVisible','_setupUrlBalloonClickOutsideHandler','_setupAllBalloonClickOutsideHandlers','_setupTemplate','createCollection','showSourceResourcesBalloon','_urlBalloonPanelView','clear','executeCustomItemCallback','setConversationContext','loadSourceResources','_setBalloonPanelContent','northArrowSouthEast','ck-ai-chat-context-controls__add-context-button','searchInputVisibleFrom','execute','show','bodyCollection','label','ck-reset_all-excluded','closest','length','addResourceToContext','344582wFFzhY','_createUrlBalloonPanelView','_handleUrlSubmit','focus','customItem','buttonView','ck-ai-chat-context-controls__url-balloon-panel','_createResourcesBalloonView','hide','fire','_addUrlContent','showAddContextBalloonPanel','setContainerElement','_createAddContextButtonView','ck-ai-chat-controls_context_show-more-button','680337zqVAJX','arrowView','render','set','sources','_addContextBalloonPanelView','461562TKacAM','pin','_conversationContextsChips','isEnabled','_addContextBalloonConfig','addContextItem','southArrowNorth','_setupAddContextBalloonClickOutsideHandler','_createBaseBalloonPanel','overflowChips','removeContextItemChip','isHidden','element','isReadOnly','isLoading','conversation','_createBalloonButton','destroy','setAddContextOptions','find','ck-ai-chat-context-controls__balloon-button-source','source','cancel','submitUrl','addUrlToContext','_getLimiterElement','_createArrowView','removeContextItem','AI_CHAT_CONTEXT_URL_LABEL','closeSourceResourceBalloon','children','addFileToContext','_addContextToCollection','_handleAddContextButtonClick','ck-ai-chat-context-controls__add-context-balloon-panel','_hasExactlyOneSource','refreshBalloon','enabled','current','ck-ai-chat','urls','northArrowSouthWest','ck-ai-chat-context-controls__pending-contexts','_setAddContextButtonEnabled','ck-ai-chat-context-controls','body','AI_CHAT_CONTEXT_FILE_LABEL','_removeContextFromCollection','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','remove','southArrowNorthEast','_overflowManager','menuitem','clearCurrentContextItems','4917152oGyHMS','get','tooltip','document','showUrlBalloonPanel','type','380rfyfQB','div','ck-ai-chat-context-chips-wrapper-balloon','defaultPositions','__arrow','reorganizeChips','_bindEventHandlers','updateResourceState','hideAddContextBalloonPanel','southArrowNorthWest','_toggleAddContextBalloon','clearConversationContextItems','content','northArrowSouth','_resourcesBalloonView','_currentContextsChips','withBackButton','4099333fgCgJm','_urlInputView','addDocumentToContext','isOn','setTemplate','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','extendTemplate','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','files','ck-ai-chat-context-controls__show-more-balloon-panel'];_0x3991=function(){return _0x3277b7;};return _0x3991();}import{BalloonPanelView as _0x168f2e,ButtonView as _0x3d5c06,clickOutsideHandler as _0x3ec0d8,FileDialogButtonView as _0x4b3811,IconView as _0x366d16,View as _0x1dc98b}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1cf317,IconDocument as _0x47234e,IconDocumentOutline as _0x4fd791,IconDropdownArrow as _0xcb40fe,IconLink as _0x3e9d1e,IconPaperClip as _0x195237}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x46a735}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1b918a}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x14b0ab}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37f3fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0xfd6c5d}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x46cdf6(0xf4),_0x46cdf6(0xc3),_0x46cdf6(0xbc),_0x46cdf6(0x8e),_0x46cdf6(0xbf),_0x46cdf6(0x82),_0x46cdf6(0x115)];const Ro=_0x46cdf6(0xd0),So=_0x46cdf6(0xce),Oo=_0x46cdf6(0xc6),Uo=_0x46cdf6(0x85),Lo=_0x46cdf6(0x95),No=_0x46cdf6(0xfa),Ho=_0x46cdf6(0xb8),jo=_0x46cdf6(0xd5),Fo=_0x46cdf6(0xe3),Bo=_0x46cdf6(0x9d),Mo=_0x46cdf6(0xfc),Xo=_0x46cdf6(0xcb),yo=[_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xcd)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xee)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0x84)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xea)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xaa)],_0x168f2e[_0x46cdf6(0xe4)][_0x46cdf6(0xd7)]];function _0x4658(_0x430a8a,_0x3edb6c){const _0x3991df=_0x3991();return _0x4658=function(_0x465810,_0x473861){_0x465810=_0x465810-0x82;let _0x4afd33=_0x3991df[_0x465810];return _0x4afd33;},_0x4658(_0x430a8a,_0x3edb6c);}export class AIChatContextPanelView extends _0x1dc98b{[_0x46cdf6(0x106)];[_0x46cdf6(0xf0)]=this[_0x46cdf6(0x111)]();[_0x46cdf6(0xa6)]=this[_0x46cdf6(0x111)]();[_0x46cdf6(0xd8)];[_0x46cdf6(0xa3)];[_0x46cdf6(0x113)];[_0x46cdf6(0xf3)];[_0x46cdf6(0xef)];[_0x46cdf6(0xa8)];[_0x46cdf6(0xc7)]=!0x1;[_0x46cdf6(0x89)];constructor(_0x1cfad2,_0x4fea3a){const _0x3bddd6=_0x46cdf6;super(_0x1cfad2),this[_0x3bddd6(0x89)]=_0x4fea3a[_0x3bddd6(0x89)],this[_0x3bddd6(0xf0)]=this[_0x3bddd6(0x111)](),this[_0x3bddd6(0xa6)]=this[_0x3bddd6(0x111)](),this[_0x3bddd6(0x106)]=this[_0x3bddd6(0x9c)](_0x1cfad2),this[_0x3bddd6(0xa3)]=this[_0x3bddd6(0x105)](_0x1cfad2),this[_0x3bddd6(0x113)]=this[_0x3bddd6(0x90)](_0x1cfad2),this[_0x3bddd6(0xef)]=this[_0x3bddd6(0x96)](_0x1cfad2,_0x4fea3a);const _0x5172f6={'cssClasses':{'showMoreButton':Bo,'showMoreBalloon':Mo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x3bddd6(0xd8)]=new _0x14b0ab(_0x1cfad2,this[_0x3bddd6(0xf0)],_0x5172f6,this[_0x3bddd6(0x89)],this),this[_0x3bddd6(0xa8)]={'buttonView':this[_0x3bddd6(0x106)],'balloonView':this[_0x3bddd6(0xa3)],'hideMethod':this[_0x3bddd6(0xe9)][_0x3bddd6(0x10a)](this),'showMethod':this[_0x3bddd6(0x9a)][_0x3bddd6(0x10a)](this)},this[_0x3bddd6(0x110)](),this[_0x3bddd6(0xe7)]();}[_0x46cdf6(0xa0)](){const _0x19e662=_0x46cdf6;super[_0x19e662(0xa0)](),this[_0x19e662(0x10f)](),this[_0x19e662(0xd8)][_0x19e662(0x9b)](this[_0x19e662(0xb0)]),this[_0x19e662(0xd8)][_0x19e662(0xe6)]();}[_0x46cdf6(0xb5)](){const _0x4fbea9=_0x46cdf6;super[_0x4fbea9(0xb5)](),this[_0x4fbea9(0xd8)][_0x4fbea9(0xb5)](),this[_0x4fbea9(0xef)][_0x4fbea9(0xb5)]();}[_0x46cdf6(0xa9)](_0x4be848,_0x5547d3){const _0x4cc02f=_0x46cdf6,_0x5aa2ee=this[_0x4cc02f(0x107)](_0x4be848,_0x4cc02f(0xca),!0x0,_0x5547d3);this[_0x4cc02f(0xc4)](_0x5aa2ee,this[_0x4cc02f(0xf0)]),this[_0x4cc02f(0xd8)][_0x4cc02f(0xe6)]();}[_0x46cdf6(0xbf)](_0x4acac4){const _0xd69216=_0x46cdf6;this[_0xd69216(0xd3)](_0x4acac4,this[_0xd69216(0xf0)]),this[_0xd69216(0xd3)](_0x4acac4,this[_0xd69216(0xd8)][_0xd69216(0xad)]),this[_0xd69216(0xd8)][_0xd69216(0xe6)]();}[_0x46cdf6(0x103)](_0x41b72c,_0x3e7820){const _0x1413dd=_0x46cdf6;let _0x49f9bc=this[_0x1413dd(0xf0)][_0x1413dd(0xb7)](_0xd1b348=>_0xd1b348['id']===_0x41b72c);_0x49f9bc||(_0x49f9bc=this[_0x1413dd(0xd8)][_0x1413dd(0xad)][_0x1413dd(0xb7)](_0x2e81f0=>_0x2e81f0['id']===_0x41b72c)),_0x49f9bc&&(_0x49f9bc[_0x1413dd(0xb2)]=_0x3e7820);}[_0x46cdf6(0x116)](_0x80eb4f){const _0x3f46bd=_0x46cdf6;this[_0x3f46bd(0xa6)][_0x3f46bd(0x114)]();for(const _0x5588cd of _0x80eb4f){const _0x607e2=this[_0x3f46bd(0x107)](_0x5588cd,_0x3f46bd(0xb3),!0x1,!0x1);this[_0x3f46bd(0xc4)](_0x607e2,this[_0x3f46bd(0xa6)]);}}[_0x46cdf6(0xda)](){const _0x4f7614=_0x46cdf6;this[_0x4f7614(0xf0)][_0x4f7614(0x114)](),this[_0x4f7614(0xd8)][_0x4f7614(0x114)]();}[_0x46cdf6(0xec)](){const _0x4fb80b=_0x46cdf6;this[_0x4fb80b(0xa6)][_0x4fb80b(0x114)]();}[_0x46cdf6(0xe8)](_0xa5e00e,_0x53b9cf,_0x543354){const _0x53b15f=_0x46cdf6;this[_0x53b15f(0xef)][_0x53b15f(0xe8)](_0xa5e00e,_0x53b9cf,_0x543354);}[_0x46cdf6(0xe9)](){const _0x10d368=_0x46cdf6;this[_0x10d368(0xeb)](!0x1);}[_0x46cdf6(0x9a)](){const _0x4e660a=_0x46cdf6;this[_0x4e660a(0xeb)](!0x0);}[_0x46cdf6(0xf9)](){const _0x8c672e=_0x46cdf6;this[_0x8c672e(0x113)][_0x8c672e(0x97)](),this[_0x8c672e(0x106)][_0x8c672e(0xf5)]=!0x1,this[_0x8c672e(0xf3)]&&this[_0x8c672e(0xf3)][_0x8c672e(0x114)]();}[_0x46cdf6(0xdf)](){const _0x111a16=_0x46cdf6;this[_0x111a16(0x113)][_0x111a16(0x88)](),this[_0x111a16(0x106)][_0x111a16(0xf5)]=!0x0;}[_0x46cdf6(0xff)]({source:_0x3b6987,withBackButton:_0x571505}){const _0x1ec66d=_0x46cdf6;this[_0x1ec66d(0xef)][_0x1ec66d(0x112)]({'source':_0x3b6987,'withBackButton':_0x571505}),this[_0x1ec66d(0x106)][_0x1ec66d(0xf5)]=!0x0;}[_0x46cdf6(0x10b)](_0x9c81f0,_0x483e37,_0x292c16,_0x5d7668){const _0x127f22=_0x46cdf6;this[_0x127f22(0xef)][_0x127f22(0x10b)](_0x9c81f0,_0x292c16,_0x5d7668);}[_0x46cdf6(0xc1)](_0x5b382a){const _0x25ece9=_0x46cdf6;this[_0x25ece9(0xef)][_0x25ece9(0xc1)](_0x5b382a),this[_0x25ece9(0x106)][_0x25ece9(0xf5)]=!0x1;}[_0x46cdf6(0xb6)](_0x451634){const _0x25054b=_0x46cdf6;this[_0x25054b(0x83)](this[_0x25054b(0xa3)],this[_0x25054b(0xfd)],_0x451634),this[_0x25054b(0xcf)](_0x451634);}[_0x46cdf6(0xcf)](_0x27fffc){const _0x4e0439=_0x46cdf6,_0x1e3dd8=!_0x27fffc[_0x4e0439(0xde)][_0x4e0439(0xaf)]&&_0x27fffc[_0x4e0439(0xde)][_0x4e0439(0xc9)],_0x399c90=_0x27fffc[_0x4e0439(0xcc)][_0x4e0439(0xc9)],_0x42819b=_0x27fffc[_0x4e0439(0xfb)][_0x4e0439(0xc9)],_0x3e9ebe=_0x27fffc[_0x4e0439(0xa2)][_0x4e0439(0x8d)]>0x0,_0x37033b=_0x27fffc[_0x4e0439(0x108)]&&_0x27fffc[_0x4e0439(0x108)][_0x4e0439(0x8d)]>0x0;this[_0x4e0439(0x106)][_0x4e0439(0xa7)]=_0x1e3dd8||_0x399c90||_0x42819b||_0x3e9ebe||_0x37033b;}[_0x46cdf6(0x110)](){const _0x2f52b7=_0x46cdf6;this[_0x2f52b7(0xf6)]({'tag':_0x2f52b7(0xe2),'attributes':{'class':[Ro,_0x2f52b7(0x8b)]},'children':[{'tag':_0x2f52b7(0xe2),'attributes':{'class':So},'children':this[_0x2f52b7(0xf0)]}]});}[_0x46cdf6(0xe7)](){const _0x43d981=_0x46cdf6;this[_0x43d981(0x106)]['on'](_0x43d981(0x87),()=>{const _0x4dbee2=_0x43d981;this[_0x4dbee2(0xc5)]();});}[_0x46cdf6(0x9c)](_0x264450){const _0x222eab=_0x46cdf6,_0x1d3270=new _0x3d5c06(_0x264450);return _0x1d3270[_0x222eab(0xa1)]({'label':_0x37f3fa(_0x264450,_0x222eab(0x102)),'class':jo+'\x20'+Uo,'icon':_0x195237,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x1d3270;}[_0x46cdf6(0x105)](_0x5c8af6){const _0x326cab=_0x46cdf6;return this[_0x326cab(0xac)](_0x5c8af6,Oo);}[_0x46cdf6(0x90)](_0x5ab1ad){const _0x115e40=_0x46cdf6,_0x1a4ef5=this[_0x115e40(0xac)](_0x5ab1ad,Lo);return this[_0x115e40(0x99)](_0x1a4ef5,_0x5ab1ad),_0x1a4ef5;}[_0x46cdf6(0x96)](_0x3345a3,_0x26f7b7){const _0x2efe76=_0x46cdf6,_0x51a801={'searchInputVisibleFrom':_0x26f7b7[_0x2efe76(0x86)],'onBackToContext':()=>{const _0x4a9ca9=_0x2efe76;this[_0x4a9ca9(0x9a)](),this[_0x4a9ca9(0xa3)][_0x4a9ca9(0xa5)]({'target':this[_0x4a9ca9(0x106)][_0x4a9ca9(0xb0)],'limiter':this[_0x4a9ca9(0xbd)](),'positions':yo});},'onResourceSelected':(_0x4edb1a,_0x574665)=>{const _0x39ce1a=_0x2efe76;this[_0x39ce1a(0x98)](_0x39ce1a(0x8e),{'source':_0x4edb1a,'resource':_0x574665});},'onLoadSourceResources':_0x53663a=>{const _0x172b7e=_0x2efe76;this[_0x172b7e(0x98)](_0x172b7e(0x82),_0x53663a);},'onBalloonClosed':()=>{const _0x157ad0=_0x2efe76;this[_0x157ad0(0x106)][_0x157ad0(0xf5)]=!0x1;},'getLimiterElement':()=>this[_0x2efe76(0xbd)](),'getTargetElement':()=>this[_0x2efe76(0x106)][_0x2efe76(0xb0)]};return new _0xfd6c5d(_0x3345a3,_0x26f7b7[_0x2efe76(0x89)],_0x51a801);}[_0x46cdf6(0xbd)](){const _0x310074=_0x46cdf6;return this[_0x310074(0xb0)]?.[_0x310074(0x8c)]('.'+Xo)||document[_0x310074(0xd1)];}[_0x46cdf6(0xac)](_0x27c6eb,_0x483575){const _0x20ac1d=_0x46cdf6,_0xcb0142=new _0x168f2e(_0x27c6eb);return _0xcb0142[_0x20ac1d(0xf8)]({'attributes':{'class':_0x483575}}),this[_0x20ac1d(0x89)][_0x20ac1d(0x100)](_0xcb0142),_0xcb0142;}[_0x46cdf6(0x83)](_0x33530d,_0x172a25,_0x5282a3){const _0x1145f6=_0x46cdf6;if(_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x114)](),!_0x5282a3[_0x1145f6(0xde)][_0x1145f6(0xaf)]&&_0x5282a3[_0x1145f6(0xde)][_0x1145f6(0xc9)]){const _0x3a8db0=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x37f3fa(_0x172a25,_0x1145f6(0xf7)),'icon':_0x47234e});_0x3a8db0['on'](_0x1145f6(0x87),()=>{const _0xd99717=_0x1145f6;this[_0xd99717(0x98)](_0xd99717(0xf4)),this[_0xd99717(0xe9)]();}),_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x3a8db0);}if(_0x5282a3[_0x1145f6(0xcc)][_0x1145f6(0xc9)]){const _0xda35b7=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x37f3fa(_0x172a25,_0x1145f6(0xc0)),'icon':_0x3e9d1e});_0xda35b7['on'](_0x1145f6(0x87),()=>{const _0x3c0432=_0x1145f6;this[_0x3c0432(0xe9)](),this[_0x3c0432(0xdf)](),this[_0x3c0432(0x113)][_0x3c0432(0xa5)]({'target':this[_0x3c0432(0x106)][_0x3c0432(0xb0)],'limiter':this[_0x3c0432(0xbd)](),'positions':yo}),this[_0x3c0432(0xf3)][_0x3c0432(0x92)]();}),_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0xda35b7);}if(_0x5282a3[_0x1145f6(0xfb)][_0x1145f6(0xc9)]){const _0x446dd7=new _0x4b3811(_0x172a25);_0x446dd7[_0x1145f6(0xa1)]({'label':_0x37f3fa(_0x172a25,_0x1145f6(0xd2)),'icon':_0x1cf317,'withText':!0x0,'tooltip':!0x0,'class':No,'allowMultipleFiles':!0x0}),_0x446dd7['on'](_0x1145f6(0x87),()=>{const _0x100449=_0x1145f6;this[_0x100449(0xe9)]();}),_0x446dd7['on'](_0x1145f6(0x104),(_0x377824,_0x172988)=>{const _0x30cdd4=_0x1145f6;this[_0x30cdd4(0x98)](_0x30cdd4(0xc3),_0x172988);}),_0x446dd7[_0x1145f6(0xdd)]=!0x0,_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x446dd7);}for(const _0x2afa65 of _0x5282a3[_0x1145f6(0xa2)]){const _0x275b98=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x2afa65[_0x1145f6(0x8a)],'icon':_0x2afa65[_0x1145f6(0x109)]||_0x4fd791,'type':_0x1145f6(0xb9)});_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x275b98),_0x275b98['on'](_0x1145f6(0x87),()=>{const _0x32de8a=_0x1145f6;this[_0x32de8a(0xe9)](),this[_0x32de8a(0xff)]({'source':_0x2afa65,'withBackButton':!this[_0x32de8a(0xc7)]});});}for(const _0x31df42 of _0x5282a3[_0x1145f6(0x108)]||[]){const _0x248143=this[_0x1145f6(0xb4)](_0x172a25,{'label':_0x31df42[_0x1145f6(0x8a)],'icon':_0x31df42[_0x1145f6(0x109)]||_0x4fd791,'type':_0x1145f6(0x93)});_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x100)](_0x248143),_0x248143['on'](_0x1145f6(0x87),()=>{const _0xd8fc39=_0x1145f6;this[_0xd8fc39(0xe9)](),this[_0xd8fc39(0x98)](_0xd8fc39(0x115),_0x31df42);});}this[_0x1145f6(0xc7)]=0x1===_0x33530d[_0x1145f6(0xed)][_0x1145f6(0x8d)],this[_0x1145f6(0xf3)][_0x1145f6(0xf1)]=!this[_0x1145f6(0xc7)];}[_0x46cdf6(0x99)](_0x291df2,_0x2c88a5){const _0x56322b=_0x46cdf6;this[_0x56322b(0xf3)]=new _0x1b918a(_0x2c88a5),this[_0x56322b(0xf3)]['on'](_0x56322b(0xbb),(_0x58337b,_0x41d112)=>{const _0x1a5d6b=_0x56322b;this[_0x1a5d6b(0x91)](_0x41d112);}),this[_0x56322b(0xf3)]['on'](_0x56322b(0xba),()=>{const _0x4c2a70=_0x56322b;this[_0x4c2a70(0xf9)](),this[_0x4c2a70(0xc7)]||(this[_0x4c2a70(0x9a)](),this[_0x4c2a70(0xa3)][_0x4c2a70(0xa5)]({'target':this[_0x4c2a70(0x106)][_0x4c2a70(0xb0)],'limiter':this[_0x4c2a70(0xbd)](),'positions':yo}));}),this[_0x56322b(0xf3)]['on'](_0x56322b(0xc8),()=>{const _0x3d94f1=_0x56322b;this[_0x3d94f1(0x113)][_0x3d94f1(0x10d)]&&this[_0x3d94f1(0x113)][_0x3d94f1(0xa5)]({'target':this[_0x3d94f1(0x106)][_0x3d94f1(0xb0)],'limiter':this[_0x3d94f1(0xbd)](),'positions':yo});}),_0x291df2[_0x56322b(0xed)][_0x56322b(0x100)](this[_0x56322b(0xf3)]);}[_0x46cdf6(0xb4)](_0x5ed8fe,_0x9de66c){const _0x4c5b4f=_0x46cdf6,_0x3ecfd1=_0x4c5b4f(0xb9)===_0x9de66c[_0x4c5b4f(0xe0)]?new SourcesBalloonButtonView(_0x5ed8fe):new _0x3d5c06(_0x5ed8fe);return _0x3ecfd1[_0x4c5b4f(0xa1)]({'label':_0x9de66c[_0x4c5b4f(0x8a)],'icon':_0x9de66c[_0x4c5b4f(0x109)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':No}),_0x3ecfd1;}[_0x46cdf6(0x10f)](){const _0x867b38=_0x46cdf6;this[_0x867b38(0xab)](),this[_0x867b38(0x10e)]();}[_0x46cdf6(0x10e)](){const _0x2b1871=_0x46cdf6;_0x3ec0d8({'emitter':this[_0x2b1871(0x113)],'contextElements':[this[_0x2b1871(0x113)][_0x2b1871(0xb0)]],'callback':()=>{const _0x11e1af=_0x2b1871;this[_0x11e1af(0xf9)]();},'activator':()=>this[_0x2b1871(0x113)][_0x2b1871(0x10d)]});}[_0x46cdf6(0xeb)](_0x3e2fb8){const _0x233635=_0x46cdf6,_0x4a22f3=this[_0x233635(0xa8)];_0x4a22f3[_0x233635(0x94)][_0x233635(0xf5)]=_0x3e2fb8,_0x3e2fb8?_0x4a22f3[_0x233635(0x101)][_0x233635(0x88)]():_0x4a22f3[_0x233635(0x101)][_0x233635(0x97)]();}[_0x46cdf6(0xab)](){const _0x347978=_0x46cdf6,{balloonView:_0x307e9b,buttonView:_0x1491eb,hideMethod:_0x589bcb}=this[_0x347978(0xa8)];_0x3ec0d8({'emitter':_0x307e9b,'contextElements':[_0x307e9b[_0x347978(0xb0)],_0x1491eb[_0x347978(0xb0)]],'callback':()=>{_0x589bcb();},'activator':()=>_0x1491eb[_0x347978(0xf5)]&&!this[_0x347978(0x113)][_0x347978(0x10d)]&&!this[_0x347978(0xef)][_0x347978(0xd4)]()});}[_0x46cdf6(0x107)](_0x103956,_0x2e44c1,_0x346ff0=!0x1,_0x950c83=!0x1){const _0x2c6cf2=_0x46cdf6,_0x42a088=_0x2c6cf2(0xb3)===_0x2e44c1||!0x0===_0x103956[_0x2c6cf2(0xb1)],_0x12bbc7=new _0x46a735(this[_0x2c6cf2(0xfd)],_0x103956,_0x42a088,_0x346ff0,_0x950c83);return _0x42a088||_0x12bbc7['on'](_0x2c6cf2(0xae),()=>{const _0x6cfc64=_0x2c6cf2;this[_0x6cfc64(0x98)](_0x6cfc64(0xbf),_0x12bbc7['id']);}),_0x12bbc7;}[_0x46cdf6(0xc4)](_0x307188,_0x3eb9e2){const _0x822d37=_0x46cdf6;_0x3eb9e2[_0x822d37(0x100)](_0x307188,0x0);}[_0x46cdf6(0xd3)](_0x1246a1,_0x4d6e4c){const _0x3a41bc=_0x46cdf6,_0x45492e=_0x4d6e4c[_0x3a41bc(0xb7)](_0x3c32e6=>_0x3c32e6['id']===_0x1246a1);_0x45492e&&_0x4d6e4c[_0x3a41bc(0xd6)](_0x45492e);}[_0x46cdf6(0xc5)](){const _0x578705=_0x46cdf6;this[_0x578705(0x106)][_0x578705(0xf5)]?this[_0x578705(0xe9)]():(this[_0x578705(0x9a)](),this[_0x578705(0xa3)][_0x578705(0xa5)]({'target':this[_0x578705(0x106)][_0x578705(0xb0)],'limiter':this[_0x578705(0xbd)](),'positions':yo}),this[_0x578705(0xc7)]&&this[_0x578705(0xa3)][_0x578705(0xed)][_0x578705(0xdc)](0x0)?.[_0x578705(0x98)](_0x578705(0x87)));}[_0x46cdf6(0x91)](_0x49c712){const _0x41f33b=_0x46cdf6;this[_0x41f33b(0xf3)][_0x41f33b(0x114)](),this[_0x41f33b(0xf9)](),this[_0x41f33b(0x98)](_0x41f33b(0xbc),_0x49c712);}}export class SourcesBalloonButtonView extends _0x3d5c06{[_0x46cdf6(0x9f)];constructor(_0x494d7b){const _0x414189=_0x46cdf6;super(_0x494d7b),this[_0x414189(0xa1)]({'withText':!0x0,'role':_0x414189(0xd9)}),this[_0x414189(0x9f)]=this[_0x414189(0xbe)](),this[_0x414189(0xf8)]({'attributes':{'class':[Ho]}});}[_0x46cdf6(0xa0)](){const _0x5b77d5=_0x46cdf6;super[_0x5b77d5(0xa0)](),this[_0x5b77d5(0xc2)][_0x5b77d5(0x100)](this[_0x5b77d5(0x9f)]);}[_0x46cdf6(0xbe)](){const _0x2c84d8=_0x46cdf6,_0x31b13c=new _0x366d16();return _0x31b13c[_0x2c84d8(0xed)]=_0xcb40fe,_0x31b13c[_0x2c84d8(0xf8)]({'attributes':{'class':Ho+_0x2c84d8(0xe5)}}),_0x31b13c;}}
|
|
23
|
+
const _0x4e86c9=_0x275f;(function(_0x5a2794,_0x23c12a){const _0x448981=_0x275f,_0x2913db=_0x5a2794();while(!![]){try{const _0x2a22b5=parseInt(_0x448981(0x1ab))/0x1*(parseInt(_0x448981(0x1dd))/0x2)+-parseInt(_0x448981(0x1a5))/0x3+parseInt(_0x448981(0x1d7))/0x4+parseInt(_0x448981(0x19b))/0x5*(parseInt(_0x448981(0x16b))/0x6)+-parseInt(_0x448981(0x165))/0x7*(-parseInt(_0x448981(0x19c))/0x8)+-parseInt(_0x448981(0x1bf))/0x9+parseInt(_0x448981(0x1d3))/0xa;if(_0x2a22b5===_0x23c12a)break;else _0x2913db['push'](_0x2913db['shift']());}catch(_0x2ce027){_0x2913db['push'](_0x2913db['shift']());}}}(_0x4d35,0x62dbd));import{BalloonPanelView as _0x1d98f5,ButtonView as _0x22f368,clickOutsideHandler as _0x3c3c4f,FileDialogButtonView as _0x4f2f31,IconView as _0x5bd193,View as _0x39874e}from'ckeditor5/src/ui.js';function _0x275f(_0x4ac4b0,_0x39ef2f){const _0x4d3581=_0x4d35();return _0x275f=function(_0x275f0c,_0x238442){_0x275f0c=_0x275f0c-0x160;let _0x31fa1b=_0x4d3581[_0x275f0c];return _0x31fa1b;},_0x275f(_0x4ac4b0,_0x39ef2f);}import{IconBrowseFiles as _0x266edc,IconDocument as _0xa6dda9,IconDocumentOutline as _0x5f039d,IconDropdownArrow as _0x295eb8,IconLink as _0x392b14,IconPaperClip as _0x540b31}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x422dc7}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3c7207}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x58a455}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x388cb3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x455e0a}from'./resources/aichatresourcesballoonview.js';function _0x4d35(){const _0x506fbd=['ck-ai-chat-context-controls__show-more-balloon-panel','_handleUrlSubmit','AI_CHAT_CONTEXT_URL_LABEL','_createContextButton','type','clearCurrentContextItems','removeContextItemChip','createCollection','ck-ai-chat-context-controls__balloon-button-source','_createAddContextBalloonPanelView','defaultPositions','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-controls__pending-contexts','menuitem','986500ifTKUh','128SDFAzw','updateResourceState','ck-ai-chat','AI_CHAT_CONTEXT_FILE_LABEL','find','conversation','_overflowManager','render','arrowView','1027206xFlAjx','_removeContextFromCollection','hideUrlBalloonPanel','_addContextBalloonPanelView','southArrowNorthEast','show','1kGhVKE','showUrlBalloonPanel','ck-reset_all-excluded','enabled','_setBalloonPanelContent','_setupAddContextBalloonClickOutsideHandler','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','hideAddContextBalloonPanel','removeContextItem','northArrowSouthWest','destroy','cancel','southArrowNorthWest','div','closeSourceResourceBalloon','label','populateSourceResourceBalloon','clear','_currentContextsChips','4973400kVMHRO','isReadOnly','done','southArrowNorth','isLoading','execute','_addUrlContent','content','loadSourceResources','_conversationContextsChips','set','__arrow','_createBalloonButton','_bindEventHandlers','reorganizeChips','clearConversationContextItems','_addContextToCollection','balloonView','buttonView','length','991390TARnZM','northArrowSouth','_createUrlBalloonPanelView','tooltip','1472612cVeQyb','ck-ai-chat-controls_context_show-more-button','bodyCollection','_createArrowView','element','get','369102ooExyc','_showSourceResourcesBalloon','addResourceToContext','isHidden','bind','sources','document','setTemplate','fire','addContextButtonView','_toggleAddContextBalloon','addUrlToContext','_createResourcesBalloonView','_handleAddContextButtonClick','_getLimiterElement','extendTemplate','isEnabled','hide','setAddContextOptions','submitUrl','_addContextBalloonConfig','isVisible','showSourceResourcesBalloon','AI_CHAT_CONTEXT_ADD_CONTEXT','pin','_createAddContextButtonView','refreshBalloon','ck-ai-chat-context-controls__url-balloon-panel','_hasExactlyOneSource','_createBaseBalloonPanel','_setupTemplate','197218TzXnnv','urls','withBackButton','add','_urlInputView','addContextItem','6QhRgOS','executeCustomItemCallback','addDocumentToContext','source','isOn','setConversationContext','overflowChips','searchInputVisibleFrom','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','icon','_urlBalloonPanelView','addFileToContext','setContainerElement','ck-ai-chat-context-chips-wrapper-balloon','body','current','setContextItemLoading','locale','files','isAnyResourceBalloonVisible','ck-ai-chat-context-controls','remove','customItems','ck-ai-chat-context-controls__add-context-balloon-panel','focus','_setupUrlBalloonClickOutsideHandler','_setAddContextButtonEnabled','_resourcesBalloonView','northArrowSouthEast','customItem','ck-ai-chat-controls-button','children','closest','ck-ai-chat-context-controls__balloon-button'];_0x4d35=function(){return _0x506fbd;};return _0x4d35();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4e86c9(0x16d),_0x4e86c9(0x176),_0x4e86c9(0x1e8),_0x4e86c9(0x1df),_0x4e86c9(0x1b4),_0x4e86c9(0x1c7),_0x4e86c9(0x16c)];const Ro=_0x4e86c9(0x17f),Oo=_0x4e86c9(0x199),Uo=_0x4e86c9(0x182),Lo=_0x4e86c9(0x1b2),No=_0x4e86c9(0x161),Mo=_0x4e86c9(0x18c),Ho=_0x4e86c9(0x195),jo=_0x4e86c9(0x189),Fo=_0x4e86c9(0x178),Xo=_0x4e86c9(0x1d8),yo=_0x4e86c9(0x18d),Do=_0x4e86c9(0x19e),$o=[_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1b5)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1d4)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x187)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1b8)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1c2)],_0x1d98f5[_0x4e86c9(0x197)][_0x4e86c9(0x1a9)]];export class AIChatContextPanelView extends _0x39874e{[_0x4e86c9(0x1e6)];[_0x4e86c9(0x1be)]=this[_0x4e86c9(0x194)]();[_0x4e86c9(0x1c8)]=this[_0x4e86c9(0x194)]();[_0x4e86c9(0x1a2)];[_0x4e86c9(0x1a8)];[_0x4e86c9(0x175)];[_0x4e86c9(0x169)];[_0x4e86c9(0x186)];[_0x4e86c9(0x1f1)];[_0x4e86c9(0x162)]=!0x1;[_0x4e86c9(0x1d9)];constructor(_0x7a86dd,_0x329bbd){const _0x3f48ce=_0x4e86c9;super(_0x7a86dd),this[_0x3f48ce(0x1d9)]=_0x329bbd[_0x3f48ce(0x1d9)],this[_0x3f48ce(0x1be)]=this[_0x3f48ce(0x194)](),this[_0x3f48ce(0x1c8)]=this[_0x3f48ce(0x194)](),this[_0x3f48ce(0x1e6)]=this[_0x3f48ce(0x1f6)](_0x7a86dd),this[_0x3f48ce(0x1a8)]=this[_0x3f48ce(0x196)](_0x7a86dd),this[_0x3f48ce(0x175)]=this[_0x3f48ce(0x1d5)](_0x7a86dd),this[_0x3f48ce(0x186)]=this[_0x3f48ce(0x1e9)](_0x7a86dd,_0x329bbd);const _0x3087d4={'cssClasses':{'showMoreButton':Xo,'showMoreBalloon':yo,'overflowContainer':Fo,'controlsButton':jo}};this[_0x3f48ce(0x1a2)]=new _0x58a455(_0x7a86dd,this[_0x3f48ce(0x1be)],_0x3087d4,this[_0x3f48ce(0x1d9)],this),this[_0x3f48ce(0x1f1)]={'buttonView':this[_0x3f48ce(0x1e6)],'balloonView':this[_0x3f48ce(0x1a8)],'hideMethod':this[_0x3f48ce(0x1b3)][_0x3f48ce(0x1e1)](this),'showMethod':this[_0x3f48ce(0x1b1)][_0x3f48ce(0x1e1)](this)},this[_0x3f48ce(0x164)](),this[_0x3f48ce(0x1cc)]();}[_0x4e86c9(0x1a3)](){const _0x42739c=_0x4e86c9;super[_0x42739c(0x1a3)](),this[_0x42739c(0x198)](),this[_0x42739c(0x1a2)][_0x42739c(0x177)](this[_0x42739c(0x1db)]),this[_0x42739c(0x1a2)][_0x42739c(0x1cd)]();}[_0x4e86c9(0x1b6)](){const _0x56800e=_0x4e86c9;super[_0x56800e(0x1b6)](),this[_0x56800e(0x1a2)][_0x56800e(0x1b6)](),this[_0x56800e(0x186)][_0x56800e(0x1b6)]();}[_0x4e86c9(0x16a)](_0x48fa43,_0x1ea61d){const _0xfe307=_0x4e86c9,_0x41cec1=this[_0xfe307(0x190)](_0x48fa43,_0xfe307(0x17a),!0x0,_0x1ea61d);this[_0xfe307(0x1cf)](_0x41cec1,this[_0xfe307(0x1be)]),this[_0xfe307(0x1a2)][_0xfe307(0x1cd)]();}[_0x4e86c9(0x1b4)](_0x5bfd56){const _0x366715=_0x4e86c9;this[_0x366715(0x1a6)](_0x5bfd56,this[_0x366715(0x1be)]),this[_0x366715(0x1a6)](_0x5bfd56,this[_0x366715(0x1a2)][_0x366715(0x171)]),this[_0x366715(0x1a2)][_0x366715(0x1cd)]();}[_0x4e86c9(0x17b)](_0x44e24d,_0x395d3a){const _0x4d7c3d=_0x4e86c9;let _0x493882=this[_0x4d7c3d(0x1be)][_0x4d7c3d(0x1a0)](_0x4a1f18=>_0x4a1f18['id']===_0x44e24d);_0x493882||(_0x493882=this[_0x4d7c3d(0x1a2)][_0x4d7c3d(0x171)][_0x4d7c3d(0x1a0)](_0x414f97=>_0x414f97['id']===_0x44e24d)),_0x493882&&(_0x493882[_0x4d7c3d(0x1c3)]=_0x395d3a);}[_0x4e86c9(0x170)](_0x469d21){const _0x2c958b=_0x4e86c9;this[_0x2c958b(0x1c8)][_0x2c958b(0x1bd)]();for(const _0x88cf8e of _0x469d21){const _0x5d5753=this[_0x2c958b(0x190)](_0x88cf8e,_0x2c958b(0x1a1),!0x1,!0x1);this[_0x2c958b(0x1cf)](_0x5d5753,this[_0x2c958b(0x1c8)]);}}[_0x4e86c9(0x192)](){const _0x2cfd99=_0x4e86c9;this[_0x2cfd99(0x1be)][_0x2cfd99(0x1bd)](),this[_0x2cfd99(0x1a2)][_0x2cfd99(0x1bd)]();}[_0x4e86c9(0x1ce)](){const _0x51f7de=_0x4e86c9;this[_0x51f7de(0x1c8)][_0x51f7de(0x1bd)]();}[_0x4e86c9(0x19d)](_0xf52e9d,_0x3764e9,_0xbb945a){const _0x7ced48=_0x4e86c9;this[_0x7ced48(0x186)][_0x7ced48(0x19d)](_0xf52e9d,_0x3764e9,_0xbb945a);}[_0x4e86c9(0x1b3)](){const _0x130e3f=_0x4e86c9;this[_0x130e3f(0x1e7)](!0x1);}[_0x4e86c9(0x1b1)](){const _0x134b98=_0x4e86c9;this[_0x134b98(0x1e7)](!0x0);}[_0x4e86c9(0x1a7)](){const _0x346fdd=_0x4e86c9;this[_0x346fdd(0x175)][_0x346fdd(0x1ee)](),this[_0x346fdd(0x1e6)][_0x346fdd(0x16f)]=!0x1,this[_0x346fdd(0x169)]&&this[_0x346fdd(0x169)][_0x346fdd(0x1bd)]();}[_0x4e86c9(0x1ac)](){const _0x146c79=_0x4e86c9;this[_0x146c79(0x175)][_0x146c79(0x1aa)](),this[_0x146c79(0x1e6)][_0x146c79(0x16f)]=!0x0;}[_0x4e86c9(0x1de)]({source:_0x52c191,withBackButton:_0x1da705}){const _0x5b7f48=_0x4e86c9;this[_0x5b7f48(0x186)][_0x5b7f48(0x1f3)]({'source':_0x52c191,'withBackButton':_0x1da705}),this[_0x5b7f48(0x1e6)][_0x5b7f48(0x16f)]=!0x0;}[_0x4e86c9(0x1bc)](_0x31745a,_0x57313b,_0x12dc8e,_0x2f3816){const _0x292e7f=_0x4e86c9;this[_0x292e7f(0x186)][_0x292e7f(0x1bc)](_0x31745a,_0x12dc8e,_0x2f3816);}[_0x4e86c9(0x1ba)](_0xce3d11){const _0x5ea956=_0x4e86c9;this[_0x5ea956(0x186)][_0x5ea956(0x1ba)](_0xce3d11),this[_0x5ea956(0x1e6)][_0x5ea956(0x16f)]=!0x1;}[_0x4e86c9(0x1ef)](_0x3fa3e1){const _0x30ba7f=_0x4e86c9;this[_0x30ba7f(0x1af)](this[_0x30ba7f(0x1a8)],this[_0x30ba7f(0x17c)],_0x3fa3e1),this[_0x30ba7f(0x185)](_0x3fa3e1);}[_0x4e86c9(0x185)](_0x37b322){const _0x3580aa=_0x4e86c9,_0x40d483=!_0x37b322[_0x3580aa(0x1e3)][_0x3580aa(0x1e0)]&&_0x37b322[_0x3580aa(0x1e3)][_0x3580aa(0x1ae)],_0x3f9ee5=_0x37b322[_0x3580aa(0x166)][_0x3580aa(0x1ae)],_0x2f367d=_0x37b322[_0x3580aa(0x17d)][_0x3580aa(0x1ae)],_0xf9606a=_0x37b322[_0x3580aa(0x1e2)][_0x3580aa(0x1d2)]>0x0,_0x13b95c=_0x37b322[_0x3580aa(0x181)]&&_0x37b322[_0x3580aa(0x181)][_0x3580aa(0x1d2)]>0x0;this[_0x3580aa(0x1e6)][_0x3580aa(0x1ed)]=_0x40d483||_0x3f9ee5||_0x2f367d||_0xf9606a||_0x13b95c;}[_0x4e86c9(0x164)](){const _0x1b063e=_0x4e86c9;this[_0x1b063e(0x1e4)]({'tag':_0x1b063e(0x1b9),'attributes':{'class':[Ro,_0x1b063e(0x1ad)]},'children':[{'tag':_0x1b063e(0x1b9),'attributes':{'class':Oo},'children':this[_0x1b063e(0x1be)]}]});}[_0x4e86c9(0x1cc)](){const _0x28e2f6=_0x4e86c9;this[_0x28e2f6(0x1e6)]['on'](_0x28e2f6(0x1c4),()=>{const _0x45a32d=_0x28e2f6;this[_0x45a32d(0x1ea)]();});}[_0x4e86c9(0x1f6)](_0x2f982b){const _0x18de2c=_0x4e86c9,_0x44553a=new _0x22f368(_0x2f982b);return _0x44553a[_0x18de2c(0x1c9)]({'label':_0x388cb3(_0x2f982b,_0x18de2c(0x1f4)),'class':jo+'\x20'+Lo,'icon':_0x540b31,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x44553a;}[_0x4e86c9(0x196)](_0x3e0416){const _0x43704d=_0x4e86c9;return this[_0x43704d(0x163)](_0x3e0416,Uo);}[_0x4e86c9(0x1d5)](_0x255bf7){const _0x18bc16=_0x4e86c9,_0x3df444=this[_0x18bc16(0x163)](_0x255bf7,No);return this[_0x18bc16(0x1c5)](_0x3df444,_0x255bf7),_0x3df444;}[_0x4e86c9(0x1e9)](_0xe1341b,_0x5a9033){const _0x12987f=_0x4e86c9,_0x118850={'searchInputVisibleFrom':_0x5a9033[_0x12987f(0x172)],'onBackToContext':()=>{const _0x1b1c56=_0x12987f;this[_0x1b1c56(0x1b1)](),this[_0x1b1c56(0x1a8)][_0x1b1c56(0x1f5)]({'target':this[_0x1b1c56(0x1e6)][_0x1b1c56(0x1db)],'limiter':this[_0x1b1c56(0x1eb)](),'positions':$o});},'onResourceSelected':(_0x388aa3,_0x2391d4)=>{const _0x2a9c76=_0x12987f;this[_0x2a9c76(0x1e5)](_0x2a9c76(0x1df),{'source':_0x388aa3,'resource':_0x2391d4});},'onLoadSourceResources':_0x1cd346=>{const _0x1b3db8=_0x12987f;this[_0x1b3db8(0x1e5)](_0x1b3db8(0x1c7),_0x1cd346);},'onBalloonClosed':()=>{const _0x5148f1=_0x12987f;this[_0x5148f1(0x1e6)][_0x5148f1(0x16f)]=!0x1;},'getLimiterElement':()=>this[_0x12987f(0x1eb)](),'getTargetElement':()=>this[_0x12987f(0x1e6)][_0x12987f(0x1db)]};return new _0x455e0a(_0xe1341b,_0x5a9033[_0x12987f(0x1d9)],_0x118850);}[_0x4e86c9(0x1eb)](){const _0x14f390=_0x4e86c9;return this[_0x14f390(0x1db)]?.[_0x14f390(0x18b)]('.'+Do)||document[_0x14f390(0x179)];}[_0x4e86c9(0x163)](_0xd1bda5,_0x222efa){const _0x5a6345=_0x4e86c9,_0x32b156=new _0x1d98f5(_0xd1bda5);return _0x32b156[_0x5a6345(0x1ec)]({'attributes':{'class':_0x222efa}}),this[_0x5a6345(0x1d9)][_0x5a6345(0x168)](_0x32b156),_0x32b156;}[_0x4e86c9(0x1af)](_0x28e485,_0x3c9b43,_0x14ff94){const _0x223449=_0x4e86c9;if(_0x28e485[_0x223449(0x1c6)][_0x223449(0x1bd)](),!_0x14ff94[_0x223449(0x1e3)][_0x223449(0x1e0)]&&_0x14ff94[_0x223449(0x1e3)][_0x223449(0x1ae)]){const _0x4deba2=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x388cb3(_0x3c9b43,_0x223449(0x173)),'icon':_0xa6dda9});_0x4deba2['on'](_0x223449(0x1c4),()=>{const _0x5202b7=_0x223449;this[_0x5202b7(0x1e5)](_0x5202b7(0x16d)),this[_0x5202b7(0x1b3)]();}),_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x4deba2);}if(_0x14ff94[_0x223449(0x166)][_0x223449(0x1ae)]){const _0x1b257a=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x388cb3(_0x3c9b43,_0x223449(0x18f)),'icon':_0x392b14});_0x1b257a['on'](_0x223449(0x1c4),()=>{const _0x699361=_0x223449;this[_0x699361(0x1b3)](),this[_0x699361(0x1ac)](),this[_0x699361(0x175)][_0x699361(0x1f5)]({'target':this[_0x699361(0x1e6)][_0x699361(0x1db)],'limiter':this[_0x699361(0x1eb)](),'positions':$o}),this[_0x699361(0x169)][_0x699361(0x183)]();}),_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x1b257a);}if(_0x14ff94[_0x223449(0x17d)][_0x223449(0x1ae)]){const _0x52726f=new _0x4f2f31(_0x3c9b43);_0x52726f[_0x223449(0x1c9)]({'label':_0x388cb3(_0x3c9b43,_0x223449(0x19f)),'icon':_0x266edc,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x52726f['on'](_0x223449(0x1c4),()=>{const _0x2c26da=_0x223449;this[_0x2c26da(0x1b3)]();}),_0x52726f['on'](_0x223449(0x1c1),(_0xeb7d0a,_0x46ab27)=>{const _0x22ba9a=_0x223449;this[_0x22ba9a(0x1e5)](_0x22ba9a(0x176),_0x46ab27);}),_0x52726f[_0x223449(0x1d6)]=!0x0,_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x52726f);}for(const _0x1ff33a of _0x14ff94[_0x223449(0x1e2)]){const _0x2fa8a9=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x1ff33a[_0x223449(0x1bb)],'icon':_0x1ff33a[_0x223449(0x174)]||_0x5f039d,'type':_0x223449(0x16e)});_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x2fa8a9),_0x2fa8a9['on'](_0x223449(0x1c4),()=>{const _0x4ec821=_0x223449;this[_0x4ec821(0x1b3)](),this[_0x4ec821(0x1de)]({'source':_0x1ff33a,'withBackButton':!this[_0x4ec821(0x162)]});});}for(const _0x4ebb80 of _0x14ff94[_0x223449(0x181)]||[]){const _0x39f43d=this[_0x223449(0x1cb)](_0x3c9b43,{'label':_0x4ebb80[_0x223449(0x1bb)],'icon':_0x4ebb80[_0x223449(0x174)]||_0x5f039d,'type':_0x223449(0x188)});_0x28e485[_0x223449(0x1c6)][_0x223449(0x168)](_0x39f43d),_0x39f43d['on'](_0x223449(0x1c4),()=>{const _0x1acc2f=_0x223449;this[_0x1acc2f(0x1b3)](),this[_0x1acc2f(0x1e5)](_0x1acc2f(0x16c),_0x4ebb80);});}this[_0x223449(0x162)]=0x1===_0x28e485[_0x223449(0x1c6)][_0x223449(0x1d2)],this[_0x223449(0x169)][_0x223449(0x167)]=!this[_0x223449(0x162)];}[_0x4e86c9(0x1c5)](_0x2c75e0,_0x556ca8){const _0x48d8cc=_0x4e86c9;this[_0x48d8cc(0x169)]=new _0x3c7207(_0x556ca8),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x1f0),(_0x5202b2,_0x102e1b)=>{const _0x37c6bd=_0x48d8cc;this[_0x37c6bd(0x18e)](_0x102e1b);}),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x1b7),()=>{const _0x236850=_0x48d8cc;this[_0x236850(0x1a7)](),this[_0x236850(0x162)]||(this[_0x236850(0x1b1)](),this[_0x236850(0x1a8)][_0x236850(0x1f5)]({'target':this[_0x236850(0x1e6)][_0x236850(0x1db)],'limiter':this[_0x236850(0x1eb)](),'positions':$o}));}),this[_0x48d8cc(0x169)]['on'](_0x48d8cc(0x160),()=>{const _0x35c7b9=_0x48d8cc;this[_0x35c7b9(0x175)][_0x35c7b9(0x1f2)]&&this[_0x35c7b9(0x175)][_0x35c7b9(0x1f5)]({'target':this[_0x35c7b9(0x1e6)][_0x35c7b9(0x1db)],'limiter':this[_0x35c7b9(0x1eb)](),'positions':$o});}),_0x2c75e0[_0x48d8cc(0x1c6)][_0x48d8cc(0x168)](this[_0x48d8cc(0x169)]);}[_0x4e86c9(0x1cb)](_0x1b114e,_0x3ab9cc){const _0x10e970=_0x4e86c9,_0x36eb8f=_0x10e970(0x16e)===_0x3ab9cc[_0x10e970(0x191)]?new SourcesBalloonButtonView(_0x1b114e):new _0x22f368(_0x1b114e);return _0x36eb8f[_0x10e970(0x1c9)]({'label':_0x3ab9cc[_0x10e970(0x1bb)],'icon':_0x3ab9cc[_0x10e970(0x174)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x36eb8f;}[_0x4e86c9(0x198)](){const _0x58768d=_0x4e86c9;this[_0x58768d(0x1b0)](),this[_0x58768d(0x184)]();}[_0x4e86c9(0x184)](){const _0x49f0ba=_0x4e86c9;_0x3c3c4f({'emitter':this[_0x49f0ba(0x175)],'contextElements':[this[_0x49f0ba(0x175)][_0x49f0ba(0x1db)]],'callback':()=>{const _0x1e7fe4=_0x49f0ba;this[_0x1e7fe4(0x1a7)]();},'activator':()=>this[_0x49f0ba(0x175)][_0x49f0ba(0x1f2)]});}[_0x4e86c9(0x1e7)](_0x117eb9){const _0x2e53d1=_0x4e86c9,_0x18435a=this[_0x2e53d1(0x1f1)];_0x18435a[_0x2e53d1(0x1d1)][_0x2e53d1(0x16f)]=_0x117eb9,_0x117eb9?_0x18435a[_0x2e53d1(0x1d0)][_0x2e53d1(0x1aa)]():_0x18435a[_0x2e53d1(0x1d0)][_0x2e53d1(0x1ee)]();}[_0x4e86c9(0x1b0)](){const _0x32fb63=_0x4e86c9,{balloonView:_0x1e3ef5,buttonView:_0x3b501c,hideMethod:_0x3e1efb}=this[_0x32fb63(0x1f1)];_0x3c3c4f({'emitter':_0x1e3ef5,'contextElements':[_0x1e3ef5[_0x32fb63(0x1db)],_0x3b501c[_0x32fb63(0x1db)]],'callback':()=>{_0x3e1efb();},'activator':()=>_0x3b501c[_0x32fb63(0x16f)]&&!this[_0x32fb63(0x175)][_0x32fb63(0x1f2)]&&!this[_0x32fb63(0x186)][_0x32fb63(0x17e)]()});}[_0x4e86c9(0x190)](_0x478310,_0x175e43,_0x217bbf=!0x1,_0x3aa63d=!0x1){const _0x140975=_0x4e86c9,_0x192c5a=_0x140975(0x1a1)===_0x175e43||!0x0===_0x478310[_0x140975(0x1c0)],_0x2f3cae=new _0x422dc7(this[_0x140975(0x17c)],_0x478310,_0x192c5a,_0x217bbf,_0x3aa63d);return _0x192c5a||_0x2f3cae['on'](_0x140975(0x193),()=>{const _0x34fddc=_0x140975;this[_0x34fddc(0x1e5)](_0x34fddc(0x1b4),_0x2f3cae['id']);}),_0x2f3cae;}[_0x4e86c9(0x1cf)](_0x5d0908,_0x58b798){const _0x2d214a=_0x4e86c9;_0x58b798[_0x2d214a(0x168)](_0x5d0908,0x0);}[_0x4e86c9(0x1a6)](_0x5d6ea2,_0x32f0a1){const _0x14f6ad=_0x4e86c9,_0x473aea=_0x32f0a1[_0x14f6ad(0x1a0)](_0x50e798=>_0x50e798['id']===_0x5d6ea2);_0x473aea&&_0x32f0a1[_0x14f6ad(0x180)](_0x473aea);}[_0x4e86c9(0x1ea)](){const _0x50c1ac=_0x4e86c9;this[_0x50c1ac(0x1e6)][_0x50c1ac(0x16f)]?this[_0x50c1ac(0x1b3)]():(this[_0x50c1ac(0x1b1)](),this[_0x50c1ac(0x1a8)][_0x50c1ac(0x1f5)]({'target':this[_0x50c1ac(0x1e6)][_0x50c1ac(0x1db)],'limiter':this[_0x50c1ac(0x1eb)](),'positions':$o}),this[_0x50c1ac(0x162)]&&this[_0x50c1ac(0x1a8)][_0x50c1ac(0x1c6)][_0x50c1ac(0x1dc)](0x0)?.[_0x50c1ac(0x1e5)](_0x50c1ac(0x1c4)));}[_0x4e86c9(0x18e)](_0x2de80b){const _0x15ea24=_0x4e86c9;this[_0x15ea24(0x169)][_0x15ea24(0x1bd)](),this[_0x15ea24(0x1a7)](),this[_0x15ea24(0x1e5)](_0x15ea24(0x1e8),_0x2de80b);}}export class SourcesBalloonButtonView extends _0x22f368{[_0x4e86c9(0x1a4)];constructor(_0x3bc324){const _0x5696a9=_0x4e86c9;super(_0x3bc324),this[_0x5696a9(0x1c9)]({'withText':!0x0,'role':_0x5696a9(0x19a)}),this[_0x5696a9(0x1a4)]=this[_0x5696a9(0x1da)](),this[_0x5696a9(0x1ec)]({'attributes':{'class':[Ho]}});}[_0x4e86c9(0x1a3)](){const _0xae0e87=_0x4e86c9;super[_0xae0e87(0x1a3)](),this[_0xae0e87(0x18a)][_0xae0e87(0x168)](this[_0xae0e87(0x1a4)]);}[_0x4e86c9(0x1da)](){const _0x452c1c=_0x4e86c9,_0xffcec=new _0x5bd193();return _0xffcec[_0x452c1c(0x1c6)]=_0x295eb8,_0xffcec[_0x452c1c(0x1ec)]({'attributes':{'class':Ho+_0x452c1c(0x1ca)}}),_0xffcec;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16fe4d=_0x53e0;(function(_0x5a7d26,_0x278787){const _0x54a786=_0x53e0,_0x4874bb=_0x5a7d26();while(!![]){try{const _0x35bd14=parseInt(_0x54a786(0x101))/0x1+-parseInt(_0x54a786(0xff))/0x2*(-parseInt(_0x54a786(0x111))/0x3)+parseInt(_0x54a786(0x107))/0x4*(-parseInt(_0x54a786(0x10a))/0x5)+-parseInt(_0x54a786(0x10f))/0x6*(parseInt(_0x54a786(0x102))/0x7)+parseInt(_0x54a786(0x115))/0x8+-parseInt(_0x54a786(0x108))/0x9*(-parseInt(_0x54a786(0x10b))/0xa)+parseInt(_0x54a786(0x109))/0xb*(parseInt(_0x54a786(0x11b))/0xc);if(_0x35bd14===_0x278787)break;else _0x4874bb['push'](_0x4874bb['shift']());}catch(_0x4f4b7f){_0x4874bb['push'](_0x4874bb['shift']());}}}(_0x2da8,0xcd854));function _0x53e0(_0x2ca4a1,_0x2254c8){const _0x2da86f=_0x2da8();return _0x53e0=function(_0x53e0ae,_0xe6cada){_0x53e0ae=_0x53e0ae-0xfd;let _0x10240f=_0x2da86f[_0x53e0ae];return _0x10240f;},_0x53e0(_0x2ca4a1,_0x2254c8);}import{ButtonView as _0x2b71d6,View as _0x33eede}from'ckeditor5/src/ui.js';import{IconStop as _0x188743}from'ckeditor5/src/icons.js';import{getTranslation as _0x1cbdac}from'../../../aicore/utils/common-translations.js';function _0x2da8(){const _0x3c54ec=['ck-ai-chat-controls-loader-wrapper','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','4drGwGq','3186ZsVAKF','242bDWheC','2236790etuiSx','26630wTKgIu','ck-reset_all','AI_CHAT_IS_WRITING','AI_CHAT_STOP_GENERATING','306444lPebcY','_loaderView','3dbGtfu','locale','ck-ai-chat-controls-loader-icon-dot','_createLoaderView','2073744oCACxY','execute','_cancelButtonView','_createCancelButtonView','abortPromptStream','ck-ai-chat-controls-loader-icon','10308zSRLBg','fire','set','538066NgIfev','ck-ai-chat-controls-loader','565429LrlZwO','105eMAcDH','div'];_0x2da8=function(){return _0x3c54ec;};return _0x2da8();}export class AIChatControlsLoaderView extends _0x33eede{[_0x16fe4d(0x117)];[_0x16fe4d(0x110)];constructor(_0x11b72f){const _0x29173a=_0x16fe4d;super(_0x11b72f),this[_0x29173a(0x117)]=this[_0x29173a(0x118)](),this[_0x29173a(0x110)]=this[_0x29173a(0x114)](),this[_0x29173a(0x105)]({'tag':_0x29173a(0x103),'attributes':{'class':['ck',_0x29173a(0x104),_0x29173a(0x10c)]},'children':[this[_0x29173a(0x110)],this[_0x29173a(0x117)]]});}[_0x16fe4d(0x118)](){const _0x57d823=_0x16fe4d,_0x105848=new _0x2b71d6(this[_0x57d823(0x112)]);return _0x105848[_0x57d823(0xfe)]({'label':_0x1cbdac(this[_0x57d823(0x112)],_0x57d823(0x10e)),'withText':!0x0,'class':_0x57d823(0x106),'icon':_0x188743}),_0x105848['on'](_0x57d823(0x116),()=>{const _0x1af040=_0x57d823;this[_0x1af040(0xfd)](_0x1af040(0x119));}),_0x105848;}[_0x16fe4d(0x114)](){const _0x2d9d66=_0x16fe4d,_0x414539=new _0x33eede(this[_0x2d9d66(0x112)]);return _0x414539[_0x2d9d66(0x105)]({'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x100)]},'children':[{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x11a)]},'children':[{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}},{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}},{'tag':_0x2d9d66(0x103),'attributes':{'class':[_0x2d9d66(0x113)]}}]},{'text':_0x1cbdac(this[_0x2d9d66(0x112)],_0x2d9d66(0x10d))}]}),_0x414539;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x52bd13=_0x3251;(function(_0x55a2a2,_0x53bc32){const _0xb633ec=_0x3251,_0x2136b9=_0x55a2a2();while(!![]){try{const _0x296ddb=-parseInt(_0xb633ec(0x1a4))/0x1+parseInt(_0xb633ec(0x1b9))/0x2+-parseInt(_0xb633ec(0x19b))/0x3*(-parseInt(_0xb633ec(0x1d3))/0x4)+-parseInt(_0xb633ec(0x1b0))/0x5+parseInt(_0xb633ec(0x1be))/0x6+-parseInt(_0xb633ec(0x188))/0x7+parseInt(_0xb633ec(0x1e4))/0x8;if(_0x296ddb===_0x53bc32)break;else _0x2136b9['push'](_0x2136b9['shift']());}catch(_0x343176){_0x2136b9['push'](_0x2136b9['shift']());}}}(_0x47a5,0xa45b6));import{Collection as _0x204ec0}from'ckeditor5/src/utils.js';function _0x3251(_0x1dea86,_0x219e19){const _0x47a509=_0x47a5();return _0x3251=function(_0x325144,_0x93403d){_0x325144=_0x325144-0x187;let _0x3e15bc=_0x47a509[_0x325144];return _0x3e15bc;},_0x3251(_0x1dea86,_0x219e19);}import{IconAI as _0x55bb13,IconBulb as _0x5e5d3e,IconWeb as _0x18d4c2}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3a931b,ButtonLabelView as _0x358158,ButtonView as _0x251505,createDropdown as _0x4e861f,IconView as _0x25a46e,UIModel as _0x3fab4d,View as _0x1a740a}from'ckeditor5/src/ui.js';import{getTranslation as _0x90d7ca}from'../../../aicore/utils/common-translations.js';const Wo=_0x52bd13(0x195),jo=_0x52bd13(0x1b1),Go=_0x52bd13(0x1b4),Yo=_0x52bd13(0x191),qo=_0x52bd13(0x1d0),zo=_0x52bd13(0x193),Jo=_0x52bd13(0x1c9),Ko=_0x52bd13(0x1b8),Qo='n';export class AIChatPromptCapabilitiesView extends _0x1a740a{[_0x52bd13(0x1ca)];[_0x52bd13(0x1c4)];[_0x52bd13(0x1e6)];[_0x52bd13(0x1de)];[_0x52bd13(0x18b)];[_0x52bd13(0x1a1)];constructor(_0x377758){const _0x46623c=_0x52bd13;super(_0x377758),this[_0x46623c(0x1e3)](_0x46623c(0x1a2),!0x1),this[_0x46623c(0x1e3)](_0x46623c(0x1c3),!0x1),this[_0x46623c(0x1e3)](_0x46623c(0x1cb),_0x46623c(0x1d9)),this[_0x46623c(0x1e3)](_0x46623c(0x1a3),!0x0),this[_0x46623c(0x1e3)](_0x46623c(0x1e5),null),this[_0x46623c(0x1e3)](_0x46623c(0x1e2),null),this[_0x46623c(0x1de)]=this[_0x46623c(0x18f)](),this[_0x46623c(0x1a1)]=this[_0x46623c(0x18e)](),this[_0x46623c(0x1ca)]=this[_0x46623c(0x187)](),this[_0x46623c(0x1c4)]=this[_0x46623c(0x19e)](),this[_0x46623c(0x1e6)]=this[_0x46623c(0x1c2)](),this[_0x46623c(0x1de)][_0x46623c(0x1cd)][_0x46623c(0x1c8)](_0x46623c(0x1b6))['to'](this,_0x46623c(0x1cb),_0x3c643f=>_0x46623c(0x1d9)===_0x3c643f),this[_0x46623c(0x1de)][_0x46623c(0x1cd)][_0x46623c(0x1c8)](_0x46623c(0x1cf))['to'](this,_0x46623c(0x1a3),_0x5d33b0=>_0x5d33b0?this[_0x46623c(0x1de)][_0x46623c(0x1cd)][_0x46623c(0x1dc)]:_0x90d7ca(this[_0x46623c(0x199)],_0x46623c(0x19f))),this[_0x46623c(0x1de)][_0x46623c(0x1c8)](_0x46623c(0x1db))['to'](this,_0x46623c(0x1a3),_0x86ec6=>_0x86ec6),this[_0x46623c(0x1ca)][_0x46623c(0x1c8)](_0x46623c(0x1bf))['to'](this,_0x46623c(0x1a2),_0x21ea45=>_0x21ea45),this[_0x46623c(0x1ca)][_0x46623c(0x1c8)](_0x46623c(0x1cf))['to'](this,_0x46623c(0x1a2),_0x26bcaf=>_0x90d7ca(this[_0x46623c(0x199)],_0x26bcaf?_0x46623c(0x1aa):_0x46623c(0x19a))),this[_0x46623c(0x1c4)][_0x46623c(0x1c8)](_0x46623c(0x1bf))['to'](this,_0x46623c(0x1c3),_0x2be16d=>_0x2be16d),this[_0x46623c(0x1c4)][_0x46623c(0x1c8)](_0x46623c(0x1cf))['to'](this,_0x46623c(0x1c3),_0x140b0f=>_0x90d7ca(this[_0x46623c(0x199)],_0x140b0f?_0x46623c(0x1c0):_0x46623c(0x189))),this[_0x46623c(0x194)]({'tag':_0x46623c(0x1d2),'attributes':{'class':[Wo]},'children':[this[_0x46623c(0x1de)],this[_0x46623c(0x1a1)],this[_0x46623c(0x1ca)],this[_0x46623c(0x1c4)],this[_0x46623c(0x1e6)]]}),this[_0x46623c(0x18b)]=new _0x204ec0(),_0x3a931b(this[_0x46623c(0x1de)],this[_0x46623c(0x18b)]);}[_0x52bd13(0x1ac)](_0x5e4c5e,_0x4aba21){const _0x96811a=_0x52bd13;if(_0x4aba21)this[_0x96811a(0x1e3)](_0x96811a(0x1cb),_0x96811a(0x1da));else{const _0x175d65=0x1===_0x5e4c5e[_0x96811a(0x1e0)];this[_0x96811a(0x1e3)](_0x96811a(0x1cb),_0x175d65?_0x96811a(0x1ab):_0x96811a(0x1d9));}if(this[_0x96811a(0x18b)][_0x96811a(0x19c)](),_0x5e4c5e?.[_0x96811a(0x1e0)])for(const _0x2866c3 of _0x5e4c5e){const _0x282bf9=new _0x3fab4d({'label':_0x2866c3[_0x96811a(0x1ab)],'withText':!0x0,'role':_0x96811a(0x1d6),'id':_0x2866c3['id'],'model':_0x2866c3});_0x282bf9[_0x96811a(0x1c8)](_0x96811a(0x1bf))['to'](this,_0x96811a(0x1e5),_0x86429d=>_0x86429d===_0x2866c3['id']),this[_0x96811a(0x18b)][_0x96811a(0x1c5)]({'type':_0x96811a(0x1a6),'model':_0x282bf9,'labelView':new ko(this[_0x96811a(0x199)],_0x2866c3)});}}[_0x52bd13(0x1a7)](_0x46c3a0){const _0x9349e9=_0x52bd13;this[_0x9349e9(0x1e3)](_0x9349e9(0x1a2),_0x46c3a0);}[_0x52bd13(0x1b7)](_0x459a78){const _0x4212f2=_0x52bd13;this[_0x4212f2(0x1e3)](_0x4212f2(0x1c3),_0x459a78);}[_0x52bd13(0x1bc)](_0x1d1614){const _0x45e0f9=_0x52bd13;if(!_0x1d1614)return;this[_0x45e0f9(0x1e5)]=_0x1d1614['id'],this[_0x45e0f9(0x1e2)]=_0x1d1614[_0x45e0f9(0x1ab)]||_0x1d1614['id'],this[_0x45e0f9(0x1de)][_0x45e0f9(0x1cd)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1dc),_0x1d1614[_0x45e0f9(0x1ab)]),this[_0x45e0f9(0x1de)][_0x45e0f9(0x1cd)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1cf),_0x1d1614[_0x45e0f9(0x1ab)]);const _0x447ea5=_0x1d1614[_0x45e0f9(0x1ba)][_0x45e0f9(0x18a)]?.[_0x45e0f9(0x18c)]??!0x1;this[_0x45e0f9(0x1e3)](_0x45e0f9(0x1a2),!0x1),this[_0x45e0f9(0x1ca)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1bf),!0x1),this[_0x45e0f9(0x1ca)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1db),_0x447ea5),this[_0x45e0f9(0x1ca)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1b6),_0x447ea5);const _0x4fbfd9=_0x1d1614[_0x45e0f9(0x1ba)][_0x45e0f9(0x1bd)]?.[_0x45e0f9(0x18c)]??!0x1;this[_0x45e0f9(0x1e3)](_0x45e0f9(0x1c3),!0x1),this[_0x45e0f9(0x1c4)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1bf),!0x1),this[_0x45e0f9(0x1c4)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1db),_0x4fbfd9),this[_0x45e0f9(0x1c4)][_0x45e0f9(0x1e3)](_0x45e0f9(0x1b6),_0x4fbfd9);}[_0x52bd13(0x1d5)](){const _0x5e912d=_0x52bd13;this[_0x5e912d(0x1e3)](_0x5e912d(0x1a3),!0x0);}[_0x52bd13(0x1c1)](_0x52d2c0){const _0x4bd16d=_0x52bd13;this[_0x4bd16d(0x1e3)](_0x4bd16d(0x1a3),!0x1),_0x52d2c0&&this[_0x4bd16d(0x1e3)](_0x4bd16d(0x1cb),_0x4bd16d(0x1da));}[_0x52bd13(0x187)](){const _0x433996=_0x52bd13,_0x359785=new _0x251505();return _0x359785[_0x433996(0x1e3)]({'label':_0x90d7ca(this[_0x433996(0x199)],_0x433996(0x1cc)),'icon':_0x18d4c2,'class':jo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x359785['on'](_0x433996(0x1a0),()=>{const _0xb72733=_0x433996;this[_0xb72733(0x19d)](_0xb72733(0x1a5));}),_0x359785;}[_0x52bd13(0x19e)](){const _0x5474ad=_0x52bd13,_0x4574a9=new _0x251505();return _0x4574a9[_0x5474ad(0x1e3)]({'label':_0x90d7ca(this[_0x5474ad(0x199)],_0x5474ad(0x1d1)),'icon':_0x5e5d3e,'class':jo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x4574a9['on'](_0x5474ad(0x1a0),()=>{const _0x2346fd=_0x5474ad;this[_0x2346fd(0x19d)](_0x2346fd(0x1bb));}),_0x4574a9;}[_0x52bd13(0x1c2)](){const _0x31b381=_0x52bd13,_0x1dbad0=new _0x251505();return _0x1dbad0[_0x31b381(0x1e3)]({'label':_0x90d7ca(this[_0x31b381(0x199)],_0x31b381(0x1d7)),'icon':_0x55bb13,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0x90d7ca(this[_0x31b381(0x199)],_0x31b381(0x1d7)),'tooltipPosition':Qo}),_0x1dbad0[_0x31b381(0x1dd)]({'attributes':{'class':[Go]}}),_0x1dbad0['on'](_0x31b381(0x1a0),()=>{const _0x5ab2f5=_0x31b381;console[_0x5ab2f5(0x1a8)](_0x5ab2f5(0x1ae)),alert(_0x5ab2f5(0x1ae));}),_0x1dbad0;}[_0x52bd13(0x18f)](){const _0x54197f=_0x52bd13,_0x52fc22=_0x4e861f(this[_0x54197f(0x199)]);return _0x52fc22[_0x54197f(0x1e3)]({'panelPosition':'ne','class':[qo]}),_0x52fc22[_0x54197f(0x1cd)][_0x54197f(0x1e3)]({'label':_0x90d7ca(this[_0x54197f(0x199)],_0x54197f(0x1c6)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Qo,'class':Yo}),this[_0x54197f(0x1e1)](_0x52fc22,_0x54197f(0x1a0),_0x1e6344=>{const _0x3bdaf6=_0x54197f;this[_0x3bdaf6(0x19d)](_0x3bdaf6(0x198),_0x1e6344[_0x3bdaf6(0x197)][_0x3bdaf6(0x196)]);}),_0x52fc22;}[_0x52bd13(0x18e)](){const _0x145bff=_0x52bd13,_0x6d8f6f=new _o(this[_0x145bff(0x199)]);return _0x6d8f6f[_0x145bff(0x1c8)](_0x145bff(0x1a9))['to'](this,_0x145bff(0x1e2),_0xc3bd0d=>_0xc3bd0d??''),_0x6d8f6f[_0x145bff(0x1c8)](_0x145bff(0x1b6))['to'](this,_0x145bff(0x1cb),_0x96a5aa=>_0x145bff(0x1ab)===_0x96a5aa),_0x6d8f6f;}}function _0x47a5(){const _0x425e31=['AI_CHAT_DISABLE_WEB_SEARCH','name','setModelList','ck-button__label','Commands\x20are\x20not\x20implemented\x20yet.','description','3211225SiXIrX','ck-ai-chat-controls-button','style','AI_CHAT_CAPABILITIES_YES','ck-ai-chat-controls-button--commands','span','isVisible','setReasoning','ck-ai-chat-controls__model-selection__item-capabilities','720632yRKubH','capabilities','toggleReasoning','setModel','reasoning','3362532ewzQrc','isOn','AI_CHAT_DISABLE_REASONING','disableModelSelector','_createCommandsButton','reasoningActive','_reasoningButton','add','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','content','bind','ck-ai-chat-controls__model-selection__item-description','_webSearchButton','modelDisplayMode','AI_CHAT_SEARCH_WEB','buttonView','ck-ai-chat-controls__model-name','tooltip','ck-ai-chat-controls__model-selection','AI_CHAT_REASONING','div','332xzYOlL','_getCapabilityParts','enableModelSelector','menuitemradio','AI_CHAT_COMMANDS','bindTemplate','selector','hidden','isEnabled','label','extendTemplate','_modelSelectionDropdown','ck-hidden','length','listenTo','activeModelName','set','19358920Qtvefo','activeModelId','_commandsButton','_createWebSearchButton','5783204fFOfiB','AI_CHAT_ENABLE_REASONING','webSearch','_modelSelectionDropdownItems','enabled','createCollection','_createModelNameView','_createModelSelectionDropdown','addMany','ck-ai-button-tertiary','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-selection__item-name','setTemplate','ck-ai-chat__prompt-capabilities','model','source','selectModel','locale','AI_CHAT_ENABLE_WEB_SEARCH','5091eUUBOM','clear','fire','_createReasoningButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','execute','_modelNameView','webSearchActive','modelSelectorEnabled','1339831WEBQft','toggleWebSearch','button','setWebSearch','log','text'];_0x47a5=function(){return _0x425e31;};return _0x47a5();}class ko extends _0x358158{constructor(_0x54596c,_0x3e6556){const _0x2fdfd8=_0x52bd13;super();const _0x5f59e4=this[_0x2fdfd8(0x1d8)],_0x4442de=this[_0x2fdfd8(0x18d)]();this[_0x2fdfd8(0x194)]({'tag':_0x2fdfd8(0x1d2),'attributes':{'class':['ck',_0x2fdfd8(0x1ad)],'style':_0x5f59e4['to'](_0x2fdfd8(0x1b2)),'id':_0x5f59e4['to']('id')},'children':[{'tag':_0x2fdfd8(0x1d2),'attributes':{'class':[zo]},'children':[{'text':_0x5f59e4['to'](_0x2fdfd8(0x1a9))}]},{'tag':_0x2fdfd8(0x1d2),'attributes':{'class':[Jo]},'children':[{'tag':_0x2fdfd8(0x1b5),'children':[{'text':_0x3e6556[_0x2fdfd8(0x1af)]}]}]},{'tag':_0x2fdfd8(0x1d2),'attributes':{'class':[Ko]},'children':_0x4442de}]}),_0x4442de[_0x2fdfd8(0x190)](this[_0x2fdfd8(0x1d4)](_0x54596c,_0x18d4c2,_0x2fdfd8(0x1cc),_0x3e6556[_0x2fdfd8(0x1ba)][_0x2fdfd8(0x18a)]?.[_0x2fdfd8(0x18c)]??!0x1)),_0x4442de[_0x2fdfd8(0x190)](this[_0x2fdfd8(0x1d4)](_0x54596c,_0x5e5d3e,_0x2fdfd8(0x1d1),_0x3e6556[_0x2fdfd8(0x1ba)][_0x2fdfd8(0x1bd)]?.[_0x2fdfd8(0x18c)]??!0x1));}[_0x52bd13(0x1d4)](_0x406669,_0x2d50ae,_0x393547,_0x2e61a1){const _0x107d02=_0x52bd13,_0x5ca77b=new _0x25a46e();_0x5ca77b[_0x107d02(0x1c7)]=_0x2d50ae;const _0x409690=new _0x1a740a(_0x406669);_0x409690[_0x107d02(0x194)]({'tag':_0x107d02(0x1b5),'children':[{'text':_0x90d7ca(_0x406669,_0x393547)+':\x20'}]});const _0x5cb964=new _0x1a740a(_0x406669);return _0x5cb964[_0x107d02(0x194)]({'tag':_0x107d02(0x1b5),'children':[{'text':_0x90d7ca(_0x406669,_0x2e61a1?_0x107d02(0x1b3):_0x107d02(0x192))}]}),[_0x5ca77b,_0x409690,_0x5cb964];}}class _o extends _0x1a740a{constructor(_0x586933){const _0x28f12c=_0x52bd13;super(_0x586933),this[_0x28f12c(0x1e3)](_0x28f12c(0x1a9),void 0x0),this[_0x28f12c(0x1e3)](_0x28f12c(0x1b6),!0x0);const _0x1393bc=this[_0x28f12c(0x1d8)];this[_0x28f12c(0x194)]({'tag':_0x28f12c(0x1b5),'attributes':{'class':['ck',_0x28f12c(0x1ce),_0x1393bc['if'](_0x28f12c(0x1b6),_0x28f12c(0x1df),_0x5f34b0=>!_0x5f34b0)]},'children':[{'text':_0x1393bc['to'](_0x28f12c(0x1a9))}]});}}
|
|
23
|
+
const _0x377fb1=_0x1d49;(function(_0x206813,_0x250008){const _0x3427a5=_0x1d49,_0x341020=_0x206813();while(!![]){try{const _0xe2ffac=parseInt(_0x3427a5(0x11b))/0x1*(parseInt(_0x3427a5(0x141))/0x2)+parseInt(_0x3427a5(0x14f))/0x3+parseInt(_0x3427a5(0x119))/0x4*(parseInt(_0x3427a5(0x10c))/0x5)+-parseInt(_0x3427a5(0x108))/0x6*(parseInt(_0x3427a5(0xfa))/0x7)+parseInt(_0x3427a5(0x114))/0x8*(-parseInt(_0x3427a5(0x149))/0x9)+parseInt(_0x3427a5(0x14d))/0xa*(-parseInt(_0x3427a5(0x10a))/0xb)+parseInt(_0x3427a5(0x145))/0xc;if(_0xe2ffac===_0x250008)break;else _0x341020['push'](_0x341020['shift']());}catch(_0x4ab716){_0x341020['push'](_0x341020['shift']());}}}(_0x2e01,0xf10f4));import{Collection as _0x3577e4}from'ckeditor5/src/utils.js';import{IconAI as _0x556240,IconBulb as _0x6aebd6,IconWeb as _0xeaa065}from'@ckeditor/ckeditor5-icons';function _0x2e01(){const _0x5a6969=['ck-ai-chat-controls-button--commands','activeModelName','_getCapabilityParts','enableModelSelector','enabled','_createCommandsButton','AI_CHAT_DISABLE_WEB_SEARCH','addMany','tooltip','ck-ai-chat-controls__model-selection__item-description','_createModelSelectionDropdown','disableModelSelector','text','name','AI_CHAT_ENABLE_WEB_SEARCH','_createReasoningButton','ck-ai-chat-controls__model-name','reasoningActive','button','model','add','isOn','ck-ai-chat-controls-button','3380pZPmKr','selectModel','_createModelNameView','_modelNameView','33261228SLbGcI','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','578682cjEaat','fire','activeModelId','AI_CHAT_CAPABILITIES_YES','60VfGpvj','bind','964107siVejA','extendTemplate','reasoning','webSearchActive','capabilities','AI_CHAT_DISABLE_REASONING','bindTemplate','execute','createCollection','span','AI_CHAT_COMMANDS','description','ck-ai-button-tertiary','toggleWebSearch','length','7yJlThf','clear','AI_CHAT_CAPABILITIES_NO','modelSelectorEnabled','content','ck-ai-chat-controls__model-selection__item-capabilities','setWebSearch','setModelList','_modelSelectionDropdownItems','ck-ai-chat-controls__model-selection','style','modelDisplayMode','source','menuitemradio','4496586TpURWl','Commands\x20are\x20not\x20implemented\x20yet.','2511674DrqzNt','_reasoningButton','305JRrAWo','setModel','webSearch','setReasoning','div','ck-button__label','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_SEARCH_WEB','96TyYiEi','isVisible','log','ck-ai-chat__prompt-capabilities','locale','37972dFrlRy','ck-hidden','122UBGZbg','hidden','_webSearchButton','toggleReasoning','label','setTemplate','buttonView','ck-ai-chat-controls__model-selection__item-name','listenTo','_modelSelectionDropdown','isEnabled','set','selector','AI_CHAT_REASONING','_commandsButton'];_0x2e01=function(){return _0x5a6969;};return _0x2e01();}import{addListToDropdown as _0x81dc69,ButtonLabelView as _0x367206,ButtonView as _0x223acb,createDropdown as _0x53be2c,IconView as _0x47f766,UIModel as _0x3216e1,View as _0xb3cbf}from'ckeditor5/src/ui.js';import{getTranslation as _0xc0153e}from'../../../aicore/utils/common-translations.js';const qo=_0x377fb1(0x117),jo=_0x377fb1(0x140),zo=_0x377fb1(0x12a),Jo=_0x377fb1(0xf7),Ko=_0x377fb1(0x103),Qo=_0x377fb1(0x122),Zo=_0x377fb1(0x133),tl=_0x377fb1(0xff),el='n';export class AIChatPromptCapabilitiesView extends _0xb3cbf{[_0x377fb1(0x11d)];[_0x377fb1(0x10b)];[_0x377fb1(0x129)];[_0x377fb1(0x124)];[_0x377fb1(0x102)];[_0x377fb1(0x144)];constructor(_0x2750bc){const _0x879ca6=_0x377fb1;super(_0x2750bc),this[_0x879ca6(0x126)](_0x879ca6(0x152),!0x1),this[_0x879ca6(0x126)](_0x879ca6(0x13b),!0x1),this[_0x879ca6(0x126)](_0x879ca6(0x105),_0x879ca6(0x127)),this[_0x879ca6(0x126)](_0x879ca6(0xfd),!0x0),this[_0x879ca6(0x126)](_0x879ca6(0x14b),null),this[_0x879ca6(0x126)](_0x879ca6(0x12b),null),this[_0x879ca6(0x124)]=this[_0x879ca6(0x134)](),this[_0x879ca6(0x144)]=this[_0x879ca6(0x143)](),this[_0x879ca6(0x11d)]=this[_0x879ca6(0x146)](),this[_0x879ca6(0x10b)]=this[_0x879ca6(0x139)](),this[_0x879ca6(0x129)]=this[_0x879ca6(0x12f)](),this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x14e)](_0x879ca6(0x115))['to'](this,_0x879ca6(0x105),_0x2426de=>_0x879ca6(0x127)===_0x2426de),this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0xfd),_0x5b929c=>_0x5b929c?this[_0x879ca6(0x124)][_0x879ca6(0x121)][_0x879ca6(0x11f)]:_0xc0153e(this[_0x879ca6(0x118)],_0x879ca6(0x112))),this[_0x879ca6(0x124)][_0x879ca6(0x14e)](_0x879ca6(0x125))['to'](this,_0x879ca6(0xfd),_0x556d89=>_0x556d89),this[_0x879ca6(0x11d)][_0x879ca6(0x14e)](_0x879ca6(0x13f))['to'](this,_0x879ca6(0x152),_0x36e386=>_0x36e386),this[_0x879ca6(0x11d)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0x152),_0x2177f5=>_0xc0153e(this[_0x879ca6(0x118)],_0x2177f5?_0x879ca6(0x130):_0x879ca6(0x138))),this[_0x879ca6(0x10b)][_0x879ca6(0x14e)](_0x879ca6(0x13f))['to'](this,_0x879ca6(0x13b),_0x4f38b4=>_0x4f38b4),this[_0x879ca6(0x10b)][_0x879ca6(0x14e)](_0x879ca6(0x132))['to'](this,_0x879ca6(0x13b),_0x5c0e5c=>_0xc0153e(this[_0x879ca6(0x118)],_0x5c0e5c?_0x879ca6(0x154):_0x879ca6(0x148))),this[_0x879ca6(0x120)]({'tag':_0x879ca6(0x110),'attributes':{'class':[qo]},'children':[this[_0x879ca6(0x124)],this[_0x879ca6(0x144)],this[_0x879ca6(0x11d)],this[_0x879ca6(0x10b)],this[_0x879ca6(0x129)]]}),this[_0x879ca6(0x102)]=new _0x3577e4(),_0x81dc69(this[_0x879ca6(0x124)],this[_0x879ca6(0x102)]);}[_0x377fb1(0x101)](_0x700155,_0x2f1dac){const _0x5d5b6d=_0x377fb1;if(_0x2f1dac)this[_0x5d5b6d(0x126)](_0x5d5b6d(0x105),_0x5d5b6d(0x11c));else{const _0x12f7f6=0x1===_0x700155[_0x5d5b6d(0xf9)];this[_0x5d5b6d(0x126)](_0x5d5b6d(0x105),_0x12f7f6?_0x5d5b6d(0x137):_0x5d5b6d(0x127));}if(this[_0x5d5b6d(0x102)][_0x5d5b6d(0xfb)](),_0x700155?.[_0x5d5b6d(0xf9)])for(const _0x2f6de7 of _0x700155){const _0x2e313e=new _0x3216e1({'label':_0x2f6de7[_0x5d5b6d(0x137)],'withText':!0x0,'role':_0x5d5b6d(0x107),'id':_0x2f6de7['id'],'model':_0x2f6de7});_0x2e313e[_0x5d5b6d(0x14e)](_0x5d5b6d(0x13f))['to'](this,_0x5d5b6d(0x14b),_0x43882f=>_0x43882f===_0x2f6de7['id']),this[_0x5d5b6d(0x102)][_0x5d5b6d(0x13e)]({'type':_0x5d5b6d(0x13c),'model':_0x2e313e,'labelView':new po(this[_0x5d5b6d(0x118)],_0x2f6de7)});}}[_0x377fb1(0x100)](_0x138df5){const _0x540036=_0x377fb1;this[_0x540036(0x126)](_0x540036(0x152),_0x138df5);}[_0x377fb1(0x10f)](_0x3e39f9){const _0x22b3dc=_0x377fb1;this[_0x22b3dc(0x126)](_0x22b3dc(0x13b),_0x3e39f9);}[_0x377fb1(0x10d)](_0x2f1a45){const _0xa81fce=_0x377fb1;if(!_0x2f1a45)return;this[_0xa81fce(0x14b)]=_0x2f1a45['id'],this[_0xa81fce(0x12b)]=_0x2f1a45[_0xa81fce(0x137)]||_0x2f1a45['id'],this[_0xa81fce(0x124)][_0xa81fce(0x121)][_0xa81fce(0x126)](_0xa81fce(0x11f),_0x2f1a45[_0xa81fce(0x137)]),this[_0xa81fce(0x124)][_0xa81fce(0x121)][_0xa81fce(0x126)](_0xa81fce(0x132),_0x2f1a45[_0xa81fce(0x137)]);const _0x3514eb=_0x2f1a45[_0xa81fce(0x153)][_0xa81fce(0x10e)]?.[_0xa81fce(0x12e)]??!0x1;this[_0xa81fce(0x126)](_0xa81fce(0x152),!0x1),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x13f),!0x1),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x125),_0x3514eb),this[_0xa81fce(0x11d)][_0xa81fce(0x126)](_0xa81fce(0x115),_0x3514eb);const _0x233fbf=_0x2f1a45[_0xa81fce(0x153)][_0xa81fce(0x151)]?.[_0xa81fce(0x12e)]??!0x1;this[_0xa81fce(0x126)](_0xa81fce(0x13b),!0x1),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x13f),!0x1),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x125),_0x233fbf),this[_0xa81fce(0x10b)][_0xa81fce(0x126)](_0xa81fce(0x115),_0x233fbf);}[_0x377fb1(0x12d)](){const _0x172858=_0x377fb1;this[_0x172858(0x126)](_0x172858(0xfd),!0x0);}[_0x377fb1(0x135)](_0x5b4093){const _0x274076=_0x377fb1;this[_0x274076(0x126)](_0x274076(0xfd),!0x1),_0x5b4093&&this[_0x274076(0x126)](_0x274076(0x105),_0x274076(0x11c));}[_0x377fb1(0x146)](){const _0x4079d1=_0x377fb1,_0x90175f=new _0x223acb();return _0x90175f[_0x4079d1(0x126)]({'label':_0xc0153e(this[_0x4079d1(0x118)],_0x4079d1(0x113)),'icon':_0xeaa065,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x90175f['on'](_0x4079d1(0x156),()=>{const _0xad622d=_0x4079d1;this[_0xad622d(0x14a)](_0xad622d(0xf8));}),_0x90175f;}[_0x377fb1(0x139)](){const _0x2676c8=_0x377fb1,_0x55e0d2=new _0x223acb();return _0x55e0d2[_0x2676c8(0x126)]({'label':_0xc0153e(this[_0x2676c8(0x118)],_0x2676c8(0x128)),'icon':_0x6aebd6,'class':jo,'isToggleable':!0x0,'tooltipPosition':el}),_0x55e0d2['on'](_0x2676c8(0x156),()=>{const _0x2dfa94=_0x2676c8;this[_0x2dfa94(0x14a)](_0x2dfa94(0x11e));}),_0x55e0d2;}[_0x377fb1(0x12f)](){const _0x121313=_0x377fb1,_0x4b0c6f=new _0x223acb();return _0x4b0c6f[_0x121313(0x126)]({'label':_0xc0153e(this[_0x121313(0x118)],_0x121313(0x159)),'icon':_0x556240,'withText':!0x0,'class':jo,'isToggleable':!0x0,'tooltip':_0xc0153e(this[_0x121313(0x118)],_0x121313(0x159)),'tooltipPosition':el}),_0x4b0c6f[_0x121313(0x150)]({'attributes':{'class':[zo]}}),_0x4b0c6f['on'](_0x121313(0x156),()=>{const _0x1805a8=_0x121313;console[_0x1805a8(0x116)](_0x1805a8(0x109)),alert(_0x1805a8(0x109));}),_0x4b0c6f;}[_0x377fb1(0x134)](){const _0x519725=_0x377fb1,_0x4a296f=_0x53be2c(this[_0x519725(0x118)]);return _0x4a296f[_0x519725(0x126)]({'panelPosition':'ne','class':[Ko]}),_0x4a296f[_0x519725(0x121)][_0x519725(0x126)]({'label':_0xc0153e(this[_0x519725(0x118)],_0x519725(0x147)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':el,'class':Jo}),this[_0x519725(0x123)](_0x4a296f,_0x519725(0x156),_0x3044f1=>{const _0x5394d1=_0x519725;this[_0x5394d1(0x14a)](_0x5394d1(0x142),_0x3044f1[_0x5394d1(0x106)][_0x5394d1(0x13d)]);}),_0x4a296f;}[_0x377fb1(0x143)](){const _0x5d7d3d=_0x377fb1,_0x133e4f=new wo(this[_0x5d7d3d(0x118)]);return _0x133e4f[_0x5d7d3d(0x14e)](_0x5d7d3d(0x136))['to'](this,_0x5d7d3d(0x12b),_0x3d0103=>_0x3d0103??''),_0x133e4f[_0x5d7d3d(0x14e)](_0x5d7d3d(0x115))['to'](this,_0x5d7d3d(0x105),_0x4c8b07=>_0x5d7d3d(0x137)===_0x4c8b07),_0x133e4f;}}function _0x1d49(_0x2c1c6f,_0x20dca3){const _0x2e0116=_0x2e01();return _0x1d49=function(_0x1d4902,_0x1f762b){_0x1d4902=_0x1d4902-0xf6;let _0x4b4eca=_0x2e0116[_0x1d4902];return _0x4b4eca;},_0x1d49(_0x2c1c6f,_0x20dca3);}class po extends _0x367206{constructor(_0x29af21,_0x24a1e9){const _0x3eca34=_0x377fb1;super();const _0x1d7c9a=this[_0x3eca34(0x155)],_0x3db467=this[_0x3eca34(0x157)]();this[_0x3eca34(0x120)]({'tag':_0x3eca34(0x110),'attributes':{'class':['ck',_0x3eca34(0x111)],'style':_0x1d7c9a['to'](_0x3eca34(0x104)),'id':_0x1d7c9a['to']('id')},'children':[{'tag':_0x3eca34(0x110),'attributes':{'class':[Qo]},'children':[{'text':_0x1d7c9a['to'](_0x3eca34(0x136))}]},{'tag':_0x3eca34(0x110),'attributes':{'class':[Zo]},'children':[{'tag':_0x3eca34(0x158),'children':[{'text':_0x24a1e9[_0x3eca34(0xf6)]}]}]},{'tag':_0x3eca34(0x110),'attributes':{'class':[tl]},'children':_0x3db467}]}),_0x3db467[_0x3eca34(0x131)](this[_0x3eca34(0x12c)](_0x29af21,_0xeaa065,_0x3eca34(0x113),_0x24a1e9[_0x3eca34(0x153)][_0x3eca34(0x10e)]?.[_0x3eca34(0x12e)]??!0x1)),_0x3db467[_0x3eca34(0x131)](this[_0x3eca34(0x12c)](_0x29af21,_0x6aebd6,_0x3eca34(0x128),_0x24a1e9[_0x3eca34(0x153)][_0x3eca34(0x151)]?.[_0x3eca34(0x12e)]??!0x1));}[_0x377fb1(0x12c)](_0x7144e5,_0xebc725,_0x3ca429,_0xe8838c){const _0xdbff16=_0x377fb1,_0x1c2494=new _0x47f766();_0x1c2494[_0xdbff16(0xfe)]=_0xebc725;const _0x2bb426=new _0xb3cbf(_0x7144e5);_0x2bb426[_0xdbff16(0x120)]({'tag':_0xdbff16(0x158),'children':[{'text':_0xc0153e(_0x7144e5,_0x3ca429)+':\x20'}]});const _0x5f04d7=new _0xb3cbf(_0x7144e5);return _0x5f04d7[_0xdbff16(0x120)]({'tag':_0xdbff16(0x158),'children':[{'text':_0xc0153e(_0x7144e5,_0xe8838c?_0xdbff16(0x14c):_0xdbff16(0xfc))}]}),[_0x1c2494,_0x2bb426,_0x5f04d7];}}class wo extends _0xb3cbf{constructor(_0xd9efe3){const _0xae3c21=_0x377fb1;super(_0xd9efe3),this[_0xae3c21(0x126)](_0xae3c21(0x136),void 0x0),this[_0xae3c21(0x126)](_0xae3c21(0x115),!0x0);const _0x104cb2=this[_0xae3c21(0x155)];this[_0xae3c21(0x120)]({'tag':_0xae3c21(0x158),'attributes':{'class':['ck',_0xae3c21(0x13a),_0x104cb2['if'](_0xae3c21(0x115),_0xae3c21(0x11a),_0x4f07f2=>!_0x4f07f2)]},'children':[{'text':_0x104cb2['to'](_0xae3c21(0x136))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x334a7e=_0x26bb;(function(_0xaa63d4,_0x598271){const _0x4f8f45=_0x26bb,_0x384c90=_0xaa63d4();while(!![]){try{const _0x5d02c8=-parseInt(_0x4f8f45(0xc1))/0x1*(parseInt(_0x4f8f45(0x89))/0x2)+parseInt(_0x4f8f45(0x97))/0x3*(-parseInt(_0x4f8f45(0x8e))/0x4)+-parseInt(_0x4f8f45(0xa7))/0x5*(-parseInt(_0x4f8f45(0x9f))/0x6)+parseInt(_0x4f8f45(0x88))/0x7+-parseInt(_0x4f8f45(0xbf))/0x8+parseInt(_0x4f8f45(0xab))/0x9+-parseInt(_0x4f8f45(0xbb))/0xa;if(_0x5d02c8===_0x598271)break;else _0x384c90['push'](_0x384c90['shift']());}catch(_0x281cc0){_0x384c90['push'](_0x384c90['shift']());}}}(_0x79bd,0xd7e22));import{IconSubmit as _0x5b0ae0}from'ckeditor5/src/icons.js';import{ButtonView as _0x1607a1,AutocompleteView as _0x312397,createLabeledTextarea as _0x2a9245}from'ckeditor5/src/ui.js';import{global as _0x5f0e48,isVisible as _0x14243b,Rect as _0x38a67e,ResizeObserver as _0xcc298d}from'ckeditor5/src/utils.js';import{getTranslation as _0x342936}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x10ada2}from'./aichatpromptsuggestionslistview.js';import{escape as _0x4556b8}from'es-toolkit/compat';const ah=_0x334a7e(0xad);function _0x26bb(_0x3b63ac,_0x1ef858){const _0x79bd16=_0x79bd();return _0x26bb=function(_0x26bb1c,_0x1f6e3e){_0x26bb1c=_0x26bb1c-0x87;let _0x26aa5f=_0x79bd16[_0x26bb1c];return _0x26aa5f;},_0x26bb(_0x3b63ac,_0x1ef858);}function _0x79bd(){const _0x27c3a9=['left','285RCGuAm','minRows','_addContextButtonView','right','excludeScrollbarsAndBorders','submit','value','rtl','294qbYIPn','isEnabled','ck-ai-chat__prompt-submit-button','destroy','reset','MIN_ROWS','target','calc(','33315uVBzMg','render','focusableChildren','submitButtonView','12513303gkiqcu','classList','ck-ai-chat__prompt-input_highlighted','enter','AI_CHAT_LABEL_SUBMIT','hasError','width','keystrokes','_queryViewResizeObserver','setIsUploadInProgress','maxRows','execute','locale','update','uiLanguageDirection','isEmpty','4285550CrjFuo','trim','add','focus','5132776RcjVNs','placeholder','168955yhYTTL','AI_CHAT_PROMPT_EMPTY_ERROR','style','requestAnimationFrame','bind','errorText','MAX_ROWS','fieldWrapperChildren','fieldView','px\x20-\x20var(--ck-spacing-tiny))','setPlaceholderText','_createSubmitButton','ck-ai-chat__prompt-input','4234762IeHMzA','2fnvvWw','queryView','fire','set','isUploadInProgress','8356IEgCOO','window','sendUserMessage','element','_setUpAddContextButtonPositioning','remove','contains','extendTemplate'];_0x79bd=function(){return _0x27c3a9;};return _0x79bd();}export class AIChatPromptInputView extends _0x312397{[_0x334a7e(0xaa)];static [_0x334a7e(0xa4)]=0x1;static [_0x334a7e(0xc7)]=0xc;[_0x334a7e(0x99)];[_0x334a7e(0xb3)];constructor(_0x638aa2,_0x1be234){const _0x556305=_0x334a7e;super(_0x638aa2,{'queryView':{'label':'','creator':_0x2a9245,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x10ada2(_0x638aa2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x556305(0x8c)](_0x556305(0xba),!0x0),this[_0x556305(0x8c)](_0x556305(0x8d),!0x1),this[_0x556305(0x99)]=_0x1be234,this[_0x556305(0xb3)]=null,this[_0x556305(0x8a)][_0x556305(0xc9)][_0x556305(0x98)]=AIChatPromptInputView[_0x556305(0xa4)],this[_0x556305(0x8a)][_0x556305(0xc9)][_0x556305(0xb5)]=AIChatPromptInputView[_0x556305(0xc7)],this[_0x556305(0x8a)][_0x556305(0xc8)][_0x556305(0xbd)](this[_0x556305(0x99)]),this[_0x556305(0x92)](),this[_0x556305(0x95)]({'attributes':{'class':['ck',_0x556305(0x87)]}}),this[_0x556305(0xaa)]=this[_0x556305(0xcc)](),this[_0x556305(0xaa)][_0x556305(0xc5)](_0x556305(0xa0))['to'](this,_0x556305(0xba),this,_0x556305(0x8d),(_0x5f12d3,_0x1cd5b8)=>!_0x5f12d3&&!_0x1cd5b8),this[_0x556305(0xa9)][_0x556305(0xbd)](this[_0x556305(0xaa)]);}[_0x334a7e(0xa8)](){const _0x54baa6=_0x334a7e;super[_0x54baa6(0xa8)](),this[_0x54baa6(0x8a)][_0x54baa6(0xc8)][_0x54baa6(0xbd)](this[_0x54baa6(0xaa)]),this[_0x54baa6(0xb2)][_0x54baa6(0x8c)](_0x54baa6(0xae),(_0x42d229,_0x25809a)=>{const _0x1db2df=_0x54baa6;this[_0x1db2df(0x8d)]||this[_0x1db2df(0xba)]||_0x42d229[_0x1db2df(0xa5)]==this[_0x1db2df(0x8a)][_0x1db2df(0xc9)][_0x1db2df(0x91)]&&(this[_0x1db2df(0x9c)](),_0x25809a());}),this[_0x54baa6(0x8a)][_0x54baa6(0xc9)]['on'](_0x54baa6(0xb8),()=>{const _0x1b771a=_0x54baa6;this[_0x1b771a(0xba)]=''===this[_0x1b771a(0x8a)][_0x1b771a(0xc9)][_0x1b771a(0x91)][_0x1b771a(0x9d)]?.[_0x1b771a(0xbc)]();});}[_0x334a7e(0xa2)](){const _0x3f8592=_0x334a7e;super[_0x3f8592(0xa2)](),this[_0x3f8592(0xb3)]&&this[_0x3f8592(0xb3)][_0x3f8592(0xa2)]();}[_0x334a7e(0x9c)](){const _0x483d33=_0x334a7e,_0x24fc7a=this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0x91)][_0x483d33(0x9d)]?.[_0x483d33(0xbc)]();if(!_0x24fc7a)return this[_0x483d33(0x8a)][_0x483d33(0xc6)]=_0x342936(this[_0x483d33(0xb7)],_0x483d33(0xc2)),void(this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xb0)]=!0x0);this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xb0)]=!0x1;const _0x5463fe=_0x4556b8(_0x24fc7a);this[_0x483d33(0x8b)](_0x483d33(0x90),_0x5463fe),this[_0x483d33(0x8a)][_0x483d33(0xc9)][_0x483d33(0xa3)]();}[_0x334a7e(0xcb)](_0x40faa5){const _0x2c286c=_0x334a7e;this[_0x2c286c(0x8a)][_0x2c286c(0xc9)][_0x2c286c(0x8c)](_0x2c286c(0xc0),_0x40faa5);}[_0x334a7e(0xbe)](_0x2772d6=!0x1){const _0x4d6a9e=_0x334a7e;super[_0x4d6a9e(0xbe)](),_0x2772d6&&(this[_0x4d6a9e(0x91)][_0x4d6a9e(0xac)][_0x4d6a9e(0x94)](ah)||(this[_0x4d6a9e(0x91)][_0x4d6a9e(0xac)][_0x4d6a9e(0xbd)](ah),setTimeout(()=>{const _0x12a1c4=_0x4d6a9e;this[_0x12a1c4(0x91)][_0x12a1c4(0xac)][_0x12a1c4(0x93)](ah);},0x320)));}[_0x334a7e(0xcc)](){const _0x49b2a3=_0x334a7e,_0x2d67d4=new _0x1607a1(this[_0x49b2a3(0xb7)]);return _0x2d67d4[_0x49b2a3(0x8c)]({'icon':_0x5b0ae0,'label':_0x342936(this[_0x49b2a3(0xb7)],_0x49b2a3(0xaf)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x49b2a3(0xa1),'isEnabled':!0x1}),_0x2d67d4['on'](_0x49b2a3(0xb6),()=>{const _0x35b9ff=_0x49b2a3;this[_0x35b9ff(0x9c)]();}),_0x2d67d4;}[_0x334a7e(0xb4)](_0x1a563c){const _0x32faa9=_0x334a7e;this[_0x32faa9(0x8d)]=_0x1a563c;}[_0x334a7e(0x92)](){const _0x2c777f=_0x334a7e,_0x2e8ac8=this[_0x2c777f(0xb7)],_0x5e72d8=()=>{const _0x343396=_0x2c777f;_0x5f0e48[_0x343396(0x8f)][_0x343396(0xc4)](()=>{const _0x3454de=_0x343396;if(_0x14243b(this[_0x3454de(0x91)])){const _0x526edf=new _0x38a67e(this[_0x3454de(0x8a)][_0x3454de(0xc9)][_0x3454de(0x91)]),_0x558a62=new _0x38a67e(this[_0x3454de(0x99)][_0x3454de(0x91)]),_0x48f1b4=_0x526edf[_0x3454de(0xb1)],_0x56ed2d=_0x3454de(0x9e)===_0x2e8ac8[_0x3454de(0xb9)]?_0x3454de(0x9a):_0x3454de(0x96);_0x526edf[_0x3454de(0x9b)]();const _0x5a6570=_0x48f1b4-_0x526edf[_0x3454de(0xb1)]+0x1;this[_0x3454de(0x99)][_0x3454de(0x91)][_0x3454de(0xc3)][_0x56ed2d]=_0x3454de(0xa6)+(_0x48f1b4-_0x558a62[_0x3454de(0xb1)]-_0x5a6570)+_0x3454de(0xca);}});};this[_0x2c777f(0x8a)][_0x2c777f(0xc9)]['on'](_0x2c777f(0xb8),_0x5e72d8),this['on'](_0x2c777f(0xa8),()=>{const _0x3f3c0c=_0x2c777f;_0x5e72d8(),this[_0x3f3c0c(0xb3)]=new _0xcc298d(this[_0x3f3c0c(0x8a)][_0x3f3c0c(0xc9)][_0x3f3c0c(0x91)],()=>{_0x5e72d8();});});}}
|