@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/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/aiballoon/aiballoon.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/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/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/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.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/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/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/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.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/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/tabs/tabbuttonview.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/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x502c(_0x42931f,_0x25fc09){var _0x29f7a5=_0x29f7();return _0x502c=function(_0x502c14,_0x3c673f){_0x502c14=_0x502c14-0xf1;var _0x4f1cbe=_0x29f7a5[_0x502c14];return _0x4f1cbe;},_0x502c(_0x42931f,_0x25fc09);}function _0x29f7(){var _0x125719=['6wElbdN','94046duiEMr','9yurZTJ','userMessage','model','conversationId','current-document','3fsDhen','797600VxEyKr','queryAssistant','1016516NJwUBa','get','292936pXTkZJ','279349HrvCuV','mapContextItemsToRequestData','contextItems','sendRequest','connector','getDocumentContext','attributes','capabilities','getCapabilitiesRequestData','187524PuTfSv','69350GaVQuD'];_0x29f7=function(){return _0x125719;};return _0x29f7();}var _0x103eef=_0x502c;(function(_0x594c2e,_0x9bd41e){var _0x171bcb=_0x502c,_0x1881da=_0x594c2e();while(!![]){try{var _0x29539f=-parseInt(_0x171bcb(0xf2))/0x1+-parseInt(_0x171bcb(0x107))/0x2+parseInt(_0x171bcb(0xf8))/0x3*(parseInt(_0x171bcb(0xfb))/0x4)+parseInt(_0x171bcb(0x108))/0x5+-parseInt(_0x171bcb(0xf1))/0x6*(parseInt(_0x171bcb(0xfe))/0x7)+-parseInt(_0x171bcb(0xfd))/0x8*(-parseInt(_0x171bcb(0xf3))/0x9)+parseInt(_0x171bcb(0xf9))/0xa;if(_0x29539f===_0x9bd41e)break;else _0x1881da['push'](_0x1881da['shift']());}catch(_0xf24c92){_0x1881da['push'](_0x1881da['shift']());}}}(_0x29f7,0x263f5));import{AICapabilities as _0x44fbdd}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x159bca}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3dcbe2}from'./aichatcontext.js';export class AIChatInteraction extends _0x159bca{[_0x103eef(0xf4)];[_0x103eef(0xf6)];[_0x103eef(0x100)]=new Map();[_0x103eef(0xf5)];[_0x103eef(0x104)];constructor(_0x244ed9){var _0x11143c=_0x103eef;super(_0x244ed9),this[_0x11143c(0xf6)]=_0x244ed9[_0x11143c(0xf6)],this[_0x11143c(0x100)]=_0x244ed9[_0x11143c(0x100)],this[_0x11143c(0x105)]=_0x244ed9[_0x11143c(0x105)],this[_0x11143c(0xf4)]=_0x244ed9[_0x11143c(0xf4)],this[_0x11143c(0xf5)]=_0x244ed9[_0x11143c(0xf5)],this[_0x11143c(0x104)]=_0x244ed9[_0x11143c(0x104)];}async[_0x103eef(0x101)](){var _0x5ef7e9=_0x103eef;return this[_0x5ef7e9(0x102)][_0x5ef7e9(0xfa)]({'message':this[_0x5ef7e9(0xf4)],'conversationId':this[_0x5ef7e9(0xf6)],'parts':_0x3dcbe2[_0x5ef7e9(0xff)](this[_0x5ef7e9(0x100)]),'capabilities':_0x44fbdd[_0x5ef7e9(0x106)](this[_0x5ef7e9(0x105)]),'model':this[_0x5ef7e9(0xf5)],'attributes':this[_0x5ef7e9(0x104)]});}[_0x103eef(0x103)](){var _0x4899d3=_0x103eef;return this[_0x4899d3(0x100)][_0x4899d3(0xfc)](_0x4899d3(0xf7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bda56=_0x1c80;function _0x1c80(_0x2cd861,_0x3feccb){const _0x4ecb38=_0x4ecb();return _0x1c80=function(_0x1c8006,_0x3feb6f){_0x1c8006=_0x1c8006-0x16b;let _0x47e74a=_0x4ecb38[_0x1c8006];return _0x47e74a;},_0x1c80(_0x2cd861,_0x3feccb);}(function(_0x1ea776,_0x2c1785){const _0x132f48=_0x1c80,_0x12f392=_0x1ea776();while(!![]){try{const _0x1a0776=parseInt(_0x132f48(0x1aa))/0x1*(-parseInt(_0x132f48(0x1a3))/0x2)+-parseInt(_0x132f48(0x192))/0x3+-parseInt(_0x132f48(0x16d))/0x4*(parseInt(_0x132f48(0x181))/0x5)+parseInt(_0x132f48(0x1a4))/0x6+parseInt(_0x132f48(0x19c))/0x7+parseInt(_0x132f48(0x1ad))/0x8*(parseInt(_0x132f48(0x175))/0x9)+parseInt(_0x132f48(0x1ba))/0xa;if(_0x1a0776===_0x2c1785)break;else _0x12f392['push'](_0x12f392['shift']());}catch(_0x5ce24a){_0x12f392['push'](_0x12f392['shift']());}}}(_0x4ecb,0x3a359));import{FocusTracker as _0x17a87e,KeystrokeHandler as _0x5bb40c}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1b09d0}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x3d86db}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x504158}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x4badfe}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3f52ac,FocusCycler as _0x2e82d3,View as _0x3ffc14}from'ckeditor5/src/ui.js';function _0x4ecb(){const _0x44449b=['showDiff','1352aiVFPV','toggleSuggestionDisplayMode','AI_BALLOON_PREVIOUS_LABEL','216LlGbzx','tab','isEnabled','createCollection','availableActions','focusCycler','destroy','_togglePartToolbarButtonsVisibility','focusLast','_focusTracker','_keystrokes','toggleRotatorButtonsVisibility','_isErrorVisible','6693190xubmAf','_streamableContentView','ck-ai-chat-balloon__toolbar-container','_config','_miniToolbarView','locale','add','4dApkIW','update','render','div','change:isTrackChangesOn','_createNextButtonView','_stateView','isTrackChangesOn','65781XWxPPI','previousButtonView','setTemplate','bind','element','_state','bindTemplate','insertSuggestion','full','toggleShowChanges','togglePartToolbarEnabled','hideError','1482545delOCO','setState','ck-ai-chat-balloon-main_state_','children','showError','addMany','isShowChangesOn','includes','_focusables','listenTo','showBlockingError','set','AI_BALLOON_NEXT_LABEL','showNext','focusFirst','delegate','execute','828477KWLPPR','fire','_toolbarContainerView','change:_state','applySuggestion','showPrevious','updateContent','focus','keepErrors','setButtonsVisibility','50498ZiSZcV','_createPreviousButtonView','shift\x20+\x20tab','rejectSuggestion','_partToolbarView','pending','has','116lhVBCB','93798lronDk','nextButtonView','_errorView','ck-ai-chat-balloon-main','isVisible'];_0x4ecb=function(){return _0x44449b;};return _0x4ecb();}import{AISuggestionContentPartStateView as _0x4925f4}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x1a59e8,IconChevronUp as _0x1d07ab}from'ckeditor5/src/icons.js';import{getTranslation as _0x15a3c4}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x4badfe{[_0x1bda56(0x184)];[_0x1bda56(0x1a5)];[_0x1bda56(0x176)];[_0x1bda56(0x1b2)];[_0x1bda56(0x189)];[_0x1bda56(0x1b6)];[_0x1bda56(0x1b7)];[_0x1bda56(0x1bd)];[_0x1bda56(0x1bb)];[_0x1bda56(0x194)];[_0x1bda56(0x1a0)];[_0x1bda56(0x173)];[_0x1bda56(0x1be)];constructor(_0x19566e,_0x37c268){const _0x33f6fa=_0x1bda56;super(_0x19566e);const _0x3fcbb9=this[_0x33f6fa(0x17b)];this[_0x33f6fa(0x18c)](_0x33f6fa(0x1a9),!0x1),this[_0x33f6fa(0x18c)](_0x33f6fa(0x17a),_0x33f6fa(0x1a1)),this[_0x33f6fa(0x1b6)]=new _0x17a87e(),this[_0x33f6fa(0x1b7)]=new _0x5bb40c(),this[_0x33f6fa(0x189)]=this[_0x33f6fa(0x1b0)](),this[_0x33f6fa(0x1b2)]=new _0x2e82d3({'focusables':this[_0x33f6fa(0x189)],'focusTracker':this[_0x33f6fa(0x1b6)],'keystrokeHandler':this[_0x33f6fa(0x1b7)],'actions':{'focusPrevious':_0x33f6fa(0x19e),'focusNext':_0x33f6fa(0x1ae)}}),this[_0x33f6fa(0x1bd)]=_0x37c268,this[_0x33f6fa(0x1a5)]=this[_0x33f6fa(0x172)](),this[_0x33f6fa(0x176)]=this[_0x33f6fa(0x19d)](),this[_0x33f6fa(0x1bb)]=new _0x1b09d0(_0x19566e),this[_0x33f6fa(0x1a0)]=new _0x3d86db(_0x19566e,_0x37c268[_0x33f6fa(0x1b1)]),this[_0x33f6fa(0x1a0)][_0x33f6fa(0x190)](_0x33f6fa(0x196),_0x33f6fa(0x17c),_0x33f6fa(0x19f))['to'](this),this[_0x33f6fa(0x1b4)](_0x37c268),this[_0x33f6fa(0x173)]=new _0x4925f4(_0x19566e),this[_0x33f6fa(0x173)][_0x33f6fa(0x1a8)]=!0x1,this[_0x33f6fa(0x1be)]=new _0x504158(_0x19566e,{'showChanges':_0x33f6fa(0x17d)}),this[_0x33f6fa(0x1be)][_0x33f6fa(0x178)](_0x33f6fa(0x187))['to'](this,_0x33f6fa(0x1a9)),this[_0x33f6fa(0x1be)]['on'](_0x33f6fa(0x17e),()=>{const _0x3a2e64=_0x33f6fa;this[_0x3a2e64(0x193)](_0x3a2e64(0x1ab));}),this[_0x33f6fa(0x194)]=new ls(_0x19566e,[this[_0x33f6fa(0x1a0)],this[_0x33f6fa(0x173)],this[_0x33f6fa(0x1be)]]),this[_0x33f6fa(0x184)]=this[_0x33f6fa(0x1b0)]([this[_0x33f6fa(0x1bb)],this[_0x33f6fa(0x194)]]),this['on'](_0x33f6fa(0x195),(_0x8b51e4,_0x1341ab,_0x2b9485,_0x2f1207)=>{const _0x48f751=_0x33f6fa;let _0x4baa6f,_0x37dc9f;_0x48f751(0x1a1)===_0x2f1207?(_0x4baa6f=this[_0x48f751(0x1a0)],_0x37dc9f=this[_0x48f751(0x173)]):(_0x4baa6f=this[_0x48f751(0x173)],_0x37dc9f=this[_0x48f751(0x1a0)]),this[_0x48f751(0x173)][_0x48f751(0x182)](_0x2b9485),_0x4baa6f[_0x48f751(0x1a8)]=!0x1,_0x37dc9f[_0x48f751(0x1a8)]=!0x0;}),this[_0x33f6fa(0x177)]({'tag':_0x33f6fa(0x170),'attributes':{'class':['ck',_0x33f6fa(0x1a7),_0x3fcbb9['to'](_0x33f6fa(0x17a),_0x3a2c27=>_0x33f6fa(0x183)+_0x3a2c27)]},'children':this[_0x33f6fa(0x184)]}),this['on'](_0x33f6fa(0x171),()=>{const _0x2568a6=_0x33f6fa;this[_0x2568a6(0x1b4)](_0x37c268);});}[_0x1bda56(0x16f)](){const _0x1d4253=_0x1bda56;super[_0x1d4253(0x16f)](),this[_0x1d4253(0x1a5)][_0x1d4253(0x16f)](),this[_0x1d4253(0x176)][_0x1d4253(0x16f)](),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x179)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x1a5)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x176)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x1be)]),this[_0x1d4253(0x1b6)][_0x1d4253(0x16c)](this[_0x1d4253(0x1a0)]),this[_0x1d4253(0x1b7)][_0x1d4253(0x18a)](this[_0x1d4253(0x179)]),this[_0x1d4253(0x1b7)][_0x1d4253(0x18a)](this[_0x1d4253(0x1a5)][_0x1d4253(0x179)]),this[_0x1d4253(0x1b7)][_0x1d4253(0x18a)](this[_0x1d4253(0x176)][_0x1d4253(0x179)]),this[_0x1d4253(0x189)][_0x1d4253(0x186)]([this[_0x1d4253(0x1a5)],this[_0x1d4253(0x176)],this[_0x1d4253(0x1a0)],this[_0x1d4253(0x1be)]]);}[_0x1bda56(0x1b3)](){const _0x4dd081=_0x1bda56;super[_0x4dd081(0x1b3)](),this[_0x4dd081(0x176)][_0x4dd081(0x1b3)](),this[_0x4dd081(0x1a5)][_0x4dd081(0x1b3)]();}[_0x1bda56(0x199)](){const _0x45b1bb=_0x1bda56;this[_0x45b1bb(0x1b2)][_0x45b1bb(0x18f)]();}[_0x1bda56(0x1b5)](){const _0x16cdf1=_0x1bda56;this[_0x16cdf1(0x1b2)][_0x16cdf1(0x1b5)]();}async[_0x1bda56(0x198)](_0x4ff462){const _0x51d64b=_0x1bda56;_0x4ff462?.[_0x51d64b(0x19a)]||this[_0x51d64b(0x180)](),await this[_0x51d64b(0x1bb)][_0x51d64b(0x16e)](_0x4ff462);}[_0x1bda56(0x182)](_0x742f21){const _0x253fac=_0x1bda56;this[_0x253fac(0x17a)]=_0x742f21;}[_0x1bda56(0x185)](_0x5d5c55){const _0x6c010b=_0x1bda56;super[_0x6c010b(0x185)](_0x5d5c55),this[_0x6c010b(0x184)][_0x6c010b(0x1a2)](this[_0x6c010b(0x1a6)])||this[_0x6c010b(0x184)][_0x6c010b(0x16c)](this[_0x6c010b(0x1a6)],0x0);}[_0x1bda56(0x180)](){const _0x2c01b1=_0x1bda56;this[_0x2c01b1(0x1b9)]&&(super[_0x2c01b1(0x180)](),this[_0x2c01b1(0x17f)](!0x0));}[_0x1bda56(0x18b)](_0x3ab216){const _0x5f13c2=_0x1bda56;super[_0x5f13c2(0x18b)](_0x3ab216),this[_0x5f13c2(0x17f)](!0x1);}[_0x1bda56(0x1b8)](_0x2ad369){const _0x3a7c91=_0x1bda56;this[_0x3a7c91(0x1a5)][_0x3a7c91(0x1a8)]=this[_0x3a7c91(0x176)][_0x3a7c91(0x1a8)]=_0x2ad369;}[_0x1bda56(0x17f)](_0x23dc41){const _0x19ef16=_0x1bda56;this[_0x19ef16(0x1a0)][_0x19ef16(0x1af)]=_0x23dc41;}[_0x1bda56(0x1b4)]({showApplyButton:_0x561c5b,showSuggestButton:_0x4f0fdc}){const _0x8536c2=_0x1bda56;_0x561c5b=_0x561c5b&&!this[_0x8536c2(0x174)]&&this[_0x8536c2(0x1bd)][_0x8536c2(0x1b1)][_0x8536c2(0x188)](_0x8536c2(0x196)),_0x4f0fdc=_0x4f0fdc&&this[_0x8536c2(0x1bd)][_0x8536c2(0x1b1)][_0x8536c2(0x188)](_0x8536c2(0x17c)),this[_0x8536c2(0x1a0)][_0x8536c2(0x19b)]({'showApplyButton':_0x561c5b,'showSuggestButton':_0x4f0fdc});}[_0x1bda56(0x172)](){const _0x51b8c7=_0x1bda56,_0xd0f848=new _0x3f52ac(this[_0x51b8c7(0x16b)]);return _0xd0f848[_0x51b8c7(0x18c)]({'icon':_0x1a59e8,'label':_0x15a3c4(this[_0x51b8c7(0x16b)],_0x51b8c7(0x18d)),'isVisible':!0x0}),_0xd0f848['on'](_0x51b8c7(0x191),()=>{const _0x3ee858=_0x51b8c7;this[_0x3ee858(0x193)](_0x3ee858(0x18e));}),_0xd0f848;}[_0x1bda56(0x19d)](){const _0x59f3e1=_0x1bda56,_0x3444fa=new _0x3f52ac(this[_0x59f3e1(0x16b)]);return _0x3444fa[_0x59f3e1(0x18c)]({'icon':_0x1d07ab,'label':_0x15a3c4(this[_0x59f3e1(0x16b)],_0x59f3e1(0x1ac)),'isVisible':!0x0}),_0x3444fa['on'](_0x59f3e1(0x191),()=>{const _0x341c1e=_0x59f3e1;this[_0x341c1e(0x193)](_0x341c1e(0x197));}),_0x3444fa;}}class ls extends _0x3ffc14{constructor(_0x11fd1e,_0x5f434e){const _0xe6ce5a=_0x1bda56;super(_0x11fd1e),this[_0xe6ce5a(0x177)]({'tag':_0xe6ce5a(0x170),'attributes':{'class':[_0xe6ce5a(0x1bc)]},'children':_0x5f434e});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b2054=_0x5d2d;(function(_0x3d603e,_0x18b840){const _0x1ceacf=_0x5d2d,_0x3c397b=_0x3d603e();while(!![]){try{const _0x3fc255=-parseInt(_0x1ceacf(0x1d5))/0x1+-parseInt(_0x1ceacf(0x1ef))/0x2+parseInt(_0x1ceacf(0x20d))/0x3*(parseInt(_0x1ceacf(0x20f))/0x4)+parseInt(_0x1ceacf(0x1e2))/0x5+parseInt(_0x1ceacf(0x1e4))/0x6*(-parseInt(_0x1ceacf(0x1c5))/0x7)+-parseInt(_0x1ceacf(0x1f7))/0x8+parseInt(_0x1ceacf(0x1f4))/0x9;if(_0x3fc255===_0x18b840)break;else _0x3c397b['push'](_0x3c397b['shift']());}catch(_0x3a5df4){_0x3c397b['push'](_0x3c397b['shift']());}}}(_0x288e,0xeacbc));function _0x5d2d(_0xbb7381,_0x504f9e){const _0x288ee7=_0x288e();return _0x5d2d=function(_0x5d2d0b,_0xab74f){_0x5d2d0b=_0x5d2d0b-0x1c3;let _0x3d5170=_0x288ee7[_0x5d2d0b];return _0x3d5170;},_0x5d2d(_0xbb7381,_0x504f9e);}import{ButtonView as _0x23a1d5,clickOutsideHandler as _0x4111f5,View as _0x489404}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x97b6ad}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x474a45}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x54a01b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x4a4b89}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2c0e94}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0xba7497}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';function _0x288e(){const _0x4bf9e4=['startConversation','_shouldRestorePromptInputFocus','setAddContextOptions','74795tlKrvB','value','isModelAvailable','setTemplate','_createModelUnavailableMessageView','clearPendingContextUI','toggleWebSearch','div','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','addContextItem','_contextPanelView','setReasoning','setModelList','ck-ai-chat-controls__start-new-chat-button','focusPromptInput','1216137YfLHtg','change:isLoading','focus','clearConversationContextUI','setIsUploadInProgress','closeSourceResourceBalloon','ck-ai-chat-controls','locale','_createLoaderView','resetMessageInput','populateSourceResourceBalloon','form','_handlePromptInputFocus','5363165mPToyd','set','996ZoLGxo','abortPromptStream','setContextItemLoading','disableModelSelector','setInputPlaceholder','clearCurrentContextItems','delegate','addContextButtonView','setModel','updateResourceState','setPromptInputValue','565290tcjuRs','bodyCollection','_createPromptCapabilitiesView','_loaderView','isLoading','29522421UtCRFg','element','toggleReasoning','15008824pGKteB','removeContextItem','_promptInputView','_promptCapabilitiesView','ck-ai-chat-controls-model-unavailable-message','contextResourcesSearchInputVisibleFrom','_createPromptInputView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setPlaceholderText','selectModel','execute','clearConversationContextItems','fieldView','setWebSearch','low','_modelUnavailableMessageView','enableModelSelector','queryView','sendUserMessage','reset','ck-ai-chat-controls-disabled','setConversationContext','3ARexph','ck-hidden','7029668rrouIQ','isDisabled','_createContextPanelView'];_0x288e=function(){return _0x4bf9e4;};return _0x288e();}import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x489404{[_0x4b2054(0x1d0)];[_0x4b2054(0x1f9)];[_0x4b2054(0x1fa)];[_0x4b2054(0x1f2)];[_0x4b2054(0x206)];[_0x4b2054(0x1c3)];constructor(_0x12bb05,_0x482d31){const _0x598715=_0x4b2054;super(_0x12bb05),this[_0x598715(0x1d0)]=this[_0x598715(0x211)](_0x12bb05,{'bodyCollection':_0x482d31[_0x598715(0x1f0)],'searchInputVisibleFrom':_0x482d31[_0x598715(0x1fc)]}),this[_0x598715(0x1f9)]=this[_0x598715(0x1fd)](_0x12bb05),this[_0x598715(0x1fa)]=this[_0x598715(0x1f1)](_0x12bb05),this[_0x598715(0x1f2)]=this[_0x598715(0x1dd)](_0x12bb05),this[_0x598715(0x206)]=this[_0x598715(0x1c9)](_0x12bb05),this[_0x598715(0x1c3)]=!0x1,this[_0x598715(0x1f9)][_0x598715(0x1ea)](_0x598715(0x209))['to'](this),this[_0x598715(0x1f2)][_0x598715(0x1ea)](_0x598715(0x1e5))['to'](this),this[_0x598715(0x1fa)][_0x598715(0x1ea)](_0x598715(0x1cb))['to'](this),this[_0x598715(0x1fa)][_0x598715(0x1ea)](_0x598715(0x1f6))['to'](this),this[_0x598715(0x1fa)][_0x598715(0x1ea)](_0x598715(0x200))['to'](this),this[_0x598715(0x1d0)][_0x598715(0x1ea)](..._0x4a4b89)['to'](this),this[_0x598715(0x1e3)](_0x598715(0x1c7),!0x0),this[_0x598715(0x1e3)](_0x598715(0x210),!0x1);const _0x3e9678=this[_0x598715(0x1cd)];this[_0x598715(0x1c8)]({'tag':_0x598715(0x1e0),'attributes':{'class':['ck',_0x598715(0x1db),_0x3e9678['if'](_0x598715(0x210),_0x598715(0x20b))]},'children':[{'tag':_0x598715(0x1cc),'attributes':{'class':[_0x3e9678['if'](_0x598715(0x1f3),_0x598715(0x20e),_0x473c51=>_0x473c51||!this[_0x598715(0x1c7)]),_0x3e9678['if'](_0x598715(0x1c7),_0x598715(0x20e),_0x36cc84=>!_0x36cc84||this[_0x598715(0x1f3)])]},'children':[this[_0x598715(0x1d0)],this[_0x598715(0x1f9)],this[_0x598715(0x1fa)]]},{'tag':_0x598715(0x1cc),'attributes':{'class':[_0x3e9678['if'](_0x598715(0x1f3),_0x598715(0x20e),_0x24e6f7=>!_0x24e6f7)]},'children':[this[_0x598715(0x1f2)]]},{'tag':_0x598715(0x1cc),'attributes':{'class':[_0x3e9678['if'](_0x598715(0x1c7),_0x598715(0x20e),_0x5fe739=>_0x5fe739)]},'children':[this[_0x598715(0x206)]]}]}),_0x4111f5({'emitter':this[_0x598715(0x1f9)],'activator':()=>this[_0x598715(0x1f3)],'contextElements':()=>[this[_0x598715(0x1f5)]],'callback':()=>{const _0x5e26d0=_0x598715;this[_0x5e26d0(0x1c3)]=!0x1;}}),this['on'](_0x598715(0x1d6),this[_0x598715(0x1e1)],{'priority':_0x598715(0x205)});}[_0x4b2054(0x211)](_0x20837e,_0x20681f){return new _0x54a01b(_0x20837e,_0x20681f);}[_0x4b2054(0x1fd)](_0x386413){const _0x117646=_0x4b2054;return new _0x97b6ad(_0x386413,this[_0x117646(0x1d0)][_0x117646(0x1eb)]);}[_0x4b2054(0x1f1)](_0x77c049){return new _0x474a45(_0x77c049);}[_0x4b2054(0x1dd)](_0x21d9ae){return new _0x2c0e94(_0x21d9ae);}[_0x4b2054(0x1c9)](_0x1e60d5){const _0x12b58c=_0x4b2054,_0x3552f2=new _s(_0x1e60d5);return _0x3552f2[_0x12b58c(0x1ea)](_0x12b58c(0x212))['to'](this),_0x3552f2;}[_0x4b2054(0x1e1)](_0x5e81a5,_0x151c6c,_0x59689e){const _0x29fbdb=_0x4b2054;_0x59689e?this[_0x29fbdb(0x1c3)]=!0x0:this[_0x29fbdb(0x1c3)]&&this[_0x29fbdb(0x1f9)][_0x29fbdb(0x1d7)]();}[_0x4b2054(0x1cf)](_0xaf0c30,_0x88bb8b){const _0x3c2b8a=_0x4b2054;this[_0x3c2b8a(0x1d0)][_0x3c2b8a(0x1cf)](_0xaf0c30,_0x88bb8b);}[_0x4b2054(0x1f8)](_0x3f8ca4){const _0x462866=_0x4b2054;this[_0x462866(0x1d0)][_0x462866(0x1f8)](_0x3f8ca4);}[_0x4b2054(0x1e6)](_0x46e240,_0x32ae25){const _0x555420=_0x4b2054;this[_0x555420(0x1d0)][_0x555420(0x1e6)](_0x46e240,_0x32ae25);}[_0x4b2054(0x1d9)](_0xbec87){const _0x454c87=_0x4b2054;this[_0x454c87(0x1f9)][_0x454c87(0x1d9)](_0xbec87);}[_0x4b2054(0x20c)](_0x120253){const _0x3347bc=_0x4b2054;this[_0x3347bc(0x1d0)][_0x3347bc(0x20c)](_0x120253);}[_0x4b2054(0x1ca)](){const _0x14320d=_0x4b2054;this[_0x14320d(0x1d0)][_0x14320d(0x1e9)]();}[_0x4b2054(0x1d8)](){const _0x2618f8=_0x4b2054;this[_0x2618f8(0x1d0)][_0x2618f8(0x202)]();}[_0x4b2054(0x1ed)](_0x30cfb5,_0x4b2678,_0xe56d33){const _0x490482=_0x4b2054;this[_0x490482(0x1d0)][_0x490482(0x1ed)](_0x30cfb5,_0x4b2678,_0xe56d33);}[_0x4b2054(0x204)](_0xfcc63d){const _0x37ce56=_0x4b2054;this[_0x37ce56(0x1fa)][_0x37ce56(0x204)](_0xfcc63d);}[_0x4b2054(0x1d1)](_0xa31bc7){const _0x53cf9f=_0x4b2054;this[_0x53cf9f(0x1fa)][_0x53cf9f(0x1d1)](_0xa31bc7);}[_0x4b2054(0x1de)](){const _0x7aeffe=_0x4b2054;this[_0x7aeffe(0x1f9)][_0x7aeffe(0x20a)]();}[_0x4b2054(0x1c4)](_0x1eadde){const _0x56a11e=_0x4b2054;this[_0x56a11e(0x1d0)][_0x56a11e(0x1c4)](_0x1eadde);}[_0x4b2054(0x1e8)](_0x36e1a6){const _0xe2f6c7=_0x4b2054;this[_0xe2f6c7(0x1f9)][_0xe2f6c7(0x1ff)](_0x36e1a6);}[_0x4b2054(0x1d2)](_0x146b76,_0x220693){const _0x3f15d7=_0x4b2054;this[_0x3f15d7(0x1fa)][_0x3f15d7(0x1d2)](_0x146b76,_0x220693);}[_0x4b2054(0x1ec)](_0x14ae75){const _0x39c680=_0x4b2054;_0x14ae75?(this[_0x39c680(0x1c7)]=!0x0,this[_0x39c680(0x1fa)][_0x39c680(0x1ec)](_0x14ae75)):this[_0x39c680(0x1c7)]=!0x1;}[_0x4b2054(0x207)](){const _0x5efd56=_0x4b2054;this[_0x5efd56(0x1fa)][_0x5efd56(0x207)]();}[_0x4b2054(0x1e7)](_0x39ff65){const _0x153c24=_0x4b2054;this[_0x153c24(0x1fa)][_0x153c24(0x1e7)](_0x39ff65);}[_0x4b2054(0x1df)](_0x1402b8,_0xd467b1,_0x50a5f5,_0x22fc7d){const _0x22a0d1=_0x4b2054;this[_0x22a0d1(0x1d0)][_0x22a0d1(0x1df)](_0x1402b8,_0xd467b1,_0x50a5f5,_0x22fc7d);}[_0x4b2054(0x1da)](_0x298182){const _0x5cd0da=_0x4b2054;this[_0x5cd0da(0x1d0)][_0x5cd0da(0x1da)](_0x298182);}[_0x4b2054(0x1d4)](_0x39ba21=!0x1){const _0x20b8b7=_0x4b2054;this[_0x20b8b7(0x1f9)][_0x20b8b7(0x1d7)](_0x39ba21);}[_0x4b2054(0x1ee)](_0x481460){const _0x9ee389=_0x4b2054;this[_0x9ee389(0x1f9)][_0x9ee389(0x208)][_0x9ee389(0x203)][_0x9ee389(0x20a)](),this[_0x9ee389(0x1f9)][_0x9ee389(0x208)][_0x9ee389(0x203)][_0x9ee389(0x1c6)]=_0x481460;}}class _s extends _0x489404{constructor(_0x577d9f){const _0x4064d1=_0x4b2054;super(_0x577d9f);const _0x6de4f6=new _0x23a1d5(_0x577d9f);_0x6de4f6[_0x4064d1(0x1e3)]({'label':_0xba7497(this[_0x4064d1(0x1dc)],_0x4064d1(0x1fe)),'withText':!0x0,'class':[_0x4064d1(0x1d3)],'tooltip':''}),_0x6de4f6[_0x4064d1(0x1ea)](_0x4064d1(0x201))['to'](this,_0x4064d1(0x212)),this[_0x4064d1(0x1c8)]({'tag':_0x4064d1(0x1cc),'attributes':{'class':['ck',_0x4064d1(0x1fb)]},'children':[{'tag':'p','children':[{'text':_0xba7497(this[_0x4064d1(0x1dc)],_0x4064d1(0x1ce))+'\x20'},_0x6de4f6]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1ec9d6=_0x21ba;(function(_0x155ae4,_0x4e8838){const _0x2a4363=_0x21ba,_0x262668=_0x155ae4();while(!![]){try{const _0x53e1c0=parseInt(_0x2a4363(0xfb))/0x1+-parseInt(_0x2a4363(0xf5))/0x2*(parseInt(_0x2a4363(0xe3))/0x3)+-parseInt(_0x2a4363(0xcf))/0x4+parseInt(_0x2a4363(0xe5))/0x5*(parseInt(_0x2a4363(0xee))/0x6)+-parseInt(_0x2a4363(0xe2))/0x7*(parseInt(_0x2a4363(0xf1))/0x8)+parseInt(_0x2a4363(0xfe))/0x9+parseInt(_0x2a4363(0x10a))/0xa;if(_0x53e1c0===_0x4e8838)break;else _0x262668['push'](_0x262668['shift']());}catch(_0x3727cb){_0x262668['push'](_0x262668['shift']());}}}(_0x3686,0xec18a));function _0x21ba(_0x4fd999,_0x421a59){const _0x3686ac=_0x3686();return _0x21ba=function(_0x21ba47,_0x27e458){_0x21ba47=_0x21ba47-0xbc;let _0x59a09c=_0x3686ac[_0x21ba47];return _0x59a09c;},_0x21ba(_0x4fd999,_0x421a59);}import{CKEditorError as _0x16a1f3,logWarning as _0x1f546b,scrollAncestorsToShowTarget as _0x4eaacc}from'ckeditor5/src/utils.js';import{View as _0x2e2776}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2d3c6e}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2c50c5}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x370201}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x16a3d7}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4ea8ef}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x20f0da}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x421741}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4b6116,SKELETON_DEFINITIONS as _0x570daa}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x39749d}from'../../aicore/ui/aispinner.js';function _0x3686(){const _0x3c0d18=['set','17342100ayKeKm','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','setLoadingMessage','_createFeedLoader','children','isVisible','scrollManager','_setupTemplate','markItemAsDone','ck-ai-chat__loader','forEach','_createSkeletonLoader','clear','updateSuggestionPartState','destroy','bindTemplate','hasItem','includes','map','updateContent','updateSuggestionItem','setSuggestionPartActive','isPending','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','user-message','ai-chat-feed-view-item-not-a-suggestion-item','custom-element','4876868ehWzPy','setPartActive','ck-ai-chat__feed__items','isLoadingSkeletonVisible','addItem','ck-hidden','_createLoaderChildren','createCollection','interaction-header','ai-reply','ck-ai-chat__loader-text','ck-ai-chat__feed','aiFeed','getItemIds','add','ai-chat-feed-view-item-not-a-reply-item','ai-suggestion-reply','stopAutoScroll','find','1617gygQep','1062069nMHVhj','updateWebSources','6675555CGZpBB','_createTemplateChildren','updatePartState','parentElement','start','remove','_createFeedItems','ai-chat-feed-view-item-not-found','updateReplyItem','6EgTJsC','markAsDone','loadingMessage','9752jxpxJV','div','startAutoScroll','bind','8aJsOmj','removeItem','filter','delegate','toggleLoadingSkeleton','scrollToSuggestion','373724ktzluT','getPartView','getItemById','3968127UZSAsT','isTrackChangesOn','render','setTemplate','extendTemplate','_bodyCollection','element','stop','updateSources','span','locale'];_0x3686=function(){return _0x3c0d18;};return _0x3686();}import{AIChatFeedCustomElementView as _0x142ab5}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2e2776{[_0x1ec9d6(0x10f)];[_0x1ec9d6(0x111)];[_0x1ec9d6(0x103)];constructor(_0x27318e,_0x4c9036){const _0x219f0d=_0x1ec9d6;super(_0x27318e),this[_0x219f0d(0x103)]=_0x4c9036,this[_0x219f0d(0x109)](_0x219f0d(0xc9),!0x1),this[_0x219f0d(0x109)](_0x219f0d(0xf0),''),this[_0x219f0d(0x109)](_0x219f0d(0xd2),!0x1),this[_0x219f0d(0x109)](_0x219f0d(0xff),!0x1),this[_0x219f0d(0x10f)]=this[_0x219f0d(0xd6)](),this[_0x219f0d(0x10f)][_0x219f0d(0xf8)](..._0x2d3c6e)['to'](this),this[_0x219f0d(0x112)]();}[_0x1ec9d6(0x100)](){const _0x207820=_0x1ec9d6;super[_0x207820(0x100)](),this[_0x207820(0x111)]=new _0x421741(this[_0x207820(0x104)]);}[_0x1ec9d6(0xc1)](){const _0x14ff36=_0x1ec9d6;super[_0x14ff36(0xc1)](),this[_0x14ff36(0x111)][_0x14ff36(0xc1)]();}[_0x1ec9d6(0xbf)](){const _0x35aad7=_0x1ec9d6;this[_0x35aad7(0x10f)][_0x35aad7(0xbf)]();}[_0x1ec9d6(0xd3)](_0x34e2cf,_0x432f8){const _0x4d3452=_0x1ec9d6;let _0x21e6ff;return _0x4d3452(0xd8)===_0x34e2cf?_0x21e6ff=new _0x370201(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]):_0x4d3452(0xdf)===_0x34e2cf?(_0x21e6ff=new _0x2c50c5(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]),_0x21e6ff[_0x4d3452(0xf4)](_0x4d3452(0xff))['to'](this)):_0x21e6ff=_0x4d3452(0xcc)===_0x34e2cf?new _0x16a3d7(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]):_0x4d3452(0xd7)===_0x34e2cf?new _0x20f0da(this[_0x4d3452(0x108)],_0x432f8):_0x4d3452(0xce)===_0x34e2cf?new _0x142ab5(_0x432f8):new _0x4ea8ef(_0x432f8),this[_0x4d3452(0x10f)][_0x4d3452(0xdd)](_0x21e6ff),_0x21e6ff;}async[_0x1ec9d6(0xed)]({id:_0x3f5edc,parsedContent:_0x439c25,renderingStrategy:_0x4a8b9f,abortSignal:_0x3b03d2}){const _0x44104e=_0x1ec9d6,_0x1f6065=this[_0x44104e(0xfd)](_0x3f5edc);if(!(_0x1f6065 instanceof _0x370201))throw new _0x16a1f3(_0x44104e(0xde),null,{'itemView':_0x1f6065,'id':_0x3f5edc,'parsedContent':_0x439c25});await _0x1f6065[_0x44104e(0xc6)]({'parsedContent':_0x439c25,'renderingStrategy':_0x4a8b9f,'abortSignal':_0x3b03d2});}async[_0x1ec9d6(0xe4)](_0x839e98,_0x66c2d7){const _0x47ddf3=_0x1ec9d6,_0x421667=this[_0x47ddf3(0xfd)](_0x839e98);if(_0x421667 instanceof _0x2c50c5)_0x421667[_0x47ddf3(0x106)](_0x66c2d7);else{if(!(_0x421667 instanceof _0x370201))throw new _0x16a1f3(_0x47ddf3(0xcb),null,{'itemView':_0x421667,'id':_0x839e98,'sources':_0x66c2d7});_0x421667[_0x47ddf3(0x106)](_0x66c2d7);}}async[_0x1ec9d6(0xc7)]({id:_0x245be2,parts:_0xd1a9b8,renderingStrategy:_0x189a27,abortSignal:_0x25a77b}){const _0x23e547=_0x1ec9d6,_0x38126a=this[_0x23e547(0xfd)](_0x245be2);if(!(_0x38126a instanceof _0x2c50c5))throw new _0x16a1f3(_0x23e547(0xcd),null,{'itemView':_0x38126a,'id':_0x245be2,'parts':_0xd1a9b8});await _0x38126a[_0x23e547(0xc6)]({'parts':_0xd1a9b8,'renderingStrategy':_0x189a27,'abortSignal':_0x25a77b});}[_0x1ec9d6(0xc0)]({id:_0x5dd999,index:_0x1af5b7,state:_0x112c69}){const _0x17aaa4=_0x1ec9d6,_0x46a9b5=this[_0x17aaa4(0xfd)](_0x5dd999);if(!(_0x46a9b5 instanceof _0x2c50c5))throw new _0x16a1f3(_0x17aaa4(0xcd),this,{'id':_0x5dd999});_0x46a9b5[_0x17aaa4(0xe7)](_0x1af5b7,_0x112c69);}[_0x1ec9d6(0xc8)]({id:_0x44edad,index:_0x4133ad,isActive:_0xa9c95d}){const _0x3b33a3=_0x1ec9d6,_0x2c8794=this[_0x3b33a3(0xfd)](_0x44edad);if(!(_0x2c8794 instanceof _0x2c50c5))throw new _0x16a1f3(_0x3b33a3(0xcd),this,{'id':_0x44edad});this[_0x3b33a3(0x10f)][_0x3b33a3(0xf7)](_0xf6a3e=>_0xf6a3e instanceof _0x2c50c5)[_0x3b33a3(0xbd)](_0xa2c27=>{const _0x27581d=_0x3b33a3;_0xa2c27[_0x27581d(0xd0)](!0x1);}),_0x2c8794[_0x3b33a3(0xd0)](_0x4133ad,_0xa9c95d);}[_0x1ec9d6(0x113)](_0x3d3ce7){const _0x39c236=_0x1ec9d6;this[_0x39c236(0xfd)](_0x3d3ce7)[_0x39c236(0xef)]();}[_0x1ec9d6(0xdc)](){const _0x4a6fdd=_0x1ec9d6;return this[_0x4a6fdd(0x10f)][_0x4a6fdd(0xc5)](_0x1d135a=>_0x1d135a[_0x4a6fdd(0x10c)]['id']);}[_0x1ec9d6(0xf6)](_0x507033){const _0x330d50=_0x1ec9d6;this[_0x330d50(0x10f)][_0x330d50(0xea)](this[_0x330d50(0xfd)](_0x507033));}[_0x1ec9d6(0xc3)](_0x1f398a){const _0x554854=_0x1ec9d6;return!!this[_0x554854(0x10f)][_0x554854(0xe1)](_0x3c9255=>_0x3c9255[_0x554854(0x10c)]['id'][_0x554854(0xc4)](_0x1f398a));}[_0x1ec9d6(0xfa)](_0x52270d,_0x5d3227){const _0x17b551=_0x1ec9d6,_0x5d1734=this[_0x17b551(0xfd)](_0x52270d);if(!(_0x5d1734 instanceof _0x2c50c5))return void _0x1f546b(_0x17b551(0x10b),{'replyId':_0x52270d,'partIndex':_0x5d3227});const _0x25c2b4=_0x5d1734[_0x17b551(0xfc)](_0x5d3227);_0x25c2b4?_0x4eaacc(_0x25c2b4[_0x17b551(0x104)],0x14,this[_0x17b551(0x104)][_0x17b551(0xe8)],!0x0,!0x0):_0x1f546b(_0x17b551(0xca),{'replyId':_0x52270d,'partIndex':_0x5d3227});}[_0x1ec9d6(0x112)](){const _0x5796c0=_0x1ec9d6;this[_0x5796c0(0x101)]({'tag':_0x5796c0(0xf2),'attributes':{'class':['ck',_0x5796c0(0xda)]},'children':this[_0x5796c0(0xe6)]()});}[_0x1ec9d6(0xe6)](){const _0x330cb1=_0x1ec9d6,_0x52a380=this[_0x330cb1(0xbe)]();return[this[_0x330cb1(0xeb)](),_0x52a380,this[_0x330cb1(0x10e)]()];}[_0x1ec9d6(0xbe)](){const _0x416e3f=_0x1ec9d6,_0x28baa2=new _0x4b6116(this[_0x416e3f(0x108)],_0x570daa[_0x416e3f(0xdb)]);return _0x28baa2[_0x416e3f(0x102)]({'attributes':{'class':[this[_0x416e3f(0xc2)]['if'](_0x416e3f(0xd2),_0x416e3f(0xd4),_0x483dcf=>!_0x483dcf)]}}),_0x28baa2;}[_0x1ec9d6(0xeb)](){const _0x70b1e0=_0x1ec9d6,_0x14226e=new _0x2e2776(this[_0x70b1e0(0x108)]);return _0x14226e[_0x70b1e0(0x101)]({'tag':_0x70b1e0(0xf2),'attributes':{'class':['ck',_0x70b1e0(0xd1),this[_0x70b1e0(0xc2)]['if'](_0x70b1e0(0xd2),_0x70b1e0(0xd4))]},'children':this[_0x70b1e0(0x10f)]}),_0x14226e;}[_0x1ec9d6(0x10e)](){const _0x5f1294=_0x1ec9d6,_0x5af40d=new _0x2e2776(this[_0x5f1294(0x108)]);return _0x5af40d[_0x5f1294(0x101)]({'tag':_0x5f1294(0xf2),'attributes':{'class':['ck',_0x5f1294(0xbc),this[_0x5f1294(0xc2)]['if'](_0x5f1294(0xc9),_0x5f1294(0xd4),_0x2d4bef=>!_0x2d4bef)]},'children':this[_0x5f1294(0xd5)]()}),_0x5af40d;}[_0x1ec9d6(0xd5)](){const _0x117742=_0x1ec9d6,_0x3b63dd=new _0x39749d();return _0x3b63dd[_0x117742(0x110)]=!0x0,[_0x3b63dd,{'tag':_0x117742(0x107),'attributes':{'class':['ck',_0x117742(0xd9)]},'children':[{'text':this[_0x117742(0xc2)]['to'](_0x117742(0xf0))}]}];}[_0x1ec9d6(0xfd)](_0x2b39c6){const _0x15f55b=_0x1ec9d6,_0x3f853e=this[_0x15f55b(0x10f)][_0x15f55b(0xe1)](_0x1b4cd4=>_0x1b4cd4[_0x15f55b(0x10c)]['id'][_0x15f55b(0xc4)](_0x2b39c6));if(!_0x3f853e)throw new _0x16a1f3(_0x15f55b(0xec),this,{'id':_0x2b39c6});return _0x3f853e;}[_0x1ec9d6(0x10d)](_0x560ec6){const _0x11862a=_0x1ec9d6;this[_0x11862a(0x109)](_0x11862a(0xf0),_0x560ec6);}[_0x1ec9d6(0xf9)](_0x29e5d3){const _0x5eb7d8=_0x1ec9d6;this[_0x5eb7d8(0x109)](_0x5eb7d8(0xd2),_0x29e5d3);}[_0x1ec9d6(0xf3)](){const _0x5a70c2=_0x1ec9d6;this[_0x5a70c2(0x111)][_0x5a70c2(0xe9)]();}[_0x1ec9d6(0xe0)](){const _0x6c033e=_0x1ec9d6;this[_0x6c033e(0x111)][_0x6c033e(0x105)]();}}
|
|
23
|
+
const _0x37a5bd=_0x3857;(function(_0x3800e0,_0x28cf15){const _0xb063c=_0x3857,_0x37814e=_0x3800e0();while(!![]){try{const _0x2c215b=-parseInt(_0xb063c(0x121))/0x1*(parseInt(_0xb063c(0x125))/0x2)+-parseInt(_0xb063c(0x140))/0x3+-parseInt(_0xb063c(0x15b))/0x4*(-parseInt(_0xb063c(0x13b))/0x5)+-parseInt(_0xb063c(0x120))/0x6+-parseInt(_0xb063c(0x147))/0x7*(parseInt(_0xb063c(0x163))/0x8)+-parseInt(_0xb063c(0x11d))/0x9*(-parseInt(_0xb063c(0x122))/0xa)+parseInt(_0xb063c(0x15d))/0xb*(parseInt(_0xb063c(0x119))/0xc);if(_0x2c215b===_0x28cf15)break;else _0x37814e['push'](_0x37814e['shift']());}catch(_0x2f4e18){_0x37814e['push'](_0x37814e['shift']());}}}(_0x1d8d,0x63aa4));import{CKEditorError as _0x26a3f9,logWarning as _0x53aa83,scrollAncestorsToShowTarget as _0x19ef3f}from'ckeditor5/src/utils.js';function _0x3857(_0x1ea4b8,_0x5f20d){const _0x1d8dc0=_0x1d8d();return _0x3857=function(_0x3857b9,_0x405640){_0x3857b9=_0x3857b9-0x10c;let _0x5741c8=_0x1d8dc0[_0x3857b9];return _0x5741c8;},_0x3857(_0x1ea4b8,_0x5f20d);}import{View as _0x318f78}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x800ac9}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x1da4f3}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x509507}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3c2cf5}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x554ebb}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xd6d86c}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xc7e12e}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x5b418c,SKELETON_DEFINITIONS as _0x9a9548}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x40c709}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x16b76b}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';function _0x1d8d(){const _0x2b800c=['_createLoaderChildren','10PWUYZV','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','_createTemplateChildren','_setupTemplate','createCollection','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__loader','updateSuggestionItem','addItem','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','add','forEach','scrollManager','user-message','element','remove','ai-suggestion-reply','start','ai-chat-feed-view-item-not-a-reply-item','aiFeed','delegate','ck-ai-chat__feed__items','90QnyHuM','locale','interaction-header','stop','toggleLoadingSkeleton','821967fKseMg','ai-chat-feed-view-item-not-found','bindTemplate','updatePartState','_bodyCollection','ai-reply','extendTemplate','459641urnUPg','setSuggestionPartActive','custom-element','_createFeedItems','bind','find','updateWebSources','set','filter','removeItem','ck-ai-chat__feed','markItemAsDone','markAsDone','includes','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','children','updateSuggestionPartState','div','stopAutoScroll','updateSources','110988jCAFIS','setTemplate','5060MYjXet','map','_createSkeletonLoader','getItemById','scrollToSuggestion','hasItem','40sQaVSP','setLoadingMessage','isVisible','loadingMessage','clear','setPartActive','getItemIds','ck-hidden','isTrackChangesOn','startAutoScroll','getPartView','ck-ai-chat__loader-text','options','_createFeedLoader','parentElement','isPending','25284yOdCBL','destroy','isLoadingSkeletonVisible','updateReplyItem','621MIvtjY','span','updateContent','210978qQgLXo','142637oQDIbV','42060SdmyaQ','render'];_0x1d8d=function(){return _0x2b800c;};return _0x1d8d();}export class AIChatFeedView extends _0x318f78{[_0x37a5bd(0x156)];[_0x37a5bd(0x131)];[_0x37a5bd(0x144)];constructor(_0x2f4fef,_0x5688e6){const _0x5821fa=_0x37a5bd;super(_0x2f4fef),this[_0x5821fa(0x144)]=_0x5688e6,this[_0x5821fa(0x14e)](_0x5821fa(0x118),!0x1),this[_0x5821fa(0x14e)](_0x5821fa(0x10c),''),this[_0x5821fa(0x14e)](_0x5821fa(0x11b),!0x1),this[_0x5821fa(0x14e)](_0x5821fa(0x111),!0x1),this[_0x5821fa(0x156)]=this[_0x5821fa(0x129)](),this[_0x5821fa(0x156)][_0x5821fa(0x139)](..._0x800ac9)['to'](this),this[_0x5821fa(0x128)]();}[_0x37a5bd(0x123)](){const _0x5c666e=_0x37a5bd;super[_0x5c666e(0x123)](),this[_0x5c666e(0x131)]=new _0xc7e12e(this[_0x5c666e(0x133)]);}[_0x37a5bd(0x11a)](){const _0x229646=_0x37a5bd;super[_0x229646(0x11a)](),this[_0x229646(0x131)][_0x229646(0x11a)]();}[_0x37a5bd(0x10d)](){const _0x1d8fea=_0x37a5bd;this[_0x1d8fea(0x156)][_0x1d8fea(0x10d)]();}[_0x37a5bd(0x12d)](_0x586576,_0x49d125){const _0x24b91e=_0x37a5bd;let _0x1c0942;return _0x24b91e(0x145)===_0x586576?_0x1c0942=new _0x509507(this[_0x24b91e(0x13c)],_0x49d125,this[_0x24b91e(0x144)]):_0x24b91e(0x135)===_0x586576?(_0x1c0942=new _0x1da4f3(this[_0x24b91e(0x13c)],_0x49d125,this[_0x24b91e(0x144)]),_0x1c0942[_0x24b91e(0x14b)](_0x24b91e(0x111))['to'](this)):_0x1c0942=_0x24b91e(0x132)===_0x586576?new _0x3c2cf5(this[_0x24b91e(0x13c)],_0x49d125,this[_0x24b91e(0x144)]):_0x24b91e(0x13d)===_0x586576?new _0xd6d86c(this[_0x24b91e(0x13c)],_0x49d125):_0x24b91e(0x149)===_0x586576?new _0x16b76b(_0x49d125):new _0x554ebb(_0x49d125),this[_0x24b91e(0x156)][_0x24b91e(0x12f)](_0x1c0942),_0x1c0942;}async[_0x37a5bd(0x11c)]({id:_0x42fc8c,parsedContent:_0x1a730c,renderingStrategy:_0x642a27,abortSignal:_0xf5ae5f}){const _0x343dea=_0x37a5bd,_0x5c4a89=this[_0x343dea(0x160)](_0x42fc8c);if(!(_0x5c4a89 instanceof _0x509507))throw new _0x26a3f9(_0x343dea(0x137),null,{'itemView':_0x5c4a89,'id':_0x42fc8c,'parsedContent':_0x1a730c});await _0x5c4a89[_0x343dea(0x11f)]({'parsedContent':_0x1a730c,'renderingStrategy':_0x642a27,'abortSignal':_0xf5ae5f});}async[_0x37a5bd(0x14d)](_0x418f8b,_0x425aa2){const _0x448f70=_0x37a5bd,_0x427f80=this[_0x448f70(0x160)](_0x418f8b);if(_0x427f80 instanceof _0x1da4f3)_0x427f80[_0x448f70(0x15a)](_0x425aa2);else{if(!(_0x427f80 instanceof _0x509507))throw new _0x26a3f9(_0x448f70(0x126),null,{'itemView':_0x427f80,'id':_0x418f8b,'sources':_0x425aa2});_0x427f80[_0x448f70(0x15a)](_0x425aa2);}}async[_0x37a5bd(0x12c)]({id:_0x419605,parts:_0x2c512e,renderingStrategy:_0x12d9ba,abortSignal:_0x33af34}){const _0x337a71=_0x37a5bd,_0x52598b=this[_0x337a71(0x160)](_0x419605);if(!(_0x52598b instanceof _0x1da4f3))throw new _0x26a3f9(_0x337a71(0x12a),null,{'itemView':_0x52598b,'id':_0x419605,'parts':_0x2c512e});await _0x52598b[_0x337a71(0x11f)]({'parts':_0x2c512e,'renderingStrategy':_0x12d9ba,'abortSignal':_0x33af34});}[_0x37a5bd(0x157)]({id:_0xa446d1,index:_0x5e02e6,state:_0x19183b}){const _0x112484=_0x37a5bd,_0x5b5a63=this[_0x112484(0x160)](_0xa446d1);if(!(_0x5b5a63 instanceof _0x1da4f3))throw new _0x26a3f9(_0x112484(0x12a),this,{'id':_0xa446d1});_0x5b5a63[_0x112484(0x143)](_0x5e02e6,_0x19183b);}[_0x37a5bd(0x148)]({id:_0x2affc2,index:_0x51d8ed,isActive:_0x46f4bc}){const _0x306eda=_0x37a5bd,_0x126579=this[_0x306eda(0x160)](_0x2affc2);if(!(_0x126579 instanceof _0x1da4f3))throw new _0x26a3f9(_0x306eda(0x12a),this,{'id':_0x2affc2});this[_0x306eda(0x156)][_0x306eda(0x14f)](_0x1f1c7c=>_0x1f1c7c instanceof _0x1da4f3)[_0x306eda(0x130)](_0xb2b978=>{const _0x12a58b=_0x306eda;_0xb2b978[_0x12a58b(0x10e)](!0x1);}),_0x126579[_0x306eda(0x10e)](_0x51d8ed,_0x46f4bc);}[_0x37a5bd(0x152)](_0x444322){const _0x423d30=_0x37a5bd;this[_0x423d30(0x160)](_0x444322)[_0x423d30(0x153)]();}[_0x37a5bd(0x10f)](){const _0x175c54=_0x37a5bd;return this[_0x175c54(0x156)][_0x175c54(0x15e)](_0x27d4e9=>_0x27d4e9[_0x175c54(0x115)]['id']);}[_0x37a5bd(0x150)](_0x5c3671){const _0x4a952d=_0x37a5bd;this[_0x4a952d(0x156)][_0x4a952d(0x134)](this[_0x4a952d(0x160)](_0x5c3671));}[_0x37a5bd(0x162)](_0x334cca){const _0x452d24=_0x37a5bd;return!!this[_0x452d24(0x156)][_0x452d24(0x14c)](_0x4166c8=>_0x4166c8[_0x452d24(0x115)]['id'][_0x452d24(0x154)](_0x334cca));}[_0x37a5bd(0x161)](_0x29be0c,_0x76442e){const _0x242752=_0x37a5bd,_0x22ef1c=this[_0x242752(0x160)](_0x29be0c);if(!(_0x22ef1c instanceof _0x1da4f3))return void _0x53aa83(_0x242752(0x155),{'replyId':_0x29be0c,'partIndex':_0x76442e});const _0x24ce3e=_0x22ef1c[_0x242752(0x113)](_0x76442e);_0x24ce3e?_0x19ef3f(_0x24ce3e[_0x242752(0x133)],0x14,this[_0x242752(0x133)][_0x242752(0x117)],!0x0,!0x0):_0x53aa83(_0x242752(0x12e),{'replyId':_0x29be0c,'partIndex':_0x76442e});}[_0x37a5bd(0x128)](){const _0x382d39=_0x37a5bd;this[_0x382d39(0x15c)]({'tag':_0x382d39(0x158),'attributes':{'class':['ck',_0x382d39(0x151)]},'children':this[_0x382d39(0x127)]()});}[_0x37a5bd(0x127)](){const _0x39925f=_0x37a5bd,_0xcd8fba=this[_0x39925f(0x15f)]();return[this[_0x39925f(0x14a)](),_0xcd8fba,this[_0x39925f(0x116)]()];}[_0x37a5bd(0x15f)](){const _0x5f48c1=_0x37a5bd,_0x5e52c6=new _0x5b418c(this[_0x5f48c1(0x13c)],_0x9a9548[_0x5f48c1(0x138)]);return _0x5e52c6[_0x5f48c1(0x146)]({'attributes':{'class':[this[_0x5f48c1(0x142)]['if'](_0x5f48c1(0x11b),_0x5f48c1(0x110),_0x5e9c40=>!_0x5e9c40)]}}),_0x5e52c6;}[_0x37a5bd(0x14a)](){const _0x25cb30=_0x37a5bd,_0x4a4ad4=new _0x318f78(this[_0x25cb30(0x13c)]);return _0x4a4ad4[_0x25cb30(0x15c)]({'tag':_0x25cb30(0x158),'attributes':{'class':['ck',_0x25cb30(0x13a),this[_0x25cb30(0x142)]['if'](_0x25cb30(0x11b),_0x25cb30(0x110))]},'children':this[_0x25cb30(0x156)]}),_0x4a4ad4;}[_0x37a5bd(0x116)](){const _0x21fa2f=_0x37a5bd,_0x5a7c0c=new _0x318f78(this[_0x21fa2f(0x13c)]);return _0x5a7c0c[_0x21fa2f(0x15c)]({'tag':_0x21fa2f(0x158),'attributes':{'class':['ck',_0x21fa2f(0x12b),this[_0x21fa2f(0x142)]['if'](_0x21fa2f(0x118),_0x21fa2f(0x110),_0x1220f5=>!_0x1220f5)]},'children':this[_0x21fa2f(0x124)]()}),_0x5a7c0c;}[_0x37a5bd(0x124)](){const _0x185c77=_0x37a5bd,_0x41e1df=new _0x40c709();return _0x41e1df[_0x185c77(0x165)]=!0x0,[_0x41e1df,{'tag':_0x185c77(0x11e),'attributes':{'class':['ck',_0x185c77(0x114)]},'children':[{'text':this[_0x185c77(0x142)]['to'](_0x185c77(0x10c))}]}];}[_0x37a5bd(0x160)](_0x50cac8){const _0x36f996=_0x37a5bd,_0x56c8e5=this[_0x36f996(0x156)][_0x36f996(0x14c)](_0xda1508=>_0xda1508[_0x36f996(0x115)]['id'][_0x36f996(0x154)](_0x50cac8));if(!_0x56c8e5)throw new _0x26a3f9(_0x36f996(0x141),this,{'id':_0x50cac8});return _0x56c8e5;}[_0x37a5bd(0x164)](_0x752020){const _0x54f0ef=_0x37a5bd;this[_0x54f0ef(0x14e)](_0x54f0ef(0x10c),_0x752020);}[_0x37a5bd(0x13f)](_0x2fb055){const _0x365972=_0x37a5bd;this[_0x365972(0x14e)](_0x365972(0x11b),_0x2fb055);}[_0x37a5bd(0x112)](){const _0x5a19dc=_0x37a5bd;this[_0x5a19dc(0x131)][_0x5a19dc(0x136)]();}[_0x37a5bd(0x159)](){const _0x3600b3=_0x37a5bd;this[_0x3600b3(0x131)][_0x3600b3(0x13e)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xb602(_0x4ffead,_0x14f5a1){const _0x3337a4=_0x3337();return _0xb602=function(_0xb602b5,_0x6c9157){_0xb602b5=_0xb602b5-0x153;let _0x5e48c3=_0x3337a4[_0xb602b5];return _0x5e48c3;},_0xb602(_0x4ffead,_0x14f5a1);}const _0x3d0e04=_0xb602;(function(_0x3e5198,_0x1ec8ff){const _0x2e232e=_0xb602,_0x407a50=_0x3e5198();while(!![]){try{const _0xda1498=parseInt(_0x2e232e(0x15a))/0x1+-parseInt(_0x2e232e(0x164))/0x2*(parseInt(_0x2e232e(0x15d))/0x3)+parseInt(_0x2e232e(0x155))/0x4+-parseInt(_0x2e232e(0x168))/0x5+-parseInt(_0x2e232e(0x166))/0x6+parseInt(_0x2e232e(0x15c))/0x7+parseInt(_0x2e232e(0x159))/0x8;if(_0xda1498===_0x1ec8ff)break;else _0x407a50['push'](_0x407a50['shift']());}catch(_0x361b40){_0x407a50['push'](_0x407a50['shift']());}}}(_0x3337,0xc5b48));import{ButtonView as _0x47cbe2,FormHeaderView as _0x57a120}from'ckeditor5/src/ui.js';function _0x3337(){const _0x23cb2c=['conversationStartButton','children','3859360GgxZoS','138947NiRorU','execute','7503741afgssX','177hiNbld','_createStartConversationButton','resizeButton','ck-ai-header\x20ck-ai-header_chat','isMaximized','ck-ai-chat__start-conversation','locale','29198zNghHv','AI_CHAT_HEADING','698754jiiNST','startConversation','6743935dBBMDb','AI_CHAT_LABEL_NEW_CHAT','fire','set','5772228WUGqkP','add'];_0x3337=function(){return _0x23cb2c;};return _0x3337();}import{IconPlus as _0x4ae216,IconAIChat as _0x3ca299}from'ckeditor5/src/icons.js';import{getTranslation as _0x203f2e}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2b666e}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x57a120{[_0x3d0e04(0x157)];[_0x3d0e04(0x15f)];constructor(_0x2ddd5d,_0x1d7512){const _0x42fe16=_0x3d0e04;super(_0x2ddd5d,{'label':_0x203f2e(_0x2ddd5d,_0x42fe16(0x165)),'class':_0x42fe16(0x160),'icon':_0x3ca299}),this[_0x42fe16(0x154)](_0x42fe16(0x161),!0x1),this[_0x42fe16(0x157)]=this[_0x42fe16(0x15e)](_0x2ddd5d),this[_0x42fe16(0x158)][_0x42fe16(0x156)](this[_0x42fe16(0x157)]),_0x1d7512&&(this[_0x42fe16(0x15f)]=_0x2b666e(_0x2ddd5d,this),this[_0x42fe16(0x158)][_0x42fe16(0x156)](this[_0x42fe16(0x15f)]));}[_0x3d0e04(0x15e)](_0x30976d){const _0x2efc89=_0x3d0e04,_0x2e0652=new _0x47cbe2(_0x30976d);return _0x2e0652[_0x2efc89(0x154)]({'label':_0x203f2e(this[_0x2efc89(0x163)],_0x2efc89(0x169)),'withText':!0x0,'icon':_0x4ae216,'class':_0x2efc89(0x162)}),_0x2e0652['on'](_0x2efc89(0x15b),()=>{const _0x29a520=_0x2efc89;this[_0x29a520(0x153)](_0x29a520(0x167));}),_0x2e0652;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x512bda=_0x55d8;(function(_0x6ea0c8,_0x88338){var _0x566399=_0x55d8,_0x387314=_0x6ea0c8();while(!![]){try{var _0xfb1494=-parseInt(_0x566399(0xbf))/0x1+parseInt(_0x566399(0xaf))/0x2*(-parseInt(_0x566399(0xad))/0x3)+parseInt(_0x566399(0xaa))/0x4*(-parseInt(_0x566399(0xc5))/0x5)+parseInt(_0x566399(0xbd))/0x6+parseInt(_0x566399(0xb7))/0x7+-parseInt(_0x566399(0xb5))/0x8*(parseInt(_0x566399(0xac))/0x9)+parseInt(_0x566399(0xab))/0xa*(parseInt(_0x566399(0xb1))/0xb);if(_0xfb1494===_0x88338)break;else _0x387314['push'](_0x387314['shift']());}catch(_0x82ba1){_0x387314['push'](_0x387314['shift']());}}}(_0x41aa,0xb79f5));import{View as _0x6f65d9,BodyCollection as _0x2b18c8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4ae915}from'../utils/eventnames.js';import{AIChatFeedView as _0x19f001}from'./aichatfeedview.js';function _0x41aa(){var _0x5c9e80=['ck-rounded-corners','1037787aLxBqJ','populateSourceResourceBalloon','closeSourceResourceBalloon','detachFromDom','chatControls','chatHeader','17925RLlvML','chatFeed','attachToDom','224HqQJLA','5300TaGQPu','72fpGlve','6fwxhXl','ck-ai-chat','425828ciMPcw','setTemplate','28391dIhmCt','ck-reset_all','chatDisclaimer','div','1164200BWZHvu','contextResourcesSearchInputVisibleFrom','6088824gXNnZY','uiLanguageDirection','_bodyCollection','delegate','destroy','showResizeButton','8057580dczUAm'];_0x41aa=function(){return _0x5c9e80;};return _0x41aa();}import{AIChatControlsView as _0x4de18b}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2ffd4d}from'./aichatheaderview.js';function _0x55d8(_0x3d480b,_0x4b6892){var _0x41aa78=_0x41aa();return _0x55d8=function(_0x55d8f7,_0x1c4278){_0x55d8f7=_0x55d8f7-0xa8;var _0x2d0a3e=_0x41aa78[_0x55d8f7];return _0x2d0a3e;},_0x55d8(_0x3d480b,_0x4b6892);}import{AIDisclaimerView as _0x444bc6}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x6f65d9{[_0x512bda(0xc4)];[_0x512bda(0xa8)];[_0x512bda(0xc3)];[_0x512bda(0xb3)];[_0x512bda(0xb9)];constructor(_0x5de140,_0x3dc56c){var _0x3efbf2=_0x512bda;super(_0x5de140),this[_0x3efbf2(0xb9)]=new _0x2b18c8(_0x5de140),this[_0x3efbf2(0xb9)][_0x3efbf2(0xa9)](),this[_0x3efbf2(0xc4)]=new _0x2ffd4d(_0x5de140,_0x3dc56c[_0x3efbf2(0xbc)]),this[_0x3efbf2(0xc4)][_0x3efbf2(0xba)](..._0x4ae915)['to'](this),this[_0x3efbf2(0xa8)]=new _0x19f001(_0x5de140,this[_0x3efbf2(0xb9)]),this[_0x3efbf2(0xa8)][_0x3efbf2(0xba)](..._0x4ae915)['to'](this),this[_0x3efbf2(0xc3)]=new _0x4de18b(_0x5de140,{'bodyCollection':this[_0x3efbf2(0xb9)],'contextResourcesSearchInputVisibleFrom':_0x3dc56c[_0x3efbf2(0xb6)]}),this[_0x3efbf2(0xc3)][_0x3efbf2(0xba)](..._0x4ae915)['to'](this),this[_0x3efbf2(0xb3)]=new _0x444bc6(_0x5de140),this[_0x3efbf2(0xb0)]({'tag':_0x3efbf2(0xb4),'attributes':{'class':['ck',_0x3efbf2(0xb2),_0x3efbf2(0xae),_0x3efbf2(0xbe)],'dir':_0x5de140[_0x3efbf2(0xb8)]},'children':[this[_0x3efbf2(0xc4)],this[_0x3efbf2(0xa8)],this[_0x3efbf2(0xc3)],this[_0x3efbf2(0xb3)]]});}[_0x512bda(0xc0)](_0x17aff5,_0x296506,_0x5c5e0a,_0x4a5535){var _0x91f35e=_0x512bda;this[_0x91f35e(0xc3)][_0x91f35e(0xc0)](_0x17aff5,_0x296506,_0x5c5e0a,_0x4a5535);}[_0x512bda(0xc1)](_0x49bd0b){var _0x4035b0=_0x512bda;this[_0x4035b0(0xc3)][_0x4035b0(0xc1)](_0x49bd0b);}[_0x512bda(0xbb)](){var _0x38e840=_0x512bda;this[_0x38e840(0xb9)][_0x38e840(0xc2)](),super[_0x38e840(0xbb)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x25cc(_0x425b75,_0x8f406e){const _0x50d263=_0x50d2();return _0x25cc=function(_0x25ccab,_0x149f48){_0x25ccab=_0x25ccab-0x1d7;let _0x4828f3=_0x50d263[_0x25ccab];return _0x4828f3;},_0x25cc(_0x425b75,_0x8f406e);}const _0xac3581=_0x25cc;(function(_0x39a343,_0x47b81c){const _0x19d980=_0x25cc,_0x498ffb=_0x39a343();while(!![]){try{const _0xfcc4e8=-parseInt(_0x19d980(0x24c))/0x1*(parseInt(_0x19d980(0x206))/0x2)+-parseInt(_0x19d980(0x24e))/0x3*(parseInt(_0x19d980(0x208))/0x4)+parseInt(_0x19d980(0x20a))/0x5+parseInt(_0x19d980(0x24d))/0x6*(parseInt(_0x19d980(0x1db))/0x7)+-parseInt(_0x19d980(0x202))/0x8+parseInt(_0x19d980(0x239))/0x9+parseInt(_0x19d980(0x25f))/0xa;if(_0xfcc4e8===_0x47b81c)break;else _0x498ffb['push'](_0x498ffb['shift']());}catch(_0x2263a1){_0x498ffb['push'](_0x498ffb['shift']());}}}(_0x50d2,0xda93b));import{View as _0x439f7a,BalloonPanelView as _0x1e3514,ButtonView as _0x4d9406,clickOutsideHandler as _0x4dd8d8}from'ckeditor5/src/ui.js';import{Collection as _0x1fc7b9}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0xac3581(0x209);function _0x50d2(){const _0x5bdbd0=['content','_calculateOverflowInContainer','calculationContainer','zIndex','undefined','controlsButton','overflowChips','pop','execute','label','children','render','+\x201','createElement','remove','length','hidden','_createShowMoreBalloonPanelView','forEach','block\x20!important','_createShowMoreButton','14216880aBBWbn','block','classList','cloneNode','24SonAGr','add','376OBYCjg','300px','1755325wgfqBQ','_createCalculationContainer','offsetWidth','showMoreBalloon','show','button','_checkAndHandleOverflow','0px','_overflowChips','-9999px','maxVisibleRows','isIntersecting','clear','clientWidth','_containerElement','_distributeChips','none','visibility','_updateBalloonContent','pin','includes','from','_ancestorsToRestore','getBoundingClientRect','innerWidth','innerHeight','innerHTML','_renderChipsAndCountRows','_restoreAncestorVisibility','style','_visibleChips','border-box','isConnected','abs','_showMoreBalloonPanelView','cssClasses','_updateOverflowUI','_createShowMoreButtonView','element','showMoreButton','observe','toLowerCase','hideBalloonPanel','clientHeight','destroy','position','width','2860218LWzIdt','rowDetectionTolerance','push','_intersectionObserver','_createContainerElements','_pendingCalculation','isVisible','className','visible\x20!important','_bodyCollection','_parentView','_showMoreButtonView','getComputedStyle','hide','bottom','50px','visible','_testButtonFit','absolute','60139UfEGno','8723454mjnIXz','3609lsKCUk','_applyOverflowResults','_updateShowMoreButtonVisibility','div','auto','ck-calculation-container','right','_handleShowMoreButtonClick','overflowContainer','left','disconnect','textContent','querySelector','extendTemplate','_makeAncestorsVisible','height','_isContainerVisible','13843750PqxDKt','_applyCalculationStyles','.ck-ai-chat','filter','pointerEvents','showMoreLabelPrefix','documentElement','tagName','disableAnimationOnEnter','_createMockButton','isOn','some','_calculateContainerWidth','body','slice','_findTargetContainer','7MFYufO','reorganizeChips','opacity','showMoreButtonView','_locale','setTemplate','appendChild','set','_setupVisibilityObserver','_config','parentElement','_targetContainer','showBalloonPanel','display','boxSizing','_repinBalloonPanel','top','setContainerElement'];_0x50d2=function(){return _0x5bdbd0;};return _0x50d2();}export class AIChatChipsOverflowManager{[_0xac3581(0x1df)];[_0xac3581(0x1e4)];[_0xac3581(0x228)];[_0xac3581(0x212)];[_0xac3581(0x244)]=null;[_0xac3581(0x22c)]=null;[_0xac3581(0x218)]=null;[_0xac3581(0x242)];[_0xac3581(0x243)]=null;[_0xac3581(0x23c)]=null;[_0xac3581(0x23e)]=!0x1;constructor(_0x23b27e,_0x24ec34,_0x4f4241,_0x5c0a60,_0x23b31e){const _0x2427c9=_0xac3581;this[_0x2427c9(0x1df)]=_0x23b27e,this[_0x2427c9(0x228)]=_0x24ec34,this[_0x2427c9(0x1e4)]={...hn,..._0x4f4241,'cssClasses':{'controlsButton':'','calculationContainer':_0x2427c9(0x253),..._0x4f4241[_0x2427c9(0x22d)]}},this[_0x2427c9(0x212)]=new _0x1fc7b9(),this[_0x2427c9(0x242)]=_0x5c0a60,this[_0x2427c9(0x243)]=_0x23b31e||null;}[_0xac3581(0x1ec)](_0xf35a19){const _0x5743b1=_0xac3581;this[_0x5743b1(0x23c)]&&(this[_0x5743b1(0x23c)][_0x5743b1(0x258)](),this[_0x5743b1(0x23c)]=null),this[_0x5743b1(0x218)]=_0xf35a19,this[_0x5743b1(0x1e3)]();}get[_0xac3581(0x1de)](){const _0x5ebc69=_0xac3581;return this[_0x5ebc69(0x244)];}get[_0xac3581(0x1f3)](){const _0x547eba=_0xac3581;return this[_0x547eba(0x212)];}[_0xac3581(0x1dc)](){requestAnimationFrame(()=>{const _0x477ec0=_0x25cc;this[_0x477ec0(0x210)]();});}[_0xac3581(0x1e7)](){const _0x4c35ee=_0xac3581;this[_0x4c35ee(0x244)]&&this[_0x4c35ee(0x22c)]&&(this[_0x4c35ee(0x21c)](),this[_0x4c35ee(0x244)][_0x4c35ee(0x269)]=!0x0,this[_0x4c35ee(0x22c)][_0x4c35ee(0x20e)](),this[_0x4c35ee(0x22c)][_0x4c35ee(0x21d)]({'target':this[_0x4c35ee(0x244)][_0x4c35ee(0x230)],'limiter':document[_0x4c35ee(0x25a)](_0x4c35ee(0x261))}));}[_0xac3581(0x234)](){const _0xce38c1=_0xac3581;this[_0xce38c1(0x244)]&&this[_0xce38c1(0x22c)]&&(this[_0xce38c1(0x244)][_0xce38c1(0x269)]=!0x1,this[_0xce38c1(0x22c)][_0xce38c1(0x246)]());}[_0xac3581(0x216)](){const _0x482f0b=_0xac3581;this[_0x482f0b(0x212)][_0x482f0b(0x216)](),this[_0x482f0b(0x234)](),this[_0x482f0b(0x250)](),this[_0x482f0b(0x244)]&&(this[_0x482f0b(0x244)][_0x482f0b(0x1f6)]=''),this[_0x482f0b(0x22c)]&&this[_0x482f0b(0x22c)][_0x482f0b(0x1ed)][_0x482f0b(0x216)]();}[_0xac3581(0x236)](){const _0x28b5dd=_0xac3581;this[_0x28b5dd(0x23c)]&&(this[_0x28b5dd(0x23c)][_0x28b5dd(0x258)](),this[_0x28b5dd(0x23c)]=null),this[_0x28b5dd(0x244)]&&(this[_0x28b5dd(0x244)][_0x28b5dd(0x236)](),this[_0x28b5dd(0x244)]=null),this[_0x28b5dd(0x22c)]&&(this[_0x28b5dd(0x22c)][_0x28b5dd(0x236)](),this[_0x28b5dd(0x22c)]=null);}[_0xac3581(0x210)](){const _0x1ff3b1=_0xac3581;if(!this[_0x1ff3b1(0x218)])return;if(!this[_0x1ff3b1(0x25e)]())return void(this[_0x1ff3b1(0x23e)]=!0x0);this[_0x1ff3b1(0x23e)]=!0x1;const _0x34adce=[...this[_0x1ff3b1(0x228)],...this[_0x1ff3b1(0x212)]],_0x592bab=this[_0x1ff3b1(0x20b)](),_0x97ffa3=this[_0x1ff3b1(0x1ee)](_0x592bab,_0x34adce),_0x53e705=_0x592bab[_0x1ff3b1(0x220)];_0x53e705&&this[_0x1ff3b1(0x226)](_0x53e705),_0x592bab[_0x1ff3b1(0x1fb)](),this[_0x1ff3b1(0x24f)](_0x34adce,_0x97ffa3);}[_0xac3581(0x201)](){const _0x3030d3=_0xac3581;this[_0x3030d3(0x244)]=this[_0x3030d3(0x22f)](),this[_0x3030d3(0x22c)]=this[_0x3030d3(0x1fe)](),this[_0x3030d3(0x244)][_0x3030d3(0x1f8)](),this[_0x3030d3(0x218)][_0x3030d3(0x1e1)](this[_0x3030d3(0x244)][_0x3030d3(0x230)]),this[_0x3030d3(0x244)]['on'](_0x3030d3(0x1f5),()=>{const _0x23ebf4=_0x3030d3;this[_0x23ebf4(0x255)]();}),_0x4dd8d8({'emitter':this[_0x3030d3(0x22c)],'contextElements':[this[_0x3030d3(0x22c)][_0x3030d3(0x230)],this[_0x3030d3(0x244)][_0x3030d3(0x230)]],'callback':()=>this[_0x3030d3(0x234)](),'activator':()=>this[_0x3030d3(0x244)][_0x3030d3(0x269)]});}[_0xac3581(0x22f)](){const _0x401c58=_0xac3581,_0x343a79=new _0x4d9406(this[_0x401c58(0x1df)]);_0x343a79[_0x401c58(0x1e2)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5ad2b5=[this[_0x401c58(0x1e4)][_0x401c58(0x22d)][_0x401c58(0x231)]];return this[_0x401c58(0x1e4)][_0x401c58(0x22d)][_0x401c58(0x1f2)]&&_0x5ad2b5[_0x401c58(0x23b)](this[_0x401c58(0x1e4)][_0x401c58(0x22d)][_0x401c58(0x1f2)]),_0x343a79[_0x401c58(0x25b)]({'attributes':{'class':_0x5ad2b5}}),_0x343a79;}[_0xac3581(0x1fe)](){const _0x17dac9=_0xac3581,_0xd5a9d2=new _0x1e3514(this[_0x17dac9(0x1df)]);return _0xd5a9d2[_0x17dac9(0x25b)]({'attributes':{'class':this[_0x17dac9(0x1e4)][_0x17dac9(0x22d)][_0x17dac9(0x20d)]}}),this[_0x17dac9(0x242)][_0x17dac9(0x207)](_0xd5a9d2),_0xd5a9d2;}[_0xac3581(0x21c)](){const _0x1a496d=_0xac3581;if(this[_0x1a496d(0x22c)]&&(this[_0x1a496d(0x22c)][_0x1a496d(0x1ed)][_0x1a496d(0x216)](),this[_0x1a496d(0x212)][_0x1a496d(0x1fc)]>0x0)){this[_0x1a496d(0x212)][_0x1a496d(0x1ff)](_0x540ed1=>{const _0x1c8053=_0x1a496d;_0x540ed1[_0x1c8053(0x267)]();});const _0x3ea1d4=new _0x439f7a(this[_0x1a496d(0x1df)]);_0x3ea1d4[_0x1a496d(0x1e0)]({'tag':_0x1a496d(0x251),'attributes':{'class':this[_0x1a496d(0x1e4)][_0x1a496d(0x22d)][_0x1a496d(0x256)]},'children':this[_0x1a496d(0x212)]}),this[_0x1a496d(0x22c)][_0x1a496d(0x1ed)][_0x1a496d(0x207)](_0x3ea1d4);}}[_0xac3581(0x255)](){const _0xcaca14=_0xac3581;this[_0xcaca14(0x244)][_0xcaca14(0x269)]?this[_0xcaca14(0x234)]():this[_0xcaca14(0x1e7)]();}[_0xac3581(0x250)](){const _0x3b7fc1=_0xac3581,_0x51a978=this[_0x3b7fc1(0x212)][_0x3b7fc1(0x1fc)]>0x0;this[_0x3b7fc1(0x244)]?.[_0x3b7fc1(0x230)]&&(this[_0x3b7fc1(0x244)][_0x3b7fc1(0x230)][_0x3b7fc1(0x227)][_0x3b7fc1(0x1e8)]=_0x51a978?'':_0x3b7fc1(0x21a));}[_0xac3581(0x1ea)](){const _0x937c7f=_0xac3581;this[_0x937c7f(0x244)]?.[_0x937c7f(0x269)]&&this[_0x937c7f(0x22c)]?.[_0x937c7f(0x23f)]&&this[_0x937c7f(0x244)][_0x937c7f(0x230)]&&this[_0x937c7f(0x22c)][_0x937c7f(0x21d)]({'target':this[_0x937c7f(0x244)][_0x937c7f(0x230)],'limiter':document[_0x937c7f(0x25a)](_0x937c7f(0x261))});}[_0xac3581(0x1da)](_0x25714e){const _0x54b703=_0xac3581,_0x11ecab=this[_0x54b703(0x218)]?.[_0x54b703(0x266)][_0x54b703(0x233)]()||_0x54b703(0x251),_0x468b7b=this[_0x54b703(0x218)]?.[_0x54b703(0x204)];if(_0x468b7b){const _0x19ccf3=_0x468b7b[0x0]||'',_0x111226=_0x25714e[_0x54b703(0x25a)]('.'+_0x19ccf3),_0x428b9c=_0x25714e[_0x54b703(0x25a)](_0x11ecab);return _0x111226||_0x428b9c||_0x25714e;}return _0x25714e[_0x54b703(0x25a)](_0x11ecab)||_0x25714e;}[_0xac3581(0x1d7)](){const _0x560ab1=_0xac3581,_0x2f8d77=this[_0x560ab1(0x243)]?.[_0x560ab1(0x230)]||this[_0x560ab1(0x218)];if(!_0x2f8d77)return an;const _0x21f8fc=window[_0x560ab1(0x245)](_0x2f8d77)[_0x560ab1(0x238)];if(_0x560ab1(0x252)===_0x21f8fc||_0x560ab1(0x211)===_0x21f8fc||!_0x21f8fc){const _0x1a9f3d=_0x2f8d77[_0x560ab1(0x1e5)];if(_0x1a9f3d){const _0x26f101=window[_0x560ab1(0x245)](_0x1a9f3d);return _0x560ab1(0x252)!==_0x26f101[_0x560ab1(0x238)]?_0x26f101[_0x560ab1(0x238)]:an;}return an;}return _0x21f8fc;}[_0xac3581(0x260)](_0x546b0a,_0xf1b68){const _0x11e9e0=_0xac3581;this[_0x11e9e0(0x1e4)][_0x11e9e0(0x22d)][_0x11e9e0(0x1ef)]&&_0x546b0a[_0x11e9e0(0x204)][_0x11e9e0(0x207)](this[_0x11e9e0(0x1e4)][_0x11e9e0(0x22d)][_0x11e9e0(0x1ef)]),_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x238)]=_0xf1b68,_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x237)]=_0x11e9e0(0x24b),_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x1eb)]=_0x11e9e0(0x213),_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x257)]=_0x11e9e0(0x213),_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x1dd)]='0',_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x263)]=_0x11e9e0(0x21a),_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x1f0)]='-1',_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x21b)]=_0x11e9e0(0x241),_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x1e8)]=_0x11e9e0(0x200),_0x546b0a[_0x11e9e0(0x227)][_0x11e9e0(0x1e9)]=_0x11e9e0(0x229);}[_0xac3581(0x226)](_0x5af4bf){const _0x1cbea3=_0xac3581;_0x5af4bf[_0x1cbea3(0x1ff)](({element:_0x29a3c9,originalDisplay:_0x490ae3,originalVisibility:_0x2c4161})=>{const _0x53f4b2=_0x1cbea3;_0x29a3c9[_0x53f4b2(0x227)][_0x53f4b2(0x1e8)]=_0x490ae3,_0x29a3c9[_0x53f4b2(0x227)][_0x53f4b2(0x21b)]=_0x2c4161;});}[_0xac3581(0x25c)](_0x1c67e4){const _0x353b44=_0xac3581,_0x4e9ae1=[];let _0x4e3a2d=_0x1c67e4;for(;_0x4e3a2d&&_0x4e3a2d!==document[_0x353b44(0x1d8)];){const _0x4e8d34=window[_0x353b44(0x245)](_0x4e3a2d);_0x353b44(0x21a)!==_0x4e8d34[_0x353b44(0x1e8)]&&_0x353b44(0x1fd)!==_0x4e8d34[_0x353b44(0x21b)]||(_0x4e9ae1[_0x353b44(0x23b)]({'element':_0x4e3a2d,'originalDisplay':_0x4e3a2d[_0x353b44(0x227)][_0x353b44(0x1e8)],'originalVisibility':_0x4e3a2d[_0x353b44(0x227)][_0x353b44(0x21b)]}),_0x4e3a2d[_0x353b44(0x227)][_0x353b44(0x1e8)]=_0x353b44(0x203),_0x4e3a2d[_0x353b44(0x227)][_0x353b44(0x21b)]=_0x353b44(0x249)),_0x4e3a2d=_0x4e3a2d[_0x353b44(0x1e5)];}return _0x4e9ae1;}[_0xac3581(0x23d)](){const _0x56b114=_0xac3581;let _0x389a51,_0x40c4e3;return this[_0x56b114(0x243)]?.[_0x56b114(0x230)]?(_0x389a51=this[_0x56b114(0x243)][_0x56b114(0x230)][_0x56b114(0x205)](!0x0),_0x40c4e3=this[_0x56b114(0x1da)](_0x389a51)):(_0x389a51=document[_0x56b114(0x1fa)](_0x56b114(0x251)),_0x40c4e3=_0x389a51),{'calculationContainer':_0x389a51,'targetContainer':_0x40c4e3};}[_0xac3581(0x20b)](){const _0x40eabc=_0xac3581,{calculationContainer:_0x72465a,targetContainer:_0x5e5af1}=this[_0x40eabc(0x23d)](),_0x227823=this[_0x40eabc(0x1d7)]();this[_0x40eabc(0x260)](_0x72465a,_0x227823);const _0x84360a=this[_0x40eabc(0x243)]?.[_0x40eabc(0x230)]||this[_0x40eabc(0x218)],_0x245038=_0x84360a?.[_0x40eabc(0x1e5)];_0x245038?_0x245038[_0x40eabc(0x1e1)](_0x72465a):document[_0x40eabc(0x1d8)][_0x40eabc(0x1e1)](_0x72465a),_0x72465a[_0x40eabc(0x1e6)]=_0x5e5af1;const _0x2c3705=this[_0x40eabc(0x25c)](_0x245038||null);return _0x72465a[_0x40eabc(0x20c)],_0x72465a[_0x40eabc(0x220)]=_0x2c3705,_0x72465a;}[_0xac3581(0x1ee)](_0x1d6aff,_0x1c617f){const _0x8aaae5=_0xac3581,_0x4a0cff=_0x1d6aff[_0x8aaae5(0x1e6)]||_0x1d6aff,_0x2b1762=[],{rowCount:_0x45cfe7}=this[_0x8aaae5(0x225)](_0x4a0cff,_0x1c617f);if(_0x45cfe7<=this[_0x8aaae5(0x1e4)][_0x8aaae5(0x214)])return _0x2b1762;const _0x4119ba=_0x1c617f[_0x8aaae5(0x1d9)]();for(;_0x4119ba[_0x8aaae5(0x1fc)]>0x0;){if(this[_0x8aaae5(0x24a)](_0x1d6aff,_0x4a0cff,_0x4119ba)){const _0x107063=_0x1c617f[_0x8aaae5(0x262)](_0xb6a7ee=>!_0x4119ba[_0x8aaae5(0x21e)](_0xb6a7ee));_0x2b1762[_0x8aaae5(0x23b)](..._0x107063);break;}if(!_0x4119ba[_0x8aaae5(0x1f4)]())break;}return _0x2b1762;}[_0xac3581(0x225)](_0x5bef24,_0x34c2b9){const _0x3f87ec=_0xac3581;_0x5bef24[_0x3f87ec(0x224)]='',_0x34c2b9[_0x3f87ec(0x1ff)](_0x196437=>{const _0x3718f3=_0x3f87ec;if(_0x196437[_0x3718f3(0x230)]){const _0x358001=_0x196437[_0x3718f3(0x230)][_0x3718f3(0x205)](!0x0);_0x5bef24[_0x3718f3(0x1e1)](_0x358001);}}),_0x5bef24[_0x3f87ec(0x20c)];const _0x31dc0a=_0x5bef24[_0x3f87ec(0x1f7)],_0x45bffe=[];return Array[_0x3f87ec(0x21f)](_0x31dc0a)[_0x3f87ec(0x1ff)](_0x3805e4=>{const _0x255516=_0x3f87ec,_0x2a7588=_0x3805e4[_0x255516(0x221)]()[_0x255516(0x1eb)];_0x45bffe[_0x255516(0x26a)](_0x45a1bc=>Math[_0x255516(0x22b)](_0x45a1bc-_0x2a7588)<this[_0x255516(0x1e4)][_0x255516(0x23a)])||_0x45bffe[_0x255516(0x23b)](_0x2a7588);}),{'rowCount':_0x45bffe[_0x3f87ec(0x1fc)]};}[_0xac3581(0x268)](){const _0x2e962e=_0xac3581,_0x3da1e9=document[_0x2e962e(0x1fa)](_0x2e962e(0x20f));return _0x3da1e9[_0x2e962e(0x240)]=this[_0x2e962e(0x1e4)][_0x2e962e(0x22d)][_0x2e962e(0x231)],this[_0x2e962e(0x1e4)][_0x2e962e(0x22d)][_0x2e962e(0x1f2)]&&_0x3da1e9[_0x2e962e(0x204)][_0x2e962e(0x207)](this[_0x2e962e(0x1e4)][_0x2e962e(0x22d)][_0x2e962e(0x1f2)]),_0x3da1e9[_0x2e962e(0x259)]=_0x2e962e(0x1f9),_0x3da1e9;}[_0xac3581(0x24a)](_0x1fd956,_0x1d7f08,_0x5875bb){const _0x38d28b=_0xac3581;this[_0x38d28b(0x225)](_0x1d7f08,_0x5875bb);const _0x5569c5=this[_0x38d28b(0x268)]();_0x1fd956[_0x38d28b(0x1e1)](_0x5569c5),_0x1fd956[_0x38d28b(0x20c)];const _0x683af2=[..._0x1d7f08[_0x38d28b(0x1f7)],_0x5569c5],_0x3587cf=[];_0x683af2[_0x38d28b(0x1ff)](_0x264c0c=>{const _0x176952=_0x38d28b,_0x1f90b9=_0x264c0c[_0x176952(0x221)]()[_0x176952(0x1eb)];_0x3587cf[_0x176952(0x26a)](_0x5734ae=>Math[_0x176952(0x22b)](_0x5734ae-_0x1f90b9)<this[_0x176952(0x1e4)][_0x176952(0x23a)])||_0x3587cf[_0x176952(0x23b)](_0x1f90b9);});const _0x389bc5=_0x3587cf[_0x38d28b(0x1fc)];return _0x5569c5[_0x38d28b(0x1fb)](),_0x389bc5<=this[_0x38d28b(0x1e4)][_0x38d28b(0x214)];}[_0xac3581(0x219)](_0x44b6b4,_0x536155){const _0xf3130e=_0xac3581;this[_0xf3130e(0x228)][_0xf3130e(0x216)](),this[_0xf3130e(0x212)][_0xf3130e(0x216)](),_0x44b6b4[_0xf3130e(0x1ff)](_0x21ed4e=>{const _0x8d9364=_0xf3130e;_0x536155[_0x8d9364(0x21e)](_0x21ed4e)?this[_0x8d9364(0x212)][_0x8d9364(0x207)](_0x21ed4e):this[_0x8d9364(0x228)][_0x8d9364(0x207)](_0x21ed4e);});}[_0xac3581(0x22e)](_0x4f3f1c){const _0x2f1f30=_0xac3581;if(_0x4f3f1c>0x0&&!this[_0x2f1f30(0x244)]&&this[_0x2f1f30(0x201)](),_0x4f3f1c>0x0&&this[_0x2f1f30(0x244)]){const _0x1ffa9c=''+this[_0x2f1f30(0x1e4)][_0x2f1f30(0x264)]+(_0x4f3f1c<0x63?_0x4f3f1c:'99');this[_0x2f1f30(0x244)][_0x2f1f30(0x1f6)]=_0x1ffa9c;}this[_0x2f1f30(0x21c)](),this[_0x2f1f30(0x250)](),this[_0x2f1f30(0x1ea)]();}[_0xac3581(0x24f)](_0x188828,_0x57a7e0){const _0x2fce94=_0xac3581;this[_0x2fce94(0x219)](_0x188828,_0x57a7e0),this[_0x2fce94(0x22e)](_0x57a7e0[_0x2fce94(0x1fc)]);}[_0xac3581(0x1e3)](){const _0x266365=_0xac3581;this[_0x266365(0x218)]&&_0x266365(0x1f1)!=typeof IntersectionObserver&&(this[_0x266365(0x23c)]=new IntersectionObserver(_0x53e15b=>{const _0x1bae1b=_0x266365;_0x53e15b[0x0][_0x1bae1b(0x215)]&&this[_0x1bae1b(0x23e)]&&requestAnimationFrame(()=>{const _0x4404b1=_0x1bae1b;this[_0x4404b1(0x210)]();});},{'threshold':0.01,'rootMargin':_0x266365(0x248)}),this[_0x266365(0x23c)][_0x266365(0x232)](this[_0x266365(0x218)]));}[_0xac3581(0x25e)](){const _0x19dd20=_0xac3581;if(!this[_0x19dd20(0x218)])return!0x1;if(!this[_0x19dd20(0x218)][_0x19dd20(0x22a)])return!0x1;const _0x558e2f=this[_0x19dd20(0x218)][_0x19dd20(0x221)]();if(0x0===_0x558e2f[_0x19dd20(0x238)]||0x0===_0x558e2f[_0x19dd20(0x25d)])return!0x1;const _0x4bd77b=window[_0x19dd20(0x223)]||document[_0x19dd20(0x265)][_0x19dd20(0x235)],_0x22533a=window[_0x19dd20(0x222)]||document[_0x19dd20(0x265)][_0x19dd20(0x217)],_0x5f3928=0xc8;return _0x558e2f[_0x19dd20(0x247)]>=-0xc8&&_0x558e2f[_0x19dd20(0x1eb)]<=_0x4bd77b+_0x5f3928&&_0x558e2f[_0x19dd20(0x254)]>=-0xc8&&_0x558e2f[_0x19dd20(0x257)]<=_0x22533a+_0x5f3928;}}
|
|
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();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11fe38=_0x1c8a;(function(_0x2e38f6,_0x232855){const _0x398bd1=_0x1c8a,_0x36b2c2=_0x2e38f6();while(!![]){try{const _0x6210b3=-parseInt(_0x398bd1(0x1f9))/0x1*(-parseInt(_0x398bd1(0x1cd))/0x2)+parseInt(_0x398bd1(0x1c2))/0x3+parseInt(_0x398bd1(0x1e2))/0x4*(-parseInt(_0x398bd1(0x1e1))/0x5)+-parseInt(_0x398bd1(0x1c4))/0x6*(parseInt(_0x398bd1(0x1dd))/0x7)+parseInt(_0x398bd1(0x1e4))/0x8+parseInt(_0x398bd1(0x1e6))/0x9*(-parseInt(_0x398bd1(0x1bc))/0xa)+-parseInt(_0x398bd1(0x1f6))/0xb*(-parseInt(_0x398bd1(0x1ed))/0xc);if(_0x6210b3===_0x232855)break;else _0x36b2c2['push'](_0x36b2c2['shift']());}catch(_0x5b5cd9){_0x36b2c2['push'](_0x36b2c2['shift']());}}}(_0x28d0,0x70950));import{ButtonView as _0x5b0147,IconView as _0xf2bace}from'ckeditor5/src/ui.js';import{IconClose as _0x1b2896,IconDocument as _0x23102,IconFileUpload as _0x18e395,IconLink as _0x2cfb39,IconSelection as _0x3d6979}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xe00ad}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x39d884}from'../../../aicore/ui/aispinner.js';function _0x1c8a(_0x5173bd,_0xf23c6e){const _0x28d09f=_0x28d0();return _0x1c8a=function(_0x1c8af2,_0x5c912e){_0x1c8af2=_0x1c8af2-0x1b7;let _0x30f9d7=_0x28d09f[_0x1c8af2];return _0x30f9d7;},_0x1c8a(_0x5173bd,_0xf23c6e);}function _0x28d0(){const _0x1b3213=['_createLabelElement','execute','132667FHPClG','label','ck-ai-chat-context-chip__label','_createLoaderIcon','tooltip','_createRemoveButton','extendTemplate','160JnLVeB','animationend','_createTemplateChildren','disableAnimationOnEnter','ck-ai-chat-context-chip_new-chip','removeContextItemChip','2650752rZddZu','ck-hidden','5676cyGRBY','_setupTemplate','itemType','isLoading','small','div','set','_isAnimationOnEnterEnabled','webkitAnimationEnd','8tjyYSq','addEventListener','removeEventListener','fire','uiId','_handleAnimationEndOnce','add','locale','readonly','classList','document','_setupRemoveButtonEvent','slice','_createTemplateAttributes','ck-ai-chat-context-chip_document','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','6643NLiugI','lastIndexOf','selection','ck-ai-chat-context-controls__chip-tooltip','2665255jKVDDM','4UAdBxP','isVisible','5346504sCQiWo','bindTemplate','455337ZAMdQq','element','type','render','_createIconView','remove','ck-ai-chat-context-chip__type-icon','72NBiGoa','setTemplate','content','bind','ck-ai-chat-context-chip','ck-ai-chat-context-chip_wide','span','_initializeProperties','length','1134584bpzpTn'];_0x28d0=function(){return _0x1b3213;};return _0x28d0();}const xn={'file':_0x18e395,'document':_0x23102,'web-resource':_0x2cfb39,'text':_0x18e395,'selection':_0x3d6979,'mcp-tool-context':_0x23102},bn=_0x11fe38(0x1f1),Tn=_0x11fe38(0x1f2),En=_0x11fe38(0x1db),fn=_0x11fe38(0x1b7),An=_0x11fe38(0x1ec),Cn=_0x11fe38(0x1e0),In='n';export class AIChatContextItemButtonView extends _0x5b0147{constructor(_0x30c2e7,_0xdcc824,_0x509284,_0x24e568,_0x120fe4=!0x1){const _0x5ba89a=_0x11fe38;super(_0x30c2e7),this[_0x5ba89a(0x1cb)]=_0x24e568,this[_0x5ba89a(0x1f4)](_0xdcc824,_0x509284,_0x120fe4),this[_0x5ba89a(0x1c5)]();}[_0x11fe38(0x1e9)](){const _0x343c34=_0x11fe38;super[_0x343c34(0x1e9)](),this[_0x343c34(0x1cb)]&&this[_0x343c34(0x1e7)]&&(this[_0x343c34(0x1e7)][_0x343c34(0x1d6)][_0x343c34(0x1d3)](_0x343c34(0x1c0)),this[_0x343c34(0x1d2)](this[_0x343c34(0x1e7)],()=>{const _0x46e8a4=_0x343c34;this[_0x46e8a4(0x1e7)]&&this[_0x46e8a4(0x1e7)][_0x46e8a4(0x1d6)][_0x46e8a4(0x1eb)](_0x46e8a4(0x1c0));}));}[_0x11fe38(0x1bf)](){const _0x3400e9=_0x11fe38;this[_0x3400e9(0x1cb)]=!0x1,this[_0x3400e9(0x1e7)]&&this[_0x3400e9(0x1e7)][_0x3400e9(0x1d6)][_0x3400e9(0x1eb)](_0x3400e9(0x1c0));}[_0x11fe38(0x1f4)](_0x583946,_0x2562a2,_0x2d61aa){const _0x238bc7=_0x11fe38;this[_0x238bc7(0x1ca)](_0x238bc7(0x1fa),_0x583946[_0x238bc7(0x1fa)]),this[_0x238bc7(0x1ca)](_0x238bc7(0x1b9),!0x0),this[_0x238bc7(0x1ca)](_0x238bc7(0x1c6),_0x583946[_0x238bc7(0x1e8)]),this[_0x238bc7(0x1ca)]('id',_0x583946[_0x238bc7(0x1d1)]),this[_0x238bc7(0x1ca)](_0x238bc7(0x1d5),_0x2562a2),this[_0x238bc7(0x1ca)](_0x238bc7(0x1c7),_0x2d61aa);}[_0x11fe38(0x1c5)](){const _0x45c280=_0x11fe38,_0x320ff7=this[_0x45c280(0x1ea)](),_0x1148a2=this[_0x45c280(0x1ba)](),_0x4e3b8d=this[_0x45c280(0x1e5)];this[_0x45c280(0x1ee)]({'tag':_0x45c280(0x1c9),'attributes':this[_0x45c280(0x1da)](_0x4e3b8d),'children':this[_0x45c280(0x1be)](_0x320ff7,_0x1148a2,_0x4e3b8d)});}[_0x11fe38(0x1da)](_0xe2ec3b){const _0x5c8251=_0x11fe38;return{'class':[bn,_0xe2ec3b['if'](_0x5c8251(0x1c6),En,_0x3a6136=>_0x5c8251(0x1d7)==_0x3a6136),_0xe2ec3b['if'](_0x5c8251(0x1c6),Tn,_0x4d0677=>_0x5c8251(0x1df)==_0x4d0677)],'data-cke-tooltip-text':_0xe2ec3b['to'](_0x5c8251(0x1fa),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x11fe38(0x1be)](_0x41a300,_0x118230,_0x4ceb83){const _0x54ef47=_0x11fe38,_0x2764ea=this[_0x54ef47(0x1f7)](_0x4ceb83),_0x4dfc9b=this[_0x54ef47(0x1b8)]();return this[_0x54ef47(0x1d5)]?[_0x41a300,_0x2764ea]:[_0x41a300,_0x4dfc9b,_0x2764ea,_0x118230];}[_0x11fe38(0x1f7)](_0x59796f){const _0x30a0ef=_0x11fe38;return{'tag':_0x30a0ef(0x1f3),'attributes':{'class':fn},'children':[{'text':_0x59796f['to'](_0x30a0ef(0x1fa))}]};}[_0x11fe38(0x1ba)](){const _0x4363e2=_0x11fe38,_0x49a42b=new _0x5b0147(this[_0x4363e2(0x1d4)]);return _0x49a42b[_0x4363e2(0x1ca)]({'label':_0xe00ad(this[_0x4363e2(0x1d4)],_0x4363e2(0x1dc)),'icon':_0x1b2896}),this[_0x4363e2(0x1d8)](_0x49a42b),_0x49a42b;}[_0x11fe38(0x1d8)](_0x5e8293){const _0x771522=_0x11fe38;_0x5e8293['on'](_0x771522(0x1f8),()=>{const _0x10dc6e=_0x771522;this[_0x10dc6e(0x1d0)](_0x10dc6e(0x1c1),this['id']);});}[_0x11fe38(0x1ea)](){const _0x57cca4=_0x11fe38,_0x2e0c80=this[_0x57cca4(0x1e5)],_0x8aaba4=new _0xf2bace();return _0x8aaba4[_0x57cca4(0x1ef)]=xn[this[_0x57cca4(0x1c6)]],_0x8aaba4[_0x57cca4(0x1bb)]({'attributes':{'class':[An,_0x2e0c80['if'](_0x57cca4(0x1c7),_0x57cca4(0x1c3),_0x2783dc=>_0x2783dc)]}}),_0x8aaba4;}[_0x11fe38(0x1d2)](_0x2e6395,_0x1ee5eb){const _0x3ec930=_0x11fe38;if(!_0x2e6395)return;const _0x3b66f0=()=>{const _0x1410cb=_0x1c8a;_0x1ee5eb(),_0x2e6395[_0x1410cb(0x1cf)](_0x1410cb(0x1bd),_0x3b66f0),_0x2e6395[_0x1410cb(0x1cf)](_0x1410cb(0x1cc),_0x3b66f0);};_0x2e6395[_0x3ec930(0x1ce)](_0x3ec930(0x1bd),_0x3b66f0),_0x2e6395[_0x3ec930(0x1ce)](_0x3ec930(0x1cc),_0x3b66f0);}[_0x11fe38(0x1b8)](){const _0x430163=_0x11fe38,_0x2318f8=new _0x39d884(_0x430163(0x1c8));return _0x2318f8[_0x430163(0x1f0)](_0x430163(0x1e3))['to'](this,_0x430163(0x1c7),_0x316499=>_0x316499),_0x2318f8;}}function On(_0x18a065){const _0x7e18b0=_0x11fe38;if(!_0x18a065)return _0x18a065;if(_0x18a065[_0x7e18b0(0x1f5)]<=0x78)return _0x18a065;const _0x22f09a=_0x18a065[_0x7e18b0(0x1d9)](0x0,0x78),_0x14137e=_0x22f09a[_0x7e18b0(0x1de)]('\x20');return(_0x14137e>0x0?_0x22f09a[_0x7e18b0(0x1d9)](0x0,_0x14137e):_0x22f09a)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x253127=_0x1250;function _0xe705(){const _0x452691=['AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','77232MkXUSj','confirmButton','element','AI_CHAT_CONTEXT_URL_INVALID_ERROR','esc','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','add','6452YnwWlj','_createUrlInputField','listenTo','23278ktBgnM','change:withBackButton','setError','render','_setupTemplate','focus','submit','children','getValue','refreshBalloon','value','div','3282059kuHDFE','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','4000320RrQfZy','\x20ck-hidden','destroy','submitUrl','20wQNxhj','isEnabled','backButton','trim','tab','keystrokes','cancel','ck-labeled-field-view_empty','ck-button-icon','locale','_handleSubmit','ck-button-icon\x20ck-button-back','setTemplate','fire','focusTracker','ck-ai-chat-context-controls__url-input-section','_createConfirmButton','length','urlInputField','createCollection','_setupEventHandlers','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','withBackButton','3100mjhwQx','clearError','set','form','ck-ai-chat-context-controls__url-form','9FCdymk','_updateConfirmButtonState','execute','focusCycler','errorText','input','_createBackButton','clear','_focusables','fieldView','3293544qLnJol','AI_CHAT_CONTEXT_URL_LABEL','stop','298494glOcun','AI_CHAT_CONTEXT_URL_PLACEHOLDER','8OeLkSP','_setupKeystrokes','28VVUVpA','forEach','_isValidUrl'];_0xe705=function(){return _0x452691;};return _0xe705();}(function(_0x7a2edd,_0x2afa07){const _0x54b2ea=_0x1250,_0x4d098f=_0x7a2edd();while(!![]){try{const _0x34ee29=-parseInt(_0x54b2ea(0x1d2))/0x1*(-parseInt(_0x54b2ea(0x1e3))/0x2)+-parseInt(_0x54b2ea(0x1d0))/0x3+-parseInt(_0x54b2ea(0x1e0))/0x4*(-parseInt(_0x54b2ea(0x1be))/0x5)+parseInt(_0x54b2ea(0x1d9))/0x6*(parseInt(_0x54b2ea(0x1d4))/0x7)+parseInt(_0x54b2ea(0x1cd))/0x8*(parseInt(_0x54b2ea(0x1c3))/0x9)+parseInt(_0x54b2ea(0x1f5))/0xa*(-parseInt(_0x54b2ea(0x1ef))/0xb)+-parseInt(_0x54b2ea(0x1f1))/0xc;if(_0x34ee29===_0x2afa07)break;else _0x4d098f['push'](_0x4d098f['shift']());}catch(_0x459677){_0x4d098f['push'](_0x4d098f['shift']());}}}(_0xe705,0x809a5));import{FocusTracker as _0x487c0d,KeystrokeHandler as _0x562b6c}from'ckeditor5/src/utils.js';function _0x1250(_0x4cced8,_0x37aa2a){const _0xe7058a=_0xe705();return _0x1250=function(_0x12503a,_0x57176d){_0x12503a=_0x12503a-0x1b6;let _0x41c2df=_0xe7058a[_0x12503a];return _0x41c2df;},_0x1250(_0x4cced8,_0x37aa2a);}import{ButtonView as _0x2efc6a,FocusCycler as _0x434548,LabeledFieldView as _0x17f395,View as _0x50b419,FormHeaderView as _0xa856bd,createLabeledInputText as _0x496caa,submitHandler as _0x333e97}from'ckeditor5/src/ui.js';import{IconCheck as _0x30a4f2,IconPreviousArrow as _0x3c5cb1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x557467}from'../../../aicore/utils/common-translations.js';const nh=_0x253127(0x1c2),lh=_0x253127(0x1b6);export class AIChatContextPanelUrlInputView extends _0x50b419{[_0x253127(0x203)];[_0x253127(0x1fa)];[_0x253127(0x1cb)];[_0x253127(0x1c6)];[_0x253127(0x1b9)];[_0x253127(0x1f7)];[_0x253127(0x1da)];constructor(_0x1db915){const _0x177121=_0x253127;super(_0x1db915),this[_0x177121(0x203)]=new _0x487c0d(),this[_0x177121(0x1fa)]=new _0x562b6c(),this[_0x177121(0x1f7)]=this[_0x177121(0x1c9)](),this[_0x177121(0x1b9)]=this[_0x177121(0x1e1)](),this[_0x177121(0x1da)]=this[_0x177121(0x1b7)](),this[_0x177121(0x1cb)]=this[_0x177121(0x1ba)]([this[_0x177121(0x1f7)],this[_0x177121(0x1b9)],this[_0x177121(0x1da)]]),this[_0x177121(0x1c6)]=new _0x434548({'focusables':this[_0x177121(0x1cb)],'focusTracker':this[_0x177121(0x203)],'keystrokeHandler':this[_0x177121(0x1fa)],'actions':{'focusPrevious':_0x177121(0x1d8),'focusNext':_0x177121(0x1f9)}}),this[_0x177121(0x1c0)](_0x177121(0x1bd),!0x0),this[_0x177121(0x1e7)](),this[_0x177121(0x1bb)](),this[_0x177121(0x1d3)]();}[_0x253127(0x1e6)](){const _0x7aa57c=_0x253127;super[_0x7aa57c(0x1e6)](),this[_0x7aa57c(0x1cb)][_0x7aa57c(0x1d5)](_0x5db1f8=>{const _0x354efd=_0x7aa57c;this[_0x354efd(0x203)][_0x354efd(0x1df)](_0x5db1f8[_0x354efd(0x1db)]),this[_0x354efd(0x1fa)][_0x354efd(0x1e2)](_0x5db1f8[_0x354efd(0x1db)]);}),_0x333e97({'view':this}),this[_0x7aa57c(0x1e8)]();}[_0x253127(0x1f3)](){const _0x449914=_0x253127;super[_0x449914(0x1f3)](),this[_0x449914(0x203)][_0x449914(0x1f3)](),this[_0x449914(0x1fa)][_0x449914(0x1f3)]();}[_0x253127(0x1e8)](){const _0x1e8160=_0x253127;this[_0x1e8160(0x1b9)][_0x1e8160(0x1e8)]();}[_0x253127(0x1eb)](){const _0x250c2e=_0x253127;return this[_0x250c2e(0x1b9)][_0x250c2e(0x1cc)][_0x250c2e(0x1db)]?.[_0x250c2e(0x1ed)]?.[_0x250c2e(0x1f8)]()||'';}[_0x253127(0x1ca)](){const _0x1aa27d=_0x253127;this[_0x1aa27d(0x1b9)][_0x1aa27d(0x1cc)][_0x1aa27d(0x1db)][_0x1aa27d(0x1ed)]='',this[_0x1aa27d(0x1b9)][_0x1aa27d(0x1c7)]=null,this[_0x1aa27d(0x1da)][_0x1aa27d(0x1f6)]=!0x1;}[_0x253127(0x1e5)](_0x38251c){const _0x127899=_0x253127;this[_0x127899(0x1b9)][_0x127899(0x1c7)]=_0x38251c,this[_0x127899(0x1c4)](),this[_0x127899(0x202)](_0x127899(0x1ec));}[_0x253127(0x1bf)](){const _0x2ef4ba=_0x253127;this[_0x2ef4ba(0x1b9)][_0x2ef4ba(0x1c7)]=null,this[_0x2ef4ba(0x1c4)]();}[_0x253127(0x1c9)](){const _0x48b9c7=_0x253127,_0x1e73af=new _0x2efc6a(this[_0x48b9c7(0x1fe)]);return _0x1e73af[_0x48b9c7(0x1c0)]({'icon':_0x3c5cb1,'tooltip':_0x557467(this[_0x48b9c7(0x1fe)],_0x48b9c7(0x1de)),'tooltipPosition':'n','class':[_0x48b9c7(0x200)]}),this['on'](_0x48b9c7(0x1e4),(_0x13dc13,_0x3a6621,_0xabbddc)=>{const _0x3ec1a4=_0x48b9c7;_0x1e73af[_0x3ec1a4(0x1c0)]({'class':[_0x3ec1a4(0x200)+(_0xabbddc?'':_0x3ec1a4(0x1f2))]});}),_0x1e73af;}[_0x253127(0x1e1)](){const _0x163acc=_0x253127,_0x18b43a=new _0x17f395(this[_0x163acc(0x1fe)],_0x496caa);return _0x18b43a[_0x163acc(0x1c0)]({'label':_0x557467(this[_0x163acc(0x1fe)],_0x163acc(0x1ce)),'class':_0x163acc(0x1fc)}),_0x18b43a[_0x163acc(0x1cc)][_0x163acc(0x1c0)]({'placeholder':_0x557467(this[_0x163acc(0x1fe)],_0x163acc(0x1d1))}),_0x18b43a;}[_0x253127(0x1b7)](){const _0x35902f=_0x253127,_0x26b53c=new _0x2efc6a(this[_0x35902f(0x1fe)]);return _0x26b53c[_0x35902f(0x1c0)]({'icon':_0x30a4f2,'tooltip':_0x557467(this[_0x35902f(0x1fe)],_0x35902f(0x1d7)),'tooltipPosition':'n','class':_0x35902f(0x1fd),'type':_0x35902f(0x1e9),'isEnabled':!0x1}),_0x26b53c;}[_0x253127(0x1e7)](){const _0x265ba1=_0x253127,_0x4bae69=new _0xa856bd(this[_0x265ba1(0x1fe)],{'label':_0x557467(this[_0x265ba1(0x1fe)],_0x265ba1(0x1d7)),'class':_0x265ba1(0x1bc)});_0x4bae69[_0x265ba1(0x1ea)][_0x265ba1(0x1df)](this[_0x265ba1(0x1f7)],0x0),this[_0x265ba1(0x201)]({'tag':_0x265ba1(0x1c1),'attributes':{'class':nh,'tabindex':'-1'},'children':[_0x4bae69,{'tag':_0x265ba1(0x1ee),'attributes':{'class':lh},'children':[this[_0x265ba1(0x1b9)],this[_0x265ba1(0x1da)]]}]});}[_0x253127(0x1bb)](){const _0x1e03b6=_0x253127;this[_0x1e03b6(0x1f7)]['on'](_0x1e03b6(0x1c5),()=>{const _0x33ecb5=_0x1e03b6;this[_0x33ecb5(0x1ca)](),this[_0x33ecb5(0x202)](_0x33ecb5(0x1fb));}),this[_0x1e03b6(0x1b9)][_0x1e03b6(0x1cc)]['on'](_0x1e03b6(0x1c8),()=>{const _0x1b6c51=_0x1e03b6;this[_0x1b6c51(0x1bf)](),this[_0x1b6c51(0x1c4)](),this[_0x1b6c51(0x202)](_0x1b6c51(0x1ec));}),this['on'](_0x1e03b6(0x1e9),_0x5ebaf0=>{const _0x2be21f=_0x1e03b6;_0x5ebaf0[_0x2be21f(0x1cf)](),this[_0x2be21f(0x1ff)]();});}[_0x253127(0x1d3)](){const _0x1debba=_0x253127;this[_0x1debba(0x1fa)][_0x1debba(0x1c0)](_0x1debba(0x1dd),(_0x39782f,_0x48c5f8)=>{const _0x24b9ec=_0x1debba;this[_0x24b9ec(0x1ca)](),this[_0x24b9ec(0x202)](_0x24b9ec(0x1fb)),_0x48c5f8();});}[_0x253127(0x1ff)](){const _0x16bb64=_0x253127,_0x57fe81=this[_0x16bb64(0x1eb)]()[_0x16bb64(0x1f8)]();_0x57fe81?this[_0x16bb64(0x1d6)](_0x57fe81)?(this[_0x16bb64(0x1bf)](),this[_0x16bb64(0x202)](_0x16bb64(0x1f4),_0x57fe81)):this[_0x16bb64(0x1e5)](_0x557467(this[_0x16bb64(0x1fe)],_0x16bb64(0x1dc))):this[_0x16bb64(0x1e5)](_0x557467(this[_0x16bb64(0x1fe)],_0x16bb64(0x1f0)));}[_0x253127(0x1c4)](){const _0x9c41e3=_0x253127,_0x2c7e82=this[_0x9c41e3(0x1eb)]()[_0x9c41e3(0x1f8)](),_0x4fbe1e=!!this[_0x9c41e3(0x1b9)][_0x9c41e3(0x1c7)];this[_0x9c41e3(0x1da)][_0x9c41e3(0x1f6)]=_0x2c7e82[_0x9c41e3(0x1b8)]>0x0&&!_0x4fbe1e;}[_0x253127(0x1d6)](_0x1ec7e5){try{return!!new URL(_0x1ec7e5);}catch{return!0x1;}}}
|